--enable-multithreading Set compiler flags to allow for multithreaded programs"
ac_help="$ac_help
--with-multithreading=DIR use DIR as path to the ACE library"
-ac_help="$ac_help
- --with-kdoc=DIR use kdoc installed in DIR"
ac_help="$ac_help
--enable-shared Set compiler flags to generate shared libraries"
ac_help="$ac_help
--enable-multigrid Include multigrid code in library"
+ac_help="$ac_help
+ --with-kdoc=DIR use kdoc installed in DIR"
# Initialize some variables set by options.
# The variables have the same names as the options, with
fi
-ac_aux_dir=
-for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
- if test -f $ac_dir/install-sh; then
- ac_aux_dir=$ac_dir
- ac_install_sh="$ac_aux_dir/install-sh -c"
- break
- elif test -f $ac_dir/install.sh; then
- ac_aux_dir=$ac_dir
- ac_install_sh="$ac_aux_dir/install.sh -c"
- break
- fi
-done
-if test -z "$ac_aux_dir"; then
- { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
-fi
-ac_config_guess=$ac_aux_dir/config.guess
-ac_config_sub=$ac_aux_dir/config.sub
-ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
-
-subdirs="tests"
-
DEAL2_DIR=`pwd`
# Extract the first word of "gcc", so it can be a program name with args.
set dummy gcc; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:558: checking for $ac_word" >&5
+echo "configure:537: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
# Extract the first word of "cc", so it can be a program name with args.
set dummy cc; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:588: checking for $ac_word" >&5
+echo "configure:567: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
# Extract the first word of "cl", so it can be a program name with args.
set dummy cl; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:639: checking for $ac_word" >&5
+echo "configure:618: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
fi
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
-echo "configure:671: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
+echo "configure:650: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
ac_ext=c
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
cat > conftest.$ac_ext << EOF
-#line 682 "configure"
+#line 661 "configure"
#include "confdefs.h"
main(){return(0);}
EOF
-if { (eval echo configure:687: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:666: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ac_cv_prog_cc_works=yes
# If we can't run a trivial program, we are probably using a cross compiler.
if (./conftest; exit) 2>/dev/null; then
{ echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
fi
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
-echo "configure:713: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
+echo "configure:692: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
cross_compiling=$ac_cv_prog_cc_cross
echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
-echo "configure:718: checking whether we are using GNU C" >&5
+echo "configure:697: checking whether we are using GNU C" >&5
if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
yes;
#endif
EOF
-if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:727: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
+if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:706: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
ac_cv_prog_gcc=yes
else
ac_cv_prog_gcc=no
ac_save_CFLAGS="$CFLAGS"
CFLAGS=
echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
-echo "configure:746: checking whether ${CC-cc} accepts -g" >&5
+echo "configure:725: checking whether ${CC-cc} accepts -g" >&5
if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:785: checking for $ac_word" >&5
+echo "configure:764: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
-echo "configure:817: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
+echo "configure:796: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
ac_ext=C
# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
cat > conftest.$ac_ext << EOF
-#line 828 "configure"
+#line 807 "configure"
#include "confdefs.h"
int main(){return(0);}
EOF
-if { (eval echo configure:833: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:812: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ac_cv_prog_cxx_works=yes
# If we can't run a trivial program, we are probably using a cross compiler.
if (./conftest; exit) 2>/dev/null; then
{ echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
fi
echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
-echo "configure:859: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
+echo "configure:838: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
cross_compiling=$ac_cv_prog_cxx_cross
echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
-echo "configure:864: checking whether we are using GNU C++" >&5
+echo "configure:843: checking whether we are using GNU C++" >&5
if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
yes;
#endif
EOF
-if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:873: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
+if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:852: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
ac_cv_prog_gxx=yes
else
ac_cv_prog_gxx=no
ac_save_CXXFLAGS="$CXXFLAGS"
CXXFLAGS=
echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
-echo "configure:892: checking whether ${CXX-g++} accepts -g" >&5
+echo "configure:871: checking whether ${CXX-g++} accepts -g" >&5
if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
# Extract the first word of "perl", so it can be a program name with args.
set dummy perl; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:955: checking for $ac_word" >&5
+echo "configure:934: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
if test $withmultithreading != no ; then
echo $ac_n "checking for ACE""... $ac_c" 1>&6
-echo "configure:1010: checking for ACE" >&5
+echo "configure:989: checking for ACE" >&5
if test -d $withmultithreading ; then
echo "$ac_t""found" 1>&6
else
fi
-# Check whether --with-kdoc or --without-kdoc was given.
-if test "${with_kdoc+set}" = set; then
- withval="$with_kdoc"
- kdocdir=$withval
-else
- kdocdir=doc/auto/scripts/kdoc
-fi
-
-if test -r $kdocdir/kdoc ; then
- echo "$ac_t""found" 1>&6
-else
- echo "$ac_t""not found" 1>&6
- { echo "configure: error: Invalid kdoc path" 1>&2; exit 1; }
-fi
-if test -r $kdocdir/Version ; then
- kdocversion=`cat $kdocdir/Version` ;
-else
- kdocversion=1;
-fi
-
# Check whether --enable-shared or --disable-shared was given.
+
+# Check whether --with-kdoc or --without-kdoc was given.
+if test "${with_kdoc+set}" = set; then
+ withval="$with_kdoc"
+ kdocdir=$withval
+else
+ kdocdir=doc/auto/scripts/kdoc
+fi
+
+if test -r $kdocdir/kdoc ; then
+ echo "$ac_t""found" 1>&6
+else
+ echo "$ac_t""not found" 1>&6
+ { echo "configure: error: Invalid kdoc path" 1>&2; exit 1; }
+fi
+if test -r $kdocdir/Version ; then
+ kdocversion=`cat $kdocdir/Version` ;
+else
+ kdocversion=1;
+fi
+
+
+
+
+
+
+
+
+ac_aux_dir=
+for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
+ if test -f $ac_dir/install-sh; then
+ ac_aux_dir=$ac_dir
+ ac_install_sh="$ac_aux_dir/install-sh -c"
+ break
+ elif test -f $ac_dir/install.sh; then
+ ac_aux_dir=$ac_dir
+ ac_install_sh="$ac_aux_dir/install.sh -c"
+ break
+ fi
+done
+if test -z "$ac_aux_dir"; then
+ { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
+fi
+ac_config_guess=$ac_aux_dir/config.guess
+ac_config_sub=$ac_aux_dir/config.sub
+ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
+
+subdirs="tests"
+
+
+
+
+
+
+
trap '' 1 2 15
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
ac_given_srcdir=$srcdir
-trap 'rm -fr `echo "common/Make.global_options doc/Makefile doc/auto/kdoc/Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
+trap 'rm -fr `echo "common/Make.global_options doc/Makefile doc/auto/Makefile doc/auto/kdoc/Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
EOF
cat >> $CONFIG_STATUS <<EOF
s%@oldincludedir@%$oldincludedir%g
s%@infodir@%$infodir%g
s%@mandir@%$mandir%g
-s%@subdirs@%$subdirs%g
s%@DEAL2_DIR@%$DEAL2_DIR%g
s%@CC@%$CC%g
s%@CXX@%$CXX%g
s%@PERL@%$PERL%g
s%@enablemultithreading@%$enablemultithreading%g
s%@withmultithreading@%$withmultithreading%g
-s%@kdocdir@%$kdocdir%g
-s%@kdocversion@%$kdocversion%g
s%@enableshared@%$enableshared%g
s%@enablemultigrid@%$enablemultigrid%g
+s%@kdocdir@%$kdocdir%g
+s%@kdocversion@%$kdocversion%g
+s%@subdirs@%$subdirs%g
CEOF
EOF
cat >> $CONFIG_STATUS <<EOF
-CONFIG_FILES=\${CONFIG_FILES-"common/Make.global_options doc/Makefile doc/auto/kdoc/Makefile"}
+CONFIG_FILES=\${CONFIG_FILES-"common/Make.global_options doc/Makefile doc/auto/Makefile doc/auto/kdoc/Makefile"}
EOF
cat >> $CONFIG_STATUS <<\EOF
for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
define([AC_CACHE_SAVE], )dnl
AC_INIT(base)
-dnl Configure the `tests' directory, if that is installed.
-AC_CONFIG_SUBDIRS(tests)
-
dnl Set the path to the deal.II libraries to `pwd`
DEAL2_DIR=`pwd`
fi
AC_SUBST(withmultithreading)
-dnl Find the kdoc directory for documentation. The old one is in
-dnl doc/auto/scripts, but you might want a newer version.
-AC_ARG_WITH(kdoc,
-[ --with-kdoc=DIR use kdoc installed in DIR],
- kdocdir=$withval,
- kdocdir=doc/auto/scripts/kdoc)
-if test -r $kdocdir/kdoc ; then
- AC_MSG_RESULT(found)
-else
- AC_MSG_RESULT(not found)
- AC_MSG_ERROR(Invalid kdoc path)
-fi
-if test -r $kdocdir/Version ; then
- kdocversion=`cat $kdocdir/Version` ;
-else
- kdocversion=1;
-fi
-AC_SUBST(kdocdir)
-AC_SUBST(kdocversion)
+
dnl Test whether shared libraries support is requested. Note:
dnl default is 'yes', if not on AIX
AC_SUBST(enablemultigrid)
+
+dnl Find the kdoc directory for documentation. The old one is in
+dnl doc/auto/scripts, but you might want a newer version.
+AC_ARG_WITH(kdoc,
+[ --with-kdoc=DIR use kdoc installed in DIR],
+ kdocdir=$withval,
+ kdocdir=doc/auto/scripts/kdoc)
+if test -r $kdocdir/kdoc ; then
+ AC_MSG_RESULT(found)
+else
+ AC_MSG_RESULT(not found)
+ AC_MSG_ERROR(Invalid kdoc path)
+fi
+if test -r $kdocdir/Version ; then
+ kdocversion=`cat $kdocdir/Version` ;
+else
+ kdocversion=1;
+fi
+AC_SUBST(kdocdir)
+AC_SUBST(kdocversion)
+
+
+
+
+
+dnl -----------------------------------------------
+dnl Configure other packages
+
+dnl Configure the `tests' directory, if that is installed.
+AC_CONFIG_SUBDIRS(tests)
+
+
+
+
+
+
dnl Write output to the global options file
-AC_OUTPUT(common/Make.global_options doc/Makefile doc/auto/kdoc/Makefile)
+AC_OUTPUT(common/Make.global_options doc/Makefile doc/auto/Makefile doc/auto/kdoc/Makefile)