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

Comparing trunk/configure (file contents):
Revision 1395 by gezelter, Fri Dec 4 17:38:47 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.65 for OpenMD 1.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 Foundation,
10 < # Inc.
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
# Line 91 | 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 216 | 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 319 | 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 359 | 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 533 | Line 541 | exec 6>&1
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 613 | Line 621 | OPENBABEL_INC_DIR
621   OPENBABEL_LIB
622   OPENBABEL_LIB_DIR
623   OPENBABEL_INC_DIR
616 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 650 | 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
656 MPICC
668   ac_ct_CC
669   CFLAGS
670   CC
660 MPILIBS
661 MPICXX
671   OBJEXT
672   EXEEXT
673   ac_ct_CXX
# Line 666 | Line 675 | CXX
675   LDFLAGS
676   CXXFLAGS
677   CXX
669 ac_fc_path
670 ac_fc_set
671 ac_cxx_path
672 ac_cxx_set
673 ac_cc_path
674 ac_cc_set
678   USE_SINGLE_PRECISION
679   debug
680   PROGNAME
# Line 747 | Line 750 | CCC
750   LIBS
751   CPPFLAGS
752   CCC
750 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 818 | 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 864 | 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 890 | 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 1094 | 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 1110 | 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 1140 | 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 1149 | 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 1159 | 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 1167 | 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 1196 | 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 1210 | 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 1226 | 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 1267 | 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 1311 | 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 1402 | Line 1412 | Some influential environment variables:
1412    LIBS        libraries to pass to the linker, e.g. -l<library>
1413    CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1414                you have headers in a nonstandard directory <include dir>
1405  MPICXX      MPI C++ compiler command
1415    CC          C compiler command
1416    CFLAGS      C compiler flags
1408  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 1479 | Line 1489 | OpenMD configure 1.0
1489   if $ac_init_version; then
1490    cat <<\_ACEOF
1491   OpenMD configure 1.0
1492 < generated by GNU Autoconf 2.65
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 1525 | 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;}
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 1571 | 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;}
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
# Line 1584 | 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 1639 | 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  
1646 # ac_fn_c_try_compile LINENO
1647 # --------------------------
1648 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1649 ac_fn_c_try_compile ()
1650 {
1651  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1652  rm -f conftest.$ac_objext
1653  if { { ac_try="$ac_compile"
1654 case "(($ac_try" in
1655  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1656  *) ac_try_echo=$ac_try;;
1657 esac
1658 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1659 $as_echo "$ac_try_echo"; } >&5
1660  (eval "$ac_compile") 2>conftest.err
1661  ac_status=$?
1662  if test -s conftest.err; then
1663    grep -v '^ *+' conftest.err >conftest.er1
1664    cat conftest.er1 >&5
1665    mv -f conftest.er1 conftest.err
1666  fi
1667  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1668  test $ac_status = 0; } && {
1669         test -z "$ac_c_werror_flag" ||
1670         test ! -s conftest.err
1671       } && test -s conftest.$ac_objext; then :
1672  ac_retval=0
1673 else
1674  $as_echo "$as_me: failed program was:" >&5
1675 sed 's/^/| /' conftest.$ac_ext >&5
1676
1677        ac_retval=1
1678 fi
1679  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1680  as_fn_set_status $ac_retval
1681
1682 } # ac_fn_c_try_compile
1683
1732   # ac_fn_c_try_link LINENO
1733   # -----------------------
1734   # Try to link conftest.$ac_ext, and return whether this succeeded.
# Line 1722 | 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;}
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
# Line 1735 | 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 1790 | 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
1796
1797 # ac_fn_fc_try_compile LINENO
1798 # ---------------------------
1799 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1800 ac_fn_fc_try_compile ()
1801 {
1802  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1803  rm -f conftest.$ac_objext
1804  if { { ac_try="$ac_compile"
1805 case "(($ac_try" in
1806  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1807  *) ac_try_echo=$ac_try;;
1808 esac
1809 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1810 $as_echo "$ac_try_echo"; } >&5
1811  (eval "$ac_compile") 2>conftest.err
1812  ac_status=$?
1813  if test -s conftest.err; then
1814    grep -v '^ *+' conftest.err >conftest.er1
1815    cat conftest.er1 >&5
1816    mv -f conftest.er1 conftest.err
1817  fi
1818  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1819  test $ac_status = 0; } && {
1820         test -z "$ac_fc_werror_flag" ||
1821         test ! -s conftest.err
1822       } && test -s conftest.$ac_objext; then :
1823  ac_retval=0
1824 else
1825  $as_echo "$as_me: failed program was:" >&5
1826 sed 's/^/| /' conftest.$ac_ext >&5
1844  
1828        ac_retval=1
1829 fi
1830  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1831  as_fn_set_status $ac_retval
1832
1833 } # ac_fn_fc_try_compile
1834
1845   # ac_fn_fc_try_link LINENO
1846   # ------------------------
1847   # Try to link conftest.$ac_ext, and return whether this succeeded.
# Line 1873 | 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;}
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
# Line 1899 | 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 1910 | 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;}
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
# Line 1923 | 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 1962 | 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 1985 | 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
1989 < ## ------------------------------ ##
1998 > ( $as_echo "## ------------------------------ ##
1999   ## Report this to gezelter@nd.edu ##
2000 < ## ------------------------------ ##
1992 < _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 2004 | 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 2045 | 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;}
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
# Line 2059 | 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 2077 | 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 2102 | 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 2113 | 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;}
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
# Line 2126 | 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 2165 | 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 2188 | 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
2192 < ## ------------------------------ ##
2199 > ( $as_echo "## ------------------------------ ##
2200   ## Report this to gezelter@nd.edu ##
2201 < ## ------------------------------ ##
2195 < _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 2207 | 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 2220 | 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 2277 | 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
# Line 2285 | Line 2291 | It was created by OpenMD $as_me 1.0, which was
2291   running configure, to aid debugging if configure makes a mistake.
2292  
2293   It was created by OpenMD $as_me 1.0, which was
2294 < generated by GNU Autoconf 2.65.  Invocation command line was
2294 > generated by GNU Autoconf 2.68.  Invocation command line was
2295  
2296    $ $0 $@
2297  
# Line 2395 | Line 2401 | trap 'exit_status=$?
2401    {
2402      echo
2403  
2404 <    cat <<\_ASBOX
2399 < ## ---------------- ##
2404 >    $as_echo "## ---------------- ##
2405   ## Cache variables. ##
2406 < ## ---------------- ##
2402 < _ASBOX
2406 > ## ---------------- ##"
2407      echo
2408      # The following way of writing the cache mishandles newlines in values,
2409   (
# Line 2433 | Line 2437 | $as_echo "$as_me: WARNING: cache variable $ac_var cont
2437   )
2438      echo
2439  
2440 <    cat <<\_ASBOX
2437 < ## ----------------- ##
2440 >    $as_echo "## ----------------- ##
2441   ## Output variables. ##
2442 < ## ----------------- ##
2440 < _ASBOX
2442 > ## ----------------- ##"
2443      echo
2444      for ac_var in $ac_subst_vars
2445      do
# Line 2450 | Line 2452 | _ASBOX
2452      echo
2453  
2454      if test -n "$ac_subst_files"; then
2455 <      cat <<\_ASBOX
2454 < ## ------------------- ##
2455 >      $as_echo "## ------------------- ##
2456   ## File substitutions. ##
2457 < ## ------------------- ##
2457 < _ASBOX
2457 > ## ------------------- ##"
2458        echo
2459        for ac_var in $ac_subst_files
2460        do
# Line 2468 | Line 2468 | _ASBOX
2468      fi
2469  
2470      if test -s confdefs.h; then
2471 <      cat <<\_ASBOX
2472 < ## ----------- ##
2471 >      $as_echo "## ----------- ##
2472   ## confdefs.h. ##
2473 < ## ----------- ##
2475 < _ASBOX
2473 > ## ----------- ##"
2474        echo
2475        cat confdefs.h
2476        echo
# Line 2527 | 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 2542 | Line 2545 | $as_echo "$as_me: loading site script $ac_site_file" >
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  
# Line 2618 | 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 2633 | 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 2899 | 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 2937 | 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 2952 | 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 3030 | Line 3043 | fi
3043  
3044   fi
3045  
3033 if test x"$CC" != x; then
3034   for ac_prog in $CC
3035 do
3036  # Extract the first word of "$ac_prog", so it can be a program name with args.
3037 set dummy $ac_prog; ac_word=$2
3038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3039 $as_echo_n "checking for $ac_word... " >&6; }
3040 if test "${ac_cv_prog_ac_cc_set+set}" = set; then :
3041  $as_echo_n "(cached) " >&6
3042 else
3043  if test -n "$ac_cc_set"; then
3044  ac_cv_prog_ac_cc_set="$ac_cc_set" # Let the user override the test.
3045 else
3046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3047 for as_dir in $PATH
3048 do
3049  IFS=$as_save_IFS
3050  test -z "$as_dir" && as_dir=.
3051    for ac_exec_ext in '' $ac_executable_extensions; do
3052  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3053    ac_cv_prog_ac_cc_set="$ac_prog"
3054    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3055    break 2
3056  fi
3057 done
3058  done
3059 IFS=$as_save_IFS
3060
3061 fi
3062 fi
3063 ac_cc_set=$ac_cv_prog_ac_cc_set
3064 if test -n "$ac_cc_set"; then
3065  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cc_set" >&5
3066 $as_echo "$ac_cc_set" >&6; }
3067 else
3068  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3069 $as_echo "no" >&6; }
3070 fi
3071
3072
3073  test -n "$ac_cc_set" && break
3074 done
3075 test -n "$ac_cc_set" || ac_cc_set="no"
3076
3077   if test $ac_cc_set != no; then :
3078
3079     # Extract the first word of "$ac_cc_set", so it can be a program name with args.
3080 set dummy $ac_cc_set; ac_word=$2
3081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3082 $as_echo_n "checking for $ac_word... " >&6; }
3083 if test "${ac_cv_path_ac_cc_path+set}" = set; then :
3084  $as_echo_n "(cached) " >&6
3085 else
3086  case $ac_cc_path in
3087  [\\/]* | ?:[\\/]*)
3088  ac_cv_path_ac_cc_path="$ac_cc_path" # Let the user override the test with a path.
3089  ;;
3090  *)
3091  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3092 for as_dir in $PATH
3093 do
3094  IFS=$as_save_IFS
3095  test -z "$as_dir" && as_dir=.
3096    for ac_exec_ext in '' $ac_executable_extensions; do
3097  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3098    ac_cv_path_ac_cc_path="$as_dir/$ac_word$ac_exec_ext"
3099    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3100    break 2
3101  fi
3102 done
3103  done
3104 IFS=$as_save_IFS
3105
3106  test -z "$ac_cv_path_ac_cc_path" && ac_cv_path_ac_cc_path="no"
3107  ;;
3108 esac
3109 fi
3110 ac_cc_path=$ac_cv_path_ac_cc_path
3111 if test -n "$ac_cc_path"; then
3112  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cc_path" >&5
3113 $as_echo "$ac_cc_path" >&6; }
3114 else
3115  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3116 $as_echo "no" >&6; }
3117 fi
3118
3119
3120 else
3121
3122     as_fn_error "Specified C compiler $CC doesn't seem to exist!" "$LINENO" 5
3123 fi
3124
3125   if test $ac_cc_path != no; then :
3126
3127     { $as_echo "$as_me:${as_lineno-$LINENO}: Will attempt to use $CC as C compiler" >&5
3128 $as_echo "$as_me: Will attempt to use $CC as C compiler" >&6;}
3129     MPICC=$CC
3130
3131 else
3132
3133     as_fn_error "Can't find path to user-specified C compiler $CC" "$LINENO" 5
3134 fi
3135 fi
3136
3137 if test x"$CXX" != x; then
3138   for ac_prog in $CXX
3139 do
3140  # Extract the first word of "$ac_prog", so it can be a program name with args.
3141 set dummy $ac_prog; ac_word=$2
3142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3143 $as_echo_n "checking for $ac_word... " >&6; }
3144 if test "${ac_cv_prog_ac_cxx_set+set}" = set; then :
3145  $as_echo_n "(cached) " >&6
3146 else
3147  if test -n "$ac_cxx_set"; then
3148  ac_cv_prog_ac_cxx_set="$ac_cxx_set" # Let the user override the test.
3149 else
3150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3151 for as_dir in $PATH
3152 do
3153  IFS=$as_save_IFS
3154  test -z "$as_dir" && as_dir=.
3155    for ac_exec_ext in '' $ac_executable_extensions; do
3156  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3157    ac_cv_prog_ac_cxx_set="$ac_prog"
3158    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3159    break 2
3160  fi
3161 done
3162  done
3163 IFS=$as_save_IFS
3164
3165 fi
3166 fi
3167 ac_cxx_set=$ac_cv_prog_ac_cxx_set
3168 if test -n "$ac_cxx_set"; then
3169  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cxx_set" >&5
3170 $as_echo "$ac_cxx_set" >&6; }
3171 else
3172  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3173 $as_echo "no" >&6; }
3174 fi
3175
3176
3177  test -n "$ac_cxx_set" && break
3178 done
3179 test -n "$ac_cxx_set" || ac_cxx_set="no"
3180
3181   if test $ac_cxx_set != no; then :
3182
3183     # Extract the first word of "$ac_cxx_set", so it can be a program name with args.
3184 set dummy $ac_cxx_set; ac_word=$2
3185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3186 $as_echo_n "checking for $ac_word... " >&6; }
3187 if test "${ac_cv_path_ac_cxx_path+set}" = set; then :
3188  $as_echo_n "(cached) " >&6
3189 else
3190  case $ac_cxx_path in
3191  [\\/]* | ?:[\\/]*)
3192  ac_cv_path_ac_cxx_path="$ac_cxx_path" # Let the user override the test with a path.
3193  ;;
3194  *)
3195  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3196 for as_dir in $PATH
3197 do
3198  IFS=$as_save_IFS
3199  test -z "$as_dir" && as_dir=.
3200    for ac_exec_ext in '' $ac_executable_extensions; do
3201  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3202    ac_cv_path_ac_cxx_path="$as_dir/$ac_word$ac_exec_ext"
3203    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3204    break 2
3205  fi
3206 done
3207  done
3208 IFS=$as_save_IFS
3209
3210  test -z "$ac_cv_path_ac_cxx_path" && ac_cv_path_ac_cxx_path="no"
3211  ;;
3212 esac
3213 fi
3214 ac_cxx_path=$ac_cv_path_ac_cxx_path
3215 if test -n "$ac_cxx_path"; then
3216  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cxx_path" >&5
3217 $as_echo "$ac_cxx_path" >&6; }
3218 else
3219  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3220 $as_echo "no" >&6; }
3221 fi
3222
3223
3224 else
3225
3226     as_fn_error "Specified C++ compiler $CXX doesn't seem to exist!" "$LINENO" 5
3227 fi
3228
3229   if test $ac_cxx_path != no; then :
3230
3231     { $as_echo "$as_me:${as_lineno-$LINENO}: Will attempt to use $CXX as C++ compiler" >&5
3232 $as_echo "$as_me: Will attempt to use $CXX as C++ compiler" >&6;}
3233     MPICXX=$CXX
3234
3235 else
3236
3237     as_fn_error "Can't find path to user-specified C++ compiler $CXX" "$LINENO" 5
3238 fi
3239 fi
3240
3241 if test x"$FC" != x; then
3242   for ac_prog in $FC
3243 do
3244  # Extract the first word of "$ac_prog", so it can be a program name with args.
3245 set dummy $ac_prog; ac_word=$2
3246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3247 $as_echo_n "checking for $ac_word... " >&6; }
3248 if test "${ac_cv_prog_ac_fc_set+set}" = set; then :
3249  $as_echo_n "(cached) " >&6
3250 else
3251  if test -n "$ac_fc_set"; then
3252  ac_cv_prog_ac_fc_set="$ac_fc_set" # Let the user override the test.
3253 else
3254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3255 for as_dir in $PATH
3256 do
3257  IFS=$as_save_IFS
3258  test -z "$as_dir" && as_dir=.
3259    for ac_exec_ext in '' $ac_executable_extensions; do
3260  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3261    ac_cv_prog_ac_fc_set="$ac_prog"
3262    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3263    break 2
3264  fi
3265 done
3266  done
3267 IFS=$as_save_IFS
3268
3269 fi
3270 fi
3271 ac_fc_set=$ac_cv_prog_ac_fc_set
3272 if test -n "$ac_fc_set"; then
3273  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_fc_set" >&5
3274 $as_echo "$ac_fc_set" >&6; }
3275 else
3276  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3277 $as_echo "no" >&6; }
3278 fi
3279
3280
3281  test -n "$ac_fc_set" && break
3282 done
3283 test -n "$ac_fc_set" || ac_fc_set="no"
3284
3285   if test $ac_fc_set != no; then :
3286
3287     # Extract the first word of "$ac_fc_set", so it can be a program name with args.
3288 set dummy $ac_fc_set; ac_word=$2
3289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3290 $as_echo_n "checking for $ac_word... " >&6; }
3291 if test "${ac_cv_path_ac_fc_path+set}" = set; then :
3292  $as_echo_n "(cached) " >&6
3293 else
3294  case $ac_fc_path in
3295  [\\/]* | ?:[\\/]*)
3296  ac_cv_path_ac_fc_path="$ac_fc_path" # Let the user override the test with a path.
3297  ;;
3298  *)
3299  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3300 for as_dir in $PATH
3301 do
3302  IFS=$as_save_IFS
3303  test -z "$as_dir" && as_dir=.
3304    for ac_exec_ext in '' $ac_executable_extensions; do
3305  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3306    ac_cv_path_ac_fc_path="$as_dir/$ac_word$ac_exec_ext"
3307    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3308    break 2
3309  fi
3310 done
3311  done
3312 IFS=$as_save_IFS
3313
3314  test -z "$ac_cv_path_ac_fc_path" && ac_cv_path_ac_fc_path="no"
3315  ;;
3316 esac
3317 fi
3318 ac_fc_path=$ac_cv_path_ac_fc_path
3319 if test -n "$ac_fc_path"; then
3320  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_fc_path" >&5
3321 $as_echo "$ac_fc_path" >&6; }
3322 else
3323  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3324 $as_echo "no" >&6; }
3325 fi
3326
3327
3328 else
3329
3330     as_fn_error "Specified Fortran compiler $FC doesn't seem to exist!" "$LINENO" 5
3331 fi
3332
3333   if test $ac_fc_path != no; then :
3334
3335     { $as_echo "$as_me:${as_lineno-$LINENO}: Will attempt to use $FC as Fortran compiler" >&5
3336 $as_echo "$as_me: Will attempt to use $FC as Fortran compiler" >&6;}
3337     MPIFC=$FC
3338
3339 else
3340
3341     as_fn_error "Can't find path to user-specified Fortran compiler $FC" "$LINENO" 5
3342 fi
3343 fi
3344
3345
3346 save_LIBS_CHECK_CXX_LIB="$LIBS"
3347
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
3353
3354 ac_ext=cpp
3355 ac_cpp='$CXXCPP $CPPFLAGS'
3356 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3357 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3358 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 3405 | 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 3574 | Line 3266 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
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
3579 < 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; }
# Line 3618 | 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 conftest$ac_cv_exeext
3316   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
# Line 3676 | Line 3367 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
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.
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; }
3372 > See \`config.log' for more details" "$LINENO" 5; }
3373      fi
3374    fi
3375   fi
# Line 3689 | Line 3380 | $as_echo_n "checking for suffix of object files... " >
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 3729 | 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 3740 | 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 3777 | 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 3853 | 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
3861 <
3862 <
3863 <
3864 <
3865 <
3866 <
3867 <
3868 <        for ac_prog in openmpicxx openmpiCC openmpic++ mpic++ mpicxx mpiCC hcp mpxlC_r mpxlC mpCC cmpic++
3869 < do
3870 <  # Extract the first word of "$ac_prog", so it can be a program name with args.
3871 < set dummy $ac_prog; ac_word=$2
3872 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3873 < $as_echo_n "checking for $ac_word... " >&6; }
3874 < if test "${ac_cv_prog_MPICXX+set}" = set; then :
3875 <  $as_echo_n "(cached) " >&6
3876 < else
3877 <  if test -n "$MPICXX"; then
3878 <  ac_cv_prog_MPICXX="$MPICXX" # Let the user override the test.
3879 < else
3880 < as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3881 < for as_dir in $PATH
3882 < do
3883 <  IFS=$as_save_IFS
3884 <  test -z "$as_dir" && as_dir=.
3885 <    for ac_exec_ext in '' $ac_executable_extensions; do
3886 <  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3887 <    ac_cv_prog_MPICXX="$ac_prog"
3888 <    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3889 <    break 2
3890 <  fi
3891 < done
3892 <  done
3893 < IFS=$as_save_IFS
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  
3895 fi
3896 fi
3897 MPICXX=$ac_cv_prog_MPICXX
3898 if test -n "$MPICXX"; then
3899  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPICXX" >&5
3900 $as_echo "$MPICXX" >&6; }
3901 else
3902  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3903 $as_echo "no" >&6; }
3904 fi
3905
3906
3907  test -n "$MPICXX" && break
3908 done
3909 test -n "$MPICXX" || MPICXX="$CXX"
3910
3911        ax_mpi_save_CXX="$CXX"
3912        CXX="$MPICXX"
3913
3914
3915
3916 if test x = x"$MPILIBS"; then
3917        ac_fn_cxx_check_func "$LINENO" "MPI_Init" "ac_cv_func_MPI_Init"
3918 if test "x$ac_cv_func_MPI_Init" = x""yes; then :
3919  MPILIBS=" "
3920 fi
3921
3922 fi
3923
3924 if test x = x"$MPILIBS"; then
3925        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpi" >&5
3926 $as_echo_n "checking for MPI_Init in -lmpi... " >&6; }
3927 if test "${ac_cv_lib_mpi_MPI_Init+set}" = set; then :
3928  $as_echo_n "(cached) " >&6
3929 else
3930  ac_check_lib_save_LIBS=$LIBS
3931 LIBS="-lmpi  $LIBS"
3932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3933 /* end confdefs.h.  */
3934
3935 /* Override any GCC internal prototype to avoid an error.
3936   Use char because int might match the return type of a GCC
3937   builtin and then its argument prototype would still apply.  */
3938 #ifdef __cplusplus
3939 extern "C"
3940 #endif
3941 char MPI_Init ();
3942 int
3943 main ()
3944 {
3945 return MPI_Init ();
3946  ;
3947  return 0;
3948 }
3949 _ACEOF
3950 if ac_fn_cxx_try_link "$LINENO"; then :
3951  ac_cv_lib_mpi_MPI_Init=yes
3952 else
3953  ac_cv_lib_mpi_MPI_Init=no
3954 fi
3955 rm -f core conftest.err conftest.$ac_objext \
3956    conftest$ac_exeext conftest.$ac_ext
3957 LIBS=$ac_check_lib_save_LIBS
3958 fi
3959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpi_MPI_Init" >&5
3960 $as_echo "$ac_cv_lib_mpi_MPI_Init" >&6; }
3961 if test "x$ac_cv_lib_mpi_MPI_Init" = x""yes; then :
3962  MPILIBS="-lmpi"
3963 fi
3964
3965 fi
3966 if test x = x"$MPILIBS"; then
3967        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpich" >&5
3968 $as_echo_n "checking for MPI_Init in -lmpich... " >&6; }
3969 if test "${ac_cv_lib_mpich_MPI_Init+set}" = set; then :
3970  $as_echo_n "(cached) " >&6
3971 else
3972  ac_check_lib_save_LIBS=$LIBS
3973 LIBS="-lmpich  $LIBS"
3974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3975 /* end confdefs.h.  */
3976
3977 /* Override any GCC internal prototype to avoid an error.
3978   Use char because int might match the return type of a GCC
3979   builtin and then its argument prototype would still apply.  */
3980 #ifdef __cplusplus
3981 extern "C"
3982 #endif
3983 char MPI_Init ();
3984 int
3985 main ()
3986 {
3987 return MPI_Init ();
3988  ;
3989  return 0;
3990 }
3991 _ACEOF
3992 if ac_fn_cxx_try_link "$LINENO"; then :
3993  ac_cv_lib_mpich_MPI_Init=yes
3994 else
3995  ac_cv_lib_mpich_MPI_Init=no
3996 fi
3997 rm -f core conftest.err conftest.$ac_objext \
3998    conftest$ac_exeext conftest.$ac_ext
3999 LIBS=$ac_check_lib_save_LIBS
4000 fi
4001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpich_MPI_Init" >&5
4002 $as_echo "$ac_cv_lib_mpich_MPI_Init" >&6; }
4003 if test "x$ac_cv_lib_mpich_MPI_Init" = x""yes; then :
4004  MPILIBS="-lmpich"
4005 fi
4006
4007 fi
4008
4009 if test x != x"$MPILIBS"; then
4010        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpi.h" >&5
4011 $as_echo_n "checking for mpi.h... " >&6; }
4012        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4013 /* end confdefs.h.  */
4014 #include <mpi.h>
4015 int
4016 main ()
4017 {
4018
4019  ;
4020  return 0;
4021 }
4022 _ACEOF
4023 if ac_fn_cxx_try_compile "$LINENO"; then :
4024  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4025 $as_echo "yes" >&6; }
4026 else
4027  MPILIBS=""
4028                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4029 $as_echo "no" >&6; }
4030 fi
4031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4032 fi
4033
4034 CXX="$ax_mpi_save_CXX"
4035
4036
4037
4038 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
4039 if test x = x"$MPILIBS"; then
4040        USE_MPI="no"
4041       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No suitable C++ MPI implementation found. openmd_MPI will not be built." >&5
4042 $as_echo "$as_me: WARNING: No suitable C++ MPI implementation found. openmd_MPI will not be built." >&2;}
4043        :
4044 else
4045        USE_MPI="yes"
4046        :
4047 fi
4048
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 <  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3560 < set dummy ${ac_tool_prefix}gcc; ac_word=$2
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_CC+set}" = set; then :
3565 > if ${ac_cv_prog_CC+:} false; then :
3566    $as_echo_n "(cached) " >&6
3567   else
3568    if test -n "$CC"; then
# Line 4069 | 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_CC="${ac_tool_prefix}gcc"
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 4089 | Line 3595 | fi
3595   fi
3596  
3597  
3598 +    test -n "$CC" && break
3599 +  done
3600   fi
3601 < if test -z "$ac_cv_prog_CC"; then
3601 > if test -z "$CC"; then
3602    ac_ct_CC=$CC
3603 <  # Extract the first word of "gcc", so it can be a program name with args.
3604 < set dummy gcc; ac_word=$2
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 4109 | Line 3619 | do
3619    test -z "$as_dir" && as_dir=.
3620      for ac_exec_ext in '' $ac_executable_extensions; do
3621    if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3622 <    ac_cv_prog_ac_ct_CC="gcc"
3622 >    ac_cv_prog_ac_ct_CC="$ac_prog"
3623      $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3624      break 2
3625    fi
# Line 4128 | Line 3638 | fi
3638   $as_echo "no" >&6; }
3639   fi
3640  
3641 +
3642 +  test -n "$ac_ct_CC" && break
3643 + done
3644 +
3645    if test "x$ac_ct_CC" = x; then
3646      CC=""
3647    else
# Line 4139 | Line 3653 | esac
3653   esac
3654      CC=$ac_ct_CC
3655    fi
4142 else
4143  CC="$ac_cv_prog_CC"
3656   fi
3657  
4146 if test -z "$CC"; then
4147          if test -n "$ac_tool_prefix"; then
4148    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4149 set dummy ${ac_tool_prefix}cc; ac_word=$2
4150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4151 $as_echo_n "checking for $ac_word... " >&6; }
4152 if test "${ac_cv_prog_CC+set}" = set; then :
4153  $as_echo_n "(cached) " >&6
4154 else
4155  if test -n "$CC"; then
4156  ac_cv_prog_CC="$CC" # Let the user override the test.
4157 else
4158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4159 for as_dir in $PATH
4160 do
4161  IFS=$as_save_IFS
4162  test -z "$as_dir" && as_dir=.
4163    for ac_exec_ext in '' $ac_executable_extensions; do
4164  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4165    ac_cv_prog_CC="${ac_tool_prefix}cc"
4166    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4167    break 2
4168  fi
4169 done
4170  done
4171 IFS=$as_save_IFS
3658  
4173 fi
4174 fi
4175 CC=$ac_cv_prog_CC
4176 if test -n "$CC"; then
4177  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4178 $as_echo "$CC" >&6; }
4179 else
4180  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4181 $as_echo "no" >&6; }
4182 fi
4183
4184
4185  fi
4186 fi
4187 if test -z "$CC"; then
4188  # Extract the first word of "cc", so it can be a program name with args.
4189 set dummy cc; ac_word=$2
4190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4191 $as_echo_n "checking for $ac_word... " >&6; }
4192 if test "${ac_cv_prog_CC+set}" = set; then :
4193  $as_echo_n "(cached) " >&6
4194 else
4195  if test -n "$CC"; then
4196  ac_cv_prog_CC="$CC" # Let the user override the test.
4197 else
4198  ac_prog_rejected=no
4199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4200 for as_dir in $PATH
4201 do
4202  IFS=$as_save_IFS
4203  test -z "$as_dir" && as_dir=.
4204    for ac_exec_ext in '' $ac_executable_extensions; do
4205  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4206    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4207       ac_prog_rejected=yes
4208       continue
4209     fi
4210    ac_cv_prog_CC="cc"
4211    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4212    break 2
4213  fi
4214 done
4215  done
4216 IFS=$as_save_IFS
4217
4218 if test $ac_prog_rejected = yes; then
4219  # We found a bogon in the path, so make sure we never use it.
4220  set dummy $ac_cv_prog_CC
4221  shift
4222  if test $# != 0; then
4223    # We chose a different compiler from the bogus one.
4224    # However, it has the same basename, so the bogon will be chosen
4225    # first if we set CC to just the basename; use the full file name.
4226    shift
4227    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4228  fi
4229 fi
4230 fi
4231 fi
4232 CC=$ac_cv_prog_CC
4233 if test -n "$CC"; then
4234  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4235 $as_echo "$CC" >&6; }
4236 else
4237  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4238 $as_echo "no" >&6; }
4239 fi
4240
4241
4242 fi
4243 if test -z "$CC"; then
4244  if test -n "$ac_tool_prefix"; then
4245  for ac_prog in cl.exe
4246  do
4247    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4248 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4250 $as_echo_n "checking for $ac_word... " >&6; }
4251 if test "${ac_cv_prog_CC+set}" = set; then :
4252  $as_echo_n "(cached) " >&6
4253 else
4254  if test -n "$CC"; then
4255  ac_cv_prog_CC="$CC" # Let the user override the test.
4256 else
4257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4258 for as_dir in $PATH
4259 do
4260  IFS=$as_save_IFS
4261  test -z "$as_dir" && as_dir=.
4262    for ac_exec_ext in '' $ac_executable_extensions; do
4263  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4264    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4265    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4266    break 2
4267  fi
4268 done
4269  done
4270 IFS=$as_save_IFS
4271
4272 fi
4273 fi
4274 CC=$ac_cv_prog_CC
4275 if test -n "$CC"; then
4276  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4277 $as_echo "$CC" >&6; }
4278 else
4279  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4280 $as_echo "no" >&6; }
4281 fi
4282
4283
4284    test -n "$CC" && break
4285  done
4286 fi
4287 if test -z "$CC"; then
4288  ac_ct_CC=$CC
4289  for ac_prog in cl.exe
4290 do
4291  # Extract the first word of "$ac_prog", so it can be a program name with args.
4292 set dummy $ac_prog; ac_word=$2
4293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4294 $as_echo_n "checking for $ac_word... " >&6; }
4295 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4296  $as_echo_n "(cached) " >&6
4297 else
4298  if test -n "$ac_ct_CC"; then
4299  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4300 else
4301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4302 for as_dir in $PATH
4303 do
4304  IFS=$as_save_IFS
4305  test -z "$as_dir" && as_dir=.
4306    for ac_exec_ext in '' $ac_executable_extensions; do
4307  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4308    ac_cv_prog_ac_ct_CC="$ac_prog"
4309    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4310    break 2
4311  fi
4312 done
4313  done
4314 IFS=$as_save_IFS
4315
4316 fi
4317 fi
4318 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4319 if test -n "$ac_ct_CC"; then
4320  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4321 $as_echo "$ac_ct_CC" >&6; }
4322 else
4323  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4324 $as_echo "no" >&6; }
4325 fi
4326
4327
4328  test -n "$ac_ct_CC" && break
4329 done
4330
4331  if test "x$ac_ct_CC" = x; then
4332    CC=""
4333  else
4334    case $cross_compiling:$ac_tool_warned in
4335 yes:)
4336 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4337 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4338 ac_tool_warned=yes ;;
4339 esac
4340    CC=$ac_ct_CC
4341  fi
4342 fi
4343
4344 fi
4345
4346
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 4376 | Line 3688 | $as_echo_n "checking whether we are using the GNU C co
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 4413 | 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 4491 | 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 4585 | Line 3897 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
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
4588
4589
4590 if test $USE_MPI != no; then :
4591
4592 ac_ext=c
4593 ac_cpp='$CPP $CPPFLAGS'
4594 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4595 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4596 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4597
4598
4599
4600
4601
4602
4603        for ac_prog in openmpicc mpicc hcc mpxlc_r mpxlc mpcc cmpicc
4604 do
4605  # Extract the first word of "$ac_prog", so it can be a program name with args.
4606 set dummy $ac_prog; ac_word=$2
4607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4608 $as_echo_n "checking for $ac_word... " >&6; }
4609 if test "${ac_cv_prog_MPICC+set}" = set; then :
4610  $as_echo_n "(cached) " >&6
4611 else
4612  if test -n "$MPICC"; then
4613  ac_cv_prog_MPICC="$MPICC" # Let the user override the test.
4614 else
4615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4616 for as_dir in $PATH
4617 do
4618  IFS=$as_save_IFS
4619  test -z "$as_dir" && as_dir=.
4620    for ac_exec_ext in '' $ac_executable_extensions; do
4621  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4622    ac_cv_prog_MPICC="$ac_prog"
4623    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4624    break 2
4625  fi
4626 done
4627  done
4628 IFS=$as_save_IFS
4629
4630 fi
4631 fi
4632 MPICC=$ac_cv_prog_MPICC
4633 if test -n "$MPICC"; then
4634  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPICC" >&5
4635 $as_echo "$MPICC" >&6; }
4636 else
4637  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4638 $as_echo "no" >&6; }
4639 fi
4640
4641
4642  test -n "$MPICC" && break
4643 done
4644 test -n "$MPICC" || MPICC="$CC"
4645
4646        ax_mpi_save_CC="$CC"
4647        CC="$MPICC"
4648
4649
4650
4651 if test x = x"$MPILIBS"; then
4652        ac_fn_c_check_func "$LINENO" "MPI_Init" "ac_cv_func_MPI_Init"
4653 if test "x$ac_cv_func_MPI_Init" = x""yes; then :
4654  MPILIBS=" "
4655 fi
4656
4657 fi
4658
4659 if test x = x"$MPILIBS"; then
4660        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpi" >&5
4661 $as_echo_n "checking for MPI_Init in -lmpi... " >&6; }
4662 if test "${ac_cv_lib_mpi_MPI_Init+set}" = set; then :
4663  $as_echo_n "(cached) " >&6
4664 else
4665  ac_check_lib_save_LIBS=$LIBS
4666 LIBS="-lmpi  $LIBS"
4667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4668 /* end confdefs.h.  */
4669
4670 /* Override any GCC internal prototype to avoid an error.
4671   Use char because int might match the return type of a GCC
4672   builtin and then its argument prototype would still apply.  */
4673 #ifdef __cplusplus
4674 extern "C"
4675 #endif
4676 char MPI_Init ();
4677 int
4678 main ()
4679 {
4680 return MPI_Init ();
4681  ;
4682  return 0;
4683 }
4684 _ACEOF
4685 if ac_fn_c_try_link "$LINENO"; then :
4686  ac_cv_lib_mpi_MPI_Init=yes
4687 else
4688  ac_cv_lib_mpi_MPI_Init=no
4689 fi
4690 rm -f core conftest.err conftest.$ac_objext \
4691    conftest$ac_exeext conftest.$ac_ext
4692 LIBS=$ac_check_lib_save_LIBS
4693 fi
4694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpi_MPI_Init" >&5
4695 $as_echo "$ac_cv_lib_mpi_MPI_Init" >&6; }
4696 if test "x$ac_cv_lib_mpi_MPI_Init" = x""yes; then :
4697  MPILIBS="-lmpi"
4698 fi
4699
4700 fi
4701 if test x = x"$MPILIBS"; then
4702        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpich" >&5
4703 $as_echo_n "checking for MPI_Init in -lmpich... " >&6; }
4704 if test "${ac_cv_lib_mpich_MPI_Init+set}" = set; then :
4705  $as_echo_n "(cached) " >&6
4706 else
4707  ac_check_lib_save_LIBS=$LIBS
4708 LIBS="-lmpich  $LIBS"
4709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4710 /* end confdefs.h.  */
4711
4712 /* Override any GCC internal prototype to avoid an error.
4713   Use char because int might match the return type of a GCC
4714   builtin and then its argument prototype would still apply.  */
4715 #ifdef __cplusplus
4716 extern "C"
4717 #endif
4718 char MPI_Init ();
4719 int
4720 main ()
4721 {
4722 return MPI_Init ();
4723  ;
4724  return 0;
4725 }
4726 _ACEOF
4727 if ac_fn_c_try_link "$LINENO"; then :
4728  ac_cv_lib_mpich_MPI_Init=yes
4729 else
4730  ac_cv_lib_mpich_MPI_Init=no
4731 fi
4732 rm -f core conftest.err conftest.$ac_objext \
4733    conftest$ac_exeext conftest.$ac_ext
4734 LIBS=$ac_check_lib_save_LIBS
4735 fi
4736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpich_MPI_Init" >&5
4737 $as_echo "$ac_cv_lib_mpich_MPI_Init" >&6; }
4738 if test "x$ac_cv_lib_mpich_MPI_Init" = x""yes; then :
4739  MPILIBS="-lmpich"
4740 fi
4741
4742 fi
4743
4744 if test x != x"$MPILIBS"; then
4745        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpi.h" >&5
4746 $as_echo_n "checking for mpi.h... " >&6; }
4747        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4748 /* end confdefs.h.  */
4749 #include <mpi.h>
4750 int
4751 main ()
4752 {
4753
4754  ;
4755  return 0;
4756 }
4757 _ACEOF
4758 if ac_fn_c_try_compile "$LINENO"; then :
4759  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4760 $as_echo "yes" >&6; }
4761 else
4762  MPILIBS=""
4763                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4764 $as_echo "no" >&6; }
4765 fi
4766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4767 fi
3900  
4769 CC="$ax_mpi_save_CC"
4770
4771
4772
4773 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
4774 if test x = x"$MPILIBS"; then
4775        USE_MPI="no"
4776       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No suitable C MPI implementation found. openmd_MPI will not be built." >&5
4777 $as_echo "$as_me: WARNING: No suitable C MPI implementation found. openmd_MPI will not be built." >&2;}
4778        :
4779 else
4780        USE_MPI="yes"
4781        :
4782 fi
4783
4784
4785 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 4832 | 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 4920 | 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 4948 | 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 4983 | 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  
4202  
4203  
4204 <        for ac_prog in openmpif90 mpif90 mpxlf95_r mpxlf90_r mpxlf95 mpxlf90 mpf90 cmpif90c
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 5020 | 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 5030 | 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; }
5055 <                        cat > conftest.$ac_ext <<_ACEOF
5056 <      program main
5057 <      call MPI_Init
5058 <      end
5059 < _ACEOF
5060 < 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=" "
5062                                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5063 $as_echo "yes" >&6; }
5064 else
5065  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5066 $as_echo "no" >&6; }
4259   fi
5068 rm -f core conftest.err conftest.$ac_objext \
5069    conftest$ac_exeext conftest.$ac_ext
5070 fi
4260  
5072        if test x = x"$MPILIBS"; then
5073                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lfmpi" >&5
5074 $as_echo_n "checking for MPI_Init in -lfmpi... " >&6; }
5075 if test "${ac_cv_lib_fmpi_MPI_Init+set}" = set; then :
5076  $as_echo_n "(cached) " >&6
5077 else
5078  ac_check_lib_save_LIBS=$LIBS
5079 LIBS="-lfmpi  $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_fmpi_MPI_Init=yes
5087 else
5088  ac_cv_lib_fmpi_MPI_Init=no
4261   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_fmpi_MPI_Init" >&5
5095 $as_echo "$ac_cv_lib_fmpi_MPI_Init" >&6; }
5096 if test "x$ac_cv_lib_fmpi_MPI_Init" = x""yes; then :
5097  MPILIBS="-lfmpi"
5098 fi
4262  
5100        fi
5101        if test x = x"$MPILIBS"; then
5102                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpichf90" >&5
5103 $as_echo_n "checking for MPI_Init in -lmpichf90... " >&6; }
5104 if test "${ac_cv_lib_mpichf90_MPI_Init+set}" = set; then :
5105  $as_echo_n "(cached) " >&6
5106 else
5107  ac_check_lib_save_LIBS=$LIBS
5108 LIBS="-lmpichf90  $LIBS"
5109 cat > conftest.$ac_ext <<_ACEOF
5110      program main
5111      call MPI_Init
5112      end
5113 _ACEOF
5114 if ac_fn_fc_try_link "$LINENO"; then :
5115  ac_cv_lib_mpichf90_MPI_Init=yes
5116 else
5117  ac_cv_lib_mpichf90_MPI_Init=no
5118 fi
5119 rm -f core conftest.err conftest.$ac_objext \
5120    conftest$ac_exeext conftest.$ac_ext
5121 LIBS=$ac_check_lib_save_LIBS
5122 fi
5123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpichf90_MPI_Init" >&5
5124 $as_echo "$ac_cv_lib_mpichf90_MPI_Init" >&6; }
5125 if test "x$ac_cv_lib_mpichf90_MPI_Init" = x""yes; then :
5126  MPILIBS="-lmpichf90"
5127 fi
5128
5129        fi
5130
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 5152 | 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 5160 | 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 5181 | 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 5206 | 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. openmd_MPI will not be built." >&5
4381 < $as_echo "$as_me: WARNING: No suitable Fortran MPI implementation found. openmd_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 5222 | Line 4386 | fi
4386   fi
4387  
4388  
5225 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  
5232 fi
4397  
4398  
5235 # Checks for programs.
5236 ac_ext=cpp
5237 ac_cpp='$CXXCPP $CPPFLAGS'
5238 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5239 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5240 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5241 if test -z "$CXX"; then
5242  if test -n "$CCC"; then
5243    CXX=$CCC
5244  else
5245    if test -n "$ac_tool_prefix"; then
5246  for ac_prog in $CXX icpc pathCC pgCC c++ xlc++ xlC g++ CC
5247  do
5248    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5249 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5251 $as_echo_n "checking for $ac_word... " >&6; }
5252 if test "${ac_cv_prog_CXX+set}" = set; then :
5253  $as_echo_n "(cached) " >&6
5254 else
5255  if test -n "$CXX"; then
5256  ac_cv_prog_CXX="$CXX" # Let the user override the test.
5257 else
5258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5259 for as_dir in $PATH
5260 do
5261  IFS=$as_save_IFS
5262  test -z "$as_dir" && as_dir=.
5263    for ac_exec_ext in '' $ac_executable_extensions; do
5264  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5265    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5266    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5267    break 2
5268  fi
5269 done
5270  done
5271 IFS=$as_save_IFS
4399  
5273 fi
5274 fi
5275 CXX=$ac_cv_prog_CXX
5276 if test -n "$CXX"; then
5277  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5278 $as_echo "$CXX" >&6; }
5279 else
5280  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5281 $as_echo "no" >&6; }
5282 fi
4400  
4401  
4402 <    test -n "$CXX" && break
5286 <  done
5287 < fi
5288 < if test -z "$CXX"; then
5289 <  ac_ct_CXX=$CXX
5290 <  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 5306 | 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 5316 | 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
5341 <    CXX=$ac_ct_CXX
5342 <  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  
5345  fi
4456   fi
5347 # Provide some information about the compiler.
5348 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5349 set X $ac_compile
5350 ac_compiler=$2
5351 for ac_option in --version -v -V -qversion; do
5352  { { ac_try="$ac_compiler $ac_option >&5"
5353 case "(($ac_try" in
5354  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5355  *) ac_try_echo=$ac_try;;
5356 esac
5357 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5358 $as_echo "$ac_try_echo"; } >&5
5359  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5360  ac_status=$?
5361  if test -s conftest.err; then
5362    sed '10a\
5363 ... rest of stderr output deleted ...
5364         10q' conftest.err >conftest.er1
5365    cat conftest.er1 >&5
5366  fi
5367  rm -f conftest.er1 conftest.err
5368  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5369  test $ac_status = 0; }
5370 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__
5384 <       choke me
5385 < #endif
5386 <
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
5404 < else
5405 <  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
5417 <   CXXFLAGS="-g"
5418 <   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
5437 < main ()
5438 < {
4541 > fi
4542  
4543 <  ;
4544 <  return 0;
4545 < }
4546 < _ACEOF
5444 < if ac_fn_cxx_try_compile "$LINENO"; then :
5445 <
5446 < else
5447 <  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5448 <         CXXFLAGS="-g"
5449 <         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 5457 | 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
5465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5466 fi
5467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5468   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5469 fi
5470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5471 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5472 if test "$ac_test_CXXFLAGS" = set; then
5473  CXXFLAGS=$ac_save_CXXFLAGS
5474 elif test $ac_cv_prog_cxx_g = yes; then
5475  if test "$GXX" = yes; then
5476    CXXFLAGS="-g -O2"
5477  else
5478    CXXFLAGS="-g"
5479  fi
5480 else
5481  if test "$GXX" = yes; then
5482    CXXFLAGS="-O2"
5483  else
5484    CXXFLAGS=
5485  fi
5486 fi
5487 ac_ext=${ac_fc_srcext-f}
5488 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
5489 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
5490 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
4567  
4568 < ac_ext=c
5493 < ac_cpp='$CPP $CPPFLAGS'
5494 < ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5495 < ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5496 < ac_compiler_gnu=$ac_cv_c_compiler_gnu
5497 < if test -n "$ac_tool_prefix"; then
5498 <  for ac_prog in $CC icc pathcc pgcc cc xlc gcc
5499 <  do
5500 <    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5501 < set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5502 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5503 < $as_echo_n "checking for $ac_word... " >&6; }
5504 < if test "${ac_cv_prog_CC+set}" = set; then :
5505 <  $as_echo_n "(cached) " >&6
5506 < else
5507 <  if test -n "$CC"; then
5508 <  ac_cv_prog_CC="$CC" # Let the user override the test.
5509 < else
5510 < as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5511 < for as_dir in $PATH
5512 < do
5513 <  IFS=$as_save_IFS
5514 <  test -z "$as_dir" && as_dir=.
5515 <    for ac_exec_ext in '' $ac_executable_extensions; do
5516 <  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5517 <    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5518 <    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5519 <    break 2
5520 <  fi
5521 < done
5522 <  done
5523 < IFS=$as_save_IFS
4568 > CC="$ax_mpi_save_CC"
4569  
5525 fi
5526 fi
5527 CC=$ac_cv_prog_CC
5528 if test -n "$CC"; then
5529  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5530 $as_echo "$CC" >&6; }
5531 else
5532  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5533 $as_echo "no" >&6; }
5534 fi
4570  
4571  
4572 <    test -n "$CC" && break
4573 <  done
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 >        USE_MPI="yes"
4580 >        :
4581   fi
5540 if test -z "$CC"; then
5541  ac_ct_CC=$CC
5542  for ac_prog in $CC icc pathcc pgcc cc xlc gcc
5543 do
5544  # Extract the first word of "$ac_prog", so it can be a program name with args.
5545 set dummy $ac_prog; ac_word=$2
5546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5547 $as_echo_n "checking for $ac_word... " >&6; }
5548 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5549  $as_echo_n "(cached) " >&6
5550 else
5551  if test -n "$ac_ct_CC"; then
5552  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5553 else
5554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5555 for as_dir in $PATH
5556 do
5557  IFS=$as_save_IFS
5558  test -z "$as_dir" && as_dir=.
5559    for ac_exec_ext in '' $ac_executable_extensions; do
5560  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5561    ac_cv_prog_ac_ct_CC="$ac_prog"
5562    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5563    break 2
5564  fi
5565 done
5566  done
5567 IFS=$as_save_IFS
4582  
5569 fi
5570 fi
5571 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5572 if test -n "$ac_ct_CC"; then
5573  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5574 $as_echo "$ac_ct_CC" >&6; }
5575 else
5576  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5577 $as_echo "no" >&6; }
5578 fi
4583  
5580
5581  test -n "$ac_ct_CC" && break
5582 done
5583
5584  if test "x$ac_ct_CC" = x; then
5585    CC=""
5586  else
5587    case $cross_compiling:$ac_tool_warned in
5588 yes:)
5589 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5590 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5591 ac_tool_warned=yes ;;
5592 esac
5593    CC=$ac_ct_CC
5594  fi
4584   fi
4585  
4586 + if test $USE_MPI != no; then :
4587  
5598 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5599 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5600 as_fn_error "no acceptable C compiler found in \$PATH
5601 See \`config.log' for more details." "$LINENO" 5; }
5602
5603 # Provide some information about the compiler.
5604 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5605 set X $ac_compile
5606 ac_compiler=$2
5607 for ac_option in --version -v -V -qversion; do
5608  { { ac_try="$ac_compiler $ac_option >&5"
5609 case "(($ac_try" in
5610  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5611  *) ac_try_echo=$ac_try;;
5612 esac
5613 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5614 $as_echo "$ac_try_echo"; } >&5
5615  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5616  ac_status=$?
5617  if test -s conftest.err; then
5618    sed '10a\
5619 ... rest of stderr output deleted ...
5620         10q' conftest.err >conftest.er1
5621    cat conftest.er1 >&5
5622  fi
5623  rm -f conftest.er1 conftest.err
5624  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5625  test $ac_status = 0; }
5626 done
5627
5628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5629 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5630 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5631  $as_echo_n "(cached) " >&6
5632 else
5633  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5634 /* end confdefs.h.  */
5635
5636 int
5637 main ()
5638 {
5639 #ifndef __GNUC__
5640       choke me
5641 #endif
5642
5643  ;
5644  return 0;
5645 }
5646 _ACEOF
5647 if ac_fn_c_try_compile "$LINENO"; then :
5648  ac_compiler_gnu=yes
5649 else
5650  ac_compiler_gnu=no
5651 fi
5652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5653 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5654
5655 fi
5656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5657 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5658 if test $ac_compiler_gnu = yes; then
5659  GCC=yes
5660 else
5661  GCC=
5662 fi
5663 ac_test_CFLAGS=${CFLAGS+set}
5664 ac_save_CFLAGS=$CFLAGS
5665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5666 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5667 if test "${ac_cv_prog_cc_g+set}" = set; then :
5668  $as_echo_n "(cached) " >&6
5669 else
5670  ac_save_c_werror_flag=$ac_c_werror_flag
5671   ac_c_werror_flag=yes
5672   ac_cv_prog_cc_g=no
5673   CFLAGS="-g"
5674   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5675 /* end confdefs.h.  */
5676
5677 int
5678 main ()
5679 {
5680
5681  ;
5682  return 0;
5683 }
5684 _ACEOF
5685 if ac_fn_c_try_compile "$LINENO"; then :
5686  ac_cv_prog_cc_g=yes
5687 else
5688  CFLAGS=""
5689      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5690 /* end confdefs.h.  */
5691
5692 int
5693 main ()
5694 {
5695
5696  ;
5697  return 0;
5698 }
5699 _ACEOF
5700 if ac_fn_c_try_compile "$LINENO"; then :
5701
5702 else
5703  ac_c_werror_flag=$ac_save_c_werror_flag
5704         CFLAGS="-g"
5705         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5706 /* end confdefs.h.  */
5707
5708 int
5709 main ()
5710 {
5711
5712  ;
5713  return 0;
5714 }
5715 _ACEOF
5716 if ac_fn_c_try_compile "$LINENO"; then :
5717  ac_cv_prog_cc_g=yes
5718 fi
5719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5720 fi
5721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5722 fi
5723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5724   ac_c_werror_flag=$ac_save_c_werror_flag
5725 fi
5726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5727 $as_echo "$ac_cv_prog_cc_g" >&6; }
5728 if test "$ac_test_CFLAGS" = set; then
5729  CFLAGS=$ac_save_CFLAGS
5730 elif test $ac_cv_prog_cc_g = yes; then
5731  if test "$GCC" = yes; then
5732    CFLAGS="-g -O2"
5733  else
5734    CFLAGS="-g"
5735  fi
5736 else
5737  if test "$GCC" = yes; then
5738    CFLAGS="-O2"
5739  else
5740    CFLAGS=
5741  fi
5742 fi
5743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5744 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5745 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5746  $as_echo_n "(cached) " >&6
5747 else
5748  ac_cv_prog_cc_c89=no
5749 ac_save_CC=$CC
5750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5751 /* end confdefs.h.  */
5752 #include <stdarg.h>
5753 #include <stdio.h>
5754 #include <sys/types.h>
5755 #include <sys/stat.h>
5756 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5757 struct buf { int x; };
5758 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5759 static char *e (p, i)
5760     char **p;
5761     int i;
5762 {
5763  return p[i];
5764 }
5765 static char *f (char * (*g) (char **, int), char **p, ...)
5766 {
5767  char *s;
5768  va_list v;
5769  va_start (v,p);
5770  s = g (p, va_arg (v,int));
5771  va_end (v);
5772  return s;
5773 }
5774
5775 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5776   function prototypes and stuff, but not '\xHH' hex character constants.
5777   These don't provoke an error unfortunately, instead are silently treated
5778   as 'x'.  The following induces an error, until -std is added to get
5779   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5780   array size at least.  It's necessary to write '\x00'==0 to get something
5781   that's true only with -std.  */
5782 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5783
5784 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5785   inside strings and character constants.  */
5786 #define FOO(x) 'x'
5787 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5788
5789 int test (int i, double x);
5790 struct s1 {int (*f) (int a);};
5791 struct s2 {int (*f) (double a);};
5792 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5793 int argc;
5794 char **argv;
5795 int
5796 main ()
5797 {
5798 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5799  ;
5800  return 0;
5801 }
5802 _ACEOF
5803 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5804        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5805 do
5806  CC="$ac_save_CC $ac_arg"
5807  if ac_fn_c_try_compile "$LINENO"; then :
5808  ac_cv_prog_cc_c89=$ac_arg
5809 fi
5810 rm -f core conftest.err conftest.$ac_objext
5811  test "x$ac_cv_prog_cc_c89" != "xno" && break
5812 done
5813 rm -f conftest.$ac_ext
5814 CC=$ac_save_CC
5815
5816 fi
5817 # AC_CACHE_VAL
5818 case "x$ac_cv_prog_cc_c89" in
5819  x)
5820    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5821 $as_echo "none needed" >&6; } ;;
5822  xno)
5823    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5824 $as_echo "unsupported" >&6; } ;;
5825  *)
5826    CC="$CC $ac_cv_prog_cc_c89"
5827    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5828 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5829 esac
5830 if test "x$ac_cv_prog_cc_c89" != xno; then :
5831
5832 fi
5833
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  
4593 < ac_ext=${ac_fc_srcext-f}
4594 < ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
5841 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
5842 < ac_compiler_gnu=$ac_cv_fc_compiler_gnu
5843 < if test -n "$ac_tool_prefix"; then
5844 <  for ac_prog in $FC ifort ifc pathf95 pgf95 xlf95 lf95 epcf90 pathf90 xlf90 f95 f90 gfortran g95 fort
5845 <  do
5846 <    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5847 < set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5848 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5849 < $as_echo_n "checking for $ac_word... " >&6; }
5850 < if test "${ac_cv_prog_FC+set}" = set; then :
5851 <  $as_echo_n "(cached) " >&6
5852 < else
5853 <  if test -n "$FC"; then
5854 <  ac_cv_prog_FC="$FC" # Let the user override the test.
5855 < else
5856 < as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5857 < for as_dir in $PATH
5858 < do
5859 <  IFS=$as_save_IFS
5860 <  test -z "$as_dir" && as_dir=.
5861 <    for ac_exec_ext in '' $ac_executable_extensions; do
5862 <  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5863 <    ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
5864 <    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5865 <    break 2
5866 <  fi
5867 < done
5868 <  done
5869 < IFS=$as_save_IFS
4593 >
4594 >
4595  
5871 fi
5872 fi
5873 FC=$ac_cv_prog_FC
5874 if test -n "$FC"; then
5875  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5
5876 $as_echo "$FC" >&6; }
5877 else
5878  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5879 $as_echo "no" >&6; }
5880 fi
4596  
4597  
4598 <    test -n "$FC" && break
5884 <  done
5885 < fi
5886 < if test -z "$FC"; then
5887 <  ac_ct_FC=$FC
5888 <  for ac_prog in $FC ifort ifc pathf95 pgf95 xlf95 lf95 epcf90 pathf90 xlf90 f95 f90 gfortran g95 fort
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_FC+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_FC"; then
4608 <  ac_cv_prog_ac_ct_FC="$ac_ct_FC" # 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 5904 | 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_FC="$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 5914 | Line 4624 | fi
4624  
4625   fi
4626   fi
4627 < ac_ct_FC=$ac_cv_prog_ac_ct_FC
4628 < if test -n "$ac_ct_FC"; then
4629 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5
4630 < $as_echo "$ac_ct_FC" >&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_FC" && break
4637 >  test -n "$MPIFC" && break
4638   done
4639 + test -n "$MPIFC" || MPIFC="$FC"
4640  
4641 <  if test "x$ac_ct_FC" = x; then
4642 <    FC=""
5932 <  else
5933 <    case $cross_compiling:$ac_tool_warned in
5934 < yes:)
5935 < { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5936 < $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5937 < ac_tool_warned=yes ;;
5938 < esac
5939 <    FC=$ac_ct_FC
5940 <  fi
5941 < fi
4641 >        ax_mpi_save_FC="$FC"
4642 >        FC="$MPIFC"
4643  
4644  
5944 # Provide some information about the compiler.
5945 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5
5946 set X $ac_compile
5947 ac_compiler=$2
5948 for ac_option in --version -v -V -qversion; do
5949  { { ac_try="$ac_compiler $ac_option >&5"
5950 case "(($ac_try" in
5951  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5952  *) ac_try_echo=$ac_try;;
5953 esac
5954 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5955 $as_echo "$ac_try_echo"; } >&5
5956  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5957  ac_status=$?
5958  if test -s conftest.err; then
5959    sed '10a\
5960 ... rest of stderr output deleted ...
5961         10q' conftest.err >conftest.er1
5962    cat conftest.er1 >&5
5963  fi
5964  rm -f conftest.er1 conftest.err
5965  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5966  test $ac_status = 0; }
5967 done
5968 rm -f a.out
4645  
4646 < # If we don't use `.F' as extension, the preprocessor is not run on the
4647 < # input file.  (Note that this only needs to work for GNU compilers.)
4648 < ac_save_ext=$ac_ext
4649 < ac_ext=F
4650 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5
4651 < $as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; }
4652 < if test "${ac_cv_fc_compiler_gnu+set}" = set; then :
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 <  cat > conftest.$ac_ext <<_ACEOF
4672 >  ac_check_lib_save_LIBS=$LIBS
4673 > LIBS="-lfmpi  $LIBS"
4674 > cat > conftest.$ac_ext <<_ACEOF
4675        program main
4676 < #ifndef __GNUC__
4677 <       choke me
4678 < #endif
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 +        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_compile "$LINENO"; then :
4709 <  ac_compiler_gnu=yes
4708 > if ac_fn_fc_try_link "$LINENO"; then :
4709 >  ac_cv_lib_mpichf90_MPI_Init=yes
4710   else
4711 <  ac_compiler_gnu=no
4711 >  ac_cv_lib_mpichf90_MPI_Init=no
4712   fi
4713 < rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4714 < ac_cv_fc_compiler_gnu=$ac_compiler_gnu
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 + 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 +  ac_check_lib_save_LIBS=$LIBS
4732 + LIBS="-lmpi  $LIBS"
4733 + cat > conftest.$ac_ext <<_ACEOF
4734 +      program main
4735 +      call MPI_Init
4736 +      end
4737 + _ACEOF
4738 + if ac_fn_fc_try_link "$LINENO"; then :
4739 +  ac_cv_lib_mpi_MPI_Init=yes
4740 + else
4741 +  ac_cv_lib_mpi_MPI_Init=no
4742   fi
4743 < { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5
4744 < $as_echo "$ac_cv_fc_compiler_gnu" >&6; }
4745 < ac_ext=$ac_save_ext
4746 < ac_test_FCFLAGS=${FCFLAGS+set}
4747 < ac_save_FCFLAGS=$FCFLAGS
4748 < FCFLAGS=
4749 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5
4750 < $as_echo_n "checking whether $FC accepts -g... " >&6; }
4751 < if test "${ac_cv_prog_fc_g+set}" = set; then :
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 > 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
6019
4801   fi
4802 < { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5
4803 < $as_echo "$ac_cv_prog_fc_g" >&6; }
4804 < if test "$ac_test_FCFLAGS" = set; then
4805 <  FCFLAGS=$ac_save_FCFLAGS
4806 < elif test $ac_cv_prog_fc_g = yes; then
4807 <  if test "x$ac_cv_fc_compiler_gnu" = xyes; then
4808 <    FCFLAGS="-g -O2"
4809 <  else
4810 <    FCFLAGS="-g"
4811 <  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 <  if test "x$ac_cv_fc_compiler_gnu" = xyes; then
4815 <    FCFLAGS="-O2"
6034 <  else
6035 <    FCFLAGS=
6036 <  fi
4814 >        USE_MPI="yes"
4815 >        :
4816   fi
4817  
6039 ac_ext=${ac_fc_srcext-f}
6040 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
6041 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
6042 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
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 +
4829 +        CXX=$save_CXX
4830 +        CC=$save_CC
4831 +        FC=$save_FC
4832 +        LIBS=$save_LIBS
4833 +
4834 +
4835 + fi
4836 +
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 6053 | 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 6083 | 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 6099 | 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 6142 | 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 6158 | 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 6179 | 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 6228 | 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 6242 | 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 6294 | 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 6322 | 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 6330 | 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 6354 | 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 6394 | 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 6446 | 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 6496 | 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 6522 | 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 6578 | 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 6663 | Line 5458 | $as_echo_n "checking for $ac_word... " >&6; }
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 6762 | 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 6778 | 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 6816 | 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 6836 | 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 6858 | 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 6873 | 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 6899 | 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 6993 | 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 7076 | 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 7086 | 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 7116 | 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 7181 | 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 7206 | 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 7296 | 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 7393 | 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 7489 | 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 7504 | 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 7650 | 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 7728 | 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 7758 | 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 7823 | 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 7848 | 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 7938 | 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 8161 | 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 8373 | 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 8415 | 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 8429 | 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 8554 | 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
8558 <   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 8610 | 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 8652 | 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 8750 | 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 8792 | 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 8809 | 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 8851 | 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 8868 | 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 8910 | 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 8985 | Line 7794 | 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 9021 | 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 9043 | 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 9074 | 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 9085 | 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 9133 | Line 8076 | $as_echo "$as_me: WARNING: " >&2;}
8076   $as_echo "$as_me: WARNING: " >&2;}
8077          fi
8078      fi
9136 fi
9137
9138
9139
9140
9141
9142 ac_ext=cpp
9143 ac_cpp='$CXXCPP $CPPFLAGS'
9144 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9145 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9146 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
9148 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
9149 if test -z "$CXXCPP"; then
9150  if test "${ac_cv_prog_CXXCPP+set}" = set; then :
9151  $as_echo_n "(cached) " >&6
9152 else
9153      # Double quotes because CXXCPP needs to be expanded
9154    for CXXCPP in "$CXX -E" "/lib/cpp"
9155    do
9156      ac_preproc_ok=false
9157 for ac_cxx_preproc_warn_flag in '' yes
9158 do
9159  # Use a header file that comes with gcc, so configuring glibc
9160  # with a fresh cross-compiler works.
9161  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9162  # <limits.h> exists even on freestanding compilers.
9163  # On the NeXT, cc -E runs the code through the compiler's parser,
9164  # not just through cpp. "Syntax error" is here to catch this case.
9165  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9166 /* end confdefs.h.  */
9167 #ifdef __STDC__
9168 # include <limits.h>
9169 #else
9170 # include <assert.h>
9171 #endif
9172                     Syntax error
9173 _ACEOF
9174 if ac_fn_cxx_try_cpp "$LINENO"; then :
9175
9176 else
9177  # Broken: fails on valid input.
9178 continue
8079   fi
9180 rm -f conftest.err conftest.$ac_ext
8080  
9182  # OK, works on sane cases.  Now check whether nonexistent headers
9183  # can be detected and how.
9184  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9185 /* end confdefs.h.  */
9186 #include <ac_nonexistent.h>
9187 _ACEOF
9188 if ac_fn_cxx_try_cpp "$LINENO"; then :
9189  # Broken: success on invalid input.
9190 continue
9191 else
9192  # Passes both tests.
9193 ac_preproc_ok=:
9194 break
9195 fi
9196 rm -f conftest.err conftest.$ac_ext
8081  
9198 done
9199 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9200 rm -f conftest.err conftest.$ac_ext
9201 if $ac_preproc_ok; then :
9202  break
9203 fi
8082  
9205    done
9206    ac_cv_prog_CXXCPP=$CXXCPP
8083  
9208 fi
9209  CXXCPP=$ac_cv_prog_CXXCPP
9210 else
9211  ac_cv_prog_CXXCPP=$CXXCPP
9212 fi
9213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
9214 $as_echo "$CXXCPP" >&6; }
9215 ac_preproc_ok=false
9216 for ac_cxx_preproc_warn_flag in '' yes
9217 do
9218  # Use a header file that comes with gcc, so configuring glibc
9219  # with a fresh cross-compiler works.
9220  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9221  # <limits.h> exists even on freestanding compilers.
9222  # On the NeXT, cc -E runs the code through the compiler's parser,
9223  # not just through cpp. "Syntax error" is here to catch this case.
9224  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9225 /* end confdefs.h.  */
9226 #ifdef __STDC__
9227 # include <limits.h>
9228 #else
9229 # include <assert.h>
9230 #endif
9231                     Syntax error
9232 _ACEOF
9233 if ac_fn_cxx_try_cpp "$LINENO"; then :
8084  
9235 else
9236  # Broken: fails on valid input.
9237 continue
9238 fi
9239 rm -f conftest.err conftest.$ac_ext
9240
9241  # OK, works on sane cases.  Now check whether nonexistent headers
9242  # can be detected and how.
9243  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9244 /* end confdefs.h.  */
9245 #include <ac_nonexistent.h>
9246 _ACEOF
9247 if ac_fn_cxx_try_cpp "$LINENO"; then :
9248  # Broken: success on invalid input.
9249 continue
9250 else
9251  # Passes both tests.
9252 ac_preproc_ok=:
9253 break
9254 fi
9255 rm -f conftest.err conftest.$ac_ext
9256
9257 done
9258 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9259 rm -f conftest.err conftest.$ac_ext
9260 if $ac_preproc_ok; then :
9261
9262 else
9263  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9264 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9265 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
9266 See \`config.log' for more details." "$LINENO" 5; }
9267 fi
9268
9269 ac_ext=cpp
9270 ac_cpp='$CXXCPP $CPPFLAGS'
9271 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9272 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9273 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9274
9275
8085   #
8086   # Handle user hints
8087   #
# Line 9317 | 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 9325 | 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 9421 | 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 9543 | 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
9547 <   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 9557 | 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 9589 | 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 9600 | 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];
9603 #       if defined __xlc__ || defined __GNUC__
9604         /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
9605            reported by James Lemley on 2005-10-05; see
9606            http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
9607            This test is not quite right, since xlc is allowed to
9608            reject this program, as the initializer for xlcbug is
9609            not one of the forms that C requires support for.
9610            However, doing the test right would require a runtime
9611            test, and that would make cross-compilation harder.
9612            Let us hope that IBM fixes the xlc bug, and also adds
9613            support for this kind of constant expression.  In the
9614            meantime, this test will reject xlc, which is OK, since
9615            our stdbool.h substitute should suffice.  We also test
9616            this with GCC, where it should work, to detect more
9617            quickly whether someone messes up the test in the
9618            future.  */
9619         char digs[] = "0123456789";
9620         int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
9621 #       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 9638 | 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 9658 | 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 9675 | 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 9763 | 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 9804 | 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 9816 | 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 9862 | 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 9873 | 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 9937 | 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 9948 | 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 10013 | 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
10017 <   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 10025 | 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 10067 | 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 10095 | 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 10154 | 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 10203 | 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 10218 | 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
10222 <   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 10276 | 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 10325 | 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 10386 | 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 10491 | 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 10533 | 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 10629 | 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 10698 | 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 10736 | 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 10745 | 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 10793 | 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 10885 | 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 10904 | 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 10919 | 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 11020 | 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 11065 | 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 11273 | 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 11327 | Line 10128 | This file was extended by OpenMD $as_me 1.0, which was
10128   # values after options handling.
10129   ac_log="
10130   This file was extended by OpenMD $as_me 1.0, which was
10131 < generated by GNU Autoconf 2.65.  Invocation command line was
10131 > generated by GNU Autoconf 2.68.  Invocation command line was
10132  
10133    CONFIG_FILES    = $CONFIG_FILES
10134    CONFIG_HEADERS  = $CONFIG_HEADERS
# Line 11389 | Line 10190 | OpenMD config.status 1.0
10190   ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
10191   ac_cs_version="\\
10192   OpenMD config.status 1.0
10193 < configured by $0, generated by GNU Autoconf 2.65,
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 11408 | 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 11434 | Line 10240 | do
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 11446 | 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 11455 | 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 11512 | 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 11534 | 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 11544 | 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 11566 | 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 11580 | 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 11599 | 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 11647 | 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 11679 | 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 11705 | 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 11717 | 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 11806 | 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 11819 | 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 11838 | 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 11847 | 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 11873 | 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 12004 | 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 12029 | 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 12068 | 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 12089 | 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