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

Comparing trunk/configure (file contents):
Revision 1379 by gezelter, Thu Oct 22 14:09:13 2009 UTC vs.
Revision 1511 by gezelter, Fri Oct 15 17:34:49 2010 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 610 | Line 621 | OPENBABEL_INC_DIR
621   OPENBABEL_LIB
622   OPENBABEL_LIB_DIR
623   OPENBABEL_INC_DIR
613 CXXCPP
624   USE_QHULL
625   QHULL
626   QHULL_LIB_DIR
627   QHULL_INC_DIR
628 + CXXCPP
629   FFTW_LIBS
630   FFTW_LIB_DIR
631   FFTW_INC_DIR
# Line 647 | Line 658 | MPIFC
658   CPP
659   USE_MPI
660   MPIFC
661 + MPICC
662 + MPILIBS
663 + MPICXX
664 + LIBDL
665   ac_ct_FC
666   FCFLAGS
667   FC
653 MPICC
668   ac_ct_CC
669   CFLAGS
670   CC
657 MPILIBS
658 MPICXX
671   OBJEXT
672   EXEEXT
673   ac_ct_CXX
# Line 663 | Line 675 | CXX
675   LDFLAGS
676   CXXFLAGS
677   CXX
666 ac_fc_path
667 ac_fc_set
668 ac_cxx_path
669 ac_cxx_set
670 ac_cc_path
671 ac_cc_set
678   USE_SINGLE_PRECISION
679   debug
680   PROGNAME
# Line 721 | Line 727 | enable_option_checking
727   ac_subst_files=''
728   ac_user_opts='
729   enable_option_checking
730 < enable_oopse_home
730 > enable_openmd_home
731   enable_debug
732   enable_single
733   enable_float
# Line 744 | Line 750 | CCC
750   LIBS
751   CPPFLAGS
752   CCC
747 MPICXX
753   CC
754   CFLAGS
755 < MPICC
755 > LDFLAGS
756 > LIBS
757 > CPPFLAGS
758   FC
759   FCFLAGS
760 + LDFLAGS
761 + LIBS
762 + MPICXX
763 + MPICC
764   MPIFC
765   CPP
766 + CPPFLAGS
767   CXXCPP'
768  
769  
# Line 815 | Line 827 | do
827    fi
828  
829    case $ac_option in
830 <  *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
831 <  *)    ac_optarg=yes ;;
830 >  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
831 >  *=)   ac_optarg= ;;
832 >  *)    ac_optarg=yes ;;
833    esac
834  
835    # Accept the important Cygnus configure options, so we can diagnose typos.
# Line 861 | Line 874 | do
874      ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
875      # Reject names that are not valid shell variable names.
876      expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
877 <      as_fn_error "invalid feature name: $ac_useropt"
877 >      as_fn_error $? "invalid feature name: $ac_useropt"
878      ac_useropt_orig=$ac_useropt
879      ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
880      case $ac_user_opts in
# Line 887 | Line 900 | do
900      ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
901      # Reject names that are not valid shell variable names.
902      expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
903 <      as_fn_error "invalid feature name: $ac_useropt"
903 >      as_fn_error $? "invalid feature name: $ac_useropt"
904      ac_useropt_orig=$ac_useropt
905      ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
906      case $ac_user_opts in
# Line 1091 | Line 1104 | do
1104      ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1105      # Reject names that are not valid shell variable names.
1106      expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1107 <      as_fn_error "invalid package name: $ac_useropt"
1107 >      as_fn_error $? "invalid package name: $ac_useropt"
1108      ac_useropt_orig=$ac_useropt
1109      ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1110      case $ac_user_opts in
# Line 1107 | Line 1120 | do
1120      ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1121      # Reject names that are not valid shell variable names.
1122      expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1123 <      as_fn_error "invalid package name: $ac_useropt"
1123 >      as_fn_error $? "invalid package name: $ac_useropt"
1124      ac_useropt_orig=$ac_useropt
1125      ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1126      case $ac_user_opts in
# Line 1137 | Line 1150 | do
1150    | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1151      x_libraries=$ac_optarg ;;
1152  
1153 <  -*) as_fn_error "unrecognized option: \`$ac_option'
1154 < Try \`$0 --help' for more information."
1153 >  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1154 > Try \`$0 --help' for more information"
1155      ;;
1156  
1157    *=*)
# Line 1146 | Line 1159 | Try \`$0 --help' for more information."
1159      # Reject names that are not valid shell variable names.
1160      case $ac_envvar in #(
1161        '' | [0-9]* | *[!_$as_cr_alnum]* )
1162 <      as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1162 >      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1163      esac
1164      eval $ac_envvar=\$ac_optarg
1165      export $ac_envvar ;;
# Line 1156 | Line 1169 | Try \`$0 --help' for more information."
1169      $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1170      expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1171        $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1172 <    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1172 >    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1173      ;;
1174  
1175    esac
# Line 1164 | Line 1177 | if test -n "$ac_prev"; then
1177  
1178   if test -n "$ac_prev"; then
1179    ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1180 <  as_fn_error "missing argument to $ac_option"
1180 >  as_fn_error $? "missing argument to $ac_option"
1181   fi
1182  
1183   if test -n "$ac_unrecognized_opts"; then
1184    case $enable_option_checking in
1185      no) ;;
1186 <    fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1186 >    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1187      *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1188    esac
1189   fi
# Line 1193 | Line 1206 | do
1206      [\\/$]* | ?:[\\/]* )  continue;;
1207      NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1208    esac
1209 <  as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1209 >  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1210   done
1211  
1212   # There might be people who depend on the old broken behavior: `$host'
# Line 1207 | Line 1220 | if test "x$host_alias" != x; then
1220   if test "x$host_alias" != x; then
1221    if test "x$build_alias" = x; then
1222      cross_compiling=maybe
1223 <    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1224 <    If a cross compiler is detected then cross compile mode will be used." >&2
1223 >    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1224 >    If a cross compiler is detected then cross compile mode will be used" >&2
1225    elif test "x$build_alias" != "x$host_alias"; then
1226      cross_compiling=yes
1227    fi
# Line 1223 | Line 1236 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1236   ac_pwd=`pwd` && test -n "$ac_pwd" &&
1237   ac_ls_di=`ls -di .` &&
1238   ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1239 <  as_fn_error "working directory cannot be determined"
1239 >  as_fn_error $? "working directory cannot be determined"
1240   test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1241 <  as_fn_error "pwd does not report name of working directory"
1241 >  as_fn_error $? "pwd does not report name of working directory"
1242  
1243  
1244   # Find the source files, if location was not specified.
# Line 1264 | Line 1277 | if test ! -r "$srcdir/$ac_unique_file"; then
1277   fi
1278   if test ! -r "$srcdir/$ac_unique_file"; then
1279    test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1280 <  as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1280 >  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1281   fi
1282   ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1283   ac_abs_confdir=`(
1284 <        cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1284 >        cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1285          pwd)`
1286   # When building in place, set srcdir=.
1287   if test "$ac_abs_confdir" = "$ac_pwd"; then
# Line 1294 | Line 1307 | if test "$ac_init_help" = "long"; then
1307    # Omit some internal or obsolete options to make the list less imposing.
1308    # This message is too long to be a string in the A/UX 3.1 sh.
1309    cat <<_ACEOF
1310 < \`configure' configures OOPSE 4.0 to adapt to many kinds of systems.
1310 > \`configure' configures OpenMD 1.0 to adapt to many kinds of systems.
1311  
1312   Usage: $0 [OPTION]... [VAR=VALUE]...
1313  
# Line 1308 | Line 1321 | Configuration:
1321        --help=short        display options specific to this package
1322        --help=recursive    display the short help of all the included packages
1323    -V, --version           display version information and exit
1324 <  -q, --quiet, --silent   do not print \`checking...' messages
1324 >  -q, --quiet, --silent   do not print \`checking ...' messages
1325        --cache-file=FILE   cache test results in FILE [disabled]
1326    -C, --config-cache      alias for \`--cache-file=config.cache'
1327    -n, --no-create         do not create output files
# Line 1342 | Line 1355 | Fine tuning of the installation directories:
1355    --infodir=DIR           info documentation [DATAROOTDIR/info]
1356    --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1357    --mandir=DIR            man documentation [DATAROOTDIR/man]
1358 <  --docdir=DIR            documentation root [DATAROOTDIR/doc/oopse]
1358 >  --docdir=DIR            documentation root [DATAROOTDIR/doc/openmd]
1359    --htmldir=DIR           html documentation [DOCDIR]
1360    --dvidir=DIR            dvi documentation [DOCDIR]
1361    --pdfdir=DIR            pdf documentation [DOCDIR]
# Line 1359 | Line 1372 | if test -n "$ac_init_help"; then
1372  
1373   if test -n "$ac_init_help"; then
1374    case $ac_init_help in
1375 <     short | recursive ) echo "Configuration of OOPSE 4.0:";;
1375 >     short | recursive ) echo "Configuration of OpenMD 1.0:";;
1376     esac
1377    cat <<\_ACEOF
1378  
# Line 1367 | Line 1380 | Optional Features:
1380    --disable-option-checking  ignore unrecognized --enable/--with options
1381    --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1382    --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1383 <  --enable-oopse-home=DIR      define oopse home dir PREFIX/oopse
1384 <  --enable-debug          Compile OOPSE in debug mode
1385 <  --enable-single         compile OOPSE in single precision
1383 >  --enable-openmd-home=DIR      define OpenMD home dir PREFIX/openmd
1384 >  --enable-debug          Compile OpenMD in debug mode
1385 >  --enable-single         compile OpenMD in single precision
1386    --enable-float          synonym for --enable-single
1387    --enable-doxygen        enable documentation generation with doxygen (auto)
1388    --enable-dot            use 'dot' to generate graphs in doxygen (auto)
# Line 1397 | Line 1410 | Some influential environment variables:
1410    LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1411                nonstandard directory <lib dir>
1412    LIBS        libraries to pass to the linker, e.g. -l<library>
1413 <  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1413 >  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1414                you have headers in a nonstandard directory <include dir>
1402  MPICXX      MPI C++ compiler command
1415    CC          C compiler command
1416    CFLAGS      C compiler flags
1405  MPICC       MPI C compiler command
1417    FC          Fortran compiler command
1418    FCFLAGS     Fortran compiler flags
1419 +  MPICXX      MPI C++ compiler command
1420 +  MPICC       MPI C compiler command
1421    MPIFC       MPI Fortran compiler command
1422    CPP         C preprocessor
1423    CXXCPP      C++ preprocessor
# Line 1475 | Line 1488 | if $ac_init_version; then
1488   test -n "$ac_init_help" && exit $ac_status
1489   if $ac_init_version; then
1490    cat <<\_ACEOF
1491 < OOPSE configure 4.0
1492 < generated by GNU Autoconf 2.64
1491 > OpenMD configure 1.0
1492 > generated by GNU Autoconf 2.68
1493  
1494 < Copyright (C) 2009 Free Software Foundation, Inc.
1494 > Copyright (C) 2010 Free Software Foundation, Inc.
1495   This configure script is free software; the Free Software Foundation
1496   gives unlimited permission to copy, distribute and modify it.
1497   _ACEOF
# Line 1522 | Line 1535 | fi
1535  
1536          ac_retval=1
1537   fi
1538 <  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1539 <  return $ac_retval
1538 >  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1539 >  as_fn_set_status $ac_retval
1540  
1541   } # ac_fn_cxx_try_compile
1542 +
1543 + # ac_fn_c_try_compile LINENO
1544 + # --------------------------
1545 + # Try to compile conftest.$ac_ext, and return whether this succeeded.
1546 + ac_fn_c_try_compile ()
1547 + {
1548 +  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1549 +  rm -f conftest.$ac_objext
1550 +  if { { ac_try="$ac_compile"
1551 + case "(($ac_try" in
1552 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1553 +  *) ac_try_echo=$ac_try;;
1554 + esac
1555 + eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1556 + $as_echo "$ac_try_echo"; } >&5
1557 +  (eval "$ac_compile") 2>conftest.err
1558 +  ac_status=$?
1559 +  if test -s conftest.err; then
1560 +    grep -v '^ *+' conftest.err >conftest.er1
1561 +    cat conftest.er1 >&5
1562 +    mv -f conftest.er1 conftest.err
1563 +  fi
1564 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1565 +  test $ac_status = 0; } && {
1566 +         test -z "$ac_c_werror_flag" ||
1567 +         test ! -s conftest.err
1568 +       } && test -s conftest.$ac_objext; then :
1569 +  ac_retval=0
1570 + else
1571 +  $as_echo "$as_me: failed program was:" >&5
1572 + sed 's/^/| /' conftest.$ac_ext >&5
1573 +
1574 +        ac_retval=1
1575 + fi
1576 +  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1577 +  as_fn_set_status $ac_retval
1578 +
1579 + } # ac_fn_c_try_compile
1580 +
1581 + # ac_fn_fc_try_compile LINENO
1582 + # ---------------------------
1583 + # Try to compile conftest.$ac_ext, and return whether this succeeded.
1584 + ac_fn_fc_try_compile ()
1585 + {
1586 +  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1587 +  rm -f conftest.$ac_objext
1588 +  if { { ac_try="$ac_compile"
1589 + case "(($ac_try" in
1590 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1591 +  *) ac_try_echo=$ac_try;;
1592 + esac
1593 + eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1594 + $as_echo "$ac_try_echo"; } >&5
1595 +  (eval "$ac_compile") 2>conftest.err
1596 +  ac_status=$?
1597 +  if test -s conftest.err; then
1598 +    grep -v '^ *+' conftest.err >conftest.er1
1599 +    cat conftest.er1 >&5
1600 +    mv -f conftest.er1 conftest.err
1601 +  fi
1602 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1603 +  test $ac_status = 0; } && {
1604 +         test -z "$ac_fc_werror_flag" ||
1605 +         test ! -s conftest.err
1606 +       } && test -s conftest.$ac_objext; then :
1607 +  ac_retval=0
1608 + else
1609 +  $as_echo "$as_me: failed program was:" >&5
1610 + sed 's/^/| /' conftest.$ac_ext >&5
1611  
1612 +        ac_retval=1
1613 + fi
1614 +  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1615 +  as_fn_set_status $ac_retval
1616 +
1617 + } # ac_fn_fc_try_compile
1618 +
1619   # ac_fn_cxx_try_link LINENO
1620   # -------------------------
1621   # Try to link conftest.$ac_ext, and return whether this succeeded.
# Line 1568 | Line 1657 | fi
1657    # interfere with the next link command; also delete a directory that is
1658    # left behind by Apple's compiler.  We do this before executing the actions.
1659    rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1660 <  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1661 <  return $ac_retval
1660 >  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1661 >  as_fn_set_status $ac_retval
1662  
1663   } # ac_fn_cxx_try_link
1664  
# Line 1581 | Line 1670 | $as_echo_n "checking for $2... " >&6; }
1670    as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1671    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1672   $as_echo_n "checking for $2... " >&6; }
1673 < if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1673 > if eval \${$3+:} false; then :
1674    $as_echo_n "(cached) " >&6
1675   else
1676    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
# Line 1636 | Line 1725 | $as_echo "$ac_res" >&6; }
1725   eval ac_res=\$$3
1726                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1727   $as_echo "$ac_res" >&6; }
1728 <  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1728 >  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1729  
1730   } # ac_fn_cxx_check_func
1731  
1643 # ac_fn_c_try_compile LINENO
1644 # --------------------------
1645 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1646 ac_fn_c_try_compile ()
1647 {
1648  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1649  rm -f conftest.$ac_objext
1650  if { { ac_try="$ac_compile"
1651 case "(($ac_try" in
1652  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1653  *) ac_try_echo=$ac_try;;
1654 esac
1655 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1656 $as_echo "$ac_try_echo"; } >&5
1657  (eval "$ac_compile") 2>conftest.err
1658  ac_status=$?
1659  if test -s conftest.err; then
1660    grep -v '^ *+' conftest.err >conftest.er1
1661    cat conftest.er1 >&5
1662    mv -f conftest.er1 conftest.err
1663  fi
1664  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1665  test $ac_status = 0; } && {
1666         test -z "$ac_c_werror_flag" ||
1667         test ! -s conftest.err
1668       } && test -s conftest.$ac_objext; then :
1669  ac_retval=0
1670 else
1671  $as_echo "$as_me: failed program was:" >&5
1672 sed 's/^/| /' conftest.$ac_ext >&5
1673
1674        ac_retval=1
1675 fi
1676  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1677  return $ac_retval
1678
1679 } # ac_fn_c_try_compile
1680
1732   # ac_fn_c_try_link LINENO
1733   # -----------------------
1734   # Try to link conftest.$ac_ext, and return whether this succeeded.
# Line 1719 | Line 1770 | fi
1770    # interfere with the next link command; also delete a directory that is
1771    # left behind by Apple's compiler.  We do this before executing the actions.
1772    rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1773 <  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1774 <  return $ac_retval
1773 >  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1774 >  as_fn_set_status $ac_retval
1775  
1776   } # ac_fn_c_try_link
1777  
# Line 1732 | Line 1783 | $as_echo_n "checking for $2... " >&6; }
1783    as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1784    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1785   $as_echo_n "checking for $2... " >&6; }
1786 < if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1786 > if eval \${$3+:} false; then :
1787    $as_echo_n "(cached) " >&6
1788   else
1789    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
# Line 1787 | Line 1838 | $as_echo "$ac_res" >&6; }
1838   eval ac_res=\$$3
1839                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1840   $as_echo "$ac_res" >&6; }
1841 <  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1841 >  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1842  
1843   } # ac_fn_c_check_func
1844  
1794 # ac_fn_fc_try_compile LINENO
1795 # ---------------------------
1796 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1797 ac_fn_fc_try_compile ()
1798 {
1799  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1800  rm -f conftest.$ac_objext
1801  if { { ac_try="$ac_compile"
1802 case "(($ac_try" in
1803  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1804  *) ac_try_echo=$ac_try;;
1805 esac
1806 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1807 $as_echo "$ac_try_echo"; } >&5
1808  (eval "$ac_compile") 2>conftest.err
1809  ac_status=$?
1810  if test -s conftest.err; then
1811    grep -v '^ *+' conftest.err >conftest.er1
1812    cat conftest.er1 >&5
1813    mv -f conftest.er1 conftest.err
1814  fi
1815  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1816  test $ac_status = 0; } && {
1817         test -z "$ac_fc_werror_flag" ||
1818         test ! -s conftest.err
1819       } && test -s conftest.$ac_objext; then :
1820  ac_retval=0
1821 else
1822  $as_echo "$as_me: failed program was:" >&5
1823 sed 's/^/| /' conftest.$ac_ext >&5
1824
1825        ac_retval=1
1826 fi
1827  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1828  return $ac_retval
1829
1830 } # ac_fn_fc_try_compile
1831
1845   # ac_fn_fc_try_link LINENO
1846   # ------------------------
1847   # Try to link conftest.$ac_ext, and return whether this succeeded.
# Line 1870 | Line 1883 | fi
1883    # interfere with the next link command; also delete a directory that is
1884    # left behind by Apple's compiler.  We do this before executing the actions.
1885    rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1886 <  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1887 <  return $ac_retval
1886 >  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1887 >  as_fn_set_status $ac_retval
1888  
1889   } # ac_fn_fc_try_link
1890  
# Line 1896 | Line 1909 | $as_echo "$ac_try_echo"; } >&5
1909      mv -f conftest.er1 conftest.err
1910    fi
1911    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1912 <  test $ac_status = 0; } >/dev/null && {
1912 >  test $ac_status = 0; } > conftest.i && {
1913           test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1914           test ! -s conftest.err
1915         }; then :
# Line 1907 | Line 1920 | fi
1920  
1921      ac_retval=1
1922   fi
1923 <  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1924 <  return $ac_retval
1923 >  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1924 >  as_fn_set_status $ac_retval
1925  
1926   } # ac_fn_c_try_cpp
1927  
# Line 1920 | Line 1933 | ac_fn_c_check_header_mongrel ()
1933   ac_fn_c_check_header_mongrel ()
1934   {
1935    as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1936 <  if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1936 >  if eval \${$3+:} false; then :
1937    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1938   $as_echo_n "checking for $2... " >&6; }
1939 < if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1939 > if eval \${$3+:} false; then :
1940    $as_echo_n "(cached) " >&6
1941   fi
1942   eval ac_res=\$$3
# Line 1959 | Line 1972 | fi
1972   else
1973    ac_header_preproc=no
1974   fi
1975 < rm -f conftest.err conftest.$ac_ext
1975 > rm -f conftest.err conftest.i conftest.$ac_ext
1976   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1977   $as_echo "$ac_header_preproc" >&6; }
1978  
# Line 1982 | Line 1995 | $as_echo "$as_me: WARNING: $2: proceeding with the com
1995   $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1996      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1997   $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1998 < ( cat <<\_ASBOX
1986 < ## ------------------------------ ##
1998 > ( $as_echo "## ------------------------------ ##
1999   ## Report this to gezelter@nd.edu ##
2000 < ## ------------------------------ ##
1989 < _ASBOX
2000 > ## ------------------------------ ##"
2001       ) | sed "s/^/$as_me: WARNING:     /" >&2
2002      ;;
2003   esac
2004    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2005   $as_echo_n "checking for $2... " >&6; }
2006 < if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2006 > if eval \${$3+:} false; then :
2007    $as_echo_n "(cached) " >&6
2008   else
2009    eval "$3=\$ac_header_compiler"
# Line 2001 | Line 2012 | fi
2012                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2013   $as_echo "$ac_res" >&6; }
2014   fi
2015 <  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2015 >  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2016  
2017   } # ac_fn_c_check_header_mongrel
2018  
# Line 2042 | Line 2053 | fi
2053         ac_retval=$ac_status
2054   fi
2055    rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2056 <  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2057 <  return $ac_retval
2056 >  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2057 >  as_fn_set_status $ac_retval
2058  
2059   } # ac_fn_c_try_run
2060  
# Line 2056 | Line 2067 | $as_echo_n "checking for $2... " >&6; }
2067    as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2068    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2069   $as_echo_n "checking for $2... " >&6; }
2070 < if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2070 > if eval \${$3+:} false; then :
2071    $as_echo_n "(cached) " >&6
2072   else
2073    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
# Line 2074 | Line 2085 | $as_echo "$ac_res" >&6; }
2085   eval ac_res=\$$3
2086                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2087   $as_echo "$ac_res" >&6; }
2088 <  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2088 >  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2089  
2090   } # ac_fn_c_check_header_compile
2091  
# Line 2099 | Line 2110 | $as_echo "$ac_try_echo"; } >&5
2110      mv -f conftest.er1 conftest.err
2111    fi
2112    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2113 <  test $ac_status = 0; } >/dev/null && {
2113 >  test $ac_status = 0; } > conftest.i && {
2114           test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2115           test ! -s conftest.err
2116         }; then :
# Line 2110 | Line 2121 | fi
2121  
2122      ac_retval=1
2123   fi
2124 <  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2125 <  return $ac_retval
2124 >  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2125 >  as_fn_set_status $ac_retval
2126  
2127   } # ac_fn_cxx_try_cpp
2128  
# Line 2123 | Line 2134 | ac_fn_cxx_check_header_mongrel ()
2134   ac_fn_cxx_check_header_mongrel ()
2135   {
2136    as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2137 <  if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2137 >  if eval \${$3+:} false; then :
2138    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2139   $as_echo_n "checking for $2... " >&6; }
2140 < if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2140 > if eval \${$3+:} false; then :
2141    $as_echo_n "(cached) " >&6
2142   fi
2143   eval ac_res=\$$3
# Line 2162 | Line 2173 | fi
2173   else
2174    ac_header_preproc=no
2175   fi
2176 < rm -f conftest.err conftest.$ac_ext
2176 > rm -f conftest.err conftest.i conftest.$ac_ext
2177   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2178   $as_echo "$ac_header_preproc" >&6; }
2179  
# Line 2185 | Line 2196 | $as_echo "$as_me: WARNING: $2: proceeding with the com
2196   $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2197      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2198   $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2199 < ( cat <<\_ASBOX
2189 < ## ------------------------------ ##
2199 > ( $as_echo "## ------------------------------ ##
2200   ## Report this to gezelter@nd.edu ##
2201 < ## ------------------------------ ##
2192 < _ASBOX
2201 > ## ------------------------------ ##"
2202       ) | sed "s/^/$as_me: WARNING:     /" >&2
2203      ;;
2204   esac
2205    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2206   $as_echo_n "checking for $2... " >&6; }
2207 < if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2207 > if eval \${$3+:} false; then :
2208    $as_echo_n "(cached) " >&6
2209   else
2210    eval "$3=\$ac_header_compiler"
# Line 2204 | Line 2213 | fi
2213                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2214   $as_echo "$ac_res" >&6; }
2215   fi
2216 <  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2216 >  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2217  
2218   } # ac_fn_cxx_check_header_mongrel
2219  
# Line 2217 | Line 2226 | $as_echo_n "checking for $2... " >&6; }
2226    as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2227    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2228   $as_echo_n "checking for $2... " >&6; }
2229 < if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2229 > if eval \${$3+:} false; then :
2230    $as_echo_n "(cached) " >&6
2231   else
2232    eval "$3=no"
# Line 2274 | Line 2283 | $as_echo "$ac_res" >&6; }
2283   eval ac_res=\$$3
2284                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2285   $as_echo "$ac_res" >&6; }
2286 <  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2286 >  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2287  
2288   } # ac_fn_c_check_type
2289   cat >config.log <<_ACEOF
2290   This file contains any messages produced by compilers while
2291   running configure, to aid debugging if configure makes a mistake.
2292  
2293 < It was created by OOPSE $as_me 4.0, which was
2294 < generated by GNU Autoconf 2.64.  Invocation command line was
2293 > It was created by OpenMD $as_me 1.0, which was
2294 > generated by GNU Autoconf 2.68.  Invocation command line was
2295  
2296    $ $0 $@
2297  
# Line 2392 | Line 2401 | trap 'exit_status=$?
2401    {
2402      echo
2403  
2404 <    cat <<\_ASBOX
2396 < ## ---------------- ##
2404 >    $as_echo "## ---------------- ##
2405   ## Cache variables. ##
2406 < ## ---------------- ##
2399 < _ASBOX
2406 > ## ---------------- ##"
2407      echo
2408      # The following way of writing the cache mishandles newlines in values,
2409   (
# Line 2430 | Line 2437 | $as_echo "$as_me: WARNING: cache variable $ac_var cont
2437   )
2438      echo
2439  
2440 <    cat <<\_ASBOX
2434 < ## ----------------- ##
2440 >    $as_echo "## ----------------- ##
2441   ## Output variables. ##
2442 < ## ----------------- ##
2437 < _ASBOX
2442 > ## ----------------- ##"
2443      echo
2444      for ac_var in $ac_subst_vars
2445      do
# Line 2447 | Line 2452 | _ASBOX
2452      echo
2453  
2454      if test -n "$ac_subst_files"; then
2455 <      cat <<\_ASBOX
2451 < ## ------------------- ##
2455 >      $as_echo "## ------------------- ##
2456   ## File substitutions. ##
2457 < ## ------------------- ##
2454 < _ASBOX
2457 > ## ------------------- ##"
2458        echo
2459        for ac_var in $ac_subst_files
2460        do
# Line 2465 | Line 2468 | _ASBOX
2468      fi
2469  
2470      if test -s confdefs.h; then
2471 <      cat <<\_ASBOX
2469 < ## ----------- ##
2471 >      $as_echo "## ----------- ##
2472   ## confdefs.h. ##
2473 < ## ----------- ##
2472 < _ASBOX
2473 > ## ----------- ##"
2474        echo
2475        cat confdefs.h
2476        echo
# Line 2524 | Line 2525 | if test -n "$CONFIG_SITE"; then
2525   ac_site_file1=NONE
2526   ac_site_file2=NONE
2527   if test -n "$CONFIG_SITE"; then
2528 <  ac_site_file1=$CONFIG_SITE
2528 >  # We do not want a PATH search for config.site.
2529 >  case $CONFIG_SITE in #((
2530 >    -*)  ac_site_file1=./$CONFIG_SITE;;
2531 >    */*) ac_site_file1=$CONFIG_SITE;;
2532 >    *)   ac_site_file1=./$CONFIG_SITE;;
2533 >  esac
2534   elif test "x$prefix" != xNONE; then
2535    ac_site_file1=$prefix/share/config.site
2536    ac_site_file2=$prefix/etc/config.site
# Line 2535 | Line 2541 | do
2541   for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2542   do
2543    test "x$ac_site_file" = xNONE && continue
2544 <  if test -r "$ac_site_file"; then
2544 >  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2545      { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2546   $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2547      sed 's/^/| /' "$ac_site_file" >&5
2548 <    . "$ac_site_file"
2548 >    . "$ac_site_file" \
2549 >      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2550 > $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2551 > as_fn_error $? "failed to load site script $ac_site_file
2552 > See \`config.log' for more details" "$LINENO" 5; }
2553    fi
2554   done
2555  
2556   if test -r "$cache_file"; then
2557 <  # Some versions of bash will fail to source /dev/null (special
2558 <  # files actually), so we avoid doing that.
2559 <  if test -f "$cache_file"; then
2557 >  # Some versions of bash will fail to source /dev/null (special files
2558 >  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2559 >  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2560      { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2561   $as_echo "$as_me: loading cache $cache_file" >&6;}
2562      case $cache_file in
# Line 2615 | Line 2625 | $as_echo "$as_me: error: changes in the environment ca
2625   $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2626    { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2627   $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2628 <  as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2628 >  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2629   fi
2630   ## -------------------- ##
2631   ## Main body of script. ##
# Line 2630 | Line 2640 | for ac_dir in ac-tools "$srcdir"/ac-tools; do
2640  
2641   ac_aux_dir=
2642   for ac_dir in ac-tools "$srcdir"/ac-tools; do
2643 <  for ac_t in install-sh install.sh shtool; do
2644 <    if test -f "$ac_dir/$ac_t"; then
2645 <      ac_aux_dir=$ac_dir
2646 <      ac_install_sh="$ac_aux_dir/$ac_t -c"
2647 <      break 2
2648 <    fi
2649 <  done
2643 >  if test -f "$ac_dir/install-sh"; then
2644 >    ac_aux_dir=$ac_dir
2645 >    ac_install_sh="$ac_aux_dir/install-sh -c"
2646 >    break
2647 >  elif test -f "$ac_dir/install.sh"; then
2648 >    ac_aux_dir=$ac_dir
2649 >    ac_install_sh="$ac_aux_dir/install.sh -c"
2650 >    break
2651 >  elif test -f "$ac_dir/shtool"; then
2652 >    ac_aux_dir=$ac_dir
2653 >    ac_install_sh="$ac_aux_dir/shtool install -c"
2654 >    break
2655 >  fi
2656   done
2657   if test -z "$ac_aux_dir"; then
2658 <  as_fn_error "cannot find install-sh, install.sh, or shtool in ac-tools \"$srcdir\"/ac-tools" "$LINENO" 5
2658 >  as_fn_error $? "cannot find install-sh, install.sh, or shtool in ac-tools \"$srcdir\"/ac-tools" "$LINENO" 5
2659   fi
2660  
2661   # These three variables are undocumented and unsupported,
# Line 2896 | Line 2912 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 |
2912   # who am i
2913   # Make sure we can run config.sub.
2914   $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2915 <  as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2915 >  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2916  
2917   { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2918   $as_echo_n "checking build system type... " >&6; }
2919 < if test "${ac_cv_build+set}" = set; then :
2919 > if ${ac_cv_build+:} false; then :
2920    $as_echo_n "(cached) " >&6
2921   else
2922    ac_build_alias=$build_alias
2923   test "x$ac_build_alias" = x &&
2924    ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2925   test "x$ac_build_alias" = x &&
2926 <  as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2926 >  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2927   ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2928 <  as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2928 >  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2929  
2930   fi
2931   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2932   $as_echo "$ac_cv_build" >&6; }
2933   case $ac_cv_build in
2934   *-*-*) ;;
2935 < *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2935 > *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2936   esac
2937   build=$ac_cv_build
2938   ac_save_IFS=$IFS; IFS='-'
# Line 2934 | Line 2950 | $as_echo_n "checking host system type... " >&6; }
2950  
2951   { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2952   $as_echo_n "checking host system type... " >&6; }
2953 < if test "${ac_cv_host+set}" = set; then :
2953 > if ${ac_cv_host+:} false; then :
2954    $as_echo_n "(cached) " >&6
2955   else
2956    if test "x$host_alias" = x; then
2957    ac_cv_host=$ac_cv_build
2958   else
2959    ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2960 <    as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2960 >    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2961   fi
2962  
2963   fi
# Line 2949 | Line 2965 | case $ac_cv_host in
2965   $as_echo "$ac_cv_host" >&6; }
2966   case $ac_cv_host in
2967   *-*-*) ;;
2968 < *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2968 > *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2969   esac
2970   host=$ac_cv_host
2971   ac_save_IFS=$IFS; IFS='-'
# Line 2969 | Line 2985 | case $host_os in *\ *) host_os=`echo "$host_os" | sed
2985  
2986  
2987   # set program name
2988 < PROGNAME="oopse"
2988 > PROGNAME="openmd"
2989  
2990  
2991  
2992  
2993   OBJEXT=".$OBJEXT"
2994  
2995 < OOPSE=oopse
2995 > OPENMD=openmd
2996  
2997   if test "x${prefix}" = "xNONE"
2998   then
2999 <  OOPSE_HOME=${ac_default_prefix}/oopse
2999 >  OPENMD_HOME=${ac_default_prefix}/openmd
3000   else
3001 <  OOPSE_HOME=${prefix}/oopse
3001 >  OPENMD_HOME=${prefix}/openmd
3002   fi
3003 < # Check whether --enable-oopse-home was given.
3004 < if test "${enable_oopse_home+set}" = set; then :
3005 <  enableval=$enable_oopse_home; OOPSE_HOME="${enableval}"
3003 > # Check whether --enable-openmd-home was given.
3004 > if test "${enable_openmd_home+set}" = set; then :
3005 >  enableval=$enable_openmd_home; OPENMD_HOME="${enableval}"
3006   fi
3007  
3008  
# Line 3027 | Line 3043 | fi
3043  
3044   fi
3045  
3030 if test x"$CC" != x; then
3031   for ac_prog in $CC
3032 do
3033  # Extract the first word of "$ac_prog", so it can be a program name with args.
3034 set dummy $ac_prog; ac_word=$2
3035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3036 $as_echo_n "checking for $ac_word... " >&6; }
3037 if test "${ac_cv_prog_ac_cc_set+set}" = set; then :
3038  $as_echo_n "(cached) " >&6
3039 else
3040  if test -n "$ac_cc_set"; then
3041  ac_cv_prog_ac_cc_set="$ac_cc_set" # Let the user override the test.
3042 else
3043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3044 for as_dir in $PATH
3045 do
3046  IFS=$as_save_IFS
3047  test -z "$as_dir" && as_dir=.
3048    for ac_exec_ext in '' $ac_executable_extensions; do
3049  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3050    ac_cv_prog_ac_cc_set="$ac_prog"
3051    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3052    break 2
3053  fi
3054 done
3055  done
3056 IFS=$as_save_IFS
3057
3058 fi
3059 fi
3060 ac_cc_set=$ac_cv_prog_ac_cc_set
3061 if test -n "$ac_cc_set"; then
3062  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cc_set" >&5
3063 $as_echo "$ac_cc_set" >&6; }
3064 else
3065  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3066 $as_echo "no" >&6; }
3067 fi
3068
3069
3070  test -n "$ac_cc_set" && break
3071 done
3072 test -n "$ac_cc_set" || ac_cc_set="no"
3073
3074   if test $ac_cc_set != no; then :
3075
3076     # Extract the first word of "$ac_cc_set", so it can be a program name with args.
3077 set dummy $ac_cc_set; ac_word=$2
3078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3079 $as_echo_n "checking for $ac_word... " >&6; }
3080 if test "${ac_cv_path_ac_cc_path+set}" = set; then :
3081  $as_echo_n "(cached) " >&6
3082 else
3083  case $ac_cc_path in
3084  [\\/]* | ?:[\\/]*)
3085  ac_cv_path_ac_cc_path="$ac_cc_path" # Let the user override the test with a path.
3086  ;;
3087  *)
3088  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3089 for as_dir in $PATH
3090 do
3091  IFS=$as_save_IFS
3092  test -z "$as_dir" && as_dir=.
3093    for ac_exec_ext in '' $ac_executable_extensions; do
3094  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3095    ac_cv_path_ac_cc_path="$as_dir/$ac_word$ac_exec_ext"
3096    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3097    break 2
3098  fi
3099 done
3100  done
3101 IFS=$as_save_IFS
3102
3103  test -z "$ac_cv_path_ac_cc_path" && ac_cv_path_ac_cc_path="no"
3104  ;;
3105 esac
3106 fi
3107 ac_cc_path=$ac_cv_path_ac_cc_path
3108 if test -n "$ac_cc_path"; then
3109  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cc_path" >&5
3110 $as_echo "$ac_cc_path" >&6; }
3111 else
3112  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3113 $as_echo "no" >&6; }
3114 fi
3115
3116
3117 else
3118
3119     as_fn_error "Specified C compiler $CC doesn't seem to exist!" "$LINENO" 5
3120 fi
3121
3122   if test $ac_cc_path != no; then :
3123
3124     { $as_echo "$as_me:${as_lineno-$LINENO}: Will attempt to use $CC as C compiler" >&5
3125 $as_echo "$as_me: Will attempt to use $CC as C compiler" >&6;}
3126     MPICC=$CC
3127
3128 else
3129
3130     as_fn_error "Can't find path to user-specified C compiler $CC" "$LINENO" 5
3131 fi
3132 fi
3133
3134 if test x"$CXX" != x; then
3135   for ac_prog in $CXX
3136 do
3137  # Extract the first word of "$ac_prog", so it can be a program name with args.
3138 set dummy $ac_prog; ac_word=$2
3139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3140 $as_echo_n "checking for $ac_word... " >&6; }
3141 if test "${ac_cv_prog_ac_cxx_set+set}" = set; then :
3142  $as_echo_n "(cached) " >&6
3143 else
3144  if test -n "$ac_cxx_set"; then
3145  ac_cv_prog_ac_cxx_set="$ac_cxx_set" # Let the user override the test.
3146 else
3147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3148 for as_dir in $PATH
3149 do
3150  IFS=$as_save_IFS
3151  test -z "$as_dir" && as_dir=.
3152    for ac_exec_ext in '' $ac_executable_extensions; do
3153  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3154    ac_cv_prog_ac_cxx_set="$ac_prog"
3155    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3156    break 2
3157  fi
3158 done
3159  done
3160 IFS=$as_save_IFS
3161
3162 fi
3163 fi
3164 ac_cxx_set=$ac_cv_prog_ac_cxx_set
3165 if test -n "$ac_cxx_set"; then
3166  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cxx_set" >&5
3167 $as_echo "$ac_cxx_set" >&6; }
3168 else
3169  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3170 $as_echo "no" >&6; }
3171 fi
3172
3173
3174  test -n "$ac_cxx_set" && break
3175 done
3176 test -n "$ac_cxx_set" || ac_cxx_set="no"
3177
3178   if test $ac_cxx_set != no; then :
3179
3180     # Extract the first word of "$ac_cxx_set", so it can be a program name with args.
3181 set dummy $ac_cxx_set; ac_word=$2
3182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3183 $as_echo_n "checking for $ac_word... " >&6; }
3184 if test "${ac_cv_path_ac_cxx_path+set}" = set; then :
3185  $as_echo_n "(cached) " >&6
3186 else
3187  case $ac_cxx_path in
3188  [\\/]* | ?:[\\/]*)
3189  ac_cv_path_ac_cxx_path="$ac_cxx_path" # Let the user override the test with a path.
3190  ;;
3191  *)
3192  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3193 for as_dir in $PATH
3194 do
3195  IFS=$as_save_IFS
3196  test -z "$as_dir" && as_dir=.
3197    for ac_exec_ext in '' $ac_executable_extensions; do
3198  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3199    ac_cv_path_ac_cxx_path="$as_dir/$ac_word$ac_exec_ext"
3200    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3201    break 2
3202  fi
3203 done
3204  done
3205 IFS=$as_save_IFS
3206
3207  test -z "$ac_cv_path_ac_cxx_path" && ac_cv_path_ac_cxx_path="no"
3208  ;;
3209 esac
3210 fi
3211 ac_cxx_path=$ac_cv_path_ac_cxx_path
3212 if test -n "$ac_cxx_path"; then
3213  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cxx_path" >&5
3214 $as_echo "$ac_cxx_path" >&6; }
3215 else
3216  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3217 $as_echo "no" >&6; }
3218 fi
3219
3220
3221 else
3222
3223     as_fn_error "Specified C++ compiler $CXX doesn't seem to exist!" "$LINENO" 5
3224 fi
3225
3226   if test $ac_cxx_path != no; then :
3227
3228     { $as_echo "$as_me:${as_lineno-$LINENO}: Will attempt to use $CXX as C++ compiler" >&5
3229 $as_echo "$as_me: Will attempt to use $CXX as C++ compiler" >&6;}
3230     MPICXX=$CXX
3231
3232 else
3233
3234     as_fn_error "Can't find path to user-specified C++ compiler $CXX" "$LINENO" 5
3235 fi
3236 fi
3237
3238 if test x"$FC" != x; then
3239   for ac_prog in $FC
3240 do
3241  # Extract the first word of "$ac_prog", so it can be a program name with args.
3242 set dummy $ac_prog; ac_word=$2
3243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3244 $as_echo_n "checking for $ac_word... " >&6; }
3245 if test "${ac_cv_prog_ac_fc_set+set}" = set; then :
3246  $as_echo_n "(cached) " >&6
3247 else
3248  if test -n "$ac_fc_set"; then
3249  ac_cv_prog_ac_fc_set="$ac_fc_set" # Let the user override the test.
3250 else
3251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3252 for as_dir in $PATH
3253 do
3254  IFS=$as_save_IFS
3255  test -z "$as_dir" && as_dir=.
3256    for ac_exec_ext in '' $ac_executable_extensions; do
3257  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3258    ac_cv_prog_ac_fc_set="$ac_prog"
3259    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3260    break 2
3261  fi
3262 done
3263  done
3264 IFS=$as_save_IFS
3265
3266 fi
3267 fi
3268 ac_fc_set=$ac_cv_prog_ac_fc_set
3269 if test -n "$ac_fc_set"; then
3270  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_fc_set" >&5
3271 $as_echo "$ac_fc_set" >&6; }
3272 else
3273  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3274 $as_echo "no" >&6; }
3275 fi
3276
3277
3278  test -n "$ac_fc_set" && break
3279 done
3280 test -n "$ac_fc_set" || ac_fc_set="no"
3281
3282   if test $ac_fc_set != no; then :
3283
3284     # Extract the first word of "$ac_fc_set", so it can be a program name with args.
3285 set dummy $ac_fc_set; ac_word=$2
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3287 $as_echo_n "checking for $ac_word... " >&6; }
3288 if test "${ac_cv_path_ac_fc_path+set}" = set; then :
3289  $as_echo_n "(cached) " >&6
3290 else
3291  case $ac_fc_path in
3292  [\\/]* | ?:[\\/]*)
3293  ac_cv_path_ac_fc_path="$ac_fc_path" # Let the user override the test with a path.
3294  ;;
3295  *)
3296  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3297 for as_dir in $PATH
3298 do
3299  IFS=$as_save_IFS
3300  test -z "$as_dir" && as_dir=.
3301    for ac_exec_ext in '' $ac_executable_extensions; do
3302  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3303    ac_cv_path_ac_fc_path="$as_dir/$ac_word$ac_exec_ext"
3304    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3305    break 2
3306  fi
3307 done
3308  done
3309 IFS=$as_save_IFS
3310
3311  test -z "$ac_cv_path_ac_fc_path" && ac_cv_path_ac_fc_path="no"
3312  ;;
3313 esac
3314 fi
3315 ac_fc_path=$ac_cv_path_ac_fc_path
3316 if test -n "$ac_fc_path"; then
3317  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_fc_path" >&5
3318 $as_echo "$ac_fc_path" >&6; }
3319 else
3320  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3321 $as_echo "no" >&6; }
3322 fi
3323
3324
3325 else
3326
3327     as_fn_error "Specified Fortran compiler $FC doesn't seem to exist!" "$LINENO" 5
3328 fi
3329
3330   if test $ac_fc_path != no; then :
3331
3332     { $as_echo "$as_me:${as_lineno-$LINENO}: Will attempt to use $FC as Fortran compiler" >&5
3333 $as_echo "$as_me: Will attempt to use $FC as Fortran compiler" >&6;}
3334     MPIFC=$FC
3335
3336 else
3337
3338     as_fn_error "Can't find path to user-specified Fortran compiler $FC" "$LINENO" 5
3339 fi
3340 fi
3341
3342
3046   ac_ext=cpp
3047   ac_cpp='$CXXCPP $CPPFLAGS'
3048   ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3049   ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3050   ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3348
3349 ac_ext=cpp
3350 ac_cpp='$CXXCPP $CPPFLAGS'
3351 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3352 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3353 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3051   if test -z "$CXX"; then
3052    if test -n "$CCC"; then
3053      CXX=$CCC
3054    else
3055      if test -n "$ac_tool_prefix"; then
3056 <  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3056 >  for ac_prog in $CXX icpc pathCC pgCC c++ xlc++ xlC g++ CC
3057    do
3058      # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3059   set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3060   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3061   $as_echo_n "checking for $ac_word... " >&6; }
3062 < if test "${ac_cv_prog_CXX+set}" = set; then :
3062 > if ${ac_cv_prog_CXX+:} false; then :
3063    $as_echo_n "(cached) " >&6
3064   else
3065    if test -n "$CXX"; then
# Line 3400 | Line 3097 | if test -z "$CXX"; then
3097   fi
3098   if test -z "$CXX"; then
3099    ac_ct_CXX=$CXX
3100 <  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3100 >  for ac_prog in $CXX icpc pathCC pgCC c++ xlc++ xlC g++ CC
3101   do
3102    # Extract the first word of "$ac_prog", so it can be a program name with args.
3103   set dummy $ac_prog; ac_word=$2
3104   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3105   $as_echo_n "checking for $ac_word... " >&6; }
3106 < if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
3106 > if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3107    $as_echo_n "(cached) " >&6
3108   else
3109    if test -n "$ac_ct_CXX"; then
# Line 3476 | Line 3173 | $as_echo "$ac_try_echo"; } >&5
3173   ... rest of stderr output deleted ...
3174           10q' conftest.err >conftest.er1
3175      cat conftest.er1 >&5
3479    rm -f conftest.er1 conftest.err
3176    fi
3177 +  rm -f conftest.er1 conftest.err
3178    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3179    test $ac_status = 0; }
3180   done
3181  
3182   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3183   /* end confdefs.h.  */
3184 < #include <stdio.h>
3184 >
3185   int
3186   main ()
3187   {
3491 FILE *f = fopen ("conftest.out", "w");
3492 return ferror (f) || fclose (f) != 0;
3188  
3189    ;
3190    return 0;
3191   }
3192   _ACEOF
3193   ac_clean_files_save=$ac_clean_files
3194 < ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3194 > ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3195   # Try to create an executable without -o first, disregard a.out.
3196   # It will help us diagnose broken compilers, and finding out an intuition
3197   # of exeext.
3198 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3199 < $as_echo_n "checking for C++ compiler default output file name... " >&6; }
3198 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
3199 > $as_echo_n "checking whether the C++ compiler works... " >&6; }
3200   ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3201  
3202   # The possible output files:
# Line 3563 | Line 3258 | fi
3258   else
3259    ac_file=''
3260   fi
3566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3567 $as_echo "$ac_file" >&6; }
3261   if test -z "$ac_file"; then :
3262 <  $as_echo "$as_me: failed program was:" >&5
3262 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3263 > $as_echo "no" >&6; }
3264 > $as_echo "$as_me: failed program was:" >&5
3265   sed 's/^/| /' conftest.$ac_ext >&5
3266  
3267   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3268   $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3269 < { as_fn_set_status 77
3270 < as_fn_error "C++ compiler cannot create executables
3271 < See \`config.log' for more details." "$LINENO" 5; }; }
3269 > as_fn_error 77 "C++ compiler cannot create executables
3270 > See \`config.log' for more details" "$LINENO" 5; }
3271 > else
3272 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3273 > $as_echo "yes" >&6; }
3274   fi
3275 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3276 + $as_echo_n "checking for C++ compiler default output file name... " >&6; }
3277 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3278 + $as_echo "$ac_file" >&6; }
3279   ac_exeext=$ac_cv_exeext
3280  
3281 < # Check that the compiler produces executables we can run.  If not, either
3581 < # the compiler is broken, or we cross compile.
3582 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
3583 < $as_echo_n "checking whether the C++ compiler works... " >&6; }
3584 < # If not cross compiling, check that we can run a simple program.
3585 < if test "$cross_compiling" != yes; then
3586 <  if { ac_try='./$ac_file'
3587 <  { { case "(($ac_try" in
3588 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3589 <  *) ac_try_echo=$ac_try;;
3590 < esac
3591 < eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3592 < $as_echo "$ac_try_echo"; } >&5
3593 <  (eval "$ac_try") 2>&5
3594 <  ac_status=$?
3595 <  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3596 <  test $ac_status = 0; }; }; then
3597 <    cross_compiling=no
3598 <  else
3599 <    if test "$cross_compiling" = maybe; then
3600 <        cross_compiling=yes
3601 <    else
3602 <        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3603 < $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3604 < as_fn_error "cannot run C++ compiled programs.
3605 < If you meant to cross compile, use \`--host'.
3606 < See \`config.log' for more details." "$LINENO" 5; }
3607 <    fi
3608 <  fi
3609 < fi
3610 < { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3611 < $as_echo "yes" >&6; }
3612 <
3613 < rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3281 > rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3282   ac_clean_files=$ac_clean_files_save
3615 # Check that the compiler produces executables we can run.  If not, either
3616 # the compiler is broken, or we cross compile.
3617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3618 $as_echo_n "checking whether we are cross compiling... " >&6; }
3619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3620 $as_echo "$cross_compiling" >&6; }
3621
3283   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3284   $as_echo_n "checking for suffix of executables... " >&6; }
3285   if { { ac_try="$ac_link"
# Line 3648 | Line 3309 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3309   else
3310    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3311   $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3312 < as_fn_error "cannot compute suffix of executables: cannot compile and link
3313 < See \`config.log' for more details." "$LINENO" 5; }
3312 > as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3313 > See \`config.log' for more details" "$LINENO" 5; }
3314   fi
3315 < rm -f conftest$ac_cv_exeext
3315 > rm -f conftest conftest$ac_cv_exeext
3316   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3317   $as_echo "$ac_cv_exeext" >&6; }
3318  
3319   rm -f conftest.$ac_ext
3320   EXEEXT=$ac_cv_exeext
3321   ac_exeext=$EXEEXT
3322 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3323 + /* end confdefs.h.  */
3324 + #include <stdio.h>
3325 + int
3326 + main ()
3327 + {
3328 + FILE *f = fopen ("conftest.out", "w");
3329 + return ferror (f) || fclose (f) != 0;
3330 +
3331 +  ;
3332 +  return 0;
3333 + }
3334 + _ACEOF
3335 + ac_clean_files="$ac_clean_files conftest.out"
3336 + # Check that the compiler produces executables we can run.  If not, either
3337 + # the compiler is broken, or we cross compile.
3338 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3339 + $as_echo_n "checking whether we are cross compiling... " >&6; }
3340 + if test "$cross_compiling" != yes; then
3341 +  { { ac_try="$ac_link"
3342 + case "(($ac_try" in
3343 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3344 +  *) ac_try_echo=$ac_try;;
3345 + esac
3346 + eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3347 + $as_echo "$ac_try_echo"; } >&5
3348 +  (eval "$ac_link") 2>&5
3349 +  ac_status=$?
3350 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3351 +  test $ac_status = 0; }
3352 +  if { ac_try='./conftest$ac_cv_exeext'
3353 +  { { case "(($ac_try" in
3354 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3355 +  *) ac_try_echo=$ac_try;;
3356 + esac
3357 + eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3358 + $as_echo "$ac_try_echo"; } >&5
3359 +  (eval "$ac_try") 2>&5
3360 +  ac_status=$?
3361 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3362 +  test $ac_status = 0; }; }; then
3363 +    cross_compiling=no
3364 +  else
3365 +    if test "$cross_compiling" = maybe; then
3366 +        cross_compiling=yes
3367 +    else
3368 +        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3369 + $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3370 + as_fn_error $? "cannot run C++ compiled programs.
3371 + If you meant to cross compile, use \`--host'.
3372 + See \`config.log' for more details" "$LINENO" 5; }
3373 +    fi
3374 +  fi
3375 + fi
3376 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3377 + $as_echo "$cross_compiling" >&6; }
3378 +
3379 + rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3380 + ac_clean_files=$ac_clean_files_save
3381   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3382   $as_echo_n "checking for suffix of object files... " >&6; }
3383 < if test "${ac_cv_objext+set}" = set; then :
3383 > if ${ac_cv_objext+:} false; then :
3384    $as_echo_n "(cached) " >&6
3385   else
3386    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
# Line 3700 | Line 3420 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3420  
3421   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3422   $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3423 < as_fn_error "cannot compute suffix of object files: cannot compile
3424 < See \`config.log' for more details." "$LINENO" 5; }
3423 > as_fn_error $? "cannot compute suffix of object files: cannot compile
3424 > See \`config.log' for more details" "$LINENO" 5; }
3425   fi
3426   rm -f conftest.$ac_cv_objext conftest.$ac_ext
3427   fi
# Line 3711 | Line 3431 | $as_echo_n "checking whether we are using the GNU C++
3431   ac_objext=$OBJEXT
3432   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3433   $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3434 < if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
3434 > if ${ac_cv_cxx_compiler_gnu+:} false; then :
3435    $as_echo_n "(cached) " >&6
3436   else
3437    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
# Line 3748 | Line 3468 | $as_echo_n "checking whether $CXX accepts -g... " >&6;
3468   ac_save_CXXFLAGS=$CXXFLAGS
3469   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3470   $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3471 < if test "${ac_cv_prog_cxx_g+set}" = set; then :
3471 > if ${ac_cv_prog_cxx_g+:} false; then :
3472    $as_echo_n "(cached) " >&6
3473   else
3474    ac_save_cxx_werror_flag=$ac_cxx_werror_flag
# Line 3824 | Line 3544 | fi
3544      CXXFLAGS=
3545    fi
3546   fi
3547 < ac_ext=cpp
3548 < ac_cpp='$CXXCPP $CPPFLAGS'
3549 < ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3550 < ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3551 < ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3547 > ac_ext=c
3548 > ac_cpp='$CPP $CPPFLAGS'
3549 > ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3550 > ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3551 > ac_compiler_gnu=$ac_cv_c_compiler_gnu
3552  
3553 <
3554 <
3555 <
3556 <
3557 <
3558 <
3559 <        for ac_prog in openmpicxx openmpiCC openmpic++ mpic++ mpicxx mpiCC hcp mpxlC_r mpxlC mpCC cmpic++
3560 < do
3561 <  # Extract the first word of "$ac_prog", so it can be a program name with args.
3562 < set dummy $ac_prog; ac_word=$2
3553 > ac_ext=c
3554 > ac_cpp='$CPP $CPPFLAGS'
3555 > ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3556 > ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3557 > ac_compiler_gnu=$ac_cv_c_compiler_gnu
3558 > if test -n "$ac_tool_prefix"; then
3559 >  for ac_prog in $CC icc pathcc pgcc cc xlc gcc
3560 >  do
3561 >    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3562 > set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3563   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3564   $as_echo_n "checking for $ac_word... " >&6; }
3565 < if test "${ac_cv_prog_MPICXX+set}" = set; then :
3565 > if ${ac_cv_prog_CC+:} false; then :
3566    $as_echo_n "(cached) " >&6
3567   else
3568 <  if test -n "$MPICXX"; then
3569 <  ac_cv_prog_MPICXX="$MPICXX" # Let the user override the test.
3568 >  if test -n "$CC"; then
3569 >  ac_cv_prog_CC="$CC" # Let the user override the test.
3570   else
3571   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3572   for as_dir in $PATH
# Line 3855 | Line 3575 | do
3575    test -z "$as_dir" && as_dir=.
3576      for ac_exec_ext in '' $ac_executable_extensions; do
3577    if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3578 <    ac_cv_prog_MPICXX="$ac_prog"
3578 >    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3579      $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3580      break 2
3581    fi
# Line 3865 | Line 3585 | fi
3585  
3586   fi
3587   fi
3588 < MPICXX=$ac_cv_prog_MPICXX
3589 < if test -n "$MPICXX"; then
3590 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPICXX" >&5
3591 < $as_echo "$MPICXX" >&6; }
3588 > CC=$ac_cv_prog_CC
3589 > if test -n "$CC"; then
3590 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3591 > $as_echo "$CC" >&6; }
3592   else
3593    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3594   $as_echo "no" >&6; }
3595   fi
3596  
3597  
3598 <  test -n "$MPICXX" && break
3599 < done
3880 < test -n "$MPICXX" || MPICXX="$CXX"
3881 <
3882 <        ax_mpi_save_CXX="$CXX"
3883 <        CXX="$MPICXX"
3884 <
3885 <
3886 <
3887 < if test x = x"$MPILIBS"; then
3888 <        ac_fn_cxx_check_func "$LINENO" "MPI_Init" "ac_cv_func_MPI_Init"
3889 < if test "x$ac_cv_func_MPI_Init" = x""yes; then :
3890 <  MPILIBS=" "
3598 >    test -n "$CC" && break
3599 >  done
3600   fi
3892
3893 fi
3894
3895 if test x = x"$MPILIBS"; then
3896        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpi" >&5
3897 $as_echo_n "checking for MPI_Init in -lmpi... " >&6; }
3898 if test "${ac_cv_lib_mpi_MPI_Init+set}" = set; then :
3899  $as_echo_n "(cached) " >&6
3900 else
3901  ac_check_lib_save_LIBS=$LIBS
3902 LIBS="-lmpi  $LIBS"
3903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3904 /* end confdefs.h.  */
3905
3906 /* Override any GCC internal prototype to avoid an error.
3907   Use char because int might match the return type of a GCC
3908   builtin and then its argument prototype would still apply.  */
3909 #ifdef __cplusplus
3910 extern "C"
3911 #endif
3912 char MPI_Init ();
3913 int
3914 main ()
3915 {
3916 return MPI_Init ();
3917  ;
3918  return 0;
3919 }
3920 _ACEOF
3921 if ac_fn_cxx_try_link "$LINENO"; then :
3922  ac_cv_lib_mpi_MPI_Init=yes
3923 else
3924  ac_cv_lib_mpi_MPI_Init=no
3925 fi
3926 rm -f core conftest.err conftest.$ac_objext \
3927    conftest$ac_exeext conftest.$ac_ext
3928 LIBS=$ac_check_lib_save_LIBS
3929 fi
3930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpi_MPI_Init" >&5
3931 $as_echo "$ac_cv_lib_mpi_MPI_Init" >&6; }
3932 if test "x$ac_cv_lib_mpi_MPI_Init" = x""yes; then :
3933  MPILIBS="-lmpi"
3934 fi
3935
3936 fi
3937 if test x = x"$MPILIBS"; then
3938        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpich" >&5
3939 $as_echo_n "checking for MPI_Init in -lmpich... " >&6; }
3940 if test "${ac_cv_lib_mpich_MPI_Init+set}" = set; then :
3941  $as_echo_n "(cached) " >&6
3942 else
3943  ac_check_lib_save_LIBS=$LIBS
3944 LIBS="-lmpich  $LIBS"
3945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3946 /* end confdefs.h.  */
3947
3948 /* Override any GCC internal prototype to avoid an error.
3949   Use char because int might match the return type of a GCC
3950   builtin and then its argument prototype would still apply.  */
3951 #ifdef __cplusplus
3952 extern "C"
3953 #endif
3954 char MPI_Init ();
3955 int
3956 main ()
3957 {
3958 return MPI_Init ();
3959  ;
3960  return 0;
3961 }
3962 _ACEOF
3963 if ac_fn_cxx_try_link "$LINENO"; then :
3964  ac_cv_lib_mpich_MPI_Init=yes
3965 else
3966  ac_cv_lib_mpich_MPI_Init=no
3967 fi
3968 rm -f core conftest.err conftest.$ac_objext \
3969    conftest$ac_exeext conftest.$ac_ext
3970 LIBS=$ac_check_lib_save_LIBS
3971 fi
3972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpich_MPI_Init" >&5
3973 $as_echo "$ac_cv_lib_mpich_MPI_Init" >&6; }
3974 if test "x$ac_cv_lib_mpich_MPI_Init" = x""yes; then :
3975  MPILIBS="-lmpich"
3976 fi
3977
3978 fi
3979
3980 if test x != x"$MPILIBS"; then
3981        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpi.h" >&5
3982 $as_echo_n "checking for mpi.h... " >&6; }
3983        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3984 /* end confdefs.h.  */
3985 #include <mpi.h>
3986 int
3987 main ()
3988 {
3989
3990  ;
3991  return 0;
3992 }
3993 _ACEOF
3994 if ac_fn_cxx_try_compile "$LINENO"; then :
3995  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3996 $as_echo "yes" >&6; }
3997 else
3998  MPILIBS=""
3999                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4000 $as_echo "no" >&6; }
4001 fi
4002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4003 fi
4004
4005 CXX="$ax_mpi_save_CXX"
4006
4007
4008
4009 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
4010 if test x = x"$MPILIBS"; then
4011        USE_MPI="no"
4012       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No suitable C++ MPI implementation found. oopse_MPI will not be built." >&5
4013 $as_echo "$as_me: WARNING: No suitable C++ MPI implementation found. oopse_MPI will not be built." >&2;}
4014        :
4015 else
4016        USE_MPI="yes"
4017        :
4018 fi
4019
4020 ac_ext=c
4021 ac_cpp='$CPP $CPPFLAGS'
4022 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4023 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4024 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4025 if test -n "$ac_tool_prefix"; then
4026  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4027 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4029 $as_echo_n "checking for $ac_word... " >&6; }
4030 if test "${ac_cv_prog_CC+set}" = set; then :
4031  $as_echo_n "(cached) " >&6
4032 else
4033  if test -n "$CC"; then
4034  ac_cv_prog_CC="$CC" # Let the user override the test.
4035 else
4036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4037 for as_dir in $PATH
4038 do
4039  IFS=$as_save_IFS
4040  test -z "$as_dir" && as_dir=.
4041    for ac_exec_ext in '' $ac_executable_extensions; do
4042  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4043    ac_cv_prog_CC="${ac_tool_prefix}gcc"
4044    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4045    break 2
4046  fi
4047 done
4048  done
4049 IFS=$as_save_IFS
4050
4051 fi
4052 fi
4053 CC=$ac_cv_prog_CC
4054 if test -n "$CC"; then
4055  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4056 $as_echo "$CC" >&6; }
4057 else
4058  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4059 $as_echo "no" >&6; }
4060 fi
4061
4062
4063 fi
4064 if test -z "$ac_cv_prog_CC"; then
4065  ac_ct_CC=$CC
4066  # Extract the first word of "gcc", so it can be a program name with args.
4067 set dummy gcc; ac_word=$2
4068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4069 $as_echo_n "checking for $ac_word... " >&6; }
4070 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4071  $as_echo_n "(cached) " >&6
4072 else
4073  if test -n "$ac_ct_CC"; then
4074  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4075 else
4076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4077 for as_dir in $PATH
4078 do
4079  IFS=$as_save_IFS
4080  test -z "$as_dir" && as_dir=.
4081    for ac_exec_ext in '' $ac_executable_extensions; do
4082  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4083    ac_cv_prog_ac_ct_CC="gcc"
4084    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4085    break 2
4086  fi
4087 done
4088  done
4089 IFS=$as_save_IFS
4090
4091 fi
4092 fi
4093 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4094 if test -n "$ac_ct_CC"; then
4095  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4096 $as_echo "$ac_ct_CC" >&6; }
4097 else
4098  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4099 $as_echo "no" >&6; }
4100 fi
4101
4102  if test "x$ac_ct_CC" = x; then
4103    CC=""
4104  else
4105    case $cross_compiling:$ac_tool_warned in
4106 yes:)
4107 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4108 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4109 ac_tool_warned=yes ;;
4110 esac
4111    CC=$ac_ct_CC
4112  fi
4113 else
4114  CC="$ac_cv_prog_CC"
4115 fi
4116
3601   if test -z "$CC"; then
3602 <          if test -n "$ac_tool_prefix"; then
3603 <    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4120 < set dummy ${ac_tool_prefix}cc; ac_word=$2
4121 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4122 < $as_echo_n "checking for $ac_word... " >&6; }
4123 < if test "${ac_cv_prog_CC+set}" = set; then :
4124 <  $as_echo_n "(cached) " >&6
4125 < else
4126 <  if test -n "$CC"; then
4127 <  ac_cv_prog_CC="$CC" # Let the user override the test.
4128 < else
4129 < as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4130 < for as_dir in $PATH
4131 < do
4132 <  IFS=$as_save_IFS
4133 <  test -z "$as_dir" && as_dir=.
4134 <    for ac_exec_ext in '' $ac_executable_extensions; do
4135 <  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4136 <    ac_cv_prog_CC="${ac_tool_prefix}cc"
4137 <    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4138 <    break 2
4139 <  fi
4140 < done
4141 <  done
4142 < IFS=$as_save_IFS
4143 <
4144 < fi
4145 < fi
4146 < CC=$ac_cv_prog_CC
4147 < if test -n "$CC"; then
4148 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4149 < $as_echo "$CC" >&6; }
4150 < else
4151 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4152 < $as_echo "no" >&6; }
4153 < fi
4154 <
4155 <
4156 <  fi
4157 < fi
4158 < if test -z "$CC"; then
4159 <  # Extract the first word of "cc", so it can be a program name with args.
4160 < set dummy cc; ac_word=$2
4161 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4162 < $as_echo_n "checking for $ac_word... " >&6; }
4163 < if test "${ac_cv_prog_CC+set}" = set; then :
4164 <  $as_echo_n "(cached) " >&6
4165 < else
4166 <  if test -n "$CC"; then
4167 <  ac_cv_prog_CC="$CC" # Let the user override the test.
4168 < else
4169 <  ac_prog_rejected=no
4170 < as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4171 < for as_dir in $PATH
4172 < do
4173 <  IFS=$as_save_IFS
4174 <  test -z "$as_dir" && as_dir=.
4175 <    for ac_exec_ext in '' $ac_executable_extensions; do
4176 <  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4177 <    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4178 <       ac_prog_rejected=yes
4179 <       continue
4180 <     fi
4181 <    ac_cv_prog_CC="cc"
4182 <    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4183 <    break 2
4184 <  fi
4185 < done
4186 <  done
4187 < IFS=$as_save_IFS
4188 <
4189 < if test $ac_prog_rejected = yes; then
4190 <  # We found a bogon in the path, so make sure we never use it.
4191 <  set dummy $ac_cv_prog_CC
4192 <  shift
4193 <  if test $# != 0; then
4194 <    # We chose a different compiler from the bogus one.
4195 <    # However, it has the same basename, so the bogon will be chosen
4196 <    # first if we set CC to just the basename; use the full file name.
4197 <    shift
4198 <    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4199 <  fi
4200 < fi
4201 < fi
4202 < fi
4203 < CC=$ac_cv_prog_CC
4204 < if test -n "$CC"; then
4205 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4206 < $as_echo "$CC" >&6; }
4207 < else
4208 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4209 < $as_echo "no" >&6; }
4210 < fi
4211 <
4212 <
4213 < fi
4214 < if test -z "$CC"; then
4215 <  if test -n "$ac_tool_prefix"; then
4216 <  for ac_prog in cl.exe
4217 <  do
4218 <    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4219 < set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4220 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4221 < $as_echo_n "checking for $ac_word... " >&6; }
4222 < if test "${ac_cv_prog_CC+set}" = set; then :
4223 <  $as_echo_n "(cached) " >&6
4224 < else
4225 <  if test -n "$CC"; then
4226 <  ac_cv_prog_CC="$CC" # Let the user override the test.
4227 < else
4228 < as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4229 < for as_dir in $PATH
4230 < do
4231 <  IFS=$as_save_IFS
4232 <  test -z "$as_dir" && as_dir=.
4233 <    for ac_exec_ext in '' $ac_executable_extensions; do
4234 <  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4235 <    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4236 <    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4237 <    break 2
4238 <  fi
4239 < done
4240 <  done
4241 < IFS=$as_save_IFS
4242 <
4243 < fi
4244 < fi
4245 < CC=$ac_cv_prog_CC
4246 < if test -n "$CC"; then
4247 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4248 < $as_echo "$CC" >&6; }
4249 < else
4250 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4251 < $as_echo "no" >&6; }
4252 < fi
4253 <
4254 <
4255 <    test -n "$CC" && break
4256 <  done
4257 < fi
4258 < if test -z "$CC"; then
4259 <  ac_ct_CC=$CC
4260 <  for ac_prog in cl.exe
3602 >  ac_ct_CC=$CC
3603 >  for ac_prog in $CC icc pathcc pgcc cc xlc gcc
3604   do
3605    # Extract the first word of "$ac_prog", so it can be a program name with args.
3606   set dummy $ac_prog; ac_word=$2
3607   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3608   $as_echo_n "checking for $ac_word... " >&6; }
3609 < if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3609 > if ${ac_cv_prog_ac_ct_CC+:} false; then :
3610    $as_echo_n "(cached) " >&6
3611   else
3612    if test -n "$ac_ct_CC"; then
# Line 4312 | Line 3655 | fi
3655    fi
3656   fi
3657  
4315 fi
3658  
4317
3659   test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3660   $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3661 < as_fn_error "no acceptable C compiler found in \$PATH
3662 < See \`config.log' for more details." "$LINENO" 5; }
3661 > as_fn_error $? "no acceptable C compiler found in \$PATH
3662 > See \`config.log' for more details" "$LINENO" 5; }
3663  
3664   # Provide some information about the compiler.
3665   $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
# Line 4339 | Line 3680 | $as_echo "$ac_try_echo"; } >&5
3680   ... rest of stderr output deleted ...
3681           10q' conftest.err >conftest.er1
3682      cat conftest.er1 >&5
3683 <    rm -f conftest.er1 conftest.err
3684 <  fi
3683 >  fi
3684 >  rm -f conftest.er1 conftest.err
3685    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3686    test $ac_status = 0; }
3687   done
3688  
3689   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3690   $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3691 < if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3691 > if ${ac_cv_c_compiler_gnu+:} false; then :
3692    $as_echo_n "(cached) " >&6
3693   else
3694    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
# Line 4384 | Line 3725 | $as_echo_n "checking whether $CC accepts -g... " >&6;
3725   ac_save_CFLAGS=$CFLAGS
3726   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3727   $as_echo_n "checking whether $CC accepts -g... " >&6; }
3728 < if test "${ac_cv_prog_cc_g+set}" = set; then :
3728 > if ${ac_cv_prog_cc_g+:} false; then :
3729    $as_echo_n "(cached) " >&6
3730   else
3731    ac_save_c_werror_flag=$ac_c_werror_flag
# Line 4462 | Line 3803 | $as_echo_n "checking for $CC option to accept ISO C89.
3803   fi
3804   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3805   $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3806 < if test "${ac_cv_prog_cc_c89+set}" = set; then :
3806 > if ${ac_cv_prog_cc_c89+:} false; then :
3807    $as_echo_n "(cached) " >&6
3808   else
3809    ac_cv_prog_cc_c89=no
# Line 4550 | Line 3891 | fi
3891   if test "x$ac_cv_prog_cc_c89" != xno; then :
3892  
3893   fi
4553
4554 ac_ext=c
4555 ac_cpp='$CPP $CPPFLAGS'
4556 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4557 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4558 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3894  
4560
4561 if test $USE_MPI != no; then :
4562
3895   ac_ext=c
3896   ac_cpp='$CPP $CPPFLAGS'
3897   ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3898   ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3899   ac_compiler_gnu=$ac_cv_c_compiler_gnu
4568
4569
4570
4571
4572
4573
4574        for ac_prog in openmpicc mpicc hcc mpxlc_r mpxlc mpcc cmpicc
4575 do
4576  # Extract the first word of "$ac_prog", so it can be a program name with args.
4577 set dummy $ac_prog; ac_word=$2
4578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4579 $as_echo_n "checking for $ac_word... " >&6; }
4580 if test "${ac_cv_prog_MPICC+set}" = set; then :
4581  $as_echo_n "(cached) " >&6
4582 else
4583  if test -n "$MPICC"; then
4584  ac_cv_prog_MPICC="$MPICC" # Let the user override the test.
4585 else
4586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4587 for as_dir in $PATH
4588 do
4589  IFS=$as_save_IFS
4590  test -z "$as_dir" && as_dir=.
4591    for ac_exec_ext in '' $ac_executable_extensions; do
4592  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4593    ac_cv_prog_MPICC="$ac_prog"
4594    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4595    break 2
4596  fi
4597 done
4598  done
4599 IFS=$as_save_IFS
3900  
4601 fi
4602 fi
4603 MPICC=$ac_cv_prog_MPICC
4604 if test -n "$MPICC"; then
4605  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPICC" >&5
4606 $as_echo "$MPICC" >&6; }
4607 else
4608  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4609 $as_echo "no" >&6; }
4610 fi
4611
4612
4613  test -n "$MPICC" && break
4614 done
4615 test -n "$MPICC" || MPICC="$CC"
4616
4617        ax_mpi_save_CC="$CC"
4618        CC="$MPICC"
4619
4620
4621
4622 if test x = x"$MPILIBS"; then
4623        ac_fn_c_check_func "$LINENO" "MPI_Init" "ac_cv_func_MPI_Init"
4624 if test "x$ac_cv_func_MPI_Init" = x""yes; then :
4625  MPILIBS=" "
4626 fi
4627
4628 fi
4629
4630 if test x = x"$MPILIBS"; then
4631        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpi" >&5
4632 $as_echo_n "checking for MPI_Init in -lmpi... " >&6; }
4633 if test "${ac_cv_lib_mpi_MPI_Init+set}" = set; then :
4634  $as_echo_n "(cached) " >&6
4635 else
4636  ac_check_lib_save_LIBS=$LIBS
4637 LIBS="-lmpi  $LIBS"
4638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4639 /* end confdefs.h.  */
4640
4641 /* Override any GCC internal prototype to avoid an error.
4642   Use char because int might match the return type of a GCC
4643   builtin and then its argument prototype would still apply.  */
4644 #ifdef __cplusplus
4645 extern "C"
4646 #endif
4647 char MPI_Init ();
4648 int
4649 main ()
4650 {
4651 return MPI_Init ();
4652  ;
4653  return 0;
4654 }
4655 _ACEOF
4656 if ac_fn_c_try_link "$LINENO"; then :
4657  ac_cv_lib_mpi_MPI_Init=yes
4658 else
4659  ac_cv_lib_mpi_MPI_Init=no
4660 fi
4661 rm -f core conftest.err conftest.$ac_objext \
4662    conftest$ac_exeext conftest.$ac_ext
4663 LIBS=$ac_check_lib_save_LIBS
4664 fi
4665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpi_MPI_Init" >&5
4666 $as_echo "$ac_cv_lib_mpi_MPI_Init" >&6; }
4667 if test "x$ac_cv_lib_mpi_MPI_Init" = x""yes; then :
4668  MPILIBS="-lmpi"
4669 fi
4670
4671 fi
4672 if test x = x"$MPILIBS"; then
4673        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpich" >&5
4674 $as_echo_n "checking for MPI_Init in -lmpich... " >&6; }
4675 if test "${ac_cv_lib_mpich_MPI_Init+set}" = set; then :
4676  $as_echo_n "(cached) " >&6
4677 else
4678  ac_check_lib_save_LIBS=$LIBS
4679 LIBS="-lmpich  $LIBS"
4680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4681 /* end confdefs.h.  */
4682
4683 /* Override any GCC internal prototype to avoid an error.
4684   Use char because int might match the return type of a GCC
4685   builtin and then its argument prototype would still apply.  */
4686 #ifdef __cplusplus
4687 extern "C"
4688 #endif
4689 char MPI_Init ();
4690 int
4691 main ()
4692 {
4693 return MPI_Init ();
4694  ;
4695  return 0;
4696 }
4697 _ACEOF
4698 if ac_fn_c_try_link "$LINENO"; then :
4699  ac_cv_lib_mpich_MPI_Init=yes
4700 else
4701  ac_cv_lib_mpich_MPI_Init=no
4702 fi
4703 rm -f core conftest.err conftest.$ac_objext \
4704    conftest$ac_exeext conftest.$ac_ext
4705 LIBS=$ac_check_lib_save_LIBS
4706 fi
4707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpich_MPI_Init" >&5
4708 $as_echo "$ac_cv_lib_mpich_MPI_Init" >&6; }
4709 if test "x$ac_cv_lib_mpich_MPI_Init" = x""yes; then :
4710  MPILIBS="-lmpich"
4711 fi
4712
4713 fi
4714
4715 if test x != x"$MPILIBS"; then
4716        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpi.h" >&5
4717 $as_echo_n "checking for mpi.h... " >&6; }
4718        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4719 /* end confdefs.h.  */
4720 #include <mpi.h>
4721 int
4722 main ()
4723 {
4724
4725  ;
4726  return 0;
4727 }
4728 _ACEOF
4729 if ac_fn_c_try_compile "$LINENO"; then :
4730  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4731 $as_echo "yes" >&6; }
4732 else
4733  MPILIBS=""
4734                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4735 $as_echo "no" >&6; }
4736 fi
4737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4738 fi
4739
4740 CC="$ax_mpi_save_CC"
4741
4742
4743
4744 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
4745 if test x = x"$MPILIBS"; then
4746        USE_MPI="no"
4747       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No suitable C MPI implementation found. oopse_MPI will not be built." >&5
4748 $as_echo "$as_me: WARNING: No suitable C MPI implementation found. oopse_MPI will not be built." >&2;}
4749        :
4750 else
4751        USE_MPI="yes"
4752        :
4753 fi
4754
4755
4756 fi
3901   ac_ext=${ac_fc_srcext-f}
3902   ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
3903   ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
3904   ac_compiler_gnu=$ac_cv_fc_compiler_gnu
3905   if test -n "$ac_tool_prefix"; then
3906 <  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
3906 >  for ac_prog in $FC ifort ifc pathf95 pgf95 xlf95 lf95 epcf90 pathf90 xlf90 f95 f90 gfortran g95 fort
3907    do
3908      # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3909   set dummy $ac_tool_prefix$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_FC+set}" = set; then :
3912 > if ${ac_cv_prog_FC+:} false; then :
3913    $as_echo_n "(cached) " >&6
3914   else
3915    if test -n "$FC"; then
# Line 4803 | Line 3947 | if test -z "$FC"; then
3947   fi
3948   if test -z "$FC"; then
3949    ac_ct_FC=$FC
3950 <  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
3950 >  for ac_prog in $FC ifort ifc pathf95 pgf95 xlf95 lf95 epcf90 pathf90 xlf90 f95 f90 gfortran g95 fort
3951   do
3952    # Extract the first word of "$ac_prog", so it can be a program name with args.
3953   set dummy $ac_prog; ac_word=$2
3954   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3955   $as_echo_n "checking for $ac_word... " >&6; }
3956 < if test "${ac_cv_prog_ac_ct_FC+set}" = set; then :
3956 > if ${ac_cv_prog_ac_ct_FC+:} false; then :
3957    $as_echo_n "(cached) " >&6
3958   else
3959    if test -n "$ac_ct_FC"; then
# Line 4878 | Line 4022 | $as_echo "$ac_try_echo"; } >&5
4022   ... rest of stderr output deleted ...
4023           10q' conftest.err >conftest.er1
4024      cat conftest.er1 >&5
4881    rm -f conftest.er1 conftest.err
4025    fi
4026 +  rm -f conftest.er1 conftest.err
4027    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4028    test $ac_status = 0; }
4029   done
# Line 4891 | Line 4035 | $as_echo_n "checking whether we are using the GNU Fort
4035   ac_ext=F
4036   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5
4037   $as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; }
4038 < if test "${ac_cv_fc_compiler_gnu+set}" = set; then :
4038 > if ${ac_cv_fc_compiler_gnu+:} false; then :
4039    $as_echo_n "(cached) " >&6
4040   else
4041    cat > conftest.$ac_ext <<_ACEOF
# Line 4919 | Line 4063 | $as_echo_n "checking whether $FC accepts -g... " >&6;
4063   FCFLAGS=
4064   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5
4065   $as_echo_n "checking whether $FC accepts -g... " >&6; }
4066 < if test "${ac_cv_prog_fc_g+set}" = set; then :
4066 > if ${ac_cv_prog_fc_g+:} false; then :
4067    $as_echo_n "(cached) " >&6
4068   else
4069    FCFLAGS=-g
# Line 4954 | Line 4098 | fi
4098    fi
4099   fi
4100  
4101 < ac_ext=${ac_fc_srcext-f}
4102 < ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
4103 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
4104 < ac_compiler_gnu=$ac_cv_fc_compiler_gnu
4101 > ac_ext=c
4102 > ac_cpp='$CPP $CPPFLAGS'
4103 > ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4104 > ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4105 > ac_compiler_gnu=$ac_cv_c_compiler_gnu
4106  
4107  
4108 < if test $USE_MPI != no; then :
4108 > save_CXX=$CXX
4109 > save_CC=$CC
4110 > save_FC=$FC
4111 > save_LIBS=$LIBS
4112  
4113 < ac_ext=${ac_fc_srcext-f}
4114 < ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
4115 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
4116 < ac_compiler_gnu=$ac_cv_fc_compiler_gnu
4113 > ac_ext=cpp
4114 > ac_cpp='$CXXCPP $CPPFLAGS'
4115 > ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4116 > ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4117 > ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4118  
4119  
4120 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lc" >&5
4121 + $as_echo_n "checking for dlopen in -lc... " >&6; }
4122 + if ${ac_cv_lib_c_dlopen+:} false; then :
4123 +  $as_echo_n "(cached) " >&6
4124 + else
4125 +  ac_check_lib_save_LIBS=$LIBS
4126 + LIBS="-lc  $LIBS"
4127 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4128 + /* end confdefs.h.  */
4129  
4130 + /* Override any GCC internal prototype to avoid an error.
4131 +   Use char because int might match the return type of a GCC
4132 +   builtin and then its argument prototype would still apply.  */
4133 + #ifdef __cplusplus
4134 + extern "C"
4135 + #endif
4136 + char dlopen ();
4137 + int
4138 + main ()
4139 + {
4140 + return dlopen ();
4141 +  ;
4142 +  return 0;
4143 + }
4144 + _ACEOF
4145 + if ac_fn_cxx_try_link "$LINENO"; then :
4146 +  ac_cv_lib_c_dlopen=yes
4147 + else
4148 +  ac_cv_lib_c_dlopen=no
4149 + fi
4150 + rm -f core conftest.err conftest.$ac_objext \
4151 +    conftest$ac_exeext conftest.$ac_ext
4152 + LIBS=$ac_check_lib_save_LIBS
4153 + fi
4154 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_dlopen" >&5
4155 + $as_echo "$ac_cv_lib_c_dlopen" >&6; }
4156 + if test "x$ac_cv_lib_c_dlopen" = xyes; then :
4157 +  LIBDL=""
4158 + else
4159 +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
4160 + $as_echo_n "checking for dlopen in -ldl... " >&6; }
4161 + if ${ac_cv_lib_dl_dlopen+:} false; then :
4162 +  $as_echo_n "(cached) " >&6
4163 + else
4164 +  ac_check_lib_save_LIBS=$LIBS
4165 + LIBS="-ldl  $LIBS"
4166 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4167 + /* end confdefs.h.  */
4168  
4169 + /* Override any GCC internal prototype to avoid an error.
4170 +   Use char because int might match the return type of a GCC
4171 +   builtin and then its argument prototype would still apply.  */
4172 + #ifdef __cplusplus
4173 + extern "C"
4174 + #endif
4175 + char dlopen ();
4176 + int
4177 + main ()
4178 + {
4179 + return dlopen ();
4180 +  ;
4181 +  return 0;
4182 + }
4183 + _ACEOF
4184 + if ac_fn_cxx_try_link "$LINENO"; then :
4185 +  ac_cv_lib_dl_dlopen=yes
4186 + else
4187 +  ac_cv_lib_dl_dlopen=no
4188 + fi
4189 + rm -f core conftest.err conftest.$ac_objext \
4190 +    conftest$ac_exeext conftest.$ac_ext
4191 + LIBS=$ac_check_lib_save_LIBS
4192 + fi
4193 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
4194 + $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
4195 + if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
4196 +  LIBDL="-ldl"
4197 + fi
4198  
4199 + fi
4200  
4201 <        for ac_prog in openmpif90 mpif90 mpxlf95_r mpxlf90_r mpxlf95 mpxlf90 mpf90 cmpif90c
4201 >
4202 >
4203 >
4204 >
4205 >
4206 >
4207 >        for ac_prog in openmpicxx openmpiCC openmpic++ mpic++ mpicxx mpiCC hcp mpxlC_r mpxlC mpCC cmpic++
4208   do
4209    # Extract the first word of "$ac_prog", so it can be a program name with args.
4210   set dummy $ac_prog; ac_word=$2
4211   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4212   $as_echo_n "checking for $ac_word... " >&6; }
4213 < if test "${ac_cv_prog_MPIFC+set}" = set; then :
4213 > if ${ac_cv_prog_MPICXX+:} false; then :
4214    $as_echo_n "(cached) " >&6
4215   else
4216 <  if test -n "$MPIFC"; then
4217 <  ac_cv_prog_MPIFC="$MPIFC" # Let the user override the test.
4216 >  if test -n "$MPICXX"; then
4217 >  ac_cv_prog_MPICXX="$MPICXX" # Let the user override the test.
4218   else
4219   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4220   for as_dir in $PATH
# Line 4991 | Line 4223 | do
4223    test -z "$as_dir" && as_dir=.
4224      for ac_exec_ext in '' $ac_executable_extensions; do
4225    if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4226 <    ac_cv_prog_MPIFC="$ac_prog"
4226 >    ac_cv_prog_MPICXX="$ac_prog"
4227      $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4228      break 2
4229    fi
# Line 5001 | Line 4233 | fi
4233  
4234   fi
4235   fi
4236 < MPIFC=$ac_cv_prog_MPIFC
4237 < if test -n "$MPIFC"; then
4238 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPIFC" >&5
4239 < $as_echo "$MPIFC" >&6; }
4236 > MPICXX=$ac_cv_prog_MPICXX
4237 > if test -n "$MPICXX"; then
4238 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPICXX" >&5
4239 > $as_echo "$MPICXX" >&6; }
4240   else
4241    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4242   $as_echo "no" >&6; }
4243   fi
4244  
4245  
4246 <  test -n "$MPIFC" && break
4246 >  test -n "$MPICXX" && break
4247   done
4248 < test -n "$MPIFC" || MPIFC="$FC"
4248 > test -n "$MPICXX" || MPICXX="$CXX"
4249  
4250 <        ax_mpi_save_FC="$FC"
4251 <        FC="$MPIFC"
4250 >        ax_mpi_save_CXX="$CXX"
4251 >        CXX="$MPICXX"
4252  
4253  
4254  
4255   if test x = x"$MPILIBS"; then
4256 <        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init" >&5
4257 < $as_echo_n "checking for MPI_Init... " >&6; }
5026 <                        cat > conftest.$ac_ext <<_ACEOF
5027 <      program main
5028 <      call MPI_Init
5029 <      end
5030 < _ACEOF
5031 < if ac_fn_fc_try_link "$LINENO"; then :
4256 >        ac_fn_cxx_check_func "$LINENO" "MPI_Init" "ac_cv_func_MPI_Init"
4257 > if test "x$ac_cv_func_MPI_Init" = xyes; then :
4258    MPILIBS=" "
5033                                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5034 $as_echo "yes" >&6; }
5035 else
5036  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5037 $as_echo "no" >&6; }
4259   fi
5039 rm -f core conftest.err conftest.$ac_objext \
5040    conftest$ac_exeext conftest.$ac_ext
5041 fi
4260  
5043        if test x = x"$MPILIBS"; then
5044                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lfmpi" >&5
5045 $as_echo_n "checking for MPI_Init in -lfmpi... " >&6; }
5046 if test "${ac_cv_lib_fmpi_MPI_Init+set}" = set; then :
5047  $as_echo_n "(cached) " >&6
5048 else
5049  ac_check_lib_save_LIBS=$LIBS
5050 LIBS="-lfmpi  $LIBS"
5051 cat > conftest.$ac_ext <<_ACEOF
5052      program main
5053      call MPI_Init
5054      end
5055 _ACEOF
5056 if ac_fn_fc_try_link "$LINENO"; then :
5057  ac_cv_lib_fmpi_MPI_Init=yes
5058 else
5059  ac_cv_lib_fmpi_MPI_Init=no
4261   fi
5061 rm -f core conftest.err conftest.$ac_objext \
5062    conftest$ac_exeext conftest.$ac_ext
5063 LIBS=$ac_check_lib_save_LIBS
5064 fi
5065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fmpi_MPI_Init" >&5
5066 $as_echo "$ac_cv_lib_fmpi_MPI_Init" >&6; }
5067 if test "x$ac_cv_lib_fmpi_MPI_Init" = x""yes; then :
5068  MPILIBS="-lfmpi"
5069 fi
4262  
5071        fi
5072        if test x = x"$MPILIBS"; then
5073                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpichf90" >&5
5074 $as_echo_n "checking for MPI_Init in -lmpichf90... " >&6; }
5075 if test "${ac_cv_lib_mpichf90_MPI_Init+set}" = set; then :
5076  $as_echo_n "(cached) " >&6
5077 else
5078  ac_check_lib_save_LIBS=$LIBS
5079 LIBS="-lmpichf90  $LIBS"
5080 cat > conftest.$ac_ext <<_ACEOF
5081      program main
5082      call MPI_Init
5083      end
5084 _ACEOF
5085 if ac_fn_fc_try_link "$LINENO"; then :
5086  ac_cv_lib_mpichf90_MPI_Init=yes
5087 else
5088  ac_cv_lib_mpichf90_MPI_Init=no
5089 fi
5090 rm -f core conftest.err conftest.$ac_objext \
5091    conftest$ac_exeext conftest.$ac_ext
5092 LIBS=$ac_check_lib_save_LIBS
5093 fi
5094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpichf90_MPI_Init" >&5
5095 $as_echo "$ac_cv_lib_mpichf90_MPI_Init" >&6; }
5096 if test "x$ac_cv_lib_mpichf90_MPI_Init" = x""yes; then :
5097  MPILIBS="-lmpichf90"
5098 fi
5099
5100        fi
5101
4263   if test x = x"$MPILIBS"; then
4264          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpi" >&5
4265   $as_echo_n "checking for MPI_Init in -lmpi... " >&6; }
4266 < if test "${ac_cv_lib_mpi_MPI_Init+set}" = set; then :
4266 > if ${ac_cv_lib_mpi_MPI_Init+:} false; then :
4267    $as_echo_n "(cached) " >&6
4268   else
4269    ac_check_lib_save_LIBS=$LIBS
4270   LIBS="-lmpi  $LIBS"
4271 < cat > conftest.$ac_ext <<_ACEOF
4272 <      program main
4273 <      call MPI_Init
4274 <      end
4271 > cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4272 > /* end confdefs.h.  */
4273 >
4274 > /* Override any GCC internal prototype to avoid an error.
4275 >   Use char because int might match the return type of a GCC
4276 >   builtin and then its argument prototype would still apply.  */
4277 > #ifdef __cplusplus
4278 > extern "C"
4279 > #endif
4280 > char MPI_Init ();
4281 > int
4282 > main ()
4283 > {
4284 > return MPI_Init ();
4285 >  ;
4286 >  return 0;
4287 > }
4288   _ACEOF
4289 < if ac_fn_fc_try_link "$LINENO"; then :
4289 > if ac_fn_cxx_try_link "$LINENO"; then :
4290    ac_cv_lib_mpi_MPI_Init=yes
4291   else
4292    ac_cv_lib_mpi_MPI_Init=no
# Line 5123 | Line 4297 | $as_echo "$ac_cv_lib_mpi_MPI_Init" >&6; }
4297   fi
4298   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpi_MPI_Init" >&5
4299   $as_echo "$ac_cv_lib_mpi_MPI_Init" >&6; }
4300 < if test "x$ac_cv_lib_mpi_MPI_Init" = x""yes; then :
4300 > if test "x$ac_cv_lib_mpi_MPI_Init" = xyes; then :
4301    MPILIBS="-lmpi"
4302   fi
4303  
# Line 5131 | Line 4305 | $as_echo_n "checking for MPI_Init in -lmpich... " >&6;
4305   if test x = x"$MPILIBS"; then
4306          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpich" >&5
4307   $as_echo_n "checking for MPI_Init in -lmpich... " >&6; }
4308 < if test "${ac_cv_lib_mpich_MPI_Init+set}" = set; then :
4308 > if ${ac_cv_lib_mpich_MPI_Init+:} false; then :
4309    $as_echo_n "(cached) " >&6
4310   else
4311    ac_check_lib_save_LIBS=$LIBS
4312   LIBS="-lmpich  $LIBS"
4313 < cat > conftest.$ac_ext <<_ACEOF
4314 <      program main
4315 <      call MPI_Init
4316 <      end
4313 > cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4314 > /* end confdefs.h.  */
4315 >
4316 > /* Override any GCC internal prototype to avoid an error.
4317 >   Use char because int might match the return type of a GCC
4318 >   builtin and then its argument prototype would still apply.  */
4319 > #ifdef __cplusplus
4320 > extern "C"
4321 > #endif
4322 > char MPI_Init ();
4323 > int
4324 > main ()
4325 > {
4326 > return MPI_Init ();
4327 >  ;
4328 >  return 0;
4329 > }
4330   _ACEOF
4331 < if ac_fn_fc_try_link "$LINENO"; then :
4331 > if ac_fn_cxx_try_link "$LINENO"; then :
4332    ac_cv_lib_mpich_MPI_Init=yes
4333   else
4334    ac_cv_lib_mpich_MPI_Init=no
# Line 5152 | Line 4339 | $as_echo "$ac_cv_lib_mpich_MPI_Init" >&6; }
4339   fi
4340   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpich_MPI_Init" >&5
4341   $as_echo "$ac_cv_lib_mpich_MPI_Init" >&6; }
4342 < if test "x$ac_cv_lib_mpich_MPI_Init" = x""yes; then :
4342 > if test "x$ac_cv_lib_mpich_MPI_Init" = xyes; then :
4343    MPILIBS="-lmpich"
4344   fi
4345  
4346   fi
4347  
4348   if test x != x"$MPILIBS"; then
4349 <        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpif.h" >&5
4350 < $as_echo_n "checking for mpif.h... " >&6; }
4351 <        cat > conftest.$ac_ext <<_ACEOF
4352 <      program main
4353 <      include 'mpif.h'
4354 <      end
4349 >        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpi.h" >&5
4350 > $as_echo_n "checking for mpi.h... " >&6; }
4351 >        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4352 > /* end confdefs.h.  */
4353 > #include <mpi.h>
4354 > int
4355 > main ()
4356 > {
4357 >
4358 >  ;
4359 >  return 0;
4360 > }
4361   _ACEOF
4362 < if ac_fn_fc_try_compile "$LINENO"; then :
4362 > if ac_fn_cxx_try_compile "$LINENO"; then :
4363    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4364   $as_echo "yes" >&6; }
4365   else
# Line 5177 | Line 4370 | fi
4370   rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4371   fi
4372  
4373 < FC="$ax_mpi_save_FC"
4373 > CXX="$ax_mpi_save_CXX"
4374  
4375  
4376  
4377   # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
4378   if test x = x"$MPILIBS"; then
4379          USE_MPI="no"
4380 <       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No suitable Fortran MPI implementation found. oopse_MPI will not be built." >&5
4381 < $as_echo "$as_me: WARNING: No suitable Fortran MPI implementation found. oopse_MPI will not be built." >&2;}
4380 >       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No suitable C++ MPI implementation found. openmd_MPI will not be built." >&5
4381 > $as_echo "$as_me: WARNING: No suitable C++ MPI implementation found. openmd_MPI will not be built." >&2;}
4382          :
4383   else
4384          USE_MPI="yes"
# Line 5193 | Line 4386 | fi
4386   fi
4387  
4388  
5196 fi
4389   if test $USE_MPI != no; then :
4390  
4391 <        CXX=$MPICXX
4392 <        CC=$MPICC
4393 <        FC=$MPIFC
4391 > ac_ext=c
4392 > ac_cpp='$CPP $CPPFLAGS'
4393 > ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4394 > ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4395 > ac_compiler_gnu=$ac_cv_c_compiler_gnu
4396  
5203 fi
4397  
4398  
5206 # Checks for programs.
5207 ac_ext=cpp
5208 ac_cpp='$CXXCPP $CPPFLAGS'
5209 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5210 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5211 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5212 if test -z "$CXX"; then
5213  if test -n "$CCC"; then
5214    CXX=$CCC
5215  else
5216    if test -n "$ac_tool_prefix"; then
5217  for ac_prog in $CXX icpc pathCC pgCC c++ xlc++ xlC g++ CC
5218  do
5219    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5220 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5222 $as_echo_n "checking for $ac_word... " >&6; }
5223 if test "${ac_cv_prog_CXX+set}" = set; then :
5224  $as_echo_n "(cached) " >&6
5225 else
5226  if test -n "$CXX"; then
5227  ac_cv_prog_CXX="$CXX" # Let the user override the test.
5228 else
5229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5230 for as_dir in $PATH
5231 do
5232  IFS=$as_save_IFS
5233  test -z "$as_dir" && as_dir=.
5234    for ac_exec_ext in '' $ac_executable_extensions; do
5235  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5236    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5237    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5238    break 2
5239  fi
5240 done
5241  done
5242 IFS=$as_save_IFS
4399  
5244 fi
5245 fi
5246 CXX=$ac_cv_prog_CXX
5247 if test -n "$CXX"; then
5248  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5249 $as_echo "$CXX" >&6; }
5250 else
5251  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5252 $as_echo "no" >&6; }
5253 fi
4400  
4401  
4402 <    test -n "$CXX" && break
5257 <  done
5258 < fi
5259 < if test -z "$CXX"; then
5260 <  ac_ct_CXX=$CXX
5261 <  for ac_prog in $CXX icpc pathCC pgCC c++ xlc++ xlC g++ CC
4402 >        for ac_prog in openmpicc mpicc hcc mpxlc_r mpxlc mpcc cmpicc
4403   do
4404    # Extract the first word of "$ac_prog", so it can be a program name with args.
4405   set dummy $ac_prog; ac_word=$2
4406   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4407   $as_echo_n "checking for $ac_word... " >&6; }
4408 < if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4408 > if ${ac_cv_prog_MPICC+:} false; then :
4409    $as_echo_n "(cached) " >&6
4410   else
4411 <  if test -n "$ac_ct_CXX"; then
4412 <  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4411 >  if test -n "$MPICC"; then
4412 >  ac_cv_prog_MPICC="$MPICC" # Let the user override the test.
4413   else
4414   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4415   for as_dir in $PATH
# Line 5277 | Line 4418 | do
4418    test -z "$as_dir" && as_dir=.
4419      for ac_exec_ext in '' $ac_executable_extensions; do
4420    if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4421 <    ac_cv_prog_ac_ct_CXX="$ac_prog"
4421 >    ac_cv_prog_MPICC="$ac_prog"
4422      $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4423      break 2
4424    fi
# Line 5287 | Line 4428 | fi
4428  
4429   fi
4430   fi
4431 < ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4432 < if test -n "$ac_ct_CXX"; then
4433 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4434 < $as_echo "$ac_ct_CXX" >&6; }
4431 > MPICC=$ac_cv_prog_MPICC
4432 > if test -n "$MPICC"; then
4433 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPICC" >&5
4434 > $as_echo "$MPICC" >&6; }
4435   else
4436    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4437   $as_echo "no" >&6; }
4438   fi
4439  
4440  
4441 <  test -n "$ac_ct_CXX" && break
4441 >  test -n "$MPICC" && break
4442   done
4443 + test -n "$MPICC" || MPICC="$CC"
4444  
4445 <  if test "x$ac_ct_CXX" = x; then
4446 <    CXX="g++"
4447 <  else
4448 <    case $cross_compiling:$ac_tool_warned in
4449 < yes:)
4450 < { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4451 < $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4452 < ac_tool_warned=yes ;;
4453 < esac
5312 <    CXX=$ac_ct_CXX
5313 <  fi
4445 >        ax_mpi_save_CC="$CC"
4446 >        CC="$MPICC"
4447 >
4448 >
4449 >
4450 > if test x = x"$MPILIBS"; then
4451 >        ac_fn_c_check_func "$LINENO" "MPI_Init" "ac_cv_func_MPI_Init"
4452 > if test "x$ac_cv_func_MPI_Init" = xyes; then :
4453 >  MPILIBS=" "
4454   fi
4455  
5316  fi
4456   fi
5318 # Provide some information about the compiler.
5319 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5320 set X $ac_compile
5321 ac_compiler=$2
5322 for ac_option in --version -v -V -qversion; do
5323  { { ac_try="$ac_compiler $ac_option >&5"
5324 case "(($ac_try" in
5325  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5326  *) ac_try_echo=$ac_try;;
5327 esac
5328 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5329 $as_echo "$ac_try_echo"; } >&5
5330  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5331  ac_status=$?
5332  if test -s conftest.err; then
5333    sed '10a\
5334 ... rest of stderr output deleted ...
5335         10q' conftest.err >conftest.er1
5336    cat conftest.er1 >&5
5337    rm -f conftest.er1 conftest.err
5338  fi
5339  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5340  test $ac_status = 0; }
5341 done
4457  
4458 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4459 < $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4460 < if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4458 > if test x = x"$MPILIBS"; then
4459 >        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpi" >&5
4460 > $as_echo_n "checking for MPI_Init in -lmpi... " >&6; }
4461 > if ${ac_cv_lib_mpi_MPI_Init+:} false; then :
4462    $as_echo_n "(cached) " >&6
4463   else
4464 <  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4464 >  ac_check_lib_save_LIBS=$LIBS
4465 > LIBS="-lmpi  $LIBS"
4466 > cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4467   /* end confdefs.h.  */
4468  
4469 + /* Override any GCC internal prototype to avoid an error.
4470 +   Use char because int might match the return type of a GCC
4471 +   builtin and then its argument prototype would still apply.  */
4472 + #ifdef __cplusplus
4473 + extern "C"
4474 + #endif
4475 + char MPI_Init ();
4476   int
4477   main ()
4478   {
4479 < #ifndef __GNUC__
5355 <       choke me
5356 < #endif
5357 <
4479 > return MPI_Init ();
4480    ;
4481    return 0;
4482   }
4483   _ACEOF
4484 < if ac_fn_cxx_try_compile "$LINENO"; then :
4485 <  ac_compiler_gnu=yes
4484 > if ac_fn_c_try_link "$LINENO"; then :
4485 >  ac_cv_lib_mpi_MPI_Init=yes
4486   else
4487 <  ac_compiler_gnu=no
4487 >  ac_cv_lib_mpi_MPI_Init=no
4488   fi
4489 < rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4490 < ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4491 <
4489 > rm -f core conftest.err conftest.$ac_objext \
4490 >    conftest$ac_exeext conftest.$ac_ext
4491 > LIBS=$ac_check_lib_save_LIBS
4492   fi
4493 < { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4494 < $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4495 < if test $ac_compiler_gnu = yes; then
4496 <  GXX=yes
5375 < else
5376 <  GXX=
4493 > { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpi_MPI_Init" >&5
4494 > $as_echo "$ac_cv_lib_mpi_MPI_Init" >&6; }
4495 > if test "x$ac_cv_lib_mpi_MPI_Init" = xyes; then :
4496 >  MPILIBS="-lmpi"
4497   fi
4498 < ac_test_CXXFLAGS=${CXXFLAGS+set}
4499 < ac_save_CXXFLAGS=$CXXFLAGS
4500 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4501 < $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4502 < if test "${ac_cv_prog_cxx_g+set}" = set; then :
4498 >
4499 > fi
4500 > if test x = x"$MPILIBS"; then
4501 >        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpich" >&5
4502 > $as_echo_n "checking for MPI_Init in -lmpich... " >&6; }
4503 > if ${ac_cv_lib_mpich_MPI_Init+:} false; then :
4504    $as_echo_n "(cached) " >&6
4505   else
4506 <  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4507 <   ac_cxx_werror_flag=yes
4508 <   ac_cv_prog_cxx_g=no
5388 <   CXXFLAGS="-g"
5389 <   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4506 >  ac_check_lib_save_LIBS=$LIBS
4507 > LIBS="-lmpich  $LIBS"
4508 > cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4509   /* end confdefs.h.  */
4510  
4511 + /* Override any GCC internal prototype to avoid an error.
4512 +   Use char because int might match the return type of a GCC
4513 +   builtin and then its argument prototype would still apply.  */
4514 + #ifdef __cplusplus
4515 + extern "C"
4516 + #endif
4517 + char MPI_Init ();
4518   int
4519   main ()
4520   {
4521 <
4521 > return MPI_Init ();
4522    ;
4523    return 0;
4524   }
4525   _ACEOF
4526 < if ac_fn_cxx_try_compile "$LINENO"; then :
4527 <  ac_cv_prog_cxx_g=yes
4526 > if ac_fn_c_try_link "$LINENO"; then :
4527 >  ac_cv_lib_mpich_MPI_Init=yes
4528   else
4529 <  CXXFLAGS=""
4530 <      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4531 < /* end confdefs.h.  */
4529 >  ac_cv_lib_mpich_MPI_Init=no
4530 > fi
4531 > rm -f core conftest.err conftest.$ac_objext \
4532 >    conftest$ac_exeext conftest.$ac_ext
4533 > LIBS=$ac_check_lib_save_LIBS
4534 > fi
4535 > { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpich_MPI_Init" >&5
4536 > $as_echo "$ac_cv_lib_mpich_MPI_Init" >&6; }
4537 > if test "x$ac_cv_lib_mpich_MPI_Init" = xyes; then :
4538 >  MPILIBS="-lmpich"
4539 > fi
4540  
4541 < int
5408 < main ()
5409 < {
4541 > fi
4542  
4543 <  ;
4544 <  return 0;
4545 < }
4546 < _ACEOF
5415 < if ac_fn_cxx_try_compile "$LINENO"; then :
5416 <
5417 < else
5418 <  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5419 <         CXXFLAGS="-g"
5420 <         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4543 > if test x != x"$MPILIBS"; then
4544 >        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpi.h" >&5
4545 > $as_echo_n "checking for mpi.h... " >&6; }
4546 >        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4547   /* end confdefs.h.  */
4548 <
4548 > #include <mpi.h>
4549   int
4550   main ()
4551   {
# Line 5428 | Line 4554 | _ACEOF
4554    return 0;
4555   }
4556   _ACEOF
4557 < if ac_fn_cxx_try_compile "$LINENO"; then :
4558 <  ac_cv_prog_cxx_g=yes
4557 > if ac_fn_c_try_compile "$LINENO"; then :
4558 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4559 > $as_echo "yes" >&6; }
4560 > else
4561 >  MPILIBS=""
4562 >                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4563 > $as_echo "no" >&6; }
4564   fi
4565   rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4566   fi
4567 < rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4568 < fi
4569 < rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4570 <   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4571 < fi
4572 < { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4573 < $as_echo "$ac_cv_prog_cxx_g" >&6; }
4574 < if test "$ac_test_CXXFLAGS" = set; then
4575 <  CXXFLAGS=$ac_save_CXXFLAGS
4576 < elif test $ac_cv_prog_cxx_g = yes; then
4577 <  if test "$GXX" = yes; then
5447 <    CXXFLAGS="-g -O2"
5448 <  else
5449 <    CXXFLAGS="-g"
5450 <  fi
4567 >
4568 > CC="$ax_mpi_save_CC"
4569 >
4570 >
4571 >
4572 > # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
4573 > if test x = x"$MPILIBS"; then
4574 >        USE_MPI="no"
4575 >       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No suitable C MPI implementation found. openmd_MPI will not be built." >&5
4576 > $as_echo "$as_me: WARNING: No suitable C MPI implementation found. openmd_MPI will not be built." >&2;}
4577 >        :
4578   else
4579 <  if test "$GXX" = yes; then
4580 <    CXXFLAGS="-O2"
5454 <  else
5455 <    CXXFLAGS=
5456 <  fi
4579 >        USE_MPI="yes"
4580 >        :
4581   fi
4582 +
4583 +
4584 + fi
4585 +
4586 + if test $USE_MPI != no; then :
4587 +
4588   ac_ext=${ac_fc_srcext-f}
4589   ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
4590   ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
4591   ac_compiler_gnu=$ac_cv_fc_compiler_gnu
4592  
5463 ac_ext=c
5464 ac_cpp='$CPP $CPPFLAGS'
5465 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5466 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5467 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5468 if test -n "$ac_tool_prefix"; then
5469  for ac_prog in $CC icc pathcc pgcc cc xlc gcc
5470  do
5471    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5472 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5474 $as_echo_n "checking for $ac_word... " >&6; }
5475 if test "${ac_cv_prog_CC+set}" = set; then :
5476  $as_echo_n "(cached) " >&6
5477 else
5478  if test -n "$CC"; then
5479  ac_cv_prog_CC="$CC" # Let the user override the test.
5480 else
5481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5482 for as_dir in $PATH
5483 do
5484  IFS=$as_save_IFS
5485  test -z "$as_dir" && as_dir=.
5486    for ac_exec_ext in '' $ac_executable_extensions; do
5487  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5488    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5489    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5490    break 2
5491  fi
5492 done
5493  done
5494 IFS=$as_save_IFS
4593  
5496 fi
5497 fi
5498 CC=$ac_cv_prog_CC
5499 if test -n "$CC"; then
5500  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5501 $as_echo "$CC" >&6; }
5502 else
5503  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5504 $as_echo "no" >&6; }
5505 fi
4594  
4595  
4596 <    test -n "$CC" && break
4597 <  done
4598 < fi
5511 < if test -z "$CC"; then
5512 <  ac_ct_CC=$CC
5513 <  for ac_prog in $CC icc pathcc pgcc cc xlc gcc
4596 >
4597 >
4598 >        for ac_prog in openmpif90 mpif90 mpxlf95_r mpxlf90_r mpxlf95 mpxlf90 mpf90 cmpif90c
4599   do
4600    # Extract the first word of "$ac_prog", so it can be a program name with args.
4601   set dummy $ac_prog; ac_word=$2
4602   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4603   $as_echo_n "checking for $ac_word... " >&6; }
4604 < if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4604 > if ${ac_cv_prog_MPIFC+:} false; then :
4605    $as_echo_n "(cached) " >&6
4606   else
4607 <  if test -n "$ac_ct_CC"; then
4608 <  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4607 >  if test -n "$MPIFC"; then
4608 >  ac_cv_prog_MPIFC="$MPIFC" # Let the user override the test.
4609   else
4610   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4611   for as_dir in $PATH
# Line 5529 | Line 4614 | do
4614    test -z "$as_dir" && as_dir=.
4615      for ac_exec_ext in '' $ac_executable_extensions; do
4616    if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4617 <    ac_cv_prog_ac_ct_CC="$ac_prog"
4617 >    ac_cv_prog_MPIFC="$ac_prog"
4618      $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4619      break 2
4620    fi
# Line 5539 | Line 4624 | fi
4624  
4625   fi
4626   fi
4627 < ac_ct_CC=$ac_cv_prog_ac_ct_CC
4628 < if test -n "$ac_ct_CC"; then
4629 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4630 < $as_echo "$ac_ct_CC" >&6; }
4627 > MPIFC=$ac_cv_prog_MPIFC
4628 > if test -n "$MPIFC"; then
4629 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPIFC" >&5
4630 > $as_echo "$MPIFC" >&6; }
4631   else
4632    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4633   $as_echo "no" >&6; }
4634   fi
4635  
4636  
4637 <  test -n "$ac_ct_CC" && break
4637 >  test -n "$MPIFC" && break
4638   done
4639 + test -n "$MPIFC" || MPIFC="$FC"
4640  
4641 <  if test "x$ac_ct_CC" = x; then
4642 <    CC=""
5557 <  else
5558 <    case $cross_compiling:$ac_tool_warned in
5559 < yes:)
5560 < { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5561 < $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5562 < ac_tool_warned=yes ;;
5563 < esac
5564 <    CC=$ac_ct_CC
5565 <  fi
5566 < fi
5567 <
5568 <
5569 < test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5570 < $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5571 < as_fn_error "no acceptable C compiler found in \$PATH
5572 < See \`config.log' for more details." "$LINENO" 5; }
5573 <
5574 < # Provide some information about the compiler.
5575 < $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5576 < set X $ac_compile
5577 < ac_compiler=$2
5578 < for ac_option in --version -v -V -qversion; do
5579 <  { { ac_try="$ac_compiler $ac_option >&5"
5580 < case "(($ac_try" in
5581 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5582 <  *) ac_try_echo=$ac_try;;
5583 < esac
5584 < eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5585 < $as_echo "$ac_try_echo"; } >&5
5586 <  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5587 <  ac_status=$?
5588 <  if test -s conftest.err; then
5589 <    sed '10a\
5590 < ... rest of stderr output deleted ...
5591 <         10q' conftest.err >conftest.er1
5592 <    cat conftest.er1 >&5
5593 <    rm -f conftest.er1 conftest.err
5594 <  fi
5595 <  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5596 <  test $ac_status = 0; }
5597 < done
5598 <
5599 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5600 < $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5601 < if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5602 <  $as_echo_n "(cached) " >&6
5603 < else
5604 <  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5605 < /* end confdefs.h.  */
5606 <
5607 < int
5608 < main ()
5609 < {
5610 < #ifndef __GNUC__
5611 <       choke me
5612 < #endif
5613 <
5614 <  ;
5615 <  return 0;
5616 < }
5617 < _ACEOF
5618 < if ac_fn_c_try_compile "$LINENO"; then :
5619 <  ac_compiler_gnu=yes
5620 < else
5621 <  ac_compiler_gnu=no
5622 < fi
5623 < rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5624 < ac_cv_c_compiler_gnu=$ac_compiler_gnu
5625 <
5626 < fi
5627 < { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5628 < $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5629 < if test $ac_compiler_gnu = yes; then
5630 <  GCC=yes
5631 < else
5632 <  GCC=
5633 < fi
5634 < ac_test_CFLAGS=${CFLAGS+set}
5635 < ac_save_CFLAGS=$CFLAGS
5636 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5637 < $as_echo_n "checking whether $CC accepts -g... " >&6; }
5638 < if test "${ac_cv_prog_cc_g+set}" = set; then :
5639 <  $as_echo_n "(cached) " >&6
5640 < else
5641 <  ac_save_c_werror_flag=$ac_c_werror_flag
5642 <   ac_c_werror_flag=yes
5643 <   ac_cv_prog_cc_g=no
5644 <   CFLAGS="-g"
5645 <   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5646 < /* end confdefs.h.  */
5647 <
5648 < int
5649 < main ()
5650 < {
5651 <
5652 <  ;
5653 <  return 0;
5654 < }
5655 < _ACEOF
5656 < if ac_fn_c_try_compile "$LINENO"; then :
5657 <  ac_cv_prog_cc_g=yes
5658 < else
5659 <  CFLAGS=""
5660 <      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5661 < /* end confdefs.h.  */
5662 <
5663 < int
5664 < main ()
5665 < {
5666 <
5667 <  ;
5668 <  return 0;
5669 < }
5670 < _ACEOF
5671 < if ac_fn_c_try_compile "$LINENO"; then :
5672 <
5673 < else
5674 <  ac_c_werror_flag=$ac_save_c_werror_flag
5675 <         CFLAGS="-g"
5676 <         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5677 < /* end confdefs.h.  */
5678 <
5679 < int
5680 < main ()
5681 < {
5682 <
5683 <  ;
5684 <  return 0;
5685 < }
5686 < _ACEOF
5687 < if ac_fn_c_try_compile "$LINENO"; then :
5688 <  ac_cv_prog_cc_g=yes
5689 < fi
5690 < rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5691 < fi
5692 < rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5693 < fi
5694 < rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5695 <   ac_c_werror_flag=$ac_save_c_werror_flag
5696 < fi
5697 < { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5698 < $as_echo "$ac_cv_prog_cc_g" >&6; }
5699 < if test "$ac_test_CFLAGS" = set; then
5700 <  CFLAGS=$ac_save_CFLAGS
5701 < elif test $ac_cv_prog_cc_g = yes; then
5702 <  if test "$GCC" = yes; then
5703 <    CFLAGS="-g -O2"
5704 <  else
5705 <    CFLAGS="-g"
5706 <  fi
5707 < else
5708 <  if test "$GCC" = yes; then
5709 <    CFLAGS="-O2"
5710 <  else
5711 <    CFLAGS=
5712 <  fi
5713 < fi
5714 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5715 < $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5716 < if test "${ac_cv_prog_cc_c89+set}" = set; then :
5717 <  $as_echo_n "(cached) " >&6
5718 < else
5719 <  ac_cv_prog_cc_c89=no
5720 < ac_save_CC=$CC
5721 < cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5722 < /* end confdefs.h.  */
5723 < #include <stdarg.h>
5724 < #include <stdio.h>
5725 < #include <sys/types.h>
5726 < #include <sys/stat.h>
5727 < /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5728 < struct buf { int x; };
5729 < FILE * (*rcsopen) (struct buf *, struct stat *, int);
5730 < static char *e (p, i)
5731 <     char **p;
5732 <     int i;
5733 < {
5734 <  return p[i];
5735 < }
5736 < static char *f (char * (*g) (char **, int), char **p, ...)
5737 < {
5738 <  char *s;
5739 <  va_list v;
5740 <  va_start (v,p);
5741 <  s = g (p, va_arg (v,int));
5742 <  va_end (v);
5743 <  return s;
5744 < }
5745 <
5746 < /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5747 <   function prototypes and stuff, but not '\xHH' hex character constants.
5748 <   These don't provoke an error unfortunately, instead are silently treated
5749 <   as 'x'.  The following induces an error, until -std is added to get
5750 <   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5751 <   array size at least.  It's necessary to write '\x00'==0 to get something
5752 <   that's true only with -std.  */
5753 < int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5754 <
5755 < /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5756 <   inside strings and character constants.  */
5757 < #define FOO(x) 'x'
5758 < int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5759 <
5760 < int test (int i, double x);
5761 < struct s1 {int (*f) (int a);};
5762 < struct s2 {int (*f) (double a);};
5763 < int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5764 < int argc;
5765 < char **argv;
5766 < int
5767 < main ()
5768 < {
5769 < return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5770 <  ;
5771 <  return 0;
5772 < }
5773 < _ACEOF
5774 < for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5775 <        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5776 < do
5777 <  CC="$ac_save_CC $ac_arg"
5778 <  if ac_fn_c_try_compile "$LINENO"; then :
5779 <  ac_cv_prog_cc_c89=$ac_arg
5780 < fi
5781 < rm -f core conftest.err conftest.$ac_objext
5782 <  test "x$ac_cv_prog_cc_c89" != "xno" && break
5783 < done
5784 < rm -f conftest.$ac_ext
5785 < CC=$ac_save_CC
5786 <
5787 < fi
5788 < # AC_CACHE_VAL
5789 < case "x$ac_cv_prog_cc_c89" in
5790 <  x)
5791 <    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5792 < $as_echo "none needed" >&6; } ;;
5793 <  xno)
5794 <    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5795 < $as_echo "unsupported" >&6; } ;;
5796 <  *)
5797 <    CC="$CC $ac_cv_prog_cc_c89"
5798 <    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5799 < $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5800 < esac
5801 < if test "x$ac_cv_prog_cc_c89" != xno; then :
5802 <
5803 < fi
5804 <
5805 < ac_ext=${ac_fc_srcext-f}
5806 < ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
5807 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
5808 < ac_compiler_gnu=$ac_cv_fc_compiler_gnu
5809 <
5810 < ac_ext=${ac_fc_srcext-f}
5811 < ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
5812 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
5813 < ac_compiler_gnu=$ac_cv_fc_compiler_gnu
5814 < if test -n "$ac_tool_prefix"; then
5815 <  for ac_prog in $FC ifort ifc pathf95 pgf95 xlf95 lf95 epcf90 pathf90 xlf90 f95 f90 gfortran g95 fort
5816 <  do
5817 <    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5818 < set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5819 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5820 < $as_echo_n "checking for $ac_word... " >&6; }
5821 < if test "${ac_cv_prog_FC+set}" = set; then :
5822 <  $as_echo_n "(cached) " >&6
5823 < else
5824 <  if test -n "$FC"; then
5825 <  ac_cv_prog_FC="$FC" # Let the user override the test.
5826 < else
5827 < as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5828 < for as_dir in $PATH
5829 < do
5830 <  IFS=$as_save_IFS
5831 <  test -z "$as_dir" && as_dir=.
5832 <    for ac_exec_ext in '' $ac_executable_extensions; do
5833 <  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5834 <    ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
5835 <    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5836 <    break 2
5837 <  fi
5838 < done
5839 <  done
5840 < IFS=$as_save_IFS
5841 <
5842 < fi
5843 < fi
5844 < FC=$ac_cv_prog_FC
5845 < if test -n "$FC"; then
5846 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5
5847 < $as_echo "$FC" >&6; }
5848 < else
5849 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5850 < $as_echo "no" >&6; }
5851 < fi
5852 <
5853 <
5854 <    test -n "$FC" && break
5855 <  done
5856 < fi
5857 < if test -z "$FC"; then
5858 <  ac_ct_FC=$FC
5859 <  for ac_prog in $FC ifort ifc pathf95 pgf95 xlf95 lf95 epcf90 pathf90 xlf90 f95 f90 gfortran g95 fort
5860 < do
5861 <  # Extract the first word of "$ac_prog", so it can be a program name with args.
5862 < set dummy $ac_prog; ac_word=$2
5863 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5864 < $as_echo_n "checking for $ac_word... " >&6; }
5865 < if test "${ac_cv_prog_ac_ct_FC+set}" = set; then :
5866 <  $as_echo_n "(cached) " >&6
5867 < else
5868 <  if test -n "$ac_ct_FC"; then
5869 <  ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
5870 < else
5871 < as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5872 < for as_dir in $PATH
5873 < do
5874 <  IFS=$as_save_IFS
5875 <  test -z "$as_dir" && as_dir=.
5876 <    for ac_exec_ext in '' $ac_executable_extensions; do
5877 <  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5878 <    ac_cv_prog_ac_ct_FC="$ac_prog"
5879 <    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5880 <    break 2
5881 <  fi
5882 < done
5883 <  done
5884 < IFS=$as_save_IFS
4641 >        ax_mpi_save_FC="$FC"
4642 >        FC="$MPIFC"
4643  
4644 < fi
4645 < fi
4646 < ac_ct_FC=$ac_cv_prog_ac_ct_FC
4647 < if test -n "$ac_ct_FC"; then
4648 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5
4649 < $as_echo "$ac_ct_FC" >&6; }
4644 >
4645 >
4646 > if test x = x"$MPILIBS"; then
4647 >        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init" >&5
4648 > $as_echo_n "checking for MPI_Init... " >&6; }
4649 >                        cat > conftest.$ac_ext <<_ACEOF
4650 >      program main
4651 >      call MPI_Init
4652 >      end
4653 > _ACEOF
4654 > if ac_fn_fc_try_link "$LINENO"; then :
4655 >  MPILIBS=" "
4656 >                                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4657 > $as_echo "yes" >&6; }
4658   else
4659    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4660   $as_echo "no" >&6; }
4661   fi
4662 + rm -f core conftest.err conftest.$ac_objext \
4663 +    conftest$ac_exeext conftest.$ac_ext
4664 + fi
4665  
4666 +        if test x = x"$MPILIBS"; then
4667 +                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lfmpi" >&5
4668 + $as_echo_n "checking for MPI_Init in -lfmpi... " >&6; }
4669 + if ${ac_cv_lib_fmpi_MPI_Init+:} false; then :
4670 +  $as_echo_n "(cached) " >&6
4671 + else
4672 +  ac_check_lib_save_LIBS=$LIBS
4673 + LIBS="-lfmpi  $LIBS"
4674 + cat > conftest.$ac_ext <<_ACEOF
4675 +      program main
4676 +      call MPI_Init
4677 +      end
4678 + _ACEOF
4679 + if ac_fn_fc_try_link "$LINENO"; then :
4680 +  ac_cv_lib_fmpi_MPI_Init=yes
4681 + else
4682 +  ac_cv_lib_fmpi_MPI_Init=no
4683 + fi
4684 + rm -f core conftest.err conftest.$ac_objext \
4685 +    conftest$ac_exeext conftest.$ac_ext
4686 + LIBS=$ac_check_lib_save_LIBS
4687 + fi
4688 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fmpi_MPI_Init" >&5
4689 + $as_echo "$ac_cv_lib_fmpi_MPI_Init" >&6; }
4690 + if test "x$ac_cv_lib_fmpi_MPI_Init" = xyes; then :
4691 +  MPILIBS="-lfmpi"
4692 + fi
4693  
4694 <  test -n "$ac_ct_FC" && break
4695 < done
4696 <
4697 <  if test "x$ac_ct_FC" = x; then
4698 <    FC=""
4699 <  else
4700 <    case $cross_compiling:$ac_tool_warned in
4701 < yes:)
4702 < { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4703 < $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4704 < ac_tool_warned=yes ;;
4705 < esac
4706 <    FC=$ac_ct_FC
4707 <  fi
4694 >        fi
4695 >        if test x = x"$MPILIBS"; then
4696 >                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpichf90" >&5
4697 > $as_echo_n "checking for MPI_Init in -lmpichf90... " >&6; }
4698 > if ${ac_cv_lib_mpichf90_MPI_Init+:} false; then :
4699 >  $as_echo_n "(cached) " >&6
4700 > else
4701 >  ac_check_lib_save_LIBS=$LIBS
4702 > LIBS="-lmpichf90  $LIBS"
4703 > cat > conftest.$ac_ext <<_ACEOF
4704 >      program main
4705 >      call MPI_Init
4706 >      end
4707 > _ACEOF
4708 > if ac_fn_fc_try_link "$LINENO"; then :
4709 >  ac_cv_lib_mpichf90_MPI_Init=yes
4710 > else
4711 >  ac_cv_lib_mpichf90_MPI_Init=no
4712   fi
4713 + rm -f core conftest.err conftest.$ac_objext \
4714 +    conftest$ac_exeext conftest.$ac_ext
4715 + LIBS=$ac_check_lib_save_LIBS
4716 + fi
4717 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpichf90_MPI_Init" >&5
4718 + $as_echo "$ac_cv_lib_mpichf90_MPI_Init" >&6; }
4719 + if test "x$ac_cv_lib_mpichf90_MPI_Init" = xyes; then :
4720 +  MPILIBS="-lmpichf90"
4721 + fi
4722  
4723 +        fi
4724  
4725 < # Provide some information about the compiler.
4726 < $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5
4727 < set X $ac_compile
4728 < ac_compiler=$2
5919 < for ac_option in --version -v -V -qversion; do
5920 <  { { ac_try="$ac_compiler $ac_option >&5"
5921 < case "(($ac_try" in
5922 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5923 <  *) ac_try_echo=$ac_try;;
5924 < esac
5925 < eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5926 < $as_echo "$ac_try_echo"; } >&5
5927 <  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5928 <  ac_status=$?
5929 <  if test -s conftest.err; then
5930 <    sed '10a\
5931 < ... rest of stderr output deleted ...
5932 <         10q' conftest.err >conftest.er1
5933 <    cat conftest.er1 >&5
5934 <    rm -f conftest.er1 conftest.err
5935 <  fi
5936 <  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5937 <  test $ac_status = 0; }
5938 < done
5939 < rm -f a.out
5940 <
5941 < # If we don't use `.F' as extension, the preprocessor is not run on the
5942 < # input file.  (Note that this only needs to work for GNU compilers.)
5943 < ac_save_ext=$ac_ext
5944 < ac_ext=F
5945 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5
5946 < $as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; }
5947 < if test "${ac_cv_fc_compiler_gnu+set}" = set; then :
4725 > if test x = x"$MPILIBS"; then
4726 >        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpi" >&5
4727 > $as_echo_n "checking for MPI_Init in -lmpi... " >&6; }
4728 > if ${ac_cv_lib_mpi_MPI_Init+:} false; then :
4729    $as_echo_n "(cached) " >&6
4730   else
4731 <  cat > conftest.$ac_ext <<_ACEOF
4731 >  ac_check_lib_save_LIBS=$LIBS
4732 > LIBS="-lmpi  $LIBS"
4733 > cat > conftest.$ac_ext <<_ACEOF
4734        program main
4735 < #ifndef __GNUC__
5953 <       choke me
5954 < #endif
5955 <
4735 >      call MPI_Init
4736        end
4737   _ACEOF
4738 < if ac_fn_fc_try_compile "$LINENO"; then :
4739 <  ac_compiler_gnu=yes
4738 > if ac_fn_fc_try_link "$LINENO"; then :
4739 >  ac_cv_lib_mpi_MPI_Init=yes
4740   else
4741 <  ac_compiler_gnu=no
4741 >  ac_cv_lib_mpi_MPI_Init=no
4742   fi
4743 < rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4744 < ac_cv_fc_compiler_gnu=$ac_compiler_gnu
4743 > rm -f core conftest.err conftest.$ac_objext \
4744 >    conftest$ac_exeext conftest.$ac_ext
4745 > LIBS=$ac_check_lib_save_LIBS
4746 > fi
4747 > { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpi_MPI_Init" >&5
4748 > $as_echo "$ac_cv_lib_mpi_MPI_Init" >&6; }
4749 > if test "x$ac_cv_lib_mpi_MPI_Init" = xyes; then :
4750 >  MPILIBS="-lmpi"
4751 > fi
4752  
4753   fi
4754 < { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5
4755 < $as_echo "$ac_cv_fc_compiler_gnu" >&6; }
4756 < ac_ext=$ac_save_ext
4757 < ac_test_FCFLAGS=${FCFLAGS+set}
5971 < ac_save_FCFLAGS=$FCFLAGS
5972 < FCFLAGS=
5973 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5
5974 < $as_echo_n "checking whether $FC accepts -g... " >&6; }
5975 < if test "${ac_cv_prog_fc_g+set}" = set; then :
4754 > if test x = x"$MPILIBS"; then
4755 >        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpich" >&5
4756 > $as_echo_n "checking for MPI_Init in -lmpich... " >&6; }
4757 > if ${ac_cv_lib_mpich_MPI_Init+:} false; then :
4758    $as_echo_n "(cached) " >&6
4759   else
4760 <  FCFLAGS=-g
4760 >  ac_check_lib_save_LIBS=$LIBS
4761 > LIBS="-lmpich  $LIBS"
4762   cat > conftest.$ac_ext <<_ACEOF
4763        program main
4764 +      call MPI_Init
4765 +      end
4766 + _ACEOF
4767 + if ac_fn_fc_try_link "$LINENO"; then :
4768 +  ac_cv_lib_mpich_MPI_Init=yes
4769 + else
4770 +  ac_cv_lib_mpich_MPI_Init=no
4771 + fi
4772 + rm -f core conftest.err conftest.$ac_objext \
4773 +    conftest$ac_exeext conftest.$ac_ext
4774 + LIBS=$ac_check_lib_save_LIBS
4775 + fi
4776 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpich_MPI_Init" >&5
4777 + $as_echo "$ac_cv_lib_mpich_MPI_Init" >&6; }
4778 + if test "x$ac_cv_lib_mpich_MPI_Init" = xyes; then :
4779 +  MPILIBS="-lmpich"
4780 + fi
4781  
4782 + fi
4783 +
4784 + if test x != x"$MPILIBS"; then
4785 +        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpif.h" >&5
4786 + $as_echo_n "checking for mpif.h... " >&6; }
4787 +        cat > conftest.$ac_ext <<_ACEOF
4788 +      program main
4789 +      include 'mpif.h'
4790        end
4791   _ACEOF
4792   if ac_fn_fc_try_compile "$LINENO"; then :
4793 <  ac_cv_prog_fc_g=yes
4793 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4794 > $as_echo "yes" >&6; }
4795   else
4796 <  ac_cv_prog_fc_g=no
4796 >  MPILIBS=""
4797 >                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4798 > $as_echo "no" >&6; }
4799   fi
4800   rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4801 + fi
4802  
4803 + FC="$ax_mpi_save_FC"
4804 +
4805 +
4806 +
4807 + # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
4808 + if test x = x"$MPILIBS"; then
4809 +        USE_MPI="no"
4810 +       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No suitable Fortran MPI implementation found. openmd_MPI will not be built." >&5
4811 + $as_echo "$as_me: WARNING: No suitable Fortran MPI implementation found. openmd_MPI will not be built." >&2;}
4812 +        :
4813 + else
4814 +        USE_MPI="yes"
4815 +        :
4816   fi
4817 < { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5
4818 < $as_echo "$ac_cv_prog_fc_g" >&6; }
4819 < if test "$ac_test_FCFLAGS" = set; then
4820 <  FCFLAGS=$ac_save_FCFLAGS
4821 < elif test $ac_cv_prog_fc_g = yes; then
4822 <  if test "x$ac_cv_fc_compiler_gnu" = xyes; then
4823 <    FCFLAGS="-g -O2"
4824 <  else
4825 <    FCFLAGS="-g"
4826 <  fi
4817 >
4818 >
4819 > fi
4820 > if test $USE_MPI != no; then :
4821 >
4822 >        CXX=$MPICXX
4823 >        CC=$MPICC
4824 >        FC=$MPIFC
4825 >        LIBS="$MPILIBS $LIBS"
4826 >
4827   else
4828 <  if test "x$ac_cv_fc_compiler_gnu" = xyes; then
4829 <    FCFLAGS="-O2"
4830 <  else
4831 <    FCFLAGS=
4832 <  fi
4828 >
4829 >        CXX=$save_CXX
4830 >        CC=$save_CC
4831 >        FC=$save_FC
4832 >        LIBS=$save_LIBS
4833 >
4834 >
4835   fi
4836  
6010 ac_ext=${ac_fc_srcext-f}
6011 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
6012 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
6013 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
4837  
4838 + # Checks for programs.
4839   ac_ext=c
4840   ac_cpp='$CPP $CPPFLAGS'
4841   ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
# Line 6024 | Line 4848 | if test -z "$CPP"; then
4848    CPP=
4849   fi
4850   if test -z "$CPP"; then
4851 <  if test "${ac_cv_prog_CPP+set}" = set; then :
4851 >  if ${ac_cv_prog_CPP+:} false; then :
4852    $as_echo_n "(cached) " >&6
4853   else
4854        # Double quotes because CPP needs to be expanded
# Line 6054 | Line 4878 | fi
4878    # Broken: fails on valid input.
4879   continue
4880   fi
4881 < rm -f conftest.err conftest.$ac_ext
4881 > rm -f conftest.err conftest.i conftest.$ac_ext
4882  
4883    # OK, works on sane cases.  Now check whether nonexistent headers
4884    # can be detected and how.
# Line 6070 | Line 4894 | fi
4894   ac_preproc_ok=:
4895   break
4896   fi
4897 < rm -f conftest.err conftest.$ac_ext
4897 > rm -f conftest.err conftest.i conftest.$ac_ext
4898  
4899   done
4900   # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4901 < rm -f conftest.err conftest.$ac_ext
4901 > rm -f conftest.i conftest.err conftest.$ac_ext
4902   if $ac_preproc_ok; then :
4903    break
4904   fi
# Line 6113 | Line 4937 | fi
4937    # Broken: fails on valid input.
4938   continue
4939   fi
4940 < rm -f conftest.err conftest.$ac_ext
4940 > rm -f conftest.err conftest.i conftest.$ac_ext
4941  
4942    # OK, works on sane cases.  Now check whether nonexistent headers
4943    # can be detected and how.
# Line 6129 | Line 4953 | fi
4953   ac_preproc_ok=:
4954   break
4955   fi
4956 < rm -f conftest.err conftest.$ac_ext
4956 > rm -f conftest.err conftest.i conftest.$ac_ext
4957  
4958   done
4959   # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4960 < rm -f conftest.err conftest.$ac_ext
4960 > rm -f conftest.i conftest.err conftest.$ac_ext
4961   if $ac_preproc_ok; then :
4962  
4963   else
4964    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4965   $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4966 < as_fn_error "C preprocessor \"$CPP\" fails sanity check
4967 < See \`config.log' for more details." "$LINENO" 5; }
4966 > as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4967 > See \`config.log' for more details" "$LINENO" 5; }
4968   fi
4969  
4970   ac_ext=${ac_fc_srcext-f}
# Line 6150 | Line 4974 | $as_echo_n "checking for grep that handles long lines
4974  
4975   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4976   $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4977 < if test "${ac_cv_path_GREP+set}" = set; then :
4977 > if ${ac_cv_path_GREP+:} false; then :
4978    $as_echo_n "(cached) " >&6
4979   else
4980    if test -z "$GREP"; then
# Line 6199 | Line 5023 | IFS=$as_save_IFS
5023    done
5024   IFS=$as_save_IFS
5025    if test -z "$ac_cv_path_GREP"; then
5026 <    as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5026 >    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5027    fi
5028   else
5029    ac_cv_path_GREP=$GREP
# Line 6213 | Line 5037 | $as_echo_n "checking for egrep... " >&6; }
5037  
5038   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5039   $as_echo_n "checking for egrep... " >&6; }
5040 < if test "${ac_cv_path_EGREP+set}" = set; then :
5040 > if ${ac_cv_path_EGREP+:} false; then :
5041    $as_echo_n "(cached) " >&6
5042   else
5043    if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
# Line 6265 | Line 5089 | IFS=$as_save_IFS
5089    done
5090   IFS=$as_save_IFS
5091    if test -z "$ac_cv_path_EGREP"; then
5092 <    as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5092 >    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5093    fi
5094   else
5095    ac_cv_path_EGREP=$EGREP
# Line 6293 | Line 5117 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]
5117   $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5118   set x ${MAKE-make}
5119   ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5120 < if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
5120 > if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
5121    $as_echo_n "(cached) " >&6
5122   else
5123    cat >conftest.make <<\_ACEOF
# Line 6301 | Line 5125 | _ACEOF
5125   all:
5126          @echo '@@@%%%=$(MAKE)=@@@%%%'
5127   _ACEOF
5128 < # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5128 > # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5129   case `${MAKE-make} -f conftest.make 2>/dev/null` in
5130    *@@@%%%=?*=@@@%%%*)
5131      eval ac_cv_prog_make_${ac_make}_set=yes;;
# Line 6325 | Line 5149 | $as_echo_n "checking for $ac_word... " >&6; }
5149   set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5150   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5151   $as_echo_n "checking for $ac_word... " >&6; }
5152 < if test "${ac_cv_prog_RANLIB+set}" = set; then :
5152 > if ${ac_cv_prog_RANLIB+:} false; then :
5153    $as_echo_n "(cached) " >&6
5154   else
5155    if test -n "$RANLIB"; then
# Line 6365 | Line 5189 | $as_echo_n "checking for $ac_word... " >&6; }
5189   set dummy ranlib; ac_word=$2
5190   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5191   $as_echo_n "checking for $ac_word... " >&6; }
5192 < if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5192 > if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5193    $as_echo_n "(cached) " >&6
5194   else
5195    if test -n "$ac_ct_RANLIB"; then
# Line 6417 | Line 5241 | $as_echo_n "checking for $ac_word... " >&6; }
5241   set dummy perl; ac_word=$2
5242   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5243   $as_echo_n "checking for $ac_word... " >&6; }
5244 < if test "${ac_cv_path_PERLINTERP+set}" = set; then :
5244 > if ${ac_cv_path_PERLINTERP+:} false; then :
5245    $as_echo_n "(cached) " >&6
5246   else
5247    case $PERLINTERP in
# Line 6467 | Line 5291 | $as_echo_n "checking whether explicit instead of detec
5291  
5292     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether explicit instead of detected sharpbang is to be used" >&5
5293   $as_echo_n "checking whether explicit instead of detected sharpbang is to be used... " >&6; }
5294 < if test "${ax_cv_opt_perl_shebang+set}" = set; then :
5294 > if ${ax_cv_opt_perl_shebang+:} false; then :
5295    $as_echo_n "(cached) " >&6
5296   else
5297     case "$opt_perl_shebang" in
# Line 6493 | Line 5317 | $as_echo_n "checking for kernel sharpbang invocation t
5317     negclass="[^']"; # must leave this comment:  m4 will remove the outer brackets for us, heheh
5318     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kernel sharpbang invocation to start perl" >&5
5319   $as_echo_n "checking for kernel sharpbang invocation to start perl... " >&6; }
5320 < if test "${ac_cv_sys_kernshrpbang_perl+set}" = set; then :
5320 > if ${ac_cv_sys_kernshrpbang_perl+:} false; then :
5321    $as_echo_n "(cached) " >&6
5322   else
5323    _somian_kspb_perl=`echo "$_somian_shbangperl" | sed -ne"s|.*='\($negclass*\)';$|\1|p"`
# Line 6549 | Line 5373 | if test -z "$INSTALL"; then
5373   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
5374   $as_echo_n "checking for a BSD-compatible install... " >&6; }
5375   if test -z "$INSTALL"; then
5376 < if test "${ac_cv_path_install+set}" = set; then :
5376 > if ${ac_cv_path_install+:} false; then :
5377    $as_echo_n "(cached) " >&6
5378   else
5379    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
# Line 6629 | Line 5453 | esac
5453     x/*) ;;
5454     *) INSTALL=`pwd`/ac-tools/"shtool install -c" ;
5455   esac
5456 < MKINSTALLDIRS=`pwd`/ac-tools/"shtool mkdir -p -f"
5456 > MKINSTALLDIRS=`pwd`/ac-tools/"shtool mkdir -p -f -m 755"
5457   # Extract the first word of "ar", so it can be a program name with args.
5458   set dummy ar; ac_word=$2
5459   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5460   $as_echo_n "checking for $ac_word... " >&6; }
5461 < if test "${ac_cv_prog_AR+set}" = set; then :
5461 > if ${ac_cv_prog_AR+:} false; then :
5462    $as_echo_n "(cached) " >&6
5463   else
5464    if test -n "$AR"; then
# Line 6733 | Line 5557 | if diff "$cache_file" confcache >/dev/null 2>&1; then
5557       :end' >>confcache
5558   if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5559    if test -w "$cache_file"; then
5560 <    test "x$cache_file" != "x/dev/null" &&
5560 >    if test "x$cache_file" != "x/dev/null"; then
5561        { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
5562   $as_echo "$as_me: updating cache $cache_file" >&6;}
5563 <    cat confcache >$cache_file
5563 >      if test ! -f "$cache_file" || test -h "$cache_file"; then
5564 >        cat confcache >"$cache_file"
5565 >      else
5566 >        case $cache_file in #(
5567 >        */* | ?:*)
5568 >          mv -f confcache "$cache_file"$$ &&
5569 >          mv -f "$cache_file"$$ "$cache_file" ;; #(
5570 >        *)
5571 >          mv -f confcache "$cache_file" ;;
5572 >        esac
5573 >      fi
5574 >    fi
5575    else
5576      { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
5577   $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
# Line 6749 | Line 5584 | $as_echo_n "checking for $ac_word... " >&6; }
5584   set dummy ps; ac_word=$2
5585   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5586   $as_echo_n "checking for $ac_word... " >&6; }
5587 < if test "${ac_cv_path_PS+set}" = set; then :
5587 > if ${ac_cv_path_PS+:} false; then :
5588    $as_echo_n "(cached) " >&6
5589   else
5590    case $PS in
# Line 6787 | Line 5622 | $as_echo_n "checking for POSIX or BSD ps syntax... " >
5622  
5623   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for POSIX or BSD ps syntax" >&5
5624   $as_echo_n "checking for POSIX or BSD ps syntax... " >&6; }
5625 < if test "${ac_cv_prog_ps_syntax+set}" = set; then :
5625 > if ${ac_cv_prog_ps_syntax+:} false; then :
5626    $as_echo_n "(cached) " >&6
5627   else
5628  
# Line 6807 | Line 5642 | else
5642                  if test "$ac_cv_prog_ps_ef" = yes; then
5643                          ac_cv_prog_ps_syntax=POSIX
5644                  else
5645 <                        as_fn_error "Could not determine ps syntax" "$LINENO" 5
5645 >                        as_fn_error $? "Could not determine ps syntax" "$LINENO" 5
5646                  fi
5647          fi
5648  
# Line 6829 | Line 5664 | $as_echo "#define PSTYPE_IS_POSIX 1" >>confdefs.h
5664   $as_echo "#define PSTYPE_IS_POSIX 1" >>confdefs.h
5665  
5666     else
5667 <       as_fn_error "Unknown ps syntax type!" "$LINENO" 5
5667 >       as_fn_error $? "Unknown ps syntax type!" "$LINENO" 5
5668     fi
5669   fi
5670  
# Line 6844 | Line 5679 | $as_echo_n "checking for Fortran flag to compile .F90
5679   ac_compiler_gnu=$ac_cv_fc_compiler_gnu
5680   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran flag to compile .F90 files" >&5
5681   $as_echo_n "checking for Fortran flag to compile .F90 files... " >&6; }
5682 < if test "${ac_cv_fc_srcext_F90+set}" = set; then :
5682 > if ${ac_cv_fc_srcext_F90+:} false; then :
5683    $as_echo_n "(cached) " >&6
5684   else
5685    ac_ext=F90
# Line 6870 | Line 5705 | if test "x$ac_cv_fc_srcext_F90" = xunknown; then
5705   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_srcext_F90" >&5
5706   $as_echo "$ac_cv_fc_srcext_F90" >&6; }
5707   if test "x$ac_cv_fc_srcext_F90" = xunknown; then
5708 <  as_fn_error "Fortran could not compile .F90 files" "$LINENO" 5
5708 >  as_fn_error $? "Fortran could not compile .F90 files" "$LINENO" 5
5709   else
5710    ac_fc_srcext=F90
5711    if test "x$ac_cv_fc_srcext_F90" = xnone; then
# Line 6964 | Line 5799 | $as_echo "no" >&6; }
5799    else
5800      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5801   $as_echo "no" >&6; }
5802 <    as_fn_error "Can't figure out working Fortran90 preprocessor flag" "$LINENO" 5
5802 >    as_fn_error $? "Can't figure out working Fortran90 preprocessor flag" "$LINENO" 5
5803    fi
5804   fi
5805  
# Line 7047 | Line 5882 | $as_echo "no" >&6; }
5882    else
5883      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5884   $as_echo "no" >&6; }
5885 <    as_fn_error "Can't figure out working Fortran90 preprocessor define flag" "$LINENO" 5
5885 >    as_fn_error $? "Can't figure out working Fortran90 preprocessor define flag" "$LINENO" 5
5886    fi
5887   fi
5888  
# Line 7057 | Line 5892 | $as_echo_n "checking how to get verbose linking output
5892   ac_compiler_gnu=$ac_cv_fc_compiler_gnu
5893   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get verbose linking output from $FC" >&5
5894   $as_echo_n "checking how to get verbose linking output from $FC... " >&6; }
5895 < if test "${ac_cv_prog_fc_v+set}" = set; then :
5895 > if ${ac_cv_prog_fc_v+:} false; then :
5896    $as_echo_n "(cached) " >&6
5897   else
5898    cat > conftest.$ac_ext <<_ACEOF
# Line 7087 | Line 5922 | ac_fc_v_output=`eval $ac_link 5>&1 2>&1 |
5922   # gfortran 4.3 outputs lines setting COLLECT_GCC_OPTIONS, COMPILER_PATH,
5923   # LIBRARY_PATH; skip all such settings.
5924   ac_fc_v_output=`eval $ac_link 5>&1 2>&1 |
5925 <  grep -v 'Driving:' | grep -v "^[_$as_cr_Letters][_$as_cr_alnum]*="`
5925 >  sed '/^Driving:/d; /^Configured with:/d;
5926 >      '"/^[_$as_cr_Letters][_$as_cr_alnum]*=/d"`
5927   $as_echo "$ac_fc_v_output" >&5
5928   FCFLAGS=$ac_save_FCFLAGS
5929  
# Line 7152 | Line 5988 | $as_echo_n "checking for Fortran libraries of $FC... "
5988   $as_echo "$ac_cv_prog_fc_v" >&6; }
5989   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran libraries of $FC" >&5
5990   $as_echo_n "checking for Fortran libraries of $FC... " >&6; }
5991 < if test "${ac_cv_fc_libs+set}" = set; then :
5991 > if ${ac_cv_fc_libs+:} false; then :
5992    $as_echo_n "(cached) " >&6
5993   else
5994    if test "x$FCLIBS" != "x"; then
# Line 7177 | Line 6013 | ac_fc_v_output=`eval $ac_link 5>&1 2>&1 |
6013   # gfortran 4.3 outputs lines setting COLLECT_GCC_OPTIONS, COMPILER_PATH,
6014   # LIBRARY_PATH; skip all such settings.
6015   ac_fc_v_output=`eval $ac_link 5>&1 2>&1 |
6016 <  grep -v 'Driving:' | grep -v "^[_$as_cr_Letters][_$as_cr_alnum]*="`
6016 >  sed '/^Driving:/d; /^Configured with:/d;
6017 >      '"/^[_$as_cr_Letters][_$as_cr_alnum]*=/d"`
6018   $as_echo "$ac_fc_v_output" >&5
6019   FCFLAGS=$ac_save_FCFLAGS
6020  
# Line 7267 | Line 6104 | fi
6104            ;;
6105            # Ignore these flags.
6106          -lang* | -lcrt*.o | -lc | -lgcc* | -lSystem | -libmil | -little \
6107 <          |-LANG:=* | -LIST:* | -LNO:*)
6107 >          |-LANG:=* | -LIST:* | -LNO:* | -link)
6108            ;;
6109          -lkernel32)
6110            test x"$CYGWIN" != xyes && ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg"
# Line 7364 | Line 6201 | $as_echo_n "checking for dummy main to link with Fortr
6201  
6202   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dummy main to link with Fortran libraries" >&5
6203   $as_echo_n "checking for dummy main to link with Fortran libraries... " >&6; }
6204 < if test "${ac_cv_fc_dummy_main+set}" = set; then :
6204 > if ${ac_cv_fc_dummy_main+:} false; then :
6205    $as_echo_n "(cached) " >&6
6206   else
6207    ac_fc_dm_save_LIBS=$LIBS
# Line 7460 | Line 6297 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6297   else
6298    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6299   $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6300 < as_fn_error "linking to Fortran libraries from C fails
6301 < See \`config.log' for more details." "$LINENO" 5; }
6300 > as_fn_error $? "linking to Fortran libraries from C fails
6301 > See \`config.log' for more details" "$LINENO" 5; }
6302   fi
6303  
6304   ac_ext=${ac_fc_srcext-f}
# Line 7475 | Line 6312 | $as_echo_n "checking for Fortran name-mangling scheme.
6312   ac_compiler_gnu=$ac_cv_fc_compiler_gnu
6313   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran name-mangling scheme" >&5
6314   $as_echo_n "checking for Fortran name-mangling scheme... " >&6; }
6315 < if test "${ac_cv_fc_mangling+set}" = set; then :
6315 > if ${ac_cv_fc_mangling+:} false; then :
6316    $as_echo_n "(cached) " >&6
6317   else
6318    cat > conftest.$ac_ext <<_ACEOF
# Line 7621 | Line 6458 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6458   else
6459    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6460   $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6461 < as_fn_error "cannot compile a simple Fortran program
6462 < See \`config.log' for more details." "$LINENO" 5; }
6461 > as_fn_error $? "cannot compile a simple Fortran program
6462 > See \`config.log' for more details" "$LINENO" 5; }
6463   fi
6464   rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6465  
# Line 7699 | Line 6536 | $as_echo_n "checking how to get verbose linking output
6536   ac_compiler_gnu=$ac_cv_fc_compiler_gnu
6537   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get verbose linking output from $FC" >&5
6538   $as_echo_n "checking how to get verbose linking output from $FC... " >&6; }
6539 < if test "${ac_cv_prog_fc_v+set}" = set; then :
6539 > if ${ac_cv_prog_fc_v+:} false; then :
6540    $as_echo_n "(cached) " >&6
6541   else
6542    cat > conftest.$ac_ext <<_ACEOF
# Line 7729 | Line 6566 | ac_fc_v_output=`eval $ac_link 5>&1 2>&1 |
6566   # gfortran 4.3 outputs lines setting COLLECT_GCC_OPTIONS, COMPILER_PATH,
6567   # LIBRARY_PATH; skip all such settings.
6568   ac_fc_v_output=`eval $ac_link 5>&1 2>&1 |
6569 <  grep -v 'Driving:' | grep -v "^[_$as_cr_Letters][_$as_cr_alnum]*="`
6569 >  sed '/^Driving:/d; /^Configured with:/d;
6570 >      '"/^[_$as_cr_Letters][_$as_cr_alnum]*=/d"`
6571   $as_echo "$ac_fc_v_output" >&5
6572   FCFLAGS=$ac_save_FCFLAGS
6573  
# Line 7794 | Line 6632 | $as_echo_n "checking for Fortran libraries of $FC... "
6632   $as_echo "$ac_cv_prog_fc_v" >&6; }
6633   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran libraries of $FC" >&5
6634   $as_echo_n "checking for Fortran libraries of $FC... " >&6; }
6635 < if test "${ac_cv_fc_libs+set}" = set; then :
6635 > if ${ac_cv_fc_libs+:} false; then :
6636    $as_echo_n "(cached) " >&6
6637   else
6638    if test "x$FCLIBS" != "x"; then
# Line 7819 | Line 6657 | ac_fc_v_output=`eval $ac_link 5>&1 2>&1 |
6657   # gfortran 4.3 outputs lines setting COLLECT_GCC_OPTIONS, COMPILER_PATH,
6658   # LIBRARY_PATH; skip all such settings.
6659   ac_fc_v_output=`eval $ac_link 5>&1 2>&1 |
6660 <  grep -v 'Driving:' | grep -v "^[_$as_cr_Letters][_$as_cr_alnum]*="`
6660 >  sed '/^Driving:/d; /^Configured with:/d;
6661 >      '"/^[_$as_cr_Letters][_$as_cr_alnum]*=/d"`
6662   $as_echo "$ac_fc_v_output" >&5
6663   FCFLAGS=$ac_save_FCFLAGS
6664  
# Line 7909 | Line 6748 | fi
6748            ;;
6749            # Ignore these flags.
6750          -lang* | -lcrt*.o | -lc | -lgcc* | -lSystem | -libmil | -little \
6751 <          |-LANG:=* | -LIST:* | -LNO:*)
6751 >          |-LANG:=* | -LIST:* | -LNO:* | -link)
6752            ;;
6753          -lkernel32)
6754            test x"$CYGWIN" != xyes && ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg"
# Line 8132 | Line 6971 | $as_echo_n "checking for Fortran 90 module file names.
6971  
6972   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 90 module file names" >&5
6973   $as_echo_n "checking for Fortran 90 module file names... " >&6; }
6974 < if test "${ac_cv_f90_module_names+set}" = set; then :
6974 > if ${ac_cv_f90_module_names+:} false; then :
6975    $as_echo_n "(cached) " >&6
6976   else
6977    ac_ext=${ac_fc_srcext-f}
# Line 8344 | Line 7183 | $as_echo_n "checking for asin in -lm... " >&6; }
7183  
7184   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asin in -lm" >&5
7185   $as_echo_n "checking for asin in -lm... " >&6; }
7186 < if test "${ac_cv_lib_m_asin+set}" = set; then :
7186 > if ${ac_cv_lib_m_asin+:} false; then :
7187    $as_echo_n "(cached) " >&6
7188   else
7189    ac_check_lib_save_LIBS=$LIBS
# Line 8386 | Line 7225 | $as_echo "$ac_cv_lib_m_asin" >&6; }
7225   fi
7226   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_asin" >&5
7227   $as_echo "$ac_cv_lib_m_asin" >&6; }
7228 < if test "x$ac_cv_lib_m_asin" = x""yes; then :
7228 > if test "x$ac_cv_lib_m_asin" = xyes; then :
7229    cat >>confdefs.h <<_ACEOF
7230   #define HAVE_LIBM 1
7231   _ACEOF
# Line 8400 | Line 7239 | $as_echo_n "checking for ANSI C header files... " >&6;
7239  
7240   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7241   $as_echo_n "checking for ANSI C header files... " >&6; }
7242 < if test "${ac_cv_header_stdc+set}" = set; then :
7242 > if ${ac_cv_header_stdc+:} false; then :
7243    $as_echo_n "(cached) " >&6
7244   else
7245    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
# Line 8525 | Line 7364 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$
7364    as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7365   ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7366   "
7367 < eval as_val=\$$as_ac_Header
8529 <   if test "x$as_val" = x""yes; then :
7367 > if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7368    cat >>confdefs.h <<_ACEOF
7369   #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7370   _ACEOF
# Line 8581 | Line 7419 | $as_echo_n "checking for inflateEnd in -lz... " >&6; }
7419  
7420          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflateEnd in -lz" >&5
7421   $as_echo_n "checking for inflateEnd in -lz... " >&6; }
7422 < if test "${ac_cv_lib_z_inflateEnd+set}" = set; then :
7422 > if ${ac_cv_lib_z_inflateEnd+:} false; then :
7423    $as_echo_n "(cached) " >&6
7424   else
7425    ac_check_lib_save_LIBS=$LIBS
# Line 8623 | Line 7461 | $as_echo "$ac_cv_lib_z_inflateEnd" >&6; }
7461   fi
7462   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateEnd" >&5
7463   $as_echo "$ac_cv_lib_z_inflateEnd" >&6; }
7464 < if test "x$ac_cv_lib_z_inflateEnd" = x""yes; then :
7464 > if test "x$ac_cv_lib_z_inflateEnd" = xyes; then :
7465    zlib_cv_libz=yes
7466   else
7467    zlib_cv_libz=no
7468   fi
7469  
7470          ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
7471 < if test "x$ac_cv_header_zlib_h" = x""yes; then :
7471 > if test "x$ac_cv_header_zlib_h" = xyes; then :
7472    zlib_cv_zlib_h=yes
7473   else
7474    zlib_cv_zlib_h=no
# Line 8667 | Line 7505 | $as_echo "failed" >&6; }
7505                  echo ""
7506                  echo "*********************************************************"
7507                  echo "* WARNING: Could not find a working zlib installation   *"
7508 <                echo "* If you need OOPSE to be able to deal with compressed  *"
7508 >                echo "* If you need OpenMD to be able to deal with compressed *"
7509                  echo "* trajectory dump files be sure to specify a valid zlib *"
7510                  echo "* installation with --with-zlib=DIR                     *"
7511                  echo "*                                                       *"
7512 <                echo "* OOPSE will still work without zlib installed.         *"
7512 >                echo "* OpenMD will still work without zlib installed.        *"
7513                  echo "*********************************************************"
7514                  echo ""
7515          fi
# Line 8721 | Line 7559 | $as_echo_n "checking for fftw_execute in -lfftw3... "
7559  
7560        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_execute in -lfftw3" >&5
7561   $as_echo_n "checking for fftw_execute in -lfftw3... " >&6; }
7562 < if test "${ac_cv_lib_fftw3_fftw_execute+set}" = set; then :
7562 > if ${ac_cv_lib_fftw3_fftw_execute+:} false; then :
7563    $as_echo_n "(cached) " >&6
7564   else
7565    ac_check_lib_save_LIBS=$LIBS
# Line 8763 | Line 7601 | $as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; }
7601   fi
7602   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_execute" >&5
7603   $as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; }
7604 < if test "x$ac_cv_lib_fftw3_fftw_execute" = x""yes; then :
7604 > if test "x$ac_cv_lib_fftw3_fftw_execute" = xyes; then :
7605    fftw_cv_libfftw3=yes
7606   else
7607    fftw_cv_libfftw3=no
7608   fi
7609  
7610        ac_fn_c_check_header_mongrel "$LINENO" "fftw3.h" "ac_cv_header_fftw3_h" "$ac_includes_default"
7611 < if test "x$ac_cv_header_fftw3_h" = x""yes; then :
7611 > if test "x$ac_cv_header_fftw3_h" = xyes; then :
7612    fftw_cv_fftw3_h=yes
7613   else
7614    fftw_cv_fftw3_h=no
# Line 8780 | Line 7618 | $as_echo_n "checking for fftwnd_one in -lfftw... " >&6
7618        if test "$fftw_cv_libfftw3" = "no" -o "$fftw_cv_fftw3_h" = "no"; then
7619          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftwnd_one in -lfftw" >&5
7620   $as_echo_n "checking for fftwnd_one in -lfftw... " >&6; }
7621 < if test "${ac_cv_lib_fftw_fftwnd_one+set}" = set; then :
7621 > if ${ac_cv_lib_fftw_fftwnd_one+:} false; then :
7622    $as_echo_n "(cached) " >&6
7623   else
7624    ac_check_lib_save_LIBS=$LIBS
# Line 8822 | Line 7660 | $as_echo "$ac_cv_lib_fftw_fftwnd_one" >&6; }
7660   fi
7661   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw_fftwnd_one" >&5
7662   $as_echo "$ac_cv_lib_fftw_fftwnd_one" >&6; }
7663 < if test "x$ac_cv_lib_fftw_fftwnd_one" = x""yes; then :
7663 > if test "x$ac_cv_lib_fftw_fftwnd_one" = xyes; then :
7664    fftw_cv_libfftw=yes
7665   else
7666    fftw_cv_libfftw=no
7667   fi
7668  
7669          ac_fn_c_check_header_mongrel "$LINENO" "fftw.h" "ac_cv_header_fftw_h" "$ac_includes_default"
7670 < if test "x$ac_cv_header_fftw_h" = x""yes; then :
7670 > if test "x$ac_cv_header_fftw_h" = xyes; then :
7671    fftw_cv_fftw_h=yes
7672   else
7673    fftw_cv_fftw_h=no
# Line 8839 | Line 7677 | $as_echo_n "checking for fftwnd_one in -ldfftw... " >&
7677          if test "$fftw_cv_libfftw" = "no" -o "$fftw_cv_fftw_h" = "no"; then
7678            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftwnd_one in -ldfftw" >&5
7679   $as_echo_n "checking for fftwnd_one in -ldfftw... " >&6; }
7680 < if test "${ac_cv_lib_dfftw_fftwnd_one+set}" = set; then :
7680 > if ${ac_cv_lib_dfftw_fftwnd_one+:} false; then :
7681    $as_echo_n "(cached) " >&6
7682   else
7683    ac_check_lib_save_LIBS=$LIBS
# Line 8881 | Line 7719 | $as_echo "$ac_cv_lib_dfftw_fftwnd_one" >&6; }
7719   fi
7720   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dfftw_fftwnd_one" >&5
7721   $as_echo "$ac_cv_lib_dfftw_fftwnd_one" >&6; }
7722 < if test "x$ac_cv_lib_dfftw_fftwnd_one" = x""yes; then :
7722 > if test "x$ac_cv_lib_dfftw_fftwnd_one" = xyes; then :
7723    fftw_cv_libdfftw=yes
7724   else
7725    fftw_cv_libdfftw=no
7726   fi
7727  
7728            ac_fn_c_check_header_mongrel "$LINENO" "dfftw.h" "ac_cv_header_dfftw_h" "$ac_includes_default"
7729 < if test "x$ac_cv_header_dfftw_h" = x""yes; then :
7729 > if test "x$ac_cv_header_dfftw_h" = xyes; then :
7730    fftw_cv_dfftw_h=yes
7731   else
7732    fftw_cv_dfftw_h=no
# Line 8943 | Line 7781 | $as_echo "failed" >&6; }
7781              echo "* compute undulation spectra, be sure to specify a      *"
7782              echo "* valid fftw installation with --with-fftw=DIR          *"
7783              echo "*                                                       *"
7784 <            echo "* OOPSE will still work without fftw installed.         *"
7784 >            echo "* OpenMD will still work without fftw installed.        *"
7785              echo "*********************************************************"
7786              echo ""
7787            fi
# Line 8954 | Line 7792 | $as_echo "failed" >&6; }
7792  
7793      fi
7794    fi
7795 + fi
7796 +
7797 + ac_ext=cpp
7798 + ac_cpp='$CXXCPP $CPPFLAGS'
7799 + ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7800 + ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7801 + ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7802 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
7803 + $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
7804 + if test -z "$CXXCPP"; then
7805 +  if ${ac_cv_prog_CXXCPP+:} false; then :
7806 +  $as_echo_n "(cached) " >&6
7807 + else
7808 +      # Double quotes because CXXCPP needs to be expanded
7809 +    for CXXCPP in "$CXX -E" "/lib/cpp"
7810 +    do
7811 +      ac_preproc_ok=false
7812 + for ac_cxx_preproc_warn_flag in '' yes
7813 + do
7814 +  # Use a header file that comes with gcc, so configuring glibc
7815 +  # with a fresh cross-compiler works.
7816 +  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7817 +  # <limits.h> exists even on freestanding compilers.
7818 +  # On the NeXT, cc -E runs the code through the compiler's parser,
7819 +  # not just through cpp. "Syntax error" is here to catch this case.
7820 +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7821 + /* end confdefs.h.  */
7822 + #ifdef __STDC__
7823 + # include <limits.h>
7824 + #else
7825 + # include <assert.h>
7826 + #endif
7827 +                     Syntax error
7828 + _ACEOF
7829 + if ac_fn_cxx_try_cpp "$LINENO"; then :
7830 +
7831 + else
7832 +  # Broken: fails on valid input.
7833 + continue
7834   fi
7835 + rm -f conftest.err conftest.i conftest.$ac_ext
7836  
7837 +  # OK, works on sane cases.  Now check whether nonexistent headers
7838 +  # can be detected and how.
7839 +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7840 + /* end confdefs.h.  */
7841 + #include <ac_nonexistent.h>
7842 + _ACEOF
7843 + if ac_fn_cxx_try_cpp "$LINENO"; then :
7844 +  # Broken: success on invalid input.
7845 + continue
7846 + else
7847 +  # Passes both tests.
7848 + ac_preproc_ok=:
7849 + break
7850 + fi
7851 + rm -f conftest.err conftest.i conftest.$ac_ext
7852 +
7853 + done
7854 + # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7855 + rm -f conftest.i conftest.err conftest.$ac_ext
7856 + if $ac_preproc_ok; then :
7857 +  break
7858 + fi
7859 +
7860 +    done
7861 +    ac_cv_prog_CXXCPP=$CXXCPP
7862 +
7863 + fi
7864 +  CXXCPP=$ac_cv_prog_CXXCPP
7865 + else
7866 +  ac_cv_prog_CXXCPP=$CXXCPP
7867 + fi
7868 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
7869 + $as_echo "$CXXCPP" >&6; }
7870 + ac_preproc_ok=false
7871 + for ac_cxx_preproc_warn_flag in '' yes
7872 + do
7873 +  # Use a header file that comes with gcc, so configuring glibc
7874 +  # with a fresh cross-compiler works.
7875 +  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7876 +  # <limits.h> exists even on freestanding compilers.
7877 +  # On the NeXT, cc -E runs the code through the compiler's parser,
7878 +  # not just through cpp. "Syntax error" is here to catch this case.
7879 +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7880 + /* end confdefs.h.  */
7881 + #ifdef __STDC__
7882 + # include <limits.h>
7883 + #else
7884 + # include <assert.h>
7885 + #endif
7886 +                     Syntax error
7887 + _ACEOF
7888 + if ac_fn_cxx_try_cpp "$LINENO"; then :
7889 +
7890 + else
7891 +  # Broken: fails on valid input.
7892 + continue
7893 + fi
7894 + rm -f conftest.err conftest.i conftest.$ac_ext
7895 +
7896 +  # OK, works on sane cases.  Now check whether nonexistent headers
7897 +  # can be detected and how.
7898 +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7899 + /* end confdefs.h.  */
7900 + #include <ac_nonexistent.h>
7901 + _ACEOF
7902 + if ac_fn_cxx_try_cpp "$LINENO"; then :
7903 +  # Broken: success on invalid input.
7904 + continue
7905 + else
7906 +  # Passes both tests.
7907 + ac_preproc_ok=:
7908 + break
7909 + fi
7910 + rm -f conftest.err conftest.i conftest.$ac_ext
7911 +
7912 + done
7913 + # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7914 + rm -f conftest.i conftest.err conftest.$ac_ext
7915 + if $ac_preproc_ok; then :
7916 +
7917 + else
7918 +  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7919 + $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7920 + as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
7921 + See \`config.log' for more details" "$LINENO" 5; }
7922 + fi
7923 +
7924 + ac_ext=cpp
7925 + ac_cpp='$CXXCPP $CPPFLAGS'
7926 + ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7927 + ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7928 + ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7929 +
7930 +
7931   #
7932   # Handle user hints
7933   #
# Line 8992 | Line 7964 | $as_echo "$as_me: Checking for qhull in ${QHULL_HOME}"
7964          { $as_echo "$as_me:${as_lineno-$LINENO}: Checking for qhull in ${QHULL_HOME}" >&5
7965   $as_echo "$as_me: Checking for qhull in ${QHULL_HOME}" >&6;}
7966  
7967 <        ac_ext=c
7968 < ac_cpp='$CPP $CPPFLAGS'
7969 < ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7970 < ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7971 < ac_compiler_gnu=$ac_cv_c_compiler_gnu
7967 >        ac_ext=cpp
7968 > ac_cpp='$CXXCPP $CPPFLAGS'
7969 > ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7970 > ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7971 > ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7972  
7973          QHULL_OLD_LDFLAGS=$LDFLAGS
7974 <        QHULL_OLD_CFLAGS=$CFLAGS
7974 >        QHULL_OLD_CXXFLAGS=$CXXFLAGS
7975          QHULL_OLD_CPPFLAGS=$CPPFLAGS
7976          LDFLAGS="$LDFLAGS -L${QHULL_HOME}/lib"
7977 <        CFLAGS="$CFLAGS -I${QHULL_HOME}/include"
7977 >        CXXFLAGS="$CXXFLAGS -I${QHULL_HOME}/include"
7978          CPPFLAGS="$CPPFLAGS -I${QHULL_HOME}/include"
7979 <        ac_fn_c_check_header_mongrel "$LINENO" "qhull/qhull.h" "ac_cv_header_qhull_qhull_h" "$ac_includes_default"
7980 < if test "x$ac_cv_header_qhull_qhull_h" = x""yes; then :
7979 >        ac_fn_cxx_check_header_mongrel "$LINENO" "qhull/qhull.h" "ac_cv_header_qhull_qhull_h" "$ac_includes_default"
7980 > if test "x$ac_cv_header_qhull_qhull_h" = xyes; then :
7981    qhull_cv_qhull_h=yes
7982   else
7983    qhull_cv_qhull_h=no
# Line 9014 | Line 7986 | $as_echo_n "checking for qh_qhull in -lqhull... " >&6;
7986  
7987          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qh_qhull in -lqhull" >&5
7988   $as_echo_n "checking for qh_qhull in -lqhull... " >&6; }
7989 < if test "${ac_cv_lib_qhull_qh_qhull+set}" = set; then :
7989 > if ${ac_cv_lib_qhull_qh_qhull+:} false; then :
7990    $as_echo_n "(cached) " >&6
7991   else
7992    ac_check_lib_save_LIBS=$LIBS
# Line 9045 | Line 8017 | _ACEOF
8017    return 0;
8018   }
8019   _ACEOF
8020 < if ac_fn_c_try_link "$LINENO"; then :
8020 > if ac_fn_cxx_try_link "$LINENO"; then :
8021    ac_cv_lib_qhull_qh_qhull=yes
8022   else
8023    ac_cv_lib_qhull_qh_qhull=no
# Line 9056 | Line 8028 | $as_echo "$ac_cv_lib_qhull_qh_qhull" >&6; }
8028   fi
8029   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_qhull_qh_qhull" >&5
8030   $as_echo "$ac_cv_lib_qhull_qh_qhull" >&6; }
8031 < if test "x$ac_cv_lib_qhull_qh_qhull" = x""yes; then :
8031 > if test "x$ac_cv_lib_qhull_qh_qhull" = xyes; then :
8032    qhull_cv_libqhull=yes
8033   else
8034    qhull_cv_libqhull=no
8035   fi
8036  
8037          LDFLAGS="$QHULL_OLD_LDFLAGS"
8038 <        CFLAGS="$QHULL_OLD_CFLAGS"
8038 >        CXXFLAGS="$QHULL_OLD_CXXFLAGS"
8039          CPPFLAGS="$QHULL_OLD_CPPFLAGS"
8040          ac_ext=c
8041   ac_cpp='$CPP $CPPFLAGS'
# Line 9090 | Line 8062 | $as_echo "$as_me: WARNING: Could not find a working qh
8062   $as_echo "$as_me: WARNING: " >&2;}
8063             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find a working qhull installation" >&5
8064   $as_echo "$as_me: WARNING: Could not find a working qhull installation" >&2;}
8065 <           { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: If you need OOPSE to be able to deal with convex    " >&5
8066 < $as_echo "$as_me: WARNING: If you need OOPSE to be able to deal with convex    " >&2;}
8065 >           { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: If you need OpenMD to be able to deal with convex    " >&5
8066 > $as_echo "$as_me: WARNING: If you need OpenMD to be able to deal with convex    " >&2;}
8067             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: hulls be sure to specify a valid qhull installation " >&5
8068   $as_echo "$as_me: WARNING: hulls be sure to specify a valid qhull installation " >&2;}
8069             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: with --with-qhull=DIR                               " >&5
8070   $as_echo "$as_me: WARNING: with --with-qhull=DIR                               " >&2;}
8071             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: " >&5
8072   $as_echo "$as_me: WARNING: " >&2;}
8073 <           { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OOPSE will still work without qhull installed.      " >&5
8074 < $as_echo "$as_me: WARNING: OOPSE will still work without qhull installed.      " >&2;}
8073 >           { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OpenMD will still work without qhull installed.      " >&5
8074 > $as_echo "$as_me: WARNING: OpenMD will still work without qhull installed.      " >&2;}
8075             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: " >&5
8076   $as_echo "$as_me: WARNING: " >&2;}
8077          fi
# Line 9110 | Line 8082 | fi
8082  
8083  
8084  
9113 ac_ext=cpp
9114 ac_cpp='$CXXCPP $CPPFLAGS'
9115 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9116 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9117 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
9119 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
9120 if test -z "$CXXCPP"; then
9121  if test "${ac_cv_prog_CXXCPP+set}" = set; then :
9122  $as_echo_n "(cached) " >&6
9123 else
9124      # Double quotes because CXXCPP needs to be expanded
9125    for CXXCPP in "$CXX -E" "/lib/cpp"
9126    do
9127      ac_preproc_ok=false
9128 for ac_cxx_preproc_warn_flag in '' yes
9129 do
9130  # Use a header file that comes with gcc, so configuring glibc
9131  # with a fresh cross-compiler works.
9132  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9133  # <limits.h> exists even on freestanding compilers.
9134  # On the NeXT, cc -E runs the code through the compiler's parser,
9135  # not just through cpp. "Syntax error" is here to catch this case.
9136  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9137 /* end confdefs.h.  */
9138 #ifdef __STDC__
9139 # include <limits.h>
9140 #else
9141 # include <assert.h>
9142 #endif
9143                     Syntax error
9144 _ACEOF
9145 if ac_fn_cxx_try_cpp "$LINENO"; then :
9146
9147 else
9148  # Broken: fails on valid input.
9149 continue
9150 fi
9151 rm -f conftest.err conftest.$ac_ext
9152
9153  # OK, works on sane cases.  Now check whether nonexistent headers
9154  # can be detected and how.
9155  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9156 /* end confdefs.h.  */
9157 #include <ac_nonexistent.h>
9158 _ACEOF
9159 if ac_fn_cxx_try_cpp "$LINENO"; then :
9160  # Broken: success on invalid input.
9161 continue
9162 else
9163  # Passes both tests.
9164 ac_preproc_ok=:
9165 break
9166 fi
9167 rm -f conftest.err conftest.$ac_ext
9168
9169 done
9170 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9171 rm -f conftest.err conftest.$ac_ext
9172 if $ac_preproc_ok; then :
9173  break
9174 fi
9175
9176    done
9177    ac_cv_prog_CXXCPP=$CXXCPP
9178
9179 fi
9180  CXXCPP=$ac_cv_prog_CXXCPP
9181 else
9182  ac_cv_prog_CXXCPP=$CXXCPP
9183 fi
9184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
9185 $as_echo "$CXXCPP" >&6; }
9186 ac_preproc_ok=false
9187 for ac_cxx_preproc_warn_flag in '' yes
9188 do
9189  # Use a header file that comes with gcc, so configuring glibc
9190  # with a fresh cross-compiler works.
9191  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9192  # <limits.h> exists even on freestanding compilers.
9193  # On the NeXT, cc -E runs the code through the compiler's parser,
9194  # not just through cpp. "Syntax error" is here to catch this case.
9195  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9196 /* end confdefs.h.  */
9197 #ifdef __STDC__
9198 # include <limits.h>
9199 #else
9200 # include <assert.h>
9201 #endif
9202                     Syntax error
9203 _ACEOF
9204 if ac_fn_cxx_try_cpp "$LINENO"; then :
9205
9206 else
9207  # Broken: fails on valid input.
9208 continue
9209 fi
9210 rm -f conftest.err conftest.$ac_ext
9211
9212  # OK, works on sane cases.  Now check whether nonexistent headers
9213  # can be detected and how.
9214  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9215 /* end confdefs.h.  */
9216 #include <ac_nonexistent.h>
9217 _ACEOF
9218 if ac_fn_cxx_try_cpp "$LINENO"; then :
9219  # Broken: success on invalid input.
9220 continue
9221 else
9222  # Passes both tests.
9223 ac_preproc_ok=:
9224 break
9225 fi
9226 rm -f conftest.err conftest.$ac_ext
9227
9228 done
9229 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9230 rm -f conftest.err conftest.$ac_ext
9231 if $ac_preproc_ok; then :
9232
9233 else
9234  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9235 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9236 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
9237 See \`config.log' for more details." "$LINENO" 5; }
9238 fi
9239
9240 ac_ext=cpp
9241 ac_cpp='$CXXCPP $CPPFLAGS'
9242 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9243 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9244 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9245
9246
8085   #
8086   # Handle user hints
8087   #
# Line 9288 | Line 8126 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8126          LDFLAGS="$LDFLAGS -L${OPENBABEL_HOME}/lib -lopenbabel"
8127          CPPFLAGS="$CPPFLAGS -I${OPENBABEL_HOME}/include/openbabel-2.0"
8128          ac_fn_cxx_check_header_mongrel "$LINENO" "openbabel/babelconfig.h" "ac_cv_header_openbabel_babelconfig_h" "$ac_includes_default"
8129 < if test "x$ac_cv_header_openbabel_babelconfig_h" = x""yes; then :
8129 > if test "x$ac_cv_header_openbabel_babelconfig_h" = xyes; then :
8130    openbabel_cv_openbabel_h=yes
8131   else
8132    openbabel_cv_openbabel_h=no
# Line 9296 | Line 8134 | fi
8134  
8135  
8136          ac_fn_cxx_check_header_mongrel "$LINENO" "openbabel/obconversion.h" "ac_cv_header_openbabel_obconversion_h" "$ac_includes_default"
8137 < if test "x$ac_cv_header_openbabel_obconversion_h" = x""yes; then :
8137 > if test "x$ac_cv_header_openbabel_obconversion_h" = xyes; then :
8138    openbabel_cv_obconversion_h=yes
8139   else
8140    openbabel_cv_obconversion_h=no
# Line 9373 | Line 8211 | $as_echo "failed" >&6; }
8211                  echo ""
8212                  echo "*********************************************************"
8213                  echo "* WARNING: Could not find a working openbabel-2.x       *"
8214 <                echo "* installation If you need OOPSE to be able to convert  *"
8214 >                echo "* installation If you need OpenMD to be able to convert *"
8215                  echo "* xyz or pdb files you need to specify a valid          *"
8216                  echo "* openbabel-2.x installation with --with-openbabel=DIR  *"
8217                  echo "*                                                       *"
8218 <                echo "* OOPSE will still work without openbabel installed.    *"
8218 >                echo "* OpenMD will still work without openbabel installed.   *"
8219                  echo "*********************************************************"
8220                  echo ""
8221          fi
# Line 9392 | Line 8230 | $as_echo_n "checking for ANSI C header files... " >&6;
8230   # Checks for header files.
8231   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8232   $as_echo_n "checking for ANSI C header files... " >&6; }
8233 < if test "${ac_cv_header_stdc+set}" = set; then :
8233 > if ${ac_cv_header_stdc+:} false; then :
8234    $as_echo_n "(cached) " >&6
8235   else
8236    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
# Line 9514 | Line 8352 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$
8352   do :
8353    as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8354   ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8355 < eval as_val=\$$as_ac_Header
9518 <   if test "x$as_val" = x""yes; then :
8355 > if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8356    cat >>confdefs.h <<_ACEOF
8357   #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8358   _ACEOF
# Line 9528 | Line 8365 | $as_echo_n "checking for stdbool.h that conforms to C9
8365   # Checks for typedefs, structures, and compiler characteristics.
8366   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
8367   $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
8368 < if test "${ac_cv_header_stdbool_h+set}" = set; then :
8368 > if ${ac_cv_header_stdbool_h+:} false; then :
8369    $as_echo_n "(cached) " >&6
8370   else
8371    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
# Line 9560 | Line 8397 | else
8397          char b[false == 0 ? 1 : -1];
8398          char c[__bool_true_false_are_defined == 1 ? 1 : -1];
8399          char d[(bool) 0.5 == true ? 1 : -1];
8400 <        bool e = &s;
8400 >        /* See body of main program for 'e'.  */
8401          char f[(_Bool) 0.0 == false ? 1 : -1];
8402          char g[true];
8403          char h[sizeof (_Bool)];
# Line 9571 | Line 8408 | else
8408          _Bool n[m];
8409          char o[sizeof n == m * sizeof n[0] ? 1 : -1];
8410          char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
9574 #       if defined __xlc__ || defined __GNUC__
9575         /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
9576            reported by James Lemley on 2005-10-05; see
9577            http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
9578            This test is not quite right, since xlc is allowed to
9579            reject this program, as the initializer for xlcbug is
9580            not one of the forms that C requires support for.
9581            However, doing the test right would require a runtime
9582            test, and that would make cross-compilation harder.
9583            Let us hope that IBM fixes the xlc bug, and also adds
9584            support for this kind of constant expression.  In the
9585            meantime, this test will reject xlc, which is OK, since
9586            our stdbool.h substitute should suffice.  We also test
9587            this with GCC, where it should work, to detect more
9588            quickly whether someone messes up the test in the
9589            future.  */
9590         char digs[] = "0123456789";
9591         int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
9592 #       endif
8411          /* Catch a bug in an HP-UX C compiler.  See
8412             http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
8413             http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
# Line 9609 | Line 8427 | main ()
8427   main ()
8428   {
8429  
8430 +        bool e = &s;
8431          *pq |= q;
8432          *pq |= ! q;
8433          /* Refer to every declared value, to avoid compiler optimizations.  */
# Line 9629 | Line 8448 | ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool
8448   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
8449   $as_echo "$ac_cv_header_stdbool_h" >&6; }
8450   ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
8451 < if test "x$ac_cv_type__Bool" = x""yes; then :
8451 > if test "x$ac_cv_type__Bool" = xyes; then :
8452  
8453   cat >>confdefs.h <<_ACEOF
8454   #define HAVE__BOOL 1
# Line 9646 | Line 8465 | $as_echo_n "checking for an ANSI C-conforming const...
8465  
8466   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
8467   $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
8468 < if test "${ac_cv_c_const+set}" = set; then :
8468 > if ${ac_cv_c_const+:} false; then :
8469    $as_echo_n "(cached) " >&6
8470   else
8471    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
# Line 9734 | Line 8553 | $as_echo_n "checking for inline... " >&6; }
8553  
8554   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
8555   $as_echo_n "checking for inline... " >&6; }
8556 < if test "${ac_cv_c_inline+set}" = set; then :
8556 > if ${ac_cv_c_inline+:} false; then :
8557    $as_echo_n "(cached) " >&6
8558   else
8559    ac_cv_c_inline=no
# Line 9775 | Line 8594 | ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size
8594   esac
8595  
8596   ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
8597 < if test "x$ac_cv_type_size_t" = x""yes; then :
8597 > if test "x$ac_cv_type_size_t" = xyes; then :
8598  
8599   else
8600  
# Line 9787 | Line 8606 | $as_echo_n "checking whether time.h and sys/time.h may
8606  
8607   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8608   $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8609 < if test "${ac_cv_header_time+set}" = set; then :
8609 > if ${ac_cv_header_time+:} false; then :
8610    $as_echo_n "(cached) " >&6
8611   else
8612    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
# Line 9833 | Line 8652 | do :
8652   for ac_header in stdlib.h
8653   do :
8654    ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
8655 < if test "x$ac_cv_header_stdlib_h" = x""yes; then :
8655 > if test "x$ac_cv_header_stdlib_h" = xyes; then :
8656    cat >>confdefs.h <<_ACEOF
8657   #define HAVE_STDLIB_H 1
8658   _ACEOF
# Line 9844 | Line 8663 | $as_echo_n "checking for GNU libc compatible malloc...
8663  
8664   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
8665   $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
8666 < if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then :
8666 > if ${ac_cv_func_malloc_0_nonnull+:} false; then :
8667    $as_echo_n "(cached) " >&6
8668   else
8669    if test "$cross_compiling" = yes; then :
# Line 9908 | Line 8727 | do :
8727   for ac_header in stdlib.h
8728   do :
8729    ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
8730 < if test "x$ac_cv_header_stdlib_h" = x""yes; then :
8730 > if test "x$ac_cv_header_stdlib_h" = xyes; then :
8731    cat >>confdefs.h <<_ACEOF
8732   #define HAVE_STDLIB_H 1
8733   _ACEOF
# Line 9919 | Line 8738 | $as_echo_n "checking for GNU libc compatible realloc..
8738  
8739   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
8740   $as_echo_n "checking for GNU libc compatible realloc... " >&6; }
8741 < if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then :
8741 > if ${ac_cv_func_realloc_0_nonnull+:} false; then :
8742    $as_echo_n "(cached) " >&6
8743   else
8744    if test "$cross_compiling" = yes; then :
# Line 9984 | Line 8803 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$
8803   do :
8804    as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8805   ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8806 < eval as_val=\$$as_ac_Header
9988 <   if test "x$as_val" = x""yes; then :
8806 > if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8807    cat >>confdefs.h <<_ACEOF
8808   #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8809   _ACEOF
# Line 9996 | Line 8814 | $as_echo_n "checking types of arguments for select...
8814  
8815   { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
8816   $as_echo_n "checking types of arguments for select... " >&6; }
8817 < if test "${ac_cv_func_select_args+set}" = set; then :
8817 > if ${ac_cv_func_select_args+:} false; then :
8818    $as_echo_n "(cached) " >&6
8819   else
8820    for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
# Line 10038 | Line 8856 | done
8856   done
8857   done
8858   # Provide a safe default value.
8859 < : ${ac_cv_func_select_args='int,int *,struct timeval *'}
8859 > : "${ac_cv_func_select_args=int,int *,struct timeval *}"
8860  
8861   fi
8862   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
# Line 10066 | Line 8884 | $as_echo_n "checking for working strtod... " >&6; }
8884  
8885   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
8886   $as_echo_n "checking for working strtod... " >&6; }
8887 < if test "${ac_cv_func_strtod+set}" = set; then :
8887 > if ${ac_cv_func_strtod+:} false; then :
8888    $as_echo_n "(cached) " >&6
8889   else
8890    if test "$cross_compiling" = yes; then :
# Line 10125 | Line 8943 | ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
8943   esac
8944  
8945   ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
8946 < if test "x$ac_cv_func_pow" = x""yes; then :
8946 > if test "x$ac_cv_func_pow" = xyes; then :
8947  
8948   fi
8949  
8950   if test $ac_cv_func_pow = no; then
8951    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
8952   $as_echo_n "checking for pow in -lm... " >&6; }
8953 < if test "${ac_cv_lib_m_pow+set}" = set; then :
8953 > if ${ac_cv_lib_m_pow+:} false; then :
8954    $as_echo_n "(cached) " >&6
8955   else
8956    ac_check_lib_save_LIBS=$LIBS
# Line 10174 | Line 8992 | $as_echo "$ac_cv_lib_m_pow" >&6; }
8992   fi
8993   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
8994   $as_echo "$ac_cv_lib_m_pow" >&6; }
8995 < if test "x$ac_cv_lib_m_pow" = x""yes; then :
8995 > if test "x$ac_cv_lib_m_pow" = xyes; then :
8996    POW_LIB=-lm
8997   else
8998    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
# Line 10189 | Line 9007 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9007   do :
9008    as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9009   ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9010 < eval as_val=\$$as_ac_var
10193 <   if test "x$as_val" = x""yes; then :
9010 > if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9011    cat >>confdefs.h <<_ACEOF
9012   #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9013   _ACEOF
# Line 10247 | Line 9064 | case $debug in
9064   # Try to determine "good" native compiler flags if none specified on command
9065   # line
9066  
9067 < if test "$ac_test_FFLAGS" != "set"; then
9067 > if test "$ac_test_FCFLAGS" != "set"; then
9068    FCFLAGS=""
9069    case "${host_cpu}-${host_os}" in
9070  
# Line 10296 | Line 9113 | $as_echo_n "checking whether ${FC} accepts ${FCFLAGS}.
9113  
9114   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${FC} accepts ${FCFLAGS}" >&5
9115   $as_echo_n "checking whether ${FC} accepts ${FCFLAGS}... " >&6; }
9116 < if test "${ac_cv_ac_cv_guessed_f90flags+set}" = set; then :
9116 > if ${ac_cv_ac_cv_guessed_f90flags+:} false; then :
9117    $as_echo_n "(cached) " >&6
9118   else
9119  
# Line 10357 | Line 9174 | $as_echo_n "checking whether we are *really* using GNU
9174  
9175   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are *really* using GNU cc" >&5
9176   $as_echo_n "checking whether we are *really* using GNU cc... " >&6; }
9177 < if test "${ac_cv_prog_really_gcc+set}" = set; then :
9177 > if ${ac_cv_prog_really_gcc+:} false; then :
9178    $as_echo_n "(cached) " >&6
9179   else
9180  
# Line 10462 | Line 9279 | $as_echo_n "checking whether ${CC} accepts ${CFLAGS}..
9279  
9280   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts ${CFLAGS}" >&5
9281   $as_echo_n "checking whether ${CC} accepts ${CFLAGS}... " >&6; }
9282 < if test "${ac_cv_ac_cv_guessed_cflags+set}" = set; then :
9282 > if ${ac_cv_ac_cv_guessed_cflags+:} false; then :
9283    $as_echo_n "(cached) " >&6
9284   else
9285    echo 'void f(){}' > conftest.c
# Line 10504 | Line 9321 | $as_echo_n "checking whether we are *really* using GNU
9321  
9322   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are *really* using GNU c++" >&5
9323   $as_echo_n "checking whether we are *really* using GNU c++... " >&6; }
9324 < if test "${ac_cv_prog_really_gxx+set}" = set; then :
9324 > if ${ac_cv_prog_really_gxx+:} false; then :
9325    $as_echo_n "(cached) " >&6
9326   else
9327  
# Line 10600 | Line 9417 | $as_echo_n "checking whether ${CXX} accepts ${CXXFLAGS
9417  
9418   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts ${CXXFLAGS}" >&5
9419   $as_echo_n "checking whether ${CXX} accepts ${CXXFLAGS}... " >&6; }
9420 < if test "${ac_cv_ac_cv_guessed_cxxflags+set}" = set; then :
9420 > if ${ac_cv_ac_cv_guessed_cxxflags+:} false; then :
9421    $as_echo_n "(cached) " >&6
9422   else
9423    echo 'void f(){}' > conftest.cpp
# Line 10669 | Line 9486 | $as_echo_n "checking for $ac_word... " >&6; }
9486   set dummy doxygen; ac_word=$2
9487   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9488   $as_echo_n "checking for $ac_word... " >&6; }
9489 < if test "${ac_cv_path_DOXYGEN+set}" = set; then :
9489 > if ${ac_cv_path_DOXYGEN+:} false; then :
9490    $as_echo_n "(cached) " >&6
9491   else
9492    case $DOXYGEN in
# Line 10707 | Line 9524 | fi
9524  
9525          if test "x$DOXYGEN" = x; then
9526                  if test "x$enable_doxygen" = xyes; then
9527 <                        as_fn_error "could not find doxygen" "$LINENO" 5
9527 >                        as_fn_error $? "could not find doxygen" "$LINENO" 5
9528                  fi
9529                  enable_doc=no
9530          else
# Line 10716 | Line 9533 | $as_echo_n "checking for $ac_word... " >&6; }
9533   set dummy dot; ac_word=$2
9534   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9535   $as_echo_n "checking for $ac_word... " >&6; }
9536 < if test "${ac_cv_path_DOT+set}" = set; then :
9536 > if ${ac_cv_path_DOT+:} false; then :
9537    $as_echo_n "(cached) " >&6
9538   else
9539    case $DOT in
# Line 10764 | Line 9581 | if test x$DOT = x; then
9581  
9582   if test x$DOT = x; then
9583          if test "x$enable_dot" = xyes; then
9584 <                as_fn_error "could not find dot" "$LINENO" 5
9584 >                as_fn_error $? "could not find dot" "$LINENO" 5
9585          fi
9586          enable_dot=no
9587   else
# Line 10856 | Line 9673 | if diff "$cache_file" confcache >/dev/null 2>&1; then
9673       :end' >>confcache
9674   if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
9675    if test -w "$cache_file"; then
9676 <    test "x$cache_file" != "x/dev/null" &&
9676 >    if test "x$cache_file" != "x/dev/null"; then
9677        { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
9678   $as_echo "$as_me: updating cache $cache_file" >&6;}
9679 <    cat confcache >$cache_file
9679 >      if test ! -f "$cache_file" || test -h "$cache_file"; then
9680 >        cat confcache >"$cache_file"
9681 >      else
9682 >        case $cache_file in #(
9683 >        */* | ?:*)
9684 >          mv -f confcache "$cache_file"$$ &&
9685 >          mv -f "$cache_file"$$ "$cache_file" ;; #(
9686 >        *)
9687 >          mv -f confcache "$cache_file" ;;
9688 >        esac
9689 >      fi
9690 >    fi
9691    else
9692      { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
9693   $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
# Line 10875 | Line 9703 | ac_ltlibobjs=
9703  
9704   ac_libobjs=
9705   ac_ltlibobjs=
9706 + U=
9707   for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9708    # 1. Remove the extension, and $U if already installed.
9709    ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
# Line 10890 | Line 9719 | LTLIBOBJS=$ac_ltlibobjs
9719  
9720  
9721  
9722 < : ${CONFIG_STATUS=./config.status}
9722 > : "${CONFIG_STATUS=./config.status}"
9723   ac_write_fail=0
9724   ac_clean_files_save=$ac_clean_files
9725   ac_clean_files="$ac_clean_files $CONFIG_STATUS"
# Line 10991 | Line 9820 | IFS=" ""       $as_nl"
9820   IFS=" ""        $as_nl"
9821  
9822   # Find who we are.  Look in the path if we contain no directory separator.
9823 + as_myself=
9824   case $0 in #((
9825    *[\\/]* ) as_myself=$0 ;;
9826    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
# Line 11036 | Line 9866 | export LANGUAGE
9866   (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9867  
9868  
9869 < # as_fn_error ERROR [LINENO LOG_FD]
9870 < # ---------------------------------
9869 > # as_fn_error STATUS ERROR [LINENO LOG_FD]
9870 > # ----------------------------------------
9871   # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
9872   # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
9873 < # script with status $?, using 1 if that was 0.
9873 > # script with STATUS, using 1 if that was 0.
9874   as_fn_error ()
9875   {
9876 <  as_status=$?; test $as_status -eq 0 && as_status=1
9877 <  if test "$3"; then
9878 <    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
9879 <    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
9876 >  as_status=$1; test $as_status -eq 0 && as_status=1
9877 >  if test "$4"; then
9878 >    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
9879 >    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
9880    fi
9881 <  $as_echo "$as_me: error: $1" >&2
9881 >  $as_echo "$as_me: error: $2" >&2
9882    as_fn_exit $as_status
9883   } # as_fn_error
9884  
# Line 11244 | Line 10074 | $as_echo X"$as_dir" |
10074        test -d "$as_dir" && break
10075      done
10076      test -z "$as_dirs" || eval "mkdir $as_dirs"
10077 <  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
10077 >  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
10078  
10079  
10080   } # as_fn_mkdir_p
# Line 11297 | Line 10127 | ac_log="
10127   # report actual input values of CONFIG_FILES etc. instead of their
10128   # values after options handling.
10129   ac_log="
10130 < This file was extended by OOPSE $as_me 4.0, which was
10131 < generated by GNU Autoconf 2.64.  Invocation command line was
10130 > This file was extended by OpenMD $as_me 1.0, which was
10131 > generated by GNU Autoconf 2.68.  Invocation command line was
10132  
10133    CONFIG_FILES    = $CONFIG_FILES
10134    CONFIG_HEADERS  = $CONFIG_HEADERS
# Line 11337 | Line 10167 | Usage: $0 [OPTION]... [TAG]...
10167  
10168    -h, --help       print this help, then exit
10169    -V, --version    print version number and configuration settings, then exit
10170 +      --config     print configuration, then exit
10171    -q, --quiet, --silent
10172                     do not print progress messages
10173    -d, --debug      don't remove temporary files
# Line 11356 | Line 10187 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10187  
10188   _ACEOF
10189   cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10190 + ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
10191   ac_cs_version="\\
10192 < OOPSE config.status 4.0
10193 < configured by $0, generated by GNU Autoconf 2.64,
10194 <  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
10192 > OpenMD config.status 1.0
10193 > configured by $0, generated by GNU Autoconf 2.68,
10194 >  with options \\"\$ac_cs_config\\"
10195  
10196 < Copyright (C) 2009 Free Software Foundation, Inc.
10196 > Copyright (C) 2010 Free Software Foundation, Inc.
10197   This config.status script is free software; the Free Software Foundation
10198   gives unlimited permission to copy, distribute and modify it."
10199  
# Line 11377 | Line 10209 | do
10209   while test $# != 0
10210   do
10211    case $1 in
10212 <  --*=*)
10212 >  --*=?*)
10213      ac_option=`expr "X$1" : 'X\([^=]*\)='`
10214      ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
10215      ac_shift=:
10216      ;;
10217 +  --*=)
10218 +    ac_option=`expr "X$1" : 'X\([^=]*\)='`
10219 +    ac_optarg=
10220 +    ac_shift=:
10221 +    ;;
10222    *)
10223      ac_option=$1
10224      ac_optarg=$2
# Line 11395 | Line 10232 | do
10232      ac_cs_recheck=: ;;
10233    --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
10234      $as_echo "$ac_cs_version"; exit ;;
10235 +  --config | --confi | --conf | --con | --co | --c )
10236 +    $as_echo "$ac_cs_config"; exit ;;
10237    --debug | --debu | --deb | --de | --d | -d )
10238      debug=: ;;
10239    --file | --fil | --fi | --f )
10240      $ac_shift
10241      case $ac_optarg in
10242      *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10243 +    '') as_fn_error $? "missing file argument" ;;
10244      esac
10245      as_fn_append CONFIG_FILES " '$ac_optarg'"
10246      ac_need_defaults=false;;
# Line 11413 | Line 10253 | do
10253      ac_need_defaults=false;;
10254    --he | --h)
10255      # Conflict between --help and --header
10256 <    as_fn_error "ambiguous option: \`$1'
10256 >    as_fn_error $? "ambiguous option: \`$1'
10257   Try \`$0 --help' for more information.";;
10258    --help | --hel | -h )
10259      $as_echo "$ac_cs_usage"; exit ;;
# Line 11422 | Line 10262 | Try \`$0 --help' for more information.";;
10262      ac_cs_silent=: ;;
10263  
10264    # This is an error.
10265 <  -*) as_fn_error "unrecognized option: \`$1'
10265 >  -*) as_fn_error $? "unrecognized option: \`$1'
10266   Try \`$0 --help' for more information." ;;
10267  
10268    *) as_fn_append ac_config_targets " $1"
# Line 11479 | Line 10319 | do
10319      "src/applications/atom2md/Makefile") CONFIG_FILES="$CONFIG_FILES src/applications/atom2md/Makefile" ;;
10320      "scripts/filepp") CONFIG_FILES="$CONFIG_FILES scripts/filepp" ;;
10321  
10322 <  *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
10322 >  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
10323    esac
10324   done
10325  
# Line 11501 | Line 10341 | $debug ||
10341   # after its creation but before its name has been assigned to `$tmp'.
10342   $debug ||
10343   {
10344 <  tmp=
10344 >  tmp= ac_tmp=
10345    trap 'exit_status=$?
10346 <  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
10346 >  : "${ac_tmp:=$tmp}"
10347 >  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
10348   ' 0
10349    trap 'as_fn_exit 1' 1 2 13 15
10350   }
# Line 11511 | Line 10352 | $debug ||
10352  
10353   {
10354    tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
10355 <  test -n "$tmp" && test -d "$tmp"
10355 >  test -d "$tmp"
10356   }  ||
10357   {
10358    tmp=./conf$$-$RANDOM
10359    (umask 077 && mkdir "$tmp")
10360 < } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
10360 > } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
10361 > ac_tmp=$tmp
10362  
10363   # Set up the scripts for CONFIG_FILES section.
10364   # No need to generate them if there are no CONFIG_FILES.
# Line 11533 | Line 10375 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
10375   fi
10376   ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
10377   if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
10378 <  ac_cs_awk_cr='\r'
10378 >  ac_cs_awk_cr='\\r'
10379   else
10380    ac_cs_awk_cr=$ac_cr
10381   fi
10382  
10383 < echo 'BEGIN {' >"$tmp/subs1.awk" &&
10383 > echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
10384   _ACEOF
10385  
10386  
# Line 11547 | Line 10389 | _ACEOF
10389    echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
10390    echo "_ACEOF"
10391   } >conf$$subs.sh ||
10392 <  as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
10393 < ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
10392 >  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10393 > ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
10394   ac_delim='%!_!# '
10395   for ac_last_try in false false false false false :; do
10396    . ./conf$$subs.sh ||
10397 <    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
10397 >    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10398  
10399    ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
10400    if test $ac_delim_n = $ac_delim_num; then
10401      break
10402    elif $ac_last_try; then
10403 <    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
10403 >    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10404    else
10405      ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10406    fi
# Line 11566 | Line 10408 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10408   rm -f conf$$subs.sh
10409  
10410   cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10411 < cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
10411 > cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
10412   _ACEOF
10413   sed -n '
10414   h
# Line 11580 | Line 10422 | h
10422   t delim
10423   :nl
10424   h
10425 < s/\(.\{148\}\).*/\1/
10425 > s/\(.\{148\}\)..*/\1/
10426   t more1
10427   s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
10428   p
# Line 11594 | Line 10436 | h
10436   t nl
10437   :delim
10438   h
10439 < s/\(.\{148\}\).*/\1/
10439 > s/\(.\{148\}\)..*/\1/
10440   t more2
10441   s/["\\]/\\&/g; s/^/"/; s/$/"/
10442   p
# Line 11614 | Line 10456 | _ACAWK
10456   rm -f conf$$subs.awk
10457   cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10458   _ACAWK
10459 < cat >>"\$tmp/subs1.awk" <<_ACAWK &&
10459 > cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
10460    for (key in S) S_is_set[key] = 1
10461    FS = ""
10462  
# Line 11646 | Line 10488 | else
10488    sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
10489   else
10490    cat
10491 < fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
10492 <  || as_fn_error "could not setup config files machinery" "$LINENO" 5
10491 > fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
10492 >  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
10493   _ACEOF
10494  
10495 < # VPATH may cause trouble with some makes, so we remove $(srcdir),
10496 < # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10495 > # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
10496 > # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
10497   # trailing colons and then remove the whole line if VPATH becomes empty
10498   # (actually we leave an empty line to preserve line numbers).
10499   if test "x$srcdir" = x.; then
10500 <  ac_vpsub='/^[  ]*VPATH[        ]*=/{
10501 < s/:*\$(srcdir):*/:/
10502 < s/:*\${srcdir}:*/:/
10503 < s/:*@srcdir@:*/:/
10504 < s/^\([^=]*=[     ]*\):*/\1/
10500 >  ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
10501 > h
10502 > s///
10503 > s/^/:/
10504 > s/[      ]*$/:/
10505 > s/:\$(srcdir):/:/g
10506 > s/:\${srcdir}:/:/g
10507 > s/:@srcdir@:/:/g
10508 > s/^:*//
10509   s/:*$//
10510 + x
10511 + s/\(=[   ]*\).*/\1/
10512 + G
10513 + s/\n//
10514   s/^[^=]*=[       ]*$//
10515   }'
10516   fi
# Line 11672 | Line 10522 | if test -n "$CONFIG_HEADERS"; then
10522   # No need to generate them if there are no CONFIG_HEADERS.
10523   # This happens for instance with `./config.status Makefile'.
10524   if test -n "$CONFIG_HEADERS"; then
10525 < cat >"$tmp/defines.awk" <<\_ACAWK ||
10525 > cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
10526   BEGIN {
10527   _ACEOF
10528  
# Line 11684 | Line 10534 | for ac_last_try in false false :; do
10534   # handling of long lines.
10535   ac_delim='%!_!# '
10536   for ac_last_try in false false :; do
10537 <  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
10538 <  if test -z "$ac_t"; then
10537 >  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
10538 >  if test -z "$ac_tt"; then
10539      break
10540    elif $ac_last_try; then
10541 <    as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
10541 >    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
10542    else
10543      ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10544    fi
# Line 11773 | Line 10623 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10623   _ACAWK
10624   _ACEOF
10625   cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10626 <  as_fn_error "could not setup config headers machinery" "$LINENO" 5
10626 >  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
10627   fi # test -n "$CONFIG_HEADERS"
10628  
10629  
# Line 11786 | Line 10636 | do
10636    esac
10637    case $ac_mode$ac_tag in
10638    :[FHL]*:*);;
10639 <  :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
10639 >  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
10640    :[FH]-) ac_tag=-:-;;
10641    :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
10642    esac
# Line 11805 | Line 10655 | do
10655      for ac_f
10656      do
10657        case $ac_f in
10658 <      -) ac_f="$tmp/stdin";;
10658 >      -) ac_f="$ac_tmp/stdin";;
10659        *) # Look for the file first in the build tree, then in the source tree
10660           # (if the path is not absolute).  The absolute path cannot be DOS-style,
10661           # because $ac_f cannot contain `:'.
# Line 11814 | Line 10664 | do
10664             [\\/$]*) false;;
10665             *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
10666             esac ||
10667 <           as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
10667 >           as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
10668        esac
10669        case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
10670        as_fn_append ac_file_inputs " '$ac_f'"
# Line 11840 | Line 10690 | $as_echo "$as_me: creating $ac_file" >&6;}
10690      esac
10691  
10692      case $ac_tag in
10693 <    *:-:* | *:-) cat >"$tmp/stdin" \
10694 <      || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
10693 >    *:-:* | *:-) cat >"$ac_tmp/stdin" \
10694 >      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
10695      esac
10696      ;;
10697    esac
# Line 11971 | Line 10821 | $ac_datarootdir_hack
10821   s&@INSTALL@&$ac_INSTALL&;t t
10822   $ac_datarootdir_hack
10823   "
10824 < eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
10825 <  || as_fn_error "could not create $ac_file" "$LINENO" 5
10824 > eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
10825 >  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10826  
10827   test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
10828 <  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
10829 <  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
10828 >  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
10829 >  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
10830 >      "$ac_tmp/out"`; test -z "$ac_out"; } &&
10831    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10832 < which seems to be undefined.  Please make sure it is defined." >&5
10832 > which seems to be undefined.  Please make sure it is defined" >&5
10833   $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10834 < which seems to be undefined.  Please make sure it is defined." >&2;}
10834 > which seems to be undefined.  Please make sure it is defined" >&2;}
10835  
10836 <  rm -f "$tmp/stdin"
10836 >  rm -f "$ac_tmp/stdin"
10837    case $ac_file in
10838 <  -) cat "$tmp/out" && rm -f "$tmp/out";;
10839 <  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
10838 >  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
10839 >  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
10840    esac \
10841 <  || as_fn_error "could not create $ac_file" "$LINENO" 5
10841 >  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10842   ;;
10843    :H)
10844    #
# Line 11996 | Line 10847 | which seems to be undefined.  Please make sure it is d
10847    if test x"$ac_file" != x-; then
10848      {
10849        $as_echo "/* $configure_input  */" \
10850 <      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
10851 <    } >"$tmp/config.h" \
10852 <      || as_fn_error "could not create $ac_file" "$LINENO" 5
10853 <    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
10850 >      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
10851 >    } >"$ac_tmp/config.h" \
10852 >      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10853 >    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
10854        { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
10855   $as_echo "$as_me: $ac_file is unchanged" >&6;}
10856      else
10857        rm -f "$ac_file"
10858 <      mv "$tmp/config.h" "$ac_file" \
10859 <        || as_fn_error "could not create $ac_file" "$LINENO" 5
10858 >      mv "$ac_tmp/config.h" "$ac_file" \
10859 >        || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10860      fi
10861    else
10862      $as_echo "/* $configure_input  */" \
10863 <      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
10864 <      || as_fn_error "could not create -" "$LINENO" 5
10863 >      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
10864 >      || as_fn_error $? "could not create -" "$LINENO" 5
10865    fi
10866   ;;
10867  
# Line 12035 | Line 10886 | test $ac_write_fail = 0 ||
10886   ac_clean_files=$ac_clean_files_save
10887  
10888   test $ac_write_fail = 0 ||
10889 <  as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
10889 >  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
10890  
10891  
10892   # configure is writing to config.log, and then calls config.status.
# Line 12056 | Line 10907 | if test "$no_create" != yes; then
10907    exec 5>>config.log
10908    # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10909    # would make configure fail if this is the last instruction.
10910 <  $ac_cs_success || as_fn_exit $?
10910 >  $ac_cs_success || as_fn_exit 1
10911   fi
10912   if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
10913    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines