--enable-multigrid Include multigrid code in library"
ac_help="$ac_help
--with-kdoc=DIR use kdoc installed in DIR"
+ac_help="$ac_help
+ --with-docxx=PATH use the doc++ executable pointed to by PATH"
# Initialize some variables set by options.
# The variables have the same names as the options, with
+OS=`uname`
+
+
+
+
+
+
# 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:537: checking for $ac_word" >&5
+echo "configure:546: 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:567: checking for $ac_word" >&5
+echo "configure:576: 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:618: checking for $ac_word" >&5
+echo "configure:627: 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:650: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
+echo "configure:659: 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 661 "configure"
+#line 670 "configure"
#include "confdefs.h"
main(){return(0);}
EOF
-if { (eval echo configure:666: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:675: \"$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:692: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
+echo "configure:701: 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:697: checking whether we are using GNU C" >&5
+echo "configure:706: 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:706: \"$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:715: \"$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:725: checking whether ${CC-cc} accepts -g" >&5
+echo "configure:734: 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:764: checking for $ac_word" >&5
+echo "configure:773: 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:796: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
+echo "configure:805: 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 807 "configure"
+#line 816 "configure"
#include "confdefs.h"
int main(){return(0);}
EOF
-if { (eval echo configure:812: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:821: \"$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:838: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
+echo "configure:847: 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:843: checking whether we are using GNU C++" >&5
+echo "configure:852: 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:852: \"$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:861: \"$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:871: checking whether ${CXX-g++} accepts -g" >&5
+echo "configure:880: 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
-OS=`uname`
-
-
-
# 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:934: checking for $ac_word" >&5
+echo "configure:939: 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
+
+
# Check whether --enable-multithreading or --disable-multithreading was given.
if test "${enable_multithreading+set}" = set; then
enableval="$enable_multithreading"
if test $withmultithreading != no ; then
echo $ac_n "checking for ACE""... $ac_c" 1>&6
-echo "configure:989: checking for ACE" >&5
+echo "configure:996: checking for ACE" >&5
if test -d $withmultithreading ; then
echo "$ac_t""found" 1>&6
else
fi
+
+
+
# Check whether --enable-multigrid or --disable-multigrid was given.
if test "${enable_multigrid+set}" = set; then
enableval="$enable_multigrid"
+
+
# Check whether --with-kdoc or --without-kdoc was given.
if test "${with_kdoc+set}" = set; then
withval="$with_kdoc"
kdocdir=doc/auto/scripts/kdoc
fi
+echo $ac_n "checking for kdoc""... $ac_c" 1>&6
+echo "configure:1060: checking for kdoc" >&5
if test -r $kdocdir/kdoc ; then
echo "$ac_t""found" 1>&6
else
+# Check whether --with-docxx or --without-docxx was given.
+if test "${with_docxx+set}" = set; then
+ withval="$with_docxx"
+ docxx=$withval
+else
+ docxx=`which doc++`
+fi
+
+echo $ac_n "checking for doc++""... $ac_c" 1>&6
+echo "configure:1086: checking for doc++" >&5
+if test -x $docxx ; then
+ echo "$ac_t""found" 1>&6
+else
+ echo "$ac_t""not found" 1>&6
+ docxx=
+fi
+
+
s%@infodir@%$infodir%g
s%@mandir@%$mandir%g
s%@DEAL2_DIR@%$DEAL2_DIR%g
+s%@OS@%$OS%g
s%@CC@%$CC%g
s%@CXX@%$CXX%g
s%@GXX_VERSION@%$GXX_VERSION%g
-s%@OS@%$OS%g
s%@PERL@%$PERL%g
s%@enablemultithreading@%$enablemultithreading%g
s%@withmultithreading@%$withmultithreading%g
s%@enablemultigrid@%$enablemultigrid%g
s%@kdocdir@%$kdocdir%g
s%@kdocversion@%$kdocversion%g
+s%@docxx@%$docxx%g
s%@subdirs@%$subdirs%g
CEOF
AC_SUBST(DEAL2_DIR)
+dnl Check for the operating system
+OS=`uname`
+AC_SUBST(OS)
+
+
+
+
+dnl -------------------------------------------------------------
+dnl Find external programs
+dnl -------------------------------------------------------------
+
dnl Find a C compiler, which is used when building
dnl shared libaries. This modifies the variable CC.
dnl In order to get the absolute path of the compiler, use the
-dnl Check for the operating system
-OS=`uname`
-AC_SUBST(OS)
-
-
dnl Find path to perl
AC_PATH_PROG(PERL, perl)
+
+dnl -------------------------------------------------------------
+dnl Multithreading
+dnl -------------------------------------------------------------
+
dnl Test whether multithreading support is requested. This
dnl does not tell deal.II to actually use it, but the
dnl compiler flags are set to allow for it,
fi
AC_SUBST(enableshared)
+
+
+dnl -------------------------------------------------------------
+dnl Multigrid
+dnl -------------------------------------------------------------
+
dnl Test if multigrid should be enabled
dnl default is no
AC_ARG_ENABLE(multigrid,
+dnl -------------------------------------------------------------
+dnl Documentation tools
+dnl -------------------------------------------------------------
+
+
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)
+AC_MSG_CHECKING(for kdoc)
if test -r $kdocdir/kdoc ; then
AC_MSG_RESULT(found)
else
+dnl Find the doc++ program
+AC_ARG_WITH(docxx,
+[ --with-docxx=PATH use the doc++ executable pointed to by PATH],
+ docxx=$withval,
+ docxx=`which doc++`)
+AC_MSG_CHECKING(for doc++)
+if test -x $docxx ; then
+ AC_MSG_RESULT(found)
+else
+ AC_MSG_RESULT(not found)
+ docxx=
+fi
+AC_SUBST(docxx)
+
-dnl -----------------------------------------------
+dnl -------------------------------------------------------------
dnl Configure other packages
+dnl -------------------------------------------------------------
-dnl Configure the `tests' directory, if that is installed.
+dnl Configure the `tests' directory, if that is installed.
AC_CONFIG_SUBDIRS(tests)
+dnl -------------------------------------------------------------
+dnl Output results
+dnl -------------------------------------------------------------
dnl Write output to the global options file
AC_OUTPUT(common/Make.global_options doc/Makefile doc/auto/Makefile doc/auto/kdoc/Makefile)