| 312 |  | # include <unistd.h> | 
| 313 |  | #endif" | 
| 314 |  |  | 
| 315 | < | ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os PROGNAME debug CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT CC CFLAGS ac_ct_CC FC FCFLAGS ac_ct_FC CPP EGREP LN_S SET_MAKE RANLIB ac_ct_RANLIB PERLINTERP PERL_SHEBANG INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA AR PS FCFLAGS_F90 FCFLAGS_SRCEXT PREPDEFFLAG FCLIBS FC_FUNC FC_FUNC_ MOD F90_WORK_FILES_ARG MODDIRFLAG F90MODINCSPEC F90_MODULE_NAMES LIBOBJS POW_LIB CXXCPP __func__ MPI_LIB_DIR MPI_INC_DIR MPI_F90_INC MPI_LIB MPI_F90_LIB USE_MPI USE_CGAL CGAL_INC_DIR CGAL_LIB_DIR CGAL_RLIB_DIR CGAL_DEFINES CGAL_CXXFLAGS CGAL_LIBS DOXYGEN DOT DOC enable_dot enable_html_docs enable_latex_docs BATEXT MKINSTALLDIRS OOPSE OOPSE_HOME SUBDIRS LTLIBOBJS' | 
| 315 | > | ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os PROGNAME debug USE_SINGLE_PRECISION CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT CC CFLAGS ac_ct_CC FC FCFLAGS ac_ct_FC CPP EGREP LN_S SET_MAKE RANLIB ac_ct_RANLIB PERLINTERP PERL_SHEBANG INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA AR PS FCFLAGS_F90 FCFLAGS_SRCEXT PREPDEFFLAG FCLIBS FC_FUNC FC_FUNC_ MOD F90_WORK_FILES_ARG MODDIRFLAG F90MODINCSPEC F90_MODULE_NAMES ZLIB_INC_DIR ZLIB_LIB_DIR ZLIB FFTW_INC_DIR FFTW_LIB_DIR FFTW_LIBS LIBOBJS POW_LIB CXXCPP __func__ MPI_LIB_DIR MPI_INC_DIR MPI_F90_INC MPI_LIB MPI_F90_LIB USE_MPI DOXYGEN DOT DOC enable_dot enable_html_docs enable_latex_docs BATEXT MKINSTALLDIRS OOPSE OOPSE_HOME SUBDIRS LTLIBOBJS' | 
| 316 |  | ac_subst_files='' | 
| 317 |  |  | 
| 318 |  | # Initialize some variables set by options. | 
| 871 |  | --enable-FEATURE[=ARG]  include FEATURE [ARG=yes] | 
| 872 |  | --enable-oopse-home=DIR      define oopse home dir PREFIX/oopse | 
| 873 |  | --enable-debug          Compile OOPSE in debug mode | 
| 874 | + | --enable-single         compile OOPSE in single precision | 
| 875 | + | --enable-float          synonym for --enable-single | 
| 876 |  | --enable-doxygen        enable documentation generation with doxygen (auto) | 
| 877 |  | --enable-dot            use 'dot' to generate graphs in doxygen (auto) | 
| 878 |  | --enable-html-docs      enable HTML generation with doxygen (yes) | 
| 883 |  | --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no) | 
| 884 |  | --with-perl-shebang     override what perl thinks is the way for the kernel | 
| 885 |  | to start it (seldom needed) | 
| 886 | < | --with-zlib=DIR root directory path of zlib installation defaults to | 
| 887 | < | /usr/local or /usr if not found in /usr/local | 
| 888 | < | --without-zlib to disable zlib usage completely | 
| 889 | < | --without-fftw          if you turn this off you cannot compute undulation spectra | 
| 886 | > | --with-zlib=DIR         root directory path of zlib installation (defaults | 
| 887 | > | to /usr/local or /usr if not found in /usr/local) | 
| 888 | > | --with-fftw=DIR         root directory path of fftw installation (defaults | 
| 889 | > | to /usr/local or /usr if not found in /usr/local) | 
| 890 |  | --with-mpi=<prefix>     compile with MPI installed in <prefix> [default=no] | 
| 889 | – | --with-cgal-makefile=FILE  CGAL makefile that should be used | 
| 891 |  |  | 
| 892 |  | Some influential environment variables: | 
| 893 |  | CXX         C++ compiler command | 
| 1415 |  |  | 
| 1416 |  |  | 
| 1417 |  |  | 
| 1417 | – | # ACX_CHECK_FFTW() | 
| 1418 | – | # ---------------- | 
| 1419 | – | # This macro checks for fftw header files and libraries, | 
| 1420 | – | # including the possible prefixing with s or d to determine precision. | 
| 1421 | – | # Arg 1 is the fftw header/library name to check for, without | 
| 1422 | – | # prefix or anything else (e.g. rfftw_mpi for real MPI transforms) | 
| 1423 | – | # Arg 2 is the size of the real variable used. | 
| 1418 |  |  | 
| 1419 |  |  | 
| 1420 |  |  | 
| 1423 |  |  | 
| 1424 |  |  | 
| 1425 |  |  | 
| 1426 | + | # | 
| 1427 | + | # | 
| 1428 | + | # | 
| 1429 |  |  | 
| 1430 |  |  | 
| 1431 |  |  | 
| 1432 |  |  | 
| 1436 | – | # | 
| 1437 | – | # | 
| 1438 | – | # | 
| 1433 |  |  | 
| 1434 |  |  | 
| 1435 |  | # AC_F90_MODULE_NAMES | 
| 1438 |  | # Figure out how the Fortran 90 compiler constructs module file names | 
| 1439 |  | # | 
| 1440 |  | # AC_F90_MODULE_NAMES | 
| 1441 | + |  | 
| 1442 | + |  | 
| 1443 | + |  | 
| 1444 | + |  | 
| 1445 | + |  | 
| 1446 | + |  | 
| 1447 | + |  | 
| 1448 | + |  | 
| 1449 | + |  | 
| 1450 | + |  | 
| 1451 | + |  | 
| 1452 | + |  | 
| 1453 | + |  | 
| 1454 | + |  | 
| 1455 | + |  | 
| 1456 | + |  | 
| 1457 | + |  | 
| 1458 | + |  | 
| 1459 | + |  | 
| 1460 | + |  | 
| 1461 | + |  | 
| 1462 | + |  | 
| 1463 | + |  | 
| 1464 | + |  | 
| 1465 | + |  | 
| 1466 | + |  | 
| 1467 | + |  | 
| 1468 | + |  | 
| 1469 | + |  | 
| 1470 | + |  | 
| 1471 | + |  | 
| 1472 | + |  | 
| 1473 | + |  | 
| 1474 | + |  | 
| 1475 | + |  | 
| 1476 | + |  | 
| 1477 | + |  | 
| 1478 | + |  | 
| 1479 | + |  | 
| 1480 | + |  | 
| 1481 | + |  | 
| 1482 | + |  | 
| 1483 |  |  | 
| 1484 |  |  | 
| 1485 |  |  | 
| 1516 |  |  | 
| 1517 |  |  | 
| 1518 |  |  | 
| 1519 | + |  | 
| 1520 | + |  | 
| 1521 | + |  | 
| 1522 | + |  | 
| 1523 | + |  | 
| 1524 | + |  | 
| 1525 | + |  | 
| 1526 | + |  | 
| 1527 | + |  | 
| 1528 | + |  | 
| 1529 |  | # who am i | 
| 1530 |  | # Make sure we can run config.sub. | 
| 1531 |  | $ac_config_sub sun4 >/dev/null 2>&1 || | 
| 1625 |  | fi | 
| 1626 |  |  | 
| 1627 |  |  | 
| 1628 | + | # Check whether --enable-single or --disable-single was given. | 
| 1629 | + | if test "${enable_single+set}" = set; then | 
| 1630 | + | enableval="$enable_single" | 
| 1631 | + | ok=$enableval | 
| 1632 | + | else | 
| 1633 | + | ok=no | 
| 1634 | + | fi; | 
| 1635 | + | # Check whether --enable-float or --disable-float was given. | 
| 1636 | + | if test "${enable_float+set}" = set; then | 
| 1637 | + | enableval="$enable_float" | 
| 1638 | + | ok=$enableval | 
| 1639 | + | fi; | 
| 1640 | + | if test "$ok" = "yes"; then | 
| 1641 | + |  | 
| 1642 | + | cat >>confdefs.h <<\_ACEOF | 
| 1643 | + | #define SINGLE_PRECISION 1 | 
| 1644 | + | _ACEOF | 
| 1645 | + |  | 
| 1646 | + | USE_SINGLE_PRECISION=yes | 
| 1647 | + |  | 
| 1648 | + | fi | 
| 1649 | + |  | 
| 1650 |  | # Checks for programs. | 
| 1651 |  | ac_ext=cc | 
| 1652 |  | ac_cpp='$CXXCPP $CPPFLAGS' | 
| 1654 |  | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
| 1655 |  | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
| 1656 |  | if test -n "$ac_tool_prefix"; then | 
| 1657 | < | for ac_prog in $CCC icpc icc pgCC pathCC c++ xlc++ xlC g++ CC | 
| 1657 | > | for ac_prog in $CCC mpicxx icpc pathCC pgCC c++ xlc++ xlC g++ CC | 
| 1658 |  | do | 
| 1659 |  | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | 
| 1660 |  | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | 
| 1696 |  | fi | 
| 1697 |  | if test -z "$CXX"; then | 
| 1698 |  | ac_ct_CXX=$CXX | 
| 1699 | < | for ac_prog in $CCC icpc icc pgCC pathCC c++ xlc++ xlC g++ CC | 
| 1699 | > | for ac_prog in $CCC mpicxx icpc pathCC pgCC c++ xlc++ xlC g++ CC | 
| 1700 |  | do | 
| 1701 |  | # Extract the first word of "$ac_prog", so it can be a program name with args. | 
| 1702 |  | set dummy $ac_prog; ac_word=$2 | 
| 2210 |  | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
| 2211 |  | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
| 2212 |  | if test -n "$ac_tool_prefix"; then | 
| 2213 | < | for ac_prog in icc pgcc pathcc cc xlc gcc | 
| 2213 | > | for ac_prog in mpicc icc pathcc pgcc cc xlc gcc | 
| 2214 |  | do | 
| 2215 |  | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | 
| 2216 |  | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | 
| 2252 |  | fi | 
| 2253 |  | if test -z "$CC"; then | 
| 2254 |  | ac_ct_CC=$CC | 
| 2255 | < | for ac_prog in icc pgcc pathcc cc xlc gcc | 
| 2255 | > | for ac_prog in mpicc icc pathcc pgcc cc xlc gcc | 
| 2256 |  | do | 
| 2257 |  | # Extract the first word of "$ac_prog", so it can be a program name with args. | 
| 2258 |  | set dummy $ac_prog; ac_word=$2 | 
| 2721 |  | ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5' | 
| 2722 |  | ac_compiler_gnu=$ac_cv_fc_compiler_gnu | 
| 2723 |  | if test -n "$ac_tool_prefix"; then | 
| 2724 | < | for ac_prog in ifort ifc pgf95 pathf95 xlf95 lf95 epcf90 pathf90 xlf90 f95 f90 gfortran g95 fort | 
| 2724 | > | for ac_prog in mpif90 ifort ifc pathf95 pgf95 xlf95 lf95 epcf90 pathf90 xlf90 f95 f90 gfortran g95 fort | 
| 2725 |  | do | 
| 2726 |  | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | 
| 2727 |  | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | 
| 2763 |  | fi | 
| 2764 |  | if test -z "$FC"; then | 
| 2765 |  | ac_ct_FC=$FC | 
| 2766 | < | for ac_prog in ifort ifc pgf95 pathf95 xlf95 lf95 epcf90 pathf90 xlf90 f95 f90 gfortran g95 fort | 
| 2766 | > | for ac_prog in mpif90 ifort ifc pathf95 pgf95 xlf95 lf95 epcf90 pathf90 xlf90 f95 f90 gfortran g95 fort | 
| 2767 |  | do | 
| 2768 |  | # Extract the first word of "$ac_prog", so it can be a program name with args. | 
| 2769 |  | set dummy $ac_prog; ac_word=$2 | 
| 2808 |  |  | 
| 2809 |  |  | 
| 2810 |  | # Provide some information about the compiler. | 
| 2811 | < | echo "$as_me:2743:" \ | 
| 2811 | > | echo "$as_me:2811:" \ | 
| 2812 |  | "checking for Fortran compiler version" >&5 | 
| 2813 |  | ac_compiler=`set X $ac_compile; echo $2` | 
| 2814 |  | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | 
| 3560 |  | fi | 
| 3561 |  |  | 
| 3562 |  | if test "$AR" = "NONE"; then | 
| 3495 | – | { { echo "$as_me:$LINENO: error: --> Can't find \`ar'!" >&5 | 
| 3496 | – | echo "$as_me: error: --> Can't find \`ar'!" >&2;} | 
| 3497 | – | { (exit 1); exit 1; }; } | 
| 3563 |  | cat >confcache <<\_ACEOF | 
| 3564 |  | # This file is a shell script that caches the results of configure | 
| 3565 |  | # tests run on this system so they can be shared between configure | 
| 4056 |  | # flags. | 
| 4057 |  | ac_save_FFLAGS=$FCFLAGS | 
| 4058 |  | FCFLAGS="$FCFLAGS $ac_verb" | 
| 4059 | < | (eval echo $as_me:3994: \"$ac_link\") >&5 | 
| 4059 | > | (eval echo $as_me:4059: \"$ac_link\") >&5 | 
| 4060 |  | ac_fc_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'` | 
| 4061 |  | echo "$ac_fc_v_output" >&5 | 
| 4062 |  | FCFLAGS=$ac_save_FFLAGS | 
| 4134 |  | # flags. | 
| 4135 |  | ac_save_FFLAGS=$FCFLAGS | 
| 4136 |  | FCFLAGS="$FCFLAGS $ac_cv_prog_fc_v" | 
| 4137 | < | (eval echo $as_me:4072: \"$ac_link\") >&5 | 
| 4137 | > | (eval echo $as_me:4137: \"$ac_link\") >&5 | 
| 4138 |  | ac_fc_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'` | 
| 4139 |  | echo "$ac_fc_v_output" >&5 | 
| 4140 |  | FCFLAGS=$ac_save_FFLAGS | 
| 4870 |  | # flags. | 
| 4871 |  | ac_save_FFLAGS=$FCFLAGS | 
| 4872 |  | FCFLAGS="$FCFLAGS $ac_verb" | 
| 4873 | < | (eval echo $as_me:4808: \"$ac_link\") >&5 | 
| 4873 | > | (eval echo $as_me:4873: \"$ac_link\") >&5 | 
| 4874 |  | ac_fc_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'` | 
| 4875 |  | echo "$ac_fc_v_output" >&5 | 
| 4876 |  | FCFLAGS=$ac_save_FFLAGS | 
| 4948 |  | # flags. | 
| 4949 |  | ac_save_FFLAGS=$FCFLAGS | 
| 4950 |  | FCFLAGS="$FCFLAGS $ac_cv_prog_fc_v" | 
| 4951 | < | (eval echo $as_me:4886: \"$ac_link\") >&5 | 
| 4951 | > | (eval echo $as_me:4951: \"$ac_link\") >&5 | 
| 4952 |  | ac_fc_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'` | 
| 4953 |  | echo "$ac_fc_v_output" >&5 | 
| 4954 |  | FCFLAGS=$ac_save_FFLAGS | 
| 5825 |  | # | 
| 5826 |  | # Handle user hints | 
| 5827 |  | # | 
| 5763 | – | echo "$as_me:$LINENO: checking if zlib is wanted" >&5 | 
| 5764 | – | echo $ECHO_N "checking if zlib is wanted... $ECHO_C" >&6 | 
| 5828 |  |  | 
| 5829 |  | # Check whether --with-zlib or --without-zlib was given. | 
| 5830 |  | if test "${with_zlib+set}" = set; then | 
| 5831 |  | withval="$with_zlib" | 
| 5832 | < | if test "$withval" != no ; then | 
| 5833 | < | echo "$as_me:$LINENO: result: yes" >&5 | 
| 5834 | < | echo "${ECHO_T}yes" >&6 | 
| 5835 | < | if test -d "$withval" | 
| 5836 | < | then | 
| 5837 | < | ZLIB_HOME="$withval" | 
| 5832 | > | zlib_dir="$withval" | 
| 5833 | > | else | 
| 5834 | > | zlib_dir="not_set" | 
| 5835 | > | fi; | 
| 5836 | > | if test "$zlib_dir" != "no"; then | 
| 5837 | > |  | 
| 5838 | > | if test "$zlib_dir" != "not_set" ; then | 
| 5839 | > | if test -d "$zlib_dir" | 
| 5840 | > | then | 
| 5841 | > | ZLIB_HOME="$zlib_dir" | 
| 5842 |  | else | 
| 5843 | < | { echo "$as_me:$LINENO: WARNING: Sorry, $withval does not exist, checking usual places" >&5 | 
| 5844 | < | echo "$as_me: WARNING: Sorry, $withval does not exist, checking usual places" >&2;} | 
| 5843 | > | { echo "$as_me:$LINENO: WARNING: Sorry, $zlib_dir does not exist, checking usual places" >&5 | 
| 5844 | > | echo "$as_me: WARNING: Sorry, $zlib_dir does not exist, checking usual places" >&2;} | 
| 5845 |  | fi | 
| 5779 | – | else | 
| 5780 | – | echo "$as_me:$LINENO: result: no" >&5 | 
| 5781 | – | echo "${ECHO_T}no" >&6 | 
| 5846 |  | fi | 
| 5783 | – | fi; | 
| 5847 |  |  | 
| 5848 |  | ZLIB_HOME=/usr/local | 
| 5849 |  | if test ! -f "${ZLIB_HOME}/include/zlib.h" | 
| 6096 |  | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
| 6097 |  | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
| 6098 |  |  | 
| 6036 | – | if test "$zlib_cv_libz" = "yes" -a "$zlib_cv_zlib_h" = "yes" | 
| 6037 | – | then | 
| 6038 | – | # | 
| 6039 | – | # If both library and header were found, use them | 
| 6040 | – | # | 
| 6099 |  |  | 
| 6100 | < | echo "$as_me:$LINENO: checking for inflateEnd in -lz" >&5 | 
| 6043 | < | echo $ECHO_N "checking for inflateEnd in -lz... $ECHO_C" >&6 | 
| 6044 | < | if test "${ac_cv_lib_z_inflateEnd+set}" = set; then | 
| 6045 | < | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| 6046 | < | else | 
| 6047 | < | ac_check_lib_save_LIBS=$LIBS | 
| 6048 | < | LIBS="-lz  $LIBS" | 
| 6049 | < | cat >conftest.$ac_ext <<_ACEOF | 
| 6050 | < | /* confdefs.h.  */ | 
| 6051 | < | _ACEOF | 
| 6052 | < | cat confdefs.h >>conftest.$ac_ext | 
| 6053 | < | cat >>conftest.$ac_ext <<_ACEOF | 
| 6054 | < | /* end confdefs.h.  */ | 
| 6100 | > | if test "$zlib_cv_libz" = "yes" -a "$zlib_cv_zlib_h" = "yes"; then | 
| 6101 |  |  | 
| 6102 | < | /* Override any gcc2 internal prototype to avoid an error.  */ | 
| 6103 | < | #ifdef __cplusplus | 
| 6058 | < | extern "C" | 
| 6059 | < | #endif | 
| 6060 | < | /* We use char because int might match the return type of a gcc2 | 
| 6061 | < | builtin and then its argument prototype would still apply.  */ | 
| 6062 | < | char inflateEnd (); | 
| 6063 | < | #ifdef FC_DUMMY_MAIN | 
| 6064 | < | #ifndef FC_DUMMY_MAIN_EQ_F77 | 
| 6065 | < | #  ifdef __cplusplus | 
| 6066 | < | extern "C" | 
| 6067 | < | #  endif | 
| 6068 | < | int FC_DUMMY_MAIN() { return 1; } | 
| 6069 | < | #endif | 
| 6070 | < | #endif | 
| 6071 | < | int | 
| 6072 | < | main () | 
| 6073 | < | { | 
| 6074 | < | inflateEnd (); | 
| 6075 | < | ; | 
| 6076 | < | return 0; | 
| 6077 | < | } | 
| 6102 | > | cat >>confdefs.h <<\_ACEOF | 
| 6103 | > | #define HAVE_ZLIB_H 1 | 
| 6104 |  | _ACEOF | 
| 6079 | – | rm -f conftest.$ac_objext conftest$ac_exeext | 
| 6080 | – | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| 6081 | – | (eval $ac_link) 2>conftest.er1 | 
| 6082 | – | ac_status=$? | 
| 6083 | – | grep -v '^ *+' conftest.er1 >conftest.err | 
| 6084 | – | rm -f conftest.er1 | 
| 6085 | – | cat conftest.err >&5 | 
| 6086 | – | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| 6087 | – | (exit $ac_status); } && | 
| 6088 | – | { ac_try='test -z "$ac_c_werror_flag" | 
| 6089 | – | || test ! -s conftest.err' | 
| 6090 | – | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
| 6091 | – | (eval $ac_try) 2>&5 | 
| 6092 | – | ac_status=$? | 
| 6093 | – | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| 6094 | – | (exit $ac_status); }; } && | 
| 6095 | – | { ac_try='test -s conftest$ac_exeext' | 
| 6096 | – | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
| 6097 | – | (eval $ac_try) 2>&5 | 
| 6098 | – | ac_status=$? | 
| 6099 | – | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| 6100 | – | (exit $ac_status); }; }; then | 
| 6101 | – | ac_cv_lib_z_inflateEnd=yes | 
| 6102 | – | else | 
| 6103 | – | echo "$as_me: failed program was:" >&5 | 
| 6104 | – | sed 's/^/| /' conftest.$ac_ext >&5 | 
| 6105 |  |  | 
| 6106 | < | ac_cv_lib_z_inflateEnd=no | 
| 6107 | < | fi | 
| 6108 | < | rm -f conftest.err conftest.$ac_objext \ | 
| 6109 | < | conftest$ac_exeext conftest.$ac_ext | 
| 6110 | < | LIBS=$ac_check_lib_save_LIBS | 
| 6111 | < | fi | 
| 6112 | < | echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflateEnd" >&5 | 
| 6113 | < | echo "${ECHO_T}$ac_cv_lib_z_inflateEnd" >&6 | 
| 6114 | < | if test $ac_cv_lib_z_inflateEnd = yes; then | 
| 6115 | < | cat >>confdefs.h <<_ACEOF | 
| 6106 | > |  | 
| 6107 | > | cat >>confdefs.h <<\_ACEOF | 
| 6108 |  | #define HAVE_LIBZ 1 | 
| 6109 |  | _ACEOF | 
| 6110 |  |  | 
| 6111 | < | LIBS="-lz $LIBS" | 
| 6112 | < |  | 
| 6113 | < | fi | 
| 6122 | < |  | 
| 6123 | < | echo "$as_me:$LINENO: checking zlib in ${ZLIB_HOME}" >&5 | 
| 6124 | < | echo $ECHO_N "checking zlib in ${ZLIB_HOME}... $ECHO_C" >&6 | 
| 6125 | < | echo "$as_me:$LINENO: result: ok" >&5 | 
| 6126 | < | echo "${ECHO_T}ok" >&6 | 
| 6111 | > | ZLIB_INC_DIR="${ZLIB_HOME}/include" | 
| 6112 | > | ZLIB_LIB_DIR="${ZLIB_HOME}/lib" | 
| 6113 | > | ZLIB="-lz" | 
| 6114 |  | else | 
| 6128 | – | # | 
| 6129 | – | # If either header or library was not found, revert and bomb | 
| 6130 | – | # | 
| 6115 |  | echo "$as_me:$LINENO: checking zlib in ${ZLIB_HOME}" >&5 | 
| 6116 |  | echo $ECHO_N "checking zlib in ${ZLIB_HOME}... $ECHO_C" >&6 | 
| 6117 | + | ZLIB_INC_DIR= | 
| 6118 | + | ZLIB_LIB_DIR= | 
| 6119 | + | ZLIB= | 
| 6120 |  | LDFLAGS="$ZLIB_OLD_LDFLAGS" | 
| 6121 |  | CPPFLAGS="$ZLIB_OLD_CPPFLAGS" | 
| 6122 |  | echo "$as_me:$LINENO: result: failed" >&5 | 
| 6123 |  | echo "${ECHO_T}failed" >&6 | 
| 6124 | < | { { echo "$as_me:$LINENO: error: either specify a valid zlib installation with --with-zlib=DIR or disable zlib usage with --without-zlib" >&5 | 
| 6125 | < | echo "$as_me: error: either specify a valid zlib installation with --with-zlib=DIR or disable zlib usage with --without-zlib" >&2;} | 
| 6126 | < | { (exit 1); exit 1; }; } | 
| 6124 | > | echo "" | 
| 6125 | > | echo "*********************************************************" | 
| 6126 | > | echo "* WARNING: Could not find a working zlib installation   *" | 
| 6127 | > | echo "* If you need OOPSE to be able to deal with compressed  *" | 
| 6128 | > | echo "* trajectory dump files be sure to specify a valid zlib *" | 
| 6129 | > | echo "* installation with --with-zlib=DIR                     *" | 
| 6130 | > | echo "*                                                       *" | 
| 6131 | > | echo "* OOPSE will still work without zlib installed.         *" | 
| 6132 | > | echo "*********************************************************" | 
| 6133 | > | echo "" | 
| 6134 |  | fi | 
| 6141 | – | fi | 
| 6135 |  |  | 
| 6136 |  |  | 
| 6137 |  |  | 
| 6138 | + | fi | 
| 6139 | + | fi | 
| 6140 | + |  | 
| 6141 | + | # | 
| 6142 | + | # Handle user hints | 
| 6143 | + | # | 
| 6144 | + |  | 
| 6145 |  | # Check whether --with-fftw or --without-fftw was given. | 
| 6146 |  | if test "${with_fftw+set}" = set; then | 
| 6147 |  | withval="$with_fftw" | 
| 6148 | < |  | 
| 6148 | > | fftw_dir="$withval" | 
| 6149 |  | else | 
| 6150 | < | with_fftw=yes | 
| 6150 | > | fftw_dir="not_set" | 
| 6151 |  | fi; | 
| 6152 | < | if test "$with_fftw" = "no"; then | 
| 6152 | > | if test "$fftw_dir" != "no"; then | 
| 6153 | > | if test "$fftw_dir" != "not_set" ; then | 
| 6154 | > | if test -d "$fftw_dir"; then | 
| 6155 | > | FFTW_HOME="$fftw_dir" | 
| 6156 | > | else | 
| 6157 | > | { echo "$as_me:$LINENO: WARNING: Sorry, $fftw_dir does not exist, checking usual places" >&5 | 
| 6158 | > | echo "$as_me: WARNING: Sorry, $fftw_dir does not exist, checking usual places" >&2;} | 
| 6159 | > | FFTW_HOME=/usr/local | 
| 6160 | > | if test ! -f "${FFTW_HOME}/include/fftw3.h" -o -f "${FFTW_HOME}/include/fftw.h" -o  -f "${FFTW_HOME}/include/dfftw.h"; then | 
| 6161 | > | FFTW_HOME=/usr | 
| 6162 | > | fi | 
| 6163 | > | fi | 
| 6164 | > | # | 
| 6165 | > | # Locate fftw, if wanted | 
| 6166 | > | # | 
| 6167 | > | if test -n "${FFTW_HOME}"; then | 
| 6168 | > | FFTW_OLD_LDFLAGS=$LDFLAGS | 
| 6169 | > | FFTW_OLD_CPPFLAGS=$LDFLAGS | 
| 6170 | > | LDFLAGS="$LDFLAGS -L${FFTW_HOME}/lib" | 
| 6171 | > | CPPFLAGS="$CPPFLAGS -I${FFTW_HOME}/include" | 
| 6172 |  |  | 
| 6154 | – | cat >>confdefs.h <<\_ACEOF | 
| 6155 | – | #define WITHOUT_FFTW | 
| 6156 | – | _ACEOF | 
| 6173 |  |  | 
| 6174 | < | fi | 
| 6175 | < | if test "$with_fftw" = "yes"; then | 
| 6176 | < | sizeof_real=8 | 
| 6174 | > | ac_ext=c | 
| 6175 | > | ac_cpp='$CPP $CPPFLAGS' | 
| 6176 | > | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
| 6177 | > | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
| 6178 | > | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
| 6179 |  |  | 
| 6180 | < |  | 
| 6181 | < | if test -z "$ac_fftw_firstname"; then | 
| 6182 | < |  | 
| 6183 | < | sizeof_real=$sizeof_real | 
| 6166 | < | if test $sizeof_real = 8; then | 
| 6167 | < | prec="double" | 
| 6168 | < | fftwcheckprefix=d | 
| 6180 | > | echo "$as_me:$LINENO: checking for fftw_execute in -lfftw3" >&5 | 
| 6181 | > | echo $ECHO_N "checking for fftw_execute in -lfftw3... $ECHO_C" >&6 | 
| 6182 | > | if test "${ac_cv_lib_fftw3_fftw_execute+set}" = set; then | 
| 6183 | > | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| 6184 |  | else | 
| 6185 | < | prec="single" | 
| 6186 | < | fftwcheckprefix=s | 
| 6172 | < | fi | 
| 6173 | < |  | 
| 6174 | < | xfftwname=${fftwcheckprefix}fftw3 | 
| 6175 | < |  | 
| 6176 | < | ok="no" | 
| 6177 | < | # check header doesn't work, since we must use mpicc to get includes, | 
| 6178 | < | # we cant trust cpp. | 
| 6179 | < | echo "$as_me:$LINENO: checking for $xfftwname.h" >&5 | 
| 6180 | < | echo $ECHO_N "checking for $xfftwname.h... $ECHO_C" >&6 | 
| 6185 | > | ac_check_lib_save_LIBS=$LIBS | 
| 6186 | > | LIBS="-lfftw3  $LIBS" | 
| 6187 |  | cat >conftest.$ac_ext <<_ACEOF | 
| 6188 |  | /* confdefs.h.  */ | 
| 6189 |  | _ACEOF | 
| 6190 |  | cat confdefs.h >>conftest.$ac_ext | 
| 6191 |  | cat >>conftest.$ac_ext <<_ACEOF | 
| 6192 |  | /* end confdefs.h.  */ | 
| 6187 | – | #include <$xfftwname.h> | 
| 6188 | – | #ifdef FC_DUMMY_MAIN | 
| 6189 | – | #ifndef FC_DUMMY_MAIN_EQ_F77 | 
| 6190 | – | #  ifdef __cplusplus | 
| 6191 | – | extern "C" | 
| 6192 | – | #  endif | 
| 6193 | – | int FC_DUMMY_MAIN() { return 1; } | 
| 6194 | – | #endif | 
| 6195 | – | #endif | 
| 6196 | – | int | 
| 6197 | – | main () | 
| 6198 | – | { | 
| 6193 |  |  | 
| 6194 | < | ; | 
| 6195 | < | return 0; | 
| 6196 | < | } | 
| 6197 | < | _ACEOF | 
| 6198 | < | rm -f conftest.$ac_objext | 
| 6199 | < | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| 6200 | < | (eval $ac_compile) 2>conftest.er1 | 
| 6207 | < | ac_status=$? | 
| 6208 | < | grep -v '^ *+' conftest.er1 >conftest.err | 
| 6209 | < | rm -f conftest.er1 | 
| 6210 | < | cat conftest.err >&5 | 
| 6211 | < | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| 6212 | < | (exit $ac_status); } && | 
| 6213 | < | { ac_try='test -z "$ac_c_werror_flag" | 
| 6214 | < | || test ! -s conftest.err' | 
| 6215 | < | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
| 6216 | < | (eval $ac_try) 2>&5 | 
| 6217 | < | ac_status=$? | 
| 6218 | < | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| 6219 | < | (exit $ac_status); }; } && | 
| 6220 | < | { ac_try='test -s conftest.$ac_objext' | 
| 6221 | < | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
| 6222 | < | (eval $ac_try) 2>&5 | 
| 6223 | < | ac_status=$? | 
| 6224 | < | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| 6225 | < | (exit $ac_status); }; }; then | 
| 6226 | < |  | 
| 6227 | < | fftwname=$xfftwname | 
| 6228 | < | echo "$as_me:$LINENO: result: yes" >&5 | 
| 6229 | < | echo "${ECHO_T}yes" >&6 | 
| 6230 | < |  | 
| 6231 | < | else | 
| 6232 | < | echo "$as_me: failed program was:" >&5 | 
| 6233 | < | sed 's/^/| /' conftest.$ac_ext >&5 | 
| 6234 | < |  | 
| 6235 | < | echo "$as_me:$LINENO: result: no" >&5 | 
| 6236 | < | echo "${ECHO_T}no" >&6 | 
| 6237 | < | fi | 
| 6238 | < | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| 6239 | < |  | 
| 6240 | < | # fftwname was set if we found a header | 
| 6241 | < |  | 
| 6242 | < | if test -n "$fftwname"; then | 
| 6243 | < | # we cannot run the code since an MPI program might not be allowed | 
| 6244 | < | # on a login node of a supercomputer | 
| 6245 | < | cat >conftest.$ac_ext <<_ACEOF | 
| 6246 | < | /* confdefs.h.  */ | 
| 6247 | < | _ACEOF | 
| 6248 | < | cat confdefs.h >>conftest.$ac_ext | 
| 6249 | < | cat >>conftest.$ac_ext <<_ACEOF | 
| 6250 | < | /* end confdefs.h.  */ | 
| 6251 | < | #include <$fftwname.h> | 
| 6194 | > | /* Override any gcc2 internal prototype to avoid an error.  */ | 
| 6195 | > | #ifdef __cplusplus | 
| 6196 | > | extern "C" | 
| 6197 | > | #endif | 
| 6198 | > | /* We use char because int might match the return type of a gcc2 | 
| 6199 | > | builtin and then its argument prototype would still apply.  */ | 
| 6200 | > | char fftw_execute (); | 
| 6201 |  | #ifdef FC_DUMMY_MAIN | 
| 6202 |  | #ifndef FC_DUMMY_MAIN_EQ_F77 | 
| 6203 |  | #  ifdef __cplusplus | 
| 6209 |  | int | 
| 6210 |  | main () | 
| 6211 |  | { | 
| 6212 | < | int _array_ [1 - 2 * !((sizeof(fftw_real)) == $sizeof_real)]; | 
| 6212 | > | fftw_execute (); | 
| 6213 |  | ; | 
| 6214 |  | return 0; | 
| 6215 |  | } | 
| 6216 |  | _ACEOF | 
| 6217 | < | rm -f conftest.$ac_objext | 
| 6218 | < | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| 6219 | < | (eval $ac_compile) 2>conftest.er1 | 
| 6217 | > | rm -f conftest.$ac_objext conftest$ac_exeext | 
| 6218 | > | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| 6219 | > | (eval $ac_link) 2>conftest.er1 | 
| 6220 |  | ac_status=$? | 
| 6221 |  | grep -v '^ *+' conftest.er1 >conftest.err | 
| 6222 |  | rm -f conftest.er1 | 
| 6230 |  | ac_status=$? | 
| 6231 |  | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| 6232 |  | (exit $ac_status); }; } && | 
| 6233 | < | { ac_try='test -s conftest.$ac_objext' | 
| 6233 | > | { ac_try='test -s conftest$ac_exeext' | 
| 6234 |  | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
| 6235 |  | (eval $ac_try) 2>&5 | 
| 6236 |  | ac_status=$? | 
| 6237 |  | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| 6238 |  | (exit $ac_status); }; }; then | 
| 6239 | < |  | 
| 6291 | < | ok=yes | 
| 6292 | < | usedprefix=$fftwcheckprefix | 
| 6293 | < |  | 
| 6239 | > | ac_cv_lib_fftw3_fftw_execute=yes | 
| 6240 |  | else | 
| 6241 |  | echo "$as_me: failed program was:" >&5 | 
| 6242 |  | sed 's/^/| /' conftest.$ac_ext >&5 | 
| 6243 |  |  | 
| 6244 | < | ok=no | 
| 6244 | > | ac_cv_lib_fftw3_fftw_execute=no | 
| 6245 |  | fi | 
| 6246 | < | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| 6246 | > | rm -f conftest.err conftest.$ac_objext \ | 
| 6247 | > | conftest$ac_exeext conftest.$ac_ext | 
| 6248 | > | LIBS=$ac_check_lib_save_LIBS | 
| 6249 |  | fi | 
| 6250 | + | echo "$as_me:$LINENO: result: $ac_cv_lib_fftw3_fftw_execute" >&5 | 
| 6251 | + | echo "${ECHO_T}$ac_cv_lib_fftw3_fftw_execute" >&6 | 
| 6252 | + | if test $ac_cv_lib_fftw3_fftw_execute = yes; then | 
| 6253 | + | fftw_cv_libfftw3=yes | 
| 6254 | + | else | 
| 6255 | + | fftw_cv_libfftw3=no | 
| 6256 | + | fi | 
| 6257 |  |  | 
| 6258 | < | if test "$ok" != "yes"; then | 
| 6258 | > | if test "${ac_cv_header_fftw3_h+set}" = set; then | 
| 6259 |  | echo "$as_me:$LINENO: checking for fftw3.h" >&5 | 
| 6260 |  | echo $ECHO_N "checking for fftw3.h... $ECHO_C" >&6 | 
| 6261 | < | cat >conftest.$ac_ext <<_ACEOF | 
| 6261 | > | if test "${ac_cv_header_fftw3_h+set}" = set; then | 
| 6262 | > | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| 6263 | > | fi | 
| 6264 | > | echo "$as_me:$LINENO: result: $ac_cv_header_fftw3_h" >&5 | 
| 6265 | > | echo "${ECHO_T}$ac_cv_header_fftw3_h" >&6 | 
| 6266 | > | else | 
| 6267 | > | # Is the header compilable? | 
| 6268 | > | echo "$as_me:$LINENO: checking fftw3.h usability" >&5 | 
| 6269 | > | echo $ECHO_N "checking fftw3.h usability... $ECHO_C" >&6 | 
| 6270 | > | cat >conftest.$ac_ext <<_ACEOF | 
| 6271 |  | /* confdefs.h.  */ | 
| 6272 |  | _ACEOF | 
| 6273 |  | cat confdefs.h >>conftest.$ac_ext | 
| 6274 |  | cat >>conftest.$ac_ext <<_ACEOF | 
| 6275 |  | /* end confdefs.h.  */ | 
| 6276 | + | $ac_includes_default | 
| 6277 |  | #include <fftw3.h> | 
| 6313 | – | #ifdef FC_DUMMY_MAIN | 
| 6314 | – | #ifndef FC_DUMMY_MAIN_EQ_F77 | 
| 6315 | – | #  ifdef __cplusplus | 
| 6316 | – | extern "C" | 
| 6317 | – | #  endif | 
| 6318 | – | int FC_DUMMY_MAIN() { return 1; } | 
| 6319 | – | #endif | 
| 6320 | – | #endif | 
| 6321 | – | int | 
| 6322 | – | main () | 
| 6323 | – | { | 
| 6324 | – |  | 
| 6325 | – | ; | 
| 6326 | – | return 0; | 
| 6327 | – | } | 
| 6278 |  | _ACEOF | 
| 6279 |  | rm -f conftest.$ac_objext | 
| 6280 |  | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| 6298 |  | ac_status=$? | 
| 6299 |  | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| 6300 |  | (exit $ac_status); }; }; then | 
| 6301 | < | echo "$as_me:$LINENO: result: yes" >&5 | 
| 6352 | < | echo "${ECHO_T}yes" >&6 | 
| 6301 | > | ac_header_compiler=yes | 
| 6302 |  | else | 
| 6303 |  | echo "$as_me: failed program was:" >&5 | 
| 6304 |  | sed 's/^/| /' conftest.$ac_ext >&5 | 
| 6305 |  |  | 
| 6306 | < |  | 
| 6358 | < | echo "$as_me:$LINENO: result: no" >&5 | 
| 6359 | < | echo "${ECHO_T}no" >&6 | 
| 6360 | < | { { echo "$as_me:$LINENO: error: Cannot find any $prec precision $xfftwname.h or fftw3.h | 
| 6361 | < | Do you have $prec precision FFTW installed? If you are using packages, | 
| 6362 | < | note that you also need fftw-devel to use FFTW with OOPSE. You can find the | 
| 6363 | < | software at www.fftw.org. | 
| 6364 | < | If you compiled FFTW yourself: | 
| 6365 | < | Note that the default FFTW setup is double precision.  If you want MPI support, | 
| 6366 | < | use --with-mpi. It is a good idea to install both single & double. | 
| 6367 | < | If you have installed FFTW in a non-standard location, you should | 
| 6368 | < | provide the correct paths in the CPPFLAGS and LDFLAGS environment | 
| 6369 | < | variables before running configure. | 
| 6370 | < | That is also necessary to do if your compiler doesn't search | 
| 6371 | < | /usr/local/include and /usr/local/lib by default." >&5 | 
| 6372 | < | echo "$as_me: error: Cannot find any $prec precision $xfftwname.h or fftw3.h | 
| 6373 | < | Do you have $prec precision FFTW installed? If you are using packages, | 
| 6374 | < | note that you also need fftw-devel to use FFTW with OOPSE. You can find the | 
| 6375 | < | software at www.fftw.org. | 
| 6376 | < | If you compiled FFTW yourself: | 
| 6377 | < | Note that the default FFTW setup is double precision.  If you want MPI support, | 
| 6378 | < | use --with-mpi. It is a good idea to install both single & double. | 
| 6379 | < | If you have installed FFTW in a non-standard location, you should | 
| 6380 | < | provide the correct paths in the CPPFLAGS and LDFLAGS environment | 
| 6381 | < | variables before running configure. | 
| 6382 | < | That is also necessary to do if your compiler doesn't search | 
| 6383 | < | /usr/local/include and /usr/local/lib by default." >&2;} | 
| 6384 | < | { (exit 1); exit 1; }; } | 
| 6385 | < |  | 
| 6306 | > | ac_header_compiler=no | 
| 6307 |  | fi | 
| 6308 |  | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| 6309 | + | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | 
| 6310 | + | echo "${ECHO_T}$ac_header_compiler" >&6 | 
| 6311 | + |  | 
| 6312 | + | # Is the header present? | 
| 6313 | + | echo "$as_me:$LINENO: checking fftw3.h presence" >&5 | 
| 6314 | + | echo $ECHO_N "checking fftw3.h presence... $ECHO_C" >&6 | 
| 6315 |  | cat >conftest.$ac_ext <<_ACEOF | 
| 6316 |  | /* confdefs.h.  */ | 
| 6317 |  | _ACEOF | 
| 6319 |  | cat >>conftest.$ac_ext <<_ACEOF | 
| 6320 |  | /* end confdefs.h.  */ | 
| 6321 |  | #include <fftw3.h> | 
| 6322 | < | #ifdef FC_DUMMY_MAIN | 
| 6323 | < | #ifndef FC_DUMMY_MAIN_EQ_F77 | 
| 6324 | < | #  ifdef __cplusplus | 
| 6398 | < | extern "C" | 
| 6399 | < | #  endif | 
| 6400 | < | int FC_DUMMY_MAIN() { return 1; } | 
| 6401 | < | #endif | 
| 6402 | < | #endif | 
| 6403 | < | int | 
| 6404 | < | main () | 
| 6405 | < | { | 
| 6406 | < | int _array_ [1 - 2 * !((sizeof(fftw_real)) == $sizeof_real)]; | 
| 6407 | < | ; | 
| 6408 | < | return 0; | 
| 6409 | < | } | 
| 6410 | < | _ACEOF | 
| 6411 | < | rm -f conftest.$ac_objext | 
| 6412 | < | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| 6413 | < | (eval $ac_compile) 2>conftest.er1 | 
| 6322 | > | _ACEOF | 
| 6323 | > | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | 
| 6324 | > | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | 
| 6325 |  | ac_status=$? | 
| 6326 |  | grep -v '^ *+' conftest.er1 >conftest.err | 
| 6327 |  | rm -f conftest.er1 | 
| 6328 |  | cat conftest.err >&5 | 
| 6329 |  | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| 6330 | < | (exit $ac_status); } && | 
| 6331 | < | { ac_try='test -z "$ac_c_werror_flag" | 
| 6332 | < | || test ! -s conftest.err' | 
| 6333 | < | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
| 6334 | < | (eval $ac_try) 2>&5 | 
| 6335 | < | ac_status=$? | 
| 6336 | < | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| 6426 | < | (exit $ac_status); }; } && | 
| 6427 | < | { ac_try='test -s conftest.$ac_objext' | 
| 6428 | < | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
| 6429 | < | (eval $ac_try) 2>&5 | 
| 6430 | < | ac_status=$? | 
| 6431 | < | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| 6432 | < | (exit $ac_status); }; }; then | 
| 6433 | < |  | 
| 6434 | < | usedprefix="" | 
| 6435 | < | fftwname=fftw3 | 
| 6436 | < |  | 
| 6330 | > | (exit $ac_status); } >/dev/null; then | 
| 6331 | > | if test -s conftest.err; then | 
| 6332 | > | ac_cpp_err=$ac_c_preproc_warn_flag | 
| 6333 | > | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | 
| 6334 | > | else | 
| 6335 | > | ac_cpp_err= | 
| 6336 | > | fi | 
| 6337 |  | else | 
| 6338 | + | ac_cpp_err=yes | 
| 6339 | + | fi | 
| 6340 | + | if test -z "$ac_cpp_err"; then | 
| 6341 | + | ac_header_preproc=yes | 
| 6342 | + | else | 
| 6343 |  | echo "$as_me: failed program was:" >&5 | 
| 6344 |  | sed 's/^/| /' conftest.$ac_ext >&5 | 
| 6345 |  |  | 
| 6346 | < |  | 
| 6442 | < | { { echo "$as_me:$LINENO: error: Cannot find any $prec precision $xfftwname.h or fftw3.h | 
| 6443 | < | Do you have $prec precision FFTW installed? If you are using packages, | 
| 6444 | < | note that you also need fftw-devel to use FFTW with OOPSE. You can find the | 
| 6445 | < | software at www.fftw.org. | 
| 6446 | < | If you compiled FFTW yourself: | 
| 6447 | < | Note that the default FFTW setup is double precision.  If you want MPI support, | 
| 6448 | < | use --with-mpi. It is a good idea to install both single & double. | 
| 6449 | < | If you have installed FFTW in a non-standard location, you should | 
| 6450 | < | provide the correct paths in the CPPFLAGS and LDFLAGS environment | 
| 6451 | < | variables before running configure. | 
| 6452 | < | That is also necessary to do if your compiler doesn't search | 
| 6453 | < | /usr/local/include and /usr/local/lib by default." >&5 | 
| 6454 | < | echo "$as_me: error: Cannot find any $prec precision $xfftwname.h or fftw3.h | 
| 6455 | < | Do you have $prec precision FFTW installed? If you are using packages, | 
| 6456 | < | note that you also need fftw-devel to use FFTW with OOPSE. You can find the | 
| 6457 | < | software at www.fftw.org. | 
| 6458 | < | If you compiled FFTW yourself: | 
| 6459 | < | Note that the default FFTW setup is double precision.  If you want MPI support, | 
| 6460 | < | use --with-mpi. It is a good idea to install both single & double. | 
| 6461 | < | If you have installed FFTW in a non-standard location, you should | 
| 6462 | < | provide the correct paths in the CPPFLAGS and LDFLAGS environment | 
| 6463 | < | variables before running configure. | 
| 6464 | < | That is also necessary to do if your compiler doesn't search | 
| 6465 | < | /usr/local/include and /usr/local/lib by default." >&2;} | 
| 6466 | < | { (exit 1); exit 1; }; } | 
| 6346 | > | ac_header_preproc=no | 
| 6347 |  | fi | 
| 6348 | < | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| 6349 | < | fi | 
| 6348 | > | rm -f conftest.err conftest.$ac_ext | 
| 6349 | > | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | 
| 6350 | > | echo "${ECHO_T}$ac_header_preproc" >&6 | 
| 6351 |  |  | 
| 6352 | < |  | 
| 6353 | < | as_ac_Lib=`echo "ac_cv_lib_$fftwname''_main" | $as_tr_sh` | 
| 6354 | < | echo "$as_me:$LINENO: checking for main in -l$fftwname" >&5 | 
| 6355 | < | echo $ECHO_N "checking for main in -l$fftwname... $ECHO_C" >&6 | 
| 6356 | < | if eval "test \"\${$as_ac_Lib+set}\" = set"; then | 
| 6352 | > | # So?  What about this header? | 
| 6353 | > | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | 
| 6354 | > | yes:no: ) | 
| 6355 | > | { echo "$as_me:$LINENO: WARNING: fftw3.h: accepted by the compiler, rejected by the preprocessor!" >&5 | 
| 6356 | > | echo "$as_me: WARNING: fftw3.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | 
| 6357 | > | { echo "$as_me:$LINENO: WARNING: fftw3.h: proceeding with the compiler's result" >&5 | 
| 6358 | > | echo "$as_me: WARNING: fftw3.h: proceeding with the compiler's result" >&2;} | 
| 6359 | > | ac_header_preproc=yes | 
| 6360 | > | ;; | 
| 6361 | > | no:yes:* ) | 
| 6362 | > | { echo "$as_me:$LINENO: WARNING: fftw3.h: present but cannot be compiled" >&5 | 
| 6363 | > | echo "$as_me: WARNING: fftw3.h: present but cannot be compiled" >&2;} | 
| 6364 | > | { echo "$as_me:$LINENO: WARNING: fftw3.h:     check for missing prerequisite headers?" >&5 | 
| 6365 | > | echo "$as_me: WARNING: fftw3.h:     check for missing prerequisite headers?" >&2;} | 
| 6366 | > | { echo "$as_me:$LINENO: WARNING: fftw3.h: see the Autoconf documentation" >&5 | 
| 6367 | > | echo "$as_me: WARNING: fftw3.h: see the Autoconf documentation" >&2;} | 
| 6368 | > | { echo "$as_me:$LINENO: WARNING: fftw3.h:     section \"Present But Cannot Be Compiled\"" >&5 | 
| 6369 | > | echo "$as_me: WARNING: fftw3.h:     section \"Present But Cannot Be Compiled\"" >&2;} | 
| 6370 | > | { echo "$as_me:$LINENO: WARNING: fftw3.h: proceeding with the preprocessor's result" >&5 | 
| 6371 | > | echo "$as_me: WARNING: fftw3.h: proceeding with the preprocessor's result" >&2;} | 
| 6372 | > | { echo "$as_me:$LINENO: WARNING: fftw3.h: in the future, the compiler will take precedence" >&5 | 
| 6373 | > | echo "$as_me: WARNING: fftw3.h: in the future, the compiler will take precedence" >&2;} | 
| 6374 | > | ( | 
| 6375 | > | cat <<\_ASBOX | 
| 6376 | > | ## ------------------------------ ## | 
| 6377 | > | ## Report this to gezelter@nd.edu ## | 
| 6378 | > | ## ------------------------------ ## | 
| 6379 | > | _ASBOX | 
| 6380 | > | ) | | 
| 6381 | > | sed "s/^/$as_me: WARNING:     /" >&2 | 
| 6382 | > | ;; | 
| 6383 | > | esac | 
| 6384 | > | echo "$as_me:$LINENO: checking for fftw3.h" >&5 | 
| 6385 | > | echo $ECHO_N "checking for fftw3.h... $ECHO_C" >&6 | 
| 6386 | > | if test "${ac_cv_header_fftw3_h+set}" = set; then | 
| 6387 |  | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| 6388 |  | else | 
| 6389 | < | ac_check_lib_save_LIBS=$LIBS | 
| 6479 | < | LIBS="-l$fftwname  $LIBS" | 
| 6480 | < | cat >conftest.$ac_ext <<_ACEOF | 
| 6481 | < | /* confdefs.h.  */ | 
| 6482 | < | _ACEOF | 
| 6483 | < | cat confdefs.h >>conftest.$ac_ext | 
| 6484 | < | cat >>conftest.$ac_ext <<_ACEOF | 
| 6485 | < | /* end confdefs.h.  */ | 
| 6486 | < |  | 
| 6487 | < |  | 
| 6488 | < | #ifdef FC_DUMMY_MAIN | 
| 6489 | < | #ifndef FC_DUMMY_MAIN_EQ_F77 | 
| 6490 | < | #  ifdef __cplusplus | 
| 6491 | < | extern "C" | 
| 6492 | < | #  endif | 
| 6493 | < | int FC_DUMMY_MAIN() { return 1; } | 
| 6494 | < | #endif | 
| 6495 | < | #endif | 
| 6496 | < | int | 
| 6497 | < | main () | 
| 6498 | < | { | 
| 6499 | < | main (); | 
| 6500 | < | ; | 
| 6501 | < | return 0; | 
| 6502 | < | } | 
| 6503 | < | _ACEOF | 
| 6504 | < | rm -f conftest.$ac_objext conftest$ac_exeext | 
| 6505 | < | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| 6506 | < | (eval $ac_link) 2>conftest.er1 | 
| 6507 | < | ac_status=$? | 
| 6508 | < | grep -v '^ *+' conftest.er1 >conftest.err | 
| 6509 | < | rm -f conftest.er1 | 
| 6510 | < | cat conftest.err >&5 | 
| 6511 | < | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| 6512 | < | (exit $ac_status); } && | 
| 6513 | < | { ac_try='test -z "$ac_c_werror_flag" | 
| 6514 | < | || test ! -s conftest.err' | 
| 6515 | < | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
| 6516 | < | (eval $ac_try) 2>&5 | 
| 6517 | < | ac_status=$? | 
| 6518 | < | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| 6519 | < | (exit $ac_status); }; } && | 
| 6520 | < | { ac_try='test -s conftest$ac_exeext' | 
| 6521 | < | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
| 6522 | < | (eval $ac_try) 2>&5 | 
| 6523 | < | ac_status=$? | 
| 6524 | < | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| 6525 | < | (exit $ac_status); }; }; then | 
| 6526 | < | eval "$as_ac_Lib=yes" | 
| 6527 | < | else | 
| 6528 | < | echo "$as_me: failed program was:" >&5 | 
| 6529 | < | sed 's/^/| /' conftest.$ac_ext >&5 | 
| 6530 | < |  | 
| 6531 | < | eval "$as_ac_Lib=no" | 
| 6389 | > | ac_cv_header_fftw3_h=$ac_header_preproc | 
| 6390 |  | fi | 
| 6391 | < | rm -f conftest.err conftest.$ac_objext \ | 
| 6392 | < | conftest$ac_exeext conftest.$ac_ext | 
| 6535 | < | LIBS=$ac_check_lib_save_LIBS | 
| 6536 | < | fi | 
| 6537 | < | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5 | 
| 6538 | < | echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6 | 
| 6539 | < | if test `eval echo '${'$as_ac_Lib'}'` = yes; then | 
| 6540 | < | cat >>confdefs.h <<_ACEOF | 
| 6541 | < | #define `echo "HAVE_LIB$fftwname" | $as_tr_cpp` 1 | 
| 6542 | < | _ACEOF | 
| 6391 | > | echo "$as_me:$LINENO: result: $ac_cv_header_fftw3_h" >&5 | 
| 6392 | > | echo "${ECHO_T}$ac_cv_header_fftw3_h" >&6 | 
| 6393 |  |  | 
| 6394 | < | LIBS="-l$fftwname $LIBS" | 
| 6395 | < |  | 
| 6394 | > | fi | 
| 6395 | > | if test $ac_cv_header_fftw3_h = yes; then | 
| 6396 | > | fftw_cv_fftw3_h=yes | 
| 6397 |  | else | 
| 6398 | < | { { echo "$as_me:$LINENO: error: Can't find a library to match the $fftwname header" >&5 | 
| 6548 | < | echo "$as_me: error: Can't find a library to match the $fftwname header" >&2;} | 
| 6549 | < | { (exit 1); exit 1; }; } | 
| 6398 | > | fftw_cv_fftw3_h=no | 
| 6399 |  | fi | 
| 6400 |  |  | 
| 6552 | – | ac_fftw_savedprefix=$usedprefix | 
| 6553 | – | ac_fftw_firstname=$fftwname | 
| 6401 |  |  | 
| 6402 | + | if test "$fftw_cv_libfftw3" = "no" -o "$fftw_cv_fftw3_h" = "no"; then | 
| 6403 | + | echo "$as_me:$LINENO: checking for fftwnd_one in -lfftw" >&5 | 
| 6404 | + | echo $ECHO_N "checking for fftwnd_one in -lfftw... $ECHO_C" >&6 | 
| 6405 | + | if test "${ac_cv_lib_fftw_fftwnd_one+set}" = set; then | 
| 6406 | + | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| 6407 |  | else | 
| 6408 | < |  | 
| 6409 | < | fftwname=${ac_fftw_savedprefix}fftw3 | 
| 6558 | < | echo "$as_me:$LINENO: checking for $fftwname.h" >&5 | 
| 6559 | < | echo $ECHO_N "checking for $fftwname.h... $ECHO_C" >&6 | 
| 6560 | < | cat >conftest.$ac_ext <<_ACEOF | 
| 6561 | < | /* confdefs.h.  */ | 
| 6562 | < | _ACEOF | 
| 6563 | < | cat confdefs.h >>conftest.$ac_ext | 
| 6564 | < | cat >>conftest.$ac_ext <<_ACEOF | 
| 6565 | < | /* end confdefs.h.  */ | 
| 6566 | < | #include <$fftwname.h> | 
| 6567 | < | #ifdef FC_DUMMY_MAIN | 
| 6568 | < | #ifndef FC_DUMMY_MAIN_EQ_F77 | 
| 6569 | < | #  ifdef __cplusplus | 
| 6570 | < | extern "C" | 
| 6571 | < | #  endif | 
| 6572 | < | int FC_DUMMY_MAIN() { return 1; } | 
| 6573 | < | #endif | 
| 6574 | < | #endif | 
| 6575 | < | int | 
| 6576 | < | main () | 
| 6577 | < | { | 
| 6578 | < |  | 
| 6579 | < | ; | 
| 6580 | < | return 0; | 
| 6581 | < | } | 
| 6582 | < | _ACEOF | 
| 6583 | < | rm -f conftest.$ac_objext | 
| 6584 | < | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| 6585 | < | (eval $ac_compile) 2>conftest.er1 | 
| 6586 | < | ac_status=$? | 
| 6587 | < | grep -v '^ *+' conftest.er1 >conftest.err | 
| 6588 | < | rm -f conftest.er1 | 
| 6589 | < | cat conftest.err >&5 | 
| 6590 | < | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| 6591 | < | (exit $ac_status); } && | 
| 6592 | < | { ac_try='test -z "$ac_c_werror_flag" | 
| 6593 | < | || test ! -s conftest.err' | 
| 6594 | < | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
| 6595 | < | (eval $ac_try) 2>&5 | 
| 6596 | < | ac_status=$? | 
| 6597 | < | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| 6598 | < | (exit $ac_status); }; } && | 
| 6599 | < | { ac_try='test -s conftest.$ac_objext' | 
| 6600 | < | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
| 6601 | < | (eval $ac_try) 2>&5 | 
| 6602 | < | ac_status=$? | 
| 6603 | < | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| 6604 | < | (exit $ac_status); }; }; then | 
| 6605 | < | echo "$as_me:$LINENO: result: yes" >&5 | 
| 6606 | < | echo "${ECHO_T}yes" >&6 | 
| 6607 | < | LIBS="-l$fftwname $LIBS" | 
| 6408 | > | ac_check_lib_save_LIBS=$LIBS | 
| 6409 | > | LIBS="-lfftw  $LIBS" | 
| 6410 |  | cat >conftest.$ac_ext <<_ACEOF | 
| 6411 |  | /* confdefs.h.  */ | 
| 6412 |  | _ACEOF | 
| 6414 |  | cat >>conftest.$ac_ext <<_ACEOF | 
| 6415 |  | /* end confdefs.h.  */ | 
| 6416 |  |  | 
| 6417 | < |  | 
| 6417 | > | /* Override any gcc2 internal prototype to avoid an error.  */ | 
| 6418 | > | #ifdef __cplusplus | 
| 6419 | > | extern "C" | 
| 6420 | > | #endif | 
| 6421 | > | /* We use char because int might match the return type of a gcc2 | 
| 6422 | > | builtin and then its argument prototype would still apply.  */ | 
| 6423 | > | char fftwnd_one (); | 
| 6424 |  | #ifdef FC_DUMMY_MAIN | 
| 6425 |  | #ifndef FC_DUMMY_MAIN_EQ_F77 | 
| 6426 |  | #  ifdef __cplusplus | 
| 6432 |  | int | 
| 6433 |  | main () | 
| 6434 |  | { | 
| 6435 | < | main (); | 
| 6435 | > | fftwnd_one (); | 
| 6436 |  | ; | 
| 6437 |  | return 0; | 
| 6438 |  | } | 
| 6459 |  | ac_status=$? | 
| 6460 |  | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| 6461 |  | (exit $ac_status); }; }; then | 
| 6462 | < | : | 
| 6462 | > | ac_cv_lib_fftw_fftwnd_one=yes | 
| 6463 |  | else | 
| 6464 |  | echo "$as_me: failed program was:" >&5 | 
| 6465 |  | sed 's/^/| /' conftest.$ac_ext >&5 | 
| 6466 |  |  | 
| 6467 | + | ac_cv_lib_fftw_fftwnd_one=no | 
| 6468 |  | fi | 
| 6469 |  | rm -f conftest.err conftest.$ac_objext \ | 
| 6470 |  | conftest$ac_exeext conftest.$ac_ext | 
| 6471 | + | LIBS=$ac_check_lib_save_LIBS | 
| 6472 | + | fi | 
| 6473 | + | echo "$as_me:$LINENO: result: $ac_cv_lib_fftw_fftwnd_one" >&5 | 
| 6474 | + | echo "${ECHO_T}$ac_cv_lib_fftw_fftwnd_one" >&6 | 
| 6475 | + | if test $ac_cv_lib_fftw_fftwnd_one = yes; then | 
| 6476 | + | fftw_cv_libfftw=yes | 
| 6477 |  | else | 
| 6478 | < | echo "$as_me: failed program was:" >&5 | 
| 6664 | < | sed 's/^/| /' conftest.$ac_ext >&5 | 
| 6665 | < |  | 
| 6666 | < |  | 
| 6667 | < | echo "$as_me:$LINENO: result: no" >&5 | 
| 6668 | < | echo "${ECHO_T}no" >&6 | 
| 6669 | < | { { echo "$as_me:$LINENO: error: Cant find $fftwname.h header. Make sure all your | 
| 6670 | < | fftw prefixes match - we already use $ac_fftw_firstname.h" >&5 | 
| 6671 | < | echo "$as_me: error: Cant find $fftwname.h header. Make sure all your | 
| 6672 | < | fftw prefixes match - we already use $ac_fftw_firstname.h" >&2;} | 
| 6673 | < | { (exit 1); exit 1; }; } | 
| 6674 | < |  | 
| 6478 | > | fftw_cv_libfftw=no | 
| 6479 |  | fi | 
| 6676 | – | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| 6480 |  |  | 
| 6481 | + | if test "${ac_cv_header_fftw_h+set}" = set; then | 
| 6482 | + | echo "$as_me:$LINENO: checking for fftw.h" >&5 | 
| 6483 | + | echo $ECHO_N "checking for fftw.h... $ECHO_C" >&6 | 
| 6484 | + | if test "${ac_cv_header_fftw_h+set}" = set; then | 
| 6485 | + | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| 6486 |  | fi | 
| 6487 | < |  | 
| 6488 | < |  | 
| 6681 | < |  | 
| 6682 | < | if test "$with_mpi" = "yes"; then | 
| 6683 | < |  | 
| 6684 | < | if test -z "$ac_fftw_firstname"; then | 
| 6685 | < |  | 
| 6686 | < | sizeof_real=$sizeof_real | 
| 6687 | < | if test $sizeof_real = 8; then | 
| 6688 | < | prec="double" | 
| 6689 | < | fftwcheckprefix=d | 
| 6487 | > | echo "$as_me:$LINENO: result: $ac_cv_header_fftw_h" >&5 | 
| 6488 | > | echo "${ECHO_T}$ac_cv_header_fftw_h" >&6 | 
| 6489 |  | else | 
| 6490 | < | prec="single" | 
| 6491 | < | fftwcheckprefix=s | 
| 6492 | < | fi | 
| 6694 | < |  | 
| 6695 | < | xfftwname=${fftwcheckprefix}fftw3_mpi | 
| 6696 | < |  | 
| 6697 | < | ok="no" | 
| 6698 | < | # check header doesn't work, since we must use mpicc to get includes, | 
| 6699 | < | # we cant trust cpp. | 
| 6700 | < | echo "$as_me:$LINENO: checking for $xfftwname.h" >&5 | 
| 6701 | < | echo $ECHO_N "checking for $xfftwname.h... $ECHO_C" >&6 | 
| 6490 | > | # Is the header compilable? | 
| 6491 | > | echo "$as_me:$LINENO: checking fftw.h usability" >&5 | 
| 6492 | > | echo $ECHO_N "checking fftw.h usability... $ECHO_C" >&6 | 
| 6493 |  | cat >conftest.$ac_ext <<_ACEOF | 
| 6494 |  | /* confdefs.h.  */ | 
| 6495 |  | _ACEOF | 
| 6496 |  | cat confdefs.h >>conftest.$ac_ext | 
| 6497 |  | cat >>conftest.$ac_ext <<_ACEOF | 
| 6498 |  | /* end confdefs.h.  */ | 
| 6499 | < | #include <$xfftwname.h> | 
| 6500 | < | #ifdef FC_DUMMY_MAIN | 
| 6710 | < | #ifndef FC_DUMMY_MAIN_EQ_F77 | 
| 6711 | < | #  ifdef __cplusplus | 
| 6712 | < | extern "C" | 
| 6713 | < | #  endif | 
| 6714 | < | int FC_DUMMY_MAIN() { return 1; } | 
| 6715 | < | #endif | 
| 6716 | < | #endif | 
| 6717 | < | int | 
| 6718 | < | main () | 
| 6719 | < | { | 
| 6720 | < |  | 
| 6721 | < | ; | 
| 6722 | < | return 0; | 
| 6723 | < | } | 
| 6499 | > | $ac_includes_default | 
| 6500 | > | #include <fftw.h> | 
| 6501 |  | _ACEOF | 
| 6502 |  | rm -f conftest.$ac_objext | 
| 6503 |  | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| 6521 |  | ac_status=$? | 
| 6522 |  | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| 6523 |  | (exit $ac_status); }; }; then | 
| 6524 | < |  | 
| 6748 | < | fftwname=$xfftwname | 
| 6749 | < | echo "$as_me:$LINENO: result: yes" >&5 | 
| 6750 | < | echo "${ECHO_T}yes" >&6 | 
| 6751 | < |  | 
| 6524 | > | ac_header_compiler=yes | 
| 6525 |  | else | 
| 6526 |  | echo "$as_me: failed program was:" >&5 | 
| 6527 |  | sed 's/^/| /' conftest.$ac_ext >&5 | 
| 6528 |  |  | 
| 6529 | < | echo "$as_me:$LINENO: result: no" >&5 | 
| 6757 | < | echo "${ECHO_T}no" >&6 | 
| 6529 | > | ac_header_compiler=no | 
| 6530 |  | fi | 
| 6531 |  | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| 6532 | + | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | 
| 6533 | + | echo "${ECHO_T}$ac_header_compiler" >&6 | 
| 6534 |  |  | 
| 6535 | < | # fftwname was set if we found a header | 
| 6536 | < |  | 
| 6537 | < | if test -n "$fftwname"; then | 
| 6764 | < | # we cannot run the code since an MPI program might not be allowed | 
| 6765 | < | # on a login node of a supercomputer | 
| 6535 | > | # Is the header present? | 
| 6536 | > | echo "$as_me:$LINENO: checking fftw.h presence" >&5 | 
| 6537 | > | echo $ECHO_N "checking fftw.h presence... $ECHO_C" >&6 | 
| 6538 |  | cat >conftest.$ac_ext <<_ACEOF | 
| 6539 |  | /* confdefs.h.  */ | 
| 6540 |  | _ACEOF | 
| 6541 |  | cat confdefs.h >>conftest.$ac_ext | 
| 6542 |  | cat >>conftest.$ac_ext <<_ACEOF | 
| 6543 |  | /* end confdefs.h.  */ | 
| 6544 | < | #include <$fftwname.h> | 
| 6773 | < | #ifdef FC_DUMMY_MAIN | 
| 6774 | < | #ifndef FC_DUMMY_MAIN_EQ_F77 | 
| 6775 | < | #  ifdef __cplusplus | 
| 6776 | < | extern "C" | 
| 6777 | < | #  endif | 
| 6778 | < | int FC_DUMMY_MAIN() { return 1; } | 
| 6779 | < | #endif | 
| 6780 | < | #endif | 
| 6781 | < | int | 
| 6782 | < | main () | 
| 6783 | < | { | 
| 6784 | < | int _array_ [1 - 2 * !((sizeof(fftw_real)) == $sizeof_real)]; | 
| 6785 | < | ; | 
| 6786 | < | return 0; | 
| 6787 | < | } | 
| 6544 | > | #include <fftw.h> | 
| 6545 |  | _ACEOF | 
| 6546 | < | rm -f conftest.$ac_objext | 
| 6547 | < | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| 6791 | < | (eval $ac_compile) 2>conftest.er1 | 
| 6546 | > | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | 
| 6547 | > | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | 
| 6548 |  | ac_status=$? | 
| 6549 |  | grep -v '^ *+' conftest.er1 >conftest.err | 
| 6550 |  | rm -f conftest.er1 | 
| 6551 |  | cat conftest.err >&5 | 
| 6552 |  | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| 6553 | < | (exit $ac_status); } && | 
| 6554 | < | { ac_try='test -z "$ac_c_werror_flag" | 
| 6555 | < | || test ! -s conftest.err' | 
| 6556 | < | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
| 6557 | < | (eval $ac_try) 2>&5 | 
| 6558 | < | ac_status=$? | 
| 6559 | < | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| 6804 | < | (exit $ac_status); }; } && | 
| 6805 | < | { ac_try='test -s conftest.$ac_objext' | 
| 6806 | < | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
| 6807 | < | (eval $ac_try) 2>&5 | 
| 6808 | < | ac_status=$? | 
| 6809 | < | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| 6810 | < | (exit $ac_status); }; }; then | 
| 6811 | < |  | 
| 6812 | < | ok=yes | 
| 6813 | < | usedprefix=$fftwcheckprefix | 
| 6814 | < |  | 
| 6553 | > | (exit $ac_status); } >/dev/null; then | 
| 6554 | > | if test -s conftest.err; then | 
| 6555 | > | ac_cpp_err=$ac_c_preproc_warn_flag | 
| 6556 | > | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | 
| 6557 | > | else | 
| 6558 | > | ac_cpp_err= | 
| 6559 | > | fi | 
| 6560 |  | else | 
| 6561 | < | echo "$as_me: failed program was:" >&5 | 
| 6817 | < | sed 's/^/| /' conftest.$ac_ext >&5 | 
| 6818 | < |  | 
| 6819 | < | ok=no | 
| 6561 | > | ac_cpp_err=yes | 
| 6562 |  | fi | 
| 6563 | < | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| 6564 | < | fi | 
| 6823 | < |  | 
| 6824 | < | if test "$ok" != "yes"; then | 
| 6825 | < | echo "$as_me:$LINENO: checking for fftw3_mpi.h" >&5 | 
| 6826 | < | echo $ECHO_N "checking for fftw3_mpi.h... $ECHO_C" >&6 | 
| 6827 | < | cat >conftest.$ac_ext <<_ACEOF | 
| 6828 | < | /* confdefs.h.  */ | 
| 6829 | < | _ACEOF | 
| 6830 | < | cat confdefs.h >>conftest.$ac_ext | 
| 6831 | < | cat >>conftest.$ac_ext <<_ACEOF | 
| 6832 | < | /* end confdefs.h.  */ | 
| 6833 | < | #include <fftw3_mpi.h> | 
| 6834 | < | #ifdef FC_DUMMY_MAIN | 
| 6835 | < | #ifndef FC_DUMMY_MAIN_EQ_F77 | 
| 6836 | < | #  ifdef __cplusplus | 
| 6837 | < | extern "C" | 
| 6838 | < | #  endif | 
| 6839 | < | int FC_DUMMY_MAIN() { return 1; } | 
| 6840 | < | #endif | 
| 6841 | < | #endif | 
| 6842 | < | int | 
| 6843 | < | main () | 
| 6844 | < | { | 
| 6845 | < |  | 
| 6846 | < | ; | 
| 6847 | < | return 0; | 
| 6848 | < | } | 
| 6849 | < | _ACEOF | 
| 6850 | < | rm -f conftest.$ac_objext | 
| 6851 | < | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| 6852 | < | (eval $ac_compile) 2>conftest.er1 | 
| 6853 | < | ac_status=$? | 
| 6854 | < | grep -v '^ *+' conftest.er1 >conftest.err | 
| 6855 | < | rm -f conftest.er1 | 
| 6856 | < | cat conftest.err >&5 | 
| 6857 | < | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| 6858 | < | (exit $ac_status); } && | 
| 6859 | < | { ac_try='test -z "$ac_c_werror_flag" | 
| 6860 | < | || test ! -s conftest.err' | 
| 6861 | < | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
| 6862 | < | (eval $ac_try) 2>&5 | 
| 6863 | < | ac_status=$? | 
| 6864 | < | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| 6865 | < | (exit $ac_status); }; } && | 
| 6866 | < | { ac_try='test -s conftest.$ac_objext' | 
| 6867 | < | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
| 6868 | < | (eval $ac_try) 2>&5 | 
| 6869 | < | ac_status=$? | 
| 6870 | < | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| 6871 | < | (exit $ac_status); }; }; then | 
| 6872 | < | echo "$as_me:$LINENO: result: yes" >&5 | 
| 6873 | < | echo "${ECHO_T}yes" >&6 | 
| 6563 | > | if test -z "$ac_cpp_err"; then | 
| 6564 | > | ac_header_preproc=yes | 
| 6565 |  | else | 
| 6566 |  | echo "$as_me: failed program was:" >&5 | 
| 6567 |  | sed 's/^/| /' conftest.$ac_ext >&5 | 
| 6568 |  |  | 
| 6569 | < |  | 
| 6879 | < | echo "$as_me:$LINENO: result: no" >&5 | 
| 6880 | < | echo "${ECHO_T}no" >&6 | 
| 6881 | < | { { echo "$as_me:$LINENO: error: Cannot find any $prec precision $xfftwname.h or fftw3_mpi.h | 
| 6882 | < | Do you have $prec precision FFTW installed? If you are using packages, | 
| 6883 | < | note that you also need fftw-devel to use FFTW with OOPSE. You can find the | 
| 6884 | < | software at www.fftw.org. | 
| 6885 | < | If you compiled FFTW yourself: | 
| 6886 | < | Note that the default FFTW setup is double precision.  If you want MPI support, | 
| 6887 | < | use --with-mpi. It is a good idea to install both single & double. | 
| 6888 | < | If you have installed FFTW in a non-standard location, you should | 
| 6889 | < | provide the correct paths in the CPPFLAGS and LDFLAGS environment | 
| 6890 | < | variables before running configure. | 
| 6891 | < | That is also necessary to do if your compiler doesn't search | 
| 6892 | < | /usr/local/include and /usr/local/lib by default." >&5 | 
| 6893 | < | echo "$as_me: error: Cannot find any $prec precision $xfftwname.h or fftw3_mpi.h | 
| 6894 | < | Do you have $prec precision FFTW installed? If you are using packages, | 
| 6895 | < | note that you also need fftw-devel to use FFTW with OOPSE. You can find the | 
| 6896 | < | software at www.fftw.org. | 
| 6897 | < | If you compiled FFTW yourself: | 
| 6898 | < | Note that the default FFTW setup is double precision.  If you want MPI support, | 
| 6899 | < | use --with-mpi. It is a good idea to install both single & double. | 
| 6900 | < | If you have installed FFTW in a non-standard location, you should | 
| 6901 | < | provide the correct paths in the CPPFLAGS and LDFLAGS environment | 
| 6902 | < | variables before running configure. | 
| 6903 | < | That is also necessary to do if your compiler doesn't search | 
| 6904 | < | /usr/local/include and /usr/local/lib by default." >&2;} | 
| 6905 | < | { (exit 1); exit 1; }; } | 
| 6906 | < |  | 
| 6569 | > | ac_header_preproc=no | 
| 6570 |  | fi | 
| 6571 | < | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| 6572 | < | cat >conftest.$ac_ext <<_ACEOF | 
| 6573 | < | /* confdefs.h.  */ | 
| 6911 | < | _ACEOF | 
| 6912 | < | cat confdefs.h >>conftest.$ac_ext | 
| 6913 | < | cat >>conftest.$ac_ext <<_ACEOF | 
| 6914 | < | /* end confdefs.h.  */ | 
| 6915 | < | #include <fftw3_mpi.h> | 
| 6916 | < | #ifdef FC_DUMMY_MAIN | 
| 6917 | < | #ifndef FC_DUMMY_MAIN_EQ_F77 | 
| 6918 | < | #  ifdef __cplusplus | 
| 6919 | < | extern "C" | 
| 6920 | < | #  endif | 
| 6921 | < | int FC_DUMMY_MAIN() { return 1; } | 
| 6922 | < | #endif | 
| 6923 | < | #endif | 
| 6924 | < | int | 
| 6925 | < | main () | 
| 6926 | < | { | 
| 6927 | < | int _array_ [1 - 2 * !((sizeof(fftw_real)) == $sizeof_real)]; | 
| 6928 | < | ; | 
| 6929 | < | return 0; | 
| 6930 | < | } | 
| 6931 | < | _ACEOF | 
| 6932 | < | rm -f conftest.$ac_objext | 
| 6933 | < | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| 6934 | < | (eval $ac_compile) 2>conftest.er1 | 
| 6935 | < | ac_status=$? | 
| 6936 | < | grep -v '^ *+' conftest.er1 >conftest.err | 
| 6937 | < | rm -f conftest.er1 | 
| 6938 | < | cat conftest.err >&5 | 
| 6939 | < | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| 6940 | < | (exit $ac_status); } && | 
| 6941 | < | { ac_try='test -z "$ac_c_werror_flag" | 
| 6942 | < | || test ! -s conftest.err' | 
| 6943 | < | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
| 6944 | < | (eval $ac_try) 2>&5 | 
| 6945 | < | ac_status=$? | 
| 6946 | < | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| 6947 | < | (exit $ac_status); }; } && | 
| 6948 | < | { ac_try='test -s conftest.$ac_objext' | 
| 6949 | < | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
| 6950 | < | (eval $ac_try) 2>&5 | 
| 6951 | < | ac_status=$? | 
| 6952 | < | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| 6953 | < | (exit $ac_status); }; }; then | 
| 6571 | > | rm -f conftest.err conftest.$ac_ext | 
| 6572 | > | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | 
| 6573 | > | echo "${ECHO_T}$ac_header_preproc" >&6 | 
| 6574 |  |  | 
| 6575 | < | usedprefix="" | 
| 6576 | < | fftwname=fftw3_mpi | 
| 6577 | < |  | 
| 6575 | > | # So?  What about this header? | 
| 6576 | > | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | 
| 6577 | > | yes:no: ) | 
| 6578 | > | { echo "$as_me:$LINENO: WARNING: fftw.h: accepted by the compiler, rejected by the preprocessor!" >&5 | 
| 6579 | > | echo "$as_me: WARNING: fftw.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | 
| 6580 | > | { echo "$as_me:$LINENO: WARNING: fftw.h: proceeding with the compiler's result" >&5 | 
| 6581 | > | echo "$as_me: WARNING: fftw.h: proceeding with the compiler's result" >&2;} | 
| 6582 | > | ac_header_preproc=yes | 
| 6583 | > | ;; | 
| 6584 | > | no:yes:* ) | 
| 6585 | > | { echo "$as_me:$LINENO: WARNING: fftw.h: present but cannot be compiled" >&5 | 
| 6586 | > | echo "$as_me: WARNING: fftw.h: present but cannot be compiled" >&2;} | 
| 6587 | > | { echo "$as_me:$LINENO: WARNING: fftw.h:     check for missing prerequisite headers?" >&5 | 
| 6588 | > | echo "$as_me: WARNING: fftw.h:     check for missing prerequisite headers?" >&2;} | 
| 6589 | > | { echo "$as_me:$LINENO: WARNING: fftw.h: see the Autoconf documentation" >&5 | 
| 6590 | > | echo "$as_me: WARNING: fftw.h: see the Autoconf documentation" >&2;} | 
| 6591 | > | { echo "$as_me:$LINENO: WARNING: fftw.h:     section \"Present But Cannot Be Compiled\"" >&5 | 
| 6592 | > | echo "$as_me: WARNING: fftw.h:     section \"Present But Cannot Be Compiled\"" >&2;} | 
| 6593 | > | { echo "$as_me:$LINENO: WARNING: fftw.h: proceeding with the preprocessor's result" >&5 | 
| 6594 | > | echo "$as_me: WARNING: fftw.h: proceeding with the preprocessor's result" >&2;} | 
| 6595 | > | { echo "$as_me:$LINENO: WARNING: fftw.h: in the future, the compiler will take precedence" >&5 | 
| 6596 | > | echo "$as_me: WARNING: fftw.h: in the future, the compiler will take precedence" >&2;} | 
| 6597 | > | ( | 
| 6598 | > | cat <<\_ASBOX | 
| 6599 | > | ## ------------------------------ ## | 
| 6600 | > | ## Report this to gezelter@nd.edu ## | 
| 6601 | > | ## ------------------------------ ## | 
| 6602 | > | _ASBOX | 
| 6603 | > | ) | | 
| 6604 | > | sed "s/^/$as_me: WARNING:     /" >&2 | 
| 6605 | > | ;; | 
| 6606 | > | esac | 
| 6607 | > | echo "$as_me:$LINENO: checking for fftw.h" >&5 | 
| 6608 | > | echo $ECHO_N "checking for fftw.h... $ECHO_C" >&6 | 
| 6609 | > | if test "${ac_cv_header_fftw_h+set}" = set; then | 
| 6610 | > | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| 6611 |  | else | 
| 6612 | < | echo "$as_me: failed program was:" >&5 | 
| 6613 | < | sed 's/^/| /' conftest.$ac_ext >&5 | 
| 6612 | > | ac_cv_header_fftw_h=$ac_header_preproc | 
| 6613 | > | fi | 
| 6614 | > | echo "$as_me:$LINENO: result: $ac_cv_header_fftw_h" >&5 | 
| 6615 | > | echo "${ECHO_T}$ac_cv_header_fftw_h" >&6 | 
| 6616 |  |  | 
| 6962 | – |  | 
| 6963 | – | { { echo "$as_me:$LINENO: error: Cannot find any $prec precision $xfftwname.h or fftw3_mpi.h | 
| 6964 | – | Do you have $prec precision FFTW installed? If you are using packages, | 
| 6965 | – | note that you also need fftw-devel to use FFTW with OOPSE. You can find the | 
| 6966 | – | software at www.fftw.org. | 
| 6967 | – | If you compiled FFTW yourself: | 
| 6968 | – | Note that the default FFTW setup is double precision.  If you want MPI support, | 
| 6969 | – | use --with-mpi. It is a good idea to install both single & double. | 
| 6970 | – | If you have installed FFTW in a non-standard location, you should | 
| 6971 | – | provide the correct paths in the CPPFLAGS and LDFLAGS environment | 
| 6972 | – | variables before running configure. | 
| 6973 | – | That is also necessary to do if your compiler doesn't search | 
| 6974 | – | /usr/local/include and /usr/local/lib by default." >&5 | 
| 6975 | – | echo "$as_me: error: Cannot find any $prec precision $xfftwname.h or fftw3_mpi.h | 
| 6976 | – | Do you have $prec precision FFTW installed? If you are using packages, | 
| 6977 | – | note that you also need fftw-devel to use FFTW with OOPSE. You can find the | 
| 6978 | – | software at www.fftw.org. | 
| 6979 | – | If you compiled FFTW yourself: | 
| 6980 | – | Note that the default FFTW setup is double precision.  If you want MPI support, | 
| 6981 | – | use --with-mpi. It is a good idea to install both single & double. | 
| 6982 | – | If you have installed FFTW in a non-standard location, you should | 
| 6983 | – | provide the correct paths in the CPPFLAGS and LDFLAGS environment | 
| 6984 | – | variables before running configure. | 
| 6985 | – | That is also necessary to do if your compiler doesn't search | 
| 6986 | – | /usr/local/include and /usr/local/lib by default." >&2;} | 
| 6987 | – | { (exit 1); exit 1; }; } | 
| 6617 |  | fi | 
| 6618 | < | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| 6618 | > | if test $ac_cv_header_fftw_h = yes; then | 
| 6619 | > | fftw_cv_fftw_h=yes | 
| 6620 | > | else | 
| 6621 | > | fftw_cv_fftw_h=no | 
| 6622 |  | fi | 
| 6623 |  |  | 
| 6624 |  |  | 
| 6625 | < | as_ac_Lib=`echo "ac_cv_lib_$fftwname''_main" | $as_tr_sh` | 
| 6626 | < | echo "$as_me:$LINENO: checking for main in -l$fftwname" >&5 | 
| 6627 | < | echo $ECHO_N "checking for main in -l$fftwname... $ECHO_C" >&6 | 
| 6628 | < | if eval "test \"\${$as_ac_Lib+set}\" = set"; then | 
| 6625 | > | if test "$fftw_cv_libfftw" = "no" -o "$fftw_cv_fftw_h" = "no"; then | 
| 6626 | > | echo "$as_me:$LINENO: checking for fftwnd_one in -ldfftw" >&5 | 
| 6627 | > | echo $ECHO_N "checking for fftwnd_one in -ldfftw... $ECHO_C" >&6 | 
| 6628 | > | if test "${ac_cv_lib_dfftw_fftwnd_one+set}" = set; then | 
| 6629 |  | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| 6630 |  | else | 
| 6631 |  | ac_check_lib_save_LIBS=$LIBS | 
| 6632 | < | LIBS="-l$fftwname  $LIBS" | 
| 6632 | > | LIBS="-ldfftw  $LIBS" | 
| 6633 |  | cat >conftest.$ac_ext <<_ACEOF | 
| 6634 |  | /* confdefs.h.  */ | 
| 6635 |  | _ACEOF | 
| 6637 |  | cat >>conftest.$ac_ext <<_ACEOF | 
| 6638 |  | /* end confdefs.h.  */ | 
| 6639 |  |  | 
| 6640 | < |  | 
| 6640 | > | /* Override any gcc2 internal prototype to avoid an error.  */ | 
| 6641 | > | #ifdef __cplusplus | 
| 6642 | > | extern "C" | 
| 6643 | > | #endif | 
| 6644 | > | /* We use char because int might match the return type of a gcc2 | 
| 6645 | > | builtin and then its argument prototype would still apply.  */ | 
| 6646 | > | char fftwnd_one (); | 
| 6647 |  | #ifdef FC_DUMMY_MAIN | 
| 6648 |  | #ifndef FC_DUMMY_MAIN_EQ_F77 | 
| 6649 |  | #  ifdef __cplusplus | 
| 6655 |  | int | 
| 6656 |  | main () | 
| 6657 |  | { | 
| 6658 | < | main (); | 
| 6658 | > | fftwnd_one (); | 
| 6659 |  | ; | 
| 6660 |  | return 0; | 
| 6661 |  | } | 
| 6682 |  | ac_status=$? | 
| 6683 |  | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| 6684 |  | (exit $ac_status); }; }; then | 
| 6685 | < | eval "$as_ac_Lib=yes" | 
| 6685 | > | ac_cv_lib_dfftw_fftwnd_one=yes | 
| 6686 |  | else | 
| 6687 |  | echo "$as_me: failed program was:" >&5 | 
| 6688 |  | sed 's/^/| /' conftest.$ac_ext >&5 | 
| 6689 |  |  | 
| 6690 | < | eval "$as_ac_Lib=no" | 
| 6690 | > | ac_cv_lib_dfftw_fftwnd_one=no | 
| 6691 |  | fi | 
| 6692 |  | rm -f conftest.err conftest.$ac_objext \ | 
| 6693 |  | conftest$ac_exeext conftest.$ac_ext | 
| 6694 |  | LIBS=$ac_check_lib_save_LIBS | 
| 6695 |  | fi | 
| 6696 | < | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5 | 
| 6697 | < | echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6 | 
| 6698 | < | if test `eval echo '${'$as_ac_Lib'}'` = yes; then | 
| 6699 | < | cat >>confdefs.h <<_ACEOF | 
| 7062 | < | #define `echo "HAVE_LIB$fftwname" | $as_tr_cpp` 1 | 
| 7063 | < | _ACEOF | 
| 7064 | < |  | 
| 7065 | < | LIBS="-l$fftwname $LIBS" | 
| 7066 | < |  | 
| 6696 | > | echo "$as_me:$LINENO: result: $ac_cv_lib_dfftw_fftwnd_one" >&5 | 
| 6697 | > | echo "${ECHO_T}$ac_cv_lib_dfftw_fftwnd_one" >&6 | 
| 6698 | > | if test $ac_cv_lib_dfftw_fftwnd_one = yes; then | 
| 6699 | > | fftw_cv_libdfftw=yes | 
| 6700 |  | else | 
| 6701 | < | { { echo "$as_me:$LINENO: error: Can't find a library to match the $fftwname header" >&5 | 
| 7069 | < | echo "$as_me: error: Can't find a library to match the $fftwname header" >&2;} | 
| 7070 | < | { (exit 1); exit 1; }; } | 
| 6701 | > | fftw_cv_libdfftw=no | 
| 6702 |  | fi | 
| 6703 |  |  | 
| 6704 | < | ac_fftw_savedprefix=$usedprefix | 
| 6705 | < | ac_fftw_firstname=$fftwname | 
| 6706 | < |  | 
| 6704 | > | if test "${ac_cv_header_dfftw_h+set}" = set; then | 
| 6705 | > | echo "$as_me:$LINENO: checking for dfftw.h" >&5 | 
| 6706 | > | echo $ECHO_N "checking for dfftw.h... $ECHO_C" >&6 | 
| 6707 | > | if test "${ac_cv_header_dfftw_h+set}" = set; then | 
| 6708 | > | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| 6709 | > | fi | 
| 6710 | > | echo "$as_me:$LINENO: result: $ac_cv_header_dfftw_h" >&5 | 
| 6711 | > | echo "${ECHO_T}$ac_cv_header_dfftw_h" >&6 | 
| 6712 |  | else | 
| 6713 | < |  | 
| 6714 | < | fftwname=${ac_fftw_savedprefix}fftw3_mpi | 
| 6715 | < | echo "$as_me:$LINENO: checking for $fftwname.h" >&5 | 
| 7080 | < | echo $ECHO_N "checking for $fftwname.h... $ECHO_C" >&6 | 
| 6713 | > | # Is the header compilable? | 
| 6714 | > | echo "$as_me:$LINENO: checking dfftw.h usability" >&5 | 
| 6715 | > | echo $ECHO_N "checking dfftw.h usability... $ECHO_C" >&6 | 
| 6716 |  | cat >conftest.$ac_ext <<_ACEOF | 
| 6717 |  | /* confdefs.h.  */ | 
| 6718 |  | _ACEOF | 
| 6719 |  | cat confdefs.h >>conftest.$ac_ext | 
| 6720 |  | cat >>conftest.$ac_ext <<_ACEOF | 
| 6721 |  | /* end confdefs.h.  */ | 
| 6722 | < | #include <$fftwname.h> | 
| 6723 | < | #ifdef FC_DUMMY_MAIN | 
| 7089 | < | #ifndef FC_DUMMY_MAIN_EQ_F77 | 
| 7090 | < | #  ifdef __cplusplus | 
| 7091 | < | extern "C" | 
| 7092 | < | #  endif | 
| 7093 | < | int FC_DUMMY_MAIN() { return 1; } | 
| 7094 | < | #endif | 
| 7095 | < | #endif | 
| 7096 | < | int | 
| 7097 | < | main () | 
| 7098 | < | { | 
| 7099 | < |  | 
| 7100 | < | ; | 
| 7101 | < | return 0; | 
| 7102 | < | } | 
| 6722 | > | $ac_includes_default | 
| 6723 | > | #include <dfftw.h> | 
| 6724 |  | _ACEOF | 
| 6725 |  | rm -f conftest.$ac_objext | 
| 6726 |  | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| 6744 |  | ac_status=$? | 
| 6745 |  | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| 6746 |  | (exit $ac_status); }; }; then | 
| 6747 | < | echo "$as_me:$LINENO: result: yes" >&5 | 
| 6748 | < | echo "${ECHO_T}yes" >&6 | 
| 6749 | < | LIBS="-l$fftwname $LIBS" | 
| 6747 | > | ac_header_compiler=yes | 
| 6748 | > | else | 
| 6749 | > | echo "$as_me: failed program was:" >&5 | 
| 6750 | > | sed 's/^/| /' conftest.$ac_ext >&5 | 
| 6751 | > |  | 
| 6752 | > | ac_header_compiler=no | 
| 6753 | > | fi | 
| 6754 | > | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| 6755 | > | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | 
| 6756 | > | echo "${ECHO_T}$ac_header_compiler" >&6 | 
| 6757 | > |  | 
| 6758 | > | # Is the header present? | 
| 6759 | > | echo "$as_me:$LINENO: checking dfftw.h presence" >&5 | 
| 6760 | > | echo $ECHO_N "checking dfftw.h presence... $ECHO_C" >&6 | 
| 6761 |  | cat >conftest.$ac_ext <<_ACEOF | 
| 6762 |  | /* confdefs.h.  */ | 
| 6763 |  | _ACEOF | 
| 6764 |  | cat confdefs.h >>conftest.$ac_ext | 
| 6765 |  | cat >>conftest.$ac_ext <<_ACEOF | 
| 6766 |  | /* end confdefs.h.  */ | 
| 6767 | < |  | 
| 7136 | < |  | 
| 7137 | < | #ifdef FC_DUMMY_MAIN | 
| 7138 | < | #ifndef FC_DUMMY_MAIN_EQ_F77 | 
| 7139 | < | #  ifdef __cplusplus | 
| 7140 | < | extern "C" | 
| 7141 | < | #  endif | 
| 7142 | < | int FC_DUMMY_MAIN() { return 1; } | 
| 7143 | < | #endif | 
| 7144 | < | #endif | 
| 7145 | < | int | 
| 7146 | < | main () | 
| 7147 | < | { | 
| 7148 | < | main (); | 
| 7149 | < | ; | 
| 7150 | < | return 0; | 
| 7151 | < | } | 
| 6767 | > | #include <dfftw.h> | 
| 6768 |  | _ACEOF | 
| 6769 | < | rm -f conftest.$ac_objext conftest$ac_exeext | 
| 6770 | < | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| 7155 | < | (eval $ac_link) 2>conftest.er1 | 
| 6769 | > | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | 
| 6770 | > | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | 
| 6771 |  | ac_status=$? | 
| 6772 |  | grep -v '^ *+' conftest.er1 >conftest.err | 
| 6773 |  | rm -f conftest.er1 | 
| 6774 |  | cat conftest.err >&5 | 
| 6775 |  | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| 6776 | < | (exit $ac_status); } && | 
| 6777 | < | { ac_try='test -z "$ac_c_werror_flag" | 
| 6778 | < | || test ! -s conftest.err' | 
| 6779 | < | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
| 6780 | < | (eval $ac_try) 2>&5 | 
| 6781 | < | ac_status=$? | 
| 6782 | < | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| 7168 | < | (exit $ac_status); }; } && | 
| 7169 | < | { ac_try='test -s conftest$ac_exeext' | 
| 7170 | < | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
| 7171 | < | (eval $ac_try) 2>&5 | 
| 7172 | < | ac_status=$? | 
| 7173 | < | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| 7174 | < | (exit $ac_status); }; }; then | 
| 7175 | < | : | 
| 6776 | > | (exit $ac_status); } >/dev/null; then | 
| 6777 | > | if test -s conftest.err; then | 
| 6778 | > | ac_cpp_err=$ac_c_preproc_warn_flag | 
| 6779 | > | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | 
| 6780 | > | else | 
| 6781 | > | ac_cpp_err= | 
| 6782 | > | fi | 
| 6783 |  | else | 
| 6784 | < | echo "$as_me: failed program was:" >&5 | 
| 7178 | < | sed 's/^/| /' conftest.$ac_ext >&5 | 
| 7179 | < |  | 
| 6784 | > | ac_cpp_err=yes | 
| 6785 |  | fi | 
| 6786 | < | rm -f conftest.err conftest.$ac_objext \ | 
| 6787 | < | conftest$ac_exeext conftest.$ac_ext | 
| 6786 | > | if test -z "$ac_cpp_err"; then | 
| 6787 | > | ac_header_preproc=yes | 
| 6788 |  | else | 
| 6789 |  | echo "$as_me: failed program was:" >&5 | 
| 6790 |  | sed 's/^/| /' conftest.$ac_ext >&5 | 
| 6791 |  |  | 
| 6792 | + | ac_header_preproc=no | 
| 6793 | + | fi | 
| 6794 | + | rm -f conftest.err conftest.$ac_ext | 
| 6795 | + | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | 
| 6796 | + | echo "${ECHO_T}$ac_header_preproc" >&6 | 
| 6797 |  |  | 
| 6798 | < | echo "$as_me:$LINENO: result: no" >&5 | 
| 6799 | < | echo "${ECHO_T}no" >&6 | 
| 6800 | < | { { echo "$as_me:$LINENO: error: Cant find $fftwname.h header. Make sure all your | 
| 6801 | < | fftw prefixes match - we already use $ac_fftw_firstname.h" >&5 | 
| 6802 | < | echo "$as_me: error: Cant find $fftwname.h header. Make sure all your | 
| 6803 | < | fftw prefixes match - we already use $ac_fftw_firstname.h" >&2;} | 
| 6804 | < | { (exit 1); exit 1; }; } | 
| 6805 | < |  | 
| 6798 | > | # So?  What about this header? | 
| 6799 | > | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | 
| 6800 | > | yes:no: ) | 
| 6801 | > | { echo "$as_me:$LINENO: WARNING: dfftw.h: accepted by the compiler, rejected by the preprocessor!" >&5 | 
| 6802 | > | echo "$as_me: WARNING: dfftw.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | 
| 6803 | > | { echo "$as_me:$LINENO: WARNING: dfftw.h: proceeding with the compiler's result" >&5 | 
| 6804 | > | echo "$as_me: WARNING: dfftw.h: proceeding with the compiler's result" >&2;} | 
| 6805 | > | ac_header_preproc=yes | 
| 6806 | > | ;; | 
| 6807 | > | no:yes:* ) | 
| 6808 | > | { echo "$as_me:$LINENO: WARNING: dfftw.h: present but cannot be compiled" >&5 | 
| 6809 | > | echo "$as_me: WARNING: dfftw.h: present but cannot be compiled" >&2;} | 
| 6810 | > | { echo "$as_me:$LINENO: WARNING: dfftw.h:     check for missing prerequisite headers?" >&5 | 
| 6811 | > | echo "$as_me: WARNING: dfftw.h:     check for missing prerequisite headers?" >&2;} | 
| 6812 | > | { echo "$as_me:$LINENO: WARNING: dfftw.h: see the Autoconf documentation" >&5 | 
| 6813 | > | echo "$as_me: WARNING: dfftw.h: see the Autoconf documentation" >&2;} | 
| 6814 | > | { echo "$as_me:$LINENO: WARNING: dfftw.h:     section \"Present But Cannot Be Compiled\"" >&5 | 
| 6815 | > | echo "$as_me: WARNING: dfftw.h:     section \"Present But Cannot Be Compiled\"" >&2;} | 
| 6816 | > | { echo "$as_me:$LINENO: WARNING: dfftw.h: proceeding with the preprocessor's result" >&5 | 
| 6817 | > | echo "$as_me: WARNING: dfftw.h: proceeding with the preprocessor's result" >&2;} | 
| 6818 | > | { echo "$as_me:$LINENO: WARNING: dfftw.h: in the future, the compiler will take precedence" >&5 | 
| 6819 | > | echo "$as_me: WARNING: dfftw.h: in the future, the compiler will take precedence" >&2;} | 
| 6820 | > | ( | 
| 6821 | > | cat <<\_ASBOX | 
| 6822 | > | ## ------------------------------ ## | 
| 6823 | > | ## Report this to gezelter@nd.edu ## | 
| 6824 | > | ## ------------------------------ ## | 
| 6825 | > | _ASBOX | 
| 6826 | > | ) | | 
| 6827 | > | sed "s/^/$as_me: WARNING:     /" >&2 | 
| 6828 | > | ;; | 
| 6829 | > | esac | 
| 6830 | > | echo "$as_me:$LINENO: checking for dfftw.h" >&5 | 
| 6831 | > | echo $ECHO_N "checking for dfftw.h... $ECHO_C" >&6 | 
| 6832 | > | if test "${ac_cv_header_dfftw_h+set}" = set; then | 
| 6833 | > | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| 6834 | > | else | 
| 6835 | > | ac_cv_header_dfftw_h=$ac_header_preproc | 
| 6836 |  | fi | 
| 6837 | < | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| 6837 | > | echo "$as_me:$LINENO: result: $ac_cv_header_dfftw_h" >&5 | 
| 6838 | > | echo "${ECHO_T}$ac_cv_header_dfftw_h" >&6 | 
| 6839 |  |  | 
| 6840 |  | fi | 
| 6841 | + | if test $ac_cv_header_dfftw_h = yes; then | 
| 6842 | + | fftw_cv_dfftw_h=yes | 
| 6843 | + | else | 
| 6844 | + | fftw_cv_dfftw_h=no | 
| 6845 | + | fi | 
| 6846 |  |  | 
| 6847 |  |  | 
| 6848 | < | fi | 
| 6848 | > | fi | 
| 6849 | > | fi | 
| 6850 | > | ac_ext=c | 
| 6851 | > | ac_cpp='$CPP $CPPFLAGS' | 
| 6852 | > | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
| 6853 | > | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
| 6854 | > | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
| 6855 |  |  | 
| 6856 | < | case ${ac_fftw_savedprefix} in | 
| 6857 | < | d) | 
| 6856 | > | if test "$fftw_cv_libfftw3" = "yes" -a "$fftw_cv_fftw3_h" = "yes"; then | 
| 6857 | > |  | 
| 6858 |  | cat >>confdefs.h <<\_ACEOF | 
| 6859 | < | #define FFTW_NAME_DFFTW | 
| 6859 | > | #define HAVE_FFTW3_H 1 | 
| 6860 |  | _ACEOF | 
| 6861 | < | ;; | 
| 6862 | < | *) | 
| 6861 | > |  | 
| 6862 | > | FFTW_INC_DIR="${FFTW_HOME}/include" | 
| 6863 | > | FFTW_LIB_DIR="${FFTW_HOME}/lib" | 
| 6864 | > | FFTW_LIBS="-lfftw3" | 
| 6865 | > | else | 
| 6866 | > | if test "$fftw_cv_libfftw" = "yes" -a "$fftw_cv_fftw_h" = "yes"; then | 
| 6867 | > |  | 
| 6868 |  | cat >>confdefs.h <<\_ACEOF | 
| 6869 | < | #define FFTW_NAME_FFTW | 
| 6869 | > | #define HAVE_FFTW_H 1 | 
| 6870 |  | _ACEOF | 
| 7214 | – | ;; | 
| 7215 | – | esac | 
| 7216 | – | else | 
| 7217 | – | echo "*******************************************************************" | 
| 7218 | – | echo "* FFTW libraries and include files are required for computing     *" | 
| 7219 | – | echo "* undulation spectra with the staticProps program.  If you don't  *" | 
| 7220 | – | echo "* fftw turned on, OOPSE will still work, but you won't be able to *" | 
| 7221 | – | echo "* analyze your trajectories for this property.                    *" | 
| 7222 | – | echo "*******************************************************************" | 
| 7223 | – | fi # end of fftw check | 
| 6871 |  |  | 
| 6872 | + | FFTW_INC_DIR="${FFTW_HOME}/include" | 
| 6873 | + | FFTW_LIB_DIR="${FFTW_HOME}/lib" | 
| 6874 | + | FFTW_LIBS="-lfftw" | 
| 6875 | + | else | 
| 6876 | + | if test "$fftw_cv_libdfftw" = "yes" -a "$fftw_cv_dfftw_h" = "yes"; then | 
| 6877 | + |  | 
| 6878 | + | cat >>confdefs.h <<\_ACEOF | 
| 6879 | + | #define HAVE_DFFTW_H 1 | 
| 6880 | + | _ACEOF | 
| 6881 | + |  | 
| 6882 | + | FFTW_INC_DIR="${FFTW_HOME}/include" | 
| 6883 | + | FFTW_LIB_DIR="${FFTW_HOME}/lib" | 
| 6884 | + | FFTW_LIBS="-ldfftw" | 
| 6885 | + | else | 
| 6886 | + | echo "$as_me:$LINENO: checking fftw in ${FFTW_HOME}" >&5 | 
| 6887 | + | echo $ECHO_N "checking fftw in ${FFTW_HOME}... $ECHO_C" >&6 | 
| 6888 | + | FFTW_INC_DIR= | 
| 6889 | + | FFTW_LIB_DIR= | 
| 6890 | + | FFTW_LIBS= | 
| 6891 | + | LDFLAGS="$FFTW_OLD_LDFLAGS" | 
| 6892 | + | CPPFLAGS="$FFTW_OLD_CPPFLAGS" | 
| 6893 | + | echo "$as_me:$LINENO: result: failed" >&5 | 
| 6894 | + | echo "${ECHO_T}failed" >&6 | 
| 6895 | + | echo "" | 
| 6896 | + | echo "*********************************************************" | 
| 6897 | + | echo "* WARNING: Could not find a working FFTW installation   *" | 
| 6898 | + | echo "* If you need the staticProps program to be able to     *" | 
| 6899 | + | echo "* compute undulation spectra, be sure to specify a      *" | 
| 6900 | + | echo "* valid fftw installation with --with-fftw=DIR          *" | 
| 6901 | + | echo "*                                                       *" | 
| 6902 | + | echo "* OOPSE will still work without fftw installed.         *" | 
| 6903 | + | echo "*********************************************************" | 
| 6904 | + | echo "" | 
| 6905 | + | fi | 
| 6906 | + | fi | 
| 6907 | + | fi | 
| 6908 | + |  | 
| 6909 | + |  | 
| 6910 | + |  | 
| 6911 | + | fi | 
| 6912 | + | fi | 
| 6913 | + | fi | 
| 6914 | + |  | 
| 6915 | + |  | 
| 6916 | + |  | 
| 6917 |  | # Checks for header files. | 
| 6918 |  | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 | 
| 6919 |  | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | 
| 11928 |  | case "${host_cpu}-${host_os}" in | 
| 11929 |  |  | 
| 11930 |  | *linux*) if test "$FC" = ifc -o "$FC" = ifort; then | 
| 11931 | < | FCFLAGS="-O3 -ip -no-prec-div -cxxlib-icc" | 
| 11931 | > | FCFLAGS="-O3 -ip -no-prec-div" | 
| 11932 |  | fi;; | 
| 11933 |  | rs6000*-aix*)  if test "$FC" = xlf90 -o "$FC" = f90 -o "$FC" = xlf95; then | 
| 11934 |  | FCFLAGS="-O3 -qarch=pwrx -qtune=pwrx -qansialias -w" | 
| 12986 |  |  | 
| 12987 |  |  | 
| 12988 |  |  | 
| 12989 | + | ac_ext=c | 
| 12990 | + | ac_cpp='$CPP $CPPFLAGS' | 
| 12991 | + | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
| 12992 | + | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
| 12993 | + | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
| 12994 | + |  | 
| 12995 |  | echo "$as_me:$LINENO: checking for mpi.h" >&5 | 
| 12996 |  | echo $ECHO_N "checking for mpi.h... $ECHO_C" >&6 | 
| 12997 |  | have_mpi_h=0 | 
| 12998 |  | rm -f conftest* | 
| 12999 | < | echo '#include <mpi.h>' > conftest.cc | 
| 13000 | < | if ${CXX} -I${MPI_INC_DIR} -c conftest.cc 2>&1 ; then | 
| 12999 | > | echo '#include <mpi.h>' > conftest.c | 
| 13000 | > | if ${CC} -I${MPI_INC_DIR} -c conftest.c 2>&1 ; then | 
| 13001 |  | echo "$as_me:$LINENO: result: yes" >&5 | 
| 13002 |  | echo "${ECHO_T}yes" >&6 | 
| 13003 |  | have_mpi_h=1 | 
| 13020 |  |  | 
| 13021 |  | echo "$as_me:$LINENO: checking whether mpif.h is usable" >&5 | 
| 13022 |  | echo $ECHO_N "checking whether mpif.h is usable... $ECHO_C" >&6 | 
| 13023 | + |  | 
| 13024 | + |  | 
| 13025 | + | ac_ext=${FC_SRCEXT-f} | 
| 13026 | + | ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5' | 
| 13027 | + | ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5' | 
| 13028 | + | ac_compiler_gnu=$ac_cv_fc_compiler_gnu | 
| 13029 | + |  | 
| 13030 | + | ac_save_ext=$ac_ext | 
| 13031 | + | ac_ext=F90 | 
| 13032 | + | ac_save_FCFLAGS=$FCFLAGS | 
| 13033 |  | have_mpif_h=0 | 
| 13034 |  | rm -f conftest* | 
| 13035 |  | cat >conftest.$ac_ext <<EOF | 
| 13059 |  | _ACEOF | 
| 13060 |  |  | 
| 13061 |  | fi | 
| 13062 | + | FCFLAGS=$ac_save_FCFLAGS | 
| 13063 | + | ac_ext=$ac_save_ext | 
| 13064 | + | ac_ext=c | 
| 13065 | + | ac_cpp='$CPP $CPPFLAGS' | 
| 13066 | + | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
| 13067 | + | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
| 13068 | + | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
| 13069 |  |  | 
| 13070 | + |  | 
| 13071 |  | ac_ext=c | 
| 13072 |  | ac_cpp='$CPP $CPPFLAGS' | 
| 13073 |  | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
| 13075 |  | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
| 13076 |  |  | 
| 13077 |  | ac_save_LDFLAGS=$LDFLAGS | 
| 13078 | < | LDFLAGS="${LDFLAGS} -L${MPI_LIB_DIR} " | 
| 13078 | > | LDFLAGS="-L${MPI_LIB_DIR} ${LDFLAGS} " | 
| 13079 |  |  | 
| 13080 |  | if test x = x"$MPI_LIB"; then | 
| 13081 |  | echo "$as_me:$LINENO: checking for MPI_Init in -lmpich" >&5 | 
| 13155 |  | fi | 
| 13156 |  |  | 
| 13157 |  | fi | 
| 13158 | + | $as_unset ac_cv_lib_mpich_MPI_Init | 
| 13159 |  | if test x = x"$MPI_LIB"; then | 
| 13160 | < | echo "$as_me:$LINENO: checking for MPI_Init in -lmpi" >&5 | 
| 13161 | < | echo $ECHO_N "checking for MPI_Init in -lmpi... $ECHO_C" >&6 | 
| 13162 | < | if test "${ac_cv_lib_mpi_MPI_Init+set}" = set; then | 
| 13160 | > | echo "$as_me:$LINENO: checking for MPI_Init in -lpmpich" >&5 | 
| 13161 | > | echo $ECHO_N "checking for MPI_Init in -lpmpich... $ECHO_C" >&6 | 
| 13162 | > | if test "${ac_cv_lib_pmpich_MPI_Init+set}" = set; then | 
| 13163 |  | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| 13164 |  | else | 
| 13165 |  | ac_check_lib_save_LIBS=$LIBS | 
| 13166 | < | LIBS="-lmpi  $LIBS" | 
| 13166 | > | LIBS="-lpmpich -lmpich -lpmpich -lmpich $LIBS" | 
| 13167 |  | cat >conftest.$ac_ext <<_ACEOF | 
| 13168 |  | /* confdefs.h.  */ | 
| 13169 |  | _ACEOF | 
| 13216 |  | ac_status=$? | 
| 13217 |  | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| 13218 |  | (exit $ac_status); }; }; then | 
| 13219 | < | ac_cv_lib_mpi_MPI_Init=yes | 
| 13219 | > | ac_cv_lib_pmpich_MPI_Init=yes | 
| 13220 |  | else | 
| 13221 |  | echo "$as_me: failed program was:" >&5 | 
| 13222 |  | sed 's/^/| /' conftest.$ac_ext >&5 | 
| 13223 |  |  | 
| 13224 | < | ac_cv_lib_mpi_MPI_Init=no | 
| 13224 | > | ac_cv_lib_pmpich_MPI_Init=no | 
| 13225 |  | fi | 
| 13226 |  | rm -f conftest.err conftest.$ac_objext \ | 
| 13227 |  | conftest$ac_exeext conftest.$ac_ext | 
| 13228 |  | LIBS=$ac_check_lib_save_LIBS | 
| 13229 |  | fi | 
| 13230 | < | echo "$as_me:$LINENO: result: $ac_cv_lib_mpi_MPI_Init" >&5 | 
| 13231 | < | echo "${ECHO_T}$ac_cv_lib_mpi_MPI_Init" >&6 | 
| 13232 | < | if test $ac_cv_lib_mpi_MPI_Init = yes; then | 
| 13233 | < | MPI_LIB="-lmpi" | 
| 13230 | > | echo "$as_me:$LINENO: result: $ac_cv_lib_pmpich_MPI_Init" >&5 | 
| 13231 | > | echo "${ECHO_T}$ac_cv_lib_pmpich_MPI_Init" >&6 | 
| 13232 | > | if test $ac_cv_lib_pmpich_MPI_Init = yes; then | 
| 13233 | > | MPI_LIB="-lpmpich -lmpich -lpmpich -lmpich" | 
| 13234 |  | fi | 
| 13235 |  |  | 
| 13236 |  | fi | 
| 13520 | – | $as_unset ac_cv_lib_mpi_MPI_Init | 
| 13237 |  | if test x = x"$MPI_LIB"; then | 
| 13238 |  | echo "$as_me:$LINENO: checking for MPI_Init in -lmpi" >&5 | 
| 13239 |  | echo $ECHO_N "checking for MPI_Init in -lmpi... $ECHO_C" >&6 | 
| 13241 |  | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| 13242 |  | else | 
| 13243 |  | ac_check_lib_save_LIBS=$LIBS | 
| 13244 | < | LIBS="-lmpi "-llam" $LIBS" | 
| 13244 | > | LIBS="-lmpi  $LIBS" | 
| 13245 |  | cat >conftest.$ac_ext <<_ACEOF | 
| 13246 |  | /* confdefs.h.  */ | 
| 13247 |  | _ACEOF | 
| 13308 |  | echo "$as_me:$LINENO: result: $ac_cv_lib_mpi_MPI_Init" >&5 | 
| 13309 |  | echo "${ECHO_T}$ac_cv_lib_mpi_MPI_Init" >&6 | 
| 13310 |  | if test $ac_cv_lib_mpi_MPI_Init = yes; then | 
| 13311 | < | MPI_LIB="-lmpi -llam" | 
| 13311 | > | MPI_LIB="-lmpi" | 
| 13312 |  | fi | 
| 13313 |  |  | 
| 13314 |  | fi | 
| 13315 | < | $as_unset ac_cv_lib_mpich_MPI_Init | 
| 13315 | > | $as_unset ac_cv_lib_mpi_MPI_Init | 
| 13316 |  | if test x = x"$MPI_LIB"; then | 
| 13317 | < | echo "$as_me:$LINENO: checking for MPI_Init in -lmpich" >&5 | 
| 13318 | < | echo $ECHO_N "checking for MPI_Init in -lmpich... $ECHO_C" >&6 | 
| 13319 | < | if test "${ac_cv_lib_mpich_MPI_Init+set}" = set; then | 
| 13317 | > | echo "$as_me:$LINENO: checking for MPI_Init in -lmpi" >&5 | 
| 13318 | > | echo $ECHO_N "checking for MPI_Init in -lmpi... $ECHO_C" >&6 | 
| 13319 | > | if test "${ac_cv_lib_mpi_MPI_Init+set}" = set; then | 
| 13320 |  | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| 13321 |  | else | 
| 13322 |  | ac_check_lib_save_LIBS=$LIBS | 
| 13323 | < | LIBS="-lmpich "-lpmpich" $LIBS" | 
| 13323 | > | LIBS="-lmpi -llam $LIBS" | 
| 13324 |  | cat >conftest.$ac_ext <<_ACEOF | 
| 13325 |  | /* confdefs.h.  */ | 
| 13326 |  | _ACEOF | 
| 13373 |  | ac_status=$? | 
| 13374 |  | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| 13375 |  | (exit $ac_status); }; }; then | 
| 13376 | < | ac_cv_lib_mpich_MPI_Init=yes | 
| 13376 | > | ac_cv_lib_mpi_MPI_Init=yes | 
| 13377 |  | else | 
| 13378 |  | echo "$as_me: failed program was:" >&5 | 
| 13379 |  | sed 's/^/| /' conftest.$ac_ext >&5 | 
| 13380 |  |  | 
| 13381 | < | ac_cv_lib_mpich_MPI_Init=no | 
| 13381 | > | ac_cv_lib_mpi_MPI_Init=no | 
| 13382 |  | fi | 
| 13383 |  | rm -f conftest.err conftest.$ac_objext \ | 
| 13384 |  | conftest$ac_exeext conftest.$ac_ext | 
| 13385 |  | LIBS=$ac_check_lib_save_LIBS | 
| 13386 |  | fi | 
| 13387 | < | echo "$as_me:$LINENO: result: $ac_cv_lib_mpich_MPI_Init" >&5 | 
| 13388 | < | echo "${ECHO_T}$ac_cv_lib_mpich_MPI_Init" >&6 | 
| 13389 | < | if test $ac_cv_lib_mpich_MPI_Init = yes; then | 
| 13390 | < | MPI_LIB="-lpmpich -lmpich" | 
| 13387 | > | echo "$as_me:$LINENO: result: $ac_cv_lib_mpi_MPI_Init" >&5 | 
| 13388 | > | echo "${ECHO_T}$ac_cv_lib_mpi_MPI_Init" >&6 | 
| 13389 | > | if test $ac_cv_lib_mpi_MPI_Init = yes; then | 
| 13390 | > | MPI_LIB="-lmpi -llam" | 
| 13391 |  | fi | 
| 13392 |  |  | 
| 13393 |  | fi | 
| 13678 | – |  | 
| 13394 |  | $as_unset ac_cv_lib_mpi_MPI_Init | 
| 13395 |  | if test x = x"$MPI_LIB"; then | 
| 13396 |  | echo "$as_me:$LINENO: checking for MPI_Init in -lmpi" >&5 | 
| 13499 |  |  | 
| 13500 |  |  | 
| 13501 |  |  | 
| 13787 | – | USE_CGAL=no | 
| 13788 | – | cgal_makefile=auto | 
| 13789 | – |  | 
| 13790 | – | # Check whether --with-cgal-makefile or --without-cgal-makefile was given. | 
| 13791 | – | if test "${with_cgal_makefile+set}" = set; then | 
| 13792 | – | withval="$with_cgal_makefile" | 
| 13793 | – | cgal_makefile="$withval" | 
| 13794 | – | fi; | 
| 13795 | – |  | 
| 13796 | – | if test "x$cgal_makefile" != xno; then | 
| 13797 | – |  | 
| 13798 | – | if test "x$cgal_makefile" = xauto -a "x$CGAL_MAKEFILE" != x; then | 
| 13799 | – | cgal_makefile="$CGAL_MAKEFILE" | 
| 13800 | – | fi | 
| 13801 | – |  | 
| 13802 | – | echo "$as_me:$LINENO: checking for cgal_makefile: $cgal_makefile" >&5 | 
| 13803 | – | echo $ECHO_N "checking for cgal_makefile: $cgal_makefile... $ECHO_C" >&6 | 
| 13804 | – |  | 
| 13805 | – | if test -f "$cgal_makefile"; then | 
| 13806 | – |  | 
| 13807 | – | cat >config.tmp.Makefile <<EOF | 
| 13808 | – | include $cgal_makefile | 
| 13809 | – | default: | 
| 13810 | – | @echo CGAL_OS_COMPILER=\"\${CGAL_OS_COMPILER}\" >config.tmp.cgalvariables | 
| 13811 | – | @echo CGAL_INCLDIR=\"\${CGAL_INCL_DIR}\" >>config.tmp.cgalvariables | 
| 13812 | – | @echo CGAL_INCLCONFDIR=\"\${CGAL_INCL_CONF_DIR}\" >>config.tmp.cgalvariables | 
| 13813 | – | @echo CGAL_LIBDIR=\"\${CGAL_LIB_DIR}/\${CGAL_OS_COMPILER}\" >>config.tmp.cgalvariables | 
| 13814 | – | @echo CGAL_RLIBDIR=\"\${CGAL_LIB_DIR}/\${CGAL_OS_COMPILER}\" >>config.tmp.cgalvariables | 
| 13815 | – | @echo CGAL_CXXFLAGS=\"\${CGAL_CXXFLAGS}\" >>config.tmp.cgalvariables | 
| 13816 | – | @echo GMP_INCLDIR=\"\${GMP_INCL_DIR}\" >>config.tmp.cgalvariables | 
| 13817 | – | @echo GMP_LIBDIR=\"\${GMP_LIB_DIR}\" >>config.tmp.cgalvariables | 
| 13818 | – | @echo GMP_RLIBDIR=\"\${GMP_LIB_DIR}\" >>config.tmp.cgalvariables | 
| 13819 | – | @echo LEDA_INCLDIR=\"\${LEDA_INCL_DIR}\" >>config.tmp.cgalvariables | 
| 13820 | – | @echo LEDA_LIBDIR=\"\${LEDA_LIB_DIR}\" >>config.tmp.cgalvariables | 
| 13821 | – | @echo LEDA_RLIBDIR=\"\${LEDA_LIB_DIR}\" >>config.tmp.cgalvariables | 
| 13822 | – | EOF | 
| 13823 | – |  | 
| 13824 | – | make -s -f config.tmp.Makefile | 
| 13825 | – | . config.tmp.cgalvariables | 
| 13826 | – |  | 
| 13827 | – | rm -f config.tmp.Makefile config.tmp.cgalvariables | 
| 13828 | – |  | 
| 13829 | – | if test "x$CGAL_INCLDIR" = "x"; then | 
| 13830 | – | CGAL_INCLDIR="" | 
| 13831 | – | fi | 
| 13832 | – |  | 
| 13833 | – | if test "x$CGAL_LIBDIR" = "x"; then | 
| 13834 | – | CGAL_LIBDIR="" | 
| 13835 | – | fi | 
| 13836 | – |  | 
| 13837 | – | if test "x$CGAL_RLIBDIR" = "x"; then | 
| 13838 | – | CGAL_RLIBDIR="" | 
| 13839 | – | fi | 
| 13840 | – |  | 
| 13841 | – | if test "x$LEDA_INCLDIR" = "x"; then | 
| 13842 | – | LEDA_INCLDIR="" | 
| 13843 | – | fi | 
| 13844 | – |  | 
| 13845 | – | if test "x$LEDA_LIBDIR" = "x"; then | 
| 13846 | – | LEDA_LIBDIR="" | 
| 13847 | – | fi | 
| 13848 | – |  | 
| 13849 | – | if test "x$LEDA_RLIBDIR" = "x"; then | 
| 13850 | – | LEDA_RLIBDIR="" | 
| 13851 | – | fi | 
| 13852 | – |  | 
| 13853 | – | if test "x$GMP_INCLDIR" = "x"; then | 
| 13854 | – | GMP_INCLDIR="" | 
| 13855 | – | fi | 
| 13856 | – |  | 
| 13857 | – | if test "x$GMP_LIBDIR" = "x"; then | 
| 13858 | – | GMP_LIBDIR="" | 
| 13859 | – | fi | 
| 13860 | – |  | 
| 13861 | – | if test "x$GMP_RLIBDIR" = "x"; then | 
| 13862 | – | GMP_RLIBDIR="" | 
| 13863 | – | fi | 
| 13864 | – |  | 
| 13865 | – | echo "$as_me:$LINENO: result: CGAL_OS_COMPILER=   $CGAL_OS_COMPILER" >&5 | 
| 13866 | – | echo "${ECHO_T}CGAL_OS_COMPILER=   $CGAL_OS_COMPILER" >&6 | 
| 13867 | – | echo "$as_me:$LINENO: result: CGAL_INCLDIR=       $CGAL_INCLDIR" >&5 | 
| 13868 | – | echo "${ECHO_T}CGAL_INCLDIR=       $CGAL_INCLDIR" >&6 | 
| 13869 | – | echo "$as_me:$LINENO: result: CGAL_INCLCONFDIR=   $CGAL_INCLCONFDIR" >&5 | 
| 13870 | – | echo "${ECHO_T}CGAL_INCLCONFDIR=   $CGAL_INCLCONFDIR" >&6 | 
| 13871 | – | echo "$as_me:$LINENO: result: CGAL_LIBDIR=        $CGAL_LIBDIR" >&5 | 
| 13872 | – | echo "${ECHO_T}CGAL_LIBDIR=        $CGAL_LIBDIR" >&6 | 
| 13873 | – | echo "$as_me:$LINENO: result: CGAL_CXXFLAGS=      $CGAL_CXXFLAGS" >&5 | 
| 13874 | – | echo "${ECHO_T}CGAL_CXXFLAGS=      $CGAL_CXXFLAGS" >&6 | 
| 13875 | – | echo "$as_me:$LINENO: result: LEDA_INCLDIR=       $LEDA_INCLDIR" >&5 | 
| 13876 | – | echo "${ECHO_T}LEDA_INCLDIR=       $LEDA_INCLDIR" >&6 | 
| 13877 | – | echo "$as_me:$LINENO: result: LEDA_LIBDIR=        $LEDA_LIBDIR" >&5 | 
| 13878 | – | echo "${ECHO_T}LEDA_LIBDIR=        $LEDA_LIBDIR" >&6 | 
| 13879 | – | echo "$as_me:$LINENO: result: GMP_INCLDIR=        $GMP_INCLDIR" >&5 | 
| 13880 | – | echo "${ECHO_T}GMP_INCLDIR=        $GMP_INCLDIR" >&6 | 
| 13881 | – | echo "$as_me:$LINENO: result: GMP_LIBDIR=         $GMP_LIBDIR" >&5 | 
| 13882 | – | echo "${ECHO_T}GMP_LIBDIR=         $GMP_LIBDIR" >&6 | 
| 13883 | – |  | 
| 13884 | – | ac_ext=cc | 
| 13885 | – | ac_cpp='$CXXCPP $CPPFLAGS' | 
| 13886 | – | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
| 13887 | – | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
| 13888 | – | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
| 13889 | – |  | 
| 13890 | – | save_CXXFLAGS="$CXXFLAGS" | 
| 13891 | – | CXXFLAGS="$CXXFLAGS -I$CGAL_INCLDIR -I$CGAL_INCLCONFDIR" | 
| 13892 | – | if test "${ac_cv_header_CGAL_Cartesian_h+set}" = set; then | 
| 13893 | – | echo "$as_me:$LINENO: checking for CGAL/Cartesian.h" >&5 | 
| 13894 | – | echo $ECHO_N "checking for CGAL/Cartesian.h... $ECHO_C" >&6 | 
| 13895 | – | if test "${ac_cv_header_CGAL_Cartesian_h+set}" = set; then | 
| 13896 | – | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| 13897 | – | fi | 
| 13898 | – | echo "$as_me:$LINENO: result: $ac_cv_header_CGAL_Cartesian_h" >&5 | 
| 13899 | – | echo "${ECHO_T}$ac_cv_header_CGAL_Cartesian_h" >&6 | 
| 13900 | – | else | 
| 13901 | – | # Is the header compilable? | 
| 13902 | – | echo "$as_me:$LINENO: checking CGAL/Cartesian.h usability" >&5 | 
| 13903 | – | echo $ECHO_N "checking CGAL/Cartesian.h usability... $ECHO_C" >&6 | 
| 13904 | – | cat >conftest.$ac_ext <<_ACEOF | 
| 13905 | – | /* confdefs.h.  */ | 
| 13906 | – | _ACEOF | 
| 13907 | – | cat confdefs.h >>conftest.$ac_ext | 
| 13908 | – | cat >>conftest.$ac_ext <<_ACEOF | 
| 13909 | – | /* end confdefs.h.  */ | 
| 13910 | – | $ac_includes_default | 
| 13911 | – | #include <CGAL/Cartesian.h> | 
| 13912 | – | _ACEOF | 
| 13913 | – | rm -f conftest.$ac_objext | 
| 13914 | – | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| 13915 | – | (eval $ac_compile) 2>conftest.er1 | 
| 13916 | – | ac_status=$? | 
| 13917 | – | grep -v '^ *+' conftest.er1 >conftest.err | 
| 13918 | – | rm -f conftest.er1 | 
| 13919 | – | cat conftest.err >&5 | 
| 13920 | – | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| 13921 | – | (exit $ac_status); } && | 
| 13922 | – | { ac_try='test -z "$ac_cxx_werror_flag" | 
| 13923 | – | || test ! -s conftest.err' | 
| 13924 | – | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
| 13925 | – | (eval $ac_try) 2>&5 | 
| 13926 | – | ac_status=$? | 
| 13927 | – | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| 13928 | – | (exit $ac_status); }; } && | 
| 13929 | – | { ac_try='test -s conftest.$ac_objext' | 
| 13930 | – | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
| 13931 | – | (eval $ac_try) 2>&5 | 
| 13932 | – | ac_status=$? | 
| 13933 | – | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| 13934 | – | (exit $ac_status); }; }; then | 
| 13935 | – | ac_header_compiler=yes | 
| 13936 | – | else | 
| 13937 | – | echo "$as_me: failed program was:" >&5 | 
| 13938 | – | sed 's/^/| /' conftest.$ac_ext >&5 | 
| 13939 | – |  | 
| 13940 | – | ac_header_compiler=no | 
| 13941 | – | fi | 
| 13942 | – | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| 13943 | – | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | 
| 13944 | – | echo "${ECHO_T}$ac_header_compiler" >&6 | 
| 13945 | – |  | 
| 13946 | – | # Is the header present? | 
| 13947 | – | echo "$as_me:$LINENO: checking CGAL/Cartesian.h presence" >&5 | 
| 13948 | – | echo $ECHO_N "checking CGAL/Cartesian.h presence... $ECHO_C" >&6 | 
| 13949 | – | cat >conftest.$ac_ext <<_ACEOF | 
| 13950 | – | /* confdefs.h.  */ | 
| 13951 | – | _ACEOF | 
| 13952 | – | cat confdefs.h >>conftest.$ac_ext | 
| 13953 | – | cat >>conftest.$ac_ext <<_ACEOF | 
| 13954 | – | /* end confdefs.h.  */ | 
| 13955 | – | #include <CGAL/Cartesian.h> | 
| 13956 | – | _ACEOF | 
| 13957 | – | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | 
| 13958 | – | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | 
| 13959 | – | ac_status=$? | 
| 13960 | – | grep -v '^ *+' conftest.er1 >conftest.err | 
| 13961 | – | rm -f conftest.er1 | 
| 13962 | – | cat conftest.err >&5 | 
| 13963 | – | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| 13964 | – | (exit $ac_status); } >/dev/null; then | 
| 13965 | – | if test -s conftest.err; then | 
| 13966 | – | ac_cpp_err=$ac_cxx_preproc_warn_flag | 
| 13967 | – | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | 
| 13968 | – | else | 
| 13969 | – | ac_cpp_err= | 
| 13970 | – | fi | 
| 13971 | – | else | 
| 13972 | – | ac_cpp_err=yes | 
| 13973 | – | fi | 
| 13974 | – | if test -z "$ac_cpp_err"; then | 
| 13975 | – | ac_header_preproc=yes | 
| 13976 | – | else | 
| 13977 | – | echo "$as_me: failed program was:" >&5 | 
| 13978 | – | sed 's/^/| /' conftest.$ac_ext >&5 | 
| 13979 | – |  | 
| 13980 | – | ac_header_preproc=no | 
| 13981 | – | fi | 
| 13982 | – | rm -f conftest.err conftest.$ac_ext | 
| 13983 | – | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | 
| 13984 | – | echo "${ECHO_T}$ac_header_preproc" >&6 | 
| 13985 | – |  | 
| 13986 | – | # So?  What about this header? | 
| 13987 | – | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in | 
| 13988 | – | yes:no: ) | 
| 13989 | – | { echo "$as_me:$LINENO: WARNING: CGAL/Cartesian.h: accepted by the compiler, rejected by the preprocessor!" >&5 | 
| 13990 | – | echo "$as_me: WARNING: CGAL/Cartesian.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | 
| 13991 | – | { echo "$as_me:$LINENO: WARNING: CGAL/Cartesian.h: proceeding with the compiler's result" >&5 | 
| 13992 | – | echo "$as_me: WARNING: CGAL/Cartesian.h: proceeding with the compiler's result" >&2;} | 
| 13993 | – | ac_header_preproc=yes | 
| 13994 | – | ;; | 
| 13995 | – | no:yes:* ) | 
| 13996 | – | { echo "$as_me:$LINENO: WARNING: CGAL/Cartesian.h: present but cannot be compiled" >&5 | 
| 13997 | – | echo "$as_me: WARNING: CGAL/Cartesian.h: present but cannot be compiled" >&2;} | 
| 13998 | – | { echo "$as_me:$LINENO: WARNING: CGAL/Cartesian.h:     check for missing prerequisite headers?" >&5 | 
| 13999 | – | echo "$as_me: WARNING: CGAL/Cartesian.h:     check for missing prerequisite headers?" >&2;} | 
| 14000 | – | { echo "$as_me:$LINENO: WARNING: CGAL/Cartesian.h: see the Autoconf documentation" >&5 | 
| 14001 | – | echo "$as_me: WARNING: CGAL/Cartesian.h: see the Autoconf documentation" >&2;} | 
| 14002 | – | { echo "$as_me:$LINENO: WARNING: CGAL/Cartesian.h:     section \"Present But Cannot Be Compiled\"" >&5 | 
| 14003 | – | echo "$as_me: WARNING: CGAL/Cartesian.h:     section \"Present But Cannot Be Compiled\"" >&2;} | 
| 14004 | – | { echo "$as_me:$LINENO: WARNING: CGAL/Cartesian.h: proceeding with the preprocessor's result" >&5 | 
| 14005 | – | echo "$as_me: WARNING: CGAL/Cartesian.h: proceeding with the preprocessor's result" >&2;} | 
| 14006 | – | { echo "$as_me:$LINENO: WARNING: CGAL/Cartesian.h: in the future, the compiler will take precedence" >&5 | 
| 14007 | – | echo "$as_me: WARNING: CGAL/Cartesian.h: in the future, the compiler will take precedence" >&2;} | 
| 14008 | – | ( | 
| 14009 | – | cat <<\_ASBOX | 
| 14010 | – | ## ------------------------------ ## | 
| 14011 | – | ## Report this to gezelter@nd.edu ## | 
| 14012 | – | ## ------------------------------ ## | 
| 14013 | – | _ASBOX | 
| 14014 | – | ) | | 
| 14015 | – | sed "s/^/$as_me: WARNING:     /" >&2 | 
| 14016 | – | ;; | 
| 14017 | – | esac | 
| 14018 | – | echo "$as_me:$LINENO: checking for CGAL/Cartesian.h" >&5 | 
| 14019 | – | echo $ECHO_N "checking for CGAL/Cartesian.h... $ECHO_C" >&6 | 
| 14020 | – | if test "${ac_cv_header_CGAL_Cartesian_h+set}" = set; then | 
| 14021 | – | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| 14022 | – | else | 
| 14023 | – | ac_cv_header_CGAL_Cartesian_h=$ac_header_preproc | 
| 14024 | – | fi | 
| 14025 | – | echo "$as_me:$LINENO: result: $ac_cv_header_CGAL_Cartesian_h" >&5 | 
| 14026 | – | echo "${ECHO_T}$ac_cv_header_CGAL_Cartesian_h" >&6 | 
| 14027 | – |  | 
| 14028 | – | fi | 
| 14029 | – | if test $ac_cv_header_CGAL_Cartesian_h = yes; then | 
| 14030 | – | cgal=yes | 
| 14031 | – | else | 
| 14032 | – | cgal=no | 
| 14033 | – | fi | 
| 14034 | – |  | 
| 14035 | – |  | 
| 14036 | – | CXXFLAGS="$save_CXXFLAGS" | 
| 14037 | – |  | 
| 14038 | – | if test "x$cgal" = xyes; then | 
| 14039 | – | echo "$as_me:$LINENO: checking for CGAL version" >&5 | 
| 14040 | – | echo $ECHO_N "checking for CGAL version... $ECHO_C" >&6 | 
| 14041 | – | LOCATION=${CGAL_INCLDIR} | 
| 14042 | – | LOCATION=${LOCATION:-/usr/include} | 
| 14043 | – | if test -f $LOCATION/CGAL/version.h; then | 
| 14044 | – | CGAL_VERSION=`grep '#define.*\<CGAL_VERSION\>.*' $LOCATION/CGAL/version.h | sed 's/[^0-9\.]*//g'` | 
| 14045 | – | else | 
| 14046 | – | CGAL_VERSION=`grep '#define.*\<CGAL_VERSION\>.*' $LOCATION/CGAL/config.h | sed 's/[^0-9\.]*//g'` | 
| 14047 | – | fi | 
| 14048 | – | if echo $CGAL_VERSION | grep -q "^[3456789]"; then | 
| 14049 | – | echo "$as_me:$LINENO: result: ($CGAL_VERSION) yes" >&5 | 
| 14050 | – | echo "${ECHO_T}($CGAL_VERSION) yes" >&6 | 
| 14051 | – | else | 
| 14052 | – | echo "$as_me:$LINENO: result: ($CGAL_VERSION) no" >&5 | 
| 14053 | – | echo "${ECHO_T}($CGAL_VERSION) no" >&6 | 
| 14054 | – | cgal=no | 
| 14055 | – | fi | 
| 14056 | – | fi | 
| 14057 | – |  | 
| 14058 | – | if test "x$cgal" = xyes; then | 
| 14059 | – | CGAL_LIBS="-lCGAL" | 
| 14060 | – | echo "$as_me:$LINENO: checking whether CGAL uses LEDA" >&5 | 
| 14061 | – | echo $ECHO_N "checking whether CGAL uses LEDA... $ECHO_C" >&6 | 
| 14062 | – | if echo $CGAL_CXXFLAGS | grep -q -- -DCGAL_USE_LEDA; then | 
| 14063 | – | CGAL_USES_LEDA=yes | 
| 14064 | – | echo "$as_me:$LINENO: result: yes" >&5 | 
| 14065 | – | echo "${ECHO_T}yes" >&6 | 
| 14066 | – | CGAL_DEFINES="-DCGAL_USE_LEDA -DLEDA_PREFIX" | 
| 14067 | – | else | 
| 14068 | – | echo "$as_me:$LINENO: result: no" >&5 | 
| 14069 | – | echo "${ECHO_T}no" >&6 | 
| 14070 | – | CGAL_USES_LEDA=no | 
| 14071 | – | fi | 
| 14072 | – |  | 
| 14073 | – | echo "$as_me:$LINENO: checking whether CGAL uses GMP" >&5 | 
| 14074 | – | echo $ECHO_N "checking whether CGAL uses GMP... $ECHO_C" >&6 | 
| 14075 | – | if echo $CGAL_CXXFLAGS | grep -q -- -DCGAL_USE_GMP; then | 
| 14076 | – | CGAL_USES_GMP=yes | 
| 14077 | – | echo "$as_me:$LINENO: result: yes" >&5 | 
| 14078 | – | echo "${ECHO_T}yes" >&6 | 
| 14079 | – | CGAL_DEFINES="-DCGAL_USE_GMP $CGAL_DEFINES" | 
| 14080 | – | else | 
| 14081 | – | echo "$as_me:$LINENO: result: no" >&5 | 
| 14082 | – | echo "${ECHO_T}no" >&6 | 
| 14083 | – | CGAL_USES_GMP=no | 
| 14084 | – | fi | 
| 14085 | – |  | 
| 14086 | – | CGAL_LIBS="$CGAL_LIBS -lm" | 
| 14087 | – |  | 
| 14088 | – | CGAL_CXXFLAGS="-ftemplate-depth-50" | 
| 14089 | – |  | 
| 14090 | – | echo "$as_me:$LINENO: result: CGAL_USES_LEDA=     $CGAL_USES_LEDA" >&5 | 
| 14091 | – | echo "${ECHO_T}CGAL_USES_LEDA=     $CGAL_USES_LEDA" >&6 | 
| 14092 | – | echo "$as_me:$LINENO: result: CGAL_USES_GMP =     $CGAL_USES_GMP" >&5 | 
| 14093 | – | echo "${ECHO_T}CGAL_USES_GMP =     $CGAL_USES_GMP" >&6 | 
| 14094 | – | echo "$as_me:$LINENO: result: CGAL_INCLDIR  =     $CGAL_INCLDIR" >&5 | 
| 14095 | – | echo "${ECHO_T}CGAL_INCLDIR  =     $CGAL_INCLDIR" >&6 | 
| 14096 | – | echo "$as_me:$LINENO: result: CGAL_LIBDIR   =     $CGAL_LIBDIR" >&5 | 
| 14097 | – | echo "${ECHO_T}CGAL_LIBDIR   =     $CGAL_LIBDIR" >&6 | 
| 14098 | – | echo "$as_me:$LINENO: result: CGAL_DEFINES  =     $CGAL_DEFINES" >&5 | 
| 14099 | – | echo "${ECHO_T}CGAL_DEFINES  =     $CGAL_DEFINES" >&6 | 
| 14100 | – | echo "$as_me:$LINENO: result: CGAL_CXXFLAGS =     $CGAL_CXXFLAGS" >&5 | 
| 14101 | – | echo "${ECHO_T}CGAL_CXXFLAGS =     $CGAL_CXXFLAGS" >&6 | 
| 14102 | – | echo "$as_me:$LINENO: result: CGAL_LIBS     =     $CGAL_LIBS" >&5 | 
| 14103 | – | echo "${ECHO_T}CGAL_LIBS     =     $CGAL_LIBS" >&6 | 
| 14104 | – | fi | 
| 14105 | – |  | 
| 14106 | – | if test "x$cgal" = xyes; then | 
| 14107 | – | save_LIBS="$LIBS" | 
| 14108 | – | LIBS="$LIBS -L$CGAL_LIBDIR" | 
| 14109 | – | if test "x$CGAL_USES_LEDA" = xyes; then | 
| 14110 | – | LIBS="-lL $LIBS -L$LEDA_LIBDIR" | 
| 14111 | – | fi | 
| 14112 | – | # if test "x$CGAL_USES_GMP" = xyes; then | 
| 14113 | – | #   LIBS="-lgmp $LIBS $GMP_LIBDIR" | 
| 14114 | – | # fi | 
| 14115 | – | echo "$as_me:$LINENO: checking for ::CGAL::Cartesian<int>::Point_2 in -lCGAL" >&5 | 
| 14116 | – | echo $ECHO_N "checking for ::CGAL::Cartesian<int>::Point_2 in -lCGAL... $ECHO_C" >&6 | 
| 14117 | – | save_CXXFLAGS_CHECK_CXX_LIB="$CXXFLAGS" | 
| 14118 | – | CXXFLAGS="$CXXFLAGS -I$CGAL_INCLDIR -I$CGAL_INCLCONFDIR" | 
| 14119 | – | save_LIBS_CHECK_CXX_LIB="$LIBS" | 
| 14120 | – | LIBS="-lCGAL  $LIBS" | 
| 14121 | – | cat >conftest.$ac_ext <<_ACEOF | 
| 14122 | – | /* confdefs.h.  */ | 
| 14123 | – | _ACEOF | 
| 14124 | – | cat confdefs.h >>conftest.$ac_ext | 
| 14125 | – | cat >>conftest.$ac_ext <<_ACEOF | 
| 14126 | – | /* end confdefs.h.  */ | 
| 14127 | – | #include <CGAL/Cartesian.h> | 
| 14128 | – | #ifdef FC_DUMMY_MAIN | 
| 14129 | – | #ifndef FC_DUMMY_MAIN_EQ_F77 | 
| 14130 | – | #  ifdef __cplusplus | 
| 14131 | – | extern "C" | 
| 14132 | – | #  endif | 
| 14133 | – | int FC_DUMMY_MAIN() { return 1; } | 
| 14134 | – | #endif | 
| 14135 | – | #endif | 
| 14136 | – | int | 
| 14137 | – | main () | 
| 14138 | – | { | 
| 14139 | – | ::CGAL::Cartesian<int>::Point_2 P | 
| 14140 | – | ; | 
| 14141 | – | return 0; | 
| 14142 | – | } | 
| 14143 | – | _ACEOF | 
| 14144 | – | rm -f conftest.$ac_objext conftest$ac_exeext | 
| 14145 | – | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| 14146 | – | (eval $ac_link) 2>conftest.er1 | 
| 14147 | – | ac_status=$? | 
| 14148 | – | grep -v '^ *+' conftest.er1 >conftest.err | 
| 14149 | – | rm -f conftest.er1 | 
| 14150 | – | cat conftest.err >&5 | 
| 14151 | – | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| 14152 | – | (exit $ac_status); } && | 
| 14153 | – | { ac_try='test -z "$ac_cxx_werror_flag" | 
| 14154 | – | || test ! -s conftest.err' | 
| 14155 | – | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
| 14156 | – | (eval $ac_try) 2>&5 | 
| 14157 | – | ac_status=$? | 
| 14158 | – | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| 14159 | – | (exit $ac_status); }; } && | 
| 14160 | – | { ac_try='test -s conftest$ac_exeext' | 
| 14161 | – | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
| 14162 | – | (eval $ac_try) 2>&5 | 
| 14163 | – | ac_status=$? | 
| 14164 | – | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| 14165 | – | (exit $ac_status); }; }; then | 
| 14166 | – | echo "$as_me:$LINENO: result: yes" >&5 | 
| 14167 | – | echo "${ECHO_T}yes" >&6 | 
| 14168 | – | cgal=yes | 
| 14169 | – | else | 
| 14170 | – | echo "$as_me: failed program was:" >&5 | 
| 14171 | – | sed 's/^/| /' conftest.$ac_ext >&5 | 
| 14172 | – |  | 
| 14173 | – | echo "$as_me:$LINENO: result: no" >&5 | 
| 14174 | – | echo "${ECHO_T}no" >&6 | 
| 14175 | – | cgal=no | 
| 14176 | – | fi | 
| 14177 | – | rm -f conftest.err conftest.$ac_objext \ | 
| 14178 | – | conftest$ac_exeext conftest.$ac_ext | 
| 14179 | – | CXXFLAGS="$save_CXXFLAGS_CHECK_CXX_LIB" | 
| 14180 | – | LIBS="$save_LIBS_CHECK_CXX_LIB" | 
| 14181 | – | LIBS="$save_LIBS" | 
| 14182 | – | fi | 
| 14183 | – |  | 
| 14184 | – | fi | 
| 14185 | – | ac_ext=c | 
| 14186 | – | ac_cpp='$CPP $CPPFLAGS' | 
| 14187 | – | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
| 14188 | – | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
| 14189 | – | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
| 14190 | – |  | 
| 14191 | – |  | 
| 14192 | – | fi | 
| 14193 | – |  | 
| 14194 | – | if test "x$cgal" = xyes; then | 
| 14195 | – | USE_CGAL=yes | 
| 14196 | – |  | 
| 14197 | – | cat >>confdefs.h <<\_ACEOF | 
| 14198 | – | #define HAVE_CGAL 1 | 
| 14199 | – | _ACEOF | 
| 14200 | – |  | 
| 14201 | – |  | 
| 14202 | – | cat >>confdefs.h <<_ACEOF | 
| 14203 | – | #define CGAL_VERSION $CGAL_VERSION | 
| 14204 | – | _ACEOF | 
| 14205 | – |  | 
| 14206 | – | if ! echo $CGAL_VERSION | grep -q "^3.0"; then | 
| 14207 | – | { echo "$as_me:$LINENO: WARNING: *****************************************************" >&5 | 
| 14208 | – | echo "$as_me: WARNING: *****************************************************" >&2;} | 
| 14209 | – | { echo "$as_me:$LINENO: WARNING: *** Warning: Your CGAL version is newer than the  ***" >&5 | 
| 14210 | – | echo "$as_me: WARNING: *** Warning: Your CGAL version is newer than the  ***" >&2;} | 
| 14211 | – | { echo "$as_me:$LINENO: WARNING: *** supported versions. It may still work though. ***" >&5 | 
| 14212 | – | echo "$as_me: WARNING: *** supported versions. It may still work though. ***" >&2;} | 
| 14213 | – | { echo "$as_me:$LINENO: WARNING: *****************************************************" >&5 | 
| 14214 | – | echo "$as_me: WARNING: *****************************************************" >&2;} | 
| 14215 | – | fi | 
| 14216 | – | else | 
| 14217 | – | if test "x$cgal_makefile" != xno; then | 
| 14218 | – | echo "$as_me:$LINENO: result: No CGAL support. These are not the droids you want." >&5 | 
| 14219 | – | echo "${ECHO_T}No CGAL support. These are not the droids you want." >&6 | 
| 14220 | – | fi | 
| 14221 | – | CGAL_INCLDIR= | 
| 14222 | – | CGAL_LIBDIR= | 
| 14223 | – | CGAL_RLIBDIR= | 
| 14224 | – | CGAL_DEFINES= | 
| 14225 | – | CGAL_CXXFLAGS= | 
| 14226 | – | CGAL_LIBS= | 
| 14227 | – | fi | 
| 14228 | – |  | 
| 14229 | – |  | 
| 14230 | – | CGAL_INC_DIR="${CGAL_INCLDIR} ${CGAL_INCLCONFDIR}" | 
| 14231 | – |  | 
| 14232 | – | CGAL_LIB_DIR=${CGAL_LIBDIR} | 
| 14233 | – |  | 
| 14234 | – | CGAL_RLIB_DIR=${CGAL_RLIBDIR} | 
| 14235 | – |  | 
| 14236 | – |  | 
| 14237 | – |  | 
| 14238 | – |  | 
| 14239 | – |  | 
| 14240 | – |  | 
| 14241 | – |  | 
| 13502 |  | # Check whether --enable-doxygen or --disable-doxygen was given. | 
| 13503 |  | if test "${enable_doxygen+set}" = set; then | 
| 13504 |  | enableval="$enable_doxygen" | 
| 13652 |  |  | 
| 13653 |  |  | 
| 13654 |  |  | 
| 13655 | < | ac_config_files="$ac_config_files make/Makefile src/utils/Makefile src/applications/nanoRodBuilder/Makefile scripts/filepp" | 
| 13655 | > | ac_config_files="$ac_config_files make/Makefile src/utils/Makefile src/math/Makefile src/applications/nanoRodBuilder/Makefile scripts/filepp" | 
| 13656 |  |  | 
| 13657 |  |  | 
| 13658 |  | cat >confcache <<\_ACEOF | 
| 14185 |  | # Handling of arguments. | 
| 14186 |  | "make/Makefile" ) CONFIG_FILES="$CONFIG_FILES make/Makefile" ;; | 
| 14187 |  | "src/utils/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/Makefile" ;; | 
| 14188 | + | "src/math/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/math/Makefile" ;; | 
| 14189 |  | "src/applications/nanoRodBuilder/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/applications/nanoRodBuilder/Makefile" ;; | 
| 14190 |  | "scripts/filepp" ) CONFIG_FILES="$CONFIG_FILES scripts/filepp" ;; | 
| 14191 |  | "src/getopt.h" ) CONFIG_LINKS="$CONFIG_LINKS src/getopt.h:src/utils/gnugetopt.h" ;; | 
| 14285 |  | s,@host_os@,$host_os,;t t | 
| 14286 |  | s,@PROGNAME@,$PROGNAME,;t t | 
| 14287 |  | s,@debug@,$debug,;t t | 
| 14288 | + | s,@USE_SINGLE_PRECISION@,$USE_SINGLE_PRECISION,;t t | 
| 14289 |  | s,@CXX@,$CXX,;t t | 
| 14290 |  | s,@CXXFLAGS@,$CXXFLAGS,;t t | 
| 14291 |  | s,@LDFLAGS@,$LDFLAGS,;t t | 
| 14323 |  | s,@MODDIRFLAG@,$MODDIRFLAG,;t t | 
| 14324 |  | s,@F90MODINCSPEC@,$F90MODINCSPEC,;t t | 
| 14325 |  | s,@F90_MODULE_NAMES@,$F90_MODULE_NAMES,;t t | 
| 14326 | + | s,@ZLIB_INC_DIR@,$ZLIB_INC_DIR,;t t | 
| 14327 | + | s,@ZLIB_LIB_DIR@,$ZLIB_LIB_DIR,;t t | 
| 14328 | + | s,@ZLIB@,$ZLIB,;t t | 
| 14329 | + | s,@FFTW_INC_DIR@,$FFTW_INC_DIR,;t t | 
| 14330 | + | s,@FFTW_LIB_DIR@,$FFTW_LIB_DIR,;t t | 
| 14331 | + | s,@FFTW_LIBS@,$FFTW_LIBS,;t t | 
| 14332 |  | s,@LIBOBJS@,$LIBOBJS,;t t | 
| 14333 |  | s,@POW_LIB@,$POW_LIB,;t t | 
| 14334 |  | s,@CXXCPP@,$CXXCPP,;t t | 
| 14339 |  | s,@MPI_LIB@,$MPI_LIB,;t t | 
| 14340 |  | s,@MPI_F90_LIB@,$MPI_F90_LIB,;t t | 
| 14341 |  | s,@USE_MPI@,$USE_MPI,;t t | 
| 15074 | – | s,@USE_CGAL@,$USE_CGAL,;t t | 
| 15075 | – | s,@CGAL_INC_DIR@,$CGAL_INC_DIR,;t t | 
| 15076 | – | s,@CGAL_LIB_DIR@,$CGAL_LIB_DIR,;t t | 
| 15077 | – | s,@CGAL_RLIB_DIR@,$CGAL_RLIB_DIR,;t t | 
| 15078 | – | s,@CGAL_DEFINES@,$CGAL_DEFINES,;t t | 
| 15079 | – | s,@CGAL_CXXFLAGS@,$CGAL_CXXFLAGS,;t t | 
| 15080 | – | s,@CGAL_LIBS@,$CGAL_LIBS,;t t | 
| 14342 |  | s,@DOXYGEN@,$DOXYGEN,;t t | 
| 14343 |  | s,@DOT@,$DOT,;t t | 
| 14344 |  | s,@DOC@,$DOC,;t t | 
| 14591 |  | case $ac_file in | 
| 14592 |  | make/Makefile ) chmod 0755 scripts/* ;; | 
| 14593 |  | src/utils/Makefile ) chmod 0755 scripts/* ;; | 
| 14594 | + | src/math/Makefile ) chmod 0755 scripts/* ;; | 
| 14595 |  | src/applications/nanoRodBuilder/Makefile ) chmod 0755 scripts/* ;; | 
| 14596 |  | scripts/filepp ) chmod 0755 scripts/* ;; | 
| 14597 |  | esac |