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 1188 by chuckv, Thu Nov 22 16:39:45 2007 UTC vs.
Revision 1225 by gezelter, Fri Feb 8 21:33:46 2008 UTC

# Line 1 | Line 1
1   #! /bin/sh
2   # Guess values for system-dependent variables and create Makefiles.
3 < # Generated by GNU Autoconf 2.61 for OOPSE 3.0.
3 > # Generated by GNU Autoconf 2.61 for OOPSE 4.0.
4   #
5   # Report bugs to <gezelter@nd.edu>.
6   #
# Line 49 | Line 49 | if test "${PATH_SEPARATOR+set}" != set; then
49    else
50      PATH_SEPARATOR=:
51    fi
52 <  rm -rf conf$$.sh
52 >  rm -f conf$$.sh
53   fi
54  
55   # Support unset when possible.
# Line 489 | Line 489 | fi
489    as_expr=false
490   fi
491  
492 < rm -rf conf$$ conf$$.exe conf$$.file
492 > rm -f conf$$ conf$$.exe conf$$.file
493   if test -d conf$$.dir; then
494 <  rm -rf conf$$.dir/conf$$.file
494 >  rm -f conf$$.dir/conf$$.file
495   else
496 <  rm -rf conf$$.dir
496 >  rm -f conf$$.dir
497    mkdir conf$$.dir
498   fi
499   echo >conf$$.file
# Line 510 | Line 510 | fi
510   else
511    as_ln_s='cp -p'
512   fi
513 < rm -rf conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
513 > rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514   rmdir conf$$.dir 2>/dev/null
515  
516   if mkdir -p . 2>/dev/null; then
# Line 574 | Line 574 | PACKAGE_TARNAME='oopse'
574   # Identity of this package.
575   PACKAGE_NAME='OOPSE'
576   PACKAGE_TARNAME='oopse'
577 < PACKAGE_VERSION='3.0'
578 < PACKAGE_STRING='OOPSE 3.0'
577 > PACKAGE_VERSION='4.0'
578 > PACKAGE_STRING='OOPSE 4.0'
579   PACKAGE_BUGREPORT='gezelter@nd.edu'
580  
581   ac_unique_file="src/applications/oopse/oopse.cpp"
# Line 664 | Line 664 | USE_SINGLE_PRECISION
664   PROGNAME
665   debug
666   USE_SINGLE_PRECISION
667 + ac_cc_set
668 + ac_cc_path
669 + ac_cxx_set
670 + ac_cxx_path
671 + ac_fc_set
672 + ac_fc_path
673 + acx_mpi_mpicc
674 + acx_mpi_mpicc_path
675 + acx_mpi_mpif90
676 + acx_mpi_mpif90_path
677 + acx_mpi_mpicxx
678 + acx_mpi_mpicxx_path
679 + MPI_CPPFLAGS
680 + MPI_LIBS
681 + MPI90_LIBS
682 + USE_MPI
683   CXX
684   CXXFLAGS
685   LDFLAGS
# Line 683 | Line 699 | RANLIB
699   LN_S
700   SET_MAKE
701   RANLIB
702 + YACC
703 + YFLAGS
704 + LEX
705 + LEX_OUTPUT_ROOT
706 + LEXLIB
707   PERLINTERP
708   PERL_SHEBANG
709   INSTALL_PROGRAM
# Line 707 | Line 728 | FFTW_LIBS
728   FFTW_INC_DIR
729   FFTW_LIB_DIR
730   FFTW_LIBS
731 + QHULL_INC_DIR
732 + QHULL_LIB_DIR
733 + QHULL
734 + USE_QHULL
735 + CXXCPP
736 + OPENBABEL_INC_DIR
737 + OPENBABEL_LIB_DIR
738 + OPENBABEL_LIB
739 + USE_OPENBABEL
740   LIBOBJS
741   POW_LIB
712 CXXCPP
742   __func__
743 < MPI_LIB_DIR
744 < MPI_INC_DIR
745 < MPI_F90_INC
746 < MPI_LIB
747 < MPI_F90_LIB
748 < USE_MPI
743 > CGAL_MAKEFILE
744 > CGAL_CXXFLAGS
745 > CGAL_CPPFLAGS
746 > CGAL_LDFLAGS
747 > CGAL_LIBS
748 > USE_CGAL
749   DOXYGEN
750   DOT
751   DOC
# Line 744 | Line 773 | CPP
773   FC
774   FCFLAGS
775   CPP
776 + YACC
777 + YFLAGS
778   CXXCPP'
779  
780  
# Line 1247 | Line 1278 | if test "$ac_init_help" = "long"; then
1278    # Omit some internal or obsolete options to make the list less imposing.
1279    # This message is too long to be a string in the A/UX 3.1 sh.
1280    cat <<_ACEOF
1281 < \`configure' configures OOPSE 3.0 to adapt to many kinds of systems.
1281 > \`configure' configures OOPSE 4.0 to adapt to many kinds of systems.
1282  
1283   Usage: $0 [OPTION]... [VAR=VALUE]...
1284  
# Line 1312 | Line 1343 | if test -n "$ac_init_help"; then
1343  
1344   if test -n "$ac_init_help"; then
1345    case $ac_init_help in
1346 <     short | recursive ) echo "Configuration of OOPSE 3.0:";;
1346 >     short | recursive ) echo "Configuration of OOPSE 4.0:";;
1347     esac
1348    cat <<\_ACEOF
1349  
# Line 1331 | Line 1362 | Optional Packages:
1362   Optional Packages:
1363    --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1364    --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1365 +  --with-mpi=auto|mpich|lam|openmpi|no
1366 +                          Indicates which kind of MPI implementation to use
1367 +                          [default=auto]
1368    --with-perl-shebang     override what perl thinks is the way for the kernel
1369                            to start it (seldom needed)
1370    --with-zlib=DIR         root directory path of zlib installation (defaults
1371                            to /usr/local or /usr if not found in /usr/local)
1372    --with-fftw=DIR         root directory path of fftw installation (defaults
1373                            to /usr/local or /usr if not found in /usr/local)
1374 <  --with-mpi=<prefix>     compile with MPI installed in <prefix> [default=no]
1374 >  --with-qhull=DIR        root directory path of qhull installation (defaults
1375 >                          to /usr/local or /usr if not found in /usr/local)
1376 >  --with-openbabel=DIR    root directory path of openbabel-2.x installation
1377 >                          (defaults to /usr/local or /usr if not found in
1378 >                          /usr/local)
1379 >  --with-cgalmakefile=makefile
1380 >                          Use the following CGAL makefile
1381  
1382   Some influential environment variables:
1383    CXX         C++ compiler command
# Line 1352 | Line 1392 | Some influential environment variables:
1392    FC          Fortran compiler command
1393    FCFLAGS     Fortran compiler flags
1394    CPP         C preprocessor
1395 +  YACC        The `Yet Another C Compiler' implementation to use. Defaults to
1396 +              the first program found out of: `bison -y', `byacc', `yacc'.
1397 +  YFLAGS      The list of arguments that will be passed by default to $YACC.
1398 +              This script will default YFLAGS to the empty string to avoid a
1399 +              default value of `-d' given by some make applications.
1400    CXXCPP      C++ preprocessor
1401  
1402   Use these variables to override the choices made by `configure' or to help
# Line 1418 | Line 1463 | if $ac_init_version; then
1463   test -n "$ac_init_help" && exit $ac_status
1464   if $ac_init_version; then
1465    cat <<\_ACEOF
1466 < OOPSE configure 3.0
1466 > OOPSE configure 4.0
1467   generated by GNU Autoconf 2.61
1468  
1469   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
# Line 1432 | Line 1477 | running configure, to aid debugging if configure makes
1477   This file contains any messages produced by compilers while
1478   running configure, to aid debugging if configure makes a mistake.
1479  
1480 < It was created by OOPSE $as_me 3.0, which was
1480 > It was created by OOPSE $as_me 4.0, which was
1481   generated by GNU Autoconf 2.61.  Invocation command line was
1482  
1483    $ $0 $@
# Line 1628 | Line 1673 | _ASBOX
1673        echo "$as_me: caught signal $ac_signal"
1674      echo "$as_me: exit $exit_status"
1675    } >&5
1676 <  rm -rf core *.core core.conftest.* &&
1676 >  rm -f core *.core core.conftest.* &&
1677      rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1678      exit $exit_status
1679   ' 0
# Line 1871 | Line 1916 | ac_config_headers="$ac_config_headers src/config.h"
1916  
1917  
1918  
1919 +
1920 +
1921 +
1922 +
1923   # AC_F90_MODULE_NAMES
1924   # -------------------
1925   #
# Line 1964 | Line 2013 | ac_config_headers="$ac_config_headers src/config.h"
2013  
2014  
2015  
2016 + # ACX_MPI_GET_PROG
2017  
2018 + # ACX_DETECT_MPI_IMPLEMENTATION
2019 +
2020 +
2021 +
2022 +
2023 +
2024 + # ACX_MPI
2025 +
2026 +
2027 +
2028 +
2029 +
2030 +
2031 +
2032 +
2033 +
2034 +
2035 +
2036 +
2037 +
2038 +
2039 +
2040 +
2041 +
2042 +
2043 +
2044 +
2045 +
2046 +
2047 +
2048 +
2049 +
2050 +
2051 +
2052 + # This is taken from http://autoqt.sourceforge.net/
2053 + # Copyright (c) 2002, Geoffrey Wossum
2054 + # All rights reserved.
2055 +
2056 + # Redistribution and use in source and binary forms, with or without
2057 + # modification, are permitted provided that the following conditions are
2058 + # met:
2059 +
2060 + #  - Redistributions of source code must retain the above copyright notice,
2061 + #    this list of conditions and the following disclaimer.
2062 +
2063 + #  - Redistributions in binary form must reproduce the above copyright
2064 + #    notice, this list of conditions and the following disclaimer in the
2065 + #    documentation and/or other materials provided with the distribution.
2066 +
2067 + #  - Neither the name of Geoffrey Wossum nor the names of its
2068 + #    contributors may be used to endorse or promote products derived from
2069 + #    this software without specific prior written permission.
2070 +
2071 +
2072 + # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
2073 + # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
2074 + # TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
2075 + # PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
2076 + # CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
2077 + # EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
2078 + # PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
2079 + # OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
2080 + # WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
2081 + # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
2082 + # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2083 +
2084 +
2085 + # Check for Qt compiler flags, linker flags, and binary packages
2086 +
2087 +
2088 +
2089   # who am i
2090   # Make sure we can run config.sub.
2091   $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
# Line 2115 | Line 2236 | fi
2236  
2237   fi
2238  
2239 < # Checks for programs.
2240 < ac_ext=cpp
2241 < ac_cpp='$CXXCPP $CPPFLAGS'
2242 < ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2243 < ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2123 < ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2124 < if test -z "$CXX"; then
2125 <  if test -n "$CCC"; then
2126 <    CXX=$CCC
2127 <  else
2128 <    if test -n "$ac_tool_prefix"; then
2129 <  for ac_prog in mpicxx icpc pathCC pgCC c++ xlc++ xlC g++ CC
2130 <  do
2131 <    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2132 < set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2239 > if test x"$CC" != x; then
2240 >   for ac_prog in $CC
2241 > do
2242 >  # Extract the first word of "$ac_prog", so it can be a program name with args.
2243 > set dummy $ac_prog; ac_word=$2
2244   { echo "$as_me:$LINENO: checking for $ac_word" >&5
2245   echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2246 < if test "${ac_cv_prog_CXX+set}" = set; then
2246 > if test "${ac_cv_prog_ac_cc_set+set}" = set; then
2247    echo $ECHO_N "(cached) $ECHO_C" >&6
2248   else
2249 <  if test -n "$CXX"; then
2250 <  ac_cv_prog_CXX="$CXX" # Let the user override the test.
2249 >  if test -n "$ac_cc_set"; then
2250 >  ac_cv_prog_ac_cc_set="$ac_cc_set" # Let the user override the test.
2251   else
2252   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2253   for as_dir in $PATH
# Line 2145 | Line 2256 | do
2256    test -z "$as_dir" && as_dir=.
2257    for ac_exec_ext in '' $ac_executable_extensions; do
2258    if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2259 <    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2259 >    ac_cv_prog_ac_cc_set="$ac_prog"
2260      echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2261      break 2
2262    fi
# Line 2155 | Line 2266 | fi
2266  
2267   fi
2268   fi
2269 < CXX=$ac_cv_prog_CXX
2270 < if test -n "$CXX"; then
2271 <  { echo "$as_me:$LINENO: result: $CXX" >&5
2272 < echo "${ECHO_T}$CXX" >&6; }
2269 > ac_cc_set=$ac_cv_prog_ac_cc_set
2270 > if test -n "$ac_cc_set"; then
2271 >  { echo "$as_me:$LINENO: result: $ac_cc_set" >&5
2272 > echo "${ECHO_T}$ac_cc_set" >&6; }
2273   else
2274    { echo "$as_me:$LINENO: result: no" >&5
2275   echo "${ECHO_T}no" >&6; }
2276   fi
2277  
2278  
2279 <    test -n "$CXX" && break
2280 <  done
2279 >  test -n "$ac_cc_set" && break
2280 > done
2281 > test -n "$ac_cc_set" || ac_cc_set="no"
2282 >
2283 >   if test $ac_cc_set != no; then
2284 >
2285 >     # Extract the first word of "$ac_cc_set", so it can be a program name with args.
2286 > set dummy $ac_cc_set; ac_word=$2
2287 > { echo "$as_me:$LINENO: checking for $ac_word" >&5
2288 > echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2289 > if test "${ac_cv_path_ac_cc_path+set}" = set; then
2290 >  echo $ECHO_N "(cached) $ECHO_C" >&6
2291 > else
2292 >  case $ac_cc_path in
2293 >  [\\/]* | ?:[\\/]*)
2294 >  ac_cv_path_ac_cc_path="$ac_cc_path" # Let the user override the test with a path.
2295 >  ;;
2296 >  *)
2297 >  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2298 > for as_dir in $PATH
2299 > do
2300 >  IFS=$as_save_IFS
2301 >  test -z "$as_dir" && as_dir=.
2302 >  for ac_exec_ext in '' $ac_executable_extensions; do
2303 >  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2304 >    ac_cv_path_ac_cc_path="$as_dir/$ac_word$ac_exec_ext"
2305 >    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2306 >    break 2
2307 >  fi
2308 > done
2309 > done
2310 > IFS=$as_save_IFS
2311 >
2312 >  test -z "$ac_cv_path_ac_cc_path" && ac_cv_path_ac_cc_path="no"
2313 >  ;;
2314 > esac
2315   fi
2316 < if test -z "$CXX"; then
2317 <  ac_ct_CXX=$CXX
2318 <  for ac_prog in mpicxx icpc pathCC pgCC c++ xlc++ xlC g++ CC
2316 > ac_cc_path=$ac_cv_path_ac_cc_path
2317 > if test -n "$ac_cc_path"; then
2318 >  { echo "$as_me:$LINENO: result: $ac_cc_path" >&5
2319 > echo "${ECHO_T}$ac_cc_path" >&6; }
2320 > else
2321 >  { echo "$as_me:$LINENO: result: no" >&5
2322 > echo "${ECHO_T}no" >&6; }
2323 > fi
2324 >
2325 >
2326 > else
2327 >
2328 >     { { echo "$as_me:$LINENO: error: Specified C compiler $CC doesn't seem to exist!" >&5
2329 > echo "$as_me: error: Specified C compiler $CC doesn't seem to exist!" >&2;}
2330 >   { (exit 1); exit 1; }; }
2331 > fi
2332 >
2333 >
2334 >   if test $ac_cc_path != no; then
2335 >
2336 >     { echo "$as_me:$LINENO: Will attempt to use $CC as C compiler" >&5
2337 > echo "$as_me: Will attempt to use $CC as C compiler" >&6;}
2338 > else
2339 >
2340 >     { { echo "$as_me:$LINENO: error: Can't find path to user-specified C compiler $CC" >&5
2341 > echo "$as_me: error: Can't find path to user-specified C compiler $CC" >&2;}
2342 >   { (exit 1); exit 1; }; }
2343 > fi
2344 >
2345 > fi
2346 >
2347 > if test x"$CXX" != x; then
2348 >   for ac_prog in $CXX
2349   do
2350    # Extract the first word of "$ac_prog", so it can be a program name with args.
2351   set dummy $ac_prog; ac_word=$2
2352   { echo "$as_me:$LINENO: checking for $ac_word" >&5
2353   echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2354 < if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2354 > if test "${ac_cv_prog_ac_cxx_set+set}" = set; then
2355    echo $ECHO_N "(cached) $ECHO_C" >&6
2356   else
2357 <  if test -n "$ac_ct_CXX"; then
2358 <  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2357 >  if test -n "$ac_cxx_set"; then
2358 >  ac_cv_prog_ac_cxx_set="$ac_cxx_set" # Let the user override the test.
2359   else
2360   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2361   for as_dir in $PATH
# Line 2189 | Line 2364 | do
2364    test -z "$as_dir" && as_dir=.
2365    for ac_exec_ext in '' $ac_executable_extensions; do
2366    if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2367 <    ac_cv_prog_ac_ct_CXX="$ac_prog"
2367 >    ac_cv_prog_ac_cxx_set="$ac_prog"
2368      echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2369      break 2
2370    fi
# Line 2199 | Line 2374 | fi
2374  
2375   fi
2376   fi
2377 < ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2378 < if test -n "$ac_ct_CXX"; then
2379 <  { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2380 < echo "${ECHO_T}$ac_ct_CXX" >&6; }
2377 > ac_cxx_set=$ac_cv_prog_ac_cxx_set
2378 > if test -n "$ac_cxx_set"; then
2379 >  { echo "$as_me:$LINENO: result: $ac_cxx_set" >&5
2380 > echo "${ECHO_T}$ac_cxx_set" >&6; }
2381   else
2382    { echo "$as_me:$LINENO: result: no" >&5
2383   echo "${ECHO_T}no" >&6; }
2384   fi
2385  
2386  
2387 <  test -n "$ac_ct_CXX" && break
2387 >  test -n "$ac_cxx_set" && break
2388   done
2389 + test -n "$ac_cxx_set" || ac_cxx_set="no"
2390  
2391 <  if test "x$ac_ct_CXX" = x; then
2216 <    CXX="g++"
2217 <  else
2218 <    case $cross_compiling:$ac_tool_warned in
2219 < yes:)
2220 < { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2221 < whose name does not start with the host triplet.  If you think this
2222 < configuration is useful to you, please write to autoconf@gnu.org." >&5
2223 < echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2224 < whose name does not start with the host triplet.  If you think this
2225 < configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2226 < ac_tool_warned=yes ;;
2227 < esac
2228 <    CXX=$ac_ct_CXX
2229 <  fi
2230 < fi
2391 >   if test $ac_cxx_set != no; then
2392  
2393 <  fi
2394 < fi
2395 < # Provide some information about the compiler.
2396 < echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2397 < ac_compiler=`set X $ac_compile; echo $2`
2398 < { (ac_try="$ac_compiler --version >&5"
2399 < case "(($ac_try" in
2400 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2401 <  *) ac_try_echo=$ac_try;;
2402 < esac
2403 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2404 <  (eval "$ac_compiler --version >&5") 2>&5
2405 <  ac_status=$?
2406 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2246 <  (exit $ac_status); }
2247 < { (ac_try="$ac_compiler -v >&5"
2248 < case "(($ac_try" in
2249 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2250 <  *) ac_try_echo=$ac_try;;
2251 < esac
2252 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2253 <  (eval "$ac_compiler -v >&5") 2>&5
2254 <  ac_status=$?
2255 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2256 <  (exit $ac_status); }
2257 < { (ac_try="$ac_compiler -V >&5"
2258 < case "(($ac_try" in
2259 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2260 <  *) ac_try_echo=$ac_try;;
2261 < esac
2262 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2263 <  (eval "$ac_compiler -V >&5") 2>&5
2264 <  ac_status=$?
2265 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2266 <  (exit $ac_status); }
2267 <
2268 < cat >conftest.$ac_ext <<_ACEOF
2269 < /* confdefs.h.  */
2270 < _ACEOF
2271 < cat confdefs.h >>conftest.$ac_ext
2272 < cat >>conftest.$ac_ext <<_ACEOF
2273 < /* end confdefs.h.  */
2274 <
2275 < int
2276 < main ()
2277 < {
2278 <
2279 <  ;
2280 <  return 0;
2281 < }
2282 < _ACEOF
2283 < ac_clean_files_save=$ac_clean_files
2284 < ac_clean_files="$ac_clean_files a.out a.exe b.out"
2285 < # Try to create an executable without -o first, disregard a.out.
2286 < # It will help us diagnose broken compilers, and finding out an intuition
2287 < # of exeext.
2288 < { echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2289 < echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6; }
2290 < ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2291 < #
2292 < # List of possible output files, starting from the most likely.
2293 < # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2294 < # only as a last resort.  b.out is created by i960 compilers.
2295 < ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2296 < #
2297 < # The IRIX 6 linker writes into existing files which may not be
2298 < # executable, retaining their permissions.  Remove them first so a
2299 < # subsequent execution test works.
2300 < ac_rmfiles=
2301 < for ac_file in $ac_files
2393 >     # Extract the first word of "$ac_cxx_set", so it can be a program name with args.
2394 > set dummy $ac_cxx_set; ac_word=$2
2395 > { echo "$as_me:$LINENO: checking for $ac_word" >&5
2396 > echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2397 > if test "${ac_cv_path_ac_cxx_path+set}" = set; then
2398 >  echo $ECHO_N "(cached) $ECHO_C" >&6
2399 > else
2400 >  case $ac_cxx_path in
2401 >  [\\/]* | ?:[\\/]*)
2402 >  ac_cv_path_ac_cxx_path="$ac_cxx_path" # Let the user override the test with a path.
2403 >  ;;
2404 >  *)
2405 >  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2406 > for as_dir in $PATH
2407   do
2408 <  case $ac_file in
2409 <    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2410 <    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2411 <  esac
2408 >  IFS=$as_save_IFS
2409 >  test -z "$as_dir" && as_dir=.
2410 >  for ac_exec_ext in '' $ac_executable_extensions; do
2411 >  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2412 >    ac_cv_path_ac_cxx_path="$as_dir/$ac_word$ac_exec_ext"
2413 >    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2414 >    break 2
2415 >  fi
2416   done
2308 rm -rf $ac_rmfiles
2309
2310 if { (ac_try="$ac_link_default"
2311 case "(($ac_try" in
2312  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2313  *) ac_try_echo=$ac_try;;
2314 esac
2315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2316  (eval "$ac_link_default") 2>&5
2317  ac_status=$?
2318  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2319  (exit $ac_status); }; then
2320  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2321 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2322 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2323 # so that the user can short-circuit this test for compilers unknown to
2324 # Autoconf.
2325 for ac_file in $ac_files ''
2326 do
2327  test -f "$ac_file" || continue
2328  case $ac_file in
2329    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2330        ;;
2331    [ab].out )
2332        # We found the default executable, but exeext='' is most
2333        # certainly right.
2334        break;;
2335    *.* )
2336        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2337        then :; else
2338           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2339        fi
2340        # We set ac_cv_exeext here because the later test for it is not
2341        # safe: cross compilers may not add the suffix if given an `-o'
2342        # argument, so we may need to know it at that point already.
2343        # Even if this section looks crufty: it has the advantage of
2344        # actually working.
2345        break;;
2346    * )
2347        break;;
2348  esac
2417   done
2418 < test "$ac_cv_exeext" = no && ac_cv_exeext=
2418 > IFS=$as_save_IFS
2419  
2420 +  test -z "$ac_cv_path_ac_cxx_path" && ac_cv_path_ac_cxx_path="no"
2421 +  ;;
2422 + esac
2423 + fi
2424 + ac_cxx_path=$ac_cv_path_ac_cxx_path
2425 + if test -n "$ac_cxx_path"; then
2426 +  { echo "$as_me:$LINENO: result: $ac_cxx_path" >&5
2427 + echo "${ECHO_T}$ac_cxx_path" >&6; }
2428   else
2429 <  ac_file=''
2429 >  { echo "$as_me:$LINENO: result: no" >&5
2430 > echo "${ECHO_T}no" >&6; }
2431   fi
2432  
2356 { echo "$as_me:$LINENO: result: $ac_file" >&5
2357 echo "${ECHO_T}$ac_file" >&6; }
2358 if test -z "$ac_file"; then
2359  echo "$as_me: failed program was:" >&5
2360 sed 's/^/| /' conftest.$ac_ext >&5
2433  
2434 < { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2435 < See \`config.log' for more details." >&5
2436 < echo "$as_me: error: C++ compiler cannot create executables
2437 < See \`config.log' for more details." >&2;}
2438 <   { (exit 77); exit 77; }; }
2434 > else
2435 >
2436 >     { { echo "$as_me:$LINENO: error: Specified C++ compiler $CXX doesn't seem to exist!" >&5
2437 > echo "$as_me: error: Specified C++ compiler $CXX doesn't seem to exist!" >&2;}
2438 >   { (exit 1); exit 1; }; }
2439   fi
2440  
2369 ac_exeext=$ac_cv_exeext
2441  
2442 < # Check that the compiler produces executables we can run.  If not, either
2443 < # the compiler is broken, or we cross compile.
2444 < { echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2445 < echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6; }
2446 < # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2447 < # If not cross compiling, check that we can run a simple program.
2448 < if test "$cross_compiling" != yes; then
2449 <  if { ac_try='./$ac_file'
2379 <  { (case "(($ac_try" in
2380 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2381 <  *) ac_try_echo=$ac_try;;
2382 < esac
2383 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2384 <  (eval "$ac_try") 2>&5
2385 <  ac_status=$?
2386 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2387 <  (exit $ac_status); }; }; then
2388 <    cross_compiling=no
2389 <  else
2390 <    if test "$cross_compiling" = maybe; then
2391 <        cross_compiling=yes
2392 <    else
2393 <        { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2394 < If you meant to cross compile, use \`--host'.
2395 < See \`config.log' for more details." >&5
2396 < echo "$as_me: error: cannot run C++ compiled programs.
2397 < If you meant to cross compile, use \`--host'.
2398 < See \`config.log' for more details." >&2;}
2442 >   if test $ac_cxx_path != no; then
2443 >
2444 >     { echo "$as_me:$LINENO: Will attempt to use $CXX as C++ compiler" >&5
2445 > echo "$as_me: Will attempt to use $CXX as C++ compiler" >&6;}
2446 > else
2447 >
2448 >     { { echo "$as_me:$LINENO: error: Can't find path to user-specified C++ compiler $CXX" >&5
2449 > echo "$as_me: error: Can't find path to user-specified C++ compiler $CXX" >&2;}
2450     { (exit 1); exit 1; }; }
2400    fi
2401  fi
2451   fi
2403 { echo "$as_me:$LINENO: result: yes" >&5
2404 echo "${ECHO_T}yes" >&6; }
2452  
2453 < rm -rf a.out a.exe conftest$ac_cv_exeext b.out
2407 < ac_clean_files=$ac_clean_files_save
2408 < # Check that the compiler produces executables we can run.  If not, either
2409 < # the compiler is broken, or we cross compile.
2410 < { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2411 < echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2412 < { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2413 < echo "${ECHO_T}$cross_compiling" >&6; }
2453 > fi
2454  
2455 < { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2456 < echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2457 < if { (ac_try="$ac_link"
2458 < case "(($ac_try" in
2459 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2460 <  *) ac_try_echo=$ac_try;;
2461 < esac
2462 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2463 <  (eval "$ac_link") 2>&5
2464 <  ac_status=$?
2465 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2466 <  (exit $ac_status); }; then
2467 <  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2468 < # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2469 < # work properly (i.e., refer to `conftest.exe'), while it won't with
2470 < # `rm'.
2471 < for ac_file in conftest.exe conftest conftest.*; do
2472 <  test -f "$ac_file" || continue
2473 <  case $ac_file in
2474 <    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2475 <    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2476 <          break;;
2477 <    * ) break;;
2478 <  esac
2455 > if test x"$FC" != x; then
2456 >   for ac_prog in $FC
2457 > do
2458 >  # Extract the first word of "$ac_prog", so it can be a program name with args.
2459 > set dummy $ac_prog; ac_word=$2
2460 > { echo "$as_me:$LINENO: checking for $ac_word" >&5
2461 > echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2462 > if test "${ac_cv_prog_ac_fc_set+set}" = set; then
2463 >  echo $ECHO_N "(cached) $ECHO_C" >&6
2464 > else
2465 >  if test -n "$ac_fc_set"; then
2466 >  ac_cv_prog_ac_fc_set="$ac_fc_set" # Let the user override the test.
2467 > else
2468 > as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2469 > for as_dir in $PATH
2470 > do
2471 >  IFS=$as_save_IFS
2472 >  test -z "$as_dir" && as_dir=.
2473 >  for ac_exec_ext in '' $ac_executable_extensions; do
2474 >  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2475 >    ac_cv_prog_ac_fc_set="$ac_prog"
2476 >    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2477 >    break 2
2478 >  fi
2479   done
2480 + done
2481 + IFS=$as_save_IFS
2482 +
2483 + fi
2484 + fi
2485 + ac_fc_set=$ac_cv_prog_ac_fc_set
2486 + if test -n "$ac_fc_set"; then
2487 +  { echo "$as_me:$LINENO: result: $ac_fc_set" >&5
2488 + echo "${ECHO_T}$ac_fc_set" >&6; }
2489   else
2490 <  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2491 < See \`config.log' for more details." >&5
2443 < echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2444 < See \`config.log' for more details." >&2;}
2445 <   { (exit 1); exit 1; }; }
2490 >  { echo "$as_me:$LINENO: result: no" >&5
2491 > echo "${ECHO_T}no" >&6; }
2492   fi
2493  
2448 rm -rf conftest$ac_cv_exeext
2449 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2450 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2494  
2495 < rm -rf conftest.$ac_ext
2496 < EXEEXT=$ac_cv_exeext
2497 < ac_exeext=$EXEEXT
2498 < { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2499 < echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2500 < if test "${ac_cv_objext+set}" = set; then
2495 >  test -n "$ac_fc_set" && break
2496 > done
2497 > test -n "$ac_fc_set" || ac_fc_set="no"
2498 >
2499 >   if test $ac_fc_set != no; then
2500 >
2501 >     # Extract the first word of "$ac_fc_set", so it can be a program name with args.
2502 > set dummy $ac_fc_set; ac_word=$2
2503 > { echo "$as_me:$LINENO: checking for $ac_word" >&5
2504 > echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2505 > if test "${ac_cv_path_ac_fc_path+set}" = set; then
2506    echo $ECHO_N "(cached) $ECHO_C" >&6
2507   else
2508 <  cat >conftest.$ac_ext <<_ACEOF
2509 < /* confdefs.h.  */
2510 < _ACEOF
2511 < cat confdefs.h >>conftest.$ac_ext
2512 < cat >>conftest.$ac_ext <<_ACEOF
2513 < /* end confdefs.h.  */
2508 >  case $ac_fc_path in
2509 >  [\\/]* | ?:[\\/]*)
2510 >  ac_cv_path_ac_fc_path="$ac_fc_path" # Let the user override the test with a path.
2511 >  ;;
2512 >  *)
2513 >  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2514 > for as_dir in $PATH
2515 > do
2516 >  IFS=$as_save_IFS
2517 >  test -z "$as_dir" && as_dir=.
2518 >  for ac_exec_ext in '' $ac_executable_extensions; do
2519 >  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2520 >    ac_cv_path_ac_fc_path="$as_dir/$ac_word$ac_exec_ext"
2521 >    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2522 >    break 2
2523 >  fi
2524 > done
2525 > done
2526 > IFS=$as_save_IFS
2527  
2528 < int
2529 < main ()
2469 < {
2470 <
2471 <  ;
2472 <  return 0;
2473 < }
2474 < _ACEOF
2475 < rm -rf conftest.o conftest.obj
2476 < if { (ac_try="$ac_compile"
2477 < case "(($ac_try" in
2478 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2479 <  *) ac_try_echo=$ac_try;;
2528 >  test -z "$ac_cv_path_ac_fc_path" && ac_cv_path_ac_fc_path="no"
2529 >  ;;
2530   esac
2531 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2532 <  (eval "$ac_compile") 2>&5
2533 <  ac_status=$?
2534 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2535 <  (exit $ac_status); }; then
2486 <  for ac_file in conftest.o conftest.obj conftest.*; do
2487 <  test -f "$ac_file" || continue;
2488 <  case $ac_file in
2489 <    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2490 <    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2491 <       break;;
2492 <  esac
2493 < done
2531 > fi
2532 > ac_fc_path=$ac_cv_path_ac_fc_path
2533 > if test -n "$ac_fc_path"; then
2534 >  { echo "$as_me:$LINENO: result: $ac_fc_path" >&5
2535 > echo "${ECHO_T}$ac_fc_path" >&6; }
2536   else
2537 <  echo "$as_me: failed program was:" >&5
2538 < sed 's/^/| /' conftest.$ac_ext >&5
2537 >  { echo "$as_me:$LINENO: result: no" >&5
2538 > echo "${ECHO_T}no" >&6; }
2539 > fi
2540  
2541 < { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2542 < See \`config.log' for more details." >&5
2543 < echo "$as_me: error: cannot compute suffix of object files: cannot compile
2544 < See \`config.log' for more details." >&2;}
2541 >
2542 > else
2543 >
2544 >     { { echo "$as_me:$LINENO: error: Specified Fortran compiler $FC doesn't seem to exist!" >&5
2545 > echo "$as_me: error: Specified Fortran compiler $FC doesn't seem to exist!" >&2;}
2546     { (exit 1); exit 1; }; }
2547   fi
2548  
2505 rm -rf conftest.$ac_cv_objext conftest.$ac_ext
2506 fi
2507 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2508 echo "${ECHO_T}$ac_cv_objext" >&6; }
2509 OBJEXT=$ac_cv_objext
2510 ac_objext=$OBJEXT
2511 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2512 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2513 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2514  echo $ECHO_N "(cached) $ECHO_C" >&6
2515 else
2516  cat >conftest.$ac_ext <<_ACEOF
2517 /* confdefs.h.  */
2518 _ACEOF
2519 cat confdefs.h >>conftest.$ac_ext
2520 cat >>conftest.$ac_ext <<_ACEOF
2521 /* end confdefs.h.  */
2549  
2550 < int
2524 < main ()
2525 < {
2526 < #ifndef __GNUC__
2527 <       choke me
2528 < #endif
2550 >   if test $ac_fc_path != no; then
2551  
2552 <  ;
2553 <  return 0;
2532 < }
2533 < _ACEOF
2534 < rm -rf conftest.$ac_objext
2535 < if { (ac_try="$ac_compile"
2536 < case "(($ac_try" in
2537 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2538 <  *) ac_try_echo=$ac_try;;
2539 < esac
2540 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2541 <  (eval "$ac_compile") 2>conftest.er1
2542 <  ac_status=$?
2543 <  grep -v '^ *+' conftest.er1 >conftest.err
2544 <  rm -rf conftest.er1
2545 <  cat conftest.err >&5
2546 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2547 <  (exit $ac_status); } && {
2548 <         test -z "$ac_cxx_werror_flag" ||
2549 <         test ! -s conftest.err
2550 <       } && test -s conftest.$ac_objext; then
2551 <  ac_compiler_gnu=yes
2552 >     { echo "$as_me:$LINENO: Will attempt to use $FC as Fortran compiler" >&5
2553 > echo "$as_me: Will attempt to use $FC as Fortran compiler" >&6;}
2554   else
2553  echo "$as_me: failed program was:" >&5
2554 sed 's/^/| /' conftest.$ac_ext >&5
2555  
2556 <        ac_compiler_gnu=no
2556 >     { { echo "$as_me:$LINENO: error: Can't find path to user-specified Fortran compiler $FC" >&5
2557 > echo "$as_me: error: Can't find path to user-specified Fortran compiler $FC" >&2;}
2558 >   { (exit 1); exit 1; }; }
2559   fi
2560  
2559 rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext
2560 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2561
2561   fi
2563 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2564 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2565 GXX=`test $ac_compiler_gnu = yes && echo yes`
2566 ac_test_CXXFLAGS=${CXXFLAGS+set}
2567 ac_save_CXXFLAGS=$CXXFLAGS
2568 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2569 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2570 if test "${ac_cv_prog_cxx_g+set}" = set; then
2571  echo $ECHO_N "(cached) $ECHO_C" >&6
2572 else
2573  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2574   ac_cxx_werror_flag=yes
2575   ac_cv_prog_cxx_g=no
2576   CXXFLAGS="-g"
2577   cat >conftest.$ac_ext <<_ACEOF
2578 /* confdefs.h.  */
2579 _ACEOF
2580 cat confdefs.h >>conftest.$ac_ext
2581 cat >>conftest.$ac_ext <<_ACEOF
2582 /* end confdefs.h.  */
2562  
2584 int
2585 main ()
2586 {
2563  
2588  ;
2589  return 0;
2590 }
2591 _ACEOF
2592 rm -rf conftest.$ac_objext
2593 if { (ac_try="$ac_compile"
2594 case "(($ac_try" in
2595  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2596  *) ac_try_echo=$ac_try;;
2597 esac
2598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2599  (eval "$ac_compile") 2>conftest.er1
2600  ac_status=$?
2601  grep -v '^ *+' conftest.er1 >conftest.err
2602  rm -rf conftest.er1
2603  cat conftest.err >&5
2604  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2605  (exit $ac_status); } && {
2606         test -z "$ac_cxx_werror_flag" ||
2607         test ! -s conftest.err
2608       } && test -s conftest.$ac_objext; then
2609  ac_cv_prog_cxx_g=yes
2610 else
2611  echo "$as_me: failed program was:" >&5
2612 sed 's/^/| /' conftest.$ac_ext >&5
2564  
2614        CXXFLAGS=""
2615      cat >conftest.$ac_ext <<_ACEOF
2616 /* confdefs.h.  */
2617 _ACEOF
2618 cat confdefs.h >>conftest.$ac_ext
2619 cat >>conftest.$ac_ext <<_ACEOF
2620 /* end confdefs.h.  */
2565  
2566 < int
2567 < main ()
2568 < {
2625 <
2626 <  ;
2627 <  return 0;
2628 < }
2629 < _ACEOF
2630 < rm -rf conftest.$ac_objext
2631 < if { (ac_try="$ac_compile"
2632 < case "(($ac_try" in
2633 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2634 <  *) ac_try_echo=$ac_try;;
2635 < esac
2636 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2637 <  (eval "$ac_compile") 2>conftest.er1
2638 <  ac_status=$?
2639 <  grep -v '^ *+' conftest.er1 >conftest.err
2640 <  rm -rf conftest.er1
2641 <  cat conftest.err >&5
2642 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2643 <  (exit $ac_status); } && {
2644 <         test -z "$ac_cxx_werror_flag" ||
2645 <         test ! -s conftest.err
2646 <       } && test -s conftest.$ac_objext; then
2647 <  :
2566 > # Check whether --with-mpi was given.
2567 > if test "${with_mpi+set}" = set; then
2568 >  withval=$with_mpi;
2569   else
2570 <  echo "$as_me: failed program was:" >&5
2571 < sed 's/^/| /' conftest.$ac_ext >&5
2570 >  with_mpi="auto"
2571 > fi
2572  
2573 <        ac_cxx_werror_flag=$ac_save_cxx_werror_flag
2653 <         CXXFLAGS="-g"
2654 <         cat >conftest.$ac_ext <<_ACEOF
2655 < /* confdefs.h.  */
2656 < _ACEOF
2657 < cat confdefs.h >>conftest.$ac_ext
2658 < cat >>conftest.$ac_ext <<_ACEOF
2659 < /* end confdefs.h.  */
2573 > if test "x$with_mpi" != "xno"; then
2574  
2661 int
2662 main ()
2663 {
2575  
2576 <  ;
2577 <  return 0;
2578 < }
2579 < _ACEOF
2580 < rm -rf conftest.$ac_objext
2581 < if { (ac_try="$ac_compile"
2582 < case "(($ac_try" in
2583 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2673 <  *) ac_try_echo=$ac_try;;
2674 < esac
2675 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2676 <  (eval "$ac_compile") 2>conftest.er1
2677 <  ac_status=$?
2678 <  grep -v '^ *+' conftest.er1 >conftest.err
2679 <  rm -rf conftest.er1
2680 <  cat conftest.err >&5
2681 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2682 <  (exit $ac_status); } && {
2683 <         test -z "$ac_cxx_werror_flag" ||
2684 <         test ! -s conftest.err
2685 <       } && test -s conftest.$ac_objext; then
2686 <  ac_cv_prog_cxx_g=yes
2576 > for ac_prog in $CC openmpicc mpicc
2577 > do
2578 >  # Extract the first word of "$ac_prog", so it can be a program name with args.
2579 > set dummy $ac_prog; ac_word=$2
2580 > { echo "$as_me:$LINENO: checking for $ac_word" >&5
2581 > echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2582 > if test "${ac_cv_prog_acx_mpi_mpicc+set}" = set; then
2583 >  echo $ECHO_N "(cached) $ECHO_C" >&6
2584   else
2585 <  echo "$as_me: failed program was:" >&5
2586 < sed 's/^/| /' conftest.$ac_ext >&5
2585 >  if test -n "$acx_mpi_mpicc"; then
2586 >  ac_cv_prog_acx_mpi_mpicc="$acx_mpi_mpicc" # Let the user override the test.
2587 > else
2588 > as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2589 > for as_dir in $PATH
2590 > do
2591 >  IFS=$as_save_IFS
2592 >  test -z "$as_dir" && as_dir=.
2593 >  for ac_exec_ext in '' $ac_executable_extensions; do
2594 >  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2595 >    ac_cv_prog_acx_mpi_mpicc="$ac_prog"
2596 >    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2597 >    break 2
2598 >  fi
2599 > done
2600 > done
2601 > IFS=$as_save_IFS
2602  
2691
2603   fi
2693
2694 rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext
2604   fi
2605 <
2606 < rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext
2607 < fi
2608 <
2700 < rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext
2701 <   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
2702 < fi
2703 < { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2704 < echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
2705 < if test "$ac_test_CXXFLAGS" = set; then
2706 <  CXXFLAGS=$ac_save_CXXFLAGS
2707 < elif test $ac_cv_prog_cxx_g = yes; then
2708 <  if test "$GXX" = yes; then
2709 <    CXXFLAGS="-g -O2"
2710 <  else
2711 <    CXXFLAGS="-g"
2712 <  fi
2605 > acx_mpi_mpicc=$ac_cv_prog_acx_mpi_mpicc
2606 > if test -n "$acx_mpi_mpicc"; then
2607 >  { echo "$as_me:$LINENO: result: $acx_mpi_mpicc" >&5
2608 > echo "${ECHO_T}$acx_mpi_mpicc" >&6; }
2609   else
2610 <  if test "$GXX" = yes; then
2611 <    CXXFLAGS="-O2"
2716 <  else
2717 <    CXXFLAGS=
2718 <  fi
2610 >  { echo "$as_me:$LINENO: result: no" >&5
2611 > echo "${ECHO_T}no" >&6; }
2612   fi
2720 ac_ext=c
2721 ac_cpp='$CPP $CPPFLAGS'
2722 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2723 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2724 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2613  
2614 < ac_ext=c
2615 < ac_cpp='$CPP $CPPFLAGS'
2616 < ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2617 < ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2618 < ac_compiler_gnu=$ac_cv_c_compiler_gnu
2619 < if test -n "$ac_tool_prefix"; then
2620 <  for ac_prog in mpicc icc pathcc pgcc cc xlc gcc
2621 <  do
2622 <    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2735 < set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2614 >
2615 >  test -n "$acx_mpi_mpicc" && break
2616 > done
2617 > test -n "$acx_mpi_mpicc" || acx_mpi_mpicc="no"
2618 >
2619 > if test $acx_mpi_mpicc != no; then
2620 >
2621 >  # Extract the first word of "$acx_mpi_mpicc", so it can be a program name with args.
2622 > set dummy $acx_mpi_mpicc; ac_word=$2
2623   { echo "$as_me:$LINENO: checking for $ac_word" >&5
2624   echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2625 < if test "${ac_cv_prog_CC+set}" = set; then
2625 > if test "${ac_cv_path_acx_mpi_mpicc_path+set}" = set; then
2626    echo $ECHO_N "(cached) $ECHO_C" >&6
2627   else
2628 <  if test -n "$CC"; then
2629 <  ac_cv_prog_CC="$CC" # Let the user override the test.
2630 < else
2631 < as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2628 >  case $acx_mpi_mpicc_path in
2629 >  [\\/]* | ?:[\\/]*)
2630 >  ac_cv_path_acx_mpi_mpicc_path="$acx_mpi_mpicc_path" # Let the user override the test with a path.
2631 >  ;;
2632 >  *)
2633 >  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2634   for as_dir in $PATH
2635   do
2636    IFS=$as_save_IFS
2637    test -z "$as_dir" && as_dir=.
2638    for ac_exec_ext in '' $ac_executable_extensions; do
2639    if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2640 <    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2640 >    ac_cv_path_acx_mpi_mpicc_path="$as_dir/$ac_word$ac_exec_ext"
2641      echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2642      break 2
2643    fi
# Line 2756 | Line 2645 | IFS=$as_save_IFS
2645   done
2646   IFS=$as_save_IFS
2647  
2648 +  test -z "$ac_cv_path_acx_mpi_mpicc_path" && ac_cv_path_acx_mpi_mpicc_path="no"
2649 +  ;;
2650 + esac
2651   fi
2652 < fi
2653 < CC=$ac_cv_prog_CC
2654 < if test -n "$CC"; then
2655 <  { echo "$as_me:$LINENO: result: $CC" >&5
2764 < echo "${ECHO_T}$CC" >&6; }
2652 > acx_mpi_mpicc_path=$ac_cv_path_acx_mpi_mpicc_path
2653 > if test -n "$acx_mpi_mpicc_path"; then
2654 >  { echo "$as_me:$LINENO: result: $acx_mpi_mpicc_path" >&5
2655 > echo "${ECHO_T}$acx_mpi_mpicc_path" >&6; }
2656   else
2657    { echo "$as_me:$LINENO: result: no" >&5
2658   echo "${ECHO_T}no" >&6; }
2659   fi
2660  
2661  
2771    test -n "$CC" && break
2772  done
2662   fi
2663 < if test -z "$CC"; then
2664 <  ac_ct_CC=$CC
2776 <  for ac_prog in mpicc icc pathcc pgcc cc xlc gcc
2663 >
2664 > for ac_prog in $FC openmpif90 mpif90
2665   do
2666    # Extract the first word of "$ac_prog", so it can be a program name with args.
2667   set dummy $ac_prog; ac_word=$2
2668   { echo "$as_me:$LINENO: checking for $ac_word" >&5
2669   echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2670 < if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2670 > if test "${ac_cv_prog_acx_mpi_mpif90+set}" = set; then
2671    echo $ECHO_N "(cached) $ECHO_C" >&6
2672   else
2673 <  if test -n "$ac_ct_CC"; then
2674 <  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2673 >  if test -n "$acx_mpi_mpif90"; then
2674 >  ac_cv_prog_acx_mpi_mpif90="$acx_mpi_mpif90" # Let the user override the test.
2675   else
2676   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2677   for as_dir in $PATH
# Line 2792 | Line 2680 | do
2680    test -z "$as_dir" && as_dir=.
2681    for ac_exec_ext in '' $ac_executable_extensions; do
2682    if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2683 <    ac_cv_prog_ac_ct_CC="$ac_prog"
2683 >    ac_cv_prog_acx_mpi_mpif90="$ac_prog"
2684      echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2685      break 2
2686    fi
# Line 2802 | Line 2690 | fi
2690  
2691   fi
2692   fi
2693 < ac_ct_CC=$ac_cv_prog_ac_ct_CC
2694 < if test -n "$ac_ct_CC"; then
2695 <  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2696 < echo "${ECHO_T}$ac_ct_CC" >&6; }
2693 > acx_mpi_mpif90=$ac_cv_prog_acx_mpi_mpif90
2694 > if test -n "$acx_mpi_mpif90"; then
2695 >  { echo "$as_me:$LINENO: result: $acx_mpi_mpif90" >&5
2696 > echo "${ECHO_T}$acx_mpi_mpif90" >&6; }
2697   else
2698    { echo "$as_me:$LINENO: result: no" >&5
2699   echo "${ECHO_T}no" >&6; }
2700   fi
2701  
2702  
2703 <  test -n "$ac_ct_CC" && break
2703 >  test -n "$acx_mpi_mpif90" && break
2704   done
2705 + test -n "$acx_mpi_mpif90" || acx_mpi_mpif90="no"
2706  
2707 <  if test "x$ac_ct_CC" = x; then
2819 <    CC=""
2820 <  else
2821 <    case $cross_compiling:$ac_tool_warned in
2822 < yes:)
2823 < { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2824 < whose name does not start with the host triplet.  If you think this
2825 < configuration is useful to you, please write to autoconf@gnu.org." >&5
2826 < echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2827 < whose name does not start with the host triplet.  If you think this
2828 < configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2829 < ac_tool_warned=yes ;;
2830 < esac
2831 <    CC=$ac_ct_CC
2832 <  fi
2833 < fi
2707 > if test $acx_mpi_mpif90 != no; then
2708  
2709 <
2710 < test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2711 < See \`config.log' for more details." >&5
2712 < echo "$as_me: error: no acceptable C compiler found in \$PATH
2713 < See \`config.log' for more details." >&2;}
2714 <   { (exit 1); exit 1; }; }
2715 <
2716 < # Provide some information about the compiler.
2717 < echo "$as_me:$LINENO: checking for C compiler version" >&5
2718 < ac_compiler=`set X $ac_compile; echo $2`
2719 < { (ac_try="$ac_compiler --version >&5"
2720 < case "(($ac_try" in
2721 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2722 <  *) ac_try_echo=$ac_try;;
2723 < esac
2724 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2725 <  (eval "$ac_compiler --version >&5") 2>&5
2726 <  ac_status=$?
2727 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2709 >  # Extract the first word of "$acx_mpi_mpif90", so it can be a program name with args.
2710 > set dummy $acx_mpi_mpif90; ac_word=$2
2711 > { echo "$as_me:$LINENO: checking for $ac_word" >&5
2712 > echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2713 > if test "${ac_cv_path_acx_mpi_mpif90_path+set}" = set; then
2714 >  echo $ECHO_N "(cached) $ECHO_C" >&6
2715 > else
2716 >  case $acx_mpi_mpif90_path in
2717 >  [\\/]* | ?:[\\/]*)
2718 >  ac_cv_path_acx_mpi_mpif90_path="$acx_mpi_mpif90_path" # Let the user override the test with a path.
2719 >  ;;
2720 >  *)
2721 >  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2722 > for as_dir in $PATH
2723 > do
2724 >  IFS=$as_save_IFS
2725 >  test -z "$as_dir" && as_dir=.
2726 >  for ac_exec_ext in '' $ac_executable_extensions; do
2727 >  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2728 >    ac_cv_path_acx_mpi_mpif90_path="$as_dir/$ac_word$ac_exec_ext"
2729 >    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2730 >    break 2
2731 >  fi
2732 > done
2733 > done
2734 > IFS=$as_save_IFS
2735 >
2736 >  test -z "$ac_cv_path_acx_mpi_mpif90_path" && ac_cv_path_acx_mpi_mpif90_path="no"
2737 >  ;;
2738 > esac
2739 > fi
2740 > acx_mpi_mpif90_path=$ac_cv_path_acx_mpi_mpif90_path
2741 > if test -n "$acx_mpi_mpif90_path"; then
2742 >  { echo "$as_me:$LINENO: result: $acx_mpi_mpif90_path" >&5
2743 > echo "${ECHO_T}$acx_mpi_mpif90_path" >&6; }
2744 > else
2745 >  { echo "$as_me:$LINENO: result: no" >&5
2746 > echo "${ECHO_T}no" >&6; }
2747 > fi
2748 >
2749 >
2750 > fi
2751 >
2752 > for ac_prog in $CXX openmpicxx openmpiCC openmpic++ mpicxx mpiCC mpic++
2753 > do
2754 >  # Extract the first word of "$ac_prog", so it can be a program name with args.
2755 > set dummy $ac_prog; ac_word=$2
2756 > { echo "$as_me:$LINENO: checking for $ac_word" >&5
2757 > echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2758 > if test "${ac_cv_prog_acx_mpi_mpicxx+set}" = set; then
2759 >  echo $ECHO_N "(cached) $ECHO_C" >&6
2760 > else
2761 >  if test -n "$acx_mpi_mpicxx"; then
2762 >  ac_cv_prog_acx_mpi_mpicxx="$acx_mpi_mpicxx" # Let the user override the test.
2763 > else
2764 > as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2765 > for as_dir in $PATH
2766 > do
2767 >  IFS=$as_save_IFS
2768 >  test -z "$as_dir" && as_dir=.
2769 >  for ac_exec_ext in '' $ac_executable_extensions; do
2770 >  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2771 >    ac_cv_prog_acx_mpi_mpicxx="$ac_prog"
2772 >    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2773 >    break 2
2774 >  fi
2775 > done
2776 > done
2777 > IFS=$as_save_IFS
2778 >
2779 > fi
2780 > fi
2781 > acx_mpi_mpicxx=$ac_cv_prog_acx_mpi_mpicxx
2782 > if test -n "$acx_mpi_mpicxx"; then
2783 >  { echo "$as_me:$LINENO: result: $acx_mpi_mpicxx" >&5
2784 > echo "${ECHO_T}$acx_mpi_mpicxx" >&6; }
2785 > else
2786 >  { echo "$as_me:$LINENO: result: no" >&5
2787 > echo "${ECHO_T}no" >&6; }
2788 > fi
2789 >
2790 >
2791 >  test -n "$acx_mpi_mpicxx" && break
2792 > done
2793 > test -n "$acx_mpi_mpicxx" || acx_mpi_mpicxx="no"
2794 >
2795 > if test $acx_mpi_mpicxx != no; then
2796 >
2797 >  # Extract the first word of "$acx_mpi_mpicxx", so it can be a program name with args.
2798 > set dummy $acx_mpi_mpicxx; ac_word=$2
2799 > { echo "$as_me:$LINENO: checking for $ac_word" >&5
2800 > echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2801 > if test "${ac_cv_path_acx_mpi_mpicxx_path+set}" = set; then
2802 >  echo $ECHO_N "(cached) $ECHO_C" >&6
2803 > else
2804 >  case $acx_mpi_mpicxx_path in
2805 >  [\\/]* | ?:[\\/]*)
2806 >  ac_cv_path_acx_mpi_mpicxx_path="$acx_mpi_mpicxx_path" # Let the user override the test with a path.
2807 >  ;;
2808 >  *)
2809 >  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2810 > for as_dir in $PATH
2811 > do
2812 >  IFS=$as_save_IFS
2813 >  test -z "$as_dir" && as_dir=.
2814 >  for ac_exec_ext in '' $ac_executable_extensions; do
2815 >  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2816 >    ac_cv_path_acx_mpi_mpicxx_path="$as_dir/$ac_word$ac_exec_ext"
2817 >    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2818 >    break 2
2819 >  fi
2820 > done
2821 > done
2822 > IFS=$as_save_IFS
2823 >
2824 >  test -z "$ac_cv_path_acx_mpi_mpicxx_path" && ac_cv_path_acx_mpi_mpicxx_path="no"
2825 >  ;;
2826 > esac
2827 > fi
2828 > acx_mpi_mpicxx_path=$ac_cv_path_acx_mpi_mpicxx_path
2829 > if test -n "$acx_mpi_mpicxx_path"; then
2830 >  { echo "$as_me:$LINENO: result: $acx_mpi_mpicxx_path" >&5
2831 > echo "${ECHO_T}$acx_mpi_mpicxx_path" >&6; }
2832 > else
2833 >  { echo "$as_me:$LINENO: result: no" >&5
2834 > echo "${ECHO_T}no" >&6; }
2835 > fi
2836 >
2837 >
2838 > fi
2839 >
2840 > if test $acx_mpi_mpicc = no; then
2841 >
2842 >  if test $acx_mpi_mpicxx = no; then
2843 >
2844 >    acx_mpi_compiler=no
2845 >
2846 > else
2847 >
2848 >    acx_mpi_compiler=$acx_mpi_mpicxx
2849 >    acx_mpi_compiler_path=$acx_mpi_mpicxx_path
2850 > fi
2851 >
2852 >
2853 > else
2854 >
2855 >  if test $acx_mpi_mpicxx = no; then
2856 >
2857 >    acx_mpi_compiler=$acx_mpi_mpicc
2858 >    acx_mpi_compiler_path=$acx_mpi_mpicc_path
2859 >
2860 > else
2861 >
2862 >    { echo "$as_me:$LINENO: checking whether to use $acx_mpi_mpicc or $acx_mpi_mpicxx" >&5
2863 > echo $ECHO_N "checking whether to use $acx_mpi_mpicc or $acx_mpi_mpicxx... $ECHO_C" >&6; }
2864 >    ac_ext=cpp
2865 > ac_cpp='$CXXCPP $CPPFLAGS'
2866 > ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2867 > ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2868 > ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2869 >
2870 >    cat >conftest.$ac_ext <<_ACEOF
2871 > /* confdefs.h.  */
2872 > _ACEOF
2873 > cat confdefs.h >>conftest.$ac_ext
2874 > cat >>conftest.$ac_ext <<_ACEOF
2875 > /* end confdefs.h.  */
2876 >
2877 > #include <mpi.h>
2878 >
2879 > int
2880 > main ()
2881 > {
2882 >
2883 > MPI_Finalize();
2884 >
2885 >  ;
2886 >  return 0;
2887 > }
2888 > _ACEOF
2889 >    if { (ac_try="$acx_mpi_mpicxx_path -c conftest.$ac_ext >&5"
2890 > case "(($ac_try" in
2891 >  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2892 >  *) ac_try_echo=$ac_try;;
2893 > esac
2894 > eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2895 >  (eval "$acx_mpi_mpicxx_path -c conftest.$ac_ext >&5") 2>conftest.er1
2896 >  ac_status=$?
2897 >  grep -v '^ *+' conftest.er1 >conftest.err
2898 >  rm -f conftest.er1
2899 >  cat conftest.err >&5
2900 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2901 >  (exit $ac_status); } && {
2902 >         test -z "$ac_cxx_werror_flag" ||
2903 >         test ! -s conftest.err
2904 >       } && test -s conftest.$ac_objext; then
2905 >
2906 >      acx_mpi_compiler=$acx_mpi_mpicxx
2907 >      acx_mpi_compiler_path=$acx_mpi_mpicxx_path
2908 >
2909 > else
2910 >
2911 >      acx_mpi_compiler=$acx_mpi_mpicc
2912 >      acx_mpi_compiler_path=$acx_mpi_mpicc_path
2913 > fi
2914 >
2915 >    ac_ext=c
2916 > ac_cpp='$CPP $CPPFLAGS'
2917 > ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2918 > ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2919 > ac_compiler_gnu=$ac_cv_c_compiler_gnu
2920 >
2921 >    { echo "$as_me:$LINENO: result: $acx_mpi_compiler" >&5
2922 > echo "${ECHO_T}$acx_mpi_compiler" >&6; }
2923 > fi
2924 >
2925 > fi
2926 >
2927 > { echo "$as_me:$LINENO: checking whether mpif.h is usable" >&5
2928 > echo $ECHO_N "checking whether mpif.h is usable... $ECHO_C" >&6; }
2929 > ac_ext=${ac_fc_srcext-f}
2930 > ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
2931 > ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
2932 > ac_compiler_gnu=$ac_cv_fc_compiler_gnu
2933 >
2934 > ac_save_ext=$ac_ext
2935 > ac_ext=F90
2936 > rm -f conftest*
2937 > cat >conftest.$ac_ext <<EOF
2938 > program main
2939 >   include 'mpif.h'
2940 >   call MPI_Init
2941 > end
2942 > EOF
2943 > if $acx_mpi_mpif90_path -c conftest.$ac_ext > conftest.out 2>&1 ; then
2944 >        acx_mpi_f90_compiler=yes
2945 >        { echo "$as_me:$LINENO: result: yes" >&5
2946 > echo "${ECHO_T}yes" >&6; }
2947 > else
2948 >        if test -s conftest.out ; then
2949 >                cat conftest.out >> config.log
2950 >        fi
2951 >        acx_mpi_f90_compiler=no
2952 >        { echo "$as_me:$LINENO: result: no! Check MPI fortran include paths" >&5
2953 > echo "${ECHO_T}no! Check MPI fortran include paths" >&6; }
2954 > fi
2955 > rm -f conftest*
2956 > ac_ext=$ac_save_ext
2957 > ac_ext=c
2958 > ac_cpp='$CPP $CPPFLAGS'
2959 > ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2960 > ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2961 > ac_compiler_gnu=$ac_cv_c_compiler_gnu
2962 >
2963 > if test $acx_mpi_compiler = no || test $acx_mpi_f90_compiler = no; then
2964 >
2965 > acx_cv_mpi_implementation=no
2966 > else
2967 >  { echo "$as_me:$LINENO: checking for the MPI implementation flavor" >&5
2968 > echo $ECHO_N "checking for the MPI implementation flavor... $ECHO_C" >&6; }
2969 > if test "${acx_cv_mpi_implementation+set}" = set; then
2970 >  echo $ECHO_N "(cached) $ECHO_C" >&6
2971 > else
2972 >  acx_cv_mpi_implementation=no
2973 > if { (ac_try="grep -q LAM $acx_mpi_compiler_path"
2974 > case "(($ac_try" in
2975 >  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2976 >  *) ac_try_echo=$ac_try;;
2977 > esac
2978 > eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2979 >  (eval "grep -q LAM $acx_mpi_compiler_path") 2>conftest.er1
2980 >  ac_status=$?
2981 >  grep -v '^ *+' conftest.er1 >conftest.err
2982 >  rm -f conftest.er1
2983 >  cat conftest.err >&5
2984 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2985 >  (exit $ac_status); }; then
2986 >
2987 >  acx_cv_mpi_implementation=lammpi
2988 >
2989 > else
2990 >
2991 >  if { (ac_try="grep -q showme $acx_mpi_compiler_path"
2992 > case "(($ac_try" in
2993 >  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2994 >  *) ac_try_echo=$ac_try;;
2995 > esac
2996 > eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2997 >  (eval "grep -q showme $acx_mpi_compiler_path") 2>conftest.er1
2998 >  ac_status=$?
2999 >  grep -v '^ *+' conftest.er1 >conftest.err
3000 >  rm -f conftest.er1
3001 >  cat conftest.err >&5
3002 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3003 >  (exit $ac_status); }; then
3004 >
3005 >    acx_cv_mpi_implementation=openmpi
3006 >
3007 > else
3008 >
3009 >    if { (ac_try="grep -q MPICH $acx_mpi_compiler_path"
3010 > case "(($ac_try" in
3011 >  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3012 >  *) ac_try_echo=$ac_try;;
3013 > esac
3014 > eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3015 >  (eval "grep -q MPICH $acx_mpi_compiler_path") 2>conftest.er1
3016 >  ac_status=$?
3017 >  grep -v '^ *+' conftest.er1 >conftest.err
3018 >  rm -f conftest.er1
3019 >  cat conftest.err >&5
3020 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3021 >  (exit $ac_status); }; then
3022 >
3023 >      acx_cv_mpi_implementation=mpich
3024 >
3025 > else
3026 >  acx_cv_mpi_implementation=$with_mpi
3027 > fi
3028 >
3029 > fi
3030 >
3031 > fi
3032 >
3033 > fi
3034 > { echo "$as_me:$LINENO: result: $acx_cv_mpi_implementation" >&5
3035 > echo "${ECHO_T}$acx_cv_mpi_implementation" >&6; }
3036 >
3037 > fi
3038 > case $acx_cv_mpi_implementation in
3039 > (lammpi)
3040 >
3041 > cat >>confdefs.h <<\_ACEOF
3042 > #define MPI_IS_LAMMPI 1
3043 > _ACEOF
3044 >
3045 >  ;;
3046 > (openmpi)
3047 >
3048 > cat >>confdefs.h <<\_ACEOF
3049 > #define MPI_IS_OPENMPI 1
3050 > _ACEOF
3051 >
3052 >  ;;
3053 > (mpich)
3054 >
3055 > cat >>confdefs.h <<\_ACEOF
3056 > #define MPI_IS_MPICH 1
3057 > _ACEOF
3058 >
3059 >  ;;
3060 > esac
3061 > if test $acx_cv_mpi_implementation = no; then
3062 >
3063 > acx_mpi_cflags=""
3064 > acx_mpi_libs=""
3065 > USE_MPI="no"
3066 >        { echo "$as_me:$LINENO: WARNING: No suitable MPI implementation found. oopse_MPI will not be build." >&5
3067 > echo "$as_me: WARNING: No suitable MPI implementation found. oopse_MPI will not be build." >&2;}
3068 > else
3069 >
3070 >
3071 > { echo "$as_me:$LINENO: checking how to compile MPI-C code" >&5
3072 > echo $ECHO_N "checking how to compile MPI-C code... $ECHO_C" >&6; }
3073 > if test "${acx_mpi_cflags+set}" = set; then
3074 >  echo $ECHO_N "(cached) $ECHO_C" >&6
3075 > else
3076 >
3077 > case $acx_cv_mpi_implementation in
3078 >  (lammpi)
3079 >    cfo="--showme:compile"
3080 >    ;;
3081 >  (openmpi)
3082 >    cfo="--showme:compile"
3083 >    ;;
3084 >  (mpich)
3085 >    case "$acx_mpi_compiler_path" in
3086 >      (*mpiCC)
3087 >        sc_cv_cn="-CC="
3088 >        ;;
3089 >      (*mpicxx)
3090 >        sc_cv_cn="-cxx="
3091 >        ;;
3092 >      (*mpicc)
3093 >        sc_cv_cn="-cc="
3094 >        ;;
3095 >      (*)
3096 >        sc_cv_cn=""
3097 >        ;;
3098 >    esac
3099 >    cfo="-compile_info $sc_cv_cn"
3100 >    ;;
3101 > esac
3102 > echo "$as_me:$LINENO: mpi_pre_cflags=\"\`$acx_mpi_compiler_path $cfo || echo ' no'\`\"" >&5
3103 > mpi_pre_cflags="`$acx_mpi_compiler_path $cfo 2>conftest.er1 || echo ' no'`"
3104 > grep -v '^ *+' conftest.er1 >conftest.err
3105 > rm -f conftest.er1
3106 > cat conftest.err >&5
3107 > echo "$as_me:$LINENO: mpi_pre_cflags = $mpi_pre_cflags" >&5
3108 > case "$mpi_pre_cflags" in
3109 >  (*no)
3110 >    acx_mpi_cflags=no
3111 >    acx_mpi_cflags="no"
3112 >    ;;
3113 >  (*)
3114 >    acx_mpi_tmp_mode="normal"
3115 >  acx_mpi_tmp_prefix=""
3116 >  eval "acx_mpi_cflags=\"\""
3117 >  for acx_mpi_tmp in $mpi_pre_cflags; do
3118 >    case "$acx_mpi_tmp_mode" in
3119 >      (normal)
3120 >        case "$acx_mpi_tmp" in
3121 >          (-I|-D)
3122 >            acx_mpi_tmp_prefix="$acx_mpi_tmp"
3123 >            acx_mpi_tmp_mode="accept"
3124 >            ;;
3125 >          (-I*|-D*)
3126 >            eval "acx_mpi_cflags=\"`eval echo '${'\\acx_mpi_cflags'}'` \$acx_mpi_tmp\""
3127 >            ;;
3128 >          (-L|-l)
3129 >            acx_mpi_tmp_mode="skip"
3130 >            ;;
3131 >          (*)
3132 >            ;;
3133 >        esac
3134 >        ;;
3135 >      (accept)
3136 >        eval "acx_mpi_cflags=\"`eval echo '${'\\acx_mpi_cflags'}'` \$acx_mpi_tmp_prefix \$acx_mpi_tmp\""
3137 >        ;;
3138 >      (skip)
3139 >        ;;
3140 >    esac
3141 >  done
3142 >
3143 >    ;;
3144 > esac
3145 >
3146 > fi
3147 > { echo "$as_me:$LINENO: result: $acx_mpi_cflags" >&5
3148 > echo "${ECHO_T}$acx_mpi_cflags" >&6; }
3149 >
3150 >
3151 > { echo "$as_me:$LINENO: checking how to link MPI-C code" >&5
3152 > echo $ECHO_N "checking how to link MPI-C code... $ECHO_C" >&6; }
3153 > if test "${acx_mpi_libs+set}" = set; then
3154 >  echo $ECHO_N "(cached) $ECHO_C" >&6
3155 > else
3156 >
3157 > case $acx_cv_mpi_implementation in
3158 >  (lammpi)
3159 >    lfo="--showme:compile --showme:link"
3160 >    ;;
3161 >  (openmpi)
3162 >    lfo="--showme:link"
3163 >    ;;
3164 >  (mpich)
3165 >    case "$acx_mpi_compiler_path" in
3166 >      (*mpiCC)
3167 >        sc_cv_cn="-CC="
3168 >        ;;
3169 >      (*mpicxx)
3170 >        sc_cv_cn="-cxx="
3171 >        ;;
3172 >      (*mpicc)
3173 >        sc_cv_cn="-cc="
3174 >        ;;
3175 >      (*)
3176 >        sc_cv_cn=""
3177 >        ;;
3178 >    esac
3179 >    lfo="-link_info $sc_cv_cn"
3180 >    ;;
3181 > esac
3182 > echo "$as_me:$LINENO: mpi_pre_libs=\"\`$acx_mpi_compiler_path $lfo || echo ' no'\`\"" >&5
3183 > mpi_pre_libs="`$acx_mpi_compiler_path $lfo 2>conftest.er1 || echo ' no'`"
3184 > grep -v '^ *+' conftest.er1 >conftest.err
3185 > rm -f conftest.er1
3186 > cat conftest.err >&5
3187 > echo "$as_me:$LINENO: mpi_pre_libs = $mpi_pre_libs" >&5
3188 > case "$mpi_pre_libs" in
3189 >  (*no)
3190 >    acx_mpi_libs=no
3191 >    ;;
3192 >  (*)
3193 >    acx_mpi_libs="$mpi_pre_libs"
3194 >    ;;
3195 > esac
3196 >
3197 > fi
3198 > { echo "$as_me:$LINENO: result: $acx_mpi_libs" >&5
3199 > echo "${ECHO_T}$acx_mpi_libs" >&6; }
3200 >
3201 > if test $acx_mpi_mpif90_path != no; then
3202 >
3203 >
3204 >  { echo "$as_me:$LINENO: checking how to link MPI-Fortran code" >&5
3205 > echo $ECHO_N "checking how to link MPI-Fortran code... $ECHO_C" >&6; }
3206 > if test "${acx_mpi90_libs+set}" = set; then
3207 >  echo $ECHO_N "(cached) $ECHO_C" >&6
3208 > else
3209 >
3210 >    echo "$as_me:$LINENO: mpi_pre_libs=\"\`$acx_mpi_mpif90_path $lfo || echo \" no\"\`\"" >&5
3211 >    mpi_pre_libs="`$acx_mpi_mpif90_path $lfo 2>conftest.er1 || echo " no"`"
3212 >    grep -v '^ *+' conftest.er1 >conftest.err
3213 >    rm -f conftest.er1
3214 >    cat conftest.err >&5
3215 >    echo "$as_me:$LINENO: mpi_pre_libs = $mpi_pre_libs" >&5
3216 >    case "$mpi_pre_libs" in
3217 >      (*no)
3218 >        acx_mpi90_libs=no
3219 >        ;;
3220 >      (*)
3221 >        acx_mpi90_libs="$mpi_pre_libs"
3222 >        ;;
3223 >    esac
3224 >
3225 > fi
3226 > { echo "$as_me:$LINENO: result: $acx_mpi90_libs" >&5
3227 > echo "${ECHO_T}$acx_mpi90_libs" >&6; }
3228 >
3229 >
3230 > fi
3231 >
3232 > if test "$acx_mpi_cflags" = no -o "$acx_mpi_libs" = no; then
3233 >
3234 > acx_mpi_cflags=""
3235 > acx_mpi_libs=""
3236 > USE_MPI="no"
3237 >        { echo "$as_me:$LINENO: WARNING: No suitable MPI implementation found. oopse_MPI will not be build." >&5
3238 > echo "$as_me: WARNING: No suitable MPI implementation found. oopse_MPI will not be build." >&2;}
3239 > else
3240 >
3241 > MPI_CPPFLAGS=$acx_mpi_cflags
3242 >
3243 > MPI_LIBS=$acx_mpi_libs
3244 >
3245 > if test "$acx_mpi90_libs" != no; then
3246 >  MPI90_LIBS=$acx_mpi90_libs
3247 >
3248 > fi
3249 >
3250 > USE_MPI="yes"
3251 > fi
3252 >
3253 >
3254 > fi
3255 >
3256 >
3257 > fi
3258 >
3259 >
3260 >
3261 > # Checks for programs.
3262 > ac_ext=cpp
3263 > ac_cpp='$CXXCPP $CPPFLAGS'
3264 > ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3265 > ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3266 > ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3267 > if test -z "$CXX"; then
3268 >  if test -n "$CCC"; then
3269 >    CXX=$CCC
3270 >  else
3271 >    if test -n "$ac_tool_prefix"; then
3272 >  for ac_prog in $CXX $ac_cv_prog_acx_mpi_mpicxx icpc pathCC pgCC c++ xlc++ xlC g++ CC
3273 >  do
3274 >    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3275 > set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3276 > { echo "$as_me:$LINENO: checking for $ac_word" >&5
3277 > echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3278 > if test "${ac_cv_prog_CXX+set}" = set; then
3279 >  echo $ECHO_N "(cached) $ECHO_C" >&6
3280 > else
3281 >  if test -n "$CXX"; then
3282 >  ac_cv_prog_CXX="$CXX" # Let the user override the test.
3283 > else
3284 > as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3285 > for as_dir in $PATH
3286 > do
3287 >  IFS=$as_save_IFS
3288 >  test -z "$as_dir" && as_dir=.
3289 >  for ac_exec_ext in '' $ac_executable_extensions; do
3290 >  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3291 >    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3292 >    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3293 >    break 2
3294 >  fi
3295 > done
3296 > done
3297 > IFS=$as_save_IFS
3298 >
3299 > fi
3300 > fi
3301 > CXX=$ac_cv_prog_CXX
3302 > if test -n "$CXX"; then
3303 >  { echo "$as_me:$LINENO: result: $CXX" >&5
3304 > echo "${ECHO_T}$CXX" >&6; }
3305 > else
3306 >  { echo "$as_me:$LINENO: result: no" >&5
3307 > echo "${ECHO_T}no" >&6; }
3308 > fi
3309 >
3310 >
3311 >    test -n "$CXX" && break
3312 >  done
3313 > fi
3314 > if test -z "$CXX"; then
3315 >  ac_ct_CXX=$CXX
3316 >  for ac_prog in $CXX $ac_cv_prog_acx_mpi_mpicxx icpc pathCC pgCC c++ xlc++ xlC g++ CC
3317 > do
3318 >  # Extract the first word of "$ac_prog", so it can be a program name with args.
3319 > set dummy $ac_prog; ac_word=$2
3320 > { echo "$as_me:$LINENO: checking for $ac_word" >&5
3321 > echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3322 > if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3323 >  echo $ECHO_N "(cached) $ECHO_C" >&6
3324 > else
3325 >  if test -n "$ac_ct_CXX"; then
3326 >  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3327 > else
3328 > as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3329 > for as_dir in $PATH
3330 > do
3331 >  IFS=$as_save_IFS
3332 >  test -z "$as_dir" && as_dir=.
3333 >  for ac_exec_ext in '' $ac_executable_extensions; do
3334 >  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3335 >    ac_cv_prog_ac_ct_CXX="$ac_prog"
3336 >    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3337 >    break 2
3338 >  fi
3339 > done
3340 > done
3341 > IFS=$as_save_IFS
3342 >
3343 > fi
3344 > fi
3345 > ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3346 > if test -n "$ac_ct_CXX"; then
3347 >  { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3348 > echo "${ECHO_T}$ac_ct_CXX" >&6; }
3349 > else
3350 >  { echo "$as_me:$LINENO: result: no" >&5
3351 > echo "${ECHO_T}no" >&6; }
3352 > fi
3353 >
3354 >
3355 >  test -n "$ac_ct_CXX" && break
3356 > done
3357 >
3358 >  if test "x$ac_ct_CXX" = x; then
3359 >    CXX="g++"
3360 >  else
3361 >    case $cross_compiling:$ac_tool_warned in
3362 > yes:)
3363 > { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3364 > whose name does not start with the host triplet.  If you think this
3365 > configuration is useful to you, please write to autoconf@gnu.org." >&5
3366 > echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3367 > whose name does not start with the host triplet.  If you think this
3368 > configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3369 > ac_tool_warned=yes ;;
3370 > esac
3371 >    CXX=$ac_ct_CXX
3372 >  fi
3373 > fi
3374 >
3375 >  fi
3376 > fi
3377 > # Provide some information about the compiler.
3378 > echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3379 > ac_compiler=`set X $ac_compile; echo $2`
3380 > { (ac_try="$ac_compiler --version >&5"
3381 > case "(($ac_try" in
3382 >  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3383 >  *) ac_try_echo=$ac_try;;
3384 > esac
3385 > eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3386 >  (eval "$ac_compiler --version >&5") 2>&5
3387 >  ac_status=$?
3388 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3389 >  (exit $ac_status); }
3390 > { (ac_try="$ac_compiler -v >&5"
3391 > case "(($ac_try" in
3392 >  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3393 >  *) ac_try_echo=$ac_try;;
3394 > esac
3395 > eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3396 >  (eval "$ac_compiler -v >&5") 2>&5
3397 >  ac_status=$?
3398 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3399 >  (exit $ac_status); }
3400 > { (ac_try="$ac_compiler -V >&5"
3401 > case "(($ac_try" in
3402 >  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3403 >  *) ac_try_echo=$ac_try;;
3404 > esac
3405 > eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3406 >  (eval "$ac_compiler -V >&5") 2>&5
3407 >  ac_status=$?
3408 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3409 >  (exit $ac_status); }
3410 >
3411 > cat >conftest.$ac_ext <<_ACEOF
3412 > /* confdefs.h.  */
3413 > _ACEOF
3414 > cat confdefs.h >>conftest.$ac_ext
3415 > cat >>conftest.$ac_ext <<_ACEOF
3416 > /* end confdefs.h.  */
3417 >
3418 > int
3419 > main ()
3420 > {
3421 >
3422 >  ;
3423 >  return 0;
3424 > }
3425 > _ACEOF
3426 > ac_clean_files_save=$ac_clean_files
3427 > ac_clean_files="$ac_clean_files a.out a.exe b.out"
3428 > # Try to create an executable without -o first, disregard a.out.
3429 > # It will help us diagnose broken compilers, and finding out an intuition
3430 > # of exeext.
3431 > { echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
3432 > echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6; }
3433 > ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3434 > #
3435 > # List of possible output files, starting from the most likely.
3436 > # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3437 > # only as a last resort.  b.out is created by i960 compilers.
3438 > ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3439 > #
3440 > # The IRIX 6 linker writes into existing files which may not be
3441 > # executable, retaining their permissions.  Remove them first so a
3442 > # subsequent execution test works.
3443 > ac_rmfiles=
3444 > for ac_file in $ac_files
3445 > do
3446 >  case $ac_file in
3447 >    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3448 >    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3449 >  esac
3450 > done
3451 > rm -f $ac_rmfiles
3452 >
3453 > if { (ac_try="$ac_link_default"
3454 > case "(($ac_try" in
3455 >  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3456 >  *) ac_try_echo=$ac_try;;
3457 > esac
3458 > eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3459 >  (eval "$ac_link_default") 2>&5
3460 >  ac_status=$?
3461 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3462 >  (exit $ac_status); }; then
3463 >  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3464 > # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3465 > # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3466 > # so that the user can short-circuit this test for compilers unknown to
3467 > # Autoconf.
3468 > for ac_file in $ac_files ''
3469 > do
3470 >  test -f "$ac_file" || continue
3471 >  case $ac_file in
3472 >    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3473 >        ;;
3474 >    [ab].out )
3475 >        # We found the default executable, but exeext='' is most
3476 >        # certainly right.
3477 >        break;;
3478 >    *.* )
3479 >        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3480 >        then :; else
3481 >           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3482 >        fi
3483 >        # We set ac_cv_exeext here because the later test for it is not
3484 >        # safe: cross compilers may not add the suffix if given an `-o'
3485 >        # argument, so we may need to know it at that point already.
3486 >        # Even if this section looks crufty: it has the advantage of
3487 >        # actually working.
3488 >        break;;
3489 >    * )
3490 >        break;;
3491 >  esac
3492 > done
3493 > test "$ac_cv_exeext" = no && ac_cv_exeext=
3494 >
3495 > else
3496 >  ac_file=''
3497 > fi
3498 >
3499 > { echo "$as_me:$LINENO: result: $ac_file" >&5
3500 > echo "${ECHO_T}$ac_file" >&6; }
3501 > if test -z "$ac_file"; then
3502 >  echo "$as_me: failed program was:" >&5
3503 > sed 's/^/| /' conftest.$ac_ext >&5
3504 >
3505 > { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
3506 > See \`config.log' for more details." >&5
3507 > echo "$as_me: error: C++ compiler cannot create executables
3508 > See \`config.log' for more details." >&2;}
3509 >   { (exit 77); exit 77; }; }
3510 > fi
3511 >
3512 > ac_exeext=$ac_cv_exeext
3513 >
3514 > # Check that the compiler produces executables we can run.  If not, either
3515 > # the compiler is broken, or we cross compile.
3516 > { echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
3517 > echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6; }
3518 > # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3519 > # If not cross compiling, check that we can run a simple program.
3520 > if test "$cross_compiling" != yes; then
3521 >  if { ac_try='./$ac_file'
3522 >  { (case "(($ac_try" in
3523 >  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3524 >  *) ac_try_echo=$ac_try;;
3525 > esac
3526 > eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3527 >  (eval "$ac_try") 2>&5
3528 >  ac_status=$?
3529 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3530 >  (exit $ac_status); }; }; then
3531 >    cross_compiling=no
3532 >  else
3533 >    if test "$cross_compiling" = maybe; then
3534 >        cross_compiling=yes
3535 >    else
3536 >        { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
3537 > If you meant to cross compile, use \`--host'.
3538 > See \`config.log' for more details." >&5
3539 > echo "$as_me: error: cannot run C++ compiled programs.
3540 > If you meant to cross compile, use \`--host'.
3541 > See \`config.log' for more details." >&2;}
3542 >   { (exit 1); exit 1; }; }
3543 >    fi
3544 >  fi
3545 > fi
3546 > { echo "$as_me:$LINENO: result: yes" >&5
3547 > echo "${ECHO_T}yes" >&6; }
3548 >
3549 > rm -f a.out a.exe conftest$ac_cv_exeext b.out
3550 > ac_clean_files=$ac_clean_files_save
3551 > # Check that the compiler produces executables we can run.  If not, either
3552 > # the compiler is broken, or we cross compile.
3553 > { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3554 > echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3555 > { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3556 > echo "${ECHO_T}$cross_compiling" >&6; }
3557 >
3558 > { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3559 > echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3560 > if { (ac_try="$ac_link"
3561 > case "(($ac_try" in
3562 >  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3563 >  *) ac_try_echo=$ac_try;;
3564 > esac
3565 > eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3566 >  (eval "$ac_link") 2>&5
3567 >  ac_status=$?
3568 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3569 >  (exit $ac_status); }; then
3570 >  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3571 > # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3572 > # work properly (i.e., refer to `conftest.exe'), while it won't with
3573 > # `rm'.
3574 > for ac_file in conftest.exe conftest conftest.*; do
3575 >  test -f "$ac_file" || continue
3576 >  case $ac_file in
3577 >    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3578 >    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3579 >          break;;
3580 >    * ) break;;
3581 >  esac
3582 > done
3583 > else
3584 >  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3585 > See \`config.log' for more details." >&5
3586 > echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3587 > See \`config.log' for more details." >&2;}
3588 >   { (exit 1); exit 1; }; }
3589 > fi
3590 >
3591 > rm -f conftest$ac_cv_exeext
3592 > { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3593 > echo "${ECHO_T}$ac_cv_exeext" >&6; }
3594 >
3595 > rm -f conftest.$ac_ext
3596 > EXEEXT=$ac_cv_exeext
3597 > ac_exeext=$EXEEXT
3598 > { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3599 > echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3600 > if test "${ac_cv_objext+set}" = set; then
3601 >  echo $ECHO_N "(cached) $ECHO_C" >&6
3602 > else
3603 >  cat >conftest.$ac_ext <<_ACEOF
3604 > /* confdefs.h.  */
3605 > _ACEOF
3606 > cat confdefs.h >>conftest.$ac_ext
3607 > cat >>conftest.$ac_ext <<_ACEOF
3608 > /* end confdefs.h.  */
3609 >
3610 > int
3611 > main ()
3612 > {
3613 >
3614 >  ;
3615 >  return 0;
3616 > }
3617 > _ACEOF
3618 > rm -f conftest.o conftest.obj
3619 > if { (ac_try="$ac_compile"
3620 > case "(($ac_try" in
3621 >  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3622 >  *) ac_try_echo=$ac_try;;
3623 > esac
3624 > eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3625 >  (eval "$ac_compile") 2>&5
3626 >  ac_status=$?
3627 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3628 >  (exit $ac_status); }; then
3629 >  for ac_file in conftest.o conftest.obj conftest.*; do
3630 >  test -f "$ac_file" || continue;
3631 >  case $ac_file in
3632 >    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3633 >    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3634 >       break;;
3635 >  esac
3636 > done
3637 > else
3638 >  echo "$as_me: failed program was:" >&5
3639 > sed 's/^/| /' conftest.$ac_ext >&5
3640 >
3641 > { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3642 > See \`config.log' for more details." >&5
3643 > echo "$as_me: error: cannot compute suffix of object files: cannot compile
3644 > See \`config.log' for more details." >&2;}
3645 >   { (exit 1); exit 1; }; }
3646 > fi
3647 >
3648 > rm -f conftest.$ac_cv_objext conftest.$ac_ext
3649 > fi
3650 > { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3651 > echo "${ECHO_T}$ac_cv_objext" >&6; }
3652 > OBJEXT=$ac_cv_objext
3653 > ac_objext=$OBJEXT
3654 > { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3655 > echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3656 > if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3657 >  echo $ECHO_N "(cached) $ECHO_C" >&6
3658 > else
3659 >  cat >conftest.$ac_ext <<_ACEOF
3660 > /* confdefs.h.  */
3661 > _ACEOF
3662 > cat confdefs.h >>conftest.$ac_ext
3663 > cat >>conftest.$ac_ext <<_ACEOF
3664 > /* end confdefs.h.  */
3665 >
3666 > int
3667 > main ()
3668 > {
3669 > #ifndef __GNUC__
3670 >       choke me
3671 > #endif
3672 >
3673 >  ;
3674 >  return 0;
3675 > }
3676 > _ACEOF
3677 > rm -f conftest.$ac_objext
3678 > if { (ac_try="$ac_compile"
3679 > case "(($ac_try" in
3680 >  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3681 >  *) ac_try_echo=$ac_try;;
3682 > esac
3683 > eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3684 >  (eval "$ac_compile") 2>conftest.er1
3685 >  ac_status=$?
3686 >  grep -v '^ *+' conftest.er1 >conftest.err
3687 >  rm -f conftest.er1
3688 >  cat conftest.err >&5
3689 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3690 >  (exit $ac_status); } && {
3691 >         test -z "$ac_cxx_werror_flag" ||
3692 >         test ! -s conftest.err
3693 >       } && test -s conftest.$ac_objext; then
3694 >  ac_compiler_gnu=yes
3695 > else
3696 >  echo "$as_me: failed program was:" >&5
3697 > sed 's/^/| /' conftest.$ac_ext >&5
3698 >
3699 >        ac_compiler_gnu=no
3700 > fi
3701 >
3702 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3703 > ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3704 >
3705 > fi
3706 > { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3707 > echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3708 > GXX=`test $ac_compiler_gnu = yes && echo yes`
3709 > ac_test_CXXFLAGS=${CXXFLAGS+set}
3710 > ac_save_CXXFLAGS=$CXXFLAGS
3711 > { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3712 > echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3713 > if test "${ac_cv_prog_cxx_g+set}" = set; then
3714 >  echo $ECHO_N "(cached) $ECHO_C" >&6
3715 > else
3716 >  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3717 >   ac_cxx_werror_flag=yes
3718 >   ac_cv_prog_cxx_g=no
3719 >   CXXFLAGS="-g"
3720 >   cat >conftest.$ac_ext <<_ACEOF
3721 > /* confdefs.h.  */
3722 > _ACEOF
3723 > cat confdefs.h >>conftest.$ac_ext
3724 > cat >>conftest.$ac_ext <<_ACEOF
3725 > /* end confdefs.h.  */
3726 >
3727 > int
3728 > main ()
3729 > {
3730 >
3731 >  ;
3732 >  return 0;
3733 > }
3734 > _ACEOF
3735 > rm -f conftest.$ac_objext
3736 > if { (ac_try="$ac_compile"
3737 > case "(($ac_try" in
3738 >  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3739 >  *) ac_try_echo=$ac_try;;
3740 > esac
3741 > eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3742 >  (eval "$ac_compile") 2>conftest.er1
3743 >  ac_status=$?
3744 >  grep -v '^ *+' conftest.er1 >conftest.err
3745 >  rm -f conftest.er1
3746 >  cat conftest.err >&5
3747 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3748 >  (exit $ac_status); } && {
3749 >         test -z "$ac_cxx_werror_flag" ||
3750 >         test ! -s conftest.err
3751 >       } && test -s conftest.$ac_objext; then
3752 >  ac_cv_prog_cxx_g=yes
3753 > else
3754 >  echo "$as_me: failed program was:" >&5
3755 > sed 's/^/| /' conftest.$ac_ext >&5
3756 >
3757 >        CXXFLAGS=""
3758 >      cat >conftest.$ac_ext <<_ACEOF
3759 > /* confdefs.h.  */
3760 > _ACEOF
3761 > cat confdefs.h >>conftest.$ac_ext
3762 > cat >>conftest.$ac_ext <<_ACEOF
3763 > /* end confdefs.h.  */
3764 >
3765 > int
3766 > main ()
3767 > {
3768 >
3769 >  ;
3770 >  return 0;
3771 > }
3772 > _ACEOF
3773 > rm -f conftest.$ac_objext
3774 > if { (ac_try="$ac_compile"
3775 > case "(($ac_try" in
3776 >  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3777 >  *) ac_try_echo=$ac_try;;
3778 > esac
3779 > eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3780 >  (eval "$ac_compile") 2>conftest.er1
3781 >  ac_status=$?
3782 >  grep -v '^ *+' conftest.er1 >conftest.err
3783 >  rm -f conftest.er1
3784 >  cat conftest.err >&5
3785 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3786 >  (exit $ac_status); } && {
3787 >         test -z "$ac_cxx_werror_flag" ||
3788 >         test ! -s conftest.err
3789 >       } && test -s conftest.$ac_objext; then
3790 >  :
3791 > else
3792 >  echo "$as_me: failed program was:" >&5
3793 > sed 's/^/| /' conftest.$ac_ext >&5
3794 >
3795 >        ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3796 >         CXXFLAGS="-g"
3797 >         cat >conftest.$ac_ext <<_ACEOF
3798 > /* confdefs.h.  */
3799 > _ACEOF
3800 > cat confdefs.h >>conftest.$ac_ext
3801 > cat >>conftest.$ac_ext <<_ACEOF
3802 > /* end confdefs.h.  */
3803 >
3804 > int
3805 > main ()
3806 > {
3807 >
3808 >  ;
3809 >  return 0;
3810 > }
3811 > _ACEOF
3812 > rm -f conftest.$ac_objext
3813 > if { (ac_try="$ac_compile"
3814 > case "(($ac_try" in
3815 >  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3816 >  *) ac_try_echo=$ac_try;;
3817 > esac
3818 > eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3819 >  (eval "$ac_compile") 2>conftest.er1
3820 >  ac_status=$?
3821 >  grep -v '^ *+' conftest.er1 >conftest.err
3822 >  rm -f conftest.er1
3823 >  cat conftest.err >&5
3824 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3825 >  (exit $ac_status); } && {
3826 >         test -z "$ac_cxx_werror_flag" ||
3827 >         test ! -s conftest.err
3828 >       } && test -s conftest.$ac_objext; then
3829 >  ac_cv_prog_cxx_g=yes
3830 > else
3831 >  echo "$as_me: failed program was:" >&5
3832 > sed 's/^/| /' conftest.$ac_ext >&5
3833 >
3834 >
3835 > fi
3836 >
3837 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3838 > fi
3839 >
3840 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3841 > fi
3842 >
3843 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3844 >   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3845 > fi
3846 > { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3847 > echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3848 > if test "$ac_test_CXXFLAGS" = set; then
3849 >  CXXFLAGS=$ac_save_CXXFLAGS
3850 > elif test $ac_cv_prog_cxx_g = yes; then
3851 >  if test "$GXX" = yes; then
3852 >    CXXFLAGS="-g -O2"
3853 >  else
3854 >    CXXFLAGS="-g"
3855 >  fi
3856 > else
3857 >  if test "$GXX" = yes; then
3858 >    CXXFLAGS="-O2"
3859 >  else
3860 >    CXXFLAGS=
3861 >  fi
3862 > fi
3863 > ac_ext=c
3864 > ac_cpp='$CPP $CPPFLAGS'
3865 > ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3866 > ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3867 > ac_compiler_gnu=$ac_cv_c_compiler_gnu
3868 >
3869 > ac_ext=c
3870 > ac_cpp='$CPP $CPPFLAGS'
3871 > ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3872 > ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3873 > ac_compiler_gnu=$ac_cv_c_compiler_gnu
3874 > if test -n "$ac_tool_prefix"; then
3875 >  for ac_prog in $CC $ac_cv_prog_acx_mpi_mpicc icc pathcc pgcc cc xlc gcc
3876 >  do
3877 >    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3878 > set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3879 > { echo "$as_me:$LINENO: checking for $ac_word" >&5
3880 > echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3881 > if test "${ac_cv_prog_CC+set}" = set; then
3882 >  echo $ECHO_N "(cached) $ECHO_C" >&6
3883 > else
3884 >  if test -n "$CC"; then
3885 >  ac_cv_prog_CC="$CC" # Let the user override the test.
3886 > else
3887 > as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3888 > for as_dir in $PATH
3889 > do
3890 >  IFS=$as_save_IFS
3891 >  test -z "$as_dir" && as_dir=.
3892 >  for ac_exec_ext in '' $ac_executable_extensions; do
3893 >  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3894 >    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3895 >    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3896 >    break 2
3897 >  fi
3898 > done
3899 > done
3900 > IFS=$as_save_IFS
3901 >
3902 > fi
3903 > fi
3904 > CC=$ac_cv_prog_CC
3905 > if test -n "$CC"; then
3906 >  { echo "$as_me:$LINENO: result: $CC" >&5
3907 > echo "${ECHO_T}$CC" >&6; }
3908 > else
3909 >  { echo "$as_me:$LINENO: result: no" >&5
3910 > echo "${ECHO_T}no" >&6; }
3911 > fi
3912 >
3913 >
3914 >    test -n "$CC" && break
3915 >  done
3916 > fi
3917 > if test -z "$CC"; then
3918 >  ac_ct_CC=$CC
3919 >  for ac_prog in $CC $ac_cv_prog_acx_mpi_mpicc icc pathcc pgcc cc xlc gcc
3920 > do
3921 >  # Extract the first word of "$ac_prog", so it can be a program name with args.
3922 > set dummy $ac_prog; ac_word=$2
3923 > { echo "$as_me:$LINENO: checking for $ac_word" >&5
3924 > echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3925 > if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3926 >  echo $ECHO_N "(cached) $ECHO_C" >&6
3927 > else
3928 >  if test -n "$ac_ct_CC"; then
3929 >  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3930 > else
3931 > as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3932 > for as_dir in $PATH
3933 > do
3934 >  IFS=$as_save_IFS
3935 >  test -z "$as_dir" && as_dir=.
3936 >  for ac_exec_ext in '' $ac_executable_extensions; do
3937 >  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3938 >    ac_cv_prog_ac_ct_CC="$ac_prog"
3939 >    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3940 >    break 2
3941 >  fi
3942 > done
3943 > done
3944 > IFS=$as_save_IFS
3945 >
3946 > fi
3947 > fi
3948 > ac_ct_CC=$ac_cv_prog_ac_ct_CC
3949 > if test -n "$ac_ct_CC"; then
3950 >  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3951 > echo "${ECHO_T}$ac_ct_CC" >&6; }
3952 > else
3953 >  { echo "$as_me:$LINENO: result: no" >&5
3954 > echo "${ECHO_T}no" >&6; }
3955 > fi
3956 >
3957 >
3958 >  test -n "$ac_ct_CC" && break
3959 > done
3960 >
3961 >  if test "x$ac_ct_CC" = x; then
3962 >    CC=""
3963 >  else
3964 >    case $cross_compiling:$ac_tool_warned in
3965 > yes:)
3966 > { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3967 > whose name does not start with the host triplet.  If you think this
3968 > configuration is useful to you, please write to autoconf@gnu.org." >&5
3969 > echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3970 > whose name does not start with the host triplet.  If you think this
3971 > configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3972 > ac_tool_warned=yes ;;
3973 > esac
3974 >    CC=$ac_ct_CC
3975 >  fi
3976 > fi
3977 >
3978 >
3979 > test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3980 > See \`config.log' for more details." >&5
3981 > echo "$as_me: error: no acceptable C compiler found in \$PATH
3982 > See \`config.log' for more details." >&2;}
3983 >   { (exit 1); exit 1; }; }
3984 >
3985 > # Provide some information about the compiler.
3986 > echo "$as_me:$LINENO: checking for C compiler version" >&5
3987 > ac_compiler=`set X $ac_compile; echo $2`
3988 > { (ac_try="$ac_compiler --version >&5"
3989 > case "(($ac_try" in
3990 >  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3991 >  *) ac_try_echo=$ac_try;;
3992 > esac
3993 > eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3994 >  (eval "$ac_compiler --version >&5") 2>&5
3995 >  ac_status=$?
3996 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3997    (exit $ac_status); }
3998   { (ac_try="$ac_compiler -v >&5"
3999   case "(($ac_try" in
# Line 2896 | Line 4039 | _ACEOF
4039    return 0;
4040   }
4041   _ACEOF
4042 < rm -rf conftest.$ac_objext
4042 > rm -f conftest.$ac_objext
4043   if { (ac_try="$ac_compile"
4044   case "(($ac_try" in
4045    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
# Line 2921 | Line 4064 | fi
4064          ac_compiler_gnu=no
4065   fi
4066  
4067 < rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext
4067 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4068   ac_cv_c_compiler_gnu=$ac_compiler_gnu
4069  
4070   fi
# Line 2954 | Line 4097 | _ACEOF
4097    return 0;
4098   }
4099   _ACEOF
4100 < rm -rf conftest.$ac_objext
4100 > rm -f conftest.$ac_objext
4101   if { (ac_try="$ac_compile"
4102   case "(($ac_try" in
4103    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
# Line 2992 | Line 4135 | _ACEOF
4135    return 0;
4136   }
4137   _ACEOF
4138 < rm -rf conftest.$ac_objext
4138 > rm -f conftest.$ac_objext
4139   if { (ac_try="$ac_compile"
4140   case "(($ac_try" in
4141    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
# Line 3002 | Line 4145 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4145    (eval "$ac_compile") 2>conftest.er1
4146    ac_status=$?
4147    grep -v '^ *+' conftest.er1 >conftest.err
4148 <  rm -rf conftest.er1
4148 >  rm -f conftest.er1
4149    cat conftest.err >&5
4150    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4151    (exit $ac_status); } && {
# Line 3031 | Line 4174 | _ACEOF
4174    return 0;
4175   }
4176   _ACEOF
4177 < rm -rf conftest.$ac_objext
4177 > rm -f conftest.$ac_objext
4178   if { (ac_try="$ac_compile"
4179   case "(($ac_try" in
4180    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
# Line 3056 | Line 4199 | fi
4199  
4200   fi
4201  
4202 < rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext
4202 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4203   fi
4204  
4205 < rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext
4205 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4206   fi
4207  
4208 < rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext
4208 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4209     ac_c_werror_flag=$ac_save_c_werror_flag
4210   fi
4211   { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
# Line 3150 | Line 4293 | do
4293          -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4294   do
4295    CC="$ac_save_CC $ac_arg"
4296 <  rm -rf conftest.$ac_objext
4296 >  rm -f conftest.$ac_objext
4297   if { (ac_try="$ac_compile"
4298   case "(($ac_try" in
4299    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
# Line 3175 | Line 4318 | fi
4318  
4319   fi
4320  
4321 < rm -rf core conftest.err conftest.$ac_objext
4321 > rm -f core conftest.err conftest.$ac_objext
4322    test "x$ac_cv_prog_cc_c89" != "xno" && break
4323   done
4324 < rm -rf conftest.$ac_ext
4324 > rm -f conftest.$ac_ext
4325   CC=$ac_save_CC
4326  
4327   fi
# Line 3208 | Line 4351 | if test -n "$ac_tool_prefix"; then
4351   ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
4352   ac_compiler_gnu=$ac_cv_fc_compiler_gnu
4353   if test -n "$ac_tool_prefix"; then
4354 <  for ac_prog in mpif90 ifort ifc pathf95 pgf95 xlf95 lf95 epcf90 pathf90 xlf90 f95 f90 gfortran g95 fort
4354 >  for ac_prog in $FC $ac_cv_prog_acx_mpi_mpif90 ifort ifc pathf95 pgf95 xlf95 lf95 epcf90 pathf90 xlf90 f95 f90 gfortran g95 fort
4355    do
4356      # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4357   set dummy $ac_tool_prefix$ac_prog; ac_word=$2
# Line 3252 | Line 4395 | if test -z "$FC"; then
4395   fi
4396   if test -z "$FC"; then
4397    ac_ct_FC=$FC
4398 <  for ac_prog in mpif90 ifort ifc pathf95 pgf95 xlf95 lf95 epcf90 pathf90 xlf90 f95 f90 gfortran g95 fort
4398 >  for ac_prog in $FC $ac_cv_prog_acx_mpi_mpif90 ifort ifc pathf95 pgf95 xlf95 lf95 epcf90 pathf90 xlf90 f95 f90 gfortran g95 fort
4399   do
4400    # Extract the first word of "$ac_prog", so it can be a program name with args.
4401   set dummy $ac_prog; ac_word=$2
# Line 3345 | Line 4488 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4488    ac_status=$?
4489    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4490    (exit $ac_status); }
4491 < rm -rf a.out
4491 > rm -f a.out
4492  
4493   # If we don't use `.F' as extension, the preprocessor is not run on the
4494   # input file.  (Note that this only needs to work for GNU compilers.)
# Line 3364 | Line 4507 | _ACEOF
4507  
4508        end
4509   _ACEOF
4510 < rm -rf conftest.$ac_objext
4510 > rm -f conftest.$ac_objext
4511   if { (ac_try="$ac_compile"
4512   case "(($ac_try" in
4513    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
# Line 3389 | Line 4532 | fi
4532          ac_compiler_gnu=no
4533   fi
4534  
4535 < rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext
4535 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4536   ac_cv_fc_compiler_gnu=$ac_compiler_gnu
4537  
4538   fi
# Line 3410 | Line 4553 | _ACEOF
4553  
4554        end
4555   _ACEOF
4556 < rm -rf conftest.$ac_objext
4556 > rm -f conftest.$ac_objext
4557   if { (ac_try="$ac_compile"
4558   case "(($ac_try" in
4559    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
# Line 3435 | Line 4578 | fi
4578          ac_cv_prog_fc_g=no
4579   fi
4580  
4581 < rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext
4581 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4582  
4583   fi
4584   { echo "$as_me:$LINENO: result: $ac_cv_prog_fc_g" >&5
# Line 3511 | Line 4654 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4654    (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4655    ac_status=$?
4656    grep -v '^ *+' conftest.er1 >conftest.err
4657 <  rm -rf conftest.er1
4657 >  rm -f conftest.er1
4658    cat conftest.err >&5
4659    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4660    (exit $ac_status); } >/dev/null && {
# Line 3527 | Line 4670 | fi
4670   continue
4671   fi
4672  
4673 < rm -rf conftest.err conftest.$ac_ext
4673 > rm -f conftest.err conftest.$ac_ext
4674  
4675    # OK, works on sane cases.  Now check whether nonexistent headers
4676    # can be detected and how.
# Line 3566 | Line 4709 | fi
4709   break
4710   fi
4711  
4712 < rm -rf conftest.err conftest.$ac_ext
4712 > rm -f conftest.err conftest.$ac_ext
4713  
4714   done
4715   # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4716 < rm -rf conftest.err conftest.$ac_ext
4716 > rm -f conftest.err conftest.$ac_ext
4717   if $ac_preproc_ok; then
4718    break
4719   fi
# Line 3632 | Line 4775 | fi
4775   continue
4776   fi
4777  
4778 < rm -rf conftest.err conftest.$ac_ext
4778 > rm -f conftest.err conftest.$ac_ext
4779  
4780    # OK, works on sane cases.  Now check whether nonexistent headers
4781    # can be detected and how.
# Line 3671 | Line 4814 | fi
4814   break
4815   fi
4816  
4817 < rm -rf conftest.err conftest.$ac_ext
4817 > rm -f conftest.err conftest.$ac_ext
4818  
4819   done
4820   # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4821 < rm -rf conftest.err conftest.$ac_ext
4821 > rm -f conftest.err conftest.$ac_ext
4822   if $ac_preproc_ok; then
4823    :
4824   else
# Line 3739 | Line 4882 | case `"$ac_path_GREP" --version 2>&1` in
4882      # 10*(2^10) chars as input seems more than enough
4883      test $ac_count -gt 10 && break
4884    done
4885 <  rm -rf conftest.in conftest.tmp conftest.nl conftest.out;;
4885 >  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4886   esac
4887  
4888  
# Line 3821 | Line 4964 | case `"$ac_path_EGREP" --version 2>&1` in
4964      # 10*(2^10) chars as input seems more than enough
4965      test $ac_count -gt 10 && break
4966    done
4967 <  rm -rf conftest.in conftest.tmp conftest.nl conftest.out;;
4967 >  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4968   esac
4969  
4970  
# Line 3883 | Line 5026 | esac
5026    *)
5027      eval ac_cv_prog_make_${ac_make}_set=no;;
5028   esac
5029 < rm -rf conftest.make
5029 > rm -f conftest.make
5030   fi
5031   if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5032    { echo "$as_me:$LINENO: result: yes" >&5
# Line 3989 | Line 5132 | else
5132    fi
5133   else
5134    RANLIB="$ac_cv_prog_RANLIB"
5135 + fi
5136 +
5137 + for ac_prog in 'bison -y' byacc
5138 + do
5139 +  # Extract the first word of "$ac_prog", so it can be a program name with args.
5140 + set dummy $ac_prog; ac_word=$2
5141 + { echo "$as_me:$LINENO: checking for $ac_word" >&5
5142 + echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5143 + if test "${ac_cv_prog_YACC+set}" = set; then
5144 +  echo $ECHO_N "(cached) $ECHO_C" >&6
5145 + else
5146 +  if test -n "$YACC"; then
5147 +  ac_cv_prog_YACC="$YACC" # Let the user override the test.
5148 + else
5149 + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5150 + for as_dir in $PATH
5151 + do
5152 +  IFS=$as_save_IFS
5153 +  test -z "$as_dir" && as_dir=.
5154 +  for ac_exec_ext in '' $ac_executable_extensions; do
5155 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5156 +    ac_cv_prog_YACC="$ac_prog"
5157 +    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5158 +    break 2
5159 +  fi
5160 + done
5161 + done
5162 + IFS=$as_save_IFS
5163 +
5164   fi
5165 + fi
5166 + YACC=$ac_cv_prog_YACC
5167 + if test -n "$YACC"; then
5168 +  { echo "$as_me:$LINENO: result: $YACC" >&5
5169 + echo "${ECHO_T}$YACC" >&6; }
5170 + else
5171 +  { echo "$as_me:$LINENO: result: no" >&5
5172 + echo "${ECHO_T}no" >&6; }
5173 + fi
5174  
5175  
5176 +  test -n "$YACC" && break
5177 + done
5178 + test -n "$YACC" || YACC="yacc"
5179 +
5180 +
5181 + for ac_prog in flex lex
5182 + do
5183 +  # Extract the first word of "$ac_prog", so it can be a program name with args.
5184 + set dummy $ac_prog; ac_word=$2
5185 + { echo "$as_me:$LINENO: checking for $ac_word" >&5
5186 + echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5187 + if test "${ac_cv_prog_LEX+set}" = set; then
5188 +  echo $ECHO_N "(cached) $ECHO_C" >&6
5189 + else
5190 +  if test -n "$LEX"; then
5191 +  ac_cv_prog_LEX="$LEX" # Let the user override the test.
5192 + else
5193 + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5194 + for as_dir in $PATH
5195 + do
5196 +  IFS=$as_save_IFS
5197 +  test -z "$as_dir" && as_dir=.
5198 +  for ac_exec_ext in '' $ac_executable_extensions; do
5199 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5200 +    ac_cv_prog_LEX="$ac_prog"
5201 +    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5202 +    break 2
5203 +  fi
5204 + done
5205 + done
5206 + IFS=$as_save_IFS
5207 +
5208 + fi
5209 + fi
5210 + LEX=$ac_cv_prog_LEX
5211 + if test -n "$LEX"; then
5212 +  { echo "$as_me:$LINENO: result: $LEX" >&5
5213 + echo "${ECHO_T}$LEX" >&6; }
5214 + else
5215 +  { echo "$as_me:$LINENO: result: no" >&5
5216 + echo "${ECHO_T}no" >&6; }
5217 + fi
5218 +
5219 +
5220 +  test -n "$LEX" && break
5221 + done
5222 + test -n "$LEX" || LEX=":"
5223 +
5224 + if test "x$LEX" != "x:"; then
5225 +  cat >conftest.l <<_ACEOF
5226 + %%
5227 + a { ECHO; }
5228 + b { REJECT; }
5229 + c { yymore (); }
5230 + d { yyless (1); }
5231 + e { yyless (input () != 0); }
5232 + f { unput (yytext[0]); }
5233 + . { BEGIN INITIAL; }
5234 + %%
5235 + #ifdef YYTEXT_POINTER
5236 + extern char *yytext;
5237 + #endif
5238 + int
5239 + main (void)
5240 + {
5241 +  return ! yylex () + ! yywrap ();
5242 + }
5243 + _ACEOF
5244 + { (ac_try="$LEX conftest.l"
5245 + case "(($ac_try" in
5246 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5247 +  *) ac_try_echo=$ac_try;;
5248 + esac
5249 + eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5250 +  (eval "$LEX conftest.l") 2>&5
5251 +  ac_status=$?
5252 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5253 +  (exit $ac_status); }
5254 + { echo "$as_me:$LINENO: checking lex output file root" >&5
5255 + echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
5256 + if test "${ac_cv_prog_lex_root+set}" = set; then
5257 +  echo $ECHO_N "(cached) $ECHO_C" >&6
5258 + else
5259 +
5260 + if test -f lex.yy.c; then
5261 +  ac_cv_prog_lex_root=lex.yy
5262 + elif test -f lexyy.c; then
5263 +  ac_cv_prog_lex_root=lexyy
5264 + else
5265 +  { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
5266 + echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
5267 +   { (exit 1); exit 1; }; }
5268 + fi
5269 + fi
5270 + { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
5271 + echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
5272 + LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
5273 +
5274 + if test -z "${LEXLIB+set}"; then
5275 +  { echo "$as_me:$LINENO: checking lex library" >&5
5276 + echo $ECHO_N "checking lex library... $ECHO_C" >&6; }
5277 + if test "${ac_cv_lib_lex+set}" = set; then
5278 +  echo $ECHO_N "(cached) $ECHO_C" >&6
5279 + else
5280 +
5281 +    ac_save_LIBS=$LIBS
5282 +    ac_cv_lib_lex='none needed'
5283 +    for ac_lib in '' -lfl -ll; do
5284 +      LIBS="$ac_lib $ac_save_LIBS"
5285 +      cat >conftest.$ac_ext <<_ACEOF
5286 + `cat $LEX_OUTPUT_ROOT.c`
5287 + _ACEOF
5288 + rm -f conftest.$ac_objext conftest$ac_exeext
5289 + if { (ac_try="$ac_link"
5290 + case "(($ac_try" in
5291 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5292 +  *) ac_try_echo=$ac_try;;
5293 + esac
5294 + eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5295 +  (eval "$ac_link") 2>conftest.er1
5296 +  ac_status=$?
5297 +  grep -v '^ *+' conftest.er1 >conftest.err
5298 +  rm -f conftest.er1
5299 +  cat conftest.err >&5
5300 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5301 +  (exit $ac_status); } && {
5302 +         test -z "$ac_c_werror_flag" ||
5303 +         test ! -s conftest.err
5304 +       } && test -s conftest$ac_exeext &&
5305 +       $as_test_x conftest$ac_exeext; then
5306 +  ac_cv_lib_lex=$ac_lib
5307 + else
5308 +  echo "$as_me: failed program was:" >&5
5309 + sed 's/^/| /' conftest.$ac_ext >&5
5310 +
5311 +
5312 + fi
5313 +
5314 + rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5315 +      conftest$ac_exeext conftest.$ac_ext
5316 +      test "$ac_cv_lib_lex" != 'none needed' && break
5317 +    done
5318 +    LIBS=$ac_save_LIBS
5319 +
5320 + fi
5321 + { echo "$as_me:$LINENO: result: $ac_cv_lib_lex" >&5
5322 + echo "${ECHO_T}$ac_cv_lib_lex" >&6; }
5323 +  test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
5324 + fi
5325 +
5326 +
5327 + { echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
5328 + echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
5329 + if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
5330 +  echo $ECHO_N "(cached) $ECHO_C" >&6
5331 + else
5332 +  # POSIX says lex can declare yytext either as a pointer or an array; the
5333 + # default is implementation-dependent.  Figure out which it is, since
5334 + # not all implementations provide the %pointer and %array declarations.
5335 + ac_cv_prog_lex_yytext_pointer=no
5336 + ac_save_LIBS=$LIBS
5337 + LIBS="$LEXLIB $ac_save_LIBS"
5338 + cat >conftest.$ac_ext <<_ACEOF
5339 + #define YYTEXT_POINTER 1
5340 + `cat $LEX_OUTPUT_ROOT.c`
5341 + _ACEOF
5342 + rm -f conftest.$ac_objext conftest$ac_exeext
5343 + if { (ac_try="$ac_link"
5344 + case "(($ac_try" in
5345 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5346 +  *) ac_try_echo=$ac_try;;
5347 + esac
5348 + eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5349 +  (eval "$ac_link") 2>conftest.er1
5350 +  ac_status=$?
5351 +  grep -v '^ *+' conftest.er1 >conftest.err
5352 +  rm -f conftest.er1
5353 +  cat conftest.err >&5
5354 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5355 +  (exit $ac_status); } && {
5356 +         test -z "$ac_c_werror_flag" ||
5357 +         test ! -s conftest.err
5358 +       } && test -s conftest$ac_exeext &&
5359 +       $as_test_x conftest$ac_exeext; then
5360 +  ac_cv_prog_lex_yytext_pointer=yes
5361 + else
5362 +  echo "$as_me: failed program was:" >&5
5363 + sed 's/^/| /' conftest.$ac_ext >&5
5364 +
5365 +
5366 + fi
5367 +
5368 + rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5369 +      conftest$ac_exeext conftest.$ac_ext
5370 + LIBS=$ac_save_LIBS
5371 +
5372 + fi
5373 + { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
5374 + echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
5375 + if test $ac_cv_prog_lex_yytext_pointer = yes; then
5376 +
5377 + cat >>confdefs.h <<\_ACEOF
5378 + #define YYTEXT_POINTER 1
5379 + _ACEOF
5380 +
5381 + fi
5382 + rm -f conftest.l $LEX_OUTPUT_ROOT.c
5383 +
5384 + fi
5385 +
5386     # Extract the first word of "perl", so it can be a program name with args.
5387   set dummy perl; ac_word=$2
5388   { echo "$as_me:$LINENO: checking for $ac_word" >&5
# Line 4307 | Line 5698 | fi
5698   echo "$as_me: not updating unwritable cache $cache_file" >&6;}
5699    fi
5700   fi
5701 < rm -rf confcache
5701 > rm -f confcache
5702    exit 1
5703   fi
5704   # Extract the first word of "ps", so it can be a program name with args.
# Line 4432 | Line 5823 | _ACEOF
5823  
5824        end
5825   _ACEOF
5826 < rm -rf conftest.$ac_objext
5826 > rm -f conftest.$ac_objext
5827   if { (ac_try="$ac_compile"
5828   case "(($ac_try" in
5829    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
# Line 4457 | Line 5848 | fi
5848  
5849   fi
5850  
5851 < rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext
5851 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5852   done
5853 < rm -rf conftest.$ac_objext conftest.F90
5853 > rm -f conftest.$ac_objext conftest.F90
5854   ac_fcflags_srcext=$ac_fcflags_srcext_save
5855  
5856   fi
# Line 4540 | Line 5931 | _ACEOF
5931   end program conftest
5932  
5933   _ACEOF
5934 < rm -rf conftest.$ac_objext
5934 > rm -f conftest.$ac_objext
5935   if { (ac_try="$ac_compile"
5936   case "(($ac_try" in
5937    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
# Line 4565 | Line 5956 | fi
5956          prepflagworks=0
5957   fi
5958  
5959 < rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext
5959 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5960  
5961    FCFLAGS_SRCEXT=$ac_save_FCFLAGS_SRCEXT
5962    ac_ext=$ac_save_ext
# Line 4647 | Line 6038 | _ACEOF
6038   end program conftest
6039  
6040   _ACEOF
6041 < rm -rf conftest.$ac_objext
6041 > rm -f conftest.$ac_objext
6042   if { (ac_try="$ac_compile"
6043   case "(($ac_try" in
6044    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
# Line 4672 | Line 6063 | fi
6063          prepdefflagworks=0
6064   fi
6065  
6066 < rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext
6066 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6067  
6068    FCFLAGS=$ac_save_FCFLAGS
6069    ac_ext=$ac_save_ext
# Line 4709 | Line 6100 | _ACEOF
6100  
6101        end
6102   _ACEOF
6103 < rm -rf conftest.$ac_objext
6103 > rm -f conftest.$ac_objext
6104   if { (ac_try="$ac_compile"
6105   case "(($ac_try" in
6106    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
# Line 4719 | Line 6110 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6110    (eval "$ac_compile") 2>conftest.er1
6111    ac_status=$?
6112    grep -v '^ *+' conftest.er1 >conftest.err
6113 <  rm -rf conftest.er1
6113 >  rm -f conftest.er1
6114    cat conftest.err >&5
6115    echo "$as_me:$LINENO: \$? = $ac_status" >&5
6116    (exit $ac_status); } && {
# Line 4748 | Line 6139 | FCFLAGS=$ac_save_FFLAGS
6139   echo "$ac_fc_v_output" >&5
6140   FCFLAGS=$ac_save_FFLAGS
6141  
6142 < rm -rf conftest*
6142 > rm -f conftest*
6143  
6144   # On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
6145   # /foo, /bar, and /baz are search directories for the Fortran linker.
# Line 4806 | Line 6197 | fi
6197   echo "$as_me: WARNING: compilation failed" >&2;}
6198   fi
6199  
6200 < rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext
6200 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6201  
6202   fi
6203   { echo "$as_me:$LINENO: result: $ac_cv_prog_fc_v" >&5
# Line 4839 | Line 6230 | FCFLAGS=$ac_save_FFLAGS
6230   echo "$ac_fc_v_output" >&5
6231   FCFLAGS=$ac_save_FFLAGS
6232  
6233 < rm -rf conftest*
6233 > rm -f conftest*
6234  
6235   # On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
6236   # /foo, /bar, and /baz are search directories for the Fortran linker.
# Line 5018 | Line 6409 | ac_compiler_gnu=$ac_cv_fc_compiler_gnu
6409   ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
6410   ac_compiler_gnu=$ac_cv_fc_compiler_gnu
6411  
5021
6412   ac_ext=${ac_fc_srcext-f}
6413   ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
6414   ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
# Line 5062 | Line 6452 | _ACEOF
6452    return 0;
6453   }
6454   _ACEOF
6455 < rm -rf conftest.$ac_objext conftest$ac_exeext
6455 > rm -f conftest.$ac_objext conftest$ac_exeext
6456   if { (ac_try="$ac_link"
6457   case "(($ac_try" in
6458    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
# Line 5088 | Line 6478 | fi
6478          ac_cv_fortran_dummy_main=unknown
6479   fi
6480  
6481 < rm -rf core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6481 > rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6482        conftest$ac_exeext conftest.$ac_ext
6483  
6484   if test $ac_cv_fortran_dummy_main = unknown; then
# Line 5116 | Line 6506 | _ACEOF
6506    return 0;
6507   }
6508   _ACEOF
6509 < rm -rf conftest.$ac_objext conftest$ac_exeext
6509 > rm -f conftest.$ac_objext conftest$ac_exeext
6510   if { (ac_try="$ac_link"
6511   case "(($ac_try" in
6512    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
# Line 5142 | Line 6532 | fi
6532  
6533   fi
6534  
6535 < rm -rf core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6535 > rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6536        conftest$ac_exeext conftest.$ac_ext
6537     done
6538   fi
# Line 5151 | Line 6541 | ac_compiler_gnu=$ac_cv_fc_compiler_gnu
6541   ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
6542   ac_compiler_gnu=$ac_cv_fc_compiler_gnu
6543   ac_cv_fc_dummy_main=$ac_cv_fortran_dummy_main
6544 < rm -rf conftest*
6544 > rm -f conftest*
6545   LIBS=$ac_fc_dm_save_LIBS
6546  
6547   fi
# Line 5204 | Line 6594 | _ACEOF
6594        return
6595        end
6596   _ACEOF
6597 < rm -rf conftest.$ac_objext
6597 > rm -f conftest.$ac_objext
6598   if { (ac_try="$ac_compile"
6599   case "(($ac_try" in
6600    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
# Line 5265 | Line 6655 | _ACEOF
6655    return 0;
6656   }
6657   _ACEOF
6658 < rm -rf conftest.$ac_objext conftest$ac_exeext
6658 > rm -f conftest.$ac_objext conftest$ac_exeext
6659   if { (ac_try="$ac_link"
6660   case "(($ac_try" in
6661    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
# Line 5291 | Line 6681 | fi
6681  
6682   fi
6683  
6684 < rm -rf core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6684 > rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6685        conftest$ac_exeext conftest.$ac_ext
6686      done
6687    done
# Line 5350 | Line 6740 | _ACEOF
6740    return 0;
6741   }
6742   _ACEOF
6743 < rm -rf conftest.$ac_objext conftest$ac_exeext
6743 > rm -f conftest.$ac_objext conftest$ac_exeext
6744   if { (ac_try="$ac_link"
6745   case "(($ac_try" in
6746    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
# Line 5376 | Line 6766 | fi
6766  
6767   fi
6768  
6769 < rm -rf core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6769 > rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6770        conftest$ac_exeext conftest.$ac_ext
6771       done
6772       ac_ext=${ac_fc_srcext-f}
# Line 5404 | Line 6794 | ac_compiler_gnu=$ac_cv_fc_compiler_gnu
6794    fi
6795  
6796    LIBS=$ac_save_LIBS
6797 <  rm -rf cfortran_test* conftest*
6797 >  rm -f cfortran_test* conftest*
6798   else
6799    echo "$as_me: failed program was:" >&5
6800   sed 's/^/| /' conftest.$ac_ext >&5
# Line 5416 | Line 6806 | fi
6806     { (exit 1); exit 1; }; }
6807   fi
6808  
6809 < rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext
6809 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6810  
6811   fi
6812   { echo "$as_me:$LINENO: result: $ac_cv_fc_mangling" >&5
# Line 5533 | Line 6923 | _ACEOF
6923  
6924        end
6925   _ACEOF
6926 < rm -rf conftest.$ac_objext
6926 > rm -f conftest.$ac_objext
6927   if { (ac_try="$ac_compile"
6928   case "(($ac_try" in
6929    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
# Line 5572 | Line 6962 | FCFLAGS=$ac_save_FFLAGS
6962   echo "$ac_fc_v_output" >&5
6963   FCFLAGS=$ac_save_FFLAGS
6964  
6965 < rm -rf conftest*
6965 > rm -f conftest*
6966  
6967   # On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
6968   # /foo, /bar, and /baz are search directories for the Fortran linker.
# Line 5663 | Line 7053 | FCFLAGS=$ac_save_FFLAGS
7053   echo "$ac_fc_v_output" >&5
7054   FCFLAGS=$ac_save_FFLAGS
7055  
7056 < rm -rf conftest*
7056 > rm -f conftest*
7057  
7058   # On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
7059   # /foo, /bar, and /baz are search directories for the Fortran linker.
# Line 5846 | Line 7236 | echo $ECHO_N "checking for module suffix... $ECHO_C" >
7236  
7237   { echo "$as_me:$LINENO: checking for module suffix" >&5
7238   echo $ECHO_N "checking for module suffix... $ECHO_C" >&6; }
7239 < rm -rf conftest*
7239 > rm -f conftest*
7240   # Intel ifc compiler generates files by the name of work.pc and work.pcl (!)
7241   rm -f work*
7242   cat >conftest.$ac_ext <<EOF
# Line 5900 | Line 7290 | echo $ECHO_N "checking for module directory path flag.
7290   # Use the module made above
7291   { echo "$as_me:$LINENO: checking for module directory path flag" >&5
7292   echo $ECHO_N "checking for module directory path flag... $ECHO_C" >&6; }
7293 < rm -rf conftest*
7293 > rm -f conftest*
7294   # Intel ifc compiler generates files by the name of work.pc and work.pcl (!)
7295   rm -f work*
7296   cat >conftest.$ac_ext <<EOF
# Line 5968 | Line 7358 | echo "${ECHO_T}unknown" >&6; }
7358     fi
7359  
7360  
7361 <   rm -rf conftest* conf/conftest* conf/CONFTEST* CONFTEST* conf/mpimod*
7361 >   rm -f conftest* conf/conftest* conf/CONFTEST* CONFTEST* conf/mpimod*
7362     if test $madedir = 1 ; then rmdir conf ; fi
7363   fi
7364  
# Line 5990 | Line 7380 | _ACEOF
7380   MODULE Bar
7381   END MODULE Bar
7382   _ACEOF
7383 < rm -rf conftest.$ac_objext
7383 > rm -f conftest.$ac_objext
7384   if { (ac_try="$ac_compile"
7385   case "(($ac_try" in
7386    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
# Line 6107 | Line 7497 | fi
7497   echo "$as_me: WARNING: Couldn't determine module file names" >&2;}
7498   fi
7499  
7500 < rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext
7500 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7501   cd ..
7502   # cleanup
7503   rm -rf conftest
# Line 6248 | Line 7638 | _ACEOF
7638    return 0;
7639   }
7640   _ACEOF
7641 < rm -rf conftest.$ac_objext conftest$ac_exeext
7641 > rm -f conftest.$ac_objext conftest$ac_exeext
7642   if { (ac_try="$ac_link"
7643   case "(($ac_try" in
7644    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
# Line 6274 | Line 7664 | fi
7664          ac_cv_lib_m_asin=no
7665   fi
7666  
7667 < rm -rf core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7667 > rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7668        conftest$ac_exeext conftest.$ac_ext
7669   LIBS=$ac_check_lib_save_LIBS
7670   fi
# Line 6324 | Line 7714 | _ACEOF
7714    return 0;
7715   }
7716   _ACEOF
7717 < rm -rf conftest.$ac_objext
7717 > rm -f conftest.$ac_objext
7718   if { (ac_try="$ac_compile"
7719   case "(($ac_try" in
7720    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
# Line 6349 | Line 7739 | fi
7739          ac_cv_header_stdc=no
7740   fi
7741  
7742 < rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext
7742 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7743  
7744   if test $ac_cv_header_stdc = yes; then
7745    # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
# Line 6368 | Line 7758 | fi
7758   else
7759    ac_cv_header_stdc=no
7760   fi
7761 < rm -rf conftest*
7761 > rm -f conftest*
7762  
7763   fi
7764  
# Line 6389 | Line 7779 | fi
7779   else
7780    ac_cv_header_stdc=no
7781   fi
7782 < rm -rf conftest*
7782 > rm -f conftest*
7783  
7784   fi
7785  
# Line 6429 | Line 7819 | _ACEOF
7819    return 0;
7820   }
7821   _ACEOF
7822 < rm -rf conftest$ac_exeext
7822 > rm -f conftest$ac_exeext
7823   if { (ac_try="$ac_link"
7824   case "(($ac_try" in
7825    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
# Line 6458 | Line 7848 | fi
7848   ( exit $ac_status )
7849   ac_cv_header_stdc=no
7850   fi
7851 < rm -rf core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7851 > rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7852   fi
7853  
7854  
# Line 6503 | Line 7893 | _ACEOF
7893  
7894   #include <$ac_header>
7895   _ACEOF
7896 < rm -rf conftest.$ac_objext
7896 > rm -f conftest.$ac_objext
7897   if { (ac_try="$ac_compile"
7898   case "(($ac_try" in
7899    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
# Line 6528 | Line 7918 | fi
7918          eval "$as_ac_Header=no"
7919   fi
7920  
7921 < rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext
7921 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7922   fi
7923   ac_res=`eval echo '${'$as_ac_Header'}'`
7924                 { echo "$as_me:$LINENO: result: $ac_res" >&5
# Line 6561 | Line 7951 | if test "$zlib_dir" != "not_set" ; then
7951    then
7952      ZLIB_HOME="$zlib_dir"
7953    else
7954 <    { echo "$as_me:$LINENO: WARNING: Sorry, $zlib_dir does not exist, checking usual places" >&5
7955 < echo "$as_me: WARNING: Sorry, $zlib_dir does not exist, checking usual places" >&2;}
7954 >    { echo "$as_me:$LINENO: WARNING: Sorry, $zlib_dir does not exist, checking usual places" >&5
7955 > echo "$as_me: WARNING: Sorry, $zlib_dir does not exist, checking usual places" >&2;}
7956 >        ZLIB_HOME=/usr/local
7957 >        if test ! -f "${ZLIB_HOME}/include/zlib.h"
7958 >        then
7959 >                ZLIB_HOME=/usr
7960 >        fi
7961    fi
7962   fi
6568
6569 ZLIB_HOME=/usr/local
6570 if test ! -f "${ZLIB_HOME}/include/zlib.h"
6571 then
6572        ZLIB_HOME=/usr
6573 fi
6574
7963   #
7964   # Locate zlib, if wanted
7965   #
7966   if test -n "${ZLIB_HOME}"
7967   then
7968          ZLIB_OLD_LDFLAGS=$LDFLAGS
7969 <        ZLIB_OLD_CPPFLAGS=$LDFLAGS
7969 >        ZLIB_OLD_CFLAGS=$CFLAGS
7970          LDFLAGS="$LDFLAGS -L${ZLIB_HOME}/lib"
7971 <        CPPFLAGS="$CPPFLAGS -I${ZLIB_HOME}/include"
7971 >        CFLAGS="$CFLAGS -I${ZLIB_HOME}/include"
7972  
7973          ac_ext=c
7974   ac_cpp='$CPP $CPPFLAGS'
# Line 6625 | Line 8013 | _ACEOF
8013    return 0;
8014   }
8015   _ACEOF
8016 < rm -rf conftest.$ac_objext conftest$ac_exeext
8016 > rm -f conftest.$ac_objext conftest$ac_exeext
8017   if { (ac_try="$ac_link"
8018   case "(($ac_try" in
8019    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
# Line 6651 | Line 8039 | fi
8039          ac_cv_lib_z_inflateEnd=no
8040   fi
8041  
8042 < rm -rf core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8042 > rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8043        conftest$ac_exeext conftest.$ac_ext
8044   LIBS=$ac_check_lib_save_LIBS
8045   fi
# Line 6684 | Line 8072 | _ACEOF
8072   $ac_includes_default
8073   #include <zlib.h>
8074   _ACEOF
8075 < rm -rf conftest.$ac_objext
8075 > rm -f conftest.$ac_objext
8076   if { (ac_try="$ac_compile"
8077   case "(($ac_try" in
8078    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
# Line 6709 | Line 8097 | fi
8097          ac_header_compiler=no
8098   fi
8099  
8100 < rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext
8100 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8101   { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8102   echo "${ECHO_T}$ac_header_compiler" >&6; }
8103  
# Line 6748 | Line 8136 | fi
8136    ac_header_preproc=no
8137   fi
8138  
8139 < rm -rf conftest.err conftest.$ac_ext
8139 > rm -f conftest.err conftest.$ac_ext
8140   { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8141   echo "${ECHO_T}$ac_header_preproc" >&6; }
8142  
# Line 6828 | Line 8216 | echo $ECHO_N "checking zlib in ${ZLIB_HOME}... $ECHO_C
8216                  ZLIB_LIB_DIR=
8217                  ZLIB=
8218                  LDFLAGS="$ZLIB_OLD_LDFLAGS"
8219 <                CPPFLAGS="$ZLIB_OLD_CPPFLAGS"
8219 >                CFLAGS="$ZLIB_OLD_CFLAGS"
8220                  { echo "$as_me:$LINENO: result: failed" >&5
8221   echo "${ECHO_T}failed" >&6; }
8222                  echo ""
# Line 6876 | Line 8264 | echo "$as_me: WARNING: Sorry, $fftw_dir does not exist
8264      #
8265      if test -n "${FFTW_HOME}"; then
8266        FFTW_OLD_LDFLAGS=$LDFLAGS
8267 <      FFTW_OLD_CPPFLAGS=$LDFLAGS
8267 >      FFTW_OLD_CFLAGS=$CFLAGS
8268        LDFLAGS="$LDFLAGS -L${FFTW_HOME}/lib"
8269 <      CPPFLAGS="$CPPFLAGS -I${FFTW_HOME}/include"
8269 >      CFLAGS="$CFLAGS -I${FFTW_HOME}/include"
8270  
8271        ac_ext=c
8272   ac_cpp='$CPP $CPPFLAGS'
# Line 6923 | Line 8311 | _ACEOF
8311    return 0;
8312   }
8313   _ACEOF
8314 < rm -rf conftest.$ac_objext conftest$ac_exeext
8314 > rm -f conftest.$ac_objext conftest$ac_exeext
8315   if { (ac_try="$ac_link"
8316   case "(($ac_try" in
8317    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
# Line 6949 | Line 8337 | fi
8337          ac_cv_lib_fftw3_fftw_execute=no
8338   fi
8339  
8340 < rm -rf core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8340 > rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8341        conftest$ac_exeext conftest.$ac_ext
8342   LIBS=$ac_check_lib_save_LIBS
8343   fi
# Line 6982 | Line 8370 | _ACEOF
8370   $ac_includes_default
8371   #include <fftw3.h>
8372   _ACEOF
8373 < rm -rf conftest.$ac_objext
8373 > rm -f conftest.$ac_objext
8374   if { (ac_try="$ac_compile"
8375   case "(($ac_try" in
8376    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
# Line 7007 | Line 8395 | fi
8395          ac_header_compiler=no
8396   fi
8397  
8398 < rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext
8398 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8399   { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8400   echo "${ECHO_T}$ac_header_compiler" >&6; }
8401  
# Line 7046 | Line 8434 | fi
8434    ac_header_preproc=no
8435   fi
8436  
8437 < rm -rf conftest.err conftest.$ac_ext
8437 > rm -f conftest.err conftest.$ac_ext
8438   { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8439   echo "${ECHO_T}$ac_header_preproc" >&6; }
8440  
# Line 7136 | Line 8524 | _ACEOF
8524    return 0;
8525   }
8526   _ACEOF
8527 < rm -rf conftest.$ac_objext conftest$ac_exeext
8527 > rm -f conftest.$ac_objext conftest$ac_exeext
8528   if { (ac_try="$ac_link"
8529   case "(($ac_try" in
8530    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
# Line 7162 | Line 8550 | fi
8550          ac_cv_lib_fftw_fftwnd_one=no
8551   fi
8552  
8553 < rm -rf core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8553 > rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8554        conftest$ac_exeext conftest.$ac_ext
8555   LIBS=$ac_check_lib_save_LIBS
8556   fi
# Line 7195 | Line 8583 | _ACEOF
8583   $ac_includes_default
8584   #include <fftw.h>
8585   _ACEOF
8586 < rm -rf conftest.$ac_objext
8586 > rm -f conftest.$ac_objext
8587   if { (ac_try="$ac_compile"
8588   case "(($ac_try" in
8589    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
# Line 7220 | Line 8608 | fi
8608          ac_header_compiler=no
8609   fi
8610  
8611 < rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext
8611 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8612   { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8613   echo "${ECHO_T}$ac_header_compiler" >&6; }
8614  
# Line 7259 | Line 8647 | fi
8647    ac_header_preproc=no
8648   fi
8649  
8650 < rm -rf conftest.err conftest.$ac_ext
8650 > rm -f conftest.err conftest.$ac_ext
8651   { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8652   echo "${ECHO_T}$ac_header_preproc" >&6; }
8653  
# Line 7349 | Line 8737 | _ACEOF
8737    return 0;
8738   }
8739   _ACEOF
8740 < rm -rf conftest.$ac_objext conftest$ac_exeext
8740 > rm -f conftest.$ac_objext conftest$ac_exeext
8741   if { (ac_try="$ac_link"
8742   case "(($ac_try" in
8743    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
# Line 7375 | Line 8763 | fi
8763          ac_cv_lib_dfftw_fftwnd_one=no
8764   fi
8765  
8766 < rm -rf core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8766 > rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8767        conftest$ac_exeext conftest.$ac_ext
8768   LIBS=$ac_check_lib_save_LIBS
8769   fi
# Line 7408 | Line 8796 | _ACEOF
8796   $ac_includes_default
8797   #include <dfftw.h>
8798   _ACEOF
8799 < rm -rf conftest.$ac_objext
8799 > rm -f conftest.$ac_objext
8800   if { (ac_try="$ac_compile"
8801   case "(($ac_try" in
8802    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
# Line 7433 | Line 8821 | fi
8821          ac_header_compiler=no
8822   fi
8823  
8824 < rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext
8824 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8825   { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8826   echo "${ECHO_T}$ac_header_compiler" >&6; }
8827  
# Line 7472 | Line 8860 | fi
8860    ac_header_preproc=no
8861   fi
8862  
8863 < rm -rf conftest.err conftest.$ac_ext
8863 > rm -f conftest.err conftest.$ac_ext
8864   { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8865   echo "${ECHO_T}$ac_header_preproc" >&6; }
8866  
# Line 7568 | Line 8956 | echo $ECHO_N "checking fftw in ${FFTW_HOME}... $ECHO_C
8956              FFTW_LIB_DIR=
8957              FFTW_LIBS=
8958              LDFLAGS="$FFTW_OLD_LDFLAGS"
8959 <            CPPFLAGS="$FFTW_OLD_CPPFLAGS"
8959 >            CFLAGS="$FFTW_OLD_CFLAGS"
8960              { echo "$as_me:$LINENO: result: failed" >&5
8961   echo "${ECHO_T}failed" >&6; }
8962              echo ""
# Line 7589 | Line 8977 | echo "${ECHO_T}failed" >&6; }
8977  
8978      fi
8979    fi
8980 + fi
8981 +
8982 + #
8983 + # Handle user hints
8984 + #
8985 +
8986 + # Check whether --with-qhull was given.
8987 + if test "${with_qhull+set}" = set; then
8988 +  withval=$with_qhull; qhull_dir="$withval"
8989 + else
8990 +                qhull_dir="not_set"
8991 + fi
8992 +
8993 + if test "$qhull_dir" != "no"; then
8994 +
8995 + if test "$qhull_dir" != "not_set" ; then
8996 +  if test -d "$qhull_dir"
8997 +  then
8998 +    QHULL_HOME="$qhull_dir"
8999 +  else
9000 +    { echo "$as_me:$LINENO: WARNING: Sorry, $qhull_dir does not exist, checking usual places" >&5
9001 + echo "$as_me: WARNING: Sorry, $qhull_dir does not exist, checking usual places" >&2;}
9002 +        QHULL_HOME=/usr/local
9003 +        if test ! -f "${QHULL_HOME}/include/qhull/qhull.h"
9004 +        then
9005 +                QHULL_HOME=/usr
9006 +        fi
9007 +  fi
9008 + fi
9009 + #
9010 + # Locate qhull, if wanted
9011 + #
9012 + if test -n "${QHULL_HOME}"
9013 + then
9014 +        QHULL_OLD_LDFLAGS=$LDFLAGS
9015 +        QHULL_OLD_CFLAGS=$CFLAGS
9016 +        LDFLAGS="$LDFLAGS -L${QHULL_HOME}/lib"
9017 +        CFLAGS="$CFLAGS -I${QHULL_HOME}/include"
9018 +
9019 +        ac_ext=c
9020 + ac_cpp='$CPP $CPPFLAGS'
9021 + ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9022 + ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9023 + ac_compiler_gnu=$ac_cv_c_compiler_gnu
9024 +
9025 +        { echo "$as_me:$LINENO: checking for qh_qhull in -lqhull" >&5
9026 + echo $ECHO_N "checking for qh_qhull in -lqhull... $ECHO_C" >&6; }
9027 + if test "${ac_cv_lib_qhull_qh_qhull+set}" = set; then
9028 +  echo $ECHO_N "(cached) $ECHO_C" >&6
9029 + else
9030 +  ac_check_lib_save_LIBS=$LIBS
9031 + LIBS="-lqhull  $LIBS"
9032 + cat >conftest.$ac_ext <<_ACEOF
9033 + /* confdefs.h.  */
9034 + _ACEOF
9035 + cat confdefs.h >>conftest.$ac_ext
9036 + cat >>conftest.$ac_ext <<_ACEOF
9037 + /* end confdefs.h.  */
9038 +
9039 + /* Override any GCC internal prototype to avoid an error.
9040 +   Use char because int might match the return type of a GCC
9041 +   builtin and then its argument prototype would still apply.  */
9042 + #ifdef __cplusplus
9043 + extern "C"
9044 + #endif
9045 + char qh_qhull ();
9046 + #ifdef FC_DUMMY_MAIN
9047 + #ifndef FC_DUMMY_MAIN_EQ_F77
9048 + #  ifdef __cplusplus
9049 +     extern "C"
9050 + #  endif
9051 +   int FC_DUMMY_MAIN() { return 1; }
9052 + #endif
9053 + #endif
9054 + int
9055 + main ()
9056 + {
9057 + return qh_qhull ();
9058 +  ;
9059 +  return 0;
9060 + }
9061 + _ACEOF
9062 + rm -f conftest.$ac_objext conftest$ac_exeext
9063 + if { (ac_try="$ac_link"
9064 + case "(($ac_try" in
9065 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9066 +  *) ac_try_echo=$ac_try;;
9067 + esac
9068 + eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9069 +  (eval "$ac_link") 2>conftest.er1
9070 +  ac_status=$?
9071 +  grep -v '^ *+' conftest.er1 >conftest.err
9072 +  rm -f conftest.er1
9073 +  cat conftest.err >&5
9074 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9075 +  (exit $ac_status); } && {
9076 +         test -z "$ac_c_werror_flag" ||
9077 +         test ! -s conftest.err
9078 +       } && test -s conftest$ac_exeext &&
9079 +       $as_test_x conftest$ac_exeext; then
9080 +  ac_cv_lib_qhull_qh_qhull=yes
9081 + else
9082 +  echo "$as_me: failed program was:" >&5
9083 + sed 's/^/| /' conftest.$ac_ext >&5
9084 +
9085 +        ac_cv_lib_qhull_qh_qhull=no
9086 + fi
9087 +
9088 + rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9089 +      conftest$ac_exeext conftest.$ac_ext
9090 + LIBS=$ac_check_lib_save_LIBS
9091 + fi
9092 + { echo "$as_me:$LINENO: result: $ac_cv_lib_qhull_qh_qhull" >&5
9093 + echo "${ECHO_T}$ac_cv_lib_qhull_qh_qhull" >&6; }
9094 + if test $ac_cv_lib_qhull_qh_qhull = yes; then
9095 +  qhull_cv_libqhull=yes
9096 + else
9097 +  qhull_cv_libqhull=no
9098 + fi
9099 +
9100 +        if test "${ac_cv_header_qhull_qhull_h+set}" = set; then
9101 +  { echo "$as_me:$LINENO: checking for qhull/qhull.h" >&5
9102 + echo $ECHO_N "checking for qhull/qhull.h... $ECHO_C" >&6; }
9103 + if test "${ac_cv_header_qhull_qhull_h+set}" = set; then
9104 +  echo $ECHO_N "(cached) $ECHO_C" >&6
9105 + fi
9106 + { echo "$as_me:$LINENO: result: $ac_cv_header_qhull_qhull_h" >&5
9107 + echo "${ECHO_T}$ac_cv_header_qhull_qhull_h" >&6; }
9108 + else
9109 +  # Is the header compilable?
9110 + { echo "$as_me:$LINENO: checking qhull/qhull.h usability" >&5
9111 + echo $ECHO_N "checking qhull/qhull.h usability... $ECHO_C" >&6; }
9112 + cat >conftest.$ac_ext <<_ACEOF
9113 + /* confdefs.h.  */
9114 + _ACEOF
9115 + cat confdefs.h >>conftest.$ac_ext
9116 + cat >>conftest.$ac_ext <<_ACEOF
9117 + /* end confdefs.h.  */
9118 + $ac_includes_default
9119 + #include <qhull/qhull.h>
9120 + _ACEOF
9121 + rm -f conftest.$ac_objext
9122 + if { (ac_try="$ac_compile"
9123 + case "(($ac_try" in
9124 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9125 +  *) ac_try_echo=$ac_try;;
9126 + esac
9127 + eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9128 +  (eval "$ac_compile") 2>conftest.er1
9129 +  ac_status=$?
9130 +  grep -v '^ *+' conftest.er1 >conftest.err
9131 +  rm -f conftest.er1
9132 +  cat conftest.err >&5
9133 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9134 +  (exit $ac_status); } && {
9135 +         test -z "$ac_c_werror_flag" ||
9136 +         test ! -s conftest.err
9137 +       } && test -s conftest.$ac_objext; then
9138 +  ac_header_compiler=yes
9139 + else
9140 +  echo "$as_me: failed program was:" >&5
9141 + sed 's/^/| /' conftest.$ac_ext >&5
9142 +
9143 +        ac_header_compiler=no
9144 + fi
9145 +
9146 + rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9147 + { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9148 + echo "${ECHO_T}$ac_header_compiler" >&6; }
9149 +
9150 + # Is the header present?
9151 + { echo "$as_me:$LINENO: checking qhull/qhull.h presence" >&5
9152 + echo $ECHO_N "checking qhull/qhull.h presence... $ECHO_C" >&6; }
9153 + cat >conftest.$ac_ext <<_ACEOF
9154 + /* confdefs.h.  */
9155 + _ACEOF
9156 + cat confdefs.h >>conftest.$ac_ext
9157 + cat >>conftest.$ac_ext <<_ACEOF
9158 + /* end confdefs.h.  */
9159 + #include <qhull/qhull.h>
9160 + _ACEOF
9161 + if { (ac_try="$ac_cpp conftest.$ac_ext"
9162 + case "(($ac_try" in
9163 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9164 +  *) ac_try_echo=$ac_try;;
9165 + esac
9166 + eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9167 +  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9168 +  ac_status=$?
9169 +  grep -v '^ *+' conftest.er1 >conftest.err
9170 +  rm -f conftest.er1
9171 +  cat conftest.err >&5
9172 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9173 +  (exit $ac_status); } >/dev/null && {
9174 +         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9175 +         test ! -s conftest.err
9176 +       }; then
9177 +  ac_header_preproc=yes
9178 + else
9179 +  echo "$as_me: failed program was:" >&5
9180 + sed 's/^/| /' conftest.$ac_ext >&5
9181 +
9182 +  ac_header_preproc=no
9183   fi
9184  
9185 + rm -f conftest.err conftest.$ac_ext
9186 + { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9187 + echo "${ECHO_T}$ac_header_preproc" >&6; }
9188 +
9189 + # So?  What about this header?
9190 + case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9191 +  yes:no: )
9192 +    { echo "$as_me:$LINENO: WARNING: qhull/qhull.h: accepted by the compiler, rejected by the preprocessor!" >&5
9193 + echo "$as_me: WARNING: qhull/qhull.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9194 +    { echo "$as_me:$LINENO: WARNING: qhull/qhull.h: proceeding with the compiler's result" >&5
9195 + echo "$as_me: WARNING: qhull/qhull.h: proceeding with the compiler's result" >&2;}
9196 +    ac_header_preproc=yes
9197 +    ;;
9198 +  no:yes:* )
9199 +    { echo "$as_me:$LINENO: WARNING: qhull/qhull.h: present but cannot be compiled" >&5
9200 + echo "$as_me: WARNING: qhull/qhull.h: present but cannot be compiled" >&2;}
9201 +    { echo "$as_me:$LINENO: WARNING: qhull/qhull.h:     check for missing prerequisite headers?" >&5
9202 + echo "$as_me: WARNING: qhull/qhull.h:     check for missing prerequisite headers?" >&2;}
9203 +    { echo "$as_me:$LINENO: WARNING: qhull/qhull.h: see the Autoconf documentation" >&5
9204 + echo "$as_me: WARNING: qhull/qhull.h: see the Autoconf documentation" >&2;}
9205 +    { echo "$as_me:$LINENO: WARNING: qhull/qhull.h:     section \"Present But Cannot Be Compiled\"" >&5
9206 + echo "$as_me: WARNING: qhull/qhull.h:     section \"Present But Cannot Be Compiled\"" >&2;}
9207 +    { echo "$as_me:$LINENO: WARNING: qhull/qhull.h: proceeding with the preprocessor's result" >&5
9208 + echo "$as_me: WARNING: qhull/qhull.h: proceeding with the preprocessor's result" >&2;}
9209 +    { echo "$as_me:$LINENO: WARNING: qhull/qhull.h: in the future, the compiler will take precedence" >&5
9210 + echo "$as_me: WARNING: qhull/qhull.h: in the future, the compiler will take precedence" >&2;}
9211 +    ( cat <<\_ASBOX
9212 + ## ------------------------------ ##
9213 + ## Report this to gezelter@nd.edu ##
9214 + ## ------------------------------ ##
9215 + _ASBOX
9216 +     ) | sed "s/^/$as_me: WARNING:     /" >&2
9217 +    ;;
9218 + esac
9219 + { echo "$as_me:$LINENO: checking for qhull/qhull.h" >&5
9220 + echo $ECHO_N "checking for qhull/qhull.h... $ECHO_C" >&6; }
9221 + if test "${ac_cv_header_qhull_qhull_h+set}" = set; then
9222 +  echo $ECHO_N "(cached) $ECHO_C" >&6
9223 + else
9224 +  ac_cv_header_qhull_qhull_h=$ac_header_preproc
9225 + fi
9226 + { echo "$as_me:$LINENO: result: $ac_cv_header_qhull_qhull_h" >&5
9227 + echo "${ECHO_T}$ac_cv_header_qhull_qhull_h" >&6; }
9228 +
9229 + fi
9230 + if test $ac_cv_header_qhull_qhull_h = yes; then
9231 +  qhull_cv_qhull_h=yes
9232 + else
9233 +  qhull_cv_qhull_h=no
9234 + fi
9235 +
9236 +
9237 +        ac_ext=c
9238 + ac_cpp='$CPP $CPPFLAGS'
9239 + ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9240 + ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9241 + ac_compiler_gnu=$ac_cv_c_compiler_gnu
9242 +
9243 +
9244 +        if test "$qhull_cv_libqhull" = "yes" -a "$qhull_cv_qhull_h" = "yes"; then
9245 +
9246 + cat >>confdefs.h <<\_ACEOF
9247 + #define HAVE_QHULL_H 1
9248 + _ACEOF
9249 +
9250 +
9251 + cat >>confdefs.h <<\_ACEOF
9252 + #define HAVE_QHULL 1
9253 + _ACEOF
9254 +
9255 +                USE_QHULL=yes
9256 +                QHULL_INC_DIR="${QHULL_HOME}/include"
9257 +                QHULL_LIB_DIR="${QHULL_HOME}/lib"
9258 +                QHULL="-lqhull"
9259 +        else
9260 +                { echo "$as_me:$LINENO: checking qhull in ${QHULL_HOME}" >&5
9261 + echo $ECHO_N "checking qhull in ${QHULL_HOME}... $ECHO_C" >&6; }
9262 +                QHULL_INC_DIR=
9263 +                QHULL_LIB_DIR=
9264 +                QHULL=
9265 +                USE_QHULL=no
9266 +                LDFLAGS="$QHULL_OLD_LDFLAGS"
9267 +                CFLAGS="$QHULL_OLD_CFLAGS"
9268 +                { echo "$as_me:$LINENO: result: failed" >&5
9269 + echo "${ECHO_T}failed" >&6; }
9270 +                echo ""
9271 +                echo "*********************************************************"
9272 +                echo "* WARNING: Could not find a working qhull installation  *"
9273 +                echo "* If you need OOPSE to be able to deal with convex      *"
9274 +                echo "* hulls be sure to specify a valid qhull installation   *"
9275 +                echo "* with --with-qhull=DIR                                 *"
9276 +                echo "*                                                       *"
9277 +                echo "* OOPSE will still work without qhull installed.        *"
9278 +                echo "*********************************************************"
9279 +                echo ""
9280 +        fi
9281 +
9282 +
9283 +
9284 +
9285 + fi
9286 + fi
9287 +
9288 +
9289 + ac_ext=cpp
9290 + ac_cpp='$CXXCPP $CPPFLAGS'
9291 + ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9292 + ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9293 + ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9294 + { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
9295 + echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
9296 + if test -z "$CXXCPP"; then
9297 +  if test "${ac_cv_prog_CXXCPP+set}" = set; then
9298 +  echo $ECHO_N "(cached) $ECHO_C" >&6
9299 + else
9300 +      # Double quotes because CXXCPP needs to be expanded
9301 +    for CXXCPP in "$CXX -E" "/lib/cpp"
9302 +    do
9303 +      ac_preproc_ok=false
9304 + for ac_cxx_preproc_warn_flag in '' yes
9305 + do
9306 +  # Use a header file that comes with gcc, so configuring glibc
9307 +  # with a fresh cross-compiler works.
9308 +  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9309 +  # <limits.h> exists even on freestanding compilers.
9310 +  # On the NeXT, cc -E runs the code through the compiler's parser,
9311 +  # not just through cpp. "Syntax error" is here to catch this case.
9312 +  cat >conftest.$ac_ext <<_ACEOF
9313 + /* confdefs.h.  */
9314 + _ACEOF
9315 + cat confdefs.h >>conftest.$ac_ext
9316 + cat >>conftest.$ac_ext <<_ACEOF
9317 + /* end confdefs.h.  */
9318 + #ifdef __STDC__
9319 + # include <limits.h>
9320 + #else
9321 + # include <assert.h>
9322 + #endif
9323 +                     Syntax error
9324 + _ACEOF
9325 + if { (ac_try="$ac_cpp conftest.$ac_ext"
9326 + case "(($ac_try" in
9327 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9328 +  *) ac_try_echo=$ac_try;;
9329 + esac
9330 + eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9331 +  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9332 +  ac_status=$?
9333 +  grep -v '^ *+' conftest.er1 >conftest.err
9334 +  rm -f conftest.er1
9335 +  cat conftest.err >&5
9336 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9337 +  (exit $ac_status); } >/dev/null && {
9338 +         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
9339 +         test ! -s conftest.err
9340 +       }; then
9341 +  :
9342 + else
9343 +  echo "$as_me: failed program was:" >&5
9344 + sed 's/^/| /' conftest.$ac_ext >&5
9345 +
9346 +  # Broken: fails on valid input.
9347 + continue
9348 + fi
9349 +
9350 + rm -f conftest.err conftest.$ac_ext
9351 +
9352 +  # OK, works on sane cases.  Now check whether nonexistent headers
9353 +  # can be detected and how.
9354 +  cat >conftest.$ac_ext <<_ACEOF
9355 + /* confdefs.h.  */
9356 + _ACEOF
9357 + cat confdefs.h >>conftest.$ac_ext
9358 + cat >>conftest.$ac_ext <<_ACEOF
9359 + /* end confdefs.h.  */
9360 + #include <ac_nonexistent.h>
9361 + _ACEOF
9362 + if { (ac_try="$ac_cpp conftest.$ac_ext"
9363 + case "(($ac_try" in
9364 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9365 +  *) ac_try_echo=$ac_try;;
9366 + esac
9367 + eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9368 +  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9369 +  ac_status=$?
9370 +  grep -v '^ *+' conftest.er1 >conftest.err
9371 +  rm -f conftest.er1
9372 +  cat conftest.err >&5
9373 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9374 +  (exit $ac_status); } >/dev/null && {
9375 +         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
9376 +         test ! -s conftest.err
9377 +       }; then
9378 +  # Broken: success on invalid input.
9379 + continue
9380 + else
9381 +  echo "$as_me: failed program was:" >&5
9382 + sed 's/^/| /' conftest.$ac_ext >&5
9383 +
9384 +  # Passes both tests.
9385 + ac_preproc_ok=:
9386 + break
9387 + fi
9388 +
9389 + rm -f conftest.err conftest.$ac_ext
9390 +
9391 + done
9392 + # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9393 + rm -f conftest.err conftest.$ac_ext
9394 + if $ac_preproc_ok; then
9395 +  break
9396 + fi
9397 +
9398 +    done
9399 +    ac_cv_prog_CXXCPP=$CXXCPP
9400 +
9401 + fi
9402 +  CXXCPP=$ac_cv_prog_CXXCPP
9403 + else
9404 +  ac_cv_prog_CXXCPP=$CXXCPP
9405 + fi
9406 + { echo "$as_me:$LINENO: result: $CXXCPP" >&5
9407 + echo "${ECHO_T}$CXXCPP" >&6; }
9408 + ac_preproc_ok=false
9409 + for ac_cxx_preproc_warn_flag in '' yes
9410 + do
9411 +  # Use a header file that comes with gcc, so configuring glibc
9412 +  # with a fresh cross-compiler works.
9413 +  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9414 +  # <limits.h> exists even on freestanding compilers.
9415 +  # On the NeXT, cc -E runs the code through the compiler's parser,
9416 +  # not just through cpp. "Syntax error" is here to catch this case.
9417 +  cat >conftest.$ac_ext <<_ACEOF
9418 + /* confdefs.h.  */
9419 + _ACEOF
9420 + cat confdefs.h >>conftest.$ac_ext
9421 + cat >>conftest.$ac_ext <<_ACEOF
9422 + /* end confdefs.h.  */
9423 + #ifdef __STDC__
9424 + # include <limits.h>
9425 + #else
9426 + # include <assert.h>
9427 + #endif
9428 +                     Syntax error
9429 + _ACEOF
9430 + if { (ac_try="$ac_cpp conftest.$ac_ext"
9431 + case "(($ac_try" in
9432 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9433 +  *) ac_try_echo=$ac_try;;
9434 + esac
9435 + eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9436 +  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9437 +  ac_status=$?
9438 +  grep -v '^ *+' conftest.er1 >conftest.err
9439 +  rm -f conftest.er1
9440 +  cat conftest.err >&5
9441 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9442 +  (exit $ac_status); } >/dev/null && {
9443 +         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
9444 +         test ! -s conftest.err
9445 +       }; then
9446 +  :
9447 + else
9448 +  echo "$as_me: failed program was:" >&5
9449 + sed 's/^/| /' conftest.$ac_ext >&5
9450 +
9451 +  # Broken: fails on valid input.
9452 + continue
9453 + fi
9454 +
9455 + rm -f conftest.err conftest.$ac_ext
9456 +
9457 +  # OK, works on sane cases.  Now check whether nonexistent headers
9458 +  # can be detected and how.
9459 +  cat >conftest.$ac_ext <<_ACEOF
9460 + /* confdefs.h.  */
9461 + _ACEOF
9462 + cat confdefs.h >>conftest.$ac_ext
9463 + cat >>conftest.$ac_ext <<_ACEOF
9464 + /* end confdefs.h.  */
9465 + #include <ac_nonexistent.h>
9466 + _ACEOF
9467 + if { (ac_try="$ac_cpp conftest.$ac_ext"
9468 + case "(($ac_try" in
9469 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9470 +  *) ac_try_echo=$ac_try;;
9471 + esac
9472 + eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9473 +  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9474 +  ac_status=$?
9475 +  grep -v '^ *+' conftest.er1 >conftest.err
9476 +  rm -f conftest.er1
9477 +  cat conftest.err >&5
9478 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9479 +  (exit $ac_status); } >/dev/null && {
9480 +         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
9481 +         test ! -s conftest.err
9482 +       }; then
9483 +  # Broken: success on invalid input.
9484 + continue
9485 + else
9486 +  echo "$as_me: failed program was:" >&5
9487 + sed 's/^/| /' conftest.$ac_ext >&5
9488 +
9489 +  # Passes both tests.
9490 + ac_preproc_ok=:
9491 + break
9492 + fi
9493 +
9494 + rm -f conftest.err conftest.$ac_ext
9495 +
9496 + done
9497 + # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9498 + rm -f conftest.err conftest.$ac_ext
9499 + if $ac_preproc_ok; then
9500 +  :
9501 + else
9502 +  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
9503 + See \`config.log' for more details." >&5
9504 + echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
9505 + See \`config.log' for more details." >&2;}
9506 +   { (exit 1); exit 1; }; }
9507 + fi
9508 +
9509 + ac_ext=cpp
9510 + ac_cpp='$CXXCPP $CPPFLAGS'
9511 + ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9512 + ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9513 + ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9514 +
9515 +
9516 + #
9517 + # Handle user hints
9518 + #
9519 +
9520 + # Check whether --with-openbabel was given.
9521 + if test "${with_openbabel+set}" = set; then
9522 +  withval=$with_openbabel; openbabel_dir="$withval"
9523 + else
9524 +                openbabel_dir="not_set"
9525 + fi
9526 +
9527 + if test "$openbabel_dir" != "no"; then
9528 +
9529 + if test "$openbabel_dir" != "not_set" ; then
9530 +  if test -d "$openbabel_dir"
9531 +  then
9532 +    OPENBABEL_HOME="$openbabel_dir"
9533 +  else
9534 +    { echo "$as_me:$LINENO: WARNING: Sorry, $openbabel_dir does not exist, checking usual places" >&5
9535 + echo "$as_me: WARNING: Sorry, $openbabel_dir does not exist, checking usual places" >&2;}
9536 +        OPENBABEL_HOME=/usr/local
9537 +        if test ! -f "${OPENBABEL_HOME}/include/openbabel-2.0/openbabel/babelconfig.h" -a -f "${OPENBABEL_HOME}/include/openbabel-2.0/openbabel/obconversion.h"
9538 +        then
9539 +                OPENBABEL_HOME=/usr
9540 +        fi
9541 +  fi
9542 + fi
9543 + #
9544 + # Locate openbabel, if wanted
9545 + #
9546 + if test -n "${OPENBABEL_HOME}"
9547 + then
9548 +
9549 +        ac_ext=cpp
9550 + ac_cpp='$CXXCPP $CPPFLAGS'
9551 + ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9552 + ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9553 + ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9554 +
9555 +        OPENBABEL_OLD_LDFLAGS=$LDFLAGS
9556 +        OPENBABEL_OLD_CPPFLAGS=$CPPFLAGS
9557 +        LDFLAGS="$LDFLAGS -L${OPENBABEL_HOME}/lib -lopenbabel"
9558 +        CPPFLAGS="$CPPFLAGS -I${OPENBABEL_HOME}/include/openbabel-2.0"
9559 +        if test "${ac_cv_header_openbabel_babelconfig_h+set}" = set; then
9560 +  { echo "$as_me:$LINENO: checking for openbabel/babelconfig.h" >&5
9561 + echo $ECHO_N "checking for openbabel/babelconfig.h... $ECHO_C" >&6; }
9562 + if test "${ac_cv_header_openbabel_babelconfig_h+set}" = set; then
9563 +  echo $ECHO_N "(cached) $ECHO_C" >&6
9564 + fi
9565 + { echo "$as_me:$LINENO: result: $ac_cv_header_openbabel_babelconfig_h" >&5
9566 + echo "${ECHO_T}$ac_cv_header_openbabel_babelconfig_h" >&6; }
9567 + else
9568 +  # Is the header compilable?
9569 + { echo "$as_me:$LINENO: checking openbabel/babelconfig.h usability" >&5
9570 + echo $ECHO_N "checking openbabel/babelconfig.h usability... $ECHO_C" >&6; }
9571 + cat >conftest.$ac_ext <<_ACEOF
9572 + /* confdefs.h.  */
9573 + _ACEOF
9574 + cat confdefs.h >>conftest.$ac_ext
9575 + cat >>conftest.$ac_ext <<_ACEOF
9576 + /* end confdefs.h.  */
9577 + $ac_includes_default
9578 + #include <openbabel/babelconfig.h>
9579 + _ACEOF
9580 + rm -f conftest.$ac_objext
9581 + if { (ac_try="$ac_compile"
9582 + case "(($ac_try" in
9583 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9584 +  *) ac_try_echo=$ac_try;;
9585 + esac
9586 + eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9587 +  (eval "$ac_compile") 2>conftest.er1
9588 +  ac_status=$?
9589 +  grep -v '^ *+' conftest.er1 >conftest.err
9590 +  rm -f conftest.er1
9591 +  cat conftest.err >&5
9592 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9593 +  (exit $ac_status); } && {
9594 +         test -z "$ac_cxx_werror_flag" ||
9595 +         test ! -s conftest.err
9596 +       } && test -s conftest.$ac_objext; then
9597 +  ac_header_compiler=yes
9598 + else
9599 +  echo "$as_me: failed program was:" >&5
9600 + sed 's/^/| /' conftest.$ac_ext >&5
9601 +
9602 +        ac_header_compiler=no
9603 + fi
9604 +
9605 + rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9606 + { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9607 + echo "${ECHO_T}$ac_header_compiler" >&6; }
9608 +
9609 + # Is the header present?
9610 + { echo "$as_me:$LINENO: checking openbabel/babelconfig.h presence" >&5
9611 + echo $ECHO_N "checking openbabel/babelconfig.h presence... $ECHO_C" >&6; }
9612 + cat >conftest.$ac_ext <<_ACEOF
9613 + /* confdefs.h.  */
9614 + _ACEOF
9615 + cat confdefs.h >>conftest.$ac_ext
9616 + cat >>conftest.$ac_ext <<_ACEOF
9617 + /* end confdefs.h.  */
9618 + #include <openbabel/babelconfig.h>
9619 + _ACEOF
9620 + if { (ac_try="$ac_cpp conftest.$ac_ext"
9621 + case "(($ac_try" in
9622 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9623 +  *) ac_try_echo=$ac_try;;
9624 + esac
9625 + eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9626 +  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9627 +  ac_status=$?
9628 +  grep -v '^ *+' conftest.er1 >conftest.err
9629 +  rm -f conftest.er1
9630 +  cat conftest.err >&5
9631 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9632 +  (exit $ac_status); } >/dev/null && {
9633 +         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
9634 +         test ! -s conftest.err
9635 +       }; then
9636 +  ac_header_preproc=yes
9637 + else
9638 +  echo "$as_me: failed program was:" >&5
9639 + sed 's/^/| /' conftest.$ac_ext >&5
9640 +
9641 +  ac_header_preproc=no
9642 + fi
9643 +
9644 + rm -f conftest.err conftest.$ac_ext
9645 + { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9646 + echo "${ECHO_T}$ac_header_preproc" >&6; }
9647 +
9648 + # So?  What about this header?
9649 + case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
9650 +  yes:no: )
9651 +    { echo "$as_me:$LINENO: WARNING: openbabel/babelconfig.h: accepted by the compiler, rejected by the preprocessor!" >&5
9652 + echo "$as_me: WARNING: openbabel/babelconfig.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9653 +    { echo "$as_me:$LINENO: WARNING: openbabel/babelconfig.h: proceeding with the compiler's result" >&5
9654 + echo "$as_me: WARNING: openbabel/babelconfig.h: proceeding with the compiler's result" >&2;}
9655 +    ac_header_preproc=yes
9656 +    ;;
9657 +  no:yes:* )
9658 +    { echo "$as_me:$LINENO: WARNING: openbabel/babelconfig.h: present but cannot be compiled" >&5
9659 + echo "$as_me: WARNING: openbabel/babelconfig.h: present but cannot be compiled" >&2;}
9660 +    { echo "$as_me:$LINENO: WARNING: openbabel/babelconfig.h:     check for missing prerequisite headers?" >&5
9661 + echo "$as_me: WARNING: openbabel/babelconfig.h:     check for missing prerequisite headers?" >&2;}
9662 +    { echo "$as_me:$LINENO: WARNING: openbabel/babelconfig.h: see the Autoconf documentation" >&5
9663 + echo "$as_me: WARNING: openbabel/babelconfig.h: see the Autoconf documentation" >&2;}
9664 +    { echo "$as_me:$LINENO: WARNING: openbabel/babelconfig.h:     section \"Present But Cannot Be Compiled\"" >&5
9665 + echo "$as_me: WARNING: openbabel/babelconfig.h:     section \"Present But Cannot Be Compiled\"" >&2;}
9666 +    { echo "$as_me:$LINENO: WARNING: openbabel/babelconfig.h: proceeding with the preprocessor's result" >&5
9667 + echo "$as_me: WARNING: openbabel/babelconfig.h: proceeding with the preprocessor's result" >&2;}
9668 +    { echo "$as_me:$LINENO: WARNING: openbabel/babelconfig.h: in the future, the compiler will take precedence" >&5
9669 + echo "$as_me: WARNING: openbabel/babelconfig.h: in the future, the compiler will take precedence" >&2;}
9670 +    ( cat <<\_ASBOX
9671 + ## ------------------------------ ##
9672 + ## Report this to gezelter@nd.edu ##
9673 + ## ------------------------------ ##
9674 + _ASBOX
9675 +     ) | sed "s/^/$as_me: WARNING:     /" >&2
9676 +    ;;
9677 + esac
9678 + { echo "$as_me:$LINENO: checking for openbabel/babelconfig.h" >&5
9679 + echo $ECHO_N "checking for openbabel/babelconfig.h... $ECHO_C" >&6; }
9680 + if test "${ac_cv_header_openbabel_babelconfig_h+set}" = set; then
9681 +  echo $ECHO_N "(cached) $ECHO_C" >&6
9682 + else
9683 +  ac_cv_header_openbabel_babelconfig_h=$ac_header_preproc
9684 + fi
9685 + { echo "$as_me:$LINENO: result: $ac_cv_header_openbabel_babelconfig_h" >&5
9686 + echo "${ECHO_T}$ac_cv_header_openbabel_babelconfig_h" >&6; }
9687 +
9688 + fi
9689 + if test $ac_cv_header_openbabel_babelconfig_h = yes; then
9690 +  openbabel_cv_openbabel_h=yes
9691 + else
9692 +  openbabel_cv_openbabel_h=no
9693 + fi
9694 +
9695 +
9696 +        if test "${ac_cv_header_openbabel_obconversion_h+set}" = set; then
9697 +  { echo "$as_me:$LINENO: checking for openbabel/obconversion.h" >&5
9698 + echo $ECHO_N "checking for openbabel/obconversion.h... $ECHO_C" >&6; }
9699 + if test "${ac_cv_header_openbabel_obconversion_h+set}" = set; then
9700 +  echo $ECHO_N "(cached) $ECHO_C" >&6
9701 + fi
9702 + { echo "$as_me:$LINENO: result: $ac_cv_header_openbabel_obconversion_h" >&5
9703 + echo "${ECHO_T}$ac_cv_header_openbabel_obconversion_h" >&6; }
9704 + else
9705 +  # Is the header compilable?
9706 + { echo "$as_me:$LINENO: checking openbabel/obconversion.h usability" >&5
9707 + echo $ECHO_N "checking openbabel/obconversion.h usability... $ECHO_C" >&6; }
9708 + cat >conftest.$ac_ext <<_ACEOF
9709 + /* confdefs.h.  */
9710 + _ACEOF
9711 + cat confdefs.h >>conftest.$ac_ext
9712 + cat >>conftest.$ac_ext <<_ACEOF
9713 + /* end confdefs.h.  */
9714 + $ac_includes_default
9715 + #include <openbabel/obconversion.h>
9716 + _ACEOF
9717 + rm -f conftest.$ac_objext
9718 + if { (ac_try="$ac_compile"
9719 + case "(($ac_try" in
9720 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9721 +  *) ac_try_echo=$ac_try;;
9722 + esac
9723 + eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9724 +  (eval "$ac_compile") 2>conftest.er1
9725 +  ac_status=$?
9726 +  grep -v '^ *+' conftest.er1 >conftest.err
9727 +  rm -f conftest.er1
9728 +  cat conftest.err >&5
9729 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9730 +  (exit $ac_status); } && {
9731 +         test -z "$ac_cxx_werror_flag" ||
9732 +         test ! -s conftest.err
9733 +       } && test -s conftest.$ac_objext; then
9734 +  ac_header_compiler=yes
9735 + else
9736 +  echo "$as_me: failed program was:" >&5
9737 + sed 's/^/| /' conftest.$ac_ext >&5
9738 +
9739 +        ac_header_compiler=no
9740 + fi
9741 +
9742 + rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9743 + { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9744 + echo "${ECHO_T}$ac_header_compiler" >&6; }
9745 +
9746 + # Is the header present?
9747 + { echo "$as_me:$LINENO: checking openbabel/obconversion.h presence" >&5
9748 + echo $ECHO_N "checking openbabel/obconversion.h presence... $ECHO_C" >&6; }
9749 + cat >conftest.$ac_ext <<_ACEOF
9750 + /* confdefs.h.  */
9751 + _ACEOF
9752 + cat confdefs.h >>conftest.$ac_ext
9753 + cat >>conftest.$ac_ext <<_ACEOF
9754 + /* end confdefs.h.  */
9755 + #include <openbabel/obconversion.h>
9756 + _ACEOF
9757 + if { (ac_try="$ac_cpp conftest.$ac_ext"
9758 + case "(($ac_try" in
9759 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9760 +  *) ac_try_echo=$ac_try;;
9761 + esac
9762 + eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9763 +  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9764 +  ac_status=$?
9765 +  grep -v '^ *+' conftest.er1 >conftest.err
9766 +  rm -f conftest.er1
9767 +  cat conftest.err >&5
9768 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9769 +  (exit $ac_status); } >/dev/null && {
9770 +         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
9771 +         test ! -s conftest.err
9772 +       }; then
9773 +  ac_header_preproc=yes
9774 + else
9775 +  echo "$as_me: failed program was:" >&5
9776 + sed 's/^/| /' conftest.$ac_ext >&5
9777 +
9778 +  ac_header_preproc=no
9779 + fi
9780 +
9781 + rm -f conftest.err conftest.$ac_ext
9782 + { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9783 + echo "${ECHO_T}$ac_header_preproc" >&6; }
9784 +
9785 + # So?  What about this header?
9786 + case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
9787 +  yes:no: )
9788 +    { echo "$as_me:$LINENO: WARNING: openbabel/obconversion.h: accepted by the compiler, rejected by the preprocessor!" >&5
9789 + echo "$as_me: WARNING: openbabel/obconversion.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9790 +    { echo "$as_me:$LINENO: WARNING: openbabel/obconversion.h: proceeding with the compiler's result" >&5
9791 + echo "$as_me: WARNING: openbabel/obconversion.h: proceeding with the compiler's result" >&2;}
9792 +    ac_header_preproc=yes
9793 +    ;;
9794 +  no:yes:* )
9795 +    { echo "$as_me:$LINENO: WARNING: openbabel/obconversion.h: present but cannot be compiled" >&5
9796 + echo "$as_me: WARNING: openbabel/obconversion.h: present but cannot be compiled" >&2;}
9797 +    { echo "$as_me:$LINENO: WARNING: openbabel/obconversion.h:     check for missing prerequisite headers?" >&5
9798 + echo "$as_me: WARNING: openbabel/obconversion.h:     check for missing prerequisite headers?" >&2;}
9799 +    { echo "$as_me:$LINENO: WARNING: openbabel/obconversion.h: see the Autoconf documentation" >&5
9800 + echo "$as_me: WARNING: openbabel/obconversion.h: see the Autoconf documentation" >&2;}
9801 +    { echo "$as_me:$LINENO: WARNING: openbabel/obconversion.h:     section \"Present But Cannot Be Compiled\"" >&5
9802 + echo "$as_me: WARNING: openbabel/obconversion.h:     section \"Present But Cannot Be Compiled\"" >&2;}
9803 +    { echo "$as_me:$LINENO: WARNING: openbabel/obconversion.h: proceeding with the preprocessor's result" >&5
9804 + echo "$as_me: WARNING: openbabel/obconversion.h: proceeding with the preprocessor's result" >&2;}
9805 +    { echo "$as_me:$LINENO: WARNING: openbabel/obconversion.h: in the future, the compiler will take precedence" >&5
9806 + echo "$as_me: WARNING: openbabel/obconversion.h: in the future, the compiler will take precedence" >&2;}
9807 +    ( cat <<\_ASBOX
9808 + ## ------------------------------ ##
9809 + ## Report this to gezelter@nd.edu ##
9810 + ## ------------------------------ ##
9811 + _ASBOX
9812 +     ) | sed "s/^/$as_me: WARNING:     /" >&2
9813 +    ;;
9814 + esac
9815 + { echo "$as_me:$LINENO: checking for openbabel/obconversion.h" >&5
9816 + echo $ECHO_N "checking for openbabel/obconversion.h... $ECHO_C" >&6; }
9817 + if test "${ac_cv_header_openbabel_obconversion_h+set}" = set; then
9818 +  echo $ECHO_N "(cached) $ECHO_C" >&6
9819 + else
9820 +  ac_cv_header_openbabel_obconversion_h=$ac_header_preproc
9821 + fi
9822 + { echo "$as_me:$LINENO: result: $ac_cv_header_openbabel_obconversion_h" >&5
9823 + echo "${ECHO_T}$ac_cv_header_openbabel_obconversion_h" >&6; }
9824 +
9825 + fi
9826 + if test $ac_cv_header_openbabel_obconversion_h = yes; then
9827 +  openbabel_cv_obconversion_h=yes
9828 + else
9829 +  openbabel_cv_obconversion_h=no
9830 + fi
9831 +
9832 +
9833 +        cat >conftest.$ac_ext <<_ACEOF
9834 +
9835 +             /* confdefs.h.  */
9836 + _ACEOF
9837 + cat confdefs.h >>conftest.$ac_ext
9838 + cat >>conftest.$ac_ext <<_ACEOF
9839 + /* end confdefs.h.  */
9840 +
9841 + #include <openbabel/babelconfig.h>
9842 + #include <openbabel/obconversion.h>
9843 + using namespace std;
9844 + using namespace OpenBabel;
9845 +
9846 + #ifdef FC_DUMMY_MAIN
9847 + #ifndef FC_DUMMY_MAIN_EQ_F77
9848 + #  ifdef __cplusplus
9849 +     extern "C"
9850 + #  endif
9851 +   int FC_DUMMY_MAIN() { return 1; }
9852 + #endif
9853 + #endif
9854 + int
9855 + main ()
9856 + {
9857 +
9858 + OBConversion Conv(&cin, &cout);
9859 +
9860 +
9861 +  ;
9862 +  return 0;
9863 + }
9864 + _ACEOF
9865 + rm -f conftest.$ac_objext conftest$ac_exeext
9866 + if { (ac_try="$ac_link"
9867 + case "(($ac_try" in
9868 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9869 +  *) ac_try_echo=$ac_try;;
9870 + esac
9871 + eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9872 +  (eval "$ac_link") 2>conftest.er1
9873 +  ac_status=$?
9874 +  grep -v '^ *+' conftest.er1 >conftest.err
9875 +  rm -f conftest.er1
9876 +  cat conftest.err >&5
9877 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9878 +  (exit $ac_status); } && {
9879 +         test -z "$ac_cxx_werror_flag" ||
9880 +         test ! -s conftest.err
9881 +       } && test -s conftest$ac_exeext &&
9882 +       $as_test_x conftest$ac_exeext; then
9883 +
9884 +                openbabel_lib_found="yes"
9885 +                { echo "$as_me:$LINENO: result: found" >&5
9886 + echo "${ECHO_T}found" >&6; }
9887 +
9888 + else
9889 +  echo "$as_me: failed program was:" >&5
9890 + sed 's/^/| /' conftest.$ac_ext >&5
9891 +
9892 +
9893 +                openbabel_lib_found="no"
9894 +                { echo "$as_me:$LINENO: result: not found" >&5
9895 + echo "${ECHO_T}not found" >&6; }
9896 +
9897 +
9898 + fi
9899 +
9900 + rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9901 +      conftest$ac_exeext conftest.$ac_ext
9902 +        ac_ext=c
9903 + ac_cpp='$CPP $CPPFLAGS'
9904 + ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9905 + ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9906 + ac_compiler_gnu=$ac_cv_c_compiler_gnu
9907 +
9908 +        LDFLAGS="$OPENBABEL_OLD_LDFLAGS"
9909 +        CPPFLAGS="$OPENBABEL_OLD_CPPFLAGS"
9910 +
9911 +        if test "$openbabel_lib_found" = "yes" -a "$openbabel_cv_openbabel_h" = "yes" -a "$openbabel_cv_obconversion_h" = "yes"; then
9912 +                USE_OPENBABEL=yes
9913 +                OPENBABEL_INC_DIR="${OPENBABEL_HOME}/include/openbabel-2.0"
9914 +                OPENBABEL_LIB_DIR="${OPENBABEL_HOME}/lib"
9915 +                OPENBABEL_LIB="-lopenbabel"
9916 +        else
9917 +                { echo "$as_me:$LINENO: checking openbabel in ${OPENBABEL_HOME}" >&5
9918 + echo $ECHO_N "checking openbabel in ${OPENBABEL_HOME}... $ECHO_C" >&6; }
9919 +                OPENBABEL_INC_DIR=
9920 +                OPENBABEL_LIB_DIR=
9921 +                OPENBABEL_LIB=
9922 +                USE_OPENBABEL=no
9923 +                { echo "$as_me:$LINENO: result: failed" >&5
9924 + echo "${ECHO_T}failed" >&6; }
9925 +                echo ""
9926 +                echo "*********************************************************"
9927 +                echo "* WARNING: Could not find a working openbabel-2.x       *"
9928 +                echo "* installation If you need OOPSE to be able to convert  *"
9929 +                echo "* xyz or pdb files you need to specify a valid          *"
9930 +                echo "* openbabel-2.x installation with --with-openbabel=DIR  *"
9931 +                echo "*                                                       *"
9932 +                echo "* OOPSE will still work without openbabel installed.    *"
9933 +                echo "*********************************************************"
9934 +                echo ""
9935 +        fi
9936 +
9937 +
9938 +
9939 +
9940 + fi
9941 + fi
9942  
9943  
9944   # Checks for header files.
# Line 7626 | Line 9974 | _ACEOF
9974    return 0;
9975   }
9976   _ACEOF
9977 < rm -rf conftest.$ac_objext
9977 > rm -f conftest.$ac_objext
9978   if { (ac_try="$ac_compile"
9979   case "(($ac_try" in
9980    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
# Line 7651 | Line 9999 | fi
9999          ac_cv_header_stdc=no
10000   fi
10001  
10002 < rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext
10002 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10003  
10004   if test $ac_cv_header_stdc = yes; then
10005    # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
# Line 7670 | Line 10018 | fi
10018   else
10019    ac_cv_header_stdc=no
10020   fi
10021 < rm -rf conftest*
10021 > rm -f conftest*
10022  
10023   fi
10024  
# Line 7691 | Line 10039 | fi
10039   else
10040    ac_cv_header_stdc=no
10041   fi
10042 < rm -rf conftest*
10042 > rm -f conftest*
10043  
10044   fi
10045  
# Line 7731 | Line 10079 | _ACEOF
10079    return 0;
10080   }
10081   _ACEOF
10082 < rm -rf conftest$ac_exeext
10082 > rm -f conftest$ac_exeext
10083   if { (ac_try="$ac_link"
10084   case "(($ac_try" in
10085    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
# Line 7760 | Line 10108 | fi
10108   ( exit $ac_status )
10109   ac_cv_header_stdc=no
10110   fi
10111 < rm -rf core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10111 > rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10112   fi
10113  
10114  
# Line 7826 | Line 10174 | _ACEOF
10174   $ac_includes_default
10175   #include <$ac_header>
10176   _ACEOF
10177 < rm -rf conftest.$ac_objext
10177 > rm -f conftest.$ac_objext
10178   if { (ac_try="$ac_compile"
10179   case "(($ac_try" in
10180    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
# Line 7851 | Line 10199 | fi
10199          ac_header_compiler=no
10200   fi
10201  
10202 < rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext
10202 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10203   { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10204   echo "${ECHO_T}$ac_header_compiler" >&6; }
10205  
# Line 7890 | Line 10238 | fi
10238    ac_header_preproc=no
10239   fi
10240  
10241 < rm -rf conftest.err conftest.$ac_ext
10241 > rm -f conftest.err conftest.$ac_ext
10242   { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10243   echo "${ECHO_T}$ac_header_preproc" >&6; }
10244  
# Line 8042 | Line 10390 | _ACEOF
10390    return 0;
10391   }
10392   _ACEOF
10393 < rm -rf conftest.$ac_objext
10393 > rm -f conftest.$ac_objext
10394   if { (ac_try="$ac_compile"
10395   case "(($ac_try" in
10396    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
# Line 8067 | Line 10415 | fi
10415          ac_cv_header_stdbool_h=no
10416   fi
10417  
10418 < rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext
10418 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10419   fi
10420   { echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
10421   echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6; }
# Line 8103 | Line 10451 | _ACEOF
10451    return 0;
10452   }
10453   _ACEOF
10454 < rm -rf conftest.$ac_objext
10454 > rm -f conftest.$ac_objext
10455   if { (ac_try="$ac_compile"
10456   case "(($ac_try" in
10457    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
# Line 8128 | Line 10476 | fi
10476          ac_cv_type__Bool=no
10477   fi
10478  
10479 < rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext
10479 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10480   fi
10481   { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
10482   echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
# Line 8226 | Line 10574 | _ACEOF
10574    return 0;
10575   }
10576   _ACEOF
10577 < rm -rf conftest.$ac_objext
10577 > rm -f conftest.$ac_objext
10578   if { (ac_try="$ac_compile"
10579   case "(($ac_try" in
10580    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
# Line 8251 | Line 10599 | fi
10599          ac_cv_c_const=no
10600   fi
10601  
10602 < rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext
10602 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10603   fi
10604   { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
10605   echo "${ECHO_T}$ac_cv_c_const" >&6; }
# Line 8283 | Line 10631 | _ACEOF
10631   #endif
10632  
10633   _ACEOF
10634 < rm -rf conftest.$ac_objext
10634 > rm -f conftest.$ac_objext
10635   if { (ac_try="$ac_compile"
10636   case "(($ac_try" in
10637    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
# Line 8308 | Line 10656 | fi
10656  
10657   fi
10658  
10659 < rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext
10659 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10660    test "$ac_cv_c_inline" != no && break
10661   done
10662  
# Line 8370 | Line 10718 | _ACEOF
10718    return 0;
10719   }
10720   _ACEOF
10721 < rm -rf conftest.$ac_objext
10721 > rm -f conftest.$ac_objext
10722   if { (ac_try="$ac_compile"
10723   case "(($ac_try" in
10724    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
# Line 8395 | Line 10743 | fi
10743  
10744   fi
10745  
10746 < rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext
10746 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10747       test "$ac_cv_c_restrict" != no && break
10748     done
10749  
# Line 8447 | Line 10795 | _ACEOF
10795    return 0;
10796   }
10797   _ACEOF
10798 < rm -rf conftest.$ac_objext
10798 > rm -f conftest.$ac_objext
10799   if { (ac_try="$ac_compile"
10800   case "(($ac_try" in
10801    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
# Line 8472 | Line 10820 | fi
10820          ac_cv_type_size_t=no
10821   fi
10822  
10823 < rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext
10823 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10824   fi
10825   { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
10826   echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
# Line 8518 | Line 10866 | _ACEOF
10866    return 0;
10867   }
10868   _ACEOF
10869 < rm -rf conftest.$ac_objext
10869 > rm -f conftest.$ac_objext
10870   if { (ac_try="$ac_compile"
10871   case "(($ac_try" in
10872    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
# Line 8543 | Line 10891 | fi
10891          ac_cv_header_time=no
10892   fi
10893  
10894 < rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext
10894 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10895   fi
10896   { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
10897   echo "${ECHO_T}$ac_cv_header_time" >&6; }
# Line 8587 | Line 10935 | _ACEOF
10935    return 0;
10936   }
10937   _ACEOF
10938 < rm -rf conftest.$ac_objext
10938 > rm -f conftest.$ac_objext
10939   if { (ac_try="$ac_compile"
10940   case "(($ac_try" in
10941    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
# Line 8612 | Line 10960 | fi
10960          ac_cv_type_clock_t=no
10961   fi
10962  
10963 < rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext
10963 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10964   fi
10965   { echo "$as_me:$LINENO: result: $ac_cv_type_clock_t" >&5
10966   echo "${ECHO_T}$ac_cv_type_clock_t" >&6; }
# Line 8702 | Line 11050 | _ACEOF
11050    return 0;
11051   }
11052   _ACEOF
11053 < rm -rf conftest.$ac_objext
11053 > rm -f conftest.$ac_objext
11054   if { (ac_try="$ac_compile"
11055   case "(($ac_try" in
11056    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
# Line 8727 | Line 11075 | fi
11075          ac_cv_c_const=no
11076   fi
11077  
11078 < rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext
11078 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11079   fi
11080   { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
11081   echo "${ECHO_T}$ac_cv_c_const" >&6; }
# Line 8759 | Line 11107 | _ACEOF
11107   #endif
11108  
11109   _ACEOF
11110 < rm -rf conftest.$ac_objext
11110 > rm -f conftest.$ac_objext
11111   if { (ac_try="$ac_compile"
11112   case "(($ac_try" in
11113    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
# Line 8784 | Line 11132 | fi
11132  
11133   fi
11134  
11135 < rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext
11135 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11136    test "$ac_cv_c_inline" != no && break
11137   done
11138  
# Line 8836 | Line 11184 | _ACEOF
11184   $ac_includes_default
11185   #include <$ac_header>
11186   _ACEOF
11187 < rm -rf conftest.$ac_objext
11187 > rm -f conftest.$ac_objext
11188   if { (ac_try="$ac_compile"
11189   case "(($ac_try" in
11190    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
# Line 8861 | Line 11209 | fi
11209          ac_header_compiler=no
11210   fi
11211  
11212 < rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext
11212 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11213   { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11214   echo "${ECHO_T}$ac_header_compiler" >&6; }
11215  
# Line 8885 | Line 11233 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11233    (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11234    ac_status=$?
11235    grep -v '^ *+' conftest.er1 >conftest.err
11236 <  rm -rf conftest.er1
11236 >  rm -f conftest.er1
11237    cat conftest.err >&5
11238    echo "$as_me:$LINENO: \$? = $ac_status" >&5
11239    (exit $ac_status); } >/dev/null && {
# Line 8900 | Line 11248 | fi
11248    ac_header_preproc=no
11249   fi
11250  
11251 < rm -rf conftest.err conftest.$ac_ext
11251 > rm -f conftest.err conftest.$ac_ext
11252   { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11253   echo "${ECHO_T}$ac_header_preproc" >&6; }
11254  
# Line 8991 | Line 11339 | _ACEOF
11339    return 0;
11340   }
11341   _ACEOF
11342 < rm -rf conftest$ac_exeext
11342 > rm -f conftest$ac_exeext
11343   if { (ac_try="$ac_link"
11344   case "(($ac_try" in
11345    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
# Line 9020 | Line 11368 | fi
11368   ( exit $ac_status )
11369   ac_cv_func_malloc_0_nonnull=no
11370   fi
11371 < rm -rf core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11371 > rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11372   fi
11373  
11374  
# Line 9108 | Line 11456 | _ACEOF
11456    return 0;
11457   }
11458   _ACEOF
11459 < rm -rf conftest$ac_exeext
11459 > rm -f conftest$ac_exeext
11460   if { (ac_try="$ac_link"
11461   case "(($ac_try" in
11462    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
# Line 9137 | Line 11485 | fi
11485   ( exit $ac_status )
11486   ac_cv_func_memcmp_working=no
11487   fi
11488 < rm -rf core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11488 > rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11489   fi
11490  
11491  
# Line 9177 | Line 11525 | _ACEOF
11525   $ac_includes_default
11526   #include <$ac_header>
11527   _ACEOF
11528 < rm -rf conftest.$ac_objext
11528 > rm -f conftest.$ac_objext
11529   if { (ac_try="$ac_compile"
11530   case "(($ac_try" in
11531    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
# Line 9202 | Line 11550 | fi
11550          ac_header_compiler=no
11551   fi
11552  
11553 < rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext
11553 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11554   { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11555   echo "${ECHO_T}$ac_header_compiler" >&6; }
11556  
# Line 9241 | Line 11589 | fi
11589    ac_header_preproc=no
11590   fi
11591  
11592 < rm -rf conftest.err conftest.$ac_ext
11592 > rm -f conftest.err conftest.$ac_ext
11593   { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11594   echo "${ECHO_T}$ac_header_preproc" >&6; }
11595  
# Line 9332 | Line 11680 | _ACEOF
11680    return 0;
11681   }
11682   _ACEOF
11683 < rm -rf conftest$ac_exeext
11683 > rm -f conftest$ac_exeext
11684   if { (ac_try="$ac_link"
11685   case "(($ac_try" in
11686    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
# Line 9361 | Line 11709 | fi
11709   ( exit $ac_status )
11710   ac_cv_func_realloc_0_nonnull=no
11711   fi
11712 < rm -rf core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11712 > rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11713   fi
11714  
11715  
# Line 9421 | Line 11769 | _ACEOF
11769   $ac_includes_default
11770   #include <$ac_header>
11771   _ACEOF
11772 < rm -rf conftest.$ac_objext
11772 > rm -f conftest.$ac_objext
11773   if { (ac_try="$ac_compile"
11774   case "(($ac_try" in
11775    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
# Line 9446 | Line 11794 | fi
11794          ac_header_compiler=no
11795   fi
11796  
11797 < rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext
11797 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11798   { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11799   echo "${ECHO_T}$ac_header_compiler" >&6; }
11800  
# Line 9485 | Line 11833 | fi
11833    ac_header_preproc=no
11834   fi
11835  
11836 < rm -rf conftest.err conftest.$ac_ext
11836 > rm -f conftest.err conftest.$ac_ext
11837   { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11838   echo "${ECHO_T}$ac_header_preproc" >&6; }
11839  
# Line 9580 | Line 11928 | _ACEOF
11928    return 0;
11929   }
11930   _ACEOF
11931 < rm -rf conftest.$ac_objext
11931 > rm -f conftest.$ac_objext
11932   if { (ac_try="$ac_compile"
11933   case "(($ac_try" in
11934    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
# Line 9605 | Line 11953 | fi
11953  
11954   fi
11955  
11956 < rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext
11956 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11957    done
11958   done
11959   done
# Line 9634 | Line 11982 | _ACEOF
11982   #define SELECT_TYPE_ARG5 ($3)
11983   _ACEOF
11984  
11985 < rm -rf conftest*
11985 > rm -f conftest*
11986  
11987  
11988   for ac_func in strftime
# Line 9698 | Line 12046 | _ACEOF
12046    return 0;
12047   }
12048   _ACEOF
12049 < rm -rf conftest.$ac_objext conftest$ac_exeext
12049 > rm -f conftest.$ac_objext conftest$ac_exeext
12050   if { (ac_try="$ac_link"
12051   case "(($ac_try" in
12052    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
# Line 9724 | Line 12072 | fi
12072          eval "$as_ac_var=no"
12073   fi
12074  
12075 < rm -rf core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12075 > rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12076        conftest$ac_exeext conftest.$ac_ext
12077   fi
12078   ac_res=`eval echo '${'$as_ac_var'}'`
# Line 9774 | Line 12122 | _ACEOF
12122    return 0;
12123   }
12124   _ACEOF
12125 < rm -rf conftest.$ac_objext conftest$ac_exeext
12125 > rm -f conftest.$ac_objext conftest$ac_exeext
12126   if { (ac_try="$ac_link"
12127   case "(($ac_try" in
12128    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
# Line 9800 | Line 12148 | fi
12148          ac_cv_lib_intl_strftime=no
12149   fi
12150  
12151 < rm -rf core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12151 > rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12152        conftest$ac_exeext conftest.$ac_ext
12153   LIBS=$ac_check_lib_save_LIBS
12154   fi
# Line 10617 | Line 12965 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12965   ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12966   ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12967  
10620
12968   { echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
12969   echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
12970   if test "${ac_cv_cxx_namespaces+set}" = set; then
# Line 10693 | Line 13040 | cat >>confdefs.h <<\_ACEOF
13040  
13041   cat >>confdefs.h <<\_ACEOF
13042   #define HAVE_NAMESPACES
10696 _ACEOF
10697
10698 fi
10699
10700 ac_ext=cpp
10701 ac_cpp='$CXXCPP $CPPFLAGS'
10702 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10703 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10704 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10705 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
10706 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
10707 if test -z "$CXXCPP"; then
10708  if test "${ac_cv_prog_CXXCPP+set}" = set; then
10709  echo $ECHO_N "(cached) $ECHO_C" >&6
10710 else
10711      # Double quotes because CXXCPP needs to be expanded
10712    for CXXCPP in "$CXX -E" "/lib/cpp"
10713    do
10714      ac_preproc_ok=false
10715 for ac_cxx_preproc_warn_flag in '' yes
10716 do
10717  # Use a header file that comes with gcc, so configuring glibc
10718  # with a fresh cross-compiler works.
10719  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10720  # <limits.h> exists even on freestanding compilers.
10721  # On the NeXT, cc -E runs the code through the compiler's parser,
10722  # not just through cpp. "Syntax error" is here to catch this case.
10723  cat >conftest.$ac_ext <<_ACEOF
10724 /* confdefs.h.  */
10725 _ACEOF
10726 cat confdefs.h >>conftest.$ac_ext
10727 cat >>conftest.$ac_ext <<_ACEOF
10728 /* end confdefs.h.  */
10729 #ifdef __STDC__
10730 # include <limits.h>
10731 #else
10732 # include <assert.h>
10733 #endif
10734                     Syntax error
10735 _ACEOF
10736 if { (ac_try="$ac_cpp conftest.$ac_ext"
10737 case "(($ac_try" in
10738  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10739  *) ac_try_echo=$ac_try;;
10740 esac
10741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10742  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10743  ac_status=$?
10744  grep -v '^ *+' conftest.er1 >conftest.err
10745  rm -f conftest.er1
10746  cat conftest.err >&5
10747  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10748  (exit $ac_status); } >/dev/null && {
10749         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
10750         test ! -s conftest.err
10751       }; then
10752  :
10753 else
10754  echo "$as_me: failed program was:" >&5
10755 sed 's/^/| /' conftest.$ac_ext >&5
10756
10757  # Broken: fails on valid input.
10758 continue
10759 fi
10760
10761 rm -f conftest.err conftest.$ac_ext
10762
10763  # OK, works on sane cases.  Now check whether nonexistent headers
10764  # can be detected and how.
10765  cat >conftest.$ac_ext <<_ACEOF
10766 /* confdefs.h.  */
10767 _ACEOF
10768 cat confdefs.h >>conftest.$ac_ext
10769 cat >>conftest.$ac_ext <<_ACEOF
10770 /* end confdefs.h.  */
10771 #include <ac_nonexistent.h>
10772 _ACEOF
10773 if { (ac_try="$ac_cpp conftest.$ac_ext"
10774 case "(($ac_try" in
10775  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10776  *) ac_try_echo=$ac_try;;
10777 esac
10778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10779  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10780  ac_status=$?
10781  grep -v '^ *+' conftest.er1 >conftest.err
10782  rm -f conftest.er1
10783  cat conftest.err >&5
10784  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10785  (exit $ac_status); } >/dev/null && {
10786         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
10787         test ! -s conftest.err
10788       }; then
10789  # Broken: success on invalid input.
10790 continue
10791 else
10792  echo "$as_me: failed program was:" >&5
10793 sed 's/^/| /' conftest.$ac_ext >&5
10794
10795  # Passes both tests.
10796 ac_preproc_ok=:
10797 break
10798 fi
10799
10800 rm -f conftest.err conftest.$ac_ext
10801
10802 done
10803 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10804 rm -f conftest.err conftest.$ac_ext
10805 if $ac_preproc_ok; then
10806  break
10807 fi
10808
10809    done
10810    ac_cv_prog_CXXCPP=$CXXCPP
10811
10812 fi
10813  CXXCPP=$ac_cv_prog_CXXCPP
10814 else
10815  ac_cv_prog_CXXCPP=$CXXCPP
10816 fi
10817 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
10818 echo "${ECHO_T}$CXXCPP" >&6; }
10819 ac_preproc_ok=false
10820 for ac_cxx_preproc_warn_flag in '' yes
10821 do
10822  # Use a header file that comes with gcc, so configuring glibc
10823  # with a fresh cross-compiler works.
10824  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10825  # <limits.h> exists even on freestanding compilers.
10826  # On the NeXT, cc -E runs the code through the compiler's parser,
10827  # not just through cpp. "Syntax error" is here to catch this case.
10828  cat >conftest.$ac_ext <<_ACEOF
10829 /* confdefs.h.  */
10830 _ACEOF
10831 cat confdefs.h >>conftest.$ac_ext
10832 cat >>conftest.$ac_ext <<_ACEOF
10833 /* end confdefs.h.  */
10834 #ifdef __STDC__
10835 # include <limits.h>
10836 #else
10837 # include <assert.h>
10838 #endif
10839                     Syntax error
10840 _ACEOF
10841 if { (ac_try="$ac_cpp conftest.$ac_ext"
10842 case "(($ac_try" in
10843  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10844  *) ac_try_echo=$ac_try;;
10845 esac
10846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10847  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10848  ac_status=$?
10849  grep -v '^ *+' conftest.er1 >conftest.err
10850  rm -f conftest.er1
10851  cat conftest.err >&5
10852  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10853  (exit $ac_status); } >/dev/null && {
10854         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
10855         test ! -s conftest.err
10856       }; then
10857  :
10858 else
10859  echo "$as_me: failed program was:" >&5
10860 sed 's/^/| /' conftest.$ac_ext >&5
10861
10862  # Broken: fails on valid input.
10863 continue
10864 fi
10865
10866 rm -f conftest.err conftest.$ac_ext
10867
10868  # OK, works on sane cases.  Now check whether nonexistent headers
10869  # can be detected and how.
10870  cat >conftest.$ac_ext <<_ACEOF
10871 /* confdefs.h.  */
13043   _ACEOF
10873 cat confdefs.h >>conftest.$ac_ext
10874 cat >>conftest.$ac_ext <<_ACEOF
10875 /* end confdefs.h.  */
10876 #include <ac_nonexistent.h>
10877 _ACEOF
10878 if { (ac_try="$ac_cpp conftest.$ac_ext"
10879 case "(($ac_try" in
10880  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10881  *) ac_try_echo=$ac_try;;
10882 esac
10883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10884  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10885  ac_status=$?
10886  grep -v '^ *+' conftest.er1 >conftest.err
10887  rm -f conftest.er1
10888  cat conftest.err >&5
10889  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10890  (exit $ac_status); } >/dev/null && {
10891         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
10892         test ! -s conftest.err
10893       }; then
10894  # Broken: success on invalid input.
10895 continue
10896 else
10897  echo "$as_me: failed program was:" >&5
10898 sed 's/^/| /' conftest.$ac_ext >&5
13044  
10900  # Passes both tests.
10901 ac_preproc_ok=:
10902 break
13045   fi
10904
10905 rm -f conftest.err conftest.$ac_ext
10906
10907 done
10908 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10909 rm -f conftest.err conftest.$ac_ext
10910 if $ac_preproc_ok; then
10911  :
10912 else
10913  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10914 See \`config.log' for more details." >&5
10915 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10916 See \`config.log' for more details." >&2;}
10917   { (exit 1); exit 1; }; }
10918 fi
10919
10920 ac_ext=cpp
10921 ac_cpp='$CXXCPP $CPPFLAGS'
10922 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10923 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10924 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10925
13046  
13047   { echo "$as_me:$LINENO: checking whether the compiler supports Standard Template Library" >&5
13048   echo $ECHO_N "checking whether the compiler supports Standard Template Library... $ECHO_C" >&6; }
# Line 12954 | Line 15074 | fi
15074   else
15075          ac_guessed_f90flags=no
15076   fi
15077 < rm -rf conftest*
15077 > rm -f conftest*
15078   ac_ext=cpp
15079   ac_cpp='$CXXCPP $CPPFLAGS'
15080   ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
# Line 13077 | Line 15197 | if test "$ac_test_CFLAGS" != "set"; then
15197  
15198    # use default flags for gcc on all systems
15199    if test $ac_cv_prog_really_gcc = yes; then
15200 <     CFLAGS="-O6 -fomit-frame-pointer -Wall -W -Wcast-qual -Wpointer-arith -Wcast-align -pedantic"
15200 >     CFLAGS="-O6 -fomit-frame-pointer -Wall -W -Wcast-qual -Wpointer-arith -Wcast-align"
15201    fi
15202  
15203    # test for gcc-specific flags:
# Line 13534 | Line 15654 | if test "$ac_test_CXXFLAGS" != "set"; then
15654  
15655    # use default flags for gcc on all systems
15656    if test $ac_cv_prog_really_gxx = yes; then
15657 <     CXXFLAGS="-O6 -fomit-frame-pointer -Wall -W -Wcast-qual -Wpointer-arith -Wcast-align -pedantic"
15657 >     CXXFLAGS="-O6 -fomit-frame-pointer -Wall -W -Wcast-qual -Wpointer-arith -Wcast-align"
15658    fi
15659  
15660    # test for gcc-specific flags:
# Line 13918 | Line 16038 | _ACEOF
16038  
16039  
16040  
16041 + acx_cgal_found=no
16042  
16043 < # Check whether --with-mpi was given.
16044 < if test "${with_mpi+set}" = set; then
16045 <  withval=$with_mpi; with_mpi=$withval
13925 < else
13926 <  with_mpi="no"
16043 > # Check whether --with-cgalmakefile was given.
16044 > if test "${with_cgalmakefile+set}" = set; then
16045 >  withval=$with_cgalmakefile;
16046   fi
16047  
16048 <
16049 < case "x$with_mpi" in
16050 <        xyes | "x")  USE_MPI=yes;;
16051 <        xno) USE_MPI=no ;;
16052 <        *) MPI="$with_mpi"; USE_MPI=yes ;;
16053 < esac
13935 < if test "$USE_MPI" = "yes" -a -z "$with_mpi"; then
13936 <        MPI="/usr/local"
13937 < fi
13938 < if test "$USE_MPI" = "yes"; then
13939 <
13940 <
13941 < # Set variables...
13942 < MPI_LIB_DIR="$MPI/lib"
13943 < MPI_INC_DIR="$MPI/include"
16048 > case $with_cgalmakefile in
16049 >        yes | "") ;;
16050 >        no) acx_cgal_found=disable ;;
16051 >        -* | */* | *.a | *.so | *.so.* | *.o) CGAL_MAKEFILE="$with_cgalmakefile" ;;
16052 >        *) CGAL_MAKEFILE="$with_cgalmakefile" ;;
16053 > esac
16054  
16055 + if test "$acx_cgal_found" == no; then
16056 +    { echo "$as_me:$LINENO: checking CGAL_MAKEFILE" >&5
16057 + echo $ECHO_N "checking CGAL_MAKEFILE... $ECHO_C" >&6; }
16058  
16059 +    if test \! -z "$CGAL_MAKEFILE"; then
16060  
16061 < ac_ext=c
16062 < ac_cpp='$CPP $CPPFLAGS'
13949 < ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13950 < ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13951 < ac_compiler_gnu=$ac_cv_c_compiler_gnu
16061 >        if test -e "$CGAL_MAKEFILE"; then
16062 >            tname=`mktemp /tmp/cgal_makefile_dsrXXXXXX`
16063  
16064 < { echo "$as_me:$LINENO: checking for mpi.h" >&5
16065 < echo $ECHO_N "checking for mpi.h... $ECHO_C" >&6; }
16066 < have_mpi_h=0
16067 < rm -f conftest*
16068 < echo '#include <mpi.h>' > conftest.c
16069 < if ${CC} -I${MPI_INC_DIR} -c conftest.c 2>&1 ; then
16070 <        { echo "$as_me:$LINENO: result: yes" >&5
16071 < echo "${ECHO_T}yes" >&6; }
16072 <        have_mpi_h=1
16073 < else
16074 <        if test -s conftest.out ; then
16075 <                cat conftest.out >> config.log
16064 > cat > $tname << _ACEOF
16065 > include $CGAL_MAKEFILE
16066 >
16067 > cppflags:
16068 >        @echo \$(CGAL_CXXFLAGS)
16069 >
16070 > cxxflags:
16071 >        @echo
16072 > ldflags:
16073 >        @echo \$(CGAL_LDFLAGS)
16074 > _ACEOF
16075 >            CGAL_CPPFLAGS="`make -s -f $tname cppflags`"
16076 >            CGAL_CXXFLAGS="`make -s -f $tname cxxflags`"
16077 >            CGAL_LDFLAGST="`make -s -f $tname ldflags`"
16078 >            for i in $CGAL_LDFLAGST; do
16079 >                if test `echo $i| grep -c ^-l`; then
16080 >                    CGAL_LIBS="$CGAL_LIBS $i"
16081 >                else
16082 >                    CGAL_LDFLAGS="$CGAL_LDFLAGS $i"
16083 >                fi
16084 >            done
16085 >            rm -f $tname
16086 >            { echo "$as_me:$LINENO: result: yes" >&5
16087 > echo "${ECHO_T}yes" >&6; }
16088 >            acx_cgal_found=yes
16089 >                                   else
16090 >            { echo "$as_me:$LINENO: result: invalid" >&5
16091 > echo "${ECHO_T}invalid" >&6; }
16092 >            { { echo "$as_me:$LINENO: error: CGAL_MAKEFILE defined, but the makefile does not exist." >&5
16093 > echo "$as_me: error: CGAL_MAKEFILE defined, but the makefile does not exist." >&2;}
16094 >   { (exit 1); exit 1; }; }
16095          fi
16096 <        { echo "$as_me:$LINENO: result: no! Check MPI include paths" >&5
16097 < echo "${ECHO_T}no! Check MPI include paths" >&6; }
16098 <        USE_MPI="no"
16096 >    else
16097 >        { echo "$as_me:$LINENO: result: not defined" >&5
16098 > echo "${ECHO_T}not defined" >&6; }
16099 >    fi
16100   fi
13970 rm -f conftest*
13971 if test "$have_mpi_h" = 1; then
16101  
16102 < cat >>confdefs.h <<\_ACEOF
16103 < #define HAVE_MPI_H 1
16102 > if test "$acx_cgal_found" == no; then
16103 >        if test "${ac_cv_header_CGAL_Exact_predicates_inexact_constructions_kernel_h+set}" = set; then
16104 >  { echo "$as_me:$LINENO: checking for CGAL/Exact_predicates_inexact_constructions_kernel.h" >&5
16105 > echo $ECHO_N "checking for CGAL/Exact_predicates_inexact_constructions_kernel.h... $ECHO_C" >&6; }
16106 > if test "${ac_cv_header_CGAL_Exact_predicates_inexact_constructions_kernel_h+set}" = set; then
16107 >  echo $ECHO_N "(cached) $ECHO_C" >&6
16108 > fi
16109 > { echo "$as_me:$LINENO: result: $ac_cv_header_CGAL_Exact_predicates_inexact_constructions_kernel_h" >&5
16110 > echo "${ECHO_T}$ac_cv_header_CGAL_Exact_predicates_inexact_constructions_kernel_h" >&6; }
16111 > else
16112 >  # Is the header compilable?
16113 > { echo "$as_me:$LINENO: checking CGAL/Exact_predicates_inexact_constructions_kernel.h usability" >&5
16114 > echo $ECHO_N "checking CGAL/Exact_predicates_inexact_constructions_kernel.h usability... $ECHO_C" >&6; }
16115 > cat >conftest.$ac_ext <<_ACEOF
16116 > /* confdefs.h.  */
16117   _ACEOF
16118 + cat confdefs.h >>conftest.$ac_ext
16119 + cat >>conftest.$ac_ext <<_ACEOF
16120 + /* end confdefs.h.  */
16121 + $ac_includes_default
16122 + #include <CGAL/Exact_predicates_inexact_constructions_kernel.h>
16123 + _ACEOF
16124 + rm -f conftest.$ac_objext
16125 + if { (ac_try="$ac_compile"
16126 + case "(($ac_try" in
16127 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16128 +  *) ac_try_echo=$ac_try;;
16129 + esac
16130 + eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16131 +  (eval "$ac_compile") 2>conftest.er1
16132 +  ac_status=$?
16133 +  grep -v '^ *+' conftest.er1 >conftest.err
16134 +  rm -f conftest.er1
16135 +  cat conftest.err >&5
16136 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16137 +  (exit $ac_status); } && {
16138 +         test -z "$ac_cxx_werror_flag" ||
16139 +         test ! -s conftest.err
16140 +       } && test -s conftest.$ac_objext; then
16141 +  ac_header_compiler=yes
16142 + else
16143 +  echo "$as_me: failed program was:" >&5
16144 + sed 's/^/| /' conftest.$ac_ext >&5
16145  
16146 +        ac_header_compiler=no
16147   fi
16148  
16149 < { echo "$as_me:$LINENO: checking whether mpif.h is usable" >&5
16150 < echo $ECHO_N "checking whether mpif.h is usable... $ECHO_C" >&6; }
16149 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16150 > { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16151 > echo "${ECHO_T}$ac_header_compiler" >&6; }
16152  
16153 < ac_ext=${ac_fc_srcext-f}
16154 < ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
16155 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
16156 < ac_compiler_gnu=$ac_cv_fc_compiler_gnu
16157 <
16158 < ac_save_ext=$ac_ext
16159 < ac_ext=F90
16160 < ac_save_FCFLAGS=$FCFLAGS
16161 < have_mpif_h=0
16162 < rm -f conftest*
16163 < cat >conftest.$ac_ext <<EOF
16164 < program main
16165 <   include 'mpif.h'
16166 < end
16167 < EOF
16168 < if $FC -I$MPI_INC_DIR -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext > conftest.out 2>&1 ; then
16169 <        { echo "$as_me:$LINENO: result: yes" >&5
16170 < echo "${ECHO_T}yes" >&6; }
16171 <        MPI_F90_INC="$MPI_INC_DIR"
16172 <        have_mpif_h=1
16173 < else
16174 <        if test -s conftest.out ; then
16175 <                cat conftest.out >> config.log
16176 <        fi
16177 <        { echo "$as_me:$LINENO: result: no! Check MPI include paths" >&5
16178 < echo "${ECHO_T}no! Check MPI include paths" >&6; }
16179 <        USE_MPI="no"
16153 > # Is the header present?
16154 > { echo "$as_me:$LINENO: checking CGAL/Exact_predicates_inexact_constructions_kernel.h presence" >&5
16155 > echo $ECHO_N "checking CGAL/Exact_predicates_inexact_constructions_kernel.h presence... $ECHO_C" >&6; }
16156 > cat >conftest.$ac_ext <<_ACEOF
16157 > /* confdefs.h.  */
16158 > _ACEOF
16159 > cat confdefs.h >>conftest.$ac_ext
16160 > cat >>conftest.$ac_ext <<_ACEOF
16161 > /* end confdefs.h.  */
16162 > #include <CGAL/Exact_predicates_inexact_constructions_kernel.h>
16163 > _ACEOF
16164 > if { (ac_try="$ac_cpp conftest.$ac_ext"
16165 > case "(($ac_try" in
16166 >  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16167 >  *) ac_try_echo=$ac_try;;
16168 > esac
16169 > eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16170 >  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16171 >  ac_status=$?
16172 >  grep -v '^ *+' conftest.er1 >conftest.err
16173 >  rm -f conftest.er1
16174 >  cat conftest.err >&5
16175 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16176 >  (exit $ac_status); } >/dev/null && {
16177 >         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
16178 >         test ! -s conftest.err
16179 >       }; then
16180 >  ac_header_preproc=yes
16181 > else
16182 >  echo "$as_me: failed program was:" >&5
16183 > sed 's/^/| /' conftest.$ac_ext >&5
16184 >
16185 >  ac_header_preproc=no
16186   fi
14010 rm -f conftest*
16187  
16188 < if test "$have_mpif_h" = 1; then
16188 > rm -f conftest.err conftest.$ac_ext
16189 > { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16190 > echo "${ECHO_T}$ac_header_preproc" >&6; }
16191  
16192 < cat >>confdefs.h <<\_ACEOF
16193 < #define HAVE_MPIF_H 1
16194 < _ACEOF
16192 > # So?  What about this header?
16193 > case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
16194 >  yes:no: )
16195 >    { echo "$as_me:$LINENO: WARNING: CGAL/Exact_predicates_inexact_constructions_kernel.h: accepted by the compiler, rejected by the preprocessor!" >&5
16196 > echo "$as_me: WARNING: CGAL/Exact_predicates_inexact_constructions_kernel.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16197 >    { echo "$as_me:$LINENO: WARNING: CGAL/Exact_predicates_inexact_constructions_kernel.h: proceeding with the compiler's result" >&5
16198 > echo "$as_me: WARNING: CGAL/Exact_predicates_inexact_constructions_kernel.h: proceeding with the compiler's result" >&2;}
16199 >    ac_header_preproc=yes
16200 >    ;;
16201 >  no:yes:* )
16202 >    { echo "$as_me:$LINENO: WARNING: CGAL/Exact_predicates_inexact_constructions_kernel.h: present but cannot be compiled" >&5
16203 > echo "$as_me: WARNING: CGAL/Exact_predicates_inexact_constructions_kernel.h: present but cannot be compiled" >&2;}
16204 >    { echo "$as_me:$LINENO: WARNING: CGAL/Exact_predicates_inexact_constructions_kernel.h:     check for missing prerequisite headers?" >&5
16205 > echo "$as_me: WARNING: CGAL/Exact_predicates_inexact_constructions_kernel.h:     check for missing prerequisite headers?" >&2;}
16206 >    { echo "$as_me:$LINENO: WARNING: CGAL/Exact_predicates_inexact_constructions_kernel.h: see the Autoconf documentation" >&5
16207 > echo "$as_me: WARNING: CGAL/Exact_predicates_inexact_constructions_kernel.h: see the Autoconf documentation" >&2;}
16208 >    { echo "$as_me:$LINENO: WARNING: CGAL/Exact_predicates_inexact_constructions_kernel.h:     section \"Present But Cannot Be Compiled\"" >&5
16209 > echo "$as_me: WARNING: CGAL/Exact_predicates_inexact_constructions_kernel.h:     section \"Present But Cannot Be Compiled\"" >&2;}
16210 >    { echo "$as_me:$LINENO: WARNING: CGAL/Exact_predicates_inexact_constructions_kernel.h: proceeding with the preprocessor's result" >&5
16211 > echo "$as_me: WARNING: CGAL/Exact_predicates_inexact_constructions_kernel.h: proceeding with the preprocessor's result" >&2;}
16212 >    { echo "$as_me:$LINENO: WARNING: CGAL/Exact_predicates_inexact_constructions_kernel.h: in the future, the compiler will take precedence" >&5
16213 > echo "$as_me: WARNING: CGAL/Exact_predicates_inexact_constructions_kernel.h: in the future, the compiler will take precedence" >&2;}
16214 >    ( cat <<\_ASBOX
16215 > ## ------------------------------ ##
16216 > ## Report this to gezelter@nd.edu ##
16217 > ## ------------------------------ ##
16218 > _ASBOX
16219 >     ) | sed "s/^/$as_me: WARNING:     /" >&2
16220 >    ;;
16221 > esac
16222 > { echo "$as_me:$LINENO: checking for CGAL/Exact_predicates_inexact_constructions_kernel.h" >&5
16223 > echo $ECHO_N "checking for CGAL/Exact_predicates_inexact_constructions_kernel.h... $ECHO_C" >&6; }
16224 > if test "${ac_cv_header_CGAL_Exact_predicates_inexact_constructions_kernel_h+set}" = set; then
16225 >  echo $ECHO_N "(cached) $ECHO_C" >&6
16226 > else
16227 >  ac_cv_header_CGAL_Exact_predicates_inexact_constructions_kernel_h=$ac_header_preproc
16228 > fi
16229 > { echo "$as_me:$LINENO: result: $ac_cv_header_CGAL_Exact_predicates_inexact_constructions_kernel_h" >&5
16230 > echo "${ECHO_T}$ac_cv_header_CGAL_Exact_predicates_inexact_constructions_kernel_h" >&6; }
16231  
16232   fi
16233 < FCFLAGS=$ac_save_FCFLAGS
16234 < ac_ext=$ac_save_ext
16235 < ac_ext=c
16236 < ac_cpp='$CPP $CPPFLAGS'
16237 < ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14024 < ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14025 < ac_compiler_gnu=$ac_cv_c_compiler_gnu
16233 > if test $ac_cv_header_CGAL_Exact_predicates_inexact_constructions_kernel_h = yes; then
16234 >  cgal_have_header=yes
16235 > else
16236 >  cgal_have_header=no
16237 > fi
16238  
16239  
16240 < ac_ext=c
16241 < ac_cpp='$CPP $CPPFLAGS'
16242 < ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16243 < ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16244 < ac_compiler_gnu=$ac_cv_c_compiler_gnu
16240 >        if test "$cgal_have_header" == yes; then
16241 >                { echo "$as_me:$LINENO: checking for main in -lCGAL" >&5
16242 > echo $ECHO_N "checking for main in -lCGAL... $ECHO_C" >&6; }
16243 > if test "${ac_cv_lib_CGAL_main+set}" = set; then
16244 >  echo $ECHO_N "(cached) $ECHO_C" >&6
16245 > else
16246 >  ac_check_lib_save_LIBS=$LIBS
16247 > LIBS="-lCGAL  $LIBS"
16248 > cat >conftest.$ac_ext <<_ACEOF
16249 > /* confdefs.h.  */
16250 > _ACEOF
16251 > cat confdefs.h >>conftest.$ac_ext
16252 > cat >>conftest.$ac_ext <<_ACEOF
16253 > /* end confdefs.h.  */
16254  
14034 ac_save_LDFLAGS=$LDFLAGS
14035 LDFLAGS="-L${MPI_LIB_DIR} ${LDFLAGS} "
16255  
16256 < if test x = x"$MPI_LIB"; then
16257 <        { echo "$as_me:$LINENO: checking for MPI_Init in -lmpich" >&5
16258 < echo $ECHO_N "checking for MPI_Init in -lmpich... $ECHO_C" >&6; }
16259 < if test "${ac_cv_lib_mpich_MPI_Init+set}" = set; then
16256 > #ifdef FC_DUMMY_MAIN
16257 > #ifndef FC_DUMMY_MAIN_EQ_F77
16258 > #  ifdef __cplusplus
16259 >     extern "C"
16260 > #  endif
16261 >   int FC_DUMMY_MAIN() { return 1; }
16262 > #endif
16263 > #endif
16264 > int
16265 > main ()
16266 > {
16267 > return main ();
16268 >  ;
16269 >  return 0;
16270 > }
16271 > _ACEOF
16272 > rm -f conftest.$ac_objext conftest$ac_exeext
16273 > if { (ac_try="$ac_link"
16274 > case "(($ac_try" in
16275 >  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16276 >  *) ac_try_echo=$ac_try;;
16277 > esac
16278 > eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16279 >  (eval "$ac_link") 2>conftest.er1
16280 >  ac_status=$?
16281 >  grep -v '^ *+' conftest.er1 >conftest.err
16282 >  rm -f conftest.er1
16283 >  cat conftest.err >&5
16284 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16285 >  (exit $ac_status); } && {
16286 >         test -z "$ac_cxx_werror_flag" ||
16287 >         test ! -s conftest.err
16288 >       } && test -s conftest$ac_exeext &&
16289 >       $as_test_x conftest$ac_exeext; then
16290 >  ac_cv_lib_CGAL_main=yes
16291 > else
16292 >  echo "$as_me: failed program was:" >&5
16293 > sed 's/^/| /' conftest.$ac_ext >&5
16294 >
16295 >        ac_cv_lib_CGAL_main=no
16296 > fi
16297 >
16298 > rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16299 >      conftest$ac_exeext conftest.$ac_ext
16300 > LIBS=$ac_check_lib_save_LIBS
16301 > fi
16302 > { echo "$as_me:$LINENO: result: $ac_cv_lib_CGAL_main" >&5
16303 > echo "${ECHO_T}$ac_cv_lib_CGAL_main" >&6; }
16304 > if test $ac_cv_lib_CGAL_main = yes; then
16305 >  cgal_have_lib=yes
16306 > else
16307 >  cgal_have_lib=no
16308 > fi
16309 >
16310 >                if test "$cgal_have_lib" == no; then
16311 >                        save_LIBS="$LIBS"; LIBS="$LIBS -lgmp -lmpfr -lm"
16312 >                        { echo "$as_me:$LINENO: checking for main in -lCGAL" >&5
16313 > echo $ECHO_N "checking for main in -lCGAL... $ECHO_C" >&6; }
16314 > if test "${ac_cv_lib_CGAL_main+set}" = set; then
16315    echo $ECHO_N "(cached) $ECHO_C" >&6
16316   else
16317    ac_check_lib_save_LIBS=$LIBS
16318 < LIBS="-lmpich  $LIBS"
16318 > LIBS="-lCGAL  $LIBS"
16319   cat >conftest.$ac_ext <<_ACEOF
16320   /* confdefs.h.  */
16321   _ACEOF
# Line 14049 | Line 16323 | cat >>conftest.$ac_ext <<_ACEOF
16323   cat >>conftest.$ac_ext <<_ACEOF
16324   /* end confdefs.h.  */
16325  
16326 < /* Override any GCC internal prototype to avoid an error.
14053 <   Use char because int might match the return type of a GCC
14054 <   builtin and then its argument prototype would still apply.  */
14055 < #ifdef __cplusplus
14056 < extern "C"
14057 < #endif
14058 < char MPI_Init ();
16326 >
16327   #ifdef FC_DUMMY_MAIN
16328   #ifndef FC_DUMMY_MAIN_EQ_F77
16329   #  ifdef __cplusplus
# Line 14067 | Line 16335 | main ()
16335   int
16336   main ()
16337   {
16338 < return MPI_Init ();
16338 > return main ();
16339    ;
16340    return 0;
16341   }
# Line 14086 | Line 16354 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16354    cat conftest.err >&5
16355    echo "$as_me:$LINENO: \$? = $ac_status" >&5
16356    (exit $ac_status); } && {
16357 <         test -z "$ac_c_werror_flag" ||
16357 >         test -z "$ac_cxx_werror_flag" ||
16358           test ! -s conftest.err
16359         } && test -s conftest$ac_exeext &&
16360         $as_test_x conftest$ac_exeext; then
16361 <  ac_cv_lib_mpich_MPI_Init=yes
16361 >  ac_cv_lib_CGAL_main=yes
16362   else
16363    echo "$as_me: failed program was:" >&5
16364   sed 's/^/| /' conftest.$ac_ext >&5
16365  
16366 <        ac_cv_lib_mpich_MPI_Init=no
16366 >        ac_cv_lib_CGAL_main=no
16367   fi
16368  
16369   rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16370        conftest$ac_exeext conftest.$ac_ext
16371   LIBS=$ac_check_lib_save_LIBS
16372   fi
16373 < { echo "$as_me:$LINENO: result: $ac_cv_lib_mpich_MPI_Init" >&5
16374 < echo "${ECHO_T}$ac_cv_lib_mpich_MPI_Init" >&6; }
16375 < if test $ac_cv_lib_mpich_MPI_Init = yes; then
16376 <  MPI_LIB="-lmpich"
16373 > { echo "$as_me:$LINENO: result: $ac_cv_lib_CGAL_main" >&5
16374 > echo "${ECHO_T}$ac_cv_lib_CGAL_main" >&6; }
16375 > if test $ac_cv_lib_CGAL_main = yes; then
16376 >  CGAL_LIBS="-lCGAL -lgmp -lmpfr"
16377 >                                                  cgal_have_lib=yes
16378 > else
16379 >  cgal_have_lib=no
16380   fi
16381  
16382 < fi
16383 < $as_unset ac_cv_lib_mpich_MPI_Init
16384 < if test x = x"$MPI_LIB"; then
16385 <        { echo "$as_me:$LINENO: checking for MPI_Init in -lpmpich" >&5
16386 < echo $ECHO_N "checking for MPI_Init in -lpmpich... $ECHO_C" >&6; }
16387 < if test "${ac_cv_lib_pmpich_MPI_Init+set}" = set; then
16382 >                        LIBS="$save_LIBS"
16383 >                else
16384 >                        CGAL_LIBS="-lCGAL"
16385 >                        { echo "$as_me:$LINENO: checking for main in -lmpfr" >&5
16386 > echo $ECHO_N "checking for main in -lmpfr... $ECHO_C" >&6; }
16387 > if test "${ac_cv_lib_mpfr_main+set}" = set; then
16388    echo $ECHO_N "(cached) $ECHO_C" >&6
16389   else
16390    ac_check_lib_save_LIBS=$LIBS
16391 < LIBS="-lpmpich -lmpich -lpmpich -lmpich $LIBS"
16391 > LIBS="-lmpfr  $LIBS"
16392   cat >conftest.$ac_ext <<_ACEOF
16393   /* confdefs.h.  */
16394   _ACEOF
# Line 14125 | Line 16396 | cat >>conftest.$ac_ext <<_ACEOF
16396   cat >>conftest.$ac_ext <<_ACEOF
16397   /* end confdefs.h.  */
16398  
16399 < /* Override any GCC internal prototype to avoid an error.
14129 <   Use char because int might match the return type of a GCC
14130 <   builtin and then its argument prototype would still apply.  */
14131 < #ifdef __cplusplus
14132 < extern "C"
14133 < #endif
14134 < char MPI_Init ();
16399 >
16400   #ifdef FC_DUMMY_MAIN
16401   #ifndef FC_DUMMY_MAIN_EQ_F77
16402   #  ifdef __cplusplus
# Line 14143 | Line 16408 | main ()
16408   int
16409   main ()
16410   {
16411 < return MPI_Init ();
16411 > return main ();
16412    ;
16413    return 0;
16414   }
# Line 14162 | Line 16427 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16427    cat conftest.err >&5
16428    echo "$as_me:$LINENO: \$? = $ac_status" >&5
16429    (exit $ac_status); } && {
16430 <         test -z "$ac_c_werror_flag" ||
16430 >         test -z "$ac_cxx_werror_flag" ||
16431           test ! -s conftest.err
16432         } && test -s conftest$ac_exeext &&
16433         $as_test_x conftest$ac_exeext; then
16434 <  ac_cv_lib_pmpich_MPI_Init=yes
16434 >  ac_cv_lib_mpfr_main=yes
16435   else
16436    echo "$as_me: failed program was:" >&5
16437   sed 's/^/| /' conftest.$ac_ext >&5
16438  
16439 <        ac_cv_lib_pmpich_MPI_Init=no
16439 >        ac_cv_lib_mpfr_main=no
16440   fi
16441  
16442   rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16443        conftest$ac_exeext conftest.$ac_ext
16444   LIBS=$ac_check_lib_save_LIBS
16445   fi
16446 < { echo "$as_me:$LINENO: result: $ac_cv_lib_pmpich_MPI_Init" >&5
16447 < echo "${ECHO_T}$ac_cv_lib_pmpich_MPI_Init" >&6; }
16448 < if test $ac_cv_lib_pmpich_MPI_Init = yes; then
16449 <  MPI_LIB="-lpmpich -lmpich -lpmpich -lmpich"
16446 > { echo "$as_me:$LINENO: result: $ac_cv_lib_mpfr_main" >&5
16447 > echo "${ECHO_T}$ac_cv_lib_mpfr_main" >&6; }
16448 > if test $ac_cv_lib_mpfr_main = yes; then
16449 >  CGAL_LIBS="$CGAL_LIBS -lmpfr"
16450   fi
16451  
16452 < fi
16453 < if test x = x"$MPI_LIB"; then
16454 <        { echo "$as_me:$LINENO: checking for MPI_Init in -lmpi" >&5
14190 < echo $ECHO_N "checking for MPI_Init in -lmpi... $ECHO_C" >&6; }
14191 < if test "${ac_cv_lib_mpi_MPI_Init+set}" = set; then
16452 >                        { echo "$as_me:$LINENO: checking for main in -lgmp" >&5
16453 > echo $ECHO_N "checking for main in -lgmp... $ECHO_C" >&6; }
16454 > if test "${ac_cv_lib_gmp_main+set}" = set; then
16455    echo $ECHO_N "(cached) $ECHO_C" >&6
16456   else
16457    ac_check_lib_save_LIBS=$LIBS
16458 < LIBS="-lmpi  $LIBS"
16458 > LIBS="-lgmp  $LIBS"
16459   cat >conftest.$ac_ext <<_ACEOF
16460   /* confdefs.h.  */
16461   _ACEOF
# Line 14200 | Line 16463 | cat >>conftest.$ac_ext <<_ACEOF
16463   cat >>conftest.$ac_ext <<_ACEOF
16464   /* end confdefs.h.  */
16465  
16466 < /* Override any GCC internal prototype to avoid an error.
14204 <   Use char because int might match the return type of a GCC
14205 <   builtin and then its argument prototype would still apply.  */
14206 < #ifdef __cplusplus
14207 < extern "C"
14208 < #endif
14209 < char MPI_Init ();
16466 >
16467   #ifdef FC_DUMMY_MAIN
16468   #ifndef FC_DUMMY_MAIN_EQ_F77
16469   #  ifdef __cplusplus
# Line 14218 | Line 16475 | main ()
16475   int
16476   main ()
16477   {
16478 < return MPI_Init ();
16478 > return main ();
16479    ;
16480    return 0;
16481   }
# Line 14237 | Line 16494 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16494    cat conftest.err >&5
16495    echo "$as_me:$LINENO: \$? = $ac_status" >&5
16496    (exit $ac_status); } && {
16497 <         test -z "$ac_c_werror_flag" ||
16497 >         test -z "$ac_cxx_werror_flag" ||
16498           test ! -s conftest.err
16499         } && test -s conftest$ac_exeext &&
16500         $as_test_x conftest$ac_exeext; then
16501 <  ac_cv_lib_mpi_MPI_Init=yes
16501 >  ac_cv_lib_gmp_main=yes
16502   else
16503    echo "$as_me: failed program was:" >&5
16504   sed 's/^/| /' conftest.$ac_ext >&5
16505  
16506 <        ac_cv_lib_mpi_MPI_Init=no
16506 >        ac_cv_lib_gmp_main=no
16507   fi
16508  
16509   rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16510        conftest$ac_exeext conftest.$ac_ext
16511   LIBS=$ac_check_lib_save_LIBS
16512   fi
16513 < { echo "$as_me:$LINENO: result: $ac_cv_lib_mpi_MPI_Init" >&5
16514 < echo "${ECHO_T}$ac_cv_lib_mpi_MPI_Init" >&6; }
16515 < if test $ac_cv_lib_mpi_MPI_Init = yes; then
16516 <  MPI_LIB="-lmpi"
16513 > { echo "$as_me:$LINENO: result: $ac_cv_lib_gmp_main" >&5
16514 > echo "${ECHO_T}$ac_cv_lib_gmp_main" >&6; }
16515 > if test $ac_cv_lib_gmp_main = yes; then
16516 >  CGAL_LIBS="$CGAL_LIBS -lgmp"
16517   fi
16518  
16519 < fi
16520 < $as_unset ac_cv_lib_mpi_MPI_Init
16521 < if test x = x"$MPI_LIB"; then
14265 <        { echo "$as_me:$LINENO: checking for MPI_Init in -lmpi" >&5
14266 < echo $ECHO_N "checking for MPI_Init in -lmpi... $ECHO_C" >&6; }
14267 < if test "${ac_cv_lib_mpi_MPI_Init+set}" = set; then
16519 >                        { echo "$as_me:$LINENO: checking for main in -lgmpxx" >&5
16520 > echo $ECHO_N "checking for main in -lgmpxx... $ECHO_C" >&6; }
16521 > if test "${ac_cv_lib_gmpxx_main+set}" = set; then
16522    echo $ECHO_N "(cached) $ECHO_C" >&6
16523   else
16524    ac_check_lib_save_LIBS=$LIBS
16525 < LIBS="-lmpi -llam $LIBS"
16525 > LIBS="-lgmpxx  $LIBS"
16526   cat >conftest.$ac_ext <<_ACEOF
16527   /* confdefs.h.  */
16528   _ACEOF
# Line 14276 | Line 16530 | cat >>conftest.$ac_ext <<_ACEOF
16530   cat >>conftest.$ac_ext <<_ACEOF
16531   /* end confdefs.h.  */
16532  
16533 < /* Override any GCC internal prototype to avoid an error.
14280 <   Use char because int might match the return type of a GCC
14281 <   builtin and then its argument prototype would still apply.  */
14282 < #ifdef __cplusplus
14283 < extern "C"
14284 < #endif
14285 < char MPI_Init ();
16533 >
16534   #ifdef FC_DUMMY_MAIN
16535   #ifndef FC_DUMMY_MAIN_EQ_F77
16536   #  ifdef __cplusplus
# Line 14294 | Line 16542 | main ()
16542   int
16543   main ()
16544   {
16545 < return MPI_Init ();
16545 > return main ();
16546    ;
16547    return 0;
16548   }
# Line 14313 | Line 16561 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16561    cat conftest.err >&5
16562    echo "$as_me:$LINENO: \$? = $ac_status" >&5
16563    (exit $ac_status); } && {
16564 <         test -z "$ac_c_werror_flag" ||
16564 >         test -z "$ac_cxx_werror_flag" ||
16565           test ! -s conftest.err
16566         } && test -s conftest$ac_exeext &&
16567         $as_test_x conftest$ac_exeext; then
16568 <  ac_cv_lib_mpi_MPI_Init=yes
16568 >  ac_cv_lib_gmpxx_main=yes
16569   else
16570    echo "$as_me: failed program was:" >&5
16571   sed 's/^/| /' conftest.$ac_ext >&5
16572  
16573 <        ac_cv_lib_mpi_MPI_Init=no
16573 >        ac_cv_lib_gmpxx_main=no
16574   fi
16575  
16576   rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16577        conftest$ac_exeext conftest.$ac_ext
16578   LIBS=$ac_check_lib_save_LIBS
16579   fi
16580 < { echo "$as_me:$LINENO: result: $ac_cv_lib_mpi_MPI_Init" >&5
16581 < echo "${ECHO_T}$ac_cv_lib_mpi_MPI_Init" >&6; }
16582 < if test $ac_cv_lib_mpi_MPI_Init = yes; then
16583 <  MPI_LIB="-lmpi -llam"
16580 > { echo "$as_me:$LINENO: result: $ac_cv_lib_gmpxx_main" >&5
16581 > echo "${ECHO_T}$ac_cv_lib_gmpxx_main" >&6; }
16582 > if test $ac_cv_lib_gmpxx_main = yes; then
16583 >  CGAL_LIBS="$CGAL_LIBS -lgmpxx"
16584   fi
16585  
16586 < fi
16587 < $as_unset ac_cv_lib_mpi_MPI_Init
16588 < if test x = x"$MPI_LIB"; then
16589 < { echo "$as_me:$LINENO: checking for MPI_Init in -lmpi" >&5
16590 < echo $ECHO_N "checking for MPI_Init in -lmpi... $ECHO_C" >&6; }
16591 < if test "${ac_cv_lib_mpi_MPI_Init+set}" = set; then
16586 >                fi
16587 >
16588 >                if test "$cgal_have_lib" == yes; then
16589 >                        acx_cgal_found=yes
16590 >                fi
16591 >        fi
16592 >        if test "$acx_cgal_found" == yes; then
16593 >                { echo "$as_me:$LINENO: checking for main in -lCore" >&5
16594 > echo $ECHO_N "checking for main in -lCore... $ECHO_C" >&6; }
16595 > if test "${ac_cv_lib_Core_main+set}" = set; then
16596    echo $ECHO_N "(cached) $ECHO_C" >&6
16597   else
16598    ac_check_lib_save_LIBS=$LIBS
16599 < LIBS="-lmpi -llam -lpthread $LIBS"
16599 > LIBS="-lCore  $LIBS"
16600   cat >conftest.$ac_ext <<_ACEOF
16601   /* confdefs.h.  */
16602   _ACEOF
# Line 14352 | Line 16604 | cat >>conftest.$ac_ext <<_ACEOF
16604   cat >>conftest.$ac_ext <<_ACEOF
16605   /* end confdefs.h.  */
16606  
16607 < /* Override any GCC internal prototype to avoid an error.
14356 <   Use char because int might match the return type of a GCC
14357 <   builtin and then its argument prototype would still apply.  */
14358 < #ifdef __cplusplus
14359 < extern "C"
14360 < #endif
14361 < char MPI_Init ();
16607 >
16608   #ifdef FC_DUMMY_MAIN
16609   #ifndef FC_DUMMY_MAIN_EQ_F77
16610   #  ifdef __cplusplus
# Line 14370 | Line 16616 | main ()
16616   int
16617   main ()
16618   {
16619 < return MPI_Init ();
16619 > return main ();
16620    ;
16621    return 0;
16622   }
# Line 14389 | Line 16635 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16635    cat conftest.err >&5
16636    echo "$as_me:$LINENO: \$? = $ac_status" >&5
16637    (exit $ac_status); } && {
16638 <         test -z "$ac_c_werror_flag" ||
16638 >         test -z "$ac_cxx_werror_flag" ||
16639           test ! -s conftest.err
16640         } && test -s conftest$ac_exeext &&
16641         $as_test_x conftest$ac_exeext; then
16642 <  ac_cv_lib_mpi_MPI_Init=yes
16642 >  ac_cv_lib_Core_main=yes
16643   else
16644    echo "$as_me: failed program was:" >&5
16645   sed 's/^/| /' conftest.$ac_ext >&5
16646  
16647 <        ac_cv_lib_mpi_MPI_Init=no
16647 >        ac_cv_lib_Core_main=no
16648   fi
16649  
16650   rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16651        conftest$ac_exeext conftest.$ac_ext
16652   LIBS=$ac_check_lib_save_LIBS
16653   fi
16654 < { echo "$as_me:$LINENO: result: $ac_cv_lib_mpi_MPI_Init" >&5
16655 < echo "${ECHO_T}$ac_cv_lib_mpi_MPI_Init" >&6; }
16656 < if test $ac_cv_lib_mpi_MPI_Init = yes; then
16657 <  MPI_LIB="-lmpi -llam -lpthread"
16658 < else
16654 > { echo "$as_me:$LINENO: result: $ac_cv_lib_Core_main" >&5
16655 > echo "${ECHO_T}$ac_cv_lib_Core_main" >&6; }
16656 > if test $ac_cv_lib_Core_main = yes; then
16657 >  CGAL_LIBS="$CGAL_LIBS -lCore"
16658 > fi
16659  
16660 <             { { echo "$as_me:$LINENO: error: Didn't find liblam, libmpi, or libmpich; check path for MPI package first..." >&5
14415 < echo "$as_me: error: Didn't find liblam, libmpi, or libmpich; check path for MPI package first..." >&2;}
14416 <   { (exit 1); exit 1; }; }
14417 <             USE_MPI="no"
14418 <
16660 >        fi
16661   fi
16662 +
16663 +
16664 +
16665 + { echo "$as_me:$LINENO: checking CGAL" >&5
16666 + echo $ECHO_N "checking CGAL... $ECHO_C" >&6; }
16667 +
16668 +
16669  
14421 fi
16670  
16671  
16672 + if test "$acx_cgal_found" == yes; then
16673 +        { echo "$as_me:$LINENO: result: yes" >&5
16674 + echo "${ECHO_T}yes" >&6; }
16675  
14425 { echo "$as_me:$LINENO: checking for MPI Fortran library" >&5
14426 echo $ECHO_N "checking for MPI Fortran library... $ECHO_C" >&6; }
14427 MPI_F90_LIB=""
14428 if test -f "$MPI_LIB_DIR/libfmpich.a" ; then
14429        MPI_F90_LIB="-lfmpich"
14430 elif test -f "$MPI_LIB_DIR/liblamf77mpi.a" ; then
14431        MPI_F90_LIB="-llamf77mpi"
16676   else
16677 <                        MPI_F90_LIB="  "
16677 >        { echo "$as_me:$LINENO: result: no" >&5
16678 > echo "${ECHO_T}no" >&6; }
16679 >
16680   fi
16681 < { echo "$as_me:$LINENO: result: found $MPI_F90_LIB" >&5
16682 < echo "${ECHO_T}found $MPI_F90_LIB" >&6; }
16681 > USE_CGAL=no
16682 > if test "$acx_cgal_found" == yes; then
16683 >        USE_CGAL=yes
16684 >
16685 > cat >>confdefs.h <<\_ACEOF
16686 > #define HAVE_CGAL 1
16687 > _ACEOF
16688 >
16689 >
16690 >
16691  
16692  
16693   fi
# Line 14596 | Line 16850 | fi
16850  
16851  
16852  
16853 < ac_config_files="$ac_config_files make/Makefile src/utils/Makefile scripts/filepp"
16853 > ac_config_files="$ac_config_files make/Makefile src/utils/Makefile src/math/Makefile src/applications/atom2md/Makefile scripts/filepp"
16854  
16855  
16856   cat >confcache <<\_ACEOF
# Line 14995 | Line 17249 | ac_log="
17249   # report actual input values of CONFIG_FILES etc. instead of their
17250   # values after options handling.
17251   ac_log="
17252 < This file was extended by OOPSE $as_me 3.0, which was
17252 > This file was extended by OOPSE $as_me 4.0, which was
17253   generated by GNU Autoconf 2.61.  Invocation command line was
17254  
17255    CONFIG_FILES    = $CONFIG_FILES
# Line 15048 | Line 17302 | ac_cs_version="\\
17302   _ACEOF
17303   cat >>$CONFIG_STATUS <<_ACEOF
17304   ac_cs_version="\\
17305 < OOPSE config.status 3.0
17305 > OOPSE config.status 4.0
17306   configured by $0, generated by GNU Autoconf 2.61,
17307    with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
17308  
# Line 15160 | Line 17414 | do
17414      "src/getopt.h") CONFIG_LINKS="$CONFIG_LINKS src/getopt.h:src/utils/gnugetopt.h" ;;
17415      "make/Makefile") CONFIG_FILES="$CONFIG_FILES make/Makefile" ;;
17416      "src/utils/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/Makefile" ;;
17417 +    "src/math/Makefile") CONFIG_FILES="$CONFIG_FILES src/math/Makefile" ;;
17418 +    "src/applications/atom2md/Makefile") CONFIG_FILES="$CONFIG_FILES src/applications/atom2md/Makefile" ;;
17419      "scripts/filepp") CONFIG_FILES="$CONFIG_FILES scripts/filepp" ;;
17420  
17421    *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
# Line 15271 | Line 17527 | USE_SINGLE_PRECISION!$USE_SINGLE_PRECISION$ac_delim
17527   PROGNAME!$PROGNAME$ac_delim
17528   debug!$debug$ac_delim
17529   USE_SINGLE_PRECISION!$USE_SINGLE_PRECISION$ac_delim
17530 + ac_cc_set!$ac_cc_set$ac_delim
17531 + ac_cc_path!$ac_cc_path$ac_delim
17532 + ac_cxx_set!$ac_cxx_set$ac_delim
17533 + ac_cxx_path!$ac_cxx_path$ac_delim
17534 + ac_fc_set!$ac_fc_set$ac_delim
17535 + ac_fc_path!$ac_fc_path$ac_delim
17536 + acx_mpi_mpicc!$acx_mpi_mpicc$ac_delim
17537 + acx_mpi_mpicc_path!$acx_mpi_mpicc_path$ac_delim
17538 + acx_mpi_mpif90!$acx_mpi_mpif90$ac_delim
17539 + acx_mpi_mpif90_path!$acx_mpi_mpif90_path$ac_delim
17540 + acx_mpi_mpicxx!$acx_mpi_mpicxx$ac_delim
17541 + acx_mpi_mpicxx_path!$acx_mpi_mpicxx_path$ac_delim
17542 + MPI_CPPFLAGS!$MPI_CPPFLAGS$ac_delim
17543 + MPI_LIBS!$MPI_LIBS$ac_delim
17544 + MPI90_LIBS!$MPI90_LIBS$ac_delim
17545 + USE_MPI!$USE_MPI$ac_delim
17546   CXX!$CXX$ac_delim
17547   CXXFLAGS!$CXXFLAGS$ac_delim
17548   LDFLAGS!$LDFLAGS$ac_delim
# Line 15290 | Line 17562 | RANLIB!$RANLIB$ac_delim
17562   LN_S!$LN_S$ac_delim
17563   SET_MAKE!$SET_MAKE$ac_delim
17564   RANLIB!$RANLIB$ac_delim
17565 + YACC!$YACC$ac_delim
17566 + YFLAGS!$YFLAGS$ac_delim
17567 + LEX!$LEX$ac_delim
17568 + LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
17569 + LEXLIB!$LEXLIB$ac_delim
17570   PERLINTERP!$PERLINTERP$ac_delim
17571   PERL_SHEBANG!$PERL_SHEBANG$ac_delim
17572   INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
# Line 15299 | Line 17576 | FCFLAGS_SRCEXT!$FCFLAGS_SRCEXT$ac_delim
17576   PS!$PS$ac_delim
17577   FCFLAGS_F90!$FCFLAGS_F90$ac_delim
17578   FCFLAGS_SRCEXT!$FCFLAGS_SRCEXT$ac_delim
15302 PREPDEFFLAG!$PREPDEFFLAG$ac_delim
15303 FCLIBS!$FCLIBS$ac_delim
15304 FC_FUNC!$FC_FUNC$ac_delim
15305 FC_FUNC_!$FC_FUNC_$ac_delim
15306 MOD!$MOD$ac_delim
15307 F90_WORK_FILES_ARG!$F90_WORK_FILES_ARG$ac_delim
15308 MODDIRFLAG!$MODDIRFLAG$ac_delim
15309 F90MODINCSPEC!$F90MODINCSPEC$ac_delim
15310 F90_MODULE_NAMES!$F90_MODULE_NAMES$ac_delim
15311 ZLIB_INC_DIR!$ZLIB_INC_DIR$ac_delim
15312 ZLIB_LIB_DIR!$ZLIB_LIB_DIR$ac_delim
15313 ZLIB!$ZLIB$ac_delim
15314 FFTW_INC_DIR!$FFTW_INC_DIR$ac_delim
15315 FFTW_LIB_DIR!$FFTW_LIB_DIR$ac_delim
15316 FFTW_LIBS!$FFTW_LIBS$ac_delim
15317 LIBOBJS!$LIBOBJS$ac_delim
15318 POW_LIB!$POW_LIB$ac_delim
15319 CXXCPP!$CXXCPP$ac_delim
15320 __func__!$__func__$ac_delim
15321 MPI_LIB_DIR!$MPI_LIB_DIR$ac_delim
15322 MPI_INC_DIR!$MPI_INC_DIR$ac_delim
17579   _ACEOF
17580  
17581    if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
# Line 15361 | Line 17617 | for ac_last_try in false false false false false :; do
17617   ac_delim='%!_!# '
17618   for ac_last_try in false false false false false :; do
17619    cat >conf$$subs.sed <<_ACEOF
17620 < MPI_F90_INC!$MPI_F90_INC$ac_delim
17621 < MPI_LIB!$MPI_LIB$ac_delim
17622 < MPI_F90_LIB!$MPI_F90_LIB$ac_delim
17623 < USE_MPI!$USE_MPI$ac_delim
17620 > PREPDEFFLAG!$PREPDEFFLAG$ac_delim
17621 > FCLIBS!$FCLIBS$ac_delim
17622 > FC_FUNC!$FC_FUNC$ac_delim
17623 > FC_FUNC_!$FC_FUNC_$ac_delim
17624 > MOD!$MOD$ac_delim
17625 > F90_WORK_FILES_ARG!$F90_WORK_FILES_ARG$ac_delim
17626 > MODDIRFLAG!$MODDIRFLAG$ac_delim
17627 > F90MODINCSPEC!$F90MODINCSPEC$ac_delim
17628 > F90_MODULE_NAMES!$F90_MODULE_NAMES$ac_delim
17629 > ZLIB_INC_DIR!$ZLIB_INC_DIR$ac_delim
17630 > ZLIB_LIB_DIR!$ZLIB_LIB_DIR$ac_delim
17631 > ZLIB!$ZLIB$ac_delim
17632 > FFTW_INC_DIR!$FFTW_INC_DIR$ac_delim
17633 > FFTW_LIB_DIR!$FFTW_LIB_DIR$ac_delim
17634 > FFTW_LIBS!$FFTW_LIBS$ac_delim
17635 > QHULL_INC_DIR!$QHULL_INC_DIR$ac_delim
17636 > QHULL_LIB_DIR!$QHULL_LIB_DIR$ac_delim
17637 > QHULL!$QHULL$ac_delim
17638 > USE_QHULL!$USE_QHULL$ac_delim
17639 > CXXCPP!$CXXCPP$ac_delim
17640 > OPENBABEL_INC_DIR!$OPENBABEL_INC_DIR$ac_delim
17641 > OPENBABEL_LIB_DIR!$OPENBABEL_LIB_DIR$ac_delim
17642 > OPENBABEL_LIB!$OPENBABEL_LIB$ac_delim
17643 > USE_OPENBABEL!$USE_OPENBABEL$ac_delim
17644 > LIBOBJS!$LIBOBJS$ac_delim
17645 > POW_LIB!$POW_LIB$ac_delim
17646 > __func__!$__func__$ac_delim
17647 > CGAL_MAKEFILE!$CGAL_MAKEFILE$ac_delim
17648 > CGAL_CXXFLAGS!$CGAL_CXXFLAGS$ac_delim
17649 > CGAL_CPPFLAGS!$CGAL_CPPFLAGS$ac_delim
17650 > CGAL_LDFLAGS!$CGAL_LDFLAGS$ac_delim
17651 > CGAL_LIBS!$CGAL_LIBS$ac_delim
17652 > USE_CGAL!$USE_CGAL$ac_delim
17653   DOXYGEN!$DOXYGEN$ac_delim
17654   DOT!$DOT$ac_delim
17655   DOC!$DOC$ac_delim
# Line 15379 | Line 17664 | _ACEOF
17664   LTLIBOBJS!$LTLIBOBJS$ac_delim
17665   _ACEOF
17666  
17667 <  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 16; then
17667 >  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 45; then
17668      break
17669    elif $ac_last_try; then
17670      { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
# Line 15808 | Line 18093 | echo "$as_me: error: cannot link or copy $srcdir/$ac_s
18093    case $ac_file$ac_mode in
18094      "make/Makefile":F) chmod 0755 scripts/* ;;
18095      "src/utils/Makefile":F) chmod 0755 scripts/* ;;
18096 +    "src/math/Makefile":F) chmod 0755 scripts/* ;;
18097 +    "src/applications/atom2md/Makefile":F) chmod 0755 scripts/* ;;
18098      "scripts/filepp":F) chmod 0755 scripts/* ;;
18099  
18100    esac

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines