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

Comparing trunk/configure (file contents):
Revision 1379 by gezelter, Thu Oct 22 14:09:13 2009 UTC vs.
Revision 1487 by gezelter, Mon Aug 2 14:22:55 2010 UTC

# Line 1 | Line 1
1   #! /bin/sh
2   # Guess values for system-dependent variables and create Makefiles.
3 < # Generated by GNU Autoconf 2.64 for OOPSE 4.0.
3 > # Generated by GNU Autoconf 2.65 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
10 < # Foundation, Inc.
9 > # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
10 > # Inc.
11   #
12 + #
13   # This configure script is free software; the Free Software Foundation
14   # gives unlimited permission to copy, distribute and modify it.
15   ## -------------------- ##
# Line 527 | Line 529 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
529   as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
530  
531  
532 < exec 7<&0 </dev/null 6>&1
532 > test -n "$DJDIR" || exec 7<&0 </dev/null
533 > exec 6>&1
534  
535   # Name of the host.
536   # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
# Line 547 | Line 550 | MAKEFLAGS=
550   MAKEFLAGS=
551  
552   # Identity of this package.
553 < PACKAGE_NAME='OOPSE'
554 < PACKAGE_TARNAME='oopse'
555 < PACKAGE_VERSION='4.0'
556 < PACKAGE_STRING='OOPSE 4.0'
553 > PACKAGE_NAME='OpenMD'
554 > PACKAGE_TARNAME='openmd'
555 > PACKAGE_VERSION='1.0'
556 > PACKAGE_STRING='OpenMD 1.0'
557   PACKAGE_BUGREPORT='gezelter@nd.edu'
558   PACKAGE_URL=''
559  
560 < ac_unique_file="src/applications/oopse/oopse.cpp"
560 > ac_unique_file="src/applications/openmd/openmd.cpp"
561   ac_default_prefix="/usr/local"
562   # Factoring default headers for most tests.
563   ac_includes_default="\
# Line 594 | Line 597 | SUBDIRS
597  
598   ac_subst_vars='LTLIBOBJS
599   SUBDIRS
600 < OOPSE_HOME
601 < OOPSE
600 > OPENMD_HOME
601 > OPENMD
602   MKINSTALLDIRS
603   BATEXT
604   enable_latex_docs
# Line 610 | Line 613 | OPENBABEL_INC_DIR
613   OPENBABEL_LIB
614   OPENBABEL_LIB_DIR
615   OPENBABEL_INC_DIR
613 CXXCPP
616   USE_QHULL
617   QHULL
618   QHULL_LIB_DIR
619   QHULL_INC_DIR
620 + CXXCPP
621   FFTW_LIBS
622   FFTW_LIB_DIR
623   FFTW_INC_DIR
# Line 647 | Line 650 | MPIFC
650   CPP
651   USE_MPI
652   MPIFC
653 + MPICC
654 + MPILIBS
655 + MPICXX
656 + LIBDL
657   ac_ct_FC
658   FCFLAGS
659   FC
653 MPICC
660   ac_ct_CC
661   CFLAGS
662   CC
657 MPILIBS
658 MPICXX
663   OBJEXT
664   EXEEXT
665   ac_ct_CXX
# Line 663 | Line 667 | CXX
667   LDFLAGS
668   CXXFLAGS
669   CXX
666 ac_fc_path
667 ac_fc_set
668 ac_cxx_path
669 ac_cxx_set
670 ac_cc_path
671 ac_cc_set
670   USE_SINGLE_PRECISION
671   debug
672   PROGNAME
# Line 721 | Line 719 | enable_option_checking
719   ac_subst_files=''
720   ac_user_opts='
721   enable_option_checking
722 < enable_oopse_home
722 > enable_openmd_home
723   enable_debug
724   enable_single
725   enable_float
# Line 744 | Line 742 | CCC
742   LIBS
743   CPPFLAGS
744   CCC
747 MPICXX
745   CC
746   CFLAGS
750 MPICC
747   FC
748   FCFLAGS
749 + MPICXX
750 + MPICC
751   MPIFC
752   CPP
753   CXXCPP'
# Line 1294 | Line 1292 | if test "$ac_init_help" = "long"; then
1292    # Omit some internal or obsolete options to make the list less imposing.
1293    # This message is too long to be a string in the A/UX 3.1 sh.
1294    cat <<_ACEOF
1295 < \`configure' configures OOPSE 4.0 to adapt to many kinds of systems.
1295 > \`configure' configures OpenMD 1.0 to adapt to many kinds of systems.
1296  
1297   Usage: $0 [OPTION]... [VAR=VALUE]...
1298  
# Line 1342 | Line 1340 | Fine tuning of the installation directories:
1340    --infodir=DIR           info documentation [DATAROOTDIR/info]
1341    --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1342    --mandir=DIR            man documentation [DATAROOTDIR/man]
1343 <  --docdir=DIR            documentation root [DATAROOTDIR/doc/oopse]
1343 >  --docdir=DIR            documentation root [DATAROOTDIR/doc/openmd]
1344    --htmldir=DIR           html documentation [DOCDIR]
1345    --dvidir=DIR            dvi documentation [DOCDIR]
1346    --pdfdir=DIR            pdf documentation [DOCDIR]
# Line 1359 | Line 1357 | if test -n "$ac_init_help"; then
1357  
1358   if test -n "$ac_init_help"; then
1359    case $ac_init_help in
1360 <     short | recursive ) echo "Configuration of OOPSE 4.0:";;
1360 >     short | recursive ) echo "Configuration of OpenMD 1.0:";;
1361     esac
1362    cat <<\_ACEOF
1363  
# Line 1367 | Line 1365 | Optional Features:
1365    --disable-option-checking  ignore unrecognized --enable/--with options
1366    --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1367    --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1368 <  --enable-oopse-home=DIR      define oopse home dir PREFIX/oopse
1369 <  --enable-debug          Compile OOPSE in debug mode
1370 <  --enable-single         compile OOPSE in single precision
1368 >  --enable-openmd-home=DIR      define OpenMD home dir PREFIX/openmd
1369 >  --enable-debug          Compile OpenMD in debug mode
1370 >  --enable-single         compile OpenMD in single precision
1371    --enable-float          synonym for --enable-single
1372    --enable-doxygen        enable documentation generation with doxygen (auto)
1373    --enable-dot            use 'dot' to generate graphs in doxygen (auto)
# Line 1397 | Line 1395 | Some influential environment variables:
1395    LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1396                nonstandard directory <lib dir>
1397    LIBS        libraries to pass to the linker, e.g. -l<library>
1398 <  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1398 >  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1399                you have headers in a nonstandard directory <include dir>
1402  MPICXX      MPI C++ compiler command
1400    CC          C compiler command
1401    CFLAGS      C compiler flags
1405  MPICC       MPI C compiler command
1402    FC          Fortran compiler command
1403    FCFLAGS     Fortran compiler flags
1404 +  MPICXX      MPI C++ compiler command
1405 +  MPICC       MPI C compiler command
1406    MPIFC       MPI Fortran compiler command
1407    CPP         C preprocessor
1408    CXXCPP      C++ preprocessor
# Line 1475 | Line 1473 | if $ac_init_version; then
1473   test -n "$ac_init_help" && exit $ac_status
1474   if $ac_init_version; then
1475    cat <<\_ACEOF
1476 < OOPSE configure 4.0
1477 < generated by GNU Autoconf 2.64
1476 > OpenMD configure 1.0
1477 > generated by GNU Autoconf 2.65
1478  
1479   Copyright (C) 2009 Free Software Foundation, Inc.
1480   This configure script is free software; the Free Software Foundation
# Line 1523 | Line 1521 | fi
1521          ac_retval=1
1522   fi
1523    eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1524 <  return $ac_retval
1524 >  as_fn_set_status $ac_retval
1525  
1526   } # ac_fn_cxx_try_compile
1527  
1528 + # ac_fn_c_try_compile LINENO
1529 + # --------------------------
1530 + # Try to compile conftest.$ac_ext, and return whether this succeeded.
1531 + ac_fn_c_try_compile ()
1532 + {
1533 +  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1534 +  rm -f conftest.$ac_objext
1535 +  if { { ac_try="$ac_compile"
1536 + case "(($ac_try" in
1537 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1538 +  *) ac_try_echo=$ac_try;;
1539 + esac
1540 + eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1541 + $as_echo "$ac_try_echo"; } >&5
1542 +  (eval "$ac_compile") 2>conftest.err
1543 +  ac_status=$?
1544 +  if test -s conftest.err; then
1545 +    grep -v '^ *+' conftest.err >conftest.er1
1546 +    cat conftest.er1 >&5
1547 +    mv -f conftest.er1 conftest.err
1548 +  fi
1549 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1550 +  test $ac_status = 0; } && {
1551 +         test -z "$ac_c_werror_flag" ||
1552 +         test ! -s conftest.err
1553 +       } && test -s conftest.$ac_objext; then :
1554 +  ac_retval=0
1555 + else
1556 +  $as_echo "$as_me: failed program was:" >&5
1557 + sed 's/^/| /' conftest.$ac_ext >&5
1558 +
1559 +        ac_retval=1
1560 + fi
1561 +  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1562 +  as_fn_set_status $ac_retval
1563 +
1564 + } # ac_fn_c_try_compile
1565 +
1566 + # ac_fn_fc_try_compile LINENO
1567 + # ---------------------------
1568 + # Try to compile conftest.$ac_ext, and return whether this succeeded.
1569 + ac_fn_fc_try_compile ()
1570 + {
1571 +  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1572 +  rm -f conftest.$ac_objext
1573 +  if { { ac_try="$ac_compile"
1574 + case "(($ac_try" in
1575 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1576 +  *) ac_try_echo=$ac_try;;
1577 + esac
1578 + eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1579 + $as_echo "$ac_try_echo"; } >&5
1580 +  (eval "$ac_compile") 2>conftest.err
1581 +  ac_status=$?
1582 +  if test -s conftest.err; then
1583 +    grep -v '^ *+' conftest.err >conftest.er1
1584 +    cat conftest.er1 >&5
1585 +    mv -f conftest.er1 conftest.err
1586 +  fi
1587 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1588 +  test $ac_status = 0; } && {
1589 +         test -z "$ac_fc_werror_flag" ||
1590 +         test ! -s conftest.err
1591 +       } && test -s conftest.$ac_objext; then :
1592 +  ac_retval=0
1593 + else
1594 +  $as_echo "$as_me: failed program was:" >&5
1595 + sed 's/^/| /' conftest.$ac_ext >&5
1596 +
1597 +        ac_retval=1
1598 + fi
1599 +  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1600 +  as_fn_set_status $ac_retval
1601 +
1602 + } # ac_fn_fc_try_compile
1603 +
1604   # ac_fn_cxx_try_link LINENO
1605   # -------------------------
1606   # Try to link conftest.$ac_ext, and return whether this succeeded.
# Line 1569 | Line 1643 | fi
1643    # left behind by Apple's compiler.  We do this before executing the actions.
1644    rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1645    eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1646 <  return $ac_retval
1646 >  as_fn_set_status $ac_retval
1647  
1648   } # ac_fn_cxx_try_link
1649  
# Line 1640 | Line 1714 | $as_echo "$ac_res" >&6; }
1714  
1715   } # ac_fn_cxx_check_func
1716  
1643 # ac_fn_c_try_compile LINENO
1644 # --------------------------
1645 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1646 ac_fn_c_try_compile ()
1647 {
1648  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1649  rm -f conftest.$ac_objext
1650  if { { ac_try="$ac_compile"
1651 case "(($ac_try" in
1652  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1653  *) ac_try_echo=$ac_try;;
1654 esac
1655 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1656 $as_echo "$ac_try_echo"; } >&5
1657  (eval "$ac_compile") 2>conftest.err
1658  ac_status=$?
1659  if test -s conftest.err; then
1660    grep -v '^ *+' conftest.err >conftest.er1
1661    cat conftest.er1 >&5
1662    mv -f conftest.er1 conftest.err
1663  fi
1664  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1665  test $ac_status = 0; } && {
1666         test -z "$ac_c_werror_flag" ||
1667         test ! -s conftest.err
1668       } && test -s conftest.$ac_objext; then :
1669  ac_retval=0
1670 else
1671  $as_echo "$as_me: failed program was:" >&5
1672 sed 's/^/| /' conftest.$ac_ext >&5
1673
1674        ac_retval=1
1675 fi
1676  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1677  return $ac_retval
1678
1679 } # ac_fn_c_try_compile
1680
1717   # ac_fn_c_try_link LINENO
1718   # -----------------------
1719   # Try to link conftest.$ac_ext, and return whether this succeeded.
# Line 1720 | Line 1756 | fi
1756    # left behind by Apple's compiler.  We do this before executing the actions.
1757    rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1758    eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1759 <  return $ac_retval
1759 >  as_fn_set_status $ac_retval
1760  
1761   } # ac_fn_c_try_link
1762  
# Line 1791 | Line 1827 | $as_echo "$ac_res" >&6; }
1827  
1828   } # ac_fn_c_check_func
1829  
1794 # ac_fn_fc_try_compile LINENO
1795 # ---------------------------
1796 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1797 ac_fn_fc_try_compile ()
1798 {
1799  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1800  rm -f conftest.$ac_objext
1801  if { { ac_try="$ac_compile"
1802 case "(($ac_try" in
1803  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1804  *) ac_try_echo=$ac_try;;
1805 esac
1806 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1807 $as_echo "$ac_try_echo"; } >&5
1808  (eval "$ac_compile") 2>conftest.err
1809  ac_status=$?
1810  if test -s conftest.err; then
1811    grep -v '^ *+' conftest.err >conftest.er1
1812    cat conftest.er1 >&5
1813    mv -f conftest.er1 conftest.err
1814  fi
1815  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1816  test $ac_status = 0; } && {
1817         test -z "$ac_fc_werror_flag" ||
1818         test ! -s conftest.err
1819       } && test -s conftest.$ac_objext; then :
1820  ac_retval=0
1821 else
1822  $as_echo "$as_me: failed program was:" >&5
1823 sed 's/^/| /' conftest.$ac_ext >&5
1824
1825        ac_retval=1
1826 fi
1827  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1828  return $ac_retval
1829
1830 } # ac_fn_fc_try_compile
1831
1830   # ac_fn_fc_try_link LINENO
1831   # ------------------------
1832   # Try to link conftest.$ac_ext, and return whether this succeeded.
# Line 1871 | Line 1869 | fi
1869    # left behind by Apple's compiler.  We do this before executing the actions.
1870    rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1871    eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1872 <  return $ac_retval
1872 >  as_fn_set_status $ac_retval
1873  
1874   } # ac_fn_fc_try_link
1875  
# Line 1908 | Line 1906 | fi
1906      ac_retval=1
1907   fi
1908    eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1909 <  return $ac_retval
1909 >  as_fn_set_status $ac_retval
1910  
1911   } # ac_fn_c_try_cpp
1912  
# Line 2043 | Line 2041 | fi
2041   fi
2042    rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2043    eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2044 <  return $ac_retval
2044 >  as_fn_set_status $ac_retval
2045  
2046   } # ac_fn_c_try_run
2047  
# Line 2111 | Line 2109 | fi
2109      ac_retval=1
2110   fi
2111    eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2112 <  return $ac_retval
2112 >  as_fn_set_status $ac_retval
2113  
2114   } # ac_fn_cxx_try_cpp
2115  
# Line 2281 | Line 2279 | running configure, to aid debugging if configure makes
2279   This file contains any messages produced by compilers while
2280   running configure, to aid debugging if configure makes a mistake.
2281  
2282 < It was created by OOPSE $as_me 4.0, which was
2283 < generated by GNU Autoconf 2.64.  Invocation command line was
2282 > It was created by OpenMD $as_me 1.0, which was
2283 > generated by GNU Autoconf 2.65.  Invocation command line was
2284  
2285    $ $0 $@
2286  
# Line 2535 | Line 2533 | do
2533   for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2534   do
2535    test "x$ac_site_file" = xNONE && continue
2536 <  if test -r "$ac_site_file"; then
2536 >  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2537      { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2538   $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2539      sed 's/^/| /' "$ac_site_file" >&5
# Line 2544 | Line 2542 | if test -r "$cache_file"; then
2542   done
2543  
2544   if test -r "$cache_file"; then
2545 <  # Some versions of bash will fail to source /dev/null (special
2546 <  # files actually), so we avoid doing that.
2547 <  if test -f "$cache_file"; then
2545 >  # Some versions of bash will fail to source /dev/null (special files
2546 >  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2547 >  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2548      { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2549   $as_echo "$as_me: loading cache $cache_file" >&6;}
2550      case $cache_file in
# Line 2969 | Line 2967 | case $host_os in *\ *) host_os=`echo "$host_os" | sed
2967  
2968  
2969   # set program name
2970 < PROGNAME="oopse"
2970 > PROGNAME="openmd"
2971  
2972  
2973  
2974  
2975   OBJEXT=".$OBJEXT"
2976  
2977 < OOPSE=oopse
2977 > OPENMD=openmd
2978  
2979   if test "x${prefix}" = "xNONE"
2980   then
2981 <  OOPSE_HOME=${ac_default_prefix}/oopse
2981 >  OPENMD_HOME=${ac_default_prefix}/openmd
2982   else
2983 <  OOPSE_HOME=${prefix}/oopse
2983 >  OPENMD_HOME=${prefix}/openmd
2984   fi
2985 < # Check whether --enable-oopse-home was given.
2986 < if test "${enable_oopse_home+set}" = set; then :
2987 <  enableval=$enable_oopse_home; OOPSE_HOME="${enableval}"
2985 > # Check whether --enable-openmd-home was given.
2986 > if test "${enable_openmd_home+set}" = set; then :
2987 >  enableval=$enable_openmd_home; OPENMD_HOME="${enableval}"
2988   fi
2989  
2990  
# Line 3024 | Line 3022 | $as_echo "#define SINGLE_PRECISION 1" >>confdefs.h
3022   $as_echo "#define SINGLE_PRECISION 1" >>confdefs.h
3023  
3024          USE_SINGLE_PRECISION=yes
3027
3028 fi
3029
3030 if test x"$CC" != x; then
3031   for ac_prog in $CC
3032 do
3033  # Extract the first word of "$ac_prog", so it can be a program name with args.
3034 set dummy $ac_prog; ac_word=$2
3035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3036 $as_echo_n "checking for $ac_word... " >&6; }
3037 if test "${ac_cv_prog_ac_cc_set+set}" = set; then :
3038  $as_echo_n "(cached) " >&6
3039 else
3040  if test -n "$ac_cc_set"; then
3041  ac_cv_prog_ac_cc_set="$ac_cc_set" # Let the user override the test.
3042 else
3043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3044 for as_dir in $PATH
3045 do
3046  IFS=$as_save_IFS
3047  test -z "$as_dir" && as_dir=.
3048    for ac_exec_ext in '' $ac_executable_extensions; do
3049  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3050    ac_cv_prog_ac_cc_set="$ac_prog"
3051    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3052    break 2
3053  fi
3054 done
3055  done
3056 IFS=$as_save_IFS
3057
3058 fi
3059 fi
3060 ac_cc_set=$ac_cv_prog_ac_cc_set
3061 if test -n "$ac_cc_set"; then
3062  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cc_set" >&5
3063 $as_echo "$ac_cc_set" >&6; }
3064 else
3065  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3066 $as_echo "no" >&6; }
3067 fi
3068
3069
3070  test -n "$ac_cc_set" && break
3071 done
3072 test -n "$ac_cc_set" || ac_cc_set="no"
3073
3074   if test $ac_cc_set != no; then :
3075
3076     # Extract the first word of "$ac_cc_set", so it can be a program name with args.
3077 set dummy $ac_cc_set; ac_word=$2
3078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3079 $as_echo_n "checking for $ac_word... " >&6; }
3080 if test "${ac_cv_path_ac_cc_path+set}" = set; then :
3081  $as_echo_n "(cached) " >&6
3082 else
3083  case $ac_cc_path in
3084  [\\/]* | ?:[\\/]*)
3085  ac_cv_path_ac_cc_path="$ac_cc_path" # Let the user override the test with a path.
3086  ;;
3087  *)
3088  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3089 for as_dir in $PATH
3090 do
3091  IFS=$as_save_IFS
3092  test -z "$as_dir" && as_dir=.
3093    for ac_exec_ext in '' $ac_executable_extensions; do
3094  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3095    ac_cv_path_ac_cc_path="$as_dir/$ac_word$ac_exec_ext"
3096    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3097    break 2
3098  fi
3099 done
3100  done
3101 IFS=$as_save_IFS
3102
3103  test -z "$ac_cv_path_ac_cc_path" && ac_cv_path_ac_cc_path="no"
3104  ;;
3105 esac
3106 fi
3107 ac_cc_path=$ac_cv_path_ac_cc_path
3108 if test -n "$ac_cc_path"; then
3109  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cc_path" >&5
3110 $as_echo "$ac_cc_path" >&6; }
3111 else
3112  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3113 $as_echo "no" >&6; }
3114 fi
3115
3116
3117 else
3118
3119     as_fn_error "Specified C compiler $CC doesn't seem to exist!" "$LINENO" 5
3120 fi
3121
3122   if test $ac_cc_path != no; then :
3123
3124     { $as_echo "$as_me:${as_lineno-$LINENO}: Will attempt to use $CC as C compiler" >&5
3125 $as_echo "$as_me: Will attempt to use $CC as C compiler" >&6;}
3126     MPICC=$CC
3127
3128 else
3129
3130     as_fn_error "Can't find path to user-specified C compiler $CC" "$LINENO" 5
3131 fi
3132 fi
3133
3134 if test x"$CXX" != x; then
3135   for ac_prog in $CXX
3136 do
3137  # Extract the first word of "$ac_prog", so it can be a program name with args.
3138 set dummy $ac_prog; ac_word=$2
3139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3140 $as_echo_n "checking for $ac_word... " >&6; }
3141 if test "${ac_cv_prog_ac_cxx_set+set}" = set; then :
3142  $as_echo_n "(cached) " >&6
3143 else
3144  if test -n "$ac_cxx_set"; then
3145  ac_cv_prog_ac_cxx_set="$ac_cxx_set" # Let the user override the test.
3146 else
3147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3148 for as_dir in $PATH
3149 do
3150  IFS=$as_save_IFS
3151  test -z "$as_dir" && as_dir=.
3152    for ac_exec_ext in '' $ac_executable_extensions; do
3153  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3154    ac_cv_prog_ac_cxx_set="$ac_prog"
3155    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3156    break 2
3157  fi
3158 done
3159  done
3160 IFS=$as_save_IFS
3161
3162 fi
3163 fi
3164 ac_cxx_set=$ac_cv_prog_ac_cxx_set
3165 if test -n "$ac_cxx_set"; then
3166  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cxx_set" >&5
3167 $as_echo "$ac_cxx_set" >&6; }
3168 else
3169  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3170 $as_echo "no" >&6; }
3171 fi
3172
3173
3174  test -n "$ac_cxx_set" && break
3175 done
3176 test -n "$ac_cxx_set" || ac_cxx_set="no"
3177
3178   if test $ac_cxx_set != no; then :
3179
3180     # Extract the first word of "$ac_cxx_set", so it can be a program name with args.
3181 set dummy $ac_cxx_set; ac_word=$2
3182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3183 $as_echo_n "checking for $ac_word... " >&6; }
3184 if test "${ac_cv_path_ac_cxx_path+set}" = set; then :
3185  $as_echo_n "(cached) " >&6
3186 else
3187  case $ac_cxx_path in
3188  [\\/]* | ?:[\\/]*)
3189  ac_cv_path_ac_cxx_path="$ac_cxx_path" # Let the user override the test with a path.
3190  ;;
3191  *)
3192  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3193 for as_dir in $PATH
3194 do
3195  IFS=$as_save_IFS
3196  test -z "$as_dir" && as_dir=.
3197    for ac_exec_ext in '' $ac_executable_extensions; do
3198  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3199    ac_cv_path_ac_cxx_path="$as_dir/$ac_word$ac_exec_ext"
3200    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3201    break 2
3202  fi
3203 done
3204  done
3205 IFS=$as_save_IFS
3206
3207  test -z "$ac_cv_path_ac_cxx_path" && ac_cv_path_ac_cxx_path="no"
3208  ;;
3209 esac
3210 fi
3211 ac_cxx_path=$ac_cv_path_ac_cxx_path
3212 if test -n "$ac_cxx_path"; then
3213  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cxx_path" >&5
3214 $as_echo "$ac_cxx_path" >&6; }
3215 else
3216  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3217 $as_echo "no" >&6; }
3218 fi
3219
3220
3221 else
3222
3223     as_fn_error "Specified C++ compiler $CXX doesn't seem to exist!" "$LINENO" 5
3224 fi
3225
3226   if test $ac_cxx_path != no; then :
3227
3228     { $as_echo "$as_me:${as_lineno-$LINENO}: Will attempt to use $CXX as C++ compiler" >&5
3229 $as_echo "$as_me: Will attempt to use $CXX as C++ compiler" >&6;}
3230     MPICXX=$CXX
3231
3232 else
3233
3234     as_fn_error "Can't find path to user-specified C++ compiler $CXX" "$LINENO" 5
3235 fi
3236 fi
3237
3238 if test x"$FC" != x; then
3239   for ac_prog in $FC
3240 do
3241  # Extract the first word of "$ac_prog", so it can be a program name with args.
3242 set dummy $ac_prog; ac_word=$2
3243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3244 $as_echo_n "checking for $ac_word... " >&6; }
3245 if test "${ac_cv_prog_ac_fc_set+set}" = set; then :
3246  $as_echo_n "(cached) " >&6
3247 else
3248  if test -n "$ac_fc_set"; then
3249  ac_cv_prog_ac_fc_set="$ac_fc_set" # Let the user override the test.
3250 else
3251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3252 for as_dir in $PATH
3253 do
3254  IFS=$as_save_IFS
3255  test -z "$as_dir" && as_dir=.
3256    for ac_exec_ext in '' $ac_executable_extensions; do
3257  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3258    ac_cv_prog_ac_fc_set="$ac_prog"
3259    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3260    break 2
3261  fi
3262 done
3263  done
3264 IFS=$as_save_IFS
3025  
3026   fi
3267 fi
3268 ac_fc_set=$ac_cv_prog_ac_fc_set
3269 if test -n "$ac_fc_set"; then
3270  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_fc_set" >&5
3271 $as_echo "$ac_fc_set" >&6; }
3272 else
3273  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3274 $as_echo "no" >&6; }
3275 fi
3027  
3277
3278  test -n "$ac_fc_set" && break
3279 done
3280 test -n "$ac_fc_set" || ac_fc_set="no"
3281
3282   if test $ac_fc_set != no; then :
3283
3284     # Extract the first word of "$ac_fc_set", so it can be a program name with args.
3285 set dummy $ac_fc_set; ac_word=$2
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3287 $as_echo_n "checking for $ac_word... " >&6; }
3288 if test "${ac_cv_path_ac_fc_path+set}" = set; then :
3289  $as_echo_n "(cached) " >&6
3290 else
3291  case $ac_fc_path in
3292  [\\/]* | ?:[\\/]*)
3293  ac_cv_path_ac_fc_path="$ac_fc_path" # Let the user override the test with a path.
3294  ;;
3295  *)
3296  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3297 for as_dir in $PATH
3298 do
3299  IFS=$as_save_IFS
3300  test -z "$as_dir" && as_dir=.
3301    for ac_exec_ext in '' $ac_executable_extensions; do
3302  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3303    ac_cv_path_ac_fc_path="$as_dir/$ac_word$ac_exec_ext"
3304    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3305    break 2
3306  fi
3307 done
3308  done
3309 IFS=$as_save_IFS
3310
3311  test -z "$ac_cv_path_ac_fc_path" && ac_cv_path_ac_fc_path="no"
3312  ;;
3313 esac
3314 fi
3315 ac_fc_path=$ac_cv_path_ac_fc_path
3316 if test -n "$ac_fc_path"; then
3317  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_fc_path" >&5
3318 $as_echo "$ac_fc_path" >&6; }
3319 else
3320  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3321 $as_echo "no" >&6; }
3322 fi
3323
3324
3325 else
3326
3327     as_fn_error "Specified Fortran compiler $FC doesn't seem to exist!" "$LINENO" 5
3328 fi
3329
3330   if test $ac_fc_path != no; then :
3331
3332     { $as_echo "$as_me:${as_lineno-$LINENO}: Will attempt to use $FC as Fortran compiler" >&5
3333 $as_echo "$as_me: Will attempt to use $FC as Fortran compiler" >&6;}
3334     MPIFC=$FC
3335
3336 else
3337
3338     as_fn_error "Can't find path to user-specified Fortran compiler $FC" "$LINENO" 5
3339 fi
3340 fi
3341
3342
3028   ac_ext=cpp
3029   ac_cpp='$CXXCPP $CPPFLAGS'
3030   ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3031   ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3032   ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3348
3349 ac_ext=cpp
3350 ac_cpp='$CXXCPP $CPPFLAGS'
3351 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3352 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3353 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3033   if test -z "$CXX"; then
3034    if test -n "$CCC"; then
3035      CXX=$CCC
3036    else
3037      if test -n "$ac_tool_prefix"; then
3038 <  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3038 >  for ac_prog in $CXX icpc pathCC pgCC c++ xlc++ xlC g++ CC
3039    do
3040      # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3041   set dummy $ac_tool_prefix$ac_prog; ac_word=$2
# Line 3400 | Line 3079 | if test -z "$CXX"; then
3079   fi
3080   if test -z "$CXX"; then
3081    ac_ct_CXX=$CXX
3082 <  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3082 >  for ac_prog in $CXX icpc pathCC pgCC c++ xlc++ xlC g++ CC
3083   do
3084    # Extract the first word of "$ac_prog", so it can be a program name with args.
3085   set dummy $ac_prog; ac_word=$2
# Line 3476 | Line 3155 | $as_echo "$ac_try_echo"; } >&5
3155   ... rest of stderr output deleted ...
3156           10q' conftest.err >conftest.er1
3157      cat conftest.er1 >&5
3479    rm -f conftest.er1 conftest.err
3158    fi
3159 +  rm -f conftest.er1 conftest.err
3160    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3161    test $ac_status = 0; }
3162   done
3163  
3164   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3165   /* end confdefs.h.  */
3166 < #include <stdio.h>
3166 >
3167   int
3168   main ()
3169   {
3491 FILE *f = fopen ("conftest.out", "w");
3492 return ferror (f) || fclose (f) != 0;
3170  
3171    ;
3172    return 0;
3173   }
3174   _ACEOF
3175   ac_clean_files_save=$ac_clean_files
3176 < ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3176 > ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3177   # Try to create an executable without -o first, disregard a.out.
3178   # It will help us diagnose broken compilers, and finding out an intuition
3179   # of exeext.
3180 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3181 < $as_echo_n "checking for C++ compiler default output file name... " >&6; }
3180 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
3181 > $as_echo_n "checking whether the C++ compiler works... " >&6; }
3182   ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3183  
3184   # The possible output files:
# Line 3563 | Line 3240 | fi
3240   else
3241    ac_file=''
3242   fi
3566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3567 $as_echo "$ac_file" >&6; }
3243   if test -z "$ac_file"; then :
3244 <  $as_echo "$as_me: failed program was:" >&5
3244 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3245 > $as_echo "no" >&6; }
3246 > $as_echo "$as_me: failed program was:" >&5
3247   sed 's/^/| /' conftest.$ac_ext >&5
3248  
3249   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
# Line 3574 | Line 3251 | See \`config.log' for more details." "$LINENO" 5; }; }
3251   { as_fn_set_status 77
3252   as_fn_error "C++ compiler cannot create executables
3253   See \`config.log' for more details." "$LINENO" 5; }; }
3254 + else
3255 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3256 + $as_echo "yes" >&6; }
3257   fi
3258 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3259 + $as_echo_n "checking for C++ compiler default output file name... " >&6; }
3260 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3261 + $as_echo "$ac_file" >&6; }
3262   ac_exeext=$ac_cv_exeext
3263  
3264 < # Check that the compiler produces executables we can run.  If not, either
3581 < # the compiler is broken, or we cross compile.
3582 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
3583 < $as_echo_n "checking whether the C++ compiler works... " >&6; }
3584 < # If not cross compiling, check that we can run a simple program.
3585 < if test "$cross_compiling" != yes; then
3586 <  if { ac_try='./$ac_file'
3587 <  { { case "(($ac_try" in
3588 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3589 <  *) ac_try_echo=$ac_try;;
3590 < esac
3591 < eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3592 < $as_echo "$ac_try_echo"; } >&5
3593 <  (eval "$ac_try") 2>&5
3594 <  ac_status=$?
3595 <  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3596 <  test $ac_status = 0; }; }; then
3597 <    cross_compiling=no
3598 <  else
3599 <    if test "$cross_compiling" = maybe; then
3600 <        cross_compiling=yes
3601 <    else
3602 <        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3603 < $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3604 < as_fn_error "cannot run C++ compiled programs.
3605 < If you meant to cross compile, use \`--host'.
3606 < See \`config.log' for more details." "$LINENO" 5; }
3607 <    fi
3608 <  fi
3609 < fi
3610 < { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3611 < $as_echo "yes" >&6; }
3612 <
3613 < rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3264 > rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3265   ac_clean_files=$ac_clean_files_save
3615 # Check that the compiler produces executables we can run.  If not, either
3616 # the compiler is broken, or we cross compile.
3617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3618 $as_echo_n "checking whether we are cross compiling... " >&6; }
3619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3620 $as_echo "$cross_compiling" >&6; }
3621
3266   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3267   $as_echo_n "checking for suffix of executables... " >&6; }
3268   if { { ac_try="$ac_link"
# Line 3651 | Line 3295 | fi
3295   as_fn_error "cannot compute suffix of executables: cannot compile and link
3296   See \`config.log' for more details." "$LINENO" 5; }
3297   fi
3298 < rm -f conftest$ac_cv_exeext
3298 > rm -f conftest conftest$ac_cv_exeext
3299   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3300   $as_echo "$ac_cv_exeext" >&6; }
3301  
3302   rm -f conftest.$ac_ext
3303   EXEEXT=$ac_cv_exeext
3304   ac_exeext=$EXEEXT
3305 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3306 + /* end confdefs.h.  */
3307 + #include <stdio.h>
3308 + int
3309 + main ()
3310 + {
3311 + FILE *f = fopen ("conftest.out", "w");
3312 + return ferror (f) || fclose (f) != 0;
3313 +
3314 +  ;
3315 +  return 0;
3316 + }
3317 + _ACEOF
3318 + ac_clean_files="$ac_clean_files conftest.out"
3319 + # Check that the compiler produces executables we can run.  If not, either
3320 + # the compiler is broken, or we cross compile.
3321 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3322 + $as_echo_n "checking whether we are cross compiling... " >&6; }
3323 + if test "$cross_compiling" != yes; then
3324 +  { { ac_try="$ac_link"
3325 + case "(($ac_try" in
3326 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3327 +  *) ac_try_echo=$ac_try;;
3328 + esac
3329 + eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3330 + $as_echo "$ac_try_echo"; } >&5
3331 +  (eval "$ac_link") 2>&5
3332 +  ac_status=$?
3333 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3334 +  test $ac_status = 0; }
3335 +  if { ac_try='./conftest$ac_cv_exeext'
3336 +  { { case "(($ac_try" in
3337 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3338 +  *) ac_try_echo=$ac_try;;
3339 + esac
3340 + eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3341 + $as_echo "$ac_try_echo"; } >&5
3342 +  (eval "$ac_try") 2>&5
3343 +  ac_status=$?
3344 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3345 +  test $ac_status = 0; }; }; then
3346 +    cross_compiling=no
3347 +  else
3348 +    if test "$cross_compiling" = maybe; then
3349 +        cross_compiling=yes
3350 +    else
3351 +        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3352 + $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3353 + as_fn_error "cannot run C++ compiled programs.
3354 + If you meant to cross compile, use \`--host'.
3355 + See \`config.log' for more details." "$LINENO" 5; }
3356 +    fi
3357 +  fi
3358 + fi
3359 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3360 + $as_echo "$cross_compiling" >&6; }
3361 +
3362 + rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3363 + ac_clean_files=$ac_clean_files_save
3364   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3365   $as_echo_n "checking for suffix of object files... " >&6; }
3366   if test "${ac_cv_objext+set}" = set; then :
# Line 3824 | Line 3527 | fi
3527      CXXFLAGS=
3528    fi
3529   fi
3530 < ac_ext=cpp
3531 < ac_cpp='$CXXCPP $CPPFLAGS'
3532 < ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3533 < ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3534 < ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3832 <
3833 <
3834 <
3835 <
3836 <
3837 <
3838 <
3839 <        for ac_prog in openmpicxx openmpiCC openmpic++ mpic++ mpicxx mpiCC hcp mpxlC_r mpxlC mpCC cmpic++
3840 < do
3841 <  # Extract the first word of "$ac_prog", so it can be a program name with args.
3842 < set dummy $ac_prog; ac_word=$2
3843 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3844 < $as_echo_n "checking for $ac_word... " >&6; }
3845 < if test "${ac_cv_prog_MPICXX+set}" = set; then :
3846 <  $as_echo_n "(cached) " >&6
3847 < else
3848 <  if test -n "$MPICXX"; then
3849 <  ac_cv_prog_MPICXX="$MPICXX" # Let the user override the test.
3850 < else
3851 < as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3852 < for as_dir in $PATH
3853 < do
3854 <  IFS=$as_save_IFS
3855 <  test -z "$as_dir" && as_dir=.
3856 <    for ac_exec_ext in '' $ac_executable_extensions; do
3857 <  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3858 <    ac_cv_prog_MPICXX="$ac_prog"
3859 <    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3860 <    break 2
3861 <  fi
3862 < done
3863 <  done
3864 < IFS=$as_save_IFS
3865 <
3866 < fi
3867 < fi
3868 < MPICXX=$ac_cv_prog_MPICXX
3869 < if test -n "$MPICXX"; then
3870 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPICXX" >&5
3871 < $as_echo "$MPICXX" >&6; }
3872 < else
3873 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3874 < $as_echo "no" >&6; }
3875 < fi
3876 <
3877 <
3878 <  test -n "$MPICXX" && break
3879 < done
3880 < test -n "$MPICXX" || MPICXX="$CXX"
3881 <
3882 <        ax_mpi_save_CXX="$CXX"
3883 <        CXX="$MPICXX"
3884 <
3885 <
3886 <
3887 < if test x = x"$MPILIBS"; then
3888 <        ac_fn_cxx_check_func "$LINENO" "MPI_Init" "ac_cv_func_MPI_Init"
3889 < if test "x$ac_cv_func_MPI_Init" = x""yes; then :
3890 <  MPILIBS=" "
3891 < fi
3892 <
3893 < fi
3894 <
3895 < if test x = x"$MPILIBS"; then
3896 <        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpi" >&5
3897 < $as_echo_n "checking for MPI_Init in -lmpi... " >&6; }
3898 < if test "${ac_cv_lib_mpi_MPI_Init+set}" = set; then :
3899 <  $as_echo_n "(cached) " >&6
3900 < else
3901 <  ac_check_lib_save_LIBS=$LIBS
3902 < LIBS="-lmpi  $LIBS"
3903 < cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3904 < /* end confdefs.h.  */
3905 <
3906 < /* Override any GCC internal prototype to avoid an error.
3907 <   Use char because int might match the return type of a GCC
3908 <   builtin and then its argument prototype would still apply.  */
3909 < #ifdef __cplusplus
3910 < extern "C"
3911 < #endif
3912 < char MPI_Init ();
3913 < int
3914 < main ()
3915 < {
3916 < return MPI_Init ();
3917 <  ;
3918 <  return 0;
3919 < }
3920 < _ACEOF
3921 < if ac_fn_cxx_try_link "$LINENO"; then :
3922 <  ac_cv_lib_mpi_MPI_Init=yes
3923 < else
3924 <  ac_cv_lib_mpi_MPI_Init=no
3925 < fi
3926 < rm -f core conftest.err conftest.$ac_objext \
3927 <    conftest$ac_exeext conftest.$ac_ext
3928 < LIBS=$ac_check_lib_save_LIBS
3929 < fi
3930 < { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpi_MPI_Init" >&5
3931 < $as_echo "$ac_cv_lib_mpi_MPI_Init" >&6; }
3932 < if test "x$ac_cv_lib_mpi_MPI_Init" = x""yes; then :
3933 <  MPILIBS="-lmpi"
3934 < fi
3935 <
3936 < fi
3937 < if test x = x"$MPILIBS"; then
3938 <        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpich" >&5
3939 < $as_echo_n "checking for MPI_Init in -lmpich... " >&6; }
3940 < if test "${ac_cv_lib_mpich_MPI_Init+set}" = set; then :
3941 <  $as_echo_n "(cached) " >&6
3942 < else
3943 <  ac_check_lib_save_LIBS=$LIBS
3944 < LIBS="-lmpich  $LIBS"
3945 < cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3946 < /* end confdefs.h.  */
3530 > ac_ext=c
3531 > ac_cpp='$CPP $CPPFLAGS'
3532 > ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3533 > ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3534 > ac_compiler_gnu=$ac_cv_c_compiler_gnu
3535  
3948 /* Override any GCC internal prototype to avoid an error.
3949   Use char because int might match the return type of a GCC
3950   builtin and then its argument prototype would still apply.  */
3951 #ifdef __cplusplus
3952 extern "C"
3953 #endif
3954 char MPI_Init ();
3955 int
3956 main ()
3957 {
3958 return MPI_Init ();
3959  ;
3960  return 0;
3961 }
3962 _ACEOF
3963 if ac_fn_cxx_try_link "$LINENO"; then :
3964  ac_cv_lib_mpich_MPI_Init=yes
3965 else
3966  ac_cv_lib_mpich_MPI_Init=no
3967 fi
3968 rm -f core conftest.err conftest.$ac_objext \
3969    conftest$ac_exeext conftest.$ac_ext
3970 LIBS=$ac_check_lib_save_LIBS
3971 fi
3972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpich_MPI_Init" >&5
3973 $as_echo "$ac_cv_lib_mpich_MPI_Init" >&6; }
3974 if test "x$ac_cv_lib_mpich_MPI_Init" = x""yes; then :
3975  MPILIBS="-lmpich"
3976 fi
3977
3978 fi
3979
3980 if test x != x"$MPILIBS"; then
3981        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpi.h" >&5
3982 $as_echo_n "checking for mpi.h... " >&6; }
3983        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3984 /* end confdefs.h.  */
3985 #include <mpi.h>
3986 int
3987 main ()
3988 {
3989
3990  ;
3991  return 0;
3992 }
3993 _ACEOF
3994 if ac_fn_cxx_try_compile "$LINENO"; then :
3995  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3996 $as_echo "yes" >&6; }
3997 else
3998  MPILIBS=""
3999                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4000 $as_echo "no" >&6; }
4001 fi
4002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4003 fi
4004
4005 CXX="$ax_mpi_save_CXX"
4006
4007
4008
4009 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
4010 if test x = x"$MPILIBS"; then
4011        USE_MPI="no"
4012       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No suitable C++ MPI implementation found. oopse_MPI will not be built." >&5
4013 $as_echo "$as_me: WARNING: No suitable C++ MPI implementation found. oopse_MPI will not be built." >&2;}
4014        :
4015 else
4016        USE_MPI="yes"
4017        :
4018 fi
4019
3536   ac_ext=c
3537   ac_cpp='$CPP $CPPFLAGS'
3538   ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3539   ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3540   ac_compiler_gnu=$ac_cv_c_compiler_gnu
3541   if test -n "$ac_tool_prefix"; then
3542 <  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4027 < set dummy ${ac_tool_prefix}gcc; ac_word=$2
4028 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4029 < $as_echo_n "checking for $ac_word... " >&6; }
4030 < if test "${ac_cv_prog_CC+set}" = set; then :
4031 <  $as_echo_n "(cached) " >&6
4032 < else
4033 <  if test -n "$CC"; then
4034 <  ac_cv_prog_CC="$CC" # Let the user override the test.
4035 < else
4036 < as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4037 < for as_dir in $PATH
4038 < do
4039 <  IFS=$as_save_IFS
4040 <  test -z "$as_dir" && as_dir=.
4041 <    for ac_exec_ext in '' $ac_executable_extensions; do
4042 <  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4043 <    ac_cv_prog_CC="${ac_tool_prefix}gcc"
4044 <    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4045 <    break 2
4046 <  fi
4047 < done
4048 <  done
4049 < IFS=$as_save_IFS
4050 <
4051 < fi
4052 < fi
4053 < CC=$ac_cv_prog_CC
4054 < if test -n "$CC"; then
4055 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4056 < $as_echo "$CC" >&6; }
4057 < else
4058 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4059 < $as_echo "no" >&6; }
4060 < fi
4061 <
4062 <
4063 < fi
4064 < if test -z "$ac_cv_prog_CC"; then
4065 <  ac_ct_CC=$CC
4066 <  # Extract the first word of "gcc", so it can be a program name with args.
4067 < set dummy gcc; ac_word=$2
4068 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4069 < $as_echo_n "checking for $ac_word... " >&6; }
4070 < if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4071 <  $as_echo_n "(cached) " >&6
4072 < else
4073 <  if test -n "$ac_ct_CC"; then
4074 <  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4075 < else
4076 < as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4077 < for as_dir in $PATH
4078 < do
4079 <  IFS=$as_save_IFS
4080 <  test -z "$as_dir" && as_dir=.
4081 <    for ac_exec_ext in '' $ac_executable_extensions; do
4082 <  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4083 <    ac_cv_prog_ac_ct_CC="gcc"
4084 <    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4085 <    break 2
4086 <  fi
4087 < done
4088 <  done
4089 < IFS=$as_save_IFS
4090 <
4091 < fi
4092 < fi
4093 < ac_ct_CC=$ac_cv_prog_ac_ct_CC
4094 < if test -n "$ac_ct_CC"; then
4095 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4096 < $as_echo "$ac_ct_CC" >&6; }
4097 < else
4098 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4099 < $as_echo "no" >&6; }
4100 < fi
4101 <
4102 <  if test "x$ac_ct_CC" = x; then
4103 <    CC=""
4104 <  else
4105 <    case $cross_compiling:$ac_tool_warned in
4106 < yes:)
4107 < { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4108 < $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4109 < ac_tool_warned=yes ;;
4110 < esac
4111 <    CC=$ac_ct_CC
4112 <  fi
4113 < else
4114 <  CC="$ac_cv_prog_CC"
4115 < fi
4116 <
4117 < if test -z "$CC"; then
4118 <          if test -n "$ac_tool_prefix"; then
4119 <    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4120 < set dummy ${ac_tool_prefix}cc; ac_word=$2
4121 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4122 < $as_echo_n "checking for $ac_word... " >&6; }
4123 < if test "${ac_cv_prog_CC+set}" = set; then :
4124 <  $as_echo_n "(cached) " >&6
4125 < else
4126 <  if test -n "$CC"; then
4127 <  ac_cv_prog_CC="$CC" # Let the user override the test.
4128 < else
4129 < as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4130 < for as_dir in $PATH
4131 < do
4132 <  IFS=$as_save_IFS
4133 <  test -z "$as_dir" && as_dir=.
4134 <    for ac_exec_ext in '' $ac_executable_extensions; do
4135 <  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4136 <    ac_cv_prog_CC="${ac_tool_prefix}cc"
4137 <    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4138 <    break 2
4139 <  fi
4140 < done
4141 <  done
4142 < IFS=$as_save_IFS
4143 <
4144 < fi
4145 < fi
4146 < CC=$ac_cv_prog_CC
4147 < if test -n "$CC"; then
4148 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4149 < $as_echo "$CC" >&6; }
4150 < else
4151 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4152 < $as_echo "no" >&6; }
4153 < fi
4154 <
4155 <
4156 <  fi
4157 < fi
4158 < if test -z "$CC"; then
4159 <  # Extract the first word of "cc", so it can be a program name with args.
4160 < set dummy cc; ac_word=$2
4161 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4162 < $as_echo_n "checking for $ac_word... " >&6; }
4163 < if test "${ac_cv_prog_CC+set}" = set; then :
4164 <  $as_echo_n "(cached) " >&6
4165 < else
4166 <  if test -n "$CC"; then
4167 <  ac_cv_prog_CC="$CC" # Let the user override the test.
4168 < else
4169 <  ac_prog_rejected=no
4170 < as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4171 < for as_dir in $PATH
4172 < do
4173 <  IFS=$as_save_IFS
4174 <  test -z "$as_dir" && as_dir=.
4175 <    for ac_exec_ext in '' $ac_executable_extensions; do
4176 <  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4177 <    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4178 <       ac_prog_rejected=yes
4179 <       continue
4180 <     fi
4181 <    ac_cv_prog_CC="cc"
4182 <    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4183 <    break 2
4184 <  fi
4185 < done
4186 <  done
4187 < IFS=$as_save_IFS
4188 <
4189 < if test $ac_prog_rejected = yes; then
4190 <  # We found a bogon in the path, so make sure we never use it.
4191 <  set dummy $ac_cv_prog_CC
4192 <  shift
4193 <  if test $# != 0; then
4194 <    # We chose a different compiler from the bogus one.
4195 <    # However, it has the same basename, so the bogon will be chosen
4196 <    # first if we set CC to just the basename; use the full file name.
4197 <    shift
4198 <    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4199 <  fi
4200 < fi
4201 < fi
4202 < fi
4203 < CC=$ac_cv_prog_CC
4204 < if test -n "$CC"; then
4205 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4206 < $as_echo "$CC" >&6; }
4207 < else
4208 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4209 < $as_echo "no" >&6; }
4210 < fi
4211 <
4212 <
4213 < fi
4214 < if test -z "$CC"; then
4215 <  if test -n "$ac_tool_prefix"; then
4216 <  for ac_prog in cl.exe
3542 >  for ac_prog in $CC icc pathcc pgcc cc xlc gcc
3543    do
3544      # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3545   set dummy $ac_tool_prefix$ac_prog; ac_word=$2
# Line 4257 | Line 3583 | if test -z "$CC"; then
3583   fi
3584   if test -z "$CC"; then
3585    ac_ct_CC=$CC
3586 <  for ac_prog in cl.exe
3586 >  for ac_prog in $CC icc pathcc pgcc cc xlc gcc
3587   do
3588    # Extract the first word of "$ac_prog", so it can be a program name with args.
3589   set dummy $ac_prog; ac_word=$2
# Line 4312 | Line 3638 | fi
3638    fi
3639   fi
3640  
4315 fi
3641  
4317
3642   test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3643   $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3644   as_fn_error "no acceptable C compiler found in \$PATH
# Line 4339 | Line 3663 | $as_echo "$ac_try_echo"; } >&5
3663   ... rest of stderr output deleted ...
3664           10q' conftest.err >conftest.er1
3665      cat conftest.er1 >&5
4342    rm -f conftest.er1 conftest.err
3666    fi
3667 +  rm -f conftest.er1 conftest.err
3668    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3669    test $ac_status = 0; }
3670   done
# Line 4550 | Line 3874 | fi
3874   if test "x$ac_cv_prog_cc_c89" != xno; then :
3875  
3876   fi
4553
4554 ac_ext=c
4555 ac_cpp='$CPP $CPPFLAGS'
4556 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4557 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4558 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4559
3877  
4561 if test $USE_MPI != no; then :
4562
3878   ac_ext=c
3879   ac_cpp='$CPP $CPPFLAGS'
3880   ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3881   ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3882   ac_compiler_gnu=$ac_cv_c_compiler_gnu
4568
4569
4570
4571
4572
4573
4574        for ac_prog in openmpicc mpicc hcc mpxlc_r mpxlc mpcc cmpicc
4575 do
4576  # Extract the first word of "$ac_prog", so it can be a program name with args.
4577 set dummy $ac_prog; ac_word=$2
4578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4579 $as_echo_n "checking for $ac_word... " >&6; }
4580 if test "${ac_cv_prog_MPICC+set}" = set; then :
4581  $as_echo_n "(cached) " >&6
4582 else
4583  if test -n "$MPICC"; then
4584  ac_cv_prog_MPICC="$MPICC" # Let the user override the test.
4585 else
4586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4587 for as_dir in $PATH
4588 do
4589  IFS=$as_save_IFS
4590  test -z "$as_dir" && as_dir=.
4591    for ac_exec_ext in '' $ac_executable_extensions; do
4592  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4593    ac_cv_prog_MPICC="$ac_prog"
4594    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4595    break 2
4596  fi
4597 done
4598  done
4599 IFS=$as_save_IFS
3883  
4601 fi
4602 fi
4603 MPICC=$ac_cv_prog_MPICC
4604 if test -n "$MPICC"; then
4605  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPICC" >&5
4606 $as_echo "$MPICC" >&6; }
4607 else
4608  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4609 $as_echo "no" >&6; }
4610 fi
4611
4612
4613  test -n "$MPICC" && break
4614 done
4615 test -n "$MPICC" || MPICC="$CC"
4616
4617        ax_mpi_save_CC="$CC"
4618        CC="$MPICC"
4619
4620
4621
4622 if test x = x"$MPILIBS"; then
4623        ac_fn_c_check_func "$LINENO" "MPI_Init" "ac_cv_func_MPI_Init"
4624 if test "x$ac_cv_func_MPI_Init" = x""yes; then :
4625  MPILIBS=" "
4626 fi
4627
4628 fi
4629
4630 if test x = x"$MPILIBS"; then
4631        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpi" >&5
4632 $as_echo_n "checking for MPI_Init in -lmpi... " >&6; }
4633 if test "${ac_cv_lib_mpi_MPI_Init+set}" = set; then :
4634  $as_echo_n "(cached) " >&6
4635 else
4636  ac_check_lib_save_LIBS=$LIBS
4637 LIBS="-lmpi  $LIBS"
4638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4639 /* end confdefs.h.  */
4640
4641 /* Override any GCC internal prototype to avoid an error.
4642   Use char because int might match the return type of a GCC
4643   builtin and then its argument prototype would still apply.  */
4644 #ifdef __cplusplus
4645 extern "C"
4646 #endif
4647 char MPI_Init ();
4648 int
4649 main ()
4650 {
4651 return MPI_Init ();
4652  ;
4653  return 0;
4654 }
4655 _ACEOF
4656 if ac_fn_c_try_link "$LINENO"; then :
4657  ac_cv_lib_mpi_MPI_Init=yes
4658 else
4659  ac_cv_lib_mpi_MPI_Init=no
4660 fi
4661 rm -f core conftest.err conftest.$ac_objext \
4662    conftest$ac_exeext conftest.$ac_ext
4663 LIBS=$ac_check_lib_save_LIBS
4664 fi
4665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpi_MPI_Init" >&5
4666 $as_echo "$ac_cv_lib_mpi_MPI_Init" >&6; }
4667 if test "x$ac_cv_lib_mpi_MPI_Init" = x""yes; then :
4668  MPILIBS="-lmpi"
4669 fi
4670
4671 fi
4672 if test x = x"$MPILIBS"; then
4673        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpich" >&5
4674 $as_echo_n "checking for MPI_Init in -lmpich... " >&6; }
4675 if test "${ac_cv_lib_mpich_MPI_Init+set}" = set; then :
4676  $as_echo_n "(cached) " >&6
4677 else
4678  ac_check_lib_save_LIBS=$LIBS
4679 LIBS="-lmpich  $LIBS"
4680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4681 /* end confdefs.h.  */
4682
4683 /* Override any GCC internal prototype to avoid an error.
4684   Use char because int might match the return type of a GCC
4685   builtin and then its argument prototype would still apply.  */
4686 #ifdef __cplusplus
4687 extern "C"
4688 #endif
4689 char MPI_Init ();
4690 int
4691 main ()
4692 {
4693 return MPI_Init ();
4694  ;
4695  return 0;
4696 }
4697 _ACEOF
4698 if ac_fn_c_try_link "$LINENO"; then :
4699  ac_cv_lib_mpich_MPI_Init=yes
4700 else
4701  ac_cv_lib_mpich_MPI_Init=no
4702 fi
4703 rm -f core conftest.err conftest.$ac_objext \
4704    conftest$ac_exeext conftest.$ac_ext
4705 LIBS=$ac_check_lib_save_LIBS
4706 fi
4707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpich_MPI_Init" >&5
4708 $as_echo "$ac_cv_lib_mpich_MPI_Init" >&6; }
4709 if test "x$ac_cv_lib_mpich_MPI_Init" = x""yes; then :
4710  MPILIBS="-lmpich"
4711 fi
4712
4713 fi
4714
4715 if test x != x"$MPILIBS"; then
4716        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpi.h" >&5
4717 $as_echo_n "checking for mpi.h... " >&6; }
4718        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4719 /* end confdefs.h.  */
4720 #include <mpi.h>
4721 int
4722 main ()
4723 {
4724
4725  ;
4726  return 0;
4727 }
4728 _ACEOF
4729 if ac_fn_c_try_compile "$LINENO"; then :
4730  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4731 $as_echo "yes" >&6; }
4732 else
4733  MPILIBS=""
4734                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4735 $as_echo "no" >&6; }
4736 fi
4737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4738 fi
4739
4740 CC="$ax_mpi_save_CC"
4741
4742
4743
4744 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
4745 if test x = x"$MPILIBS"; then
4746        USE_MPI="no"
4747       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No suitable C MPI implementation found. oopse_MPI will not be built." >&5
4748 $as_echo "$as_me: WARNING: No suitable C MPI implementation found. oopse_MPI will not be built." >&2;}
4749        :
4750 else
4751        USE_MPI="yes"
4752        :
4753 fi
4754
4755
4756 fi
3884   ac_ext=${ac_fc_srcext-f}
3885   ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
3886   ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
3887   ac_compiler_gnu=$ac_cv_fc_compiler_gnu
3888   if test -n "$ac_tool_prefix"; then
3889 <  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
3889 >  for ac_prog in $FC ifort ifc pathf95 pgf95 xlf95 lf95 epcf90 pathf90 xlf90 f95 f90 gfortran g95 fort
3890    do
3891      # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3892   set dummy $ac_tool_prefix$ac_prog; ac_word=$2
# Line 4803 | Line 3930 | if test -z "$FC"; then
3930   fi
3931   if test -z "$FC"; then
3932    ac_ct_FC=$FC
3933 <  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
3933 >  for ac_prog in $FC ifort ifc pathf95 pgf95 xlf95 lf95 epcf90 pathf90 xlf90 f95 f90 gfortran g95 fort
3934   do
3935    # Extract the first word of "$ac_prog", so it can be a program name with args.
3936   set dummy $ac_prog; ac_word=$2
# Line 4878 | Line 4005 | $as_echo "$ac_try_echo"; } >&5
4005   ... rest of stderr output deleted ...
4006           10q' conftest.err >conftest.er1
4007      cat conftest.er1 >&5
4881    rm -f conftest.er1 conftest.err
4008    fi
4009 +  rm -f conftest.er1 conftest.err
4010    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4011    test $ac_status = 0; }
4012   done
# Line 4954 | Line 4081 | fi
4081    fi
4082   fi
4083  
4084 < ac_ext=${ac_fc_srcext-f}
4085 < ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
4086 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
4087 < ac_compiler_gnu=$ac_cv_fc_compiler_gnu
4084 > ac_ext=c
4085 > ac_cpp='$CPP $CPPFLAGS'
4086 > ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4087 > ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4088 > ac_compiler_gnu=$ac_cv_c_compiler_gnu
4089  
4090  
4091 < if test $USE_MPI != no; then :
4091 > save_CXX=$CXX
4092 > save_CC=$CC
4093 > save_FC=$FC
4094 > save_LIBS=$LIBS
4095  
4096 < ac_ext=${ac_fc_srcext-f}
4097 < ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
4098 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
4099 < ac_compiler_gnu=$ac_cv_fc_compiler_gnu
4096 > ac_ext=cpp
4097 > ac_cpp='$CXXCPP $CPPFLAGS'
4098 > ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4099 > ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4100 > ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4101  
4102  
4103 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lc" >&5
4104 + $as_echo_n "checking for dlopen in -lc... " >&6; }
4105 + if test "${ac_cv_lib_c_dlopen+set}" = set; then :
4106 +  $as_echo_n "(cached) " >&6
4107 + else
4108 +  ac_check_lib_save_LIBS=$LIBS
4109 + LIBS="-lc  $LIBS"
4110 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4111 + /* end confdefs.h.  */
4112  
4113 + /* Override any GCC internal prototype to avoid an error.
4114 +   Use char because int might match the return type of a GCC
4115 +   builtin and then its argument prototype would still apply.  */
4116 + #ifdef __cplusplus
4117 + extern "C"
4118 + #endif
4119 + char dlopen ();
4120 + int
4121 + main ()
4122 + {
4123 + return dlopen ();
4124 +  ;
4125 +  return 0;
4126 + }
4127 + _ACEOF
4128 + if ac_fn_cxx_try_link "$LINENO"; then :
4129 +  ac_cv_lib_c_dlopen=yes
4130 + else
4131 +  ac_cv_lib_c_dlopen=no
4132 + fi
4133 + rm -f core conftest.err conftest.$ac_objext \
4134 +    conftest$ac_exeext conftest.$ac_ext
4135 + LIBS=$ac_check_lib_save_LIBS
4136 + fi
4137 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_dlopen" >&5
4138 + $as_echo "$ac_cv_lib_c_dlopen" >&6; }
4139 + if test "x$ac_cv_lib_c_dlopen" = x""yes; then :
4140 +  LIBDL=""
4141 + else
4142 +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
4143 + $as_echo_n "checking for dlopen in -ldl... " >&6; }
4144 + if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
4145 +  $as_echo_n "(cached) " >&6
4146 + else
4147 +  ac_check_lib_save_LIBS=$LIBS
4148 + LIBS="-ldl  $LIBS"
4149 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4150 + /* end confdefs.h.  */
4151  
4152 + /* Override any GCC internal prototype to avoid an error.
4153 +   Use char because int might match the return type of a GCC
4154 +   builtin and then its argument prototype would still apply.  */
4155 + #ifdef __cplusplus
4156 + extern "C"
4157 + #endif
4158 + char dlopen ();
4159 + int
4160 + main ()
4161 + {
4162 + return dlopen ();
4163 +  ;
4164 +  return 0;
4165 + }
4166 + _ACEOF
4167 + if ac_fn_cxx_try_link "$LINENO"; then :
4168 +  ac_cv_lib_dl_dlopen=yes
4169 + else
4170 +  ac_cv_lib_dl_dlopen=no
4171 + fi
4172 + rm -f core conftest.err conftest.$ac_objext \
4173 +    conftest$ac_exeext conftest.$ac_ext
4174 + LIBS=$ac_check_lib_save_LIBS
4175 + fi
4176 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
4177 + $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
4178 + if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
4179 +  LIBDL="-ldl"
4180 + fi
4181  
4182 + fi
4183  
4184 <        for ac_prog in openmpif90 mpif90 mpxlf95_r mpxlf90_r mpxlf95 mpxlf90 mpf90 cmpif90c
4184 >
4185 >
4186 >
4187 >
4188 >
4189 >
4190 >        for ac_prog in openmpicxx openmpiCC openmpic++ mpic++ mpicxx mpiCC hcp mpxlC_r mpxlC mpCC cmpic++
4191   do
4192    # Extract the first word of "$ac_prog", so it can be a program name with args.
4193   set dummy $ac_prog; ac_word=$2
4194   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4195   $as_echo_n "checking for $ac_word... " >&6; }
4196 < if test "${ac_cv_prog_MPIFC+set}" = set; then :
4196 > if test "${ac_cv_prog_MPICXX+set}" = set; then :
4197    $as_echo_n "(cached) " >&6
4198   else
4199 <  if test -n "$MPIFC"; then
4200 <  ac_cv_prog_MPIFC="$MPIFC" # Let the user override the test.
4199 >  if test -n "$MPICXX"; then
4200 >  ac_cv_prog_MPICXX="$MPICXX" # Let the user override the test.
4201   else
4202   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4203   for as_dir in $PATH
# Line 4991 | Line 4206 | do
4206    test -z "$as_dir" && as_dir=.
4207      for ac_exec_ext in '' $ac_executable_extensions; do
4208    if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4209 <    ac_cv_prog_MPIFC="$ac_prog"
4209 >    ac_cv_prog_MPICXX="$ac_prog"
4210      $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4211      break 2
4212    fi
# Line 5001 | Line 4216 | fi
4216  
4217   fi
4218   fi
4219 < MPIFC=$ac_cv_prog_MPIFC
4220 < if test -n "$MPIFC"; then
4221 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPIFC" >&5
4222 < $as_echo "$MPIFC" >&6; }
4219 > MPICXX=$ac_cv_prog_MPICXX
4220 > if test -n "$MPICXX"; then
4221 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPICXX" >&5
4222 > $as_echo "$MPICXX" >&6; }
4223   else
4224    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4225   $as_echo "no" >&6; }
4226   fi
4227  
4228  
4229 <  test -n "$MPIFC" && break
4229 >  test -n "$MPICXX" && break
4230   done
4231 < test -n "$MPIFC" || MPIFC="$FC"
4231 > test -n "$MPICXX" || MPICXX="$CXX"
4232  
4233 <        ax_mpi_save_FC="$FC"
4234 <        FC="$MPIFC"
4233 >        ax_mpi_save_CXX="$CXX"
4234 >        CXX="$MPICXX"
4235  
4236  
4237  
4238   if test x = x"$MPILIBS"; then
4239 <        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init" >&5
4240 < $as_echo_n "checking for MPI_Init... " >&6; }
5026 <                        cat > conftest.$ac_ext <<_ACEOF
5027 <      program main
5028 <      call MPI_Init
5029 <      end
5030 < _ACEOF
5031 < if ac_fn_fc_try_link "$LINENO"; then :
4239 >        ac_fn_cxx_check_func "$LINENO" "MPI_Init" "ac_cv_func_MPI_Init"
4240 > if test "x$ac_cv_func_MPI_Init" = x""yes; then :
4241    MPILIBS=" "
5033                                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5034 $as_echo "yes" >&6; }
5035 else
5036  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5037 $as_echo "no" >&6; }
4242   fi
5039 rm -f core conftest.err conftest.$ac_objext \
5040    conftest$ac_exeext conftest.$ac_ext
5041 fi
4243  
5043        if test x = x"$MPILIBS"; then
5044                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lfmpi" >&5
5045 $as_echo_n "checking for MPI_Init in -lfmpi... " >&6; }
5046 if test "${ac_cv_lib_fmpi_MPI_Init+set}" = set; then :
5047  $as_echo_n "(cached) " >&6
5048 else
5049  ac_check_lib_save_LIBS=$LIBS
5050 LIBS="-lfmpi  $LIBS"
5051 cat > conftest.$ac_ext <<_ACEOF
5052      program main
5053      call MPI_Init
5054      end
5055 _ACEOF
5056 if ac_fn_fc_try_link "$LINENO"; then :
5057  ac_cv_lib_fmpi_MPI_Init=yes
5058 else
5059  ac_cv_lib_fmpi_MPI_Init=no
4244   fi
5061 rm -f core conftest.err conftest.$ac_objext \
5062    conftest$ac_exeext conftest.$ac_ext
5063 LIBS=$ac_check_lib_save_LIBS
5064 fi
5065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fmpi_MPI_Init" >&5
5066 $as_echo "$ac_cv_lib_fmpi_MPI_Init" >&6; }
5067 if test "x$ac_cv_lib_fmpi_MPI_Init" = x""yes; then :
5068  MPILIBS="-lfmpi"
5069 fi
4245  
5071        fi
5072        if test x = x"$MPILIBS"; then
5073                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpichf90" >&5
5074 $as_echo_n "checking for MPI_Init in -lmpichf90... " >&6; }
5075 if test "${ac_cv_lib_mpichf90_MPI_Init+set}" = set; then :
5076  $as_echo_n "(cached) " >&6
5077 else
5078  ac_check_lib_save_LIBS=$LIBS
5079 LIBS="-lmpichf90  $LIBS"
5080 cat > conftest.$ac_ext <<_ACEOF
5081      program main
5082      call MPI_Init
5083      end
5084 _ACEOF
5085 if ac_fn_fc_try_link "$LINENO"; then :
5086  ac_cv_lib_mpichf90_MPI_Init=yes
5087 else
5088  ac_cv_lib_mpichf90_MPI_Init=no
5089 fi
5090 rm -f core conftest.err conftest.$ac_objext \
5091    conftest$ac_exeext conftest.$ac_ext
5092 LIBS=$ac_check_lib_save_LIBS
5093 fi
5094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpichf90_MPI_Init" >&5
5095 $as_echo "$ac_cv_lib_mpichf90_MPI_Init" >&6; }
5096 if test "x$ac_cv_lib_mpichf90_MPI_Init" = x""yes; then :
5097  MPILIBS="-lmpichf90"
5098 fi
5099
5100        fi
5101
4246   if test x = x"$MPILIBS"; then
4247          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpi" >&5
4248   $as_echo_n "checking for MPI_Init in -lmpi... " >&6; }
# Line 5107 | Line 4251 | LIBS="-lmpi  $LIBS"
4251   else
4252    ac_check_lib_save_LIBS=$LIBS
4253   LIBS="-lmpi  $LIBS"
4254 < cat > conftest.$ac_ext <<_ACEOF
4255 <      program main
4256 <      call MPI_Init
4257 <      end
4254 > cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4255 > /* end confdefs.h.  */
4256 >
4257 > /* Override any GCC internal prototype to avoid an error.
4258 >   Use char because int might match the return type of a GCC
4259 >   builtin and then its argument prototype would still apply.  */
4260 > #ifdef __cplusplus
4261 > extern "C"
4262 > #endif
4263 > char MPI_Init ();
4264 > int
4265 > main ()
4266 > {
4267 > return MPI_Init ();
4268 >  ;
4269 >  return 0;
4270 > }
4271   _ACEOF
4272 < if ac_fn_fc_try_link "$LINENO"; then :
4272 > if ac_fn_cxx_try_link "$LINENO"; then :
4273    ac_cv_lib_mpi_MPI_Init=yes
4274   else
4275    ac_cv_lib_mpi_MPI_Init=no
# Line 5136 | Line 4293 | LIBS="-lmpich  $LIBS"
4293   else
4294    ac_check_lib_save_LIBS=$LIBS
4295   LIBS="-lmpich  $LIBS"
4296 < cat > conftest.$ac_ext <<_ACEOF
4297 <      program main
4298 <      call MPI_Init
4299 <      end
4296 > cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4297 > /* end confdefs.h.  */
4298 >
4299 > /* Override any GCC internal prototype to avoid an error.
4300 >   Use char because int might match the return type of a GCC
4301 >   builtin and then its argument prototype would still apply.  */
4302 > #ifdef __cplusplus
4303 > extern "C"
4304 > #endif
4305 > char MPI_Init ();
4306 > int
4307 > main ()
4308 > {
4309 > return MPI_Init ();
4310 >  ;
4311 >  return 0;
4312 > }
4313   _ACEOF
4314 < if ac_fn_fc_try_link "$LINENO"; then :
4314 > if ac_fn_cxx_try_link "$LINENO"; then :
4315    ac_cv_lib_mpich_MPI_Init=yes
4316   else
4317    ac_cv_lib_mpich_MPI_Init=no
# Line 5159 | Line 4329 | if test x != x"$MPILIBS"; then
4329   fi
4330  
4331   if test x != x"$MPILIBS"; then
4332 <        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpif.h" >&5
4333 < $as_echo_n "checking for mpif.h... " >&6; }
4334 <        cat > conftest.$ac_ext <<_ACEOF
4335 <      program main
4336 <      include 'mpif.h'
4337 <      end
4332 >        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpi.h" >&5
4333 > $as_echo_n "checking for mpi.h... " >&6; }
4334 >        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4335 > /* end confdefs.h.  */
4336 > #include <mpi.h>
4337 > int
4338 > main ()
4339 > {
4340 >
4341 >  ;
4342 >  return 0;
4343 > }
4344   _ACEOF
4345 < if ac_fn_fc_try_compile "$LINENO"; then :
4345 > if ac_fn_cxx_try_compile "$LINENO"; then :
4346    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4347   $as_echo "yes" >&6; }
4348   else
# Line 5177 | Line 4353 | fi
4353   rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4354   fi
4355  
4356 < FC="$ax_mpi_save_FC"
4356 > CXX="$ax_mpi_save_CXX"
4357  
4358  
4359  
4360   # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
4361   if test x = x"$MPILIBS"; then
4362          USE_MPI="no"
4363 <       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No suitable Fortran MPI implementation found. oopse_MPI will not be built." >&5
4364 < $as_echo "$as_me: WARNING: No suitable Fortran MPI implementation found. oopse_MPI will not be built." >&2;}
4363 >       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No suitable C++ MPI implementation found. openmd_MPI will not be built." >&5
4364 > $as_echo "$as_me: WARNING: No suitable C++ MPI implementation found. openmd_MPI will not be built." >&2;}
4365          :
4366   else
4367          USE_MPI="yes"
# Line 5193 | Line 4369 | fi
4369   fi
4370  
4371  
5196 fi
4372   if test $USE_MPI != no; then :
4373  
5199        CXX=$MPICXX
5200        CC=$MPICC
5201        FC=$MPIFC
5202
5203 fi
5204
5205
5206 # Checks for programs.
5207 ac_ext=cpp
5208 ac_cpp='$CXXCPP $CPPFLAGS'
5209 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5210 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5211 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5212 if test -z "$CXX"; then
5213  if test -n "$CCC"; then
5214    CXX=$CCC
5215  else
5216    if test -n "$ac_tool_prefix"; then
5217  for ac_prog in $CXX icpc pathCC pgCC c++ xlc++ xlC g++ CC
5218  do
5219    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5220 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5222 $as_echo_n "checking for $ac_word... " >&6; }
5223 if test "${ac_cv_prog_CXX+set}" = set; then :
5224  $as_echo_n "(cached) " >&6
5225 else
5226  if test -n "$CXX"; then
5227  ac_cv_prog_CXX="$CXX" # Let the user override the test.
5228 else
5229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5230 for as_dir in $PATH
5231 do
5232  IFS=$as_save_IFS
5233  test -z "$as_dir" && as_dir=.
5234    for ac_exec_ext in '' $ac_executable_extensions; do
5235  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5236    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5237    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5238    break 2
5239  fi
5240 done
5241  done
5242 IFS=$as_save_IFS
5243
5244 fi
5245 fi
5246 CXX=$ac_cv_prog_CXX
5247 if test -n "$CXX"; then
5248  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5249 $as_echo "$CXX" >&6; }
5250 else
5251  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5252 $as_echo "no" >&6; }
5253 fi
5254
5255
5256    test -n "$CXX" && break
5257  done
5258 fi
5259 if test -z "$CXX"; then
5260  ac_ct_CXX=$CXX
5261  for ac_prog in $CXX icpc pathCC pgCC c++ xlc++ xlC g++ CC
5262 do
5263  # Extract the first word of "$ac_prog", so it can be a program name with args.
5264 set dummy $ac_prog; ac_word=$2
5265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5266 $as_echo_n "checking for $ac_word... " >&6; }
5267 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
5268  $as_echo_n "(cached) " >&6
5269 else
5270  if test -n "$ac_ct_CXX"; then
5271  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5272 else
5273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5274 for as_dir in $PATH
5275 do
5276  IFS=$as_save_IFS
5277  test -z "$as_dir" && as_dir=.
5278    for ac_exec_ext in '' $ac_executable_extensions; do
5279  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5280    ac_cv_prog_ac_ct_CXX="$ac_prog"
5281    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5282    break 2
5283  fi
5284 done
5285  done
5286 IFS=$as_save_IFS
5287
5288 fi
5289 fi
5290 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5291 if test -n "$ac_ct_CXX"; then
5292  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5293 $as_echo "$ac_ct_CXX" >&6; }
5294 else
5295  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5296 $as_echo "no" >&6; }
5297 fi
5298
5299
5300  test -n "$ac_ct_CXX" && break
5301 done
5302
5303  if test "x$ac_ct_CXX" = x; then
5304    CXX="g++"
5305  else
5306    case $cross_compiling:$ac_tool_warned in
5307 yes:)
5308 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5309 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5310 ac_tool_warned=yes ;;
5311 esac
5312    CXX=$ac_ct_CXX
5313  fi
5314 fi
5315
5316  fi
5317 fi
5318 # Provide some information about the compiler.
5319 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5320 set X $ac_compile
5321 ac_compiler=$2
5322 for ac_option in --version -v -V -qversion; do
5323  { { ac_try="$ac_compiler $ac_option >&5"
5324 case "(($ac_try" in
5325  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5326  *) ac_try_echo=$ac_try;;
5327 esac
5328 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5329 $as_echo "$ac_try_echo"; } >&5
5330  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5331  ac_status=$?
5332  if test -s conftest.err; then
5333    sed '10a\
5334 ... rest of stderr output deleted ...
5335         10q' conftest.err >conftest.er1
5336    cat conftest.er1 >&5
5337    rm -f conftest.er1 conftest.err
5338  fi
5339  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5340  test $ac_status = 0; }
5341 done
5342
5343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5344 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5345 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
5346  $as_echo_n "(cached) " >&6
5347 else
5348  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5349 /* end confdefs.h.  */
5350
5351 int
5352 main ()
5353 {
5354 #ifndef __GNUC__
5355       choke me
5356 #endif
5357
5358  ;
5359  return 0;
5360 }
5361 _ACEOF
5362 if ac_fn_cxx_try_compile "$LINENO"; then :
5363  ac_compiler_gnu=yes
5364 else
5365  ac_compiler_gnu=no
5366 fi
5367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5368 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5369
5370 fi
5371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5372 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5373 if test $ac_compiler_gnu = yes; then
5374  GXX=yes
5375 else
5376  GXX=
5377 fi
5378 ac_test_CXXFLAGS=${CXXFLAGS+set}
5379 ac_save_CXXFLAGS=$CXXFLAGS
5380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5381 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5382 if test "${ac_cv_prog_cxx_g+set}" = set; then :
5383  $as_echo_n "(cached) " >&6
5384 else
5385  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5386   ac_cxx_werror_flag=yes
5387   ac_cv_prog_cxx_g=no
5388   CXXFLAGS="-g"
5389   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5390 /* end confdefs.h.  */
5391
5392 int
5393 main ()
5394 {
5395
5396  ;
5397  return 0;
5398 }
5399 _ACEOF
5400 if ac_fn_cxx_try_compile "$LINENO"; then :
5401  ac_cv_prog_cxx_g=yes
5402 else
5403  CXXFLAGS=""
5404      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5405 /* end confdefs.h.  */
5406
5407 int
5408 main ()
5409 {
5410
5411  ;
5412  return 0;
5413 }
5414 _ACEOF
5415 if ac_fn_cxx_try_compile "$LINENO"; then :
5416
5417 else
5418  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5419         CXXFLAGS="-g"
5420         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5421 /* end confdefs.h.  */
5422
5423 int
5424 main ()
5425 {
5426
5427  ;
5428  return 0;
5429 }
5430 _ACEOF
5431 if ac_fn_cxx_try_compile "$LINENO"; then :
5432  ac_cv_prog_cxx_g=yes
5433 fi
5434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5435 fi
5436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5437 fi
5438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5439   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5440 fi
5441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5442 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5443 if test "$ac_test_CXXFLAGS" = set; then
5444  CXXFLAGS=$ac_save_CXXFLAGS
5445 elif test $ac_cv_prog_cxx_g = yes; then
5446  if test "$GXX" = yes; then
5447    CXXFLAGS="-g -O2"
5448  else
5449    CXXFLAGS="-g"
5450  fi
5451 else
5452  if test "$GXX" = yes; then
5453    CXXFLAGS="-O2"
5454  else
5455    CXXFLAGS=
5456  fi
5457 fi
5458 ac_ext=${ac_fc_srcext-f}
5459 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
5460 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
5461 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
5462
4374   ac_ext=c
4375   ac_cpp='$CPP $CPPFLAGS'
4376   ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4377   ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4378   ac_compiler_gnu=$ac_cv_c_compiler_gnu
4379 < if test -n "$ac_tool_prefix"; then
4380 <  for ac_prog in $CC icc pathcc pgcc cc xlc gcc
4381 <  do
5471 <    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5472 < set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5473 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5474 < $as_echo_n "checking for $ac_word... " >&6; }
5475 < if test "${ac_cv_prog_CC+set}" = set; then :
5476 <  $as_echo_n "(cached) " >&6
5477 < else
5478 <  if test -n "$CC"; then
5479 <  ac_cv_prog_CC="$CC" # Let the user override the test.
5480 < else
5481 < as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5482 < for as_dir in $PATH
5483 < do
5484 <  IFS=$as_save_IFS
5485 <  test -z "$as_dir" && as_dir=.
5486 <    for ac_exec_ext in '' $ac_executable_extensions; do
5487 <  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5488 <    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5489 <    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5490 <    break 2
5491 <  fi
5492 < done
5493 <  done
5494 < IFS=$as_save_IFS
4379 >
4380 >
4381 >
4382  
5496 fi
5497 fi
5498 CC=$ac_cv_prog_CC
5499 if test -n "$CC"; then
5500  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5501 $as_echo "$CC" >&6; }
5502 else
5503  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5504 $as_echo "no" >&6; }
5505 fi
4383  
4384  
4385 <    test -n "$CC" && break
5509 <  done
5510 < fi
5511 < if test -z "$CC"; then
5512 <  ac_ct_CC=$CC
5513 <  for ac_prog in $CC icc pathcc pgcc cc xlc gcc
4385 >        for ac_prog in openmpicc mpicc hcc mpxlc_r mpxlc mpcc cmpicc
4386   do
4387    # Extract the first word of "$ac_prog", so it can be a program name with args.
4388   set dummy $ac_prog; ac_word=$2
4389   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4390   $as_echo_n "checking for $ac_word... " >&6; }
4391 < if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4391 > if test "${ac_cv_prog_MPICC+set}" = set; then :
4392    $as_echo_n "(cached) " >&6
4393   else
4394 <  if test -n "$ac_ct_CC"; then
4395 <  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4394 >  if test -n "$MPICC"; then
4395 >  ac_cv_prog_MPICC="$MPICC" # Let the user override the test.
4396   else
4397   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4398   for as_dir in $PATH
# Line 5529 | Line 4401 | do
4401    test -z "$as_dir" && as_dir=.
4402      for ac_exec_ext in '' $ac_executable_extensions; do
4403    if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4404 <    ac_cv_prog_ac_ct_CC="$ac_prog"
4404 >    ac_cv_prog_MPICC="$ac_prog"
4405      $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4406      break 2
4407    fi
# Line 5539 | Line 4411 | fi
4411  
4412   fi
4413   fi
4414 < ac_ct_CC=$ac_cv_prog_ac_ct_CC
4415 < if test -n "$ac_ct_CC"; then
4416 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4417 < $as_echo "$ac_ct_CC" >&6; }
4414 > MPICC=$ac_cv_prog_MPICC
4415 > if test -n "$MPICC"; then
4416 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPICC" >&5
4417 > $as_echo "$MPICC" >&6; }
4418   else
4419    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4420   $as_echo "no" >&6; }
4421   fi
4422  
4423  
4424 <  test -n "$ac_ct_CC" && break
4424 >  test -n "$MPICC" && break
4425   done
4426 + test -n "$MPICC" || MPICC="$CC"
4427  
4428 <  if test "x$ac_ct_CC" = x; then
4429 <    CC=""
5557 <  else
5558 <    case $cross_compiling:$ac_tool_warned in
5559 < yes:)
5560 < { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5561 < $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5562 < ac_tool_warned=yes ;;
5563 < esac
5564 <    CC=$ac_ct_CC
5565 <  fi
5566 < fi
4428 >        ax_mpi_save_CC="$CC"
4429 >        CC="$MPICC"
4430  
4431  
5569 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5570 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5571 as_fn_error "no acceptable C compiler found in \$PATH
5572 See \`config.log' for more details." "$LINENO" 5; }
4432  
4433 < # Provide some information about the compiler.
4434 < $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4435 < set X $ac_compile
4436 < ac_compiler=$2
4437 < for ac_option in --version -v -V -qversion; do
5579 <  { { ac_try="$ac_compiler $ac_option >&5"
5580 < case "(($ac_try" in
5581 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5582 <  *) ac_try_echo=$ac_try;;
5583 < esac
5584 < eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5585 < $as_echo "$ac_try_echo"; } >&5
5586 <  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5587 <  ac_status=$?
5588 <  if test -s conftest.err; then
5589 <    sed '10a\
5590 < ... rest of stderr output deleted ...
5591 <         10q' conftest.err >conftest.er1
5592 <    cat conftest.er1 >&5
5593 <    rm -f conftest.er1 conftest.err
5594 <  fi
5595 <  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5596 <  test $ac_status = 0; }
5597 < done
4433 > if test x = x"$MPILIBS"; then
4434 >        ac_fn_c_check_func "$LINENO" "MPI_Init" "ac_cv_func_MPI_Init"
4435 > if test "x$ac_cv_func_MPI_Init" = x""yes; then :
4436 >  MPILIBS=" "
4437 > fi
4438  
4439 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4440 < $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4441 < if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4439 > fi
4440 >
4441 > if test x = x"$MPILIBS"; then
4442 >        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpi" >&5
4443 > $as_echo_n "checking for MPI_Init in -lmpi... " >&6; }
4444 > if test "${ac_cv_lib_mpi_MPI_Init+set}" = set; then :
4445    $as_echo_n "(cached) " >&6
4446   else
4447 <  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4447 >  ac_check_lib_save_LIBS=$LIBS
4448 > LIBS="-lmpi  $LIBS"
4449 > cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4450   /* end confdefs.h.  */
4451  
4452 + /* Override any GCC internal prototype to avoid an error.
4453 +   Use char because int might match the return type of a GCC
4454 +   builtin and then its argument prototype would still apply.  */
4455 + #ifdef __cplusplus
4456 + extern "C"
4457 + #endif
4458 + char MPI_Init ();
4459   int
4460   main ()
4461   {
4462 < #ifndef __GNUC__
5611 <       choke me
5612 < #endif
5613 <
4462 > return MPI_Init ();
4463    ;
4464    return 0;
4465   }
4466   _ACEOF
4467 < if ac_fn_c_try_compile "$LINENO"; then :
4468 <  ac_compiler_gnu=yes
4467 > if ac_fn_c_try_link "$LINENO"; then :
4468 >  ac_cv_lib_mpi_MPI_Init=yes
4469   else
4470 <  ac_compiler_gnu=no
4470 >  ac_cv_lib_mpi_MPI_Init=no
4471   fi
4472 < rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4473 < ac_cv_c_compiler_gnu=$ac_compiler_gnu
4474 <
4472 > rm -f core conftest.err conftest.$ac_objext \
4473 >    conftest$ac_exeext conftest.$ac_ext
4474 > LIBS=$ac_check_lib_save_LIBS
4475   fi
4476 < { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4477 < $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4478 < if test $ac_compiler_gnu = yes; then
4479 <  GCC=yes
5631 < else
5632 <  GCC=
4476 > { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpi_MPI_Init" >&5
4477 > $as_echo "$ac_cv_lib_mpi_MPI_Init" >&6; }
4478 > if test "x$ac_cv_lib_mpi_MPI_Init" = x""yes; then :
4479 >  MPILIBS="-lmpi"
4480   fi
4481 < ac_test_CFLAGS=${CFLAGS+set}
4482 < ac_save_CFLAGS=$CFLAGS
4483 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4484 < $as_echo_n "checking whether $CC accepts -g... " >&6; }
4485 < if test "${ac_cv_prog_cc_g+set}" = set; then :
4481 >
4482 > fi
4483 > if test x = x"$MPILIBS"; then
4484 >        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpich" >&5
4485 > $as_echo_n "checking for MPI_Init in -lmpich... " >&6; }
4486 > if test "${ac_cv_lib_mpich_MPI_Init+set}" = set; then :
4487    $as_echo_n "(cached) " >&6
4488   else
4489 <  ac_save_c_werror_flag=$ac_c_werror_flag
4490 <   ac_c_werror_flag=yes
4491 <   ac_cv_prog_cc_g=no
5644 <   CFLAGS="-g"
5645 <   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4489 >  ac_check_lib_save_LIBS=$LIBS
4490 > LIBS="-lmpich  $LIBS"
4491 > cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4492   /* end confdefs.h.  */
4493  
4494 + /* Override any GCC internal prototype to avoid an error.
4495 +   Use char because int might match the return type of a GCC
4496 +   builtin and then its argument prototype would still apply.  */
4497 + #ifdef __cplusplus
4498 + extern "C"
4499 + #endif
4500 + char MPI_Init ();
4501   int
4502   main ()
4503   {
4504 <
4504 > return MPI_Init ();
4505    ;
4506    return 0;
4507   }
4508   _ACEOF
4509 < if ac_fn_c_try_compile "$LINENO"; then :
4510 <  ac_cv_prog_cc_g=yes
4509 > if ac_fn_c_try_link "$LINENO"; then :
4510 >  ac_cv_lib_mpich_MPI_Init=yes
4511   else
4512 <  CFLAGS=""
4513 <      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4514 < /* end confdefs.h.  */
4512 >  ac_cv_lib_mpich_MPI_Init=no
4513 > fi
4514 > rm -f core conftest.err conftest.$ac_objext \
4515 >    conftest$ac_exeext conftest.$ac_ext
4516 > LIBS=$ac_check_lib_save_LIBS
4517 > fi
4518 > { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpich_MPI_Init" >&5
4519 > $as_echo "$ac_cv_lib_mpich_MPI_Init" >&6; }
4520 > if test "x$ac_cv_lib_mpich_MPI_Init" = x""yes; then :
4521 >  MPILIBS="-lmpich"
4522 > fi
4523  
4524 < int
5664 < main ()
5665 < {
4524 > fi
4525  
4526 <  ;
4527 <  return 0;
4528 < }
4529 < _ACEOF
5671 < if ac_fn_c_try_compile "$LINENO"; then :
5672 <
5673 < else
5674 <  ac_c_werror_flag=$ac_save_c_werror_flag
5675 <         CFLAGS="-g"
5676 <         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4526 > if test x != x"$MPILIBS"; then
4527 >        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpi.h" >&5
4528 > $as_echo_n "checking for mpi.h... " >&6; }
4529 >        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4530   /* end confdefs.h.  */
4531 <
4531 > #include <mpi.h>
4532   int
4533   main ()
4534   {
# Line 5685 | Line 4538 | if ac_fn_c_try_compile "$LINENO"; then :
4538   }
4539   _ACEOF
4540   if ac_fn_c_try_compile "$LINENO"; then :
4541 <  ac_cv_prog_cc_g=yes
4541 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4542 > $as_echo "yes" >&6; }
4543 > else
4544 >  MPILIBS=""
4545 >                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4546 > $as_echo "no" >&6; }
4547   fi
4548   rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4549   fi
4550 < rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4551 < fi
4552 < rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4553 <   ac_c_werror_flag=$ac_save_c_werror_flag
4554 < fi
4555 < { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4556 < $as_echo "$ac_cv_prog_cc_g" >&6; }
4557 < if test "$ac_test_CFLAGS" = set; then
4558 <  CFLAGS=$ac_save_CFLAGS
4559 < elif test $ac_cv_prog_cc_g = yes; then
4560 <  if test "$GCC" = yes; then
5703 <    CFLAGS="-g -O2"
5704 <  else
5705 <    CFLAGS="-g"
5706 <  fi
4550 >
4551 > CC="$ax_mpi_save_CC"
4552 >
4553 >
4554 >
4555 > # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
4556 > if test x = x"$MPILIBS"; then
4557 >        USE_MPI="no"
4558 >       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No suitable C MPI implementation found. openmd_MPI will not be built." >&5
4559 > $as_echo "$as_me: WARNING: No suitable C MPI implementation found. openmd_MPI will not be built." >&2;}
4560 >        :
4561   else
4562 <  if test "$GCC" = yes; then
4563 <    CFLAGS="-O2"
5710 <  else
5711 <    CFLAGS=
5712 <  fi
4562 >        USE_MPI="yes"
4563 >        :
4564   fi
5714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5715 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5716 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5717  $as_echo_n "(cached) " >&6
5718 else
5719  ac_cv_prog_cc_c89=no
5720 ac_save_CC=$CC
5721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5722 /* end confdefs.h.  */
5723 #include <stdarg.h>
5724 #include <stdio.h>
5725 #include <sys/types.h>
5726 #include <sys/stat.h>
5727 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5728 struct buf { int x; };
5729 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5730 static char *e (p, i)
5731     char **p;
5732     int i;
5733 {
5734  return p[i];
5735 }
5736 static char *f (char * (*g) (char **, int), char **p, ...)
5737 {
5738  char *s;
5739  va_list v;
5740  va_start (v,p);
5741  s = g (p, va_arg (v,int));
5742  va_end (v);
5743  return s;
5744 }
4565  
5746 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5747   function prototypes and stuff, but not '\xHH' hex character constants.
5748   These don't provoke an error unfortunately, instead are silently treated
5749   as 'x'.  The following induces an error, until -std is added to get
5750   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5751   array size at least.  It's necessary to write '\x00'==0 to get something
5752   that's true only with -std.  */
5753 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4566  
5755 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5756   inside strings and character constants.  */
5757 #define FOO(x) 'x'
5758 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5759
5760 int test (int i, double x);
5761 struct s1 {int (*f) (int a);};
5762 struct s2 {int (*f) (double a);};
5763 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5764 int argc;
5765 char **argv;
5766 int
5767 main ()
5768 {
5769 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5770  ;
5771  return 0;
5772 }
5773 _ACEOF
5774 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5775        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5776 do
5777  CC="$ac_save_CC $ac_arg"
5778  if ac_fn_c_try_compile "$LINENO"; then :
5779  ac_cv_prog_cc_c89=$ac_arg
4567   fi
5781 rm -f core conftest.err conftest.$ac_objext
5782  test "x$ac_cv_prog_cc_c89" != "xno" && break
5783 done
5784 rm -f conftest.$ac_ext
5785 CC=$ac_save_CC
4568  
4569 < fi
5788 < # AC_CACHE_VAL
5789 < case "x$ac_cv_prog_cc_c89" in
5790 <  x)
5791 <    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5792 < $as_echo "none needed" >&6; } ;;
5793 <  xno)
5794 <    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5795 < $as_echo "unsupported" >&6; } ;;
5796 <  *)
5797 <    CC="$CC $ac_cv_prog_cc_c89"
5798 <    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5799 < $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5800 < esac
5801 < if test "x$ac_cv_prog_cc_c89" != xno; then :
4569 > if test $USE_MPI != no; then :
4570  
5803 fi
5804
4571   ac_ext=${ac_fc_srcext-f}
4572   ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
4573   ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
4574   ac_compiler_gnu=$ac_cv_fc_compiler_gnu
4575  
5810 ac_ext=${ac_fc_srcext-f}
5811 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
5812 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
5813 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
5814 if test -n "$ac_tool_prefix"; then
5815  for ac_prog in $FC ifort ifc pathf95 pgf95 xlf95 lf95 epcf90 pathf90 xlf90 f95 f90 gfortran g95 fort
5816  do
5817    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5818 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5820 $as_echo_n "checking for $ac_word... " >&6; }
5821 if test "${ac_cv_prog_FC+set}" = set; then :
5822  $as_echo_n "(cached) " >&6
5823 else
5824  if test -n "$FC"; then
5825  ac_cv_prog_FC="$FC" # Let the user override the test.
5826 else
5827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5828 for as_dir in $PATH
5829 do
5830  IFS=$as_save_IFS
5831  test -z "$as_dir" && as_dir=.
5832    for ac_exec_ext in '' $ac_executable_extensions; do
5833  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5834    ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
5835    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5836    break 2
5837  fi
5838 done
5839  done
5840 IFS=$as_save_IFS
4576  
5842 fi
5843 fi
5844 FC=$ac_cv_prog_FC
5845 if test -n "$FC"; then
5846  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5
5847 $as_echo "$FC" >&6; }
5848 else
5849  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5850 $as_echo "no" >&6; }
5851 fi
4577  
4578  
4579 <    test -n "$FC" && break
4580 <  done
4581 < fi
5857 < if test -z "$FC"; then
5858 <  ac_ct_FC=$FC
5859 <  for ac_prog in $FC ifort ifc pathf95 pgf95 xlf95 lf95 epcf90 pathf90 xlf90 f95 f90 gfortran g95 fort
4579 >
4580 >
4581 >        for ac_prog in openmpif90 mpif90 mpxlf95_r mpxlf90_r mpxlf95 mpxlf90 mpf90 cmpif90c
4582   do
4583    # Extract the first word of "$ac_prog", so it can be a program name with args.
4584   set dummy $ac_prog; ac_word=$2
4585   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4586   $as_echo_n "checking for $ac_word... " >&6; }
4587 < if test "${ac_cv_prog_ac_ct_FC+set}" = set; then :
4587 > if test "${ac_cv_prog_MPIFC+set}" = set; then :
4588    $as_echo_n "(cached) " >&6
4589   else
4590 <  if test -n "$ac_ct_FC"; then
4591 <  ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
4590 >  if test -n "$MPIFC"; then
4591 >  ac_cv_prog_MPIFC="$MPIFC" # Let the user override the test.
4592   else
4593   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4594   for as_dir in $PATH
# Line 5875 | Line 4597 | do
4597    test -z "$as_dir" && as_dir=.
4598      for ac_exec_ext in '' $ac_executable_extensions; do
4599    if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4600 <    ac_cv_prog_ac_ct_FC="$ac_prog"
4600 >    ac_cv_prog_MPIFC="$ac_prog"
4601      $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4602      break 2
4603    fi
# Line 5885 | Line 4607 | fi
4607  
4608   fi
4609   fi
4610 < ac_ct_FC=$ac_cv_prog_ac_ct_FC
4611 < if test -n "$ac_ct_FC"; then
4612 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5
4613 < $as_echo "$ac_ct_FC" >&6; }
4610 > MPIFC=$ac_cv_prog_MPIFC
4611 > if test -n "$MPIFC"; then
4612 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPIFC" >&5
4613 > $as_echo "$MPIFC" >&6; }
4614   else
4615    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4616   $as_echo "no" >&6; }
4617   fi
4618  
4619  
4620 <  test -n "$ac_ct_FC" && break
4620 >  test -n "$MPIFC" && break
4621   done
4622 + test -n "$MPIFC" || MPIFC="$FC"
4623  
4624 <  if test "x$ac_ct_FC" = x; then
4625 <    FC=""
5903 <  else
5904 <    case $cross_compiling:$ac_tool_warned in
5905 < yes:)
5906 < { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5907 < $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5908 < ac_tool_warned=yes ;;
5909 < esac
5910 <    FC=$ac_ct_FC
5911 <  fi
5912 < fi
4624 >        ax_mpi_save_FC="$FC"
4625 >        FC="$MPIFC"
4626  
4627  
5915 # Provide some information about the compiler.
5916 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5
5917 set X $ac_compile
5918 ac_compiler=$2
5919 for ac_option in --version -v -V -qversion; do
5920  { { ac_try="$ac_compiler $ac_option >&5"
5921 case "(($ac_try" in
5922  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5923  *) ac_try_echo=$ac_try;;
5924 esac
5925 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5926 $as_echo "$ac_try_echo"; } >&5
5927  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5928  ac_status=$?
5929  if test -s conftest.err; then
5930    sed '10a\
5931 ... rest of stderr output deleted ...
5932         10q' conftest.err >conftest.er1
5933    cat conftest.er1 >&5
5934    rm -f conftest.er1 conftest.err
5935  fi
5936  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5937  test $ac_status = 0; }
5938 done
5939 rm -f a.out
4628  
4629 < # If we don't use `.F' as extension, the preprocessor is not run on the
4630 < # input file.  (Note that this only needs to work for GNU compilers.)
4631 < ac_save_ext=$ac_ext
4632 < ac_ext=F
4633 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5
4634 < $as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; }
4635 < if test "${ac_cv_fc_compiler_gnu+set}" = set; then :
4629 > if test x = x"$MPILIBS"; then
4630 >        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init" >&5
4631 > $as_echo_n "checking for MPI_Init... " >&6; }
4632 >                        cat > conftest.$ac_ext <<_ACEOF
4633 >      program main
4634 >      call MPI_Init
4635 >      end
4636 > _ACEOF
4637 > if ac_fn_fc_try_link "$LINENO"; then :
4638 >  MPILIBS=" "
4639 >                                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4640 > $as_echo "yes" >&6; }
4641 > else
4642 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4643 > $as_echo "no" >&6; }
4644 > fi
4645 > rm -f core conftest.err conftest.$ac_objext \
4646 >    conftest$ac_exeext conftest.$ac_ext
4647 > fi
4648 >
4649 >        if test x = x"$MPILIBS"; then
4650 >                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lfmpi" >&5
4651 > $as_echo_n "checking for MPI_Init in -lfmpi... " >&6; }
4652 > if test "${ac_cv_lib_fmpi_MPI_Init+set}" = set; then :
4653    $as_echo_n "(cached) " >&6
4654   else
4655 <  cat > conftest.$ac_ext <<_ACEOF
4655 >  ac_check_lib_save_LIBS=$LIBS
4656 > LIBS="-lfmpi  $LIBS"
4657 > cat > conftest.$ac_ext <<_ACEOF
4658        program main
4659 < #ifndef __GNUC__
5953 <       choke me
5954 < #endif
5955 <
4659 >      call MPI_Init
4660        end
4661   _ACEOF
4662 < if ac_fn_fc_try_compile "$LINENO"; then :
4663 <  ac_compiler_gnu=yes
4662 > if ac_fn_fc_try_link "$LINENO"; then :
4663 >  ac_cv_lib_fmpi_MPI_Init=yes
4664   else
4665 <  ac_compiler_gnu=no
4665 >  ac_cv_lib_fmpi_MPI_Init=no
4666   fi
4667 < rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4668 < ac_cv_fc_compiler_gnu=$ac_compiler_gnu
4667 > rm -f core conftest.err conftest.$ac_objext \
4668 >    conftest$ac_exeext conftest.$ac_ext
4669 > LIBS=$ac_check_lib_save_LIBS
4670 > fi
4671 > { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fmpi_MPI_Init" >&5
4672 > $as_echo "$ac_cv_lib_fmpi_MPI_Init" >&6; }
4673 > if test "x$ac_cv_lib_fmpi_MPI_Init" = x""yes; then :
4674 >  MPILIBS="-lfmpi"
4675 > fi
4676  
4677 +        fi
4678 +        if test x = x"$MPILIBS"; then
4679 +                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpichf90" >&5
4680 + $as_echo_n "checking for MPI_Init in -lmpichf90... " >&6; }
4681 + if test "${ac_cv_lib_mpichf90_MPI_Init+set}" = set; then :
4682 +  $as_echo_n "(cached) " >&6
4683 + else
4684 +  ac_check_lib_save_LIBS=$LIBS
4685 + LIBS="-lmpichf90  $LIBS"
4686 + cat > conftest.$ac_ext <<_ACEOF
4687 +      program main
4688 +      call MPI_Init
4689 +      end
4690 + _ACEOF
4691 + if ac_fn_fc_try_link "$LINENO"; then :
4692 +  ac_cv_lib_mpichf90_MPI_Init=yes
4693 + else
4694 +  ac_cv_lib_mpichf90_MPI_Init=no
4695   fi
4696 < { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5
4697 < $as_echo "$ac_cv_fc_compiler_gnu" >&6; }
4698 < ac_ext=$ac_save_ext
4699 < ac_test_FCFLAGS=${FCFLAGS+set}
4700 < ac_save_FCFLAGS=$FCFLAGS
4701 < FCFLAGS=
4702 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5
4703 < $as_echo_n "checking whether $FC accepts -g... " >&6; }
4704 < if test "${ac_cv_prog_fc_g+set}" = set; then :
4696 > rm -f core conftest.err conftest.$ac_objext \
4697 >    conftest$ac_exeext conftest.$ac_ext
4698 > LIBS=$ac_check_lib_save_LIBS
4699 > fi
4700 > { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpichf90_MPI_Init" >&5
4701 > $as_echo "$ac_cv_lib_mpichf90_MPI_Init" >&6; }
4702 > if test "x$ac_cv_lib_mpichf90_MPI_Init" = x""yes; then :
4703 >  MPILIBS="-lmpichf90"
4704 > fi
4705 >
4706 >        fi
4707 >
4708 > if test x = x"$MPILIBS"; then
4709 >        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpi" >&5
4710 > $as_echo_n "checking for MPI_Init in -lmpi... " >&6; }
4711 > if test "${ac_cv_lib_mpi_MPI_Init+set}" = set; then :
4712    $as_echo_n "(cached) " >&6
4713   else
4714 <  FCFLAGS=-g
4714 >  ac_check_lib_save_LIBS=$LIBS
4715 > LIBS="-lmpi  $LIBS"
4716   cat > conftest.$ac_ext <<_ACEOF
4717        program main
4718 +      call MPI_Init
4719 +      end
4720 + _ACEOF
4721 + if ac_fn_fc_try_link "$LINENO"; then :
4722 +  ac_cv_lib_mpi_MPI_Init=yes
4723 + else
4724 +  ac_cv_lib_mpi_MPI_Init=no
4725 + fi
4726 + rm -f core conftest.err conftest.$ac_objext \
4727 +    conftest$ac_exeext conftest.$ac_ext
4728 + LIBS=$ac_check_lib_save_LIBS
4729 + fi
4730 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpi_MPI_Init" >&5
4731 + $as_echo "$ac_cv_lib_mpi_MPI_Init" >&6; }
4732 + if test "x$ac_cv_lib_mpi_MPI_Init" = x""yes; then :
4733 +  MPILIBS="-lmpi"
4734 + fi
4735  
4736 + fi
4737 + if test x = x"$MPILIBS"; then
4738 +        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpich" >&5
4739 + $as_echo_n "checking for MPI_Init in -lmpich... " >&6; }
4740 + if test "${ac_cv_lib_mpich_MPI_Init+set}" = set; then :
4741 +  $as_echo_n "(cached) " >&6
4742 + else
4743 +  ac_check_lib_save_LIBS=$LIBS
4744 + LIBS="-lmpich  $LIBS"
4745 + cat > conftest.$ac_ext <<_ACEOF
4746 +      program main
4747 +      call MPI_Init
4748        end
4749   _ACEOF
4750 + if ac_fn_fc_try_link "$LINENO"; then :
4751 +  ac_cv_lib_mpich_MPI_Init=yes
4752 + else
4753 +  ac_cv_lib_mpich_MPI_Init=no
4754 + fi
4755 + rm -f core conftest.err conftest.$ac_objext \
4756 +    conftest$ac_exeext conftest.$ac_ext
4757 + LIBS=$ac_check_lib_save_LIBS
4758 + fi
4759 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpich_MPI_Init" >&5
4760 + $as_echo "$ac_cv_lib_mpich_MPI_Init" >&6; }
4761 + if test "x$ac_cv_lib_mpich_MPI_Init" = x""yes; then :
4762 +  MPILIBS="-lmpich"
4763 + fi
4764 +
4765 + fi
4766 +
4767 + if test x != x"$MPILIBS"; then
4768 +        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpif.h" >&5
4769 + $as_echo_n "checking for mpif.h... " >&6; }
4770 +        cat > conftest.$ac_ext <<_ACEOF
4771 +      program main
4772 +      include 'mpif.h'
4773 +      end
4774 + _ACEOF
4775   if ac_fn_fc_try_compile "$LINENO"; then :
4776 <  ac_cv_prog_fc_g=yes
4776 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4777 > $as_echo "yes" >&6; }
4778   else
4779 <  ac_cv_prog_fc_g=no
4779 >  MPILIBS=""
4780 >                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4781 > $as_echo "no" >&6; }
4782   fi
4783   rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5990
4784   fi
4785 < { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5
4786 < $as_echo "$ac_cv_prog_fc_g" >&6; }
4787 < if test "$ac_test_FCFLAGS" = set; then
4788 <  FCFLAGS=$ac_save_FCFLAGS
4789 < elif test $ac_cv_prog_fc_g = yes; then
4790 <  if test "x$ac_cv_fc_compiler_gnu" = xyes; then
4791 <    FCFLAGS="-g -O2"
4792 <  else
4793 <    FCFLAGS="-g"
4794 <  fi
4785 >
4786 > FC="$ax_mpi_save_FC"
4787 >
4788 >
4789 >
4790 > # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
4791 > if test x = x"$MPILIBS"; then
4792 >        USE_MPI="no"
4793 >       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No suitable Fortran MPI implementation found. openmd_MPI will not be built." >&5
4794 > $as_echo "$as_me: WARNING: No suitable Fortran MPI implementation found. openmd_MPI will not be built." >&2;}
4795 >        :
4796   else
4797 <  if test "x$ac_cv_fc_compiler_gnu" = xyes; then
4798 <    FCFLAGS="-O2"
6005 <  else
6006 <    FCFLAGS=
6007 <  fi
4797 >        USE_MPI="yes"
4798 >        :
4799   fi
4800  
4801 < ac_ext=${ac_fc_srcext-f}
4802 < ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
4803 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
4804 < ac_compiler_gnu=$ac_cv_fc_compiler_gnu
4801 >
4802 > fi
4803 > if test $USE_MPI != no; then :
4804 >
4805 >        CXX=$MPICXX
4806 >        CC=$MPICC
4807 >        FC=$MPIFC
4808 >        LIBS="$MPILIBS $LIBS"
4809 >
4810 > else
4811 >
4812 >        CXX=$save_CXX
4813 >        CC=$save_CC
4814 >        FC=$save_FC
4815 >        LIBS=$save_LIBS
4816  
4817 +
4818 + fi
4819 +
4820 +
4821 + # Checks for programs.
4822   ac_ext=c
4823   ac_cpp='$CPP $CPPFLAGS'
4824   ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
# Line 6629 | Line 5436 | esac
5436     x/*) ;;
5437     *) INSTALL=`pwd`/ac-tools/"shtool install -c" ;
5438   esac
5439 < MKINSTALLDIRS=`pwd`/ac-tools/"shtool mkdir -p -f"
5439 > MKINSTALLDIRS=`pwd`/ac-tools/"shtool mkdir -p -f -m 755"
5440   # Extract the first word of "ar", so it can be a program name with args.
5441   set dummy ar; ac_word=$2
5442   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
# Line 8667 | Line 7474 | $as_echo "failed" >&6; }
7474                  echo ""
7475                  echo "*********************************************************"
7476                  echo "* WARNING: Could not find a working zlib installation   *"
7477 <                echo "* If you need OOPSE to be able to deal with compressed  *"
7477 >                echo "* If you need OpenMD to be able to deal with compressed *"
7478                  echo "* trajectory dump files be sure to specify a valid zlib *"
7479                  echo "* installation with --with-zlib=DIR                     *"
7480                  echo "*                                                       *"
7481 <                echo "* OOPSE will still work without zlib installed.         *"
7481 >                echo "* OpenMD will still work without zlib installed.        *"
7482                  echo "*********************************************************"
7483                  echo ""
7484          fi
# Line 8943 | Line 7750 | $as_echo "failed" >&6; }
7750              echo "* compute undulation spectra, be sure to specify a      *"
7751              echo "* valid fftw installation with --with-fftw=DIR          *"
7752              echo "*                                                       *"
7753 <            echo "* OOPSE will still work without fftw installed.         *"
7753 >            echo "* OpenMD will still work without fftw installed.        *"
7754              echo "*********************************************************"
7755              echo ""
7756            fi
# Line 8956 | Line 7763 | fi
7763    fi
7764   fi
7765  
7766 + ac_ext=cpp
7767 + ac_cpp='$CXXCPP $CPPFLAGS'
7768 + ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7769 + ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7770 + ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7771 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
7772 + $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
7773 + if test -z "$CXXCPP"; then
7774 +  if test "${ac_cv_prog_CXXCPP+set}" = set; then :
7775 +  $as_echo_n "(cached) " >&6
7776 + else
7777 +      # Double quotes because CXXCPP needs to be expanded
7778 +    for CXXCPP in "$CXX -E" "/lib/cpp"
7779 +    do
7780 +      ac_preproc_ok=false
7781 + for ac_cxx_preproc_warn_flag in '' yes
7782 + do
7783 +  # Use a header file that comes with gcc, so configuring glibc
7784 +  # with a fresh cross-compiler works.
7785 +  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7786 +  # <limits.h> exists even on freestanding compilers.
7787 +  # On the NeXT, cc -E runs the code through the compiler's parser,
7788 +  # not just through cpp. "Syntax error" is here to catch this case.
7789 +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7790 + /* end confdefs.h.  */
7791 + #ifdef __STDC__
7792 + # include <limits.h>
7793 + #else
7794 + # include <assert.h>
7795 + #endif
7796 +                     Syntax error
7797 + _ACEOF
7798 + if ac_fn_cxx_try_cpp "$LINENO"; then :
7799 +
7800 + else
7801 +  # Broken: fails on valid input.
7802 + continue
7803 + fi
7804 + rm -f conftest.err conftest.$ac_ext
7805 +
7806 +  # OK, works on sane cases.  Now check whether nonexistent headers
7807 +  # can be detected and how.
7808 +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7809 + /* end confdefs.h.  */
7810 + #include <ac_nonexistent.h>
7811 + _ACEOF
7812 + if ac_fn_cxx_try_cpp "$LINENO"; then :
7813 +  # Broken: success on invalid input.
7814 + continue
7815 + else
7816 +  # Passes both tests.
7817 + ac_preproc_ok=:
7818 + break
7819 + fi
7820 + rm -f conftest.err conftest.$ac_ext
7821 +
7822 + done
7823 + # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7824 + rm -f conftest.err conftest.$ac_ext
7825 + if $ac_preproc_ok; then :
7826 +  break
7827 + fi
7828 +
7829 +    done
7830 +    ac_cv_prog_CXXCPP=$CXXCPP
7831 +
7832 + fi
7833 +  CXXCPP=$ac_cv_prog_CXXCPP
7834 + else
7835 +  ac_cv_prog_CXXCPP=$CXXCPP
7836 + fi
7837 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
7838 + $as_echo "$CXXCPP" >&6; }
7839 + ac_preproc_ok=false
7840 + for ac_cxx_preproc_warn_flag in '' yes
7841 + do
7842 +  # Use a header file that comes with gcc, so configuring glibc
7843 +  # with a fresh cross-compiler works.
7844 +  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7845 +  # <limits.h> exists even on freestanding compilers.
7846 +  # On the NeXT, cc -E runs the code through the compiler's parser,
7847 +  # not just through cpp. "Syntax error" is here to catch this case.
7848 +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7849 + /* end confdefs.h.  */
7850 + #ifdef __STDC__
7851 + # include <limits.h>
7852 + #else
7853 + # include <assert.h>
7854 + #endif
7855 +                     Syntax error
7856 + _ACEOF
7857 + if ac_fn_cxx_try_cpp "$LINENO"; then :
7858 +
7859 + else
7860 +  # Broken: fails on valid input.
7861 + continue
7862 + fi
7863 + rm -f conftest.err conftest.$ac_ext
7864 +
7865 +  # OK, works on sane cases.  Now check whether nonexistent headers
7866 +  # can be detected and how.
7867 +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7868 + /* end confdefs.h.  */
7869 + #include <ac_nonexistent.h>
7870 + _ACEOF
7871 + if ac_fn_cxx_try_cpp "$LINENO"; then :
7872 +  # Broken: success on invalid input.
7873 + continue
7874 + else
7875 +  # Passes both tests.
7876 + ac_preproc_ok=:
7877 + break
7878 + fi
7879 + rm -f conftest.err conftest.$ac_ext
7880 +
7881 + done
7882 + # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7883 + rm -f conftest.err conftest.$ac_ext
7884 + if $ac_preproc_ok; then :
7885 +
7886 + else
7887 +  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7888 + $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7889 + as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
7890 + See \`config.log' for more details." "$LINENO" 5; }
7891 + fi
7892 +
7893 + ac_ext=cpp
7894 + ac_cpp='$CXXCPP $CPPFLAGS'
7895 + ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7896 + ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7897 + ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7898 +
7899 +
7900   #
7901   # Handle user hints
7902   #
# Line 8992 | Line 7933 | $as_echo "$as_me: Checking for qhull in ${QHULL_HOME}"
7933          { $as_echo "$as_me:${as_lineno-$LINENO}: Checking for qhull in ${QHULL_HOME}" >&5
7934   $as_echo "$as_me: Checking for qhull in ${QHULL_HOME}" >&6;}
7935  
7936 <        ac_ext=c
7937 < ac_cpp='$CPP $CPPFLAGS'
7938 < ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7939 < ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7940 < ac_compiler_gnu=$ac_cv_c_compiler_gnu
7936 >        ac_ext=cpp
7937 > ac_cpp='$CXXCPP $CPPFLAGS'
7938 > ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7939 > ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7940 > ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7941  
7942          QHULL_OLD_LDFLAGS=$LDFLAGS
7943 <        QHULL_OLD_CFLAGS=$CFLAGS
7943 >        QHULL_OLD_CXXFLAGS=$CXXFLAGS
7944          QHULL_OLD_CPPFLAGS=$CPPFLAGS
7945          LDFLAGS="$LDFLAGS -L${QHULL_HOME}/lib"
7946 <        CFLAGS="$CFLAGS -I${QHULL_HOME}/include"
7946 >        CXXFLAGS="$CXXFLAGS -I${QHULL_HOME}/include"
7947          CPPFLAGS="$CPPFLAGS -I${QHULL_HOME}/include"
7948 <        ac_fn_c_check_header_mongrel "$LINENO" "qhull/qhull.h" "ac_cv_header_qhull_qhull_h" "$ac_includes_default"
7948 >        ac_fn_cxx_check_header_mongrel "$LINENO" "qhull/qhull.h" "ac_cv_header_qhull_qhull_h" "$ac_includes_default"
7949   if test "x$ac_cv_header_qhull_qhull_h" = x""yes; then :
7950    qhull_cv_qhull_h=yes
7951   else
# Line 9045 | Line 7986 | _ACEOF
7986    return 0;
7987   }
7988   _ACEOF
7989 < if ac_fn_c_try_link "$LINENO"; then :
7989 > if ac_fn_cxx_try_link "$LINENO"; then :
7990    ac_cv_lib_qhull_qh_qhull=yes
7991   else
7992    ac_cv_lib_qhull_qh_qhull=no
# Line 9063 | Line 8004 | fi
8004   fi
8005  
8006          LDFLAGS="$QHULL_OLD_LDFLAGS"
8007 <        CFLAGS="$QHULL_OLD_CFLAGS"
8007 >        CXXFLAGS="$QHULL_OLD_CXXFLAGS"
8008          CPPFLAGS="$QHULL_OLD_CPPFLAGS"
8009          ac_ext=c
8010   ac_cpp='$CPP $CPPFLAGS'
# Line 9090 | Line 8031 | $as_echo "$as_me: WARNING: Could not find a working qh
8031   $as_echo "$as_me: WARNING: " >&2;}
8032             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find a working qhull installation" >&5
8033   $as_echo "$as_me: WARNING: Could not find a working qhull installation" >&2;}
8034 <           { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: If you need OOPSE to be able to deal with convex    " >&5
8035 < $as_echo "$as_me: WARNING: If you need OOPSE to be able to deal with convex    " >&2;}
8034 >           { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: If you need OpenMD to be able to deal with convex    " >&5
8035 > $as_echo "$as_me: WARNING: If you need OpenMD to be able to deal with convex    " >&2;}
8036             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: hulls be sure to specify a valid qhull installation " >&5
8037   $as_echo "$as_me: WARNING: hulls be sure to specify a valid qhull installation " >&2;}
8038             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: with --with-qhull=DIR                               " >&5
8039   $as_echo "$as_me: WARNING: with --with-qhull=DIR                               " >&2;}
8040             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: " >&5
8041   $as_echo "$as_me: WARNING: " >&2;}
8042 <           { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OOPSE will still work without qhull installed.      " >&5
8043 < $as_echo "$as_me: WARNING: OOPSE will still work without qhull installed.      " >&2;}
8042 >           { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OpenMD will still work without qhull installed.      " >&5
8043 > $as_echo "$as_me: WARNING: OpenMD will still work without qhull installed.      " >&2;}
8044             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: " >&5
8045   $as_echo "$as_me: WARNING: " >&2;}
8046          fi
8047      fi
9107 fi
9108
9109
9110
9111
9112
9113 ac_ext=cpp
9114 ac_cpp='$CXXCPP $CPPFLAGS'
9115 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9116 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9117 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
9119 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
9120 if test -z "$CXXCPP"; then
9121  if test "${ac_cv_prog_CXXCPP+set}" = set; then :
9122  $as_echo_n "(cached) " >&6
9123 else
9124      # Double quotes because CXXCPP needs to be expanded
9125    for CXXCPP in "$CXX -E" "/lib/cpp"
9126    do
9127      ac_preproc_ok=false
9128 for ac_cxx_preproc_warn_flag in '' yes
9129 do
9130  # Use a header file that comes with gcc, so configuring glibc
9131  # with a fresh cross-compiler works.
9132  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9133  # <limits.h> exists even on freestanding compilers.
9134  # On the NeXT, cc -E runs the code through the compiler's parser,
9135  # not just through cpp. "Syntax error" is here to catch this case.
9136  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9137 /* end confdefs.h.  */
9138 #ifdef __STDC__
9139 # include <limits.h>
9140 #else
9141 # include <assert.h>
9142 #endif
9143                     Syntax error
9144 _ACEOF
9145 if ac_fn_cxx_try_cpp "$LINENO"; then :
9146
9147 else
9148  # Broken: fails on valid input.
9149 continue
9150 fi
9151 rm -f conftest.err conftest.$ac_ext
9152
9153  # OK, works on sane cases.  Now check whether nonexistent headers
9154  # can be detected and how.
9155  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9156 /* end confdefs.h.  */
9157 #include <ac_nonexistent.h>
9158 _ACEOF
9159 if ac_fn_cxx_try_cpp "$LINENO"; then :
9160  # Broken: success on invalid input.
9161 continue
9162 else
9163  # Passes both tests.
9164 ac_preproc_ok=:
9165 break
9166 fi
9167 rm -f conftest.err conftest.$ac_ext
9168
9169 done
9170 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9171 rm -f conftest.err conftest.$ac_ext
9172 if $ac_preproc_ok; then :
9173  break
9174 fi
9175
9176    done
9177    ac_cv_prog_CXXCPP=$CXXCPP
9178
9179 fi
9180  CXXCPP=$ac_cv_prog_CXXCPP
9181 else
9182  ac_cv_prog_CXXCPP=$CXXCPP
9183 fi
9184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
9185 $as_echo "$CXXCPP" >&6; }
9186 ac_preproc_ok=false
9187 for ac_cxx_preproc_warn_flag in '' yes
9188 do
9189  # Use a header file that comes with gcc, so configuring glibc
9190  # with a fresh cross-compiler works.
9191  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9192  # <limits.h> exists even on freestanding compilers.
9193  # On the NeXT, cc -E runs the code through the compiler's parser,
9194  # not just through cpp. "Syntax error" is here to catch this case.
9195  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9196 /* end confdefs.h.  */
9197 #ifdef __STDC__
9198 # include <limits.h>
9199 #else
9200 # include <assert.h>
9201 #endif
9202                     Syntax error
9203 _ACEOF
9204 if ac_fn_cxx_try_cpp "$LINENO"; then :
9205
9206 else
9207  # Broken: fails on valid input.
9208 continue
8048   fi
9210 rm -f conftest.err conftest.$ac_ext
8049  
9212  # OK, works on sane cases.  Now check whether nonexistent headers
9213  # can be detected and how.
9214  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9215 /* end confdefs.h.  */
9216 #include <ac_nonexistent.h>
9217 _ACEOF
9218 if ac_fn_cxx_try_cpp "$LINENO"; then :
9219  # Broken: success on invalid input.
9220 continue
9221 else
9222  # Passes both tests.
9223 ac_preproc_ok=:
9224 break
9225 fi
9226 rm -f conftest.err conftest.$ac_ext
8050  
9228 done
9229 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9230 rm -f conftest.err conftest.$ac_ext
9231 if $ac_preproc_ok; then :
8051  
9233 else
9234  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9235 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9236 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
9237 See \`config.log' for more details." "$LINENO" 5; }
9238 fi
8052  
9240 ac_ext=cpp
9241 ac_cpp='$CXXCPP $CPPFLAGS'
9242 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9243 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9244 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8053  
9246
8054   #
8055   # Handle user hints
8056   #
# Line 9373 | Line 8180 | $as_echo "failed" >&6; }
8180                  echo ""
8181                  echo "*********************************************************"
8182                  echo "* WARNING: Could not find a working openbabel-2.x       *"
8183 <                echo "* installation If you need OOPSE to be able to convert  *"
8183 >                echo "* installation If you need OpenMD to be able to convert *"
8184                  echo "* xyz or pdb files you need to specify a valid          *"
8185                  echo "* openbabel-2.x installation with --with-openbabel=DIR  *"
8186                  echo "*                                                       *"
8187 <                echo "* OOPSE will still work without openbabel installed.    *"
8187 >                echo "* OpenMD will still work without openbabel installed.   *"
8188                  echo "*********************************************************"
8189                  echo ""
8190          fi
# Line 11297 | Line 10104 | ac_log="
10104   # report actual input values of CONFIG_FILES etc. instead of their
10105   # values after options handling.
10106   ac_log="
10107 < This file was extended by OOPSE $as_me 4.0, which was
10108 < generated by GNU Autoconf 2.64.  Invocation command line was
10107 > This file was extended by OpenMD $as_me 1.0, which was
10108 > generated by GNU Autoconf 2.65.  Invocation command line was
10109  
10110    CONFIG_FILES    = $CONFIG_FILES
10111    CONFIG_HEADERS  = $CONFIG_HEADERS
# Line 11337 | Line 10144 | Usage: $0 [OPTION]... [TAG]...
10144  
10145    -h, --help       print this help, then exit
10146    -V, --version    print version number and configuration settings, then exit
10147 +      --config     print configuration, then exit
10148    -q, --quiet, --silent
10149                     do not print progress messages
10150    -d, --debug      don't remove temporary files
# Line 11356 | Line 10164 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10164  
10165   _ACEOF
10166   cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10167 + ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
10168   ac_cs_version="\\
10169 < OOPSE config.status 4.0
10170 < configured by $0, generated by GNU Autoconf 2.64,
10171 <  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
10169 > OpenMD config.status 1.0
10170 > configured by $0, generated by GNU Autoconf 2.65,
10171 >  with options \\"\$ac_cs_config\\"
10172  
10173   Copyright (C) 2009 Free Software Foundation, Inc.
10174   This config.status script is free software; the Free Software Foundation
# Line 11395 | Line 10204 | do
10204      ac_cs_recheck=: ;;
10205    --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
10206      $as_echo "$ac_cs_version"; exit ;;
10207 +  --config | --confi | --conf | --con | --co | --c )
10208 +    $as_echo "$ac_cs_config"; exit ;;
10209    --debug | --debu | --deb | --de | --d | -d )
10210      debug=: ;;
10211    --file | --fil | --fi | --f )
# Line 11580 | Line 10391 | h
10391   t delim
10392   :nl
10393   h
10394 < s/\(.\{148\}\).*/\1/
10394 > s/\(.\{148\}\)..*/\1/
10395   t more1
10396   s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
10397   p
# Line 11594 | Line 10405 | h
10405   t nl
10406   :delim
10407   h
10408 < s/\(.\{148\}\).*/\1/
10408 > s/\(.\{148\}\)..*/\1/
10409   t more2
10410   s/["\\]/\\&/g; s/^/"/; s/$/"/
10411   p

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines