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 |
|
|
632 |
|
ZLIB |
633 |
|
ZLIB_LIB_DIR |
634 |
|
ZLIB_INC_DIR |
627 |
– |
F90_MODULE_NAMES |
628 |
– |
F90MODINCSPEC |
629 |
– |
MODDIRFLAG |
630 |
– |
F90_WORK_FILES_ARG |
631 |
– |
MOD |
632 |
– |
FC_FUNC_ |
633 |
– |
FC_FUNC |
634 |
– |
FCLIBS |
635 |
– |
PREPDEFFLAG |
636 |
– |
FCFLAGS_SRCEXT |
637 |
– |
FCFLAGS_F90 |
635 |
|
PS |
636 |
|
AR |
637 |
|
INSTALL_DATA |
646 |
|
GREP |
647 |
|
CPP |
648 |
|
USE_MPI |
652 |
– |
MPIFC |
649 |
|
MPICC |
650 |
|
MPILIBS |
651 |
|
MPICXX |
652 |
|
LIBDL |
657 |
– |
ac_ct_FC |
658 |
– |
FCFLAGS |
659 |
– |
FC |
653 |
|
ac_ct_CC |
654 |
|
CFLAGS |
655 |
|
CC |
737 |
|
CCC |
738 |
|
CC |
739 |
|
CFLAGS |
747 |
– |
FC |
748 |
– |
FCFLAGS |
740 |
|
MPICXX |
741 |
|
MPICC |
751 |
– |
MPIFC |
742 |
|
CPP |
743 |
|
CXXCPP' |
744 |
|
|
803 |
|
fi |
804 |
|
|
805 |
|
case $ac_option in |
806 |
< |
*=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
807 |
< |
*) ac_optarg=yes ;; |
806 |
> |
*=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
807 |
> |
*=) ac_optarg= ;; |
808 |
> |
*) ac_optarg=yes ;; |
809 |
|
esac |
810 |
|
|
811 |
|
# Accept the important Cygnus configure options, so we can diagnose typos. |
850 |
|
ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
851 |
|
# Reject names that are not valid shell variable names. |
852 |
|
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
853 |
< |
as_fn_error "invalid feature name: $ac_useropt" |
853 |
> |
as_fn_error $? "invalid feature name: $ac_useropt" |
854 |
|
ac_useropt_orig=$ac_useropt |
855 |
|
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
856 |
|
case $ac_user_opts in |
876 |
|
ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
877 |
|
# Reject names that are not valid shell variable names. |
878 |
|
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
879 |
< |
as_fn_error "invalid feature name: $ac_useropt" |
879 |
> |
as_fn_error $? "invalid feature name: $ac_useropt" |
880 |
|
ac_useropt_orig=$ac_useropt |
881 |
|
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
882 |
|
case $ac_user_opts in |
1080 |
|
ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
1081 |
|
# Reject names that are not valid shell variable names. |
1082 |
|
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1083 |
< |
as_fn_error "invalid package name: $ac_useropt" |
1083 |
> |
as_fn_error $? "invalid package name: $ac_useropt" |
1084 |
|
ac_useropt_orig=$ac_useropt |
1085 |
|
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
1086 |
|
case $ac_user_opts in |
1096 |
|
ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
1097 |
|
# Reject names that are not valid shell variable names. |
1098 |
|
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1099 |
< |
as_fn_error "invalid package name: $ac_useropt" |
1099 |
> |
as_fn_error $? "invalid package name: $ac_useropt" |
1100 |
|
ac_useropt_orig=$ac_useropt |
1101 |
|
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
1102 |
|
case $ac_user_opts in |
1126 |
|
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
1127 |
|
x_libraries=$ac_optarg ;; |
1128 |
|
|
1129 |
< |
-*) as_fn_error "unrecognized option: \`$ac_option' |
1130 |
< |
Try \`$0 --help' for more information." |
1129 |
> |
-*) as_fn_error $? "unrecognized option: \`$ac_option' |
1130 |
> |
Try \`$0 --help' for more information" |
1131 |
|
;; |
1132 |
|
|
1133 |
|
*=*) |
1135 |
|
# Reject names that are not valid shell variable names. |
1136 |
|
case $ac_envvar in #( |
1137 |
|
'' | [0-9]* | *[!_$as_cr_alnum]* ) |
1138 |
< |
as_fn_error "invalid variable name: \`$ac_envvar'" ;; |
1138 |
> |
as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
1139 |
|
esac |
1140 |
|
eval $ac_envvar=\$ac_optarg |
1141 |
|
export $ac_envvar ;; |
1145 |
|
$as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
1146 |
|
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
1147 |
|
$as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
1148 |
< |
: ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
1148 |
> |
: "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
1149 |
|
;; |
1150 |
|
|
1151 |
|
esac |
1153 |
|
|
1154 |
|
if test -n "$ac_prev"; then |
1155 |
|
ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
1156 |
< |
as_fn_error "missing argument to $ac_option" |
1156 |
> |
as_fn_error $? "missing argument to $ac_option" |
1157 |
|
fi |
1158 |
|
|
1159 |
|
if test -n "$ac_unrecognized_opts"; then |
1160 |
|
case $enable_option_checking in |
1161 |
|
no) ;; |
1162 |
< |
fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; |
1162 |
> |
fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
1163 |
|
*) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
1164 |
|
esac |
1165 |
|
fi |
1182 |
|
[\\/$]* | ?:[\\/]* ) continue;; |
1183 |
|
NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
1184 |
|
esac |
1185 |
< |
as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" |
1185 |
> |
as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
1186 |
|
done |
1187 |
|
|
1188 |
|
# There might be people who depend on the old broken behavior: `$host' |
1196 |
|
if test "x$host_alias" != x; then |
1197 |
|
if test "x$build_alias" = x; then |
1198 |
|
cross_compiling=maybe |
1199 |
< |
$as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
1200 |
< |
If a cross compiler is detected then cross compile mode will be used." >&2 |
1199 |
> |
$as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. |
1200 |
> |
If a cross compiler is detected then cross compile mode will be used" >&2 |
1201 |
|
elif test "x$build_alias" != "x$host_alias"; then |
1202 |
|
cross_compiling=yes |
1203 |
|
fi |
1212 |
|
ac_pwd=`pwd` && test -n "$ac_pwd" && |
1213 |
|
ac_ls_di=`ls -di .` && |
1214 |
|
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
1215 |
< |
as_fn_error "working directory cannot be determined" |
1215 |
> |
as_fn_error $? "working directory cannot be determined" |
1216 |
|
test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
1217 |
< |
as_fn_error "pwd does not report name of working directory" |
1217 |
> |
as_fn_error $? "pwd does not report name of working directory" |
1218 |
|
|
1219 |
|
|
1220 |
|
# Find the source files, if location was not specified. |
1253 |
|
fi |
1254 |
|
if test ! -r "$srcdir/$ac_unique_file"; then |
1255 |
|
test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
1256 |
< |
as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" |
1256 |
> |
as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
1257 |
|
fi |
1258 |
|
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
1259 |
|
ac_abs_confdir=`( |
1260 |
< |
cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" |
1260 |
> |
cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
1261 |
|
pwd)` |
1262 |
|
# When building in place, set srcdir=. |
1263 |
|
if test "$ac_abs_confdir" = "$ac_pwd"; then |
1297 |
|
--help=short display options specific to this package |
1298 |
|
--help=recursive display the short help of all the included packages |
1299 |
|
-V, --version display version information and exit |
1300 |
< |
-q, --quiet, --silent do not print \`checking...' messages |
1300 |
> |
-q, --quiet, --silent do not print \`checking ...' messages |
1301 |
|
--cache-file=FILE cache test results in FILE [disabled] |
1302 |
|
-C, --config-cache alias for \`--cache-file=config.cache' |
1303 |
|
-n, --no-create do not create output files |
1390 |
|
you have headers in a nonstandard directory <include dir> |
1391 |
|
CC C compiler command |
1392 |
|
CFLAGS C compiler flags |
1402 |
– |
FC Fortran compiler command |
1403 |
– |
FCFLAGS Fortran compiler flags |
1393 |
|
MPICXX MPI C++ compiler command |
1394 |
|
MPICC MPI C compiler command |
1406 |
– |
MPIFC MPI Fortran compiler command |
1395 |
|
CPP C preprocessor |
1396 |
|
CXXCPP C++ preprocessor |
1397 |
|
|
1462 |
|
if $ac_init_version; then |
1463 |
|
cat <<\_ACEOF |
1464 |
|
OpenMD configure 1.0 |
1465 |
< |
generated by GNU Autoconf 2.65 |
1465 |
> |
generated by GNU Autoconf 2.68 |
1466 |
|
|
1467 |
< |
Copyright (C) 2009 Free Software Foundation, Inc. |
1467 |
> |
Copyright (C) 2010 Free Software Foundation, Inc. |
1468 |
|
This configure script is free software; the Free Software Foundation |
1469 |
|
gives unlimited permission to copy, distribute and modify it. |
1470 |
|
_ACEOF |
1508 |
|
|
1509 |
|
ac_retval=1 |
1510 |
|
fi |
1511 |
< |
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
1511 |
> |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1512 |
|
as_fn_set_status $ac_retval |
1513 |
|
|
1514 |
|
} # ac_fn_cxx_try_compile |
1546 |
|
|
1547 |
|
ac_retval=1 |
1548 |
|
fi |
1549 |
< |
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
1549 |
> |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1550 |
|
as_fn_set_status $ac_retval |
1551 |
|
|
1552 |
|
} # ac_fn_c_try_compile |
1553 |
|
|
1566 |
– |
# ac_fn_fc_try_compile LINENO |
1567 |
– |
# --------------------------- |
1568 |
– |
# Try to compile conftest.$ac_ext, and return whether this succeeded. |
1569 |
– |
ac_fn_fc_try_compile () |
1570 |
– |
{ |
1571 |
– |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1572 |
– |
rm -f conftest.$ac_objext |
1573 |
– |
if { { ac_try="$ac_compile" |
1574 |
– |
case "(($ac_try" in |
1575 |
– |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
1576 |
– |
*) ac_try_echo=$ac_try;; |
1577 |
– |
esac |
1578 |
– |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
1579 |
– |
$as_echo "$ac_try_echo"; } >&5 |
1580 |
– |
(eval "$ac_compile") 2>conftest.err |
1581 |
– |
ac_status=$? |
1582 |
– |
if test -s conftest.err; then |
1583 |
– |
grep -v '^ *+' conftest.err >conftest.er1 |
1584 |
– |
cat conftest.er1 >&5 |
1585 |
– |
mv -f conftest.er1 conftest.err |
1586 |
– |
fi |
1587 |
– |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
1588 |
– |
test $ac_status = 0; } && { |
1589 |
– |
test -z "$ac_fc_werror_flag" || |
1590 |
– |
test ! -s conftest.err |
1591 |
– |
} && test -s conftest.$ac_objext; then : |
1592 |
– |
ac_retval=0 |
1593 |
– |
else |
1594 |
– |
$as_echo "$as_me: failed program was:" >&5 |
1595 |
– |
sed 's/^/| /' conftest.$ac_ext >&5 |
1596 |
– |
|
1597 |
– |
ac_retval=1 |
1598 |
– |
fi |
1599 |
– |
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
1600 |
– |
as_fn_set_status $ac_retval |
1601 |
– |
|
1602 |
– |
} # ac_fn_fc_try_compile |
1603 |
– |
|
1554 |
|
# ac_fn_cxx_try_link LINENO |
1555 |
|
# ------------------------- |
1556 |
|
# Try to link conftest.$ac_ext, and return whether this succeeded. |
1592 |
|
# interfere with the next link command; also delete a directory that is |
1593 |
|
# left behind by Apple's compiler. We do this before executing the actions. |
1594 |
|
rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
1595 |
< |
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
1595 |
> |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1596 |
|
as_fn_set_status $ac_retval |
1597 |
|
|
1598 |
|
} # ac_fn_cxx_try_link |
1605 |
|
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1606 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
1607 |
|
$as_echo_n "checking for $2... " >&6; } |
1608 |
< |
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
1608 |
> |
if eval \${$3+:} false; then : |
1609 |
|
$as_echo_n "(cached) " >&6 |
1610 |
|
else |
1611 |
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1660 |
|
eval ac_res=\$$3 |
1661 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
1662 |
|
$as_echo "$ac_res" >&6; } |
1663 |
< |
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
1663 |
> |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1664 |
|
|
1665 |
|
} # ac_fn_cxx_check_func |
1666 |
|
|
1705 |
|
# interfere with the next link command; also delete a directory that is |
1706 |
|
# left behind by Apple's compiler. We do this before executing the actions. |
1707 |
|
rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
1708 |
< |
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
1708 |
> |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1709 |
|
as_fn_set_status $ac_retval |
1710 |
|
|
1711 |
|
} # ac_fn_c_try_link |
1718 |
|
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1719 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
1720 |
|
$as_echo_n "checking for $2... " >&6; } |
1721 |
< |
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
1721 |
> |
if eval \${$3+:} false; then : |
1722 |
|
$as_echo_n "(cached) " >&6 |
1723 |
|
else |
1724 |
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1773 |
|
eval ac_res=\$$3 |
1774 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
1775 |
|
$as_echo "$ac_res" >&6; } |
1776 |
< |
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
1776 |
> |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1777 |
|
|
1778 |
|
} # ac_fn_c_check_func |
1829 |
– |
|
1830 |
– |
# ac_fn_fc_try_link LINENO |
1831 |
– |
# ------------------------ |
1832 |
– |
# Try to link conftest.$ac_ext, and return whether this succeeded. |
1833 |
– |
ac_fn_fc_try_link () |
1834 |
– |
{ |
1835 |
– |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1836 |
– |
rm -f conftest.$ac_objext conftest$ac_exeext |
1837 |
– |
if { { ac_try="$ac_link" |
1838 |
– |
case "(($ac_try" in |
1839 |
– |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
1840 |
– |
*) ac_try_echo=$ac_try;; |
1841 |
– |
esac |
1842 |
– |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
1843 |
– |
$as_echo "$ac_try_echo"; } >&5 |
1844 |
– |
(eval "$ac_link") 2>conftest.err |
1845 |
– |
ac_status=$? |
1846 |
– |
if test -s conftest.err; then |
1847 |
– |
grep -v '^ *+' conftest.err >conftest.er1 |
1848 |
– |
cat conftest.er1 >&5 |
1849 |
– |
mv -f conftest.er1 conftest.err |
1850 |
– |
fi |
1851 |
– |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
1852 |
– |
test $ac_status = 0; } && { |
1853 |
– |
test -z "$ac_fc_werror_flag" || |
1854 |
– |
test ! -s conftest.err |
1855 |
– |
} && test -s conftest$ac_exeext && { |
1856 |
– |
test "$cross_compiling" = yes || |
1857 |
– |
$as_test_x conftest$ac_exeext |
1858 |
– |
}; then : |
1859 |
– |
ac_retval=0 |
1860 |
– |
else |
1861 |
– |
$as_echo "$as_me: failed program was:" >&5 |
1862 |
– |
sed 's/^/| /' conftest.$ac_ext >&5 |
1863 |
– |
|
1864 |
– |
ac_retval=1 |
1865 |
– |
fi |
1866 |
– |
# Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
1867 |
– |
# created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
1868 |
– |
# interfere with the next link command; also delete a directory that is |
1869 |
– |
# left behind by Apple's compiler. We do this before executing the actions. |
1870 |
– |
rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
1871 |
– |
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
1872 |
– |
as_fn_set_status $ac_retval |
1873 |
– |
|
1874 |
– |
} # ac_fn_fc_try_link |
1779 |
|
|
1780 |
|
# ac_fn_c_try_cpp LINENO |
1781 |
|
# ---------------------- |
1798 |
|
mv -f conftest.er1 conftest.err |
1799 |
|
fi |
1800 |
|
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
1801 |
< |
test $ac_status = 0; } >/dev/null && { |
1801 |
> |
test $ac_status = 0; } > conftest.i && { |
1802 |
|
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
1803 |
|
test ! -s conftest.err |
1804 |
|
}; then : |
1809 |
|
|
1810 |
|
ac_retval=1 |
1811 |
|
fi |
1812 |
< |
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
1812 |
> |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1813 |
|
as_fn_set_status $ac_retval |
1814 |
|
|
1815 |
|
} # ac_fn_c_try_cpp |
1822 |
|
ac_fn_c_check_header_mongrel () |
1823 |
|
{ |
1824 |
|
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1825 |
< |
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
1825 |
> |
if eval \${$3+:} false; then : |
1826 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
1827 |
|
$as_echo_n "checking for $2... " >&6; } |
1828 |
< |
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
1828 |
> |
if eval \${$3+:} false; then : |
1829 |
|
$as_echo_n "(cached) " >&6 |
1830 |
|
fi |
1831 |
|
eval ac_res=\$$3 |
1861 |
|
else |
1862 |
|
ac_header_preproc=no |
1863 |
|
fi |
1864 |
< |
rm -f conftest.err conftest.$ac_ext |
1864 |
> |
rm -f conftest.err conftest.i conftest.$ac_ext |
1865 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
1866 |
|
$as_echo "$ac_header_preproc" >&6; } |
1867 |
|
|
1884 |
|
$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} |
1885 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
1886 |
|
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
1887 |
< |
( cat <<\_ASBOX |
1984 |
< |
## ------------------------------ ## |
1887 |
> |
( $as_echo "## ------------------------------ ## |
1888 |
|
## Report this to gezelter@nd.edu ## |
1889 |
< |
## ------------------------------ ## |
1987 |
< |
_ASBOX |
1889 |
> |
## ------------------------------ ##" |
1890 |
|
) | sed "s/^/$as_me: WARNING: /" >&2 |
1891 |
|
;; |
1892 |
|
esac |
1893 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
1894 |
|
$as_echo_n "checking for $2... " >&6; } |
1895 |
< |
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
1895 |
> |
if eval \${$3+:} false; then : |
1896 |
|
$as_echo_n "(cached) " >&6 |
1897 |
|
else |
1898 |
|
eval "$3=\$ac_header_compiler" |
1901 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
1902 |
|
$as_echo "$ac_res" >&6; } |
1903 |
|
fi |
1904 |
< |
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
1904 |
> |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1905 |
|
|
1906 |
|
} # ac_fn_c_check_header_mongrel |
1907 |
|
|
1942 |
|
ac_retval=$ac_status |
1943 |
|
fi |
1944 |
|
rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
1945 |
< |
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
1945 |
> |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1946 |
|
as_fn_set_status $ac_retval |
1947 |
|
|
1948 |
|
} # ac_fn_c_try_run |
1956 |
|
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1957 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
1958 |
|
$as_echo_n "checking for $2... " >&6; } |
1959 |
< |
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
1959 |
> |
if eval \${$3+:} false; then : |
1960 |
|
$as_echo_n "(cached) " >&6 |
1961 |
|
else |
1962 |
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1974 |
|
eval ac_res=\$$3 |
1975 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
1976 |
|
$as_echo "$ac_res" >&6; } |
1977 |
< |
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
1977 |
> |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1978 |
|
|
1979 |
|
} # ac_fn_c_check_header_compile |
1980 |
|
|
1999 |
|
mv -f conftest.er1 conftest.err |
2000 |
|
fi |
2001 |
|
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
2002 |
< |
test $ac_status = 0; } >/dev/null && { |
2002 |
> |
test $ac_status = 0; } > conftest.i && { |
2003 |
|
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
2004 |
|
test ! -s conftest.err |
2005 |
|
}; then : |
2010 |
|
|
2011 |
|
ac_retval=1 |
2012 |
|
fi |
2013 |
< |
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
2013 |
> |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
2014 |
|
as_fn_set_status $ac_retval |
2015 |
|
|
2016 |
|
} # ac_fn_cxx_try_cpp |
2023 |
|
ac_fn_cxx_check_header_mongrel () |
2024 |
|
{ |
2025 |
|
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
2026 |
< |
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
2026 |
> |
if eval \${$3+:} false; then : |
2027 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
2028 |
|
$as_echo_n "checking for $2... " >&6; } |
2029 |
< |
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
2029 |
> |
if eval \${$3+:} false; then : |
2030 |
|
$as_echo_n "(cached) " >&6 |
2031 |
|
fi |
2032 |
|
eval ac_res=\$$3 |
2062 |
|
else |
2063 |
|
ac_header_preproc=no |
2064 |
|
fi |
2065 |
< |
rm -f conftest.err conftest.$ac_ext |
2065 |
> |
rm -f conftest.err conftest.i conftest.$ac_ext |
2066 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
2067 |
|
$as_echo "$ac_header_preproc" >&6; } |
2068 |
|
|
2085 |
|
$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} |
2086 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
2087 |
|
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
2088 |
< |
( cat <<\_ASBOX |
2187 |
< |
## ------------------------------ ## |
2088 |
> |
( $as_echo "## ------------------------------ ## |
2089 |
|
## Report this to gezelter@nd.edu ## |
2090 |
< |
## ------------------------------ ## |
2190 |
< |
_ASBOX |
2090 |
> |
## ------------------------------ ##" |
2091 |
|
) | sed "s/^/$as_me: WARNING: /" >&2 |
2092 |
|
;; |
2093 |
|
esac |
2094 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
2095 |
|
$as_echo_n "checking for $2... " >&6; } |
2096 |
< |
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
2096 |
> |
if eval \${$3+:} false; then : |
2097 |
|
$as_echo_n "(cached) " >&6 |
2098 |
|
else |
2099 |
|
eval "$3=\$ac_header_compiler" |
2102 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
2103 |
|
$as_echo "$ac_res" >&6; } |
2104 |
|
fi |
2105 |
< |
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
2105 |
> |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
2106 |
|
|
2107 |
|
} # ac_fn_cxx_check_header_mongrel |
2108 |
|
|
2115 |
|
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
2116 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
2117 |
|
$as_echo_n "checking for $2... " >&6; } |
2118 |
< |
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
2118 |
> |
if eval \${$3+:} false; then : |
2119 |
|
$as_echo_n "(cached) " >&6 |
2120 |
|
else |
2121 |
|
eval "$3=no" |
2122 |
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2123 |
|
/* end confdefs.h. */ |
2124 |
|
$4 |
2225 |
– |
#ifdef FC_DUMMY_MAIN |
2226 |
– |
#ifndef FC_DUMMY_MAIN_EQ_F77 |
2227 |
– |
# ifdef __cplusplus |
2228 |
– |
extern "C" |
2229 |
– |
# endif |
2230 |
– |
int FC_DUMMY_MAIN() { return 1; } |
2231 |
– |
#endif |
2232 |
– |
#endif |
2125 |
|
int |
2126 |
|
main () |
2127 |
|
{ |
2135 |
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2136 |
|
/* end confdefs.h. */ |
2137 |
|
$4 |
2246 |
– |
#ifdef FC_DUMMY_MAIN |
2247 |
– |
#ifndef FC_DUMMY_MAIN_EQ_F77 |
2248 |
– |
# ifdef __cplusplus |
2249 |
– |
extern "C" |
2250 |
– |
# endif |
2251 |
– |
int FC_DUMMY_MAIN() { return 1; } |
2252 |
– |
#endif |
2253 |
– |
#endif |
2138 |
|
int |
2139 |
|
main () |
2140 |
|
{ |
2156 |
|
eval ac_res=\$$3 |
2157 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
2158 |
|
$as_echo "$ac_res" >&6; } |
2159 |
< |
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
2159 |
> |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
2160 |
|
|
2161 |
|
} # ac_fn_c_check_type |
2162 |
|
cat >config.log <<_ACEOF |
2164 |
|
running configure, to aid debugging if configure makes a mistake. |
2165 |
|
|
2166 |
|
It was created by OpenMD $as_me 1.0, which was |
2167 |
< |
generated by GNU Autoconf 2.65. Invocation command line was |
2167 |
> |
generated by GNU Autoconf 2.68. Invocation command line was |
2168 |
|
|
2169 |
|
$ $0 $@ |
2170 |
|
|
2274 |
|
{ |
2275 |
|
echo |
2276 |
|
|
2277 |
< |
cat <<\_ASBOX |
2394 |
< |
## ---------------- ## |
2277 |
> |
$as_echo "## ---------------- ## |
2278 |
|
## Cache variables. ## |
2279 |
< |
## ---------------- ## |
2397 |
< |
_ASBOX |
2279 |
> |
## ---------------- ##" |
2280 |
|
echo |
2281 |
|
# The following way of writing the cache mishandles newlines in values, |
2282 |
|
( |
2310 |
|
) |
2311 |
|
echo |
2312 |
|
|
2313 |
< |
cat <<\_ASBOX |
2432 |
< |
## ----------------- ## |
2313 |
> |
$as_echo "## ----------------- ## |
2314 |
|
## Output variables. ## |
2315 |
< |
## ----------------- ## |
2435 |
< |
_ASBOX |
2315 |
> |
## ----------------- ##" |
2316 |
|
echo |
2317 |
|
for ac_var in $ac_subst_vars |
2318 |
|
do |
2325 |
|
echo |
2326 |
|
|
2327 |
|
if test -n "$ac_subst_files"; then |
2328 |
< |
cat <<\_ASBOX |
2449 |
< |
## ------------------- ## |
2328 |
> |
$as_echo "## ------------------- ## |
2329 |
|
## File substitutions. ## |
2330 |
< |
## ------------------- ## |
2452 |
< |
_ASBOX |
2330 |
> |
## ------------------- ##" |
2331 |
|
echo |
2332 |
|
for ac_var in $ac_subst_files |
2333 |
|
do |
2341 |
|
fi |
2342 |
|
|
2343 |
|
if test -s confdefs.h; then |
2344 |
< |
cat <<\_ASBOX |
2467 |
< |
## ----------- ## |
2344 |
> |
$as_echo "## ----------- ## |
2345 |
|
## confdefs.h. ## |
2346 |
< |
## ----------- ## |
2470 |
< |
_ASBOX |
2346 |
> |
## ----------- ##" |
2347 |
|
echo |
2348 |
|
cat confdefs.h |
2349 |
|
echo |
2398 |
|
ac_site_file1=NONE |
2399 |
|
ac_site_file2=NONE |
2400 |
|
if test -n "$CONFIG_SITE"; then |
2401 |
< |
ac_site_file1=$CONFIG_SITE |
2401 |
> |
# We do not want a PATH search for config.site. |
2402 |
> |
case $CONFIG_SITE in #(( |
2403 |
> |
-*) ac_site_file1=./$CONFIG_SITE;; |
2404 |
> |
*/*) ac_site_file1=$CONFIG_SITE;; |
2405 |
> |
*) ac_site_file1=./$CONFIG_SITE;; |
2406 |
> |
esac |
2407 |
|
elif test "x$prefix" != xNONE; then |
2408 |
|
ac_site_file1=$prefix/share/config.site |
2409 |
|
ac_site_file2=$prefix/etc/config.site |
2418 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
2419 |
|
$as_echo "$as_me: loading site script $ac_site_file" >&6;} |
2420 |
|
sed 's/^/| /' "$ac_site_file" >&5 |
2421 |
< |
. "$ac_site_file" |
2421 |
> |
. "$ac_site_file" \ |
2422 |
> |
|| { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2423 |
> |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
2424 |
> |
as_fn_error $? "failed to load site script $ac_site_file |
2425 |
> |
See \`config.log' for more details" "$LINENO" 5; } |
2426 |
|
fi |
2427 |
|
done |
2428 |
|
|
2498 |
|
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
2499 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 |
2500 |
|
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
2501 |
< |
as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
2501 |
> |
as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
2502 |
|
fi |
2503 |
|
## -------------------- ## |
2504 |
|
## Main body of script. ## |
2513 |
|
|
2514 |
|
ac_aux_dir= |
2515 |
|
for ac_dir in ac-tools "$srcdir"/ac-tools; do |
2516 |
< |
for ac_t in install-sh install.sh shtool; do |
2517 |
< |
if test -f "$ac_dir/$ac_t"; then |
2518 |
< |
ac_aux_dir=$ac_dir |
2519 |
< |
ac_install_sh="$ac_aux_dir/$ac_t -c" |
2520 |
< |
break 2 |
2521 |
< |
fi |
2522 |
< |
done |
2516 |
> |
if test -f "$ac_dir/install-sh"; then |
2517 |
> |
ac_aux_dir=$ac_dir |
2518 |
> |
ac_install_sh="$ac_aux_dir/install-sh -c" |
2519 |
> |
break |
2520 |
> |
elif test -f "$ac_dir/install.sh"; then |
2521 |
> |
ac_aux_dir=$ac_dir |
2522 |
> |
ac_install_sh="$ac_aux_dir/install.sh -c" |
2523 |
> |
break |
2524 |
> |
elif test -f "$ac_dir/shtool"; then |
2525 |
> |
ac_aux_dir=$ac_dir |
2526 |
> |
ac_install_sh="$ac_aux_dir/shtool install -c" |
2527 |
> |
break |
2528 |
> |
fi |
2529 |
|
done |
2530 |
|
if test -z "$ac_aux_dir"; then |
2531 |
< |
as_fn_error "cannot find install-sh, install.sh, or shtool in ac-tools \"$srcdir\"/ac-tools" "$LINENO" 5 |
2531 |
> |
as_fn_error $? "cannot find install-sh, install.sh, or shtool in ac-tools \"$srcdir\"/ac-tools" "$LINENO" 5 |
2532 |
|
fi |
2533 |
|
|
2534 |
|
# These three variables are undocumented and unsupported, |
2571 |
|
|
2572 |
|
|
2573 |
|
|
2683 |
– |
|
2684 |
– |
|
2685 |
– |
|
2686 |
– |
|
2687 |
– |
|
2688 |
– |
|
2689 |
– |
|
2690 |
– |
|
2691 |
– |
|
2692 |
– |
|
2693 |
– |
|
2694 |
– |
|
2695 |
– |
|
2696 |
– |
|
2697 |
– |
|
2574 |
|
# |
2575 |
|
# |
2576 |
|
# |
2584 |
|
|
2585 |
|
|
2586 |
|
|
2711 |
– |
# AC_F90_MODULE_NAMES |
2712 |
– |
# ------------------- |
2713 |
– |
# |
2714 |
– |
# Figure out how the Fortran 90 compiler constructs module file names |
2715 |
– |
# |
2716 |
– |
# AC_F90_MODULE_NAMES |
2587 |
|
|
2588 |
|
|
2589 |
|
|
2764 |
|
# who am i |
2765 |
|
# Make sure we can run config.sub. |
2766 |
|
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
2767 |
< |
as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 |
2767 |
> |
as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 |
2768 |
|
|
2769 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 |
2770 |
|
$as_echo_n "checking build system type... " >&6; } |
2771 |
< |
if test "${ac_cv_build+set}" = set; then : |
2771 |
> |
if ${ac_cv_build+:} false; then : |
2772 |
|
$as_echo_n "(cached) " >&6 |
2773 |
|
else |
2774 |
|
ac_build_alias=$build_alias |
2775 |
|
test "x$ac_build_alias" = x && |
2776 |
|
ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
2777 |
|
test "x$ac_build_alias" = x && |
2778 |
< |
as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5 |
2778 |
> |
as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 |
2779 |
|
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
2780 |
< |
as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 |
2780 |
> |
as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 |
2781 |
|
|
2782 |
|
fi |
2783 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 |
2784 |
|
$as_echo "$ac_cv_build" >&6; } |
2785 |
|
case $ac_cv_build in |
2786 |
|
*-*-*) ;; |
2787 |
< |
*) as_fn_error "invalid value of canonical build" "$LINENO" 5;; |
2787 |
> |
*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; |
2788 |
|
esac |
2789 |
|
build=$ac_cv_build |
2790 |
|
ac_save_IFS=$IFS; IFS='-' |
2802 |
|
|
2803 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
2804 |
|
$as_echo_n "checking host system type... " >&6; } |
2805 |
< |
if test "${ac_cv_host+set}" = set; then : |
2805 |
> |
if ${ac_cv_host+:} false; then : |
2806 |
|
$as_echo_n "(cached) " >&6 |
2807 |
|
else |
2808 |
|
if test "x$host_alias" = x; then |
2809 |
|
ac_cv_host=$ac_cv_build |
2810 |
|
else |
2811 |
|
ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
2812 |
< |
as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 |
2812 |
> |
as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 |
2813 |
|
fi |
2814 |
|
|
2815 |
|
fi |
2817 |
|
$as_echo "$ac_cv_host" >&6; } |
2818 |
|
case $ac_cv_host in |
2819 |
|
*-*-*) ;; |
2820 |
< |
*) as_fn_error "invalid value of canonical host" "$LINENO" 5;; |
2820 |
> |
*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; |
2821 |
|
esac |
2822 |
|
host=$ac_cv_host |
2823 |
|
ac_save_IFS=$IFS; IFS='-' |
2911 |
|
set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
2912 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2913 |
|
$as_echo_n "checking for $ac_word... " >&6; } |
2914 |
< |
if test "${ac_cv_prog_CXX+set}" = set; then : |
2914 |
> |
if ${ac_cv_prog_CXX+:} false; then : |
2915 |
|
$as_echo_n "(cached) " >&6 |
2916 |
|
else |
2917 |
|
if test -n "$CXX"; then |
2955 |
|
set dummy $ac_prog; ac_word=$2 |
2956 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2957 |
|
$as_echo_n "checking for $ac_word... " >&6; } |
2958 |
< |
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then : |
2958 |
> |
if ${ac_cv_prog_ac_ct_CXX+:} false; then : |
2959 |
|
$as_echo_n "(cached) " >&6 |
2960 |
|
else |
2961 |
|
if test -n "$ac_ct_CXX"; then |
3118 |
|
|
3119 |
|
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3120 |
|
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
3121 |
< |
{ as_fn_set_status 77 |
3122 |
< |
as_fn_error "C++ compiler cannot create executables |
3253 |
< |
See \`config.log' for more details." "$LINENO" 5; }; } |
3121 |
> |
as_fn_error 77 "C++ compiler cannot create executables |
3122 |
> |
See \`config.log' for more details" "$LINENO" 5; } |
3123 |
|
else |
3124 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
3125 |
|
$as_echo "yes" >&6; } |
3161 |
|
else |
3162 |
|
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3163 |
|
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
3164 |
< |
as_fn_error "cannot compute suffix of executables: cannot compile and link |
3165 |
< |
See \`config.log' for more details." "$LINENO" 5; } |
3164 |
> |
as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
3165 |
> |
See \`config.log' for more details" "$LINENO" 5; } |
3166 |
|
fi |
3167 |
|
rm -f conftest conftest$ac_cv_exeext |
3168 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
3219 |
|
else |
3220 |
|
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3221 |
|
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
3222 |
< |
as_fn_error "cannot run C++ compiled programs. |
3222 |
> |
as_fn_error $? "cannot run C++ compiled programs. |
3223 |
|
If you meant to cross compile, use \`--host'. |
3224 |
< |
See \`config.log' for more details." "$LINENO" 5; } |
3224 |
> |
See \`config.log' for more details" "$LINENO" 5; } |
3225 |
|
fi |
3226 |
|
fi |
3227 |
|
fi |
3232 |
|
ac_clean_files=$ac_clean_files_save |
3233 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
3234 |
|
$as_echo_n "checking for suffix of object files... " >&6; } |
3235 |
< |
if test "${ac_cv_objext+set}" = set; then : |
3235 |
> |
if ${ac_cv_objext+:} false; then : |
3236 |
|
$as_echo_n "(cached) " >&6 |
3237 |
|
else |
3238 |
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3272 |
|
|
3273 |
|
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3274 |
|
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
3275 |
< |
as_fn_error "cannot compute suffix of object files: cannot compile |
3276 |
< |
See \`config.log' for more details." "$LINENO" 5; } |
3275 |
> |
as_fn_error $? "cannot compute suffix of object files: cannot compile |
3276 |
> |
See \`config.log' for more details" "$LINENO" 5; } |
3277 |
|
fi |
3278 |
|
rm -f conftest.$ac_cv_objext conftest.$ac_ext |
3279 |
|
fi |
3283 |
|
ac_objext=$OBJEXT |
3284 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 |
3285 |
|
$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } |
3286 |
< |
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then : |
3286 |
> |
if ${ac_cv_cxx_compiler_gnu+:} false; then : |
3287 |
|
$as_echo_n "(cached) " >&6 |
3288 |
|
else |
3289 |
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3320 |
|
ac_save_CXXFLAGS=$CXXFLAGS |
3321 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 |
3322 |
|
$as_echo_n "checking whether $CXX accepts -g... " >&6; } |
3323 |
< |
if test "${ac_cv_prog_cxx_g+set}" = set; then : |
3323 |
> |
if ${ac_cv_prog_cxx_g+:} false; then : |
3324 |
|
$as_echo_n "(cached) " >&6 |
3325 |
|
else |
3326 |
|
ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
3414 |
|
set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
3415 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3416 |
|
$as_echo_n "checking for $ac_word... " >&6; } |
3417 |
< |
if test "${ac_cv_prog_CC+set}" = set; then : |
3417 |
> |
if ${ac_cv_prog_CC+:} false; then : |
3418 |
|
$as_echo_n "(cached) " >&6 |
3419 |
|
else |
3420 |
|
if test -n "$CC"; then |
3458 |
|
set dummy $ac_prog; ac_word=$2 |
3459 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3460 |
|
$as_echo_n "checking for $ac_word... " >&6; } |
3461 |
< |
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : |
3461 |
> |
if ${ac_cv_prog_ac_ct_CC+:} false; then : |
3462 |
|
$as_echo_n "(cached) " >&6 |
3463 |
|
else |
3464 |
|
if test -n "$ac_ct_CC"; then |
3510 |
|
|
3511 |
|
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3512 |
|
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
3513 |
< |
as_fn_error "no acceptable C compiler found in \$PATH |
3514 |
< |
See \`config.log' for more details." "$LINENO" 5; } |
3513 |
> |
as_fn_error $? "no acceptable C compiler found in \$PATH |
3514 |
> |
See \`config.log' for more details" "$LINENO" 5; } |
3515 |
|
|
3516 |
|
# Provide some information about the compiler. |
3517 |
|
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
3540 |
|
|
3541 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
3542 |
|
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
3543 |
< |
if test "${ac_cv_c_compiler_gnu+set}" = set; then : |
3543 |
> |
if ${ac_cv_c_compiler_gnu+:} false; then : |
3544 |
|
$as_echo_n "(cached) " >&6 |
3545 |
|
else |
3546 |
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3577 |
|
ac_save_CFLAGS=$CFLAGS |
3578 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
3579 |
|
$as_echo_n "checking whether $CC accepts -g... " >&6; } |
3580 |
< |
if test "${ac_cv_prog_cc_g+set}" = set; then : |
3580 |
> |
if ${ac_cv_prog_cc_g+:} false; then : |
3581 |
|
$as_echo_n "(cached) " >&6 |
3582 |
|
else |
3583 |
|
ac_save_c_werror_flag=$ac_c_werror_flag |
3655 |
|
fi |
3656 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
3657 |
|
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
3658 |
< |
if test "${ac_cv_prog_cc_c89+set}" = set; then : |
3658 |
> |
if ${ac_cv_prog_cc_c89+:} false; then : |
3659 |
|
$as_echo_n "(cached) " >&6 |
3660 |
|
else |
3661 |
|
ac_cv_prog_cc_c89=no |
3749 |
|
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
3750 |
|
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3751 |
|
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
3883 |
– |
|
3884 |
– |
ac_ext=${ac_fc_srcext-f} |
3885 |
– |
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' |
3886 |
– |
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' |
3887 |
– |
ac_compiler_gnu=$ac_cv_fc_compiler_gnu |
3888 |
– |
if test -n "$ac_tool_prefix"; then |
3889 |
– |
for ac_prog in $FC ifort ifc pathf95 pgf95 xlf95 lf95 epcf90 pathf90 xlf90 f95 f90 gfortran g95 fort |
3890 |
– |
do |
3891 |
– |
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
3892 |
– |
set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
3893 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3894 |
– |
$as_echo_n "checking for $ac_word... " >&6; } |
3895 |
– |
if test "${ac_cv_prog_FC+set}" = set; then : |
3896 |
– |
$as_echo_n "(cached) " >&6 |
3897 |
– |
else |
3898 |
– |
if test -n "$FC"; then |
3899 |
– |
ac_cv_prog_FC="$FC" # Let the user override the test. |
3900 |
– |
else |
3901 |
– |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3902 |
– |
for as_dir in $PATH |
3903 |
– |
do |
3904 |
– |
IFS=$as_save_IFS |
3905 |
– |
test -z "$as_dir" && as_dir=. |
3906 |
– |
for ac_exec_ext in '' $ac_executable_extensions; do |
3907 |
– |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
3908 |
– |
ac_cv_prog_FC="$ac_tool_prefix$ac_prog" |
3909 |
– |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3910 |
– |
break 2 |
3911 |
– |
fi |
3912 |
– |
done |
3913 |
– |
done |
3914 |
– |
IFS=$as_save_IFS |
3752 |
|
|
3916 |
– |
fi |
3917 |
– |
fi |
3918 |
– |
FC=$ac_cv_prog_FC |
3919 |
– |
if test -n "$FC"; then |
3920 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5 |
3921 |
– |
$as_echo "$FC" >&6; } |
3922 |
– |
else |
3923 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3924 |
– |
$as_echo "no" >&6; } |
3925 |
– |
fi |
3753 |
|
|
3927 |
– |
|
3928 |
– |
test -n "$FC" && break |
3929 |
– |
done |
3930 |
– |
fi |
3931 |
– |
if test -z "$FC"; then |
3932 |
– |
ac_ct_FC=$FC |
3933 |
– |
for ac_prog in $FC ifort ifc pathf95 pgf95 xlf95 lf95 epcf90 pathf90 xlf90 f95 f90 gfortran g95 fort |
3934 |
– |
do |
3935 |
– |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
3936 |
– |
set dummy $ac_prog; ac_word=$2 |
3937 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3938 |
– |
$as_echo_n "checking for $ac_word... " >&6; } |
3939 |
– |
if test "${ac_cv_prog_ac_ct_FC+set}" = set; then : |
3940 |
– |
$as_echo_n "(cached) " >&6 |
3941 |
– |
else |
3942 |
– |
if test -n "$ac_ct_FC"; then |
3943 |
– |
ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test. |
3944 |
– |
else |
3945 |
– |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3946 |
– |
for as_dir in $PATH |
3947 |
– |
do |
3948 |
– |
IFS=$as_save_IFS |
3949 |
– |
test -z "$as_dir" && as_dir=. |
3950 |
– |
for ac_exec_ext in '' $ac_executable_extensions; do |
3951 |
– |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
3952 |
– |
ac_cv_prog_ac_ct_FC="$ac_prog" |
3953 |
– |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3954 |
– |
break 2 |
3955 |
– |
fi |
3956 |
– |
done |
3957 |
– |
done |
3958 |
– |
IFS=$as_save_IFS |
3959 |
– |
|
3960 |
– |
fi |
3961 |
– |
fi |
3962 |
– |
ac_ct_FC=$ac_cv_prog_ac_ct_FC |
3963 |
– |
if test -n "$ac_ct_FC"; then |
3964 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5 |
3965 |
– |
$as_echo "$ac_ct_FC" >&6; } |
3966 |
– |
else |
3967 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3968 |
– |
$as_echo "no" >&6; } |
3969 |
– |
fi |
3970 |
– |
|
3971 |
– |
|
3972 |
– |
test -n "$ac_ct_FC" && break |
3973 |
– |
done |
3974 |
– |
|
3975 |
– |
if test "x$ac_ct_FC" = x; then |
3976 |
– |
FC="" |
3977 |
– |
else |
3978 |
– |
case $cross_compiling:$ac_tool_warned in |
3979 |
– |
yes:) |
3980 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
3981 |
– |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
3982 |
– |
ac_tool_warned=yes ;; |
3983 |
– |
esac |
3984 |
– |
FC=$ac_ct_FC |
3985 |
– |
fi |
3986 |
– |
fi |
3987 |
– |
|
3988 |
– |
|
3989 |
– |
# Provide some information about the compiler. |
3990 |
– |
$as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5 |
3991 |
– |
set X $ac_compile |
3992 |
– |
ac_compiler=$2 |
3993 |
– |
for ac_option in --version -v -V -qversion; do |
3994 |
– |
{ { ac_try="$ac_compiler $ac_option >&5" |
3995 |
– |
case "(($ac_try" in |
3996 |
– |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3997 |
– |
*) ac_try_echo=$ac_try;; |
3998 |
– |
esac |
3999 |
– |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
4000 |
– |
$as_echo "$ac_try_echo"; } >&5 |
4001 |
– |
(eval "$ac_compiler $ac_option >&5") 2>conftest.err |
4002 |
– |
ac_status=$? |
4003 |
– |
if test -s conftest.err; then |
4004 |
– |
sed '10a\ |
4005 |
– |
... rest of stderr output deleted ... |
4006 |
– |
10q' conftest.err >conftest.er1 |
4007 |
– |
cat conftest.er1 >&5 |
4008 |
– |
fi |
4009 |
– |
rm -f conftest.er1 conftest.err |
4010 |
– |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4011 |
– |
test $ac_status = 0; } |
4012 |
– |
done |
4013 |
– |
rm -f a.out |
4014 |
– |
|
4015 |
– |
# If we don't use `.F' as extension, the preprocessor is not run on the |
4016 |
– |
# input file. (Note that this only needs to work for GNU compilers.) |
4017 |
– |
ac_save_ext=$ac_ext |
4018 |
– |
ac_ext=F |
4019 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5 |
4020 |
– |
$as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; } |
4021 |
– |
if test "${ac_cv_fc_compiler_gnu+set}" = set; then : |
4022 |
– |
$as_echo_n "(cached) " >&6 |
4023 |
– |
else |
4024 |
– |
cat > conftest.$ac_ext <<_ACEOF |
4025 |
– |
program main |
4026 |
– |
#ifndef __GNUC__ |
4027 |
– |
choke me |
4028 |
– |
#endif |
4029 |
– |
|
4030 |
– |
end |
4031 |
– |
_ACEOF |
4032 |
– |
if ac_fn_fc_try_compile "$LINENO"; then : |
4033 |
– |
ac_compiler_gnu=yes |
4034 |
– |
else |
4035 |
– |
ac_compiler_gnu=no |
4036 |
– |
fi |
4037 |
– |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4038 |
– |
ac_cv_fc_compiler_gnu=$ac_compiler_gnu |
4039 |
– |
|
4040 |
– |
fi |
4041 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5 |
4042 |
– |
$as_echo "$ac_cv_fc_compiler_gnu" >&6; } |
4043 |
– |
ac_ext=$ac_save_ext |
4044 |
– |
ac_test_FCFLAGS=${FCFLAGS+set} |
4045 |
– |
ac_save_FCFLAGS=$FCFLAGS |
4046 |
– |
FCFLAGS= |
4047 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5 |
4048 |
– |
$as_echo_n "checking whether $FC accepts -g... " >&6; } |
4049 |
– |
if test "${ac_cv_prog_fc_g+set}" = set; then : |
4050 |
– |
$as_echo_n "(cached) " >&6 |
4051 |
– |
else |
4052 |
– |
FCFLAGS=-g |
4053 |
– |
cat > conftest.$ac_ext <<_ACEOF |
4054 |
– |
program main |
4055 |
– |
|
4056 |
– |
end |
4057 |
– |
_ACEOF |
4058 |
– |
if ac_fn_fc_try_compile "$LINENO"; then : |
4059 |
– |
ac_cv_prog_fc_g=yes |
4060 |
– |
else |
4061 |
– |
ac_cv_prog_fc_g=no |
4062 |
– |
fi |
4063 |
– |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4064 |
– |
|
4065 |
– |
fi |
4066 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5 |
4067 |
– |
$as_echo "$ac_cv_prog_fc_g" >&6; } |
4068 |
– |
if test "$ac_test_FCFLAGS" = set; then |
4069 |
– |
FCFLAGS=$ac_save_FCFLAGS |
4070 |
– |
elif test $ac_cv_prog_fc_g = yes; then |
4071 |
– |
if test "x$ac_cv_fc_compiler_gnu" = xyes; then |
4072 |
– |
FCFLAGS="-g -O2" |
4073 |
– |
else |
4074 |
– |
FCFLAGS="-g" |
4075 |
– |
fi |
4076 |
– |
else |
4077 |
– |
if test "x$ac_cv_fc_compiler_gnu" = xyes; then |
4078 |
– |
FCFLAGS="-O2" |
4079 |
– |
else |
4080 |
– |
FCFLAGS= |
4081 |
– |
fi |
4082 |
– |
fi |
4083 |
– |
|
4084 |
– |
ac_ext=c |
4085 |
– |
ac_cpp='$CPP $CPPFLAGS' |
4086 |
– |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
4087 |
– |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
4088 |
– |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
4089 |
– |
|
4090 |
– |
|
3754 |
|
save_CXX=$CXX |
3755 |
|
save_CC=$CC |
4093 |
– |
save_FC=$FC |
3756 |
|
save_LIBS=$LIBS |
3757 |
|
|
3758 |
|
ac_ext=cpp |
3764 |
|
|
3765 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lc" >&5 |
3766 |
|
$as_echo_n "checking for dlopen in -lc... " >&6; } |
3767 |
< |
if test "${ac_cv_lib_c_dlopen+set}" = set; then : |
3767 |
> |
if ${ac_cv_lib_c_dlopen+:} false; then : |
3768 |
|
$as_echo_n "(cached) " >&6 |
3769 |
|
else |
3770 |
|
ac_check_lib_save_LIBS=$LIBS |
3798 |
|
fi |
3799 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_dlopen" >&5 |
3800 |
|
$as_echo "$ac_cv_lib_c_dlopen" >&6; } |
3801 |
< |
if test "x$ac_cv_lib_c_dlopen" = x""yes; then : |
3801 |
> |
if test "x$ac_cv_lib_c_dlopen" = xyes; then : |
3802 |
|
LIBDL="" |
3803 |
|
else |
3804 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
3805 |
|
$as_echo_n "checking for dlopen in -ldl... " >&6; } |
3806 |
< |
if test "${ac_cv_lib_dl_dlopen+set}" = set; then : |
3806 |
> |
if ${ac_cv_lib_dl_dlopen+:} false; then : |
3807 |
|
$as_echo_n "(cached) " >&6 |
3808 |
|
else |
3809 |
|
ac_check_lib_save_LIBS=$LIBS |
3837 |
|
fi |
3838 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
3839 |
|
$as_echo "$ac_cv_lib_dl_dlopen" >&6; } |
3840 |
< |
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : |
3840 |
> |
if test "x$ac_cv_lib_dl_dlopen" = xyes; then : |
3841 |
|
LIBDL="-ldl" |
3842 |
|
fi |
3843 |
|
|
3855 |
|
set dummy $ac_prog; ac_word=$2 |
3856 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3857 |
|
$as_echo_n "checking for $ac_word... " >&6; } |
3858 |
< |
if test "${ac_cv_prog_MPICXX+set}" = set; then : |
3858 |
> |
if ${ac_cv_prog_MPICXX+:} false; then : |
3859 |
|
$as_echo_n "(cached) " >&6 |
3860 |
|
else |
3861 |
|
if test -n "$MPICXX"; then |
3899 |
|
|
3900 |
|
if test x = x"$MPILIBS"; then |
3901 |
|
ac_fn_cxx_check_func "$LINENO" "MPI_Init" "ac_cv_func_MPI_Init" |
3902 |
< |
if test "x$ac_cv_func_MPI_Init" = x""yes; then : |
3902 |
> |
if test "x$ac_cv_func_MPI_Init" = xyes; then : |
3903 |
|
MPILIBS=" " |
3904 |
|
fi |
3905 |
|
|
3908 |
|
if test x = x"$MPILIBS"; then |
3909 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpi" >&5 |
3910 |
|
$as_echo_n "checking for MPI_Init in -lmpi... " >&6; } |
3911 |
< |
if test "${ac_cv_lib_mpi_MPI_Init+set}" = set; then : |
3911 |
> |
if ${ac_cv_lib_mpi_MPI_Init+:} false; then : |
3912 |
|
$as_echo_n "(cached) " >&6 |
3913 |
|
else |
3914 |
|
ac_check_lib_save_LIBS=$LIBS |
3942 |
|
fi |
3943 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpi_MPI_Init" >&5 |
3944 |
|
$as_echo "$ac_cv_lib_mpi_MPI_Init" >&6; } |
3945 |
< |
if test "x$ac_cv_lib_mpi_MPI_Init" = x""yes; then : |
3945 |
> |
if test "x$ac_cv_lib_mpi_MPI_Init" = xyes; then : |
3946 |
|
MPILIBS="-lmpi" |
3947 |
|
fi |
3948 |
|
|
3950 |
|
if test x = x"$MPILIBS"; then |
3951 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpich" >&5 |
3952 |
|
$as_echo_n "checking for MPI_Init in -lmpich... " >&6; } |
3953 |
< |
if test "${ac_cv_lib_mpich_MPI_Init+set}" = set; then : |
3953 |
> |
if ${ac_cv_lib_mpich_MPI_Init+:} false; then : |
3954 |
|
$as_echo_n "(cached) " >&6 |
3955 |
|
else |
3956 |
|
ac_check_lib_save_LIBS=$LIBS |
3984 |
|
fi |
3985 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpich_MPI_Init" >&5 |
3986 |
|
$as_echo "$ac_cv_lib_mpich_MPI_Init" >&6; } |
3987 |
< |
if test "x$ac_cv_lib_mpich_MPI_Init" = x""yes; then : |
3987 |
> |
if test "x$ac_cv_lib_mpich_MPI_Init" = xyes; then : |
3988 |
|
MPILIBS="-lmpich" |
3989 |
|
fi |
3990 |
|
|
4050 |
|
set dummy $ac_prog; ac_word=$2 |
4051 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4052 |
|
$as_echo_n "checking for $ac_word... " >&6; } |
4053 |
< |
if test "${ac_cv_prog_MPICC+set}" = set; then : |
4053 |
> |
if ${ac_cv_prog_MPICC+:} false; then : |
4054 |
|
$as_echo_n "(cached) " >&6 |
4055 |
|
else |
4056 |
|
if test -n "$MPICC"; then |
4094 |
|
|
4095 |
|
if test x = x"$MPILIBS"; then |
4096 |
|
ac_fn_c_check_func "$LINENO" "MPI_Init" "ac_cv_func_MPI_Init" |
4097 |
< |
if test "x$ac_cv_func_MPI_Init" = x""yes; then : |
4097 |
> |
if test "x$ac_cv_func_MPI_Init" = xyes; then : |
4098 |
|
MPILIBS=" " |
4099 |
|
fi |
4100 |
|
|
4103 |
|
if test x = x"$MPILIBS"; then |
4104 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpi" >&5 |
4105 |
|
$as_echo_n "checking for MPI_Init in -lmpi... " >&6; } |
4106 |
< |
if test "${ac_cv_lib_mpi_MPI_Init+set}" = set; then : |
4106 |
> |
if ${ac_cv_lib_mpi_MPI_Init+:} false; then : |
4107 |
|
$as_echo_n "(cached) " >&6 |
4108 |
|
else |
4109 |
|
ac_check_lib_save_LIBS=$LIBS |
4137 |
|
fi |
4138 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpi_MPI_Init" >&5 |
4139 |
|
$as_echo "$ac_cv_lib_mpi_MPI_Init" >&6; } |
4140 |
< |
if test "x$ac_cv_lib_mpi_MPI_Init" = x""yes; then : |
4140 |
> |
if test "x$ac_cv_lib_mpi_MPI_Init" = xyes; then : |
4141 |
|
MPILIBS="-lmpi" |
4142 |
|
fi |
4143 |
|
|
4145 |
|
if test x = x"$MPILIBS"; then |
4146 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpich" >&5 |
4147 |
|
$as_echo_n "checking for MPI_Init in -lmpich... " >&6; } |
4148 |
< |
if test "${ac_cv_lib_mpich_MPI_Init+set}" = set; then : |
4148 |
> |
if ${ac_cv_lib_mpich_MPI_Init+:} false; then : |
4149 |
|
$as_echo_n "(cached) " >&6 |
4150 |
|
else |
4151 |
|
ac_check_lib_save_LIBS=$LIBS |
4179 |
|
fi |
4180 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpich_MPI_Init" >&5 |
4181 |
|
$as_echo "$ac_cv_lib_mpich_MPI_Init" >&6; } |
4182 |
< |
if test "x$ac_cv_lib_mpich_MPI_Init" = x""yes; then : |
4182 |
> |
if test "x$ac_cv_lib_mpich_MPI_Init" = xyes; then : |
4183 |
|
MPILIBS="-lmpich" |
4184 |
|
fi |
4185 |
|
|
4219 |
|
USE_MPI="no" |
4220 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No suitable C MPI implementation found. openmd_MPI will not be built." >&5 |
4221 |
|
$as_echo "$as_me: WARNING: No suitable C MPI implementation found. openmd_MPI will not be built." >&2;} |
4560 |
– |
: |
4561 |
– |
else |
4562 |
– |
USE_MPI="yes" |
4563 |
– |
: |
4564 |
– |
fi |
4565 |
– |
|
4566 |
– |
|
4567 |
– |
fi |
4568 |
– |
|
4569 |
– |
if test $USE_MPI != no; then : |
4570 |
– |
|
4571 |
– |
ac_ext=${ac_fc_srcext-f} |
4572 |
– |
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' |
4573 |
– |
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' |
4574 |
– |
ac_compiler_gnu=$ac_cv_fc_compiler_gnu |
4575 |
– |
|
4576 |
– |
|
4577 |
– |
|
4578 |
– |
|
4579 |
– |
|
4580 |
– |
|
4581 |
– |
for ac_prog in openmpif90 mpif90 mpxlf95_r mpxlf90_r mpxlf95 mpxlf90 mpf90 cmpif90c |
4582 |
– |
do |
4583 |
– |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
4584 |
– |
set dummy $ac_prog; ac_word=$2 |
4585 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4586 |
– |
$as_echo_n "checking for $ac_word... " >&6; } |
4587 |
– |
if test "${ac_cv_prog_MPIFC+set}" = set; then : |
4588 |
– |
$as_echo_n "(cached) " >&6 |
4589 |
– |
else |
4590 |
– |
if test -n "$MPIFC"; then |
4591 |
– |
ac_cv_prog_MPIFC="$MPIFC" # Let the user override the test. |
4592 |
– |
else |
4593 |
– |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4594 |
– |
for as_dir in $PATH |
4595 |
– |
do |
4596 |
– |
IFS=$as_save_IFS |
4597 |
– |
test -z "$as_dir" && as_dir=. |
4598 |
– |
for ac_exec_ext in '' $ac_executable_extensions; do |
4599 |
– |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
4600 |
– |
ac_cv_prog_MPIFC="$ac_prog" |
4601 |
– |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4602 |
– |
break 2 |
4603 |
– |
fi |
4604 |
– |
done |
4605 |
– |
done |
4606 |
– |
IFS=$as_save_IFS |
4607 |
– |
|
4608 |
– |
fi |
4609 |
– |
fi |
4610 |
– |
MPIFC=$ac_cv_prog_MPIFC |
4611 |
– |
if test -n "$MPIFC"; then |
4612 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPIFC" >&5 |
4613 |
– |
$as_echo "$MPIFC" >&6; } |
4614 |
– |
else |
4615 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4616 |
– |
$as_echo "no" >&6; } |
4617 |
– |
fi |
4618 |
– |
|
4619 |
– |
|
4620 |
– |
test -n "$MPIFC" && break |
4621 |
– |
done |
4622 |
– |
test -n "$MPIFC" || MPIFC="$FC" |
4623 |
– |
|
4624 |
– |
ax_mpi_save_FC="$FC" |
4625 |
– |
FC="$MPIFC" |
4626 |
– |
|
4627 |
– |
|
4628 |
– |
|
4629 |
– |
if test x = x"$MPILIBS"; then |
4630 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init" >&5 |
4631 |
– |
$as_echo_n "checking for MPI_Init... " >&6; } |
4632 |
– |
cat > conftest.$ac_ext <<_ACEOF |
4633 |
– |
program main |
4634 |
– |
call MPI_Init |
4635 |
– |
end |
4636 |
– |
_ACEOF |
4637 |
– |
if ac_fn_fc_try_link "$LINENO"; then : |
4638 |
– |
MPILIBS=" " |
4639 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
4640 |
– |
$as_echo "yes" >&6; } |
4641 |
– |
else |
4642 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4643 |
– |
$as_echo "no" >&6; } |
4644 |
– |
fi |
4645 |
– |
rm -f core conftest.err conftest.$ac_objext \ |
4646 |
– |
conftest$ac_exeext conftest.$ac_ext |
4647 |
– |
fi |
4648 |
– |
|
4649 |
– |
if test x = x"$MPILIBS"; then |
4650 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lfmpi" >&5 |
4651 |
– |
$as_echo_n "checking for MPI_Init in -lfmpi... " >&6; } |
4652 |
– |
if test "${ac_cv_lib_fmpi_MPI_Init+set}" = set; then : |
4653 |
– |
$as_echo_n "(cached) " >&6 |
4654 |
– |
else |
4655 |
– |
ac_check_lib_save_LIBS=$LIBS |
4656 |
– |
LIBS="-lfmpi $LIBS" |
4657 |
– |
cat > conftest.$ac_ext <<_ACEOF |
4658 |
– |
program main |
4659 |
– |
call MPI_Init |
4660 |
– |
end |
4661 |
– |
_ACEOF |
4662 |
– |
if ac_fn_fc_try_link "$LINENO"; then : |
4663 |
– |
ac_cv_lib_fmpi_MPI_Init=yes |
4664 |
– |
else |
4665 |
– |
ac_cv_lib_fmpi_MPI_Init=no |
4666 |
– |
fi |
4667 |
– |
rm -f core conftest.err conftest.$ac_objext \ |
4668 |
– |
conftest$ac_exeext conftest.$ac_ext |
4669 |
– |
LIBS=$ac_check_lib_save_LIBS |
4670 |
– |
fi |
4671 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fmpi_MPI_Init" >&5 |
4672 |
– |
$as_echo "$ac_cv_lib_fmpi_MPI_Init" >&6; } |
4673 |
– |
if test "x$ac_cv_lib_fmpi_MPI_Init" = x""yes; then : |
4674 |
– |
MPILIBS="-lfmpi" |
4675 |
– |
fi |
4676 |
– |
|
4677 |
– |
fi |
4678 |
– |
if test x = x"$MPILIBS"; then |
4679 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpichf90" >&5 |
4680 |
– |
$as_echo_n "checking for MPI_Init in -lmpichf90... " >&6; } |
4681 |
– |
if test "${ac_cv_lib_mpichf90_MPI_Init+set}" = set; then : |
4682 |
– |
$as_echo_n "(cached) " >&6 |
4683 |
– |
else |
4684 |
– |
ac_check_lib_save_LIBS=$LIBS |
4685 |
– |
LIBS="-lmpichf90 $LIBS" |
4686 |
– |
cat > conftest.$ac_ext <<_ACEOF |
4687 |
– |
program main |
4688 |
– |
call MPI_Init |
4689 |
– |
end |
4690 |
– |
_ACEOF |
4691 |
– |
if ac_fn_fc_try_link "$LINENO"; then : |
4692 |
– |
ac_cv_lib_mpichf90_MPI_Init=yes |
4693 |
– |
else |
4694 |
– |
ac_cv_lib_mpichf90_MPI_Init=no |
4695 |
– |
fi |
4696 |
– |
rm -f core conftest.err conftest.$ac_objext \ |
4697 |
– |
conftest$ac_exeext conftest.$ac_ext |
4698 |
– |
LIBS=$ac_check_lib_save_LIBS |
4699 |
– |
fi |
4700 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpichf90_MPI_Init" >&5 |
4701 |
– |
$as_echo "$ac_cv_lib_mpichf90_MPI_Init" >&6; } |
4702 |
– |
if test "x$ac_cv_lib_mpichf90_MPI_Init" = x""yes; then : |
4703 |
– |
MPILIBS="-lmpichf90" |
4704 |
– |
fi |
4705 |
– |
|
4706 |
– |
fi |
4707 |
– |
|
4708 |
– |
if test x = x"$MPILIBS"; then |
4709 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpi" >&5 |
4710 |
– |
$as_echo_n "checking for MPI_Init in -lmpi... " >&6; } |
4711 |
– |
if test "${ac_cv_lib_mpi_MPI_Init+set}" = set; then : |
4712 |
– |
$as_echo_n "(cached) " >&6 |
4713 |
– |
else |
4714 |
– |
ac_check_lib_save_LIBS=$LIBS |
4715 |
– |
LIBS="-lmpi $LIBS" |
4716 |
– |
cat > conftest.$ac_ext <<_ACEOF |
4717 |
– |
program main |
4718 |
– |
call MPI_Init |
4719 |
– |
end |
4720 |
– |
_ACEOF |
4721 |
– |
if ac_fn_fc_try_link "$LINENO"; then : |
4722 |
– |
ac_cv_lib_mpi_MPI_Init=yes |
4723 |
– |
else |
4724 |
– |
ac_cv_lib_mpi_MPI_Init=no |
4725 |
– |
fi |
4726 |
– |
rm -f core conftest.err conftest.$ac_objext \ |
4727 |
– |
conftest$ac_exeext conftest.$ac_ext |
4728 |
– |
LIBS=$ac_check_lib_save_LIBS |
4729 |
– |
fi |
4730 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpi_MPI_Init" >&5 |
4731 |
– |
$as_echo "$ac_cv_lib_mpi_MPI_Init" >&6; } |
4732 |
– |
if test "x$ac_cv_lib_mpi_MPI_Init" = x""yes; then : |
4733 |
– |
MPILIBS="-lmpi" |
4734 |
– |
fi |
4735 |
– |
|
4736 |
– |
fi |
4737 |
– |
if test x = x"$MPILIBS"; then |
4738 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpich" >&5 |
4739 |
– |
$as_echo_n "checking for MPI_Init in -lmpich... " >&6; } |
4740 |
– |
if test "${ac_cv_lib_mpich_MPI_Init+set}" = set; then : |
4741 |
– |
$as_echo_n "(cached) " >&6 |
4742 |
– |
else |
4743 |
– |
ac_check_lib_save_LIBS=$LIBS |
4744 |
– |
LIBS="-lmpich $LIBS" |
4745 |
– |
cat > conftest.$ac_ext <<_ACEOF |
4746 |
– |
program main |
4747 |
– |
call MPI_Init |
4748 |
– |
end |
4749 |
– |
_ACEOF |
4750 |
– |
if ac_fn_fc_try_link "$LINENO"; then : |
4751 |
– |
ac_cv_lib_mpich_MPI_Init=yes |
4752 |
– |
else |
4753 |
– |
ac_cv_lib_mpich_MPI_Init=no |
4754 |
– |
fi |
4755 |
– |
rm -f core conftest.err conftest.$ac_objext \ |
4756 |
– |
conftest$ac_exeext conftest.$ac_ext |
4757 |
– |
LIBS=$ac_check_lib_save_LIBS |
4758 |
– |
fi |
4759 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpich_MPI_Init" >&5 |
4760 |
– |
$as_echo "$ac_cv_lib_mpich_MPI_Init" >&6; } |
4761 |
– |
if test "x$ac_cv_lib_mpich_MPI_Init" = x""yes; then : |
4762 |
– |
MPILIBS="-lmpich" |
4763 |
– |
fi |
4764 |
– |
|
4765 |
– |
fi |
4766 |
– |
|
4767 |
– |
if test x != x"$MPILIBS"; then |
4768 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpif.h" >&5 |
4769 |
– |
$as_echo_n "checking for mpif.h... " >&6; } |
4770 |
– |
cat > conftest.$ac_ext <<_ACEOF |
4771 |
– |
program main |
4772 |
– |
include 'mpif.h' |
4773 |
– |
end |
4774 |
– |
_ACEOF |
4775 |
– |
if ac_fn_fc_try_compile "$LINENO"; then : |
4776 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
4777 |
– |
$as_echo "yes" >&6; } |
4778 |
– |
else |
4779 |
– |
MPILIBS="" |
4780 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4781 |
– |
$as_echo "no" >&6; } |
4782 |
– |
fi |
4783 |
– |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4784 |
– |
fi |
4785 |
– |
|
4786 |
– |
FC="$ax_mpi_save_FC" |
4787 |
– |
|
4788 |
– |
|
4789 |
– |
|
4790 |
– |
# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: |
4791 |
– |
if test x = x"$MPILIBS"; then |
4792 |
– |
USE_MPI="no" |
4793 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No suitable Fortran MPI implementation found. openmd_MPI will not be built." >&5 |
4794 |
– |
$as_echo "$as_me: WARNING: No suitable Fortran MPI implementation found. openmd_MPI will not be built." >&2;} |
4222 |
|
: |
4223 |
|
else |
4224 |
|
USE_MPI="yes" |
4231 |
|
|
4232 |
|
CXX=$MPICXX |
4233 |
|
CC=$MPICC |
4807 |
– |
FC=$MPIFC |
4234 |
|
LIBS="$MPILIBS $LIBS" |
4235 |
|
|
4236 |
|
else |
4237 |
|
|
4238 |
|
CXX=$save_CXX |
4239 |
|
CC=$save_CC |
4814 |
– |
FC=$save_FC |
4240 |
|
LIBS=$save_LIBS |
4241 |
|
|
4242 |
|
|
4256 |
|
CPP= |
4257 |
|
fi |
4258 |
|
if test -z "$CPP"; then |
4259 |
< |
if test "${ac_cv_prog_CPP+set}" = set; then : |
4259 |
> |
if ${ac_cv_prog_CPP+:} false; then : |
4260 |
|
$as_echo_n "(cached) " >&6 |
4261 |
|
else |
4262 |
|
# Double quotes because CPP needs to be expanded |
4286 |
|
# Broken: fails on valid input. |
4287 |
|
continue |
4288 |
|
fi |
4289 |
< |
rm -f conftest.err conftest.$ac_ext |
4289 |
> |
rm -f conftest.err conftest.i conftest.$ac_ext |
4290 |
|
|
4291 |
|
# OK, works on sane cases. Now check whether nonexistent headers |
4292 |
|
# can be detected and how. |
4302 |
|
ac_preproc_ok=: |
4303 |
|
break |
4304 |
|
fi |
4305 |
< |
rm -f conftest.err conftest.$ac_ext |
4305 |
> |
rm -f conftest.err conftest.i conftest.$ac_ext |
4306 |
|
|
4307 |
|
done |
4308 |
|
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
4309 |
< |
rm -f conftest.err conftest.$ac_ext |
4309 |
> |
rm -f conftest.i conftest.err conftest.$ac_ext |
4310 |
|
if $ac_preproc_ok; then : |
4311 |
|
break |
4312 |
|
fi |
4345 |
|
# Broken: fails on valid input. |
4346 |
|
continue |
4347 |
|
fi |
4348 |
< |
rm -f conftest.err conftest.$ac_ext |
4348 |
> |
rm -f conftest.err conftest.i conftest.$ac_ext |
4349 |
|
|
4350 |
|
# OK, works on sane cases. Now check whether nonexistent headers |
4351 |
|
# can be detected and how. |
4361 |
|
ac_preproc_ok=: |
4362 |
|
break |
4363 |
|
fi |
4364 |
< |
rm -f conftest.err conftest.$ac_ext |
4364 |
> |
rm -f conftest.err conftest.i conftest.$ac_ext |
4365 |
|
|
4366 |
|
done |
4367 |
|
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
4368 |
< |
rm -f conftest.err conftest.$ac_ext |
4368 |
> |
rm -f conftest.i conftest.err conftest.$ac_ext |
4369 |
|
if $ac_preproc_ok; then : |
4370 |
|
|
4371 |
|
else |
4372 |
|
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4373 |
|
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
4374 |
< |
as_fn_error "C preprocessor \"$CPP\" fails sanity check |
4375 |
< |
See \`config.log' for more details." "$LINENO" 5; } |
4374 |
> |
as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
4375 |
> |
See \`config.log' for more details" "$LINENO" 5; } |
4376 |
|
fi |
4377 |
|
|
4378 |
< |
ac_ext=${ac_fc_srcext-f} |
4379 |
< |
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' |
4380 |
< |
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' |
4381 |
< |
ac_compiler_gnu=$ac_cv_fc_compiler_gnu |
4378 |
> |
ac_ext=c |
4379 |
> |
ac_cpp='$CPP $CPPFLAGS' |
4380 |
> |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
4381 |
> |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
4382 |
> |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
4383 |
|
|
4384 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
4385 |
|
$as_echo_n "checking for grep that handles long lines and -e... " >&6; } |
4386 |
< |
if test "${ac_cv_path_GREP+set}" = set; then : |
4386 |
> |
if ${ac_cv_path_GREP+:} false; then : |
4387 |
|
$as_echo_n "(cached) " >&6 |
4388 |
|
else |
4389 |
|
if test -z "$GREP"; then |
4432 |
|
done |
4433 |
|
IFS=$as_save_IFS |
4434 |
|
if test -z "$ac_cv_path_GREP"; then |
4435 |
< |
as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
4435 |
> |
as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
4436 |
|
fi |
4437 |
|
else |
4438 |
|
ac_cv_path_GREP=$GREP |
4446 |
|
|
4447 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
4448 |
|
$as_echo_n "checking for egrep... " >&6; } |
4449 |
< |
if test "${ac_cv_path_EGREP+set}" = set; then : |
4449 |
> |
if ${ac_cv_path_EGREP+:} false; then : |
4450 |
|
$as_echo_n "(cached) " >&6 |
4451 |
|
else |
4452 |
|
if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
4498 |
|
done |
4499 |
|
IFS=$as_save_IFS |
4500 |
|
if test -z "$ac_cv_path_EGREP"; then |
4501 |
< |
as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
4501 |
> |
as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
4502 |
|
fi |
4503 |
|
else |
4504 |
|
ac_cv_path_EGREP=$EGREP |
4526 |
|
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
4527 |
|
set x ${MAKE-make} |
4528 |
|
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
4529 |
< |
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then : |
4529 |
> |
if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : |
4530 |
|
$as_echo_n "(cached) " >&6 |
4531 |
|
else |
4532 |
|
cat >conftest.make <<\_ACEOF |
4534 |
|
all: |
4535 |
|
@echo '@@@%%%=$(MAKE)=@@@%%%' |
4536 |
|
_ACEOF |
4537 |
< |
# GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
4537 |
> |
# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
4538 |
|
case `${MAKE-make} -f conftest.make 2>/dev/null` in |
4539 |
|
*@@@%%%=?*=@@@%%%*) |
4540 |
|
eval ac_cv_prog_make_${ac_make}_set=yes;; |
4558 |
|
set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
4559 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4560 |
|
$as_echo_n "checking for $ac_word... " >&6; } |
4561 |
< |
if test "${ac_cv_prog_RANLIB+set}" = set; then : |
4561 |
> |
if ${ac_cv_prog_RANLIB+:} false; then : |
4562 |
|
$as_echo_n "(cached) " >&6 |
4563 |
|
else |
4564 |
|
if test -n "$RANLIB"; then |
4598 |
|
set dummy ranlib; ac_word=$2 |
4599 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4600 |
|
$as_echo_n "checking for $ac_word... " >&6; } |
4601 |
< |
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : |
4601 |
> |
if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
4602 |
|
$as_echo_n "(cached) " >&6 |
4603 |
|
else |
4604 |
|
if test -n "$ac_ct_RANLIB"; then |
4650 |
|
set dummy perl; ac_word=$2 |
4651 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4652 |
|
$as_echo_n "checking for $ac_word... " >&6; } |
4653 |
< |
if test "${ac_cv_path_PERLINTERP+set}" = set; then : |
4653 |
> |
if ${ac_cv_path_PERLINTERP+:} false; then : |
4654 |
|
$as_echo_n "(cached) " >&6 |
4655 |
|
else |
4656 |
|
case $PERLINTERP in |
4700 |
|
|
4701 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether explicit instead of detected sharpbang is to be used" >&5 |
4702 |
|
$as_echo_n "checking whether explicit instead of detected sharpbang is to be used... " >&6; } |
4703 |
< |
if test "${ax_cv_opt_perl_shebang+set}" = set; then : |
4703 |
> |
if ${ax_cv_opt_perl_shebang+:} false; then : |
4704 |
|
$as_echo_n "(cached) " >&6 |
4705 |
|
else |
4706 |
|
case "$opt_perl_shebang" in |
4726 |
|
negclass="[^']"; # must leave this comment: m4 will remove the outer brackets for us, heheh |
4727 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for kernel sharpbang invocation to start perl" >&5 |
4728 |
|
$as_echo_n "checking for kernel sharpbang invocation to start perl... " >&6; } |
4729 |
< |
if test "${ac_cv_sys_kernshrpbang_perl+set}" = set; then : |
4729 |
> |
if ${ac_cv_sys_kernshrpbang_perl+:} false; then : |
4730 |
|
$as_echo_n "(cached) " >&6 |
4731 |
|
else |
4732 |
|
_somian_kspb_perl=`echo "$_somian_shbangperl" | sed -ne"s|.*='\($negclass*\)';$|\1|p"` |
4782 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
4783 |
|
$as_echo_n "checking for a BSD-compatible install... " >&6; } |
4784 |
|
if test -z "$INSTALL"; then |
4785 |
< |
if test "${ac_cv_path_install+set}" = set; then : |
4785 |
> |
if ${ac_cv_path_install+:} false; then : |
4786 |
|
$as_echo_n "(cached) " >&6 |
4787 |
|
else |
4788 |
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4867 |
|
set dummy ar; ac_word=$2 |
4868 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4869 |
|
$as_echo_n "checking for $ac_word... " >&6; } |
4870 |
< |
if test "${ac_cv_prog_AR+set}" = set; then : |
4870 |
> |
if ${ac_cv_prog_AR+:} false; then : |
4871 |
|
$as_echo_n "(cached) " >&6 |
4872 |
|
else |
4873 |
|
if test -n "$AR"; then |
4966 |
|
:end' >>confcache |
4967 |
|
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
4968 |
|
if test -w "$cache_file"; then |
4969 |
< |
test "x$cache_file" != "x/dev/null" && |
4969 |
> |
if test "x$cache_file" != "x/dev/null"; then |
4970 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
4971 |
|
$as_echo "$as_me: updating cache $cache_file" >&6;} |
4972 |
< |
cat confcache >$cache_file |
4972 |
> |
if test ! -f "$cache_file" || test -h "$cache_file"; then |
4973 |
> |
cat confcache >"$cache_file" |
4974 |
> |
else |
4975 |
> |
case $cache_file in #( |
4976 |
> |
*/* | ?:*) |
4977 |
> |
mv -f confcache "$cache_file"$$ && |
4978 |
> |
mv -f "$cache_file"$$ "$cache_file" ;; #( |
4979 |
> |
*) |
4980 |
> |
mv -f confcache "$cache_file" ;; |
4981 |
> |
esac |
4982 |
> |
fi |
4983 |
> |
fi |
4984 |
|
else |
4985 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
4986 |
|
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
4993 |
|
set dummy ps; ac_word=$2 |
4994 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4995 |
|
$as_echo_n "checking for $ac_word... " >&6; } |
4996 |
< |
if test "${ac_cv_path_PS+set}" = set; then : |
4996 |
> |
if ${ac_cv_path_PS+:} false; then : |
4997 |
|
$as_echo_n "(cached) " >&6 |
4998 |
|
else |
4999 |
|
case $PS in |
5031 |
|
|
5032 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for POSIX or BSD ps syntax" >&5 |
5033 |
|
$as_echo_n "checking for POSIX or BSD ps syntax... " >&6; } |
5034 |
< |
if test "${ac_cv_prog_ps_syntax+set}" = set; then : |
5034 |
> |
if ${ac_cv_prog_ps_syntax+:} false; then : |
5035 |
|
$as_echo_n "(cached) " >&6 |
5036 |
|
else |
5037 |
|
|
5051 |
|
if test "$ac_cv_prog_ps_ef" = yes; then |
5052 |
|
ac_cv_prog_ps_syntax=POSIX |
5053 |
|
else |
5054 |
< |
as_fn_error "Could not determine ps syntax" "$LINENO" 5 |
5054 |
> |
as_fn_error $? "Could not determine ps syntax" "$LINENO" 5 |
5055 |
|
fi |
5056 |
|
fi |
5057 |
|
|
5073 |
|
$as_echo "#define PSTYPE_IS_POSIX 1" >>confdefs.h |
5074 |
|
|
5075 |
|
else |
5076 |
< |
as_fn_error "Unknown ps syntax type!" "$LINENO" 5 |
5076 |
> |
as_fn_error $? "Unknown ps syntax type!" "$LINENO" 5 |
5077 |
|
fi |
5078 |
|
fi |
5079 |
|
|
5080 |
< |
ac_ext=${ac_fc_srcext-f} |
5081 |
< |
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' |
5082 |
< |
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' |
5083 |
< |
ac_compiler_gnu=$ac_cv_fc_compiler_gnu |
5080 |
> |
ac_ext=c |
5081 |
> |
ac_cpp='$CPP $CPPFLAGS' |
5082 |
> |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
5083 |
> |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
5084 |
> |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
5085 |
> |
|
5086 |
|
|
5087 |
< |
ac_ext=${ac_fc_srcext-f} |
5088 |
< |
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' |
5089 |
< |
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' |
5651 |
< |
ac_compiler_gnu=$ac_cv_fc_compiler_gnu |
5652 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran flag to compile .F90 files" >&5 |
5653 |
< |
$as_echo_n "checking for Fortran flag to compile .F90 files... " >&6; } |
5654 |
< |
if test "${ac_cv_fc_srcext_F90+set}" = set; then : |
5087 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for asin in -lm" >&5 |
5088 |
> |
$as_echo_n "checking for asin in -lm... " >&6; } |
5089 |
> |
if ${ac_cv_lib_m_asin+:} false; then : |
5090 |
|
$as_echo_n "(cached) " >&6 |
5091 |
|
else |
5092 |
< |
ac_ext=F90 |
5093 |
< |
ac_fcflags_srcext_save=$ac_fcflags_srcext |
5094 |
< |
ac_fcflags_srcext= |
5095 |
< |
ac_cv_fc_srcext_F90=unknown |
5661 |
< |
for ac_flag in none -qsuffix=f=F90 -Tf; do |
5662 |
< |
test "x$ac_flag" != xnone && ac_fcflags_srcext="$ac_flag" |
5663 |
< |
cat > conftest.$ac_ext <<_ACEOF |
5664 |
< |
program main |
5092 |
> |
ac_check_lib_save_LIBS=$LIBS |
5093 |
> |
LIBS="-lm $LIBS" |
5094 |
> |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5095 |
> |
/* end confdefs.h. */ |
5096 |
|
|
5097 |
< |
end |
5097 |
> |
/* Override any GCC internal prototype to avoid an error. |
5098 |
> |
Use char because int might match the return type of a GCC |
5099 |
> |
builtin and then its argument prototype would still apply. */ |
5100 |
> |
#ifdef __cplusplus |
5101 |
> |
extern "C" |
5102 |
> |
#endif |
5103 |
> |
char asin (); |
5104 |
> |
int |
5105 |
> |
main () |
5106 |
> |
{ |
5107 |
> |
return asin (); |
5108 |
> |
; |
5109 |
> |
return 0; |
5110 |
> |
} |
5111 |
|
_ACEOF |
5112 |
< |
if ac_fn_fc_try_compile "$LINENO"; then : |
5113 |
< |
ac_cv_fc_srcext_F90=$ac_flag; break |
5112 |
> |
if ac_fn_c_try_link "$LINENO"; then : |
5113 |
> |
ac_cv_lib_m_asin=yes |
5114 |
> |
else |
5115 |
> |
ac_cv_lib_m_asin=no |
5116 |
|
fi |
5117 |
< |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5118 |
< |
done |
5119 |
< |
rm -f conftest.$ac_objext conftest.F90 |
5674 |
< |
ac_fcflags_srcext=$ac_fcflags_srcext_save |
5675 |
< |
|
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 |
5677 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_srcext_F90" >&5 |
5678 |
– |
$as_echo "$ac_cv_fc_srcext_F90" >&6; } |
5679 |
– |
if test "x$ac_cv_fc_srcext_F90" = xunknown; then |
5680 |
– |
as_fn_error "Fortran could not compile .F90 files" "$LINENO" 5 |
5681 |
– |
else |
5682 |
– |
ac_fc_srcext=F90 |
5683 |
– |
if test "x$ac_cv_fc_srcext_F90" = xnone; then |
5684 |
– |
ac_fcflags_srcext="" |
5685 |
– |
FCFLAGS_F90="" |
5686 |
– |
else |
5687 |
– |
ac_fcflags_srcext=$ac_cv_fc_srcext_F90 |
5688 |
– |
FCFLAGS_F90=$ac_cv_fc_srcext_F90 |
5689 |
– |
fi |
5690 |
– |
|
5691 |
– |
|
5692 |
– |
fi |
5693 |
– |
ac_ext=${ac_fc_srcext-f} |
5694 |
– |
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' |
5695 |
– |
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' |
5696 |
– |
ac_compiler_gnu=$ac_cv_fc_compiler_gnu |
5697 |
– |
|
5698 |
– |
|
5699 |
– |
|
5700 |
– |
|
5701 |
– |
|
5702 |
– |
# Try to determine native compiler flags that allow us to use F90 suffix |
5703 |
– |
# for preprocessed f90 source. |
5704 |
– |
|
5705 |
– |
if test "$ac_test_PREPFLAG" != "set"; then |
5706 |
– |
PREPFLAG="" |
5707 |
– |
case "${host_cpu}-${host_os}" in |
5708 |
– |
|
5709 |
– |
*linux*) if test "$FC" = ifc -o "$FC" = ifort; then |
5710 |
– |
PREPFLAG="-fpp1 " |
5711 |
– |
fi;; |
5712 |
– |
*aix*) if test "$FC" = xlf90 -o "$FC" = f90 -o "$FC" = xlf95; then |
5713 |
– |
PREPFLAG="-qsuffix=cpp=F90 " |
5714 |
– |
fi;; |
5715 |
– |
*darwin*) |
5716 |
– |
if test "$FC" = f90 -o "$FC" = xlf90 -o "$FC" = xlf95; then |
5717 |
– |
PREPFLAG="-qsuffix=cpp=F90 " |
5718 |
– |
fi;; |
5719 |
– |
esac |
5720 |
– |
|
5721 |
– |
if test -z "$PREPFLAG"; then |
5722 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Using empty PREPFLAG\"" >&5 |
5723 |
– |
$as_echo "$as_me: WARNING: \"Using empty PREPFLAG\"" >&2;} |
5724 |
– |
PREPFLAG="" |
5725 |
– |
fi |
5726 |
– |
|
5727 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to make sure F90 preprocessor flag works" >&5 |
5728 |
– |
$as_echo_n "checking to make sure F90 preprocessor flag works... " >&6; } |
5729 |
– |
|
5730 |
– |
ac_ext=${ac_fc_srcext-f} |
5731 |
– |
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' |
5732 |
– |
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' |
5733 |
– |
ac_compiler_gnu=$ac_cv_fc_compiler_gnu |
5734 |
– |
|
5735 |
– |
ac_save_ext=$ac_ext |
5736 |
– |
ac_ext=F90 |
5737 |
– |
ac_save_FCFLAGS_SRCEXT=$FCFLAGS_SRCEXT |
5738 |
– |
|
5739 |
– |
if test "$PREPFLAG"; then : |
5740 |
– |
FCFLAGS_SRCEXT="${PREPFLAG}" |
5741 |
– |
fi |
5742 |
– |
cat > conftest.$ac_ext <<_ACEOF |
5743 |
– |
|
5744 |
– |
|
5745 |
– |
program conftest |
5746 |
– |
integer :: i |
5747 |
– |
i = 1 |
5748 |
– |
end program conftest |
5749 |
– |
|
5750 |
– |
_ACEOF |
5751 |
– |
if ac_fn_fc_try_compile "$LINENO"; then : |
5752 |
– |
prepflagworks=1 |
5753 |
– |
else |
5754 |
– |
prepflagworks=0 |
5755 |
– |
fi |
5756 |
– |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5757 |
– |
|
5758 |
– |
FCFLAGS_SRCEXT=$ac_save_FCFLAGS_SRCEXT |
5759 |
– |
ac_ext=$ac_save_ext |
5760 |
– |
ac_ext=${ac_fc_srcext-f} |
5761 |
– |
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' |
5762 |
– |
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' |
5763 |
– |
ac_compiler_gnu=$ac_cv_fc_compiler_gnu |
5764 |
– |
|
5765 |
– |
|
5766 |
– |
if test "$prepflagworks" = 1; then |
5767 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
5768 |
– |
$as_echo "yes" >&6; } |
5769 |
– |
FCFLAGS_SRCEXT="${PREPFLAG}" |
5770 |
– |
|
5771 |
– |
else |
5772 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5773 |
– |
$as_echo "no" >&6; } |
5774 |
– |
as_fn_error "Can't figure out working Fortran90 preprocessor flag" "$LINENO" 5 |
5775 |
– |
fi |
5776 |
– |
fi |
5777 |
– |
|
5778 |
– |
|
5779 |
– |
|
5780 |
– |
|
5781 |
– |
|
5782 |
– |
# Try to determine native compiler flags that allow us to use F90 suffix |
5783 |
– |
# for preprocessed f90 source with -D type defines |
5784 |
– |
|
5785 |
– |
if test "$ac_test_PREPDEFFLAG" != "set"; then |
5786 |
– |
PREPDEFFLAG="" |
5787 |
– |
case "${host_cpu}-${host_os}" in |
5788 |
– |
|
5789 |
– |
*linux*) if test "$FC" = ifc -o "$FC" = ifort; then |
5790 |
– |
PREPDEFFLAG=" " |
5791 |
– |
fi;; |
5792 |
– |
*aix*) if test "$FC" = xlf90 -o "$FC" = f90 -o "$FC" = xlf95; then |
5793 |
– |
PREPDEFFLAG="-WF," |
5794 |
– |
fi;; |
5795 |
– |
*darwin*) |
5796 |
– |
if test "$FC" = f90 -o "$FC" = xlf90 -o "$FC" = xlf95; then |
5797 |
– |
PREPDEFFLAG="-WF," |
5798 |
– |
fi;; |
5799 |
– |
esac |
5800 |
– |
|
5801 |
– |
if test -z "$PREPDEFFLAG"; then |
5802 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Using empty PREPDEFFLAG\"" >&5 |
5803 |
– |
$as_echo "$as_me: WARNING: \"Using empty PREPDEFFLAG\"" >&2;} |
5804 |
– |
PREPDEFFLAG=" " |
5805 |
– |
fi |
5806 |
– |
|
5807 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to make sure F90 preprocessor define flag works" >&5 |
5808 |
– |
$as_echo_n "checking to make sure F90 preprocessor define flag works... " >&6; } |
5809 |
– |
|
5810 |
– |
ac_ext=${ac_fc_srcext-f} |
5811 |
– |
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' |
5812 |
– |
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' |
5813 |
– |
ac_compiler_gnu=$ac_cv_fc_compiler_gnu |
5814 |
– |
|
5815 |
– |
ac_save_ext=$ac_ext |
5816 |
– |
ac_ext=F90 |
5817 |
– |
ac_save_FCFLAGS=$FCFLAGS |
5818 |
– |
|
5819 |
– |
if test "$PREPDEFFLAG"; then : |
5820 |
– |
FCFLAGS="${FCFLAGS} ${PREPDEFFLAG}-DTEST" |
5821 |
– |
fi |
5822 |
– |
cat > conftest.$ac_ext <<_ACEOF |
5823 |
– |
|
5824 |
– |
|
5825 |
– |
program conftest |
5826 |
– |
integer :: i |
5827 |
– |
#ifdef TEST |
5828 |
– |
i = 1 |
5829 |
– |
#else |
5830 |
– |
choke me |
5831 |
– |
#endif |
5832 |
– |
end program conftest |
5833 |
– |
|
5834 |
– |
_ACEOF |
5835 |
– |
if ac_fn_fc_try_compile "$LINENO"; then : |
5836 |
– |
prepdefflagworks=1 |
5837 |
– |
else |
5838 |
– |
prepdefflagworks=0 |
5839 |
– |
fi |
5840 |
– |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5841 |
– |
|
5842 |
– |
FCFLAGS=$ac_save_FCFLAGS |
5843 |
– |
ac_ext=$ac_save_ext |
5844 |
– |
ac_ext=${ac_fc_srcext-f} |
5845 |
– |
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' |
5846 |
– |
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' |
5847 |
– |
ac_compiler_gnu=$ac_cv_fc_compiler_gnu |
5848 |
– |
|
5849 |
– |
|
5850 |
– |
if test "$prepdefflagworks" = 1; then |
5851 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
5852 |
– |
$as_echo "yes" >&6; } |
5853 |
– |
|
5854 |
– |
else |
5855 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5856 |
– |
$as_echo "no" >&6; } |
5857 |
– |
as_fn_error "Can't figure out working Fortran90 preprocessor define flag" "$LINENO" 5 |
5858 |
– |
fi |
5859 |
– |
fi |
5860 |
– |
|
5861 |
– |
ac_ext=${ac_fc_srcext-f} |
5862 |
– |
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' |
5863 |
– |
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' |
5864 |
– |
ac_compiler_gnu=$ac_cv_fc_compiler_gnu |
5865 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get verbose linking output from $FC" >&5 |
5866 |
– |
$as_echo_n "checking how to get verbose linking output from $FC... " >&6; } |
5867 |
– |
if test "${ac_cv_prog_fc_v+set}" = set; then : |
5868 |
– |
$as_echo_n "(cached) " >&6 |
5869 |
– |
else |
5870 |
– |
cat > conftest.$ac_ext <<_ACEOF |
5871 |
– |
program main |
5872 |
– |
|
5873 |
– |
end |
5874 |
– |
_ACEOF |
5875 |
– |
if ac_fn_fc_try_compile "$LINENO"; then : |
5876 |
– |
ac_cv_prog_fc_v= |
5877 |
– |
# Try some options frequently used verbose output |
5878 |
– |
for ac_verb in -v -verbose --verbose -V -\#\#\#; do |
5879 |
– |
cat > conftest.$ac_ext <<_ACEOF |
5880 |
– |
program main |
5881 |
– |
|
5882 |
– |
end |
5883 |
– |
_ACEOF |
5884 |
– |
|
5885 |
– |
# Compile and link our simple test program by passing a flag (argument |
5886 |
– |
# 1 to this macro) to the Fortran compiler in order to get |
5887 |
– |
# "verbose" output that we can then parse for the Fortran linker |
5888 |
– |
# flags. |
5889 |
– |
ac_save_FCFLAGS=$FCFLAGS |
5890 |
– |
FCFLAGS="$FCFLAGS $ac_verb" |
5891 |
– |
eval "set x $ac_link" |
5892 |
– |
shift |
5893 |
– |
$as_echo "$as_me:${as_lineno-$LINENO}: $*" >&5 |
5894 |
– |
# gfortran 4.3 outputs lines setting COLLECT_GCC_OPTIONS, COMPILER_PATH, |
5895 |
– |
# LIBRARY_PATH; skip all such settings. |
5896 |
– |
ac_fc_v_output=`eval $ac_link 5>&1 2>&1 | |
5897 |
– |
grep -v 'Driving:' | grep -v "^[_$as_cr_Letters][_$as_cr_alnum]*="` |
5898 |
– |
$as_echo "$ac_fc_v_output" >&5 |
5899 |
– |
FCFLAGS=$ac_save_FCFLAGS |
5900 |
– |
|
5901 |
– |
rm -rf conftest* |
5902 |
– |
|
5903 |
– |
# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where |
5904 |
– |
# /foo, /bar, and /baz are search directories for the Fortran linker. |
5905 |
– |
# Here, we change these into -L/foo -L/bar -L/baz (and put it first): |
5906 |
– |
ac_fc_v_output="`echo $ac_fc_v_output | |
5907 |
– |
grep 'LPATH is:' | |
5908 |
– |
sed 's|.*LPATH is\(: *[^ ]*\).*|\1|;s|: */| -L/|g'` $ac_fc_v_output" |
5909 |
– |
|
5910 |
– |
# FIXME: we keep getting bitten by quoted arguments; a more general fix |
5911 |
– |
# that detects unbalanced quotes in FLIBS should be implemented |
5912 |
– |
# and (ugh) tested at some point. |
5913 |
– |
case $ac_fc_v_output in |
5914 |
– |
# If we are using xlf then replace all the commas with spaces. |
5915 |
– |
*xlfentry*) |
5916 |
– |
ac_fc_v_output=`echo $ac_fc_v_output | sed 's/,/ /g'` ;; |
5917 |
– |
|
5918 |
– |
# With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted |
5919 |
– |
# $LIBS confuse us, and the libraries appear later in the output anyway). |
5920 |
– |
*mGLOB_options_string*) |
5921 |
– |
ac_fc_v_output=`echo $ac_fc_v_output | sed 's/"-mGLOB[^"]*"/ /g'` ;; |
5922 |
– |
|
5923 |
– |
# Portland Group compiler has singly- or doubly-quoted -cmdline argument |
5924 |
– |
# Singly-quoted arguments were reported for versions 5.2-4 and 6.0-4. |
5925 |
– |
# Doubly-quoted arguments were reported for "PGF90/x86 Linux/x86 5.0-2". |
5926 |
– |
*-cmdline\ * | *-ignore\ * | *-def\ *) |
5927 |
– |
ac_fc_v_output=`echo $ac_fc_v_output | sed "\ |
5928 |
– |
s/-cmdline *'[^']*'/ /g; s/-cmdline *\"[^\"]*\"/ /g |
5929 |
– |
s/-ignore *'[^']*'/ /g; s/-ignore *\"[^\"]*\"/ /g |
5930 |
– |
s/-def *'[^']*'/ /g; s/-def *\"[^\"]*\"/ /g"` ;; |
5931 |
– |
|
5932 |
– |
# If we are using Cray Fortran then delete quotes. |
5933 |
– |
*cft90*) |
5934 |
– |
ac_fc_v_output=`echo $ac_fc_v_output | sed 's/"//g'` ;; |
5935 |
– |
esac |
5936 |
– |
|
5937 |
– |
|
5938 |
– |
# look for -l* and *.a constructs in the output |
5939 |
– |
for ac_arg in $ac_fc_v_output; do |
5940 |
– |
case $ac_arg in |
5941 |
– |
[\\/]*.a | ?:[\\/]*.a | -[lLRu]*) |
5942 |
– |
ac_cv_prog_fc_v=$ac_verb |
5943 |
– |
break 2 ;; |
5944 |
– |
esac |
5945 |
– |
done |
5946 |
– |
done |
5947 |
– |
if test -z "$ac_cv_prog_fc_v"; then |
5948 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine how to obtain linking information from $FC" >&5 |
5949 |
– |
$as_echo "$as_me: WARNING: cannot determine how to obtain linking information from $FC" >&2;} |
5950 |
– |
fi |
5951 |
– |
else |
5952 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compilation failed" >&5 |
5953 |
– |
$as_echo "$as_me: WARNING: compilation failed" >&2;} |
5954 |
– |
fi |
5955 |
– |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5956 |
– |
|
5957 |
– |
fi |
5958 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_v" >&5 |
5959 |
– |
$as_echo "$ac_cv_prog_fc_v" >&6; } |
5960 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran libraries of $FC" >&5 |
5961 |
– |
$as_echo_n "checking for Fortran libraries of $FC... " >&6; } |
5962 |
– |
if test "${ac_cv_fc_libs+set}" = set; then : |
5963 |
– |
$as_echo_n "(cached) " >&6 |
5964 |
– |
else |
5965 |
– |
if test "x$FCLIBS" != "x"; then |
5966 |
– |
ac_cv_fc_libs="$FCLIBS" # Let the user override the test. |
5967 |
– |
else |
5968 |
– |
|
5969 |
– |
cat > conftest.$ac_ext <<_ACEOF |
5970 |
– |
program main |
5971 |
– |
|
5972 |
– |
end |
5973 |
– |
_ACEOF |
5974 |
– |
|
5975 |
– |
# Compile and link our simple test program by passing a flag (argument |
5976 |
– |
# 1 to this macro) to the Fortran compiler in order to get |
5977 |
– |
# "verbose" output that we can then parse for the Fortran linker |
5978 |
– |
# flags. |
5979 |
– |
ac_save_FCFLAGS=$FCFLAGS |
5980 |
– |
FCFLAGS="$FCFLAGS $ac_cv_prog_fc_v" |
5981 |
– |
eval "set x $ac_link" |
5982 |
– |
shift |
5983 |
– |
$as_echo "$as_me:${as_lineno-$LINENO}: $*" >&5 |
5984 |
– |
# gfortran 4.3 outputs lines setting COLLECT_GCC_OPTIONS, COMPILER_PATH, |
5985 |
– |
# LIBRARY_PATH; skip all such settings. |
5986 |
– |
ac_fc_v_output=`eval $ac_link 5>&1 2>&1 | |
5987 |
– |
grep -v 'Driving:' | grep -v "^[_$as_cr_Letters][_$as_cr_alnum]*="` |
5988 |
– |
$as_echo "$ac_fc_v_output" >&5 |
5989 |
– |
FCFLAGS=$ac_save_FCFLAGS |
5990 |
– |
|
5991 |
– |
rm -rf conftest* |
5992 |
– |
|
5993 |
– |
# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where |
5994 |
– |
# /foo, /bar, and /baz are search directories for the Fortran linker. |
5995 |
– |
# Here, we change these into -L/foo -L/bar -L/baz (and put it first): |
5996 |
– |
ac_fc_v_output="`echo $ac_fc_v_output | |
5997 |
– |
grep 'LPATH is:' | |
5998 |
– |
sed 's|.*LPATH is\(: *[^ ]*\).*|\1|;s|: */| -L/|g'` $ac_fc_v_output" |
5999 |
– |
|
6000 |
– |
# FIXME: we keep getting bitten by quoted arguments; a more general fix |
6001 |
– |
# that detects unbalanced quotes in FLIBS should be implemented |
6002 |
– |
# and (ugh) tested at some point. |
6003 |
– |
case $ac_fc_v_output in |
6004 |
– |
# If we are using xlf then replace all the commas with spaces. |
6005 |
– |
*xlfentry*) |
6006 |
– |
ac_fc_v_output=`echo $ac_fc_v_output | sed 's/,/ /g'` ;; |
6007 |
– |
|
6008 |
– |
# With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted |
6009 |
– |
# $LIBS confuse us, and the libraries appear later in the output anyway). |
6010 |
– |
*mGLOB_options_string*) |
6011 |
– |
ac_fc_v_output=`echo $ac_fc_v_output | sed 's/"-mGLOB[^"]*"/ /g'` ;; |
6012 |
– |
|
6013 |
– |
# Portland Group compiler has singly- or doubly-quoted -cmdline argument |
6014 |
– |
# Singly-quoted arguments were reported for versions 5.2-4 and 6.0-4. |
6015 |
– |
# Doubly-quoted arguments were reported for "PGF90/x86 Linux/x86 5.0-2". |
6016 |
– |
*-cmdline\ * | *-ignore\ * | *-def\ *) |
6017 |
– |
ac_fc_v_output=`echo $ac_fc_v_output | sed "\ |
6018 |
– |
s/-cmdline *'[^']*'/ /g; s/-cmdline *\"[^\"]*\"/ /g |
6019 |
– |
s/-ignore *'[^']*'/ /g; s/-ignore *\"[^\"]*\"/ /g |
6020 |
– |
s/-def *'[^']*'/ /g; s/-def *\"[^\"]*\"/ /g"` ;; |
6021 |
– |
|
6022 |
– |
# If we are using Cray Fortran then delete quotes. |
6023 |
– |
*cft90*) |
6024 |
– |
ac_fc_v_output=`echo $ac_fc_v_output | sed 's/"//g'` ;; |
6025 |
– |
esac |
6026 |
– |
|
6027 |
– |
|
6028 |
– |
|
6029 |
– |
ac_cv_fc_libs= |
6030 |
– |
|
6031 |
– |
# Save positional arguments (if any) |
6032 |
– |
ac_save_positional="$@" |
6033 |
– |
|
6034 |
– |
set X $ac_fc_v_output |
6035 |
– |
while test $# != 1; do |
6036 |
– |
shift |
6037 |
– |
ac_arg=$1 |
6038 |
– |
case $ac_arg in |
6039 |
– |
[\\/]*.a | ?:[\\/]*.a) |
6040 |
– |
ac_exists=false |
6041 |
– |
for ac_i in $ac_cv_fc_libs; do |
6042 |
– |
if test x"$ac_arg" = x"$ac_i"; then |
6043 |
– |
ac_exists=true |
6044 |
– |
break |
6045 |
– |
fi |
6046 |
– |
done |
6047 |
– |
|
6048 |
– |
if test x"$ac_exists" = xtrue; then : |
6049 |
– |
|
6050 |
– |
else |
6051 |
– |
ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg" |
6052 |
– |
fi |
6053 |
– |
;; |
6054 |
– |
-bI:*) |
6055 |
– |
ac_exists=false |
6056 |
– |
for ac_i in $ac_cv_fc_libs; do |
6057 |
– |
if test x"$ac_arg" = x"$ac_i"; then |
6058 |
– |
ac_exists=true |
6059 |
– |
break |
6060 |
– |
fi |
6061 |
– |
done |
6062 |
– |
|
6063 |
– |
if test x"$ac_exists" = xtrue; then : |
6064 |
– |
|
6065 |
– |
else |
6066 |
– |
if test "$ac_compiler_gnu" = yes; then |
6067 |
– |
for ac_link_opt in $ac_arg; do |
6068 |
– |
ac_cv_fc_libs="$ac_cv_fc_libs -Xlinker $ac_link_opt" |
6069 |
– |
done |
6070 |
– |
else |
6071 |
– |
ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg" |
6072 |
– |
fi |
6073 |
– |
fi |
6074 |
– |
;; |
6075 |
– |
# Ignore these flags. |
6076 |
– |
-lang* | -lcrt*.o | -lc | -lgcc* | -lSystem | -libmil | -little \ |
6077 |
– |
|-LANG:=* | -LIST:* | -LNO:*) |
6078 |
– |
;; |
6079 |
– |
-lkernel32) |
6080 |
– |
test x"$CYGWIN" != xyes && ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg" |
6081 |
– |
;; |
6082 |
– |
-[LRuYz]) |
6083 |
– |
# These flags, when seen by themselves, take an argument. |
6084 |
– |
# We remove the space between option and argument and re-iterate |
6085 |
– |
# unless we find an empty arg or a new option (starting with -) |
6086 |
– |
case $2 in |
6087 |
– |
"" | -*);; |
6088 |
– |
*) |
6089 |
– |
ac_arg="$ac_arg$2" |
6090 |
– |
shift; shift |
6091 |
– |
set X $ac_arg "$@" |
6092 |
– |
;; |
6093 |
– |
esac |
6094 |
– |
;; |
6095 |
– |
-YP,*) |
6096 |
– |
for ac_j in `$as_echo "$ac_arg" | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do |
6097 |
– |
ac_exists=false |
6098 |
– |
for ac_i in $ac_cv_fc_libs; do |
6099 |
– |
if test x"$ac_j" = x"$ac_i"; then |
6100 |
– |
ac_exists=true |
6101 |
– |
break |
6102 |
– |
fi |
6103 |
– |
done |
6104 |
– |
|
6105 |
– |
if test x"$ac_exists" = xtrue; then : |
6106 |
– |
|
6107 |
– |
else |
6108 |
– |
ac_arg="$ac_arg $ac_j" |
6109 |
– |
ac_cv_fc_libs="$ac_cv_fc_libs $ac_j" |
6110 |
– |
fi |
6111 |
– |
done |
6112 |
– |
;; |
6113 |
– |
-[lLR]*) |
6114 |
– |
ac_exists=false |
6115 |
– |
for ac_i in $ac_cv_fc_libs; do |
6116 |
– |
if test x"$ac_arg" = x"$ac_i"; then |
6117 |
– |
ac_exists=true |
6118 |
– |
break |
6119 |
– |
fi |
6120 |
– |
done |
6121 |
– |
|
6122 |
– |
if test x"$ac_exists" = xtrue; then : |
6123 |
– |
|
6124 |
– |
else |
6125 |
– |
ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg" |
6126 |
– |
fi |
6127 |
– |
;; |
6128 |
– |
-zallextract*| -zdefaultextract) |
6129 |
– |
ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg" |
6130 |
– |
;; |
6131 |
– |
# Ignore everything else. |
6132 |
– |
esac |
6133 |
– |
done |
6134 |
– |
# restore positional arguments |
6135 |
– |
set X $ac_save_positional; shift |
6136 |
– |
|
6137 |
– |
# We only consider "LD_RUN_PATH" on Solaris systems. If this is seen, |
6138 |
– |
# then we insist that the "run path" must be an absolute path (i.e. it |
6139 |
– |
# must begin with a "/"). |
6140 |
– |
case `(uname -sr) 2>/dev/null` in |
6141 |
– |
"SunOS 5"*) |
6142 |
– |
ac_ld_run_path=`$as_echo "$ac_fc_v_output" | |
6143 |
– |
sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'` |
6144 |
– |
test "x$ac_ld_run_path" != x && |
6145 |
– |
if test "$ac_compiler_gnu" = yes; then |
6146 |
– |
for ac_link_opt in $ac_ld_run_path; do |
6147 |
– |
ac_cv_fc_libs="$ac_cv_fc_libs -Xlinker $ac_link_opt" |
6148 |
– |
done |
6149 |
– |
else |
6150 |
– |
ac_cv_fc_libs="$ac_cv_fc_libs $ac_ld_run_path" |
6151 |
– |
fi |
6152 |
– |
;; |
6153 |
– |
esac |
6154 |
– |
fi # test "x$[]_AC_LANG_PREFIX[]LIBS" = "x" |
6155 |
– |
|
6156 |
– |
fi |
6157 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_libs" >&5 |
6158 |
– |
$as_echo "$ac_cv_fc_libs" >&6; } |
6159 |
– |
FCLIBS="$ac_cv_fc_libs" |
6160 |
– |
|
6161 |
– |
|
6162 |
– |
ac_ext=${ac_fc_srcext-f} |
6163 |
– |
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' |
6164 |
– |
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' |
6165 |
– |
ac_compiler_gnu=$ac_cv_fc_compiler_gnu |
6166 |
– |
|
6167 |
– |
ac_ext=${ac_fc_srcext-f} |
6168 |
– |
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' |
6169 |
– |
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' |
6170 |
– |
ac_compiler_gnu=$ac_cv_fc_compiler_gnu |
6171 |
– |
|
6172 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dummy main to link with Fortran libraries" >&5 |
6173 |
– |
$as_echo_n "checking for dummy main to link with Fortran libraries... " >&6; } |
6174 |
– |
if test "${ac_cv_fc_dummy_main+set}" = set; then : |
6175 |
– |
$as_echo_n "(cached) " >&6 |
6176 |
– |
else |
6177 |
– |
ac_fc_dm_save_LIBS=$LIBS |
6178 |
– |
LIBS="$LIBS $FCLIBS" |
6179 |
– |
ac_fortran_dm_var=FC_DUMMY_MAIN |
6180 |
– |
ac_ext=c |
6181 |
– |
ac_cpp='$CPP $CPPFLAGS' |
6182 |
– |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
6183 |
– |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
6184 |
– |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
6185 |
– |
|
6186 |
– |
# First, try linking without a dummy main: |
6187 |
– |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6188 |
– |
/* end confdefs.h. */ |
6189 |
– |
|
6190 |
– |
#ifdef FC_DUMMY_MAIN |
6191 |
– |
#ifndef FC_DUMMY_MAIN_EQ_F77 |
6192 |
– |
# ifdef __cplusplus |
6193 |
– |
extern "C" |
6194 |
– |
# endif |
6195 |
– |
int FC_DUMMY_MAIN() { return 1; } |
6196 |
– |
#endif |
6197 |
– |
#endif |
6198 |
– |
int |
6199 |
– |
main () |
6200 |
– |
{ |
6201 |
– |
|
6202 |
– |
; |
6203 |
– |
return 0; |
6204 |
– |
} |
6205 |
– |
_ACEOF |
6206 |
– |
if ac_fn_c_try_link "$LINENO"; then : |
6207 |
– |
ac_cv_fortran_dummy_main=none |
6208 |
– |
else |
6209 |
– |
ac_cv_fortran_dummy_main=unknown |
6210 |
– |
fi |
6211 |
– |
rm -f core conftest.err conftest.$ac_objext \ |
6212 |
– |
conftest$ac_exeext conftest.$ac_ext |
6213 |
– |
|
6214 |
– |
if test $ac_cv_fortran_dummy_main = unknown; then |
6215 |
– |
for ac_func in MAIN__ MAIN_ __main MAIN _MAIN __MAIN main_ main__ _main; do |
6216 |
– |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6217 |
– |
/* end confdefs.h. */ |
6218 |
– |
#define $ac_fortran_dm_var $ac_func |
6219 |
– |
#ifdef FC_DUMMY_MAIN |
6220 |
– |
#ifndef FC_DUMMY_MAIN_EQ_F77 |
6221 |
– |
# ifdef __cplusplus |
6222 |
– |
extern "C" |
6223 |
– |
# endif |
6224 |
– |
int FC_DUMMY_MAIN() { return 1; } |
6225 |
– |
#endif |
6226 |
– |
#endif |
6227 |
– |
int |
6228 |
– |
main () |
6229 |
– |
{ |
6230 |
– |
|
6231 |
– |
; |
6232 |
– |
return 0; |
6233 |
– |
} |
6234 |
– |
_ACEOF |
6235 |
– |
if ac_fn_c_try_link "$LINENO"; then : |
6236 |
– |
ac_cv_fortran_dummy_main=$ac_func; break |
6237 |
– |
fi |
6238 |
– |
rm -f core conftest.err conftest.$ac_objext \ |
6239 |
– |
conftest$ac_exeext conftest.$ac_ext |
6240 |
– |
done |
6241 |
– |
fi |
6242 |
– |
ac_ext=${ac_fc_srcext-f} |
6243 |
– |
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' |
6244 |
– |
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' |
6245 |
– |
ac_compiler_gnu=$ac_cv_fc_compiler_gnu |
6246 |
– |
ac_cv_fc_dummy_main=$ac_cv_fortran_dummy_main |
6247 |
– |
rm -rf conftest* |
6248 |
– |
LIBS=$ac_fc_dm_save_LIBS |
6249 |
– |
|
6250 |
– |
fi |
6251 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_dummy_main" >&5 |
6252 |
– |
$as_echo "$ac_cv_fc_dummy_main" >&6; } |
6253 |
– |
FC_DUMMY_MAIN=$ac_cv_fc_dummy_main |
6254 |
– |
if test "$FC_DUMMY_MAIN" != unknown; then : |
6255 |
– |
if test $FC_DUMMY_MAIN != none; then |
6256 |
– |
|
6257 |
– |
cat >>confdefs.h <<_ACEOF |
6258 |
– |
#define FC_DUMMY_MAIN $FC_DUMMY_MAIN |
6259 |
– |
_ACEOF |
6260 |
– |
|
6261 |
– |
if test "x$ac_cv_fc_dummy_main" = "x$ac_cv_f77_dummy_main"; then |
6262 |
– |
|
6263 |
– |
$as_echo "#define FC_DUMMY_MAIN_EQ_F77 1" >>confdefs.h |
6264 |
– |
|
6265 |
– |
fi |
6266 |
– |
fi |
6267 |
– |
else |
6268 |
– |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
6269 |
– |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
6270 |
– |
as_fn_error "linking to Fortran libraries from C fails |
6271 |
– |
See \`config.log' for more details." "$LINENO" 5; } |
6272 |
– |
fi |
6273 |
– |
|
6274 |
– |
ac_ext=${ac_fc_srcext-f} |
6275 |
– |
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' |
6276 |
– |
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' |
6277 |
– |
ac_compiler_gnu=$ac_cv_fc_compiler_gnu |
6278 |
– |
|
6279 |
– |
ac_ext=${ac_fc_srcext-f} |
6280 |
– |
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' |
6281 |
– |
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' |
6282 |
– |
ac_compiler_gnu=$ac_cv_fc_compiler_gnu |
6283 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran name-mangling scheme" >&5 |
6284 |
– |
$as_echo_n "checking for Fortran name-mangling scheme... " >&6; } |
6285 |
– |
if test "${ac_cv_fc_mangling+set}" = set; then : |
6286 |
– |
$as_echo_n "(cached) " >&6 |
6287 |
– |
else |
6288 |
– |
cat > conftest.$ac_ext <<_ACEOF |
6289 |
– |
subroutine foobar() |
6290 |
– |
return |
6291 |
– |
end |
6292 |
– |
subroutine foo_bar() |
6293 |
– |
return |
6294 |
– |
end |
6295 |
– |
_ACEOF |
6296 |
– |
if ac_fn_fc_try_compile "$LINENO"; then : |
6297 |
– |
mv conftest.$ac_objext cfortran_test.$ac_objext |
6298 |
– |
|
6299 |
– |
ac_save_LIBS=$LIBS |
6300 |
– |
LIBS="cfortran_test.$ac_objext $LIBS $FCLIBS" |
6301 |
– |
|
6302 |
– |
ac_ext=c |
6303 |
– |
ac_cpp='$CPP $CPPFLAGS' |
6304 |
– |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
6305 |
– |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
6306 |
– |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
6307 |
– |
ac_success=no |
6308 |
– |
for ac_foobar in foobar FOOBAR; do |
6309 |
– |
for ac_underscore in "" "_"; do |
6310 |
– |
ac_func="$ac_foobar$ac_underscore" |
6311 |
– |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6312 |
– |
/* end confdefs.h. */ |
6313 |
– |
|
6314 |
– |
/* Override any GCC internal prototype to avoid an error. |
6315 |
– |
Use char because int might match the return type of a GCC |
6316 |
– |
builtin and then its argument prototype would still apply. */ |
6317 |
– |
#ifdef __cplusplus |
6318 |
– |
extern "C" |
6319 |
– |
#endif |
6320 |
– |
char $ac_func (); |
6321 |
– |
#ifdef FC_DUMMY_MAIN |
6322 |
– |
#ifndef FC_DUMMY_MAIN_EQ_F77 |
6323 |
– |
# ifdef __cplusplus |
6324 |
– |
extern "C" |
6325 |
– |
# endif |
6326 |
– |
int FC_DUMMY_MAIN() { return 1; } |
6327 |
– |
#endif |
6328 |
– |
#endif |
6329 |
– |
int |
6330 |
– |
main () |
6331 |
– |
{ |
6332 |
– |
return $ac_func (); |
6333 |
– |
; |
6334 |
– |
return 0; |
6335 |
– |
} |
6336 |
– |
_ACEOF |
6337 |
– |
if ac_fn_c_try_link "$LINENO"; then : |
6338 |
– |
ac_success=yes; break 2 |
6339 |
– |
fi |
6340 |
– |
rm -f core conftest.err conftest.$ac_objext \ |
6341 |
– |
conftest$ac_exeext conftest.$ac_ext |
6342 |
– |
done |
6343 |
– |
done |
6344 |
– |
ac_ext=${ac_fc_srcext-f} |
6345 |
– |
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' |
6346 |
– |
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' |
6347 |
– |
ac_compiler_gnu=$ac_cv_fc_compiler_gnu |
6348 |
– |
|
6349 |
– |
if test "$ac_success" = "yes"; then |
6350 |
– |
case $ac_foobar in |
6351 |
– |
foobar) |
6352 |
– |
ac_case=lower |
6353 |
– |
ac_foo_bar=foo_bar |
6354 |
– |
;; |
6355 |
– |
FOOBAR) |
6356 |
– |
ac_case=upper |
6357 |
– |
ac_foo_bar=FOO_BAR |
6358 |
– |
;; |
6359 |
– |
esac |
6360 |
– |
|
6361 |
– |
ac_ext=c |
6362 |
– |
ac_cpp='$CPP $CPPFLAGS' |
6363 |
– |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
6364 |
– |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
6365 |
– |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
6366 |
– |
ac_success_extra=no |
6367 |
– |
for ac_extra in "" "_"; do |
6368 |
– |
ac_func="$ac_foo_bar$ac_underscore$ac_extra" |
6369 |
– |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6370 |
– |
/* end confdefs.h. */ |
6371 |
– |
|
6372 |
– |
/* Override any GCC internal prototype to avoid an error. |
6373 |
– |
Use char because int might match the return type of a GCC |
6374 |
– |
builtin and then its argument prototype would still apply. */ |
6375 |
– |
#ifdef __cplusplus |
6376 |
– |
extern "C" |
6377 |
– |
#endif |
6378 |
– |
char $ac_func (); |
6379 |
– |
#ifdef FC_DUMMY_MAIN |
6380 |
– |
#ifndef FC_DUMMY_MAIN_EQ_F77 |
6381 |
– |
# ifdef __cplusplus |
6382 |
– |
extern "C" |
6383 |
– |
# endif |
6384 |
– |
int FC_DUMMY_MAIN() { return 1; } |
6385 |
– |
#endif |
6386 |
– |
#endif |
6387 |
– |
int |
6388 |
– |
main () |
6389 |
– |
{ |
6390 |
– |
return $ac_func (); |
6391 |
– |
; |
6392 |
– |
return 0; |
6393 |
– |
} |
6394 |
– |
_ACEOF |
6395 |
– |
if ac_fn_c_try_link "$LINENO"; then : |
6396 |
– |
ac_success_extra=yes; break |
6397 |
– |
fi |
6398 |
– |
rm -f core conftest.err conftest.$ac_objext \ |
6399 |
– |
conftest$ac_exeext conftest.$ac_ext |
6400 |
– |
done |
6401 |
– |
ac_ext=${ac_fc_srcext-f} |
6402 |
– |
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' |
6403 |
– |
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' |
6404 |
– |
ac_compiler_gnu=$ac_cv_fc_compiler_gnu |
6405 |
– |
|
6406 |
– |
if test "$ac_success_extra" = "yes"; then |
6407 |
– |
ac_cv_fc_mangling="$ac_case case" |
6408 |
– |
if test -z "$ac_underscore"; then |
6409 |
– |
ac_cv_fc_mangling="$ac_cv_fc_mangling, no underscore" |
6410 |
– |
else |
6411 |
– |
ac_cv_fc_mangling="$ac_cv_fc_mangling, underscore" |
6412 |
– |
fi |
6413 |
– |
if test -z "$ac_extra"; then |
6414 |
– |
ac_cv_fc_mangling="$ac_cv_fc_mangling, no extra underscore" |
6415 |
– |
else |
6416 |
– |
ac_cv_fc_mangling="$ac_cv_fc_mangling, extra underscore" |
6417 |
– |
fi |
6418 |
– |
else |
6419 |
– |
ac_cv_fc_mangling="unknown" |
6420 |
– |
fi |
6421 |
– |
else |
6422 |
– |
ac_cv_fc_mangling="unknown" |
6423 |
– |
fi |
6424 |
– |
|
6425 |
– |
LIBS=$ac_save_LIBS |
6426 |
– |
rm -rf conftest* |
6427 |
– |
rm -f cfortran_test* |
6428 |
– |
else |
6429 |
– |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
6430 |
– |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
6431 |
– |
as_fn_error "cannot compile a simple Fortran program |
6432 |
– |
See \`config.log' for more details." "$LINENO" 5; } |
6433 |
– |
fi |
6434 |
– |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
6435 |
– |
|
6436 |
– |
fi |
6437 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_mangling" >&5 |
6438 |
– |
$as_echo "$ac_cv_fc_mangling" >&6; } |
6439 |
– |
|
6440 |
– |
ac_ext=${ac_fc_srcext-f} |
6441 |
– |
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' |
6442 |
– |
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' |
6443 |
– |
ac_compiler_gnu=$ac_cv_fc_compiler_gnu |
6444 |
– |
|
6445 |
– |
ac_ext=${ac_fc_srcext-f} |
6446 |
– |
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' |
6447 |
– |
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' |
6448 |
– |
ac_compiler_gnu=$ac_cv_fc_compiler_gnu |
6449 |
– |
case $ac_cv_fc_mangling in |
6450 |
– |
"lower case, no underscore, no extra underscore") |
6451 |
– |
$as_echo "#define FC_FUNC(name,NAME) name" >>confdefs.h |
6452 |
– |
|
6453 |
– |
$as_echo "#define FC_FUNC_(name,NAME) name" >>confdefs.h |
6454 |
– |
;; |
6455 |
– |
"lower case, no underscore, extra underscore") |
6456 |
– |
$as_echo "#define FC_FUNC(name,NAME) name" >>confdefs.h |
6457 |
– |
|
6458 |
– |
$as_echo "#define FC_FUNC_(name,NAME) name ## _" >>confdefs.h |
6459 |
– |
;; |
6460 |
– |
"lower case, underscore, no extra underscore") |
6461 |
– |
$as_echo "#define FC_FUNC(name,NAME) name ## _" >>confdefs.h |
6462 |
– |
|
6463 |
– |
$as_echo "#define FC_FUNC_(name,NAME) name ## _" >>confdefs.h |
6464 |
– |
;; |
6465 |
– |
"lower case, underscore, extra underscore") |
6466 |
– |
$as_echo "#define FC_FUNC(name,NAME) name ## _" >>confdefs.h |
6467 |
– |
|
6468 |
– |
$as_echo "#define FC_FUNC_(name,NAME) name ## __" >>confdefs.h |
6469 |
– |
;; |
6470 |
– |
"upper case, no underscore, no extra underscore") |
6471 |
– |
$as_echo "#define FC_FUNC(name,NAME) NAME" >>confdefs.h |
6472 |
– |
|
6473 |
– |
$as_echo "#define FC_FUNC_(name,NAME) NAME" >>confdefs.h |
6474 |
– |
;; |
6475 |
– |
"upper case, no underscore, extra underscore") |
6476 |
– |
$as_echo "#define FC_FUNC(name,NAME) NAME" >>confdefs.h |
6477 |
– |
|
6478 |
– |
$as_echo "#define FC_FUNC_(name,NAME) NAME ## _" >>confdefs.h |
6479 |
– |
;; |
6480 |
– |
"upper case, underscore, no extra underscore") |
6481 |
– |
$as_echo "#define FC_FUNC(name,NAME) NAME ## _" >>confdefs.h |
6482 |
– |
|
6483 |
– |
$as_echo "#define FC_FUNC_(name,NAME) NAME ## _" >>confdefs.h |
6484 |
– |
;; |
6485 |
– |
"upper case, underscore, extra underscore") |
6486 |
– |
$as_echo "#define FC_FUNC(name,NAME) NAME ## _" >>confdefs.h |
6487 |
– |
|
6488 |
– |
$as_echo "#define FC_FUNC_(name,NAME) NAME ## __" >>confdefs.h |
6489 |
– |
;; |
6490 |
– |
*) |
6491 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unknown Fortran name-mangling scheme" >&5 |
6492 |
– |
$as_echo "$as_me: WARNING: unknown Fortran name-mangling scheme" >&2;} |
6493 |
– |
;; |
6494 |
– |
esac |
6495 |
– |
|
6496 |
– |
ac_ext=${ac_fc_srcext-f} |
6497 |
– |
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' |
6498 |
– |
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' |
6499 |
– |
ac_compiler_gnu=$ac_cv_fc_compiler_gnu |
6500 |
– |
|
6501 |
– |
|
6502 |
– |
|
6503 |
– |
ac_ext=${ac_fc_srcext-f} |
6504 |
– |
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' |
6505 |
– |
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' |
6506 |
– |
ac_compiler_gnu=$ac_cv_fc_compiler_gnu |
6507 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get verbose linking output from $FC" >&5 |
6508 |
– |
$as_echo_n "checking how to get verbose linking output from $FC... " >&6; } |
6509 |
– |
if test "${ac_cv_prog_fc_v+set}" = set; then : |
6510 |
– |
$as_echo_n "(cached) " >&6 |
6511 |
– |
else |
6512 |
– |
cat > conftest.$ac_ext <<_ACEOF |
6513 |
– |
program main |
6514 |
– |
|
6515 |
– |
end |
6516 |
– |
_ACEOF |
6517 |
– |
if ac_fn_fc_try_compile "$LINENO"; then : |
6518 |
– |
ac_cv_prog_fc_v= |
6519 |
– |
# Try some options frequently used verbose output |
6520 |
– |
for ac_verb in -v -verbose --verbose -V -\#\#\#; do |
6521 |
– |
cat > conftest.$ac_ext <<_ACEOF |
6522 |
– |
program main |
6523 |
– |
|
6524 |
– |
end |
6525 |
– |
_ACEOF |
6526 |
– |
|
6527 |
– |
# Compile and link our simple test program by passing a flag (argument |
6528 |
– |
# 1 to this macro) to the Fortran compiler in order to get |
6529 |
– |
# "verbose" output that we can then parse for the Fortran linker |
6530 |
– |
# flags. |
6531 |
– |
ac_save_FCFLAGS=$FCFLAGS |
6532 |
– |
FCFLAGS="$FCFLAGS $ac_verb" |
6533 |
– |
eval "set x $ac_link" |
6534 |
– |
shift |
6535 |
– |
$as_echo "$as_me:${as_lineno-$LINENO}: $*" >&5 |
6536 |
– |
# gfortran 4.3 outputs lines setting COLLECT_GCC_OPTIONS, COMPILER_PATH, |
6537 |
– |
# LIBRARY_PATH; skip all such settings. |
6538 |
– |
ac_fc_v_output=`eval $ac_link 5>&1 2>&1 | |
6539 |
– |
grep -v 'Driving:' | grep -v "^[_$as_cr_Letters][_$as_cr_alnum]*="` |
6540 |
– |
$as_echo "$ac_fc_v_output" >&5 |
6541 |
– |
FCFLAGS=$ac_save_FCFLAGS |
6542 |
– |
|
6543 |
– |
rm -rf conftest* |
6544 |
– |
|
6545 |
– |
# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where |
6546 |
– |
# /foo, /bar, and /baz are search directories for the Fortran linker. |
6547 |
– |
# Here, we change these into -L/foo -L/bar -L/baz (and put it first): |
6548 |
– |
ac_fc_v_output="`echo $ac_fc_v_output | |
6549 |
– |
grep 'LPATH is:' | |
6550 |
– |
sed 's|.*LPATH is\(: *[^ ]*\).*|\1|;s|: */| -L/|g'` $ac_fc_v_output" |
6551 |
– |
|
6552 |
– |
# FIXME: we keep getting bitten by quoted arguments; a more general fix |
6553 |
– |
# that detects unbalanced quotes in FLIBS should be implemented |
6554 |
– |
# and (ugh) tested at some point. |
6555 |
– |
case $ac_fc_v_output in |
6556 |
– |
# If we are using xlf then replace all the commas with spaces. |
6557 |
– |
*xlfentry*) |
6558 |
– |
ac_fc_v_output=`echo $ac_fc_v_output | sed 's/,/ /g'` ;; |
6559 |
– |
|
6560 |
– |
# With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted |
6561 |
– |
# $LIBS confuse us, and the libraries appear later in the output anyway). |
6562 |
– |
*mGLOB_options_string*) |
6563 |
– |
ac_fc_v_output=`echo $ac_fc_v_output | sed 's/"-mGLOB[^"]*"/ /g'` ;; |
6564 |
– |
|
6565 |
– |
# Portland Group compiler has singly- or doubly-quoted -cmdline argument |
6566 |
– |
# Singly-quoted arguments were reported for versions 5.2-4 and 6.0-4. |
6567 |
– |
# Doubly-quoted arguments were reported for "PGF90/x86 Linux/x86 5.0-2". |
6568 |
– |
*-cmdline\ * | *-ignore\ * | *-def\ *) |
6569 |
– |
ac_fc_v_output=`echo $ac_fc_v_output | sed "\ |
6570 |
– |
s/-cmdline *'[^']*'/ /g; s/-cmdline *\"[^\"]*\"/ /g |
6571 |
– |
s/-ignore *'[^']*'/ /g; s/-ignore *\"[^\"]*\"/ /g |
6572 |
– |
s/-def *'[^']*'/ /g; s/-def *\"[^\"]*\"/ /g"` ;; |
6573 |
– |
|
6574 |
– |
# If we are using Cray Fortran then delete quotes. |
6575 |
– |
*cft90*) |
6576 |
– |
ac_fc_v_output=`echo $ac_fc_v_output | sed 's/"//g'` ;; |
6577 |
– |
esac |
6578 |
– |
|
6579 |
– |
|
6580 |
– |
# look for -l* and *.a constructs in the output |
6581 |
– |
for ac_arg in $ac_fc_v_output; do |
6582 |
– |
case $ac_arg in |
6583 |
– |
[\\/]*.a | ?:[\\/]*.a | -[lLRu]*) |
6584 |
– |
ac_cv_prog_fc_v=$ac_verb |
6585 |
– |
break 2 ;; |
6586 |
– |
esac |
6587 |
– |
done |
6588 |
– |
done |
6589 |
– |
if test -z "$ac_cv_prog_fc_v"; then |
6590 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine how to obtain linking information from $FC" >&5 |
6591 |
– |
$as_echo "$as_me: WARNING: cannot determine how to obtain linking information from $FC" >&2;} |
6592 |
– |
fi |
6593 |
– |
else |
6594 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compilation failed" >&5 |
6595 |
– |
$as_echo "$as_me: WARNING: compilation failed" >&2;} |
6596 |
– |
fi |
6597 |
– |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
6598 |
– |
|
6599 |
– |
fi |
6600 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_v" >&5 |
6601 |
– |
$as_echo "$ac_cv_prog_fc_v" >&6; } |
6602 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran libraries of $FC" >&5 |
6603 |
– |
$as_echo_n "checking for Fortran libraries of $FC... " >&6; } |
6604 |
– |
if test "${ac_cv_fc_libs+set}" = set; then : |
6605 |
– |
$as_echo_n "(cached) " >&6 |
6606 |
– |
else |
6607 |
– |
if test "x$FCLIBS" != "x"; then |
6608 |
– |
ac_cv_fc_libs="$FCLIBS" # Let the user override the test. |
6609 |
– |
else |
6610 |
– |
|
6611 |
– |
cat > conftest.$ac_ext <<_ACEOF |
6612 |
– |
program main |
6613 |
– |
|
6614 |
– |
end |
6615 |
– |
_ACEOF |
6616 |
– |
|
6617 |
– |
# Compile and link our simple test program by passing a flag (argument |
6618 |
– |
# 1 to this macro) to the Fortran compiler in order to get |
6619 |
– |
# "verbose" output that we can then parse for the Fortran linker |
6620 |
– |
# flags. |
6621 |
– |
ac_save_FCFLAGS=$FCFLAGS |
6622 |
– |
FCFLAGS="$FCFLAGS $ac_cv_prog_fc_v" |
6623 |
– |
eval "set x $ac_link" |
6624 |
– |
shift |
6625 |
– |
$as_echo "$as_me:${as_lineno-$LINENO}: $*" >&5 |
6626 |
– |
# gfortran 4.3 outputs lines setting COLLECT_GCC_OPTIONS, COMPILER_PATH, |
6627 |
– |
# LIBRARY_PATH; skip all such settings. |
6628 |
– |
ac_fc_v_output=`eval $ac_link 5>&1 2>&1 | |
6629 |
– |
grep -v 'Driving:' | grep -v "^[_$as_cr_Letters][_$as_cr_alnum]*="` |
6630 |
– |
$as_echo "$ac_fc_v_output" >&5 |
6631 |
– |
FCFLAGS=$ac_save_FCFLAGS |
6632 |
– |
|
6633 |
– |
rm -rf conftest* |
6634 |
– |
|
6635 |
– |
# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where |
6636 |
– |
# /foo, /bar, and /baz are search directories for the Fortran linker. |
6637 |
– |
# Here, we change these into -L/foo -L/bar -L/baz (and put it first): |
6638 |
– |
ac_fc_v_output="`echo $ac_fc_v_output | |
6639 |
– |
grep 'LPATH is:' | |
6640 |
– |
sed 's|.*LPATH is\(: *[^ ]*\).*|\1|;s|: */| -L/|g'` $ac_fc_v_output" |
6641 |
– |
|
6642 |
– |
# FIXME: we keep getting bitten by quoted arguments; a more general fix |
6643 |
– |
# that detects unbalanced quotes in FLIBS should be implemented |
6644 |
– |
# and (ugh) tested at some point. |
6645 |
– |
case $ac_fc_v_output in |
6646 |
– |
# If we are using xlf then replace all the commas with spaces. |
6647 |
– |
*xlfentry*) |
6648 |
– |
ac_fc_v_output=`echo $ac_fc_v_output | sed 's/,/ /g'` ;; |
6649 |
– |
|
6650 |
– |
# With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted |
6651 |
– |
# $LIBS confuse us, and the libraries appear later in the output anyway). |
6652 |
– |
*mGLOB_options_string*) |
6653 |
– |
ac_fc_v_output=`echo $ac_fc_v_output | sed 's/"-mGLOB[^"]*"/ /g'` ;; |
6654 |
– |
|
6655 |
– |
# Portland Group compiler has singly- or doubly-quoted -cmdline argument |
6656 |
– |
# Singly-quoted arguments were reported for versions 5.2-4 and 6.0-4. |
6657 |
– |
# Doubly-quoted arguments were reported for "PGF90/x86 Linux/x86 5.0-2". |
6658 |
– |
*-cmdline\ * | *-ignore\ * | *-def\ *) |
6659 |
– |
ac_fc_v_output=`echo $ac_fc_v_output | sed "\ |
6660 |
– |
s/-cmdline *'[^']*'/ /g; s/-cmdline *\"[^\"]*\"/ /g |
6661 |
– |
s/-ignore *'[^']*'/ /g; s/-ignore *\"[^\"]*\"/ /g |
6662 |
– |
s/-def *'[^']*'/ /g; s/-def *\"[^\"]*\"/ /g"` ;; |
6663 |
– |
|
6664 |
– |
# If we are using Cray Fortran then delete quotes. |
6665 |
– |
*cft90*) |
6666 |
– |
ac_fc_v_output=`echo $ac_fc_v_output | sed 's/"//g'` ;; |
6667 |
– |
esac |
6668 |
– |
|
6669 |
– |
|
6670 |
– |
|
6671 |
– |
ac_cv_fc_libs= |
6672 |
– |
|
6673 |
– |
# Save positional arguments (if any) |
6674 |
– |
ac_save_positional="$@" |
6675 |
– |
|
6676 |
– |
set X $ac_fc_v_output |
6677 |
– |
while test $# != 1; do |
6678 |
– |
shift |
6679 |
– |
ac_arg=$1 |
6680 |
– |
case $ac_arg in |
6681 |
– |
[\\/]*.a | ?:[\\/]*.a) |
6682 |
– |
ac_exists=false |
6683 |
– |
for ac_i in $ac_cv_fc_libs; do |
6684 |
– |
if test x"$ac_arg" = x"$ac_i"; then |
6685 |
– |
ac_exists=true |
6686 |
– |
break |
6687 |
– |
fi |
6688 |
– |
done |
6689 |
– |
|
6690 |
– |
if test x"$ac_exists" = xtrue; then : |
6691 |
– |
|
6692 |
– |
else |
6693 |
– |
ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg" |
6694 |
– |
fi |
6695 |
– |
;; |
6696 |
– |
-bI:*) |
6697 |
– |
ac_exists=false |
6698 |
– |
for ac_i in $ac_cv_fc_libs; do |
6699 |
– |
if test x"$ac_arg" = x"$ac_i"; then |
6700 |
– |
ac_exists=true |
6701 |
– |
break |
6702 |
– |
fi |
6703 |
– |
done |
6704 |
– |
|
6705 |
– |
if test x"$ac_exists" = xtrue; then : |
6706 |
– |
|
6707 |
– |
else |
6708 |
– |
if test "$ac_compiler_gnu" = yes; then |
6709 |
– |
for ac_link_opt in $ac_arg; do |
6710 |
– |
ac_cv_fc_libs="$ac_cv_fc_libs -Xlinker $ac_link_opt" |
6711 |
– |
done |
6712 |
– |
else |
6713 |
– |
ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg" |
6714 |
– |
fi |
6715 |
– |
fi |
6716 |
– |
;; |
6717 |
– |
# Ignore these flags. |
6718 |
– |
-lang* | -lcrt*.o | -lc | -lgcc* | -lSystem | -libmil | -little \ |
6719 |
– |
|-LANG:=* | -LIST:* | -LNO:*) |
6720 |
– |
;; |
6721 |
– |
-lkernel32) |
6722 |
– |
test x"$CYGWIN" != xyes && ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg" |
6723 |
– |
;; |
6724 |
– |
-[LRuYz]) |
6725 |
– |
# These flags, when seen by themselves, take an argument. |
6726 |
– |
# We remove the space between option and argument and re-iterate |
6727 |
– |
# unless we find an empty arg or a new option (starting with -) |
6728 |
– |
case $2 in |
6729 |
– |
"" | -*);; |
6730 |
– |
*) |
6731 |
– |
ac_arg="$ac_arg$2" |
6732 |
– |
shift; shift |
6733 |
– |
set X $ac_arg "$@" |
6734 |
– |
;; |
6735 |
– |
esac |
6736 |
– |
;; |
6737 |
– |
-YP,*) |
6738 |
– |
for ac_j in `$as_echo "$ac_arg" | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do |
6739 |
– |
ac_exists=false |
6740 |
– |
for ac_i in $ac_cv_fc_libs; do |
6741 |
– |
if test x"$ac_j" = x"$ac_i"; then |
6742 |
– |
ac_exists=true |
6743 |
– |
break |
6744 |
– |
fi |
6745 |
– |
done |
6746 |
– |
|
6747 |
– |
if test x"$ac_exists" = xtrue; then : |
6748 |
– |
|
6749 |
– |
else |
6750 |
– |
ac_arg="$ac_arg $ac_j" |
6751 |
– |
ac_cv_fc_libs="$ac_cv_fc_libs $ac_j" |
6752 |
– |
fi |
6753 |
– |
done |
6754 |
– |
;; |
6755 |
– |
-[lLR]*) |
6756 |
– |
ac_exists=false |
6757 |
– |
for ac_i in $ac_cv_fc_libs; do |
6758 |
– |
if test x"$ac_arg" = x"$ac_i"; then |
6759 |
– |
ac_exists=true |
6760 |
– |
break |
6761 |
– |
fi |
6762 |
– |
done |
6763 |
– |
|
6764 |
– |
if test x"$ac_exists" = xtrue; then : |
6765 |
– |
|
6766 |
– |
else |
6767 |
– |
ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg" |
6768 |
– |
fi |
6769 |
– |
;; |
6770 |
– |
-zallextract*| -zdefaultextract) |
6771 |
– |
ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg" |
6772 |
– |
;; |
6773 |
– |
# Ignore everything else. |
6774 |
– |
esac |
6775 |
– |
done |
6776 |
– |
# restore positional arguments |
6777 |
– |
set X $ac_save_positional; shift |
6778 |
– |
|
6779 |
– |
# We only consider "LD_RUN_PATH" on Solaris systems. If this is seen, |
6780 |
– |
# then we insist that the "run path" must be an absolute path (i.e. it |
6781 |
– |
# must begin with a "/"). |
6782 |
– |
case `(uname -sr) 2>/dev/null` in |
6783 |
– |
"SunOS 5"*) |
6784 |
– |
ac_ld_run_path=`$as_echo "$ac_fc_v_output" | |
6785 |
– |
sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'` |
6786 |
– |
test "x$ac_ld_run_path" != x && |
6787 |
– |
if test "$ac_compiler_gnu" = yes; then |
6788 |
– |
for ac_link_opt in $ac_ld_run_path; do |
6789 |
– |
ac_cv_fc_libs="$ac_cv_fc_libs -Xlinker $ac_link_opt" |
6790 |
– |
done |
6791 |
– |
else |
6792 |
– |
ac_cv_fc_libs="$ac_cv_fc_libs $ac_ld_run_path" |
6793 |
– |
fi |
6794 |
– |
;; |
6795 |
– |
esac |
6796 |
– |
fi # test "x$[]_AC_LANG_PREFIX[]LIBS" = "x" |
6797 |
– |
|
6798 |
– |
fi |
6799 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_libs" >&5 |
6800 |
– |
$as_echo "$ac_cv_fc_libs" >&6; } |
6801 |
– |
FCLIBS="$ac_cv_fc_libs" |
6802 |
– |
|
6803 |
– |
|
6804 |
– |
ac_ext=${ac_fc_srcext-f} |
6805 |
– |
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' |
6806 |
– |
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' |
6807 |
– |
ac_compiler_gnu=$ac_cv_fc_compiler_gnu |
6808 |
– |
|
6809 |
– |
|
6810 |
– |
|
6811 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for module suffix" >&5 |
6812 |
– |
$as_echo_n "checking for module suffix... " >&6; } |
6813 |
– |
rm -f conftest* |
6814 |
– |
# Intel ifc compiler generates files by the name of work.pc and work.pcl (!) |
6815 |
– |
rm -f work* |
6816 |
– |
cat >conftest.$ac_ext <<EOF |
6817 |
– |
module conftest |
6818 |
– |
integer n |
6819 |
– |
parameter (n=1) |
6820 |
– |
end module conftest |
6821 |
– |
EOF |
6822 |
– |
# SGI and absoft compilers generates module name in upper case! |
6823 |
– |
testname="conftest" |
6824 |
– |
modcase="lower" |
6825 |
– |
if (eval $ac_compile) 2>/dev/null ; then |
6826 |
– |
MOD=`ls conftest* | grep -v conftest.$ac_ext | grep -v conftest.o` |
6827 |
– |
MOD=`echo "$MOD" | sed -e 's/conftest\.//g'` |
6828 |
– |
if test -z "$MOD" ; then |
6829 |
– |
MOD=`ls CONFTEST* 2>/dev/null \ |
6830 |
– |
| grep -v CONFTEST.$ac_ext | grep -v CONFTEST.o` |
6831 |
– |
MOD=`echo "$MOD" | sed -e 's/CONFTEST\.//g'` |
6832 |
– |
if test -n "$MOD" ; then |
6833 |
– |
testname="CONFTEST" |
6834 |
– |
modcase="upper" |
6835 |
– |
fi |
6836 |
– |
fi |
6837 |
– |
if test -z "$MOD" ; then |
6838 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5 |
6839 |
– |
$as_echo "unknown" >&6; } |
6840 |
– |
# Use mod if we can't figure it out |
6841 |
– |
MOD="mod" |
6842 |
– |
else |
6843 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOD" >&5 |
6844 |
– |
$as_echo "$MOD" >&6; } |
6845 |
– |
fi |
6846 |
– |
if test -s work.pcl ; then |
6847 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Compiler generates auxillery files!" >&5 |
6848 |
– |
$as_echo "$as_me: WARNING: Compiler generates auxillery files!" >&2;} |
6849 |
– |
fi |
6850 |
– |
else |
6851 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5 |
6852 |
– |
$as_echo "unknown" >&6; } |
6853 |
– |
fi |
6854 |
– |
|
6855 |
– |
|
6856 |
– |
|
6857 |
– |
|
6858 |
– |
|
6859 |
– |
# Check for module include path (some use -I, some (Solaris) use -M, some |
6860 |
– |
# (absoft) use -p). |
6861 |
– |
# Intel compilers use a wierd system: -cl,filename.pcl . If no file is |
6862 |
– |
# specified, work.pcl and work.pc are created. However, if you specify |
6863 |
– |
# a file, it must contain a the name of a file ending in .pc . Ugh! |
6864 |
– |
# Use the module made above |
6865 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for module directory path flag" >&5 |
6866 |
– |
$as_echo_n "checking for module directory path flag... " >&6; } |
6867 |
– |
rm -f conftest* |
6868 |
– |
# Intel ifc compiler generates files by the name of work.pc and work.pcl (!) |
6869 |
– |
rm -f work* |
6870 |
– |
cat >conftest.$ac_ext <<EOF |
6871 |
– |
module conftest |
6872 |
– |
integer n |
6873 |
– |
parameter (n=1) |
6874 |
– |
end module conftest |
6875 |
– |
EOF |
6876 |
– |
# SGI and absoft compilers generates module name in upper case! |
6877 |
– |
testname="conftest" |
6878 |
– |
if (eval $ac_compile) 2>/dev/null ; then |
6879 |
– |
mod=`ls CONFTEST* 2>/dev/null | grep -v CONFTEST.$ac_ext | grep -v CONFTEST.o` |
6880 |
– |
mod=`echo "$mod" | sed -e 's/CONFTEST\.//g'` |
6881 |
– |
if test -n "$mod" ; then |
6882 |
– |
testname="CONFTEST" |
6883 |
– |
fi |
6884 |
– |
madedir=0 |
6885 |
– |
if test ! -d conf ; then mkdir conf ; madedir=1; fi |
6886 |
– |
cp $testname.$MOD conf |
6887 |
– |
rm -f conftest* CONFTEST* |
6888 |
– |
cat >conftest1.$ac_ext <<EOF |
6889 |
– |
program main |
6890 |
– |
use conftest |
6891 |
– |
print *, n |
6892 |
– |
end |
6893 |
– |
EOF |
6894 |
– |
F90_WORK_FILES_ARG="" |
6895 |
– |
F90MODINCSPEC="" |
6896 |
– |
if $FC -c -Iconf $FCFLAGS $FCFLAGS_SRCEXT conftest1.$ac_ext > conftest.out 2>&1 ; then |
6897 |
– |
MODDIRFLAG="-I" |
6898 |
– |
F90MODINCSPEC="-I<dir>" |
6899 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -I" >&5 |
6900 |
– |
$as_echo "-I" >&6; } |
6901 |
– |
elif $FC -c -Mconf $FCFLAGS $FCFLAGS_SRCEXT conftest1.$ac_ext >> conftest.out 2>&1 ; then |
6902 |
– |
MODDIRFLAG="-M" |
6903 |
– |
F90MODINCSPEC="-M<dir>" |
6904 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -M" >&5 |
6905 |
– |
$as_echo "-M" >&6; } |
6906 |
– |
elif $FC -c -pconf $FCFLAGS $FCFLAGS_SRCEXT conftest1.$ac_ext >> conftest.out 2>&1 ; then |
6907 |
– |
MODDIRFLAG="-p" |
6908 |
– |
F90MODINCSPEC="-p<dir>" |
6909 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -p" >&5 |
6910 |
– |
$as_echo "-p" >&6; } |
6911 |
– |
elif test -s work.pc ; then |
6912 |
– |
cp work.pc conf/mpimod.pc |
6913 |
– |
echo "mpimod.pc" > conf/mpimod.pcl |
6914 |
– |
echo "`pwd`/conf/mpimod.pc" >> conf/mpimod.pcl |
6915 |
– |
if $FC -c -cl,conf/mpimod.pcl $FCFLAGS $FCFLAGS_SRCEXT conftest1.$ac_ext >>conftest.out 2>&1 ; then |
6916 |
– |
MODDIRFLAG='-cl,mpimod.pcl' |
6917 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -cl,filename where filename contains a list of files and directories" >&5 |
6918 |
– |
$as_echo "-cl,filename where filename contains a list of files and directories" >&6; } |
6919 |
– |
F90_WORK_FILES_ARG="-cl,mpimod.pcl" |
6920 |
– |
F90MODINCSPEC="-cl,<dir>/<file>mod.pcl" |
6921 |
– |
|
6922 |
– |
else |
6923 |
– |
# The version of the Intel compiler that I have refuses to let |
6924 |
– |
# you put the "work catalog" list anywhere but the current |
6925 |
– |
# directory. For example, you cannot in |
6926 |
– |
: |
6927 |
– |
fi |
6928 |
– |
fi |
6929 |
– |
if test -z "MODDIRFLAG" ; then |
6930 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5 |
6931 |
– |
$as_echo "unknown" >&6; } |
6932 |
– |
fi |
6933 |
– |
|
6934 |
– |
|
6935 |
– |
rm -f conftest* conf/conftest* conf/CONFTEST* CONFTEST* conf/mpimod* |
6936 |
– |
if test $madedir = 1 ; then rmdir conf ; fi |
6937 |
– |
fi |
6938 |
– |
|
6939 |
– |
|
6940 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 90 module file names" >&5 |
6941 |
– |
$as_echo_n "checking for Fortran 90 module file names... " >&6; } |
6942 |
– |
if test "${ac_cv_f90_module_names+set}" = set; then : |
6943 |
– |
$as_echo_n "(cached) " >&6 |
6944 |
– |
else |
6945 |
– |
ac_ext=${ac_fc_srcext-f} |
6946 |
– |
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' |
6947 |
– |
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' |
6948 |
– |
ac_compiler_gnu=$ac_cv_fc_compiler_gnu |
6949 |
– |
|
6950 |
– |
# carry out the test in a new directory, so that we don't miss anything |
6951 |
– |
mkdir conftest |
6952 |
– |
cd conftest |
6953 |
– |
cat > conftest.$ac_ext <<_ACEOF |
6954 |
– |
MODULE Bar |
6955 |
– |
END MODULE Bar |
6956 |
– |
_ACEOF |
6957 |
– |
if ac_fn_fc_try_compile "$LINENO"; then : |
6958 |
– |
ac_cv_f90_module_names= |
6959 |
– |
ac_file_list=* |
6960 |
– |
for ac_file in $ac_file_list; do |
6961 |
– |
case $ac_file in |
6962 |
– |
# don't care for original source and object files |
6963 |
– |
conftest.$ac_ext | conftest.$ac_objext | conftest.err ) |
6964 |
– |
: |
6965 |
– |
;; |
6966 |
– |
# look for new files derived from the file name |
6967 |
– |
*conftest*) |
6968 |
– |
ac_pat=`echo $ac_file | sed s/conftest/%FILE%/` |
6969 |
– |
ac_exists=false |
6970 |
– |
for ac_i in $ac_cv_f90_module_names; do |
6971 |
– |
if test x"$ac_pat" = x"$ac_i"; then |
6972 |
– |
ac_exists=true |
6973 |
– |
break |
6974 |
– |
fi |
6975 |
– |
done |
6976 |
– |
|
6977 |
– |
if test x"$ac_exists" = xtrue; then : |
6978 |
– |
|
6979 |
– |
else |
6980 |
– |
ac_cv_f90_module_names="$ac_cv_f90_module_names $ac_pat" |
6981 |
– |
fi |
6982 |
– |
;; |
6983 |
– |
# look for new files derived from the module name, |
6984 |
– |
# with different case translation schemes |
6985 |
– |
*Bar*) |
6986 |
– |
ac_pat=`echo $ac_file | sed s/Bar/%Module%/` |
6987 |
– |
ac_exists=false |
6988 |
– |
for ac_i in $ac_cv_f90_module_names; do |
6989 |
– |
if test x"$ac_pat" = x"$ac_i"; then |
6990 |
– |
ac_exists=true |
6991 |
– |
break |
6992 |
– |
fi |
6993 |
– |
done |
6994 |
– |
|
6995 |
– |
if test x"$ac_exists" = xtrue; then : |
6996 |
– |
|
6997 |
– |
else |
6998 |
– |
ac_cv_f90_module_names="$ac_cv_f90_module_names $ac_pat" |
6999 |
– |
fi |
7000 |
– |
;; |
7001 |
– |
*bar*) |
7002 |
– |
ac_pat=`echo $ac_file | sed s/bar/%module%/` |
7003 |
– |
ac_exists=false |
7004 |
– |
for ac_i in $ac_cv_f90_module_names; do |
7005 |
– |
if test x"$ac_pat" = x"$ac_i"; then |
7006 |
– |
ac_exists=true |
7007 |
– |
break |
7008 |
– |
fi |
7009 |
– |
done |
7010 |
– |
|
7011 |
– |
if test x"$ac_exists" = xtrue; then : |
7012 |
– |
|
7013 |
– |
else |
7014 |
– |
ac_cv_f90_module_names="$ac_cv_f90_module_names $ac_pat" |
7015 |
– |
fi |
7016 |
– |
;; |
7017 |
– |
*BAR*) |
7018 |
– |
ac_pat=`echo $ac_file | sed s/BAR/%MODULE%/` |
7019 |
– |
ac_exists=false |
7020 |
– |
for ac_i in $ac_cv_f90_module_names; do |
7021 |
– |
if test x"$ac_pat" = x"$ac_i"; then |
7022 |
– |
ac_exists=true |
7023 |
– |
break |
7024 |
– |
fi |
7025 |
– |
done |
7026 |
– |
|
7027 |
– |
if test x"$ac_exists" = xtrue; then : |
7028 |
– |
|
7029 |
– |
else |
7030 |
– |
ac_cv_f90_module_names="$ac_cv_f90_module_names $ac_pat" |
7031 |
– |
fi |
7032 |
– |
;; |
7033 |
– |
# Other files - we have no idea how they are generated |
7034 |
– |
*) |
7035 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Bogus file found: $ac_file" >&5 |
7036 |
– |
$as_echo "$as_me: WARNING: Bogus file found: $ac_file" >&2;} |
7037 |
– |
;; |
7038 |
– |
esac |
7039 |
– |
done |
7040 |
– |
if test "x$ac_cv_f90_module_names" = "x"; then |
7041 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Couldn't determine module file names" >&5 |
7042 |
– |
$as_echo "$as_me: WARNING: Couldn't determine module file names" >&2;} |
7043 |
– |
fi |
7044 |
– |
|
7045 |
– |
else |
7046 |
– |
ac_cv_f90_module_names= |
7047 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Couldn't determine module file names" >&5 |
7048 |
– |
$as_echo "$as_me: WARNING: Couldn't determine module file names" >&2;} |
7049 |
– |
fi |
7050 |
– |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7051 |
– |
cd .. |
7052 |
– |
# cleanup |
7053 |
– |
rm -rf conftest |
7054 |
– |
ac_ext=${ac_fc_srcext-f} |
7055 |
– |
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' |
7056 |
– |
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' |
7057 |
– |
ac_compiler_gnu=$ac_cv_fc_compiler_gnu |
7058 |
– |
|
7059 |
– |
fi |
7060 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f90_module_names" >&5 |
7061 |
– |
$as_echo "$ac_cv_f90_module_names" >&6; } # AC_CACHE_CHECK |
7062 |
– |
|
7063 |
– |
# We now generate a shell script that will help us to figure out the correct |
7064 |
– |
# module file names, using the value of ac_cv_f90_module_names |
7065 |
– |
|
7066 |
– |
echo "Generating shell script modnam" |
7067 |
– |
|
7068 |
– |
cat > scripts/modnam << EOF |
7069 |
– |
#! /bin/sh |
7070 |
– |
# This script is auto-generated by configure |
7071 |
– |
# |
7072 |
– |
usage="\\ |
7073 |
– |
Usage: \$0 [FILES] |
7074 |
– |
|
7075 |
– |
[FILES] are Fortran 90 source files. |
7076 |
– |
The output is a list of module file names that the Fortran 90 compiler |
7077 |
– |
generates when compiling [FILES]." |
7078 |
– |
|
7079 |
– |
list= |
7080 |
– |
empty= |
7081 |
– |
|
7082 |
– |
if test \$# -eq 0; then |
7083 |
– |
echo "\$usage"; exit 0 |
7084 |
– |
fi |
7085 |
– |
|
7086 |
– |
while test \$# != 0; do |
7087 |
– |
|
7088 |
– |
file=\$1 |
7089 |
– |
shift |
7090 |
– |
|
7091 |
– |
# strip suffix |
7092 |
– |
base=\`echo \$file | sed 's/[.][^.]*$//'\` |
7093 |
– |
|
7094 |
– |
test ! -f \$file && continue |
7095 |
– |
|
7096 |
– |
# Look for module definitions and transform them to upper / lower case |
7097 |
– |
mods=\`cat \$file | sed '/^ *[mM][oO][dD][uU][lL][eE]/!d;s/^ *[mM][oO][dD][uU][lL][eE] *\([A-Za-z_][A-Za-z0-9_]*\).*\$/\1/'\` |
7098 |
– |
upper=\`echo \$mods | tr a-z A-Z\` |
7099 |
– |
lower=\`echo \$mods | tr A-Z a-z\` |
7100 |
– |
|
7101 |
– |
# Here, the patterns for generating module file names were inserted by configure |
7102 |
– |
for trans in $ac_cv_f90_module_names; do |
7103 |
– |
|
7104 |
– |
pat=\`echo \$trans | sed 's/.*\(%.*%\).*/\1/'\` |
7105 |
– |
var=empty |
7106 |
– |
case \$pat in |
7107 |
– |
%MODULE%) |
7108 |
– |
var=upper ;; |
7109 |
– |
%Module%) |
7110 |
– |
var=mods ;; |
7111 |
– |
%module%) |
7112 |
– |
var=lower ;; |
7113 |
– |
%FILE%) |
7114 |
– |
test -n "\$mods" && var=base ;; |
7115 |
– |
esac |
7116 |
– |
new=\`eval '(for i in \$'\$var '; do echo \$trans | sed s/\$pat/\$i/; done)'\` |
7117 |
– |
list="\$list \$new" |
7118 |
– |
done |
7119 |
– |
done |
7120 |
– |
|
7121 |
– |
echo \$list |
7122 |
– |
# end of configure-generated script |
7123 |
– |
EOF |
7124 |
– |
chmod 755 scripts/modnam |
7125 |
– |
|
7126 |
– |
pat=`echo $ac_cv_f90_module_names | sed 's/.*\(%.*%\).*/\1/'` |
7127 |
– |
F90_MODULE_NAMES=empty |
7128 |
– |
case $pat in |
7129 |
– |
%MODULE%) |
7130 |
– |
F90_MODULE_NAMES=UPPER ;; |
7131 |
– |
%Module%) |
7132 |
– |
F90_MODULE_NAMES=Mixed ;; |
7133 |
– |
%module%) |
7134 |
– |
F90_MODULE_NAMES=lower ;; |
7135 |
– |
*) |
7136 |
– |
F90_MODULE_NAMES=unknown ;; |
7137 |
– |
esac |
7138 |
– |
|
7139 |
– |
ac_ext=${ac_fc_srcext-f} |
7140 |
– |
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' |
7141 |
– |
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' |
7142 |
– |
ac_compiler_gnu=$ac_cv_fc_compiler_gnu |
7143 |
– |
|
7144 |
– |
|
7145 |
– |
ac_ext=c |
7146 |
– |
ac_cpp='$CPP $CPPFLAGS' |
7147 |
– |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
7148 |
– |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
7149 |
– |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
7150 |
– |
|
7151 |
– |
|
7152 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for asin in -lm" >&5 |
7153 |
– |
$as_echo_n "checking for asin in -lm... " >&6; } |
7154 |
– |
if test "${ac_cv_lib_m_asin+set}" = set; then : |
7155 |
– |
$as_echo_n "(cached) " >&6 |
7156 |
– |
else |
7157 |
– |
ac_check_lib_save_LIBS=$LIBS |
7158 |
– |
LIBS="-lm $LIBS" |
7159 |
– |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7160 |
– |
/* end confdefs.h. */ |
7161 |
– |
|
7162 |
– |
/* Override any GCC internal prototype to avoid an error. |
7163 |
– |
Use char because int might match the return type of a GCC |
7164 |
– |
builtin and then its argument prototype would still apply. */ |
7165 |
– |
#ifdef __cplusplus |
7166 |
– |
extern "C" |
7167 |
– |
#endif |
7168 |
– |
char asin (); |
7169 |
– |
#ifdef FC_DUMMY_MAIN |
7170 |
– |
#ifndef FC_DUMMY_MAIN_EQ_F77 |
7171 |
– |
# ifdef __cplusplus |
7172 |
– |
extern "C" |
7173 |
– |
# endif |
7174 |
– |
int FC_DUMMY_MAIN() { return 1; } |
7175 |
– |
#endif |
7176 |
– |
#endif |
7177 |
– |
int |
7178 |
– |
main () |
7179 |
– |
{ |
7180 |
– |
return asin (); |
7181 |
– |
; |
7182 |
– |
return 0; |
7183 |
– |
} |
7184 |
– |
_ACEOF |
7185 |
– |
if ac_fn_c_try_link "$LINENO"; then : |
7186 |
– |
ac_cv_lib_m_asin=yes |
7187 |
– |
else |
7188 |
– |
ac_cv_lib_m_asin=no |
7189 |
– |
fi |
7190 |
– |
rm -f core conftest.err conftest.$ac_objext \ |
7191 |
– |
conftest$ac_exeext conftest.$ac_ext |
7192 |
– |
LIBS=$ac_check_lib_save_LIBS |
7193 |
– |
fi |
5121 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_asin" >&5 |
5122 |
|
$as_echo "$ac_cv_lib_m_asin" >&6; } |
5123 |
< |
if test "x$ac_cv_lib_m_asin" = x""yes; then : |
5123 |
> |
if test "x$ac_cv_lib_m_asin" = xyes; then : |
5124 |
|
cat >>confdefs.h <<_ACEOF |
5125 |
|
#define HAVE_LIBM 1 |
5126 |
|
_ACEOF |
5134 |
|
|
5135 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
5136 |
|
$as_echo_n "checking for ANSI C header files... " >&6; } |
5137 |
< |
if test "${ac_cv_header_stdc+set}" = set; then : |
5137 |
> |
if ${ac_cv_header_stdc+:} false; then : |
5138 |
|
$as_echo_n "(cached) " >&6 |
5139 |
|
else |
5140 |
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5144 |
|
#include <string.h> |
5145 |
|
#include <float.h> |
5146 |
|
|
7220 |
– |
#ifdef FC_DUMMY_MAIN |
7221 |
– |
#ifndef FC_DUMMY_MAIN_EQ_F77 |
7222 |
– |
# ifdef __cplusplus |
7223 |
– |
extern "C" |
7224 |
– |
# endif |
7225 |
– |
int FC_DUMMY_MAIN() { return 1; } |
7226 |
– |
#endif |
7227 |
– |
#endif |
5147 |
|
int |
5148 |
|
main () |
5149 |
|
{ |
5251 |
|
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
5252 |
|
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
5253 |
|
" |
5254 |
< |
eval as_val=\$$as_ac_Header |
7336 |
< |
if test "x$as_val" = x""yes; then : |
5254 |
> |
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
5255 |
|
cat >>confdefs.h <<_ACEOF |
5256 |
|
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
5257 |
|
_ACEOF |
5306 |
|
|
5307 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflateEnd in -lz" >&5 |
5308 |
|
$as_echo_n "checking for inflateEnd in -lz... " >&6; } |
5309 |
< |
if test "${ac_cv_lib_z_inflateEnd+set}" = set; then : |
5309 |
> |
if ${ac_cv_lib_z_inflateEnd+:} false; then : |
5310 |
|
$as_echo_n "(cached) " >&6 |
5311 |
|
else |
5312 |
|
ac_check_lib_save_LIBS=$LIBS |
5321 |
|
extern "C" |
5322 |
|
#endif |
5323 |
|
char inflateEnd (); |
7406 |
– |
#ifdef FC_DUMMY_MAIN |
7407 |
– |
#ifndef FC_DUMMY_MAIN_EQ_F77 |
7408 |
– |
# ifdef __cplusplus |
7409 |
– |
extern "C" |
7410 |
– |
# endif |
7411 |
– |
int FC_DUMMY_MAIN() { return 1; } |
7412 |
– |
#endif |
7413 |
– |
#endif |
5324 |
|
int |
5325 |
|
main () |
5326 |
|
{ |
5340 |
|
fi |
5341 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateEnd" >&5 |
5342 |
|
$as_echo "$ac_cv_lib_z_inflateEnd" >&6; } |
5343 |
< |
if test "x$ac_cv_lib_z_inflateEnd" = x""yes; then : |
5343 |
> |
if test "x$ac_cv_lib_z_inflateEnd" = xyes; then : |
5344 |
|
zlib_cv_libz=yes |
5345 |
|
else |
5346 |
|
zlib_cv_libz=no |
5347 |
|
fi |
5348 |
|
|
5349 |
|
ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default" |
5350 |
< |
if test "x$ac_cv_header_zlib_h" = x""yes; then : |
5350 |
> |
if test "x$ac_cv_header_zlib_h" = xyes; then : |
5351 |
|
zlib_cv_zlib_h=yes |
5352 |
|
else |
5353 |
|
zlib_cv_zlib_h=no |
5438 |
|
|
5439 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_execute in -lfftw3" >&5 |
5440 |
|
$as_echo_n "checking for fftw_execute in -lfftw3... " >&6; } |
5441 |
< |
if test "${ac_cv_lib_fftw3_fftw_execute+set}" = set; then : |
5441 |
> |
if ${ac_cv_lib_fftw3_fftw_execute+:} false; then : |
5442 |
|
$as_echo_n "(cached) " >&6 |
5443 |
|
else |
5444 |
|
ac_check_lib_save_LIBS=$LIBS |
5453 |
|
extern "C" |
5454 |
|
#endif |
5455 |
|
char fftw_execute (); |
7546 |
– |
#ifdef FC_DUMMY_MAIN |
7547 |
– |
#ifndef FC_DUMMY_MAIN_EQ_F77 |
7548 |
– |
# ifdef __cplusplus |
7549 |
– |
extern "C" |
7550 |
– |
# endif |
7551 |
– |
int FC_DUMMY_MAIN() { return 1; } |
7552 |
– |
#endif |
7553 |
– |
#endif |
5456 |
|
int |
5457 |
|
main () |
5458 |
|
{ |
5472 |
|
fi |
5473 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_execute" >&5 |
5474 |
|
$as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; } |
5475 |
< |
if test "x$ac_cv_lib_fftw3_fftw_execute" = x""yes; then : |
5475 |
> |
if test "x$ac_cv_lib_fftw3_fftw_execute" = xyes; then : |
5476 |
|
fftw_cv_libfftw3=yes |
5477 |
|
else |
5478 |
|
fftw_cv_libfftw3=no |
5479 |
|
fi |
5480 |
|
|
5481 |
|
ac_fn_c_check_header_mongrel "$LINENO" "fftw3.h" "ac_cv_header_fftw3_h" "$ac_includes_default" |
5482 |
< |
if test "x$ac_cv_header_fftw3_h" = x""yes; then : |
5482 |
> |
if test "x$ac_cv_header_fftw3_h" = xyes; then : |
5483 |
|
fftw_cv_fftw3_h=yes |
5484 |
|
else |
5485 |
|
fftw_cv_fftw3_h=no |
5489 |
|
if test "$fftw_cv_libfftw3" = "no" -o "$fftw_cv_fftw3_h" = "no"; then |
5490 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftwnd_one in -lfftw" >&5 |
5491 |
|
$as_echo_n "checking for fftwnd_one in -lfftw... " >&6; } |
5492 |
< |
if test "${ac_cv_lib_fftw_fftwnd_one+set}" = set; then : |
5492 |
> |
if ${ac_cv_lib_fftw_fftwnd_one+:} false; then : |
5493 |
|
$as_echo_n "(cached) " >&6 |
5494 |
|
else |
5495 |
|
ac_check_lib_save_LIBS=$LIBS |
5504 |
|
extern "C" |
5505 |
|
#endif |
5506 |
|
char fftwnd_one (); |
7605 |
– |
#ifdef FC_DUMMY_MAIN |
7606 |
– |
#ifndef FC_DUMMY_MAIN_EQ_F77 |
7607 |
– |
# ifdef __cplusplus |
7608 |
– |
extern "C" |
7609 |
– |
# endif |
7610 |
– |
int FC_DUMMY_MAIN() { return 1; } |
7611 |
– |
#endif |
7612 |
– |
#endif |
5507 |
|
int |
5508 |
|
main () |
5509 |
|
{ |
5523 |
|
fi |
5524 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw_fftwnd_one" >&5 |
5525 |
|
$as_echo "$ac_cv_lib_fftw_fftwnd_one" >&6; } |
5526 |
< |
if test "x$ac_cv_lib_fftw_fftwnd_one" = x""yes; then : |
5526 |
> |
if test "x$ac_cv_lib_fftw_fftwnd_one" = xyes; then : |
5527 |
|
fftw_cv_libfftw=yes |
5528 |
|
else |
5529 |
|
fftw_cv_libfftw=no |
5530 |
|
fi |
5531 |
|
|
5532 |
|
ac_fn_c_check_header_mongrel "$LINENO" "fftw.h" "ac_cv_header_fftw_h" "$ac_includes_default" |
5533 |
< |
if test "x$ac_cv_header_fftw_h" = x""yes; then : |
5533 |
> |
if test "x$ac_cv_header_fftw_h" = xyes; then : |
5534 |
|
fftw_cv_fftw_h=yes |
5535 |
|
else |
5536 |
|
fftw_cv_fftw_h=no |
5540 |
|
if test "$fftw_cv_libfftw" = "no" -o "$fftw_cv_fftw_h" = "no"; then |
5541 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftwnd_one in -ldfftw" >&5 |
5542 |
|
$as_echo_n "checking for fftwnd_one in -ldfftw... " >&6; } |
5543 |
< |
if test "${ac_cv_lib_dfftw_fftwnd_one+set}" = set; then : |
5543 |
> |
if ${ac_cv_lib_dfftw_fftwnd_one+:} false; then : |
5544 |
|
$as_echo_n "(cached) " >&6 |
5545 |
|
else |
5546 |
|
ac_check_lib_save_LIBS=$LIBS |
5555 |
|
extern "C" |
5556 |
|
#endif |
5557 |
|
char fftwnd_one (); |
7664 |
– |
#ifdef FC_DUMMY_MAIN |
7665 |
– |
#ifndef FC_DUMMY_MAIN_EQ_F77 |
7666 |
– |
# ifdef __cplusplus |
7667 |
– |
extern "C" |
7668 |
– |
# endif |
7669 |
– |
int FC_DUMMY_MAIN() { return 1; } |
7670 |
– |
#endif |
7671 |
– |
#endif |
5558 |
|
int |
5559 |
|
main () |
5560 |
|
{ |
5574 |
|
fi |
5575 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dfftw_fftwnd_one" >&5 |
5576 |
|
$as_echo "$ac_cv_lib_dfftw_fftwnd_one" >&6; } |
5577 |
< |
if test "x$ac_cv_lib_dfftw_fftwnd_one" = x""yes; then : |
5577 |
> |
if test "x$ac_cv_lib_dfftw_fftwnd_one" = xyes; then : |
5578 |
|
fftw_cv_libdfftw=yes |
5579 |
|
else |
5580 |
|
fftw_cv_libdfftw=no |
5581 |
|
fi |
5582 |
|
|
5583 |
|
ac_fn_c_check_header_mongrel "$LINENO" "dfftw.h" "ac_cv_header_dfftw_h" "$ac_includes_default" |
5584 |
< |
if test "x$ac_cv_header_dfftw_h" = x""yes; then : |
5584 |
> |
if test "x$ac_cv_header_dfftw_h" = xyes; then : |
5585 |
|
fftw_cv_dfftw_h=yes |
5586 |
|
else |
5587 |
|
fftw_cv_dfftw_h=no |
5673 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Sorry, $qhull_dir does not exist, checking usual places" >&5 |
5674 |
|
$as_echo "$as_me: WARNING: Sorry, $qhull_dir does not exist, checking usual places" >&2;} |
5675 |
|
QHULL_HOME=/usr/local |
5676 |
< |
if test ! -f "${QHULL_HOME}/include/qhull/qhull.h"; then |
5676 |
> |
if test ! -f "${QHULL_HOME}/include/qhull/libqhull.h"; then |
5677 |
|
QHULL_HOME=/usr |
5678 |
|
fi |
5679 |
|
fi |
5697 |
|
LDFLAGS="$LDFLAGS -L${QHULL_HOME}/lib" |
5698 |
|
CFLAGS="$CFLAGS -I${QHULL_HOME}/include" |
5699 |
|
CPPFLAGS="$CPPFLAGS -I${QHULL_HOME}/include" |
5700 |
< |
ac_fn_c_check_header_mongrel "$LINENO" "qhull/qhull.h" "ac_cv_header_qhull_qhull_h" "$ac_includes_default" |
5701 |
< |
if test "x$ac_cv_header_qhull_qhull_h" = x""yes; then : |
5702 |
< |
qhull_cv_qhull_h=yes |
5700 |
> |
ac_fn_c_check_header_mongrel "$LINENO" "qhull/libqhull.h" "ac_cv_header_qhull_libqhull_h" "$ac_includes_default" |
5701 |
> |
if test "x$ac_cv_header_qhull_libqhull_h" = xyes; then : |
5702 |
> |
qhull_cv_libqhull_h=yes |
5703 |
|
else |
5704 |
< |
qhull_cv_qhull_h=no |
5704 |
> |
qhull_cv_libqhull_h=no |
5705 |
|
fi |
5706 |
|
|
5707 |
|
|
5708 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for qh_qhull in -lqhull" >&5 |
5709 |
|
$as_echo_n "checking for qh_qhull in -lqhull... " >&6; } |
5710 |
< |
if test "${ac_cv_lib_qhull_qh_qhull+set}" = set; then : |
5710 |
> |
if ${ac_cv_lib_qhull_qh_qhull+:} false; then : |
5711 |
|
$as_echo_n "(cached) " >&6 |
5712 |
|
else |
5713 |
|
ac_check_lib_save_LIBS=$LIBS |
5722 |
|
extern "C" |
5723 |
|
#endif |
5724 |
|
char qh_qhull (); |
7839 |
– |
#ifdef FC_DUMMY_MAIN |
7840 |
– |
#ifndef FC_DUMMY_MAIN_EQ_F77 |
7841 |
– |
# ifdef __cplusplus |
7842 |
– |
extern "C" |
7843 |
– |
# endif |
7844 |
– |
int FC_DUMMY_MAIN() { return 1; } |
7845 |
– |
#endif |
7846 |
– |
#endif |
5725 |
|
int |
5726 |
|
main () |
5727 |
|
{ |
5741 |
|
fi |
5742 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_qhull_qh_qhull" >&5 |
5743 |
|
$as_echo "$ac_cv_lib_qhull_qh_qhull" >&6; } |
5744 |
< |
if test "x$ac_cv_lib_qhull_qh_qhull" = x""yes; then : |
5744 |
> |
if test "x$ac_cv_lib_qhull_qh_qhull" = xyes; then : |
5745 |
|
qhull_cv_libqhull=yes |
5746 |
|
else |
5747 |
|
qhull_cv_libqhull=no |
5748 |
|
fi |
5749 |
|
|
5750 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for qh_qhull in -lqhull6" >&5 |
5751 |
+ |
$as_echo_n "checking for qh_qhull in -lqhull6... " >&6; } |
5752 |
+ |
if ${ac_cv_lib_qhull6_qh_qhull+:} false; then : |
5753 |
+ |
$as_echo_n "(cached) " >&6 |
5754 |
+ |
else |
5755 |
+ |
ac_check_lib_save_LIBS=$LIBS |
5756 |
+ |
LIBS="-lqhull6 $LIBS" |
5757 |
+ |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5758 |
+ |
/* end confdefs.h. */ |
5759 |
+ |
|
5760 |
+ |
/* Override any GCC internal prototype to avoid an error. |
5761 |
+ |
Use char because int might match the return type of a GCC |
5762 |
+ |
builtin and then its argument prototype would still apply. */ |
5763 |
+ |
#ifdef __cplusplus |
5764 |
+ |
extern "C" |
5765 |
+ |
#endif |
5766 |
+ |
char qh_qhull (); |
5767 |
+ |
int |
5768 |
+ |
main () |
5769 |
+ |
{ |
5770 |
+ |
return qh_qhull (); |
5771 |
+ |
; |
5772 |
+ |
return 0; |
5773 |
+ |
} |
5774 |
+ |
_ACEOF |
5775 |
+ |
if ac_fn_c_try_link "$LINENO"; then : |
5776 |
+ |
ac_cv_lib_qhull6_qh_qhull=yes |
5777 |
+ |
else |
5778 |
+ |
ac_cv_lib_qhull6_qh_qhull=no |
5779 |
+ |
fi |
5780 |
+ |
rm -f core conftest.err conftest.$ac_objext \ |
5781 |
+ |
conftest$ac_exeext conftest.$ac_ext |
5782 |
+ |
LIBS=$ac_check_lib_save_LIBS |
5783 |
+ |
fi |
5784 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_qhull6_qh_qhull" >&5 |
5785 |
+ |
$as_echo "$ac_cv_lib_qhull6_qh_qhull" >&6; } |
5786 |
+ |
if test "x$ac_cv_lib_qhull6_qh_qhull" = xyes; then : |
5787 |
+ |
qhull_cv_libqhull6=yes |
5788 |
+ |
else |
5789 |
+ |
qhull_cv_libqhull6=no |
5790 |
+ |
fi |
5791 |
+ |
|
5792 |
|
LDFLAGS="$QHULL_OLD_LDFLAGS" |
5793 |
|
CFLAGS="$QHULL_OLD_CFLAGS" |
5794 |
|
CPPFLAGS="$QHULL_OLD_CPPFLAGS" |
5799 |
|
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
5800 |
|
|
5801 |
|
|
5802 |
< |
if test "$qhull_cv_libqhull" = "yes" -a "$qhull_cv_qhull_h" = "yes"; then |
5802 |
> |
if test "$qhull_cv_libqhull_h" = "yes" -a "$qhull_cv_libqhull" = "yes" -o "$qhull_cv_libqhull6" = "yes"; then |
5803 |
|
|
5804 |
< |
$as_echo "#define HAVE_QHULL_H 1" >>confdefs.h |
5804 |
> |
$as_echo "#define HAVE_LIBQHULL_H 1" >>confdefs.h |
5805 |
|
|
5806 |
+ |
if test "$qhull_cv_libqhull" = "yes"; then |
5807 |
|
|
5808 |
|
$as_echo "#define HAVE_QHULL 1" >>confdefs.h |
5809 |
|
|
5810 |
+ |
QHULL="-lqhull" |
5811 |
+ |
fi |
5812 |
+ |
if test "$qhull_cv_libqhull6" = "yes"; then |
5813 |
+ |
|
5814 |
+ |
$as_echo "#define HAVE_QHULL 1" >>confdefs.h |
5815 |
+ |
|
5816 |
+ |
QHULL="-lqhull6" |
5817 |
+ |
fi |
5818 |
|
USE_QHULL=yes |
5819 |
|
QHULL_INC_DIR="${QHULL_HOME}/include" |
5820 |
|
QHULL_LIB_DIR="${QHULL_HOME}/lib" |
7892 |
– |
QHULL="-lqhull" |
5821 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Working qhull found, will proceed." >&5 |
5822 |
|
$as_echo "Working qhull found, will proceed." >&6; } |
5823 |
|
else |
5853 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 |
5854 |
|
$as_echo_n "checking how to run the C++ preprocessor... " >&6; } |
5855 |
|
if test -z "$CXXCPP"; then |
5856 |
< |
if test "${ac_cv_prog_CXXCPP+set}" = set; then : |
5856 |
> |
if ${ac_cv_prog_CXXCPP+:} false; then : |
5857 |
|
$as_echo_n "(cached) " >&6 |
5858 |
|
else |
5859 |
|
# Double quotes because CXXCPP needs to be expanded |
5883 |
|
# Broken: fails on valid input. |
5884 |
|
continue |
5885 |
|
fi |
5886 |
< |
rm -f conftest.err conftest.$ac_ext |
5886 |
> |
rm -f conftest.err conftest.i conftest.$ac_ext |
5887 |
|
|
5888 |
|
# OK, works on sane cases. Now check whether nonexistent headers |
5889 |
|
# can be detected and how. |
5899 |
|
ac_preproc_ok=: |
5900 |
|
break |
5901 |
|
fi |
5902 |
< |
rm -f conftest.err conftest.$ac_ext |
5902 |
> |
rm -f conftest.err conftest.i conftest.$ac_ext |
5903 |
|
|
5904 |
|
done |
5905 |
|
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
5906 |
< |
rm -f conftest.err conftest.$ac_ext |
5906 |
> |
rm -f conftest.i conftest.err conftest.$ac_ext |
5907 |
|
if $ac_preproc_ok; then : |
5908 |
|
break |
5909 |
|
fi |
5942 |
|
# Broken: fails on valid input. |
5943 |
|
continue |
5944 |
|
fi |
5945 |
< |
rm -f conftest.err conftest.$ac_ext |
5945 |
> |
rm -f conftest.err conftest.i conftest.$ac_ext |
5946 |
|
|
5947 |
|
# OK, works on sane cases. Now check whether nonexistent headers |
5948 |
|
# can be detected and how. |
5958 |
|
ac_preproc_ok=: |
5959 |
|
break |
5960 |
|
fi |
5961 |
< |
rm -f conftest.err conftest.$ac_ext |
5961 |
> |
rm -f conftest.err conftest.i conftest.$ac_ext |
5962 |
|
|
5963 |
|
done |
5964 |
|
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
5965 |
< |
rm -f conftest.err conftest.$ac_ext |
5965 |
> |
rm -f conftest.i conftest.err conftest.$ac_ext |
5966 |
|
if $ac_preproc_ok; then : |
5967 |
|
|
5968 |
|
else |
5969 |
|
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
5970 |
|
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
5971 |
< |
as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check |
5972 |
< |
See \`config.log' for more details." "$LINENO" 5; } |
5971 |
> |
as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check |
5972 |
> |
See \`config.log' for more details" "$LINENO" 5; } |
5973 |
|
fi |
5974 |
|
|
5975 |
|
ac_ext=cpp |
6023 |
|
LDFLAGS="$LDFLAGS -L${OPENBABEL_HOME}/lib -lopenbabel" |
6024 |
|
CPPFLAGS="$CPPFLAGS -I${OPENBABEL_HOME}/include/openbabel-2.0" |
6025 |
|
ac_fn_cxx_check_header_mongrel "$LINENO" "openbabel/babelconfig.h" "ac_cv_header_openbabel_babelconfig_h" "$ac_includes_default" |
6026 |
< |
if test "x$ac_cv_header_openbabel_babelconfig_h" = x""yes; then : |
6026 |
> |
if test "x$ac_cv_header_openbabel_babelconfig_h" = xyes; then : |
6027 |
|
openbabel_cv_openbabel_h=yes |
6028 |
|
else |
6029 |
|
openbabel_cv_openbabel_h=no |
6031 |
|
|
6032 |
|
|
6033 |
|
ac_fn_cxx_check_header_mongrel "$LINENO" "openbabel/obconversion.h" "ac_cv_header_openbabel_obconversion_h" "$ac_includes_default" |
6034 |
< |
if test "x$ac_cv_header_openbabel_obconversion_h" = x""yes; then : |
6034 |
> |
if test "x$ac_cv_header_openbabel_obconversion_h" = xyes; then : |
6035 |
|
openbabel_cv_obconversion_h=yes |
6036 |
|
else |
6037 |
|
openbabel_cv_obconversion_h=no |
6047 |
|
using namespace std; |
6048 |
|
using namespace OpenBabel; |
6049 |
|
|
8122 |
– |
#ifdef FC_DUMMY_MAIN |
8123 |
– |
#ifndef FC_DUMMY_MAIN_EQ_F77 |
8124 |
– |
# ifdef __cplusplus |
8125 |
– |
extern "C" |
8126 |
– |
# endif |
8127 |
– |
int FC_DUMMY_MAIN() { return 1; } |
8128 |
– |
#endif |
8129 |
– |
#endif |
6050 |
|
int |
6051 |
|
main () |
6052 |
|
{ |
6119 |
|
# Checks for header files. |
6120 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
6121 |
|
$as_echo_n "checking for ANSI C header files... " >&6; } |
6122 |
< |
if test "${ac_cv_header_stdc+set}" = set; then : |
6122 |
> |
if ${ac_cv_header_stdc+:} false; then : |
6123 |
|
$as_echo_n "(cached) " >&6 |
6124 |
|
else |
6125 |
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6129 |
|
#include <string.h> |
6130 |
|
#include <float.h> |
6131 |
|
|
8212 |
– |
#ifdef FC_DUMMY_MAIN |
8213 |
– |
#ifndef FC_DUMMY_MAIN_EQ_F77 |
8214 |
– |
# ifdef __cplusplus |
8215 |
– |
extern "C" |
8216 |
– |
# endif |
8217 |
– |
int FC_DUMMY_MAIN() { return 1; } |
8218 |
– |
#endif |
8219 |
– |
#endif |
6132 |
|
int |
6133 |
|
main () |
6134 |
|
{ |
6233 |
|
do : |
6234 |
|
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
6235 |
|
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
6236 |
< |
eval as_val=\$$as_ac_Header |
8325 |
< |
if test "x$as_val" = x""yes; then : |
6236 |
> |
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
6237 |
|
cat >>confdefs.h <<_ACEOF |
6238 |
|
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
6239 |
|
_ACEOF |
6246 |
|
# Checks for typedefs, structures, and compiler characteristics. |
6247 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5 |
6248 |
|
$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; } |
6249 |
< |
if test "${ac_cv_header_stdbool_h+set}" = set; then : |
6249 |
> |
if ${ac_cv_header_stdbool_h+:} false; then : |
6250 |
|
$as_echo_n "(cached) " >&6 |
6251 |
|
else |
6252 |
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6278 |
|
char b[false == 0 ? 1 : -1]; |
6279 |
|
char c[__bool_true_false_are_defined == 1 ? 1 : -1]; |
6280 |
|
char d[(bool) 0.5 == true ? 1 : -1]; |
6281 |
< |
bool e = &s; |
6281 |
> |
/* See body of main program for 'e'. */ |
6282 |
|
char f[(_Bool) 0.0 == false ? 1 : -1]; |
6283 |
|
char g[true]; |
6284 |
|
char h[sizeof (_Bool)]; |
6289 |
|
_Bool n[m]; |
6290 |
|
char o[sizeof n == m * sizeof n[0] ? 1 : -1]; |
6291 |
|
char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1]; |
8381 |
– |
# if defined __xlc__ || defined __GNUC__ |
8382 |
– |
/* Catch a bug in IBM AIX xlc compiler version 6.0.0.0 |
8383 |
– |
reported by James Lemley on 2005-10-05; see |
8384 |
– |
http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html |
8385 |
– |
This test is not quite right, since xlc is allowed to |
8386 |
– |
reject this program, as the initializer for xlcbug is |
8387 |
– |
not one of the forms that C requires support for. |
8388 |
– |
However, doing the test right would require a runtime |
8389 |
– |
test, and that would make cross-compilation harder. |
8390 |
– |
Let us hope that IBM fixes the xlc bug, and also adds |
8391 |
– |
support for this kind of constant expression. In the |
8392 |
– |
meantime, this test will reject xlc, which is OK, since |
8393 |
– |
our stdbool.h substitute should suffice. We also test |
8394 |
– |
this with GCC, where it should work, to detect more |
8395 |
– |
quickly whether someone messes up the test in the |
8396 |
– |
future. */ |
8397 |
– |
char digs[] = "0123456789"; |
8398 |
– |
int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1); |
8399 |
– |
# endif |
6292 |
|
/* Catch a bug in an HP-UX C compiler. See |
6293 |
|
http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html |
6294 |
|
http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html |
6296 |
|
_Bool q = true; |
6297 |
|
_Bool *pq = &q; |
6298 |
|
|
8407 |
– |
#ifdef FC_DUMMY_MAIN |
8408 |
– |
#ifndef FC_DUMMY_MAIN_EQ_F77 |
8409 |
– |
# ifdef __cplusplus |
8410 |
– |
extern "C" |
8411 |
– |
# endif |
8412 |
– |
int FC_DUMMY_MAIN() { return 1; } |
8413 |
– |
#endif |
8414 |
– |
#endif |
6299 |
|
int |
6300 |
|
main () |
6301 |
|
{ |
6302 |
|
|
6303 |
+ |
bool e = &s; |
6304 |
|
*pq |= q; |
6305 |
|
*pq |= ! q; |
6306 |
|
/* Refer to every declared value, to avoid compiler optimizations. */ |
6321 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5 |
6322 |
|
$as_echo "$ac_cv_header_stdbool_h" >&6; } |
6323 |
|
ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default" |
6324 |
< |
if test "x$ac_cv_type__Bool" = x""yes; then : |
6324 |
> |
if test "x$ac_cv_type__Bool" = xyes; then : |
6325 |
|
|
6326 |
|
cat >>confdefs.h <<_ACEOF |
6327 |
|
#define HAVE__BOOL 1 |
6338 |
|
|
6339 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 |
6340 |
|
$as_echo_n "checking for an ANSI C-conforming const... " >&6; } |
6341 |
< |
if test "${ac_cv_c_const+set}" = set; then : |
6341 |
> |
if ${ac_cv_c_const+:} false; then : |
6342 |
|
$as_echo_n "(cached) " >&6 |
6343 |
|
else |
6344 |
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6345 |
|
/* end confdefs.h. */ |
6346 |
|
|
8462 |
– |
#ifdef FC_DUMMY_MAIN |
8463 |
– |
#ifndef FC_DUMMY_MAIN_EQ_F77 |
8464 |
– |
# ifdef __cplusplus |
8465 |
– |
extern "C" |
8466 |
– |
# endif |
8467 |
– |
int FC_DUMMY_MAIN() { return 1; } |
8468 |
– |
#endif |
8469 |
– |
#endif |
6347 |
|
int |
6348 |
|
main () |
6349 |
|
{ |
6418 |
|
|
6419 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 |
6420 |
|
$as_echo_n "checking for inline... " >&6; } |
6421 |
< |
if test "${ac_cv_c_inline+set}" = set; then : |
6421 |
> |
if ${ac_cv_c_inline+:} false; then : |
6422 |
|
$as_echo_n "(cached) " >&6 |
6423 |
|
else |
6424 |
|
ac_cv_c_inline=no |
6459 |
|
esac |
6460 |
|
|
6461 |
|
ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" |
6462 |
< |
if test "x$ac_cv_type_size_t" = x""yes; then : |
6462 |
> |
if test "x$ac_cv_type_size_t" = xyes; then : |
6463 |
|
|
6464 |
|
else |
6465 |
|
|
6471 |
|
|
6472 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 |
6473 |
|
$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } |
6474 |
< |
if test "${ac_cv_header_time+set}" = set; then : |
6474 |
> |
if ${ac_cv_header_time+:} false; then : |
6475 |
|
$as_echo_n "(cached) " >&6 |
6476 |
|
else |
6477 |
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6480 |
|
#include <sys/time.h> |
6481 |
|
#include <time.h> |
6482 |
|
|
8606 |
– |
#ifdef FC_DUMMY_MAIN |
8607 |
– |
#ifndef FC_DUMMY_MAIN_EQ_F77 |
8608 |
– |
# ifdef __cplusplus |
8609 |
– |
extern "C" |
8610 |
– |
# endif |
8611 |
– |
int FC_DUMMY_MAIN() { return 1; } |
8612 |
– |
#endif |
8613 |
– |
#endif |
6483 |
|
int |
6484 |
|
main () |
6485 |
|
{ |
6509 |
|
for ac_header in stdlib.h |
6510 |
|
do : |
6511 |
|
ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default" |
6512 |
< |
if test "x$ac_cv_header_stdlib_h" = x""yes; then : |
6512 |
> |
if test "x$ac_cv_header_stdlib_h" = xyes; then : |
6513 |
|
cat >>confdefs.h <<_ACEOF |
6514 |
|
#define HAVE_STDLIB_H 1 |
6515 |
|
_ACEOF |
6520 |
|
|
6521 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5 |
6522 |
|
$as_echo_n "checking for GNU libc compatible malloc... " >&6; } |
6523 |
< |
if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then : |
6523 |
> |
if ${ac_cv_func_malloc_0_nonnull+:} false; then : |
6524 |
|
$as_echo_n "(cached) " >&6 |
6525 |
|
else |
6526 |
|
if test "$cross_compiling" = yes; then : |
6534 |
|
char *malloc (); |
6535 |
|
#endif |
6536 |
|
|
8668 |
– |
#ifdef FC_DUMMY_MAIN |
8669 |
– |
#ifndef FC_DUMMY_MAIN_EQ_F77 |
8670 |
– |
# ifdef __cplusplus |
8671 |
– |
extern "C" |
8672 |
– |
# endif |
8673 |
– |
int FC_DUMMY_MAIN() { return 1; } |
8674 |
– |
#endif |
8675 |
– |
#endif |
6537 |
|
int |
6538 |
|
main () |
6539 |
|
{ |
6576 |
|
for ac_header in stdlib.h |
6577 |
|
do : |
6578 |
|
ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default" |
6579 |
< |
if test "x$ac_cv_header_stdlib_h" = x""yes; then : |
6579 |
> |
if test "x$ac_cv_header_stdlib_h" = xyes; then : |
6580 |
|
cat >>confdefs.h <<_ACEOF |
6581 |
|
#define HAVE_STDLIB_H 1 |
6582 |
|
_ACEOF |
6587 |
|
|
6588 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5 |
6589 |
|
$as_echo_n "checking for GNU libc compatible realloc... " >&6; } |
6590 |
< |
if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then : |
6590 |
> |
if ${ac_cv_func_realloc_0_nonnull+:} false; then : |
6591 |
|
$as_echo_n "(cached) " >&6 |
6592 |
|
else |
6593 |
|
if test "$cross_compiling" = yes; then : |
6601 |
|
char *realloc (); |
6602 |
|
#endif |
6603 |
|
|
8743 |
– |
#ifdef FC_DUMMY_MAIN |
8744 |
– |
#ifndef FC_DUMMY_MAIN_EQ_F77 |
8745 |
– |
# ifdef __cplusplus |
8746 |
– |
extern "C" |
8747 |
– |
# endif |
8748 |
– |
int FC_DUMMY_MAIN() { return 1; } |
8749 |
– |
#endif |
8750 |
– |
#endif |
6604 |
|
int |
6605 |
|
main () |
6606 |
|
{ |
6644 |
|
do : |
6645 |
|
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
6646 |
|
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
6647 |
< |
eval as_val=\$$as_ac_Header |
8795 |
< |
if test "x$as_val" = x""yes; then : |
6647 |
> |
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
6648 |
|
cat >>confdefs.h <<_ACEOF |
6649 |
|
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
6650 |
|
_ACEOF |
6655 |
|
|
6656 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5 |
6657 |
|
$as_echo_n "checking types of arguments for select... " >&6; } |
6658 |
< |
if test "${ac_cv_func_select_args+set}" = set; then : |
6658 |
> |
if ${ac_cv_func_select_args+:} false; then : |
6659 |
|
$as_echo_n "(cached) " >&6 |
6660 |
|
else |
6661 |
|
for ac_arg234 in 'fd_set *' 'int *' 'void *'; do |
6671 |
|
# include <sys/socket.h> |
6672 |
|
#endif |
6673 |
|
|
8822 |
– |
#ifdef FC_DUMMY_MAIN |
8823 |
– |
#ifndef FC_DUMMY_MAIN_EQ_F77 |
8824 |
– |
# ifdef __cplusplus |
8825 |
– |
extern "C" |
8826 |
– |
# endif |
8827 |
– |
int FC_DUMMY_MAIN() { return 1; } |
8828 |
– |
#endif |
8829 |
– |
#endif |
6674 |
|
int |
6675 |
|
main () |
6676 |
|
{ |
6689 |
|
done |
6690 |
|
done |
6691 |
|
# Provide a safe default value. |
6692 |
< |
: ${ac_cv_func_select_args='int,int *,struct timeval *'} |
6692 |
> |
: "${ac_cv_func_select_args=int,int *,struct timeval *}" |
6693 |
|
|
6694 |
|
fi |
6695 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5 |
6717 |
|
|
6718 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5 |
6719 |
|
$as_echo_n "checking for working strtod... " >&6; } |
6720 |
< |
if test "${ac_cv_func_strtod+set}" = set; then : |
6720 |
> |
if ${ac_cv_func_strtod+:} false; then : |
6721 |
|
$as_echo_n "(cached) " >&6 |
6722 |
|
else |
6723 |
|
if test "$cross_compiling" = yes; then : |
6776 |
|
esac |
6777 |
|
|
6778 |
|
ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow" |
6779 |
< |
if test "x$ac_cv_func_pow" = x""yes; then : |
6779 |
> |
if test "x$ac_cv_func_pow" = xyes; then : |
6780 |
|
|
6781 |
|
fi |
6782 |
|
|
6783 |
|
if test $ac_cv_func_pow = no; then |
6784 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5 |
6785 |
|
$as_echo_n "checking for pow in -lm... " >&6; } |
6786 |
< |
if test "${ac_cv_lib_m_pow+set}" = set; then : |
6786 |
> |
if ${ac_cv_lib_m_pow+:} false; then : |
6787 |
|
$as_echo_n "(cached) " >&6 |
6788 |
|
else |
6789 |
|
ac_check_lib_save_LIBS=$LIBS |
6798 |
|
extern "C" |
6799 |
|
#endif |
6800 |
|
char pow (); |
8957 |
– |
#ifdef FC_DUMMY_MAIN |
8958 |
– |
#ifndef FC_DUMMY_MAIN_EQ_F77 |
8959 |
– |
# ifdef __cplusplus |
8960 |
– |
extern "C" |
8961 |
– |
# endif |
8962 |
– |
int FC_DUMMY_MAIN() { return 1; } |
8963 |
– |
#endif |
8964 |
– |
#endif |
6801 |
|
int |
6802 |
|
main () |
6803 |
|
{ |
6817 |
|
fi |
6818 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5 |
6819 |
|
$as_echo "$ac_cv_lib_m_pow" >&6; } |
6820 |
< |
if test "x$ac_cv_lib_m_pow" = x""yes; then : |
6820 |
> |
if test "x$ac_cv_lib_m_pow" = xyes; then : |
6821 |
|
POW_LIB=-lm |
6822 |
|
else |
6823 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5 |
6832 |
|
do : |
6833 |
|
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
6834 |
|
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
6835 |
< |
eval as_val=\$$as_ac_var |
9000 |
< |
if test "x$as_val" = x""yes; then : |
6835 |
> |
if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
6836 |
|
cat >>confdefs.h <<_ACEOF |
6837 |
|
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
6838 |
|
_ACEOF |
6848 |
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6849 |
|
/* end confdefs.h. */ |
6850 |
|
#include <sys/systemcfg.h> |
9016 |
– |
#ifdef FC_DUMMY_MAIN |
9017 |
– |
#ifndef FC_DUMMY_MAIN_EQ_F77 |
9018 |
– |
# ifdef __cplusplus |
9019 |
– |
extern "C" |
9020 |
– |
# endif |
9021 |
– |
int FC_DUMMY_MAIN() { return 1; } |
9022 |
– |
#endif |
9023 |
– |
#endif |
6851 |
|
int |
6852 |
|
main () |
6853 |
|
{ |
6873 |
|
1) |
6874 |
|
;; |
6875 |
|
*) |
9049 |
– |
|
9050 |
– |
|
9051 |
– |
|
9052 |
– |
|
9053 |
– |
|
9054 |
– |
# Try to determine "good" native compiler flags if none specified on command |
9055 |
– |
# line |
6876 |
|
|
9057 |
– |
if test "$ac_test_FFLAGS" != "set"; then |
9058 |
– |
FCFLAGS="" |
9059 |
– |
case "${host_cpu}-${host_os}" in |
6877 |
|
|
9061 |
– |
*linux*) if test "$FC" = ifc -o "$FC" = ifort; then |
9062 |
– |
FCFLAGS="-O2" |
9063 |
– |
fi;; |
9064 |
– |
rs6000*-aix*) if test "$FC" = xlf90 -o "$FC" = f90 -o "$FC" = xlf95; then |
9065 |
– |
FCFLAGS="-O3 -qarch=pwrx -qtune=pwrx -qansialias -w" |
9066 |
– |
fi;; |
9067 |
– |
powerpc*-aix*) |
9068 |
– |
if test "$FC" = f90 -o "$FC" = xlf90 -o "$FC" = xlf95; then |
9069 |
– |
FCFLAGS="-O3 -qarch=ppc -qansialias -w" |
9070 |
– |
echo "*******************************************************" |
9071 |
– |
echo "* You have AIX on an unknown powerpc system. It is *" |
9072 |
– |
echo "* recommended that you use *" |
9073 |
– |
echo "* *" |
9074 |
– |
echo "* FCFLAGS=-O3 -qarch=ppc -qtune=xxx -qansialias -w *" |
9075 |
– |
echo "* ^^^ *" |
9076 |
– |
echo "* where xxx is 601, 603, 604, or whatever kind of *" |
9077 |
– |
echo "* PowerPC CPU you have. For more info, man xlf. *" |
9078 |
– |
echo "*******************************************************" |
9079 |
– |
fi;; |
9080 |
– |
*darwin*) |
9081 |
– |
if test "$FC" = f90 -o "$FC" = xlf90 -o "$FC" = xlf95; then |
9082 |
– |
FCFLAGS="-qthreaded -O -qtune=auto -qarch=auto -qunroll=auto" |
9083 |
– |
fi |
9084 |
– |
if test "$FC" = ifort; then |
9085 |
– |
FCFLAGS="-O2" |
9086 |
– |
fi |
9087 |
– |
if test "$FC" = gfortran; then |
9088 |
– |
FCFLAGS="-Os" |
9089 |
– |
fi;; |
9090 |
– |
esac |
6878 |
|
|
9092 |
– |
if test -z "$FCFLAGS"; then |
9093 |
– |
echo "" |
9094 |
– |
echo "*********************************************************" |
9095 |
– |
echo "* WARNING: Don't know the best FCFLAGS for this system *" |
9096 |
– |
echo "* Use make FCFLAGS=..., or edit the top level Makefile *" |
9097 |
– |
echo "* (otherwise, a default of FCFLAGS=-O will be used) *" |
9098 |
– |
echo "*********************************************************" |
9099 |
– |
echo "" |
9100 |
– |
FCFLAGS="-O" |
9101 |
– |
fi |
6879 |
|
|
6880 |
|
|
9104 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${FC} accepts ${FCFLAGS}" >&5 |
9105 |
– |
$as_echo_n "checking whether ${FC} accepts ${FCFLAGS}... " >&6; } |
9106 |
– |
if test "${ac_cv_ac_cv_guessed_f90flags+set}" = set; then : |
9107 |
– |
$as_echo_n "(cached) " >&6 |
9108 |
– |
else |
6881 |
|
|
9110 |
– |
|
9111 |
– |
ac_ext=${ac_fc_srcext-f} |
9112 |
– |
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' |
9113 |
– |
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' |
9114 |
– |
ac_compiler_gnu=$ac_cv_fc_compiler_gnu |
9115 |
– |
|
9116 |
– |
echo 'program main' > conftest.$ac_ext |
9117 |
– |
echo 'end program main' >> conftest.$ac_ext |
9118 |
– |
ac_compile='${FC} -c ${FCFLAGS} $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext 1>&5' |
9119 |
– |
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
9120 |
– |
(eval $ac_compile) 2>&5 |
9121 |
– |
ac_status=$? |
9122 |
– |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
9123 |
– |
test $ac_status = 0; }; then |
9124 |
– |
ac_cv_ac_cv_guessed_f90flags=yes |
9125 |
– |
else |
9126 |
– |
ac_cv_ac_cv_guessed_f90flags=no |
9127 |
– |
fi |
9128 |
– |
rm -f conftest* |
9129 |
– |
ac_ext=c |
9130 |
– |
ac_cpp='$CPP $CPPFLAGS' |
9131 |
– |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
9132 |
– |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
9133 |
– |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
9134 |
– |
|
9135 |
– |
|
9136 |
– |
fi |
9137 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ac_cv_guessed_f90flags" >&5 |
9138 |
– |
$as_echo "$ac_cv_ac_cv_guessed_f90flags" >&6; } |
9139 |
– |
if test "$ac_cv_ac_cv_guessed_f90flags" = yes; then |
9140 |
– |
: |
9141 |
– |
|
9142 |
– |
else |
9143 |
– |
: |
9144 |
– |
|
9145 |
– |
echo "" |
9146 |
– |
echo "**********************************************************" |
9147 |
– |
echo "* WARNING: The guessed FCFLAGS don't seem to work with *" |
9148 |
– |
echo "* your compiler. *" |
9149 |
– |
echo "* Use make FCFLAGS=..., or edit the top level Makefile *" |
9150 |
– |
echo "*********************************************************" |
9151 |
– |
echo "" |
9152 |
– |
FCFLAGS="" |
9153 |
– |
|
9154 |
– |
fi |
9155 |
– |
|
9156 |
– |
|
9157 |
– |
fi |
9158 |
– |
|
9159 |
– |
|
9160 |
– |
|
9161 |
– |
|
9162 |
– |
|
9163 |
– |
|
9164 |
– |
|
6882 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are *really* using GNU cc" >&5 |
6883 |
|
$as_echo_n "checking whether we are *really* using GNU cc... " >&6; } |
6884 |
< |
if test "${ac_cv_prog_really_gcc+set}" = set; then : |
6884 |
> |
if ${ac_cv_prog_really_gcc+:} false; then : |
6885 |
|
$as_echo_n "(cached) " >&6 |
6886 |
|
else |
6887 |
|
|
6986 |
|
|
6987 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts ${CFLAGS}" >&5 |
6988 |
|
$as_echo_n "checking whether ${CC} accepts ${CFLAGS}... " >&6; } |
6989 |
< |
if test "${ac_cv_ac_cv_guessed_cflags+set}" = set; then : |
6989 |
> |
if ${ac_cv_ac_cv_guessed_cflags+:} false; then : |
6990 |
|
$as_echo_n "(cached) " >&6 |
6991 |
|
else |
6992 |
|
echo 'void f(){}' > conftest.c |
7028 |
|
|
7029 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are *really* using GNU c++" >&5 |
7030 |
|
$as_echo_n "checking whether we are *really* using GNU c++... " >&6; } |
7031 |
< |
if test "${ac_cv_prog_really_gxx+set}" = set; then : |
7031 |
> |
if ${ac_cv_prog_really_gxx+:} false; then : |
7032 |
|
$as_echo_n "(cached) " >&6 |
7033 |
|
else |
7034 |
|
|
7124 |
|
|
7125 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts ${CXXFLAGS}" >&5 |
7126 |
|
$as_echo_n "checking whether ${CXX} accepts ${CXXFLAGS}... " >&6; } |
7127 |
< |
if test "${ac_cv_ac_cv_guessed_cxxflags+set}" = set; then : |
7127 |
> |
if ${ac_cv_ac_cv_guessed_cxxflags+:} false; then : |
7128 |
|
$as_echo_n "(cached) " >&6 |
7129 |
|
else |
7130 |
|
echo 'void f(){}' > conftest.cpp |
7193 |
|
set dummy doxygen; ac_word=$2 |
7194 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7195 |
|
$as_echo_n "checking for $ac_word... " >&6; } |
7196 |
< |
if test "${ac_cv_path_DOXYGEN+set}" = set; then : |
7196 |
> |
if ${ac_cv_path_DOXYGEN+:} false; then : |
7197 |
|
$as_echo_n "(cached) " >&6 |
7198 |
|
else |
7199 |
|
case $DOXYGEN in |
7231 |
|
|
7232 |
|
if test "x$DOXYGEN" = x; then |
7233 |
|
if test "x$enable_doxygen" = xyes; then |
7234 |
< |
as_fn_error "could not find doxygen" "$LINENO" 5 |
7234 |
> |
as_fn_error $? "could not find doxygen" "$LINENO" 5 |
7235 |
|
fi |
7236 |
|
enable_doc=no |
7237 |
|
else |
7240 |
|
set dummy dot; ac_word=$2 |
7241 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7242 |
|
$as_echo_n "checking for $ac_word... " >&6; } |
7243 |
< |
if test "${ac_cv_path_DOT+set}" = set; then : |
7243 |
> |
if ${ac_cv_path_DOT+:} false; then : |
7244 |
|
$as_echo_n "(cached) " >&6 |
7245 |
|
else |
7246 |
|
case $DOT in |
7288 |
|
|
7289 |
|
if test x$DOT = x; then |
7290 |
|
if test "x$enable_dot" = xyes; then |
7291 |
< |
as_fn_error "could not find dot" "$LINENO" 5 |
7291 |
> |
as_fn_error $? "could not find dot" "$LINENO" 5 |
7292 |
|
fi |
7293 |
|
enable_dot=no |
7294 |
|
else |
7310 |
|
|
7311 |
|
|
7312 |
|
|
9596 |
– |
|
9597 |
– |
|
9598 |
– |
|
7313 |
|
ac_config_files="$ac_config_files make/Makefile src/utils/Makefile src/math/Makefile src/integrators/Makefile src/applications/atom2md/Makefile scripts/filepp" |
7314 |
|
|
7315 |
|
|
7377 |
|
:end' >>confcache |
7378 |
|
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
7379 |
|
if test -w "$cache_file"; then |
7380 |
< |
test "x$cache_file" != "x/dev/null" && |
7380 |
> |
if test "x$cache_file" != "x/dev/null"; then |
7381 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
7382 |
|
$as_echo "$as_me: updating cache $cache_file" >&6;} |
7383 |
< |
cat confcache >$cache_file |
7383 |
> |
if test ! -f "$cache_file" || test -h "$cache_file"; then |
7384 |
> |
cat confcache >"$cache_file" |
7385 |
> |
else |
7386 |
> |
case $cache_file in #( |
7387 |
> |
*/* | ?:*) |
7388 |
> |
mv -f confcache "$cache_file"$$ && |
7389 |
> |
mv -f "$cache_file"$$ "$cache_file" ;; #( |
7390 |
> |
*) |
7391 |
> |
mv -f confcache "$cache_file" ;; |
7392 |
> |
esac |
7393 |
> |
fi |
7394 |
> |
fi |
7395 |
|
else |
7396 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
7397 |
|
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
7407 |
|
|
7408 |
|
ac_libobjs= |
7409 |
|
ac_ltlibobjs= |
7410 |
+ |
U= |
7411 |
|
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
7412 |
|
# 1. Remove the extension, and $U if already installed. |
7413 |
|
ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
7423 |
|
|
7424 |
|
|
7425 |
|
|
7426 |
< |
: ${CONFIG_STATUS=./config.status} |
7426 |
> |
: "${CONFIG_STATUS=./config.status}" |
7427 |
|
ac_write_fail=0 |
7428 |
|
ac_clean_files_save=$ac_clean_files |
7429 |
|
ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
7524 |
|
IFS=" "" $as_nl" |
7525 |
|
|
7526 |
|
# Find who we are. Look in the path if we contain no directory separator. |
7527 |
+ |
as_myself= |
7528 |
|
case $0 in #(( |
7529 |
|
*[\\/]* ) as_myself=$0 ;; |
7530 |
|
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7570 |
|
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
7571 |
|
|
7572 |
|
|
7573 |
< |
# as_fn_error ERROR [LINENO LOG_FD] |
7574 |
< |
# --------------------------------- |
7573 |
> |
# as_fn_error STATUS ERROR [LINENO LOG_FD] |
7574 |
> |
# ---------------------------------------- |
7575 |
|
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
7576 |
|
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
7577 |
< |
# script with status $?, using 1 if that was 0. |
7577 |
> |
# script with STATUS, using 1 if that was 0. |
7578 |
|
as_fn_error () |
7579 |
|
{ |
7580 |
< |
as_status=$?; test $as_status -eq 0 && as_status=1 |
7581 |
< |
if test "$3"; then |
7582 |
< |
as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
7583 |
< |
$as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 |
7580 |
> |
as_status=$1; test $as_status -eq 0 && as_status=1 |
7581 |
> |
if test "$4"; then |
7582 |
> |
as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
7583 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
7584 |
|
fi |
7585 |
< |
$as_echo "$as_me: error: $1" >&2 |
7585 |
> |
$as_echo "$as_me: error: $2" >&2 |
7586 |
|
as_fn_exit $as_status |
7587 |
|
} # as_fn_error |
7588 |
|
|
7778 |
|
test -d "$as_dir" && break |
7779 |
|
done |
7780 |
|
test -z "$as_dirs" || eval "mkdir $as_dirs" |
7781 |
< |
} || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" |
7781 |
> |
} || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
7782 |
|
|
7783 |
|
|
7784 |
|
} # as_fn_mkdir_p |
7832 |
|
# values after options handling. |
7833 |
|
ac_log=" |
7834 |
|
This file was extended by OpenMD $as_me 1.0, which was |
7835 |
< |
generated by GNU Autoconf 2.65. Invocation command line was |
7835 |
> |
generated by GNU Autoconf 2.68. Invocation command line was |
7836 |
|
|
7837 |
|
CONFIG_FILES = $CONFIG_FILES |
7838 |
|
CONFIG_HEADERS = $CONFIG_HEADERS |
7894 |
|
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
7895 |
|
ac_cs_version="\\ |
7896 |
|
OpenMD config.status 1.0 |
7897 |
< |
configured by $0, generated by GNU Autoconf 2.65, |
7897 |
> |
configured by $0, generated by GNU Autoconf 2.68, |
7898 |
|
with options \\"\$ac_cs_config\\" |
7899 |
|
|
7900 |
< |
Copyright (C) 2009 Free Software Foundation, Inc. |
7900 |
> |
Copyright (C) 2010 Free Software Foundation, Inc. |
7901 |
|
This config.status script is free software; the Free Software Foundation |
7902 |
|
gives unlimited permission to copy, distribute and modify it." |
7903 |
|
|
7913 |
|
while test $# != 0 |
7914 |
|
do |
7915 |
|
case $1 in |
7916 |
< |
--*=*) |
7916 |
> |
--*=?*) |
7917 |
|
ac_option=`expr "X$1" : 'X\([^=]*\)='` |
7918 |
|
ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
7919 |
|
ac_shift=: |
7920 |
|
;; |
7921 |
+ |
--*=) |
7922 |
+ |
ac_option=`expr "X$1" : 'X\([^=]*\)='` |
7923 |
+ |
ac_optarg= |
7924 |
+ |
ac_shift=: |
7925 |
+ |
;; |
7926 |
|
*) |
7927 |
|
ac_option=$1 |
7928 |
|
ac_optarg=$2 |
7944 |
|
$ac_shift |
7945 |
|
case $ac_optarg in |
7946 |
|
*\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
7947 |
+ |
'') as_fn_error $? "missing file argument" ;; |
7948 |
|
esac |
7949 |
|
as_fn_append CONFIG_FILES " '$ac_optarg'" |
7950 |
|
ac_need_defaults=false;; |
7957 |
|
ac_need_defaults=false;; |
7958 |
|
--he | --h) |
7959 |
|
# Conflict between --help and --header |
7960 |
< |
as_fn_error "ambiguous option: \`$1' |
7960 |
> |
as_fn_error $? "ambiguous option: \`$1' |
7961 |
|
Try \`$0 --help' for more information.";; |
7962 |
|
--help | --hel | -h ) |
7963 |
|
$as_echo "$ac_cs_usage"; exit ;; |
7966 |
|
ac_cs_silent=: ;; |
7967 |
|
|
7968 |
|
# This is an error. |
7969 |
< |
-*) as_fn_error "unrecognized option: \`$1' |
7969 |
> |
-*) as_fn_error $? "unrecognized option: \`$1' |
7970 |
|
Try \`$0 --help' for more information." ;; |
7971 |
|
|
7972 |
|
*) as_fn_append ac_config_targets " $1" |
8023 |
|
"src/applications/atom2md/Makefile") CONFIG_FILES="$CONFIG_FILES src/applications/atom2md/Makefile" ;; |
8024 |
|
"scripts/filepp") CONFIG_FILES="$CONFIG_FILES scripts/filepp" ;; |
8025 |
|
|
8026 |
< |
*) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
8026 |
> |
*) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
8027 |
|
esac |
8028 |
|
done |
8029 |
|
|
8045 |
|
# after its creation but before its name has been assigned to `$tmp'. |
8046 |
|
$debug || |
8047 |
|
{ |
8048 |
< |
tmp= |
8048 |
> |
tmp= ac_tmp= |
8049 |
|
trap 'exit_status=$? |
8050 |
< |
{ test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status |
8050 |
> |
: "${ac_tmp:=$tmp}" |
8051 |
> |
{ test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status |
8052 |
|
' 0 |
8053 |
|
trap 'as_fn_exit 1' 1 2 13 15 |
8054 |
|
} |
8056 |
|
|
8057 |
|
{ |
8058 |
|
tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
8059 |
< |
test -n "$tmp" && test -d "$tmp" |
8059 |
> |
test -d "$tmp" |
8060 |
|
} || |
8061 |
|
{ |
8062 |
|
tmp=./conf$$-$RANDOM |
8063 |
|
(umask 077 && mkdir "$tmp") |
8064 |
< |
} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 |
8064 |
> |
} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
8065 |
> |
ac_tmp=$tmp |
8066 |
|
|
8067 |
|
# Set up the scripts for CONFIG_FILES section. |
8068 |
|
# No need to generate them if there are no CONFIG_FILES. |
8079 |
|
fi |
8080 |
|
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
8081 |
|
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then |
8082 |
< |
ac_cs_awk_cr='\r' |
8082 |
> |
ac_cs_awk_cr='\\r' |
8083 |
|
else |
8084 |
|
ac_cs_awk_cr=$ac_cr |
8085 |
|
fi |
8086 |
|
|
8087 |
< |
echo 'BEGIN {' >"$tmp/subs1.awk" && |
8087 |
> |
echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
8088 |
|
_ACEOF |
8089 |
|
|
8090 |
|
|
8093 |
|
echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && |
8094 |
|
echo "_ACEOF" |
8095 |
|
} >conf$$subs.sh || |
8096 |
< |
as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 |
8097 |
< |
ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` |
8096 |
> |
as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
8097 |
> |
ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` |
8098 |
|
ac_delim='%!_!# ' |
8099 |
|
for ac_last_try in false false false false false :; do |
8100 |
|
. ./conf$$subs.sh || |
8101 |
< |
as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 |
8101 |
> |
as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
8102 |
|
|
8103 |
|
ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
8104 |
|
if test $ac_delim_n = $ac_delim_num; then |
8105 |
|
break |
8106 |
|
elif $ac_last_try; then |
8107 |
< |
as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 |
8107 |
> |
as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
8108 |
|
else |
8109 |
|
ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
8110 |
|
fi |
8112 |
|
rm -f conf$$subs.sh |
8113 |
|
|
8114 |
|
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
8115 |
< |
cat >>"\$tmp/subs1.awk" <<\\_ACAWK && |
8115 |
> |
cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
8116 |
|
_ACEOF |
8117 |
|
sed -n ' |
8118 |
|
h |
8160 |
|
rm -f conf$$subs.awk |
8161 |
|
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
8162 |
|
_ACAWK |
8163 |
< |
cat >>"\$tmp/subs1.awk" <<_ACAWK && |
8163 |
> |
cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
8164 |
|
for (key in S) S_is_set[key] = 1 |
8165 |
|
FS = "" |
8166 |
|
|
8192 |
|
sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" |
8193 |
|
else |
8194 |
|
cat |
8195 |
< |
fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ |
8196 |
< |
|| as_fn_error "could not setup config files machinery" "$LINENO" 5 |
8195 |
> |
fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
8196 |
> |
|| as_fn_error $? "could not setup config files machinery" "$LINENO" 5 |
8197 |
|
_ACEOF |
8198 |
|
|
8199 |
< |
# VPATH may cause trouble with some makes, so we remove $(srcdir), |
8200 |
< |
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
8199 |
> |
# VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
8200 |
> |
# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and |
8201 |
|
# trailing colons and then remove the whole line if VPATH becomes empty |
8202 |
|
# (actually we leave an empty line to preserve line numbers). |
8203 |
|
if test "x$srcdir" = x.; then |
8204 |
< |
ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
8205 |
< |
s/:*\$(srcdir):*/:/ |
8206 |
< |
s/:*\${srcdir}:*/:/ |
8207 |
< |
s/:*@srcdir@:*/:/ |
8208 |
< |
s/^\([^=]*=[ ]*\):*/\1/ |
8204 |
> |
ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
8205 |
> |
h |
8206 |
> |
s/// |
8207 |
> |
s/^/:/ |
8208 |
> |
s/[ ]*$/:/ |
8209 |
> |
s/:\$(srcdir):/:/g |
8210 |
> |
s/:\${srcdir}:/:/g |
8211 |
> |
s/:@srcdir@:/:/g |
8212 |
> |
s/^:*// |
8213 |
|
s/:*$// |
8214 |
+ |
x |
8215 |
+ |
s/\(=[ ]*\).*/\1/ |
8216 |
+ |
G |
8217 |
+ |
s/\n// |
8218 |
|
s/^[^=]*=[ ]*$// |
8219 |
|
}' |
8220 |
|
fi |
8226 |
|
# No need to generate them if there are no CONFIG_HEADERS. |
8227 |
|
# This happens for instance with `./config.status Makefile'. |
8228 |
|
if test -n "$CONFIG_HEADERS"; then |
8229 |
< |
cat >"$tmp/defines.awk" <<\_ACAWK || |
8229 |
> |
cat >"$ac_tmp/defines.awk" <<\_ACAWK || |
8230 |
|
BEGIN { |
8231 |
|
_ACEOF |
8232 |
|
|
8238 |
|
# handling of long lines. |
8239 |
|
ac_delim='%!_!# ' |
8240 |
|
for ac_last_try in false false :; do |
8241 |
< |
ac_t=`sed -n "/$ac_delim/p" confdefs.h` |
8242 |
< |
if test -z "$ac_t"; then |
8241 |
> |
ac_tt=`sed -n "/$ac_delim/p" confdefs.h` |
8242 |
> |
if test -z "$ac_tt"; then |
8243 |
|
break |
8244 |
|
elif $ac_last_try; then |
8245 |
< |
as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5 |
8245 |
> |
as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
8246 |
|
else |
8247 |
|
ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
8248 |
|
fi |
8327 |
|
_ACAWK |
8328 |
|
_ACEOF |
8329 |
|
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
8330 |
< |
as_fn_error "could not setup config headers machinery" "$LINENO" 5 |
8330 |
> |
as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
8331 |
|
fi # test -n "$CONFIG_HEADERS" |
8332 |
|
|
8333 |
|
|
8340 |
|
esac |
8341 |
|
case $ac_mode$ac_tag in |
8342 |
|
:[FHL]*:*);; |
8343 |
< |
:L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; |
8343 |
> |
:L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
8344 |
|
:[FH]-) ac_tag=-:-;; |
8345 |
|
:[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
8346 |
|
esac |
8359 |
|
for ac_f |
8360 |
|
do |
8361 |
|
case $ac_f in |
8362 |
< |
-) ac_f="$tmp/stdin";; |
8362 |
> |
-) ac_f="$ac_tmp/stdin";; |
8363 |
|
*) # Look for the file first in the build tree, then in the source tree |
8364 |
|
# (if the path is not absolute). The absolute path cannot be DOS-style, |
8365 |
|
# because $ac_f cannot contain `:'. |
8368 |
|
[\\/$]*) false;; |
8369 |
|
*) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
8370 |
|
esac || |
8371 |
< |
as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
8371 |
> |
as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
8372 |
|
esac |
8373 |
|
case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
8374 |
|
as_fn_append ac_file_inputs " '$ac_f'" |
8394 |
|
esac |
8395 |
|
|
8396 |
|
case $ac_tag in |
8397 |
< |
*:-:* | *:-) cat >"$tmp/stdin" \ |
8398 |
< |
|| as_fn_error "could not create $ac_file" "$LINENO" 5 ;; |
8397 |
> |
*:-:* | *:-) cat >"$ac_tmp/stdin" \ |
8398 |
> |
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; |
8399 |
|
esac |
8400 |
|
;; |
8401 |
|
esac |
8525 |
|
s&@INSTALL@&$ac_INSTALL&;t t |
8526 |
|
$ac_datarootdir_hack |
8527 |
|
" |
8528 |
< |
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ |
8529 |
< |
|| as_fn_error "could not create $ac_file" "$LINENO" 5 |
8528 |
> |
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
8529 |
> |
>$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
8530 |
|
|
8531 |
|
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
8532 |
< |
{ ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
8533 |
< |
{ ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
8532 |
> |
{ ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
8533 |
> |
{ ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ |
8534 |
> |
"$ac_tmp/out"`; test -z "$ac_out"; } && |
8535 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
8536 |
< |
which seems to be undefined. Please make sure it is defined." >&5 |
8536 |
> |
which seems to be undefined. Please make sure it is defined" >&5 |
8537 |
|
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
8538 |
< |
which seems to be undefined. Please make sure it is defined." >&2;} |
8538 |
> |
which seems to be undefined. Please make sure it is defined" >&2;} |
8539 |
|
|
8540 |
< |
rm -f "$tmp/stdin" |
8540 |
> |
rm -f "$ac_tmp/stdin" |
8541 |
|
case $ac_file in |
8542 |
< |
-) cat "$tmp/out" && rm -f "$tmp/out";; |
8543 |
< |
*) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; |
8542 |
> |
-) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
8543 |
> |
*) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; |
8544 |
|
esac \ |
8545 |
< |
|| as_fn_error "could not create $ac_file" "$LINENO" 5 |
8545 |
> |
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
8546 |
|
;; |
8547 |
|
:H) |
8548 |
|
# |
8551 |
|
if test x"$ac_file" != x-; then |
8552 |
|
{ |
8553 |
|
$as_echo "/* $configure_input */" \ |
8554 |
< |
&& eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" |
8555 |
< |
} >"$tmp/config.h" \ |
8556 |
< |
|| as_fn_error "could not create $ac_file" "$LINENO" 5 |
8557 |
< |
if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then |
8554 |
> |
&& eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
8555 |
> |
} >"$ac_tmp/config.h" \ |
8556 |
> |
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
8557 |
> |
if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then |
8558 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
8559 |
|
$as_echo "$as_me: $ac_file is unchanged" >&6;} |
8560 |
|
else |
8561 |
|
rm -f "$ac_file" |
8562 |
< |
mv "$tmp/config.h" "$ac_file" \ |
8563 |
< |
|| as_fn_error "could not create $ac_file" "$LINENO" 5 |
8562 |
> |
mv "$ac_tmp/config.h" "$ac_file" \ |
8563 |
> |
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
8564 |
|
fi |
8565 |
|
else |
8566 |
|
$as_echo "/* $configure_input */" \ |
8567 |
< |
&& eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ |
8568 |
< |
|| as_fn_error "could not create -" "$LINENO" 5 |
8567 |
> |
&& eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
8568 |
> |
|| as_fn_error $? "could not create -" "$LINENO" 5 |
8569 |
|
fi |
8570 |
|
;; |
8571 |
|
|
8590 |
|
ac_clean_files=$ac_clean_files_save |
8591 |
|
|
8592 |
|
test $ac_write_fail = 0 || |
8593 |
< |
as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
8593 |
> |
as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
8594 |
|
|
8595 |
|
|
8596 |
|
# configure is writing to config.log, and then calls config.status. |
8611 |
|
exec 5>>config.log |
8612 |
|
# Use ||, not &&, to avoid exiting from the if with $? = 1, which |
8613 |
|
# would make configure fail if this is the last instruction. |
8614 |
< |
$ac_cs_success || as_fn_exit $? |
8614 |
> |
$ac_cs_success || as_fn_exit 1 |
8615 |
|
fi |
8616 |
|
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
8617 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |