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