ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/OpenMD/branches/development/configure
(Generate patch)

Comparing trunk/configure (file contents):
Revision 848 by gezelter, Wed Jan 11 23:06:08 2006 UTC vs.
Revision 958 by gezelter, Wed May 17 03:03:03 2006 UTC

# Line 1 | Line 1
1   #! /bin/sh
2   # Guess values for system-dependent variables and create Makefiles.
3 < # Generated by GNU Autoconf 2.59 for OOPSE 2.0.
3 > # Generated by GNU Autoconf 2.59 for OOPSE 3.0.
4   #
5   # Report bugs to <gezelter@nd.edu>.
6   #
# Line 269 | Line 269 | PACKAGE_TARNAME='oopse'
269   # Identity of this package.
270   PACKAGE_NAME='OOPSE'
271   PACKAGE_TARNAME='oopse'
272 < PACKAGE_VERSION='2.0'
273 < PACKAGE_STRING='OOPSE 2.0'
272 > PACKAGE_VERSION='3.0'
273 > PACKAGE_STRING='OOPSE 3.0'
274   PACKAGE_BUGREPORT='gezelter@nd.edu'
275  
276   ac_unique_file="src/applications/oopse/oopse.cpp"
# Line 312 | Line 312 | ac_includes_default="\
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 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 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'
316   ac_subst_files=''
317  
318   # Initialize some variables set by options.
# Line 801 | Line 801 | if test "$ac_init_help" = "long"; then
801    # Omit some internal or obsolete options to make the list less imposing.
802    # This message is too long to be a string in the A/UX 3.1 sh.
803    cat <<_ACEOF
804 < \`configure' configures OOPSE 2.0 to adapt to many kinds of systems.
804 > \`configure' configures OOPSE 3.0 to adapt to many kinds of systems.
805  
806   Usage: $0 [OPTION]... [VAR=VALUE]...
807  
# Line 862 | Line 862 | if test -n "$ac_init_help"; then
862  
863   if test -n "$ac_init_help"; then
864    case $ac_init_help in
865 <     short | recursive ) echo "Configuration of OOPSE 2.0:";;
865 >     short | recursive ) echo "Configuration of OOPSE 3.0:";;
866     esac
867    cat <<\_ACEOF
868  
# Line 881 | Line 881 | Optional Packages:
881    --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
882    --with-perl-shebang     override what perl thinks is the way for the kernel
883                            to start it (seldom needed)
884 <  --with-zlib=DIR root directory path of zlib installation defaults to
885 <                    /usr/local or /usr if not found in /usr/local
886 <  --without-zlib to disable zlib usage completely
884 >  --with-zlib=DIR         root directory path of zlib installation (defaults
885 >                          to /usr/local or /usr if not found in /usr/local)
886 >  --with-fftw=DIR         root directory path of fftw installation (defaults
887 >                          to /usr/local or /usr if not found in /usr/local)
888    --with-mpi=<prefix>     compile with MPI installed in <prefix> [default=no]
889    --with-cgal-makefile=FILE  CGAL makefile that should be used
890  
# Line 1000 | Line 1001 | if $ac_init_version; then
1001   test -n "$ac_init_help" && exit 0
1002   if $ac_init_version; then
1003    cat <<\_ACEOF
1004 < OOPSE configure 2.0
1004 > OOPSE configure 3.0
1005   generated by GNU Autoconf 2.59
1006  
1007   Copyright (C) 2003 Free Software Foundation, Inc.
# Line 1014 | Line 1015 | running configure, to aid debugging if configure makes
1015   This file contains any messages produced by compilers while
1016   running configure, to aid debugging if configure makes a mistake.
1017  
1018 < It was created by OOPSE $as_me 2.0, which was
1018 > It was created by OOPSE $as_me 3.0, which was
1019   generated by GNU Autoconf 2.59.  Invocation command line was
1020  
1021    $ $0 $@
# Line 1419 | Line 1420 | ac_configure="$SHELL $ac_aux_dir/configure" # This sho
1420  
1421  
1422  
1423 +
1424 +
1425   #
1426   #
1427   #
1428 +
1429 +
1430 +
1431 +
1432  
1433  
1434   # AC_F90_MODULE_NAMES
# Line 1430 | Line 1437 | ac_configure="$SHELL $ac_aux_dir/configure" # This sho
1437   # Figure out how the Fortran 90 compiler constructs module file names
1438   #
1439   # AC_F90_MODULE_NAMES
1440 +
1441 +
1442 +
1443 +
1444 +
1445 +
1446 +
1447 +
1448 +
1449  
1450  
1451  
# Line 1466 | Line 1482 | ac_configure="$SHELL $ac_aux_dir/configure" # This sho
1482  
1483  
1484  
1485 +
1486 +
1487 +
1488 +
1489 +
1490 +
1491 +
1492 +
1493 +
1494 +
1495 +
1496 +
1497 +
1498 +
1499 +
1500 +
1501 +
1502 +
1503 +
1504 +
1505 +
1506 +
1507 +
1508 +
1509 +
1510 +
1511 +
1512 +
1513 +
1514 +
1515 +
1516 +
1517 +
1518 +
1519 +
1520 +
1521 +
1522 +
1523 +
1524 +
1525 +
1526 +
1527 +
1528   # who am i
1529   # Make sure we can run config.sub.
1530   $ac_config_sub sun4 >/dev/null 2>&1 ||
# Line 1572 | Line 1631 | if test -n "$ac_tool_prefix"; then
1631   ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1632   ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1633   if test -n "$ac_tool_prefix"; then
1634 <  for ac_prog in $CCC pathCC icpc icc xlc++ xlC CC g++ c++
1634 >  for ac_prog in $CCC icpc icc pgCC pathCC c++ xlc++ xlC g++ CC
1635    do
1636      # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1637   set dummy $ac_tool_prefix$ac_prog; ac_word=$2
# Line 1614 | Line 1673 | if test -z "$CXX"; then
1673   fi
1674   if test -z "$CXX"; then
1675    ac_ct_CXX=$CXX
1676 <  for ac_prog in $CCC pathCC icpc icc xlc++ xlC CC g++ c++
1676 >  for ac_prog in $CCC icpc icc pgCC pathCC c++ xlc++ xlC g++ CC
1677   do
1678    # Extract the first word of "$ac_prog", so it can be a program name with args.
1679   set dummy $ac_prog; ac_word=$2
# Line 2128 | Line 2187 | if test -n "$ac_tool_prefix"; then
2187   ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2188   ac_compiler_gnu=$ac_cv_c_compiler_gnu
2189   if test -n "$ac_tool_prefix"; then
2190 <  for ac_prog in pathcc icc xlc gcc cc
2190 >  for ac_prog in icc pgcc pathcc cc xlc gcc
2191    do
2192      # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2193   set dummy $ac_tool_prefix$ac_prog; ac_word=$2
# Line 2170 | Line 2229 | if test -z "$CC"; then
2229   fi
2230   if test -z "$CC"; then
2231    ac_ct_CC=$CC
2232 <  for ac_prog in pathcc icc xlc gcc cc
2232 >  for ac_prog in icc pgcc pathcc cc xlc gcc
2233   do
2234    # Extract the first word of "$ac_prog", so it can be a program name with args.
2235   set dummy $ac_prog; ac_word=$2
# Line 2639 | Line 2698 | if test -n "$ac_tool_prefix"; then
2698   ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5'
2699   ac_compiler_gnu=$ac_cv_fc_compiler_gnu
2700   if test -n "$ac_tool_prefix"; then
2701 <  for ac_prog in pathf95 ifort ifc xlf95 pgf95 lf95 epcf90 xlf90 pgf90 fort f95 f90 g95 f77
2701 >  for ac_prog in ifort ifc pgf95 pathf95 xlf95 lf95 epcf90 pathf90 xlf90 f95 f90 gfortran g95 fort
2702    do
2703      # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2704   set dummy $ac_tool_prefix$ac_prog; ac_word=$2
# Line 2681 | Line 2740 | if test -z "$FC"; then
2740   fi
2741   if test -z "$FC"; then
2742    ac_ct_FC=$FC
2743 <  for ac_prog in pathf95 ifort ifc xlf95 pgf95 lf95 epcf90 xlf90 pgf90 fort f95 f90 g95 f77
2743 >  for ac_prog in ifort ifc pgf95 pathf95 xlf95 lf95 epcf90 pathf90 xlf90 f95 f90 gfortran g95 fort
2744   do
2745    # Extract the first word of "$ac_prog", so it can be a program name with args.
2746   set dummy $ac_prog; ac_word=$2
# Line 2726 | Line 2785 | fi
2785  
2786  
2787   # Provide some information about the compiler.
2788 < echo "$as_me:2729:" \
2788 > echo "$as_me:2788:" \
2789       "checking for Fortran compiler version" >&5
2790   ac_compiler=`set X $ac_compile; echo $2`
2791   { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
# Line 3478 | Line 3537 | if test "$AR" = "NONE"; then
3537   fi
3538  
3539   if test "$AR" = "NONE"; then
3481  { { echo "$as_me:$LINENO: error: --> Can't find \`ar'!" >&5
3482 echo "$as_me: error: --> Can't find \`ar'!" >&2;}
3483   { (exit 1); exit 1; }; }
3540    cat >confcache <<\_ACEOF
3541   # This file is a shell script that caches the results of configure
3542   # tests run on this system so they can be shared between configure
# Line 3977 | Line 4033 | FCFLAGS="$FCFLAGS $ac_verb"
4033   # flags.
4034   ac_save_FFLAGS=$FCFLAGS
4035   FCFLAGS="$FCFLAGS $ac_verb"
4036 < (eval echo $as_me:3980: \"$ac_link\") >&5
4036 > (eval echo $as_me:4036: \"$ac_link\") >&5
4037   ac_fc_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
4038   echo "$ac_fc_v_output" >&5
4039   FCFLAGS=$ac_save_FFLAGS
# Line 4055 | Line 4111 | FCFLAGS="$FCFLAGS $ac_cv_prog_fc_v"
4111   # flags.
4112   ac_save_FFLAGS=$FCFLAGS
4113   FCFLAGS="$FCFLAGS $ac_cv_prog_fc_v"
4114 < (eval echo $as_me:4058: \"$ac_link\") >&5
4114 > (eval echo $as_me:4114: \"$ac_link\") >&5
4115   ac_fc_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
4116   echo "$ac_fc_v_output" >&5
4117   FCFLAGS=$ac_save_FFLAGS
# Line 4791 | Line 4847 | FCFLAGS="$FCFLAGS $ac_verb"
4847   # flags.
4848   ac_save_FFLAGS=$FCFLAGS
4849   FCFLAGS="$FCFLAGS $ac_verb"
4850 < (eval echo $as_me:4794: \"$ac_link\") >&5
4850 > (eval echo $as_me:4850: \"$ac_link\") >&5
4851   ac_fc_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
4852   echo "$ac_fc_v_output" >&5
4853   FCFLAGS=$ac_save_FFLAGS
# Line 4869 | Line 4925 | FCFLAGS="$FCFLAGS $ac_cv_prog_fc_v"
4925   # flags.
4926   ac_save_FFLAGS=$FCFLAGS
4927   FCFLAGS="$FCFLAGS $ac_cv_prog_fc_v"
4928 < (eval echo $as_me:4872: \"$ac_link\") >&5
4928 > (eval echo $as_me:4928: \"$ac_link\") >&5
4929   ac_fc_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
4930   echo "$ac_fc_v_output" >&5
4931   FCFLAGS=$ac_save_FFLAGS
# Line 5746 | Line 5802 | done
5802   #
5803   # Handle user hints
5804   #
5749 echo "$as_me:$LINENO: checking if zlib is wanted" >&5
5750 echo $ECHO_N "checking if zlib is wanted... $ECHO_C" >&6
5805  
5806   # Check whether --with-zlib or --without-zlib was given.
5807   if test "${with_zlib+set}" = set; then
5808    withval="$with_zlib"
5809 <  if test "$withval" != no ; then
5810 <  echo "$as_me:$LINENO: result: yes" >&5
5811 < echo "${ECHO_T}yes" >&6
5812 <  if test -d "$withval"
5809 >  zlib_dir="$withval"
5810 > else
5811 >                zlib_dir="not_set"
5812 > fi;
5813 > if test "$zlib_dir" != "no"; then
5814 >
5815 > if test "$zlib_dir" != "not_set" ; then
5816 >  if test -d "$zlib_dir"
5817    then
5818 <    ZLIB_HOME="$withval"
5818 >    ZLIB_HOME="$zlib_dir"
5819    else
5820 <    { echo "$as_me:$LINENO: WARNING: Sorry, $withval does not exist, checking usual places" >&5
5821 < echo "$as_me: WARNING: Sorry, $withval does not exist, checking usual places" >&2;}
5820 >    { echo "$as_me:$LINENO: WARNING: Sorry, $zlib_dir does not exist, checking usual places" >&5
5821 > echo "$as_me: WARNING: Sorry, $zlib_dir does not exist, checking usual places" >&2;}
5822    fi
5765 else
5766  echo "$as_me:$LINENO: result: no" >&5
5767 echo "${ECHO_T}no" >&6
5823   fi
5769 fi;
5824  
5825   ZLIB_HOME=/usr/local
5826   if test ! -f "${ZLIB_HOME}/include/zlib.h"
# Line 6019 | Line 6073 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
6073   ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6074   ac_compiler_gnu=$ac_cv_c_compiler_gnu
6075  
6022        if test "$zlib_cv_libz" = "yes" -a "$zlib_cv_zlib_h" = "yes"
6023        then
6024                #
6025                # If both library and header were found, use them
6026                #
6076  
6077 < echo "$as_me:$LINENO: checking for inflateEnd in -lz" >&5
6078 < echo $ECHO_N "checking for inflateEnd in -lz... $ECHO_C" >&6
6079 < if test "${ac_cv_lib_z_inflateEnd+set}" = set; then
6077 >        if test "$zlib_cv_libz" = "yes" -a "$zlib_cv_zlib_h" = "yes"; then
6078 >
6079 > cat >>confdefs.h <<\_ACEOF
6080 > #define HAVE_ZLIB_H 1
6081 > _ACEOF
6082 >
6083 >
6084 > cat >>confdefs.h <<\_ACEOF
6085 > #define HAVE_LIBZ 1
6086 > _ACEOF
6087 >
6088 >                ZLIB_INC_DIR="${ZLIB_HOME}/include"
6089 >                ZLIB_LIB_DIR="${ZLIB_HOME}/lib"
6090 >                ZLIB="-lz"
6091 >        else
6092 >                echo "$as_me:$LINENO: checking zlib in ${ZLIB_HOME}" >&5
6093 > echo $ECHO_N "checking zlib in ${ZLIB_HOME}... $ECHO_C" >&6
6094 >                ZLIB_INC_DIR=
6095 >                ZLIB_LIB_DIR=
6096 >                ZLIB=
6097 >                LDFLAGS="$ZLIB_OLD_LDFLAGS"
6098 >                CPPFLAGS="$ZLIB_OLD_CPPFLAGS"
6099 >                echo "$as_me:$LINENO: result: failed" >&5
6100 > echo "${ECHO_T}failed" >&6
6101 >                echo ""
6102 >                echo "*********************************************************"
6103 >                echo "* WARNING: Could not find a working zlib installation   *"
6104 >                echo "* If you need OOPSE to be able to deal with compressed  *"
6105 >                echo "* trajectory dump files be sure to specify a valid zlib *"
6106 >                echo "* installation with --with-zlib=DIR                     *"
6107 >                echo "*                                                       *"
6108 >                echo "* OOPSE will still work without zlib installed.         *"
6109 >                echo "*********************************************************"
6110 >                echo ""
6111 >        fi
6112 >
6113 >
6114 >
6115 > fi
6116 > fi
6117 >
6118 > #
6119 > # Handle user hints
6120 > #
6121 >
6122 > # Check whether --with-fftw or --without-fftw was given.
6123 > if test "${with_fftw+set}" = set; then
6124 >  withval="$with_fftw"
6125 >  fftw_dir="$withval"
6126 > else
6127 >                fftw_dir="not_set"
6128 > fi;
6129 > if test "$fftw_dir" != "no"; then
6130 >
6131 > if test "$fftw_dir" != "not_set" ; then
6132 >  if test -d "$fftw_dir"
6133 >  then
6134 >    FFTW_HOME="$fftw_dir"
6135 >  else
6136 >    { echo "$as_me:$LINENO: WARNING: Sorry, $fftw_dir does not exist, checking usual places" >&5
6137 > echo "$as_me: WARNING: Sorry, $fftw_dir does not exist, checking usual places" >&2;}
6138 >  fi
6139 > fi
6140 >
6141 > FFTW_HOME=/usr/local
6142 > if test ! -f "${FFTW_HOME}/include/fftw3.h" -o -f "${FFTW_HOME}/include/fftw.h" -o  -f "${FFTW_HOME}/include/dfftw.h"
6143 > then
6144 >        FFTW_HOME=/usr
6145 > fi
6146 >
6147 > #
6148 > # Locate fftw, if wanted
6149 > #
6150 > if test -n "${FFTW_HOME}"
6151 > then
6152 >        FFTW_OLD_LDFLAGS=$LDFLAGS
6153 >        FFTW_OLD_CPPFLAGS=$LDFLAGS
6154 >        LDFLAGS="$LDFLAGS -L${FFTW_HOME}/lib"
6155 >        CPPFLAGS="$CPPFLAGS -I${FFTW_HOME}/include"
6156 >
6157 >
6158 >        ac_ext=c
6159 > ac_cpp='$CPP $CPPFLAGS'
6160 > ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6161 > ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6162 > ac_compiler_gnu=$ac_cv_c_compiler_gnu
6163 >
6164 >        echo "$as_me:$LINENO: checking for fftw_execute in -lfftw3" >&5
6165 > echo $ECHO_N "checking for fftw_execute in -lfftw3... $ECHO_C" >&6
6166 > if test "${ac_cv_lib_fftw3_fftw_execute+set}" = set; then
6167    echo $ECHO_N "(cached) $ECHO_C" >&6
6168   else
6169    ac_check_lib_save_LIBS=$LIBS
6170 < LIBS="-lz  $LIBS"
6170 > LIBS="-lfftw3  $LIBS"
6171   cat >conftest.$ac_ext <<_ACEOF
6172   /* confdefs.h.  */
6173   _ACEOF
# Line 6045 | Line 6181 | extern "C"
6181   #endif
6182   /* We use char because int might match the return type of a gcc2
6183     builtin and then its argument prototype would still apply.  */
6184 < char inflateEnd ();
6184 > char fftw_execute ();
6185   #ifdef FC_DUMMY_MAIN
6186   #ifndef FC_DUMMY_MAIN_EQ_F77
6187   #  ifdef __cplusplus
# Line 6057 | Line 6193 | main ()
6193   int
6194   main ()
6195   {
6196 < inflateEnd ();
6196 > fftw_execute ();
6197    ;
6198    return 0;
6199   }
# Line 6084 | Line 6220 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6220    ac_status=$?
6221    echo "$as_me:$LINENO: \$? = $ac_status" >&5
6222    (exit $ac_status); }; }; then
6223 <  ac_cv_lib_z_inflateEnd=yes
6223 >  ac_cv_lib_fftw3_fftw_execute=yes
6224   else
6225    echo "$as_me: failed program was:" >&5
6226   sed 's/^/| /' conftest.$ac_ext >&5
6227  
6228 < ac_cv_lib_z_inflateEnd=no
6228 > ac_cv_lib_fftw3_fftw_execute=no
6229   fi
6230   rm -f conftest.err conftest.$ac_objext \
6231        conftest$ac_exeext conftest.$ac_ext
6232   LIBS=$ac_check_lib_save_LIBS
6233   fi
6234 < echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflateEnd" >&5
6235 < echo "${ECHO_T}$ac_cv_lib_z_inflateEnd" >&6
6236 < if test $ac_cv_lib_z_inflateEnd = yes; then
6237 <  cat >>confdefs.h <<_ACEOF
6238 < #define HAVE_LIBZ 1
6239 < _ACEOF
6234 > echo "$as_me:$LINENO: result: $ac_cv_lib_fftw3_fftw_execute" >&5
6235 > echo "${ECHO_T}$ac_cv_lib_fftw3_fftw_execute" >&6
6236 > if test $ac_cv_lib_fftw3_fftw_execute = yes; then
6237 >  fftw_cv_libfftw3=yes
6238 > else
6239 >  fftw_cv_libfftw3=no
6240 > fi
6241  
6242 <  LIBS="-lz $LIBS"
6242 >        if test "${ac_cv_header_fftw3_h+set}" = set; then
6243 >  echo "$as_me:$LINENO: checking for fftw3.h" >&5
6244 > echo $ECHO_N "checking for fftw3.h... $ECHO_C" >&6
6245 > if test "${ac_cv_header_fftw3_h+set}" = set; then
6246 >  echo $ECHO_N "(cached) $ECHO_C" >&6
6247 > fi
6248 > echo "$as_me:$LINENO: result: $ac_cv_header_fftw3_h" >&5
6249 > echo "${ECHO_T}$ac_cv_header_fftw3_h" >&6
6250 > else
6251 >  # Is the header compilable?
6252 > echo "$as_me:$LINENO: checking fftw3.h usability" >&5
6253 > echo $ECHO_N "checking fftw3.h usability... $ECHO_C" >&6
6254 > cat >conftest.$ac_ext <<_ACEOF
6255 > /* confdefs.h.  */
6256 > _ACEOF
6257 > cat confdefs.h >>conftest.$ac_ext
6258 > cat >>conftest.$ac_ext <<_ACEOF
6259 > /* end confdefs.h.  */
6260 > $ac_includes_default
6261 > #include <fftw3.h>
6262 > _ACEOF
6263 > rm -f conftest.$ac_objext
6264 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6265 >  (eval $ac_compile) 2>conftest.er1
6266 >  ac_status=$?
6267 >  grep -v '^ *+' conftest.er1 >conftest.err
6268 >  rm -f conftest.er1
6269 >  cat conftest.err >&5
6270 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6271 >  (exit $ac_status); } &&
6272 >         { ac_try='test -z "$ac_c_werror_flag"
6273 >                         || test ! -s conftest.err'
6274 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6275 >  (eval $ac_try) 2>&5
6276 >  ac_status=$?
6277 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6278 >  (exit $ac_status); }; } &&
6279 >         { ac_try='test -s conftest.$ac_objext'
6280 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6281 >  (eval $ac_try) 2>&5
6282 >  ac_status=$?
6283 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6284 >  (exit $ac_status); }; }; then
6285 >  ac_header_compiler=yes
6286 > else
6287 >  echo "$as_me: failed program was:" >&5
6288 > sed 's/^/| /' conftest.$ac_ext >&5
6289  
6290 + ac_header_compiler=no
6291   fi
6292 + rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6293 + echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6294 + echo "${ECHO_T}$ac_header_compiler" >&6
6295  
6296 <                echo "$as_me:$LINENO: checking zlib in ${ZLIB_HOME}" >&5
6297 < echo $ECHO_N "checking zlib in ${ZLIB_HOME}... $ECHO_C" >&6
6298 <                echo "$as_me:$LINENO: result: ok" >&5
6299 < echo "${ECHO_T}ok" >&6
6300 <        else
6301 <                #
6302 <                # If either header or library was not found, revert and bomb
6303 <                #
6304 <                echo "$as_me:$LINENO: checking zlib in ${ZLIB_HOME}" >&5
6305 < echo $ECHO_N "checking zlib in ${ZLIB_HOME}... $ECHO_C" >&6
6306 <                LDFLAGS="$ZLIB_OLD_LDFLAGS"
6307 <                CPPFLAGS="$ZLIB_OLD_CPPFLAGS"
6308 <                echo "$as_me:$LINENO: result: failed" >&5
6309 < echo "${ECHO_T}failed" >&6
6310 <                { { echo "$as_me:$LINENO: error: either specify a valid zlib installation with --with-zlib=DIR or disable zlib usage with --without-zlib" >&5
6311 < echo "$as_me: error: either specify a valid zlib installation with --with-zlib=DIR or disable zlib usage with --without-zlib" >&2;}
6312 <   { (exit 1); exit 1; }; }
6313 <        fi
6296 > # Is the header present?
6297 > echo "$as_me:$LINENO: checking fftw3.h presence" >&5
6298 > echo $ECHO_N "checking fftw3.h presence... $ECHO_C" >&6
6299 > cat >conftest.$ac_ext <<_ACEOF
6300 > /* confdefs.h.  */
6301 > _ACEOF
6302 > cat confdefs.h >>conftest.$ac_ext
6303 > cat >>conftest.$ac_ext <<_ACEOF
6304 > /* end confdefs.h.  */
6305 > #include <fftw3.h>
6306 > _ACEOF
6307 > if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6308 >  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6309 >  ac_status=$?
6310 >  grep -v '^ *+' conftest.er1 >conftest.err
6311 >  rm -f conftest.er1
6312 >  cat conftest.err >&5
6313 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6314 >  (exit $ac_status); } >/dev/null; then
6315 >  if test -s conftest.err; then
6316 >    ac_cpp_err=$ac_c_preproc_warn_flag
6317 >    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6318 >  else
6319 >    ac_cpp_err=
6320 >  fi
6321 > else
6322 >  ac_cpp_err=yes
6323   fi
6324 + if test -z "$ac_cpp_err"; then
6325 +  ac_header_preproc=yes
6326 + else
6327 +  echo "$as_me: failed program was:" >&5
6328 + sed 's/^/| /' conftest.$ac_ext >&5
6329  
6330 +  ac_header_preproc=no
6331 + fi
6332 + rm -f conftest.err conftest.$ac_ext
6333 + echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6334 + echo "${ECHO_T}$ac_header_preproc" >&6
6335  
6336 + # So?  What about this header?
6337 + case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6338 +  yes:no: )
6339 +    { echo "$as_me:$LINENO: WARNING: fftw3.h: accepted by the compiler, rejected by the preprocessor!" >&5
6340 + echo "$as_me: WARNING: fftw3.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6341 +    { echo "$as_me:$LINENO: WARNING: fftw3.h: proceeding with the compiler's result" >&5
6342 + echo "$as_me: WARNING: fftw3.h: proceeding with the compiler's result" >&2;}
6343 +    ac_header_preproc=yes
6344 +    ;;
6345 +  no:yes:* )
6346 +    { echo "$as_me:$LINENO: WARNING: fftw3.h: present but cannot be compiled" >&5
6347 + echo "$as_me: WARNING: fftw3.h: present but cannot be compiled" >&2;}
6348 +    { echo "$as_me:$LINENO: WARNING: fftw3.h:     check for missing prerequisite headers?" >&5
6349 + echo "$as_me: WARNING: fftw3.h:     check for missing prerequisite headers?" >&2;}
6350 +    { echo "$as_me:$LINENO: WARNING: fftw3.h: see the Autoconf documentation" >&5
6351 + echo "$as_me: WARNING: fftw3.h: see the Autoconf documentation" >&2;}
6352 +    { echo "$as_me:$LINENO: WARNING: fftw3.h:     section \"Present But Cannot Be Compiled\"" >&5
6353 + echo "$as_me: WARNING: fftw3.h:     section \"Present But Cannot Be Compiled\"" >&2;}
6354 +    { echo "$as_me:$LINENO: WARNING: fftw3.h: proceeding with the preprocessor's result" >&5
6355 + echo "$as_me: WARNING: fftw3.h: proceeding with the preprocessor's result" >&2;}
6356 +    { echo "$as_me:$LINENO: WARNING: fftw3.h: in the future, the compiler will take precedence" >&5
6357 + echo "$as_me: WARNING: fftw3.h: in the future, the compiler will take precedence" >&2;}
6358 +    (
6359 +      cat <<\_ASBOX
6360 + ## ------------------------------ ##
6361 + ## Report this to gezelter@nd.edu ##
6362 + ## ------------------------------ ##
6363 + _ASBOX
6364 +    ) |
6365 +      sed "s/^/$as_me: WARNING:     /" >&2
6366 +    ;;
6367 + esac
6368 + echo "$as_me:$LINENO: checking for fftw3.h" >&5
6369 + echo $ECHO_N "checking for fftw3.h... $ECHO_C" >&6
6370 + if test "${ac_cv_header_fftw3_h+set}" = set; then
6371 +  echo $ECHO_N "(cached) $ECHO_C" >&6
6372 + else
6373 +  ac_cv_header_fftw3_h=$ac_header_preproc
6374 + fi
6375 + echo "$as_me:$LINENO: result: $ac_cv_header_fftw3_h" >&5
6376 + echo "${ECHO_T}$ac_cv_header_fftw3_h" >&6
6377  
6378 < # Checks for header files.
6379 < echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6380 < echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6381 < if test "${ac_cv_header_stdc+set}" = set; then
6378 > fi
6379 > if test $ac_cv_header_fftw3_h = yes; then
6380 >  fftw_cv_fftw3_h=yes
6381 > else
6382 >  fftw_cv_fftw3_h=no
6383 > fi
6384 >
6385 >
6386 >        if test "$fftw_cv_libfftw3" = "no" -o "$fftw_cv_fftw3_h" = "no"
6387 >        then
6388 >                echo "$as_me:$LINENO: checking for fftwnd_one in -lfftw" >&5
6389 > echo $ECHO_N "checking for fftwnd_one in -lfftw... $ECHO_C" >&6
6390 > if test "${ac_cv_lib_fftw_fftwnd_one+set}" = set; then
6391    echo $ECHO_N "(cached) $ECHO_C" >&6
6392   else
6393 <  cat >conftest.$ac_ext <<_ACEOF
6393 >  ac_check_lib_save_LIBS=$LIBS
6394 > LIBS="-lfftw  $LIBS"
6395 > cat >conftest.$ac_ext <<_ACEOF
6396   /* confdefs.h.  */
6397   _ACEOF
6398   cat confdefs.h >>conftest.$ac_ext
6399   cat >>conftest.$ac_ext <<_ACEOF
6400   /* end confdefs.h.  */
6143 #include <stdlib.h>
6144 #include <stdarg.h>
6145 #include <string.h>
6146 #include <float.h>
6401  
6402 + /* Override any gcc2 internal prototype to avoid an error.  */
6403 + #ifdef __cplusplus
6404 + extern "C"
6405 + #endif
6406 + /* We use char because int might match the return type of a gcc2
6407 +   builtin and then its argument prototype would still apply.  */
6408 + char fftwnd_one ();
6409   #ifdef FC_DUMMY_MAIN
6410   #ifndef FC_DUMMY_MAIN_EQ_F77
6411   #  ifdef __cplusplus
# Line 6156 | Line 6417 | main ()
6417   int
6418   main ()
6419   {
6420 <
6420 > fftwnd_one ();
6421    ;
6422    return 0;
6423   }
6424   _ACEOF
6425 < rm -f conftest.$ac_objext
6426 < if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6427 <  (eval $ac_compile) 2>conftest.er1
6425 > rm -f conftest.$ac_objext conftest$ac_exeext
6426 > if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6427 >  (eval $ac_link) 2>conftest.er1
6428    ac_status=$?
6429    grep -v '^ *+' conftest.er1 >conftest.err
6430    rm -f conftest.er1
# Line 6177 | Line 6438 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6438    ac_status=$?
6439    echo "$as_me:$LINENO: \$? = $ac_status" >&5
6440    (exit $ac_status); }; } &&
6441 <         { ac_try='test -s conftest.$ac_objext'
6441 >         { ac_try='test -s conftest$ac_exeext'
6442    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6443    (eval $ac_try) 2>&5
6444    ac_status=$?
6445    echo "$as_me:$LINENO: \$? = $ac_status" >&5
6446    (exit $ac_status); }; }; then
6447 <  ac_cv_header_stdc=yes
6447 >  ac_cv_lib_fftw_fftwnd_one=yes
6448   else
6449    echo "$as_me: failed program was:" >&5
6450   sed 's/^/| /' conftest.$ac_ext >&5
6451  
6452 < ac_cv_header_stdc=no
6452 > ac_cv_lib_fftw_fftwnd_one=no
6453   fi
6454 < rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6454 > rm -f conftest.err conftest.$ac_objext \
6455 >      conftest$ac_exeext conftest.$ac_ext
6456 > LIBS=$ac_check_lib_save_LIBS
6457 > fi
6458 > echo "$as_me:$LINENO: result: $ac_cv_lib_fftw_fftwnd_one" >&5
6459 > echo "${ECHO_T}$ac_cv_lib_fftw_fftwnd_one" >&6
6460 > if test $ac_cv_lib_fftw_fftwnd_one = yes; then
6461 >  fftw_cv_libfftw=yes
6462 > else
6463 >  fftw_cv_libfftw=no
6464 > fi
6465  
6466 < if test $ac_cv_header_stdc = yes; then
6467 <  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6468 <  cat >conftest.$ac_ext <<_ACEOF
6466 >                if test "${ac_cv_header_fftw_h+set}" = set; then
6467 >  echo "$as_me:$LINENO: checking for fftw.h" >&5
6468 > echo $ECHO_N "checking for fftw.h... $ECHO_C" >&6
6469 > if test "${ac_cv_header_fftw_h+set}" = set; then
6470 >  echo $ECHO_N "(cached) $ECHO_C" >&6
6471 > fi
6472 > echo "$as_me:$LINENO: result: $ac_cv_header_fftw_h" >&5
6473 > echo "${ECHO_T}$ac_cv_header_fftw_h" >&6
6474 > else
6475 >  # Is the header compilable?
6476 > echo "$as_me:$LINENO: checking fftw.h usability" >&5
6477 > echo $ECHO_N "checking fftw.h usability... $ECHO_C" >&6
6478 > cat >conftest.$ac_ext <<_ACEOF
6479   /* confdefs.h.  */
6480   _ACEOF
6481   cat confdefs.h >>conftest.$ac_ext
6482   cat >>conftest.$ac_ext <<_ACEOF
6483   /* end confdefs.h.  */
6484 < #include <string.h>
6485 <
6484 > $ac_includes_default
6485 > #include <fftw.h>
6486   _ACEOF
6487 < if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6488 <  $EGREP "memchr" >/dev/null 2>&1; then
6489 <  :
6487 > rm -f conftest.$ac_objext
6488 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6489 >  (eval $ac_compile) 2>conftest.er1
6490 >  ac_status=$?
6491 >  grep -v '^ *+' conftest.er1 >conftest.err
6492 >  rm -f conftest.er1
6493 >  cat conftest.err >&5
6494 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6495 >  (exit $ac_status); } &&
6496 >         { ac_try='test -z "$ac_c_werror_flag"
6497 >                         || test ! -s conftest.err'
6498 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6499 >  (eval $ac_try) 2>&5
6500 >  ac_status=$?
6501 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6502 >  (exit $ac_status); }; } &&
6503 >         { ac_try='test -s conftest.$ac_objext'
6504 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6505 >  (eval $ac_try) 2>&5
6506 >  ac_status=$?
6507 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6508 >  (exit $ac_status); }; }; then
6509 >  ac_header_compiler=yes
6510   else
6511 <  ac_cv_header_stdc=no
6512 < fi
6212 < rm -f conftest*
6511 >  echo "$as_me: failed program was:" >&5
6512 > sed 's/^/| /' conftest.$ac_ext >&5
6513  
6514 + ac_header_compiler=no
6515   fi
6516 + rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6517 + echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6518 + echo "${ECHO_T}$ac_header_compiler" >&6
6519  
6520 < if test $ac_cv_header_stdc = yes; then
6521 <  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6522 <  cat >conftest.$ac_ext <<_ACEOF
6520 > # Is the header present?
6521 > echo "$as_me:$LINENO: checking fftw.h presence" >&5
6522 > echo $ECHO_N "checking fftw.h presence... $ECHO_C" >&6
6523 > cat >conftest.$ac_ext <<_ACEOF
6524   /* confdefs.h.  */
6525   _ACEOF
6526   cat confdefs.h >>conftest.$ac_ext
6527   cat >>conftest.$ac_ext <<_ACEOF
6528   /* end confdefs.h.  */
6529 < #include <stdlib.h>
6225 <
6529 > #include <fftw.h>
6530   _ACEOF
6531 < if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6532 <  $EGREP "free" >/dev/null 2>&1; then
6533 <  :
6531 > if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6532 >  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6533 >  ac_status=$?
6534 >  grep -v '^ *+' conftest.er1 >conftest.err
6535 >  rm -f conftest.er1
6536 >  cat conftest.err >&5
6537 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6538 >  (exit $ac_status); } >/dev/null; then
6539 >  if test -s conftest.err; then
6540 >    ac_cpp_err=$ac_c_preproc_warn_flag
6541 >    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6542 >  else
6543 >    ac_cpp_err=
6544 >  fi
6545   else
6546 <  ac_cv_header_stdc=no
6546 >  ac_cpp_err=yes
6547   fi
6548 < rm -f conftest*
6548 > if test -z "$ac_cpp_err"; then
6549 >  ac_header_preproc=yes
6550 > else
6551 >  echo "$as_me: failed program was:" >&5
6552 > sed 's/^/| /' conftest.$ac_ext >&5
6553  
6554 +  ac_header_preproc=no
6555   fi
6556 + rm -f conftest.err conftest.$ac_ext
6557 + echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6558 + echo "${ECHO_T}$ac_header_preproc" >&6
6559  
6560 < if test $ac_cv_header_stdc = yes; then
6561 <  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6562 <  if test "$cross_compiling" = yes; then
6563 <  :
6560 > # So?  What about this header?
6561 > case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6562 >  yes:no: )
6563 >    { echo "$as_me:$LINENO: WARNING: fftw.h: accepted by the compiler, rejected by the preprocessor!" >&5
6564 > echo "$as_me: WARNING: fftw.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6565 >    { echo "$as_me:$LINENO: WARNING: fftw.h: proceeding with the compiler's result" >&5
6566 > echo "$as_me: WARNING: fftw.h: proceeding with the compiler's result" >&2;}
6567 >    ac_header_preproc=yes
6568 >    ;;
6569 >  no:yes:* )
6570 >    { echo "$as_me:$LINENO: WARNING: fftw.h: present but cannot be compiled" >&5
6571 > echo "$as_me: WARNING: fftw.h: present but cannot be compiled" >&2;}
6572 >    { echo "$as_me:$LINENO: WARNING: fftw.h:     check for missing prerequisite headers?" >&5
6573 > echo "$as_me: WARNING: fftw.h:     check for missing prerequisite headers?" >&2;}
6574 >    { echo "$as_me:$LINENO: WARNING: fftw.h: see the Autoconf documentation" >&5
6575 > echo "$as_me: WARNING: fftw.h: see the Autoconf documentation" >&2;}
6576 >    { echo "$as_me:$LINENO: WARNING: fftw.h:     section \"Present But Cannot Be Compiled\"" >&5
6577 > echo "$as_me: WARNING: fftw.h:     section \"Present But Cannot Be Compiled\"" >&2;}
6578 >    { echo "$as_me:$LINENO: WARNING: fftw.h: proceeding with the preprocessor's result" >&5
6579 > echo "$as_me: WARNING: fftw.h: proceeding with the preprocessor's result" >&2;}
6580 >    { echo "$as_me:$LINENO: WARNING: fftw.h: in the future, the compiler will take precedence" >&5
6581 > echo "$as_me: WARNING: fftw.h: in the future, the compiler will take precedence" >&2;}
6582 >    (
6583 >      cat <<\_ASBOX
6584 > ## ------------------------------ ##
6585 > ## Report this to gezelter@nd.edu ##
6586 > ## ------------------------------ ##
6587 > _ASBOX
6588 >    ) |
6589 >      sed "s/^/$as_me: WARNING:     /" >&2
6590 >    ;;
6591 > esac
6592 > echo "$as_me:$LINENO: checking for fftw.h" >&5
6593 > echo $ECHO_N "checking for fftw.h... $ECHO_C" >&6
6594 > if test "${ac_cv_header_fftw_h+set}" = set; then
6595 >  echo $ECHO_N "(cached) $ECHO_C" >&6
6596   else
6597 <  cat >conftest.$ac_ext <<_ACEOF
6597 >  ac_cv_header_fftw_h=$ac_header_preproc
6598 > fi
6599 > echo "$as_me:$LINENO: result: $ac_cv_header_fftw_h" >&5
6600 > echo "${ECHO_T}$ac_cv_header_fftw_h" >&6
6601 >
6602 > fi
6603 > if test $ac_cv_header_fftw_h = yes; then
6604 >  fftw_cv_fftw_h=yes
6605 > else
6606 >  fftw_cv_fftw_h=no
6607 > fi
6608 >
6609 >
6610 >                if test "$fftw_cv_libfftw" = "no" -o "$fftw_cv_fftw_h" = "no"
6611 >                then
6612 >                        echo "$as_me:$LINENO: checking for fftwnd_one in -ldfftw" >&5
6613 > echo $ECHO_N "checking for fftwnd_one in -ldfftw... $ECHO_C" >&6
6614 > if test "${ac_cv_lib_dfftw_fftwnd_one+set}" = set; then
6615 >  echo $ECHO_N "(cached) $ECHO_C" >&6
6616 > else
6617 >  ac_check_lib_save_LIBS=$LIBS
6618 > LIBS="-ldfftw  $LIBS"
6619 > cat >conftest.$ac_ext <<_ACEOF
6620   /* confdefs.h.  */
6621   _ACEOF
6622   cat confdefs.h >>conftest.$ac_ext
6623   cat >>conftest.$ac_ext <<_ACEOF
6624   /* end confdefs.h.  */
6248 #include <ctype.h>
6249 #if ((' ' & 0x0FF) == 0x020)
6250 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6251 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6252 #else
6253 # define ISLOWER(c) \
6254                   (('a' <= (c) && (c) <= 'i') \
6255                     || ('j' <= (c) && (c) <= 'r') \
6256                     || ('s' <= (c) && (c) <= 'z'))
6257 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6258 #endif
6625  
6626 < #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6626 > /* Override any gcc2 internal prototype to avoid an error.  */
6627 > #ifdef __cplusplus
6628 > extern "C"
6629 > #endif
6630 > /* We use char because int might match the return type of a gcc2
6631 >   builtin and then its argument prototype would still apply.  */
6632 > char fftwnd_one ();
6633 > #ifdef FC_DUMMY_MAIN
6634 > #ifndef FC_DUMMY_MAIN_EQ_F77
6635 > #  ifdef __cplusplus
6636 >     extern "C"
6637 > #  endif
6638 >   int FC_DUMMY_MAIN() { return 1; }
6639 > #endif
6640 > #endif
6641   int
6642   main ()
6643   {
6644 <  int i;
6645 <  for (i = 0; i < 256; i++)
6646 <    if (XOR (islower (i), ISLOWER (i))
6267 <        || toupper (i) != TOUPPER (i))
6268 <      exit(2);
6269 <  exit (0);
6644 > fftwnd_one ();
6645 >  ;
6646 >  return 0;
6647   }
6648   _ACEOF
6649 < rm -f conftest$ac_exeext
6649 > rm -f conftest.$ac_objext conftest$ac_exeext
6650   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6651 <  (eval $ac_link) 2>&5
6651 >  (eval $ac_link) 2>conftest.er1
6652    ac_status=$?
6653 +  grep -v '^ *+' conftest.er1 >conftest.err
6654 +  rm -f conftest.er1
6655 +  cat conftest.err >&5
6656    echo "$as_me:$LINENO: \$? = $ac_status" >&5
6657 <  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6657 >  (exit $ac_status); } &&
6658 >         { ac_try='test -z "$ac_c_werror_flag"
6659 >                         || test ! -s conftest.err'
6660    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6661    (eval $ac_try) 2>&5
6662    ac_status=$?
6663    echo "$as_me:$LINENO: \$? = $ac_status" >&5
6664 +  (exit $ac_status); }; } &&
6665 +         { ac_try='test -s conftest$ac_exeext'
6666 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6667 +  (eval $ac_try) 2>&5
6668 +  ac_status=$?
6669 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6670    (exit $ac_status); }; }; then
6671 <  :
6671 >  ac_cv_lib_dfftw_fftwnd_one=yes
6672   else
6673 <  echo "$as_me: program exited with status $ac_status" >&5
6286 < echo "$as_me: failed program was:" >&5
6673 >  echo "$as_me: failed program was:" >&5
6674   sed 's/^/| /' conftest.$ac_ext >&5
6675  
6676 < ( exit $ac_status )
6290 < ac_cv_header_stdc=no
6676 > ac_cv_lib_dfftw_fftwnd_one=no
6677   fi
6678 < rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6678 > rm -f conftest.err conftest.$ac_objext \
6679 >      conftest$ac_exeext conftest.$ac_ext
6680 > LIBS=$ac_check_lib_save_LIBS
6681   fi
6682 < fi
6683 < fi
6684 < echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6685 < echo "${ECHO_T}$ac_cv_header_stdc" >&6
6686 < if test $ac_cv_header_stdc = yes; then
6687 <
6300 < cat >>confdefs.h <<\_ACEOF
6301 < #define STDC_HEADERS 1
6302 < _ACEOF
6303 <
6682 > echo "$as_me:$LINENO: result: $ac_cv_lib_dfftw_fftwnd_one" >&5
6683 > echo "${ECHO_T}$ac_cv_lib_dfftw_fftwnd_one" >&6
6684 > if test $ac_cv_lib_dfftw_fftwnd_one = yes; then
6685 >  fftw_cv_libdfftw=yes
6686 > else
6687 >  fftw_cv_libdfftw=no
6688   fi
6689  
6690 <
6691 <
6692 <
6693 <
6310 <
6311 <
6312 <
6313 <
6314 <
6315 < for ac_header in libintl.h limits.h stddef.h stdlib.h string.h strings.h sys/param.h sys/time.h unistd.h
6316 < do
6317 < as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6318 < if eval "test \"\${$as_ac_Header+set}\" = set"; then
6319 <  echo "$as_me:$LINENO: checking for $ac_header" >&5
6320 < echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6321 < if eval "test \"\${$as_ac_Header+set}\" = set"; then
6690 >                        if test "${ac_cv_header_dfftw_h+set}" = set; then
6691 >  echo "$as_me:$LINENO: checking for dfftw.h" >&5
6692 > echo $ECHO_N "checking for dfftw.h... $ECHO_C" >&6
6693 > if test "${ac_cv_header_dfftw_h+set}" = set; then
6694    echo $ECHO_N "(cached) $ECHO_C" >&6
6695   fi
6696 < echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6697 < echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6696 > echo "$as_me:$LINENO: result: $ac_cv_header_dfftw_h" >&5
6697 > echo "${ECHO_T}$ac_cv_header_dfftw_h" >&6
6698   else
6699    # Is the header compilable?
6700 < echo "$as_me:$LINENO: checking $ac_header usability" >&5
6701 < echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6700 > echo "$as_me:$LINENO: checking dfftw.h usability" >&5
6701 > echo $ECHO_N "checking dfftw.h usability... $ECHO_C" >&6
6702   cat >conftest.$ac_ext <<_ACEOF
6703   /* confdefs.h.  */
6704   _ACEOF
# Line 6334 | Line 6706 | $ac_includes_default
6706   cat >>conftest.$ac_ext <<_ACEOF
6707   /* end confdefs.h.  */
6708   $ac_includes_default
6709 < #include <$ac_header>
6709 > #include <dfftw.h>
6710   _ACEOF
6711   rm -f conftest.$ac_objext
6712   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
# Line 6370 | Line 6742 | echo "${ECHO_T}$ac_header_compiler" >&6
6742   echo "${ECHO_T}$ac_header_compiler" >&6
6743  
6744   # Is the header present?
6745 < echo "$as_me:$LINENO: checking $ac_header presence" >&5
6746 < echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6745 > echo "$as_me:$LINENO: checking dfftw.h presence" >&5
6746 > echo $ECHO_N "checking dfftw.h presence... $ECHO_C" >&6
6747   cat >conftest.$ac_ext <<_ACEOF
6748   /* confdefs.h.  */
6749   _ACEOF
6750   cat confdefs.h >>conftest.$ac_ext
6751   cat >>conftest.$ac_ext <<_ACEOF
6752   /* end confdefs.h.  */
6753 < #include <$ac_header>
6753 > #include <dfftw.h>
6754   _ACEOF
6755   if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6756    (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
# Line 6412 | Line 6784 | case $ac_header_compiler:$ac_header_preproc:$ac_c_prep
6784   # So?  What about this header?
6785   case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6786    yes:no: )
6787 <    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6788 < echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6789 <    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6790 < echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6787 >    { echo "$as_me:$LINENO: WARNING: dfftw.h: accepted by the compiler, rejected by the preprocessor!" >&5
6788 > echo "$as_me: WARNING: dfftw.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6789 >    { echo "$as_me:$LINENO: WARNING: dfftw.h: proceeding with the compiler's result" >&5
6790 > echo "$as_me: WARNING: dfftw.h: proceeding with the compiler's result" >&2;}
6791      ac_header_preproc=yes
6792      ;;
6793    no:yes:* )
6794 <    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6795 < echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6796 <    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6797 < echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6798 <    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6799 < echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6800 <    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6801 < echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6802 <    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6803 < echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6804 <    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6805 < echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6794 >    { echo "$as_me:$LINENO: WARNING: dfftw.h: present but cannot be compiled" >&5
6795 > echo "$as_me: WARNING: dfftw.h: present but cannot be compiled" >&2;}
6796 >    { echo "$as_me:$LINENO: WARNING: dfftw.h:     check for missing prerequisite headers?" >&5
6797 > echo "$as_me: WARNING: dfftw.h:     check for missing prerequisite headers?" >&2;}
6798 >    { echo "$as_me:$LINENO: WARNING: dfftw.h: see the Autoconf documentation" >&5
6799 > echo "$as_me: WARNING: dfftw.h: see the Autoconf documentation" >&2;}
6800 >    { echo "$as_me:$LINENO: WARNING: dfftw.h:     section \"Present But Cannot Be Compiled\"" >&5
6801 > echo "$as_me: WARNING: dfftw.h:     section \"Present But Cannot Be Compiled\"" >&2;}
6802 >    { echo "$as_me:$LINENO: WARNING: dfftw.h: proceeding with the preprocessor's result" >&5
6803 > echo "$as_me: WARNING: dfftw.h: proceeding with the preprocessor's result" >&2;}
6804 >    { echo "$as_me:$LINENO: WARNING: dfftw.h: in the future, the compiler will take precedence" >&5
6805 > echo "$as_me: WARNING: dfftw.h: in the future, the compiler will take precedence" >&2;}
6806      (
6807        cat <<\_ASBOX
6808   ## ------------------------------ ##
# Line 6441 | Line 6813 | esac
6813        sed "s/^/$as_me: WARNING:     /" >&2
6814      ;;
6815   esac
6816 < echo "$as_me:$LINENO: checking for $ac_header" >&5
6817 < echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6818 < if eval "test \"\${$as_ac_Header+set}\" = set"; then
6816 > echo "$as_me:$LINENO: checking for dfftw.h" >&5
6817 > echo $ECHO_N "checking for dfftw.h... $ECHO_C" >&6
6818 > if test "${ac_cv_header_dfftw_h+set}" = set; then
6819    echo $ECHO_N "(cached) $ECHO_C" >&6
6820   else
6821 <  eval "$as_ac_Header=\$ac_header_preproc"
6821 >  ac_cv_header_dfftw_h=$ac_header_preproc
6822   fi
6823 < echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6824 < echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6823 > echo "$as_me:$LINENO: result: $ac_cv_header_dfftw_h" >&5
6824 > echo "${ECHO_T}$ac_cv_header_dfftw_h" >&6
6825  
6826   fi
6827 < if test `eval echo '${'$as_ac_Header'}'` = yes; then
6828 <  cat >>confdefs.h <<_ACEOF
6829 < #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6827 > if test $ac_cv_header_dfftw_h = yes; then
6828 >  fftw_cv_dfftw_h=yes
6829 > else
6830 >  fftw_cv_dfftw_h=no
6831 > fi
6832 >
6833 >
6834 >                fi
6835 >        fi
6836 >        ac_ext=c
6837 > ac_cpp='$CPP $CPPFLAGS'
6838 > ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6839 > ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6840 > ac_compiler_gnu=$ac_cv_c_compiler_gnu
6841 >
6842 >
6843 >        if test "$fftw_cv_libfftw3" = "yes" -a "$fftw_cv_fftw3_h" = "yes"
6844 >        then
6845 >
6846 > cat >>confdefs.h <<\_ACEOF
6847 > #define HAVE_FFTW3_H 1
6848   _ACEOF
6849  
6850 +                FFTW_INC_DIR="${FFTW_HOME}/include"
6851 +                FFTW_LIB_DIR="${FFTW_HOME}/lib"
6852 +                FFTW_LIBS="-lfftw3"
6853 +        else
6854 +        if test "$fftw_cv_libfftw" = "yes" -a "$fftw_cv_fftw_h" = "yes"
6855 +        then
6856 +
6857 + cat >>confdefs.h <<\_ACEOF
6858 + #define HAVE_FFTW_H 1
6859 + _ACEOF
6860 +
6861 +                FFTW_INC_DIR="${FFTW_HOME}/include"
6862 +                FFTW_LIB_DIR="${FFTW_HOME}/lib"
6863 +                FFTW_LIBS="-lfftw"
6864 +        else
6865 +        if test "$fftw_cv_libdfftw" = "yes" -a "$fftw_cv_dfftw_h" = "yes"
6866 +        then
6867 +
6868 + cat >>confdefs.h <<\_ACEOF
6869 + #define HAVE_DFFTW_H 1
6870 + _ACEOF
6871 +
6872 +                FFTW_INC_DIR="${FFTW_HOME}/include"
6873 +                FFTW_LIB_DIR="${FFTW_HOME}/lib"
6874 +                FFTW_LIBS="-ldfftw"
6875 +        else
6876 +                echo "$as_me:$LINENO: checking fftw in ${FFTW_HOME}" >&5
6877 + echo $ECHO_N "checking fftw in ${FFTW_HOME}... $ECHO_C" >&6
6878 +                FFTW_INC_DIR=
6879 +                FFTW_LIB_DIR=
6880 +                FFTW_LIBS=
6881 +                LDFLAGS="$FFTW_OLD_LDFLAGS"
6882 +                CPPFLAGS="$FFTW_OLD_CPPFLAGS"
6883 +                echo "$as_me:$LINENO: result: failed" >&5
6884 + echo "${ECHO_T}failed" >&6
6885 +        echo ""
6886 +        echo "*********************************************************"
6887 +        echo "* WARNING: Could not find a working FFTW installation   *"
6888 +        echo "* If you need the staticProps program to be able to     *"
6889 +        echo "* compute undulation spectra, be sure to specify a      *"
6890 +        echo "* valid fftw installation with --with-fftw=DIR          *"
6891 +        echo "*                                                       *"
6892 +        echo "* OOPSE will still work without fftw installed.         *"
6893 +        echo "*********************************************************"
6894 +        echo ""
6895 +        fi
6896 +        fi
6897 +        fi
6898 +
6899 +
6900 +
6901   fi
6902 + fi
6903  
6462 done
6904  
6905  
6906 + # Checks for header files.
6907 + echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6908 + echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6909 + if test "${ac_cv_header_stdc+set}" = set; then
6910 +  echo $ECHO_N "(cached) $ECHO_C" >&6
6911 + else
6912 +  cat >conftest.$ac_ext <<_ACEOF
6913 + /* confdefs.h.  */
6914 + _ACEOF
6915 + cat confdefs.h >>conftest.$ac_ext
6916 + cat >>conftest.$ac_ext <<_ACEOF
6917 + /* end confdefs.h.  */
6918 + #include <stdlib.h>
6919 + #include <stdarg.h>
6920 + #include <string.h>
6921 + #include <float.h>
6922  
6923 + #ifdef FC_DUMMY_MAIN
6924 + #ifndef FC_DUMMY_MAIN_EQ_F77
6925 + #  ifdef __cplusplus
6926 +     extern "C"
6927 + #  endif
6928 +   int FC_DUMMY_MAIN() { return 1; }
6929 + #endif
6930 + #endif
6931 + int
6932 + main ()
6933 + {
6934  
6935 +  ;
6936 +  return 0;
6937 + }
6938 + _ACEOF
6939 + rm -f conftest.$ac_objext
6940 + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6941 +  (eval $ac_compile) 2>conftest.er1
6942 +  ac_status=$?
6943 +  grep -v '^ *+' conftest.er1 >conftest.err
6944 +  rm -f conftest.er1
6945 +  cat conftest.err >&5
6946 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6947 +  (exit $ac_status); } &&
6948 +         { ac_try='test -z "$ac_c_werror_flag"
6949 +                         || test ! -s conftest.err'
6950 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6951 +  (eval $ac_try) 2>&5
6952 +  ac_status=$?
6953 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6954 +  (exit $ac_status); }; } &&
6955 +         { ac_try='test -s conftest.$ac_objext'
6956 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6957 +  (eval $ac_try) 2>&5
6958 +  ac_status=$?
6959 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6960 +  (exit $ac_status); }; }; then
6961 +  ac_cv_header_stdc=yes
6962 + else
6963 +  echo "$as_me: failed program was:" >&5
6964 + sed 's/^/| /' conftest.$ac_ext >&5
6965  
6966 + ac_cv_header_stdc=no
6967 + fi
6968 + rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6969  
6970 + if test $ac_cv_header_stdc = yes; then
6971 +  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6972 +  cat >conftest.$ac_ext <<_ACEOF
6973 + /* confdefs.h.  */
6974 + _ACEOF
6975 + cat confdefs.h >>conftest.$ac_ext
6976 + cat >>conftest.$ac_ext <<_ACEOF
6977 + /* end confdefs.h.  */
6978 + #include <string.h>
6979  
6980 + _ACEOF
6981 + if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6982 +  $EGREP "memchr" >/dev/null 2>&1; then
6983 +  :
6984 + else
6985 +  ac_cv_header_stdc=no
6986 + fi
6987 + rm -f conftest*
6988  
6989 + fi
6990  
6991 + if test $ac_cv_header_stdc = yes; then
6992 +  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6993 +  cat >conftest.$ac_ext <<_ACEOF
6994 + /* confdefs.h.  */
6995 + _ACEOF
6996 + cat confdefs.h >>conftest.$ac_ext
6997 + cat >>conftest.$ac_ext <<_ACEOF
6998 + /* end confdefs.h.  */
6999 + #include <stdlib.h>
7000  
7001 + _ACEOF
7002 + if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7003 +  $EGREP "free" >/dev/null 2>&1; then
7004 +  :
7005 + else
7006 +  ac_cv_header_stdc=no
7007 + fi
7008 + rm -f conftest*
7009 +
7010 + fi
7011 +
7012 + if test $ac_cv_header_stdc = yes; then
7013 +  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7014 +  if test "$cross_compiling" = yes; then
7015 +  :
7016 + else
7017 +  cat >conftest.$ac_ext <<_ACEOF
7018 + /* confdefs.h.  */
7019 + _ACEOF
7020 + cat confdefs.h >>conftest.$ac_ext
7021 + cat >>conftest.$ac_ext <<_ACEOF
7022 + /* end confdefs.h.  */
7023 + #include <ctype.h>
7024 + #if ((' ' & 0x0FF) == 0x020)
7025 + # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7026 + # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7027 + #else
7028 + # define ISLOWER(c) \
7029 +                   (('a' <= (c) && (c) <= 'i') \
7030 +                     || ('j' <= (c) && (c) <= 'r') \
7031 +                     || ('s' <= (c) && (c) <= 'z'))
7032 + # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7033 + #endif
7034 +
7035 + #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7036 + int
7037 + main ()
7038 + {
7039 +  int i;
7040 +  for (i = 0; i < 256; i++)
7041 +    if (XOR (islower (i), ISLOWER (i))
7042 +        || toupper (i) != TOUPPER (i))
7043 +      exit(2);
7044 +  exit (0);
7045 + }
7046 + _ACEOF
7047 + rm -f conftest$ac_exeext
7048 + if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7049 +  (eval $ac_link) 2>&5
7050 +  ac_status=$?
7051 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7052 +  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7053 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7054 +  (eval $ac_try) 2>&5
7055 +  ac_status=$?
7056 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7057 +  (exit $ac_status); }; }; then
7058 +  :
7059 + else
7060 +  echo "$as_me: program exited with status $ac_status" >&5
7061 + echo "$as_me: failed program was:" >&5
7062 + sed 's/^/| /' conftest.$ac_ext >&5
7063 +
7064 + ( exit $ac_status )
7065 + ac_cv_header_stdc=no
7066 + fi
7067 + rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7068 + fi
7069 + fi
7070 + fi
7071 + echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7072 + echo "${ECHO_T}$ac_cv_header_stdc" >&6
7073 + if test $ac_cv_header_stdc = yes; then
7074  
7075 + cat >>confdefs.h <<\_ACEOF
7076 + #define STDC_HEADERS 1
7077 + _ACEOF
7078  
7079 + fi
7080  
7081  
7082  
7083 < for ac_header in stdio.h conio.h strstream.h iostream.h fstream.h math.h time.h sys/pstat.h sys/sysmp.h sys/sysinfo.h sys/table.h sys/sysctl.h sys/sytemcfg.h machine/hal_sysinfo.h
7083 >
7084 >
7085 >
7086 >
7087 >
7088 >
7089 >
7090 >
7091 >
7092 >
7093 >
7094 >
7095 >
7096 >
7097 >
7098 >
7099 >
7100 >
7101 >
7102 >
7103 >
7104 >
7105 >
7106 > for ac_header in conio.h dlfcn.h fstream.h iostream.h libintl.h limits.h machine/hal_sysinfo.h math.h stddef.h stdio.h stdlib.h string.h strings.h strstream.h sys/param.h sys/pstat.h sys/sysmp.h sys/sysctl.h sys/sysinfo.h sys/systemcfg.h sys/table.h sys/time.h time.h unistd.h zlib.h
7107   do
7108   as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7109   if eval "test \"\${$as_ac_Header+set}\" = set"; then
# Line 8752 | Line 9380 | fi
9380  
9381  
9382  
9383 < for ac_func in floor getpagesize gettimeofday memchr memmove memset pow pstat_getdynamic rint select snprintf sranddev sqrt strcasecmp strchr strdup stricmp strncasecmp strnicmp strrchr strstr strtol sysmp getsysinfo sysctl table
9383 >
9384 > for ac_func in floor getpagesize gettimeofday memchr memmove memset pow pstat_getdynamic pstat_getstatic rint select snprintf sranddev sqrt strcasecmp strchr strdup stricmp strncasecmp strnicmp strrchr strstr strtol sysmp getsysinfo sysctl table
9385   do
9386   as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9387   echo "$as_me:$LINENO: checking for $ac_func" >&5
# Line 11283 | Line 11912 | case $debug in
11912   # Try to determine "good" native compiler flags if none specified on command
11913   # line
11914  
11915 < if test "$ac_test_FCFLAGS" != "set"; then
11915 > if test "$ac_test_FFLAGS" != "set"; then
11916    FCFLAGS=""
11917    case "${host_cpu}-${host_os}" in
11918  
11919    *linux*) if test "$FC" = ifc -o "$FC" = ifort; then
11920 <                    FCFLAGS="-O"
11920 >                    FCFLAGS="-O3 -ip -no-prec-div -cxxlib-icc"
11921                  fi;;
11922     rs6000*-aix*)  if test "$FC" = xlf90 -o "$FC" = f90 -o "$FC" = xlf95; then
11923                      FCFLAGS="-O3 -qarch=pwrx -qtune=pwrx -qansialias -w"
# Line 11309 | Line 11938 | if test "$ac_test_FCFLAGS" != "set"; then
11938     *darwin*)
11939          if test "$FC" = f90 -o "$FC" = xlf90 -o "$FC" = xlf95; then
11940                  FCFLAGS="-qthreaded -O -qtune=auto -qarch=auto -qunroll=auto"
11941 +        fi
11942 +        if test "$FC" = ifort; then
11943 +                FCFLAGS="-O3 -ip -no-prec-dev -mdynamic-no-pic"
11944          fi;;
11945    esac
11946  
# Line 11468 | Line 12100 | if test "$ac_test_CFLAGS" != "set"; then
12100     *darwin*)
12101          if test "$CC" = xlc -o "$CC" = cc; then
12102                  CFLAGS="-qthreaded -O -qtune=auto -qarch=auto -qunroll=auto -qaltivec"
12103 +        fi
12104 +        if test "$CC" = icc; then
12105 +                CFLAGS="-O3 -ip -no-prec-div -mdynamic-no-pic"
12106          fi;;
12107    esac
12108  
# Line 11922 | Line 12557 | if test "$ac_test_CXXFLAGS" != "set"; then
12557     *darwin*)
12558          if test "$CXX" = xlc++ -o "$CXX" = xlC ; then
12559                  CXXFLAGS="-qthreaded -O -qtune=auto -qarch=auto -qunroll=auto -qaltivec"
12560 +        fi
12561 +        if test "$CXX" = icpc; then
12562 +                CXXFLAGS="-O3 -ip -no-prec-div -mdynamic-no-pic"
12563          fi;;
12564    esac
12565  
# Line 12714 | Line 13352 | if test $ac_cv_lib_mpich_MPI_Init = yes; then
13352   echo "$as_me:$LINENO: result: $ac_cv_lib_mpich_MPI_Init" >&5
13353   echo "${ECHO_T}$ac_cv_lib_mpich_MPI_Init" >&6
13354   if test $ac_cv_lib_mpich_MPI_Init = yes; then
13355 <  MPI_LIB="-lmpich -lpmpich"
13355 >  MPI_LIB="-lpmpich -lmpich"
13356   fi
13357  
13358   fi
# Line 13280 | Line 13918 | CGAL_RLIB_DIR=${CGAL_RLIBDIR}
13918  
13919  
13920  
13283
13921   # Check whether --enable-doxygen or --disable-doxygen was given.
13922   if test "${enable_doxygen+set}" = set; then
13923    enableval="$enable_doxygen"
# Line 13799 | Line 14436 | cat >&5 <<_CSEOF
14436   } >&5
14437   cat >&5 <<_CSEOF
14438  
14439 < This file was extended by OOPSE $as_me 2.0, which was
14439 > This file was extended by OOPSE $as_me 3.0, which was
14440   generated by GNU Autoconf 2.59.  Invocation command line was
14441  
14442    CONFIG_FILES    = $CONFIG_FILES
# Line 13862 | Line 14499 | ac_cs_version="\\
14499  
14500   cat >>$CONFIG_STATUS <<_ACEOF
14501   ac_cs_version="\\
14502 < OOPSE config.status 2.0
14502 > OOPSE config.status 3.0
14503   configured by $0, generated by GNU Autoconf 2.59,
14504    with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
14505  
# Line 14103 | Line 14740 | s,@F90_MODULE_NAMES@,$F90_MODULE_NAMES,;t t
14740   s,@MODDIRFLAG@,$MODDIRFLAG,;t t
14741   s,@F90MODINCSPEC@,$F90MODINCSPEC,;t t
14742   s,@F90_MODULE_NAMES@,$F90_MODULE_NAMES,;t t
14743 + s,@ZLIB_INC_DIR@,$ZLIB_INC_DIR,;t t
14744 + s,@ZLIB_LIB_DIR@,$ZLIB_LIB_DIR,;t t
14745 + s,@ZLIB@,$ZLIB,;t t
14746 + s,@FFTW_INC_DIR@,$FFTW_INC_DIR,;t t
14747 + s,@FFTW_LIB_DIR@,$FFTW_LIB_DIR,;t t
14748 + s,@FFTW_LIBS@,$FFTW_LIBS,;t t
14749   s,@LIBOBJS@,$LIBOBJS,;t t
14750   s,@POW_LIB@,$POW_LIB,;t t
14751   s,@CXXCPP@,$CXXCPP,;t t

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines