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 1373 by gezelter, Tue Oct 20 13:13:45 2009 UTC vs.
branches/development/configure (file contents), Revision 1618 by gezelter, Mon Sep 12 17:09:26 2011 UTC

# Line 1 | Line 1
1   #! /bin/sh
2   # Guess values for system-dependent variables and create Makefiles.
3 < # Generated by GNU Autoconf 2.64 for OOPSE 4.0.
3 > # Generated by GNU Autoconf 2.68 for OpenMD 1.0.
4   #
5   # Report bugs to <gezelter@nd.edu>.
6   #
7 + #
8   # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 < # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
9 > # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10   # Foundation, Inc.
11   #
12 + #
13   # This configure script is free software; the Free Software Foundation
14   # gives unlimited permission to copy, distribute and modify it.
15   ## -------------------- ##
# Line 89 | Line 91 | IFS=" ""       $as_nl"
91   IFS=" ""        $as_nl"
92  
93   # Find who we are.  Look in the path if we contain no directory separator.
94 + as_myself=
95   case $0 in #((
96    *[\\/]* ) as_myself=$0 ;;
97    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
# Line 214 | Line 217 | IFS=$as_save_IFS
217    # We cannot yet assume a decent shell, so we have to provide a
218          # neutralization value for shells without unset; and this also
219          # works around shells that cannot unset nonexistent variables.
220 +        # Preserve -v and -x to the replacement shell.
221          BASH_ENV=/dev/null
222          ENV=/dev/null
223          (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
224          export CONFIG_SHELL
225 <        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
225 >        case $- in # ((((
226 >          *v*x* | *x*v* ) as_opts=-vx ;;
227 >          *v* ) as_opts=-v ;;
228 >          *x* ) as_opts=-x ;;
229 >          * ) as_opts= ;;
230 >        esac
231 >        exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
232   fi
233  
234      if test x$as_have_required = xno; then :
# Line 317 | Line 327 | $as_echo X"$as_dir" |
327        test -d "$as_dir" && break
328      done
329      test -z "$as_dirs" || eval "mkdir $as_dirs"
330 <  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
330 >  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
331  
332  
333   } # as_fn_mkdir_p
# Line 357 | Line 367 | fi # as_fn_arith
367   fi # as_fn_arith
368  
369  
370 < # as_fn_error ERROR [LINENO LOG_FD]
371 < # ---------------------------------
370 > # as_fn_error STATUS ERROR [LINENO LOG_FD]
371 > # ----------------------------------------
372   # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
373   # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
374 < # script with status $?, using 1 if that was 0.
374 > # script with STATUS, using 1 if that was 0.
375   as_fn_error ()
376   {
377 <  as_status=$?; test $as_status -eq 0 && as_status=1
378 <  if test "$3"; then
379 <    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
380 <    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
377 >  as_status=$1; test $as_status -eq 0 && as_status=1
378 >  if test "$4"; then
379 >    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
380 >    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
381    fi
382 <  $as_echo "$as_me: error: $1" >&2
382 >  $as_echo "$as_me: error: $2" >&2
383    as_fn_exit $as_status
384   } # as_fn_error
385  
# Line 527 | Line 537 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
537   as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
538  
539  
540 < exec 7<&0 </dev/null 6>&1
540 > test -n "$DJDIR" || exec 7<&0 </dev/null
541 > exec 6>&1
542  
543   # Name of the host.
544 < # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
544 > # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
545   # so uname gets run too.
546   ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
547  
# Line 547 | Line 558 | MAKEFLAGS=
558   MAKEFLAGS=
559  
560   # Identity of this package.
561 < PACKAGE_NAME='OOPSE'
562 < PACKAGE_TARNAME='oopse'
563 < PACKAGE_VERSION='4.0'
564 < PACKAGE_STRING='OOPSE 4.0'
561 > PACKAGE_NAME='OpenMD'
562 > PACKAGE_TARNAME='openmd'
563 > PACKAGE_VERSION='1.0'
564 > PACKAGE_STRING='OpenMD 1.0'
565   PACKAGE_BUGREPORT='gezelter@nd.edu'
566   PACKAGE_URL=''
567  
568 < ac_unique_file="src/applications/oopse/oopse.cpp"
568 > ac_unique_file="src/applications/openmd/openmd.cpp"
569   ac_default_prefix="/usr/local"
570   # Factoring default headers for most tests.
571   ac_includes_default="\
# Line 594 | Line 605 | SUBDIRS
605  
606   ac_subst_vars='LTLIBOBJS
607   SUBDIRS
608 < OOPSE_HOME
609 < OOPSE
608 > OPENMD_HOME
609 > OPENMD
610   MKINSTALLDIRS
611   BATEXT
612   enable_latex_docs
# Line 604 | Line 615 | DOXYGEN
615   DOC
616   DOT
617   DOXYGEN
607 USE_CGAL
608 CGAL_LIBS
609 CGAL_LDFLAGS
610 CGAL_CPPFLAGS
611 CGAL_CXXFLAGS
612 CGAL_MAKEFILE
618   POW_LIB
619   LIBOBJS
620   USE_OPENBABEL
# Line 627 | Line 632 | ZLIB_INC_DIR
632   ZLIB
633   ZLIB_LIB_DIR
634   ZLIB_INC_DIR
630 F90_MODULE_NAMES
631 F90MODINCSPEC
632 MODDIRFLAG
633 F90_WORK_FILES_ARG
634 MOD
635 FC_FUNC_
636 FC_FUNC
637 FCLIBS
638 PREPDEFFLAG
639 FCFLAGS_SRCEXT
640 FCFLAGS_F90
635   PS
636   AR
637   INSTALL_DATA
# Line 652 | Line 646 | USE_MPI
646   GREP
647   CPP
648   USE_MPI
655 MPIFC
656 ac_ct_FC
657 FCFLAGS
658 FC
649   MPICC
650 + MPILIBS
651 + MPICXX
652 + LIBDL
653   ac_ct_CC
654   CFLAGS
655   CC
663 MPILIBS
664 MPICXX
656   OBJEXT
657   EXEEXT
658   ac_ct_CXX
# Line 669 | Line 660 | CXX
660   LDFLAGS
661   CXXFLAGS
662   CXX
672 ac_fc_path
673 ac_fc_set
674 ac_cxx_path
675 ac_cxx_set
676 ac_cc_path
677 ac_cc_set
663   USE_SINGLE_PRECISION
664   debug
665   PROGNAME
# Line 727 | Line 712 | enable_option_checking
712   ac_subst_files=''
713   ac_user_opts='
714   enable_option_checking
715 < enable_oopse_home
715 > enable_openmd_home
716   enable_debug
717   enable_single
718   enable_float
# Line 736 | Line 721 | with_openbabel
721   with_fftw
722   with_qhull
723   with_openbabel
739 with_cgalmakefile
724   enable_doxygen
725   enable_dot
726   enable_html_docs
# Line 751 | Line 735 | CCC
735   LIBS
736   CPPFLAGS
737   CCC
754 MPICXX
738   CC
739   CFLAGS
740 + MPICXX
741   MPICC
758 FC
759 FCFLAGS
760 MPIFC
742   CPP
743   CXXCPP'
744  
# Line 822 | Line 803 | do
803    fi
804  
805    case $ac_option in
806 <  *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
807 <  *)    ac_optarg=yes ;;
806 >  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
807 >  *=)   ac_optarg= ;;
808 >  *)    ac_optarg=yes ;;
809    esac
810  
811    # Accept the important Cygnus configure options, so we can diagnose typos.
# Line 868 | Line 850 | do
850      ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
851      # Reject names that are not valid shell variable names.
852      expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
853 <      as_fn_error "invalid feature name: $ac_useropt"
853 >      as_fn_error $? "invalid feature name: $ac_useropt"
854      ac_useropt_orig=$ac_useropt
855      ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
856      case $ac_user_opts in
# Line 894 | Line 876 | do
876      ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
877      # Reject names that are not valid shell variable names.
878      expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
879 <      as_fn_error "invalid feature name: $ac_useropt"
879 >      as_fn_error $? "invalid feature name: $ac_useropt"
880      ac_useropt_orig=$ac_useropt
881      ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
882      case $ac_user_opts in
# Line 1098 | Line 1080 | do
1080      ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1081      # Reject names that are not valid shell variable names.
1082      expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1083 <      as_fn_error "invalid package name: $ac_useropt"
1083 >      as_fn_error $? "invalid package name: $ac_useropt"
1084      ac_useropt_orig=$ac_useropt
1085      ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1086      case $ac_user_opts in
# Line 1114 | Line 1096 | do
1096      ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1097      # Reject names that are not valid shell variable names.
1098      expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1099 <      as_fn_error "invalid package name: $ac_useropt"
1099 >      as_fn_error $? "invalid package name: $ac_useropt"
1100      ac_useropt_orig=$ac_useropt
1101      ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1102      case $ac_user_opts in
# Line 1144 | Line 1126 | do
1126    | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1127      x_libraries=$ac_optarg ;;
1128  
1129 <  -*) as_fn_error "unrecognized option: \`$ac_option'
1130 < Try \`$0 --help' for more information."
1129 >  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1130 > Try \`$0 --help' for more information"
1131      ;;
1132  
1133    *=*)
# Line 1153 | Line 1135 | Try \`$0 --help' for more information."
1135      # Reject names that are not valid shell variable names.
1136      case $ac_envvar in #(
1137        '' | [0-9]* | *[!_$as_cr_alnum]* )
1138 <      as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1138 >      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1139      esac
1140      eval $ac_envvar=\$ac_optarg
1141      export $ac_envvar ;;
# Line 1163 | Line 1145 | Try \`$0 --help' for more information."
1145      $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1146      expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1147        $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1148 <    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1148 >    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1149      ;;
1150  
1151    esac
# Line 1171 | Line 1153 | if test -n "$ac_prev"; then
1153  
1154   if test -n "$ac_prev"; then
1155    ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1156 <  as_fn_error "missing argument to $ac_option"
1156 >  as_fn_error $? "missing argument to $ac_option"
1157   fi
1158  
1159   if test -n "$ac_unrecognized_opts"; then
1160    case $enable_option_checking in
1161      no) ;;
1162 <    fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1162 >    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1163      *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1164    esac
1165   fi
# Line 1200 | Line 1182 | do
1182      [\\/$]* | ?:[\\/]* )  continue;;
1183      NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1184    esac
1185 <  as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1185 >  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1186   done
1187  
1188   # There might be people who depend on the old broken behavior: `$host'
# Line 1214 | Line 1196 | if test "x$host_alias" != x; then
1196   if test "x$host_alias" != x; then
1197    if test "x$build_alias" = x; then
1198      cross_compiling=maybe
1199 <    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1200 <    If a cross compiler is detected then cross compile mode will be used." >&2
1199 >    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1200 >    If a cross compiler is detected then cross compile mode will be used" >&2
1201    elif test "x$build_alias" != "x$host_alias"; then
1202      cross_compiling=yes
1203    fi
# Line 1230 | Line 1212 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1212   ac_pwd=`pwd` && test -n "$ac_pwd" &&
1213   ac_ls_di=`ls -di .` &&
1214   ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1215 <  as_fn_error "working directory cannot be determined"
1215 >  as_fn_error $? "working directory cannot be determined"
1216   test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1217 <  as_fn_error "pwd does not report name of working directory"
1217 >  as_fn_error $? "pwd does not report name of working directory"
1218  
1219  
1220   # Find the source files, if location was not specified.
# Line 1271 | Line 1253 | if test ! -r "$srcdir/$ac_unique_file"; then
1253   fi
1254   if test ! -r "$srcdir/$ac_unique_file"; then
1255    test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1256 <  as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1256 >  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1257   fi
1258   ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1259   ac_abs_confdir=`(
1260 <        cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1260 >        cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1261          pwd)`
1262   # When building in place, set srcdir=.
1263   if test "$ac_abs_confdir" = "$ac_pwd"; then
# Line 1301 | Line 1283 | if test "$ac_init_help" = "long"; then
1283    # Omit some internal or obsolete options to make the list less imposing.
1284    # This message is too long to be a string in the A/UX 3.1 sh.
1285    cat <<_ACEOF
1286 < \`configure' configures OOPSE 4.0 to adapt to many kinds of systems.
1286 > \`configure' configures OpenMD 1.0 to adapt to many kinds of systems.
1287  
1288   Usage: $0 [OPTION]... [VAR=VALUE]...
1289  
# Line 1315 | Line 1297 | Configuration:
1297        --help=short        display options specific to this package
1298        --help=recursive    display the short help of all the included packages
1299    -V, --version           display version information and exit
1300 <  -q, --quiet, --silent   do not print \`checking...' messages
1300 >  -q, --quiet, --silent   do not print \`checking ...' messages
1301        --cache-file=FILE   cache test results in FILE [disabled]
1302    -C, --config-cache      alias for \`--cache-file=config.cache'
1303    -n, --no-create         do not create output files
# Line 1349 | Line 1331 | Fine tuning of the installation directories:
1331    --infodir=DIR           info documentation [DATAROOTDIR/info]
1332    --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1333    --mandir=DIR            man documentation [DATAROOTDIR/man]
1334 <  --docdir=DIR            documentation root [DATAROOTDIR/doc/oopse]
1334 >  --docdir=DIR            documentation root [DATAROOTDIR/doc/openmd]
1335    --htmldir=DIR           html documentation [DOCDIR]
1336    --dvidir=DIR            dvi documentation [DOCDIR]
1337    --pdfdir=DIR            pdf documentation [DOCDIR]
# Line 1366 | Line 1348 | if test -n "$ac_init_help"; then
1348  
1349   if test -n "$ac_init_help"; then
1350    case $ac_init_help in
1351 <     short | recursive ) echo "Configuration of OOPSE 4.0:";;
1351 >     short | recursive ) echo "Configuration of OpenMD 1.0:";;
1352     esac
1353    cat <<\_ACEOF
1354  
# Line 1374 | Line 1356 | Optional Features:
1356    --disable-option-checking  ignore unrecognized --enable/--with options
1357    --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1358    --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1359 <  --enable-oopse-home=DIR      define oopse home dir PREFIX/oopse
1360 <  --enable-debug          Compile OOPSE in debug mode
1361 <  --enable-single         compile OOPSE in single precision
1359 >  --enable-openmd-home=DIR      define OpenMD home dir PREFIX/openmd
1360 >  --enable-debug          Compile OpenMD in debug mode
1361 >  --enable-single         compile OpenMD in single precision
1362    --enable-float          synonym for --enable-single
1363    --enable-doxygen        enable documentation generation with doxygen (auto)
1364    --enable-dot            use 'dot' to generate graphs in doxygen (auto)
# Line 1397 | Line 1379 | Optional Packages:
1379    --with-openbabel=DIR    root directory path of openbabel-2.x installation
1380                            (defaults to /usr/local or /usr if not found in
1381                            /usr/local)
1400  --with-cgalmakefile=makefile
1401                          Use the following CGAL makefile
1382  
1383   Some influential environment variables:
1384    CXX         C++ compiler command
# Line 1406 | Line 1386 | Some influential environment variables:
1386    LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1387                nonstandard directory <lib dir>
1388    LIBS        libraries to pass to the linker, e.g. -l<library>
1389 <  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1389 >  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1390                you have headers in a nonstandard directory <include dir>
1411  MPICXX      MPI C++ compiler command
1391    CC          C compiler command
1392    CFLAGS      C compiler flags
1393 +  MPICXX      MPI C++ compiler command
1394    MPICC       MPI C compiler command
1415  FC          Fortran compiler command
1416  FCFLAGS     Fortran compiler flags
1417  MPIFC       MPI Fortran compiler command
1395    CPP         C preprocessor
1396    CXXCPP      C++ preprocessor
1397  
# Line 1484 | Line 1461 | if $ac_init_version; then
1461   test -n "$ac_init_help" && exit $ac_status
1462   if $ac_init_version; then
1463    cat <<\_ACEOF
1464 < OOPSE configure 4.0
1465 < generated by GNU Autoconf 2.64
1464 > OpenMD configure 1.0
1465 > generated by GNU Autoconf 2.68
1466  
1467 < Copyright (C) 2009 Free Software Foundation, Inc.
1467 > Copyright (C) 2010 Free Software Foundation, Inc.
1468   This configure script is free software; the Free Software Foundation
1469   gives unlimited permission to copy, distribute and modify it.
1470   _ACEOF
# Line 1531 | Line 1508 | fi
1508  
1509          ac_retval=1
1510   fi
1511 <  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1512 <  return $ac_retval
1511 >  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1512 >  as_fn_set_status $ac_retval
1513  
1514   } # ac_fn_cxx_try_compile
1515 +
1516 + # ac_fn_c_try_compile LINENO
1517 + # --------------------------
1518 + # Try to compile conftest.$ac_ext, and return whether this succeeded.
1519 + ac_fn_c_try_compile ()
1520 + {
1521 +  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1522 +  rm -f conftest.$ac_objext
1523 +  if { { ac_try="$ac_compile"
1524 + case "(($ac_try" in
1525 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1526 +  *) ac_try_echo=$ac_try;;
1527 + esac
1528 + eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1529 + $as_echo "$ac_try_echo"; } >&5
1530 +  (eval "$ac_compile") 2>conftest.err
1531 +  ac_status=$?
1532 +  if test -s conftest.err; then
1533 +    grep -v '^ *+' conftest.err >conftest.er1
1534 +    cat conftest.er1 >&5
1535 +    mv -f conftest.er1 conftest.err
1536 +  fi
1537 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1538 +  test $ac_status = 0; } && {
1539 +         test -z "$ac_c_werror_flag" ||
1540 +         test ! -s conftest.err
1541 +       } && test -s conftest.$ac_objext; then :
1542 +  ac_retval=0
1543 + else
1544 +  $as_echo "$as_me: failed program was:" >&5
1545 + sed 's/^/| /' conftest.$ac_ext >&5
1546 +
1547 +        ac_retval=1
1548 + fi
1549 +  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1550 +  as_fn_set_status $ac_retval
1551 +
1552 + } # ac_fn_c_try_compile
1553  
1554   # ac_fn_cxx_try_link LINENO
1555   # -------------------------
# Line 1577 | Line 1592 | fi
1592    # interfere with the next link command; also delete a directory that is
1593    # left behind by Apple's compiler.  We do this before executing the actions.
1594    rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1595 <  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1596 <  return $ac_retval
1595 >  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1596 >  as_fn_set_status $ac_retval
1597  
1598   } # ac_fn_cxx_try_link
1599  
# Line 1590 | Line 1605 | $as_echo_n "checking for $2... " >&6; }
1605    as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1606    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1607   $as_echo_n "checking for $2... " >&6; }
1608 < if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1608 > if eval \${$3+:} false; then :
1609    $as_echo_n "(cached) " >&6
1610   else
1611    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
# Line 1645 | Line 1660 | $as_echo "$ac_res" >&6; }
1660   eval ac_res=\$$3
1661                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1662   $as_echo "$ac_res" >&6; }
1663 <  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1663 >  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1664  
1665   } # ac_fn_cxx_check_func
1666  
1652 # ac_fn_c_try_compile LINENO
1653 # --------------------------
1654 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1655 ac_fn_c_try_compile ()
1656 {
1657  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1658  rm -f conftest.$ac_objext
1659  if { { ac_try="$ac_compile"
1660 case "(($ac_try" in
1661  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1662  *) ac_try_echo=$ac_try;;
1663 esac
1664 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1665 $as_echo "$ac_try_echo"; } >&5
1666  (eval "$ac_compile") 2>conftest.err
1667  ac_status=$?
1668  if test -s conftest.err; then
1669    grep -v '^ *+' conftest.err >conftest.er1
1670    cat conftest.er1 >&5
1671    mv -f conftest.er1 conftest.err
1672  fi
1673  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1674  test $ac_status = 0; } && {
1675         test -z "$ac_c_werror_flag" ||
1676         test ! -s conftest.err
1677       } && test -s conftest.$ac_objext; then :
1678  ac_retval=0
1679 else
1680  $as_echo "$as_me: failed program was:" >&5
1681 sed 's/^/| /' conftest.$ac_ext >&5
1682
1683        ac_retval=1
1684 fi
1685  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1686  return $ac_retval
1687
1688 } # ac_fn_c_try_compile
1689
1667   # ac_fn_c_try_link LINENO
1668   # -----------------------
1669   # Try to link conftest.$ac_ext, and return whether this succeeded.
# Line 1728 | Line 1705 | fi
1705    # interfere with the next link command; also delete a directory that is
1706    # left behind by Apple's compiler.  We do this before executing the actions.
1707    rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1708 <  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1709 <  return $ac_retval
1708 >  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1709 >  as_fn_set_status $ac_retval
1710  
1711   } # ac_fn_c_try_link
1712  
# Line 1741 | Line 1718 | $as_echo_n "checking for $2... " >&6; }
1718    as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1719    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1720   $as_echo_n "checking for $2... " >&6; }
1721 < if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1721 > if eval \${$3+:} false; then :
1722    $as_echo_n "(cached) " >&6
1723   else
1724    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
# Line 1796 | Line 1773 | $as_echo "$ac_res" >&6; }
1773   eval ac_res=\$$3
1774                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1775   $as_echo "$ac_res" >&6; }
1776 <  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1776 >  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1777  
1778   } # ac_fn_c_check_func
1802
1803 # ac_fn_fc_try_compile LINENO
1804 # ---------------------------
1805 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1806 ac_fn_fc_try_compile ()
1807 {
1808  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1809  rm -f conftest.$ac_objext
1810  if { { ac_try="$ac_compile"
1811 case "(($ac_try" in
1812  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1813  *) ac_try_echo=$ac_try;;
1814 esac
1815 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1816 $as_echo "$ac_try_echo"; } >&5
1817  (eval "$ac_compile") 2>conftest.err
1818  ac_status=$?
1819  if test -s conftest.err; then
1820    grep -v '^ *+' conftest.err >conftest.er1
1821    cat conftest.er1 >&5
1822    mv -f conftest.er1 conftest.err
1823  fi
1824  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1825  test $ac_status = 0; } && {
1826         test -z "$ac_fc_werror_flag" ||
1827         test ! -s conftest.err
1828       } && test -s conftest.$ac_objext; then :
1829  ac_retval=0
1830 else
1831  $as_echo "$as_me: failed program was:" >&5
1832 sed 's/^/| /' conftest.$ac_ext >&5
1833
1834        ac_retval=1
1835 fi
1836  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1837  return $ac_retval
1838
1839 } # ac_fn_fc_try_compile
1840
1841 # ac_fn_fc_try_link LINENO
1842 # ------------------------
1843 # Try to link conftest.$ac_ext, and return whether this succeeded.
1844 ac_fn_fc_try_link ()
1845 {
1846  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1847  rm -f conftest.$ac_objext conftest$ac_exeext
1848  if { { ac_try="$ac_link"
1849 case "(($ac_try" in
1850  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1851  *) ac_try_echo=$ac_try;;
1852 esac
1853 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1854 $as_echo "$ac_try_echo"; } >&5
1855  (eval "$ac_link") 2>conftest.err
1856  ac_status=$?
1857  if test -s conftest.err; then
1858    grep -v '^ *+' conftest.err >conftest.er1
1859    cat conftest.er1 >&5
1860    mv -f conftest.er1 conftest.err
1861  fi
1862  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1863  test $ac_status = 0; } && {
1864         test -z "$ac_fc_werror_flag" ||
1865         test ! -s conftest.err
1866       } && test -s conftest$ac_exeext && {
1867         test "$cross_compiling" = yes ||
1868         $as_test_x conftest$ac_exeext
1869       }; then :
1870  ac_retval=0
1871 else
1872  $as_echo "$as_me: failed program was:" >&5
1873 sed 's/^/| /' conftest.$ac_ext >&5
1874
1875        ac_retval=1
1876 fi
1877  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1878  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1879  # interfere with the next link command; also delete a directory that is
1880  # left behind by Apple's compiler.  We do this before executing the actions.
1881  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1882  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1883  return $ac_retval
1779  
1885 } # ac_fn_fc_try_link
1886
1780   # ac_fn_c_try_cpp LINENO
1781   # ----------------------
1782   # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
# Line 1905 | Line 1798 | $as_echo "$ac_try_echo"; } >&5
1798      mv -f conftest.er1 conftest.err
1799    fi
1800    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1801 <  test $ac_status = 0; } >/dev/null && {
1801 >  test $ac_status = 0; } > conftest.i && {
1802           test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1803           test ! -s conftest.err
1804         }; then :
# Line 1916 | Line 1809 | fi
1809  
1810      ac_retval=1
1811   fi
1812 <  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1813 <  return $ac_retval
1812 >  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1813 >  as_fn_set_status $ac_retval
1814  
1815   } # ac_fn_c_try_cpp
1816  
# Line 1929 | Line 1822 | ac_fn_c_check_header_mongrel ()
1822   ac_fn_c_check_header_mongrel ()
1823   {
1824    as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1825 <  if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1825 >  if eval \${$3+:} false; then :
1826    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1827   $as_echo_n "checking for $2... " >&6; }
1828 < if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1828 > if eval \${$3+:} false; then :
1829    $as_echo_n "(cached) " >&6
1830   fi
1831   eval ac_res=\$$3
# Line 1968 | Line 1861 | fi
1861   else
1862    ac_header_preproc=no
1863   fi
1864 < rm -f conftest.err conftest.$ac_ext
1864 > rm -f conftest.err conftest.i conftest.$ac_ext
1865   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1866   $as_echo "$ac_header_preproc" >&6; }
1867  
# Line 1991 | Line 1884 | $as_echo "$as_me: WARNING: $2: proceeding with the com
1884   $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1885      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1886   $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1887 < ( cat <<\_ASBOX
1995 < ## ------------------------------ ##
1887 > ( $as_echo "## ------------------------------ ##
1888   ## Report this to gezelter@nd.edu ##
1889 < ## ------------------------------ ##
1998 < _ASBOX
1889 > ## ------------------------------ ##"
1890       ) | sed "s/^/$as_me: WARNING:     /" >&2
1891      ;;
1892   esac
1893    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1894   $as_echo_n "checking for $2... " >&6; }
1895 < if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1895 > if eval \${$3+:} false; then :
1896    $as_echo_n "(cached) " >&6
1897   else
1898    eval "$3=\$ac_header_compiler"
# Line 2010 | Line 1901 | fi
1901                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1902   $as_echo "$ac_res" >&6; }
1903   fi
1904 <  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1904 >  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1905  
1906   } # ac_fn_c_check_header_mongrel
1907  
# Line 2051 | Line 1942 | fi
1942         ac_retval=$ac_status
1943   fi
1944    rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1945 <  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1946 <  return $ac_retval
1945 >  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1946 >  as_fn_set_status $ac_retval
1947  
1948   } # ac_fn_c_try_run
1949  
# Line 2065 | Line 1956 | $as_echo_n "checking for $2... " >&6; }
1956    as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1957    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1958   $as_echo_n "checking for $2... " >&6; }
1959 < if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1959 > if eval \${$3+:} false; then :
1960    $as_echo_n "(cached) " >&6
1961   else
1962    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
# Line 2083 | Line 1974 | $as_echo "$ac_res" >&6; }
1974   eval ac_res=\$$3
1975                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1976   $as_echo "$ac_res" >&6; }
1977 <  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1977 >  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1978  
1979   } # ac_fn_c_check_header_compile
1980  
# Line 2108 | Line 1999 | $as_echo "$ac_try_echo"; } >&5
1999      mv -f conftest.er1 conftest.err
2000    fi
2001    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2002 <  test $ac_status = 0; } >/dev/null && {
2002 >  test $ac_status = 0; } > conftest.i && {
2003           test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2004           test ! -s conftest.err
2005         }; then :
# Line 2119 | Line 2010 | fi
2010  
2011      ac_retval=1
2012   fi
2013 <  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2014 <  return $ac_retval
2013 >  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2014 >  as_fn_set_status $ac_retval
2015  
2016   } # ac_fn_cxx_try_cpp
2017  
# Line 2132 | Line 2023 | ac_fn_cxx_check_header_mongrel ()
2023   ac_fn_cxx_check_header_mongrel ()
2024   {
2025    as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2026 <  if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2026 >  if eval \${$3+:} false; then :
2027    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2028   $as_echo_n "checking for $2... " >&6; }
2029 < if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2029 > if eval \${$3+:} false; then :
2030    $as_echo_n "(cached) " >&6
2031   fi
2032   eval ac_res=\$$3
# Line 2171 | Line 2062 | fi
2062   else
2063    ac_header_preproc=no
2064   fi
2065 < rm -f conftest.err conftest.$ac_ext
2065 > rm -f conftest.err conftest.i conftest.$ac_ext
2066   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2067   $as_echo "$ac_header_preproc" >&6; }
2068  
# Line 2194 | Line 2085 | $as_echo "$as_me: WARNING: $2: proceeding with the com
2085   $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2086      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2087   $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2088 < ( cat <<\_ASBOX
2198 < ## ------------------------------ ##
2088 > ( $as_echo "## ------------------------------ ##
2089   ## Report this to gezelter@nd.edu ##
2090 < ## ------------------------------ ##
2201 < _ASBOX
2090 > ## ------------------------------ ##"
2091       ) | sed "s/^/$as_me: WARNING:     /" >&2
2092      ;;
2093   esac
2094    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2095   $as_echo_n "checking for $2... " >&6; }
2096 < if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2096 > if eval \${$3+:} false; then :
2097    $as_echo_n "(cached) " >&6
2098   else
2099    eval "$3=\$ac_header_compiler"
# Line 2213 | Line 2102 | fi
2102                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2103   $as_echo "$ac_res" >&6; }
2104   fi
2105 <  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2105 >  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2106  
2107   } # ac_fn_cxx_check_header_mongrel
2108  
# Line 2226 | Line 2115 | $as_echo_n "checking for $2... " >&6; }
2115    as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2116    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2117   $as_echo_n "checking for $2... " >&6; }
2118 < if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2118 > if eval \${$3+:} false; then :
2119    $as_echo_n "(cached) " >&6
2120   else
2121    eval "$3=no"
2122    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2123   /* end confdefs.h.  */
2124   $4
2236 #ifdef FC_DUMMY_MAIN
2237 #ifndef FC_DUMMY_MAIN_EQ_F77
2238 #  ifdef __cplusplus
2239     extern "C"
2240 #  endif
2241   int FC_DUMMY_MAIN() { return 1; }
2242 #endif
2243 #endif
2125   int
2126   main ()
2127   {
# Line 2254 | Line 2135 | $4
2135    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2136   /* end confdefs.h.  */
2137   $4
2257 #ifdef FC_DUMMY_MAIN
2258 #ifndef FC_DUMMY_MAIN_EQ_F77
2259 #  ifdef __cplusplus
2260     extern "C"
2261 #  endif
2262   int FC_DUMMY_MAIN() { return 1; }
2263 #endif
2264 #endif
2138   int
2139   main ()
2140   {
# Line 2283 | Line 2156 | $as_echo "$ac_res" >&6; }
2156   eval ac_res=\$$3
2157                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2158   $as_echo "$ac_res" >&6; }
2159 <  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2159 >  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2160  
2161   } # ac_fn_c_check_type
2162   cat >config.log <<_ACEOF
2163   This file contains any messages produced by compilers while
2164   running configure, to aid debugging if configure makes a mistake.
2165  
2166 < It was created by OOPSE $as_me 4.0, which was
2167 < generated by GNU Autoconf 2.64.  Invocation command line was
2166 > It was created by OpenMD $as_me 1.0, which was
2167 > generated by GNU Autoconf 2.68.  Invocation command line was
2168  
2169    $ $0 $@
2170  
# Line 2401 | Line 2274 | trap 'exit_status=$?
2274    {
2275      echo
2276  
2277 <    cat <<\_ASBOX
2405 < ## ---------------- ##
2277 >    $as_echo "## ---------------- ##
2278   ## Cache variables. ##
2279 < ## ---------------- ##
2408 < _ASBOX
2279 > ## ---------------- ##"
2280      echo
2281      # The following way of writing the cache mishandles newlines in values,
2282   (
# Line 2439 | Line 2310 | $as_echo "$as_me: WARNING: cache variable $ac_var cont
2310   )
2311      echo
2312  
2313 <    cat <<\_ASBOX
2443 < ## ----------------- ##
2313 >    $as_echo "## ----------------- ##
2314   ## Output variables. ##
2315 < ## ----------------- ##
2446 < _ASBOX
2315 > ## ----------------- ##"
2316      echo
2317      for ac_var in $ac_subst_vars
2318      do
# Line 2456 | Line 2325 | _ASBOX
2325      echo
2326  
2327      if test -n "$ac_subst_files"; then
2328 <      cat <<\_ASBOX
2460 < ## ------------------- ##
2328 >      $as_echo "## ------------------- ##
2329   ## File substitutions. ##
2330 < ## ------------------- ##
2463 < _ASBOX
2330 > ## ------------------- ##"
2331        echo
2332        for ac_var in $ac_subst_files
2333        do
# Line 2474 | Line 2341 | _ASBOX
2341      fi
2342  
2343      if test -s confdefs.h; then
2344 <      cat <<\_ASBOX
2478 < ## ----------- ##
2344 >      $as_echo "## ----------- ##
2345   ## confdefs.h. ##
2346 < ## ----------- ##
2481 < _ASBOX
2346 > ## ----------- ##"
2347        echo
2348        cat confdefs.h
2349        echo
# Line 2533 | Line 2398 | if test -n "$CONFIG_SITE"; then
2398   ac_site_file1=NONE
2399   ac_site_file2=NONE
2400   if test -n "$CONFIG_SITE"; then
2401 <  ac_site_file1=$CONFIG_SITE
2401 >  # We do not want a PATH search for config.site.
2402 >  case $CONFIG_SITE in #((
2403 >    -*)  ac_site_file1=./$CONFIG_SITE;;
2404 >    */*) ac_site_file1=$CONFIG_SITE;;
2405 >    *)   ac_site_file1=./$CONFIG_SITE;;
2406 >  esac
2407   elif test "x$prefix" != xNONE; then
2408    ac_site_file1=$prefix/share/config.site
2409    ac_site_file2=$prefix/etc/config.site
# Line 2544 | Line 2414 | do
2414   for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2415   do
2416    test "x$ac_site_file" = xNONE && continue
2417 <  if test -r "$ac_site_file"; then
2417 >  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2418      { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2419   $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2420      sed 's/^/| /' "$ac_site_file" >&5
2421 <    . "$ac_site_file"
2421 >    . "$ac_site_file" \
2422 >      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2423 > $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2424 > as_fn_error $? "failed to load site script $ac_site_file
2425 > See \`config.log' for more details" "$LINENO" 5; }
2426    fi
2427   done
2428  
2429   if test -r "$cache_file"; then
2430 <  # Some versions of bash will fail to source /dev/null (special
2431 <  # files actually), so we avoid doing that.
2432 <  if test -f "$cache_file"; then
2430 >  # Some versions of bash will fail to source /dev/null (special files
2431 >  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2432 >  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2433      { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2434   $as_echo "$as_me: loading cache $cache_file" >&6;}
2435      case $cache_file in
# Line 2624 | Line 2498 | $as_echo "$as_me: error: changes in the environment ca
2498   $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2499    { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2500   $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2501 <  as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2501 >  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2502   fi
2503   ## -------------------- ##
2504   ## Main body of script. ##
# Line 2639 | Line 2513 | for ac_dir in ac-tools "$srcdir"/ac-tools; do
2513  
2514   ac_aux_dir=
2515   for ac_dir in ac-tools "$srcdir"/ac-tools; do
2516 <  for ac_t in install-sh install.sh shtool; do
2517 <    if test -f "$ac_dir/$ac_t"; then
2518 <      ac_aux_dir=$ac_dir
2519 <      ac_install_sh="$ac_aux_dir/$ac_t -c"
2520 <      break 2
2521 <    fi
2522 <  done
2516 >  if test -f "$ac_dir/install-sh"; then
2517 >    ac_aux_dir=$ac_dir
2518 >    ac_install_sh="$ac_aux_dir/install-sh -c"
2519 >    break
2520 >  elif test -f "$ac_dir/install.sh"; then
2521 >    ac_aux_dir=$ac_dir
2522 >    ac_install_sh="$ac_aux_dir/install.sh -c"
2523 >    break
2524 >  elif test -f "$ac_dir/shtool"; then
2525 >    ac_aux_dir=$ac_dir
2526 >    ac_install_sh="$ac_aux_dir/shtool install -c"
2527 >    break
2528 >  fi
2529   done
2530   if test -z "$ac_aux_dir"; then
2531 <  as_fn_error "cannot find install-sh, install.sh, or shtool in ac-tools \"$srcdir\"/ac-tools" "$LINENO" 5
2531 >  as_fn_error $? "cannot find install-sh, install.sh, or shtool in ac-tools \"$srcdir\"/ac-tools" "$LINENO" 5
2532   fi
2533  
2534   # These three variables are undocumented and unsupported,
# Line 2662 | Line 2542 | ac_config_headers="$ac_config_headers src/config.h"
2542  
2543  
2544   ac_config_headers="$ac_config_headers src/config.h"
2665
2666
2667
2668
2669
2545  
2546  
2547  
# Line 2696 | Line 2571 | ac_config_headers="$ac_config_headers src/config.h"
2571  
2572  
2573  
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2574   #
2575   #
2576   #
# Line 2719 | Line 2584 | ac_config_headers="$ac_config_headers src/config.h"
2584  
2585  
2586  
2722 # AC_F90_MODULE_NAMES
2723 # -------------------
2724 #
2725 # Figure out how the Fortran 90 compiler constructs module file names
2726 #
2727 # AC_F90_MODULE_NAMES
2587  
2588  
2589  
# Line 2902 | Line 2761 | ac_config_headers="$ac_config_headers src/config.h"
2761  
2762  
2763  
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926 # This is taken from http://autoqt.sourceforge.net/
2927 # Copyright (c) 2002, Geoffrey Wossum
2928 # All rights reserved.
2929
2930 # Redistribution and use in source and binary forms, with or without
2931 # modification, are permitted provided that the following conditions are
2932 # met:
2933
2934 #  - Redistributions of source code must retain the above copyright notice,
2935 #    this list of conditions and the following disclaimer.
2936
2937 #  - Redistributions in binary form must reproduce the above copyright
2938 #    notice, this list of conditions and the following disclaimer in the
2939 #    documentation and/or other materials provided with the distribution.
2940
2941 #  - Neither the name of Geoffrey Wossum nor the names of its
2942 #    contributors may be used to endorse or promote products derived from
2943 #    this software without specific prior written permission.
2944
2945
2946 # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
2947 # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
2948 # TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
2949 # PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
2950 # CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
2951 # EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
2952 # PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
2953 # OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
2954 # WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
2955 # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
2956 # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2957
2958
2959 # Check for Qt compiler flags, linker flags, and binary packages
2960
2961
2962
2764   # who am i
2765   # Make sure we can run config.sub.
2766   $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2767 <  as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2767 >  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2768  
2769   { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2770   $as_echo_n "checking build system type... " >&6; }
2771 < if test "${ac_cv_build+set}" = set; then :
2771 > if ${ac_cv_build+:} false; then :
2772    $as_echo_n "(cached) " >&6
2773   else
2774    ac_build_alias=$build_alias
2775   test "x$ac_build_alias" = x &&
2776    ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2777   test "x$ac_build_alias" = x &&
2778 <  as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2778 >  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2779   ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2780 <  as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2780 >  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2781  
2782   fi
2783   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2784   $as_echo "$ac_cv_build" >&6; }
2785   case $ac_cv_build in
2786   *-*-*) ;;
2787 < *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2787 > *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2788   esac
2789   build=$ac_cv_build
2790   ac_save_IFS=$IFS; IFS='-'
# Line 3001 | Line 2802 | $as_echo_n "checking host system type... " >&6; }
2802  
2803   { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2804   $as_echo_n "checking host system type... " >&6; }
2805 < if test "${ac_cv_host+set}" = set; then :
2805 > if ${ac_cv_host+:} false; then :
2806    $as_echo_n "(cached) " >&6
2807   else
2808    if test "x$host_alias" = x; then
2809    ac_cv_host=$ac_cv_build
2810   else
2811    ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2812 <    as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2812 >    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2813   fi
2814  
2815   fi
# Line 3016 | Line 2817 | case $ac_cv_host in
2817   $as_echo "$ac_cv_host" >&6; }
2818   case $ac_cv_host in
2819   *-*-*) ;;
2820 < *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2820 > *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2821   esac
2822   host=$ac_cv_host
2823   ac_save_IFS=$IFS; IFS='-'
# Line 3036 | Line 2837 | case $host_os in *\ *) host_os=`echo "$host_os" | sed
2837  
2838  
2839   # set program name
2840 < PROGNAME="oopse"
2840 > PROGNAME="openmd"
2841  
2842  
2843  
2844  
2845   OBJEXT=".$OBJEXT"
2846  
2847 < OOPSE=oopse
2847 > OPENMD=openmd
2848  
2849   if test "x${prefix}" = "xNONE"
2850   then
2851 <  OOPSE_HOME=${ac_default_prefix}/oopse
2851 >  OPENMD_HOME=${ac_default_prefix}/openmd
2852   else
2853 <  OOPSE_HOME=${prefix}/oopse
2853 >  OPENMD_HOME=${prefix}/openmd
2854   fi
2855 < # Check whether --enable-oopse-home was given.
2856 < if test "${enable_oopse_home+set}" = set; then :
2857 <  enableval=$enable_oopse_home; OOPSE_HOME="${enableval}"
2855 > # Check whether --enable-openmd-home was given.
2856 > if test "${enable_openmd_home+set}" = set; then :
2857 >  enableval=$enable_openmd_home; OPENMD_HOME="${enableval}"
2858   fi
2859  
2860  
# Line 3091 | Line 2892 | $as_echo "#define SINGLE_PRECISION 1" >>confdefs.h
2892   $as_echo "#define SINGLE_PRECISION 1" >>confdefs.h
2893  
2894          USE_SINGLE_PRECISION=yes
3094
3095 fi
3096
3097 if test x"$CC" != x; then
3098   for ac_prog in $CC
3099 do
3100  # Extract the first word of "$ac_prog", so it can be a program name with args.
3101 set dummy $ac_prog; ac_word=$2
3102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3103 $as_echo_n "checking for $ac_word... " >&6; }
3104 if test "${ac_cv_prog_ac_cc_set+set}" = set; then :
3105  $as_echo_n "(cached) " >&6
3106 else
3107  if test -n "$ac_cc_set"; then
3108  ac_cv_prog_ac_cc_set="$ac_cc_set" # Let the user override the test.
3109 else
3110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3111 for as_dir in $PATH
3112 do
3113  IFS=$as_save_IFS
3114  test -z "$as_dir" && as_dir=.
3115    for ac_exec_ext in '' $ac_executable_extensions; do
3116  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3117    ac_cv_prog_ac_cc_set="$ac_prog"
3118    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3119    break 2
3120  fi
3121 done
3122  done
3123 IFS=$as_save_IFS
3124
3125 fi
3126 fi
3127 ac_cc_set=$ac_cv_prog_ac_cc_set
3128 if test -n "$ac_cc_set"; then
3129  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cc_set" >&5
3130 $as_echo "$ac_cc_set" >&6; }
3131 else
3132  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3133 $as_echo "no" >&6; }
3134 fi
3135
3136
3137  test -n "$ac_cc_set" && break
3138 done
3139 test -n "$ac_cc_set" || ac_cc_set="no"
3140
3141   if test $ac_cc_set != no; then :
3142
3143     # Extract the first word of "$ac_cc_set", so it can be a program name with args.
3144 set dummy $ac_cc_set; ac_word=$2
3145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3146 $as_echo_n "checking for $ac_word... " >&6; }
3147 if test "${ac_cv_path_ac_cc_path+set}" = set; then :
3148  $as_echo_n "(cached) " >&6
3149 else
3150  case $ac_cc_path in
3151  [\\/]* | ?:[\\/]*)
3152  ac_cv_path_ac_cc_path="$ac_cc_path" # Let the user override the test with a path.
3153  ;;
3154  *)
3155  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3156 for as_dir in $PATH
3157 do
3158  IFS=$as_save_IFS
3159  test -z "$as_dir" && as_dir=.
3160    for ac_exec_ext in '' $ac_executable_extensions; do
3161  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3162    ac_cv_path_ac_cc_path="$as_dir/$ac_word$ac_exec_ext"
3163    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3164    break 2
3165  fi
3166 done
3167  done
3168 IFS=$as_save_IFS
3169
3170  test -z "$ac_cv_path_ac_cc_path" && ac_cv_path_ac_cc_path="no"
3171  ;;
3172 esac
3173 fi
3174 ac_cc_path=$ac_cv_path_ac_cc_path
3175 if test -n "$ac_cc_path"; then
3176  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cc_path" >&5
3177 $as_echo "$ac_cc_path" >&6; }
3178 else
3179  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3180 $as_echo "no" >&6; }
3181 fi
3182
3183
3184 else
3185
3186     as_fn_error "Specified C compiler $CC doesn't seem to exist!" "$LINENO" 5
3187 fi
3188
3189   if test $ac_cc_path != no; then :
3190
3191     { $as_echo "$as_me:${as_lineno-$LINENO}: Will attempt to use $CC as C compiler" >&5
3192 $as_echo "$as_me: Will attempt to use $CC as C compiler" >&6;}
3193     MPICC=$CC
3194
3195 else
3196
3197     as_fn_error "Can't find path to user-specified C compiler $CC" "$LINENO" 5
3198 fi
3199 fi
3200
3201 if test x"$CXX" != x; then
3202   for ac_prog in $CXX
3203 do
3204  # Extract the first word of "$ac_prog", so it can be a program name with args.
3205 set dummy $ac_prog; ac_word=$2
3206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3207 $as_echo_n "checking for $ac_word... " >&6; }
3208 if test "${ac_cv_prog_ac_cxx_set+set}" = set; then :
3209  $as_echo_n "(cached) " >&6
3210 else
3211  if test -n "$ac_cxx_set"; then
3212  ac_cv_prog_ac_cxx_set="$ac_cxx_set" # Let the user override the test.
3213 else
3214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3215 for as_dir in $PATH
3216 do
3217  IFS=$as_save_IFS
3218  test -z "$as_dir" && as_dir=.
3219    for ac_exec_ext in '' $ac_executable_extensions; do
3220  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3221    ac_cv_prog_ac_cxx_set="$ac_prog"
3222    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3223    break 2
3224  fi
3225 done
3226  done
3227 IFS=$as_save_IFS
3228
3229 fi
3230 fi
3231 ac_cxx_set=$ac_cv_prog_ac_cxx_set
3232 if test -n "$ac_cxx_set"; then
3233  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cxx_set" >&5
3234 $as_echo "$ac_cxx_set" >&6; }
3235 else
3236  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3237 $as_echo "no" >&6; }
3238 fi
3239
3240
3241  test -n "$ac_cxx_set" && break
3242 done
3243 test -n "$ac_cxx_set" || ac_cxx_set="no"
3244
3245   if test $ac_cxx_set != no; then :
3246
3247     # Extract the first word of "$ac_cxx_set", so it can be a program name with args.
3248 set dummy $ac_cxx_set; ac_word=$2
3249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3250 $as_echo_n "checking for $ac_word... " >&6; }
3251 if test "${ac_cv_path_ac_cxx_path+set}" = set; then :
3252  $as_echo_n "(cached) " >&6
3253 else
3254  case $ac_cxx_path in
3255  [\\/]* | ?:[\\/]*)
3256  ac_cv_path_ac_cxx_path="$ac_cxx_path" # Let the user override the test with a path.
3257  ;;
3258  *)
3259  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3260 for as_dir in $PATH
3261 do
3262  IFS=$as_save_IFS
3263  test -z "$as_dir" && as_dir=.
3264    for ac_exec_ext in '' $ac_executable_extensions; do
3265  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3266    ac_cv_path_ac_cxx_path="$as_dir/$ac_word$ac_exec_ext"
3267    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3268    break 2
3269  fi
3270 done
3271  done
3272 IFS=$as_save_IFS
3273
3274  test -z "$ac_cv_path_ac_cxx_path" && ac_cv_path_ac_cxx_path="no"
3275  ;;
3276 esac
3277 fi
3278 ac_cxx_path=$ac_cv_path_ac_cxx_path
3279 if test -n "$ac_cxx_path"; then
3280  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cxx_path" >&5
3281 $as_echo "$ac_cxx_path" >&6; }
3282 else
3283  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3284 $as_echo "no" >&6; }
3285 fi
2895  
3287
3288 else
3289
3290     as_fn_error "Specified C++ compiler $CXX doesn't seem to exist!" "$LINENO" 5
3291 fi
3292
3293   if test $ac_cxx_path != no; then :
3294
3295     { $as_echo "$as_me:${as_lineno-$LINENO}: Will attempt to use $CXX as C++ compiler" >&5
3296 $as_echo "$as_me: Will attempt to use $CXX as C++ compiler" >&6;}
3297     MPICXX=$CXX
3298
3299 else
3300
3301     as_fn_error "Can't find path to user-specified C++ compiler $CXX" "$LINENO" 5
3302 fi
3303 fi
3304
3305 if test x"$FC" != x; then
3306   for ac_prog in $FC
3307 do
3308  # Extract the first word of "$ac_prog", so it can be a program name with args.
3309 set dummy $ac_prog; ac_word=$2
3310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3311 $as_echo_n "checking for $ac_word... " >&6; }
3312 if test "${ac_cv_prog_ac_fc_set+set}" = set; then :
3313  $as_echo_n "(cached) " >&6
3314 else
3315  if test -n "$ac_fc_set"; then
3316  ac_cv_prog_ac_fc_set="$ac_fc_set" # Let the user override the test.
3317 else
3318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3319 for as_dir in $PATH
3320 do
3321  IFS=$as_save_IFS
3322  test -z "$as_dir" && as_dir=.
3323    for ac_exec_ext in '' $ac_executable_extensions; do
3324  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3325    ac_cv_prog_ac_fc_set="$ac_prog"
3326    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3327    break 2
3328  fi
3329 done
3330  done
3331 IFS=$as_save_IFS
3332
3333 fi
3334 fi
3335 ac_fc_set=$ac_cv_prog_ac_fc_set
3336 if test -n "$ac_fc_set"; then
3337  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_fc_set" >&5
3338 $as_echo "$ac_fc_set" >&6; }
3339 else
3340  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3341 $as_echo "no" >&6; }
3342 fi
3343
3344
3345  test -n "$ac_fc_set" && break
3346 done
3347 test -n "$ac_fc_set" || ac_fc_set="no"
3348
3349   if test $ac_fc_set != no; then :
3350
3351     # Extract the first word of "$ac_fc_set", so it can be a program name with args.
3352 set dummy $ac_fc_set; ac_word=$2
3353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3354 $as_echo_n "checking for $ac_word... " >&6; }
3355 if test "${ac_cv_path_ac_fc_path+set}" = set; then :
3356  $as_echo_n "(cached) " >&6
3357 else
3358  case $ac_fc_path in
3359  [\\/]* | ?:[\\/]*)
3360  ac_cv_path_ac_fc_path="$ac_fc_path" # Let the user override the test with a path.
3361  ;;
3362  *)
3363  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3364 for as_dir in $PATH
3365 do
3366  IFS=$as_save_IFS
3367  test -z "$as_dir" && as_dir=.
3368    for ac_exec_ext in '' $ac_executable_extensions; do
3369  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3370    ac_cv_path_ac_fc_path="$as_dir/$ac_word$ac_exec_ext"
3371    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3372    break 2
3373  fi
3374 done
3375  done
3376 IFS=$as_save_IFS
3377
3378  test -z "$ac_cv_path_ac_fc_path" && ac_cv_path_ac_fc_path="no"
3379  ;;
3380 esac
3381 fi
3382 ac_fc_path=$ac_cv_path_ac_fc_path
3383 if test -n "$ac_fc_path"; then
3384  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_fc_path" >&5
3385 $as_echo "$ac_fc_path" >&6; }
3386 else
3387  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3388 $as_echo "no" >&6; }
3389 fi
3390
3391
3392 else
3393
3394     as_fn_error "Specified Fortran compiler $FC doesn't seem to exist!" "$LINENO" 5
3395 fi
3396
3397   if test $ac_fc_path != no; then :
3398
3399     { $as_echo "$as_me:${as_lineno-$LINENO}: Will attempt to use $FC as Fortran compiler" >&5
3400 $as_echo "$as_me: Will attempt to use $FC as Fortran compiler" >&6;}
3401     MPIFC=$FC
3402
3403 else
3404
3405     as_fn_error "Can't find path to user-specified Fortran compiler $FC" "$LINENO" 5
3406 fi
2896   fi
2897  
3409
2898   ac_ext=cpp
2899   ac_cpp='$CXXCPP $CPPFLAGS'
2900   ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2901   ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2902   ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3415
3416 ac_ext=cpp
3417 ac_cpp='$CXXCPP $CPPFLAGS'
3418 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3419 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3420 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2903   if test -z "$CXX"; then
2904    if test -n "$CCC"; then
2905      CXX=$CCC
2906    else
2907      if test -n "$ac_tool_prefix"; then
2908 <  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2908 >  for ac_prog in $CXX icpc pathCC pgCC c++ xlc++ xlC g++ CC
2909    do
2910      # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2911   set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2912   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2913   $as_echo_n "checking for $ac_word... " >&6; }
2914 < if test "${ac_cv_prog_CXX+set}" = set; then :
2914 > if ${ac_cv_prog_CXX+:} false; then :
2915    $as_echo_n "(cached) " >&6
2916   else
2917    if test -n "$CXX"; then
# Line 3467 | Line 2949 | if test -z "$CXX"; then
2949   fi
2950   if test -z "$CXX"; then
2951    ac_ct_CXX=$CXX
2952 <  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2952 >  for ac_prog in $CXX icpc pathCC pgCC c++ xlc++ xlC g++ CC
2953   do
2954    # Extract the first word of "$ac_prog", so it can be a program name with args.
2955   set dummy $ac_prog; ac_word=$2
2956   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2957   $as_echo_n "checking for $ac_word... " >&6; }
2958 < if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
2958 > if ${ac_cv_prog_ac_ct_CXX+:} false; then :
2959    $as_echo_n "(cached) " >&6
2960   else
2961    if test -n "$ac_ct_CXX"; then
# Line 3543 | Line 3025 | $as_echo "$ac_try_echo"; } >&5
3025   ... rest of stderr output deleted ...
3026           10q' conftest.err >conftest.er1
3027      cat conftest.er1 >&5
3546    rm -f conftest.er1 conftest.err
3028    fi
3029 +  rm -f conftest.er1 conftest.err
3030    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3031    test $ac_status = 0; }
3032   done
3033  
3034   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3035   /* end confdefs.h.  */
3036 < #include <stdio.h>
3036 >
3037   int
3038   main ()
3039   {
3558 FILE *f = fopen ("conftest.out", "w");
3559 return ferror (f) || fclose (f) != 0;
3040  
3041    ;
3042    return 0;
3043   }
3044   _ACEOF
3045   ac_clean_files_save=$ac_clean_files
3046 < ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3046 > ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3047   # Try to create an executable without -o first, disregard a.out.
3048   # It will help us diagnose broken compilers, and finding out an intuition
3049   # of exeext.
3050 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3051 < $as_echo_n "checking for C++ compiler default output file name... " >&6; }
3050 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
3051 > $as_echo_n "checking whether the C++ compiler works... " >&6; }
3052   ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3053  
3054   # The possible output files:
# Line 3630 | Line 3110 | fi
3110   else
3111    ac_file=''
3112   fi
3633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3634 $as_echo "$ac_file" >&6; }
3113   if test -z "$ac_file"; then :
3114 <  $as_echo "$as_me: failed program was:" >&5
3114 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3115 > $as_echo "no" >&6; }
3116 > $as_echo "$as_me: failed program was:" >&5
3117   sed 's/^/| /' conftest.$ac_ext >&5
3118  
3119   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3120   $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3121 < { as_fn_set_status 77
3122 < as_fn_error "C++ compiler cannot create executables
3123 < See \`config.log' for more details." "$LINENO" 5; }; }
3121 > as_fn_error 77 "C++ compiler cannot create executables
3122 > See \`config.log' for more details" "$LINENO" 5; }
3123 > else
3124 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3125 > $as_echo "yes" >&6; }
3126   fi
3127 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3128 + $as_echo_n "checking for C++ compiler default output file name... " >&6; }
3129 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3130 + $as_echo "$ac_file" >&6; }
3131   ac_exeext=$ac_cv_exeext
3132  
3133 < # Check that the compiler produces executables we can run.  If not, either
3648 < # the compiler is broken, or we cross compile.
3649 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
3650 < $as_echo_n "checking whether the C++ compiler works... " >&6; }
3651 < # If not cross compiling, check that we can run a simple program.
3652 < if test "$cross_compiling" != yes; then
3653 <  if { ac_try='./$ac_file'
3654 <  { { case "(($ac_try" in
3655 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3656 <  *) ac_try_echo=$ac_try;;
3657 < esac
3658 < eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3659 < $as_echo "$ac_try_echo"; } >&5
3660 <  (eval "$ac_try") 2>&5
3661 <  ac_status=$?
3662 <  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3663 <  test $ac_status = 0; }; }; then
3664 <    cross_compiling=no
3665 <  else
3666 <    if test "$cross_compiling" = maybe; then
3667 <        cross_compiling=yes
3668 <    else
3669 <        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3670 < $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3671 < as_fn_error "cannot run C++ compiled programs.
3672 < If you meant to cross compile, use \`--host'.
3673 < See \`config.log' for more details." "$LINENO" 5; }
3674 <    fi
3675 <  fi
3676 < fi
3677 < { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3678 < $as_echo "yes" >&6; }
3679 <
3680 < rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3133 > rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3134   ac_clean_files=$ac_clean_files_save
3682 # Check that the compiler produces executables we can run.  If not, either
3683 # the compiler is broken, or we cross compile.
3684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3685 $as_echo_n "checking whether we are cross compiling... " >&6; }
3686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3687 $as_echo "$cross_compiling" >&6; }
3688
3135   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3136   $as_echo_n "checking for suffix of executables... " >&6; }
3137   if { { ac_try="$ac_link"
# Line 3715 | Line 3161 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3161   else
3162    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3163   $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3164 < as_fn_error "cannot compute suffix of executables: cannot compile and link
3165 < See \`config.log' for more details." "$LINENO" 5; }
3164 > as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3165 > See \`config.log' for more details" "$LINENO" 5; }
3166   fi
3167 < rm -f conftest$ac_cv_exeext
3167 > rm -f conftest conftest$ac_cv_exeext
3168   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3169   $as_echo "$ac_cv_exeext" >&6; }
3170  
3171   rm -f conftest.$ac_ext
3172   EXEEXT=$ac_cv_exeext
3173   ac_exeext=$EXEEXT
3174 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3729 < $as_echo_n "checking for suffix of object files... " >&6; }
3730 < if test "${ac_cv_objext+set}" = set; then :
3731 <  $as_echo_n "(cached) " >&6
3732 < else
3733 <  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3174 > cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3175   /* end confdefs.h.  */
3176 <
3176 > #include <stdio.h>
3177   int
3178   main ()
3179   {
3180 + FILE *f = fopen ("conftest.out", "w");
3181 + return ferror (f) || fclose (f) != 0;
3182  
3183    ;
3184    return 0;
3185   }
3186   _ACEOF
3187 < rm -f conftest.o conftest.obj
3188 < if { { ac_try="$ac_compile"
3187 > ac_clean_files="$ac_clean_files conftest.out"
3188 > # Check that the compiler produces executables we can run.  If not, either
3189 > # the compiler is broken, or we cross compile.
3190 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3191 > $as_echo_n "checking whether we are cross compiling... " >&6; }
3192 > if test "$cross_compiling" != yes; then
3193 >  { { ac_try="$ac_link"
3194   case "(($ac_try" in
3195    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3196    *) ac_try_echo=$ac_try;;
3197   esac
3198   eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3199   $as_echo "$ac_try_echo"; } >&5
3200 <  (eval "$ac_compile") 2>&5
3200 >  (eval "$ac_link") 2>&5
3201    ac_status=$?
3202    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3203 <  test $ac_status = 0; }; then :
3204 <  for ac_file in conftest.o conftest.obj conftest.*; do
3205 <  test -f "$ac_file" || continue;
3203 >  test $ac_status = 0; }
3204 >  if { ac_try='./conftest$ac_cv_exeext'
3205 >  { { case "(($ac_try" in
3206 >  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3207 >  *) ac_try_echo=$ac_try;;
3208 > esac
3209 > eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3210 > $as_echo "$ac_try_echo"; } >&5
3211 >  (eval "$ac_try") 2>&5
3212 >  ac_status=$?
3213 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3214 >  test $ac_status = 0; }; }; then
3215 >    cross_compiling=no
3216 >  else
3217 >    if test "$cross_compiling" = maybe; then
3218 >        cross_compiling=yes
3219 >    else
3220 >        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3221 > $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3222 > as_fn_error $? "cannot run C++ compiled programs.
3223 > If you meant to cross compile, use \`--host'.
3224 > See \`config.log' for more details" "$LINENO" 5; }
3225 >    fi
3226 >  fi
3227 > fi
3228 > { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3229 > $as_echo "$cross_compiling" >&6; }
3230 >
3231 > rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3232 > ac_clean_files=$ac_clean_files_save
3233 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3234 > $as_echo_n "checking for suffix of object files... " >&6; }
3235 > if ${ac_cv_objext+:} false; then :
3236 >  $as_echo_n "(cached) " >&6
3237 > else
3238 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3239 > /* end confdefs.h.  */
3240 >
3241 > int
3242 > main ()
3243 > {
3244 >
3245 >  ;
3246 >  return 0;
3247 > }
3248 > _ACEOF
3249 > rm -f conftest.o conftest.obj
3250 > if { { ac_try="$ac_compile"
3251 > case "(($ac_try" in
3252 >  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3253 >  *) ac_try_echo=$ac_try;;
3254 > esac
3255 > eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3256 > $as_echo "$ac_try_echo"; } >&5
3257 >  (eval "$ac_compile") 2>&5
3258 >  ac_status=$?
3259 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3260 >  test $ac_status = 0; }; then :
3261 >  for ac_file in conftest.o conftest.obj conftest.*; do
3262 >  test -f "$ac_file" || continue;
3263    case $ac_file in
3264      *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3265      *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
# Line 3767 | Line 3272 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3272  
3273   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3274   $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3275 < as_fn_error "cannot compute suffix of object files: cannot compile
3276 < See \`config.log' for more details." "$LINENO" 5; }
3275 > as_fn_error $? "cannot compute suffix of object files: cannot compile
3276 > See \`config.log' for more details" "$LINENO" 5; }
3277   fi
3278   rm -f conftest.$ac_cv_objext conftest.$ac_ext
3279   fi
# Line 3778 | Line 3283 | $as_echo_n "checking whether we are using the GNU C++
3283   ac_objext=$OBJEXT
3284   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3285   $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3286 < if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
3286 > if ${ac_cv_cxx_compiler_gnu+:} false; then :
3287    $as_echo_n "(cached) " >&6
3288   else
3289    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
# Line 3815 | Line 3320 | $as_echo_n "checking whether $CXX accepts -g... " >&6;
3320   ac_save_CXXFLAGS=$CXXFLAGS
3321   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3322   $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3323 < if test "${ac_cv_prog_cxx_g+set}" = set; then :
3323 > if ${ac_cv_prog_cxx_g+:} false; then :
3324    $as_echo_n "(cached) " >&6
3325   else
3326    ac_save_cxx_werror_flag=$ac_cxx_werror_flag
# Line 3891 | Line 3396 | fi
3396      CXXFLAGS=
3397    fi
3398   fi
3399 < ac_ext=cpp
3400 < ac_cpp='$CXXCPP $CPPFLAGS'
3401 < ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3402 < ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3403 < ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3899 <
3900 <
3901 <
3902 <
3903 <
3904 <
3905 <
3906 <        for ac_prog in openmpicxx openmpiCC openmpic++ mpic++ mpicxx mpiCC hcp mpxlC_r mpxlC mpCC cmpic++
3907 < do
3908 <  # Extract the first word of "$ac_prog", so it can be a program name with args.
3909 < set dummy $ac_prog; ac_word=$2
3910 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3911 < $as_echo_n "checking for $ac_word... " >&6; }
3912 < if test "${ac_cv_prog_MPICXX+set}" = set; then :
3913 <  $as_echo_n "(cached) " >&6
3914 < else
3915 <  if test -n "$MPICXX"; then
3916 <  ac_cv_prog_MPICXX="$MPICXX" # Let the user override the test.
3917 < else
3918 < as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3919 < for as_dir in $PATH
3920 < do
3921 <  IFS=$as_save_IFS
3922 <  test -z "$as_dir" && as_dir=.
3923 <    for ac_exec_ext in '' $ac_executable_extensions; do
3924 <  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3925 <    ac_cv_prog_MPICXX="$ac_prog"
3926 <    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3927 <    break 2
3928 <  fi
3929 < done
3930 <  done
3931 < IFS=$as_save_IFS
3932 <
3933 < fi
3934 < fi
3935 < MPICXX=$ac_cv_prog_MPICXX
3936 < if test -n "$MPICXX"; then
3937 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPICXX" >&5
3938 < $as_echo "$MPICXX" >&6; }
3939 < else
3940 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3941 < $as_echo "no" >&6; }
3942 < fi
3943 <
3944 <
3945 <  test -n "$MPICXX" && break
3946 < done
3947 < test -n "$MPICXX" || MPICXX="$CXX"
3948 <
3949 <        ax_mpi_save_CXX="$CXX"
3950 <        CXX="$MPICXX"
3951 <
3952 <
3953 <
3954 < if test x = x"$MPILIBS"; then
3955 <        ac_fn_cxx_check_func "$LINENO" "MPI_Init" "ac_cv_func_MPI_Init"
3956 < if test "x$ac_cv_func_MPI_Init" = x""yes; then :
3957 <  MPILIBS=" "
3958 < fi
3959 <
3960 < fi
3961 <
3962 < if test x = x"$MPILIBS"; then
3963 <        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpi" >&5
3964 < $as_echo_n "checking for MPI_Init in -lmpi... " >&6; }
3965 < if test "${ac_cv_lib_mpi_MPI_Init+set}" = set; then :
3966 <  $as_echo_n "(cached) " >&6
3967 < else
3968 <  ac_check_lib_save_LIBS=$LIBS
3969 < LIBS="-lmpi  $LIBS"
3970 < cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3971 < /* end confdefs.h.  */
3972 <
3973 < /* Override any GCC internal prototype to avoid an error.
3974 <   Use char because int might match the return type of a GCC
3975 <   builtin and then its argument prototype would still apply.  */
3976 < #ifdef __cplusplus
3977 < extern "C"
3978 < #endif
3979 < char MPI_Init ();
3980 < int
3981 < main ()
3982 < {
3983 < return MPI_Init ();
3984 <  ;
3985 <  return 0;
3986 < }
3987 < _ACEOF
3988 < if ac_fn_cxx_try_link "$LINENO"; then :
3989 <  ac_cv_lib_mpi_MPI_Init=yes
3990 < else
3991 <  ac_cv_lib_mpi_MPI_Init=no
3992 < fi
3993 < rm -f core conftest.err conftest.$ac_objext \
3994 <    conftest$ac_exeext conftest.$ac_ext
3995 < LIBS=$ac_check_lib_save_LIBS
3996 < fi
3997 < { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpi_MPI_Init" >&5
3998 < $as_echo "$ac_cv_lib_mpi_MPI_Init" >&6; }
3999 < if test "x$ac_cv_lib_mpi_MPI_Init" = x""yes; then :
4000 <  MPILIBS="-lmpi"
4001 < fi
4002 <
4003 < fi
4004 < if test x = x"$MPILIBS"; then
4005 <        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpich" >&5
4006 < $as_echo_n "checking for MPI_Init in -lmpich... " >&6; }
4007 < if test "${ac_cv_lib_mpich_MPI_Init+set}" = set; then :
4008 <  $as_echo_n "(cached) " >&6
4009 < else
4010 <  ac_check_lib_save_LIBS=$LIBS
4011 < LIBS="-lmpich  $LIBS"
4012 < cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4013 < /* end confdefs.h.  */
4014 <
4015 < /* Override any GCC internal prototype to avoid an error.
4016 <   Use char because int might match the return type of a GCC
4017 <   builtin and then its argument prototype would still apply.  */
4018 < #ifdef __cplusplus
4019 < extern "C"
4020 < #endif
4021 < char MPI_Init ();
4022 < int
4023 < main ()
4024 < {
4025 < return MPI_Init ();
4026 <  ;
4027 <  return 0;
4028 < }
4029 < _ACEOF
4030 < if ac_fn_cxx_try_link "$LINENO"; then :
4031 <  ac_cv_lib_mpich_MPI_Init=yes
4032 < else
4033 <  ac_cv_lib_mpich_MPI_Init=no
4034 < fi
4035 < rm -f core conftest.err conftest.$ac_objext \
4036 <    conftest$ac_exeext conftest.$ac_ext
4037 < LIBS=$ac_check_lib_save_LIBS
4038 < fi
4039 < { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpich_MPI_Init" >&5
4040 < $as_echo "$ac_cv_lib_mpich_MPI_Init" >&6; }
4041 < if test "x$ac_cv_lib_mpich_MPI_Init" = x""yes; then :
4042 <  MPILIBS="-lmpich"
4043 < fi
4044 <
4045 < fi
4046 <
4047 < if test x != x"$MPILIBS"; then
4048 <        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpi.h" >&5
4049 < $as_echo_n "checking for mpi.h... " >&6; }
4050 <        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4051 < /* end confdefs.h.  */
4052 < #include <mpi.h>
4053 < int
4054 < main ()
4055 < {
4056 <
4057 <  ;
4058 <  return 0;
4059 < }
4060 < _ACEOF
4061 < if ac_fn_cxx_try_compile "$LINENO"; then :
4062 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4063 < $as_echo "yes" >&6; }
4064 < else
4065 <  MPILIBS=""
4066 <                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4067 < $as_echo "no" >&6; }
4068 < fi
4069 < rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4070 < fi
4071 <
4072 < CXX="$ax_mpi_save_CXX"
4073 <
4074 <
4075 <
4076 < # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
4077 < if test x = x"$MPILIBS"; then
4078 <        USE_MPI="no"
4079 <       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No suitable C++ MPI implementation found. oopse_MPI will not be built." >&5
4080 < $as_echo "$as_me: WARNING: No suitable C++ MPI implementation found. oopse_MPI will not be built." >&2;}
4081 <        :
4082 < else
4083 <        USE_MPI="yes"
4084 <        :
4085 < fi
3399 > ac_ext=c
3400 > ac_cpp='$CPP $CPPFLAGS'
3401 > ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3402 > ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3403 > ac_compiler_gnu=$ac_cv_c_compiler_gnu
3404  
3405   ac_ext=c
3406   ac_cpp='$CPP $CPPFLAGS'
# Line 4090 | Line 3408 | if test -n "$ac_tool_prefix"; then
3408   ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3409   ac_compiler_gnu=$ac_cv_c_compiler_gnu
3410   if test -n "$ac_tool_prefix"; then
3411 <  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4094 < set dummy ${ac_tool_prefix}gcc; ac_word=$2
4095 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4096 < $as_echo_n "checking for $ac_word... " >&6; }
4097 < if test "${ac_cv_prog_CC+set}" = set; then :
4098 <  $as_echo_n "(cached) " >&6
4099 < else
4100 <  if test -n "$CC"; then
4101 <  ac_cv_prog_CC="$CC" # Let the user override the test.
4102 < else
4103 < as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4104 < for as_dir in $PATH
4105 < do
4106 <  IFS=$as_save_IFS
4107 <  test -z "$as_dir" && as_dir=.
4108 <    for ac_exec_ext in '' $ac_executable_extensions; do
4109 <  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4110 <    ac_cv_prog_CC="${ac_tool_prefix}gcc"
4111 <    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4112 <    break 2
4113 <  fi
4114 < done
4115 <  done
4116 < IFS=$as_save_IFS
4117 <
4118 < fi
4119 < fi
4120 < CC=$ac_cv_prog_CC
4121 < if test -n "$CC"; then
4122 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4123 < $as_echo "$CC" >&6; }
4124 < else
4125 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4126 < $as_echo "no" >&6; }
4127 < fi
4128 <
4129 <
4130 < fi
4131 < if test -z "$ac_cv_prog_CC"; then
4132 <  ac_ct_CC=$CC
4133 <  # Extract the first word of "gcc", so it can be a program name with args.
4134 < set dummy gcc; ac_word=$2
4135 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4136 < $as_echo_n "checking for $ac_word... " >&6; }
4137 < if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4138 <  $as_echo_n "(cached) " >&6
4139 < else
4140 <  if test -n "$ac_ct_CC"; then
4141 <  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4142 < else
4143 < as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4144 < for as_dir in $PATH
4145 < do
4146 <  IFS=$as_save_IFS
4147 <  test -z "$as_dir" && as_dir=.
4148 <    for ac_exec_ext in '' $ac_executable_extensions; do
4149 <  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4150 <    ac_cv_prog_ac_ct_CC="gcc"
4151 <    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4152 <    break 2
4153 <  fi
4154 < done
4155 <  done
4156 < IFS=$as_save_IFS
4157 <
4158 < fi
4159 < fi
4160 < ac_ct_CC=$ac_cv_prog_ac_ct_CC
4161 < if test -n "$ac_ct_CC"; then
4162 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4163 < $as_echo "$ac_ct_CC" >&6; }
4164 < else
4165 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4166 < $as_echo "no" >&6; }
4167 < fi
4168 <
4169 <  if test "x$ac_ct_CC" = x; then
4170 <    CC=""
4171 <  else
4172 <    case $cross_compiling:$ac_tool_warned in
4173 < yes:)
4174 < { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4175 < $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4176 < ac_tool_warned=yes ;;
4177 < esac
4178 <    CC=$ac_ct_CC
4179 <  fi
4180 < else
4181 <  CC="$ac_cv_prog_CC"
4182 < fi
4183 <
4184 < if test -z "$CC"; then
4185 <          if test -n "$ac_tool_prefix"; then
4186 <    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4187 < set dummy ${ac_tool_prefix}cc; ac_word=$2
4188 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4189 < $as_echo_n "checking for $ac_word... " >&6; }
4190 < if test "${ac_cv_prog_CC+set}" = set; then :
4191 <  $as_echo_n "(cached) " >&6
4192 < else
4193 <  if test -n "$CC"; then
4194 <  ac_cv_prog_CC="$CC" # Let the user override the test.
4195 < else
4196 < as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4197 < for as_dir in $PATH
4198 < do
4199 <  IFS=$as_save_IFS
4200 <  test -z "$as_dir" && as_dir=.
4201 <    for ac_exec_ext in '' $ac_executable_extensions; do
4202 <  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4203 <    ac_cv_prog_CC="${ac_tool_prefix}cc"
4204 <    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4205 <    break 2
4206 <  fi
4207 < done
4208 <  done
4209 < IFS=$as_save_IFS
4210 <
4211 < fi
4212 < fi
4213 < CC=$ac_cv_prog_CC
4214 < if test -n "$CC"; then
4215 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4216 < $as_echo "$CC" >&6; }
4217 < else
4218 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4219 < $as_echo "no" >&6; }
4220 < fi
4221 <
4222 <
4223 <  fi
4224 < fi
4225 < if test -z "$CC"; then
4226 <  # Extract the first word of "cc", so it can be a program name with args.
4227 < set dummy cc; ac_word=$2
4228 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4229 < $as_echo_n "checking for $ac_word... " >&6; }
4230 < if test "${ac_cv_prog_CC+set}" = set; then :
4231 <  $as_echo_n "(cached) " >&6
4232 < else
4233 <  if test -n "$CC"; then
4234 <  ac_cv_prog_CC="$CC" # Let the user override the test.
4235 < else
4236 <  ac_prog_rejected=no
4237 < as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4238 < for as_dir in $PATH
4239 < do
4240 <  IFS=$as_save_IFS
4241 <  test -z "$as_dir" && as_dir=.
4242 <    for ac_exec_ext in '' $ac_executable_extensions; do
4243 <  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4244 <    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4245 <       ac_prog_rejected=yes
4246 <       continue
4247 <     fi
4248 <    ac_cv_prog_CC="cc"
4249 <    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4250 <    break 2
4251 <  fi
4252 < done
4253 <  done
4254 < IFS=$as_save_IFS
4255 <
4256 < if test $ac_prog_rejected = yes; then
4257 <  # We found a bogon in the path, so make sure we never use it.
4258 <  set dummy $ac_cv_prog_CC
4259 <  shift
4260 <  if test $# != 0; then
4261 <    # We chose a different compiler from the bogus one.
4262 <    # However, it has the same basename, so the bogon will be chosen
4263 <    # first if we set CC to just the basename; use the full file name.
4264 <    shift
4265 <    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4266 <  fi
4267 < fi
4268 < fi
4269 < fi
4270 < CC=$ac_cv_prog_CC
4271 < if test -n "$CC"; then
4272 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4273 < $as_echo "$CC" >&6; }
4274 < else
4275 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4276 < $as_echo "no" >&6; }
4277 < fi
4278 <
4279 <
4280 < fi
4281 < if test -z "$CC"; then
4282 <  if test -n "$ac_tool_prefix"; then
4283 <  for ac_prog in cl.exe
3411 >  for ac_prog in $CC icc pathcc pgcc cc xlc gcc
3412    do
3413      # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3414   set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3415   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3416   $as_echo_n "checking for $ac_word... " >&6; }
3417 < if test "${ac_cv_prog_CC+set}" = set; then :
3417 > if ${ac_cv_prog_CC+:} false; then :
3418    $as_echo_n "(cached) " >&6
3419   else
3420    if test -n "$CC"; then
# Line 4324 | Line 3452 | if test -z "$CC"; then
3452   fi
3453   if test -z "$CC"; then
3454    ac_ct_CC=$CC
3455 <  for ac_prog in cl.exe
3455 >  for ac_prog in $CC icc pathcc pgcc cc xlc gcc
3456   do
3457    # Extract the first word of "$ac_prog", so it can be a program name with args.
3458   set dummy $ac_prog; ac_word=$2
3459   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3460   $as_echo_n "checking for $ac_word... " >&6; }
3461 < if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3461 > if ${ac_cv_prog_ac_ct_CC+:} false; then :
3462    $as_echo_n "(cached) " >&6
3463   else
3464    if test -n "$ac_ct_CC"; then
# Line 4379 | Line 3507 | fi
3507    fi
3508   fi
3509  
4382 fi
3510  
4384
3511   test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3512   $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3513 < as_fn_error "no acceptable C compiler found in \$PATH
3514 < See \`config.log' for more details." "$LINENO" 5; }
3513 > as_fn_error $? "no acceptable C compiler found in \$PATH
3514 > See \`config.log' for more details" "$LINENO" 5; }
3515  
3516   # Provide some information about the compiler.
3517   $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
# Line 4406 | Line 3532 | $as_echo "$ac_try_echo"; } >&5
3532   ... rest of stderr output deleted ...
3533           10q' conftest.err >conftest.er1
3534      cat conftest.er1 >&5
4409    rm -f conftest.er1 conftest.err
3535    fi
3536 +  rm -f conftest.er1 conftest.err
3537    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3538    test $ac_status = 0; }
3539   done
3540  
3541   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3542   $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3543 < if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3543 > if ${ac_cv_c_compiler_gnu+:} false; then :
3544    $as_echo_n "(cached) " >&6
3545   else
3546    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
# Line 4451 | Line 3577 | $as_echo_n "checking whether $CC accepts -g... " >&6;
3577   ac_save_CFLAGS=$CFLAGS
3578   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3579   $as_echo_n "checking whether $CC accepts -g... " >&6; }
3580 < if test "${ac_cv_prog_cc_g+set}" = set; then :
3580 > if ${ac_cv_prog_cc_g+:} false; then :
3581    $as_echo_n "(cached) " >&6
3582   else
3583    ac_save_c_werror_flag=$ac_c_werror_flag
# Line 4529 | Line 3655 | $as_echo_n "checking for $CC option to accept ISO C89.
3655   fi
3656   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3657   $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3658 < if test "${ac_cv_prog_cc_c89+set}" = set; then :
3658 > if ${ac_cv_prog_cc_c89+:} false; then :
3659    $as_echo_n "(cached) " >&6
3660   else
3661    ac_cv_prog_cc_c89=no
# Line 4625 | Line 3751 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
3751   ac_compiler_gnu=$ac_cv_c_compiler_gnu
3752  
3753  
3754 < if test $USE_MPI != no; then :
3754 > save_CXX=$CXX
3755 > save_CC=$CC
3756 > save_LIBS=$LIBS
3757  
3758 < ac_ext=c
3759 < ac_cpp='$CPP $CPPFLAGS'
3760 < ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3761 < ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3762 < ac_compiler_gnu=$ac_cv_c_compiler_gnu
3758 > ac_ext=cpp
3759 > ac_cpp='$CXXCPP $CPPFLAGS'
3760 > ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3761 > ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3762 > ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3763  
3764  
3765 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lc" >&5
3766 + $as_echo_n "checking for dlopen in -lc... " >&6; }
3767 + if ${ac_cv_lib_c_dlopen+:} false; then :
3768 +  $as_echo_n "(cached) " >&6
3769 + else
3770 +  ac_check_lib_save_LIBS=$LIBS
3771 + LIBS="-lc  $LIBS"
3772 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3773 + /* end confdefs.h.  */
3774  
3775 + /* Override any GCC internal prototype to avoid an error.
3776 +   Use char because int might match the return type of a GCC
3777 +   builtin and then its argument prototype would still apply.  */
3778 + #ifdef __cplusplus
3779 + extern "C"
3780 + #endif
3781 + char dlopen ();
3782 + int
3783 + main ()
3784 + {
3785 + return dlopen ();
3786 +  ;
3787 +  return 0;
3788 + }
3789 + _ACEOF
3790 + if ac_fn_cxx_try_link "$LINENO"; then :
3791 +  ac_cv_lib_c_dlopen=yes
3792 + else
3793 +  ac_cv_lib_c_dlopen=no
3794 + fi
3795 + rm -f core conftest.err conftest.$ac_objext \
3796 +    conftest$ac_exeext conftest.$ac_ext
3797 + LIBS=$ac_check_lib_save_LIBS
3798 + fi
3799 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_dlopen" >&5
3800 + $as_echo "$ac_cv_lib_c_dlopen" >&6; }
3801 + if test "x$ac_cv_lib_c_dlopen" = xyes; then :
3802 +  LIBDL=""
3803 + else
3804 +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
3805 + $as_echo_n "checking for dlopen in -ldl... " >&6; }
3806 + if ${ac_cv_lib_dl_dlopen+:} false; then :
3807 +  $as_echo_n "(cached) " >&6
3808 + else
3809 +  ac_check_lib_save_LIBS=$LIBS
3810 + LIBS="-ldl  $LIBS"
3811 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3812 + /* end confdefs.h.  */
3813  
3814 + /* Override any GCC internal prototype to avoid an error.
3815 +   Use char because int might match the return type of a GCC
3816 +   builtin and then its argument prototype would still apply.  */
3817 + #ifdef __cplusplus
3818 + extern "C"
3819 + #endif
3820 + char dlopen ();
3821 + int
3822 + main ()
3823 + {
3824 + return dlopen ();
3825 +  ;
3826 +  return 0;
3827 + }
3828 + _ACEOF
3829 + if ac_fn_cxx_try_link "$LINENO"; then :
3830 +  ac_cv_lib_dl_dlopen=yes
3831 + else
3832 +  ac_cv_lib_dl_dlopen=no
3833 + fi
3834 + rm -f core conftest.err conftest.$ac_objext \
3835 +    conftest$ac_exeext conftest.$ac_ext
3836 + LIBS=$ac_check_lib_save_LIBS
3837 + fi
3838 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
3839 + $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
3840 + if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
3841 +  LIBDL="-ldl"
3842 + fi
3843  
3844 + fi
3845  
3846 <        for ac_prog in openmpicc mpicc hcc mpxlc_r mpxlc mpcc cmpicc
3846 >
3847 >
3848 >
3849 >
3850 >
3851 >
3852 >        for ac_prog in openmpicxx openmpiCC openmpic++ mpic++ mpicxx mpiCC hcp mpxlC_r mpxlC mpCC cmpic++
3853   do
3854    # Extract the first word of "$ac_prog", so it can be a program name with args.
3855   set dummy $ac_prog; ac_word=$2
3856   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3857   $as_echo_n "checking for $ac_word... " >&6; }
3858 < if test "${ac_cv_prog_MPICC+set}" = set; then :
3858 > if ${ac_cv_prog_MPICXX+:} false; then :
3859    $as_echo_n "(cached) " >&6
3860   else
3861 <  if test -n "$MPICC"; then
3862 <  ac_cv_prog_MPICC="$MPICC" # Let the user override the test.
3861 >  if test -n "$MPICXX"; then
3862 >  ac_cv_prog_MPICXX="$MPICXX" # Let the user override the test.
3863   else
3864   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3865   for as_dir in $PATH
# Line 4657 | Line 3868 | do
3868    test -z "$as_dir" && as_dir=.
3869      for ac_exec_ext in '' $ac_executable_extensions; do
3870    if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3871 <    ac_cv_prog_MPICC="$ac_prog"
3871 >    ac_cv_prog_MPICXX="$ac_prog"
3872      $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3873      break 2
3874    fi
# Line 4667 | Line 3878 | fi
3878  
3879   fi
3880   fi
3881 < MPICC=$ac_cv_prog_MPICC
3882 < if test -n "$MPICC"; then
3883 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPICC" >&5
3884 < $as_echo "$MPICC" >&6; }
3881 > MPICXX=$ac_cv_prog_MPICXX
3882 > if test -n "$MPICXX"; then
3883 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPICXX" >&5
3884 > $as_echo "$MPICXX" >&6; }
3885   else
3886    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3887   $as_echo "no" >&6; }
3888   fi
3889  
3890  
3891 <  test -n "$MPICC" && break
3891 >  test -n "$MPICXX" && break
3892   done
3893 < test -n "$MPICC" || MPICC="$CC"
3893 > test -n "$MPICXX" || MPICXX="$CXX"
3894  
3895 <        ax_mpi_save_CC="$CC"
3896 <        CC="$MPICC"
3895 >        ax_mpi_save_CXX="$CXX"
3896 >        CXX="$MPICXX"
3897  
3898  
3899  
3900   if test x = x"$MPILIBS"; then
3901 <        ac_fn_c_check_func "$LINENO" "MPI_Init" "ac_cv_func_MPI_Init"
3902 < if test "x$ac_cv_func_MPI_Init" = x""yes; then :
3901 >        ac_fn_cxx_check_func "$LINENO" "MPI_Init" "ac_cv_func_MPI_Init"
3902 > if test "x$ac_cv_func_MPI_Init" = xyes; then :
3903    MPILIBS=" "
3904   fi
3905  
# Line 4697 | Line 3908 | $as_echo_n "checking for MPI_Init in -lmpi... " >&6; }
3908   if test x = x"$MPILIBS"; then
3909          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpi" >&5
3910   $as_echo_n "checking for MPI_Init in -lmpi... " >&6; }
3911 < if test "${ac_cv_lib_mpi_MPI_Init+set}" = set; then :
3911 > if ${ac_cv_lib_mpi_MPI_Init+:} false; then :
3912    $as_echo_n "(cached) " >&6
3913   else
3914    ac_check_lib_save_LIBS=$LIBS
# Line 4720 | Line 3931 | _ACEOF
3931    return 0;
3932   }
3933   _ACEOF
3934 < if ac_fn_c_try_link "$LINENO"; then :
3934 > if ac_fn_cxx_try_link "$LINENO"; then :
3935    ac_cv_lib_mpi_MPI_Init=yes
3936   else
3937    ac_cv_lib_mpi_MPI_Init=no
# Line 4731 | Line 3942 | $as_echo "$ac_cv_lib_mpi_MPI_Init" >&6; }
3942   fi
3943   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpi_MPI_Init" >&5
3944   $as_echo "$ac_cv_lib_mpi_MPI_Init" >&6; }
3945 < if test "x$ac_cv_lib_mpi_MPI_Init" = x""yes; then :
3945 > if test "x$ac_cv_lib_mpi_MPI_Init" = xyes; then :
3946    MPILIBS="-lmpi"
3947   fi
3948  
# Line 4739 | Line 3950 | $as_echo_n "checking for MPI_Init in -lmpich... " >&6;
3950   if test x = x"$MPILIBS"; then
3951          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpich" >&5
3952   $as_echo_n "checking for MPI_Init in -lmpich... " >&6; }
3953 < if test "${ac_cv_lib_mpich_MPI_Init+set}" = set; then :
3953 > if ${ac_cv_lib_mpich_MPI_Init+:} false; then :
3954    $as_echo_n "(cached) " >&6
3955   else
3956    ac_check_lib_save_LIBS=$LIBS
# Line 4762 | Line 3973 | _ACEOF
3973    return 0;
3974   }
3975   _ACEOF
3976 < if ac_fn_c_try_link "$LINENO"; then :
3976 > if ac_fn_cxx_try_link "$LINENO"; then :
3977    ac_cv_lib_mpich_MPI_Init=yes
3978   else
3979    ac_cv_lib_mpich_MPI_Init=no
# Line 4773 | Line 3984 | $as_echo "$ac_cv_lib_mpich_MPI_Init" >&6; }
3984   fi
3985   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpich_MPI_Init" >&5
3986   $as_echo "$ac_cv_lib_mpich_MPI_Init" >&6; }
3987 < if test "x$ac_cv_lib_mpich_MPI_Init" = x""yes; then :
3987 > if test "x$ac_cv_lib_mpich_MPI_Init" = xyes; then :
3988    MPILIBS="-lmpich"
3989   fi
3990  
# Line 4793 | Line 4004 | _ACEOF
4004    return 0;
4005   }
4006   _ACEOF
4007 < if ac_fn_c_try_compile "$LINENO"; then :
4007 > if ac_fn_cxx_try_compile "$LINENO"; then :
4008    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4009   $as_echo "yes" >&6; }
4010   else
# Line 4804 | Line 4015 | fi
4015   rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4016   fi
4017  
4018 < CC="$ax_mpi_save_CC"
4018 > CXX="$ax_mpi_save_CXX"
4019  
4020  
4021  
4022   # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
4023   if test x = x"$MPILIBS"; then
4024          USE_MPI="no"
4025 <       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No suitable C MPI implementation found. oopse_MPI will not be built." >&5
4026 < $as_echo "$as_me: WARNING: No suitable C MPI implementation found. oopse_MPI will not be built." >&2;}
4025 >       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No suitable C++ MPI implementation found. openmd_MPI will not be built." >&5
4026 > $as_echo "$as_me: WARNING: No suitable C++ MPI implementation found. openmd_MPI will not be built." >&2;}
4027          :
4028   else
4029          USE_MPI="yes"
4030          :
4820 fi
4821
4822
4823 fi
4824 ac_ext=${ac_fc_srcext-f}
4825 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
4826 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
4827 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
4828 if test -n "$ac_tool_prefix"; then
4829  for ac_prog in gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn xlf90 f90 pgf90 pghpf epcf90 g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77
4830  do
4831    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4832 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4834 $as_echo_n "checking for $ac_word... " >&6; }
4835 if test "${ac_cv_prog_FC+set}" = set; then :
4836  $as_echo_n "(cached) " >&6
4837 else
4838  if test -n "$FC"; then
4839  ac_cv_prog_FC="$FC" # Let the user override the test.
4840 else
4841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4842 for as_dir in $PATH
4843 do
4844  IFS=$as_save_IFS
4845  test -z "$as_dir" && as_dir=.
4846    for ac_exec_ext in '' $ac_executable_extensions; do
4847  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4848    ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
4849    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4850    break 2
4851  fi
4852 done
4853  done
4854 IFS=$as_save_IFS
4855
4856 fi
4857 fi
4858 FC=$ac_cv_prog_FC
4859 if test -n "$FC"; then
4860  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5
4861 $as_echo "$FC" >&6; }
4862 else
4863  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4864 $as_echo "no" >&6; }
4865 fi
4866
4867
4868    test -n "$FC" && break
4869  done
4870 fi
4871 if test -z "$FC"; then
4872  ac_ct_FC=$FC
4873  for ac_prog in gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn xlf90 f90 pgf90 pghpf epcf90 g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77
4874 do
4875  # Extract the first word of "$ac_prog", so it can be a program name with args.
4876 set dummy $ac_prog; ac_word=$2
4877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4878 $as_echo_n "checking for $ac_word... " >&6; }
4879 if test "${ac_cv_prog_ac_ct_FC+set}" = set; then :
4880  $as_echo_n "(cached) " >&6
4881 else
4882  if test -n "$ac_ct_FC"; then
4883  ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
4884 else
4885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4886 for as_dir in $PATH
4887 do
4888  IFS=$as_save_IFS
4889  test -z "$as_dir" && as_dir=.
4890    for ac_exec_ext in '' $ac_executable_extensions; do
4891  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4892    ac_cv_prog_ac_ct_FC="$ac_prog"
4893    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4894    break 2
4895  fi
4896 done
4897  done
4898 IFS=$as_save_IFS
4899
4900 fi
4901 fi
4902 ac_ct_FC=$ac_cv_prog_ac_ct_FC
4903 if test -n "$ac_ct_FC"; then
4904  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5
4905 $as_echo "$ac_ct_FC" >&6; }
4906 else
4907  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4908 $as_echo "no" >&6; }
4909 fi
4910
4911
4912  test -n "$ac_ct_FC" && break
4913 done
4914
4915  if test "x$ac_ct_FC" = x; then
4916    FC=""
4917  else
4918    case $cross_compiling:$ac_tool_warned in
4919 yes:)
4920 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4921 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4922 ac_tool_warned=yes ;;
4923 esac
4924    FC=$ac_ct_FC
4925  fi
4926 fi
4927
4928
4929 # Provide some information about the compiler.
4930 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5
4931 set X $ac_compile
4932 ac_compiler=$2
4933 for ac_option in --version -v -V -qversion; do
4934  { { ac_try="$ac_compiler $ac_option >&5"
4935 case "(($ac_try" in
4936  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4937  *) ac_try_echo=$ac_try;;
4938 esac
4939 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4940 $as_echo "$ac_try_echo"; } >&5
4941  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4942  ac_status=$?
4943  if test -s conftest.err; then
4944    sed '10a\
4945 ... rest of stderr output deleted ...
4946         10q' conftest.err >conftest.er1
4947    cat conftest.er1 >&5
4948    rm -f conftest.er1 conftest.err
4949  fi
4950  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4951  test $ac_status = 0; }
4952 done
4953 rm -f a.out
4954
4955 # If we don't use `.F' as extension, the preprocessor is not run on the
4956 # input file.  (Note that this only needs to work for GNU compilers.)
4957 ac_save_ext=$ac_ext
4958 ac_ext=F
4959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5
4960 $as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; }
4961 if test "${ac_cv_fc_compiler_gnu+set}" = set; then :
4962  $as_echo_n "(cached) " >&6
4963 else
4964  cat > conftest.$ac_ext <<_ACEOF
4965      program main
4966 #ifndef __GNUC__
4967       choke me
4968 #endif
4969
4970      end
4971 _ACEOF
4972 if ac_fn_fc_try_compile "$LINENO"; then :
4973  ac_compiler_gnu=yes
4974 else
4975  ac_compiler_gnu=no
4031   fi
4977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4978 ac_cv_fc_compiler_gnu=$ac_compiler_gnu
4032  
4980 fi
4981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5
4982 $as_echo "$ac_cv_fc_compiler_gnu" >&6; }
4983 ac_ext=$ac_save_ext
4984 ac_test_FCFLAGS=${FCFLAGS+set}
4985 ac_save_FCFLAGS=$FCFLAGS
4986 FCFLAGS=
4987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5
4988 $as_echo_n "checking whether $FC accepts -g... " >&6; }
4989 if test "${ac_cv_prog_fc_g+set}" = set; then :
4990  $as_echo_n "(cached) " >&6
4991 else
4992  FCFLAGS=-g
4993 cat > conftest.$ac_ext <<_ACEOF
4994      program main
4033  
4996      end
4997 _ACEOF
4998 if ac_fn_fc_try_compile "$LINENO"; then :
4999  ac_cv_prog_fc_g=yes
5000 else
5001  ac_cv_prog_fc_g=no
5002 fi
5003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5004
5005 fi
5006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5
5007 $as_echo "$ac_cv_prog_fc_g" >&6; }
5008 if test "$ac_test_FCFLAGS" = set; then
5009  FCFLAGS=$ac_save_FCFLAGS
5010 elif test $ac_cv_prog_fc_g = yes; then
5011  if test "x$ac_cv_fc_compiler_gnu" = xyes; then
5012    FCFLAGS="-g -O2"
5013  else
5014    FCFLAGS="-g"
5015  fi
5016 else
5017  if test "x$ac_cv_fc_compiler_gnu" = xyes; then
5018    FCFLAGS="-O2"
5019  else
5020    FCFLAGS=
5021  fi
5022 fi
5023
5024 ac_ext=${ac_fc_srcext-f}
5025 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
5026 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
5027 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
5028
5029
4034   if test $USE_MPI != no; then :
4035  
4036 < ac_ext=${ac_fc_srcext-f}
4037 < ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
4038 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
4039 < ac_compiler_gnu=$ac_cv_fc_compiler_gnu
4036 > ac_ext=c
4037 > ac_cpp='$CPP $CPPFLAGS'
4038 > ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4039 > ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4040 > ac_compiler_gnu=$ac_cv_c_compiler_gnu
4041  
4042  
4043  
4044  
4045  
4046  
4047 <        for ac_prog in openmpif90 mpif90 mpxlf95_r mpxlf90_r mpxlf95 mpxlf90 mpf90 cmpif90c
4047 >        for ac_prog in openmpicc mpicc hcc mpxlc_r mpxlc mpcc cmpicc
4048   do
4049    # Extract the first word of "$ac_prog", so it can be a program name with args.
4050   set dummy $ac_prog; ac_word=$2
4051   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4052   $as_echo_n "checking for $ac_word... " >&6; }
4053 < if test "${ac_cv_prog_MPIFC+set}" = set; then :
4053 > if ${ac_cv_prog_MPICC+:} false; then :
4054    $as_echo_n "(cached) " >&6
4055   else
4056 <  if test -n "$MPIFC"; then
4057 <  ac_cv_prog_MPIFC="$MPIFC" # Let the user override the test.
4056 >  if test -n "$MPICC"; then
4057 >  ac_cv_prog_MPICC="$MPICC" # Let the user override the test.
4058   else
4059   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4060   for as_dir in $PATH
# Line 5058 | Line 4063 | do
4063    test -z "$as_dir" && as_dir=.
4064      for ac_exec_ext in '' $ac_executable_extensions; do
4065    if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4066 <    ac_cv_prog_MPIFC="$ac_prog"
4066 >    ac_cv_prog_MPICC="$ac_prog"
4067      $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4068      break 2
4069    fi
# Line 5068 | Line 4073 | fi
4073  
4074   fi
4075   fi
4076 < MPIFC=$ac_cv_prog_MPIFC
4077 < if test -n "$MPIFC"; then
4078 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPIFC" >&5
4079 < $as_echo "$MPIFC" >&6; }
4076 > MPICC=$ac_cv_prog_MPICC
4077 > if test -n "$MPICC"; then
4078 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPICC" >&5
4079 > $as_echo "$MPICC" >&6; }
4080   else
4081    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4082   $as_echo "no" >&6; }
4083   fi
4084  
4085  
4086 <  test -n "$MPIFC" && break
4086 >  test -n "$MPICC" && break
4087   done
4088 < test -n "$MPIFC" || MPIFC="$FC"
4088 > test -n "$MPICC" || MPICC="$CC"
4089  
4090 <        ax_mpi_save_FC="$FC"
4091 <        FC="$MPIFC"
4090 >        ax_mpi_save_CC="$CC"
4091 >        CC="$MPICC"
4092  
4093  
4094  
4095   if test x = x"$MPILIBS"; then
4096 <        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init" >&5
4097 < $as_echo_n "checking for MPI_Init... " >&6; }
5093 <                        cat > conftest.$ac_ext <<_ACEOF
5094 <      program main
5095 <      call MPI_Init
5096 <      end
5097 < _ACEOF
5098 < if ac_fn_fc_try_link "$LINENO"; then :
4096 >        ac_fn_c_check_func "$LINENO" "MPI_Init" "ac_cv_func_MPI_Init"
4097 > if test "x$ac_cv_func_MPI_Init" = xyes; then :
4098    MPILIBS=" "
5100                                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5101 $as_echo "yes" >&6; }
5102 else
5103  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5104 $as_echo "no" >&6; }
4099   fi
5106 rm -f core conftest.err conftest.$ac_objext \
5107    conftest$ac_exeext conftest.$ac_ext
5108 fi
4100  
5110        if test x = x"$MPILIBS"; then
5111                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lfmpi" >&5
5112 $as_echo_n "checking for MPI_Init in -lfmpi... " >&6; }
5113 if test "${ac_cv_lib_fmpi_MPI_Init+set}" = set; then :
5114  $as_echo_n "(cached) " >&6
5115 else
5116  ac_check_lib_save_LIBS=$LIBS
5117 LIBS="-lfmpi  $LIBS"
5118 cat > conftest.$ac_ext <<_ACEOF
5119      program main
5120      call MPI_Init
5121      end
5122 _ACEOF
5123 if ac_fn_fc_try_link "$LINENO"; then :
5124  ac_cv_lib_fmpi_MPI_Init=yes
5125 else
5126  ac_cv_lib_fmpi_MPI_Init=no
4101   fi
5128 rm -f core conftest.err conftest.$ac_objext \
5129    conftest$ac_exeext conftest.$ac_ext
5130 LIBS=$ac_check_lib_save_LIBS
5131 fi
5132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fmpi_MPI_Init" >&5
5133 $as_echo "$ac_cv_lib_fmpi_MPI_Init" >&6; }
5134 if test "x$ac_cv_lib_fmpi_MPI_Init" = x""yes; then :
5135  MPILIBS="-lfmpi"
5136 fi
4102  
5138        fi
5139        if test x = x"$MPILIBS"; then
5140                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpichf90" >&5
5141 $as_echo_n "checking for MPI_Init in -lmpichf90... " >&6; }
5142 if test "${ac_cv_lib_mpichf90_MPI_Init+set}" = set; then :
5143  $as_echo_n "(cached) " >&6
5144 else
5145  ac_check_lib_save_LIBS=$LIBS
5146 LIBS="-lmpichf90  $LIBS"
5147 cat > conftest.$ac_ext <<_ACEOF
5148      program main
5149      call MPI_Init
5150      end
5151 _ACEOF
5152 if ac_fn_fc_try_link "$LINENO"; then :
5153  ac_cv_lib_mpichf90_MPI_Init=yes
5154 else
5155  ac_cv_lib_mpichf90_MPI_Init=no
5156 fi
5157 rm -f core conftest.err conftest.$ac_objext \
5158    conftest$ac_exeext conftest.$ac_ext
5159 LIBS=$ac_check_lib_save_LIBS
5160 fi
5161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpichf90_MPI_Init" >&5
5162 $as_echo "$ac_cv_lib_mpichf90_MPI_Init" >&6; }
5163 if test "x$ac_cv_lib_mpichf90_MPI_Init" = x""yes; then :
5164  MPILIBS="-lmpichf90"
5165 fi
5166
5167        fi
5168
4103   if test x = x"$MPILIBS"; then
4104          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpi" >&5
4105   $as_echo_n "checking for MPI_Init in -lmpi... " >&6; }
4106 < if test "${ac_cv_lib_mpi_MPI_Init+set}" = set; then :
4106 > if ${ac_cv_lib_mpi_MPI_Init+:} false; then :
4107    $as_echo_n "(cached) " >&6
4108   else
4109    ac_check_lib_save_LIBS=$LIBS
4110   LIBS="-lmpi  $LIBS"
4111 < cat > conftest.$ac_ext <<_ACEOF
4112 <      program main
4113 <      call MPI_Init
4114 <      end
4111 > cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4112 > /* end confdefs.h.  */
4113 >
4114 > /* Override any GCC internal prototype to avoid an error.
4115 >   Use char because int might match the return type of a GCC
4116 >   builtin and then its argument prototype would still apply.  */
4117 > #ifdef __cplusplus
4118 > extern "C"
4119 > #endif
4120 > char MPI_Init ();
4121 > int
4122 > main ()
4123 > {
4124 > return MPI_Init ();
4125 >  ;
4126 >  return 0;
4127 > }
4128   _ACEOF
4129 < if ac_fn_fc_try_link "$LINENO"; then :
4129 > if ac_fn_c_try_link "$LINENO"; then :
4130    ac_cv_lib_mpi_MPI_Init=yes
4131   else
4132    ac_cv_lib_mpi_MPI_Init=no
# Line 5190 | Line 4137 | $as_echo "$ac_cv_lib_mpi_MPI_Init" >&6; }
4137   fi
4138   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpi_MPI_Init" >&5
4139   $as_echo "$ac_cv_lib_mpi_MPI_Init" >&6; }
4140 < if test "x$ac_cv_lib_mpi_MPI_Init" = x""yes; then :
4140 > if test "x$ac_cv_lib_mpi_MPI_Init" = xyes; then :
4141    MPILIBS="-lmpi"
4142   fi
4143  
# Line 5198 | Line 4145 | $as_echo_n "checking for MPI_Init in -lmpich... " >&6;
4145   if test x = x"$MPILIBS"; then
4146          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpich" >&5
4147   $as_echo_n "checking for MPI_Init in -lmpich... " >&6; }
4148 < if test "${ac_cv_lib_mpich_MPI_Init+set}" = set; then :
4148 > if ${ac_cv_lib_mpich_MPI_Init+:} false; then :
4149    $as_echo_n "(cached) " >&6
4150   else
4151    ac_check_lib_save_LIBS=$LIBS
4152   LIBS="-lmpich  $LIBS"
4153 < cat > conftest.$ac_ext <<_ACEOF
4154 <      program main
4155 <      call MPI_Init
4156 <      end
4153 > cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4154 > /* end confdefs.h.  */
4155 >
4156 > /* Override any GCC internal prototype to avoid an error.
4157 >   Use char because int might match the return type of a GCC
4158 >   builtin and then its argument prototype would still apply.  */
4159 > #ifdef __cplusplus
4160 > extern "C"
4161 > #endif
4162 > char MPI_Init ();
4163 > int
4164 > main ()
4165 > {
4166 > return MPI_Init ();
4167 >  ;
4168 >  return 0;
4169 > }
4170   _ACEOF
4171 < if ac_fn_fc_try_link "$LINENO"; then :
4171 > if ac_fn_c_try_link "$LINENO"; then :
4172    ac_cv_lib_mpich_MPI_Init=yes
4173   else
4174    ac_cv_lib_mpich_MPI_Init=no
# Line 5219 | Line 4179 | $as_echo "$ac_cv_lib_mpich_MPI_Init" >&6; }
4179   fi
4180   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpich_MPI_Init" >&5
4181   $as_echo "$ac_cv_lib_mpich_MPI_Init" >&6; }
4182 < if test "x$ac_cv_lib_mpich_MPI_Init" = x""yes; then :
4182 > if test "x$ac_cv_lib_mpich_MPI_Init" = xyes; then :
4183    MPILIBS="-lmpich"
4184   fi
4185  
4186   fi
4187  
4188   if test x != x"$MPILIBS"; then
4189 <        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpif.h" >&5
4190 < $as_echo_n "checking for mpif.h... " >&6; }
4191 <        cat > conftest.$ac_ext <<_ACEOF
4192 <      program main
4193 <      include 'mpif.h'
4194 <      end
4189 >        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpi.h" >&5
4190 > $as_echo_n "checking for mpi.h... " >&6; }
4191 >        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4192 > /* end confdefs.h.  */
4193 > #include <mpi.h>
4194 > int
4195 > main ()
4196 > {
4197 >
4198 >  ;
4199 >  return 0;
4200 > }
4201   _ACEOF
4202 < if ac_fn_fc_try_compile "$LINENO"; then :
4202 > if ac_fn_c_try_compile "$LINENO"; then :
4203    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4204   $as_echo "yes" >&6; }
4205   else
# Line 5244 | Line 4210 | fi
4210   rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4211   fi
4212  
4213 < FC="$ax_mpi_save_FC"
4213 > CC="$ax_mpi_save_CC"
4214  
4215  
4216  
4217   # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
4218   if test x = x"$MPILIBS"; then
4219          USE_MPI="no"
4220 <       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No suitable Fortran MPI implementation found. oopse_MPI will not be built." >&5
4221 < $as_echo "$as_me: WARNING: No suitable Fortran MPI implementation found. oopse_MPI will not be built." >&2;}
4220 >       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No suitable C MPI implementation found. openmd_MPI will not be built." >&5
4221 > $as_echo "$as_me: WARNING: No suitable C MPI implementation found. openmd_MPI will not be built." >&2;}
4222          :
4223   else
4224          USE_MPI="yes"
# Line 5265 | Line 4231 | if test $USE_MPI != no; then :
4231  
4232          CXX=$MPICXX
4233          CC=$MPICC
4234 <        FC=$MPIFC
4234 >        LIBS="$MPILIBS $LIBS"
4235  
4236 < fi
4236 > else
4237  
4238 <
4239 < # Checks for programs.
4240 < ac_ext=cpp
5275 < ac_cpp='$CXXCPP $CPPFLAGS'
5276 < ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5277 < ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5278 < ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5279 < if test -z "$CXX"; then
5280 <  if test -n "$CCC"; then
5281 <    CXX=$CCC
5282 <  else
5283 <    if test -n "$ac_tool_prefix"; then
5284 <  for ac_prog in $CXX icpc pathCC pgCC c++ xlc++ xlC g++ CC
5285 <  do
5286 <    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5287 < set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5288 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5289 < $as_echo_n "checking for $ac_word... " >&6; }
5290 < if test "${ac_cv_prog_CXX+set}" = set; then :
5291 <  $as_echo_n "(cached) " >&6
5292 < else
5293 <  if test -n "$CXX"; then
5294 <  ac_cv_prog_CXX="$CXX" # Let the user override the test.
5295 < else
5296 < as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5297 < for as_dir in $PATH
5298 < do
5299 <  IFS=$as_save_IFS
5300 <  test -z "$as_dir" && as_dir=.
5301 <    for ac_exec_ext in '' $ac_executable_extensions; do
5302 <  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5303 <    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5304 <    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5305 <    break 2
5306 <  fi
5307 < done
5308 <  done
5309 < IFS=$as_save_IFS
5310 <
5311 < fi
5312 < fi
5313 < CXX=$ac_cv_prog_CXX
5314 < if test -n "$CXX"; then
5315 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5316 < $as_echo "$CXX" >&6; }
5317 < else
5318 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5319 < $as_echo "no" >&6; }
5320 < fi
5321 <
5322 <
5323 <    test -n "$CXX" && break
5324 <  done
5325 < fi
5326 < if test -z "$CXX"; then
5327 <  ac_ct_CXX=$CXX
5328 <  for ac_prog in $CXX icpc pathCC pgCC c++ xlc++ xlC g++ CC
5329 < do
5330 <  # Extract the first word of "$ac_prog", so it can be a program name with args.
5331 < set dummy $ac_prog; ac_word=$2
5332 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5333 < $as_echo_n "checking for $ac_word... " >&6; }
5334 < if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
5335 <  $as_echo_n "(cached) " >&6
5336 < else
5337 <  if test -n "$ac_ct_CXX"; then
5338 <  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5339 < else
5340 < as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5341 < for as_dir in $PATH
5342 < do
5343 <  IFS=$as_save_IFS
5344 <  test -z "$as_dir" && as_dir=.
5345 <    for ac_exec_ext in '' $ac_executable_extensions; do
5346 <  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5347 <    ac_cv_prog_ac_ct_CXX="$ac_prog"
5348 <    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5349 <    break 2
5350 <  fi
5351 < done
5352 <  done
5353 < IFS=$as_save_IFS
5354 <
5355 < fi
5356 < fi
5357 < ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5358 < if test -n "$ac_ct_CXX"; then
5359 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5360 < $as_echo "$ac_ct_CXX" >&6; }
5361 < else
5362 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5363 < $as_echo "no" >&6; }
5364 < fi
5365 <
5366 <
5367 <  test -n "$ac_ct_CXX" && break
5368 < done
5369 <
5370 <  if test "x$ac_ct_CXX" = x; then
5371 <    CXX="g++"
5372 <  else
5373 <    case $cross_compiling:$ac_tool_warned in
5374 < yes:)
5375 < { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5376 < $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5377 < ac_tool_warned=yes ;;
5378 < esac
5379 <    CXX=$ac_ct_CXX
5380 <  fi
5381 < fi
5382 <
5383 <  fi
5384 < fi
5385 < # Provide some information about the compiler.
5386 < $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5387 < set X $ac_compile
5388 < ac_compiler=$2
5389 < for ac_option in --version -v -V -qversion; do
5390 <  { { ac_try="$ac_compiler $ac_option >&5"
5391 < case "(($ac_try" in
5392 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5393 <  *) ac_try_echo=$ac_try;;
5394 < esac
5395 < eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5396 < $as_echo "$ac_try_echo"; } >&5
5397 <  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5398 <  ac_status=$?
5399 <  if test -s conftest.err; then
5400 <    sed '10a\
5401 < ... rest of stderr output deleted ...
5402 <         10q' conftest.err >conftest.er1
5403 <    cat conftest.er1 >&5
5404 <    rm -f conftest.er1 conftest.err
5405 <  fi
5406 <  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5407 <  test $ac_status = 0; }
5408 < done
5409 <
5410 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5411 < $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5412 < if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
5413 <  $as_echo_n "(cached) " >&6
5414 < else
5415 <  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5416 < /* end confdefs.h.  */
5417 <
5418 < int
5419 < main ()
5420 < {
5421 < #ifndef __GNUC__
5422 <       choke me
5423 < #endif
5424 <
5425 <  ;
5426 <  return 0;
5427 < }
5428 < _ACEOF
5429 < if ac_fn_cxx_try_compile "$LINENO"; then :
5430 <  ac_compiler_gnu=yes
5431 < else
5432 <  ac_compiler_gnu=no
5433 < fi
5434 < rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5435 < ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5436 <
5437 < fi
5438 < { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5439 < $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5440 < if test $ac_compiler_gnu = yes; then
5441 <  GXX=yes
5442 < else
5443 <  GXX=
5444 < fi
5445 < ac_test_CXXFLAGS=${CXXFLAGS+set}
5446 < ac_save_CXXFLAGS=$CXXFLAGS
5447 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5448 < $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5449 < if test "${ac_cv_prog_cxx_g+set}" = set; then :
5450 <  $as_echo_n "(cached) " >&6
5451 < else
5452 <  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5453 <   ac_cxx_werror_flag=yes
5454 <   ac_cv_prog_cxx_g=no
5455 <   CXXFLAGS="-g"
5456 <   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5457 < /* end confdefs.h.  */
5458 <
5459 < int
5460 < main ()
5461 < {
5462 <
5463 <  ;
5464 <  return 0;
5465 < }
5466 < _ACEOF
5467 < if ac_fn_cxx_try_compile "$LINENO"; then :
5468 <  ac_cv_prog_cxx_g=yes
5469 < else
5470 <  CXXFLAGS=""
5471 <      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5472 < /* end confdefs.h.  */
5473 <
5474 < int
5475 < main ()
5476 < {
5477 <
5478 <  ;
5479 <  return 0;
5480 < }
5481 < _ACEOF
5482 < if ac_fn_cxx_try_compile "$LINENO"; then :
5483 <
5484 < else
5485 <  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5486 <         CXXFLAGS="-g"
5487 <         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5488 < /* end confdefs.h.  */
5489 <
5490 < int
5491 < main ()
5492 < {
5493 <
5494 <  ;
5495 <  return 0;
5496 < }
5497 < _ACEOF
5498 < if ac_fn_cxx_try_compile "$LINENO"; then :
5499 <  ac_cv_prog_cxx_g=yes
5500 < fi
5501 < rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5502 < fi
5503 < rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5504 < fi
5505 < rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5506 <   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5507 < fi
5508 < { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5509 < $as_echo "$ac_cv_prog_cxx_g" >&6; }
5510 < if test "$ac_test_CXXFLAGS" = set; then
5511 <  CXXFLAGS=$ac_save_CXXFLAGS
5512 < elif test $ac_cv_prog_cxx_g = yes; then
5513 <  if test "$GXX" = yes; then
5514 <    CXXFLAGS="-g -O2"
5515 <  else
5516 <    CXXFLAGS="-g"
5517 <  fi
5518 < else
5519 <  if test "$GXX" = yes; then
5520 <    CXXFLAGS="-O2"
5521 <  else
5522 <    CXXFLAGS=
5523 <  fi
5524 < fi
5525 < ac_ext=${ac_fc_srcext-f}
5526 < ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
5527 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
5528 < ac_compiler_gnu=$ac_cv_fc_compiler_gnu
5529 <
5530 < ac_ext=c
5531 < ac_cpp='$CPP $CPPFLAGS'
5532 < ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5533 < ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5534 < ac_compiler_gnu=$ac_cv_c_compiler_gnu
5535 < if test -n "$ac_tool_prefix"; then
5536 <  for ac_prog in $CC icc pathcc pgcc cc xlc gcc
5537 <  do
5538 <    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5539 < set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5540 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5541 < $as_echo_n "checking for $ac_word... " >&6; }
5542 < if test "${ac_cv_prog_CC+set}" = set; then :
5543 <  $as_echo_n "(cached) " >&6
5544 < else
5545 <  if test -n "$CC"; then
5546 <  ac_cv_prog_CC="$CC" # Let the user override the test.
5547 < else
5548 < as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5549 < for as_dir in $PATH
5550 < do
5551 <  IFS=$as_save_IFS
5552 <  test -z "$as_dir" && as_dir=.
5553 <    for ac_exec_ext in '' $ac_executable_extensions; do
5554 <  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5555 <    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5556 <    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5557 <    break 2
5558 <  fi
5559 < done
5560 <  done
5561 < IFS=$as_save_IFS
5562 <
5563 < fi
5564 < fi
5565 < CC=$ac_cv_prog_CC
5566 < if test -n "$CC"; then
5567 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5568 < $as_echo "$CC" >&6; }
5569 < else
5570 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5571 < $as_echo "no" >&6; }
5572 < fi
5573 <
5574 <
5575 <    test -n "$CC" && break
5576 <  done
5577 < fi
5578 < if test -z "$CC"; then
5579 <  ac_ct_CC=$CC
5580 <  for ac_prog in $CC icc pathcc pgcc cc xlc gcc
5581 < do
5582 <  # Extract the first word of "$ac_prog", so it can be a program name with args.
5583 < set dummy $ac_prog; ac_word=$2
5584 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5585 < $as_echo_n "checking for $ac_word... " >&6; }
5586 < if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5587 <  $as_echo_n "(cached) " >&6
5588 < else
5589 <  if test -n "$ac_ct_CC"; then
5590 <  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5591 < else
5592 < as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5593 < for as_dir in $PATH
5594 < do
5595 <  IFS=$as_save_IFS
5596 <  test -z "$as_dir" && as_dir=.
5597 <    for ac_exec_ext in '' $ac_executable_extensions; do
5598 <  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5599 <    ac_cv_prog_ac_ct_CC="$ac_prog"
5600 <    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5601 <    break 2
5602 <  fi
5603 < done
5604 <  done
5605 < IFS=$as_save_IFS
5606 <
5607 < fi
5608 < fi
5609 < ac_ct_CC=$ac_cv_prog_ac_ct_CC
5610 < if test -n "$ac_ct_CC"; then
5611 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5612 < $as_echo "$ac_ct_CC" >&6; }
5613 < else
5614 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5615 < $as_echo "no" >&6; }
5616 < fi
5617 <
5618 <
5619 <  test -n "$ac_ct_CC" && break
5620 < done
5621 <
5622 <  if test "x$ac_ct_CC" = x; then
5623 <    CC=""
5624 <  else
5625 <    case $cross_compiling:$ac_tool_warned in
5626 < yes:)
5627 < { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5628 < $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5629 < ac_tool_warned=yes ;;
5630 < esac
5631 <    CC=$ac_ct_CC
5632 <  fi
5633 < fi
5634 <
5635 <
5636 < test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5637 < $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5638 < as_fn_error "no acceptable C compiler found in \$PATH
5639 < See \`config.log' for more details." "$LINENO" 5; }
5640 <
5641 < # Provide some information about the compiler.
5642 < $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5643 < set X $ac_compile
5644 < ac_compiler=$2
5645 < for ac_option in --version -v -V -qversion; do
5646 <  { { ac_try="$ac_compiler $ac_option >&5"
5647 < case "(($ac_try" in
5648 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5649 <  *) ac_try_echo=$ac_try;;
5650 < esac
5651 < eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5652 < $as_echo "$ac_try_echo"; } >&5
5653 <  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5654 <  ac_status=$?
5655 <  if test -s conftest.err; then
5656 <    sed '10a\
5657 < ... rest of stderr output deleted ...
5658 <         10q' conftest.err >conftest.er1
5659 <    cat conftest.er1 >&5
5660 <    rm -f conftest.er1 conftest.err
5661 <  fi
5662 <  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5663 <  test $ac_status = 0; }
5664 < done
5665 <
5666 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5667 < $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5668 < if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5669 <  $as_echo_n "(cached) " >&6
5670 < else
5671 <  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5672 < /* end confdefs.h.  */
5673 <
5674 < int
5675 < main ()
5676 < {
5677 < #ifndef __GNUC__
5678 <       choke me
5679 < #endif
5680 <
5681 <  ;
5682 <  return 0;
5683 < }
5684 < _ACEOF
5685 < if ac_fn_c_try_compile "$LINENO"; then :
5686 <  ac_compiler_gnu=yes
5687 < else
5688 <  ac_compiler_gnu=no
5689 < fi
5690 < rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5691 < ac_cv_c_compiler_gnu=$ac_compiler_gnu
5692 <
5693 < fi
5694 < { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5695 < $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5696 < if test $ac_compiler_gnu = yes; then
5697 <  GCC=yes
5698 < else
5699 <  GCC=
5700 < fi
5701 < ac_test_CFLAGS=${CFLAGS+set}
5702 < ac_save_CFLAGS=$CFLAGS
5703 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5704 < $as_echo_n "checking whether $CC accepts -g... " >&6; }
5705 < if test "${ac_cv_prog_cc_g+set}" = set; then :
5706 <  $as_echo_n "(cached) " >&6
5707 < else
5708 <  ac_save_c_werror_flag=$ac_c_werror_flag
5709 <   ac_c_werror_flag=yes
5710 <   ac_cv_prog_cc_g=no
5711 <   CFLAGS="-g"
5712 <   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5713 < /* end confdefs.h.  */
5714 <
5715 < int
5716 < main ()
5717 < {
5718 <
5719 <  ;
5720 <  return 0;
5721 < }
5722 < _ACEOF
5723 < if ac_fn_c_try_compile "$LINENO"; then :
5724 <  ac_cv_prog_cc_g=yes
5725 < else
5726 <  CFLAGS=""
5727 <      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5728 < /* end confdefs.h.  */
5729 <
5730 < int
5731 < main ()
5732 < {
5733 <
5734 <  ;
5735 <  return 0;
5736 < }
5737 < _ACEOF
5738 < if ac_fn_c_try_compile "$LINENO"; then :
5739 <
5740 < else
5741 <  ac_c_werror_flag=$ac_save_c_werror_flag
5742 <         CFLAGS="-g"
5743 <         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5744 < /* end confdefs.h.  */
5745 <
5746 < int
5747 < main ()
5748 < {
5749 <
5750 <  ;
5751 <  return 0;
5752 < }
5753 < _ACEOF
5754 < if ac_fn_c_try_compile "$LINENO"; then :
5755 <  ac_cv_prog_cc_g=yes
5756 < fi
5757 < rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5758 < fi
5759 < rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5760 < fi
5761 < rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5762 <   ac_c_werror_flag=$ac_save_c_werror_flag
5763 < fi
5764 < { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5765 < $as_echo "$ac_cv_prog_cc_g" >&6; }
5766 < if test "$ac_test_CFLAGS" = set; then
5767 <  CFLAGS=$ac_save_CFLAGS
5768 < elif test $ac_cv_prog_cc_g = yes; then
5769 <  if test "$GCC" = yes; then
5770 <    CFLAGS="-g -O2"
5771 <  else
5772 <    CFLAGS="-g"
5773 <  fi
5774 < else
5775 <  if test "$GCC" = yes; then
5776 <    CFLAGS="-O2"
5777 <  else
5778 <    CFLAGS=
5779 <  fi
5780 < fi
5781 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5782 < $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5783 < if test "${ac_cv_prog_cc_c89+set}" = set; then :
5784 <  $as_echo_n "(cached) " >&6
5785 < else
5786 <  ac_cv_prog_cc_c89=no
5787 < ac_save_CC=$CC
5788 < cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5789 < /* end confdefs.h.  */
5790 < #include <stdarg.h>
5791 < #include <stdio.h>
5792 < #include <sys/types.h>
5793 < #include <sys/stat.h>
5794 < /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5795 < struct buf { int x; };
5796 < FILE * (*rcsopen) (struct buf *, struct stat *, int);
5797 < static char *e (p, i)
5798 <     char **p;
5799 <     int i;
5800 < {
5801 <  return p[i];
5802 < }
5803 < static char *f (char * (*g) (char **, int), char **p, ...)
5804 < {
5805 <  char *s;
5806 <  va_list v;
5807 <  va_start (v,p);
5808 <  s = g (p, va_arg (v,int));
5809 <  va_end (v);
5810 <  return s;
5811 < }
4238 >        CXX=$save_CXX
4239 >        CC=$save_CC
4240 >        LIBS=$save_LIBS
4241  
5813 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5814   function prototypes and stuff, but not '\xHH' hex character constants.
5815   These don't provoke an error unfortunately, instead are silently treated
5816   as 'x'.  The following induces an error, until -std is added to get
5817   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5818   array size at least.  It's necessary to write '\x00'==0 to get something
5819   that's true only with -std.  */
5820 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4242  
5822 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5823   inside strings and character constants.  */
5824 #define FOO(x) 'x'
5825 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5826
5827 int test (int i, double x);
5828 struct s1 {int (*f) (int a);};
5829 struct s2 {int (*f) (double a);};
5830 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5831 int argc;
5832 char **argv;
5833 int
5834 main ()
5835 {
5836 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5837  ;
5838  return 0;
5839 }
5840 _ACEOF
5841 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5842        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5843 do
5844  CC="$ac_save_CC $ac_arg"
5845  if ac_fn_c_try_compile "$LINENO"; then :
5846  ac_cv_prog_cc_c89=$ac_arg
4243   fi
5848 rm -f core conftest.err conftest.$ac_objext
5849  test "x$ac_cv_prog_cc_c89" != "xno" && break
5850 done
5851 rm -f conftest.$ac_ext
5852 CC=$ac_save_CC
4244  
5854 fi
5855 # AC_CACHE_VAL
5856 case "x$ac_cv_prog_cc_c89" in
5857  x)
5858    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5859 $as_echo "none needed" >&6; } ;;
5860  xno)
5861    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5862 $as_echo "unsupported" >&6; } ;;
5863  *)
5864    CC="$CC $ac_cv_prog_cc_c89"
5865    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5866 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5867 esac
5868 if test "x$ac_cv_prog_cc_c89" != xno; then :
4245  
4246 < fi
5871 <
5872 < ac_ext=${ac_fc_srcext-f}
5873 < ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
5874 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
5875 < ac_compiler_gnu=$ac_cv_fc_compiler_gnu
5876 <
5877 < ac_ext=${ac_fc_srcext-f}
5878 < ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
5879 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
5880 < ac_compiler_gnu=$ac_cv_fc_compiler_gnu
5881 < if test -n "$ac_tool_prefix"; then
5882 <  for ac_prog in $FC ifort ifc pathf95 pgf95 xlf95 lf95 epcf90 pathf90 xlf90 f95 f90 gfortran g95 fort
5883 <  do
5884 <    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5885 < set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5886 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5887 < $as_echo_n "checking for $ac_word... " >&6; }
5888 < if test "${ac_cv_prog_FC+set}" = set; then :
5889 <  $as_echo_n "(cached) " >&6
5890 < else
5891 <  if test -n "$FC"; then
5892 <  ac_cv_prog_FC="$FC" # Let the user override the test.
5893 < else
5894 < as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5895 < for as_dir in $PATH
5896 < do
5897 <  IFS=$as_save_IFS
5898 <  test -z "$as_dir" && as_dir=.
5899 <    for ac_exec_ext in '' $ac_executable_extensions; do
5900 <  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5901 <    ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
5902 <    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5903 <    break 2
5904 <  fi
5905 < done
5906 <  done
5907 < IFS=$as_save_IFS
5908 <
5909 < fi
5910 < fi
5911 < FC=$ac_cv_prog_FC
5912 < if test -n "$FC"; then
5913 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5
5914 < $as_echo "$FC" >&6; }
5915 < else
5916 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5917 < $as_echo "no" >&6; }
5918 < fi
5919 <
5920 <
5921 <    test -n "$FC" && break
5922 <  done
5923 < fi
5924 < if test -z "$FC"; then
5925 <  ac_ct_FC=$FC
5926 <  for ac_prog in $FC ifort ifc pathf95 pgf95 xlf95 lf95 epcf90 pathf90 xlf90 f95 f90 gfortran g95 fort
5927 < do
5928 <  # Extract the first word of "$ac_prog", so it can be a program name with args.
5929 < set dummy $ac_prog; ac_word=$2
5930 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5931 < $as_echo_n "checking for $ac_word... " >&6; }
5932 < if test "${ac_cv_prog_ac_ct_FC+set}" = set; then :
5933 <  $as_echo_n "(cached) " >&6
5934 < else
5935 <  if test -n "$ac_ct_FC"; then
5936 <  ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
5937 < else
5938 < as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5939 < for as_dir in $PATH
5940 < do
5941 <  IFS=$as_save_IFS
5942 <  test -z "$as_dir" && as_dir=.
5943 <    for ac_exec_ext in '' $ac_executable_extensions; do
5944 <  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5945 <    ac_cv_prog_ac_ct_FC="$ac_prog"
5946 <    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5947 <    break 2
5948 <  fi
5949 < done
5950 <  done
5951 < IFS=$as_save_IFS
5952 <
5953 < fi
5954 < fi
5955 < ac_ct_FC=$ac_cv_prog_ac_ct_FC
5956 < if test -n "$ac_ct_FC"; then
5957 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5
5958 < $as_echo "$ac_ct_FC" >&6; }
5959 < else
5960 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5961 < $as_echo "no" >&6; }
5962 < fi
5963 <
5964 <
5965 <  test -n "$ac_ct_FC" && break
5966 < done
5967 <
5968 <  if test "x$ac_ct_FC" = x; then
5969 <    FC=""
5970 <  else
5971 <    case $cross_compiling:$ac_tool_warned in
5972 < yes:)
5973 < { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5974 < $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5975 < ac_tool_warned=yes ;;
5976 < esac
5977 <    FC=$ac_ct_FC
5978 <  fi
5979 < fi
5980 <
5981 <
5982 < # Provide some information about the compiler.
5983 < $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5
5984 < set X $ac_compile
5985 < ac_compiler=$2
5986 < for ac_option in --version -v -V -qversion; do
5987 <  { { ac_try="$ac_compiler $ac_option >&5"
5988 < case "(($ac_try" in
5989 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5990 <  *) ac_try_echo=$ac_try;;
5991 < esac
5992 < eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5993 < $as_echo "$ac_try_echo"; } >&5
5994 <  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5995 <  ac_status=$?
5996 <  if test -s conftest.err; then
5997 <    sed '10a\
5998 < ... rest of stderr output deleted ...
5999 <         10q' conftest.err >conftest.er1
6000 <    cat conftest.er1 >&5
6001 <    rm -f conftest.er1 conftest.err
6002 <  fi
6003 <  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6004 <  test $ac_status = 0; }
6005 < done
6006 < rm -f a.out
6007 <
6008 < # If we don't use `.F' as extension, the preprocessor is not run on the
6009 < # input file.  (Note that this only needs to work for GNU compilers.)
6010 < ac_save_ext=$ac_ext
6011 < ac_ext=F
6012 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5
6013 < $as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; }
6014 < if test "${ac_cv_fc_compiler_gnu+set}" = set; then :
6015 <  $as_echo_n "(cached) " >&6
6016 < else
6017 <  cat > conftest.$ac_ext <<_ACEOF
6018 <      program main
6019 < #ifndef __GNUC__
6020 <       choke me
6021 < #endif
6022 <
6023 <      end
6024 < _ACEOF
6025 < if ac_fn_fc_try_compile "$LINENO"; then :
6026 <  ac_compiler_gnu=yes
6027 < else
6028 <  ac_compiler_gnu=no
6029 < fi
6030 < rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6031 < ac_cv_fc_compiler_gnu=$ac_compiler_gnu
6032 <
6033 < fi
6034 < { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5
6035 < $as_echo "$ac_cv_fc_compiler_gnu" >&6; }
6036 < ac_ext=$ac_save_ext
6037 < ac_test_FCFLAGS=${FCFLAGS+set}
6038 < ac_save_FCFLAGS=$FCFLAGS
6039 < FCFLAGS=
6040 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5
6041 < $as_echo_n "checking whether $FC accepts -g... " >&6; }
6042 < if test "${ac_cv_prog_fc_g+set}" = set; then :
6043 <  $as_echo_n "(cached) " >&6
6044 < else
6045 <  FCFLAGS=-g
6046 < cat > conftest.$ac_ext <<_ACEOF
6047 <      program main
6048 <
6049 <      end
6050 < _ACEOF
6051 < if ac_fn_fc_try_compile "$LINENO"; then :
6052 <  ac_cv_prog_fc_g=yes
6053 < else
6054 <  ac_cv_prog_fc_g=no
6055 < fi
6056 < rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6057 <
6058 < fi
6059 < { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5
6060 < $as_echo "$ac_cv_prog_fc_g" >&6; }
6061 < if test "$ac_test_FCFLAGS" = set; then
6062 <  FCFLAGS=$ac_save_FCFLAGS
6063 < elif test $ac_cv_prog_fc_g = yes; then
6064 <  if test "x$ac_cv_fc_compiler_gnu" = xyes; then
6065 <    FCFLAGS="-g -O2"
6066 <  else
6067 <    FCFLAGS="-g"
6068 <  fi
6069 < else
6070 <  if test "x$ac_cv_fc_compiler_gnu" = xyes; then
6071 <    FCFLAGS="-O2"
6072 <  else
6073 <    FCFLAGS=
6074 <  fi
6075 < fi
6076 <
6077 < ac_ext=${ac_fc_srcext-f}
6078 < ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
6079 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
6080 < ac_compiler_gnu=$ac_cv_fc_compiler_gnu
6081 <
4246 > # Checks for programs.
4247   ac_ext=c
4248   ac_cpp='$CPP $CPPFLAGS'
4249   ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
# Line 6091 | Line 4256 | if test -z "$CPP"; then
4256    CPP=
4257   fi
4258   if test -z "$CPP"; then
4259 <  if test "${ac_cv_prog_CPP+set}" = set; then :
4259 >  if ${ac_cv_prog_CPP+:} false; then :
4260    $as_echo_n "(cached) " >&6
4261   else
4262        # Double quotes because CPP needs to be expanded
# Line 6121 | Line 4286 | fi
4286    # Broken: fails on valid input.
4287   continue
4288   fi
4289 < rm -f conftest.err conftest.$ac_ext
4289 > rm -f conftest.err conftest.i conftest.$ac_ext
4290  
4291    # OK, works on sane cases.  Now check whether nonexistent headers
4292    # can be detected and how.
# Line 6137 | Line 4302 | fi
4302   ac_preproc_ok=:
4303   break
4304   fi
4305 < rm -f conftest.err conftest.$ac_ext
4305 > rm -f conftest.err conftest.i conftest.$ac_ext
4306  
4307   done
4308   # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4309 < rm -f conftest.err conftest.$ac_ext
4309 > rm -f conftest.i conftest.err conftest.$ac_ext
4310   if $ac_preproc_ok; then :
4311    break
4312   fi
# Line 6180 | Line 4345 | fi
4345    # Broken: fails on valid input.
4346   continue
4347   fi
4348 < rm -f conftest.err conftest.$ac_ext
4348 > rm -f conftest.err conftest.i conftest.$ac_ext
4349  
4350    # OK, works on sane cases.  Now check whether nonexistent headers
4351    # can be detected and how.
# Line 6196 | Line 4361 | fi
4361   ac_preproc_ok=:
4362   break
4363   fi
4364 < rm -f conftest.err conftest.$ac_ext
4364 > rm -f conftest.err conftest.i conftest.$ac_ext
4365  
4366   done
4367   # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4368 < rm -f conftest.err conftest.$ac_ext
4368 > rm -f conftest.i conftest.err conftest.$ac_ext
4369   if $ac_preproc_ok; then :
4370  
4371   else
4372    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4373   $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4374 < as_fn_error "C preprocessor \"$CPP\" fails sanity check
4375 < See \`config.log' for more details." "$LINENO" 5; }
4374 > as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4375 > See \`config.log' for more details" "$LINENO" 5; }
4376   fi
4377  
4378 < ac_ext=${ac_fc_srcext-f}
4379 < ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
4380 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
4381 < ac_compiler_gnu=$ac_cv_fc_compiler_gnu
4378 > ac_ext=c
4379 > ac_cpp='$CPP $CPPFLAGS'
4380 > ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4381 > ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4382 > ac_compiler_gnu=$ac_cv_c_compiler_gnu
4383  
4384   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4385   $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4386 < if test "${ac_cv_path_GREP+set}" = set; then :
4386 > if ${ac_cv_path_GREP+:} false; then :
4387    $as_echo_n "(cached) " >&6
4388   else
4389    if test -z "$GREP"; then
# Line 6266 | Line 4432 | IFS=$as_save_IFS
4432    done
4433   IFS=$as_save_IFS
4434    if test -z "$ac_cv_path_GREP"; then
4435 <    as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4435 >    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4436    fi
4437   else
4438    ac_cv_path_GREP=$GREP
# Line 6280 | Line 4446 | $as_echo_n "checking for egrep... " >&6; }
4446  
4447   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4448   $as_echo_n "checking for egrep... " >&6; }
4449 < if test "${ac_cv_path_EGREP+set}" = set; then :
4449 > if ${ac_cv_path_EGREP+:} false; then :
4450    $as_echo_n "(cached) " >&6
4451   else
4452    if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
# Line 6332 | Line 4498 | IFS=$as_save_IFS
4498    done
4499   IFS=$as_save_IFS
4500    if test -z "$ac_cv_path_EGREP"; then
4501 <    as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4501 >    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4502    fi
4503   else
4504    ac_cv_path_EGREP=$EGREP
# Line 6360 | Line 4526 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]
4526   $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4527   set x ${MAKE-make}
4528   ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4529 < if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
4529 > if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4530    $as_echo_n "(cached) " >&6
4531   else
4532    cat >conftest.make <<\_ACEOF
# Line 6368 | Line 4534 | _ACEOF
4534   all:
4535          @echo '@@@%%%=$(MAKE)=@@@%%%'
4536   _ACEOF
4537 < # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4537 > # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4538   case `${MAKE-make} -f conftest.make 2>/dev/null` in
4539    *@@@%%%=?*=@@@%%%*)
4540      eval ac_cv_prog_make_${ac_make}_set=yes;;
# Line 6392 | Line 4558 | $as_echo_n "checking for $ac_word... " >&6; }
4558   set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4559   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4560   $as_echo_n "checking for $ac_word... " >&6; }
4561 < if test "${ac_cv_prog_RANLIB+set}" = set; then :
4561 > if ${ac_cv_prog_RANLIB+:} false; then :
4562    $as_echo_n "(cached) " >&6
4563   else
4564    if test -n "$RANLIB"; then
# Line 6432 | Line 4598 | $as_echo_n "checking for $ac_word... " >&6; }
4598   set dummy ranlib; ac_word=$2
4599   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4600   $as_echo_n "checking for $ac_word... " >&6; }
4601 < if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4601 > if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4602    $as_echo_n "(cached) " >&6
4603   else
4604    if test -n "$ac_ct_RANLIB"; then
# Line 6484 | Line 4650 | $as_echo_n "checking for $ac_word... " >&6; }
4650   set dummy perl; ac_word=$2
4651   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4652   $as_echo_n "checking for $ac_word... " >&6; }
4653 < if test "${ac_cv_path_PERLINTERP+set}" = set; then :
4653 > if ${ac_cv_path_PERLINTERP+:} false; then :
4654    $as_echo_n "(cached) " >&6
4655   else
4656    case $PERLINTERP in
# Line 6534 | Line 4700 | $as_echo_n "checking whether explicit instead of detec
4700  
4701     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether explicit instead of detected sharpbang is to be used" >&5
4702   $as_echo_n "checking whether explicit instead of detected sharpbang is to be used... " >&6; }
4703 < if test "${ax_cv_opt_perl_shebang+set}" = set; then :
4703 > if ${ax_cv_opt_perl_shebang+:} false; then :
4704    $as_echo_n "(cached) " >&6
4705   else
4706     case "$opt_perl_shebang" in
# Line 6560 | Line 4726 | $as_echo_n "checking for kernel sharpbang invocation t
4726     negclass="[^']"; # must leave this comment:  m4 will remove the outer brackets for us, heheh
4727     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kernel sharpbang invocation to start perl" >&5
4728   $as_echo_n "checking for kernel sharpbang invocation to start perl... " >&6; }
4729 < if test "${ac_cv_sys_kernshrpbang_perl+set}" = set; then :
4729 > if ${ac_cv_sys_kernshrpbang_perl+:} false; then :
4730    $as_echo_n "(cached) " >&6
4731   else
4732    _somian_kspb_perl=`echo "$_somian_shbangperl" | sed -ne"s|.*='\($negclass*\)';$|\1|p"`
# Line 6616 | Line 4782 | if test -z "$INSTALL"; then
4782   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4783   $as_echo_n "checking for a BSD-compatible install... " >&6; }
4784   if test -z "$INSTALL"; then
4785 < if test "${ac_cv_path_install+set}" = set; then :
4785 > if ${ac_cv_path_install+:} false; then :
4786    $as_echo_n "(cached) " >&6
4787   else
4788    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
# Line 6696 | Line 4862 | esac
4862     x/*) ;;
4863     *) INSTALL=`pwd`/ac-tools/"shtool install -c" ;
4864   esac
4865 < MKINSTALLDIRS=`pwd`/ac-tools/"shtool mkdir -p -f"
4865 > MKINSTALLDIRS=`pwd`/ac-tools/"shtool mkdir -p -f -m 755"
4866   # Extract the first word of "ar", so it can be a program name with args.
4867   set dummy ar; ac_word=$2
4868   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4869   $as_echo_n "checking for $ac_word... " >&6; }
4870 < if test "${ac_cv_prog_AR+set}" = set; then :
4870 > if ${ac_cv_prog_AR+:} false; then :
4871    $as_echo_n "(cached) " >&6
4872   else
4873    if test -n "$AR"; then
# Line 6800 | Line 4966 | if diff "$cache_file" confcache >/dev/null 2>&1; then
4966       :end' >>confcache
4967   if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
4968    if test -w "$cache_file"; then
4969 <    test "x$cache_file" != "x/dev/null" &&
4969 >    if test "x$cache_file" != "x/dev/null"; then
4970        { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
4971   $as_echo "$as_me: updating cache $cache_file" >&6;}
4972 <    cat confcache >$cache_file
4972 >      if test ! -f "$cache_file" || test -h "$cache_file"; then
4973 >        cat confcache >"$cache_file"
4974 >      else
4975 >        case $cache_file in #(
4976 >        */* | ?:*)
4977 >          mv -f confcache "$cache_file"$$ &&
4978 >          mv -f "$cache_file"$$ "$cache_file" ;; #(
4979 >        *)
4980 >          mv -f confcache "$cache_file" ;;
4981 >        esac
4982 >      fi
4983 >    fi
4984    else
4985      { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
4986   $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
# Line 6816 | Line 4993 | $as_echo_n "checking for $ac_word... " >&6; }
4993   set dummy ps; ac_word=$2
4994   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4995   $as_echo_n "checking for $ac_word... " >&6; }
4996 < if test "${ac_cv_path_PS+set}" = set; then :
4996 > if ${ac_cv_path_PS+:} false; then :
4997    $as_echo_n "(cached) " >&6
4998   else
4999    case $PS in
# Line 6854 | Line 5031 | $as_echo_n "checking for POSIX or BSD ps syntax... " >
5031  
5032   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for POSIX or BSD ps syntax" >&5
5033   $as_echo_n "checking for POSIX or BSD ps syntax... " >&6; }
5034 < if test "${ac_cv_prog_ps_syntax+set}" = set; then :
5034 > if ${ac_cv_prog_ps_syntax+:} false; then :
5035    $as_echo_n "(cached) " >&6
5036   else
5037  
# Line 6874 | Line 5051 | else
5051                  if test "$ac_cv_prog_ps_ef" = yes; then
5052                          ac_cv_prog_ps_syntax=POSIX
5053                  else
5054 <                        as_fn_error "Could not determine ps syntax" "$LINENO" 5
5054 >                        as_fn_error $? "Could not determine ps syntax" "$LINENO" 5
5055                  fi
5056          fi
5057  
# Line 6896 | Line 5073 | $as_echo "#define PSTYPE_IS_POSIX 1" >>confdefs.h
5073   $as_echo "#define PSTYPE_IS_POSIX 1" >>confdefs.h
5074  
5075     else
5076 <       as_fn_error "Unknown ps syntax type!" "$LINENO" 5
5076 >       as_fn_error $? "Unknown ps syntax type!" "$LINENO" 5
5077     fi
5078   fi
5079  
5080 < ac_ext=${ac_fc_srcext-f}
5081 < ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
5082 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
5083 < ac_compiler_gnu=$ac_cv_fc_compiler_gnu
5080 > ac_ext=c
5081 > ac_cpp='$CPP $CPPFLAGS'
5082 > ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5083 > ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5084 > ac_compiler_gnu=$ac_cv_c_compiler_gnu
5085  
5086 < ac_ext=${ac_fc_srcext-f}
5087 < ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
5088 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
5089 < ac_compiler_gnu=$ac_cv_fc_compiler_gnu
6912 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran flag to compile .F90 files" >&5
6913 < $as_echo_n "checking for Fortran flag to compile .F90 files... " >&6; }
6914 < if test "${ac_cv_fc_srcext_F90+set}" = set; then :
5086 >
5087 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asin in -lm" >&5
5088 > $as_echo_n "checking for asin in -lm... " >&6; }
5089 > if ${ac_cv_lib_m_asin+:} false; then :
5090    $as_echo_n "(cached) " >&6
5091   else
5092 <  ac_ext=F90
5093 < ac_fcflags_srcext_save=$ac_fcflags_srcext
5094 < ac_fcflags_srcext=
5095 < ac_cv_fc_srcext_F90=unknown
6921 < for ac_flag in none -qsuffix=f=F90 -Tf; do
6922 <  test "x$ac_flag" != xnone && ac_fcflags_srcext="$ac_flag"
6923 <  cat > conftest.$ac_ext <<_ACEOF
6924 <      program main
5092 >  ac_check_lib_save_LIBS=$LIBS
5093 > LIBS="-lm  $LIBS"
5094 > cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5095 > /* end confdefs.h.  */
5096  
5097 <      end
5098 < _ACEOF
5099 < if ac_fn_fc_try_compile "$LINENO"; then :
5100 <  ac_cv_fc_srcext_F90=$ac_flag; break
5097 > /* Override any GCC internal prototype to avoid an error.
5098 >   Use char because int might match the return type of a GCC
5099 >   builtin and then its argument prototype would still apply.  */
5100 > #ifdef __cplusplus
5101 > extern "C"
5102 > #endif
5103 > char asin ();
5104 > int
5105 > main ()
5106 > {
5107 > return asin ();
5108 >  ;
5109 >  return 0;
5110 > }
5111 > _ACEOF
5112 > if ac_fn_c_try_link "$LINENO"; then :
5113 >  ac_cv_lib_m_asin=yes
5114 > else
5115 >  ac_cv_lib_m_asin=no
5116   fi
5117 < rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5118 < done
5119 < rm -f conftest.$ac_objext conftest.F90
5120 < ac_fcflags_srcext=$ac_fcflags_srcext_save
5117 > rm -f core conftest.err conftest.$ac_objext \
5118 >    conftest$ac_exeext conftest.$ac_ext
5119 > LIBS=$ac_check_lib_save_LIBS
5120 > fi
5121 > { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_asin" >&5
5122 > $as_echo "$ac_cv_lib_m_asin" >&6; }
5123 > if test "x$ac_cv_lib_m_asin" = xyes; then :
5124 >  cat >>confdefs.h <<_ACEOF
5125 > #define HAVE_LIBM 1
5126 > _ACEOF
5127  
5128 +  LIBS="-lm $LIBS"
5129 +
5130 + else
5131 +  exit
5132   fi
5133 < { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_srcext_F90" >&5
5134 < $as_echo "$ac_cv_fc_srcext_F90" >&6; }
5135 < if test "x$ac_cv_fc_srcext_F90" = xunknown; then
5136 <  as_fn_error "Fortran could not compile .F90 files" "$LINENO" 5
5133 >
5134 >
5135 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5136 > $as_echo_n "checking for ANSI C header files... " >&6; }
5137 > if ${ac_cv_header_stdc+:} false; then :
5138 >  $as_echo_n "(cached) " >&6
5139   else
5140 <  ac_fc_srcext=F90
5141 <  if test "x$ac_cv_fc_srcext_F90" = xnone; then
5142 <    ac_fcflags_srcext=""
5143 <    FCFLAGS_F90=""
5144 <  else
5145 <    ac_fcflags_srcext=$ac_cv_fc_srcext_F90
6948 <    FCFLAGS_F90=$ac_cv_fc_srcext_F90
6949 <  fi
5140 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5141 > /* end confdefs.h.  */
5142 > #include <stdlib.h>
5143 > #include <stdarg.h>
5144 > #include <string.h>
5145 > #include <float.h>
5146  
5147 + int
5148 + main ()
5149 + {
5150  
5151 +  ;
5152 +  return 0;
5153 + }
5154 + _ACEOF
5155 + if ac_fn_c_try_compile "$LINENO"; then :
5156 +  ac_cv_header_stdc=yes
5157 + else
5158 +  ac_cv_header_stdc=no
5159   fi
5160 < ac_ext=${ac_fc_srcext-f}
6954 < ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
6955 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
6956 < ac_compiler_gnu=$ac_cv_fc_compiler_gnu
5160 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5161  
5162 + if test $ac_cv_header_stdc = yes; then
5163 +  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5164 +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5165 + /* end confdefs.h.  */
5166 + #include <string.h>
5167  
5168 + _ACEOF
5169 + if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5170 +  $EGREP "memchr" >/dev/null 2>&1; then :
5171  
5172 + else
5173 +  ac_cv_header_stdc=no
5174 + fi
5175 + rm -f conftest*
5176  
5177 + fi
5178  
5179 < # Try to determine native compiler flags that allow us to use F90 suffix
5180 < # for preprocessed f90 source.
5179 > if test $ac_cv_header_stdc = yes; then
5180 >  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5181 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5182 > /* end confdefs.h.  */
5183 > #include <stdlib.h>
5184  
5185 < if test "$ac_test_PREPFLAG" != "set"; then
5186 <  PREPFLAG=""
5187 <  case "${host_cpu}-${host_os}" in
5185 > _ACEOF
5186 > if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5187 >  $EGREP "free" >/dev/null 2>&1; then :
5188  
6969  *linux*) if test "$FC" = ifc -o "$FC" = ifort; then
6970                    PREPFLAG="-fpp1 "
6971                fi;;
6972  *aix*)  if test "$FC" = xlf90 -o "$FC" = f90 -o "$FC" = xlf95; then
6973                    PREPFLAG="-qsuffix=cpp=F90 "
6974                fi;;
6975  *darwin*)
6976        if test "$FC" = f90 -o "$FC" = xlf90 -o "$FC" = xlf95; then
6977                PREPFLAG="-qsuffix=cpp=F90 "
6978        fi;;
6979  esac
6980
6981  if test -z "$PREPFLAG"; then
6982        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Using empty PREPFLAG\"" >&5
6983 $as_echo "$as_me: WARNING: \"Using empty PREPFLAG\"" >&2;}
6984        PREPFLAG=""
6985  fi
6986
6987  { $as_echo "$as_me:${as_lineno-$LINENO}: checking to make sure F90 preprocessor flag works" >&5
6988 $as_echo_n "checking to make sure F90 preprocessor flag works... " >&6; }
6989
6990  ac_ext=${ac_fc_srcext-f}
6991 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
6992 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
6993 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
6994
6995  ac_save_ext=$ac_ext
6996  ac_ext=F90
6997  ac_save_FCFLAGS_SRCEXT=$FCFLAGS_SRCEXT
6998
6999  if test "$PREPFLAG"; then :
7000  FCFLAGS_SRCEXT="${PREPFLAG}"
7001 fi
7002    cat > conftest.$ac_ext <<_ACEOF
7003
7004
7005 program conftest
7006  integer :: i
7007  i = 1
7008 end program conftest
7009
7010 _ACEOF
7011 if ac_fn_fc_try_compile "$LINENO"; then :
7012  prepflagworks=1
7013 else
7014  prepflagworks=0
7015 fi
7016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7017
7018  FCFLAGS_SRCEXT=$ac_save_FCFLAGS_SRCEXT
7019  ac_ext=$ac_save_ext
7020  ac_ext=${ac_fc_srcext-f}
7021 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
7022 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
7023 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
7024
7025
7026  if test "$prepflagworks" = 1; then
7027    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7028 $as_echo "yes" >&6; }
7029    FCFLAGS_SRCEXT="${PREPFLAG}"
7030
7031  else
7032    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7033 $as_echo "no" >&6; }
7034    as_fn_error "Can't figure out working Fortran90 preprocessor flag" "$LINENO" 5
7035  fi
7036 fi
7037
7038
7039
7040
7041
7042 # Try to determine native compiler flags that allow us to use F90 suffix
7043 # for preprocessed f90 source with -D type defines
7044
7045 if test "$ac_test_PREPDEFFLAG" != "set"; then
7046  PREPDEFFLAG=""
7047  case "${host_cpu}-${host_os}" in
7048
7049  *linux*) if test "$FC" = ifc -o "$FC" = ifort; then
7050                    PREPDEFFLAG=" "
7051                fi;;
7052  *aix*)  if test "$FC" = xlf90 -o "$FC" = f90 -o "$FC" = xlf95; then
7053                    PREPDEFFLAG="-WF,"
7054                fi;;
7055  *darwin*)
7056        if test "$FC" = f90 -o "$FC" = xlf90 -o "$FC" = xlf95; then
7057                PREPDEFFLAG="-WF,"
7058        fi;;
7059  esac
7060
7061  if test -z "$PREPDEFFLAG"; then
7062        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Using empty PREPDEFFLAG\"" >&5
7063 $as_echo "$as_me: WARNING: \"Using empty PREPDEFFLAG\"" >&2;}
7064        PREPDEFFLAG=" "
7065  fi
7066
7067  { $as_echo "$as_me:${as_lineno-$LINENO}: checking to make sure F90 preprocessor define flag works" >&5
7068 $as_echo_n "checking to make sure F90 preprocessor define flag works... " >&6; }
7069
7070  ac_ext=${ac_fc_srcext-f}
7071 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
7072 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
7073 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
7074
7075  ac_save_ext=$ac_ext
7076  ac_ext=F90
7077  ac_save_FCFLAGS=$FCFLAGS
7078
7079  if test "$PREPDEFFLAG"; then :
7080  FCFLAGS="${FCFLAGS} ${PREPDEFFLAG}-DTEST"
7081 fi
7082    cat > conftest.$ac_ext <<_ACEOF
7083
7084
7085 program conftest
7086  integer :: i
7087 #ifdef TEST
7088  i = 1
7089 #else
7090  choke me
7091 #endif
7092 end program conftest
7093
7094 _ACEOF
7095 if ac_fn_fc_try_compile "$LINENO"; then :
7096  prepdefflagworks=1
7097 else
7098  prepdefflagworks=0
7099 fi
7100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7101
7102  FCFLAGS=$ac_save_FCFLAGS
7103  ac_ext=$ac_save_ext
7104  ac_ext=${ac_fc_srcext-f}
7105 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
7106 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
7107 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
7108
7109
7110  if test "$prepdefflagworks" = 1; then
7111    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7112 $as_echo "yes" >&6; }
7113
7114  else
7115    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7116 $as_echo "no" >&6; }
7117    as_fn_error "Can't figure out working Fortran90 preprocessor define flag" "$LINENO" 5
7118  fi
7119 fi
7120
7121 ac_ext=${ac_fc_srcext-f}
7122 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
7123 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
7124 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
7125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get verbose linking output from $FC" >&5
7126 $as_echo_n "checking how to get verbose linking output from $FC... " >&6; }
7127 if test "${ac_cv_prog_fc_v+set}" = set; then :
7128  $as_echo_n "(cached) " >&6
7129 else
7130  cat > conftest.$ac_ext <<_ACEOF
7131      program main
7132
7133      end
7134 _ACEOF
7135 if ac_fn_fc_try_compile "$LINENO"; then :
7136  ac_cv_prog_fc_v=
7137 # Try some options frequently used verbose output
7138 for ac_verb in -v -verbose --verbose -V -\#\#\#; do
7139  cat > conftest.$ac_ext <<_ACEOF
7140      program main
7141
7142      end
7143 _ACEOF
7144
7145 # Compile and link our simple test program by passing a flag (argument
7146 # 1 to this macro) to the Fortran compiler in order to get
7147 # "verbose" output that we can then parse for the Fortran linker
7148 # flags.
7149 ac_save_FCFLAGS=$FCFLAGS
7150 FCFLAGS="$FCFLAGS $ac_verb"
7151 eval "set x $ac_link"
7152 shift
7153 $as_echo "$as_me:${as_lineno-$LINENO}: $*" >&5
7154 # gfortran 4.3 outputs lines setting COLLECT_GCC_OPTIONS, COMPILER_PATH,
7155 # LIBRARY_PATH; skip all such settings.
7156 ac_fc_v_output=`eval $ac_link 5>&1 2>&1 |
7157  grep -v 'Driving:' | grep -v "^[_$as_cr_Letters][_$as_cr_alnum]*="`
7158 $as_echo "$ac_fc_v_output" >&5
7159 FCFLAGS=$ac_save_FCFLAGS
7160
7161 rm -rf conftest*
7162
7163 # On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
7164 # /foo, /bar, and /baz are search directories for the Fortran linker.
7165 # Here, we change these into -L/foo -L/bar -L/baz (and put it first):
7166 ac_fc_v_output="`echo $ac_fc_v_output |
7167        grep 'LPATH is:' |
7168        sed 's|.*LPATH is\(: *[^ ]*\).*|\1|;s|: */| -L/|g'` $ac_fc_v_output"
7169
7170 # FIXME: we keep getting bitten by quoted arguments; a more general fix
7171 #        that detects unbalanced quotes in FLIBS should be implemented
7172 #        and (ugh) tested at some point.
7173 case $ac_fc_v_output in
7174  # If we are using xlf then replace all the commas with spaces.
7175  *xlfentry*)
7176    ac_fc_v_output=`echo $ac_fc_v_output | sed 's/,/ /g'` ;;
7177
7178  # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
7179  # $LIBS confuse us, and the libraries appear later in the output anyway).
7180  *mGLOB_options_string*)
7181    ac_fc_v_output=`echo $ac_fc_v_output | sed 's/"-mGLOB[^"]*"/ /g'` ;;
7182
7183  # Portland Group compiler has singly- or doubly-quoted -cmdline argument
7184  # Singly-quoted arguments were reported for versions 5.2-4 and 6.0-4.
7185  # Doubly-quoted arguments were reported for "PGF90/x86 Linux/x86 5.0-2".
7186  *-cmdline\ * | *-ignore\ * | *-def\ *)
7187    ac_fc_v_output=`echo $ac_fc_v_output | sed "\
7188        s/-cmdline  *'[^']*'/ /g; s/-cmdline  *\"[^\"]*\"/ /g
7189        s/-ignore  *'[^']*'/ /g; s/-ignore  *\"[^\"]*\"/ /g
7190        s/-def  *'[^']*'/ /g; s/-def  *\"[^\"]*\"/ /g"` ;;
7191
7192  # If we are using Cray Fortran then delete quotes.
7193  *cft90*)
7194    ac_fc_v_output=`echo $ac_fc_v_output | sed 's/"//g'` ;;
7195 esac
7196
7197
7198  # look for -l* and *.a constructs in the output
7199  for ac_arg in $ac_fc_v_output; do
7200     case $ac_arg in
7201        [\\/]*.a | ?:[\\/]*.a | -[lLRu]*)
7202          ac_cv_prog_fc_v=$ac_verb
7203          break 2 ;;
7204     esac
7205  done
7206 done
7207 if test -z "$ac_cv_prog_fc_v"; then
7208   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine how to obtain linking information from $FC" >&5
7209 $as_echo "$as_me: WARNING: cannot determine how to obtain linking information from $FC" >&2;}
7210 fi
7211 else
7212  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compilation failed" >&5
7213 $as_echo "$as_me: WARNING: compilation failed" >&2;}
7214 fi
7215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7216
7217 fi
7218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_v" >&5
7219 $as_echo "$ac_cv_prog_fc_v" >&6; }
7220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran libraries of $FC" >&5
7221 $as_echo_n "checking for Fortran libraries of $FC... " >&6; }
7222 if test "${ac_cv_fc_libs+set}" = set; then :
7223  $as_echo_n "(cached) " >&6
7224 else
7225  if test "x$FCLIBS" != "x"; then
7226  ac_cv_fc_libs="$FCLIBS" # Let the user override the test.
7227 else
7228
7229 cat > conftest.$ac_ext <<_ACEOF
7230      program main
7231
7232      end
7233 _ACEOF
7234
7235 # Compile and link our simple test program by passing a flag (argument
7236 # 1 to this macro) to the Fortran compiler in order to get
7237 # "verbose" output that we can then parse for the Fortran linker
7238 # flags.
7239 ac_save_FCFLAGS=$FCFLAGS
7240 FCFLAGS="$FCFLAGS $ac_cv_prog_fc_v"
7241 eval "set x $ac_link"
7242 shift
7243 $as_echo "$as_me:${as_lineno-$LINENO}: $*" >&5
7244 # gfortran 4.3 outputs lines setting COLLECT_GCC_OPTIONS, COMPILER_PATH,
7245 # LIBRARY_PATH; skip all such settings.
7246 ac_fc_v_output=`eval $ac_link 5>&1 2>&1 |
7247  grep -v 'Driving:' | grep -v "^[_$as_cr_Letters][_$as_cr_alnum]*="`
7248 $as_echo "$ac_fc_v_output" >&5
7249 FCFLAGS=$ac_save_FCFLAGS
7250
7251 rm -rf conftest*
7252
7253 # On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
7254 # /foo, /bar, and /baz are search directories for the Fortran linker.
7255 # Here, we change these into -L/foo -L/bar -L/baz (and put it first):
7256 ac_fc_v_output="`echo $ac_fc_v_output |
7257        grep 'LPATH is:' |
7258        sed 's|.*LPATH is\(: *[^ ]*\).*|\1|;s|: */| -L/|g'` $ac_fc_v_output"
7259
7260 # FIXME: we keep getting bitten by quoted arguments; a more general fix
7261 #        that detects unbalanced quotes in FLIBS should be implemented
7262 #        and (ugh) tested at some point.
7263 case $ac_fc_v_output in
7264  # If we are using xlf then replace all the commas with spaces.
7265  *xlfentry*)
7266    ac_fc_v_output=`echo $ac_fc_v_output | sed 's/,/ /g'` ;;
7267
7268  # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
7269  # $LIBS confuse us, and the libraries appear later in the output anyway).
7270  *mGLOB_options_string*)
7271    ac_fc_v_output=`echo $ac_fc_v_output | sed 's/"-mGLOB[^"]*"/ /g'` ;;
7272
7273  # Portland Group compiler has singly- or doubly-quoted -cmdline argument
7274  # Singly-quoted arguments were reported for versions 5.2-4 and 6.0-4.
7275  # Doubly-quoted arguments were reported for "PGF90/x86 Linux/x86 5.0-2".
7276  *-cmdline\ * | *-ignore\ * | *-def\ *)
7277    ac_fc_v_output=`echo $ac_fc_v_output | sed "\
7278        s/-cmdline  *'[^']*'/ /g; s/-cmdline  *\"[^\"]*\"/ /g
7279        s/-ignore  *'[^']*'/ /g; s/-ignore  *\"[^\"]*\"/ /g
7280        s/-def  *'[^']*'/ /g; s/-def  *\"[^\"]*\"/ /g"` ;;
7281
7282  # If we are using Cray Fortran then delete quotes.
7283  *cft90*)
7284    ac_fc_v_output=`echo $ac_fc_v_output | sed 's/"//g'` ;;
7285 esac
7286
7287
7288
7289 ac_cv_fc_libs=
7290
7291 # Save positional arguments (if any)
7292 ac_save_positional="$@"
7293
7294 set X $ac_fc_v_output
7295 while test $# != 1; do
7296  shift
7297  ac_arg=$1
7298  case $ac_arg in
7299        [\\/]*.a | ?:[\\/]*.a)
7300            ac_exists=false
7301  for ac_i in $ac_cv_fc_libs; do
7302    if test x"$ac_arg" = x"$ac_i"; then
7303      ac_exists=true
7304      break
7305    fi
7306  done
7307
7308  if test x"$ac_exists" = xtrue; then :
7309
7310 else
7311  ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg"
7312 fi
7313          ;;
7314        -bI:*)
7315            ac_exists=false
7316  for ac_i in $ac_cv_fc_libs; do
7317    if test x"$ac_arg" = x"$ac_i"; then
7318      ac_exists=true
7319      break
7320    fi
7321  done
7322
7323  if test x"$ac_exists" = xtrue; then :
7324
7325 else
7326  if test "$ac_compiler_gnu" = yes; then
7327  for ac_link_opt in $ac_arg; do
7328    ac_cv_fc_libs="$ac_cv_fc_libs -Xlinker $ac_link_opt"
7329  done
7330 else
7331  ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg"
7332 fi
7333 fi
7334          ;;
7335          # Ignore these flags.
7336        -lang* | -lcrt*.o | -lc | -lgcc* | -lSystem | -libmil | -little \
7337          |-LANG:=* | -LIST:* | -LNO:*)
7338          ;;
7339        -lkernel32)
7340          test x"$CYGWIN" != xyes && ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg"
7341          ;;
7342        -[LRuYz])
7343          # These flags, when seen by themselves, take an argument.
7344          # We remove the space between option and argument and re-iterate
7345          # unless we find an empty arg or a new option (starting with -)
7346          case $2 in
7347             "" | -*);;
7348             *)
7349                ac_arg="$ac_arg$2"
7350                shift; shift
7351                set X $ac_arg "$@"
7352                ;;
7353          esac
7354          ;;
7355        -YP,*)
7356          for ac_j in `$as_echo "$ac_arg" | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do
7357              ac_exists=false
7358  for ac_i in $ac_cv_fc_libs; do
7359    if test x"$ac_j" = x"$ac_i"; then
7360      ac_exists=true
7361      break
7362    fi
7363  done
7364
7365  if test x"$ac_exists" = xtrue; then :
7366
7367 else
7368  ac_arg="$ac_arg $ac_j"
7369                               ac_cv_fc_libs="$ac_cv_fc_libs $ac_j"
7370 fi
7371          done
7372          ;;
7373        -[lLR]*)
7374            ac_exists=false
7375  for ac_i in $ac_cv_fc_libs; do
7376    if test x"$ac_arg" = x"$ac_i"; then
7377      ac_exists=true
7378      break
7379    fi
7380  done
7381
7382  if test x"$ac_exists" = xtrue; then :
7383
7384 else
7385  ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg"
7386 fi
7387          ;;
7388        -zallextract*| -zdefaultextract)
7389          ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg"
7390          ;;
7391          # Ignore everything else.
7392  esac
7393 done
7394 # restore positional arguments
7395 set X $ac_save_positional; shift
7396
7397 # We only consider "LD_RUN_PATH" on Solaris systems.  If this is seen,
7398 # then we insist that the "run path" must be an absolute path (i.e. it
7399 # must begin with a "/").
7400 case `(uname -sr) 2>/dev/null` in
7401   "SunOS 5"*)
7402      ac_ld_run_path=`$as_echo "$ac_fc_v_output" |
7403                        sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'`
7404      test "x$ac_ld_run_path" != x &&
7405        if test "$ac_compiler_gnu" = yes; then
7406  for ac_link_opt in $ac_ld_run_path; do
7407    ac_cv_fc_libs="$ac_cv_fc_libs -Xlinker $ac_link_opt"
7408  done
7409 else
7410  ac_cv_fc_libs="$ac_cv_fc_libs $ac_ld_run_path"
7411 fi
7412      ;;
7413 esac
7414 fi # test "x$[]_AC_LANG_PREFIX[]LIBS" = "x"
7415
7416 fi
7417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_libs" >&5
7418 $as_echo "$ac_cv_fc_libs" >&6; }
7419 FCLIBS="$ac_cv_fc_libs"
7420
7421
7422 ac_ext=${ac_fc_srcext-f}
7423 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
7424 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
7425 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
7426
7427 ac_ext=${ac_fc_srcext-f}
7428 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
7429 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
7430 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
7431
7432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dummy main to link with Fortran libraries" >&5
7433 $as_echo_n "checking for dummy main to link with Fortran libraries... " >&6; }
7434 if test "${ac_cv_fc_dummy_main+set}" = set; then :
7435  $as_echo_n "(cached) " >&6
7436 else
7437  ac_fc_dm_save_LIBS=$LIBS
7438 LIBS="$LIBS $FCLIBS"
7439 ac_fortran_dm_var=FC_DUMMY_MAIN
7440 ac_ext=c
7441 ac_cpp='$CPP $CPPFLAGS'
7442 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7443 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7444 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7445
7446 # First, try linking without a dummy main:
7447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7448 /* end confdefs.h.  */
7449
7450 #ifdef FC_DUMMY_MAIN
7451 #ifndef FC_DUMMY_MAIN_EQ_F77
7452 #  ifdef __cplusplus
7453     extern "C"
7454 #  endif
7455   int FC_DUMMY_MAIN() { return 1; }
7456 #endif
7457 #endif
7458 int
7459 main ()
7460 {
7461
7462  ;
7463  return 0;
7464 }
7465 _ACEOF
7466 if ac_fn_c_try_link "$LINENO"; then :
7467  ac_cv_fortran_dummy_main=none
7468 else
7469  ac_cv_fortran_dummy_main=unknown
7470 fi
7471 rm -f core conftest.err conftest.$ac_objext \
7472    conftest$ac_exeext conftest.$ac_ext
7473
7474 if test $ac_cv_fortran_dummy_main = unknown; then
7475   for ac_func in MAIN__ MAIN_ __main MAIN _MAIN __MAIN main_ main__ _main; do
7476     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7477 /* end confdefs.h.  */
7478 #define $ac_fortran_dm_var $ac_func
7479 #ifdef FC_DUMMY_MAIN
7480 #ifndef FC_DUMMY_MAIN_EQ_F77
7481 #  ifdef __cplusplus
7482     extern "C"
7483 #  endif
7484   int FC_DUMMY_MAIN() { return 1; }
7485 #endif
7486 #endif
7487 int
7488 main ()
7489 {
7490
7491  ;
7492  return 0;
7493 }
7494 _ACEOF
7495 if ac_fn_c_try_link "$LINENO"; then :
7496  ac_cv_fortran_dummy_main=$ac_func; break
7497 fi
7498 rm -f core conftest.err conftest.$ac_objext \
7499    conftest$ac_exeext conftest.$ac_ext
7500   done
7501 fi
7502 ac_ext=${ac_fc_srcext-f}
7503 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
7504 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
7505 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
7506 ac_cv_fc_dummy_main=$ac_cv_fortran_dummy_main
7507 rm -rf conftest*
7508 LIBS=$ac_fc_dm_save_LIBS
7509
7510 fi
7511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_dummy_main" >&5
7512 $as_echo "$ac_cv_fc_dummy_main" >&6; }
7513 FC_DUMMY_MAIN=$ac_cv_fc_dummy_main
7514 if test "$FC_DUMMY_MAIN" != unknown; then :
7515  if test $FC_DUMMY_MAIN != none; then
7516
7517 cat >>confdefs.h <<_ACEOF
7518 #define FC_DUMMY_MAIN $FC_DUMMY_MAIN
7519 _ACEOF
7520
7521  if test "x$ac_cv_fc_dummy_main" = "x$ac_cv_f77_dummy_main"; then
7522
7523 $as_echo "#define FC_DUMMY_MAIN_EQ_F77 1" >>confdefs.h
7524
7525  fi
7526 fi
7527 else
7528  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7529 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7530 as_fn_error "linking to Fortran libraries from C fails
7531 See \`config.log' for more details." "$LINENO" 5; }
7532 fi
7533
7534 ac_ext=${ac_fc_srcext-f}
7535 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
7536 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
7537 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
7538
7539 ac_ext=${ac_fc_srcext-f}
7540 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
7541 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
7542 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
7543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran name-mangling scheme" >&5
7544 $as_echo_n "checking for Fortran name-mangling scheme... " >&6; }
7545 if test "${ac_cv_fc_mangling+set}" = set; then :
7546  $as_echo_n "(cached) " >&6
7547 else
7548  cat > conftest.$ac_ext <<_ACEOF
7549      subroutine foobar()
7550      return
7551      end
7552      subroutine foo_bar()
7553      return
7554      end
7555 _ACEOF
7556 if ac_fn_fc_try_compile "$LINENO"; then :
7557  mv conftest.$ac_objext cfortran_test.$ac_objext
7558
7559  ac_save_LIBS=$LIBS
7560  LIBS="cfortran_test.$ac_objext $LIBS $FCLIBS"
7561
7562  ac_ext=c
7563 ac_cpp='$CPP $CPPFLAGS'
7564 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7565 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7566 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7567  ac_success=no
7568  for ac_foobar in foobar FOOBAR; do
7569    for ac_underscore in "" "_"; do
7570      ac_func="$ac_foobar$ac_underscore"
7571      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7572 /* end confdefs.h.  */
7573
7574 /* Override any GCC internal prototype to avoid an error.
7575   Use char because int might match the return type of a GCC
7576   builtin and then its argument prototype would still apply.  */
7577 #ifdef __cplusplus
7578 extern "C"
7579 #endif
7580 char $ac_func ();
7581 #ifdef FC_DUMMY_MAIN
7582 #ifndef FC_DUMMY_MAIN_EQ_F77
7583 #  ifdef __cplusplus
7584     extern "C"
7585 #  endif
7586   int FC_DUMMY_MAIN() { return 1; }
7587 #endif
7588 #endif
7589 int
7590 main ()
7591 {
7592 return $ac_func ();
7593  ;
7594  return 0;
7595 }
7596 _ACEOF
7597 if ac_fn_c_try_link "$LINENO"; then :
7598  ac_success=yes; break 2
7599 fi
7600 rm -f core conftest.err conftest.$ac_objext \
7601    conftest$ac_exeext conftest.$ac_ext
7602    done
7603  done
7604  ac_ext=${ac_fc_srcext-f}
7605 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
7606 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
7607 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
7608
7609  if test "$ac_success" = "yes"; then
7610     case $ac_foobar in
7611        foobar)
7612           ac_case=lower
7613           ac_foo_bar=foo_bar
7614           ;;
7615        FOOBAR)
7616           ac_case=upper
7617           ac_foo_bar=FOO_BAR
7618           ;;
7619     esac
7620
7621     ac_ext=c
7622 ac_cpp='$CPP $CPPFLAGS'
7623 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7624 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7625 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7626     ac_success_extra=no
7627     for ac_extra in "" "_"; do
7628        ac_func="$ac_foo_bar$ac_underscore$ac_extra"
7629        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7630 /* end confdefs.h.  */
7631
7632 /* Override any GCC internal prototype to avoid an error.
7633   Use char because int might match the return type of a GCC
7634   builtin and then its argument prototype would still apply.  */
7635 #ifdef __cplusplus
7636 extern "C"
7637 #endif
7638 char $ac_func ();
7639 #ifdef FC_DUMMY_MAIN
7640 #ifndef FC_DUMMY_MAIN_EQ_F77
7641 #  ifdef __cplusplus
7642     extern "C"
7643 #  endif
7644   int FC_DUMMY_MAIN() { return 1; }
7645 #endif
7646 #endif
7647 int
7648 main ()
7649 {
7650 return $ac_func ();
7651  ;
7652  return 0;
7653 }
7654 _ACEOF
7655 if ac_fn_c_try_link "$LINENO"; then :
7656  ac_success_extra=yes; break
7657 fi
7658 rm -f core conftest.err conftest.$ac_objext \
7659    conftest$ac_exeext conftest.$ac_ext
7660     done
7661     ac_ext=${ac_fc_srcext-f}
7662 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
7663 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
7664 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
7665
7666     if test "$ac_success_extra" = "yes"; then
7667        ac_cv_fc_mangling="$ac_case case"
7668        if test -z "$ac_underscore"; then
7669           ac_cv_fc_mangling="$ac_cv_fc_mangling, no underscore"
7670        else
7671           ac_cv_fc_mangling="$ac_cv_fc_mangling, underscore"
7672        fi
7673        if test -z "$ac_extra"; then
7674           ac_cv_fc_mangling="$ac_cv_fc_mangling, no extra underscore"
7675        else
7676           ac_cv_fc_mangling="$ac_cv_fc_mangling, extra underscore"
7677        fi
7678      else
7679        ac_cv_fc_mangling="unknown"
7680      fi
7681  else
7682     ac_cv_fc_mangling="unknown"
7683  fi
7684
7685  LIBS=$ac_save_LIBS
7686  rm -rf conftest*
7687  rm -f cfortran_test*
7688 else
7689  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7690 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7691 as_fn_error "cannot compile a simple Fortran program
7692 See \`config.log' for more details." "$LINENO" 5; }
7693 fi
7694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7695
7696 fi
7697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_mangling" >&5
7698 $as_echo "$ac_cv_fc_mangling" >&6; }
7699
7700 ac_ext=${ac_fc_srcext-f}
7701 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
7702 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
7703 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
7704
7705 ac_ext=${ac_fc_srcext-f}
7706 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
7707 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
7708 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
7709 case $ac_cv_fc_mangling in
7710  "lower case, no underscore, no extra underscore")
7711          $as_echo "#define FC_FUNC(name,NAME) name" >>confdefs.h
7712
7713          $as_echo "#define FC_FUNC_(name,NAME) name" >>confdefs.h
7714 ;;
7715  "lower case, no underscore, extra underscore")
7716          $as_echo "#define FC_FUNC(name,NAME) name" >>confdefs.h
7717
7718          $as_echo "#define FC_FUNC_(name,NAME) name ## _" >>confdefs.h
7719 ;;
7720  "lower case, underscore, no extra underscore")
7721          $as_echo "#define FC_FUNC(name,NAME) name ## _" >>confdefs.h
7722
7723          $as_echo "#define FC_FUNC_(name,NAME) name ## _" >>confdefs.h
7724 ;;
7725  "lower case, underscore, extra underscore")
7726          $as_echo "#define FC_FUNC(name,NAME) name ## _" >>confdefs.h
7727
7728          $as_echo "#define FC_FUNC_(name,NAME) name ## __" >>confdefs.h
7729 ;;
7730  "upper case, no underscore, no extra underscore")
7731          $as_echo "#define FC_FUNC(name,NAME) NAME" >>confdefs.h
7732
7733          $as_echo "#define FC_FUNC_(name,NAME) NAME" >>confdefs.h
7734 ;;
7735  "upper case, no underscore, extra underscore")
7736          $as_echo "#define FC_FUNC(name,NAME) NAME" >>confdefs.h
7737
7738          $as_echo "#define FC_FUNC_(name,NAME) NAME ## _" >>confdefs.h
7739 ;;
7740  "upper case, underscore, no extra underscore")
7741          $as_echo "#define FC_FUNC(name,NAME) NAME ## _" >>confdefs.h
7742
7743          $as_echo "#define FC_FUNC_(name,NAME) NAME ## _" >>confdefs.h
7744 ;;
7745  "upper case, underscore, extra underscore")
7746          $as_echo "#define FC_FUNC(name,NAME) NAME ## _" >>confdefs.h
7747
7748          $as_echo "#define FC_FUNC_(name,NAME) NAME ## __" >>confdefs.h
7749 ;;
7750  *)
7751          { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unknown Fortran name-mangling scheme" >&5
7752 $as_echo "$as_me: WARNING: unknown Fortran name-mangling scheme" >&2;}
7753          ;;
7754 esac
7755
7756 ac_ext=${ac_fc_srcext-f}
7757 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
7758 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
7759 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
7760
7761
7762
7763 ac_ext=${ac_fc_srcext-f}
7764 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
7765 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
7766 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
7767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get verbose linking output from $FC" >&5
7768 $as_echo_n "checking how to get verbose linking output from $FC... " >&6; }
7769 if test "${ac_cv_prog_fc_v+set}" = set; then :
7770  $as_echo_n "(cached) " >&6
5189   else
7772  cat > conftest.$ac_ext <<_ACEOF
7773      program main
7774
7775      end
7776 _ACEOF
7777 if ac_fn_fc_try_compile "$LINENO"; then :
7778  ac_cv_prog_fc_v=
7779 # Try some options frequently used verbose output
7780 for ac_verb in -v -verbose --verbose -V -\#\#\#; do
7781  cat > conftest.$ac_ext <<_ACEOF
7782      program main
7783
7784      end
7785 _ACEOF
7786
7787 # Compile and link our simple test program by passing a flag (argument
7788 # 1 to this macro) to the Fortran compiler in order to get
7789 # "verbose" output that we can then parse for the Fortran linker
7790 # flags.
7791 ac_save_FCFLAGS=$FCFLAGS
7792 FCFLAGS="$FCFLAGS $ac_verb"
7793 eval "set x $ac_link"
7794 shift
7795 $as_echo "$as_me:${as_lineno-$LINENO}: $*" >&5
7796 # gfortran 4.3 outputs lines setting COLLECT_GCC_OPTIONS, COMPILER_PATH,
7797 # LIBRARY_PATH; skip all such settings.
7798 ac_fc_v_output=`eval $ac_link 5>&1 2>&1 |
7799  grep -v 'Driving:' | grep -v "^[_$as_cr_Letters][_$as_cr_alnum]*="`
7800 $as_echo "$ac_fc_v_output" >&5
7801 FCFLAGS=$ac_save_FCFLAGS
7802
7803 rm -rf conftest*
7804
7805 # On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
7806 # /foo, /bar, and /baz are search directories for the Fortran linker.
7807 # Here, we change these into -L/foo -L/bar -L/baz (and put it first):
7808 ac_fc_v_output="`echo $ac_fc_v_output |
7809        grep 'LPATH is:' |
7810        sed 's|.*LPATH is\(: *[^ ]*\).*|\1|;s|: */| -L/|g'` $ac_fc_v_output"
7811
7812 # FIXME: we keep getting bitten by quoted arguments; a more general fix
7813 #        that detects unbalanced quotes in FLIBS should be implemented
7814 #        and (ugh) tested at some point.
7815 case $ac_fc_v_output in
7816  # If we are using xlf then replace all the commas with spaces.
7817  *xlfentry*)
7818    ac_fc_v_output=`echo $ac_fc_v_output | sed 's/,/ /g'` ;;
7819
7820  # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
7821  # $LIBS confuse us, and the libraries appear later in the output anyway).
7822  *mGLOB_options_string*)
7823    ac_fc_v_output=`echo $ac_fc_v_output | sed 's/"-mGLOB[^"]*"/ /g'` ;;
7824
7825  # Portland Group compiler has singly- or doubly-quoted -cmdline argument
7826  # Singly-quoted arguments were reported for versions 5.2-4 and 6.0-4.
7827  # Doubly-quoted arguments were reported for "PGF90/x86 Linux/x86 5.0-2".
7828  *-cmdline\ * | *-ignore\ * | *-def\ *)
7829    ac_fc_v_output=`echo $ac_fc_v_output | sed "\
7830        s/-cmdline  *'[^']*'/ /g; s/-cmdline  *\"[^\"]*\"/ /g
7831        s/-ignore  *'[^']*'/ /g; s/-ignore  *\"[^\"]*\"/ /g
7832        s/-def  *'[^']*'/ /g; s/-def  *\"[^\"]*\"/ /g"` ;;
7833
7834  # If we are using Cray Fortran then delete quotes.
7835  *cft90*)
7836    ac_fc_v_output=`echo $ac_fc_v_output | sed 's/"//g'` ;;
7837 esac
7838
7839
7840  # look for -l* and *.a constructs in the output
7841  for ac_arg in $ac_fc_v_output; do
7842     case $ac_arg in
7843        [\\/]*.a | ?:[\\/]*.a | -[lLRu]*)
7844          ac_cv_prog_fc_v=$ac_verb
7845          break 2 ;;
7846     esac
7847  done
7848 done
7849 if test -z "$ac_cv_prog_fc_v"; then
7850   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine how to obtain linking information from $FC" >&5
7851 $as_echo "$as_me: WARNING: cannot determine how to obtain linking information from $FC" >&2;}
7852 fi
7853 else
7854  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compilation failed" >&5
7855 $as_echo "$as_me: WARNING: compilation failed" >&2;}
7856 fi
7857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7858
7859 fi
7860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_v" >&5
7861 $as_echo "$ac_cv_prog_fc_v" >&6; }
7862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran libraries of $FC" >&5
7863 $as_echo_n "checking for Fortran libraries of $FC... " >&6; }
7864 if test "${ac_cv_fc_libs+set}" = set; then :
7865  $as_echo_n "(cached) " >&6
7866 else
7867  if test "x$FCLIBS" != "x"; then
7868  ac_cv_fc_libs="$FCLIBS" # Let the user override the test.
7869 else
7870
7871 cat > conftest.$ac_ext <<_ACEOF
7872      program main
7873
7874      end
7875 _ACEOF
7876
7877 # Compile and link our simple test program by passing a flag (argument
7878 # 1 to this macro) to the Fortran compiler in order to get
7879 # "verbose" output that we can then parse for the Fortran linker
7880 # flags.
7881 ac_save_FCFLAGS=$FCFLAGS
7882 FCFLAGS="$FCFLAGS $ac_cv_prog_fc_v"
7883 eval "set x $ac_link"
7884 shift
7885 $as_echo "$as_me:${as_lineno-$LINENO}: $*" >&5
7886 # gfortran 4.3 outputs lines setting COLLECT_GCC_OPTIONS, COMPILER_PATH,
7887 # LIBRARY_PATH; skip all such settings.
7888 ac_fc_v_output=`eval $ac_link 5>&1 2>&1 |
7889  grep -v 'Driving:' | grep -v "^[_$as_cr_Letters][_$as_cr_alnum]*="`
7890 $as_echo "$ac_fc_v_output" >&5
7891 FCFLAGS=$ac_save_FCFLAGS
7892
7893 rm -rf conftest*
7894
7895 # On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
7896 # /foo, /bar, and /baz are search directories for the Fortran linker.
7897 # Here, we change these into -L/foo -L/bar -L/baz (and put it first):
7898 ac_fc_v_output="`echo $ac_fc_v_output |
7899        grep 'LPATH is:' |
7900        sed 's|.*LPATH is\(: *[^ ]*\).*|\1|;s|: */| -L/|g'` $ac_fc_v_output"
7901
7902 # FIXME: we keep getting bitten by quoted arguments; a more general fix
7903 #        that detects unbalanced quotes in FLIBS should be implemented
7904 #        and (ugh) tested at some point.
7905 case $ac_fc_v_output in
7906  # If we are using xlf then replace all the commas with spaces.
7907  *xlfentry*)
7908    ac_fc_v_output=`echo $ac_fc_v_output | sed 's/,/ /g'` ;;
7909
7910  # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
7911  # $LIBS confuse us, and the libraries appear later in the output anyway).
7912  *mGLOB_options_string*)
7913    ac_fc_v_output=`echo $ac_fc_v_output | sed 's/"-mGLOB[^"]*"/ /g'` ;;
7914
7915  # Portland Group compiler has singly- or doubly-quoted -cmdline argument
7916  # Singly-quoted arguments were reported for versions 5.2-4 and 6.0-4.
7917  # Doubly-quoted arguments were reported for "PGF90/x86 Linux/x86 5.0-2".
7918  *-cmdline\ * | *-ignore\ * | *-def\ *)
7919    ac_fc_v_output=`echo $ac_fc_v_output | sed "\
7920        s/-cmdline  *'[^']*'/ /g; s/-cmdline  *\"[^\"]*\"/ /g
7921        s/-ignore  *'[^']*'/ /g; s/-ignore  *\"[^\"]*\"/ /g
7922        s/-def  *'[^']*'/ /g; s/-def  *\"[^\"]*\"/ /g"` ;;
7923
7924  # If we are using Cray Fortran then delete quotes.
7925  *cft90*)
7926    ac_fc_v_output=`echo $ac_fc_v_output | sed 's/"//g'` ;;
7927 esac
7928
7929
7930
7931 ac_cv_fc_libs=
7932
7933 # Save positional arguments (if any)
7934 ac_save_positional="$@"
7935
7936 set X $ac_fc_v_output
7937 while test $# != 1; do
7938  shift
7939  ac_arg=$1
7940  case $ac_arg in
7941        [\\/]*.a | ?:[\\/]*.a)
7942            ac_exists=false
7943  for ac_i in $ac_cv_fc_libs; do
7944    if test x"$ac_arg" = x"$ac_i"; then
7945      ac_exists=true
7946      break
7947    fi
7948  done
7949
7950  if test x"$ac_exists" = xtrue; then :
7951
7952 else
7953  ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg"
7954 fi
7955          ;;
7956        -bI:*)
7957            ac_exists=false
7958  for ac_i in $ac_cv_fc_libs; do
7959    if test x"$ac_arg" = x"$ac_i"; then
7960      ac_exists=true
7961      break
7962    fi
7963  done
7964
7965  if test x"$ac_exists" = xtrue; then :
7966
7967 else
7968  if test "$ac_compiler_gnu" = yes; then
7969  for ac_link_opt in $ac_arg; do
7970    ac_cv_fc_libs="$ac_cv_fc_libs -Xlinker $ac_link_opt"
7971  done
7972 else
7973  ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg"
7974 fi
7975 fi
7976          ;;
7977          # Ignore these flags.
7978        -lang* | -lcrt*.o | -lc | -lgcc* | -lSystem | -libmil | -little \
7979          |-LANG:=* | -LIST:* | -LNO:*)
7980          ;;
7981        -lkernel32)
7982          test x"$CYGWIN" != xyes && ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg"
7983          ;;
7984        -[LRuYz])
7985          # These flags, when seen by themselves, take an argument.
7986          # We remove the space between option and argument and re-iterate
7987          # unless we find an empty arg or a new option (starting with -)
7988          case $2 in
7989             "" | -*);;
7990             *)
7991                ac_arg="$ac_arg$2"
7992                shift; shift
7993                set X $ac_arg "$@"
7994                ;;
7995          esac
7996          ;;
7997        -YP,*)
7998          for ac_j in `$as_echo "$ac_arg" | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do
7999              ac_exists=false
8000  for ac_i in $ac_cv_fc_libs; do
8001    if test x"$ac_j" = x"$ac_i"; then
8002      ac_exists=true
8003      break
8004    fi
8005  done
8006
8007  if test x"$ac_exists" = xtrue; then :
8008
8009 else
8010  ac_arg="$ac_arg $ac_j"
8011                               ac_cv_fc_libs="$ac_cv_fc_libs $ac_j"
8012 fi
8013          done
8014          ;;
8015        -[lLR]*)
8016            ac_exists=false
8017  for ac_i in $ac_cv_fc_libs; do
8018    if test x"$ac_arg" = x"$ac_i"; then
8019      ac_exists=true
8020      break
8021    fi
8022  done
8023
8024  if test x"$ac_exists" = xtrue; then :
8025
8026 else
8027  ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg"
8028 fi
8029          ;;
8030        -zallextract*| -zdefaultextract)
8031          ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg"
8032          ;;
8033          # Ignore everything else.
8034  esac
8035 done
8036 # restore positional arguments
8037 set X $ac_save_positional; shift
8038
8039 # We only consider "LD_RUN_PATH" on Solaris systems.  If this is seen,
8040 # then we insist that the "run path" must be an absolute path (i.e. it
8041 # must begin with a "/").
8042 case `(uname -sr) 2>/dev/null` in
8043   "SunOS 5"*)
8044      ac_ld_run_path=`$as_echo "$ac_fc_v_output" |
8045                        sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'`
8046      test "x$ac_ld_run_path" != x &&
8047        if test "$ac_compiler_gnu" = yes; then
8048  for ac_link_opt in $ac_ld_run_path; do
8049    ac_cv_fc_libs="$ac_cv_fc_libs -Xlinker $ac_link_opt"
8050  done
8051 else
8052  ac_cv_fc_libs="$ac_cv_fc_libs $ac_ld_run_path"
8053 fi
8054      ;;
8055 esac
8056 fi # test "x$[]_AC_LANG_PREFIX[]LIBS" = "x"
8057
8058 fi
8059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_libs" >&5
8060 $as_echo "$ac_cv_fc_libs" >&6; }
8061 FCLIBS="$ac_cv_fc_libs"
8062
8063
8064 ac_ext=${ac_fc_srcext-f}
8065 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
8066 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
8067 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
8068
8069
8070
8071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for module suffix" >&5
8072 $as_echo_n "checking for module suffix... " >&6; }
8073 rm -f conftest*
8074 # Intel ifc compiler generates files by the name of work.pc and work.pcl (!)
8075 rm -f work*
8076 cat >conftest.$ac_ext <<EOF
8077        module conftest
8078        integer n
8079        parameter (n=1)
8080        end module conftest
8081 EOF
8082 # SGI and absoft compilers generates module name in upper case!
8083 testname="conftest"
8084 modcase="lower"
8085 if (eval $ac_compile) 2>/dev/null ; then
8086    MOD=`ls conftest* | grep -v conftest.$ac_ext | grep -v conftest.o`
8087    MOD=`echo "$MOD" | sed -e 's/conftest\.//g'`
8088    if test -z "$MOD" ; then
8089        MOD=`ls CONFTEST* 2>/dev/null \
8090                | grep -v CONFTEST.$ac_ext | grep -v CONFTEST.o`
8091        MOD=`echo "$MOD" | sed -e 's/CONFTEST\.//g'`
8092        if test -n "$MOD" ; then
8093            testname="CONFTEST"
8094            modcase="upper"
8095        fi
8096    fi
8097    if test -z "$MOD" ; then
8098        { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
8099 $as_echo "unknown" >&6; }
8100        # Use mod if we can't figure it out
8101        MOD="mod"
8102    else
8103        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOD" >&5
8104 $as_echo "$MOD" >&6; }
8105    fi
8106    if test -s work.pcl ; then
8107        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Compiler generates auxillery files!" >&5
8108 $as_echo "$as_me: WARNING: Compiler generates auxillery files!" >&2;}
8109    fi
8110 else
8111    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
8112 $as_echo "unknown" >&6; }
8113 fi
8114
8115
8116
8117
8118
8119 # Check for module include path (some use -I, some (Solaris) use -M, some
8120 # (absoft) use -p).
8121 # Intel compilers use a wierd system: -cl,filename.pcl .  If no file is
8122 # specified, work.pcl and work.pc are created.  However, if you specify
8123 # a file, it must contain a the name of a file ending in .pc .  Ugh!
8124 # Use the module made above
8125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for module directory path flag" >&5
8126 $as_echo_n "checking for module directory path flag... " >&6; }
8127 rm -f conftest*
8128 # Intel ifc compiler generates files by the name of work.pc and work.pcl (!)
8129 rm -f work*
8130 cat >conftest.$ac_ext <<EOF
8131        module conftest
8132        integer n
8133        parameter (n=1)
8134        end module conftest
8135 EOF
8136 # SGI and absoft compilers generates module name in upper case!
8137 testname="conftest"
8138 if (eval $ac_compile) 2>/dev/null ; then
8139   mod=`ls CONFTEST* 2>/dev/null | grep -v CONFTEST.$ac_ext | grep -v CONFTEST.o`
8140   mod=`echo "$mod" | sed -e 's/CONFTEST\.//g'`
8141   if test -n "$mod" ; then
8142      testname="CONFTEST"
8143   fi
8144   madedir=0
8145   if test ! -d conf ; then mkdir conf ; madedir=1; fi
8146   cp $testname.$MOD conf
8147   rm -f conftest* CONFTEST*
8148   cat >conftest1.$ac_ext <<EOF
8149        program main
8150        use conftest
8151        print *, n
8152        end
8153 EOF
8154   F90_WORK_FILES_ARG=""
8155   F90MODINCSPEC=""
8156   if $FC -c -Iconf $FCFLAGS $FCFLAGS_SRCEXT conftest1.$ac_ext > conftest.out 2>&1 ; then
8157       MODDIRFLAG="-I"
8158       F90MODINCSPEC="-I<dir>"
8159       { $as_echo "$as_me:${as_lineno-$LINENO}: result: -I" >&5
8160 $as_echo "-I" >&6; }
8161   elif $FC -c -Mconf $FCFLAGS $FCFLAGS_SRCEXT conftest1.$ac_ext >> conftest.out 2>&1 ; then
8162       MODDIRFLAG="-M"
8163       F90MODINCSPEC="-M<dir>"
8164       { $as_echo "$as_me:${as_lineno-$LINENO}: result: -M" >&5
8165 $as_echo "-M" >&6; }
8166   elif $FC -c -pconf $FCFLAGS $FCFLAGS_SRCEXT conftest1.$ac_ext >> conftest.out 2>&1 ; then
8167       MODDIRFLAG="-p"
8168       F90MODINCSPEC="-p<dir>"
8169       { $as_echo "$as_me:${as_lineno-$LINENO}: result: -p" >&5
8170 $as_echo "-p" >&6; }
8171   elif test -s work.pc ; then
8172        cp work.pc conf/mpimod.pc
8173        echo "mpimod.pc" > conf/mpimod.pcl
8174        echo "`pwd`/conf/mpimod.pc" >> conf/mpimod.pcl
8175        if $FC -c -cl,conf/mpimod.pcl $FCFLAGS $FCFLAGS_SRCEXT conftest1.$ac_ext >>conftest.out 2>&1 ; then
8176            MODDIRFLAG='-cl,mpimod.pcl'
8177            { $as_echo "$as_me:${as_lineno-$LINENO}: result: -cl,filename where filename contains a list of files and directories" >&5
8178 $as_echo "-cl,filename where filename contains a list of files and directories" >&6; }
8179            F90_WORK_FILES_ARG="-cl,mpimod.pcl"
8180            F90MODINCSPEC="-cl,<dir>/<file>mod.pcl"
8181
8182        else
8183            # The version of the Intel compiler that I have refuses to let
8184            # you put the "work catalog" list anywhere but the current
8185            # directory. For example, you cannot in
8186         :
8187        fi
8188   fi
8189   if test -z "MODDIRFLAG" ; then
8190       { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
8191 $as_echo "unknown" >&6; }
8192   fi
8193
8194
8195   rm -f conftest* conf/conftest* conf/CONFTEST* CONFTEST* conf/mpimod*
8196   if test $madedir = 1 ; then rmdir conf ; fi
8197 fi
8198
8199
8200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 90 module file names" >&5
8201 $as_echo_n "checking for Fortran 90 module file names... " >&6; }
8202 if test "${ac_cv_f90_module_names+set}" = set; then :
8203  $as_echo_n "(cached) " >&6
8204 else
8205  ac_ext=${ac_fc_srcext-f}
8206 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
8207 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
8208 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
8209
8210 # carry out the test in a new directory, so that we don't miss anything
8211 mkdir conftest
8212 cd conftest
8213 cat > conftest.$ac_ext <<_ACEOF
8214 MODULE Bar
8215 END MODULE Bar
8216 _ACEOF
8217 if ac_fn_fc_try_compile "$LINENO"; then :
8218  ac_cv_f90_module_names=
8219 ac_file_list=*
8220 for ac_file in $ac_file_list; do
8221   case $ac_file in
8222      # don't care for original source and object files
8223      conftest.$ac_ext | conftest.$ac_objext | conftest.err )
8224          :
8225          ;;
8226      # look for new files derived from the file name
8227      *conftest*)
8228          ac_pat=`echo $ac_file | sed s/conftest/%FILE%/`
8229            ac_exists=false
8230  for ac_i in $ac_cv_f90_module_names; do
8231    if test x"$ac_pat" = x"$ac_i"; then
8232      ac_exists=true
8233      break
8234    fi
8235  done
8236
8237  if test x"$ac_exists" = xtrue; then :
8238
8239 else
8240  ac_cv_f90_module_names="$ac_cv_f90_module_names $ac_pat"
8241 fi
8242          ;;
8243      # look for new files derived from the module name,
8244      # with different case translation schemes
8245      *Bar*)
8246          ac_pat=`echo $ac_file | sed s/Bar/%Module%/`
8247            ac_exists=false
8248  for ac_i in $ac_cv_f90_module_names; do
8249    if test x"$ac_pat" = x"$ac_i"; then
8250      ac_exists=true
8251      break
8252    fi
8253  done
8254
8255  if test x"$ac_exists" = xtrue; then :
8256
8257 else
8258  ac_cv_f90_module_names="$ac_cv_f90_module_names $ac_pat"
8259 fi
8260          ;;
8261      *bar*)
8262          ac_pat=`echo $ac_file | sed s/bar/%module%/`
8263            ac_exists=false
8264  for ac_i in $ac_cv_f90_module_names; do
8265    if test x"$ac_pat" = x"$ac_i"; then
8266      ac_exists=true
8267      break
8268    fi
8269  done
8270
8271  if test x"$ac_exists" = xtrue; then :
8272
8273 else
8274  ac_cv_f90_module_names="$ac_cv_f90_module_names $ac_pat"
8275 fi
8276          ;;
8277      *BAR*)
8278          ac_pat=`echo $ac_file | sed s/BAR/%MODULE%/`
8279            ac_exists=false
8280  for ac_i in $ac_cv_f90_module_names; do
8281    if test x"$ac_pat" = x"$ac_i"; then
8282      ac_exists=true
8283      break
8284    fi
8285  done
8286
8287  if test x"$ac_exists" = xtrue; then :
8288
8289 else
8290  ac_cv_f90_module_names="$ac_cv_f90_module_names $ac_pat"
8291 fi
8292          ;;
8293       # Other files - we have no idea how they are generated
8294       *)
8295          { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Bogus file found: $ac_file" >&5
8296 $as_echo "$as_me: WARNING: Bogus file found: $ac_file" >&2;}
8297          ;;
8298   esac
8299 done
8300 if test "x$ac_cv_f90_module_names" = "x"; then
8301  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Couldn't determine module file names" >&5
8302 $as_echo "$as_me: WARNING: Couldn't determine module file names" >&2;}
8303 fi
8304
8305 else
8306  ac_cv_f90_module_names=
8307 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Couldn't determine module file names" >&5
8308 $as_echo "$as_me: WARNING: Couldn't determine module file names" >&2;}
8309 fi
8310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8311 cd ..
8312 # cleanup
8313 rm -rf conftest
8314 ac_ext=${ac_fc_srcext-f}
8315 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
8316 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
8317 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
8318
8319 fi
8320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f90_module_names" >&5
8321 $as_echo "$ac_cv_f90_module_names" >&6; } # AC_CACHE_CHECK
8322
8323 # We now generate a shell script that will help us to figure out the correct
8324 # module file names, using the value of ac_cv_f90_module_names
8325
8326 echo "Generating shell script modnam"
8327
8328 cat > scripts/modnam << EOF
8329 #! /bin/sh
8330 # This script is auto-generated by configure
8331 #
8332 usage="\\
8333 Usage: \$0 [FILES]
8334
8335 [FILES] are Fortran 90 source files.
8336 The output is a list of module file names that the Fortran 90 compiler
8337 generates when compiling [FILES]."
8338
8339 list=
8340 empty=
8341
8342 if test \$# -eq 0; then
8343   echo "\$usage"; exit 0
8344 fi
8345
8346 while test \$# != 0; do
8347
8348  file=\$1
8349  shift
8350
8351 # strip suffix
8352  base=\`echo \$file | sed 's/[.][^.]*$//'\`
8353
8354  test ! -f \$file && continue
8355
8356 # Look for module definitions and transform them to upper / lower case
8357  mods=\`cat \$file | sed '/^ *[mM][oO][dD][uU][lL][eE]/!d;s/^ *[mM][oO][dD][uU][lL][eE] *\([A-Za-z_][A-Za-z0-9_]*\).*\$/\1/'\`
8358  upper=\`echo \$mods | tr a-z A-Z\`
8359  lower=\`echo \$mods | tr A-Z a-z\`
8360
8361 # Here, the patterns for generating module file names were inserted by configure
8362  for trans in $ac_cv_f90_module_names; do
8363
8364    pat=\`echo \$trans | sed 's/.*\(%.*%\).*/\1/'\`
8365    var=empty
8366    case \$pat in
8367       %MODULE%)
8368          var=upper ;;
8369       %Module%)
8370          var=mods ;;
8371       %module%)
8372          var=lower ;;
8373       %FILE%)
8374          test -n "\$mods" && var=base ;;
8375    esac
8376    new=\`eval '(for i in \$'\$var '; do echo \$trans | sed s/\$pat/\$i/; done)'\`
8377    list="\$list \$new"
8378  done
8379 done
8380
8381 echo \$list
8382 # end of configure-generated script
8383 EOF
8384 chmod 755 scripts/modnam
8385
8386 pat=`echo $ac_cv_f90_module_names | sed 's/.*\(%.*%\).*/\1/'`
8387 F90_MODULE_NAMES=empty
8388 case $pat in
8389       %MODULE%)
8390          F90_MODULE_NAMES=UPPER ;;
8391       %Module%)
8392          F90_MODULE_NAMES=Mixed ;;
8393       %module%)
8394          F90_MODULE_NAMES=lower ;;
8395       *)
8396          F90_MODULE_NAMES=unknown ;;
8397 esac
8398
8399 ac_ext=${ac_fc_srcext-f}
8400 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
8401 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
8402 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
8403
8404
8405 ac_ext=c
8406 ac_cpp='$CPP $CPPFLAGS'
8407 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8408 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8409 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8410
8411
8412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asin in -lm" >&5
8413 $as_echo_n "checking for asin in -lm... " >&6; }
8414 if test "${ac_cv_lib_m_asin+set}" = set; then :
8415  $as_echo_n "(cached) " >&6
8416 else
8417  ac_check_lib_save_LIBS=$LIBS
8418 LIBS="-lm  $LIBS"
8419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8420 /* end confdefs.h.  */
8421
8422 /* Override any GCC internal prototype to avoid an error.
8423   Use char because int might match the return type of a GCC
8424   builtin and then its argument prototype would still apply.  */
8425 #ifdef __cplusplus
8426 extern "C"
8427 #endif
8428 char asin ();
8429 #ifdef FC_DUMMY_MAIN
8430 #ifndef FC_DUMMY_MAIN_EQ_F77
8431 #  ifdef __cplusplus
8432     extern "C"
8433 #  endif
8434   int FC_DUMMY_MAIN() { return 1; }
8435 #endif
8436 #endif
8437 int
8438 main ()
8439 {
8440 return asin ();
8441  ;
8442  return 0;
8443 }
8444 _ACEOF
8445 if ac_fn_c_try_link "$LINENO"; then :
8446  ac_cv_lib_m_asin=yes
8447 else
8448  ac_cv_lib_m_asin=no
8449 fi
8450 rm -f core conftest.err conftest.$ac_objext \
8451    conftest$ac_exeext conftest.$ac_ext
8452 LIBS=$ac_check_lib_save_LIBS
8453 fi
8454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_asin" >&5
8455 $as_echo "$ac_cv_lib_m_asin" >&6; }
8456 if test "x$ac_cv_lib_m_asin" = x""yes; then :
8457  cat >>confdefs.h <<_ACEOF
8458 #define HAVE_LIBM 1
8459 _ACEOF
8460
8461  LIBS="-lm $LIBS"
8462
8463 else
8464  exit
8465 fi
8466
8467
8468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8469 $as_echo_n "checking for ANSI C header files... " >&6; }
8470 if test "${ac_cv_header_stdc+set}" = set; then :
8471  $as_echo_n "(cached) " >&6
8472 else
8473  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8474 /* end confdefs.h.  */
8475 #include <stdlib.h>
8476 #include <stdarg.h>
8477 #include <string.h>
8478 #include <float.h>
8479
8480 #ifdef FC_DUMMY_MAIN
8481 #ifndef FC_DUMMY_MAIN_EQ_F77
8482 #  ifdef __cplusplus
8483     extern "C"
8484 #  endif
8485   int FC_DUMMY_MAIN() { return 1; }
8486 #endif
8487 #endif
8488 int
8489 main ()
8490 {
8491
8492  ;
8493  return 0;
8494 }
8495 _ACEOF
8496 if ac_fn_c_try_compile "$LINENO"; then :
8497  ac_cv_header_stdc=yes
8498 else
5190    ac_cv_header_stdc=no
5191   fi
8501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8502
8503 if test $ac_cv_header_stdc = yes; then
8504  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8505  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8506 /* end confdefs.h.  */
8507 #include <string.h>
8508
8509 _ACEOF
8510 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8511  $EGREP "memchr" >/dev/null 2>&1; then :
8512
8513 else
8514  ac_cv_header_stdc=no
8515 fi
5192   rm -f conftest*
5193  
5194   fi
5195  
5196   if test $ac_cv_header_stdc = yes; then
8521  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8522  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8523 /* end confdefs.h.  */
8524 #include <stdlib.h>
8525
8526 _ACEOF
8527 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8528  $EGREP "free" >/dev/null 2>&1; then :
8529
8530 else
8531  ac_cv_header_stdc=no
8532 fi
8533 rm -f conftest*
8534
8535 fi
8536
8537 if test $ac_cv_header_stdc = yes; then
5197    # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5198    if test "$cross_compiling" = yes; then :
5199    :
# Line 8592 | Line 5251 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$
5251    as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5252   ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5253   "
5254 < eval as_val=\$$as_ac_Header
8596 <   if test "x$as_val" = x""yes; then :
5254 > if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5255    cat >>confdefs.h <<_ACEOF
5256   #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5257   _ACEOF
# Line 8648 | Line 5306 | $as_echo_n "checking for inflateEnd in -lz... " >&6; }
5306  
5307          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflateEnd in -lz" >&5
5308   $as_echo_n "checking for inflateEnd in -lz... " >&6; }
5309 < if test "${ac_cv_lib_z_inflateEnd+set}" = set; then :
5309 > if ${ac_cv_lib_z_inflateEnd+:} false; then :
5310    $as_echo_n "(cached) " >&6
5311   else
5312    ac_check_lib_save_LIBS=$LIBS
# Line 8663 | Line 5321 | char inflateEnd ();
5321   extern "C"
5322   #endif
5323   char inflateEnd ();
8666 #ifdef FC_DUMMY_MAIN
8667 #ifndef FC_DUMMY_MAIN_EQ_F77
8668 #  ifdef __cplusplus
8669     extern "C"
8670 #  endif
8671   int FC_DUMMY_MAIN() { return 1; }
8672 #endif
8673 #endif
5324   int
5325   main ()
5326   {
# Line 8690 | Line 5340 | $as_echo "$ac_cv_lib_z_inflateEnd" >&6; }
5340   fi
5341   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateEnd" >&5
5342   $as_echo "$ac_cv_lib_z_inflateEnd" >&6; }
5343 < if test "x$ac_cv_lib_z_inflateEnd" = x""yes; then :
5343 > if test "x$ac_cv_lib_z_inflateEnd" = xyes; then :
5344    zlib_cv_libz=yes
5345   else
5346    zlib_cv_libz=no
5347   fi
5348  
5349          ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
5350 < if test "x$ac_cv_header_zlib_h" = x""yes; then :
5350 > if test "x$ac_cv_header_zlib_h" = xyes; then :
5351    zlib_cv_zlib_h=yes
5352   else
5353    zlib_cv_zlib_h=no
# Line 8734 | Line 5384 | $as_echo "failed" >&6; }
5384                  echo ""
5385                  echo "*********************************************************"
5386                  echo "* WARNING: Could not find a working zlib installation   *"
5387 <                echo "* If you need OOPSE to be able to deal with compressed  *"
5387 >                echo "* If you need OpenMD to be able to deal with compressed *"
5388                  echo "* trajectory dump files be sure to specify a valid zlib *"
5389                  echo "* installation with --with-zlib=DIR                     *"
5390                  echo "*                                                       *"
5391 <                echo "* OOPSE will still work without zlib installed.         *"
5391 >                echo "* OpenMD will still work without zlib installed.        *"
5392                  echo "*********************************************************"
5393                  echo ""
5394          fi
# Line 8788 | Line 5438 | $as_echo_n "checking for fftw_execute in -lfftw3... "
5438  
5439        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_execute in -lfftw3" >&5
5440   $as_echo_n "checking for fftw_execute in -lfftw3... " >&6; }
5441 < if test "${ac_cv_lib_fftw3_fftw_execute+set}" = set; then :
5441 > if ${ac_cv_lib_fftw3_fftw_execute+:} false; then :
5442    $as_echo_n "(cached) " >&6
5443   else
5444    ac_check_lib_save_LIBS=$LIBS
# Line 8803 | Line 5453 | char fftw_execute ();
5453   extern "C"
5454   #endif
5455   char fftw_execute ();
8806 #ifdef FC_DUMMY_MAIN
8807 #ifndef FC_DUMMY_MAIN_EQ_F77
8808 #  ifdef __cplusplus
8809     extern "C"
8810 #  endif
8811   int FC_DUMMY_MAIN() { return 1; }
8812 #endif
8813 #endif
5456   int
5457   main ()
5458   {
# Line 8830 | Line 5472 | $as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; }
5472   fi
5473   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_execute" >&5
5474   $as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; }
5475 < if test "x$ac_cv_lib_fftw3_fftw_execute" = x""yes; then :
5475 > if test "x$ac_cv_lib_fftw3_fftw_execute" = xyes; then :
5476    fftw_cv_libfftw3=yes
5477   else
5478    fftw_cv_libfftw3=no
5479   fi
5480  
5481        ac_fn_c_check_header_mongrel "$LINENO" "fftw3.h" "ac_cv_header_fftw3_h" "$ac_includes_default"
5482 < if test "x$ac_cv_header_fftw3_h" = x""yes; then :
5482 > if test "x$ac_cv_header_fftw3_h" = xyes; then :
5483    fftw_cv_fftw3_h=yes
5484   else
5485    fftw_cv_fftw3_h=no
# Line 8847 | Line 5489 | $as_echo_n "checking for fftwnd_one in -lfftw... " >&6
5489        if test "$fftw_cv_libfftw3" = "no" -o "$fftw_cv_fftw3_h" = "no"; then
5490          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftwnd_one in -lfftw" >&5
5491   $as_echo_n "checking for fftwnd_one in -lfftw... " >&6; }
5492 < if test "${ac_cv_lib_fftw_fftwnd_one+set}" = set; then :
5492 > if ${ac_cv_lib_fftw_fftwnd_one+:} false; then :
5493    $as_echo_n "(cached) " >&6
5494   else
5495    ac_check_lib_save_LIBS=$LIBS
# Line 8862 | Line 5504 | char fftwnd_one ();
5504   extern "C"
5505   #endif
5506   char fftwnd_one ();
8865 #ifdef FC_DUMMY_MAIN
8866 #ifndef FC_DUMMY_MAIN_EQ_F77
8867 #  ifdef __cplusplus
8868     extern "C"
8869 #  endif
8870   int FC_DUMMY_MAIN() { return 1; }
8871 #endif
8872 #endif
5507   int
5508   main ()
5509   {
# Line 8889 | Line 5523 | $as_echo "$ac_cv_lib_fftw_fftwnd_one" >&6; }
5523   fi
5524   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw_fftwnd_one" >&5
5525   $as_echo "$ac_cv_lib_fftw_fftwnd_one" >&6; }
5526 < if test "x$ac_cv_lib_fftw_fftwnd_one" = x""yes; then :
5526 > if test "x$ac_cv_lib_fftw_fftwnd_one" = xyes; then :
5527    fftw_cv_libfftw=yes
5528   else
5529    fftw_cv_libfftw=no
5530   fi
5531  
5532          ac_fn_c_check_header_mongrel "$LINENO" "fftw.h" "ac_cv_header_fftw_h" "$ac_includes_default"
5533 < if test "x$ac_cv_header_fftw_h" = x""yes; then :
5533 > if test "x$ac_cv_header_fftw_h" = xyes; then :
5534    fftw_cv_fftw_h=yes
5535   else
5536    fftw_cv_fftw_h=no
# Line 8906 | Line 5540 | $as_echo_n "checking for fftwnd_one in -ldfftw... " >&
5540          if test "$fftw_cv_libfftw" = "no" -o "$fftw_cv_fftw_h" = "no"; then
5541            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftwnd_one in -ldfftw" >&5
5542   $as_echo_n "checking for fftwnd_one in -ldfftw... " >&6; }
5543 < if test "${ac_cv_lib_dfftw_fftwnd_one+set}" = set; then :
5543 > if ${ac_cv_lib_dfftw_fftwnd_one+:} false; then :
5544    $as_echo_n "(cached) " >&6
5545   else
5546    ac_check_lib_save_LIBS=$LIBS
# Line 8921 | Line 5555 | char fftwnd_one ();
5555   extern "C"
5556   #endif
5557   char fftwnd_one ();
8924 #ifdef FC_DUMMY_MAIN
8925 #ifndef FC_DUMMY_MAIN_EQ_F77
8926 #  ifdef __cplusplus
8927     extern "C"
8928 #  endif
8929   int FC_DUMMY_MAIN() { return 1; }
8930 #endif
8931 #endif
5558   int
5559   main ()
5560   {
# Line 8948 | Line 5574 | $as_echo "$ac_cv_lib_dfftw_fftwnd_one" >&6; }
5574   fi
5575   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dfftw_fftwnd_one" >&5
5576   $as_echo "$ac_cv_lib_dfftw_fftwnd_one" >&6; }
5577 < if test "x$ac_cv_lib_dfftw_fftwnd_one" = x""yes; then :
5577 > if test "x$ac_cv_lib_dfftw_fftwnd_one" = xyes; then :
5578    fftw_cv_libdfftw=yes
5579   else
5580    fftw_cv_libdfftw=no
5581   fi
5582  
5583            ac_fn_c_check_header_mongrel "$LINENO" "dfftw.h" "ac_cv_header_dfftw_h" "$ac_includes_default"
5584 < if test "x$ac_cv_header_dfftw_h" = x""yes; then :
5584 > if test "x$ac_cv_header_dfftw_h" = xyes; then :
5585    fftw_cv_dfftw_h=yes
5586   else
5587    fftw_cv_dfftw_h=no
# Line 9010 | Line 5636 | $as_echo "failed" >&6; }
5636              echo "* compute undulation spectra, be sure to specify a      *"
5637              echo "* valid fftw installation with --with-fftw=DIR          *"
5638              echo "*                                                       *"
5639 <            echo "* OOPSE will still work without fftw installed.         *"
5639 >            echo "* OpenMD will still work without fftw installed.        *"
5640              echo "*********************************************************"
5641              echo ""
5642            fi
# Line 9047 | Line 5673 | $as_echo "$as_me: WARNING: Sorry, $qhull_dir does not
5673         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Sorry, $qhull_dir does not exist, checking usual places" >&5
5674   $as_echo "$as_me: WARNING: Sorry, $qhull_dir does not exist, checking usual places" >&2;}
5675         QHULL_HOME=/usr/local
5676 <       if test ! -f "${QHULL_HOME}/include/qhull/qhull.h"; then
5676 >       if test ! -f "${QHULL_HOME}/include/qhull/libqhull.h"; then
5677            QHULL_HOME=/usr
5678         fi
5679       fi
# Line 9071 | Line 5697 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
5697          LDFLAGS="$LDFLAGS -L${QHULL_HOME}/lib"
5698          CFLAGS="$CFLAGS -I${QHULL_HOME}/include"
5699          CPPFLAGS="$CPPFLAGS -I${QHULL_HOME}/include"
5700 <        ac_fn_c_check_header_mongrel "$LINENO" "qhull/qhull.h" "ac_cv_header_qhull_qhull_h" "$ac_includes_default"
5701 < if test "x$ac_cv_header_qhull_qhull_h" = x""yes; then :
5702 <  qhull_cv_qhull_h=yes
5700 >        ac_fn_c_check_header_mongrel "$LINENO" "qhull/libqhull.h" "ac_cv_header_qhull_libqhull_h" "$ac_includes_default"
5701 > if test "x$ac_cv_header_qhull_libqhull_h" = xyes; then :
5702 >  qhull_cv_libqhull_h=yes
5703   else
5704 <  qhull_cv_qhull_h=no
5704 >  qhull_cv_libqhull_h=no
5705   fi
5706  
5707  
5708          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qh_qhull in -lqhull" >&5
5709   $as_echo_n "checking for qh_qhull in -lqhull... " >&6; }
5710 < if test "${ac_cv_lib_qhull_qh_qhull+set}" = set; then :
5710 > if ${ac_cv_lib_qhull_qh_qhull+:} false; then :
5711    $as_echo_n "(cached) " >&6
5712   else
5713    ac_check_lib_save_LIBS=$LIBS
# Line 9096 | Line 5722 | char qh_qhull ();
5722   extern "C"
5723   #endif
5724   char qh_qhull ();
9099 #ifdef FC_DUMMY_MAIN
9100 #ifndef FC_DUMMY_MAIN_EQ_F77
9101 #  ifdef __cplusplus
9102     extern "C"
9103 #  endif
9104   int FC_DUMMY_MAIN() { return 1; }
9105 #endif
9106 #endif
5725   int
5726   main ()
5727   {
# Line 9123 | Line 5741 | $as_echo "$ac_cv_lib_qhull_qh_qhull" >&6; }
5741   fi
5742   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_qhull_qh_qhull" >&5
5743   $as_echo "$ac_cv_lib_qhull_qh_qhull" >&6; }
5744 < if test "x$ac_cv_lib_qhull_qh_qhull" = x""yes; then :
5744 > if test "x$ac_cv_lib_qhull_qh_qhull" = xyes; then :
5745    qhull_cv_libqhull=yes
5746   else
5747    qhull_cv_libqhull=no
5748   fi
5749  
5750 +        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qh_qhull in -lqhull6" >&5
5751 + $as_echo_n "checking for qh_qhull in -lqhull6... " >&6; }
5752 + if ${ac_cv_lib_qhull6_qh_qhull+:} false; then :
5753 +  $as_echo_n "(cached) " >&6
5754 + else
5755 +  ac_check_lib_save_LIBS=$LIBS
5756 + LIBS="-lqhull6  $LIBS"
5757 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5758 + /* end confdefs.h.  */
5759 +
5760 + /* Override any GCC internal prototype to avoid an error.
5761 +   Use char because int might match the return type of a GCC
5762 +   builtin and then its argument prototype would still apply.  */
5763 + #ifdef __cplusplus
5764 + extern "C"
5765 + #endif
5766 + char qh_qhull ();
5767 + int
5768 + main ()
5769 + {
5770 + return qh_qhull ();
5771 +  ;
5772 +  return 0;
5773 + }
5774 + _ACEOF
5775 + if ac_fn_c_try_link "$LINENO"; then :
5776 +  ac_cv_lib_qhull6_qh_qhull=yes
5777 + else
5778 +  ac_cv_lib_qhull6_qh_qhull=no
5779 + fi
5780 + rm -f core conftest.err conftest.$ac_objext \
5781 +    conftest$ac_exeext conftest.$ac_ext
5782 + LIBS=$ac_check_lib_save_LIBS
5783 + fi
5784 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_qhull6_qh_qhull" >&5
5785 + $as_echo "$ac_cv_lib_qhull6_qh_qhull" >&6; }
5786 + if test "x$ac_cv_lib_qhull6_qh_qhull" = xyes; then :
5787 +  qhull_cv_libqhull6=yes
5788 + else
5789 +  qhull_cv_libqhull6=no
5790 + fi
5791 +
5792          LDFLAGS="$QHULL_OLD_LDFLAGS"
5793          CFLAGS="$QHULL_OLD_CFLAGS"
5794          CPPFLAGS="$QHULL_OLD_CPPFLAGS"
# Line 9139 | Line 5799 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
5799   ac_compiler_gnu=$ac_cv_c_compiler_gnu
5800  
5801  
5802 <        if test "$qhull_cv_libqhull" = "yes" -a "$qhull_cv_qhull_h" = "yes"; then
5802 >        if test "$qhull_cv_libqhull_h" = "yes" -a "$qhull_cv_libqhull" = "yes" -o "$qhull_cv_libqhull6" = "yes"; then
5803  
5804 < $as_echo "#define HAVE_QHULL_H 1" >>confdefs.h
5804 > $as_echo "#define HAVE_LIBQHULL_H 1" >>confdefs.h
5805  
5806 +           if test "$qhull_cv_libqhull" = "yes"; then
5807  
5808   $as_echo "#define HAVE_QHULL 1" >>confdefs.h
5809  
5810 +                QHULL="-lqhull"
5811 +           fi
5812 +           if test "$qhull_cv_libqhull6" = "yes"; then
5813 +
5814 + $as_echo "#define HAVE_QHULL 1" >>confdefs.h
5815 +
5816 +                QHULL="-lqhull6"
5817 +           fi
5818             USE_QHULL=yes
5819             QHULL_INC_DIR="${QHULL_HOME}/include"
5820             QHULL_LIB_DIR="${QHULL_HOME}/lib"
9152           QHULL="-lqhull"
5821             { $as_echo "$as_me:${as_lineno-$LINENO}: result: Working qhull found, will proceed." >&5
5822   $as_echo "Working qhull found, will proceed." >&6; }
5823          else
# Line 9157 | Line 5825 | $as_echo "$as_me: WARNING: Could not find a working qh
5825   $as_echo "$as_me: WARNING: " >&2;}
5826             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find a working qhull installation" >&5
5827   $as_echo "$as_me: WARNING: Could not find a working qhull installation" >&2;}
5828 <           { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: If you need OOPSE to be able to deal with convex    " >&5
5829 < $as_echo "$as_me: WARNING: If you need OOPSE to be able to deal with convex    " >&2;}
5828 >           { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: If you need OpenMD to be able to deal with convex    " >&5
5829 > $as_echo "$as_me: WARNING: If you need OpenMD to be able to deal with convex    " >&2;}
5830             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: hulls be sure to specify a valid qhull installation " >&5
5831   $as_echo "$as_me: WARNING: hulls be sure to specify a valid qhull installation " >&2;}
5832             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: with --with-qhull=DIR                               " >&5
5833   $as_echo "$as_me: WARNING: with --with-qhull=DIR                               " >&2;}
5834             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: " >&5
5835   $as_echo "$as_me: WARNING: " >&2;}
5836 <           { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OOPSE will still work without qhull installed.      " >&5
5837 < $as_echo "$as_me: WARNING: OOPSE will still work without qhull installed.      " >&2;}
5836 >           { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OpenMD will still work without qhull installed.      " >&5
5837 > $as_echo "$as_me: WARNING: OpenMD will still work without qhull installed.      " >&2;}
5838             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: " >&5
5839   $as_echo "$as_me: WARNING: " >&2;}
5840          fi
# Line 9185 | Line 5853 | if test -z "$CXXCPP"; then
5853   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5854   $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5855   if test -z "$CXXCPP"; then
5856 <  if test "${ac_cv_prog_CXXCPP+set}" = set; then :
5856 >  if ${ac_cv_prog_CXXCPP+:} false; then :
5857    $as_echo_n "(cached) " >&6
5858   else
5859        # Double quotes because CXXCPP needs to be expanded
# Line 9215 | Line 5883 | fi
5883    # Broken: fails on valid input.
5884   continue
5885   fi
5886 < rm -f conftest.err conftest.$ac_ext
5886 > rm -f conftest.err conftest.i conftest.$ac_ext
5887  
5888    # OK, works on sane cases.  Now check whether nonexistent headers
5889    # can be detected and how.
# Line 9231 | Line 5899 | fi
5899   ac_preproc_ok=:
5900   break
5901   fi
5902 < rm -f conftest.err conftest.$ac_ext
5902 > rm -f conftest.err conftest.i conftest.$ac_ext
5903  
5904   done
5905   # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5906 < rm -f conftest.err conftest.$ac_ext
5906 > rm -f conftest.i conftest.err conftest.$ac_ext
5907   if $ac_preproc_ok; then :
5908    break
5909   fi
# Line 9274 | Line 5942 | fi
5942    # Broken: fails on valid input.
5943   continue
5944   fi
5945 < rm -f conftest.err conftest.$ac_ext
5945 > rm -f conftest.err conftest.i conftest.$ac_ext
5946  
5947    # OK, works on sane cases.  Now check whether nonexistent headers
5948    # can be detected and how.
# Line 9290 | Line 5958 | fi
5958   ac_preproc_ok=:
5959   break
5960   fi
5961 < rm -f conftest.err conftest.$ac_ext
5961 > rm -f conftest.err conftest.i conftest.$ac_ext
5962  
5963   done
5964   # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5965 < rm -f conftest.err conftest.$ac_ext
5965 > rm -f conftest.i conftest.err conftest.$ac_ext
5966   if $ac_preproc_ok; then :
5967  
5968   else
5969    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5970   $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5971 < as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
5972 < See \`config.log' for more details." "$LINENO" 5; }
5971 > as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
5972 > See \`config.log' for more details" "$LINENO" 5; }
5973   fi
5974  
5975   ac_ext=cpp
# Line 9355 | Line 6023 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6023          LDFLAGS="$LDFLAGS -L${OPENBABEL_HOME}/lib -lopenbabel"
6024          CPPFLAGS="$CPPFLAGS -I${OPENBABEL_HOME}/include/openbabel-2.0"
6025          ac_fn_cxx_check_header_mongrel "$LINENO" "openbabel/babelconfig.h" "ac_cv_header_openbabel_babelconfig_h" "$ac_includes_default"
6026 < if test "x$ac_cv_header_openbabel_babelconfig_h" = x""yes; then :
6026 > if test "x$ac_cv_header_openbabel_babelconfig_h" = xyes; then :
6027    openbabel_cv_openbabel_h=yes
6028   else
6029    openbabel_cv_openbabel_h=no
# Line 9363 | Line 6031 | fi
6031  
6032  
6033          ac_fn_cxx_check_header_mongrel "$LINENO" "openbabel/obconversion.h" "ac_cv_header_openbabel_obconversion_h" "$ac_includes_default"
6034 < if test "x$ac_cv_header_openbabel_obconversion_h" = x""yes; then :
6034 > if test "x$ac_cv_header_openbabel_obconversion_h" = xyes; then :
6035    openbabel_cv_obconversion_h=yes
6036   else
6037    openbabel_cv_obconversion_h=no
# Line 9379 | Line 6047 | using namespace OpenBabel;
6047   using namespace std;
6048   using namespace OpenBabel;
6049  
9382 #ifdef FC_DUMMY_MAIN
9383 #ifndef FC_DUMMY_MAIN_EQ_F77
9384 #  ifdef __cplusplus
9385     extern "C"
9386 #  endif
9387   int FC_DUMMY_MAIN() { return 1; }
9388 #endif
9389 #endif
6050   int
6051   main ()
6052   {
# Line 9440 | Line 6100 | $as_echo "failed" >&6; }
6100                  echo ""
6101                  echo "*********************************************************"
6102                  echo "* WARNING: Could not find a working openbabel-2.x       *"
6103 <                echo "* installation If you need OOPSE to be able to convert  *"
6103 >                echo "* installation If you need OpenMD to be able to convert *"
6104                  echo "* xyz or pdb files you need to specify a valid          *"
6105                  echo "* openbabel-2.x installation with --with-openbabel=DIR  *"
6106                  echo "*                                                       *"
6107 <                echo "* OOPSE will still work without openbabel installed.    *"
6107 >                echo "* OpenMD will still work without openbabel installed.   *"
6108                  echo "*********************************************************"
6109                  echo ""
6110          fi
# Line 9459 | Line 6119 | $as_echo_n "checking for ANSI C header files... " >&6;
6119   # Checks for header files.
6120   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6121   $as_echo_n "checking for ANSI C header files... " >&6; }
6122 < if test "${ac_cv_header_stdc+set}" = set; then :
6122 > if ${ac_cv_header_stdc+:} false; then :
6123    $as_echo_n "(cached) " >&6
6124   else
6125    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
# Line 9469 | Line 6129 | else
6129   #include <string.h>
6130   #include <float.h>
6131  
9472 #ifdef FC_DUMMY_MAIN
9473 #ifndef FC_DUMMY_MAIN_EQ_F77
9474 #  ifdef __cplusplus
9475     extern "C"
9476 #  endif
9477   int FC_DUMMY_MAIN() { return 1; }
9478 #endif
9479 #endif
6132   int
6133   main ()
6134   {
# Line 9581 | Line 6233 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$
6233   do :
6234    as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6235   ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6236 < eval as_val=\$$as_ac_Header
9585 <   if test "x$as_val" = x""yes; then :
6236 > if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6237    cat >>confdefs.h <<_ACEOF
6238   #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6239   _ACEOF
# Line 9595 | Line 6246 | $as_echo_n "checking for stdbool.h that conforms to C9
6246   # Checks for typedefs, structures, and compiler characteristics.
6247   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
6248   $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
6249 < if test "${ac_cv_header_stdbool_h+set}" = set; then :
6249 > if ${ac_cv_header_stdbool_h+:} false; then :
6250    $as_echo_n "(cached) " >&6
6251   else
6252    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
# Line 9627 | Line 6278 | else
6278          char b[false == 0 ? 1 : -1];
6279          char c[__bool_true_false_are_defined == 1 ? 1 : -1];
6280          char d[(bool) 0.5 == true ? 1 : -1];
6281 <        bool e = &s;
6281 >        /* See body of main program for 'e'.  */
6282          char f[(_Bool) 0.0 == false ? 1 : -1];
6283          char g[true];
6284          char h[sizeof (_Bool)];
# Line 9638 | Line 6289 | else
6289          _Bool n[m];
6290          char o[sizeof n == m * sizeof n[0] ? 1 : -1];
6291          char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
9641 #       if defined __xlc__ || defined __GNUC__
9642         /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
9643            reported by James Lemley on 2005-10-05; see
9644            http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
9645            This test is not quite right, since xlc is allowed to
9646            reject this program, as the initializer for xlcbug is
9647            not one of the forms that C requires support for.
9648            However, doing the test right would require a runtime
9649            test, and that would make cross-compilation harder.
9650            Let us hope that IBM fixes the xlc bug, and also adds
9651            support for this kind of constant expression.  In the
9652            meantime, this test will reject xlc, which is OK, since
9653            our stdbool.h substitute should suffice.  We also test
9654            this with GCC, where it should work, to detect more
9655            quickly whether someone messes up the test in the
9656            future.  */
9657         char digs[] = "0123456789";
9658         int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
9659 #       endif
6292          /* Catch a bug in an HP-UX C compiler.  See
6293             http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
6294             http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
# Line 9664 | Line 6296 | else
6296          _Bool q = true;
6297          _Bool *pq = &q;
6298  
9667 #ifdef FC_DUMMY_MAIN
9668 #ifndef FC_DUMMY_MAIN_EQ_F77
9669 #  ifdef __cplusplus
9670     extern "C"
9671 #  endif
9672   int FC_DUMMY_MAIN() { return 1; }
9673 #endif
9674 #endif
6299   int
6300   main ()
6301   {
6302  
6303 +        bool e = &s;
6304          *pq |= q;
6305          *pq |= ! q;
6306          /* Refer to every declared value, to avoid compiler optimizations.  */
# Line 9696 | Line 6321 | ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool
6321   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
6322   $as_echo "$ac_cv_header_stdbool_h" >&6; }
6323   ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
6324 < if test "x$ac_cv_type__Bool" = x""yes; then :
6324 > if test "x$ac_cv_type__Bool" = xyes; then :
6325  
6326   cat >>confdefs.h <<_ACEOF
6327   #define HAVE__BOOL 1
# Line 9713 | Line 6338 | $as_echo_n "checking for an ANSI C-conforming const...
6338  
6339   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
6340   $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
6341 < if test "${ac_cv_c_const+set}" = set; then :
6341 > if ${ac_cv_c_const+:} false; then :
6342    $as_echo_n "(cached) " >&6
6343   else
6344    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6345   /* end confdefs.h.  */
6346  
9722 #ifdef FC_DUMMY_MAIN
9723 #ifndef FC_DUMMY_MAIN_EQ_F77
9724 #  ifdef __cplusplus
9725     extern "C"
9726 #  endif
9727   int FC_DUMMY_MAIN() { return 1; }
9728 #endif
9729 #endif
6347   int
6348   main ()
6349   {
# Line 9801 | Line 6418 | $as_echo_n "checking for inline... " >&6; }
6418  
6419   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
6420   $as_echo_n "checking for inline... " >&6; }
6421 < if test "${ac_cv_c_inline+set}" = set; then :
6421 > if ${ac_cv_c_inline+:} false; then :
6422    $as_echo_n "(cached) " >&6
6423   else
6424    ac_cv_c_inline=no
# Line 9842 | Line 6459 | ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size
6459   esac
6460  
6461   ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6462 < if test "x$ac_cv_type_size_t" = x""yes; then :
6462 > if test "x$ac_cv_type_size_t" = xyes; then :
6463  
6464   else
6465  
# Line 9854 | Line 6471 | $as_echo_n "checking whether time.h and sys/time.h may
6471  
6472   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
6473   $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
6474 < if test "${ac_cv_header_time+set}" = set; then :
6474 > if ${ac_cv_header_time+:} false; then :
6475    $as_echo_n "(cached) " >&6
6476   else
6477    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
# Line 9863 | Line 6480 | else
6480   #include <sys/time.h>
6481   #include <time.h>
6482  
9866 #ifdef FC_DUMMY_MAIN
9867 #ifndef FC_DUMMY_MAIN_EQ_F77
9868 #  ifdef __cplusplus
9869     extern "C"
9870 #  endif
9871   int FC_DUMMY_MAIN() { return 1; }
9872 #endif
9873 #endif
6483   int
6484   main ()
6485   {
# Line 9900 | Line 6509 | do :
6509   for ac_header in stdlib.h
6510   do :
6511    ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
6512 < if test "x$ac_cv_header_stdlib_h" = x""yes; then :
6512 > if test "x$ac_cv_header_stdlib_h" = xyes; then :
6513    cat >>confdefs.h <<_ACEOF
6514   #define HAVE_STDLIB_H 1
6515   _ACEOF
# Line 9911 | Line 6520 | $as_echo_n "checking for GNU libc compatible malloc...
6520  
6521   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
6522   $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
6523 < if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then :
6523 > if ${ac_cv_func_malloc_0_nonnull+:} false; then :
6524    $as_echo_n "(cached) " >&6
6525   else
6526    if test "$cross_compiling" = yes; then :
# Line 9925 | Line 6534 | char *malloc ();
6534   char *malloc ();
6535   #endif
6536  
9928 #ifdef FC_DUMMY_MAIN
9929 #ifndef FC_DUMMY_MAIN_EQ_F77
9930 #  ifdef __cplusplus
9931     extern "C"
9932 #  endif
9933   int FC_DUMMY_MAIN() { return 1; }
9934 #endif
9935 #endif
6537   int
6538   main ()
6539   {
# Line 9975 | Line 6576 | do :
6576   for ac_header in stdlib.h
6577   do :
6578    ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
6579 < if test "x$ac_cv_header_stdlib_h" = x""yes; then :
6579 > if test "x$ac_cv_header_stdlib_h" = xyes; then :
6580    cat >>confdefs.h <<_ACEOF
6581   #define HAVE_STDLIB_H 1
6582   _ACEOF
# Line 9986 | Line 6587 | $as_echo_n "checking for GNU libc compatible realloc..
6587  
6588   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
6589   $as_echo_n "checking for GNU libc compatible realloc... " >&6; }
6590 < if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then :
6590 > if ${ac_cv_func_realloc_0_nonnull+:} false; then :
6591    $as_echo_n "(cached) " >&6
6592   else
6593    if test "$cross_compiling" = yes; then :
# Line 10000 | Line 6601 | char *realloc ();
6601   char *realloc ();
6602   #endif
6603  
10003 #ifdef FC_DUMMY_MAIN
10004 #ifndef FC_DUMMY_MAIN_EQ_F77
10005 #  ifdef __cplusplus
10006     extern "C"
10007 #  endif
10008   int FC_DUMMY_MAIN() { return 1; }
10009 #endif
10010 #endif
6604   int
6605   main ()
6606   {
# Line 10051 | Line 6644 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$
6644   do :
6645    as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6646   ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6647 < eval as_val=\$$as_ac_Header
10055 <   if test "x$as_val" = x""yes; then :
6647 > if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6648    cat >>confdefs.h <<_ACEOF
6649   #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6650   _ACEOF
# Line 10063 | Line 6655 | $as_echo_n "checking types of arguments for select...
6655  
6656   { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
6657   $as_echo_n "checking types of arguments for select... " >&6; }
6658 < if test "${ac_cv_func_select_args+set}" = set; then :
6658 > if ${ac_cv_func_select_args+:} false; then :
6659    $as_echo_n "(cached) " >&6
6660   else
6661    for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
# Line 10079 | Line 6671 | $ac_includes_default
6671   # include <sys/socket.h>
6672   #endif
6673  
10082 #ifdef FC_DUMMY_MAIN
10083 #ifndef FC_DUMMY_MAIN_EQ_F77
10084 #  ifdef __cplusplus
10085     extern "C"
10086 #  endif
10087   int FC_DUMMY_MAIN() { return 1; }
10088 #endif
10089 #endif
6674   int
6675   main ()
6676   {
# Line 10105 | Line 6689 | done
6689   done
6690   done
6691   # Provide a safe default value.
6692 < : ${ac_cv_func_select_args='int,int *,struct timeval *'}
6692 > : "${ac_cv_func_select_args=int,int *,struct timeval *}"
6693  
6694   fi
6695   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
# Line 10133 | Line 6717 | $as_echo_n "checking for working strtod... " >&6; }
6717  
6718   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
6719   $as_echo_n "checking for working strtod... " >&6; }
6720 < if test "${ac_cv_func_strtod+set}" = set; then :
6720 > if ${ac_cv_func_strtod+:} false; then :
6721    $as_echo_n "(cached) " >&6
6722   else
6723    if test "$cross_compiling" = yes; then :
# Line 10192 | Line 6776 | ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
6776   esac
6777  
6778   ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
6779 < if test "x$ac_cv_func_pow" = x""yes; then :
6779 > if test "x$ac_cv_func_pow" = xyes; then :
6780  
6781   fi
6782  
6783   if test $ac_cv_func_pow = no; then
6784    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
6785   $as_echo_n "checking for pow in -lm... " >&6; }
6786 < if test "${ac_cv_lib_m_pow+set}" = set; then :
6786 > if ${ac_cv_lib_m_pow+:} false; then :
6787    $as_echo_n "(cached) " >&6
6788   else
6789    ac_check_lib_save_LIBS=$LIBS
# Line 10214 | Line 6798 | char pow ();
6798   extern "C"
6799   #endif
6800   char pow ();
10217 #ifdef FC_DUMMY_MAIN
10218 #ifndef FC_DUMMY_MAIN_EQ_F77
10219 #  ifdef __cplusplus
10220     extern "C"
10221 #  endif
10222   int FC_DUMMY_MAIN() { return 1; }
10223 #endif
10224 #endif
6801   int
6802   main ()
6803   {
# Line 10241 | Line 6817 | $as_echo "$ac_cv_lib_m_pow" >&6; }
6817   fi
6818   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
6819   $as_echo "$ac_cv_lib_m_pow" >&6; }
6820 < if test "x$ac_cv_lib_m_pow" = x""yes; then :
6820 > if test "x$ac_cv_lib_m_pow" = xyes; then :
6821    POW_LIB=-lm
6822   else
6823    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
# Line 10256 | Line 6832 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6832   do :
6833    as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6834   ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6835 < eval as_val=\$$as_ac_var
10260 <   if test "x$as_val" = x""yes; then :
6835 > if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6836    cat >>confdefs.h <<_ACEOF
6837   #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6838   _ACEOF
# Line 10273 | Line 6848 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6848   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6849   /* end confdefs.h.  */
6850   #include <sys/systemcfg.h>
10276 #ifdef FC_DUMMY_MAIN
10277 #ifndef FC_DUMMY_MAIN_EQ_F77
10278 #  ifdef __cplusplus
10279     extern "C"
10280 #  endif
10281   int FC_DUMMY_MAIN() { return 1; }
10282 #endif
10283 #endif
6851   int
6852   main ()
6853   {
# Line 10306 | Line 6873 | case $debug in
6873    1)
6874       ;;
6875    *)
10309
10310
10311
10312
10313
10314 # Try to determine "good" native compiler flags if none specified on command
10315 # line
10316
10317 if test "$ac_test_FFLAGS" != "set"; then
10318  FCFLAGS=""
10319  case "${host_cpu}-${host_os}" in
10320
10321  *linux*) if test "$FC" = ifc -o "$FC" = ifort; then
10322                    FCFLAGS="-O2"
10323                fi;;
10324   rs6000*-aix*)  if test "$FC" = xlf90 -o "$FC" = f90 -o "$FC" = xlf95; then
10325                    FCFLAGS="-O3 -qarch=pwrx -qtune=pwrx -qansialias -w"
10326                fi;;
10327   powerpc*-aix*)
10328        if test "$FC" = f90 -o "$FC" = xlf90 -o "$FC" = xlf95; then
10329                FCFLAGS="-O3 -qarch=ppc -qansialias -w"
10330                echo "*******************************************************"
10331                echo "*  You have AIX on an unknown powerpc system.  It is  *"
10332                echo "*  recommended that you use                           *"
10333                echo "*                                                     *"
10334                echo "*   FCFLAGS=-O3 -qarch=ppc -qtune=xxx -qansialias -w  *"
10335                echo "*                                 ^^^                 *"
10336                echo "*  where xxx is 601, 603, 604, or whatever kind of    *"
10337                echo "*  PowerPC CPU you have.   For more info, man xlf.    *"
10338                echo "*******************************************************"
10339        fi;;
10340   *darwin*)
10341        if test "$FC" = f90 -o "$FC" = xlf90 -o "$FC" = xlf95; then
10342                FCFLAGS="-qthreaded -O -qtune=auto -qarch=auto -qunroll=auto"
10343        fi
10344        if test "$FC" = ifort; then
10345                FCFLAGS="-O2"
10346        fi
10347        if test "$FC" = gfortran; then
10348                FCFLAGS="-Os"
10349        fi;;
10350  esac
10351
10352  if test -z "$FCFLAGS"; then
10353        echo ""
10354        echo "*********************************************************"
10355        echo "* WARNING: Don't know the best FCFLAGS for this system  *"
10356        echo "* Use  make FCFLAGS=..., or edit the top level Makefile *"
10357        echo "* (otherwise, a default of FCFLAGS=-O will be used)     *"
10358        echo "*********************************************************"
10359        echo ""
10360        FCFLAGS="-O"
10361  fi
10362
10363
10364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${FC} accepts ${FCFLAGS}" >&5
10365 $as_echo_n "checking whether ${FC} accepts ${FCFLAGS}... " >&6; }
10366 if test "${ac_cv_ac_cv_guessed_f90flags+set}" = set; then :
10367  $as_echo_n "(cached) " >&6
10368 else
10369
10370
10371 ac_ext=${ac_fc_srcext-f}
10372 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
10373 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
10374 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
10375
10376 echo 'program main' > conftest.$ac_ext
10377 echo 'end program main' >> conftest.$ac_ext
10378 ac_compile='${FC} -c ${FCFLAGS} $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext 1>&5'
10379 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10380  (eval $ac_compile) 2>&5
10381  ac_status=$?
10382  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10383  test $ac_status = 0; }; then
10384        ac_cv_ac_cv_guessed_f90flags=yes
10385 else
10386        ac_cv_ac_cv_guessed_f90flags=no
10387 fi
10388 rm -f conftest*
10389 ac_ext=c
10390 ac_cpp='$CPP $CPPFLAGS'
10391 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10392 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10393 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6876  
6877  
10396 fi
10397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ac_cv_guessed_f90flags" >&5
10398 $as_echo "$ac_cv_ac_cv_guessed_f90flags" >&6; }
10399 if test "$ac_cv_ac_cv_guessed_f90flags" = yes; then
10400        :
6878  
10402 else
10403        :
6879  
10405        echo ""
10406        echo "**********************************************************"
10407        echo "* WARNING: The guessed FCFLAGS don't seem to work with  *"
10408        echo "* your compiler.                                        *"
10409        echo "* Use  make FCFLAGS=..., or edit the top level Makefile *"
10410        echo "*********************************************************"
10411        echo ""
10412        FCFLAGS=""
6880  
10414 fi
6881  
10416
10417 fi
10418
10419
10420
10421
10422
10423
10424
6882   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are *really* using GNU cc" >&5
6883   $as_echo_n "checking whether we are *really* using GNU cc... " >&6; }
6884 < if test "${ac_cv_prog_really_gcc+set}" = set; then :
6884 > if ${ac_cv_prog_really_gcc+:} false; then :
6885    $as_echo_n "(cached) " >&6
6886   else
6887  
# Line 10529 | Line 6986 | $as_echo_n "checking whether ${CC} accepts ${CFLAGS}..
6986  
6987   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts ${CFLAGS}" >&5
6988   $as_echo_n "checking whether ${CC} accepts ${CFLAGS}... " >&6; }
6989 < if test "${ac_cv_ac_cv_guessed_cflags+set}" = set; then :
6989 > if ${ac_cv_ac_cv_guessed_cflags+:} false; then :
6990    $as_echo_n "(cached) " >&6
6991   else
6992    echo 'void f(){}' > conftest.c
# Line 10571 | Line 7028 | $as_echo_n "checking whether we are *really* using GNU
7028  
7029   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are *really* using GNU c++" >&5
7030   $as_echo_n "checking whether we are *really* using GNU c++... " >&6; }
7031 < if test "${ac_cv_prog_really_gxx+set}" = set; then :
7031 > if ${ac_cv_prog_really_gxx+:} false; then :
7032    $as_echo_n "(cached) " >&6
7033   else
7034  
# Line 10667 | Line 7124 | $as_echo_n "checking whether ${CXX} accepts ${CXXFLAGS
7124  
7125   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts ${CXXFLAGS}" >&5
7126   $as_echo_n "checking whether ${CXX} accepts ${CXXFLAGS}... " >&6; }
7127 < if test "${ac_cv_ac_cv_guessed_cxxflags+set}" = set; then :
7127 > if ${ac_cv_ac_cv_guessed_cxxflags+:} false; then :
7128    $as_echo_n "(cached) " >&6
7129   else
7130    echo 'void f(){}' > conftest.cpp
# Line 10703 | Line 7160 | esac
7160  
7161       ;;
7162   esac
10706
10707
10708 acx_cgal_found=no
10709
10710 # Check whether --with-cgalmakefile was given.
10711 if test "${with_cgalmakefile+set}" = set; then :
10712  withval=$with_cgalmakefile;
10713 fi
10714
10715 case $with_cgalmakefile in
10716        yes | "") ;;
10717        no) acx_cgal_found=disable ;;
10718        -* | */* | *.a | *.so | *.so.* | *.o) CGAL_MAKEFILE="$with_cgalmakefile" ;;
10719        *) CGAL_MAKEFILE="$with_cgalmakefile" ;;
10720 esac
10721
10722 if test "$acx_cgal_found" == no; then
10723    { $as_echo "$as_me:${as_lineno-$LINENO}: checking CGAL_MAKEFILE" >&5
10724 $as_echo_n "checking CGAL_MAKEFILE... " >&6; }
10725
10726    if test \! -z "$CGAL_MAKEFILE"; then
10727
10728        if test -e "$CGAL_MAKEFILE"; then
10729            tname=`mktemp /tmp/cgal_makefile_dsrXXXXXX`
7163  
10731 cat > $tname << _ACEOF
10732 include $CGAL_MAKEFILE
7164  
10734 cppflags:
10735        @echo \$(CGAL_CXXFLAGS)
10736
10737 cxxflags:
10738        @echo
10739 ldflags:
10740        @echo \$(CGAL_LDFLAGS)
10741 _ACEOF
10742            CGAL_CPPFLAGS="`make -s -f $tname cppflags`"
10743            CGAL_CXXFLAGS="`make -s -f $tname cxxflags`"
10744            CGAL_LDFLAGST="`make -s -f $tname ldflags`"
10745            for i in $CGAL_LDFLAGST; do
10746                if test `echo $i| grep -c ^-l`; then
10747                    CGAL_LIBS="$CGAL_LIBS $i"
10748                else
10749                    CGAL_LDFLAGS="$CGAL_LDFLAGS $i"
10750                fi
10751            done
10752            rm -f $tname
10753            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10754 $as_echo "yes" >&6; }
10755            acx_cgal_found=yes
10756                                   else
10757            { $as_echo "$as_me:${as_lineno-$LINENO}: result: invalid" >&5
10758 $as_echo "invalid" >&6; }
10759            as_fn_error "CGAL_MAKEFILE defined, but the makefile does not exist." "$LINENO" 5
10760        fi
10761    else
10762        { $as_echo "$as_me:${as_lineno-$LINENO}: result: not defined" >&5
10763 $as_echo "not defined" >&6; }
10764    fi
10765 fi
10766
10767 if test "$acx_cgal_found" == no; then
10768        ac_fn_c_check_header_mongrel "$LINENO" "CGAL/Exact_predicates_inexact_constructions_kernel.h" "ac_cv_header_CGAL_Exact_predicates_inexact_constructions_kernel_h" "$ac_includes_default"
10769 if test "x$ac_cv_header_CGAL_Exact_predicates_inexact_constructions_kernel_h" = x""yes; then :
10770  cgal_have_header=yes
10771 else
10772  cgal_have_header=no
10773 fi
10774
10775
10776        if test "$cgal_have_header" == yes; then
10777                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lCGAL" >&5
10778 $as_echo_n "checking for main in -lCGAL... " >&6; }
10779 if test "${ac_cv_lib_CGAL_main+set}" = set; then :
10780  $as_echo_n "(cached) " >&6
10781 else
10782  ac_check_lib_save_LIBS=$LIBS
10783 LIBS="-lCGAL  $LIBS"
10784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10785 /* end confdefs.h.  */
10786
10787
10788 #ifdef FC_DUMMY_MAIN
10789 #ifndef FC_DUMMY_MAIN_EQ_F77
10790 #  ifdef __cplusplus
10791     extern "C"
10792 #  endif
10793   int FC_DUMMY_MAIN() { return 1; }
10794 #endif
10795 #endif
10796 int
10797 main ()
10798 {
10799 return main ();
10800  ;
10801  return 0;
10802 }
10803 _ACEOF
10804 if ac_fn_c_try_link "$LINENO"; then :
10805  ac_cv_lib_CGAL_main=yes
10806 else
10807  ac_cv_lib_CGAL_main=no
10808 fi
10809 rm -f core conftest.err conftest.$ac_objext \
10810    conftest$ac_exeext conftest.$ac_ext
10811 LIBS=$ac_check_lib_save_LIBS
10812 fi
10813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_CGAL_main" >&5
10814 $as_echo "$ac_cv_lib_CGAL_main" >&6; }
10815 if test "x$ac_cv_lib_CGAL_main" = x""yes; then :
10816  cgal_have_lib=yes
10817 else
10818  cgal_have_lib=no
10819 fi
10820
10821                if test "$cgal_have_lib" == no; then
10822                        save_LIBS="$LIBS"; LIBS="$LIBS -lgmp -lmpfr -lm"
10823                        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lCGAL" >&5
10824 $as_echo_n "checking for main in -lCGAL... " >&6; }
10825 if test "${ac_cv_lib_CGAL_main+set}" = set; then :
10826  $as_echo_n "(cached) " >&6
10827 else
10828  ac_check_lib_save_LIBS=$LIBS
10829 LIBS="-lCGAL  $LIBS"
10830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10831 /* end confdefs.h.  */
10832
10833
10834 #ifdef FC_DUMMY_MAIN
10835 #ifndef FC_DUMMY_MAIN_EQ_F77
10836 #  ifdef __cplusplus
10837     extern "C"
10838 #  endif
10839   int FC_DUMMY_MAIN() { return 1; }
10840 #endif
10841 #endif
10842 int
10843 main ()
10844 {
10845 return main ();
10846  ;
10847  return 0;
10848 }
10849 _ACEOF
10850 if ac_fn_c_try_link "$LINENO"; then :
10851  ac_cv_lib_CGAL_main=yes
10852 else
10853  ac_cv_lib_CGAL_main=no
10854 fi
10855 rm -f core conftest.err conftest.$ac_objext \
10856    conftest$ac_exeext conftest.$ac_ext
10857 LIBS=$ac_check_lib_save_LIBS
10858 fi
10859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_CGAL_main" >&5
10860 $as_echo "$ac_cv_lib_CGAL_main" >&6; }
10861 if test "x$ac_cv_lib_CGAL_main" = x""yes; then :
10862  CGAL_LIBS="-lCGAL -lgmp -lmpfr"
10863                                                  cgal_have_lib=yes
10864 else
10865  cgal_have_lib=no
10866 fi
10867
10868                        LIBS="$save_LIBS"
10869                else
10870                        CGAL_LIBS="-lCGAL"
10871                        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lmpfr" >&5
10872 $as_echo_n "checking for main in -lmpfr... " >&6; }
10873 if test "${ac_cv_lib_mpfr_main+set}" = set; then :
10874  $as_echo_n "(cached) " >&6
10875 else
10876  ac_check_lib_save_LIBS=$LIBS
10877 LIBS="-lmpfr  $LIBS"
10878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10879 /* end confdefs.h.  */
10880
10881
10882 #ifdef FC_DUMMY_MAIN
10883 #ifndef FC_DUMMY_MAIN_EQ_F77
10884 #  ifdef __cplusplus
10885     extern "C"
10886 #  endif
10887   int FC_DUMMY_MAIN() { return 1; }
10888 #endif
10889 #endif
10890 int
10891 main ()
10892 {
10893 return main ();
10894  ;
10895  return 0;
10896 }
10897 _ACEOF
10898 if ac_fn_c_try_link "$LINENO"; then :
10899  ac_cv_lib_mpfr_main=yes
10900 else
10901  ac_cv_lib_mpfr_main=no
10902 fi
10903 rm -f core conftest.err conftest.$ac_objext \
10904    conftest$ac_exeext conftest.$ac_ext
10905 LIBS=$ac_check_lib_save_LIBS
10906 fi
10907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpfr_main" >&5
10908 $as_echo "$ac_cv_lib_mpfr_main" >&6; }
10909 if test "x$ac_cv_lib_mpfr_main" = x""yes; then :
10910  CGAL_LIBS="$CGAL_LIBS -lmpfr"
10911 fi
10912
10913                        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lgmp" >&5
10914 $as_echo_n "checking for main in -lgmp... " >&6; }
10915 if test "${ac_cv_lib_gmp_main+set}" = set; then :
10916  $as_echo_n "(cached) " >&6
10917 else
10918  ac_check_lib_save_LIBS=$LIBS
10919 LIBS="-lgmp  $LIBS"
10920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10921 /* end confdefs.h.  */
10922
10923
10924 #ifdef FC_DUMMY_MAIN
10925 #ifndef FC_DUMMY_MAIN_EQ_F77
10926 #  ifdef __cplusplus
10927     extern "C"
10928 #  endif
10929   int FC_DUMMY_MAIN() { return 1; }
10930 #endif
10931 #endif
10932 int
10933 main ()
10934 {
10935 return main ();
10936  ;
10937  return 0;
10938 }
10939 _ACEOF
10940 if ac_fn_c_try_link "$LINENO"; then :
10941  ac_cv_lib_gmp_main=yes
10942 else
10943  ac_cv_lib_gmp_main=no
10944 fi
10945 rm -f core conftest.err conftest.$ac_objext \
10946    conftest$ac_exeext conftest.$ac_ext
10947 LIBS=$ac_check_lib_save_LIBS
10948 fi
10949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gmp_main" >&5
10950 $as_echo "$ac_cv_lib_gmp_main" >&6; }
10951 if test "x$ac_cv_lib_gmp_main" = x""yes; then :
10952  CGAL_LIBS="$CGAL_LIBS -lgmp"
10953 fi
10954
10955                        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lgmpxx" >&5
10956 $as_echo_n "checking for main in -lgmpxx... " >&6; }
10957 if test "${ac_cv_lib_gmpxx_main+set}" = set; then :
10958  $as_echo_n "(cached) " >&6
10959 else
10960  ac_check_lib_save_LIBS=$LIBS
10961 LIBS="-lgmpxx  $LIBS"
10962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10963 /* end confdefs.h.  */
10964
10965
10966 #ifdef FC_DUMMY_MAIN
10967 #ifndef FC_DUMMY_MAIN_EQ_F77
10968 #  ifdef __cplusplus
10969     extern "C"
10970 #  endif
10971   int FC_DUMMY_MAIN() { return 1; }
10972 #endif
10973 #endif
10974 int
10975 main ()
10976 {
10977 return main ();
10978  ;
10979  return 0;
10980 }
10981 _ACEOF
10982 if ac_fn_c_try_link "$LINENO"; then :
10983  ac_cv_lib_gmpxx_main=yes
10984 else
10985  ac_cv_lib_gmpxx_main=no
10986 fi
10987 rm -f core conftest.err conftest.$ac_objext \
10988    conftest$ac_exeext conftest.$ac_ext
10989 LIBS=$ac_check_lib_save_LIBS
10990 fi
10991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gmpxx_main" >&5
10992 $as_echo "$ac_cv_lib_gmpxx_main" >&6; }
10993 if test "x$ac_cv_lib_gmpxx_main" = x""yes; then :
10994  CGAL_LIBS="$CGAL_LIBS -lgmpxx"
10995 fi
10996
10997                fi
10998
10999                if test "$cgal_have_lib" == yes; then
11000                        acx_cgal_found=yes
11001                fi
11002        fi
11003        if test "$acx_cgal_found" == yes; then
11004                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lCore" >&5
11005 $as_echo_n "checking for main in -lCore... " >&6; }
11006 if test "${ac_cv_lib_Core_main+set}" = set; then :
11007  $as_echo_n "(cached) " >&6
11008 else
11009  ac_check_lib_save_LIBS=$LIBS
11010 LIBS="-lCore  $LIBS"
11011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11012 /* end confdefs.h.  */
11013
11014
11015 #ifdef FC_DUMMY_MAIN
11016 #ifndef FC_DUMMY_MAIN_EQ_F77
11017 #  ifdef __cplusplus
11018     extern "C"
11019 #  endif
11020   int FC_DUMMY_MAIN() { return 1; }
11021 #endif
11022 #endif
11023 int
11024 main ()
11025 {
11026 return main ();
11027  ;
11028  return 0;
11029 }
11030 _ACEOF
11031 if ac_fn_c_try_link "$LINENO"; then :
11032  ac_cv_lib_Core_main=yes
11033 else
11034  ac_cv_lib_Core_main=no
11035 fi
11036 rm -f core conftest.err conftest.$ac_objext \
11037    conftest$ac_exeext conftest.$ac_ext
11038 LIBS=$ac_check_lib_save_LIBS
11039 fi
11040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Core_main" >&5
11041 $as_echo "$ac_cv_lib_Core_main" >&6; }
11042 if test "x$ac_cv_lib_Core_main" = x""yes; then :
11043  CGAL_LIBS="$CGAL_LIBS -lCore"
11044 fi
11045
11046        fi
11047 fi
11048
11049
11050
11051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CGAL" >&5
11052 $as_echo_n "checking CGAL... " >&6; }
11053
11054
11055
11056
11057
11058 if test "$acx_cgal_found" == yes; then
11059        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11060 $as_echo "yes" >&6; }
11061
11062 else
11063        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11064 $as_echo "no" >&6; }
11065
11066 fi
11067 USE_CGAL=no
11068 if test "$acx_cgal_found" == yes; then
11069        USE_CGAL=yes
11070
11071 $as_echo "#define HAVE_CGAL 1" >>confdefs.h
11072
11073
11074
11075
11076
11077 fi
11078
11079
11080
11081
7165   # Check whether --enable-doxygen was given.
7166   if test "${enable_doxygen+set}" = set; then :
7167    enableval=$enable_doxygen;
# Line 11110 | Line 7193 | $as_echo_n "checking for $ac_word... " >&6; }
7193   set dummy doxygen; ac_word=$2
7194   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7195   $as_echo_n "checking for $ac_word... " >&6; }
7196 < if test "${ac_cv_path_DOXYGEN+set}" = set; then :
7196 > if ${ac_cv_path_DOXYGEN+:} false; then :
7197    $as_echo_n "(cached) " >&6
7198   else
7199    case $DOXYGEN in
# Line 11148 | Line 7231 | fi
7231  
7232          if test "x$DOXYGEN" = x; then
7233                  if test "x$enable_doxygen" = xyes; then
7234 <                        as_fn_error "could not find doxygen" "$LINENO" 5
7234 >                        as_fn_error $? "could not find doxygen" "$LINENO" 5
7235                  fi
7236                  enable_doc=no
7237          else
# Line 11157 | Line 7240 | $as_echo_n "checking for $ac_word... " >&6; }
7240   set dummy dot; ac_word=$2
7241   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7242   $as_echo_n "checking for $ac_word... " >&6; }
7243 < if test "${ac_cv_path_DOT+set}" = set; then :
7243 > if ${ac_cv_path_DOT+:} false; then :
7244    $as_echo_n "(cached) " >&6
7245   else
7246    case $DOT in
# Line 11205 | Line 7288 | if test x$DOT = x; then
7288  
7289   if test x$DOT = x; then
7290          if test "x$enable_dot" = xyes; then
7291 <                as_fn_error "could not find dot" "$LINENO" 5
7291 >                as_fn_error $? "could not find dot" "$LINENO" 5
7292          fi
7293          enable_dot=no
7294   else
# Line 11227 | Line 7310 | fi
7310  
7311  
7312  
11230
11231
11232
7313   ac_config_files="$ac_config_files make/Makefile src/utils/Makefile src/math/Makefile src/integrators/Makefile src/applications/atom2md/Makefile scripts/filepp"
7314  
7315  
# Line 11297 | Line 7377 | if diff "$cache_file" confcache >/dev/null 2>&1; then
7377       :end' >>confcache
7378   if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
7379    if test -w "$cache_file"; then
7380 <    test "x$cache_file" != "x/dev/null" &&
7380 >    if test "x$cache_file" != "x/dev/null"; then
7381        { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
7382   $as_echo "$as_me: updating cache $cache_file" >&6;}
7383 <    cat confcache >$cache_file
7383 >      if test ! -f "$cache_file" || test -h "$cache_file"; then
7384 >        cat confcache >"$cache_file"
7385 >      else
7386 >        case $cache_file in #(
7387 >        */* | ?:*)
7388 >          mv -f confcache "$cache_file"$$ &&
7389 >          mv -f "$cache_file"$$ "$cache_file" ;; #(
7390 >        *)
7391 >          mv -f confcache "$cache_file" ;;
7392 >        esac
7393 >      fi
7394 >    fi
7395    else
7396      { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
7397   $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
# Line 11316 | Line 7407 | ac_ltlibobjs=
7407  
7408   ac_libobjs=
7409   ac_ltlibobjs=
7410 + U=
7411   for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7412    # 1. Remove the extension, and $U if already installed.
7413    ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
# Line 11331 | Line 7423 | LTLIBOBJS=$ac_ltlibobjs
7423  
7424  
7425  
7426 < : ${CONFIG_STATUS=./config.status}
7426 > : "${CONFIG_STATUS=./config.status}"
7427   ac_write_fail=0
7428   ac_clean_files_save=$ac_clean_files
7429   ac_clean_files="$ac_clean_files $CONFIG_STATUS"
# Line 11432 | Line 7524 | IFS=" ""       $as_nl"
7524   IFS=" ""        $as_nl"
7525  
7526   # Find who we are.  Look in the path if we contain no directory separator.
7527 + as_myself=
7528   case $0 in #((
7529    *[\\/]* ) as_myself=$0 ;;
7530    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
# Line 11477 | Line 7570 | export LANGUAGE
7570   (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
7571  
7572  
7573 < # as_fn_error ERROR [LINENO LOG_FD]
7574 < # ---------------------------------
7573 > # as_fn_error STATUS ERROR [LINENO LOG_FD]
7574 > # ----------------------------------------
7575   # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
7576   # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
7577 < # script with status $?, using 1 if that was 0.
7577 > # script with STATUS, using 1 if that was 0.
7578   as_fn_error ()
7579   {
7580 <  as_status=$?; test $as_status -eq 0 && as_status=1
7581 <  if test "$3"; then
7582 <    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
7583 <    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
7580 >  as_status=$1; test $as_status -eq 0 && as_status=1
7581 >  if test "$4"; then
7582 >    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
7583 >    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
7584    fi
7585 <  $as_echo "$as_me: error: $1" >&2
7585 >  $as_echo "$as_me: error: $2" >&2
7586    as_fn_exit $as_status
7587   } # as_fn_error
7588  
# Line 11685 | Line 7778 | $as_echo X"$as_dir" |
7778        test -d "$as_dir" && break
7779      done
7780      test -z "$as_dirs" || eval "mkdir $as_dirs"
7781 <  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
7781 >  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
7782  
7783  
7784   } # as_fn_mkdir_p
# Line 11738 | Line 7831 | ac_log="
7831   # report actual input values of CONFIG_FILES etc. instead of their
7832   # values after options handling.
7833   ac_log="
7834 < This file was extended by OOPSE $as_me 4.0, which was
7835 < generated by GNU Autoconf 2.64.  Invocation command line was
7834 > This file was extended by OpenMD $as_me 1.0, which was
7835 > generated by GNU Autoconf 2.68.  Invocation command line was
7836  
7837    CONFIG_FILES    = $CONFIG_FILES
7838    CONFIG_HEADERS  = $CONFIG_HEADERS
# Line 11778 | Line 7871 | Usage: $0 [OPTION]... [TAG]...
7871  
7872    -h, --help       print this help, then exit
7873    -V, --version    print version number and configuration settings, then exit
7874 +      --config     print configuration, then exit
7875    -q, --quiet, --silent
7876                     do not print progress messages
7877    -d, --debug      don't remove temporary files
# Line 11797 | Line 7891 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7891  
7892   _ACEOF
7893   cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7894 + ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
7895   ac_cs_version="\\
7896 < OOPSE config.status 4.0
7897 < configured by $0, generated by GNU Autoconf 2.64,
7898 <  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
7896 > OpenMD config.status 1.0
7897 > configured by $0, generated by GNU Autoconf 2.68,
7898 >  with options \\"\$ac_cs_config\\"
7899  
7900 < Copyright (C) 2009 Free Software Foundation, Inc.
7900 > Copyright (C) 2010 Free Software Foundation, Inc.
7901   This config.status script is free software; the Free Software Foundation
7902   gives unlimited permission to copy, distribute and modify it."
7903  
# Line 11818 | Line 7913 | do
7913   while test $# != 0
7914   do
7915    case $1 in
7916 <  --*=*)
7916 >  --*=?*)
7917      ac_option=`expr "X$1" : 'X\([^=]*\)='`
7918      ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
7919      ac_shift=:
7920      ;;
7921 +  --*=)
7922 +    ac_option=`expr "X$1" : 'X\([^=]*\)='`
7923 +    ac_optarg=
7924 +    ac_shift=:
7925 +    ;;
7926    *)
7927      ac_option=$1
7928      ac_optarg=$2
# Line 11836 | Line 7936 | do
7936      ac_cs_recheck=: ;;
7937    --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
7938      $as_echo "$ac_cs_version"; exit ;;
7939 +  --config | --confi | --conf | --con | --co | --c )
7940 +    $as_echo "$ac_cs_config"; exit ;;
7941    --debug | --debu | --deb | --de | --d | -d )
7942      debug=: ;;
7943    --file | --fil | --fi | --f )
7944      $ac_shift
7945      case $ac_optarg in
7946      *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7947 +    '') as_fn_error $? "missing file argument" ;;
7948      esac
7949      as_fn_append CONFIG_FILES " '$ac_optarg'"
7950      ac_need_defaults=false;;
# Line 11854 | Line 7957 | do
7957      ac_need_defaults=false;;
7958    --he | --h)
7959      # Conflict between --help and --header
7960 <    as_fn_error "ambiguous option: \`$1'
7960 >    as_fn_error $? "ambiguous option: \`$1'
7961   Try \`$0 --help' for more information.";;
7962    --help | --hel | -h )
7963      $as_echo "$ac_cs_usage"; exit ;;
# Line 11863 | Line 7966 | Try \`$0 --help' for more information.";;
7966      ac_cs_silent=: ;;
7967  
7968    # This is an error.
7969 <  -*) as_fn_error "unrecognized option: \`$1'
7969 >  -*) as_fn_error $? "unrecognized option: \`$1'
7970   Try \`$0 --help' for more information." ;;
7971  
7972    *) as_fn_append ac_config_targets " $1"
# Line 11920 | Line 8023 | do
8023      "src/applications/atom2md/Makefile") CONFIG_FILES="$CONFIG_FILES src/applications/atom2md/Makefile" ;;
8024      "scripts/filepp") CONFIG_FILES="$CONFIG_FILES scripts/filepp" ;;
8025  
8026 <  *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
8026 >  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
8027    esac
8028   done
8029  
# Line 11942 | Line 8045 | $debug ||
8045   # after its creation but before its name has been assigned to `$tmp'.
8046   $debug ||
8047   {
8048 <  tmp=
8048 >  tmp= ac_tmp=
8049    trap 'exit_status=$?
8050 <  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
8050 >  : "${ac_tmp:=$tmp}"
8051 >  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
8052   ' 0
8053    trap 'as_fn_exit 1' 1 2 13 15
8054   }
# Line 11952 | Line 8056 | $debug ||
8056  
8057   {
8058    tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
8059 <  test -n "$tmp" && test -d "$tmp"
8059 >  test -d "$tmp"
8060   }  ||
8061   {
8062    tmp=./conf$$-$RANDOM
8063    (umask 077 && mkdir "$tmp")
8064 < } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
8064 > } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
8065 > ac_tmp=$tmp
8066  
8067   # Set up the scripts for CONFIG_FILES section.
8068   # No need to generate them if there are no CONFIG_FILES.
# Line 11974 | Line 8079 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
8079   fi
8080   ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
8081   if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
8082 <  ac_cs_awk_cr='\r'
8082 >  ac_cs_awk_cr='\\r'
8083   else
8084    ac_cs_awk_cr=$ac_cr
8085   fi
8086  
8087 < echo 'BEGIN {' >"$tmp/subs1.awk" &&
8087 > echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
8088   _ACEOF
8089  
8090  
# Line 11988 | Line 8093 | _ACEOF
8093    echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
8094    echo "_ACEOF"
8095   } >conf$$subs.sh ||
8096 <  as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
8097 < ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
8096 >  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8097 > ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
8098   ac_delim='%!_!# '
8099   for ac_last_try in false false false false false :; do
8100    . ./conf$$subs.sh ||
8101 <    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
8101 >    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8102  
8103    ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
8104    if test $ac_delim_n = $ac_delim_num; then
8105      break
8106    elif $ac_last_try; then
8107 <    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
8107 >    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8108    else
8109      ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8110    fi
# Line 12007 | Line 8112 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8112   rm -f conf$$subs.sh
8113  
8114   cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8115 < cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
8115 > cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
8116   _ACEOF
8117   sed -n '
8118   h
# Line 12021 | Line 8126 | h
8126   t delim
8127   :nl
8128   h
8129 < s/\(.\{148\}\).*/\1/
8129 > s/\(.\{148\}\)..*/\1/
8130   t more1
8131   s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
8132   p
# Line 12035 | Line 8140 | h
8140   t nl
8141   :delim
8142   h
8143 < s/\(.\{148\}\).*/\1/
8143 > s/\(.\{148\}\)..*/\1/
8144   t more2
8145   s/["\\]/\\&/g; s/^/"/; s/$/"/
8146   p
# Line 12055 | Line 8160 | _ACAWK
8160   rm -f conf$$subs.awk
8161   cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8162   _ACAWK
8163 < cat >>"\$tmp/subs1.awk" <<_ACAWK &&
8163 > cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
8164    for (key in S) S_is_set[key] = 1
8165    FS = ""
8166  
# Line 12087 | Line 8192 | else
8192    sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
8193   else
8194    cat
8195 < fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
8196 <  || as_fn_error "could not setup config files machinery" "$LINENO" 5
8195 > fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
8196 >  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
8197   _ACEOF
8198  
8199 < # VPATH may cause trouble with some makes, so we remove $(srcdir),
8200 < # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8199 > # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
8200 > # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
8201   # trailing colons and then remove the whole line if VPATH becomes empty
8202   # (actually we leave an empty line to preserve line numbers).
8203   if test "x$srcdir" = x.; then
8204 <  ac_vpsub='/^[  ]*VPATH[        ]*=/{
8205 < s/:*\$(srcdir):*/:/
8206 < s/:*\${srcdir}:*/:/
8207 < s/:*@srcdir@:*/:/
8208 < s/^\([^=]*=[     ]*\):*/\1/
8204 >  ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
8205 > h
8206 > s///
8207 > s/^/:/
8208 > s/[      ]*$/:/
8209 > s/:\$(srcdir):/:/g
8210 > s/:\${srcdir}:/:/g
8211 > s/:@srcdir@:/:/g
8212 > s/^:*//
8213   s/:*$//
8214 + x
8215 + s/\(=[   ]*\).*/\1/
8216 + G
8217 + s/\n//
8218   s/^[^=]*=[       ]*$//
8219   }'
8220   fi
# Line 12113 | Line 8226 | if test -n "$CONFIG_HEADERS"; then
8226   # No need to generate them if there are no CONFIG_HEADERS.
8227   # This happens for instance with `./config.status Makefile'.
8228   if test -n "$CONFIG_HEADERS"; then
8229 < cat >"$tmp/defines.awk" <<\_ACAWK ||
8229 > cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
8230   BEGIN {
8231   _ACEOF
8232  
# Line 12125 | Line 8238 | for ac_last_try in false false :; do
8238   # handling of long lines.
8239   ac_delim='%!_!# '
8240   for ac_last_try in false false :; do
8241 <  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
8242 <  if test -z "$ac_t"; then
8241 >  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
8242 >  if test -z "$ac_tt"; then
8243      break
8244    elif $ac_last_try; then
8245 <    as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
8245 >    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
8246    else
8247      ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8248    fi
# Line 12214 | Line 8327 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8327   _ACAWK
8328   _ACEOF
8329   cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8330 <  as_fn_error "could not setup config headers machinery" "$LINENO" 5
8330 >  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
8331   fi # test -n "$CONFIG_HEADERS"
8332  
8333  
# Line 12227 | Line 8340 | do
8340    esac
8341    case $ac_mode$ac_tag in
8342    :[FHL]*:*);;
8343 <  :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
8343 >  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
8344    :[FH]-) ac_tag=-:-;;
8345    :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
8346    esac
# Line 12246 | Line 8359 | do
8359      for ac_f
8360      do
8361        case $ac_f in
8362 <      -) ac_f="$tmp/stdin";;
8362 >      -) ac_f="$ac_tmp/stdin";;
8363        *) # Look for the file first in the build tree, then in the source tree
8364           # (if the path is not absolute).  The absolute path cannot be DOS-style,
8365           # because $ac_f cannot contain `:'.
# Line 12255 | Line 8368 | do
8368             [\\/$]*) false;;
8369             *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
8370             esac ||
8371 <           as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
8371 >           as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
8372        esac
8373        case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
8374        as_fn_append ac_file_inputs " '$ac_f'"
# Line 12281 | Line 8394 | $as_echo "$as_me: creating $ac_file" >&6;}
8394      esac
8395  
8396      case $ac_tag in
8397 <    *:-:* | *:-) cat >"$tmp/stdin" \
8398 <      || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
8397 >    *:-:* | *:-) cat >"$ac_tmp/stdin" \
8398 >      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
8399      esac
8400      ;;
8401    esac
# Line 12412 | Line 8525 | $ac_datarootdir_hack
8525   s&@INSTALL@&$ac_INSTALL&;t t
8526   $ac_datarootdir_hack
8527   "
8528 < eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
8529 <  || as_fn_error "could not create $ac_file" "$LINENO" 5
8528 > eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
8529 >  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8530  
8531   test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
8532 <  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
8533 <  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
8532 >  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
8533 >  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
8534 >      "$ac_tmp/out"`; test -z "$ac_out"; } &&
8535    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8536 < which seems to be undefined.  Please make sure it is defined." >&5
8536 > which seems to be undefined.  Please make sure it is defined" >&5
8537   $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8538 < which seems to be undefined.  Please make sure it is defined." >&2;}
8538 > which seems to be undefined.  Please make sure it is defined" >&2;}
8539  
8540 <  rm -f "$tmp/stdin"
8540 >  rm -f "$ac_tmp/stdin"
8541    case $ac_file in
8542 <  -) cat "$tmp/out" && rm -f "$tmp/out";;
8543 <  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
8542 >  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
8543 >  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
8544    esac \
8545 <  || as_fn_error "could not create $ac_file" "$LINENO" 5
8545 >  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8546   ;;
8547    :H)
8548    #
# Line 12437 | Line 8551 | which seems to be undefined.  Please make sure it is d
8551    if test x"$ac_file" != x-; then
8552      {
8553        $as_echo "/* $configure_input  */" \
8554 <      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
8555 <    } >"$tmp/config.h" \
8556 <      || as_fn_error "could not create $ac_file" "$LINENO" 5
8557 <    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
8554 >      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
8555 >    } >"$ac_tmp/config.h" \
8556 >      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8557 >    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
8558        { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
8559   $as_echo "$as_me: $ac_file is unchanged" >&6;}
8560      else
8561        rm -f "$ac_file"
8562 <      mv "$tmp/config.h" "$ac_file" \
8563 <        || as_fn_error "could not create $ac_file" "$LINENO" 5
8562 >      mv "$ac_tmp/config.h" "$ac_file" \
8563 >        || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8564      fi
8565    else
8566      $as_echo "/* $configure_input  */" \
8567 <      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
8568 <      || as_fn_error "could not create -" "$LINENO" 5
8567 >      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
8568 >      || as_fn_error $? "could not create -" "$LINENO" 5
8569    fi
8570   ;;
8571  
# Line 12476 | Line 8590 | test $ac_write_fail = 0 ||
8590   ac_clean_files=$ac_clean_files_save
8591  
8592   test $ac_write_fail = 0 ||
8593 <  as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
8593 >  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
8594  
8595  
8596   # configure is writing to config.log, and then calls config.status.
# Line 12497 | Line 8611 | if test "$no_create" != yes; then
8611    exec 5>>config.log
8612    # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8613    # would make configure fail if this is the last instruction.
8614 <  $ac_cs_success || as_fn_exit $?
8614 >  $ac_cs_success || as_fn_exit 1
8615   fi
8616   if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
8617    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines