| 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 |
| 753 |
– |
MPICC |
| 755 |
|
FC |
| 756 |
|
FCFLAGS |
| 757 |
+ |
MPICXX |
| 758 |
+ |
MPICC |
| 759 |
|
MPIFC |
| 760 |
|
CPP |
| 761 |
|
CXXCPP' |
| 821 |
|
fi |
| 822 |
|
|
| 823 |
|
case $ac_option in |
| 824 |
< |
*=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 825 |
< |
*) ac_optarg=yes ;; |
| 824 |
> |
*=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 825 |
> |
*=) ac_optarg= ;; |
| 826 |
> |
*) ac_optarg=yes ;; |
| 827 |
|
esac |
| 828 |
|
|
| 829 |
|
# Accept the important Cygnus configure options, so we can diagnose typos. |
| 868 |
|
ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
| 869 |
|
# Reject names that are not valid shell variable names. |
| 870 |
|
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 871 |
< |
as_fn_error "invalid feature name: $ac_useropt" |
| 871 |
> |
as_fn_error $? "invalid feature name: $ac_useropt" |
| 872 |
|
ac_useropt_orig=$ac_useropt |
| 873 |
|
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 874 |
|
case $ac_user_opts in |
| 894 |
|
ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
| 895 |
|
# Reject names that are not valid shell variable names. |
| 896 |
|
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 897 |
< |
as_fn_error "invalid feature name: $ac_useropt" |
| 897 |
> |
as_fn_error $? "invalid feature name: $ac_useropt" |
| 898 |
|
ac_useropt_orig=$ac_useropt |
| 899 |
|
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 900 |
|
case $ac_user_opts in |
| 1098 |
|
ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
| 1099 |
|
# Reject names that are not valid shell variable names. |
| 1100 |
|
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 1101 |
< |
as_fn_error "invalid package name: $ac_useropt" |
| 1101 |
> |
as_fn_error $? "invalid package name: $ac_useropt" |
| 1102 |
|
ac_useropt_orig=$ac_useropt |
| 1103 |
|
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1104 |
|
case $ac_user_opts in |
| 1114 |
|
ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
| 1115 |
|
# Reject names that are not valid shell variable names. |
| 1116 |
|
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 1117 |
< |
as_fn_error "invalid package name: $ac_useropt" |
| 1117 |
> |
as_fn_error $? "invalid package name: $ac_useropt" |
| 1118 |
|
ac_useropt_orig=$ac_useropt |
| 1119 |
|
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1120 |
|
case $ac_user_opts in |
| 1144 |
|
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 1145 |
|
x_libraries=$ac_optarg ;; |
| 1146 |
|
|
| 1147 |
< |
-*) as_fn_error "unrecognized option: \`$ac_option' |
| 1148 |
< |
Try \`$0 --help' for more information." |
| 1147 |
> |
-*) as_fn_error $? "unrecognized option: \`$ac_option' |
| 1148 |
> |
Try \`$0 --help' for more information" |
| 1149 |
|
;; |
| 1150 |
|
|
| 1151 |
|
*=*) |
| 1153 |
|
# Reject names that are not valid shell variable names. |
| 1154 |
|
case $ac_envvar in #( |
| 1155 |
|
'' | [0-9]* | *[!_$as_cr_alnum]* ) |
| 1156 |
< |
as_fn_error "invalid variable name: \`$ac_envvar'" ;; |
| 1156 |
> |
as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
| 1157 |
|
esac |
| 1158 |
|
eval $ac_envvar=\$ac_optarg |
| 1159 |
|
export $ac_envvar ;; |
| 1163 |
|
$as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
| 1164 |
|
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 1165 |
|
$as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
| 1166 |
< |
: ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
| 1166 |
> |
: "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
| 1167 |
|
;; |
| 1168 |
|
|
| 1169 |
|
esac |
| 1171 |
|
|
| 1172 |
|
if test -n "$ac_prev"; then |
| 1173 |
|
ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
| 1174 |
< |
as_fn_error "missing argument to $ac_option" |
| 1174 |
> |
as_fn_error $? "missing argument to $ac_option" |
| 1175 |
|
fi |
| 1176 |
|
|
| 1177 |
|
if test -n "$ac_unrecognized_opts"; then |
| 1178 |
|
case $enable_option_checking in |
| 1179 |
|
no) ;; |
| 1180 |
< |
fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; |
| 1180 |
> |
fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
| 1181 |
|
*) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
| 1182 |
|
esac |
| 1183 |
|
fi |
| 1200 |
|
[\\/$]* | ?:[\\/]* ) continue;; |
| 1201 |
|
NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
| 1202 |
|
esac |
| 1203 |
< |
as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" |
| 1203 |
> |
as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
| 1204 |
|
done |
| 1205 |
|
|
| 1206 |
|
# There might be people who depend on the old broken behavior: `$host' |
| 1214 |
|
if test "x$host_alias" != x; then |
| 1215 |
|
if test "x$build_alias" = x; then |
| 1216 |
|
cross_compiling=maybe |
| 1217 |
< |
$as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
| 1218 |
< |
If a cross compiler is detected then cross compile mode will be used." >&2 |
| 1217 |
> |
$as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. |
| 1218 |
> |
If a cross compiler is detected then cross compile mode will be used" >&2 |
| 1219 |
|
elif test "x$build_alias" != "x$host_alias"; then |
| 1220 |
|
cross_compiling=yes |
| 1221 |
|
fi |
| 1230 |
|
ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1231 |
|
ac_ls_di=`ls -di .` && |
| 1232 |
|
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
| 1233 |
< |
as_fn_error "working directory cannot be determined" |
| 1233 |
> |
as_fn_error $? "working directory cannot be determined" |
| 1234 |
|
test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
| 1235 |
< |
as_fn_error "pwd does not report name of working directory" |
| 1235 |
> |
as_fn_error $? "pwd does not report name of working directory" |
| 1236 |
|
|
| 1237 |
|
|
| 1238 |
|
# Find the source files, if location was not specified. |
| 1271 |
|
fi |
| 1272 |
|
if test ! -r "$srcdir/$ac_unique_file"; then |
| 1273 |
|
test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
| 1274 |
< |
as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" |
| 1274 |
> |
as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
| 1275 |
|
fi |
| 1276 |
|
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
| 1277 |
|
ac_abs_confdir=`( |
| 1278 |
< |
cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" |
| 1278 |
> |
cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
| 1279 |
|
pwd)` |
| 1280 |
|
# When building in place, set srcdir=. |
| 1281 |
|
if test "$ac_abs_confdir" = "$ac_pwd"; then |
| 1315 |
|
--help=short display options specific to this package |
| 1316 |
|
--help=recursive display the short help of all the included packages |
| 1317 |
|
-V, --version display version information and exit |
| 1318 |
< |
-q, --quiet, --silent do not print \`checking...' messages |
| 1318 |
> |
-q, --quiet, --silent do not print \`checking ...' messages |
| 1319 |
|
--cache-file=FILE cache test results in FILE [disabled] |
| 1320 |
|
-C, --config-cache alias for \`--cache-file=config.cache' |
| 1321 |
|
-n, --no-create do not create output files |
| 1406 |
|
LIBS libraries to pass to the linker, e.g. -l<library> |
| 1407 |
|
CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
| 1408 |
|
you have headers in a nonstandard directory <include dir> |
| 1405 |
– |
MPICXX MPI C++ compiler command |
| 1409 |
|
CC C compiler command |
| 1410 |
|
CFLAGS C compiler flags |
| 1408 |
– |
MPICC MPI C compiler command |
| 1411 |
|
FC Fortran compiler command |
| 1412 |
|
FCFLAGS Fortran compiler flags |
| 1413 |
+ |
MPICXX MPI C++ compiler command |
| 1414 |
+ |
MPICC MPI C compiler command |
| 1415 |
|
MPIFC MPI Fortran compiler command |
| 1416 |
|
CPP C preprocessor |
| 1417 |
|
CXXCPP C++ preprocessor |
| 1483 |
|
if $ac_init_version; then |
| 1484 |
|
cat <<\_ACEOF |
| 1485 |
|
OpenMD configure 1.0 |
| 1486 |
< |
generated by GNU Autoconf 2.65 |
| 1486 |
> |
generated by GNU Autoconf 2.68 |
| 1487 |
|
|
| 1488 |
< |
Copyright (C) 2009 Free Software Foundation, Inc. |
| 1488 |
> |
Copyright (C) 2010 Free Software Foundation, Inc. |
| 1489 |
|
This configure script is free software; the Free Software Foundation |
| 1490 |
|
gives unlimited permission to copy, distribute and modify it. |
| 1491 |
|
_ACEOF |
| 1529 |
|
|
| 1530 |
|
ac_retval=1 |
| 1531 |
|
fi |
| 1532 |
< |
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 1532 |
> |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1533 |
|
as_fn_set_status $ac_retval |
| 1534 |
|
|
| 1535 |
|
} # ac_fn_cxx_try_compile |
| 1536 |
+ |
|
| 1537 |
+ |
# ac_fn_c_try_compile LINENO |
| 1538 |
+ |
# -------------------------- |
| 1539 |
+ |
# Try to compile conftest.$ac_ext, and return whether this succeeded. |
| 1540 |
+ |
ac_fn_c_try_compile () |
| 1541 |
+ |
{ |
| 1542 |
+ |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1543 |
+ |
rm -f conftest.$ac_objext |
| 1544 |
+ |
if { { ac_try="$ac_compile" |
| 1545 |
+ |
case "(($ac_try" in |
| 1546 |
+ |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1547 |
+ |
*) ac_try_echo=$ac_try;; |
| 1548 |
+ |
esac |
| 1549 |
+ |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1550 |
+ |
$as_echo "$ac_try_echo"; } >&5 |
| 1551 |
+ |
(eval "$ac_compile") 2>conftest.err |
| 1552 |
+ |
ac_status=$? |
| 1553 |
+ |
if test -s conftest.err; then |
| 1554 |
+ |
grep -v '^ *+' conftest.err >conftest.er1 |
| 1555 |
+ |
cat conftest.er1 >&5 |
| 1556 |
+ |
mv -f conftest.er1 conftest.err |
| 1557 |
+ |
fi |
| 1558 |
+ |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1559 |
+ |
test $ac_status = 0; } && { |
| 1560 |
+ |
test -z "$ac_c_werror_flag" || |
| 1561 |
+ |
test ! -s conftest.err |
| 1562 |
+ |
} && test -s conftest.$ac_objext; then : |
| 1563 |
+ |
ac_retval=0 |
| 1564 |
+ |
else |
| 1565 |
+ |
$as_echo "$as_me: failed program was:" >&5 |
| 1566 |
+ |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 1567 |
|
|
| 1568 |
+ |
ac_retval=1 |
| 1569 |
+ |
fi |
| 1570 |
+ |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1571 |
+ |
as_fn_set_status $ac_retval |
| 1572 |
+ |
|
| 1573 |
+ |
} # ac_fn_c_try_compile |
| 1574 |
+ |
|
| 1575 |
+ |
# ac_fn_fc_try_compile LINENO |
| 1576 |
+ |
# --------------------------- |
| 1577 |
+ |
# Try to compile conftest.$ac_ext, and return whether this succeeded. |
| 1578 |
+ |
ac_fn_fc_try_compile () |
| 1579 |
+ |
{ |
| 1580 |
+ |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1581 |
+ |
rm -f conftest.$ac_objext |
| 1582 |
+ |
if { { ac_try="$ac_compile" |
| 1583 |
+ |
case "(($ac_try" in |
| 1584 |
+ |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1585 |
+ |
*) ac_try_echo=$ac_try;; |
| 1586 |
+ |
esac |
| 1587 |
+ |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1588 |
+ |
$as_echo "$ac_try_echo"; } >&5 |
| 1589 |
+ |
(eval "$ac_compile") 2>conftest.err |
| 1590 |
+ |
ac_status=$? |
| 1591 |
+ |
if test -s conftest.err; then |
| 1592 |
+ |
grep -v '^ *+' conftest.err >conftest.er1 |
| 1593 |
+ |
cat conftest.er1 >&5 |
| 1594 |
+ |
mv -f conftest.er1 conftest.err |
| 1595 |
+ |
fi |
| 1596 |
+ |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1597 |
+ |
test $ac_status = 0; } && { |
| 1598 |
+ |
test -z "$ac_fc_werror_flag" || |
| 1599 |
+ |
test ! -s conftest.err |
| 1600 |
+ |
} && test -s conftest.$ac_objext; then : |
| 1601 |
+ |
ac_retval=0 |
| 1602 |
+ |
else |
| 1603 |
+ |
$as_echo "$as_me: failed program was:" >&5 |
| 1604 |
+ |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 1605 |
+ |
|
| 1606 |
+ |
ac_retval=1 |
| 1607 |
+ |
fi |
| 1608 |
+ |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1609 |
+ |
as_fn_set_status $ac_retval |
| 1610 |
+ |
|
| 1611 |
+ |
} # ac_fn_fc_try_compile |
| 1612 |
+ |
|
| 1613 |
|
# ac_fn_cxx_try_link LINENO |
| 1614 |
|
# ------------------------- |
| 1615 |
|
# Try to link conftest.$ac_ext, and return whether this succeeded. |
| 1651 |
|
# interfere with the next link command; also delete a directory that is |
| 1652 |
|
# left behind by Apple's compiler. We do this before executing the actions. |
| 1653 |
|
rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
| 1654 |
< |
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 1654 |
> |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1655 |
|
as_fn_set_status $ac_retval |
| 1656 |
|
|
| 1657 |
|
} # ac_fn_cxx_try_link |
| 1664 |
|
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1665 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1666 |
|
$as_echo_n "checking for $2... " >&6; } |
| 1667 |
< |
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 1667 |
> |
if eval \${$3+:} false; then : |
| 1668 |
|
$as_echo_n "(cached) " >&6 |
| 1669 |
|
else |
| 1670 |
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1719 |
|
eval ac_res=\$$3 |
| 1720 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1721 |
|
$as_echo "$ac_res" >&6; } |
| 1722 |
< |
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 1722 |
> |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1723 |
|
|
| 1724 |
|
} # ac_fn_cxx_check_func |
| 1725 |
|
|
| 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 |
– |
|
| 1726 |
|
# ac_fn_c_try_link LINENO |
| 1727 |
|
# ----------------------- |
| 1728 |
|
# Try to link conftest.$ac_ext, and return whether this succeeded. |
| 1764 |
|
# interfere with the next link command; also delete a directory that is |
| 1765 |
|
# left behind by Apple's compiler. We do this before executing the actions. |
| 1766 |
|
rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
| 1767 |
< |
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 1767 |
> |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1768 |
|
as_fn_set_status $ac_retval |
| 1769 |
|
|
| 1770 |
|
} # ac_fn_c_try_link |
| 1777 |
|
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1778 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1779 |
|
$as_echo_n "checking for $2... " >&6; } |
| 1780 |
< |
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 1780 |
> |
if eval \${$3+:} false; then : |
| 1781 |
|
$as_echo_n "(cached) " >&6 |
| 1782 |
|
else |
| 1783 |
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1832 |
|
eval ac_res=\$$3 |
| 1833 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1834 |
|
$as_echo "$ac_res" >&6; } |
| 1835 |
< |
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 1835 |
> |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1836 |
|
|
| 1837 |
|
} # ac_fn_c_check_func |
| 1838 |
|
|
| 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 |
– |
|
| 1839 |
|
# ac_fn_fc_try_link LINENO |
| 1840 |
|
# ------------------------ |
| 1841 |
|
# Try to link conftest.$ac_ext, and return whether this succeeded. |
| 1877 |
|
# interfere with the next link command; also delete a directory that is |
| 1878 |
|
# left behind by Apple's compiler. We do this before executing the actions. |
| 1879 |
|
rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
| 1880 |
< |
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 1880 |
> |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1881 |
|
as_fn_set_status $ac_retval |
| 1882 |
|
|
| 1883 |
|
} # ac_fn_fc_try_link |
| 1903 |
|
mv -f conftest.er1 conftest.err |
| 1904 |
|
fi |
| 1905 |
|
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1906 |
< |
test $ac_status = 0; } >/dev/null && { |
| 1906 |
> |
test $ac_status = 0; } > conftest.i && { |
| 1907 |
|
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 1908 |
|
test ! -s conftest.err |
| 1909 |
|
}; then : |
| 1914 |
|
|
| 1915 |
|
ac_retval=1 |
| 1916 |
|
fi |
| 1917 |
< |
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 1917 |
> |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1918 |
|
as_fn_set_status $ac_retval |
| 1919 |
|
|
| 1920 |
|
} # ac_fn_c_try_cpp |
| 1927 |
|
ac_fn_c_check_header_mongrel () |
| 1928 |
|
{ |
| 1929 |
|
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1930 |
< |
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 1930 |
> |
if eval \${$3+:} false; then : |
| 1931 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1932 |
|
$as_echo_n "checking for $2... " >&6; } |
| 1933 |
< |
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 1933 |
> |
if eval \${$3+:} false; then : |
| 1934 |
|
$as_echo_n "(cached) " >&6 |
| 1935 |
|
fi |
| 1936 |
|
eval ac_res=\$$3 |
| 1966 |
|
else |
| 1967 |
|
ac_header_preproc=no |
| 1968 |
|
fi |
| 1969 |
< |
rm -f conftest.err conftest.$ac_ext |
| 1969 |
> |
rm -f conftest.err conftest.i conftest.$ac_ext |
| 1970 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
| 1971 |
|
$as_echo "$ac_header_preproc" >&6; } |
| 1972 |
|
|
| 1989 |
|
$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} |
| 1990 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
| 1991 |
|
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
| 1992 |
< |
( cat <<\_ASBOX |
| 1989 |
< |
## ------------------------------ ## |
| 1992 |
> |
( $as_echo "## ------------------------------ ## |
| 1993 |
|
## Report this to gezelter@nd.edu ## |
| 1994 |
< |
## ------------------------------ ## |
| 1992 |
< |
_ASBOX |
| 1994 |
> |
## ------------------------------ ##" |
| 1995 |
|
) | sed "s/^/$as_me: WARNING: /" >&2 |
| 1996 |
|
;; |
| 1997 |
|
esac |
| 1998 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1999 |
|
$as_echo_n "checking for $2... " >&6; } |
| 2000 |
< |
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 2000 |
> |
if eval \${$3+:} false; then : |
| 2001 |
|
$as_echo_n "(cached) " >&6 |
| 2002 |
|
else |
| 2003 |
|
eval "$3=\$ac_header_compiler" |
| 2006 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2007 |
|
$as_echo "$ac_res" >&6; } |
| 2008 |
|
fi |
| 2009 |
< |
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 2009 |
> |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 2010 |
|
|
| 2011 |
|
} # ac_fn_c_check_header_mongrel |
| 2012 |
|
|
| 2047 |
|
ac_retval=$ac_status |
| 2048 |
|
fi |
| 2049 |
|
rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
| 2050 |
< |
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 2050 |
> |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 2051 |
|
as_fn_set_status $ac_retval |
| 2052 |
|
|
| 2053 |
|
} # ac_fn_c_try_run |
| 2061 |
|
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2062 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 2063 |
|
$as_echo_n "checking for $2... " >&6; } |
| 2064 |
< |
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 2064 |
> |
if eval \${$3+:} false; then : |
| 2065 |
|
$as_echo_n "(cached) " >&6 |
| 2066 |
|
else |
| 2067 |
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2079 |
|
eval ac_res=\$$3 |
| 2080 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2081 |
|
$as_echo "$ac_res" >&6; } |
| 2082 |
< |
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 2082 |
> |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 2083 |
|
|
| 2084 |
|
} # ac_fn_c_check_header_compile |
| 2085 |
|
|
| 2104 |
|
mv -f conftest.er1 conftest.err |
| 2105 |
|
fi |
| 2106 |
|
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2107 |
< |
test $ac_status = 0; } >/dev/null && { |
| 2107 |
> |
test $ac_status = 0; } > conftest.i && { |
| 2108 |
|
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
| 2109 |
|
test ! -s conftest.err |
| 2110 |
|
}; then : |
| 2115 |
|
|
| 2116 |
|
ac_retval=1 |
| 2117 |
|
fi |
| 2118 |
< |
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 2118 |
> |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 2119 |
|
as_fn_set_status $ac_retval |
| 2120 |
|
|
| 2121 |
|
} # ac_fn_cxx_try_cpp |
| 2128 |
|
ac_fn_cxx_check_header_mongrel () |
| 2129 |
|
{ |
| 2130 |
|
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2131 |
< |
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 2131 |
> |
if eval \${$3+:} false; then : |
| 2132 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 2133 |
|
$as_echo_n "checking for $2... " >&6; } |
| 2134 |
< |
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 2134 |
> |
if eval \${$3+:} false; then : |
| 2135 |
|
$as_echo_n "(cached) " >&6 |
| 2136 |
|
fi |
| 2137 |
|
eval ac_res=\$$3 |
| 2167 |
|
else |
| 2168 |
|
ac_header_preproc=no |
| 2169 |
|
fi |
| 2170 |
< |
rm -f conftest.err conftest.$ac_ext |
| 2170 |
> |
rm -f conftest.err conftest.i conftest.$ac_ext |
| 2171 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
| 2172 |
|
$as_echo "$ac_header_preproc" >&6; } |
| 2173 |
|
|
| 2190 |
|
$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} |
| 2191 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
| 2192 |
|
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
| 2193 |
< |
( cat <<\_ASBOX |
| 2192 |
< |
## ------------------------------ ## |
| 2193 |
> |
( $as_echo "## ------------------------------ ## |
| 2194 |
|
## Report this to gezelter@nd.edu ## |
| 2195 |
< |
## ------------------------------ ## |
| 2195 |
< |
_ASBOX |
| 2195 |
> |
## ------------------------------ ##" |
| 2196 |
|
) | sed "s/^/$as_me: WARNING: /" >&2 |
| 2197 |
|
;; |
| 2198 |
|
esac |
| 2199 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 2200 |
|
$as_echo_n "checking for $2... " >&6; } |
| 2201 |
< |
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 2201 |
> |
if eval \${$3+:} false; then : |
| 2202 |
|
$as_echo_n "(cached) " >&6 |
| 2203 |
|
else |
| 2204 |
|
eval "$3=\$ac_header_compiler" |
| 2207 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2208 |
|
$as_echo "$ac_res" >&6; } |
| 2209 |
|
fi |
| 2210 |
< |
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 2210 |
> |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 2211 |
|
|
| 2212 |
|
} # ac_fn_cxx_check_header_mongrel |
| 2213 |
|
|
| 2220 |
|
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2221 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 2222 |
|
$as_echo_n "checking for $2... " >&6; } |
| 2223 |
< |
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 2223 |
> |
if eval \${$3+:} false; then : |
| 2224 |
|
$as_echo_n "(cached) " >&6 |
| 2225 |
|
else |
| 2226 |
|
eval "$3=no" |
| 2277 |
|
eval ac_res=\$$3 |
| 2278 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2279 |
|
$as_echo "$ac_res" >&6; } |
| 2280 |
< |
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 2280 |
> |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 2281 |
|
|
| 2282 |
|
} # ac_fn_c_check_type |
| 2283 |
|
cat >config.log <<_ACEOF |
| 2285 |
|
running configure, to aid debugging if configure makes a mistake. |
| 2286 |
|
|
| 2287 |
|
It was created by OpenMD $as_me 1.0, which was |
| 2288 |
< |
generated by GNU Autoconf 2.65. Invocation command line was |
| 2288 |
> |
generated by GNU Autoconf 2.68. Invocation command line was |
| 2289 |
|
|
| 2290 |
|
$ $0 $@ |
| 2291 |
|
|
| 2395 |
|
{ |
| 2396 |
|
echo |
| 2397 |
|
|
| 2398 |
< |
cat <<\_ASBOX |
| 2399 |
< |
## ---------------- ## |
| 2398 |
> |
$as_echo "## ---------------- ## |
| 2399 |
|
## Cache variables. ## |
| 2400 |
< |
## ---------------- ## |
| 2402 |
< |
_ASBOX |
| 2400 |
> |
## ---------------- ##" |
| 2401 |
|
echo |
| 2402 |
|
# The following way of writing the cache mishandles newlines in values, |
| 2403 |
|
( |
| 2431 |
|
) |
| 2432 |
|
echo |
| 2433 |
|
|
| 2434 |
< |
cat <<\_ASBOX |
| 2437 |
< |
## ----------------- ## |
| 2434 |
> |
$as_echo "## ----------------- ## |
| 2435 |
|
## Output variables. ## |
| 2436 |
< |
## ----------------- ## |
| 2440 |
< |
_ASBOX |
| 2436 |
> |
## ----------------- ##" |
| 2437 |
|
echo |
| 2438 |
|
for ac_var in $ac_subst_vars |
| 2439 |
|
do |
| 2446 |
|
echo |
| 2447 |
|
|
| 2448 |
|
if test -n "$ac_subst_files"; then |
| 2449 |
< |
cat <<\_ASBOX |
| 2454 |
< |
## ------------------- ## |
| 2449 |
> |
$as_echo "## ------------------- ## |
| 2450 |
|
## File substitutions. ## |
| 2451 |
< |
## ------------------- ## |
| 2457 |
< |
_ASBOX |
| 2451 |
> |
## ------------------- ##" |
| 2452 |
|
echo |
| 2453 |
|
for ac_var in $ac_subst_files |
| 2454 |
|
do |
| 2462 |
|
fi |
| 2463 |
|
|
| 2464 |
|
if test -s confdefs.h; then |
| 2465 |
< |
cat <<\_ASBOX |
| 2472 |
< |
## ----------- ## |
| 2465 |
> |
$as_echo "## ----------- ## |
| 2466 |
|
## confdefs.h. ## |
| 2467 |
< |
## ----------- ## |
| 2475 |
< |
_ASBOX |
| 2467 |
> |
## ----------- ##" |
| 2468 |
|
echo |
| 2469 |
|
cat confdefs.h |
| 2470 |
|
echo |
| 2519 |
|
ac_site_file1=NONE |
| 2520 |
|
ac_site_file2=NONE |
| 2521 |
|
if test -n "$CONFIG_SITE"; then |
| 2522 |
< |
ac_site_file1=$CONFIG_SITE |
| 2522 |
> |
# We do not want a PATH search for config.site. |
| 2523 |
> |
case $CONFIG_SITE in #(( |
| 2524 |
> |
-*) ac_site_file1=./$CONFIG_SITE;; |
| 2525 |
> |
*/*) ac_site_file1=$CONFIG_SITE;; |
| 2526 |
> |
*) ac_site_file1=./$CONFIG_SITE;; |
| 2527 |
> |
esac |
| 2528 |
|
elif test "x$prefix" != xNONE; then |
| 2529 |
|
ac_site_file1=$prefix/share/config.site |
| 2530 |
|
ac_site_file2=$prefix/etc/config.site |
| 2539 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
| 2540 |
|
$as_echo "$as_me: loading site script $ac_site_file" >&6;} |
| 2541 |
|
sed 's/^/| /' "$ac_site_file" >&5 |
| 2542 |
< |
. "$ac_site_file" |
| 2542 |
> |
. "$ac_site_file" \ |
| 2543 |
> |
|| { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2544 |
> |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2545 |
> |
as_fn_error $? "failed to load site script $ac_site_file |
| 2546 |
> |
See \`config.log' for more details" "$LINENO" 5; } |
| 2547 |
|
fi |
| 2548 |
|
done |
| 2549 |
|
|
| 2619 |
|
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2620 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 |
| 2621 |
|
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 2622 |
< |
as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
| 2622 |
> |
as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
| 2623 |
|
fi |
| 2624 |
|
## -------------------- ## |
| 2625 |
|
## Main body of script. ## |
| 2634 |
|
|
| 2635 |
|
ac_aux_dir= |
| 2636 |
|
for ac_dir in ac-tools "$srcdir"/ac-tools; do |
| 2637 |
< |
for ac_t in install-sh install.sh shtool; do |
| 2638 |
< |
if test -f "$ac_dir/$ac_t"; then |
| 2639 |
< |
ac_aux_dir=$ac_dir |
| 2640 |
< |
ac_install_sh="$ac_aux_dir/$ac_t -c" |
| 2641 |
< |
break 2 |
| 2642 |
< |
fi |
| 2643 |
< |
done |
| 2637 |
> |
if test -f "$ac_dir/install-sh"; then |
| 2638 |
> |
ac_aux_dir=$ac_dir |
| 2639 |
> |
ac_install_sh="$ac_aux_dir/install-sh -c" |
| 2640 |
> |
break |
| 2641 |
> |
elif test -f "$ac_dir/install.sh"; then |
| 2642 |
> |
ac_aux_dir=$ac_dir |
| 2643 |
> |
ac_install_sh="$ac_aux_dir/install.sh -c" |
| 2644 |
> |
break |
| 2645 |
> |
elif test -f "$ac_dir/shtool"; then |
| 2646 |
> |
ac_aux_dir=$ac_dir |
| 2647 |
> |
ac_install_sh="$ac_aux_dir/shtool install -c" |
| 2648 |
> |
break |
| 2649 |
> |
fi |
| 2650 |
|
done |
| 2651 |
|
if test -z "$ac_aux_dir"; then |
| 2652 |
< |
as_fn_error "cannot find install-sh, install.sh, or shtool in ac-tools \"$srcdir\"/ac-tools" "$LINENO" 5 |
| 2652 |
> |
as_fn_error $? "cannot find install-sh, install.sh, or shtool in ac-tools \"$srcdir\"/ac-tools" "$LINENO" 5 |
| 2653 |
|
fi |
| 2654 |
|
|
| 2655 |
|
# These three variables are undocumented and unsupported, |
| 2906 |
|
# who am i |
| 2907 |
|
# Make sure we can run config.sub. |
| 2908 |
|
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
| 2909 |
< |
as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 |
| 2909 |
> |
as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 |
| 2910 |
|
|
| 2911 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 |
| 2912 |
|
$as_echo_n "checking build system type... " >&6; } |
| 2913 |
< |
if test "${ac_cv_build+set}" = set; then : |
| 2913 |
> |
if ${ac_cv_build+:} false; then : |
| 2914 |
|
$as_echo_n "(cached) " >&6 |
| 2915 |
|
else |
| 2916 |
|
ac_build_alias=$build_alias |
| 2917 |
|
test "x$ac_build_alias" = x && |
| 2918 |
|
ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
| 2919 |
|
test "x$ac_build_alias" = x && |
| 2920 |
< |
as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5 |
| 2920 |
> |
as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 |
| 2921 |
|
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
| 2922 |
< |
as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 |
| 2922 |
> |
as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 |
| 2923 |
|
|
| 2924 |
|
fi |
| 2925 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 |
| 2926 |
|
$as_echo "$ac_cv_build" >&6; } |
| 2927 |
|
case $ac_cv_build in |
| 2928 |
|
*-*-*) ;; |
| 2929 |
< |
*) as_fn_error "invalid value of canonical build" "$LINENO" 5;; |
| 2929 |
> |
*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; |
| 2930 |
|
esac |
| 2931 |
|
build=$ac_cv_build |
| 2932 |
|
ac_save_IFS=$IFS; IFS='-' |
| 2944 |
|
|
| 2945 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
| 2946 |
|
$as_echo_n "checking host system type... " >&6; } |
| 2947 |
< |
if test "${ac_cv_host+set}" = set; then : |
| 2947 |
> |
if ${ac_cv_host+:} false; then : |
| 2948 |
|
$as_echo_n "(cached) " >&6 |
| 2949 |
|
else |
| 2950 |
|
if test "x$host_alias" = x; then |
| 2951 |
|
ac_cv_host=$ac_cv_build |
| 2952 |
|
else |
| 2953 |
|
ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
| 2954 |
< |
as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 |
| 2954 |
> |
as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 |
| 2955 |
|
fi |
| 2956 |
|
|
| 2957 |
|
fi |
| 2959 |
|
$as_echo "$ac_cv_host" >&6; } |
| 2960 |
|
case $ac_cv_host in |
| 2961 |
|
*-*-*) ;; |
| 2962 |
< |
*) as_fn_error "invalid value of canonical host" "$LINENO" 5;; |
| 2962 |
> |
*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; |
| 2963 |
|
esac |
| 2964 |
|
host=$ac_cv_host |
| 2965 |
|
ac_save_IFS=$IFS; IFS='-' |
| 3037 |
|
|
| 3038 |
|
fi |
| 3039 |
|
|
| 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 |
– |
|
| 3040 |
|
ac_ext=cpp |
| 3041 |
|
ac_cpp='$CXXCPP $CPPFLAGS' |
| 3042 |
|
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3043 |
|
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3044 |
|
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 |
| 3045 |
|
if test -z "$CXX"; then |
| 3046 |
|
if test -n "$CCC"; then |
| 3047 |
|
CXX=$CCC |
| 3048 |
|
else |
| 3049 |
|
if test -n "$ac_tool_prefix"; then |
| 3050 |
< |
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
| 3050 |
> |
for ac_prog in $CXX icpc pathCC pgCC c++ xlc++ xlC g++ CC |
| 3051 |
|
do |
| 3052 |
|
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 3053 |
|
set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 3054 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3055 |
|
$as_echo_n "checking for $ac_word... " >&6; } |
| 3056 |
< |
if test "${ac_cv_prog_CXX+set}" = set; then : |
| 3056 |
> |
if ${ac_cv_prog_CXX+:} false; then : |
| 3057 |
|
$as_echo_n "(cached) " >&6 |
| 3058 |
|
else |
| 3059 |
|
if test -n "$CXX"; then |
| 3091 |
|
fi |
| 3092 |
|
if test -z "$CXX"; then |
| 3093 |
|
ac_ct_CXX=$CXX |
| 3094 |
< |
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
| 3094 |
> |
for ac_prog in $CXX icpc pathCC pgCC c++ xlc++ xlC g++ CC |
| 3095 |
|
do |
| 3096 |
|
# Extract the first word of "$ac_prog", so it can be a program name with args. |
| 3097 |
|
set dummy $ac_prog; ac_word=$2 |
| 3098 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3099 |
|
$as_echo_n "checking for $ac_word... " >&6; } |
| 3100 |
< |
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then : |
| 3100 |
> |
if ${ac_cv_prog_ac_ct_CXX+:} false; then : |
| 3101 |
|
$as_echo_n "(cached) " >&6 |
| 3102 |
|
else |
| 3103 |
|
if test -n "$ac_ct_CXX"; then |
| 3260 |
|
|
| 3261 |
|
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3262 |
|
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 3263 |
< |
{ as_fn_set_status 77 |
| 3264 |
< |
as_fn_error "C++ compiler cannot create executables |
| 3577 |
< |
See \`config.log' for more details." "$LINENO" 5; }; } |
| 3263 |
> |
as_fn_error 77 "C++ compiler cannot create executables |
| 3264 |
> |
See \`config.log' for more details" "$LINENO" 5; } |
| 3265 |
|
else |
| 3266 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 3267 |
|
$as_echo "yes" >&6; } |
| 3303 |
|
else |
| 3304 |
|
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3305 |
|
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 3306 |
< |
as_fn_error "cannot compute suffix of executables: cannot compile and link |
| 3307 |
< |
See \`config.log' for more details." "$LINENO" 5; } |
| 3306 |
> |
as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
| 3307 |
> |
See \`config.log' for more details" "$LINENO" 5; } |
| 3308 |
|
fi |
| 3309 |
|
rm -f conftest conftest$ac_cv_exeext |
| 3310 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
| 3361 |
|
else |
| 3362 |
|
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3363 |
|
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 3364 |
< |
as_fn_error "cannot run C++ compiled programs. |
| 3364 |
> |
as_fn_error $? "cannot run C++ compiled programs. |
| 3365 |
|
If you meant to cross compile, use \`--host'. |
| 3366 |
< |
See \`config.log' for more details." "$LINENO" 5; } |
| 3366 |
> |
See \`config.log' for more details" "$LINENO" 5; } |
| 3367 |
|
fi |
| 3368 |
|
fi |
| 3369 |
|
fi |
| 3374 |
|
ac_clean_files=$ac_clean_files_save |
| 3375 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
| 3376 |
|
$as_echo_n "checking for suffix of object files... " >&6; } |
| 3377 |
< |
if test "${ac_cv_objext+set}" = set; then : |
| 3377 |
> |
if ${ac_cv_objext+:} false; then : |
| 3378 |
|
$as_echo_n "(cached) " >&6 |
| 3379 |
|
else |
| 3380 |
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3414 |
|
|
| 3415 |
|
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3416 |
|
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 3417 |
< |
as_fn_error "cannot compute suffix of object files: cannot compile |
| 3418 |
< |
See \`config.log' for more details." "$LINENO" 5; } |
| 3417 |
> |
as_fn_error $? "cannot compute suffix of object files: cannot compile |
| 3418 |
> |
See \`config.log' for more details" "$LINENO" 5; } |
| 3419 |
|
fi |
| 3420 |
|
rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 3421 |
|
fi |
| 3425 |
|
ac_objext=$OBJEXT |
| 3426 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 |
| 3427 |
|
$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } |
| 3428 |
< |
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then : |
| 3428 |
> |
if ${ac_cv_cxx_compiler_gnu+:} false; then : |
| 3429 |
|
$as_echo_n "(cached) " >&6 |
| 3430 |
|
else |
| 3431 |
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3462 |
|
ac_save_CXXFLAGS=$CXXFLAGS |
| 3463 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 |
| 3464 |
|
$as_echo_n "checking whether $CXX accepts -g... " >&6; } |
| 3465 |
< |
if test "${ac_cv_prog_cxx_g+set}" = set; then : |
| 3465 |
> |
if ${ac_cv_prog_cxx_g+:} false; then : |
| 3466 |
|
$as_echo_n "(cached) " >&6 |
| 3467 |
|
else |
| 3468 |
|
ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
| 3538 |
|
CXXFLAGS= |
| 3539 |
|
fi |
| 3540 |
|
fi |
| 3541 |
< |
ac_ext=cpp |
| 3542 |
< |
ac_cpp='$CXXCPP $CPPFLAGS' |
| 3543 |
< |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3544 |
< |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3545 |
< |
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 |
| 3541 |
> |
ac_ext=c |
| 3542 |
> |
ac_cpp='$CPP $CPPFLAGS' |
| 3543 |
> |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3544 |
> |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3545 |
> |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3546 |
|
|
| 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 |
– |
|
| 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 |
|
if test -n "$ac_tool_prefix"; then |
| 3553 |
< |
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 3554 |
< |
set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
| 3553 |
> |
for ac_prog in $CC icc pathcc pgcc cc xlc gcc |
| 3554 |
> |
do |
| 3555 |
> |
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 3556 |
> |
set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 3557 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3558 |
|
$as_echo_n "checking for $ac_word... " >&6; } |
| 3559 |
< |
if test "${ac_cv_prog_CC+set}" = set; then : |
| 3559 |
> |
if ${ac_cv_prog_CC+:} false; then : |
| 3560 |
|
$as_echo_n "(cached) " >&6 |
| 3561 |
|
else |
| 3562 |
|
if test -n "$CC"; then |
| 3569 |
|
test -z "$as_dir" && as_dir=. |
| 3570 |
|
for ac_exec_ext in '' $ac_executable_extensions; do |
| 3571 |
|
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 3572 |
< |
ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 3572 |
> |
ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 3573 |
|
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3574 |
|
break 2 |
| 3575 |
|
fi |
| 3589 |
|
fi |
| 3590 |
|
|
| 3591 |
|
|
| 3592 |
+ |
test -n "$CC" && break |
| 3593 |
+ |
done |
| 3594 |
|
fi |
| 3595 |
< |
if test -z "$ac_cv_prog_CC"; then |
| 3595 |
> |
if test -z "$CC"; then |
| 3596 |
|
ac_ct_CC=$CC |
| 3597 |
< |
# Extract the first word of "gcc", so it can be a program name with args. |
| 3598 |
< |
set dummy gcc; ac_word=$2 |
| 3597 |
> |
for ac_prog in $CC icc pathcc pgcc cc xlc gcc |
| 3598 |
> |
do |
| 3599 |
> |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
| 3600 |
> |
set dummy $ac_prog; ac_word=$2 |
| 3601 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3602 |
|
$as_echo_n "checking for $ac_word... " >&6; } |
| 3603 |
< |
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : |
| 3603 |
> |
if ${ac_cv_prog_ac_ct_CC+:} false; then : |
| 3604 |
|
$as_echo_n "(cached) " >&6 |
| 3605 |
|
else |
| 3606 |
|
if test -n "$ac_ct_CC"; then |
| 3613 |
|
test -z "$as_dir" && as_dir=. |
| 3614 |
|
for ac_exec_ext in '' $ac_executable_extensions; do |
| 3615 |
|
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 3616 |
< |
ac_cv_prog_ac_ct_CC="gcc" |
| 3616 |
> |
ac_cv_prog_ac_ct_CC="$ac_prog" |
| 3617 |
|
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3618 |
|
break 2 |
| 3619 |
|
fi |
| 3632 |
|
$as_echo "no" >&6; } |
| 3633 |
|
fi |
| 3634 |
|
|
| 3635 |
+ |
|
| 3636 |
+ |
test -n "$ac_ct_CC" && break |
| 3637 |
+ |
done |
| 3638 |
+ |
|
| 3639 |
|
if test "x$ac_ct_CC" = x; then |
| 3640 |
|
CC="" |
| 3641 |
|
else |
| 3647 |
|
esac |
| 3648 |
|
CC=$ac_ct_CC |
| 3649 |
|
fi |
| 4140 |
– |
else |
| 4141 |
– |
CC="$ac_cv_prog_CC" |
| 3650 |
|
fi |
| 3651 |
|
|
| 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 |
| 3652 |
|
|
| 3653 |
< |
fi |
| 3654 |
< |
fi |
| 3655 |
< |
CC=$ac_cv_prog_CC |
| 3656 |
< |
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 |
| 3653 |
> |
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3654 |
> |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 3655 |
> |
as_fn_error $? "no acceptable C compiler found in \$PATH |
| 3656 |
> |
See \`config.log' for more details" "$LINENO" 5; } |
| 3657 |
|
|
| 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 |
– |
|
| 3658 |
|
# Provide some information about the compiler. |
| 3659 |
|
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
| 3660 |
|
set X $ac_compile |
| 3682 |
|
|
| 3683 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
| 3684 |
|
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
| 3685 |
< |
if test "${ac_cv_c_compiler_gnu+set}" = set; then : |
| 3685 |
> |
if ${ac_cv_c_compiler_gnu+:} false; then : |
| 3686 |
|
$as_echo_n "(cached) " >&6 |
| 3687 |
|
else |
| 3688 |
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3719 |
|
ac_save_CFLAGS=$CFLAGS |
| 3720 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
| 3721 |
|
$as_echo_n "checking whether $CC accepts -g... " >&6; } |
| 3722 |
< |
if test "${ac_cv_prog_cc_g+set}" = set; then : |
| 3722 |
> |
if ${ac_cv_prog_cc_g+:} false; then : |
| 3723 |
|
$as_echo_n "(cached) " >&6 |
| 3724 |
|
else |
| 3725 |
|
ac_save_c_werror_flag=$ac_c_werror_flag |
| 3797 |
|
fi |
| 3798 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
| 3799 |
|
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
| 3800 |
< |
if test "${ac_cv_prog_cc_c89+set}" = set; then : |
| 3800 |
> |
if ${ac_cv_prog_cc_c89+:} false; then : |
| 3801 |
|
$as_echo_n "(cached) " >&6 |
| 3802 |
|
else |
| 3803 |
|
ac_cv_prog_cc_c89=no |
| 3891 |
|
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3892 |
|
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3893 |
|
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 |
| 4766 |
– |
|
| 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 |
| 3894 |
|
|
| 4782 |
– |
|
| 4783 |
– |
fi |
| 3895 |
|
ac_ext=${ac_fc_srcext-f} |
| 3896 |
|
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' |
| 3897 |
|
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' |
| 3898 |
|
ac_compiler_gnu=$ac_cv_fc_compiler_gnu |
| 3899 |
|
if test -n "$ac_tool_prefix"; then |
| 3900 |
< |
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 |
| 3900 |
> |
for ac_prog in $FC ifort ifc pathf95 pgf95 xlf95 lf95 epcf90 pathf90 xlf90 f95 f90 gfortran g95 fort |
| 3901 |
|
do |
| 3902 |
|
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 3903 |
|
set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 3904 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3905 |
|
$as_echo_n "checking for $ac_word... " >&6; } |
| 3906 |
< |
if test "${ac_cv_prog_FC+set}" = set; then : |
| 3906 |
> |
if ${ac_cv_prog_FC+:} false; then : |
| 3907 |
|
$as_echo_n "(cached) " >&6 |
| 3908 |
|
else |
| 3909 |
|
if test -n "$FC"; then |
| 3941 |
|
fi |
| 3942 |
|
if test -z "$FC"; then |
| 3943 |
|
ac_ct_FC=$FC |
| 3944 |
< |
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 |
| 3944 |
> |
for ac_prog in $FC ifort ifc pathf95 pgf95 xlf95 lf95 epcf90 pathf90 xlf90 f95 f90 gfortran g95 fort |
| 3945 |
|
do |
| 3946 |
|
# Extract the first word of "$ac_prog", so it can be a program name with args. |
| 3947 |
|
set dummy $ac_prog; ac_word=$2 |
| 3948 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3949 |
|
$as_echo_n "checking for $ac_word... " >&6; } |
| 3950 |
< |
if test "${ac_cv_prog_ac_ct_FC+set}" = set; then : |
| 3950 |
> |
if ${ac_cv_prog_ac_ct_FC+:} false; then : |
| 3951 |
|
$as_echo_n "(cached) " >&6 |
| 3952 |
|
else |
| 3953 |
|
if test -n "$ac_ct_FC"; then |
| 4029 |
|
ac_ext=F |
| 4030 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5 |
| 4031 |
|
$as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; } |
| 4032 |
< |
if test "${ac_cv_fc_compiler_gnu+set}" = set; then : |
| 4032 |
> |
if ${ac_cv_fc_compiler_gnu+:} false; then : |
| 4033 |
|
$as_echo_n "(cached) " >&6 |
| 4034 |
|
else |
| 4035 |
|
cat > conftest.$ac_ext <<_ACEOF |
| 4057 |
|
FCFLAGS= |
| 4058 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5 |
| 4059 |
|
$as_echo_n "checking whether $FC accepts -g... " >&6; } |
| 4060 |
< |
if test "${ac_cv_prog_fc_g+set}" = set; then : |
| 4060 |
> |
if ${ac_cv_prog_fc_g+:} false; then : |
| 4061 |
|
$as_echo_n "(cached) " >&6 |
| 4062 |
|
else |
| 4063 |
|
FCFLAGS=-g |
| 4092 |
|
fi |
| 4093 |
|
fi |
| 4094 |
|
|
| 4095 |
< |
ac_ext=${ac_fc_srcext-f} |
| 4096 |
< |
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' |
| 4097 |
< |
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' |
| 4098 |
< |
ac_compiler_gnu=$ac_cv_fc_compiler_gnu |
| 4095 |
> |
ac_ext=c |
| 4096 |
> |
ac_cpp='$CPP $CPPFLAGS' |
| 4097 |
> |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4098 |
> |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4099 |
> |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4100 |
|
|
| 4101 |
|
|
| 4102 |
< |
if test $USE_MPI != no; then : |
| 4102 |
> |
save_CXX=$CXX |
| 4103 |
> |
save_CC=$CC |
| 4104 |
> |
save_FC=$FC |
| 4105 |
> |
save_LIBS=$LIBS |
| 4106 |
|
|
| 4107 |
< |
ac_ext=${ac_fc_srcext-f} |
| 4108 |
< |
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' |
| 4109 |
< |
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' |
| 4110 |
< |
ac_compiler_gnu=$ac_cv_fc_compiler_gnu |
| 4107 |
> |
ac_ext=cpp |
| 4108 |
> |
ac_cpp='$CXXCPP $CPPFLAGS' |
| 4109 |
> |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4110 |
> |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4111 |
> |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 4112 |
> |
|
| 4113 |
> |
|
| 4114 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lc" >&5 |
| 4115 |
> |
$as_echo_n "checking for dlopen in -lc... " >&6; } |
| 4116 |
> |
if ${ac_cv_lib_c_dlopen+:} false; then : |
| 4117 |
> |
$as_echo_n "(cached) " >&6 |
| 4118 |
> |
else |
| 4119 |
> |
ac_check_lib_save_LIBS=$LIBS |
| 4120 |
> |
LIBS="-lc $LIBS" |
| 4121 |
> |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4122 |
> |
/* end confdefs.h. */ |
| 4123 |
> |
|
| 4124 |
> |
/* Override any GCC internal prototype to avoid an error. |
| 4125 |
> |
Use char because int might match the return type of a GCC |
| 4126 |
> |
builtin and then its argument prototype would still apply. */ |
| 4127 |
> |
#ifdef __cplusplus |
| 4128 |
> |
extern "C" |
| 4129 |
> |
#endif |
| 4130 |
> |
char dlopen (); |
| 4131 |
> |
int |
| 4132 |
> |
main () |
| 4133 |
> |
{ |
| 4134 |
> |
return dlopen (); |
| 4135 |
> |
; |
| 4136 |
> |
return 0; |
| 4137 |
> |
} |
| 4138 |
> |
_ACEOF |
| 4139 |
> |
if ac_fn_cxx_try_link "$LINENO"; then : |
| 4140 |
> |
ac_cv_lib_c_dlopen=yes |
| 4141 |
> |
else |
| 4142 |
> |
ac_cv_lib_c_dlopen=no |
| 4143 |
> |
fi |
| 4144 |
> |
rm -f core conftest.err conftest.$ac_objext \ |
| 4145 |
> |
conftest$ac_exeext conftest.$ac_ext |
| 4146 |
> |
LIBS=$ac_check_lib_save_LIBS |
| 4147 |
> |
fi |
| 4148 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_dlopen" >&5 |
| 4149 |
> |
$as_echo "$ac_cv_lib_c_dlopen" >&6; } |
| 4150 |
> |
if test "x$ac_cv_lib_c_dlopen" = xyes; then : |
| 4151 |
> |
LIBDL="" |
| 4152 |
> |
else |
| 4153 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
| 4154 |
> |
$as_echo_n "checking for dlopen in -ldl... " >&6; } |
| 4155 |
> |
if ${ac_cv_lib_dl_dlopen+:} false; then : |
| 4156 |
> |
$as_echo_n "(cached) " >&6 |
| 4157 |
> |
else |
| 4158 |
> |
ac_check_lib_save_LIBS=$LIBS |
| 4159 |
> |
LIBS="-ldl $LIBS" |
| 4160 |
> |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4161 |
> |
/* end confdefs.h. */ |
| 4162 |
|
|
| 4163 |
+ |
/* Override any GCC internal prototype to avoid an error. |
| 4164 |
+ |
Use char because int might match the return type of a GCC |
| 4165 |
+ |
builtin and then its argument prototype would still apply. */ |
| 4166 |
+ |
#ifdef __cplusplus |
| 4167 |
+ |
extern "C" |
| 4168 |
+ |
#endif |
| 4169 |
+ |
char dlopen (); |
| 4170 |
+ |
int |
| 4171 |
+ |
main () |
| 4172 |
+ |
{ |
| 4173 |
+ |
return dlopen (); |
| 4174 |
+ |
; |
| 4175 |
+ |
return 0; |
| 4176 |
+ |
} |
| 4177 |
+ |
_ACEOF |
| 4178 |
+ |
if ac_fn_cxx_try_link "$LINENO"; then : |
| 4179 |
+ |
ac_cv_lib_dl_dlopen=yes |
| 4180 |
+ |
else |
| 4181 |
+ |
ac_cv_lib_dl_dlopen=no |
| 4182 |
+ |
fi |
| 4183 |
+ |
rm -f core conftest.err conftest.$ac_objext \ |
| 4184 |
+ |
conftest$ac_exeext conftest.$ac_ext |
| 4185 |
+ |
LIBS=$ac_check_lib_save_LIBS |
| 4186 |
+ |
fi |
| 4187 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
| 4188 |
+ |
$as_echo "$ac_cv_lib_dl_dlopen" >&6; } |
| 4189 |
+ |
if test "x$ac_cv_lib_dl_dlopen" = xyes; then : |
| 4190 |
+ |
LIBDL="-ldl" |
| 4191 |
+ |
fi |
| 4192 |
|
|
| 4193 |
+ |
fi |
| 4194 |
|
|
| 4195 |
|
|
| 4196 |
|
|
| 4197 |
|
|
| 4198 |
< |
for ac_prog in openmpif90 mpif90 mpxlf95_r mpxlf90_r mpxlf95 mpxlf90 mpf90 cmpif90c |
| 4198 |
> |
|
| 4199 |
> |
|
| 4200 |
> |
|
| 4201 |
> |
for ac_prog in openmpicxx openmpiCC openmpic++ mpic++ mpicxx mpiCC hcp mpxlC_r mpxlC mpCC cmpic++ |
| 4202 |
|
do |
| 4203 |
|
# Extract the first word of "$ac_prog", so it can be a program name with args. |
| 4204 |
|
set dummy $ac_prog; ac_word=$2 |
| 4205 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4206 |
|
$as_echo_n "checking for $ac_word... " >&6; } |
| 4207 |
< |
if test "${ac_cv_prog_MPIFC+set}" = set; then : |
| 4207 |
> |
if ${ac_cv_prog_MPICXX+:} false; then : |
| 4208 |
|
$as_echo_n "(cached) " >&6 |
| 4209 |
|
else |
| 4210 |
< |
if test -n "$MPIFC"; then |
| 4211 |
< |
ac_cv_prog_MPIFC="$MPIFC" # Let the user override the test. |
| 4210 |
> |
if test -n "$MPICXX"; then |
| 4211 |
> |
ac_cv_prog_MPICXX="$MPICXX" # Let the user override the test. |
| 4212 |
|
else |
| 4213 |
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4214 |
|
for as_dir in $PATH |
| 4217 |
|
test -z "$as_dir" && as_dir=. |
| 4218 |
|
for ac_exec_ext in '' $ac_executable_extensions; do |
| 4219 |
|
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4220 |
< |
ac_cv_prog_MPIFC="$ac_prog" |
| 4220 |
> |
ac_cv_prog_MPICXX="$ac_prog" |
| 4221 |
|
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4222 |
|
break 2 |
| 4223 |
|
fi |
| 4227 |
|
|
| 4228 |
|
fi |
| 4229 |
|
fi |
| 4230 |
< |
MPIFC=$ac_cv_prog_MPIFC |
| 4231 |
< |
if test -n "$MPIFC"; then |
| 4232 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPIFC" >&5 |
| 4233 |
< |
$as_echo "$MPIFC" >&6; } |
| 4230 |
> |
MPICXX=$ac_cv_prog_MPICXX |
| 4231 |
> |
if test -n "$MPICXX"; then |
| 4232 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPICXX" >&5 |
| 4233 |
> |
$as_echo "$MPICXX" >&6; } |
| 4234 |
|
else |
| 4235 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4236 |
|
$as_echo "no" >&6; } |
| 4237 |
|
fi |
| 4238 |
|
|
| 4239 |
|
|
| 4240 |
< |
test -n "$MPIFC" && break |
| 4240 |
> |
test -n "$MPICXX" && break |
| 4241 |
|
done |
| 4242 |
< |
test -n "$MPIFC" || MPIFC="$FC" |
| 4242 |
> |
test -n "$MPICXX" || MPICXX="$CXX" |
| 4243 |
|
|
| 4244 |
< |
ax_mpi_save_FC="$FC" |
| 4245 |
< |
FC="$MPIFC" |
| 4244 |
> |
ax_mpi_save_CXX="$CXX" |
| 4245 |
> |
CXX="$MPICXX" |
| 4246 |
|
|
| 4247 |
|
|
| 4248 |
|
|
| 4249 |
|
if test x = x"$MPILIBS"; then |
| 4250 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init" >&5 |
| 4251 |
< |
$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 : |
| 4250 |
> |
ac_fn_cxx_check_func "$LINENO" "MPI_Init" "ac_cv_func_MPI_Init" |
| 4251 |
> |
if test "x$ac_cv_func_MPI_Init" = xyes; then : |
| 4252 |
|
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; } |
| 4253 |
|
fi |
| 5066 |
– |
rm -f core conftest.err conftest.$ac_objext \ |
| 5067 |
– |
conftest$ac_exeext conftest.$ac_ext |
| 5068 |
– |
fi |
| 4254 |
|
|
| 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 |
| 4255 |
|
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 |
| 4256 |
|
|
| 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 |
– |
|
| 4257 |
|
if test x = x"$MPILIBS"; then |
| 4258 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpi" >&5 |
| 4259 |
|
$as_echo_n "checking for MPI_Init in -lmpi... " >&6; } |
| 4260 |
< |
if test "${ac_cv_lib_mpi_MPI_Init+set}" = set; then : |
| 4260 |
> |
if ${ac_cv_lib_mpi_MPI_Init+:} false; then : |
| 4261 |
|
$as_echo_n "(cached) " >&6 |
| 4262 |
|
else |
| 4263 |
|
ac_check_lib_save_LIBS=$LIBS |
| 4264 |
|
LIBS="-lmpi $LIBS" |
| 4265 |
< |
cat > conftest.$ac_ext <<_ACEOF |
| 4266 |
< |
program main |
| 4267 |
< |
call MPI_Init |
| 4268 |
< |
end |
| 4265 |
> |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4266 |
> |
/* end confdefs.h. */ |
| 4267 |
> |
|
| 4268 |
> |
/* Override any GCC internal prototype to avoid an error. |
| 4269 |
> |
Use char because int might match the return type of a GCC |
| 4270 |
> |
builtin and then its argument prototype would still apply. */ |
| 4271 |
> |
#ifdef __cplusplus |
| 4272 |
> |
extern "C" |
| 4273 |
> |
#endif |
| 4274 |
> |
char MPI_Init (); |
| 4275 |
> |
int |
| 4276 |
> |
main () |
| 4277 |
> |
{ |
| 4278 |
> |
return MPI_Init (); |
| 4279 |
> |
; |
| 4280 |
> |
return 0; |
| 4281 |
> |
} |
| 4282 |
|
_ACEOF |
| 4283 |
< |
if ac_fn_fc_try_link "$LINENO"; then : |
| 4283 |
> |
if ac_fn_cxx_try_link "$LINENO"; then : |
| 4284 |
|
ac_cv_lib_mpi_MPI_Init=yes |
| 4285 |
|
else |
| 4286 |
|
ac_cv_lib_mpi_MPI_Init=no |
| 4291 |
|
fi |
| 4292 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpi_MPI_Init" >&5 |
| 4293 |
|
$as_echo "$ac_cv_lib_mpi_MPI_Init" >&6; } |
| 4294 |
< |
if test "x$ac_cv_lib_mpi_MPI_Init" = x""yes; then : |
| 4294 |
> |
if test "x$ac_cv_lib_mpi_MPI_Init" = xyes; then : |
| 4295 |
|
MPILIBS="-lmpi" |
| 4296 |
|
fi |
| 4297 |
|
|
| 4299 |
|
if test x = x"$MPILIBS"; then |
| 4300 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpich" >&5 |
| 4301 |
|
$as_echo_n "checking for MPI_Init in -lmpich... " >&6; } |
| 4302 |
< |
if test "${ac_cv_lib_mpich_MPI_Init+set}" = set; then : |
| 4302 |
> |
if ${ac_cv_lib_mpich_MPI_Init+:} false; then : |
| 4303 |
|
$as_echo_n "(cached) " >&6 |
| 4304 |
|
else |
| 4305 |
|
ac_check_lib_save_LIBS=$LIBS |
| 4306 |
|
LIBS="-lmpich $LIBS" |
| 4307 |
< |
cat > conftest.$ac_ext <<_ACEOF |
| 4308 |
< |
program main |
| 4309 |
< |
call MPI_Init |
| 4310 |
< |
end |
| 4307 |
> |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4308 |
> |
/* end confdefs.h. */ |
| 4309 |
> |
|
| 4310 |
> |
/* Override any GCC internal prototype to avoid an error. |
| 4311 |
> |
Use char because int might match the return type of a GCC |
| 4312 |
> |
builtin and then its argument prototype would still apply. */ |
| 4313 |
> |
#ifdef __cplusplus |
| 4314 |
> |
extern "C" |
| 4315 |
> |
#endif |
| 4316 |
> |
char MPI_Init (); |
| 4317 |
> |
int |
| 4318 |
> |
main () |
| 4319 |
> |
{ |
| 4320 |
> |
return MPI_Init (); |
| 4321 |
> |
; |
| 4322 |
> |
return 0; |
| 4323 |
> |
} |
| 4324 |
|
_ACEOF |
| 4325 |
< |
if ac_fn_fc_try_link "$LINENO"; then : |
| 4325 |
> |
if ac_fn_cxx_try_link "$LINENO"; then : |
| 4326 |
|
ac_cv_lib_mpich_MPI_Init=yes |
| 4327 |
|
else |
| 4328 |
|
ac_cv_lib_mpich_MPI_Init=no |
| 4333 |
|
fi |
| 4334 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpich_MPI_Init" >&5 |
| 4335 |
|
$as_echo "$ac_cv_lib_mpich_MPI_Init" >&6; } |
| 4336 |
< |
if test "x$ac_cv_lib_mpich_MPI_Init" = x""yes; then : |
| 4336 |
> |
if test "x$ac_cv_lib_mpich_MPI_Init" = xyes; then : |
| 4337 |
|
MPILIBS="-lmpich" |
| 4338 |
|
fi |
| 4339 |
|
|
| 4340 |
|
fi |
| 4341 |
|
|
| 4342 |
|
if test x != x"$MPILIBS"; then |
| 4343 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpif.h" >&5 |
| 4344 |
< |
$as_echo_n "checking for mpif.h... " >&6; } |
| 4345 |
< |
cat > conftest.$ac_ext <<_ACEOF |
| 4346 |
< |
program main |
| 4347 |
< |
include 'mpif.h' |
| 4348 |
< |
end |
| 4343 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpi.h" >&5 |
| 4344 |
> |
$as_echo_n "checking for mpi.h... " >&6; } |
| 4345 |
> |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4346 |
> |
/* end confdefs.h. */ |
| 4347 |
> |
#include <mpi.h> |
| 4348 |
> |
int |
| 4349 |
> |
main () |
| 4350 |
> |
{ |
| 4351 |
> |
|
| 4352 |
> |
; |
| 4353 |
> |
return 0; |
| 4354 |
> |
} |
| 4355 |
|
_ACEOF |
| 4356 |
< |
if ac_fn_fc_try_compile "$LINENO"; then : |
| 4356 |
> |
if ac_fn_cxx_try_compile "$LINENO"; then : |
| 4357 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 4358 |
|
$as_echo "yes" >&6; } |
| 4359 |
|
else |
| 4364 |
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4365 |
|
fi |
| 4366 |
|
|
| 4367 |
< |
FC="$ax_mpi_save_FC" |
| 4367 |
> |
CXX="$ax_mpi_save_CXX" |
| 4368 |
|
|
| 4369 |
|
|
| 4370 |
|
|
| 4371 |
|
# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: |
| 4372 |
|
if test x = x"$MPILIBS"; then |
| 4373 |
|
USE_MPI="no" |
| 4374 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No suitable Fortran MPI implementation found. openmd_MPI will not be built." >&5 |
| 4375 |
< |
$as_echo "$as_me: WARNING: No suitable Fortran MPI implementation found. openmd_MPI will not be built." >&2;} |
| 4374 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No suitable C++ MPI implementation found. openmd_MPI will not be built." >&5 |
| 4375 |
> |
$as_echo "$as_me: WARNING: No suitable C++ MPI implementation found. openmd_MPI will not be built." >&2;} |
| 4376 |
|
: |
| 4377 |
|
else |
| 4378 |
|
USE_MPI="yes" |
| 4380 |
|
fi |
| 4381 |
|
|
| 4382 |
|
|
| 5223 |
– |
fi |
| 4383 |
|
if test $USE_MPI != no; then : |
| 4384 |
|
|
| 4385 |
< |
CXX=$MPICXX |
| 4386 |
< |
CC=$MPICC |
| 4387 |
< |
FC=$MPIFC |
| 4385 |
> |
ac_ext=c |
| 4386 |
> |
ac_cpp='$CPP $CPPFLAGS' |
| 4387 |
> |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4388 |
> |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4389 |
> |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4390 |
|
|
| 5230 |
– |
fi |
| 4391 |
|
|
| 4392 |
|
|
| 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 |
| 4393 |
|
|
| 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 |
| 4394 |
|
|
| 4395 |
|
|
| 4396 |
< |
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 |
| 4396 |
> |
for ac_prog in openmpicc mpicc hcc mpxlc_r mpxlc mpcc cmpicc |
| 4397 |
|
do |
| 4398 |
|
# Extract the first word of "$ac_prog", so it can be a program name with args. |
| 4399 |
|
set dummy $ac_prog; ac_word=$2 |
| 4400 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4401 |
|
$as_echo_n "checking for $ac_word... " >&6; } |
| 4402 |
< |
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then : |
| 4402 |
> |
if ${ac_cv_prog_MPICC+:} false; then : |
| 4403 |
|
$as_echo_n "(cached) " >&6 |
| 4404 |
|
else |
| 4405 |
< |
if test -n "$ac_ct_CXX"; then |
| 4406 |
< |
ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
| 4405 |
> |
if test -n "$MPICC"; then |
| 4406 |
> |
ac_cv_prog_MPICC="$MPICC" # Let the user override the test. |
| 4407 |
|
else |
| 4408 |
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4409 |
|
for as_dir in $PATH |
| 4412 |
|
test -z "$as_dir" && as_dir=. |
| 4413 |
|
for ac_exec_ext in '' $ac_executable_extensions; do |
| 4414 |
|
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4415 |
< |
ac_cv_prog_ac_ct_CXX="$ac_prog" |
| 4415 |
> |
ac_cv_prog_MPICC="$ac_prog" |
| 4416 |
|
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4417 |
|
break 2 |
| 4418 |
|
fi |
| 4422 |
|
|
| 4423 |
|
fi |
| 4424 |
|
fi |
| 4425 |
< |
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
| 4426 |
< |
if test -n "$ac_ct_CXX"; then |
| 4427 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 |
| 4428 |
< |
$as_echo "$ac_ct_CXX" >&6; } |
| 4425 |
> |
MPICC=$ac_cv_prog_MPICC |
| 4426 |
> |
if test -n "$MPICC"; then |
| 4427 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPICC" >&5 |
| 4428 |
> |
$as_echo "$MPICC" >&6; } |
| 4429 |
|
else |
| 4430 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4431 |
|
$as_echo "no" >&6; } |
| 4432 |
|
fi |
| 4433 |
|
|
| 4434 |
|
|
| 4435 |
< |
test -n "$ac_ct_CXX" && break |
| 4435 |
> |
test -n "$MPICC" && break |
| 4436 |
|
done |
| 4437 |
+ |
test -n "$MPICC" || MPICC="$CC" |
| 4438 |
|
|
| 4439 |
< |
if test "x$ac_ct_CXX" = x; then |
| 4440 |
< |
CXX="g++" |
| 4441 |
< |
else |
| 4442 |
< |
case $cross_compiling:$ac_tool_warned in |
| 4443 |
< |
yes:) |
| 4444 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 4445 |
< |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 4446 |
< |
ac_tool_warned=yes ;; |
| 4447 |
< |
esac |
| 5339 |
< |
CXX=$ac_ct_CXX |
| 5340 |
< |
fi |
| 4439 |
> |
ax_mpi_save_CC="$CC" |
| 4440 |
> |
CC="$MPICC" |
| 4441 |
> |
|
| 4442 |
> |
|
| 4443 |
> |
|
| 4444 |
> |
if test x = x"$MPILIBS"; then |
| 4445 |
> |
ac_fn_c_check_func "$LINENO" "MPI_Init" "ac_cv_func_MPI_Init" |
| 4446 |
> |
if test "x$ac_cv_func_MPI_Init" = xyes; then : |
| 4447 |
> |
MPILIBS=" " |
| 4448 |
|
fi |
| 4449 |
|
|
| 5343 |
– |
fi |
| 4450 |
|
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 |
| 4451 |
|
|
| 4452 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 |
| 4453 |
< |
$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } |
| 4454 |
< |
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then : |
| 4452 |
> |
if test x = x"$MPILIBS"; then |
| 4453 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpi" >&5 |
| 4454 |
> |
$as_echo_n "checking for MPI_Init in -lmpi... " >&6; } |
| 4455 |
> |
if ${ac_cv_lib_mpi_MPI_Init+:} false; then : |
| 4456 |
|
$as_echo_n "(cached) " >&6 |
| 4457 |
|
else |
| 4458 |
< |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4458 |
> |
ac_check_lib_save_LIBS=$LIBS |
| 4459 |
> |
LIBS="-lmpi $LIBS" |
| 4460 |
> |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4461 |
|
/* end confdefs.h. */ |
| 4462 |
|
|
| 4463 |
+ |
/* Override any GCC internal prototype to avoid an error. |
| 4464 |
+ |
Use char because int might match the return type of a GCC |
| 4465 |
+ |
builtin and then its argument prototype would still apply. */ |
| 4466 |
+ |
#ifdef __cplusplus |
| 4467 |
+ |
extern "C" |
| 4468 |
+ |
#endif |
| 4469 |
+ |
char MPI_Init (); |
| 4470 |
|
int |
| 4471 |
|
main () |
| 4472 |
|
{ |
| 4473 |
< |
#ifndef __GNUC__ |
| 5382 |
< |
choke me |
| 5383 |
< |
#endif |
| 5384 |
< |
|
| 4473 |
> |
return MPI_Init (); |
| 4474 |
|
; |
| 4475 |
|
return 0; |
| 4476 |
|
} |
| 4477 |
|
_ACEOF |
| 4478 |
< |
if ac_fn_cxx_try_compile "$LINENO"; then : |
| 4479 |
< |
ac_compiler_gnu=yes |
| 4478 |
> |
if ac_fn_c_try_link "$LINENO"; then : |
| 4479 |
> |
ac_cv_lib_mpi_MPI_Init=yes |
| 4480 |
|
else |
| 4481 |
< |
ac_compiler_gnu=no |
| 4481 |
> |
ac_cv_lib_mpi_MPI_Init=no |
| 4482 |
|
fi |
| 4483 |
< |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4484 |
< |
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
| 4485 |
< |
|
| 4483 |
> |
rm -f core conftest.err conftest.$ac_objext \ |
| 4484 |
> |
conftest$ac_exeext conftest.$ac_ext |
| 4485 |
> |
LIBS=$ac_check_lib_save_LIBS |
| 4486 |
|
fi |
| 4487 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 |
| 4488 |
< |
$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } |
| 4489 |
< |
if test $ac_compiler_gnu = yes; then |
| 4490 |
< |
GXX=yes |
| 5402 |
< |
else |
| 5403 |
< |
GXX= |
| 4487 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpi_MPI_Init" >&5 |
| 4488 |
> |
$as_echo "$ac_cv_lib_mpi_MPI_Init" >&6; } |
| 4489 |
> |
if test "x$ac_cv_lib_mpi_MPI_Init" = xyes; then : |
| 4490 |
> |
MPILIBS="-lmpi" |
| 4491 |
|
fi |
| 4492 |
< |
ac_test_CXXFLAGS=${CXXFLAGS+set} |
| 4493 |
< |
ac_save_CXXFLAGS=$CXXFLAGS |
| 4494 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 |
| 4495 |
< |
$as_echo_n "checking whether $CXX accepts -g... " >&6; } |
| 4496 |
< |
if test "${ac_cv_prog_cxx_g+set}" = set; then : |
| 4492 |
> |
|
| 4493 |
> |
fi |
| 4494 |
> |
if test x = x"$MPILIBS"; then |
| 4495 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpich" >&5 |
| 4496 |
> |
$as_echo_n "checking for MPI_Init in -lmpich... " >&6; } |
| 4497 |
> |
if ${ac_cv_lib_mpich_MPI_Init+:} false; then : |
| 4498 |
|
$as_echo_n "(cached) " >&6 |
| 4499 |
|
else |
| 4500 |
< |
ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
| 4501 |
< |
ac_cxx_werror_flag=yes |
| 4502 |
< |
ac_cv_prog_cxx_g=no |
| 5415 |
< |
CXXFLAGS="-g" |
| 5416 |
< |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4500 |
> |
ac_check_lib_save_LIBS=$LIBS |
| 4501 |
> |
LIBS="-lmpich $LIBS" |
| 4502 |
> |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4503 |
|
/* end confdefs.h. */ |
| 4504 |
|
|
| 4505 |
+ |
/* Override any GCC internal prototype to avoid an error. |
| 4506 |
+ |
Use char because int might match the return type of a GCC |
| 4507 |
+ |
builtin and then its argument prototype would still apply. */ |
| 4508 |
+ |
#ifdef __cplusplus |
| 4509 |
+ |
extern "C" |
| 4510 |
+ |
#endif |
| 4511 |
+ |
char MPI_Init (); |
| 4512 |
|
int |
| 4513 |
|
main () |
| 4514 |
|
{ |
| 4515 |
< |
|
| 4515 |
> |
return MPI_Init (); |
| 4516 |
|
; |
| 4517 |
|
return 0; |
| 4518 |
|
} |
| 4519 |
|
_ACEOF |
| 4520 |
< |
if ac_fn_cxx_try_compile "$LINENO"; then : |
| 4521 |
< |
ac_cv_prog_cxx_g=yes |
| 4520 |
> |
if ac_fn_c_try_link "$LINENO"; then : |
| 4521 |
> |
ac_cv_lib_mpich_MPI_Init=yes |
| 4522 |
|
else |
| 4523 |
< |
CXXFLAGS="" |
| 4524 |
< |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4525 |
< |
/* end confdefs.h. */ |
| 4526 |
< |
|
| 4527 |
< |
int |
| 4528 |
< |
main () |
| 4529 |
< |
{ |
| 4523 |
> |
ac_cv_lib_mpich_MPI_Init=no |
| 4524 |
> |
fi |
| 4525 |
> |
rm -f core conftest.err conftest.$ac_objext \ |
| 4526 |
> |
conftest$ac_exeext conftest.$ac_ext |
| 4527 |
> |
LIBS=$ac_check_lib_save_LIBS |
| 4528 |
> |
fi |
| 4529 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpich_MPI_Init" >&5 |
| 4530 |
> |
$as_echo "$ac_cv_lib_mpich_MPI_Init" >&6; } |
| 4531 |
> |
if test "x$ac_cv_lib_mpich_MPI_Init" = xyes; then : |
| 4532 |
> |
MPILIBS="-lmpich" |
| 4533 |
> |
fi |
| 4534 |
|
|
| 4535 |
< |
; |
| 5439 |
< |
return 0; |
| 5440 |
< |
} |
| 5441 |
< |
_ACEOF |
| 5442 |
< |
if ac_fn_cxx_try_compile "$LINENO"; then : |
| 4535 |
> |
fi |
| 4536 |
|
|
| 4537 |
< |
else |
| 4538 |
< |
ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
| 4539 |
< |
CXXFLAGS="-g" |
| 4540 |
< |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4537 |
> |
if test x != x"$MPILIBS"; then |
| 4538 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpi.h" >&5 |
| 4539 |
> |
$as_echo_n "checking for mpi.h... " >&6; } |
| 4540 |
> |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4541 |
|
/* end confdefs.h. */ |
| 4542 |
< |
|
| 4542 |
> |
#include <mpi.h> |
| 4543 |
|
int |
| 4544 |
|
main () |
| 4545 |
|
{ |
| 4548 |
|
return 0; |
| 4549 |
|
} |
| 4550 |
|
_ACEOF |
| 4551 |
< |
if ac_fn_cxx_try_compile "$LINENO"; then : |
| 4552 |
< |
ac_cv_prog_cxx_g=yes |
| 4551 |
> |
if ac_fn_c_try_compile "$LINENO"; then : |
| 4552 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 4553 |
> |
$as_echo "yes" >&6; } |
| 4554 |
> |
else |
| 4555 |
> |
MPILIBS="" |
| 4556 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4557 |
> |
$as_echo "no" >&6; } |
| 4558 |
|
fi |
| 4559 |
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4560 |
|
fi |
| 4561 |
< |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4562 |
< |
fi |
| 4563 |
< |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4564 |
< |
ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
| 4565 |
< |
fi |
| 4566 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 |
| 4567 |
< |
$as_echo "$ac_cv_prog_cxx_g" >&6; } |
| 4568 |
< |
if test "$ac_test_CXXFLAGS" = set; then |
| 4569 |
< |
CXXFLAGS=$ac_save_CXXFLAGS |
| 4570 |
< |
elif test $ac_cv_prog_cxx_g = yes; then |
| 4571 |
< |
if test "$GXX" = yes; then |
| 5474 |
< |
CXXFLAGS="-g -O2" |
| 5475 |
< |
else |
| 5476 |
< |
CXXFLAGS="-g" |
| 5477 |
< |
fi |
| 4561 |
> |
|
| 4562 |
> |
CC="$ax_mpi_save_CC" |
| 4563 |
> |
|
| 4564 |
> |
|
| 4565 |
> |
|
| 4566 |
> |
# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: |
| 4567 |
> |
if test x = x"$MPILIBS"; then |
| 4568 |
> |
USE_MPI="no" |
| 4569 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No suitable C MPI implementation found. openmd_MPI will not be built." >&5 |
| 4570 |
> |
$as_echo "$as_me: WARNING: No suitable C MPI implementation found. openmd_MPI will not be built." >&2;} |
| 4571 |
> |
: |
| 4572 |
|
else |
| 4573 |
< |
if test "$GXX" = yes; then |
| 4574 |
< |
CXXFLAGS="-O2" |
| 5481 |
< |
else |
| 5482 |
< |
CXXFLAGS= |
| 5483 |
< |
fi |
| 4573 |
> |
USE_MPI="yes" |
| 4574 |
> |
: |
| 4575 |
|
fi |
| 4576 |
+ |
|
| 4577 |
+ |
|
| 4578 |
+ |
fi |
| 4579 |
+ |
|
| 4580 |
+ |
if test $USE_MPI != no; then : |
| 4581 |
+ |
|
| 4582 |
|
ac_ext=${ac_fc_srcext-f} |
| 4583 |
|
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' |
| 4584 |
|
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' |
| 4585 |
|
ac_compiler_gnu=$ac_cv_fc_compiler_gnu |
| 4586 |
|
|
| 5490 |
– |
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 |
| 4587 |
|
|
| 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 |
| 4588 |
|
|
| 4589 |
|
|
| 4590 |
< |
test -n "$CC" && break |
| 4591 |
< |
done |
| 4592 |
< |
fi |
| 5538 |
< |
if test -z "$CC"; then |
| 5539 |
< |
ac_ct_CC=$CC |
| 5540 |
< |
for ac_prog in $CC icc pathcc pgcc cc xlc gcc |
| 4590 |
> |
|
| 4591 |
> |
|
| 4592 |
> |
for ac_prog in openmpif90 mpif90 mpxlf95_r mpxlf90_r mpxlf95 mpxlf90 mpf90 cmpif90c |
| 4593 |
|
do |
| 4594 |
|
# Extract the first word of "$ac_prog", so it can be a program name with args. |
| 4595 |
|
set dummy $ac_prog; ac_word=$2 |
| 4596 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4597 |
|
$as_echo_n "checking for $ac_word... " >&6; } |
| 4598 |
< |
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : |
| 4598 |
> |
if ${ac_cv_prog_MPIFC+:} false; then : |
| 4599 |
|
$as_echo_n "(cached) " >&6 |
| 4600 |
|
else |
| 4601 |
< |
if test -n "$ac_ct_CC"; then |
| 4602 |
< |
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 4601 |
> |
if test -n "$MPIFC"; then |
| 4602 |
> |
ac_cv_prog_MPIFC="$MPIFC" # Let the user override the test. |
| 4603 |
|
else |
| 4604 |
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4605 |
|
for as_dir in $PATH |
| 4608 |
|
test -z "$as_dir" && as_dir=. |
| 4609 |
|
for ac_exec_ext in '' $ac_executable_extensions; do |
| 4610 |
|
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4611 |
< |
ac_cv_prog_ac_ct_CC="$ac_prog" |
| 4611 |
> |
ac_cv_prog_MPIFC="$ac_prog" |
| 4612 |
|
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4613 |
|
break 2 |
| 4614 |
|
fi |
| 4618 |
|
|
| 4619 |
|
fi |
| 4620 |
|
fi |
| 4621 |
< |
ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 4622 |
< |
if test -n "$ac_ct_CC"; then |
| 4623 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 4624 |
< |
$as_echo "$ac_ct_CC" >&6; } |
| 4621 |
> |
MPIFC=$ac_cv_prog_MPIFC |
| 4622 |
> |
if test -n "$MPIFC"; then |
| 4623 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPIFC" >&5 |
| 4624 |
> |
$as_echo "$MPIFC" >&6; } |
| 4625 |
|
else |
| 4626 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4627 |
|
$as_echo "no" >&6; } |
| 4628 |
|
fi |
| 4629 |
|
|
| 4630 |
|
|
| 4631 |
< |
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 |
| 5593 |
< |
fi |
| 5594 |
< |
|
| 5595 |
< |
|
| 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; } |
| 4631 |
> |
test -n "$MPIFC" && break |
| 4632 |
|
done |
| 4633 |
+ |
test -n "$MPIFC" || MPIFC="$FC" |
| 4634 |
|
|
| 4635 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
| 4636 |
< |
$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. */ |
| 4635 |
> |
ax_mpi_save_FC="$FC" |
| 4636 |
> |
FC="$MPIFC" |
| 4637 |
|
|
| 5634 |
– |
int |
| 5635 |
– |
main () |
| 5636 |
– |
{ |
| 5637 |
– |
#ifndef __GNUC__ |
| 5638 |
– |
choke me |
| 5639 |
– |
#endif |
| 4638 |
|
|
| 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 |
| 4639 |
|
|
| 4640 |
< |
fi |
| 4641 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
| 4642 |
< |
$as_echo "$ac_cv_c_compiler_gnu" >&6; } |
| 4643 |
< |
if test $ac_compiler_gnu = yes; then |
| 4644 |
< |
GCC=yes |
| 4645 |
< |
else |
| 4646 |
< |
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 |
< |
} |
| 4640 |
> |
if test x = x"$MPILIBS"; then |
| 4641 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init" >&5 |
| 4642 |
> |
$as_echo_n "checking for MPI_Init... " >&6; } |
| 4643 |
> |
cat > conftest.$ac_ext <<_ACEOF |
| 4644 |
> |
program main |
| 4645 |
> |
call MPI_Init |
| 4646 |
> |
end |
| 4647 |
|
_ACEOF |
| 4648 |
< |
if ac_fn_c_try_compile "$LINENO"; then : |
| 4649 |
< |
ac_cv_prog_cc_g=yes |
| 4648 |
> |
if ac_fn_fc_try_link "$LINENO"; then : |
| 4649 |
> |
MPILIBS=" " |
| 4650 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 4651 |
> |
$as_echo "yes" >&6; } |
| 4652 |
|
else |
| 4653 |
< |
CFLAGS="" |
| 4654 |
< |
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 |
| 4653 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4654 |
> |
$as_echo "no" >&6; } |
| 4655 |
|
fi |
| 4656 |
< |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4656 |
> |
rm -f core conftest.err conftest.$ac_objext \ |
| 4657 |
> |
conftest$ac_exeext conftest.$ac_ext |
| 4658 |
|
fi |
| 4659 |
< |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4660 |
< |
fi |
| 4661 |
< |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4662 |
< |
ac_c_werror_flag=$ac_save_c_werror_flag |
| 4663 |
< |
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 : |
| 4659 |
> |
|
| 4660 |
> |
if test x = x"$MPILIBS"; then |
| 4661 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lfmpi" >&5 |
| 4662 |
> |
$as_echo_n "checking for MPI_Init in -lfmpi... " >&6; } |
| 4663 |
> |
if ${ac_cv_lib_fmpi_MPI_Init+:} false; then : |
| 4664 |
|
$as_echo_n "(cached) " >&6 |
| 4665 |
|
else |
| 4666 |
< |
ac_cv_prog_cc_c89=no |
| 4667 |
< |
ac_save_CC=$CC |
| 4668 |
< |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4669 |
< |
/* end confdefs.h. */ |
| 4670 |
< |
#include <stdarg.h> |
| 4671 |
< |
#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 |
< |
} |
| 4666 |
> |
ac_check_lib_save_LIBS=$LIBS |
| 4667 |
> |
LIBS="-lfmpi $LIBS" |
| 4668 |
> |
cat > conftest.$ac_ext <<_ACEOF |
| 4669 |
> |
program main |
| 4670 |
> |
call MPI_Init |
| 4671 |
> |
end |
| 4672 |
|
_ACEOF |
| 4673 |
< |
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 4674 |
< |
-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 |
< |
|
| 5832 |
< |
ac_ext=${ac_fc_srcext-f} |
| 5833 |
< |
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' |
| 5834 |
< |
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' |
| 5835 |
< |
ac_compiler_gnu=$ac_cv_fc_compiler_gnu |
| 5836 |
< |
|
| 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 |
| 4673 |
> |
if ac_fn_fc_try_link "$LINENO"; then : |
| 4674 |
> |
ac_cv_lib_fmpi_MPI_Init=yes |
| 4675 |
|
else |
| 4676 |
< |
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 |
| 5868 |
< |
|
| 4676 |
> |
ac_cv_lib_fmpi_MPI_Init=no |
| 4677 |
|
fi |
| 4678 |
+ |
rm -f core conftest.err conftest.$ac_objext \ |
| 4679 |
+ |
conftest$ac_exeext conftest.$ac_ext |
| 4680 |
+ |
LIBS=$ac_check_lib_save_LIBS |
| 4681 |
|
fi |
| 4682 |
< |
FC=$ac_cv_prog_FC |
| 4683 |
< |
if test -n "$FC"; then |
| 4684 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5 |
| 4685 |
< |
$as_echo "$FC" >&6; } |
| 5875 |
< |
else |
| 5876 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5877 |
< |
$as_echo "no" >&6; } |
| 4682 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fmpi_MPI_Init" >&5 |
| 4683 |
> |
$as_echo "$ac_cv_lib_fmpi_MPI_Init" >&6; } |
| 4684 |
> |
if test "x$ac_cv_lib_fmpi_MPI_Init" = xyes; then : |
| 4685 |
> |
MPILIBS="-lfmpi" |
| 4686 |
|
fi |
| 5879 |
– |
|
| 5880 |
– |
|
| 5881 |
– |
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 |
| 5887 |
– |
do |
| 5888 |
– |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
| 5889 |
– |
set dummy $ac_prog; ac_word=$2 |
| 5890 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5891 |
– |
$as_echo_n "checking for $ac_word... " >&6; } |
| 5892 |
– |
if test "${ac_cv_prog_ac_ct_FC+set}" = set; then : |
| 5893 |
– |
$as_echo_n "(cached) " >&6 |
| 5894 |
– |
else |
| 5895 |
– |
if test -n "$ac_ct_FC"; then |
| 5896 |
– |
ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test. |
| 5897 |
– |
else |
| 5898 |
– |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5899 |
– |
for as_dir in $PATH |
| 5900 |
– |
do |
| 5901 |
– |
IFS=$as_save_IFS |
| 5902 |
– |
test -z "$as_dir" && as_dir=. |
| 5903 |
– |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 5904 |
– |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 5905 |
– |
ac_cv_prog_ac_ct_FC="$ac_prog" |
| 5906 |
– |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5907 |
– |
break 2 |
| 5908 |
– |
fi |
| 5909 |
– |
done |
| 5910 |
– |
done |
| 5911 |
– |
IFS=$as_save_IFS |
| 4687 |
|
|
| 4688 |
+ |
fi |
| 4689 |
+ |
if test x = x"$MPILIBS"; then |
| 4690 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpichf90" >&5 |
| 4691 |
+ |
$as_echo_n "checking for MPI_Init in -lmpichf90... " >&6; } |
| 4692 |
+ |
if ${ac_cv_lib_mpichf90_MPI_Init+:} false; then : |
| 4693 |
+ |
$as_echo_n "(cached) " >&6 |
| 4694 |
+ |
else |
| 4695 |
+ |
ac_check_lib_save_LIBS=$LIBS |
| 4696 |
+ |
LIBS="-lmpichf90 $LIBS" |
| 4697 |
+ |
cat > conftest.$ac_ext <<_ACEOF |
| 4698 |
+ |
program main |
| 4699 |
+ |
call MPI_Init |
| 4700 |
+ |
end |
| 4701 |
+ |
_ACEOF |
| 4702 |
+ |
if ac_fn_fc_try_link "$LINENO"; then : |
| 4703 |
+ |
ac_cv_lib_mpichf90_MPI_Init=yes |
| 4704 |
+ |
else |
| 4705 |
+ |
ac_cv_lib_mpichf90_MPI_Init=no |
| 4706 |
|
fi |
| 4707 |
+ |
rm -f core conftest.err conftest.$ac_objext \ |
| 4708 |
+ |
conftest$ac_exeext conftest.$ac_ext |
| 4709 |
+ |
LIBS=$ac_check_lib_save_LIBS |
| 4710 |
|
fi |
| 4711 |
< |
ac_ct_FC=$ac_cv_prog_ac_ct_FC |
| 4712 |
< |
if test -n "$ac_ct_FC"; then |
| 4713 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5 |
| 4714 |
< |
$as_echo "$ac_ct_FC" >&6; } |
| 5919 |
< |
else |
| 5920 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5921 |
< |
$as_echo "no" >&6; } |
| 4711 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpichf90_MPI_Init" >&5 |
| 4712 |
> |
$as_echo "$ac_cv_lib_mpichf90_MPI_Init" >&6; } |
| 4713 |
> |
if test "x$ac_cv_lib_mpichf90_MPI_Init" = xyes; then : |
| 4714 |
> |
MPILIBS="-lmpichf90" |
| 4715 |
|
fi |
| 4716 |
|
|
| 4717 |
+ |
fi |
| 4718 |
|
|
| 4719 |
< |
test -n "$ac_ct_FC" && break |
| 4720 |
< |
done |
| 4721 |
< |
|
| 4722 |
< |
if test "x$ac_ct_FC" = x; then |
| 5929 |
< |
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 |
| 5940 |
< |
|
| 5941 |
< |
|
| 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 |
| 5967 |
< |
|
| 5968 |
< |
# If we don't use `.F' as extension, the preprocessor is not run on the |
| 5969 |
< |
# input file. (Note that this only needs to work for GNU compilers.) |
| 5970 |
< |
ac_save_ext=$ac_ext |
| 5971 |
< |
ac_ext=F |
| 5972 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5 |
| 5973 |
< |
$as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; } |
| 5974 |
< |
if test "${ac_cv_fc_compiler_gnu+set}" = set; then : |
| 4719 |
> |
if test x = x"$MPILIBS"; then |
| 4720 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpi" >&5 |
| 4721 |
> |
$as_echo_n "checking for MPI_Init in -lmpi... " >&6; } |
| 4722 |
> |
if ${ac_cv_lib_mpi_MPI_Init+:} false; then : |
| 4723 |
|
$as_echo_n "(cached) " >&6 |
| 4724 |
|
else |
| 4725 |
< |
cat > conftest.$ac_ext <<_ACEOF |
| 4725 |
> |
ac_check_lib_save_LIBS=$LIBS |
| 4726 |
> |
LIBS="-lmpi $LIBS" |
| 4727 |
> |
cat > conftest.$ac_ext <<_ACEOF |
| 4728 |
|
program main |
| 4729 |
< |
#ifndef __GNUC__ |
| 5980 |
< |
choke me |
| 5981 |
< |
#endif |
| 5982 |
< |
|
| 4729 |
> |
call MPI_Init |
| 4730 |
|
end |
| 4731 |
|
_ACEOF |
| 4732 |
< |
if ac_fn_fc_try_compile "$LINENO"; then : |
| 4733 |
< |
ac_compiler_gnu=yes |
| 4732 |
> |
if ac_fn_fc_try_link "$LINENO"; then : |
| 4733 |
> |
ac_cv_lib_mpi_MPI_Init=yes |
| 4734 |
|
else |
| 4735 |
< |
ac_compiler_gnu=no |
| 4735 |
> |
ac_cv_lib_mpi_MPI_Init=no |
| 4736 |
|
fi |
| 4737 |
< |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4738 |
< |
ac_cv_fc_compiler_gnu=$ac_compiler_gnu |
| 4737 |
> |
rm -f core conftest.err conftest.$ac_objext \ |
| 4738 |
> |
conftest$ac_exeext conftest.$ac_ext |
| 4739 |
> |
LIBS=$ac_check_lib_save_LIBS |
| 4740 |
> |
fi |
| 4741 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpi_MPI_Init" >&5 |
| 4742 |
> |
$as_echo "$ac_cv_lib_mpi_MPI_Init" >&6; } |
| 4743 |
> |
if test "x$ac_cv_lib_mpi_MPI_Init" = xyes; then : |
| 4744 |
> |
MPILIBS="-lmpi" |
| 4745 |
> |
fi |
| 4746 |
|
|
| 4747 |
|
fi |
| 4748 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5 |
| 4749 |
< |
$as_echo "$ac_cv_fc_compiler_gnu" >&6; } |
| 4750 |
< |
ac_ext=$ac_save_ext |
| 4751 |
< |
ac_test_FCFLAGS=${FCFLAGS+set} |
| 5998 |
< |
ac_save_FCFLAGS=$FCFLAGS |
| 5999 |
< |
FCFLAGS= |
| 6000 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5 |
| 6001 |
< |
$as_echo_n "checking whether $FC accepts -g... " >&6; } |
| 6002 |
< |
if test "${ac_cv_prog_fc_g+set}" = set; then : |
| 4748 |
> |
if test x = x"$MPILIBS"; then |
| 4749 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpich" >&5 |
| 4750 |
> |
$as_echo_n "checking for MPI_Init in -lmpich... " >&6; } |
| 4751 |
> |
if ${ac_cv_lib_mpich_MPI_Init+:} false; then : |
| 4752 |
|
$as_echo_n "(cached) " >&6 |
| 4753 |
|
else |
| 4754 |
< |
FCFLAGS=-g |
| 4754 |
> |
ac_check_lib_save_LIBS=$LIBS |
| 4755 |
> |
LIBS="-lmpich $LIBS" |
| 4756 |
|
cat > conftest.$ac_ext <<_ACEOF |
| 4757 |
|
program main |
| 4758 |
+ |
call MPI_Init |
| 4759 |
+ |
end |
| 4760 |
+ |
_ACEOF |
| 4761 |
+ |
if ac_fn_fc_try_link "$LINENO"; then : |
| 4762 |
+ |
ac_cv_lib_mpich_MPI_Init=yes |
| 4763 |
+ |
else |
| 4764 |
+ |
ac_cv_lib_mpich_MPI_Init=no |
| 4765 |
+ |
fi |
| 4766 |
+ |
rm -f core conftest.err conftest.$ac_objext \ |
| 4767 |
+ |
conftest$ac_exeext conftest.$ac_ext |
| 4768 |
+ |
LIBS=$ac_check_lib_save_LIBS |
| 4769 |
+ |
fi |
| 4770 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpich_MPI_Init" >&5 |
| 4771 |
+ |
$as_echo "$ac_cv_lib_mpich_MPI_Init" >&6; } |
| 4772 |
+ |
if test "x$ac_cv_lib_mpich_MPI_Init" = xyes; then : |
| 4773 |
+ |
MPILIBS="-lmpich" |
| 4774 |
+ |
fi |
| 4775 |
|
|
| 4776 |
+ |
fi |
| 4777 |
+ |
|
| 4778 |
+ |
if test x != x"$MPILIBS"; then |
| 4779 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpif.h" >&5 |
| 4780 |
+ |
$as_echo_n "checking for mpif.h... " >&6; } |
| 4781 |
+ |
cat > conftest.$ac_ext <<_ACEOF |
| 4782 |
+ |
program main |
| 4783 |
+ |
include 'mpif.h' |
| 4784 |
|
end |
| 4785 |
|
_ACEOF |
| 4786 |
|
if ac_fn_fc_try_compile "$LINENO"; then : |
| 4787 |
< |
ac_cv_prog_fc_g=yes |
| 4787 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 4788 |
> |
$as_echo "yes" >&6; } |
| 4789 |
|
else |
| 4790 |
< |
ac_cv_prog_fc_g=no |
| 4790 |
> |
MPILIBS="" |
| 4791 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4792 |
> |
$as_echo "no" >&6; } |
| 4793 |
|
fi |
| 4794 |
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6017 |
– |
|
| 4795 |
|
fi |
| 4796 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5 |
| 4797 |
< |
$as_echo "$ac_cv_prog_fc_g" >&6; } |
| 4798 |
< |
if test "$ac_test_FCFLAGS" = set; then |
| 4799 |
< |
FCFLAGS=$ac_save_FCFLAGS |
| 4800 |
< |
elif test $ac_cv_prog_fc_g = yes; then |
| 4801 |
< |
if test "x$ac_cv_fc_compiler_gnu" = xyes; then |
| 4802 |
< |
FCFLAGS="-g -O2" |
| 4803 |
< |
else |
| 4804 |
< |
FCFLAGS="-g" |
| 4805 |
< |
fi |
| 4796 |
> |
|
| 4797 |
> |
FC="$ax_mpi_save_FC" |
| 4798 |
> |
|
| 4799 |
> |
|
| 4800 |
> |
|
| 4801 |
> |
# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: |
| 4802 |
> |
if test x = x"$MPILIBS"; then |
| 4803 |
> |
USE_MPI="no" |
| 4804 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No suitable Fortran MPI implementation found. openmd_MPI will not be built." >&5 |
| 4805 |
> |
$as_echo "$as_me: WARNING: No suitable Fortran MPI implementation found. openmd_MPI will not be built." >&2;} |
| 4806 |
> |
: |
| 4807 |
|
else |
| 4808 |
< |
if test "x$ac_cv_fc_compiler_gnu" = xyes; then |
| 4809 |
< |
FCFLAGS="-O2" |
| 6032 |
< |
else |
| 6033 |
< |
FCFLAGS= |
| 6034 |
< |
fi |
| 4808 |
> |
USE_MPI="yes" |
| 4809 |
> |
: |
| 4810 |
|
fi |
| 4811 |
|
|
| 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 |
| 4812 |
|
|
| 4813 |
+ |
fi |
| 4814 |
+ |
if test $USE_MPI != no; then : |
| 4815 |
+ |
|
| 4816 |
+ |
CXX=$MPICXX |
| 4817 |
+ |
CC=$MPICC |
| 4818 |
+ |
FC=$MPIFC |
| 4819 |
+ |
LIBS="$MPILIBS $LIBS" |
| 4820 |
+ |
|
| 4821 |
+ |
else |
| 4822 |
+ |
|
| 4823 |
+ |
CXX=$save_CXX |
| 4824 |
+ |
CC=$save_CC |
| 4825 |
+ |
FC=$save_FC |
| 4826 |
+ |
LIBS=$save_LIBS |
| 4827 |
+ |
|
| 4828 |
+ |
|
| 4829 |
+ |
fi |
| 4830 |
+ |
|
| 4831 |
+ |
|
| 4832 |
+ |
# Checks for programs. |
| 4833 |
|
ac_ext=c |
| 4834 |
|
ac_cpp='$CPP $CPPFLAGS' |
| 4835 |
|
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4842 |
|
CPP= |
| 4843 |
|
fi |
| 4844 |
|
if test -z "$CPP"; then |
| 4845 |
< |
if test "${ac_cv_prog_CPP+set}" = set; then : |
| 4845 |
> |
if ${ac_cv_prog_CPP+:} false; then : |
| 4846 |
|
$as_echo_n "(cached) " >&6 |
| 4847 |
|
else |
| 4848 |
|
# Double quotes because CPP needs to be expanded |
| 4872 |
|
# Broken: fails on valid input. |
| 4873 |
|
continue |
| 4874 |
|
fi |
| 4875 |
< |
rm -f conftest.err conftest.$ac_ext |
| 4875 |
> |
rm -f conftest.err conftest.i conftest.$ac_ext |
| 4876 |
|
|
| 4877 |
|
# OK, works on sane cases. Now check whether nonexistent headers |
| 4878 |
|
# can be detected and how. |
| 4888 |
|
ac_preproc_ok=: |
| 4889 |
|
break |
| 4890 |
|
fi |
| 4891 |
< |
rm -f conftest.err conftest.$ac_ext |
| 4891 |
> |
rm -f conftest.err conftest.i conftest.$ac_ext |
| 4892 |
|
|
| 4893 |
|
done |
| 4894 |
|
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 4895 |
< |
rm -f conftest.err conftest.$ac_ext |
| 4895 |
> |
rm -f conftest.i conftest.err conftest.$ac_ext |
| 4896 |
|
if $ac_preproc_ok; then : |
| 4897 |
|
break |
| 4898 |
|
fi |
| 4931 |
|
# Broken: fails on valid input. |
| 4932 |
|
continue |
| 4933 |
|
fi |
| 4934 |
< |
rm -f conftest.err conftest.$ac_ext |
| 4934 |
> |
rm -f conftest.err conftest.i conftest.$ac_ext |
| 4935 |
|
|
| 4936 |
|
# OK, works on sane cases. Now check whether nonexistent headers |
| 4937 |
|
# can be detected and how. |
| 4947 |
|
ac_preproc_ok=: |
| 4948 |
|
break |
| 4949 |
|
fi |
| 4950 |
< |
rm -f conftest.err conftest.$ac_ext |
| 4950 |
> |
rm -f conftest.err conftest.i conftest.$ac_ext |
| 4951 |
|
|
| 4952 |
|
done |
| 4953 |
|
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 4954 |
< |
rm -f conftest.err conftest.$ac_ext |
| 4954 |
> |
rm -f conftest.i conftest.err conftest.$ac_ext |
| 4955 |
|
if $ac_preproc_ok; then : |
| 4956 |
|
|
| 4957 |
|
else |
| 4958 |
|
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 4959 |
|
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 4960 |
< |
as_fn_error "C preprocessor \"$CPP\" fails sanity check |
| 4961 |
< |
See \`config.log' for more details." "$LINENO" 5; } |
| 4960 |
> |
as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
| 4961 |
> |
See \`config.log' for more details" "$LINENO" 5; } |
| 4962 |
|
fi |
| 4963 |
|
|
| 4964 |
|
ac_ext=${ac_fc_srcext-f} |
| 4968 |
|
|
| 4969 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
| 4970 |
|
$as_echo_n "checking for grep that handles long lines and -e... " >&6; } |
| 4971 |
< |
if test "${ac_cv_path_GREP+set}" = set; then : |
| 4971 |
> |
if ${ac_cv_path_GREP+:} false; then : |
| 4972 |
|
$as_echo_n "(cached) " >&6 |
| 4973 |
|
else |
| 4974 |
|
if test -z "$GREP"; then |
| 5017 |
|
done |
| 5018 |
|
IFS=$as_save_IFS |
| 5019 |
|
if test -z "$ac_cv_path_GREP"; then |
| 5020 |
< |
as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
| 5020 |
> |
as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
| 5021 |
|
fi |
| 5022 |
|
else |
| 5023 |
|
ac_cv_path_GREP=$GREP |
| 5031 |
|
|
| 5032 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
| 5033 |
|
$as_echo_n "checking for egrep... " >&6; } |
| 5034 |
< |
if test "${ac_cv_path_EGREP+set}" = set; then : |
| 5034 |
> |
if ${ac_cv_path_EGREP+:} false; then : |
| 5035 |
|
$as_echo_n "(cached) " >&6 |
| 5036 |
|
else |
| 5037 |
|
if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 5083 |
|
done |
| 5084 |
|
IFS=$as_save_IFS |
| 5085 |
|
if test -z "$ac_cv_path_EGREP"; then |
| 5086 |
< |
as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
| 5086 |
> |
as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
| 5087 |
|
fi |
| 5088 |
|
else |
| 5089 |
|
ac_cv_path_EGREP=$EGREP |
| 5111 |
|
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
| 5112 |
|
set x ${MAKE-make} |
| 5113 |
|
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
| 5114 |
< |
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 5114 |
> |
if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : |
| 5115 |
|
$as_echo_n "(cached) " >&6 |
| 5116 |
|
else |
| 5117 |
|
cat >conftest.make <<\_ACEOF |
| 5119 |
|
all: |
| 5120 |
|
@echo '@@@%%%=$(MAKE)=@@@%%%' |
| 5121 |
|
_ACEOF |
| 5122 |
< |
# GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
| 5122 |
> |
# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
| 5123 |
|
case `${MAKE-make} -f conftest.make 2>/dev/null` in |
| 5124 |
|
*@@@%%%=?*=@@@%%%*) |
| 5125 |
|
eval ac_cv_prog_make_${ac_make}_set=yes;; |
| 5143 |
|
set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
| 5144 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5145 |
|
$as_echo_n "checking for $ac_word... " >&6; } |
| 5146 |
< |
if test "${ac_cv_prog_RANLIB+set}" = set; then : |
| 5146 |
> |
if ${ac_cv_prog_RANLIB+:} false; then : |
| 5147 |
|
$as_echo_n "(cached) " >&6 |
| 5148 |
|
else |
| 5149 |
|
if test -n "$RANLIB"; then |
| 5183 |
|
set dummy ranlib; ac_word=$2 |
| 5184 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5185 |
|
$as_echo_n "checking for $ac_word... " >&6; } |
| 5186 |
< |
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : |
| 5186 |
> |
if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
| 5187 |
|
$as_echo_n "(cached) " >&6 |
| 5188 |
|
else |
| 5189 |
|
if test -n "$ac_ct_RANLIB"; then |
| 5235 |
|
set dummy perl; ac_word=$2 |
| 5236 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5237 |
|
$as_echo_n "checking for $ac_word... " >&6; } |
| 5238 |
< |
if test "${ac_cv_path_PERLINTERP+set}" = set; then : |
| 5238 |
> |
if ${ac_cv_path_PERLINTERP+:} false; then : |
| 5239 |
|
$as_echo_n "(cached) " >&6 |
| 5240 |
|
else |
| 5241 |
|
case $PERLINTERP in |
| 5285 |
|
|
| 5286 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether explicit instead of detected sharpbang is to be used" >&5 |
| 5287 |
|
$as_echo_n "checking whether explicit instead of detected sharpbang is to be used... " >&6; } |
| 5288 |
< |
if test "${ax_cv_opt_perl_shebang+set}" = set; then : |
| 5288 |
> |
if ${ax_cv_opt_perl_shebang+:} false; then : |
| 5289 |
|
$as_echo_n "(cached) " >&6 |
| 5290 |
|
else |
| 5291 |
|
case "$opt_perl_shebang" in |
| 5311 |
|
negclass="[^']"; # must leave this comment: m4 will remove the outer brackets for us, heheh |
| 5312 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for kernel sharpbang invocation to start perl" >&5 |
| 5313 |
|
$as_echo_n "checking for kernel sharpbang invocation to start perl... " >&6; } |
| 5314 |
< |
if test "${ac_cv_sys_kernshrpbang_perl+set}" = set; then : |
| 5314 |
> |
if ${ac_cv_sys_kernshrpbang_perl+:} false; then : |
| 5315 |
|
$as_echo_n "(cached) " >&6 |
| 5316 |
|
else |
| 5317 |
|
_somian_kspb_perl=`echo "$_somian_shbangperl" | sed -ne"s|.*='\($negclass*\)';$|\1|p"` |
| 5367 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
| 5368 |
|
$as_echo_n "checking for a BSD-compatible install... " >&6; } |
| 5369 |
|
if test -z "$INSTALL"; then |
| 5370 |
< |
if test "${ac_cv_path_install+set}" = set; then : |
| 5370 |
> |
if ${ac_cv_path_install+:} false; then : |
| 5371 |
|
$as_echo_n "(cached) " >&6 |
| 5372 |
|
else |
| 5373 |
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5447 |
|
x/*) ;; |
| 5448 |
|
*) INSTALL=`pwd`/ac-tools/"shtool install -c" ; |
| 5449 |
|
esac |
| 5450 |
< |
MKINSTALLDIRS=`pwd`/ac-tools/"shtool mkdir -p -f" |
| 5450 |
> |
MKINSTALLDIRS=`pwd`/ac-tools/"shtool mkdir -p -f -m 755" |
| 5451 |
|
# Extract the first word of "ar", so it can be a program name with args. |
| 5452 |
|
set dummy ar; ac_word=$2 |
| 5453 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5454 |
|
$as_echo_n "checking for $ac_word... " >&6; } |
| 5455 |
< |
if test "${ac_cv_prog_AR+set}" = set; then : |
| 5455 |
> |
if ${ac_cv_prog_AR+:} false; then : |
| 5456 |
|
$as_echo_n "(cached) " >&6 |
| 5457 |
|
else |
| 5458 |
|
if test -n "$AR"; then |
| 5551 |
|
:end' >>confcache |
| 5552 |
|
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 5553 |
|
if test -w "$cache_file"; then |
| 5554 |
< |
test "x$cache_file" != "x/dev/null" && |
| 5554 |
> |
if test "x$cache_file" != "x/dev/null"; then |
| 5555 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
| 5556 |
|
$as_echo "$as_me: updating cache $cache_file" >&6;} |
| 5557 |
< |
cat confcache >$cache_file |
| 5557 |
> |
if test ! -f "$cache_file" || test -h "$cache_file"; then |
| 5558 |
> |
cat confcache >"$cache_file" |
| 5559 |
> |
else |
| 5560 |
> |
case $cache_file in #( |
| 5561 |
> |
*/* | ?:*) |
| 5562 |
> |
mv -f confcache "$cache_file"$$ && |
| 5563 |
> |
mv -f "$cache_file"$$ "$cache_file" ;; #( |
| 5564 |
> |
*) |
| 5565 |
> |
mv -f confcache "$cache_file" ;; |
| 5566 |
> |
esac |
| 5567 |
> |
fi |
| 5568 |
> |
fi |
| 5569 |
|
else |
| 5570 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
| 5571 |
|
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
| 5578 |
|
set dummy ps; ac_word=$2 |
| 5579 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5580 |
|
$as_echo_n "checking for $ac_word... " >&6; } |
| 5581 |
< |
if test "${ac_cv_path_PS+set}" = set; then : |
| 5581 |
> |
if ${ac_cv_path_PS+:} false; then : |
| 5582 |
|
$as_echo_n "(cached) " >&6 |
| 5583 |
|
else |
| 5584 |
|
case $PS in |
| 5616 |
|
|
| 5617 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for POSIX or BSD ps syntax" >&5 |
| 5618 |
|
$as_echo_n "checking for POSIX or BSD ps syntax... " >&6; } |
| 5619 |
< |
if test "${ac_cv_prog_ps_syntax+set}" = set; then : |
| 5619 |
> |
if ${ac_cv_prog_ps_syntax+:} false; then : |
| 5620 |
|
$as_echo_n "(cached) " >&6 |
| 5621 |
|
else |
| 5622 |
|
|
| 5636 |
|
if test "$ac_cv_prog_ps_ef" = yes; then |
| 5637 |
|
ac_cv_prog_ps_syntax=POSIX |
| 5638 |
|
else |
| 5639 |
< |
as_fn_error "Could not determine ps syntax" "$LINENO" 5 |
| 5639 |
> |
as_fn_error $? "Could not determine ps syntax" "$LINENO" 5 |
| 5640 |
|
fi |
| 5641 |
|
fi |
| 5642 |
|
|
| 5658 |
|
$as_echo "#define PSTYPE_IS_POSIX 1" >>confdefs.h |
| 5659 |
|
|
| 5660 |
|
else |
| 5661 |
< |
as_fn_error "Unknown ps syntax type!" "$LINENO" 5 |
| 5661 |
> |
as_fn_error $? "Unknown ps syntax type!" "$LINENO" 5 |
| 5662 |
|
fi |
| 5663 |
|
fi |
| 5664 |
|
|
| 5673 |
|
ac_compiler_gnu=$ac_cv_fc_compiler_gnu |
| 5674 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran flag to compile .F90 files" >&5 |
| 5675 |
|
$as_echo_n "checking for Fortran flag to compile .F90 files... " >&6; } |
| 5676 |
< |
if test "${ac_cv_fc_srcext_F90+set}" = set; then : |
| 5676 |
> |
if ${ac_cv_fc_srcext_F90+:} false; then : |
| 5677 |
|
$as_echo_n "(cached) " >&6 |
| 5678 |
|
else |
| 5679 |
|
ac_ext=F90 |
| 5699 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_srcext_F90" >&5 |
| 5700 |
|
$as_echo "$ac_cv_fc_srcext_F90" >&6; } |
| 5701 |
|
if test "x$ac_cv_fc_srcext_F90" = xunknown; then |
| 5702 |
< |
as_fn_error "Fortran could not compile .F90 files" "$LINENO" 5 |
| 5702 |
> |
as_fn_error $? "Fortran could not compile .F90 files" "$LINENO" 5 |
| 5703 |
|
else |
| 5704 |
|
ac_fc_srcext=F90 |
| 5705 |
|
if test "x$ac_cv_fc_srcext_F90" = xnone; then |
| 5793 |
|
else |
| 5794 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5795 |
|
$as_echo "no" >&6; } |
| 5796 |
< |
as_fn_error "Can't figure out working Fortran90 preprocessor flag" "$LINENO" 5 |
| 5796 |
> |
as_fn_error $? "Can't figure out working Fortran90 preprocessor flag" "$LINENO" 5 |
| 5797 |
|
fi |
| 5798 |
|
fi |
| 5799 |
|
|
| 5876 |
|
else |
| 5877 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5878 |
|
$as_echo "no" >&6; } |
| 5879 |
< |
as_fn_error "Can't figure out working Fortran90 preprocessor define flag" "$LINENO" 5 |
| 5879 |
> |
as_fn_error $? "Can't figure out working Fortran90 preprocessor define flag" "$LINENO" 5 |
| 5880 |
|
fi |
| 5881 |
|
fi |
| 5882 |
|
|
| 5886 |
|
ac_compiler_gnu=$ac_cv_fc_compiler_gnu |
| 5887 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get verbose linking output from $FC" >&5 |
| 5888 |
|
$as_echo_n "checking how to get verbose linking output from $FC... " >&6; } |
| 5889 |
< |
if test "${ac_cv_prog_fc_v+set}" = set; then : |
| 5889 |
> |
if ${ac_cv_prog_fc_v+:} false; then : |
| 5890 |
|
$as_echo_n "(cached) " >&6 |
| 5891 |
|
else |
| 5892 |
|
cat > conftest.$ac_ext <<_ACEOF |
| 5916 |
|
# gfortran 4.3 outputs lines setting COLLECT_GCC_OPTIONS, COMPILER_PATH, |
| 5917 |
|
# LIBRARY_PATH; skip all such settings. |
| 5918 |
|
ac_fc_v_output=`eval $ac_link 5>&1 2>&1 | |
| 5919 |
< |
grep -v 'Driving:' | grep -v "^[_$as_cr_Letters][_$as_cr_alnum]*="` |
| 5919 |
> |
sed '/^Driving:/d; /^Configured with:/d; |
| 5920 |
> |
'"/^[_$as_cr_Letters][_$as_cr_alnum]*=/d"` |
| 5921 |
|
$as_echo "$ac_fc_v_output" >&5 |
| 5922 |
|
FCFLAGS=$ac_save_FCFLAGS |
| 5923 |
|
|
| 5982 |
|
$as_echo "$ac_cv_prog_fc_v" >&6; } |
| 5983 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran libraries of $FC" >&5 |
| 5984 |
|
$as_echo_n "checking for Fortran libraries of $FC... " >&6; } |
| 5985 |
< |
if test "${ac_cv_fc_libs+set}" = set; then : |
| 5985 |
> |
if ${ac_cv_fc_libs+:} false; then : |
| 5986 |
|
$as_echo_n "(cached) " >&6 |
| 5987 |
|
else |
| 5988 |
|
if test "x$FCLIBS" != "x"; then |
| 6007 |
|
# gfortran 4.3 outputs lines setting COLLECT_GCC_OPTIONS, COMPILER_PATH, |
| 6008 |
|
# LIBRARY_PATH; skip all such settings. |
| 6009 |
|
ac_fc_v_output=`eval $ac_link 5>&1 2>&1 | |
| 6010 |
< |
grep -v 'Driving:' | grep -v "^[_$as_cr_Letters][_$as_cr_alnum]*="` |
| 6010 |
> |
sed '/^Driving:/d; /^Configured with:/d; |
| 6011 |
> |
'"/^[_$as_cr_Letters][_$as_cr_alnum]*=/d"` |
| 6012 |
|
$as_echo "$ac_fc_v_output" >&5 |
| 6013 |
|
FCFLAGS=$ac_save_FCFLAGS |
| 6014 |
|
|
| 6098 |
|
;; |
| 6099 |
|
# Ignore these flags. |
| 6100 |
|
-lang* | -lcrt*.o | -lc | -lgcc* | -lSystem | -libmil | -little \ |
| 6101 |
< |
|-LANG:=* | -LIST:* | -LNO:*) |
| 6101 |
> |
|-LANG:=* | -LIST:* | -LNO:* | -link) |
| 6102 |
|
;; |
| 6103 |
|
-lkernel32) |
| 6104 |
|
test x"$CYGWIN" != xyes && ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg" |
| 6195 |
|
|
| 6196 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dummy main to link with Fortran libraries" >&5 |
| 6197 |
|
$as_echo_n "checking for dummy main to link with Fortran libraries... " >&6; } |
| 6198 |
< |
if test "${ac_cv_fc_dummy_main+set}" = set; then : |
| 6198 |
> |
if ${ac_cv_fc_dummy_main+:} false; then : |
| 6199 |
|
$as_echo_n "(cached) " >&6 |
| 6200 |
|
else |
| 6201 |
|
ac_fc_dm_save_LIBS=$LIBS |
| 6291 |
|
else |
| 6292 |
|
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 6293 |
|
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 6294 |
< |
as_fn_error "linking to Fortran libraries from C fails |
| 6295 |
< |
See \`config.log' for more details." "$LINENO" 5; } |
| 6294 |
> |
as_fn_error $? "linking to Fortran libraries from C fails |
| 6295 |
> |
See \`config.log' for more details" "$LINENO" 5; } |
| 6296 |
|
fi |
| 6297 |
|
|
| 6298 |
|
ac_ext=${ac_fc_srcext-f} |
| 6306 |
|
ac_compiler_gnu=$ac_cv_fc_compiler_gnu |
| 6307 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran name-mangling scheme" >&5 |
| 6308 |
|
$as_echo_n "checking for Fortran name-mangling scheme... " >&6; } |
| 6309 |
< |
if test "${ac_cv_fc_mangling+set}" = set; then : |
| 6309 |
> |
if ${ac_cv_fc_mangling+:} false; then : |
| 6310 |
|
$as_echo_n "(cached) " >&6 |
| 6311 |
|
else |
| 6312 |
|
cat > conftest.$ac_ext <<_ACEOF |
| 6452 |
|
else |
| 6453 |
|
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 6454 |
|
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 6455 |
< |
as_fn_error "cannot compile a simple Fortran program |
| 6456 |
< |
See \`config.log' for more details." "$LINENO" 5; } |
| 6455 |
> |
as_fn_error $? "cannot compile a simple Fortran program |
| 6456 |
> |
See \`config.log' for more details" "$LINENO" 5; } |
| 6457 |
|
fi |
| 6458 |
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6459 |
|
|
| 6530 |
|
ac_compiler_gnu=$ac_cv_fc_compiler_gnu |
| 6531 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get verbose linking output from $FC" >&5 |
| 6532 |
|
$as_echo_n "checking how to get verbose linking output from $FC... " >&6; } |
| 6533 |
< |
if test "${ac_cv_prog_fc_v+set}" = set; then : |
| 6533 |
> |
if ${ac_cv_prog_fc_v+:} false; then : |
| 6534 |
|
$as_echo_n "(cached) " >&6 |
| 6535 |
|
else |
| 6536 |
|
cat > conftest.$ac_ext <<_ACEOF |
| 6560 |
|
# gfortran 4.3 outputs lines setting COLLECT_GCC_OPTIONS, COMPILER_PATH, |
| 6561 |
|
# LIBRARY_PATH; skip all such settings. |
| 6562 |
|
ac_fc_v_output=`eval $ac_link 5>&1 2>&1 | |
| 6563 |
< |
grep -v 'Driving:' | grep -v "^[_$as_cr_Letters][_$as_cr_alnum]*="` |
| 6563 |
> |
sed '/^Driving:/d; /^Configured with:/d; |
| 6564 |
> |
'"/^[_$as_cr_Letters][_$as_cr_alnum]*=/d"` |
| 6565 |
|
$as_echo "$ac_fc_v_output" >&5 |
| 6566 |
|
FCFLAGS=$ac_save_FCFLAGS |
| 6567 |
|
|
| 6626 |
|
$as_echo "$ac_cv_prog_fc_v" >&6; } |
| 6627 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran libraries of $FC" >&5 |
| 6628 |
|
$as_echo_n "checking for Fortran libraries of $FC... " >&6; } |
| 6629 |
< |
if test "${ac_cv_fc_libs+set}" = set; then : |
| 6629 |
> |
if ${ac_cv_fc_libs+:} false; then : |
| 6630 |
|
$as_echo_n "(cached) " >&6 |
| 6631 |
|
else |
| 6632 |
|
if test "x$FCLIBS" != "x"; then |
| 6651 |
|
# gfortran 4.3 outputs lines setting COLLECT_GCC_OPTIONS, COMPILER_PATH, |
| 6652 |
|
# LIBRARY_PATH; skip all such settings. |
| 6653 |
|
ac_fc_v_output=`eval $ac_link 5>&1 2>&1 | |
| 6654 |
< |
grep -v 'Driving:' | grep -v "^[_$as_cr_Letters][_$as_cr_alnum]*="` |
| 6654 |
> |
sed '/^Driving:/d; /^Configured with:/d; |
| 6655 |
> |
'"/^[_$as_cr_Letters][_$as_cr_alnum]*=/d"` |
| 6656 |
|
$as_echo "$ac_fc_v_output" >&5 |
| 6657 |
|
FCFLAGS=$ac_save_FCFLAGS |
| 6658 |
|
|
| 6742 |
|
;; |
| 6743 |
|
# Ignore these flags. |
| 6744 |
|
-lang* | -lcrt*.o | -lc | -lgcc* | -lSystem | -libmil | -little \ |
| 6745 |
< |
|-LANG:=* | -LIST:* | -LNO:*) |
| 6745 |
> |
|-LANG:=* | -LIST:* | -LNO:* | -link) |
| 6746 |
|
;; |
| 6747 |
|
-lkernel32) |
| 6748 |
|
test x"$CYGWIN" != xyes && ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg" |
| 6965 |
|
|
| 6966 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 90 module file names" >&5 |
| 6967 |
|
$as_echo_n "checking for Fortran 90 module file names... " >&6; } |
| 6968 |
< |
if test "${ac_cv_f90_module_names+set}" = set; then : |
| 6968 |
> |
if ${ac_cv_f90_module_names+:} false; then : |
| 6969 |
|
$as_echo_n "(cached) " >&6 |
| 6970 |
|
else |
| 6971 |
|
ac_ext=${ac_fc_srcext-f} |
| 7177 |
|
|
| 7178 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for asin in -lm" >&5 |
| 7179 |
|
$as_echo_n "checking for asin in -lm... " >&6; } |
| 7180 |
< |
if test "${ac_cv_lib_m_asin+set}" = set; then : |
| 7180 |
> |
if ${ac_cv_lib_m_asin+:} false; then : |
| 7181 |
|
$as_echo_n "(cached) " >&6 |
| 7182 |
|
else |
| 7183 |
|
ac_check_lib_save_LIBS=$LIBS |
| 7219 |
|
fi |
| 7220 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_asin" >&5 |
| 7221 |
|
$as_echo "$ac_cv_lib_m_asin" >&6; } |
| 7222 |
< |
if test "x$ac_cv_lib_m_asin" = x""yes; then : |
| 7222 |
> |
if test "x$ac_cv_lib_m_asin" = xyes; then : |
| 7223 |
|
cat >>confdefs.h <<_ACEOF |
| 7224 |
|
#define HAVE_LIBM 1 |
| 7225 |
|
_ACEOF |
| 7233 |
|
|
| 7234 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
| 7235 |
|
$as_echo_n "checking for ANSI C header files... " >&6; } |
| 7236 |
< |
if test "${ac_cv_header_stdc+set}" = set; then : |
| 7236 |
> |
if ${ac_cv_header_stdc+:} false; then : |
| 7237 |
|
$as_echo_n "(cached) " >&6 |
| 7238 |
|
else |
| 7239 |
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7358 |
|
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 7359 |
|
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
| 7360 |
|
" |
| 7361 |
< |
eval as_val=\$$as_ac_Header |
| 8556 |
< |
if test "x$as_val" = x""yes; then : |
| 7361 |
> |
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
| 7362 |
|
cat >>confdefs.h <<_ACEOF |
| 7363 |
|
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 7364 |
|
_ACEOF |
| 7413 |
|
|
| 7414 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflateEnd in -lz" >&5 |
| 7415 |
|
$as_echo_n "checking for inflateEnd in -lz... " >&6; } |
| 7416 |
< |
if test "${ac_cv_lib_z_inflateEnd+set}" = set; then : |
| 7416 |
> |
if ${ac_cv_lib_z_inflateEnd+:} false; then : |
| 7417 |
|
$as_echo_n "(cached) " >&6 |
| 7418 |
|
else |
| 7419 |
|
ac_check_lib_save_LIBS=$LIBS |
| 7455 |
|
fi |
| 7456 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateEnd" >&5 |
| 7457 |
|
$as_echo "$ac_cv_lib_z_inflateEnd" >&6; } |
| 7458 |
< |
if test "x$ac_cv_lib_z_inflateEnd" = x""yes; then : |
| 7458 |
> |
if test "x$ac_cv_lib_z_inflateEnd" = xyes; then : |
| 7459 |
|
zlib_cv_libz=yes |
| 7460 |
|
else |
| 7461 |
|
zlib_cv_libz=no |
| 7462 |
|
fi |
| 7463 |
|
|
| 7464 |
|
ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default" |
| 7465 |
< |
if test "x$ac_cv_header_zlib_h" = x""yes; then : |
| 7465 |
> |
if test "x$ac_cv_header_zlib_h" = xyes; then : |
| 7466 |
|
zlib_cv_zlib_h=yes |
| 7467 |
|
else |
| 7468 |
|
zlib_cv_zlib_h=no |
| 7553 |
|
|
| 7554 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_execute in -lfftw3" >&5 |
| 7555 |
|
$as_echo_n "checking for fftw_execute in -lfftw3... " >&6; } |
| 7556 |
< |
if test "${ac_cv_lib_fftw3_fftw_execute+set}" = set; then : |
| 7556 |
> |
if ${ac_cv_lib_fftw3_fftw_execute+:} false; then : |
| 7557 |
|
$as_echo_n "(cached) " >&6 |
| 7558 |
|
else |
| 7559 |
|
ac_check_lib_save_LIBS=$LIBS |
| 7595 |
|
fi |
| 7596 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_execute" >&5 |
| 7597 |
|
$as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; } |
| 7598 |
< |
if test "x$ac_cv_lib_fftw3_fftw_execute" = x""yes; then : |
| 7598 |
> |
if test "x$ac_cv_lib_fftw3_fftw_execute" = xyes; then : |
| 7599 |
|
fftw_cv_libfftw3=yes |
| 7600 |
|
else |
| 7601 |
|
fftw_cv_libfftw3=no |
| 7602 |
|
fi |
| 7603 |
|
|
| 7604 |
|
ac_fn_c_check_header_mongrel "$LINENO" "fftw3.h" "ac_cv_header_fftw3_h" "$ac_includes_default" |
| 7605 |
< |
if test "x$ac_cv_header_fftw3_h" = x""yes; then : |
| 7605 |
> |
if test "x$ac_cv_header_fftw3_h" = xyes; then : |
| 7606 |
|
fftw_cv_fftw3_h=yes |
| 7607 |
|
else |
| 7608 |
|
fftw_cv_fftw3_h=no |
| 7612 |
|
if test "$fftw_cv_libfftw3" = "no" -o "$fftw_cv_fftw3_h" = "no"; then |
| 7613 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftwnd_one in -lfftw" >&5 |
| 7614 |
|
$as_echo_n "checking for fftwnd_one in -lfftw... " >&6; } |
| 7615 |
< |
if test "${ac_cv_lib_fftw_fftwnd_one+set}" = set; then : |
| 7615 |
> |
if ${ac_cv_lib_fftw_fftwnd_one+:} false; then : |
| 7616 |
|
$as_echo_n "(cached) " >&6 |
| 7617 |
|
else |
| 7618 |
|
ac_check_lib_save_LIBS=$LIBS |
| 7654 |
|
fi |
| 7655 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw_fftwnd_one" >&5 |
| 7656 |
|
$as_echo "$ac_cv_lib_fftw_fftwnd_one" >&6; } |
| 7657 |
< |
if test "x$ac_cv_lib_fftw_fftwnd_one" = x""yes; then : |
| 7657 |
> |
if test "x$ac_cv_lib_fftw_fftwnd_one" = xyes; then : |
| 7658 |
|
fftw_cv_libfftw=yes |
| 7659 |
|
else |
| 7660 |
|
fftw_cv_libfftw=no |
| 7661 |
|
fi |
| 7662 |
|
|
| 7663 |
|
ac_fn_c_check_header_mongrel "$LINENO" "fftw.h" "ac_cv_header_fftw_h" "$ac_includes_default" |
| 7664 |
< |
if test "x$ac_cv_header_fftw_h" = x""yes; then : |
| 7664 |
> |
if test "x$ac_cv_header_fftw_h" = xyes; then : |
| 7665 |
|
fftw_cv_fftw_h=yes |
| 7666 |
|
else |
| 7667 |
|
fftw_cv_fftw_h=no |
| 7671 |
|
if test "$fftw_cv_libfftw" = "no" -o "$fftw_cv_fftw_h" = "no"; then |
| 7672 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftwnd_one in -ldfftw" >&5 |
| 7673 |
|
$as_echo_n "checking for fftwnd_one in -ldfftw... " >&6; } |
| 7674 |
< |
if test "${ac_cv_lib_dfftw_fftwnd_one+set}" = set; then : |
| 7674 |
> |
if ${ac_cv_lib_dfftw_fftwnd_one+:} false; then : |
| 7675 |
|
$as_echo_n "(cached) " >&6 |
| 7676 |
|
else |
| 7677 |
|
ac_check_lib_save_LIBS=$LIBS |
| 7713 |
|
fi |
| 7714 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dfftw_fftwnd_one" >&5 |
| 7715 |
|
$as_echo "$ac_cv_lib_dfftw_fftwnd_one" >&6; } |
| 7716 |
< |
if test "x$ac_cv_lib_dfftw_fftwnd_one" = x""yes; then : |
| 7716 |
> |
if test "x$ac_cv_lib_dfftw_fftwnd_one" = xyes; then : |
| 7717 |
|
fftw_cv_libdfftw=yes |
| 7718 |
|
else |
| 7719 |
|
fftw_cv_libdfftw=no |
| 7720 |
|
fi |
| 7721 |
|
|
| 7722 |
|
ac_fn_c_check_header_mongrel "$LINENO" "dfftw.h" "ac_cv_header_dfftw_h" "$ac_includes_default" |
| 7723 |
< |
if test "x$ac_cv_header_dfftw_h" = x""yes; then : |
| 7723 |
> |
if test "x$ac_cv_header_dfftw_h" = xyes; then : |
| 7724 |
|
fftw_cv_dfftw_h=yes |
| 7725 |
|
else |
| 7726 |
|
fftw_cv_dfftw_h=no |
| 7786 |
|
|
| 7787 |
|
fi |
| 7788 |
|
fi |
| 7789 |
+ |
fi |
| 7790 |
+ |
|
| 7791 |
+ |
ac_ext=cpp |
| 7792 |
+ |
ac_cpp='$CXXCPP $CPPFLAGS' |
| 7793 |
+ |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 7794 |
+ |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 7795 |
+ |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 7796 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 |
| 7797 |
+ |
$as_echo_n "checking how to run the C++ preprocessor... " >&6; } |
| 7798 |
+ |
if test -z "$CXXCPP"; then |
| 7799 |
+ |
if ${ac_cv_prog_CXXCPP+:} false; then : |
| 7800 |
+ |
$as_echo_n "(cached) " >&6 |
| 7801 |
+ |
else |
| 7802 |
+ |
# Double quotes because CXXCPP needs to be expanded |
| 7803 |
+ |
for CXXCPP in "$CXX -E" "/lib/cpp" |
| 7804 |
+ |
do |
| 7805 |
+ |
ac_preproc_ok=false |
| 7806 |
+ |
for ac_cxx_preproc_warn_flag in '' yes |
| 7807 |
+ |
do |
| 7808 |
+ |
# Use a header file that comes with gcc, so configuring glibc |
| 7809 |
+ |
# with a fresh cross-compiler works. |
| 7810 |
+ |
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 7811 |
+ |
# <limits.h> exists even on freestanding compilers. |
| 7812 |
+ |
# On the NeXT, cc -E runs the code through the compiler's parser, |
| 7813 |
+ |
# not just through cpp. "Syntax error" is here to catch this case. |
| 7814 |
+ |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7815 |
+ |
/* end confdefs.h. */ |
| 7816 |
+ |
#ifdef __STDC__ |
| 7817 |
+ |
# include <limits.h> |
| 7818 |
+ |
#else |
| 7819 |
+ |
# include <assert.h> |
| 7820 |
+ |
#endif |
| 7821 |
+ |
Syntax error |
| 7822 |
+ |
_ACEOF |
| 7823 |
+ |
if ac_fn_cxx_try_cpp "$LINENO"; then : |
| 7824 |
+ |
|
| 7825 |
+ |
else |
| 7826 |
+ |
# Broken: fails on valid input. |
| 7827 |
+ |
continue |
| 7828 |
|
fi |
| 7829 |
+ |
rm -f conftest.err conftest.i conftest.$ac_ext |
| 7830 |
|
|
| 7831 |
+ |
# OK, works on sane cases. Now check whether nonexistent headers |
| 7832 |
+ |
# can be detected and how. |
| 7833 |
+ |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7834 |
+ |
/* end confdefs.h. */ |
| 7835 |
+ |
#include <ac_nonexistent.h> |
| 7836 |
+ |
_ACEOF |
| 7837 |
+ |
if ac_fn_cxx_try_cpp "$LINENO"; then : |
| 7838 |
+ |
# Broken: success on invalid input. |
| 7839 |
+ |
continue |
| 7840 |
+ |
else |
| 7841 |
+ |
# Passes both tests. |
| 7842 |
+ |
ac_preproc_ok=: |
| 7843 |
+ |
break |
| 7844 |
+ |
fi |
| 7845 |
+ |
rm -f conftest.err conftest.i conftest.$ac_ext |
| 7846 |
+ |
|
| 7847 |
+ |
done |
| 7848 |
+ |
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 7849 |
+ |
rm -f conftest.i conftest.err conftest.$ac_ext |
| 7850 |
+ |
if $ac_preproc_ok; then : |
| 7851 |
+ |
break |
| 7852 |
+ |
fi |
| 7853 |
+ |
|
| 7854 |
+ |
done |
| 7855 |
+ |
ac_cv_prog_CXXCPP=$CXXCPP |
| 7856 |
+ |
|
| 7857 |
+ |
fi |
| 7858 |
+ |
CXXCPP=$ac_cv_prog_CXXCPP |
| 7859 |
+ |
else |
| 7860 |
+ |
ac_cv_prog_CXXCPP=$CXXCPP |
| 7861 |
+ |
fi |
| 7862 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 |
| 7863 |
+ |
$as_echo "$CXXCPP" >&6; } |
| 7864 |
+ |
ac_preproc_ok=false |
| 7865 |
+ |
for ac_cxx_preproc_warn_flag in '' yes |
| 7866 |
+ |
do |
| 7867 |
+ |
# Use a header file that comes with gcc, so configuring glibc |
| 7868 |
+ |
# with a fresh cross-compiler works. |
| 7869 |
+ |
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 7870 |
+ |
# <limits.h> exists even on freestanding compilers. |
| 7871 |
+ |
# On the NeXT, cc -E runs the code through the compiler's parser, |
| 7872 |
+ |
# not just through cpp. "Syntax error" is here to catch this case. |
| 7873 |
+ |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7874 |
+ |
/* end confdefs.h. */ |
| 7875 |
+ |
#ifdef __STDC__ |
| 7876 |
+ |
# include <limits.h> |
| 7877 |
+ |
#else |
| 7878 |
+ |
# include <assert.h> |
| 7879 |
+ |
#endif |
| 7880 |
+ |
Syntax error |
| 7881 |
+ |
_ACEOF |
| 7882 |
+ |
if ac_fn_cxx_try_cpp "$LINENO"; then : |
| 7883 |
+ |
|
| 7884 |
+ |
else |
| 7885 |
+ |
# Broken: fails on valid input. |
| 7886 |
+ |
continue |
| 7887 |
+ |
fi |
| 7888 |
+ |
rm -f conftest.err conftest.i conftest.$ac_ext |
| 7889 |
+ |
|
| 7890 |
+ |
# OK, works on sane cases. Now check whether nonexistent headers |
| 7891 |
+ |
# can be detected and how. |
| 7892 |
+ |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7893 |
+ |
/* end confdefs.h. */ |
| 7894 |
+ |
#include <ac_nonexistent.h> |
| 7895 |
+ |
_ACEOF |
| 7896 |
+ |
if ac_fn_cxx_try_cpp "$LINENO"; then : |
| 7897 |
+ |
# Broken: success on invalid input. |
| 7898 |
+ |
continue |
| 7899 |
+ |
else |
| 7900 |
+ |
# Passes both tests. |
| 7901 |
+ |
ac_preproc_ok=: |
| 7902 |
+ |
break |
| 7903 |
+ |
fi |
| 7904 |
+ |
rm -f conftest.err conftest.i conftest.$ac_ext |
| 7905 |
+ |
|
| 7906 |
+ |
done |
| 7907 |
+ |
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 7908 |
+ |
rm -f conftest.i conftest.err conftest.$ac_ext |
| 7909 |
+ |
if $ac_preproc_ok; then : |
| 7910 |
+ |
|
| 7911 |
+ |
else |
| 7912 |
+ |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 7913 |
+ |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 7914 |
+ |
as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check |
| 7915 |
+ |
See \`config.log' for more details" "$LINENO" 5; } |
| 7916 |
+ |
fi |
| 7917 |
+ |
|
| 7918 |
+ |
ac_ext=cpp |
| 7919 |
+ |
ac_cpp='$CXXCPP $CPPFLAGS' |
| 7920 |
+ |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 7921 |
+ |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 7922 |
+ |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 7923 |
+ |
|
| 7924 |
+ |
|
| 7925 |
|
# |
| 7926 |
|
# Handle user hints |
| 7927 |
|
# |
| 7946 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Sorry, $qhull_dir does not exist, checking usual places" >&5 |
| 7947 |
|
$as_echo "$as_me: WARNING: Sorry, $qhull_dir does not exist, checking usual places" >&2;} |
| 7948 |
|
QHULL_HOME=/usr/local |
| 7949 |
< |
if test ! -f "${QHULL_HOME}/include/qhull/qhull.h"; then |
| 7949 |
> |
if test ! -f "${QHULL_HOME}/include/qhull/libqhull.h"; then |
| 7950 |
|
QHULL_HOME=/usr |
| 7951 |
|
fi |
| 7952 |
|
fi |
| 7958 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: Checking for qhull in ${QHULL_HOME}" >&5 |
| 7959 |
|
$as_echo "$as_me: Checking for qhull in ${QHULL_HOME}" >&6;} |
| 7960 |
|
|
| 7961 |
< |
ac_ext=c |
| 7962 |
< |
ac_cpp='$CPP $CPPFLAGS' |
| 7963 |
< |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 7964 |
< |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 7965 |
< |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 7961 |
> |
ac_ext=cpp |
| 7962 |
> |
ac_cpp='$CXXCPP $CPPFLAGS' |
| 7963 |
> |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 7964 |
> |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 7965 |
> |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 7966 |
|
|
| 7967 |
|
QHULL_OLD_LDFLAGS=$LDFLAGS |
| 7968 |
< |
QHULL_OLD_CFLAGS=$CFLAGS |
| 7968 |
> |
QHULL_OLD_CXXFLAGS=$CXXFLAGS |
| 7969 |
|
QHULL_OLD_CPPFLAGS=$CPPFLAGS |
| 7970 |
|
LDFLAGS="$LDFLAGS -L${QHULL_HOME}/lib" |
| 7971 |
< |
CFLAGS="$CFLAGS -I${QHULL_HOME}/include" |
| 7971 |
> |
CXXFLAGS="$CXXFLAGS -I${QHULL_HOME}/include" |
| 7972 |
|
CPPFLAGS="$CPPFLAGS -I${QHULL_HOME}/include" |
| 7973 |
< |
ac_fn_c_check_header_mongrel "$LINENO" "qhull/qhull.h" "ac_cv_header_qhull_qhull_h" "$ac_includes_default" |
| 7974 |
< |
if test "x$ac_cv_header_qhull_qhull_h" = x""yes; then : |
| 7975 |
< |
qhull_cv_qhull_h=yes |
| 7973 |
> |
ac_fn_cxx_check_header_mongrel "$LINENO" "qhull/libqhull.h" "ac_cv_header_qhull_libqhull_h" "$ac_includes_default" |
| 7974 |
> |
if test "x$ac_cv_header_qhull_libqhull_h" = xyes; then : |
| 7975 |
> |
qhull_cv_libqhull_h=yes |
| 7976 |
|
else |
| 7977 |
< |
qhull_cv_qhull_h=no |
| 7977 |
> |
qhull_cv_libqhull_h=no |
| 7978 |
|
fi |
| 7979 |
|
|
| 7980 |
|
|
| 7981 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for qh_qhull in -lqhull" >&5 |
| 7982 |
|
$as_echo_n "checking for qh_qhull in -lqhull... " >&6; } |
| 7983 |
< |
if test "${ac_cv_lib_qhull_qh_qhull+set}" = set; then : |
| 7983 |
> |
if ${ac_cv_lib_qhull_qh_qhull+:} false; then : |
| 7984 |
|
$as_echo_n "(cached) " >&6 |
| 7985 |
|
else |
| 7986 |
|
ac_check_lib_save_LIBS=$LIBS |
| 8011 |
|
return 0; |
| 8012 |
|
} |
| 8013 |
|
_ACEOF |
| 8014 |
< |
if ac_fn_c_try_link "$LINENO"; then : |
| 8014 |
> |
if ac_fn_cxx_try_link "$LINENO"; then : |
| 8015 |
|
ac_cv_lib_qhull_qh_qhull=yes |
| 8016 |
|
else |
| 8017 |
|
ac_cv_lib_qhull_qh_qhull=no |
| 8022 |
|
fi |
| 8023 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_qhull_qh_qhull" >&5 |
| 8024 |
|
$as_echo "$ac_cv_lib_qhull_qh_qhull" >&6; } |
| 8025 |
< |
if test "x$ac_cv_lib_qhull_qh_qhull" = x""yes; then : |
| 8025 |
> |
if test "x$ac_cv_lib_qhull_qh_qhull" = xyes; then : |
| 8026 |
|
qhull_cv_libqhull=yes |
| 8027 |
|
else |
| 8028 |
|
qhull_cv_libqhull=no |
| 8029 |
|
fi |
| 8030 |
|
|
| 8031 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for qh_qhull in -lqhull6" >&5 |
| 8032 |
+ |
$as_echo_n "checking for qh_qhull in -lqhull6... " >&6; } |
| 8033 |
+ |
if ${ac_cv_lib_qhull6_qh_qhull+:} false; then : |
| 8034 |
+ |
$as_echo_n "(cached) " >&6 |
| 8035 |
+ |
else |
| 8036 |
+ |
ac_check_lib_save_LIBS=$LIBS |
| 8037 |
+ |
LIBS="-lqhull6 $LIBS" |
| 8038 |
+ |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8039 |
+ |
/* end confdefs.h. */ |
| 8040 |
+ |
|
| 8041 |
+ |
/* Override any GCC internal prototype to avoid an error. |
| 8042 |
+ |
Use char because int might match the return type of a GCC |
| 8043 |
+ |
builtin and then its argument prototype would still apply. */ |
| 8044 |
+ |
#ifdef __cplusplus |
| 8045 |
+ |
extern "C" |
| 8046 |
+ |
#endif |
| 8047 |
+ |
char qh_qhull (); |
| 8048 |
+ |
#ifdef FC_DUMMY_MAIN |
| 8049 |
+ |
#ifndef FC_DUMMY_MAIN_EQ_F77 |
| 8050 |
+ |
# ifdef __cplusplus |
| 8051 |
+ |
extern "C" |
| 8052 |
+ |
# endif |
| 8053 |
+ |
int FC_DUMMY_MAIN() { return 1; } |
| 8054 |
+ |
#endif |
| 8055 |
+ |
#endif |
| 8056 |
+ |
int |
| 8057 |
+ |
main () |
| 8058 |
+ |
{ |
| 8059 |
+ |
return qh_qhull (); |
| 8060 |
+ |
; |
| 8061 |
+ |
return 0; |
| 8062 |
+ |
} |
| 8063 |
+ |
_ACEOF |
| 8064 |
+ |
if ac_fn_cxx_try_link "$LINENO"; then : |
| 8065 |
+ |
ac_cv_lib_qhull6_qh_qhull=yes |
| 8066 |
+ |
else |
| 8067 |
+ |
ac_cv_lib_qhull6_qh_qhull=no |
| 8068 |
+ |
fi |
| 8069 |
+ |
rm -f core conftest.err conftest.$ac_objext \ |
| 8070 |
+ |
conftest$ac_exeext conftest.$ac_ext |
| 8071 |
+ |
LIBS=$ac_check_lib_save_LIBS |
| 8072 |
+ |
fi |
| 8073 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_qhull6_qh_qhull" >&5 |
| 8074 |
+ |
$as_echo "$ac_cv_lib_qhull6_qh_qhull" >&6; } |
| 8075 |
+ |
if test "x$ac_cv_lib_qhull6_qh_qhull" = xyes; then : |
| 8076 |
+ |
qhull_cv_libqhull6=yes |
| 8077 |
+ |
else |
| 8078 |
+ |
qhull_cv_libqhull6=no |
| 8079 |
+ |
fi |
| 8080 |
+ |
|
| 8081 |
|
LDFLAGS="$QHULL_OLD_LDFLAGS" |
| 8082 |
< |
CFLAGS="$QHULL_OLD_CFLAGS" |
| 8082 |
> |
CXXFLAGS="$QHULL_OLD_CXXFLAGS" |
| 8083 |
|
CPPFLAGS="$QHULL_OLD_CPPFLAGS" |
| 8084 |
|
ac_ext=c |
| 8085 |
|
ac_cpp='$CPP $CPPFLAGS' |
| 8088 |
|
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 8089 |
|
|
| 8090 |
|
|
| 8091 |
< |
if test "$qhull_cv_libqhull" = "yes" -a "$qhull_cv_qhull_h" = "yes"; then |
| 8091 |
> |
if test "$qhull_cv_libqhull_h" = "yes" -a "$qhull_cv_libqhull" = "yes" -o "$qhull_cv_libqhull6" = "yes"; then |
| 8092 |
|
|
| 8093 |
< |
$as_echo "#define HAVE_QHULL_H 1" >>confdefs.h |
| 8093 |
> |
$as_echo "#define HAVE_LIBQHULL_H 1" >>confdefs.h |
| 8094 |
|
|
| 8095 |
+ |
if test "$qhull_cv_libqhull" = "yes"; then |
| 8096 |
|
|
| 8097 |
|
$as_echo "#define HAVE_QHULL 1" >>confdefs.h |
| 8098 |
|
|
| 8099 |
+ |
QHULL="-lqhull" |
| 8100 |
+ |
fi |
| 8101 |
+ |
if test "$qhull_cv_libqhull6" = "yes"; then |
| 8102 |
+ |
|
| 8103 |
+ |
$as_echo "#define HAVE_QHULL 1" >>confdefs.h |
| 8104 |
+ |
|
| 8105 |
+ |
QHULL="-lqhull6" |
| 8106 |
+ |
fi |
| 8107 |
|
USE_QHULL=yes |
| 8108 |
|
QHULL_INC_DIR="${QHULL_HOME}/include" |
| 8109 |
|
QHULL_LIB_DIR="${QHULL_HOME}/lib" |
| 9112 |
– |
QHULL="-lqhull" |
| 8110 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Working qhull found, will proceed." >&5 |
| 8111 |
|
$as_echo "Working qhull found, will proceed." >&6; } |
| 8112 |
|
else |
| 8134 |
|
|
| 8135 |
|
|
| 8136 |
|
|
| 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 |
| 9177 |
– |
fi |
| 9178 |
– |
rm -f conftest.err conftest.$ac_ext |
| 9179 |
– |
|
| 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 |
| 9195 |
– |
|
| 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 |
| 9202 |
– |
|
| 9203 |
– |
done |
| 9204 |
– |
ac_cv_prog_CXXCPP=$CXXCPP |
| 9205 |
– |
|
| 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 : |
| 9232 |
– |
|
| 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 |
– |
|
| 8137 |
|
# |
| 8138 |
|
# Handle user hints |
| 8139 |
|
# |
| 8178 |
|
LDFLAGS="$LDFLAGS -L${OPENBABEL_HOME}/lib -lopenbabel" |
| 8179 |
|
CPPFLAGS="$CPPFLAGS -I${OPENBABEL_HOME}/include/openbabel-2.0" |
| 8180 |
|
ac_fn_cxx_check_header_mongrel "$LINENO" "openbabel/babelconfig.h" "ac_cv_header_openbabel_babelconfig_h" "$ac_includes_default" |
| 8181 |
< |
if test "x$ac_cv_header_openbabel_babelconfig_h" = x""yes; then : |
| 8181 |
> |
if test "x$ac_cv_header_openbabel_babelconfig_h" = xyes; then : |
| 8182 |
|
openbabel_cv_openbabel_h=yes |
| 8183 |
|
else |
| 8184 |
|
openbabel_cv_openbabel_h=no |
| 8186 |
|
|
| 8187 |
|
|
| 8188 |
|
ac_fn_cxx_check_header_mongrel "$LINENO" "openbabel/obconversion.h" "ac_cv_header_openbabel_obconversion_h" "$ac_includes_default" |
| 8189 |
< |
if test "x$ac_cv_header_openbabel_obconversion_h" = x""yes; then : |
| 8189 |
> |
if test "x$ac_cv_header_openbabel_obconversion_h" = xyes; then : |
| 8190 |
|
openbabel_cv_obconversion_h=yes |
| 8191 |
|
else |
| 8192 |
|
openbabel_cv_obconversion_h=no |
| 8282 |
|
# Checks for header files. |
| 8283 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
| 8284 |
|
$as_echo_n "checking for ANSI C header files... " >&6; } |
| 8285 |
< |
if test "${ac_cv_header_stdc+set}" = set; then : |
| 8285 |
> |
if ${ac_cv_header_stdc+:} false; then : |
| 8286 |
|
$as_echo_n "(cached) " >&6 |
| 8287 |
|
else |
| 8288 |
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8404 |
|
do : |
| 8405 |
|
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 8406 |
|
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
| 8407 |
< |
eval as_val=\$$as_ac_Header |
| 9545 |
< |
if test "x$as_val" = x""yes; then : |
| 8407 |
> |
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
| 8408 |
|
cat >>confdefs.h <<_ACEOF |
| 8409 |
|
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 8410 |
|
_ACEOF |
| 8417 |
|
# Checks for typedefs, structures, and compiler characteristics. |
| 8418 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5 |
| 8419 |
|
$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; } |
| 8420 |
< |
if test "${ac_cv_header_stdbool_h+set}" = set; then : |
| 8420 |
> |
if ${ac_cv_header_stdbool_h+:} false; then : |
| 8421 |
|
$as_echo_n "(cached) " >&6 |
| 8422 |
|
else |
| 8423 |
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8449 |
|
char b[false == 0 ? 1 : -1]; |
| 8450 |
|
char c[__bool_true_false_are_defined == 1 ? 1 : -1]; |
| 8451 |
|
char d[(bool) 0.5 == true ? 1 : -1]; |
| 8452 |
< |
bool e = &s; |
| 8452 |
> |
/* See body of main program for 'e'. */ |
| 8453 |
|
char f[(_Bool) 0.0 == false ? 1 : -1]; |
| 8454 |
|
char g[true]; |
| 8455 |
|
char h[sizeof (_Bool)]; |
| 8460 |
|
_Bool n[m]; |
| 8461 |
|
char o[sizeof n == m * sizeof n[0] ? 1 : -1]; |
| 8462 |
|
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 |
| 8463 |
|
/* Catch a bug in an HP-UX C compiler. See |
| 8464 |
|
http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html |
| 8465 |
|
http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html |
| 8479 |
|
main () |
| 8480 |
|
{ |
| 8481 |
|
|
| 8482 |
+ |
bool e = &s; |
| 8483 |
|
*pq |= q; |
| 8484 |
|
*pq |= ! q; |
| 8485 |
|
/* Refer to every declared value, to avoid compiler optimizations. */ |
| 8500 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5 |
| 8501 |
|
$as_echo "$ac_cv_header_stdbool_h" >&6; } |
| 8502 |
|
ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default" |
| 8503 |
< |
if test "x$ac_cv_type__Bool" = x""yes; then : |
| 8503 |
> |
if test "x$ac_cv_type__Bool" = xyes; then : |
| 8504 |
|
|
| 8505 |
|
cat >>confdefs.h <<_ACEOF |
| 8506 |
|
#define HAVE__BOOL 1 |
| 8517 |
|
|
| 8518 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 |
| 8519 |
|
$as_echo_n "checking for an ANSI C-conforming const... " >&6; } |
| 8520 |
< |
if test "${ac_cv_c_const+set}" = set; then : |
| 8520 |
> |
if ${ac_cv_c_const+:} false; then : |
| 8521 |
|
$as_echo_n "(cached) " >&6 |
| 8522 |
|
else |
| 8523 |
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8605 |
|
|
| 8606 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 |
| 8607 |
|
$as_echo_n "checking for inline... " >&6; } |
| 8608 |
< |
if test "${ac_cv_c_inline+set}" = set; then : |
| 8608 |
> |
if ${ac_cv_c_inline+:} false; then : |
| 8609 |
|
$as_echo_n "(cached) " >&6 |
| 8610 |
|
else |
| 8611 |
|
ac_cv_c_inline=no |
| 8646 |
|
esac |
| 8647 |
|
|
| 8648 |
|
ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" |
| 8649 |
< |
if test "x$ac_cv_type_size_t" = x""yes; then : |
| 8649 |
> |
if test "x$ac_cv_type_size_t" = xyes; then : |
| 8650 |
|
|
| 8651 |
|
else |
| 8652 |
|
|
| 8658 |
|
|
| 8659 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 |
| 8660 |
|
$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } |
| 8661 |
< |
if test "${ac_cv_header_time+set}" = set; then : |
| 8661 |
> |
if ${ac_cv_header_time+:} false; then : |
| 8662 |
|
$as_echo_n "(cached) " >&6 |
| 8663 |
|
else |
| 8664 |
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8704 |
|
for ac_header in stdlib.h |
| 8705 |
|
do : |
| 8706 |
|
ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default" |
| 8707 |
< |
if test "x$ac_cv_header_stdlib_h" = x""yes; then : |
| 8707 |
> |
if test "x$ac_cv_header_stdlib_h" = xyes; then : |
| 8708 |
|
cat >>confdefs.h <<_ACEOF |
| 8709 |
|
#define HAVE_STDLIB_H 1 |
| 8710 |
|
_ACEOF |
| 8715 |
|
|
| 8716 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5 |
| 8717 |
|
$as_echo_n "checking for GNU libc compatible malloc... " >&6; } |
| 8718 |
< |
if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then : |
| 8718 |
> |
if ${ac_cv_func_malloc_0_nonnull+:} false; then : |
| 8719 |
|
$as_echo_n "(cached) " >&6 |
| 8720 |
|
else |
| 8721 |
|
if test "$cross_compiling" = yes; then : |
| 8779 |
|
for ac_header in stdlib.h |
| 8780 |
|
do : |
| 8781 |
|
ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default" |
| 8782 |
< |
if test "x$ac_cv_header_stdlib_h" = x""yes; then : |
| 8782 |
> |
if test "x$ac_cv_header_stdlib_h" = xyes; then : |
| 8783 |
|
cat >>confdefs.h <<_ACEOF |
| 8784 |
|
#define HAVE_STDLIB_H 1 |
| 8785 |
|
_ACEOF |
| 8790 |
|
|
| 8791 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5 |
| 8792 |
|
$as_echo_n "checking for GNU libc compatible realloc... " >&6; } |
| 8793 |
< |
if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then : |
| 8793 |
> |
if ${ac_cv_func_realloc_0_nonnull+:} false; then : |
| 8794 |
|
$as_echo_n "(cached) " >&6 |
| 8795 |
|
else |
| 8796 |
|
if test "$cross_compiling" = yes; then : |
| 8855 |
|
do : |
| 8856 |
|
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 8857 |
|
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
| 8858 |
< |
eval as_val=\$$as_ac_Header |
| 10015 |
< |
if test "x$as_val" = x""yes; then : |
| 8858 |
> |
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
| 8859 |
|
cat >>confdefs.h <<_ACEOF |
| 8860 |
|
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 8861 |
|
_ACEOF |
| 8866 |
|
|
| 8867 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5 |
| 8868 |
|
$as_echo_n "checking types of arguments for select... " >&6; } |
| 8869 |
< |
if test "${ac_cv_func_select_args+set}" = set; then : |
| 8869 |
> |
if ${ac_cv_func_select_args+:} false; then : |
| 8870 |
|
$as_echo_n "(cached) " >&6 |
| 8871 |
|
else |
| 8872 |
|
for ac_arg234 in 'fd_set *' 'int *' 'void *'; do |
| 8908 |
|
done |
| 8909 |
|
done |
| 8910 |
|
# Provide a safe default value. |
| 8911 |
< |
: ${ac_cv_func_select_args='int,int *,struct timeval *'} |
| 8911 |
> |
: "${ac_cv_func_select_args=int,int *,struct timeval *}" |
| 8912 |
|
|
| 8913 |
|
fi |
| 8914 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5 |
| 8936 |
|
|
| 8937 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5 |
| 8938 |
|
$as_echo_n "checking for working strtod... " >&6; } |
| 8939 |
< |
if test "${ac_cv_func_strtod+set}" = set; then : |
| 8939 |
> |
if ${ac_cv_func_strtod+:} false; then : |
| 8940 |
|
$as_echo_n "(cached) " >&6 |
| 8941 |
|
else |
| 8942 |
|
if test "$cross_compiling" = yes; then : |
| 8995 |
|
esac |
| 8996 |
|
|
| 8997 |
|
ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow" |
| 8998 |
< |
if test "x$ac_cv_func_pow" = x""yes; then : |
| 8998 |
> |
if test "x$ac_cv_func_pow" = xyes; then : |
| 8999 |
|
|
| 9000 |
|
fi |
| 9001 |
|
|
| 9002 |
|
if test $ac_cv_func_pow = no; then |
| 9003 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5 |
| 9004 |
|
$as_echo_n "checking for pow in -lm... " >&6; } |
| 9005 |
< |
if test "${ac_cv_lib_m_pow+set}" = set; then : |
| 9005 |
> |
if ${ac_cv_lib_m_pow+:} false; then : |
| 9006 |
|
$as_echo_n "(cached) " >&6 |
| 9007 |
|
else |
| 9008 |
|
ac_check_lib_save_LIBS=$LIBS |
| 9044 |
|
fi |
| 9045 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5 |
| 9046 |
|
$as_echo "$ac_cv_lib_m_pow" >&6; } |
| 9047 |
< |
if test "x$ac_cv_lib_m_pow" = x""yes; then : |
| 9047 |
> |
if test "x$ac_cv_lib_m_pow" = xyes; then : |
| 9048 |
|
POW_LIB=-lm |
| 9049 |
|
else |
| 9050 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5 |
| 9059 |
|
do : |
| 9060 |
|
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 9061 |
|
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 9062 |
< |
eval as_val=\$$as_ac_var |
| 10220 |
< |
if test "x$as_val" = x""yes; then : |
| 9062 |
> |
if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
| 9063 |
|
cat >>confdefs.h <<_ACEOF |
| 9064 |
|
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 9065 |
|
_ACEOF |
| 9116 |
|
# Try to determine "good" native compiler flags if none specified on command |
| 9117 |
|
# line |
| 9118 |
|
|
| 9119 |
< |
if test "$ac_test_FFLAGS" != "set"; then |
| 9119 |
> |
if test "$ac_test_FCFLAGS" != "set"; then |
| 9120 |
|
FCFLAGS="" |
| 9121 |
|
case "${host_cpu}-${host_os}" in |
| 9122 |
|
|
| 9165 |
|
|
| 9166 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${FC} accepts ${FCFLAGS}" >&5 |
| 9167 |
|
$as_echo_n "checking whether ${FC} accepts ${FCFLAGS}... " >&6; } |
| 9168 |
< |
if test "${ac_cv_ac_cv_guessed_f90flags+set}" = set; then : |
| 9168 |
> |
if ${ac_cv_ac_cv_guessed_f90flags+:} false; then : |
| 9169 |
|
$as_echo_n "(cached) " >&6 |
| 9170 |
|
else |
| 9171 |
|
|
| 9226 |
|
|
| 9227 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are *really* using GNU cc" >&5 |
| 9228 |
|
$as_echo_n "checking whether we are *really* using GNU cc... " >&6; } |
| 9229 |
< |
if test "${ac_cv_prog_really_gcc+set}" = set; then : |
| 9229 |
> |
if ${ac_cv_prog_really_gcc+:} false; then : |
| 9230 |
|
$as_echo_n "(cached) " >&6 |
| 9231 |
|
else |
| 9232 |
|
|
| 9331 |
|
|
| 9332 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts ${CFLAGS}" >&5 |
| 9333 |
|
$as_echo_n "checking whether ${CC} accepts ${CFLAGS}... " >&6; } |
| 9334 |
< |
if test "${ac_cv_ac_cv_guessed_cflags+set}" = set; then : |
| 9334 |
> |
if ${ac_cv_ac_cv_guessed_cflags+:} false; then : |
| 9335 |
|
$as_echo_n "(cached) " >&6 |
| 9336 |
|
else |
| 9337 |
|
echo 'void f(){}' > conftest.c |
| 9373 |
|
|
| 9374 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are *really* using GNU c++" >&5 |
| 9375 |
|
$as_echo_n "checking whether we are *really* using GNU c++... " >&6; } |
| 9376 |
< |
if test "${ac_cv_prog_really_gxx+set}" = set; then : |
| 9376 |
> |
if ${ac_cv_prog_really_gxx+:} false; then : |
| 9377 |
|
$as_echo_n "(cached) " >&6 |
| 9378 |
|
else |
| 9379 |
|
|
| 9469 |
|
|
| 9470 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts ${CXXFLAGS}" >&5 |
| 9471 |
|
$as_echo_n "checking whether ${CXX} accepts ${CXXFLAGS}... " >&6; } |
| 9472 |
< |
if test "${ac_cv_ac_cv_guessed_cxxflags+set}" = set; then : |
| 9472 |
> |
if ${ac_cv_ac_cv_guessed_cxxflags+:} false; then : |
| 9473 |
|
$as_echo_n "(cached) " >&6 |
| 9474 |
|
else |
| 9475 |
|
echo 'void f(){}' > conftest.cpp |
| 9538 |
|
set dummy doxygen; ac_word=$2 |
| 9539 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 9540 |
|
$as_echo_n "checking for $ac_word... " >&6; } |
| 9541 |
< |
if test "${ac_cv_path_DOXYGEN+set}" = set; then : |
| 9541 |
> |
if ${ac_cv_path_DOXYGEN+:} false; then : |
| 9542 |
|
$as_echo_n "(cached) " >&6 |
| 9543 |
|
else |
| 9544 |
|
case $DOXYGEN in |
| 9576 |
|
|
| 9577 |
|
if test "x$DOXYGEN" = x; then |
| 9578 |
|
if test "x$enable_doxygen" = xyes; then |
| 9579 |
< |
as_fn_error "could not find doxygen" "$LINENO" 5 |
| 9579 |
> |
as_fn_error $? "could not find doxygen" "$LINENO" 5 |
| 9580 |
|
fi |
| 9581 |
|
enable_doc=no |
| 9582 |
|
else |
| 9585 |
|
set dummy dot; ac_word=$2 |
| 9586 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 9587 |
|
$as_echo_n "checking for $ac_word... " >&6; } |
| 9588 |
< |
if test "${ac_cv_path_DOT+set}" = set; then : |
| 9588 |
> |
if ${ac_cv_path_DOT+:} false; then : |
| 9589 |
|
$as_echo_n "(cached) " >&6 |
| 9590 |
|
else |
| 9591 |
|
case $DOT in |
| 9633 |
|
|
| 9634 |
|
if test x$DOT = x; then |
| 9635 |
|
if test "x$enable_dot" = xyes; then |
| 9636 |
< |
as_fn_error "could not find dot" "$LINENO" 5 |
| 9636 |
> |
as_fn_error $? "could not find dot" "$LINENO" 5 |
| 9637 |
|
fi |
| 9638 |
|
enable_dot=no |
| 9639 |
|
else |
| 9725 |
|
:end' >>confcache |
| 9726 |
|
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 9727 |
|
if test -w "$cache_file"; then |
| 9728 |
< |
test "x$cache_file" != "x/dev/null" && |
| 9728 |
> |
if test "x$cache_file" != "x/dev/null"; then |
| 9729 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
| 9730 |
|
$as_echo "$as_me: updating cache $cache_file" >&6;} |
| 9731 |
< |
cat confcache >$cache_file |
| 9731 |
> |
if test ! -f "$cache_file" || test -h "$cache_file"; then |
| 9732 |
> |
cat confcache >"$cache_file" |
| 9733 |
> |
else |
| 9734 |
> |
case $cache_file in #( |
| 9735 |
> |
*/* | ?:*) |
| 9736 |
> |
mv -f confcache "$cache_file"$$ && |
| 9737 |
> |
mv -f "$cache_file"$$ "$cache_file" ;; #( |
| 9738 |
> |
*) |
| 9739 |
> |
mv -f confcache "$cache_file" ;; |
| 9740 |
> |
esac |
| 9741 |
> |
fi |
| 9742 |
> |
fi |
| 9743 |
|
else |
| 9744 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
| 9745 |
|
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
| 9755 |
|
|
| 9756 |
|
ac_libobjs= |
| 9757 |
|
ac_ltlibobjs= |
| 9758 |
+ |
U= |
| 9759 |
|
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 9760 |
|
# 1. Remove the extension, and $U if already installed. |
| 9761 |
|
ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
| 9771 |
|
|
| 9772 |
|
|
| 9773 |
|
|
| 9774 |
< |
: ${CONFIG_STATUS=./config.status} |
| 9774 |
> |
: "${CONFIG_STATUS=./config.status}" |
| 9775 |
|
ac_write_fail=0 |
| 9776 |
|
ac_clean_files_save=$ac_clean_files |
| 9777 |
|
ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
| 9872 |
|
IFS=" "" $as_nl" |
| 9873 |
|
|
| 9874 |
|
# Find who we are. Look in the path if we contain no directory separator. |
| 9875 |
+ |
as_myself= |
| 9876 |
|
case $0 in #(( |
| 9877 |
|
*[\\/]* ) as_myself=$0 ;; |
| 9878 |
|
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9918 |
|
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 9919 |
|
|
| 9920 |
|
|
| 9921 |
< |
# as_fn_error ERROR [LINENO LOG_FD] |
| 9922 |
< |
# --------------------------------- |
| 9921 |
> |
# as_fn_error STATUS ERROR [LINENO LOG_FD] |
| 9922 |
> |
# ---------------------------------------- |
| 9923 |
|
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 9924 |
|
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
| 9925 |
< |
# script with status $?, using 1 if that was 0. |
| 9925 |
> |
# script with STATUS, using 1 if that was 0. |
| 9926 |
|
as_fn_error () |
| 9927 |
|
{ |
| 9928 |
< |
as_status=$?; test $as_status -eq 0 && as_status=1 |
| 9929 |
< |
if test "$3"; then |
| 9930 |
< |
as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 9931 |
< |
$as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 |
| 9928 |
> |
as_status=$1; test $as_status -eq 0 && as_status=1 |
| 9929 |
> |
if test "$4"; then |
| 9930 |
> |
as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 9931 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
| 9932 |
|
fi |
| 9933 |
< |
$as_echo "$as_me: error: $1" >&2 |
| 9933 |
> |
$as_echo "$as_me: error: $2" >&2 |
| 9934 |
|
as_fn_exit $as_status |
| 9935 |
|
} # as_fn_error |
| 9936 |
|
|
| 10126 |
|
test -d "$as_dir" && break |
| 10127 |
|
done |
| 10128 |
|
test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 10129 |
< |
} || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" |
| 10129 |
> |
} || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
| 10130 |
|
|
| 10131 |
|
|
| 10132 |
|
} # as_fn_mkdir_p |
| 10180 |
|
# values after options handling. |
| 10181 |
|
ac_log=" |
| 10182 |
|
This file was extended by OpenMD $as_me 1.0, which was |
| 10183 |
< |
generated by GNU Autoconf 2.65. Invocation command line was |
| 10183 |
> |
generated by GNU Autoconf 2.68. Invocation command line was |
| 10184 |
|
|
| 10185 |
|
CONFIG_FILES = $CONFIG_FILES |
| 10186 |
|
CONFIG_HEADERS = $CONFIG_HEADERS |
| 10242 |
|
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
| 10243 |
|
ac_cs_version="\\ |
| 10244 |
|
OpenMD config.status 1.0 |
| 10245 |
< |
configured by $0, generated by GNU Autoconf 2.65, |
| 10245 |
> |
configured by $0, generated by GNU Autoconf 2.68, |
| 10246 |
|
with options \\"\$ac_cs_config\\" |
| 10247 |
|
|
| 10248 |
< |
Copyright (C) 2009 Free Software Foundation, Inc. |
| 10248 |
> |
Copyright (C) 2010 Free Software Foundation, Inc. |
| 10249 |
|
This config.status script is free software; the Free Software Foundation |
| 10250 |
|
gives unlimited permission to copy, distribute and modify it." |
| 10251 |
|
|
| 10261 |
|
while test $# != 0 |
| 10262 |
|
do |
| 10263 |
|
case $1 in |
| 10264 |
< |
--*=*) |
| 10264 |
> |
--*=?*) |
| 10265 |
|
ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 10266 |
|
ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
| 10267 |
|
ac_shift=: |
| 10268 |
|
;; |
| 10269 |
+ |
--*=) |
| 10270 |
+ |
ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 10271 |
+ |
ac_optarg= |
| 10272 |
+ |
ac_shift=: |
| 10273 |
+ |
;; |
| 10274 |
|
*) |
| 10275 |
|
ac_option=$1 |
| 10276 |
|
ac_optarg=$2 |
| 10292 |
|
$ac_shift |
| 10293 |
|
case $ac_optarg in |
| 10294 |
|
*\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 10295 |
+ |
'') as_fn_error $? "missing file argument" ;; |
| 10296 |
|
esac |
| 10297 |
|
as_fn_append CONFIG_FILES " '$ac_optarg'" |
| 10298 |
|
ac_need_defaults=false;; |
| 10305 |
|
ac_need_defaults=false;; |
| 10306 |
|
--he | --h) |
| 10307 |
|
# Conflict between --help and --header |
| 10308 |
< |
as_fn_error "ambiguous option: \`$1' |
| 10308 |
> |
as_fn_error $? "ambiguous option: \`$1' |
| 10309 |
|
Try \`$0 --help' for more information.";; |
| 10310 |
|
--help | --hel | -h ) |
| 10311 |
|
$as_echo "$ac_cs_usage"; exit ;; |
| 10314 |
|
ac_cs_silent=: ;; |
| 10315 |
|
|
| 10316 |
|
# This is an error. |
| 10317 |
< |
-*) as_fn_error "unrecognized option: \`$1' |
| 10317 |
> |
-*) as_fn_error $? "unrecognized option: \`$1' |
| 10318 |
|
Try \`$0 --help' for more information." ;; |
| 10319 |
|
|
| 10320 |
|
*) as_fn_append ac_config_targets " $1" |
| 10371 |
|
"src/applications/atom2md/Makefile") CONFIG_FILES="$CONFIG_FILES src/applications/atom2md/Makefile" ;; |
| 10372 |
|
"scripts/filepp") CONFIG_FILES="$CONFIG_FILES scripts/filepp" ;; |
| 10373 |
|
|
| 10374 |
< |
*) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
| 10374 |
> |
*) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
| 10375 |
|
esac |
| 10376 |
|
done |
| 10377 |
|
|
| 10393 |
|
# after its creation but before its name has been assigned to `$tmp'. |
| 10394 |
|
$debug || |
| 10395 |
|
{ |
| 10396 |
< |
tmp= |
| 10396 |
> |
tmp= ac_tmp= |
| 10397 |
|
trap 'exit_status=$? |
| 10398 |
< |
{ test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status |
| 10398 |
> |
: "${ac_tmp:=$tmp}" |
| 10399 |
> |
{ test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status |
| 10400 |
|
' 0 |
| 10401 |
|
trap 'as_fn_exit 1' 1 2 13 15 |
| 10402 |
|
} |
| 10404 |
|
|
| 10405 |
|
{ |
| 10406 |
|
tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
| 10407 |
< |
test -n "$tmp" && test -d "$tmp" |
| 10407 |
> |
test -d "$tmp" |
| 10408 |
|
} || |
| 10409 |
|
{ |
| 10410 |
|
tmp=./conf$$-$RANDOM |
| 10411 |
|
(umask 077 && mkdir "$tmp") |
| 10412 |
< |
} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 |
| 10412 |
> |
} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
| 10413 |
> |
ac_tmp=$tmp |
| 10414 |
|
|
| 10415 |
|
# Set up the scripts for CONFIG_FILES section. |
| 10416 |
|
# No need to generate them if there are no CONFIG_FILES. |
| 10427 |
|
fi |
| 10428 |
|
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
| 10429 |
|
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then |
| 10430 |
< |
ac_cs_awk_cr='\r' |
| 10430 |
> |
ac_cs_awk_cr='\\r' |
| 10431 |
|
else |
| 10432 |
|
ac_cs_awk_cr=$ac_cr |
| 10433 |
|
fi |
| 10434 |
|
|
| 10435 |
< |
echo 'BEGIN {' >"$tmp/subs1.awk" && |
| 10435 |
> |
echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
| 10436 |
|
_ACEOF |
| 10437 |
|
|
| 10438 |
|
|
| 10441 |
|
echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && |
| 10442 |
|
echo "_ACEOF" |
| 10443 |
|
} >conf$$subs.sh || |
| 10444 |
< |
as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 10445 |
< |
ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` |
| 10444 |
> |
as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 10445 |
> |
ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` |
| 10446 |
|
ac_delim='%!_!# ' |
| 10447 |
|
for ac_last_try in false false false false false :; do |
| 10448 |
|
. ./conf$$subs.sh || |
| 10449 |
< |
as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 10449 |
> |
as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 10450 |
|
|
| 10451 |
|
ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
| 10452 |
|
if test $ac_delim_n = $ac_delim_num; then |
| 10453 |
|
break |
| 10454 |
|
elif $ac_last_try; then |
| 10455 |
< |
as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 10455 |
> |
as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 10456 |
|
else |
| 10457 |
|
ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 10458 |
|
fi |
| 10460 |
|
rm -f conf$$subs.sh |
| 10461 |
|
|
| 10462 |
|
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 10463 |
< |
cat >>"\$tmp/subs1.awk" <<\\_ACAWK && |
| 10463 |
> |
cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
| 10464 |
|
_ACEOF |
| 10465 |
|
sed -n ' |
| 10466 |
|
h |
| 10508 |
|
rm -f conf$$subs.awk |
| 10509 |
|
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 10510 |
|
_ACAWK |
| 10511 |
< |
cat >>"\$tmp/subs1.awk" <<_ACAWK && |
| 10511 |
> |
cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
| 10512 |
|
for (key in S) S_is_set[key] = 1 |
| 10513 |
|
FS = "" |
| 10514 |
|
|
| 10540 |
|
sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" |
| 10541 |
|
else |
| 10542 |
|
cat |
| 10543 |
< |
fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ |
| 10544 |
< |
|| as_fn_error "could not setup config files machinery" "$LINENO" 5 |
| 10543 |
> |
fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
| 10544 |
> |
|| as_fn_error $? "could not setup config files machinery" "$LINENO" 5 |
| 10545 |
|
_ACEOF |
| 10546 |
|
|
| 10547 |
< |
# VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 10548 |
< |
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 10547 |
> |
# VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
| 10548 |
> |
# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and |
| 10549 |
|
# trailing colons and then remove the whole line if VPATH becomes empty |
| 10550 |
|
# (actually we leave an empty line to preserve line numbers). |
| 10551 |
|
if test "x$srcdir" = x.; then |
| 10552 |
< |
ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 10553 |
< |
s/:*\$(srcdir):*/:/ |
| 10554 |
< |
s/:*\${srcdir}:*/:/ |
| 10555 |
< |
s/:*@srcdir@:*/:/ |
| 10556 |
< |
s/^\([^=]*=[ ]*\):*/\1/ |
| 10552 |
> |
ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
| 10553 |
> |
h |
| 10554 |
> |
s/// |
| 10555 |
> |
s/^/:/ |
| 10556 |
> |
s/[ ]*$/:/ |
| 10557 |
> |
s/:\$(srcdir):/:/g |
| 10558 |
> |
s/:\${srcdir}:/:/g |
| 10559 |
> |
s/:@srcdir@:/:/g |
| 10560 |
> |
s/^:*// |
| 10561 |
|
s/:*$// |
| 10562 |
+ |
x |
| 10563 |
+ |
s/\(=[ ]*\).*/\1/ |
| 10564 |
+ |
G |
| 10565 |
+ |
s/\n// |
| 10566 |
|
s/^[^=]*=[ ]*$// |
| 10567 |
|
}' |
| 10568 |
|
fi |
| 10574 |
|
# No need to generate them if there are no CONFIG_HEADERS. |
| 10575 |
|
# This happens for instance with `./config.status Makefile'. |
| 10576 |
|
if test -n "$CONFIG_HEADERS"; then |
| 10577 |
< |
cat >"$tmp/defines.awk" <<\_ACAWK || |
| 10577 |
> |
cat >"$ac_tmp/defines.awk" <<\_ACAWK || |
| 10578 |
|
BEGIN { |
| 10579 |
|
_ACEOF |
| 10580 |
|
|
| 10586 |
|
# handling of long lines. |
| 10587 |
|
ac_delim='%!_!# ' |
| 10588 |
|
for ac_last_try in false false :; do |
| 10589 |
< |
ac_t=`sed -n "/$ac_delim/p" confdefs.h` |
| 10590 |
< |
if test -z "$ac_t"; then |
| 10589 |
> |
ac_tt=`sed -n "/$ac_delim/p" confdefs.h` |
| 10590 |
> |
if test -z "$ac_tt"; then |
| 10591 |
|
break |
| 10592 |
|
elif $ac_last_try; then |
| 10593 |
< |
as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5 |
| 10593 |
> |
as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
| 10594 |
|
else |
| 10595 |
|
ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 10596 |
|
fi |
| 10675 |
|
_ACAWK |
| 10676 |
|
_ACEOF |
| 10677 |
|
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 10678 |
< |
as_fn_error "could not setup config headers machinery" "$LINENO" 5 |
| 10678 |
> |
as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
| 10679 |
|
fi # test -n "$CONFIG_HEADERS" |
| 10680 |
|
|
| 10681 |
|
|
| 10688 |
|
esac |
| 10689 |
|
case $ac_mode$ac_tag in |
| 10690 |
|
:[FHL]*:*);; |
| 10691 |
< |
:L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; |
| 10691 |
> |
:L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
| 10692 |
|
:[FH]-) ac_tag=-:-;; |
| 10693 |
|
:[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 10694 |
|
esac |
| 10707 |
|
for ac_f |
| 10708 |
|
do |
| 10709 |
|
case $ac_f in |
| 10710 |
< |
-) ac_f="$tmp/stdin";; |
| 10710 |
> |
-) ac_f="$ac_tmp/stdin";; |
| 10711 |
|
*) # Look for the file first in the build tree, then in the source tree |
| 10712 |
|
# (if the path is not absolute). The absolute path cannot be DOS-style, |
| 10713 |
|
# because $ac_f cannot contain `:'. |
| 10716 |
|
[\\/$]*) false;; |
| 10717 |
|
*) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 10718 |
|
esac || |
| 10719 |
< |
as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
| 10719 |
> |
as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
| 10720 |
|
esac |
| 10721 |
|
case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
| 10722 |
|
as_fn_append ac_file_inputs " '$ac_f'" |
| 10742 |
|
esac |
| 10743 |
|
|
| 10744 |
|
case $ac_tag in |
| 10745 |
< |
*:-:* | *:-) cat >"$tmp/stdin" \ |
| 10746 |
< |
|| as_fn_error "could not create $ac_file" "$LINENO" 5 ;; |
| 10745 |
> |
*:-:* | *:-) cat >"$ac_tmp/stdin" \ |
| 10746 |
> |
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; |
| 10747 |
|
esac |
| 10748 |
|
;; |
| 10749 |
|
esac |
| 10873 |
|
s&@INSTALL@&$ac_INSTALL&;t t |
| 10874 |
|
$ac_datarootdir_hack |
| 10875 |
|
" |
| 10876 |
< |
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ |
| 10877 |
< |
|| as_fn_error "could not create $ac_file" "$LINENO" 5 |
| 10876 |
> |
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
| 10877 |
> |
>$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
| 10878 |
|
|
| 10879 |
|
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
| 10880 |
< |
{ ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
| 10881 |
< |
{ ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
| 10880 |
> |
{ ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
| 10881 |
> |
{ ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ |
| 10882 |
> |
"$ac_tmp/out"`; test -z "$ac_out"; } && |
| 10883 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 10884 |
< |
which seems to be undefined. Please make sure it is defined." >&5 |
| 10884 |
> |
which seems to be undefined. Please make sure it is defined" >&5 |
| 10885 |
|
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 10886 |
< |
which seems to be undefined. Please make sure it is defined." >&2;} |
| 10886 |
> |
which seems to be undefined. Please make sure it is defined" >&2;} |
| 10887 |
|
|
| 10888 |
< |
rm -f "$tmp/stdin" |
| 10888 |
> |
rm -f "$ac_tmp/stdin" |
| 10889 |
|
case $ac_file in |
| 10890 |
< |
-) cat "$tmp/out" && rm -f "$tmp/out";; |
| 10891 |
< |
*) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; |
| 10890 |
> |
-) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
| 10891 |
> |
*) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; |
| 10892 |
|
esac \ |
| 10893 |
< |
|| as_fn_error "could not create $ac_file" "$LINENO" 5 |
| 10893 |
> |
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
| 10894 |
|
;; |
| 10895 |
|
:H) |
| 10896 |
|
# |
| 10899 |
|
if test x"$ac_file" != x-; then |
| 10900 |
|
{ |
| 10901 |
|
$as_echo "/* $configure_input */" \ |
| 10902 |
< |
&& eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" |
| 10903 |
< |
} >"$tmp/config.h" \ |
| 10904 |
< |
|| as_fn_error "could not create $ac_file" "$LINENO" 5 |
| 10905 |
< |
if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then |
| 10902 |
> |
&& eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
| 10903 |
> |
} >"$ac_tmp/config.h" \ |
| 10904 |
> |
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
| 10905 |
> |
if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then |
| 10906 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
| 10907 |
|
$as_echo "$as_me: $ac_file is unchanged" >&6;} |
| 10908 |
|
else |
| 10909 |
|
rm -f "$ac_file" |
| 10910 |
< |
mv "$tmp/config.h" "$ac_file" \ |
| 10911 |
< |
|| as_fn_error "could not create $ac_file" "$LINENO" 5 |
| 10910 |
> |
mv "$ac_tmp/config.h" "$ac_file" \ |
| 10911 |
> |
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
| 10912 |
|
fi |
| 10913 |
|
else |
| 10914 |
|
$as_echo "/* $configure_input */" \ |
| 10915 |
< |
&& eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ |
| 10916 |
< |
|| as_fn_error "could not create -" "$LINENO" 5 |
| 10915 |
> |
&& eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
| 10916 |
> |
|| as_fn_error $? "could not create -" "$LINENO" 5 |
| 10917 |
|
fi |
| 10918 |
|
;; |
| 10919 |
|
|
| 10938 |
|
ac_clean_files=$ac_clean_files_save |
| 10939 |
|
|
| 10940 |
|
test $ac_write_fail = 0 || |
| 10941 |
< |
as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
| 10941 |
> |
as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
| 10942 |
|
|
| 10943 |
|
|
| 10944 |
|
# configure is writing to config.log, and then calls config.status. |
| 10959 |
|
exec 5>>config.log |
| 10960 |
|
# Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 10961 |
|
# would make configure fail if this is the last instruction. |
| 10962 |
< |
$ac_cs_success || as_fn_exit $? |
| 10962 |
> |
$ac_cs_success || as_fn_exit 1 |
| 10963 |
|
fi |
| 10964 |
|
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
| 10965 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |