1 |
|
#! /bin/sh |
2 |
|
# Guess values for system-dependent variables and create Makefiles. |
3 |
< |
# Generated by GNU Autoconf 2.64 for OOPSE 4.0. |
3 |
> |
# Generated by GNU Autoconf 2.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 |
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 |
14 |
|
# gives unlimited permission to copy, distribute and modify it. |
15 |
|
## -------------------- ## |
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 |
|
|
537 |
|
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
538 |
|
|
539 |
|
|
540 |
< |
exec 7<&0 </dev/null 6>&1 |
540 |
> |
test -n "$DJDIR" || exec 7<&0 </dev/null |
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 |
|
|
558 |
|
MAKEFLAGS= |
559 |
|
|
560 |
|
# Identity of this package. |
561 |
< |
PACKAGE_NAME='OOPSE' |
562 |
< |
PACKAGE_TARNAME='oopse' |
563 |
< |
PACKAGE_VERSION='4.0' |
564 |
< |
PACKAGE_STRING='OOPSE 4.0' |
561 |
> |
PACKAGE_NAME='OpenMD' |
562 |
> |
PACKAGE_TARNAME='openmd' |
563 |
> |
PACKAGE_VERSION='1.0' |
564 |
> |
PACKAGE_STRING='OpenMD 1.0' |
565 |
|
PACKAGE_BUGREPORT='gezelter@nd.edu' |
566 |
|
PACKAGE_URL='' |
567 |
|
|
568 |
< |
ac_unique_file="src/applications/oopse/oopse.cpp" |
568 |
> |
ac_unique_file="src/applications/openmd/openmd.cpp" |
569 |
|
ac_default_prefix="/usr/local" |
570 |
|
# Factoring default headers for most tests. |
571 |
|
ac_includes_default="\ |
605 |
|
|
606 |
|
ac_subst_vars='LTLIBOBJS |
607 |
|
SUBDIRS |
608 |
< |
OOPSE_HOME |
609 |
< |
OOPSE |
608 |
> |
OPENMD_HOME |
609 |
> |
OPENMD |
610 |
|
MKINSTALLDIRS |
611 |
|
BATEXT |
612 |
|
enable_latex_docs |
615 |
|
DOC |
616 |
|
DOT |
617 |
|
DOXYGEN |
607 |
– |
USE_CGAL |
608 |
– |
CGAL_LIBS |
609 |
– |
CGAL_LDFLAGS |
610 |
– |
CGAL_CPPFLAGS |
611 |
– |
CGAL_CXXFLAGS |
612 |
– |
CGAL_MAKEFILE |
618 |
|
POW_LIB |
619 |
|
LIBOBJS |
620 |
|
USE_OPENBABEL |
621 |
|
OPENBABEL_LIB |
622 |
|
OPENBABEL_LIB_DIR |
623 |
|
OPENBABEL_INC_DIR |
619 |
– |
CXXCPP |
624 |
|
USE_QHULL |
625 |
|
QHULL |
626 |
|
QHULL_LIB_DIR |
627 |
|
QHULL_INC_DIR |
628 |
+ |
CXXCPP |
629 |
|
FFTW_LIBS |
630 |
|
FFTW_LIB_DIR |
631 |
|
FFTW_INC_DIR |
658 |
|
CPP |
659 |
|
USE_MPI |
660 |
|
MPIFC |
661 |
+ |
MPICC |
662 |
+ |
MPILIBS |
663 |
+ |
MPICXX |
664 |
+ |
LIBDL |
665 |
|
ac_ct_FC |
666 |
|
FCFLAGS |
667 |
|
FC |
659 |
– |
MPICC |
668 |
|
ac_ct_CC |
669 |
|
CFLAGS |
670 |
|
CC |
663 |
– |
MPILIBS |
664 |
– |
MPICXX |
671 |
|
OBJEXT |
672 |
|
EXEEXT |
673 |
|
ac_ct_CXX |
675 |
|
LDFLAGS |
676 |
|
CXXFLAGS |
677 |
|
CXX |
672 |
– |
ac_fc_path |
673 |
– |
ac_fc_set |
674 |
– |
ac_cxx_path |
675 |
– |
ac_cxx_set |
676 |
– |
ac_cc_path |
677 |
– |
ac_cc_set |
678 |
|
USE_SINGLE_PRECISION |
679 |
|
debug |
680 |
|
PROGNAME |
727 |
|
ac_subst_files='' |
728 |
|
ac_user_opts=' |
729 |
|
enable_option_checking |
730 |
< |
enable_oopse_home |
730 |
> |
enable_openmd_home |
731 |
|
enable_debug |
732 |
|
enable_single |
733 |
|
enable_float |
736 |
|
with_fftw |
737 |
|
with_qhull |
738 |
|
with_openbabel |
739 |
– |
with_cgalmakefile |
739 |
|
enable_doxygen |
740 |
|
enable_dot |
741 |
|
enable_html_docs |
750 |
|
LIBS |
751 |
|
CPPFLAGS |
752 |
|
CCC |
754 |
– |
MPICXX |
753 |
|
CC |
754 |
|
CFLAGS |
757 |
– |
MPICC |
755 |
|
FC |
756 |
|
FCFLAGS |
757 |
+ |
MPICXX |
758 |
+ |
MPICC |
759 |
|
MPIFC |
760 |
|
CPP |
761 |
|
CXXCPP' |
821 |
|
fi |
822 |
|
|
823 |
|
case $ac_option in |
824 |
< |
*=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
825 |
< |
*) ac_optarg=yes ;; |
824 |
> |
*=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
825 |
> |
*=) ac_optarg= ;; |
826 |
> |
*) ac_optarg=yes ;; |
827 |
|
esac |
828 |
|
|
829 |
|
# Accept the important Cygnus configure options, so we can diagnose typos. |
868 |
|
ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
869 |
|
# Reject names that are not valid shell variable names. |
870 |
|
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
871 |
< |
as_fn_error "invalid feature name: $ac_useropt" |
871 |
> |
as_fn_error $? "invalid feature name: $ac_useropt" |
872 |
|
ac_useropt_orig=$ac_useropt |
873 |
|
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
874 |
|
case $ac_user_opts in |
894 |
|
ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
895 |
|
# Reject names that are not valid shell variable names. |
896 |
|
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
897 |
< |
as_fn_error "invalid feature name: $ac_useropt" |
897 |
> |
as_fn_error $? "invalid feature name: $ac_useropt" |
898 |
|
ac_useropt_orig=$ac_useropt |
899 |
|
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
900 |
|
case $ac_user_opts in |
1098 |
|
ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
1099 |
|
# Reject names that are not valid shell variable names. |
1100 |
|
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1101 |
< |
as_fn_error "invalid package name: $ac_useropt" |
1101 |
> |
as_fn_error $? "invalid package name: $ac_useropt" |
1102 |
|
ac_useropt_orig=$ac_useropt |
1103 |
|
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
1104 |
|
case $ac_user_opts in |
1114 |
|
ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
1115 |
|
# Reject names that are not valid shell variable names. |
1116 |
|
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1117 |
< |
as_fn_error "invalid package name: $ac_useropt" |
1117 |
> |
as_fn_error $? "invalid package name: $ac_useropt" |
1118 |
|
ac_useropt_orig=$ac_useropt |
1119 |
|
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
1120 |
|
case $ac_user_opts in |
1144 |
|
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
1145 |
|
x_libraries=$ac_optarg ;; |
1146 |
|
|
1147 |
< |
-*) as_fn_error "unrecognized option: \`$ac_option' |
1148 |
< |
Try \`$0 --help' for more information." |
1147 |
> |
-*) as_fn_error $? "unrecognized option: \`$ac_option' |
1148 |
> |
Try \`$0 --help' for more information" |
1149 |
|
;; |
1150 |
|
|
1151 |
|
*=*) |
1153 |
|
# Reject names that are not valid shell variable names. |
1154 |
|
case $ac_envvar in #( |
1155 |
|
'' | [0-9]* | *[!_$as_cr_alnum]* ) |
1156 |
< |
as_fn_error "invalid variable name: \`$ac_envvar'" ;; |
1156 |
> |
as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
1157 |
|
esac |
1158 |
|
eval $ac_envvar=\$ac_optarg |
1159 |
|
export $ac_envvar ;; |
1163 |
|
$as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
1164 |
|
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
1165 |
|
$as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
1166 |
< |
: ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
1166 |
> |
: "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
1167 |
|
;; |
1168 |
|
|
1169 |
|
esac |
1171 |
|
|
1172 |
|
if test -n "$ac_prev"; then |
1173 |
|
ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
1174 |
< |
as_fn_error "missing argument to $ac_option" |
1174 |
> |
as_fn_error $? "missing argument to $ac_option" |
1175 |
|
fi |
1176 |
|
|
1177 |
|
if test -n "$ac_unrecognized_opts"; then |
1178 |
|
case $enable_option_checking in |
1179 |
|
no) ;; |
1180 |
< |
fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; |
1180 |
> |
fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
1181 |
|
*) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
1182 |
|
esac |
1183 |
|
fi |
1200 |
|
[\\/$]* | ?:[\\/]* ) continue;; |
1201 |
|
NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
1202 |
|
esac |
1203 |
< |
as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" |
1203 |
> |
as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
1204 |
|
done |
1205 |
|
|
1206 |
|
# There might be people who depend on the old broken behavior: `$host' |
1214 |
|
if test "x$host_alias" != x; then |
1215 |
|
if test "x$build_alias" = x; then |
1216 |
|
cross_compiling=maybe |
1217 |
< |
$as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
1218 |
< |
If a cross compiler is detected then cross compile mode will be used." >&2 |
1217 |
> |
$as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. |
1218 |
> |
If a cross compiler is detected then cross compile mode will be used" >&2 |
1219 |
|
elif test "x$build_alias" != "x$host_alias"; then |
1220 |
|
cross_compiling=yes |
1221 |
|
fi |
1230 |
|
ac_pwd=`pwd` && test -n "$ac_pwd" && |
1231 |
|
ac_ls_di=`ls -di .` && |
1232 |
|
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
1233 |
< |
as_fn_error "working directory cannot be determined" |
1233 |
> |
as_fn_error $? "working directory cannot be determined" |
1234 |
|
test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
1235 |
< |
as_fn_error "pwd does not report name of working directory" |
1235 |
> |
as_fn_error $? "pwd does not report name of working directory" |
1236 |
|
|
1237 |
|
|
1238 |
|
# Find the source files, if location was not specified. |
1271 |
|
fi |
1272 |
|
if test ! -r "$srcdir/$ac_unique_file"; then |
1273 |
|
test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
1274 |
< |
as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" |
1274 |
> |
as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
1275 |
|
fi |
1276 |
|
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
1277 |
|
ac_abs_confdir=`( |
1278 |
< |
cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" |
1278 |
> |
cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
1279 |
|
pwd)` |
1280 |
|
# When building in place, set srcdir=. |
1281 |
|
if test "$ac_abs_confdir" = "$ac_pwd"; then |
1301 |
|
# Omit some internal or obsolete options to make the list less imposing. |
1302 |
|
# This message is too long to be a string in the A/UX 3.1 sh. |
1303 |
|
cat <<_ACEOF |
1304 |
< |
\`configure' configures OOPSE 4.0 to adapt to many kinds of systems. |
1304 |
> |
\`configure' configures OpenMD 1.0 to adapt to many kinds of systems. |
1305 |
|
|
1306 |
|
Usage: $0 [OPTION]... [VAR=VALUE]... |
1307 |
|
|
1315 |
|
--help=short display options specific to this package |
1316 |
|
--help=recursive display the short help of all the included packages |
1317 |
|
-V, --version display version information and exit |
1318 |
< |
-q, --quiet, --silent do not print \`checking...' messages |
1318 |
> |
-q, --quiet, --silent do not print \`checking ...' messages |
1319 |
|
--cache-file=FILE cache test results in FILE [disabled] |
1320 |
|
-C, --config-cache alias for \`--cache-file=config.cache' |
1321 |
|
-n, --no-create do not create output files |
1349 |
|
--infodir=DIR info documentation [DATAROOTDIR/info] |
1350 |
|
--localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
1351 |
|
--mandir=DIR man documentation [DATAROOTDIR/man] |
1352 |
< |
--docdir=DIR documentation root [DATAROOTDIR/doc/oopse] |
1352 |
> |
--docdir=DIR documentation root [DATAROOTDIR/doc/openmd] |
1353 |
|
--htmldir=DIR html documentation [DOCDIR] |
1354 |
|
--dvidir=DIR dvi documentation [DOCDIR] |
1355 |
|
--pdfdir=DIR pdf documentation [DOCDIR] |
1366 |
|
|
1367 |
|
if test -n "$ac_init_help"; then |
1368 |
|
case $ac_init_help in |
1369 |
< |
short | recursive ) echo "Configuration of OOPSE 4.0:";; |
1369 |
> |
short | recursive ) echo "Configuration of OpenMD 1.0:";; |
1370 |
|
esac |
1371 |
|
cat <<\_ACEOF |
1372 |
|
|
1374 |
|
--disable-option-checking ignore unrecognized --enable/--with options |
1375 |
|
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1376 |
|
--enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
1377 |
< |
--enable-oopse-home=DIR define oopse home dir PREFIX/oopse |
1378 |
< |
--enable-debug Compile OOPSE in debug mode |
1379 |
< |
--enable-single compile OOPSE in single precision |
1377 |
> |
--enable-openmd-home=DIR define OpenMD home dir PREFIX/openmd |
1378 |
> |
--enable-debug Compile OpenMD in debug mode |
1379 |
> |
--enable-single compile OpenMD in single precision |
1380 |
|
--enable-float synonym for --enable-single |
1381 |
|
--enable-doxygen enable documentation generation with doxygen (auto) |
1382 |
|
--enable-dot use 'dot' to generate graphs in doxygen (auto) |
1397 |
|
--with-openbabel=DIR root directory path of openbabel-2.x installation |
1398 |
|
(defaults to /usr/local or /usr if not found in |
1399 |
|
/usr/local) |
1400 |
– |
--with-cgalmakefile=makefile |
1401 |
– |
Use the following CGAL makefile |
1400 |
|
|
1401 |
|
Some influential environment variables: |
1402 |
|
CXX C++ compiler command |
1404 |
|
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
1405 |
|
nonstandard directory <lib dir> |
1406 |
|
LIBS libraries to pass to the linker, e.g. -l<library> |
1407 |
< |
CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
1407 |
> |
CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
1408 |
|
you have headers in a nonstandard directory <include dir> |
1411 |
– |
MPICXX MPI C++ compiler command |
1409 |
|
CC C compiler command |
1410 |
|
CFLAGS C compiler flags |
1414 |
– |
MPICC MPI C compiler command |
1411 |
|
FC Fortran compiler command |
1412 |
|
FCFLAGS Fortran compiler flags |
1413 |
+ |
MPICXX MPI C++ compiler command |
1414 |
+ |
MPICC MPI C compiler command |
1415 |
|
MPIFC MPI Fortran compiler command |
1416 |
|
CPP C preprocessor |
1417 |
|
CXXCPP C++ preprocessor |
1482 |
|
test -n "$ac_init_help" && exit $ac_status |
1483 |
|
if $ac_init_version; then |
1484 |
|
cat <<\_ACEOF |
1485 |
< |
OOPSE configure 4.0 |
1486 |
< |
generated by GNU Autoconf 2.64 |
1485 |
> |
OpenMD configure 1.0 |
1486 |
> |
generated by GNU Autoconf 2.68 |
1487 |
|
|
1488 |
< |
Copyright (C) 2009 Free Software Foundation, Inc. |
1488 |
> |
Copyright (C) 2010 Free Software Foundation, Inc. |
1489 |
|
This configure script is free software; the Free Software Foundation |
1490 |
|
gives unlimited permission to copy, distribute and modify it. |
1491 |
|
_ACEOF |
1529 |
|
|
1530 |
|
ac_retval=1 |
1531 |
|
fi |
1532 |
< |
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
1533 |
< |
return $ac_retval |
1532 |
> |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1533 |
> |
as_fn_set_status $ac_retval |
1534 |
|
|
1535 |
|
} # ac_fn_cxx_try_compile |
1536 |
+ |
|
1537 |
+ |
# ac_fn_c_try_compile LINENO |
1538 |
+ |
# -------------------------- |
1539 |
+ |
# Try to compile conftest.$ac_ext, and return whether this succeeded. |
1540 |
+ |
ac_fn_c_try_compile () |
1541 |
+ |
{ |
1542 |
+ |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1543 |
+ |
rm -f conftest.$ac_objext |
1544 |
+ |
if { { ac_try="$ac_compile" |
1545 |
+ |
case "(($ac_try" in |
1546 |
+ |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
1547 |
+ |
*) ac_try_echo=$ac_try;; |
1548 |
+ |
esac |
1549 |
+ |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
1550 |
+ |
$as_echo "$ac_try_echo"; } >&5 |
1551 |
+ |
(eval "$ac_compile") 2>conftest.err |
1552 |
+ |
ac_status=$? |
1553 |
+ |
if test -s conftest.err; then |
1554 |
+ |
grep -v '^ *+' conftest.err >conftest.er1 |
1555 |
+ |
cat conftest.er1 >&5 |
1556 |
+ |
mv -f conftest.er1 conftest.err |
1557 |
+ |
fi |
1558 |
+ |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
1559 |
+ |
test $ac_status = 0; } && { |
1560 |
+ |
test -z "$ac_c_werror_flag" || |
1561 |
+ |
test ! -s conftest.err |
1562 |
+ |
} && test -s conftest.$ac_objext; then : |
1563 |
+ |
ac_retval=0 |
1564 |
+ |
else |
1565 |
+ |
$as_echo "$as_me: failed program was:" >&5 |
1566 |
+ |
sed 's/^/| /' conftest.$ac_ext >&5 |
1567 |
+ |
|
1568 |
+ |
ac_retval=1 |
1569 |
+ |
fi |
1570 |
+ |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1571 |
+ |
as_fn_set_status $ac_retval |
1572 |
+ |
|
1573 |
+ |
} # ac_fn_c_try_compile |
1574 |
+ |
|
1575 |
+ |
# ac_fn_fc_try_compile LINENO |
1576 |
+ |
# --------------------------- |
1577 |
+ |
# Try to compile conftest.$ac_ext, and return whether this succeeded. |
1578 |
+ |
ac_fn_fc_try_compile () |
1579 |
+ |
{ |
1580 |
+ |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1581 |
+ |
rm -f conftest.$ac_objext |
1582 |
+ |
if { { ac_try="$ac_compile" |
1583 |
+ |
case "(($ac_try" in |
1584 |
+ |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
1585 |
+ |
*) ac_try_echo=$ac_try;; |
1586 |
+ |
esac |
1587 |
+ |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
1588 |
+ |
$as_echo "$ac_try_echo"; } >&5 |
1589 |
+ |
(eval "$ac_compile") 2>conftest.err |
1590 |
+ |
ac_status=$? |
1591 |
+ |
if test -s conftest.err; then |
1592 |
+ |
grep -v '^ *+' conftest.err >conftest.er1 |
1593 |
+ |
cat conftest.er1 >&5 |
1594 |
+ |
mv -f conftest.er1 conftest.err |
1595 |
+ |
fi |
1596 |
+ |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
1597 |
+ |
test $ac_status = 0; } && { |
1598 |
+ |
test -z "$ac_fc_werror_flag" || |
1599 |
+ |
test ! -s conftest.err |
1600 |
+ |
} && test -s conftest.$ac_objext; then : |
1601 |
+ |
ac_retval=0 |
1602 |
+ |
else |
1603 |
+ |
$as_echo "$as_me: failed program was:" >&5 |
1604 |
+ |
sed 's/^/| /' conftest.$ac_ext >&5 |
1605 |
|
|
1606 |
+ |
ac_retval=1 |
1607 |
+ |
fi |
1608 |
+ |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1609 |
+ |
as_fn_set_status $ac_retval |
1610 |
+ |
|
1611 |
+ |
} # ac_fn_fc_try_compile |
1612 |
+ |
|
1613 |
|
# ac_fn_cxx_try_link LINENO |
1614 |
|
# ------------------------- |
1615 |
|
# Try to link conftest.$ac_ext, and return whether this succeeded. |
1651 |
|
# interfere with the next link command; also delete a directory that is |
1652 |
|
# left behind by Apple's compiler. We do this before executing the actions. |
1653 |
|
rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
1654 |
< |
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
1655 |
< |
return $ac_retval |
1654 |
> |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1655 |
> |
as_fn_set_status $ac_retval |
1656 |
|
|
1657 |
|
} # ac_fn_cxx_try_link |
1658 |
|
|
1664 |
|
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1665 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
1666 |
|
$as_echo_n "checking for $2... " >&6; } |
1667 |
< |
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
1667 |
> |
if eval \${$3+:} false; then : |
1668 |
|
$as_echo_n "(cached) " >&6 |
1669 |
|
else |
1670 |
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1719 |
|
eval ac_res=\$$3 |
1720 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
1721 |
|
$as_echo "$ac_res" >&6; } |
1722 |
< |
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
1722 |
> |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1723 |
|
|
1724 |
|
} # ac_fn_cxx_check_func |
1725 |
|
|
1652 |
– |
# ac_fn_c_try_compile LINENO |
1653 |
– |
# -------------------------- |
1654 |
– |
# Try to compile conftest.$ac_ext, and return whether this succeeded. |
1655 |
– |
ac_fn_c_try_compile () |
1656 |
– |
{ |
1657 |
– |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1658 |
– |
rm -f conftest.$ac_objext |
1659 |
– |
if { { ac_try="$ac_compile" |
1660 |
– |
case "(($ac_try" in |
1661 |
– |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
1662 |
– |
*) ac_try_echo=$ac_try;; |
1663 |
– |
esac |
1664 |
– |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
1665 |
– |
$as_echo "$ac_try_echo"; } >&5 |
1666 |
– |
(eval "$ac_compile") 2>conftest.err |
1667 |
– |
ac_status=$? |
1668 |
– |
if test -s conftest.err; then |
1669 |
– |
grep -v '^ *+' conftest.err >conftest.er1 |
1670 |
– |
cat conftest.er1 >&5 |
1671 |
– |
mv -f conftest.er1 conftest.err |
1672 |
– |
fi |
1673 |
– |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
1674 |
– |
test $ac_status = 0; } && { |
1675 |
– |
test -z "$ac_c_werror_flag" || |
1676 |
– |
test ! -s conftest.err |
1677 |
– |
} && test -s conftest.$ac_objext; then : |
1678 |
– |
ac_retval=0 |
1679 |
– |
else |
1680 |
– |
$as_echo "$as_me: failed program was:" >&5 |
1681 |
– |
sed 's/^/| /' conftest.$ac_ext >&5 |
1682 |
– |
|
1683 |
– |
ac_retval=1 |
1684 |
– |
fi |
1685 |
– |
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
1686 |
– |
return $ac_retval |
1687 |
– |
|
1688 |
– |
} # ac_fn_c_try_compile |
1689 |
– |
|
1726 |
|
# ac_fn_c_try_link LINENO |
1727 |
|
# ----------------------- |
1728 |
|
# Try to link conftest.$ac_ext, and return whether this succeeded. |
1764 |
|
# interfere with the next link command; also delete a directory that is |
1765 |
|
# left behind by Apple's compiler. We do this before executing the actions. |
1766 |
|
rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
1767 |
< |
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
1768 |
< |
return $ac_retval |
1767 |
> |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1768 |
> |
as_fn_set_status $ac_retval |
1769 |
|
|
1770 |
|
} # ac_fn_c_try_link |
1771 |
|
|
1777 |
|
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1778 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
1779 |
|
$as_echo_n "checking for $2... " >&6; } |
1780 |
< |
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
1780 |
> |
if eval \${$3+:} false; then : |
1781 |
|
$as_echo_n "(cached) " >&6 |
1782 |
|
else |
1783 |
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1832 |
|
eval ac_res=\$$3 |
1833 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
1834 |
|
$as_echo "$ac_res" >&6; } |
1835 |
< |
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
1835 |
> |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1836 |
|
|
1837 |
|
} # ac_fn_c_check_func |
1838 |
|
|
1803 |
– |
# ac_fn_fc_try_compile LINENO |
1804 |
– |
# --------------------------- |
1805 |
– |
# Try to compile conftest.$ac_ext, and return whether this succeeded. |
1806 |
– |
ac_fn_fc_try_compile () |
1807 |
– |
{ |
1808 |
– |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1809 |
– |
rm -f conftest.$ac_objext |
1810 |
– |
if { { ac_try="$ac_compile" |
1811 |
– |
case "(($ac_try" in |
1812 |
– |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
1813 |
– |
*) ac_try_echo=$ac_try;; |
1814 |
– |
esac |
1815 |
– |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
1816 |
– |
$as_echo "$ac_try_echo"; } >&5 |
1817 |
– |
(eval "$ac_compile") 2>conftest.err |
1818 |
– |
ac_status=$? |
1819 |
– |
if test -s conftest.err; then |
1820 |
– |
grep -v '^ *+' conftest.err >conftest.er1 |
1821 |
– |
cat conftest.er1 >&5 |
1822 |
– |
mv -f conftest.er1 conftest.err |
1823 |
– |
fi |
1824 |
– |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
1825 |
– |
test $ac_status = 0; } && { |
1826 |
– |
test -z "$ac_fc_werror_flag" || |
1827 |
– |
test ! -s conftest.err |
1828 |
– |
} && test -s conftest.$ac_objext; then : |
1829 |
– |
ac_retval=0 |
1830 |
– |
else |
1831 |
– |
$as_echo "$as_me: failed program was:" >&5 |
1832 |
– |
sed 's/^/| /' conftest.$ac_ext >&5 |
1833 |
– |
|
1834 |
– |
ac_retval=1 |
1835 |
– |
fi |
1836 |
– |
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
1837 |
– |
return $ac_retval |
1838 |
– |
|
1839 |
– |
} # ac_fn_fc_try_compile |
1840 |
– |
|
1839 |
|
# ac_fn_fc_try_link LINENO |
1840 |
|
# ------------------------ |
1841 |
|
# Try to link conftest.$ac_ext, and return whether this succeeded. |
1877 |
|
# interfere with the next link command; also delete a directory that is |
1878 |
|
# left behind by Apple's compiler. We do this before executing the actions. |
1879 |
|
rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
1880 |
< |
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
1881 |
< |
return $ac_retval |
1880 |
> |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1881 |
> |
as_fn_set_status $ac_retval |
1882 |
|
|
1883 |
|
} # ac_fn_fc_try_link |
1884 |
|
|
1903 |
|
mv -f conftest.er1 conftest.err |
1904 |
|
fi |
1905 |
|
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
1906 |
< |
test $ac_status = 0; } >/dev/null && { |
1906 |
> |
test $ac_status = 0; } > conftest.i && { |
1907 |
|
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
1908 |
|
test ! -s conftest.err |
1909 |
|
}; then : |
1914 |
|
|
1915 |
|
ac_retval=1 |
1916 |
|
fi |
1917 |
< |
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
1918 |
< |
return $ac_retval |
1917 |
> |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1918 |
> |
as_fn_set_status $ac_retval |
1919 |
|
|
1920 |
|
} # ac_fn_c_try_cpp |
1921 |
|
|
1927 |
|
ac_fn_c_check_header_mongrel () |
1928 |
|
{ |
1929 |
|
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1930 |
< |
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
1930 |
> |
if eval \${$3+:} false; then : |
1931 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
1932 |
|
$as_echo_n "checking for $2... " >&6; } |
1933 |
< |
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
1933 |
> |
if eval \${$3+:} false; then : |
1934 |
|
$as_echo_n "(cached) " >&6 |
1935 |
|
fi |
1936 |
|
eval ac_res=\$$3 |
1966 |
|
else |
1967 |
|
ac_header_preproc=no |
1968 |
|
fi |
1969 |
< |
rm -f conftest.err conftest.$ac_ext |
1969 |
> |
rm -f conftest.err conftest.i conftest.$ac_ext |
1970 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
1971 |
|
$as_echo "$ac_header_preproc" >&6; } |
1972 |
|
|
1989 |
|
$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} |
1990 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
1991 |
|
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
1992 |
< |
( cat <<\_ASBOX |
1995 |
< |
## ------------------------------ ## |
1992 |
> |
( $as_echo "## ------------------------------ ## |
1993 |
|
## Report this to gezelter@nd.edu ## |
1994 |
< |
## ------------------------------ ## |
1998 |
< |
_ASBOX |
1994 |
> |
## ------------------------------ ##" |
1995 |
|
) | sed "s/^/$as_me: WARNING: /" >&2 |
1996 |
|
;; |
1997 |
|
esac |
1998 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
1999 |
|
$as_echo_n "checking for $2... " >&6; } |
2000 |
< |
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
2000 |
> |
if eval \${$3+:} false; then : |
2001 |
|
$as_echo_n "(cached) " >&6 |
2002 |
|
else |
2003 |
|
eval "$3=\$ac_header_compiler" |
2006 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
2007 |
|
$as_echo "$ac_res" >&6; } |
2008 |
|
fi |
2009 |
< |
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
2009 |
> |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
2010 |
|
|
2011 |
|
} # ac_fn_c_check_header_mongrel |
2012 |
|
|
2047 |
|
ac_retval=$ac_status |
2048 |
|
fi |
2049 |
|
rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
2050 |
< |
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
2051 |
< |
return $ac_retval |
2050 |
> |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
2051 |
> |
as_fn_set_status $ac_retval |
2052 |
|
|
2053 |
|
} # ac_fn_c_try_run |
2054 |
|
|
2061 |
|
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
2062 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
2063 |
|
$as_echo_n "checking for $2... " >&6; } |
2064 |
< |
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
2064 |
> |
if eval \${$3+:} false; then : |
2065 |
|
$as_echo_n "(cached) " >&6 |
2066 |
|
else |
2067 |
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2079 |
|
eval ac_res=\$$3 |
2080 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
2081 |
|
$as_echo "$ac_res" >&6; } |
2082 |
< |
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
2082 |
> |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
2083 |
|
|
2084 |
|
} # ac_fn_c_check_header_compile |
2085 |
|
|
2104 |
|
mv -f conftest.er1 conftest.err |
2105 |
|
fi |
2106 |
|
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
2107 |
< |
test $ac_status = 0; } >/dev/null && { |
2107 |
> |
test $ac_status = 0; } > conftest.i && { |
2108 |
|
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
2109 |
|
test ! -s conftest.err |
2110 |
|
}; then : |
2115 |
|
|
2116 |
|
ac_retval=1 |
2117 |
|
fi |
2118 |
< |
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
2119 |
< |
return $ac_retval |
2118 |
> |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
2119 |
> |
as_fn_set_status $ac_retval |
2120 |
|
|
2121 |
|
} # ac_fn_cxx_try_cpp |
2122 |
|
|
2128 |
|
ac_fn_cxx_check_header_mongrel () |
2129 |
|
{ |
2130 |
|
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
2131 |
< |
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
2131 |
> |
if eval \${$3+:} false; then : |
2132 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
2133 |
|
$as_echo_n "checking for $2... " >&6; } |
2134 |
< |
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
2134 |
> |
if eval \${$3+:} false; then : |
2135 |
|
$as_echo_n "(cached) " >&6 |
2136 |
|
fi |
2137 |
|
eval ac_res=\$$3 |
2167 |
|
else |
2168 |
|
ac_header_preproc=no |
2169 |
|
fi |
2170 |
< |
rm -f conftest.err conftest.$ac_ext |
2170 |
> |
rm -f conftest.err conftest.i conftest.$ac_ext |
2171 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
2172 |
|
$as_echo "$ac_header_preproc" >&6; } |
2173 |
|
|
2190 |
|
$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} |
2191 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
2192 |
|
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
2193 |
< |
( cat <<\_ASBOX |
2198 |
< |
## ------------------------------ ## |
2193 |
> |
( $as_echo "## ------------------------------ ## |
2194 |
|
## Report this to gezelter@nd.edu ## |
2195 |
< |
## ------------------------------ ## |
2201 |
< |
_ASBOX |
2195 |
> |
## ------------------------------ ##" |
2196 |
|
) | sed "s/^/$as_me: WARNING: /" >&2 |
2197 |
|
;; |
2198 |
|
esac |
2199 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
2200 |
|
$as_echo_n "checking for $2... " >&6; } |
2201 |
< |
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
2201 |
> |
if eval \${$3+:} false; then : |
2202 |
|
$as_echo_n "(cached) " >&6 |
2203 |
|
else |
2204 |
|
eval "$3=\$ac_header_compiler" |
2207 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
2208 |
|
$as_echo "$ac_res" >&6; } |
2209 |
|
fi |
2210 |
< |
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
2210 |
> |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
2211 |
|
|
2212 |
|
} # ac_fn_cxx_check_header_mongrel |
2213 |
|
|
2220 |
|
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
2221 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
2222 |
|
$as_echo_n "checking for $2... " >&6; } |
2223 |
< |
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
2223 |
> |
if eval \${$3+:} false; then : |
2224 |
|
$as_echo_n "(cached) " >&6 |
2225 |
|
else |
2226 |
|
eval "$3=no" |
2277 |
|
eval ac_res=\$$3 |
2278 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
2279 |
|
$as_echo "$ac_res" >&6; } |
2280 |
< |
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
2280 |
> |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
2281 |
|
|
2282 |
|
} # ac_fn_c_check_type |
2283 |
|
cat >config.log <<_ACEOF |
2284 |
|
This file contains any messages produced by compilers while |
2285 |
|
running configure, to aid debugging if configure makes a mistake. |
2286 |
|
|
2287 |
< |
It was created by OOPSE $as_me 4.0, which was |
2288 |
< |
generated by GNU Autoconf 2.64. Invocation command line was |
2287 |
> |
It was created by OpenMD $as_me 1.0, which was |
2288 |
> |
generated by GNU Autoconf 2.68. Invocation command line was |
2289 |
|
|
2290 |
|
$ $0 $@ |
2291 |
|
|
2395 |
|
{ |
2396 |
|
echo |
2397 |
|
|
2398 |
< |
cat <<\_ASBOX |
2405 |
< |
## ---------------- ## |
2398 |
> |
$as_echo "## ---------------- ## |
2399 |
|
## Cache variables. ## |
2400 |
< |
## ---------------- ## |
2408 |
< |
_ASBOX |
2400 |
> |
## ---------------- ##" |
2401 |
|
echo |
2402 |
|
# The following way of writing the cache mishandles newlines in values, |
2403 |
|
( |
2431 |
|
) |
2432 |
|
echo |
2433 |
|
|
2434 |
< |
cat <<\_ASBOX |
2443 |
< |
## ----------------- ## |
2434 |
> |
$as_echo "## ----------------- ## |
2435 |
|
## Output variables. ## |
2436 |
< |
## ----------------- ## |
2446 |
< |
_ASBOX |
2436 |
> |
## ----------------- ##" |
2437 |
|
echo |
2438 |
|
for ac_var in $ac_subst_vars |
2439 |
|
do |
2446 |
|
echo |
2447 |
|
|
2448 |
|
if test -n "$ac_subst_files"; then |
2449 |
< |
cat <<\_ASBOX |
2460 |
< |
## ------------------- ## |
2449 |
> |
$as_echo "## ------------------- ## |
2450 |
|
## File substitutions. ## |
2451 |
< |
## ------------------- ## |
2463 |
< |
_ASBOX |
2451 |
> |
## ------------------- ##" |
2452 |
|
echo |
2453 |
|
for ac_var in $ac_subst_files |
2454 |
|
do |
2462 |
|
fi |
2463 |
|
|
2464 |
|
if test -s confdefs.h; then |
2465 |
< |
cat <<\_ASBOX |
2478 |
< |
## ----------- ## |
2465 |
> |
$as_echo "## ----------- ## |
2466 |
|
## confdefs.h. ## |
2467 |
< |
## ----------- ## |
2481 |
< |
_ASBOX |
2467 |
> |
## ----------- ##" |
2468 |
|
echo |
2469 |
|
cat confdefs.h |
2470 |
|
echo |
2519 |
|
ac_site_file1=NONE |
2520 |
|
ac_site_file2=NONE |
2521 |
|
if test -n "$CONFIG_SITE"; then |
2522 |
< |
ac_site_file1=$CONFIG_SITE |
2522 |
> |
# We do not want a PATH search for config.site. |
2523 |
> |
case $CONFIG_SITE in #(( |
2524 |
> |
-*) ac_site_file1=./$CONFIG_SITE;; |
2525 |
> |
*/*) ac_site_file1=$CONFIG_SITE;; |
2526 |
> |
*) ac_site_file1=./$CONFIG_SITE;; |
2527 |
> |
esac |
2528 |
|
elif test "x$prefix" != xNONE; then |
2529 |
|
ac_site_file1=$prefix/share/config.site |
2530 |
|
ac_site_file2=$prefix/etc/config.site |
2535 |
|
for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
2536 |
|
do |
2537 |
|
test "x$ac_site_file" = xNONE && continue |
2538 |
< |
if test -r "$ac_site_file"; then |
2538 |
> |
if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
2539 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
2540 |
|
$as_echo "$as_me: loading site script $ac_site_file" >&6;} |
2541 |
|
sed 's/^/| /' "$ac_site_file" >&5 |
2542 |
< |
. "$ac_site_file" |
2542 |
> |
. "$ac_site_file" \ |
2543 |
> |
|| { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2544 |
> |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
2545 |
> |
as_fn_error $? "failed to load site script $ac_site_file |
2546 |
> |
See \`config.log' for more details" "$LINENO" 5; } |
2547 |
|
fi |
2548 |
|
done |
2549 |
|
|
2550 |
|
if test -r "$cache_file"; then |
2551 |
< |
# Some versions of bash will fail to source /dev/null (special |
2552 |
< |
# files actually), so we avoid doing that. |
2553 |
< |
if test -f "$cache_file"; then |
2551 |
> |
# Some versions of bash will fail to source /dev/null (special files |
2552 |
> |
# actually), so we avoid doing that. DJGPP emulates it as a regular file. |
2553 |
> |
if test /dev/null != "$cache_file" && test -f "$cache_file"; then |
2554 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
2555 |
|
$as_echo "$as_me: loading cache $cache_file" >&6;} |
2556 |
|
case $cache_file in |
2619 |
|
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
2620 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 |
2621 |
|
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
2622 |
< |
as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
2622 |
> |
as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
2623 |
|
fi |
2624 |
|
## -------------------- ## |
2625 |
|
## Main body of script. ## |
2634 |
|
|
2635 |
|
ac_aux_dir= |
2636 |
|
for ac_dir in ac-tools "$srcdir"/ac-tools; do |
2637 |
< |
for ac_t in install-sh install.sh shtool; do |
2638 |
< |
if test -f "$ac_dir/$ac_t"; then |
2639 |
< |
ac_aux_dir=$ac_dir |
2640 |
< |
ac_install_sh="$ac_aux_dir/$ac_t -c" |
2641 |
< |
break 2 |
2642 |
< |
fi |
2643 |
< |
done |
2637 |
> |
if test -f "$ac_dir/install-sh"; then |
2638 |
> |
ac_aux_dir=$ac_dir |
2639 |
> |
ac_install_sh="$ac_aux_dir/install-sh -c" |
2640 |
> |
break |
2641 |
> |
elif test -f "$ac_dir/install.sh"; then |
2642 |
> |
ac_aux_dir=$ac_dir |
2643 |
> |
ac_install_sh="$ac_aux_dir/install.sh -c" |
2644 |
> |
break |
2645 |
> |
elif test -f "$ac_dir/shtool"; then |
2646 |
> |
ac_aux_dir=$ac_dir |
2647 |
> |
ac_install_sh="$ac_aux_dir/shtool install -c" |
2648 |
> |
break |
2649 |
> |
fi |
2650 |
|
done |
2651 |
|
if test -z "$ac_aux_dir"; then |
2652 |
< |
as_fn_error "cannot find install-sh, install.sh, or shtool in ac-tools \"$srcdir\"/ac-tools" "$LINENO" 5 |
2652 |
> |
as_fn_error $? "cannot find install-sh, install.sh, or shtool in ac-tools \"$srcdir\"/ac-tools" "$LINENO" 5 |
2653 |
|
fi |
2654 |
|
|
2655 |
|
# These three variables are undocumented and unsupported, |
2903 |
|
|
2904 |
|
|
2905 |
|
|
2905 |
– |
|
2906 |
– |
|
2907 |
– |
|
2908 |
– |
|
2909 |
– |
|
2910 |
– |
|
2911 |
– |
|
2912 |
– |
|
2913 |
– |
|
2914 |
– |
|
2915 |
– |
|
2916 |
– |
|
2917 |
– |
|
2918 |
– |
|
2919 |
– |
|
2920 |
– |
|
2921 |
– |
|
2922 |
– |
|
2923 |
– |
|
2924 |
– |
|
2925 |
– |
|
2926 |
– |
# This is taken from http://autoqt.sourceforge.net/ |
2927 |
– |
# Copyright (c) 2002, Geoffrey Wossum |
2928 |
– |
# All rights reserved. |
2929 |
– |
|
2930 |
– |
# Redistribution and use in source and binary forms, with or without |
2931 |
– |
# modification, are permitted provided that the following conditions are |
2932 |
– |
# met: |
2933 |
– |
|
2934 |
– |
# - Redistributions of source code must retain the above copyright notice, |
2935 |
– |
# this list of conditions and the following disclaimer. |
2936 |
– |
|
2937 |
– |
# - Redistributions in binary form must reproduce the above copyright |
2938 |
– |
# notice, this list of conditions and the following disclaimer in the |
2939 |
– |
# documentation and/or other materials provided with the distribution. |
2940 |
– |
|
2941 |
– |
# - Neither the name of Geoffrey Wossum nor the names of its |
2942 |
– |
# contributors may be used to endorse or promote products derived from |
2943 |
– |
# this software without specific prior written permission. |
2944 |
– |
|
2945 |
– |
|
2946 |
– |
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS |
2947 |
– |
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED |
2948 |
– |
# TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR |
2949 |
– |
# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR |
2950 |
– |
# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, |
2951 |
– |
# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, |
2952 |
– |
# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; |
2953 |
– |
# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, |
2954 |
– |
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR |
2955 |
– |
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF |
2956 |
– |
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
2957 |
– |
|
2958 |
– |
|
2959 |
– |
# Check for Qt compiler flags, linker flags, and binary packages |
2960 |
– |
|
2961 |
– |
|
2962 |
– |
|
2906 |
|
# who am i |
2907 |
|
# Make sure we can run config.sub. |
2908 |
|
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
2909 |
< |
as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 |
2909 |
> |
as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 |
2910 |
|
|
2911 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 |
2912 |
|
$as_echo_n "checking build system type... " >&6; } |
2913 |
< |
if test "${ac_cv_build+set}" = set; then : |
2913 |
> |
if ${ac_cv_build+:} false; then : |
2914 |
|
$as_echo_n "(cached) " >&6 |
2915 |
|
else |
2916 |
|
ac_build_alias=$build_alias |
2917 |
|
test "x$ac_build_alias" = x && |
2918 |
|
ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
2919 |
|
test "x$ac_build_alias" = x && |
2920 |
< |
as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5 |
2920 |
> |
as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 |
2921 |
|
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
2922 |
< |
as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 |
2922 |
> |
as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 |
2923 |
|
|
2924 |
|
fi |
2925 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 |
2926 |
|
$as_echo "$ac_cv_build" >&6; } |
2927 |
|
case $ac_cv_build in |
2928 |
|
*-*-*) ;; |
2929 |
< |
*) as_fn_error "invalid value of canonical build" "$LINENO" 5;; |
2929 |
> |
*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; |
2930 |
|
esac |
2931 |
|
build=$ac_cv_build |
2932 |
|
ac_save_IFS=$IFS; IFS='-' |
2944 |
|
|
2945 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
2946 |
|
$as_echo_n "checking host system type... " >&6; } |
2947 |
< |
if test "${ac_cv_host+set}" = set; then : |
2947 |
> |
if ${ac_cv_host+:} false; then : |
2948 |
|
$as_echo_n "(cached) " >&6 |
2949 |
|
else |
2950 |
|
if test "x$host_alias" = x; then |
2951 |
|
ac_cv_host=$ac_cv_build |
2952 |
|
else |
2953 |
|
ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
2954 |
< |
as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 |
2954 |
> |
as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 |
2955 |
|
fi |
2956 |
|
|
2957 |
|
fi |
2959 |
|
$as_echo "$ac_cv_host" >&6; } |
2960 |
|
case $ac_cv_host in |
2961 |
|
*-*-*) ;; |
2962 |
< |
*) as_fn_error "invalid value of canonical host" "$LINENO" 5;; |
2962 |
> |
*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; |
2963 |
|
esac |
2964 |
|
host=$ac_cv_host |
2965 |
|
ac_save_IFS=$IFS; IFS='-' |
2979 |
|
|
2980 |
|
|
2981 |
|
# set program name |
2982 |
< |
PROGNAME="oopse" |
2982 |
> |
PROGNAME="openmd" |
2983 |
|
|
2984 |
|
|
2985 |
|
|
2986 |
|
|
2987 |
|
OBJEXT=".$OBJEXT" |
2988 |
|
|
2989 |
< |
OOPSE=oopse |
2989 |
> |
OPENMD=openmd |
2990 |
|
|
2991 |
|
if test "x${prefix}" = "xNONE" |
2992 |
|
then |
2993 |
< |
OOPSE_HOME=${ac_default_prefix}/oopse |
2993 |
> |
OPENMD_HOME=${ac_default_prefix}/openmd |
2994 |
|
else |
2995 |
< |
OOPSE_HOME=${prefix}/oopse |
2995 |
> |
OPENMD_HOME=${prefix}/openmd |
2996 |
|
fi |
2997 |
< |
# Check whether --enable-oopse-home was given. |
2998 |
< |
if test "${enable_oopse_home+set}" = set; then : |
2999 |
< |
enableval=$enable_oopse_home; OOPSE_HOME="${enableval}" |
2997 |
> |
# Check whether --enable-openmd-home was given. |
2998 |
> |
if test "${enable_openmd_home+set}" = set; then : |
2999 |
> |
enableval=$enable_openmd_home; OPENMD_HOME="${enableval}" |
3000 |
|
fi |
3001 |
|
|
3002 |
|
|
3034 |
|
$as_echo "#define SINGLE_PRECISION 1" >>confdefs.h |
3035 |
|
|
3036 |
|
USE_SINGLE_PRECISION=yes |
3094 |
– |
|
3095 |
– |
fi |
3096 |
– |
|
3097 |
– |
if test x"$CC" != x; then |
3098 |
– |
for ac_prog in $CC |
3099 |
– |
do |
3100 |
– |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
3101 |
– |
set dummy $ac_prog; ac_word=$2 |
3102 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3103 |
– |
$as_echo_n "checking for $ac_word... " >&6; } |
3104 |
– |
if test "${ac_cv_prog_ac_cc_set+set}" = set; then : |
3105 |
– |
$as_echo_n "(cached) " >&6 |
3106 |
– |
else |
3107 |
– |
if test -n "$ac_cc_set"; then |
3108 |
– |
ac_cv_prog_ac_cc_set="$ac_cc_set" # Let the user override the test. |
3109 |
– |
else |
3110 |
– |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3111 |
– |
for as_dir in $PATH |
3112 |
– |
do |
3113 |
– |
IFS=$as_save_IFS |
3114 |
– |
test -z "$as_dir" && as_dir=. |
3115 |
– |
for ac_exec_ext in '' $ac_executable_extensions; do |
3116 |
– |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
3117 |
– |
ac_cv_prog_ac_cc_set="$ac_prog" |
3118 |
– |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3119 |
– |
break 2 |
3120 |
– |
fi |
3121 |
– |
done |
3122 |
– |
done |
3123 |
– |
IFS=$as_save_IFS |
3124 |
– |
|
3125 |
– |
fi |
3126 |
– |
fi |
3127 |
– |
ac_cc_set=$ac_cv_prog_ac_cc_set |
3128 |
– |
if test -n "$ac_cc_set"; then |
3129 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cc_set" >&5 |
3130 |
– |
$as_echo "$ac_cc_set" >&6; } |
3131 |
– |
else |
3132 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3133 |
– |
$as_echo "no" >&6; } |
3134 |
– |
fi |
3135 |
– |
|
3136 |
– |
|
3137 |
– |
test -n "$ac_cc_set" && break |
3138 |
– |
done |
3139 |
– |
test -n "$ac_cc_set" || ac_cc_set="no" |
3140 |
– |
|
3141 |
– |
if test $ac_cc_set != no; then : |
3142 |
– |
|
3143 |
– |
# Extract the first word of "$ac_cc_set", so it can be a program name with args. |
3144 |
– |
set dummy $ac_cc_set; ac_word=$2 |
3145 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3146 |
– |
$as_echo_n "checking for $ac_word... " >&6; } |
3147 |
– |
if test "${ac_cv_path_ac_cc_path+set}" = set; then : |
3148 |
– |
$as_echo_n "(cached) " >&6 |
3149 |
– |
else |
3150 |
– |
case $ac_cc_path in |
3151 |
– |
[\\/]* | ?:[\\/]*) |
3152 |
– |
ac_cv_path_ac_cc_path="$ac_cc_path" # Let the user override the test with a path. |
3153 |
– |
;; |
3154 |
– |
*) |
3155 |
– |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3156 |
– |
for as_dir in $PATH |
3157 |
– |
do |
3158 |
– |
IFS=$as_save_IFS |
3159 |
– |
test -z "$as_dir" && as_dir=. |
3160 |
– |
for ac_exec_ext in '' $ac_executable_extensions; do |
3161 |
– |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
3162 |
– |
ac_cv_path_ac_cc_path="$as_dir/$ac_word$ac_exec_ext" |
3163 |
– |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3164 |
– |
break 2 |
3165 |
– |
fi |
3166 |
– |
done |
3167 |
– |
done |
3168 |
– |
IFS=$as_save_IFS |
3169 |
– |
|
3170 |
– |
test -z "$ac_cv_path_ac_cc_path" && ac_cv_path_ac_cc_path="no" |
3171 |
– |
;; |
3172 |
– |
esac |
3173 |
– |
fi |
3174 |
– |
ac_cc_path=$ac_cv_path_ac_cc_path |
3175 |
– |
if test -n "$ac_cc_path"; then |
3176 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cc_path" >&5 |
3177 |
– |
$as_echo "$ac_cc_path" >&6; } |
3178 |
– |
else |
3179 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3180 |
– |
$as_echo "no" >&6; } |
3181 |
– |
fi |
3182 |
– |
|
3183 |
– |
|
3184 |
– |
else |
3185 |
– |
|
3186 |
– |
as_fn_error "Specified C compiler $CC doesn't seem to exist!" "$LINENO" 5 |
3187 |
– |
fi |
3188 |
– |
|
3189 |
– |
if test $ac_cc_path != no; then : |
3190 |
– |
|
3191 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: Will attempt to use $CC as C compiler" >&5 |
3192 |
– |
$as_echo "$as_me: Will attempt to use $CC as C compiler" >&6;} |
3193 |
– |
MPICC=$CC |
3194 |
– |
|
3195 |
– |
else |
3196 |
– |
|
3197 |
– |
as_fn_error "Can't find path to user-specified C compiler $CC" "$LINENO" 5 |
3198 |
– |
fi |
3199 |
– |
fi |
3200 |
– |
|
3201 |
– |
if test x"$CXX" != x; then |
3202 |
– |
for ac_prog in $CXX |
3203 |
– |
do |
3204 |
– |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
3205 |
– |
set dummy $ac_prog; ac_word=$2 |
3206 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3207 |
– |
$as_echo_n "checking for $ac_word... " >&6; } |
3208 |
– |
if test "${ac_cv_prog_ac_cxx_set+set}" = set; then : |
3209 |
– |
$as_echo_n "(cached) " >&6 |
3210 |
– |
else |
3211 |
– |
if test -n "$ac_cxx_set"; then |
3212 |
– |
ac_cv_prog_ac_cxx_set="$ac_cxx_set" # Let the user override the test. |
3213 |
– |
else |
3214 |
– |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3215 |
– |
for as_dir in $PATH |
3216 |
– |
do |
3217 |
– |
IFS=$as_save_IFS |
3218 |
– |
test -z "$as_dir" && as_dir=. |
3219 |
– |
for ac_exec_ext in '' $ac_executable_extensions; do |
3220 |
– |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
3221 |
– |
ac_cv_prog_ac_cxx_set="$ac_prog" |
3222 |
– |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3223 |
– |
break 2 |
3224 |
– |
fi |
3225 |
– |
done |
3226 |
– |
done |
3227 |
– |
IFS=$as_save_IFS |
3228 |
– |
|
3229 |
– |
fi |
3230 |
– |
fi |
3231 |
– |
ac_cxx_set=$ac_cv_prog_ac_cxx_set |
3232 |
– |
if test -n "$ac_cxx_set"; then |
3233 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cxx_set" >&5 |
3234 |
– |
$as_echo "$ac_cxx_set" >&6; } |
3235 |
– |
else |
3236 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3237 |
– |
$as_echo "no" >&6; } |
3238 |
– |
fi |
3239 |
– |
|
3240 |
– |
|
3241 |
– |
test -n "$ac_cxx_set" && break |
3242 |
– |
done |
3243 |
– |
test -n "$ac_cxx_set" || ac_cxx_set="no" |
3244 |
– |
|
3245 |
– |
if test $ac_cxx_set != no; then : |
3246 |
– |
|
3247 |
– |
# Extract the first word of "$ac_cxx_set", so it can be a program name with args. |
3248 |
– |
set dummy $ac_cxx_set; ac_word=$2 |
3249 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3250 |
– |
$as_echo_n "checking for $ac_word... " >&6; } |
3251 |
– |
if test "${ac_cv_path_ac_cxx_path+set}" = set; then : |
3252 |
– |
$as_echo_n "(cached) " >&6 |
3253 |
– |
else |
3254 |
– |
case $ac_cxx_path in |
3255 |
– |
[\\/]* | ?:[\\/]*) |
3256 |
– |
ac_cv_path_ac_cxx_path="$ac_cxx_path" # Let the user override the test with a path. |
3257 |
– |
;; |
3258 |
– |
*) |
3259 |
– |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3260 |
– |
for as_dir in $PATH |
3261 |
– |
do |
3262 |
– |
IFS=$as_save_IFS |
3263 |
– |
test -z "$as_dir" && as_dir=. |
3264 |
– |
for ac_exec_ext in '' $ac_executable_extensions; do |
3265 |
– |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
3266 |
– |
ac_cv_path_ac_cxx_path="$as_dir/$ac_word$ac_exec_ext" |
3267 |
– |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3268 |
– |
break 2 |
3269 |
– |
fi |
3270 |
– |
done |
3271 |
– |
done |
3272 |
– |
IFS=$as_save_IFS |
3273 |
– |
|
3274 |
– |
test -z "$ac_cv_path_ac_cxx_path" && ac_cv_path_ac_cxx_path="no" |
3275 |
– |
;; |
3276 |
– |
esac |
3277 |
– |
fi |
3278 |
– |
ac_cxx_path=$ac_cv_path_ac_cxx_path |
3279 |
– |
if test -n "$ac_cxx_path"; then |
3280 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cxx_path" >&5 |
3281 |
– |
$as_echo "$ac_cxx_path" >&6; } |
3282 |
– |
else |
3283 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3284 |
– |
$as_echo "no" >&6; } |
3285 |
– |
fi |
3286 |
– |
|
3287 |
– |
|
3288 |
– |
else |
3289 |
– |
|
3290 |
– |
as_fn_error "Specified C++ compiler $CXX doesn't seem to exist!" "$LINENO" 5 |
3291 |
– |
fi |
3292 |
– |
|
3293 |
– |
if test $ac_cxx_path != no; then : |
3294 |
– |
|
3295 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: Will attempt to use $CXX as C++ compiler" >&5 |
3296 |
– |
$as_echo "$as_me: Will attempt to use $CXX as C++ compiler" >&6;} |
3297 |
– |
MPICXX=$CXX |
3298 |
– |
|
3299 |
– |
else |
3300 |
– |
|
3301 |
– |
as_fn_error "Can't find path to user-specified C++ compiler $CXX" "$LINENO" 5 |
3302 |
– |
fi |
3303 |
– |
fi |
3304 |
– |
|
3305 |
– |
if test x"$FC" != x; then |
3306 |
– |
for ac_prog in $FC |
3307 |
– |
do |
3308 |
– |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
3309 |
– |
set dummy $ac_prog; ac_word=$2 |
3310 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3311 |
– |
$as_echo_n "checking for $ac_word... " >&6; } |
3312 |
– |
if test "${ac_cv_prog_ac_fc_set+set}" = set; then : |
3313 |
– |
$as_echo_n "(cached) " >&6 |
3314 |
– |
else |
3315 |
– |
if test -n "$ac_fc_set"; then |
3316 |
– |
ac_cv_prog_ac_fc_set="$ac_fc_set" # Let the user override the test. |
3317 |
– |
else |
3318 |
– |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3319 |
– |
for as_dir in $PATH |
3320 |
– |
do |
3321 |
– |
IFS=$as_save_IFS |
3322 |
– |
test -z "$as_dir" && as_dir=. |
3323 |
– |
for ac_exec_ext in '' $ac_executable_extensions; do |
3324 |
– |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
3325 |
– |
ac_cv_prog_ac_fc_set="$ac_prog" |
3326 |
– |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3327 |
– |
break 2 |
3328 |
– |
fi |
3329 |
– |
done |
3330 |
– |
done |
3331 |
– |
IFS=$as_save_IFS |
3037 |
|
|
3038 |
|
fi |
3334 |
– |
fi |
3335 |
– |
ac_fc_set=$ac_cv_prog_ac_fc_set |
3336 |
– |
if test -n "$ac_fc_set"; then |
3337 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_fc_set" >&5 |
3338 |
– |
$as_echo "$ac_fc_set" >&6; } |
3339 |
– |
else |
3340 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3341 |
– |
$as_echo "no" >&6; } |
3342 |
– |
fi |
3039 |
|
|
3344 |
– |
|
3345 |
– |
test -n "$ac_fc_set" && break |
3346 |
– |
done |
3347 |
– |
test -n "$ac_fc_set" || ac_fc_set="no" |
3348 |
– |
|
3349 |
– |
if test $ac_fc_set != no; then : |
3350 |
– |
|
3351 |
– |
# Extract the first word of "$ac_fc_set", so it can be a program name with args. |
3352 |
– |
set dummy $ac_fc_set; ac_word=$2 |
3353 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3354 |
– |
$as_echo_n "checking for $ac_word... " >&6; } |
3355 |
– |
if test "${ac_cv_path_ac_fc_path+set}" = set; then : |
3356 |
– |
$as_echo_n "(cached) " >&6 |
3357 |
– |
else |
3358 |
– |
case $ac_fc_path in |
3359 |
– |
[\\/]* | ?:[\\/]*) |
3360 |
– |
ac_cv_path_ac_fc_path="$ac_fc_path" # Let the user override the test with a path. |
3361 |
– |
;; |
3362 |
– |
*) |
3363 |
– |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3364 |
– |
for as_dir in $PATH |
3365 |
– |
do |
3366 |
– |
IFS=$as_save_IFS |
3367 |
– |
test -z "$as_dir" && as_dir=. |
3368 |
– |
for ac_exec_ext in '' $ac_executable_extensions; do |
3369 |
– |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
3370 |
– |
ac_cv_path_ac_fc_path="$as_dir/$ac_word$ac_exec_ext" |
3371 |
– |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3372 |
– |
break 2 |
3373 |
– |
fi |
3374 |
– |
done |
3375 |
– |
done |
3376 |
– |
IFS=$as_save_IFS |
3377 |
– |
|
3378 |
– |
test -z "$ac_cv_path_ac_fc_path" && ac_cv_path_ac_fc_path="no" |
3379 |
– |
;; |
3380 |
– |
esac |
3381 |
– |
fi |
3382 |
– |
ac_fc_path=$ac_cv_path_ac_fc_path |
3383 |
– |
if test -n "$ac_fc_path"; then |
3384 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_fc_path" >&5 |
3385 |
– |
$as_echo "$ac_fc_path" >&6; } |
3386 |
– |
else |
3387 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3388 |
– |
$as_echo "no" >&6; } |
3389 |
– |
fi |
3390 |
– |
|
3391 |
– |
|
3392 |
– |
else |
3393 |
– |
|
3394 |
– |
as_fn_error "Specified Fortran compiler $FC doesn't seem to exist!" "$LINENO" 5 |
3395 |
– |
fi |
3396 |
– |
|
3397 |
– |
if test $ac_fc_path != no; then : |
3398 |
– |
|
3399 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: Will attempt to use $FC as Fortran compiler" >&5 |
3400 |
– |
$as_echo "$as_me: Will attempt to use $FC as Fortran compiler" >&6;} |
3401 |
– |
MPIFC=$FC |
3402 |
– |
|
3403 |
– |
else |
3404 |
– |
|
3405 |
– |
as_fn_error "Can't find path to user-specified Fortran compiler $FC" "$LINENO" 5 |
3406 |
– |
fi |
3407 |
– |
fi |
3408 |
– |
|
3409 |
– |
|
3040 |
|
ac_ext=cpp |
3041 |
|
ac_cpp='$CXXCPP $CPPFLAGS' |
3042 |
|
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
3043 |
|
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3044 |
|
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
3415 |
– |
|
3416 |
– |
ac_ext=cpp |
3417 |
– |
ac_cpp='$CXXCPP $CPPFLAGS' |
3418 |
– |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
3419 |
– |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3420 |
– |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
3045 |
|
if test -z "$CXX"; then |
3046 |
|
if test -n "$CCC"; then |
3047 |
|
CXX=$CCC |
3048 |
|
else |
3049 |
|
if test -n "$ac_tool_prefix"; then |
3050 |
< |
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
3050 |
> |
for ac_prog in $CXX icpc pathCC pgCC c++ xlc++ xlC g++ CC |
3051 |
|
do |
3052 |
|
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
3053 |
|
set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
3054 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3055 |
|
$as_echo_n "checking for $ac_word... " >&6; } |
3056 |
< |
if test "${ac_cv_prog_CXX+set}" = set; then : |
3056 |
> |
if ${ac_cv_prog_CXX+:} false; then : |
3057 |
|
$as_echo_n "(cached) " >&6 |
3058 |
|
else |
3059 |
|
if test -n "$CXX"; then |
3091 |
|
fi |
3092 |
|
if test -z "$CXX"; then |
3093 |
|
ac_ct_CXX=$CXX |
3094 |
< |
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
3094 |
> |
for ac_prog in $CXX icpc pathCC pgCC c++ xlc++ xlC g++ CC |
3095 |
|
do |
3096 |
|
# Extract the first word of "$ac_prog", so it can be a program name with args. |
3097 |
|
set dummy $ac_prog; ac_word=$2 |
3098 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3099 |
|
$as_echo_n "checking for $ac_word... " >&6; } |
3100 |
< |
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then : |
3100 |
> |
if ${ac_cv_prog_ac_ct_CXX+:} false; then : |
3101 |
|
$as_echo_n "(cached) " >&6 |
3102 |
|
else |
3103 |
|
if test -n "$ac_ct_CXX"; then |
3167 |
|
... rest of stderr output deleted ... |
3168 |
|
10q' conftest.err >conftest.er1 |
3169 |
|
cat conftest.er1 >&5 |
3546 |
– |
rm -f conftest.er1 conftest.err |
3170 |
|
fi |
3171 |
+ |
rm -f conftest.er1 conftest.err |
3172 |
|
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3173 |
|
test $ac_status = 0; } |
3174 |
|
done |
3175 |
|
|
3176 |
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3177 |
|
/* end confdefs.h. */ |
3178 |
< |
#include <stdio.h> |
3178 |
> |
|
3179 |
|
int |
3180 |
|
main () |
3181 |
|
{ |
3558 |
– |
FILE *f = fopen ("conftest.out", "w"); |
3559 |
– |
return ferror (f) || fclose (f) != 0; |
3182 |
|
|
3183 |
|
; |
3184 |
|
return 0; |
3185 |
|
} |
3186 |
|
_ACEOF |
3187 |
|
ac_clean_files_save=$ac_clean_files |
3188 |
< |
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out" |
3188 |
> |
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
3189 |
|
# Try to create an executable without -o first, disregard a.out. |
3190 |
|
# It will help us diagnose broken compilers, and finding out an intuition |
3191 |
|
# of exeext. |
3192 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5 |
3193 |
< |
$as_echo_n "checking for C++ compiler default output file name... " >&6; } |
3192 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5 |
3193 |
> |
$as_echo_n "checking whether the C++ compiler works... " >&6; } |
3194 |
|
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
3195 |
|
|
3196 |
|
# The possible output files: |
3252 |
|
else |
3253 |
|
ac_file='' |
3254 |
|
fi |
3633 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 |
3634 |
– |
$as_echo "$ac_file" >&6; } |
3255 |
|
if test -z "$ac_file"; then : |
3256 |
< |
$as_echo "$as_me: failed program was:" >&5 |
3256 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3257 |
> |
$as_echo "no" >&6; } |
3258 |
> |
$as_echo "$as_me: failed program was:" >&5 |
3259 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
3260 |
|
|
3261 |
|
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3262 |
|
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
3263 |
< |
{ as_fn_set_status 77 |
3264 |
< |
as_fn_error "C++ compiler cannot create executables |
3265 |
< |
See \`config.log' for more details." "$LINENO" 5; }; } |
3263 |
> |
as_fn_error 77 "C++ compiler cannot create executables |
3264 |
> |
See \`config.log' for more details" "$LINENO" 5; } |
3265 |
> |
else |
3266 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
3267 |
> |
$as_echo "yes" >&6; } |
3268 |
|
fi |
3269 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5 |
3270 |
+ |
$as_echo_n "checking for C++ compiler default output file name... " >&6; } |
3271 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 |
3272 |
+ |
$as_echo "$ac_file" >&6; } |
3273 |
|
ac_exeext=$ac_cv_exeext |
3274 |
|
|
3275 |
< |
# Check that the compiler produces executables we can run. If not, either |
3648 |
< |
# the compiler is broken, or we cross compile. |
3649 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5 |
3650 |
< |
$as_echo_n "checking whether the C++ compiler works... " >&6; } |
3651 |
< |
# If not cross compiling, check that we can run a simple program. |
3652 |
< |
if test "$cross_compiling" != yes; then |
3653 |
< |
if { ac_try='./$ac_file' |
3654 |
< |
{ { case "(($ac_try" in |
3655 |
< |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3656 |
< |
*) ac_try_echo=$ac_try;; |
3657 |
< |
esac |
3658 |
< |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3659 |
< |
$as_echo "$ac_try_echo"; } >&5 |
3660 |
< |
(eval "$ac_try") 2>&5 |
3661 |
< |
ac_status=$? |
3662 |
< |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3663 |
< |
test $ac_status = 0; }; }; then |
3664 |
< |
cross_compiling=no |
3665 |
< |
else |
3666 |
< |
if test "$cross_compiling" = maybe; then |
3667 |
< |
cross_compiling=yes |
3668 |
< |
else |
3669 |
< |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3670 |
< |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
3671 |
< |
as_fn_error "cannot run C++ compiled programs. |
3672 |
< |
If you meant to cross compile, use \`--host'. |
3673 |
< |
See \`config.log' for more details." "$LINENO" 5; } |
3674 |
< |
fi |
3675 |
< |
fi |
3676 |
< |
fi |
3677 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
3678 |
< |
$as_echo "yes" >&6; } |
3679 |
< |
|
3680 |
< |
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out |
3275 |
> |
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
3276 |
|
ac_clean_files=$ac_clean_files_save |
3682 |
– |
# Check that the compiler produces executables we can run. If not, either |
3683 |
– |
# the compiler is broken, or we cross compile. |
3684 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
3685 |
– |
$as_echo_n "checking whether we are cross compiling... " >&6; } |
3686 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 |
3687 |
– |
$as_echo "$cross_compiling" >&6; } |
3688 |
– |
|
3277 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
3278 |
|
$as_echo_n "checking for suffix of executables... " >&6; } |
3279 |
|
if { { ac_try="$ac_link" |
3303 |
|
else |
3304 |
|
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3305 |
|
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
3306 |
< |
as_fn_error "cannot compute suffix of executables: cannot compile and link |
3307 |
< |
See \`config.log' for more details." "$LINENO" 5; } |
3306 |
> |
as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
3307 |
> |
See \`config.log' for more details" "$LINENO" 5; } |
3308 |
|
fi |
3309 |
< |
rm -f conftest$ac_cv_exeext |
3309 |
> |
rm -f conftest conftest$ac_cv_exeext |
3310 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
3311 |
|
$as_echo "$ac_cv_exeext" >&6; } |
3312 |
|
|
3313 |
|
rm -f conftest.$ac_ext |
3314 |
|
EXEEXT=$ac_cv_exeext |
3315 |
|
ac_exeext=$EXEEXT |
3316 |
+ |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3317 |
+ |
/* end confdefs.h. */ |
3318 |
+ |
#include <stdio.h> |
3319 |
+ |
int |
3320 |
+ |
main () |
3321 |
+ |
{ |
3322 |
+ |
FILE *f = fopen ("conftest.out", "w"); |
3323 |
+ |
return ferror (f) || fclose (f) != 0; |
3324 |
+ |
|
3325 |
+ |
; |
3326 |
+ |
return 0; |
3327 |
+ |
} |
3328 |
+ |
_ACEOF |
3329 |
+ |
ac_clean_files="$ac_clean_files conftest.out" |
3330 |
+ |
# Check that the compiler produces executables we can run. If not, either |
3331 |
+ |
# the compiler is broken, or we cross compile. |
3332 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
3333 |
+ |
$as_echo_n "checking whether we are cross compiling... " >&6; } |
3334 |
+ |
if test "$cross_compiling" != yes; then |
3335 |
+ |
{ { ac_try="$ac_link" |
3336 |
+ |
case "(($ac_try" in |
3337 |
+ |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3338 |
+ |
*) ac_try_echo=$ac_try;; |
3339 |
+ |
esac |
3340 |
+ |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3341 |
+ |
$as_echo "$ac_try_echo"; } >&5 |
3342 |
+ |
(eval "$ac_link") 2>&5 |
3343 |
+ |
ac_status=$? |
3344 |
+ |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3345 |
+ |
test $ac_status = 0; } |
3346 |
+ |
if { ac_try='./conftest$ac_cv_exeext' |
3347 |
+ |
{ { case "(($ac_try" in |
3348 |
+ |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3349 |
+ |
*) ac_try_echo=$ac_try;; |
3350 |
+ |
esac |
3351 |
+ |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3352 |
+ |
$as_echo "$ac_try_echo"; } >&5 |
3353 |
+ |
(eval "$ac_try") 2>&5 |
3354 |
+ |
ac_status=$? |
3355 |
+ |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3356 |
+ |
test $ac_status = 0; }; }; then |
3357 |
+ |
cross_compiling=no |
3358 |
+ |
else |
3359 |
+ |
if test "$cross_compiling" = maybe; then |
3360 |
+ |
cross_compiling=yes |
3361 |
+ |
else |
3362 |
+ |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3363 |
+ |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
3364 |
+ |
as_fn_error $? "cannot run C++ compiled programs. |
3365 |
+ |
If you meant to cross compile, use \`--host'. |
3366 |
+ |
See \`config.log' for more details" "$LINENO" 5; } |
3367 |
+ |
fi |
3368 |
+ |
fi |
3369 |
+ |
fi |
3370 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 |
3371 |
+ |
$as_echo "$cross_compiling" >&6; } |
3372 |
+ |
|
3373 |
+ |
rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out |
3374 |
+ |
ac_clean_files=$ac_clean_files_save |
3375 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
3376 |
|
$as_echo_n "checking for suffix of object files... " >&6; } |
3377 |
< |
if test "${ac_cv_objext+set}" = set; then : |
3377 |
> |
if ${ac_cv_objext+:} false; then : |
3378 |
|
$as_echo_n "(cached) " >&6 |
3379 |
|
else |
3380 |
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3414 |
|
|
3415 |
|
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3416 |
|
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
3417 |
< |
as_fn_error "cannot compute suffix of object files: cannot compile |
3418 |
< |
See \`config.log' for more details." "$LINENO" 5; } |
3417 |
> |
as_fn_error $? "cannot compute suffix of object files: cannot compile |
3418 |
> |
See \`config.log' for more details" "$LINENO" 5; } |
3419 |
|
fi |
3420 |
|
rm -f conftest.$ac_cv_objext conftest.$ac_ext |
3421 |
|
fi |
3425 |
|
ac_objext=$OBJEXT |
3426 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 |
3427 |
|
$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } |
3428 |
< |
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then : |
3428 |
> |
if ${ac_cv_cxx_compiler_gnu+:} false; then : |
3429 |
|
$as_echo_n "(cached) " >&6 |
3430 |
|
else |
3431 |
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3462 |
|
ac_save_CXXFLAGS=$CXXFLAGS |
3463 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 |
3464 |
|
$as_echo_n "checking whether $CXX accepts -g... " >&6; } |
3465 |
< |
if test "${ac_cv_prog_cxx_g+set}" = set; then : |
3465 |
> |
if ${ac_cv_prog_cxx_g+:} false; then : |
3466 |
|
$as_echo_n "(cached) " >&6 |
3467 |
|
else |
3468 |
|
ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
3538 |
|
CXXFLAGS= |
3539 |
|
fi |
3540 |
|
fi |
3541 |
< |
ac_ext=cpp |
3542 |
< |
ac_cpp='$CXXCPP $CPPFLAGS' |
3543 |
< |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
3544 |
< |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3545 |
< |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
3541 |
> |
ac_ext=c |
3542 |
> |
ac_cpp='$CPP $CPPFLAGS' |
3543 |
> |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
3544 |
> |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3545 |
> |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
3546 |
|
|
3900 |
– |
|
3901 |
– |
|
3902 |
– |
|
3903 |
– |
|
3904 |
– |
|
3905 |
– |
|
3906 |
– |
for ac_prog in openmpicxx openmpiCC openmpic++ mpic++ mpicxx mpiCC hcp mpxlC_r mpxlC mpCC cmpic++ |
3907 |
– |
do |
3908 |
– |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
3909 |
– |
set dummy $ac_prog; ac_word=$2 |
3910 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3911 |
– |
$as_echo_n "checking for $ac_word... " >&6; } |
3912 |
– |
if test "${ac_cv_prog_MPICXX+set}" = set; then : |
3913 |
– |
$as_echo_n "(cached) " >&6 |
3914 |
– |
else |
3915 |
– |
if test -n "$MPICXX"; then |
3916 |
– |
ac_cv_prog_MPICXX="$MPICXX" # Let the user override the test. |
3917 |
– |
else |
3918 |
– |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3919 |
– |
for as_dir in $PATH |
3920 |
– |
do |
3921 |
– |
IFS=$as_save_IFS |
3922 |
– |
test -z "$as_dir" && as_dir=. |
3923 |
– |
for ac_exec_ext in '' $ac_executable_extensions; do |
3924 |
– |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
3925 |
– |
ac_cv_prog_MPICXX="$ac_prog" |
3926 |
– |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3927 |
– |
break 2 |
3928 |
– |
fi |
3929 |
– |
done |
3930 |
– |
done |
3931 |
– |
IFS=$as_save_IFS |
3932 |
– |
|
3933 |
– |
fi |
3934 |
– |
fi |
3935 |
– |
MPICXX=$ac_cv_prog_MPICXX |
3936 |
– |
if test -n "$MPICXX"; then |
3937 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPICXX" >&5 |
3938 |
– |
$as_echo "$MPICXX" >&6; } |
3939 |
– |
else |
3940 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3941 |
– |
$as_echo "no" >&6; } |
3942 |
– |
fi |
3943 |
– |
|
3944 |
– |
|
3945 |
– |
test -n "$MPICXX" && break |
3946 |
– |
done |
3947 |
– |
test -n "$MPICXX" || MPICXX="$CXX" |
3948 |
– |
|
3949 |
– |
ax_mpi_save_CXX="$CXX" |
3950 |
– |
CXX="$MPICXX" |
3951 |
– |
|
3952 |
– |
|
3953 |
– |
|
3954 |
– |
if test x = x"$MPILIBS"; then |
3955 |
– |
ac_fn_cxx_check_func "$LINENO" "MPI_Init" "ac_cv_func_MPI_Init" |
3956 |
– |
if test "x$ac_cv_func_MPI_Init" = x""yes; then : |
3957 |
– |
MPILIBS=" " |
3958 |
– |
fi |
3959 |
– |
|
3960 |
– |
fi |
3961 |
– |
|
3962 |
– |
if test x = x"$MPILIBS"; then |
3963 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpi" >&5 |
3964 |
– |
$as_echo_n "checking for MPI_Init in -lmpi... " >&6; } |
3965 |
– |
if test "${ac_cv_lib_mpi_MPI_Init+set}" = set; then : |
3966 |
– |
$as_echo_n "(cached) " >&6 |
3967 |
– |
else |
3968 |
– |
ac_check_lib_save_LIBS=$LIBS |
3969 |
– |
LIBS="-lmpi $LIBS" |
3970 |
– |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3971 |
– |
/* end confdefs.h. */ |
3972 |
– |
|
3973 |
– |
/* Override any GCC internal prototype to avoid an error. |
3974 |
– |
Use char because int might match the return type of a GCC |
3975 |
– |
builtin and then its argument prototype would still apply. */ |
3976 |
– |
#ifdef __cplusplus |
3977 |
– |
extern "C" |
3978 |
– |
#endif |
3979 |
– |
char MPI_Init (); |
3980 |
– |
int |
3981 |
– |
main () |
3982 |
– |
{ |
3983 |
– |
return MPI_Init (); |
3984 |
– |
; |
3985 |
– |
return 0; |
3986 |
– |
} |
3987 |
– |
_ACEOF |
3988 |
– |
if ac_fn_cxx_try_link "$LINENO"; then : |
3989 |
– |
ac_cv_lib_mpi_MPI_Init=yes |
3990 |
– |
else |
3991 |
– |
ac_cv_lib_mpi_MPI_Init=no |
3992 |
– |
fi |
3993 |
– |
rm -f core conftest.err conftest.$ac_objext \ |
3994 |
– |
conftest$ac_exeext conftest.$ac_ext |
3995 |
– |
LIBS=$ac_check_lib_save_LIBS |
3996 |
– |
fi |
3997 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpi_MPI_Init" >&5 |
3998 |
– |
$as_echo "$ac_cv_lib_mpi_MPI_Init" >&6; } |
3999 |
– |
if test "x$ac_cv_lib_mpi_MPI_Init" = x""yes; then : |
4000 |
– |
MPILIBS="-lmpi" |
4001 |
– |
fi |
4002 |
– |
|
4003 |
– |
fi |
4004 |
– |
if test x = x"$MPILIBS"; then |
4005 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpich" >&5 |
4006 |
– |
$as_echo_n "checking for MPI_Init in -lmpich... " >&6; } |
4007 |
– |
if test "${ac_cv_lib_mpich_MPI_Init+set}" = set; then : |
4008 |
– |
$as_echo_n "(cached) " >&6 |
4009 |
– |
else |
4010 |
– |
ac_check_lib_save_LIBS=$LIBS |
4011 |
– |
LIBS="-lmpich $LIBS" |
4012 |
– |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4013 |
– |
/* end confdefs.h. */ |
4014 |
– |
|
4015 |
– |
/* Override any GCC internal prototype to avoid an error. |
4016 |
– |
Use char because int might match the return type of a GCC |
4017 |
– |
builtin and then its argument prototype would still apply. */ |
4018 |
– |
#ifdef __cplusplus |
4019 |
– |
extern "C" |
4020 |
– |
#endif |
4021 |
– |
char MPI_Init (); |
4022 |
– |
int |
4023 |
– |
main () |
4024 |
– |
{ |
4025 |
– |
return MPI_Init (); |
4026 |
– |
; |
4027 |
– |
return 0; |
4028 |
– |
} |
4029 |
– |
_ACEOF |
4030 |
– |
if ac_fn_cxx_try_link "$LINENO"; then : |
4031 |
– |
ac_cv_lib_mpich_MPI_Init=yes |
4032 |
– |
else |
4033 |
– |
ac_cv_lib_mpich_MPI_Init=no |
4034 |
– |
fi |
4035 |
– |
rm -f core conftest.err conftest.$ac_objext \ |
4036 |
– |
conftest$ac_exeext conftest.$ac_ext |
4037 |
– |
LIBS=$ac_check_lib_save_LIBS |
4038 |
– |
fi |
4039 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpich_MPI_Init" >&5 |
4040 |
– |
$as_echo "$ac_cv_lib_mpich_MPI_Init" >&6; } |
4041 |
– |
if test "x$ac_cv_lib_mpich_MPI_Init" = x""yes; then : |
4042 |
– |
MPILIBS="-lmpich" |
4043 |
– |
fi |
4044 |
– |
|
4045 |
– |
fi |
4046 |
– |
|
4047 |
– |
if test x != x"$MPILIBS"; then |
4048 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpi.h" >&5 |
4049 |
– |
$as_echo_n "checking for mpi.h... " >&6; } |
4050 |
– |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4051 |
– |
/* end confdefs.h. */ |
4052 |
– |
#include <mpi.h> |
4053 |
– |
int |
4054 |
– |
main () |
4055 |
– |
{ |
4056 |
– |
|
4057 |
– |
; |
4058 |
– |
return 0; |
4059 |
– |
} |
4060 |
– |
_ACEOF |
4061 |
– |
if ac_fn_cxx_try_compile "$LINENO"; then : |
4062 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
4063 |
– |
$as_echo "yes" >&6; } |
4064 |
– |
else |
4065 |
– |
MPILIBS="" |
4066 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4067 |
– |
$as_echo "no" >&6; } |
4068 |
– |
fi |
4069 |
– |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4070 |
– |
fi |
4071 |
– |
|
4072 |
– |
CXX="$ax_mpi_save_CXX" |
4073 |
– |
|
4074 |
– |
|
4075 |
– |
|
4076 |
– |
# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: |
4077 |
– |
if test x = x"$MPILIBS"; then |
4078 |
– |
USE_MPI="no" |
4079 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No suitable C++ MPI implementation found. oopse_MPI will not be built." >&5 |
4080 |
– |
$as_echo "$as_me: WARNING: No suitable C++ MPI implementation found. oopse_MPI will not be built." >&2;} |
4081 |
– |
: |
4082 |
– |
else |
4083 |
– |
USE_MPI="yes" |
4084 |
– |
: |
4085 |
– |
fi |
4086 |
– |
|
3547 |
|
ac_ext=c |
3548 |
|
ac_cpp='$CPP $CPPFLAGS' |
3549 |
|
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
3550 |
|
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3551 |
|
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
3552 |
|
if test -n "$ac_tool_prefix"; then |
3553 |
< |
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
4094 |
< |
set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
4095 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4096 |
< |
$as_echo_n "checking for $ac_word... " >&6; } |
4097 |
< |
if test "${ac_cv_prog_CC+set}" = set; then : |
4098 |
< |
$as_echo_n "(cached) " >&6 |
4099 |
< |
else |
4100 |
< |
if test -n "$CC"; then |
4101 |
< |
ac_cv_prog_CC="$CC" # Let the user override the test. |
4102 |
< |
else |
4103 |
< |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4104 |
< |
for as_dir in $PATH |
4105 |
< |
do |
4106 |
< |
IFS=$as_save_IFS |
4107 |
< |
test -z "$as_dir" && as_dir=. |
4108 |
< |
for ac_exec_ext in '' $ac_executable_extensions; do |
4109 |
< |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
4110 |
< |
ac_cv_prog_CC="${ac_tool_prefix}gcc" |
4111 |
< |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4112 |
< |
break 2 |
4113 |
< |
fi |
4114 |
< |
done |
4115 |
< |
done |
4116 |
< |
IFS=$as_save_IFS |
4117 |
< |
|
4118 |
< |
fi |
4119 |
< |
fi |
4120 |
< |
CC=$ac_cv_prog_CC |
4121 |
< |
if test -n "$CC"; then |
4122 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4123 |
< |
$as_echo "$CC" >&6; } |
4124 |
< |
else |
4125 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4126 |
< |
$as_echo "no" >&6; } |
4127 |
< |
fi |
4128 |
< |
|
4129 |
< |
|
4130 |
< |
fi |
4131 |
< |
if test -z "$ac_cv_prog_CC"; then |
4132 |
< |
ac_ct_CC=$CC |
4133 |
< |
# Extract the first word of "gcc", so it can be a program name with args. |
4134 |
< |
set dummy gcc; ac_word=$2 |
4135 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4136 |
< |
$as_echo_n "checking for $ac_word... " >&6; } |
4137 |
< |
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : |
4138 |
< |
$as_echo_n "(cached) " >&6 |
4139 |
< |
else |
4140 |
< |
if test -n "$ac_ct_CC"; then |
4141 |
< |
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
4142 |
< |
else |
4143 |
< |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4144 |
< |
for as_dir in $PATH |
4145 |
< |
do |
4146 |
< |
IFS=$as_save_IFS |
4147 |
< |
test -z "$as_dir" && as_dir=. |
4148 |
< |
for ac_exec_ext in '' $ac_executable_extensions; do |
4149 |
< |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
4150 |
< |
ac_cv_prog_ac_ct_CC="gcc" |
4151 |
< |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4152 |
< |
break 2 |
4153 |
< |
fi |
4154 |
< |
done |
4155 |
< |
done |
4156 |
< |
IFS=$as_save_IFS |
4157 |
< |
|
4158 |
< |
fi |
4159 |
< |
fi |
4160 |
< |
ac_ct_CC=$ac_cv_prog_ac_ct_CC |
4161 |
< |
if test -n "$ac_ct_CC"; then |
4162 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
4163 |
< |
$as_echo "$ac_ct_CC" >&6; } |
4164 |
< |
else |
4165 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4166 |
< |
$as_echo "no" >&6; } |
4167 |
< |
fi |
4168 |
< |
|
4169 |
< |
if test "x$ac_ct_CC" = x; then |
4170 |
< |
CC="" |
4171 |
< |
else |
4172 |
< |
case $cross_compiling:$ac_tool_warned in |
4173 |
< |
yes:) |
4174 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
4175 |
< |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
4176 |
< |
ac_tool_warned=yes ;; |
4177 |
< |
esac |
4178 |
< |
CC=$ac_ct_CC |
4179 |
< |
fi |
4180 |
< |
else |
4181 |
< |
CC="$ac_cv_prog_CC" |
4182 |
< |
fi |
4183 |
< |
|
4184 |
< |
if test -z "$CC"; then |
4185 |
< |
if test -n "$ac_tool_prefix"; then |
4186 |
< |
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
4187 |
< |
set dummy ${ac_tool_prefix}cc; ac_word=$2 |
4188 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4189 |
< |
$as_echo_n "checking for $ac_word... " >&6; } |
4190 |
< |
if test "${ac_cv_prog_CC+set}" = set; then : |
4191 |
< |
$as_echo_n "(cached) " >&6 |
4192 |
< |
else |
4193 |
< |
if test -n "$CC"; then |
4194 |
< |
ac_cv_prog_CC="$CC" # Let the user override the test. |
4195 |
< |
else |
4196 |
< |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4197 |
< |
for as_dir in $PATH |
4198 |
< |
do |
4199 |
< |
IFS=$as_save_IFS |
4200 |
< |
test -z "$as_dir" && as_dir=. |
4201 |
< |
for ac_exec_ext in '' $ac_executable_extensions; do |
4202 |
< |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
4203 |
< |
ac_cv_prog_CC="${ac_tool_prefix}cc" |
4204 |
< |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4205 |
< |
break 2 |
4206 |
< |
fi |
4207 |
< |
done |
4208 |
< |
done |
4209 |
< |
IFS=$as_save_IFS |
4210 |
< |
|
4211 |
< |
fi |
4212 |
< |
fi |
4213 |
< |
CC=$ac_cv_prog_CC |
4214 |
< |
if test -n "$CC"; then |
4215 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4216 |
< |
$as_echo "$CC" >&6; } |
4217 |
< |
else |
4218 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4219 |
< |
$as_echo "no" >&6; } |
4220 |
< |
fi |
4221 |
< |
|
4222 |
< |
|
4223 |
< |
fi |
4224 |
< |
fi |
4225 |
< |
if test -z "$CC"; then |
4226 |
< |
# Extract the first word of "cc", so it can be a program name with args. |
4227 |
< |
set dummy cc; ac_word=$2 |
4228 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4229 |
< |
$as_echo_n "checking for $ac_word... " >&6; } |
4230 |
< |
if test "${ac_cv_prog_CC+set}" = set; then : |
4231 |
< |
$as_echo_n "(cached) " >&6 |
4232 |
< |
else |
4233 |
< |
if test -n "$CC"; then |
4234 |
< |
ac_cv_prog_CC="$CC" # Let the user override the test. |
4235 |
< |
else |
4236 |
< |
ac_prog_rejected=no |
4237 |
< |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4238 |
< |
for as_dir in $PATH |
4239 |
< |
do |
4240 |
< |
IFS=$as_save_IFS |
4241 |
< |
test -z "$as_dir" && as_dir=. |
4242 |
< |
for ac_exec_ext in '' $ac_executable_extensions; do |
4243 |
< |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
4244 |
< |
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
4245 |
< |
ac_prog_rejected=yes |
4246 |
< |
continue |
4247 |
< |
fi |
4248 |
< |
ac_cv_prog_CC="cc" |
4249 |
< |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4250 |
< |
break 2 |
4251 |
< |
fi |
4252 |
< |
done |
4253 |
< |
done |
4254 |
< |
IFS=$as_save_IFS |
4255 |
< |
|
4256 |
< |
if test $ac_prog_rejected = yes; then |
4257 |
< |
# We found a bogon in the path, so make sure we never use it. |
4258 |
< |
set dummy $ac_cv_prog_CC |
4259 |
< |
shift |
4260 |
< |
if test $# != 0; then |
4261 |
< |
# We chose a different compiler from the bogus one. |
4262 |
< |
# However, it has the same basename, so the bogon will be chosen |
4263 |
< |
# first if we set CC to just the basename; use the full file name. |
4264 |
< |
shift |
4265 |
< |
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
4266 |
< |
fi |
4267 |
< |
fi |
4268 |
< |
fi |
4269 |
< |
fi |
4270 |
< |
CC=$ac_cv_prog_CC |
4271 |
< |
if test -n "$CC"; then |
4272 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4273 |
< |
$as_echo "$CC" >&6; } |
4274 |
< |
else |
4275 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4276 |
< |
$as_echo "no" >&6; } |
4277 |
< |
fi |
4278 |
< |
|
4279 |
< |
|
4280 |
< |
fi |
4281 |
< |
if test -z "$CC"; then |
4282 |
< |
if test -n "$ac_tool_prefix"; then |
4283 |
< |
for ac_prog in cl.exe |
3553 |
> |
for ac_prog in $CC icc pathcc pgcc cc xlc gcc |
3554 |
|
do |
3555 |
|
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
3556 |
|
set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
3557 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3558 |
|
$as_echo_n "checking for $ac_word... " >&6; } |
3559 |
< |
if test "${ac_cv_prog_CC+set}" = set; then : |
3559 |
> |
if ${ac_cv_prog_CC+:} false; then : |
3560 |
|
$as_echo_n "(cached) " >&6 |
3561 |
|
else |
3562 |
|
if test -n "$CC"; then |
3594 |
|
fi |
3595 |
|
if test -z "$CC"; then |
3596 |
|
ac_ct_CC=$CC |
3597 |
< |
for ac_prog in cl.exe |
3597 |
> |
for ac_prog in $CC icc pathcc pgcc cc xlc gcc |
3598 |
|
do |
3599 |
|
# Extract the first word of "$ac_prog", so it can be a program name with args. |
3600 |
|
set dummy $ac_prog; ac_word=$2 |
3601 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3602 |
|
$as_echo_n "checking for $ac_word... " >&6; } |
3603 |
< |
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : |
3603 |
> |
if ${ac_cv_prog_ac_ct_CC+:} false; then : |
3604 |
|
$as_echo_n "(cached) " >&6 |
3605 |
|
else |
3606 |
|
if test -n "$ac_ct_CC"; then |
3649 |
|
fi |
3650 |
|
fi |
3651 |
|
|
4382 |
– |
fi |
3652 |
|
|
4384 |
– |
|
3653 |
|
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3654 |
|
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
3655 |
< |
as_fn_error "no acceptable C compiler found in \$PATH |
3656 |
< |
See \`config.log' for more details." "$LINENO" 5; } |
3655 |
> |
as_fn_error $? "no acceptable C compiler found in \$PATH |
3656 |
> |
See \`config.log' for more details" "$LINENO" 5; } |
3657 |
|
|
3658 |
|
# Provide some information about the compiler. |
3659 |
|
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
3674 |
|
... rest of stderr output deleted ... |
3675 |
|
10q' conftest.err >conftest.er1 |
3676 |
|
cat conftest.er1 >&5 |
4409 |
– |
rm -f conftest.er1 conftest.err |
3677 |
|
fi |
3678 |
+ |
rm -f conftest.er1 conftest.err |
3679 |
|
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3680 |
|
test $ac_status = 0; } |
3681 |
|
done |
3682 |
|
|
3683 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
3684 |
|
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
3685 |
< |
if test "${ac_cv_c_compiler_gnu+set}" = set; then : |
3685 |
> |
if ${ac_cv_c_compiler_gnu+:} false; then : |
3686 |
|
$as_echo_n "(cached) " >&6 |
3687 |
|
else |
3688 |
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3719 |
|
ac_save_CFLAGS=$CFLAGS |
3720 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
3721 |
|
$as_echo_n "checking whether $CC accepts -g... " >&6; } |
3722 |
< |
if test "${ac_cv_prog_cc_g+set}" = set; then : |
3722 |
> |
if ${ac_cv_prog_cc_g+:} false; then : |
3723 |
|
$as_echo_n "(cached) " >&6 |
3724 |
|
else |
3725 |
|
ac_save_c_werror_flag=$ac_c_werror_flag |
3797 |
|
fi |
3798 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
3799 |
|
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
3800 |
< |
if test "${ac_cv_prog_cc_c89+set}" = set; then : |
3800 |
> |
if ${ac_cv_prog_cc_c89+:} false; then : |
3801 |
|
$as_echo_n "(cached) " >&6 |
3802 |
|
else |
3803 |
|
ac_cv_prog_cc_c89=no |
3891 |
|
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
3892 |
|
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3893 |
|
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
4626 |
– |
|
4627 |
– |
|
4628 |
– |
if test $USE_MPI != no; then : |
4629 |
– |
|
4630 |
– |
ac_ext=c |
4631 |
– |
ac_cpp='$CPP $CPPFLAGS' |
4632 |
– |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
4633 |
– |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
4634 |
– |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
4635 |
– |
|
4636 |
– |
|
4637 |
– |
|
3894 |
|
|
4639 |
– |
|
4640 |
– |
|
4641 |
– |
for ac_prog in openmpicc mpicc hcc mpxlc_r mpxlc mpcc cmpicc |
4642 |
– |
do |
4643 |
– |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
4644 |
– |
set dummy $ac_prog; ac_word=$2 |
4645 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4646 |
– |
$as_echo_n "checking for $ac_word... " >&6; } |
4647 |
– |
if test "${ac_cv_prog_MPICC+set}" = set; then : |
4648 |
– |
$as_echo_n "(cached) " >&6 |
4649 |
– |
else |
4650 |
– |
if test -n "$MPICC"; then |
4651 |
– |
ac_cv_prog_MPICC="$MPICC" # Let the user override the test. |
4652 |
– |
else |
4653 |
– |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4654 |
– |
for as_dir in $PATH |
4655 |
– |
do |
4656 |
– |
IFS=$as_save_IFS |
4657 |
– |
test -z "$as_dir" && as_dir=. |
4658 |
– |
for ac_exec_ext in '' $ac_executable_extensions; do |
4659 |
– |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
4660 |
– |
ac_cv_prog_MPICC="$ac_prog" |
4661 |
– |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4662 |
– |
break 2 |
4663 |
– |
fi |
4664 |
– |
done |
4665 |
– |
done |
4666 |
– |
IFS=$as_save_IFS |
4667 |
– |
|
4668 |
– |
fi |
4669 |
– |
fi |
4670 |
– |
MPICC=$ac_cv_prog_MPICC |
4671 |
– |
if test -n "$MPICC"; then |
4672 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPICC" >&5 |
4673 |
– |
$as_echo "$MPICC" >&6; } |
4674 |
– |
else |
4675 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4676 |
– |
$as_echo "no" >&6; } |
4677 |
– |
fi |
4678 |
– |
|
4679 |
– |
|
4680 |
– |
test -n "$MPICC" && break |
4681 |
– |
done |
4682 |
– |
test -n "$MPICC" || MPICC="$CC" |
4683 |
– |
|
4684 |
– |
ax_mpi_save_CC="$CC" |
4685 |
– |
CC="$MPICC" |
4686 |
– |
|
4687 |
– |
|
4688 |
– |
|
4689 |
– |
if test x = x"$MPILIBS"; then |
4690 |
– |
ac_fn_c_check_func "$LINENO" "MPI_Init" "ac_cv_func_MPI_Init" |
4691 |
– |
if test "x$ac_cv_func_MPI_Init" = x""yes; then : |
4692 |
– |
MPILIBS=" " |
4693 |
– |
fi |
4694 |
– |
|
4695 |
– |
fi |
4696 |
– |
|
4697 |
– |
if test x = x"$MPILIBS"; then |
4698 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpi" >&5 |
4699 |
– |
$as_echo_n "checking for MPI_Init in -lmpi... " >&6; } |
4700 |
– |
if test "${ac_cv_lib_mpi_MPI_Init+set}" = set; then : |
4701 |
– |
$as_echo_n "(cached) " >&6 |
4702 |
– |
else |
4703 |
– |
ac_check_lib_save_LIBS=$LIBS |
4704 |
– |
LIBS="-lmpi $LIBS" |
4705 |
– |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4706 |
– |
/* end confdefs.h. */ |
4707 |
– |
|
4708 |
– |
/* Override any GCC internal prototype to avoid an error. |
4709 |
– |
Use char because int might match the return type of a GCC |
4710 |
– |
builtin and then its argument prototype would still apply. */ |
4711 |
– |
#ifdef __cplusplus |
4712 |
– |
extern "C" |
4713 |
– |
#endif |
4714 |
– |
char MPI_Init (); |
4715 |
– |
int |
4716 |
– |
main () |
4717 |
– |
{ |
4718 |
– |
return MPI_Init (); |
4719 |
– |
; |
4720 |
– |
return 0; |
4721 |
– |
} |
4722 |
– |
_ACEOF |
4723 |
– |
if ac_fn_c_try_link "$LINENO"; then : |
4724 |
– |
ac_cv_lib_mpi_MPI_Init=yes |
4725 |
– |
else |
4726 |
– |
ac_cv_lib_mpi_MPI_Init=no |
4727 |
– |
fi |
4728 |
– |
rm -f core conftest.err conftest.$ac_objext \ |
4729 |
– |
conftest$ac_exeext conftest.$ac_ext |
4730 |
– |
LIBS=$ac_check_lib_save_LIBS |
4731 |
– |
fi |
4732 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpi_MPI_Init" >&5 |
4733 |
– |
$as_echo "$ac_cv_lib_mpi_MPI_Init" >&6; } |
4734 |
– |
if test "x$ac_cv_lib_mpi_MPI_Init" = x""yes; then : |
4735 |
– |
MPILIBS="-lmpi" |
4736 |
– |
fi |
4737 |
– |
|
4738 |
– |
fi |
4739 |
– |
if test x = x"$MPILIBS"; then |
4740 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpich" >&5 |
4741 |
– |
$as_echo_n "checking for MPI_Init in -lmpich... " >&6; } |
4742 |
– |
if test "${ac_cv_lib_mpich_MPI_Init+set}" = set; then : |
4743 |
– |
$as_echo_n "(cached) " >&6 |
4744 |
– |
else |
4745 |
– |
ac_check_lib_save_LIBS=$LIBS |
4746 |
– |
LIBS="-lmpich $LIBS" |
4747 |
– |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4748 |
– |
/* end confdefs.h. */ |
4749 |
– |
|
4750 |
– |
/* Override any GCC internal prototype to avoid an error. |
4751 |
– |
Use char because int might match the return type of a GCC |
4752 |
– |
builtin and then its argument prototype would still apply. */ |
4753 |
– |
#ifdef __cplusplus |
4754 |
– |
extern "C" |
4755 |
– |
#endif |
4756 |
– |
char MPI_Init (); |
4757 |
– |
int |
4758 |
– |
main () |
4759 |
– |
{ |
4760 |
– |
return MPI_Init (); |
4761 |
– |
; |
4762 |
– |
return 0; |
4763 |
– |
} |
4764 |
– |
_ACEOF |
4765 |
– |
if ac_fn_c_try_link "$LINENO"; then : |
4766 |
– |
ac_cv_lib_mpich_MPI_Init=yes |
4767 |
– |
else |
4768 |
– |
ac_cv_lib_mpich_MPI_Init=no |
4769 |
– |
fi |
4770 |
– |
rm -f core conftest.err conftest.$ac_objext \ |
4771 |
– |
conftest$ac_exeext conftest.$ac_ext |
4772 |
– |
LIBS=$ac_check_lib_save_LIBS |
4773 |
– |
fi |
4774 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpich_MPI_Init" >&5 |
4775 |
– |
$as_echo "$ac_cv_lib_mpich_MPI_Init" >&6; } |
4776 |
– |
if test "x$ac_cv_lib_mpich_MPI_Init" = x""yes; then : |
4777 |
– |
MPILIBS="-lmpich" |
4778 |
– |
fi |
4779 |
– |
|
4780 |
– |
fi |
4781 |
– |
|
4782 |
– |
if test x != x"$MPILIBS"; then |
4783 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpi.h" >&5 |
4784 |
– |
$as_echo_n "checking for mpi.h... " >&6; } |
4785 |
– |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4786 |
– |
/* end confdefs.h. */ |
4787 |
– |
#include <mpi.h> |
4788 |
– |
int |
4789 |
– |
main () |
4790 |
– |
{ |
4791 |
– |
|
4792 |
– |
; |
4793 |
– |
return 0; |
4794 |
– |
} |
4795 |
– |
_ACEOF |
4796 |
– |
if ac_fn_c_try_compile "$LINENO"; then : |
4797 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
4798 |
– |
$as_echo "yes" >&6; } |
4799 |
– |
else |
4800 |
– |
MPILIBS="" |
4801 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4802 |
– |
$as_echo "no" >&6; } |
4803 |
– |
fi |
4804 |
– |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4805 |
– |
fi |
4806 |
– |
|
4807 |
– |
CC="$ax_mpi_save_CC" |
4808 |
– |
|
4809 |
– |
|
4810 |
– |
|
4811 |
– |
# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: |
4812 |
– |
if test x = x"$MPILIBS"; then |
4813 |
– |
USE_MPI="no" |
4814 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No suitable C MPI implementation found. oopse_MPI will not be built." >&5 |
4815 |
– |
$as_echo "$as_me: WARNING: No suitable C MPI implementation found. oopse_MPI will not be built." >&2;} |
4816 |
– |
: |
4817 |
– |
else |
4818 |
– |
USE_MPI="yes" |
4819 |
– |
: |
4820 |
– |
fi |
4821 |
– |
|
4822 |
– |
|
4823 |
– |
fi |
3895 |
|
ac_ext=${ac_fc_srcext-f} |
3896 |
|
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' |
3897 |
|
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' |
3898 |
|
ac_compiler_gnu=$ac_cv_fc_compiler_gnu |
3899 |
|
if test -n "$ac_tool_prefix"; then |
3900 |
< |
for ac_prog in gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn xlf90 f90 pgf90 pghpf epcf90 g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 |
3900 |
> |
for ac_prog in $FC ifort ifc pathf95 pgf95 xlf95 lf95 epcf90 pathf90 xlf90 f95 f90 gfortran g95 fort |
3901 |
|
do |
3902 |
|
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
3903 |
|
set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
3904 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3905 |
|
$as_echo_n "checking for $ac_word... " >&6; } |
3906 |
< |
if test "${ac_cv_prog_FC+set}" = set; then : |
3906 |
> |
if ${ac_cv_prog_FC+:} false; then : |
3907 |
|
$as_echo_n "(cached) " >&6 |
3908 |
|
else |
3909 |
|
if test -n "$FC"; then |
3941 |
|
fi |
3942 |
|
if test -z "$FC"; then |
3943 |
|
ac_ct_FC=$FC |
3944 |
< |
for ac_prog in gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn xlf90 f90 pgf90 pghpf epcf90 g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 |
3944 |
> |
for ac_prog in $FC ifort ifc pathf95 pgf95 xlf95 lf95 epcf90 pathf90 xlf90 f95 f90 gfortran g95 fort |
3945 |
|
do |
3946 |
|
# Extract the first word of "$ac_prog", so it can be a program name with args. |
3947 |
|
set dummy $ac_prog; ac_word=$2 |
3948 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3949 |
|
$as_echo_n "checking for $ac_word... " >&6; } |
3950 |
< |
if test "${ac_cv_prog_ac_ct_FC+set}" = set; then : |
3950 |
> |
if ${ac_cv_prog_ac_ct_FC+:} false; then : |
3951 |
|
$as_echo_n "(cached) " >&6 |
3952 |
|
else |
3953 |
|
if test -n "$ac_ct_FC"; then |
4016 |
|
... rest of stderr output deleted ... |
4017 |
|
10q' conftest.err >conftest.er1 |
4018 |
|
cat conftest.er1 >&5 |
4948 |
– |
rm -f conftest.er1 conftest.err |
4019 |
|
fi |
4020 |
+ |
rm -f conftest.er1 conftest.err |
4021 |
|
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4022 |
|
test $ac_status = 0; } |
4023 |
|
done |
4029 |
|
ac_ext=F |
4030 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5 |
4031 |
|
$as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; } |
4032 |
< |
if test "${ac_cv_fc_compiler_gnu+set}" = set; then : |
4032 |
> |
if ${ac_cv_fc_compiler_gnu+:} false; then : |
4033 |
|
$as_echo_n "(cached) " >&6 |
4034 |
|
else |
4035 |
|
cat > conftest.$ac_ext <<_ACEOF |
4057 |
|
FCFLAGS= |
4058 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5 |
4059 |
|
$as_echo_n "checking whether $FC accepts -g... " >&6; } |
4060 |
< |
if test "${ac_cv_prog_fc_g+set}" = set; then : |
4060 |
> |
if ${ac_cv_prog_fc_g+:} false; then : |
4061 |
|
$as_echo_n "(cached) " >&6 |
4062 |
|
else |
4063 |
|
FCFLAGS=-g |
4092 |
|
fi |
4093 |
|
fi |
4094 |
|
|
4095 |
< |
ac_ext=${ac_fc_srcext-f} |
4096 |
< |
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' |
4097 |
< |
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' |
4098 |
< |
ac_compiler_gnu=$ac_cv_fc_compiler_gnu |
4095 |
> |
ac_ext=c |
4096 |
> |
ac_cpp='$CPP $CPPFLAGS' |
4097 |
> |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
4098 |
> |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
4099 |
> |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
4100 |
|
|
4101 |
|
|
4102 |
< |
if test $USE_MPI != no; then : |
4102 |
> |
save_CXX=$CXX |
4103 |
> |
save_CC=$CC |
4104 |
> |
save_FC=$FC |
4105 |
> |
save_LIBS=$LIBS |
4106 |
|
|
4107 |
< |
ac_ext=${ac_fc_srcext-f} |
4108 |
< |
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' |
4109 |
< |
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' |
4110 |
< |
ac_compiler_gnu=$ac_cv_fc_compiler_gnu |
4107 |
> |
ac_ext=cpp |
4108 |
> |
ac_cpp='$CXXCPP $CPPFLAGS' |
4109 |
> |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
4110 |
> |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
4111 |
> |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
4112 |
|
|
4113 |
|
|
4114 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lc" >&5 |
4115 |
+ |
$as_echo_n "checking for dlopen in -lc... " >&6; } |
4116 |
+ |
if ${ac_cv_lib_c_dlopen+:} false; then : |
4117 |
+ |
$as_echo_n "(cached) " >&6 |
4118 |
+ |
else |
4119 |
+ |
ac_check_lib_save_LIBS=$LIBS |
4120 |
+ |
LIBS="-lc $LIBS" |
4121 |
+ |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4122 |
+ |
/* end confdefs.h. */ |
4123 |
|
|
4124 |
+ |
/* Override any GCC internal prototype to avoid an error. |
4125 |
+ |
Use char because int might match the return type of a GCC |
4126 |
+ |
builtin and then its argument prototype would still apply. */ |
4127 |
+ |
#ifdef __cplusplus |
4128 |
+ |
extern "C" |
4129 |
+ |
#endif |
4130 |
+ |
char dlopen (); |
4131 |
+ |
int |
4132 |
+ |
main () |
4133 |
+ |
{ |
4134 |
+ |
return dlopen (); |
4135 |
+ |
; |
4136 |
+ |
return 0; |
4137 |
+ |
} |
4138 |
+ |
_ACEOF |
4139 |
+ |
if ac_fn_cxx_try_link "$LINENO"; then : |
4140 |
+ |
ac_cv_lib_c_dlopen=yes |
4141 |
+ |
else |
4142 |
+ |
ac_cv_lib_c_dlopen=no |
4143 |
+ |
fi |
4144 |
+ |
rm -f core conftest.err conftest.$ac_objext \ |
4145 |
+ |
conftest$ac_exeext conftest.$ac_ext |
4146 |
+ |
LIBS=$ac_check_lib_save_LIBS |
4147 |
+ |
fi |
4148 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_dlopen" >&5 |
4149 |
+ |
$as_echo "$ac_cv_lib_c_dlopen" >&6; } |
4150 |
+ |
if test "x$ac_cv_lib_c_dlopen" = xyes; then : |
4151 |
+ |
LIBDL="" |
4152 |
+ |
else |
4153 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
4154 |
+ |
$as_echo_n "checking for dlopen in -ldl... " >&6; } |
4155 |
+ |
if ${ac_cv_lib_dl_dlopen+:} false; then : |
4156 |
+ |
$as_echo_n "(cached) " >&6 |
4157 |
+ |
else |
4158 |
+ |
ac_check_lib_save_LIBS=$LIBS |
4159 |
+ |
LIBS="-ldl $LIBS" |
4160 |
+ |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4161 |
+ |
/* end confdefs.h. */ |
4162 |
|
|
4163 |
+ |
/* Override any GCC internal prototype to avoid an error. |
4164 |
+ |
Use char because int might match the return type of a GCC |
4165 |
+ |
builtin and then its argument prototype would still apply. */ |
4166 |
+ |
#ifdef __cplusplus |
4167 |
+ |
extern "C" |
4168 |
+ |
#endif |
4169 |
+ |
char dlopen (); |
4170 |
+ |
int |
4171 |
+ |
main () |
4172 |
+ |
{ |
4173 |
+ |
return dlopen (); |
4174 |
+ |
; |
4175 |
+ |
return 0; |
4176 |
+ |
} |
4177 |
+ |
_ACEOF |
4178 |
+ |
if ac_fn_cxx_try_link "$LINENO"; then : |
4179 |
+ |
ac_cv_lib_dl_dlopen=yes |
4180 |
+ |
else |
4181 |
+ |
ac_cv_lib_dl_dlopen=no |
4182 |
+ |
fi |
4183 |
+ |
rm -f core conftest.err conftest.$ac_objext \ |
4184 |
+ |
conftest$ac_exeext conftest.$ac_ext |
4185 |
+ |
LIBS=$ac_check_lib_save_LIBS |
4186 |
+ |
fi |
4187 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
4188 |
+ |
$as_echo "$ac_cv_lib_dl_dlopen" >&6; } |
4189 |
+ |
if test "x$ac_cv_lib_dl_dlopen" = xyes; then : |
4190 |
+ |
LIBDL="-ldl" |
4191 |
+ |
fi |
4192 |
|
|
4193 |
+ |
fi |
4194 |
|
|
4195 |
< |
for ac_prog in openmpif90 mpif90 mpxlf95_r mpxlf90_r mpxlf95 mpxlf90 mpf90 cmpif90c |
4195 |
> |
|
4196 |
> |
|
4197 |
> |
|
4198 |
> |
|
4199 |
> |
|
4200 |
> |
|
4201 |
> |
for ac_prog in openmpicxx openmpiCC openmpic++ mpic++ mpicxx mpiCC hcp mpxlC_r mpxlC mpCC cmpic++ |
4202 |
|
do |
4203 |
|
# Extract the first word of "$ac_prog", so it can be a program name with args. |
4204 |
|
set dummy $ac_prog; ac_word=$2 |
4205 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4206 |
|
$as_echo_n "checking for $ac_word... " >&6; } |
4207 |
< |
if test "${ac_cv_prog_MPIFC+set}" = set; then : |
4207 |
> |
if ${ac_cv_prog_MPICXX+:} false; then : |
4208 |
|
$as_echo_n "(cached) " >&6 |
4209 |
|
else |
4210 |
< |
if test -n "$MPIFC"; then |
4211 |
< |
ac_cv_prog_MPIFC="$MPIFC" # Let the user override the test. |
4210 |
> |
if test -n "$MPICXX"; then |
4211 |
> |
ac_cv_prog_MPICXX="$MPICXX" # Let the user override the test. |
4212 |
|
else |
4213 |
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4214 |
|
for as_dir in $PATH |
4217 |
|
test -z "$as_dir" && as_dir=. |
4218 |
|
for ac_exec_ext in '' $ac_executable_extensions; do |
4219 |
|
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
4220 |
< |
ac_cv_prog_MPIFC="$ac_prog" |
4220 |
> |
ac_cv_prog_MPICXX="$ac_prog" |
4221 |
|
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4222 |
|
break 2 |
4223 |
|
fi |
4227 |
|
|
4228 |
|
fi |
4229 |
|
fi |
4230 |
< |
MPIFC=$ac_cv_prog_MPIFC |
4231 |
< |
if test -n "$MPIFC"; then |
4232 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPIFC" >&5 |
4233 |
< |
$as_echo "$MPIFC" >&6; } |
4230 |
> |
MPICXX=$ac_cv_prog_MPICXX |
4231 |
> |
if test -n "$MPICXX"; then |
4232 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPICXX" >&5 |
4233 |
> |
$as_echo "$MPICXX" >&6; } |
4234 |
|
else |
4235 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4236 |
|
$as_echo "no" >&6; } |
4237 |
|
fi |
4238 |
|
|
4239 |
|
|
4240 |
< |
test -n "$MPIFC" && break |
4240 |
> |
test -n "$MPICXX" && break |
4241 |
|
done |
4242 |
< |
test -n "$MPIFC" || MPIFC="$FC" |
4242 |
> |
test -n "$MPICXX" || MPICXX="$CXX" |
4243 |
|
|
4244 |
< |
ax_mpi_save_FC="$FC" |
4245 |
< |
FC="$MPIFC" |
4244 |
> |
ax_mpi_save_CXX="$CXX" |
4245 |
> |
CXX="$MPICXX" |
4246 |
|
|
4247 |
|
|
4248 |
|
|
4249 |
|
if test x = x"$MPILIBS"; then |
4250 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init" >&5 |
4251 |
< |
$as_echo_n "checking for MPI_Init... " >&6; } |
5093 |
< |
cat > conftest.$ac_ext <<_ACEOF |
5094 |
< |
program main |
5095 |
< |
call MPI_Init |
5096 |
< |
end |
5097 |
< |
_ACEOF |
5098 |
< |
if ac_fn_fc_try_link "$LINENO"; then : |
4250 |
> |
ac_fn_cxx_check_func "$LINENO" "MPI_Init" "ac_cv_func_MPI_Init" |
4251 |
> |
if test "x$ac_cv_func_MPI_Init" = xyes; then : |
4252 |
|
MPILIBS=" " |
5100 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
5101 |
– |
$as_echo "yes" >&6; } |
5102 |
– |
else |
5103 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5104 |
– |
$as_echo "no" >&6; } |
4253 |
|
fi |
5106 |
– |
rm -f core conftest.err conftest.$ac_objext \ |
5107 |
– |
conftest$ac_exeext conftest.$ac_ext |
5108 |
– |
fi |
4254 |
|
|
5110 |
– |
if test x = x"$MPILIBS"; then |
5111 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lfmpi" >&5 |
5112 |
– |
$as_echo_n "checking for MPI_Init in -lfmpi... " >&6; } |
5113 |
– |
if test "${ac_cv_lib_fmpi_MPI_Init+set}" = set; then : |
5114 |
– |
$as_echo_n "(cached) " >&6 |
5115 |
– |
else |
5116 |
– |
ac_check_lib_save_LIBS=$LIBS |
5117 |
– |
LIBS="-lfmpi $LIBS" |
5118 |
– |
cat > conftest.$ac_ext <<_ACEOF |
5119 |
– |
program main |
5120 |
– |
call MPI_Init |
5121 |
– |
end |
5122 |
– |
_ACEOF |
5123 |
– |
if ac_fn_fc_try_link "$LINENO"; then : |
5124 |
– |
ac_cv_lib_fmpi_MPI_Init=yes |
5125 |
– |
else |
5126 |
– |
ac_cv_lib_fmpi_MPI_Init=no |
4255 |
|
fi |
5128 |
– |
rm -f core conftest.err conftest.$ac_objext \ |
5129 |
– |
conftest$ac_exeext conftest.$ac_ext |
5130 |
– |
LIBS=$ac_check_lib_save_LIBS |
5131 |
– |
fi |
5132 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fmpi_MPI_Init" >&5 |
5133 |
– |
$as_echo "$ac_cv_lib_fmpi_MPI_Init" >&6; } |
5134 |
– |
if test "x$ac_cv_lib_fmpi_MPI_Init" = x""yes; then : |
5135 |
– |
MPILIBS="-lfmpi" |
5136 |
– |
fi |
4256 |
|
|
5138 |
– |
fi |
5139 |
– |
if test x = x"$MPILIBS"; then |
5140 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpichf90" >&5 |
5141 |
– |
$as_echo_n "checking for MPI_Init in -lmpichf90... " >&6; } |
5142 |
– |
if test "${ac_cv_lib_mpichf90_MPI_Init+set}" = set; then : |
5143 |
– |
$as_echo_n "(cached) " >&6 |
5144 |
– |
else |
5145 |
– |
ac_check_lib_save_LIBS=$LIBS |
5146 |
– |
LIBS="-lmpichf90 $LIBS" |
5147 |
– |
cat > conftest.$ac_ext <<_ACEOF |
5148 |
– |
program main |
5149 |
– |
call MPI_Init |
5150 |
– |
end |
5151 |
– |
_ACEOF |
5152 |
– |
if ac_fn_fc_try_link "$LINENO"; then : |
5153 |
– |
ac_cv_lib_mpichf90_MPI_Init=yes |
5154 |
– |
else |
5155 |
– |
ac_cv_lib_mpichf90_MPI_Init=no |
5156 |
– |
fi |
5157 |
– |
rm -f core conftest.err conftest.$ac_objext \ |
5158 |
– |
conftest$ac_exeext conftest.$ac_ext |
5159 |
– |
LIBS=$ac_check_lib_save_LIBS |
5160 |
– |
fi |
5161 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpichf90_MPI_Init" >&5 |
5162 |
– |
$as_echo "$ac_cv_lib_mpichf90_MPI_Init" >&6; } |
5163 |
– |
if test "x$ac_cv_lib_mpichf90_MPI_Init" = x""yes; then : |
5164 |
– |
MPILIBS="-lmpichf90" |
5165 |
– |
fi |
5166 |
– |
|
5167 |
– |
fi |
5168 |
– |
|
4257 |
|
if test x = x"$MPILIBS"; then |
4258 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpi" >&5 |
4259 |
|
$as_echo_n "checking for MPI_Init in -lmpi... " >&6; } |
4260 |
< |
if test "${ac_cv_lib_mpi_MPI_Init+set}" = set; then : |
4260 |
> |
if ${ac_cv_lib_mpi_MPI_Init+:} false; then : |
4261 |
|
$as_echo_n "(cached) " >&6 |
4262 |
|
else |
4263 |
|
ac_check_lib_save_LIBS=$LIBS |
4264 |
|
LIBS="-lmpi $LIBS" |
4265 |
< |
cat > conftest.$ac_ext <<_ACEOF |
4266 |
< |
program main |
4267 |
< |
call MPI_Init |
4268 |
< |
end |
4265 |
> |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4266 |
> |
/* end confdefs.h. */ |
4267 |
> |
|
4268 |
> |
/* Override any GCC internal prototype to avoid an error. |
4269 |
> |
Use char because int might match the return type of a GCC |
4270 |
> |
builtin and then its argument prototype would still apply. */ |
4271 |
> |
#ifdef __cplusplus |
4272 |
> |
extern "C" |
4273 |
> |
#endif |
4274 |
> |
char MPI_Init (); |
4275 |
> |
int |
4276 |
> |
main () |
4277 |
> |
{ |
4278 |
> |
return MPI_Init (); |
4279 |
> |
; |
4280 |
> |
return 0; |
4281 |
> |
} |
4282 |
|
_ACEOF |
4283 |
< |
if ac_fn_fc_try_link "$LINENO"; then : |
4283 |
> |
if ac_fn_cxx_try_link "$LINENO"; then : |
4284 |
|
ac_cv_lib_mpi_MPI_Init=yes |
4285 |
|
else |
4286 |
|
ac_cv_lib_mpi_MPI_Init=no |
4291 |
|
fi |
4292 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpi_MPI_Init" >&5 |
4293 |
|
$as_echo "$ac_cv_lib_mpi_MPI_Init" >&6; } |
4294 |
< |
if test "x$ac_cv_lib_mpi_MPI_Init" = x""yes; then : |
4294 |
> |
if test "x$ac_cv_lib_mpi_MPI_Init" = xyes; then : |
4295 |
|
MPILIBS="-lmpi" |
4296 |
|
fi |
4297 |
|
|
4299 |
|
if test x = x"$MPILIBS"; then |
4300 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpich" >&5 |
4301 |
|
$as_echo_n "checking for MPI_Init in -lmpich... " >&6; } |
4302 |
< |
if test "${ac_cv_lib_mpich_MPI_Init+set}" = set; then : |
4302 |
> |
if ${ac_cv_lib_mpich_MPI_Init+:} false; then : |
4303 |
|
$as_echo_n "(cached) " >&6 |
4304 |
|
else |
4305 |
|
ac_check_lib_save_LIBS=$LIBS |
4306 |
|
LIBS="-lmpich $LIBS" |
4307 |
< |
cat > conftest.$ac_ext <<_ACEOF |
4308 |
< |
program main |
4309 |
< |
call MPI_Init |
4310 |
< |
end |
4307 |
> |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4308 |
> |
/* end confdefs.h. */ |
4309 |
> |
|
4310 |
> |
/* Override any GCC internal prototype to avoid an error. |
4311 |
> |
Use char because int might match the return type of a GCC |
4312 |
> |
builtin and then its argument prototype would still apply. */ |
4313 |
> |
#ifdef __cplusplus |
4314 |
> |
extern "C" |
4315 |
> |
#endif |
4316 |
> |
char MPI_Init (); |
4317 |
> |
int |
4318 |
> |
main () |
4319 |
> |
{ |
4320 |
> |
return MPI_Init (); |
4321 |
> |
; |
4322 |
> |
return 0; |
4323 |
> |
} |
4324 |
|
_ACEOF |
4325 |
< |
if ac_fn_fc_try_link "$LINENO"; then : |
4325 |
> |
if ac_fn_cxx_try_link "$LINENO"; then : |
4326 |
|
ac_cv_lib_mpich_MPI_Init=yes |
4327 |
|
else |
4328 |
|
ac_cv_lib_mpich_MPI_Init=no |
4333 |
|
fi |
4334 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpich_MPI_Init" >&5 |
4335 |
|
$as_echo "$ac_cv_lib_mpich_MPI_Init" >&6; } |
4336 |
< |
if test "x$ac_cv_lib_mpich_MPI_Init" = x""yes; then : |
4336 |
> |
if test "x$ac_cv_lib_mpich_MPI_Init" = xyes; then : |
4337 |
|
MPILIBS="-lmpich" |
4338 |
|
fi |
4339 |
|
|
4340 |
|
fi |
4341 |
|
|
4342 |
|
if test x != x"$MPILIBS"; then |
4343 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpif.h" >&5 |
4344 |
< |
$as_echo_n "checking for mpif.h... " >&6; } |
4345 |
< |
cat > conftest.$ac_ext <<_ACEOF |
4346 |
< |
program main |
4347 |
< |
include 'mpif.h' |
4348 |
< |
end |
4343 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpi.h" >&5 |
4344 |
> |
$as_echo_n "checking for mpi.h... " >&6; } |
4345 |
> |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4346 |
> |
/* end confdefs.h. */ |
4347 |
> |
#include <mpi.h> |
4348 |
> |
int |
4349 |
> |
main () |
4350 |
> |
{ |
4351 |
> |
|
4352 |
> |
; |
4353 |
> |
return 0; |
4354 |
> |
} |
4355 |
|
_ACEOF |
4356 |
< |
if ac_fn_fc_try_compile "$LINENO"; then : |
4356 |
> |
if ac_fn_cxx_try_compile "$LINENO"; then : |
4357 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
4358 |
|
$as_echo "yes" >&6; } |
4359 |
|
else |
4364 |
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4365 |
|
fi |
4366 |
|
|
4367 |
< |
FC="$ax_mpi_save_FC" |
4367 |
> |
CXX="$ax_mpi_save_CXX" |
4368 |
|
|
4369 |
|
|
4370 |
|
|
4371 |
|
# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: |
4372 |
|
if test x = x"$MPILIBS"; then |
4373 |
|
USE_MPI="no" |
4374 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No suitable Fortran MPI implementation found. oopse_MPI will not be built." >&5 |
4375 |
< |
$as_echo "$as_me: WARNING: No suitable Fortran MPI implementation found. oopse_MPI will not be built." >&2;} |
4374 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No suitable C++ MPI implementation found. openmd_MPI will not be built." >&5 |
4375 |
> |
$as_echo "$as_me: WARNING: No suitable C++ MPI implementation found. openmd_MPI will not be built." >&2;} |
4376 |
|
: |
4377 |
|
else |
4378 |
|
USE_MPI="yes" |
4380 |
|
fi |
4381 |
|
|
4382 |
|
|
5263 |
– |
fi |
4383 |
|
if test $USE_MPI != no; then : |
4384 |
|
|
5266 |
– |
CXX=$MPICXX |
5267 |
– |
CC=$MPICC |
5268 |
– |
FC=$MPIFC |
5269 |
– |
|
5270 |
– |
fi |
5271 |
– |
|
5272 |
– |
|
5273 |
– |
# Checks for programs. |
5274 |
– |
ac_ext=cpp |
5275 |
– |
ac_cpp='$CXXCPP $CPPFLAGS' |
5276 |
– |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
5277 |
– |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
5278 |
– |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
5279 |
– |
if test -z "$CXX"; then |
5280 |
– |
if test -n "$CCC"; then |
5281 |
– |
CXX=$CCC |
5282 |
– |
else |
5283 |
– |
if test -n "$ac_tool_prefix"; then |
5284 |
– |
for ac_prog in $CXX icpc pathCC pgCC c++ xlc++ xlC g++ CC |
5285 |
– |
do |
5286 |
– |
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
5287 |
– |
set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
5288 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5289 |
– |
$as_echo_n "checking for $ac_word... " >&6; } |
5290 |
– |
if test "${ac_cv_prog_CXX+set}" = set; then : |
5291 |
– |
$as_echo_n "(cached) " >&6 |
5292 |
– |
else |
5293 |
– |
if test -n "$CXX"; then |
5294 |
– |
ac_cv_prog_CXX="$CXX" # Let the user override the test. |
5295 |
– |
else |
5296 |
– |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5297 |
– |
for as_dir in $PATH |
5298 |
– |
do |
5299 |
– |
IFS=$as_save_IFS |
5300 |
– |
test -z "$as_dir" && as_dir=. |
5301 |
– |
for ac_exec_ext in '' $ac_executable_extensions; do |
5302 |
– |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
5303 |
– |
ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
5304 |
– |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5305 |
– |
break 2 |
5306 |
– |
fi |
5307 |
– |
done |
5308 |
– |
done |
5309 |
– |
IFS=$as_save_IFS |
5310 |
– |
|
5311 |
– |
fi |
5312 |
– |
fi |
5313 |
– |
CXX=$ac_cv_prog_CXX |
5314 |
– |
if test -n "$CXX"; then |
5315 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
5316 |
– |
$as_echo "$CXX" >&6; } |
5317 |
– |
else |
5318 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5319 |
– |
$as_echo "no" >&6; } |
5320 |
– |
fi |
5321 |
– |
|
5322 |
– |
|
5323 |
– |
test -n "$CXX" && break |
5324 |
– |
done |
5325 |
– |
fi |
5326 |
– |
if test -z "$CXX"; then |
5327 |
– |
ac_ct_CXX=$CXX |
5328 |
– |
for ac_prog in $CXX icpc pathCC pgCC c++ xlc++ xlC g++ CC |
5329 |
– |
do |
5330 |
– |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
5331 |
– |
set dummy $ac_prog; ac_word=$2 |
5332 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5333 |
– |
$as_echo_n "checking for $ac_word... " >&6; } |
5334 |
– |
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then : |
5335 |
– |
$as_echo_n "(cached) " >&6 |
5336 |
– |
else |
5337 |
– |
if test -n "$ac_ct_CXX"; then |
5338 |
– |
ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
5339 |
– |
else |
5340 |
– |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5341 |
– |
for as_dir in $PATH |
5342 |
– |
do |
5343 |
– |
IFS=$as_save_IFS |
5344 |
– |
test -z "$as_dir" && as_dir=. |
5345 |
– |
for ac_exec_ext in '' $ac_executable_extensions; do |
5346 |
– |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
5347 |
– |
ac_cv_prog_ac_ct_CXX="$ac_prog" |
5348 |
– |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5349 |
– |
break 2 |
5350 |
– |
fi |
5351 |
– |
done |
5352 |
– |
done |
5353 |
– |
IFS=$as_save_IFS |
5354 |
– |
|
5355 |
– |
fi |
5356 |
– |
fi |
5357 |
– |
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
5358 |
– |
if test -n "$ac_ct_CXX"; then |
5359 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 |
5360 |
– |
$as_echo "$ac_ct_CXX" >&6; } |
5361 |
– |
else |
5362 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5363 |
– |
$as_echo "no" >&6; } |
5364 |
– |
fi |
5365 |
– |
|
5366 |
– |
|
5367 |
– |
test -n "$ac_ct_CXX" && break |
5368 |
– |
done |
5369 |
– |
|
5370 |
– |
if test "x$ac_ct_CXX" = x; then |
5371 |
– |
CXX="g++" |
5372 |
– |
else |
5373 |
– |
case $cross_compiling:$ac_tool_warned in |
5374 |
– |
yes:) |
5375 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
5376 |
– |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
5377 |
– |
ac_tool_warned=yes ;; |
5378 |
– |
esac |
5379 |
– |
CXX=$ac_ct_CXX |
5380 |
– |
fi |
5381 |
– |
fi |
5382 |
– |
|
5383 |
– |
fi |
5384 |
– |
fi |
5385 |
– |
# Provide some information about the compiler. |
5386 |
– |
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 |
5387 |
– |
set X $ac_compile |
5388 |
– |
ac_compiler=$2 |
5389 |
– |
for ac_option in --version -v -V -qversion; do |
5390 |
– |
{ { ac_try="$ac_compiler $ac_option >&5" |
5391 |
– |
case "(($ac_try" in |
5392 |
– |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5393 |
– |
*) ac_try_echo=$ac_try;; |
5394 |
– |
esac |
5395 |
– |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
5396 |
– |
$as_echo "$ac_try_echo"; } >&5 |
5397 |
– |
(eval "$ac_compiler $ac_option >&5") 2>conftest.err |
5398 |
– |
ac_status=$? |
5399 |
– |
if test -s conftest.err; then |
5400 |
– |
sed '10a\ |
5401 |
– |
... rest of stderr output deleted ... |
5402 |
– |
10q' conftest.err >conftest.er1 |
5403 |
– |
cat conftest.er1 >&5 |
5404 |
– |
rm -f conftest.er1 conftest.err |
5405 |
– |
fi |
5406 |
– |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
5407 |
– |
test $ac_status = 0; } |
5408 |
– |
done |
5409 |
– |
|
5410 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 |
5411 |
– |
$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } |
5412 |
– |
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then : |
5413 |
– |
$as_echo_n "(cached) " >&6 |
5414 |
– |
else |
5415 |
– |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5416 |
– |
/* end confdefs.h. */ |
5417 |
– |
|
5418 |
– |
int |
5419 |
– |
main () |
5420 |
– |
{ |
5421 |
– |
#ifndef __GNUC__ |
5422 |
– |
choke me |
5423 |
– |
#endif |
5424 |
– |
|
5425 |
– |
; |
5426 |
– |
return 0; |
5427 |
– |
} |
5428 |
– |
_ACEOF |
5429 |
– |
if ac_fn_cxx_try_compile "$LINENO"; then : |
5430 |
– |
ac_compiler_gnu=yes |
5431 |
– |
else |
5432 |
– |
ac_compiler_gnu=no |
5433 |
– |
fi |
5434 |
– |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5435 |
– |
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
5436 |
– |
|
5437 |
– |
fi |
5438 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 |
5439 |
– |
$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } |
5440 |
– |
if test $ac_compiler_gnu = yes; then |
5441 |
– |
GXX=yes |
5442 |
– |
else |
5443 |
– |
GXX= |
5444 |
– |
fi |
5445 |
– |
ac_test_CXXFLAGS=${CXXFLAGS+set} |
5446 |
– |
ac_save_CXXFLAGS=$CXXFLAGS |
5447 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 |
5448 |
– |
$as_echo_n "checking whether $CXX accepts -g... " >&6; } |
5449 |
– |
if test "${ac_cv_prog_cxx_g+set}" = set; then : |
5450 |
– |
$as_echo_n "(cached) " >&6 |
5451 |
– |
else |
5452 |
– |
ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
5453 |
– |
ac_cxx_werror_flag=yes |
5454 |
– |
ac_cv_prog_cxx_g=no |
5455 |
– |
CXXFLAGS="-g" |
5456 |
– |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5457 |
– |
/* end confdefs.h. */ |
5458 |
– |
|
5459 |
– |
int |
5460 |
– |
main () |
5461 |
– |
{ |
5462 |
– |
|
5463 |
– |
; |
5464 |
– |
return 0; |
5465 |
– |
} |
5466 |
– |
_ACEOF |
5467 |
– |
if ac_fn_cxx_try_compile "$LINENO"; then : |
5468 |
– |
ac_cv_prog_cxx_g=yes |
5469 |
– |
else |
5470 |
– |
CXXFLAGS="" |
5471 |
– |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5472 |
– |
/* end confdefs.h. */ |
5473 |
– |
|
5474 |
– |
int |
5475 |
– |
main () |
5476 |
– |
{ |
5477 |
– |
|
5478 |
– |
; |
5479 |
– |
return 0; |
5480 |
– |
} |
5481 |
– |
_ACEOF |
5482 |
– |
if ac_fn_cxx_try_compile "$LINENO"; then : |
5483 |
– |
|
5484 |
– |
else |
5485 |
– |
ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
5486 |
– |
CXXFLAGS="-g" |
5487 |
– |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5488 |
– |
/* end confdefs.h. */ |
5489 |
– |
|
5490 |
– |
int |
5491 |
– |
main () |
5492 |
– |
{ |
5493 |
– |
|
5494 |
– |
; |
5495 |
– |
return 0; |
5496 |
– |
} |
5497 |
– |
_ACEOF |
5498 |
– |
if ac_fn_cxx_try_compile "$LINENO"; then : |
5499 |
– |
ac_cv_prog_cxx_g=yes |
5500 |
– |
fi |
5501 |
– |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5502 |
– |
fi |
5503 |
– |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5504 |
– |
fi |
5505 |
– |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5506 |
– |
ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
5507 |
– |
fi |
5508 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 |
5509 |
– |
$as_echo "$ac_cv_prog_cxx_g" >&6; } |
5510 |
– |
if test "$ac_test_CXXFLAGS" = set; then |
5511 |
– |
CXXFLAGS=$ac_save_CXXFLAGS |
5512 |
– |
elif test $ac_cv_prog_cxx_g = yes; then |
5513 |
– |
if test "$GXX" = yes; then |
5514 |
– |
CXXFLAGS="-g -O2" |
5515 |
– |
else |
5516 |
– |
CXXFLAGS="-g" |
5517 |
– |
fi |
5518 |
– |
else |
5519 |
– |
if test "$GXX" = yes; then |
5520 |
– |
CXXFLAGS="-O2" |
5521 |
– |
else |
5522 |
– |
CXXFLAGS= |
5523 |
– |
fi |
5524 |
– |
fi |
5525 |
– |
ac_ext=${ac_fc_srcext-f} |
5526 |
– |
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' |
5527 |
– |
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' |
5528 |
– |
ac_compiler_gnu=$ac_cv_fc_compiler_gnu |
5529 |
– |
|
4385 |
|
ac_ext=c |
4386 |
|
ac_cpp='$CPP $CPPFLAGS' |
4387 |
|
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
4388 |
|
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
4389 |
|
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
4390 |
< |
if test -n "$ac_tool_prefix"; then |
4391 |
< |
for ac_prog in $CC icc pathcc pgcc cc xlc gcc |
4392 |
< |
do |
5538 |
< |
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
5539 |
< |
set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
5540 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5541 |
< |
$as_echo_n "checking for $ac_word... " >&6; } |
5542 |
< |
if test "${ac_cv_prog_CC+set}" = set; then : |
5543 |
< |
$as_echo_n "(cached) " >&6 |
5544 |
< |
else |
5545 |
< |
if test -n "$CC"; then |
5546 |
< |
ac_cv_prog_CC="$CC" # Let the user override the test. |
5547 |
< |
else |
5548 |
< |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5549 |
< |
for as_dir in $PATH |
5550 |
< |
do |
5551 |
< |
IFS=$as_save_IFS |
5552 |
< |
test -z "$as_dir" && as_dir=. |
5553 |
< |
for ac_exec_ext in '' $ac_executable_extensions; do |
5554 |
< |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
5555 |
< |
ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
5556 |
< |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5557 |
< |
break 2 |
5558 |
< |
fi |
5559 |
< |
done |
5560 |
< |
done |
5561 |
< |
IFS=$as_save_IFS |
4390 |
> |
|
4391 |
> |
|
4392 |
> |
|
4393 |
|
|
5563 |
– |
fi |
5564 |
– |
fi |
5565 |
– |
CC=$ac_cv_prog_CC |
5566 |
– |
if test -n "$CC"; then |
5567 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
5568 |
– |
$as_echo "$CC" >&6; } |
5569 |
– |
else |
5570 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5571 |
– |
$as_echo "no" >&6; } |
5572 |
– |
fi |
4394 |
|
|
4395 |
|
|
4396 |
< |
test -n "$CC" && break |
5576 |
< |
done |
5577 |
< |
fi |
5578 |
< |
if test -z "$CC"; then |
5579 |
< |
ac_ct_CC=$CC |
5580 |
< |
for ac_prog in $CC icc pathcc pgcc cc xlc gcc |
4396 |
> |
for ac_prog in openmpicc mpicc hcc mpxlc_r mpxlc mpcc cmpicc |
4397 |
|
do |
4398 |
|
# Extract the first word of "$ac_prog", so it can be a program name with args. |
4399 |
|
set dummy $ac_prog; ac_word=$2 |
4400 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4401 |
|
$as_echo_n "checking for $ac_word... " >&6; } |
4402 |
< |
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : |
4402 |
> |
if ${ac_cv_prog_MPICC+:} false; then : |
4403 |
|
$as_echo_n "(cached) " >&6 |
4404 |
|
else |
4405 |
< |
if test -n "$ac_ct_CC"; then |
4406 |
< |
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
4405 |
> |
if test -n "$MPICC"; then |
4406 |
> |
ac_cv_prog_MPICC="$MPICC" # Let the user override the test. |
4407 |
|
else |
4408 |
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4409 |
|
for as_dir in $PATH |
4412 |
|
test -z "$as_dir" && as_dir=. |
4413 |
|
for ac_exec_ext in '' $ac_executable_extensions; do |
4414 |
|
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
4415 |
< |
ac_cv_prog_ac_ct_CC="$ac_prog" |
4415 |
> |
ac_cv_prog_MPICC="$ac_prog" |
4416 |
|
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4417 |
|
break 2 |
4418 |
|
fi |
4422 |
|
|
4423 |
|
fi |
4424 |
|
fi |
4425 |
< |
ac_ct_CC=$ac_cv_prog_ac_ct_CC |
4426 |
< |
if test -n "$ac_ct_CC"; then |
4427 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
4428 |
< |
$as_echo "$ac_ct_CC" >&6; } |
4425 |
> |
MPICC=$ac_cv_prog_MPICC |
4426 |
> |
if test -n "$MPICC"; then |
4427 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPICC" >&5 |
4428 |
> |
$as_echo "$MPICC" >&6; } |
4429 |
|
else |
4430 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4431 |
|
$as_echo "no" >&6; } |
4432 |
|
fi |
4433 |
|
|
4434 |
|
|
4435 |
< |
test -n "$ac_ct_CC" && break |
4435 |
> |
test -n "$MPICC" && break |
4436 |
|
done |
4437 |
+ |
test -n "$MPICC" || MPICC="$CC" |
4438 |
|
|
4439 |
< |
if test "x$ac_ct_CC" = x; then |
4440 |
< |
CC="" |
5624 |
< |
else |
5625 |
< |
case $cross_compiling:$ac_tool_warned in |
5626 |
< |
yes:) |
5627 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
5628 |
< |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
5629 |
< |
ac_tool_warned=yes ;; |
5630 |
< |
esac |
5631 |
< |
CC=$ac_ct_CC |
5632 |
< |
fi |
5633 |
< |
fi |
4439 |
> |
ax_mpi_save_CC="$CC" |
4440 |
> |
CC="$MPICC" |
4441 |
|
|
4442 |
|
|
5636 |
– |
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
5637 |
– |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
5638 |
– |
as_fn_error "no acceptable C compiler found in \$PATH |
5639 |
– |
See \`config.log' for more details." "$LINENO" 5; } |
4443 |
|
|
4444 |
< |
# Provide some information about the compiler. |
4445 |
< |
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
4446 |
< |
set X $ac_compile |
4447 |
< |
ac_compiler=$2 |
4448 |
< |
for ac_option in --version -v -V -qversion; do |
5646 |
< |
{ { ac_try="$ac_compiler $ac_option >&5" |
5647 |
< |
case "(($ac_try" in |
5648 |
< |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5649 |
< |
*) ac_try_echo=$ac_try;; |
5650 |
< |
esac |
5651 |
< |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
5652 |
< |
$as_echo "$ac_try_echo"; } >&5 |
5653 |
< |
(eval "$ac_compiler $ac_option >&5") 2>conftest.err |
5654 |
< |
ac_status=$? |
5655 |
< |
if test -s conftest.err; then |
5656 |
< |
sed '10a\ |
5657 |
< |
... rest of stderr output deleted ... |
5658 |
< |
10q' conftest.err >conftest.er1 |
5659 |
< |
cat conftest.er1 >&5 |
5660 |
< |
rm -f conftest.er1 conftest.err |
5661 |
< |
fi |
5662 |
< |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
5663 |
< |
test $ac_status = 0; } |
5664 |
< |
done |
4444 |
> |
if test x = x"$MPILIBS"; then |
4445 |
> |
ac_fn_c_check_func "$LINENO" "MPI_Init" "ac_cv_func_MPI_Init" |
4446 |
> |
if test "x$ac_cv_func_MPI_Init" = xyes; then : |
4447 |
> |
MPILIBS=" " |
4448 |
> |
fi |
4449 |
|
|
4450 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
4451 |
< |
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
4452 |
< |
if test "${ac_cv_c_compiler_gnu+set}" = set; then : |
4450 |
> |
fi |
4451 |
> |
|
4452 |
> |
if test x = x"$MPILIBS"; then |
4453 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpi" >&5 |
4454 |
> |
$as_echo_n "checking for MPI_Init in -lmpi... " >&6; } |
4455 |
> |
if ${ac_cv_lib_mpi_MPI_Init+:} false; then : |
4456 |
|
$as_echo_n "(cached) " >&6 |
4457 |
|
else |
4458 |
< |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4458 |
> |
ac_check_lib_save_LIBS=$LIBS |
4459 |
> |
LIBS="-lmpi $LIBS" |
4460 |
> |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4461 |
|
/* end confdefs.h. */ |
4462 |
|
|
4463 |
+ |
/* Override any GCC internal prototype to avoid an error. |
4464 |
+ |
Use char because int might match the return type of a GCC |
4465 |
+ |
builtin and then its argument prototype would still apply. */ |
4466 |
+ |
#ifdef __cplusplus |
4467 |
+ |
extern "C" |
4468 |
+ |
#endif |
4469 |
+ |
char MPI_Init (); |
4470 |
|
int |
4471 |
|
main () |
4472 |
|
{ |
4473 |
< |
#ifndef __GNUC__ |
5678 |
< |
choke me |
5679 |
< |
#endif |
5680 |
< |
|
4473 |
> |
return MPI_Init (); |
4474 |
|
; |
4475 |
|
return 0; |
4476 |
|
} |
4477 |
|
_ACEOF |
4478 |
< |
if ac_fn_c_try_compile "$LINENO"; then : |
4479 |
< |
ac_compiler_gnu=yes |
4478 |
> |
if ac_fn_c_try_link "$LINENO"; then : |
4479 |
> |
ac_cv_lib_mpi_MPI_Init=yes |
4480 |
|
else |
4481 |
< |
ac_compiler_gnu=no |
4481 |
> |
ac_cv_lib_mpi_MPI_Init=no |
4482 |
|
fi |
4483 |
< |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4484 |
< |
ac_cv_c_compiler_gnu=$ac_compiler_gnu |
4485 |
< |
|
4483 |
> |
rm -f core conftest.err conftest.$ac_objext \ |
4484 |
> |
conftest$ac_exeext conftest.$ac_ext |
4485 |
> |
LIBS=$ac_check_lib_save_LIBS |
4486 |
|
fi |
4487 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
4488 |
< |
$as_echo "$ac_cv_c_compiler_gnu" >&6; } |
4489 |
< |
if test $ac_compiler_gnu = yes; then |
4490 |
< |
GCC=yes |
5698 |
< |
else |
5699 |
< |
GCC= |
4487 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpi_MPI_Init" >&5 |
4488 |
> |
$as_echo "$ac_cv_lib_mpi_MPI_Init" >&6; } |
4489 |
> |
if test "x$ac_cv_lib_mpi_MPI_Init" = xyes; then : |
4490 |
> |
MPILIBS="-lmpi" |
4491 |
|
fi |
4492 |
< |
ac_test_CFLAGS=${CFLAGS+set} |
4493 |
< |
ac_save_CFLAGS=$CFLAGS |
4494 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
4495 |
< |
$as_echo_n "checking whether $CC accepts -g... " >&6; } |
4496 |
< |
if test "${ac_cv_prog_cc_g+set}" = set; then : |
4492 |
> |
|
4493 |
> |
fi |
4494 |
> |
if test x = x"$MPILIBS"; then |
4495 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpich" >&5 |
4496 |
> |
$as_echo_n "checking for MPI_Init in -lmpich... " >&6; } |
4497 |
> |
if ${ac_cv_lib_mpich_MPI_Init+:} false; then : |
4498 |
|
$as_echo_n "(cached) " >&6 |
4499 |
|
else |
4500 |
< |
ac_save_c_werror_flag=$ac_c_werror_flag |
4501 |
< |
ac_c_werror_flag=yes |
4502 |
< |
ac_cv_prog_cc_g=no |
5711 |
< |
CFLAGS="-g" |
5712 |
< |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4500 |
> |
ac_check_lib_save_LIBS=$LIBS |
4501 |
> |
LIBS="-lmpich $LIBS" |
4502 |
> |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4503 |
|
/* end confdefs.h. */ |
4504 |
|
|
4505 |
+ |
/* Override any GCC internal prototype to avoid an error. |
4506 |
+ |
Use char because int might match the return type of a GCC |
4507 |
+ |
builtin and then its argument prototype would still apply. */ |
4508 |
+ |
#ifdef __cplusplus |
4509 |
+ |
extern "C" |
4510 |
+ |
#endif |
4511 |
+ |
char MPI_Init (); |
4512 |
|
int |
4513 |
|
main () |
4514 |
|
{ |
4515 |
< |
|
4515 |
> |
return MPI_Init (); |
4516 |
|
; |
4517 |
|
return 0; |
4518 |
|
} |
4519 |
|
_ACEOF |
4520 |
< |
if ac_fn_c_try_compile "$LINENO"; then : |
4521 |
< |
ac_cv_prog_cc_g=yes |
4520 |
> |
if ac_fn_c_try_link "$LINENO"; then : |
4521 |
> |
ac_cv_lib_mpich_MPI_Init=yes |
4522 |
|
else |
4523 |
< |
CFLAGS="" |
4524 |
< |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4525 |
< |
/* end confdefs.h. */ |
4523 |
> |
ac_cv_lib_mpich_MPI_Init=no |
4524 |
> |
fi |
4525 |
> |
rm -f core conftest.err conftest.$ac_objext \ |
4526 |
> |
conftest$ac_exeext conftest.$ac_ext |
4527 |
> |
LIBS=$ac_check_lib_save_LIBS |
4528 |
> |
fi |
4529 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpich_MPI_Init" >&5 |
4530 |
> |
$as_echo "$ac_cv_lib_mpich_MPI_Init" >&6; } |
4531 |
> |
if test "x$ac_cv_lib_mpich_MPI_Init" = xyes; then : |
4532 |
> |
MPILIBS="-lmpich" |
4533 |
> |
fi |
4534 |
|
|
4535 |
< |
int |
5731 |
< |
main () |
5732 |
< |
{ |
4535 |
> |
fi |
4536 |
|
|
4537 |
< |
; |
4538 |
< |
return 0; |
4539 |
< |
} |
4540 |
< |
_ACEOF |
5738 |
< |
if ac_fn_c_try_compile "$LINENO"; then : |
5739 |
< |
|
5740 |
< |
else |
5741 |
< |
ac_c_werror_flag=$ac_save_c_werror_flag |
5742 |
< |
CFLAGS="-g" |
5743 |
< |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4537 |
> |
if test x != x"$MPILIBS"; then |
4538 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpi.h" >&5 |
4539 |
> |
$as_echo_n "checking for mpi.h... " >&6; } |
4540 |
> |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4541 |
|
/* end confdefs.h. */ |
4542 |
< |
|
4542 |
> |
#include <mpi.h> |
4543 |
|
int |
4544 |
|
main () |
4545 |
|
{ |
4549 |
|
} |
4550 |
|
_ACEOF |
4551 |
|
if ac_fn_c_try_compile "$LINENO"; then : |
4552 |
< |
ac_cv_prog_cc_g=yes |
4552 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
4553 |
> |
$as_echo "yes" >&6; } |
4554 |
> |
else |
4555 |
> |
MPILIBS="" |
4556 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4557 |
> |
$as_echo "no" >&6; } |
4558 |
|
fi |
4559 |
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4560 |
|
fi |
4561 |
< |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4562 |
< |
fi |
4563 |
< |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4564 |
< |
ac_c_werror_flag=$ac_save_c_werror_flag |
4565 |
< |
fi |
4566 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
4567 |
< |
$as_echo "$ac_cv_prog_cc_g" >&6; } |
4568 |
< |
if test "$ac_test_CFLAGS" = set; then |
4569 |
< |
CFLAGS=$ac_save_CFLAGS |
4570 |
< |
elif test $ac_cv_prog_cc_g = yes; then |
4571 |
< |
if test "$GCC" = yes; then |
5770 |
< |
CFLAGS="-g -O2" |
5771 |
< |
else |
5772 |
< |
CFLAGS="-g" |
5773 |
< |
fi |
4561 |
> |
|
4562 |
> |
CC="$ax_mpi_save_CC" |
4563 |
> |
|
4564 |
> |
|
4565 |
> |
|
4566 |
> |
# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: |
4567 |
> |
if test x = x"$MPILIBS"; then |
4568 |
> |
USE_MPI="no" |
4569 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No suitable C MPI implementation found. openmd_MPI will not be built." >&5 |
4570 |
> |
$as_echo "$as_me: WARNING: No suitable C MPI implementation found. openmd_MPI will not be built." >&2;} |
4571 |
> |
: |
4572 |
|
else |
4573 |
< |
if test "$GCC" = yes; then |
4574 |
< |
CFLAGS="-O2" |
5777 |
< |
else |
5778 |
< |
CFLAGS= |
5779 |
< |
fi |
4573 |
> |
USE_MPI="yes" |
4574 |
> |
: |
4575 |
|
fi |
5781 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
5782 |
– |
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
5783 |
– |
if test "${ac_cv_prog_cc_c89+set}" = set; then : |
5784 |
– |
$as_echo_n "(cached) " >&6 |
5785 |
– |
else |
5786 |
– |
ac_cv_prog_cc_c89=no |
5787 |
– |
ac_save_CC=$CC |
5788 |
– |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5789 |
– |
/* end confdefs.h. */ |
5790 |
– |
#include <stdarg.h> |
5791 |
– |
#include <stdio.h> |
5792 |
– |
#include <sys/types.h> |
5793 |
– |
#include <sys/stat.h> |
5794 |
– |
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
5795 |
– |
struct buf { int x; }; |
5796 |
– |
FILE * (*rcsopen) (struct buf *, struct stat *, int); |
5797 |
– |
static char *e (p, i) |
5798 |
– |
char **p; |
5799 |
– |
int i; |
5800 |
– |
{ |
5801 |
– |
return p[i]; |
5802 |
– |
} |
5803 |
– |
static char *f (char * (*g) (char **, int), char **p, ...) |
5804 |
– |
{ |
5805 |
– |
char *s; |
5806 |
– |
va_list v; |
5807 |
– |
va_start (v,p); |
5808 |
– |
s = g (p, va_arg (v,int)); |
5809 |
– |
va_end (v); |
5810 |
– |
return s; |
5811 |
– |
} |
4576 |
|
|
5813 |
– |
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
5814 |
– |
function prototypes and stuff, but not '\xHH' hex character constants. |
5815 |
– |
These don't provoke an error unfortunately, instead are silently treated |
5816 |
– |
as 'x'. The following induces an error, until -std is added to get |
5817 |
– |
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
5818 |
– |
array size at least. It's necessary to write '\x00'==0 to get something |
5819 |
– |
that's true only with -std. */ |
5820 |
– |
int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
4577 |
|
|
5822 |
– |
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
5823 |
– |
inside strings and character constants. */ |
5824 |
– |
#define FOO(x) 'x' |
5825 |
– |
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
5826 |
– |
|
5827 |
– |
int test (int i, double x); |
5828 |
– |
struct s1 {int (*f) (int a);}; |
5829 |
– |
struct s2 {int (*f) (double a);}; |
5830 |
– |
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
5831 |
– |
int argc; |
5832 |
– |
char **argv; |
5833 |
– |
int |
5834 |
– |
main () |
5835 |
– |
{ |
5836 |
– |
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
5837 |
– |
; |
5838 |
– |
return 0; |
5839 |
– |
} |
5840 |
– |
_ACEOF |
5841 |
– |
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
5842 |
– |
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
5843 |
– |
do |
5844 |
– |
CC="$ac_save_CC $ac_arg" |
5845 |
– |
if ac_fn_c_try_compile "$LINENO"; then : |
5846 |
– |
ac_cv_prog_cc_c89=$ac_arg |
4578 |
|
fi |
5848 |
– |
rm -f core conftest.err conftest.$ac_objext |
5849 |
– |
test "x$ac_cv_prog_cc_c89" != "xno" && break |
5850 |
– |
done |
5851 |
– |
rm -f conftest.$ac_ext |
5852 |
– |
CC=$ac_save_CC |
4579 |
|
|
4580 |
< |
fi |
5855 |
< |
# AC_CACHE_VAL |
5856 |
< |
case "x$ac_cv_prog_cc_c89" in |
5857 |
< |
x) |
5858 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
5859 |
< |
$as_echo "none needed" >&6; } ;; |
5860 |
< |
xno) |
5861 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
5862 |
< |
$as_echo "unsupported" >&6; } ;; |
5863 |
< |
*) |
5864 |
< |
CC="$CC $ac_cv_prog_cc_c89" |
5865 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
5866 |
< |
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
5867 |
< |
esac |
5868 |
< |
if test "x$ac_cv_prog_cc_c89" != xno; then : |
4580 |
> |
if test $USE_MPI != no; then : |
4581 |
|
|
5870 |
– |
fi |
5871 |
– |
|
4582 |
|
ac_ext=${ac_fc_srcext-f} |
4583 |
|
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' |
4584 |
|
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' |
4585 |
|
ac_compiler_gnu=$ac_cv_fc_compiler_gnu |
4586 |
|
|
5877 |
– |
ac_ext=${ac_fc_srcext-f} |
5878 |
– |
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' |
5879 |
– |
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' |
5880 |
– |
ac_compiler_gnu=$ac_cv_fc_compiler_gnu |
5881 |
– |
if test -n "$ac_tool_prefix"; then |
5882 |
– |
for ac_prog in $FC ifort ifc pathf95 pgf95 xlf95 lf95 epcf90 pathf90 xlf90 f95 f90 gfortran g95 fort |
5883 |
– |
do |
5884 |
– |
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
5885 |
– |
set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
5886 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5887 |
– |
$as_echo_n "checking for $ac_word... " >&6; } |
5888 |
– |
if test "${ac_cv_prog_FC+set}" = set; then : |
5889 |
– |
$as_echo_n "(cached) " >&6 |
5890 |
– |
else |
5891 |
– |
if test -n "$FC"; then |
5892 |
– |
ac_cv_prog_FC="$FC" # Let the user override the test. |
5893 |
– |
else |
5894 |
– |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5895 |
– |
for as_dir in $PATH |
5896 |
– |
do |
5897 |
– |
IFS=$as_save_IFS |
5898 |
– |
test -z "$as_dir" && as_dir=. |
5899 |
– |
for ac_exec_ext in '' $ac_executable_extensions; do |
5900 |
– |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
5901 |
– |
ac_cv_prog_FC="$ac_tool_prefix$ac_prog" |
5902 |
– |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5903 |
– |
break 2 |
5904 |
– |
fi |
5905 |
– |
done |
5906 |
– |
done |
5907 |
– |
IFS=$as_save_IFS |
4587 |
|
|
5909 |
– |
fi |
5910 |
– |
fi |
5911 |
– |
FC=$ac_cv_prog_FC |
5912 |
– |
if test -n "$FC"; then |
5913 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5 |
5914 |
– |
$as_echo "$FC" >&6; } |
5915 |
– |
else |
5916 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5917 |
– |
$as_echo "no" >&6; } |
5918 |
– |
fi |
4588 |
|
|
4589 |
|
|
4590 |
< |
test -n "$FC" && break |
4591 |
< |
done |
4592 |
< |
fi |
5924 |
< |
if test -z "$FC"; then |
5925 |
< |
ac_ct_FC=$FC |
5926 |
< |
for ac_prog in $FC ifort ifc pathf95 pgf95 xlf95 lf95 epcf90 pathf90 xlf90 f95 f90 gfortran g95 fort |
4590 |
> |
|
4591 |
> |
|
4592 |
> |
for ac_prog in openmpif90 mpif90 mpxlf95_r mpxlf90_r mpxlf95 mpxlf90 mpf90 cmpif90c |
4593 |
|
do |
4594 |
|
# Extract the first word of "$ac_prog", so it can be a program name with args. |
4595 |
|
set dummy $ac_prog; ac_word=$2 |
4596 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4597 |
|
$as_echo_n "checking for $ac_word... " >&6; } |
4598 |
< |
if test "${ac_cv_prog_ac_ct_FC+set}" = set; then : |
4598 |
> |
if ${ac_cv_prog_MPIFC+:} false; then : |
4599 |
|
$as_echo_n "(cached) " >&6 |
4600 |
|
else |
4601 |
< |
if test -n "$ac_ct_FC"; then |
4602 |
< |
ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test. |
4601 |
> |
if test -n "$MPIFC"; then |
4602 |
> |
ac_cv_prog_MPIFC="$MPIFC" # Let the user override the test. |
4603 |
|
else |
4604 |
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4605 |
|
for as_dir in $PATH |
4608 |
|
test -z "$as_dir" && as_dir=. |
4609 |
|
for ac_exec_ext in '' $ac_executable_extensions; do |
4610 |
|
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
4611 |
< |
ac_cv_prog_ac_ct_FC="$ac_prog" |
4611 |
> |
ac_cv_prog_MPIFC="$ac_prog" |
4612 |
|
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4613 |
|
break 2 |
4614 |
|
fi |
4618 |
|
|
4619 |
|
fi |
4620 |
|
fi |
4621 |
< |
ac_ct_FC=$ac_cv_prog_ac_ct_FC |
4622 |
< |
if test -n "$ac_ct_FC"; then |
4623 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5 |
4624 |
< |
$as_echo "$ac_ct_FC" >&6; } |
4621 |
> |
MPIFC=$ac_cv_prog_MPIFC |
4622 |
> |
if test -n "$MPIFC"; then |
4623 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPIFC" >&5 |
4624 |
> |
$as_echo "$MPIFC" >&6; } |
4625 |
|
else |
4626 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4627 |
|
$as_echo "no" >&6; } |
4628 |
|
fi |
4629 |
|
|
4630 |
|
|
4631 |
< |
test -n "$ac_ct_FC" && break |
4631 |
> |
test -n "$MPIFC" && break |
4632 |
|
done |
4633 |
+ |
test -n "$MPIFC" || MPIFC="$FC" |
4634 |
|
|
4635 |
< |
if test "x$ac_ct_FC" = x; then |
4636 |
< |
FC="" |
5970 |
< |
else |
5971 |
< |
case $cross_compiling:$ac_tool_warned in |
5972 |
< |
yes:) |
5973 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
5974 |
< |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
5975 |
< |
ac_tool_warned=yes ;; |
5976 |
< |
esac |
5977 |
< |
FC=$ac_ct_FC |
5978 |
< |
fi |
5979 |
< |
fi |
4635 |
> |
ax_mpi_save_FC="$FC" |
4636 |
> |
FC="$MPIFC" |
4637 |
|
|
4638 |
|
|
5982 |
– |
# Provide some information about the compiler. |
5983 |
– |
$as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5 |
5984 |
– |
set X $ac_compile |
5985 |
– |
ac_compiler=$2 |
5986 |
– |
for ac_option in --version -v -V -qversion; do |
5987 |
– |
{ { ac_try="$ac_compiler $ac_option >&5" |
5988 |
– |
case "(($ac_try" in |
5989 |
– |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5990 |
– |
*) ac_try_echo=$ac_try;; |
5991 |
– |
esac |
5992 |
– |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
5993 |
– |
$as_echo "$ac_try_echo"; } >&5 |
5994 |
– |
(eval "$ac_compiler $ac_option >&5") 2>conftest.err |
5995 |
– |
ac_status=$? |
5996 |
– |
if test -s conftest.err; then |
5997 |
– |
sed '10a\ |
5998 |
– |
... rest of stderr output deleted ... |
5999 |
– |
10q' conftest.err >conftest.er1 |
6000 |
– |
cat conftest.er1 >&5 |
6001 |
– |
rm -f conftest.er1 conftest.err |
6002 |
– |
fi |
6003 |
– |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6004 |
– |
test $ac_status = 0; } |
6005 |
– |
done |
6006 |
– |
rm -f a.out |
4639 |
|
|
4640 |
< |
# If we don't use `.F' as extension, the preprocessor is not run on the |
4641 |
< |
# input file. (Note that this only needs to work for GNU compilers.) |
4642 |
< |
ac_save_ext=$ac_ext |
4643 |
< |
ac_ext=F |
4644 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5 |
4645 |
< |
$as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; } |
4646 |
< |
if test "${ac_cv_fc_compiler_gnu+set}" = set; then : |
4640 |
> |
if test x = x"$MPILIBS"; then |
4641 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init" >&5 |
4642 |
> |
$as_echo_n "checking for MPI_Init... " >&6; } |
4643 |
> |
cat > conftest.$ac_ext <<_ACEOF |
4644 |
> |
program main |
4645 |
> |
call MPI_Init |
4646 |
> |
end |
4647 |
> |
_ACEOF |
4648 |
> |
if ac_fn_fc_try_link "$LINENO"; then : |
4649 |
> |
MPILIBS=" " |
4650 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
4651 |
> |
$as_echo "yes" >&6; } |
4652 |
> |
else |
4653 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4654 |
> |
$as_echo "no" >&6; } |
4655 |
> |
fi |
4656 |
> |
rm -f core conftest.err conftest.$ac_objext \ |
4657 |
> |
conftest$ac_exeext conftest.$ac_ext |
4658 |
> |
fi |
4659 |
> |
|
4660 |
> |
if test x = x"$MPILIBS"; then |
4661 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lfmpi" >&5 |
4662 |
> |
$as_echo_n "checking for MPI_Init in -lfmpi... " >&6; } |
4663 |
> |
if ${ac_cv_lib_fmpi_MPI_Init+:} false; then : |
4664 |
|
$as_echo_n "(cached) " >&6 |
4665 |
|
else |
4666 |
< |
cat > conftest.$ac_ext <<_ACEOF |
4666 |
> |
ac_check_lib_save_LIBS=$LIBS |
4667 |
> |
LIBS="-lfmpi $LIBS" |
4668 |
> |
cat > conftest.$ac_ext <<_ACEOF |
4669 |
|
program main |
4670 |
< |
#ifndef __GNUC__ |
6020 |
< |
choke me |
6021 |
< |
#endif |
6022 |
< |
|
4670 |
> |
call MPI_Init |
4671 |
|
end |
4672 |
|
_ACEOF |
4673 |
< |
if ac_fn_fc_try_compile "$LINENO"; then : |
4674 |
< |
ac_compiler_gnu=yes |
4673 |
> |
if ac_fn_fc_try_link "$LINENO"; then : |
4674 |
> |
ac_cv_lib_fmpi_MPI_Init=yes |
4675 |
|
else |
4676 |
< |
ac_compiler_gnu=no |
4676 |
> |
ac_cv_lib_fmpi_MPI_Init=no |
4677 |
|
fi |
4678 |
< |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4679 |
< |
ac_cv_fc_compiler_gnu=$ac_compiler_gnu |
4678 |
> |
rm -f core conftest.err conftest.$ac_objext \ |
4679 |
> |
conftest$ac_exeext conftest.$ac_ext |
4680 |
> |
LIBS=$ac_check_lib_save_LIBS |
4681 |
> |
fi |
4682 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fmpi_MPI_Init" >&5 |
4683 |
> |
$as_echo "$ac_cv_lib_fmpi_MPI_Init" >&6; } |
4684 |
> |
if test "x$ac_cv_lib_fmpi_MPI_Init" = xyes; then : |
4685 |
> |
MPILIBS="-lfmpi" |
4686 |
> |
fi |
4687 |
|
|
4688 |
+ |
fi |
4689 |
+ |
if test x = x"$MPILIBS"; then |
4690 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpichf90" >&5 |
4691 |
+ |
$as_echo_n "checking for MPI_Init in -lmpichf90... " >&6; } |
4692 |
+ |
if ${ac_cv_lib_mpichf90_MPI_Init+:} false; then : |
4693 |
+ |
$as_echo_n "(cached) " >&6 |
4694 |
+ |
else |
4695 |
+ |
ac_check_lib_save_LIBS=$LIBS |
4696 |
+ |
LIBS="-lmpichf90 $LIBS" |
4697 |
+ |
cat > conftest.$ac_ext <<_ACEOF |
4698 |
+ |
program main |
4699 |
+ |
call MPI_Init |
4700 |
+ |
end |
4701 |
+ |
_ACEOF |
4702 |
+ |
if ac_fn_fc_try_link "$LINENO"; then : |
4703 |
+ |
ac_cv_lib_mpichf90_MPI_Init=yes |
4704 |
+ |
else |
4705 |
+ |
ac_cv_lib_mpichf90_MPI_Init=no |
4706 |
|
fi |
4707 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5 |
4708 |
< |
$as_echo "$ac_cv_fc_compiler_gnu" >&6; } |
4709 |
< |
ac_ext=$ac_save_ext |
4710 |
< |
ac_test_FCFLAGS=${FCFLAGS+set} |
4711 |
< |
ac_save_FCFLAGS=$FCFLAGS |
4712 |
< |
FCFLAGS= |
4713 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5 |
4714 |
< |
$as_echo_n "checking whether $FC accepts -g... " >&6; } |
4715 |
< |
if test "${ac_cv_prog_fc_g+set}" = set; then : |
4707 |
> |
rm -f core conftest.err conftest.$ac_objext \ |
4708 |
> |
conftest$ac_exeext conftest.$ac_ext |
4709 |
> |
LIBS=$ac_check_lib_save_LIBS |
4710 |
> |
fi |
4711 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpichf90_MPI_Init" >&5 |
4712 |
> |
$as_echo "$ac_cv_lib_mpichf90_MPI_Init" >&6; } |
4713 |
> |
if test "x$ac_cv_lib_mpichf90_MPI_Init" = xyes; then : |
4714 |
> |
MPILIBS="-lmpichf90" |
4715 |
> |
fi |
4716 |
> |
|
4717 |
> |
fi |
4718 |
> |
|
4719 |
> |
if test x = x"$MPILIBS"; then |
4720 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpi" >&5 |
4721 |
> |
$as_echo_n "checking for MPI_Init in -lmpi... " >&6; } |
4722 |
> |
if ${ac_cv_lib_mpi_MPI_Init+:} false; then : |
4723 |
|
$as_echo_n "(cached) " >&6 |
4724 |
|
else |
4725 |
< |
FCFLAGS=-g |
4725 |
> |
ac_check_lib_save_LIBS=$LIBS |
4726 |
> |
LIBS="-lmpi $LIBS" |
4727 |
|
cat > conftest.$ac_ext <<_ACEOF |
4728 |
|
program main |
4729 |
+ |
call MPI_Init |
4730 |
+ |
end |
4731 |
+ |
_ACEOF |
4732 |
+ |
if ac_fn_fc_try_link "$LINENO"; then : |
4733 |
+ |
ac_cv_lib_mpi_MPI_Init=yes |
4734 |
+ |
else |
4735 |
+ |
ac_cv_lib_mpi_MPI_Init=no |
4736 |
+ |
fi |
4737 |
+ |
rm -f core conftest.err conftest.$ac_objext \ |
4738 |
+ |
conftest$ac_exeext conftest.$ac_ext |
4739 |
+ |
LIBS=$ac_check_lib_save_LIBS |
4740 |
+ |
fi |
4741 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpi_MPI_Init" >&5 |
4742 |
+ |
$as_echo "$ac_cv_lib_mpi_MPI_Init" >&6; } |
4743 |
+ |
if test "x$ac_cv_lib_mpi_MPI_Init" = xyes; then : |
4744 |
+ |
MPILIBS="-lmpi" |
4745 |
+ |
fi |
4746 |
|
|
4747 |
+ |
fi |
4748 |
+ |
if test x = x"$MPILIBS"; then |
4749 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpich" >&5 |
4750 |
+ |
$as_echo_n "checking for MPI_Init in -lmpich... " >&6; } |
4751 |
+ |
if ${ac_cv_lib_mpich_MPI_Init+:} false; then : |
4752 |
+ |
$as_echo_n "(cached) " >&6 |
4753 |
+ |
else |
4754 |
+ |
ac_check_lib_save_LIBS=$LIBS |
4755 |
+ |
LIBS="-lmpich $LIBS" |
4756 |
+ |
cat > conftest.$ac_ext <<_ACEOF |
4757 |
+ |
program main |
4758 |
+ |
call MPI_Init |
4759 |
|
end |
4760 |
|
_ACEOF |
4761 |
+ |
if ac_fn_fc_try_link "$LINENO"; then : |
4762 |
+ |
ac_cv_lib_mpich_MPI_Init=yes |
4763 |
+ |
else |
4764 |
+ |
ac_cv_lib_mpich_MPI_Init=no |
4765 |
+ |
fi |
4766 |
+ |
rm -f core conftest.err conftest.$ac_objext \ |
4767 |
+ |
conftest$ac_exeext conftest.$ac_ext |
4768 |
+ |
LIBS=$ac_check_lib_save_LIBS |
4769 |
+ |
fi |
4770 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpich_MPI_Init" >&5 |
4771 |
+ |
$as_echo "$ac_cv_lib_mpich_MPI_Init" >&6; } |
4772 |
+ |
if test "x$ac_cv_lib_mpich_MPI_Init" = xyes; then : |
4773 |
+ |
MPILIBS="-lmpich" |
4774 |
+ |
fi |
4775 |
+ |
|
4776 |
+ |
fi |
4777 |
+ |
|
4778 |
+ |
if test x != x"$MPILIBS"; then |
4779 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpif.h" >&5 |
4780 |
+ |
$as_echo_n "checking for mpif.h... " >&6; } |
4781 |
+ |
cat > conftest.$ac_ext <<_ACEOF |
4782 |
+ |
program main |
4783 |
+ |
include 'mpif.h' |
4784 |
+ |
end |
4785 |
+ |
_ACEOF |
4786 |
|
if ac_fn_fc_try_compile "$LINENO"; then : |
4787 |
< |
ac_cv_prog_fc_g=yes |
4787 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
4788 |
> |
$as_echo "yes" >&6; } |
4789 |
|
else |
4790 |
< |
ac_cv_prog_fc_g=no |
4790 |
> |
MPILIBS="" |
4791 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4792 |
> |
$as_echo "no" >&6; } |
4793 |
|
fi |
4794 |
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4795 |
+ |
fi |
4796 |
+ |
|
4797 |
+ |
FC="$ax_mpi_save_FC" |
4798 |
+ |
|
4799 |
+ |
|
4800 |
+ |
|
4801 |
+ |
# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: |
4802 |
+ |
if test x = x"$MPILIBS"; then |
4803 |
+ |
USE_MPI="no" |
4804 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No suitable Fortran MPI implementation found. openmd_MPI will not be built." >&5 |
4805 |
+ |
$as_echo "$as_me: WARNING: No suitable Fortran MPI implementation found. openmd_MPI will not be built." >&2;} |
4806 |
+ |
: |
4807 |
+ |
else |
4808 |
+ |
USE_MPI="yes" |
4809 |
+ |
: |
4810 |
+ |
fi |
4811 |
|
|
4812 |
+ |
|
4813 |
|
fi |
4814 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5 |
4815 |
< |
$as_echo "$ac_cv_prog_fc_g" >&6; } |
4816 |
< |
if test "$ac_test_FCFLAGS" = set; then |
4817 |
< |
FCFLAGS=$ac_save_FCFLAGS |
4818 |
< |
elif test $ac_cv_prog_fc_g = yes; then |
4819 |
< |
if test "x$ac_cv_fc_compiler_gnu" = xyes; then |
4820 |
< |
FCFLAGS="-g -O2" |
6066 |
< |
else |
6067 |
< |
FCFLAGS="-g" |
6068 |
< |
fi |
4814 |
> |
if test $USE_MPI != no; then : |
4815 |
> |
|
4816 |
> |
CXX=$MPICXX |
4817 |
> |
CC=$MPICC |
4818 |
> |
FC=$MPIFC |
4819 |
> |
LIBS="$MPILIBS $LIBS" |
4820 |
> |
|
4821 |
|
else |
4822 |
< |
if test "x$ac_cv_fc_compiler_gnu" = xyes; then |
4823 |
< |
FCFLAGS="-O2" |
4824 |
< |
else |
4825 |
< |
FCFLAGS= |
4826 |
< |
fi |
4822 |
> |
|
4823 |
> |
CXX=$save_CXX |
4824 |
> |
CC=$save_CC |
4825 |
> |
FC=$save_FC |
4826 |
> |
LIBS=$save_LIBS |
4827 |
> |
|
4828 |
> |
|
4829 |
|
fi |
4830 |
|
|
6077 |
– |
ac_ext=${ac_fc_srcext-f} |
6078 |
– |
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' |
6079 |
– |
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' |
6080 |
– |
ac_compiler_gnu=$ac_cv_fc_compiler_gnu |
4831 |
|
|
4832 |
+ |
# Checks for programs. |
4833 |
|
ac_ext=c |
4834 |
|
ac_cpp='$CPP $CPPFLAGS' |
4835 |
|
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
4842 |
|
CPP= |
4843 |
|
fi |
4844 |
|
if test -z "$CPP"; then |
4845 |
< |
if test "${ac_cv_prog_CPP+set}" = set; then : |
4845 |
> |
if ${ac_cv_prog_CPP+:} false; then : |
4846 |
|
$as_echo_n "(cached) " >&6 |
4847 |
|
else |
4848 |
|
# Double quotes because CPP needs to be expanded |
4872 |
|
# Broken: fails on valid input. |
4873 |
|
continue |
4874 |
|
fi |
4875 |
< |
rm -f conftest.err conftest.$ac_ext |
4875 |
> |
rm -f conftest.err conftest.i conftest.$ac_ext |
4876 |
|
|
4877 |
|
# OK, works on sane cases. Now check whether nonexistent headers |
4878 |
|
# can be detected and how. |
4888 |
|
ac_preproc_ok=: |
4889 |
|
break |
4890 |
|
fi |
4891 |
< |
rm -f conftest.err conftest.$ac_ext |
4891 |
> |
rm -f conftest.err conftest.i conftest.$ac_ext |
4892 |
|
|
4893 |
|
done |
4894 |
|
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
4895 |
< |
rm -f conftest.err conftest.$ac_ext |
4895 |
> |
rm -f conftest.i conftest.err conftest.$ac_ext |
4896 |
|
if $ac_preproc_ok; then : |
4897 |
|
break |
4898 |
|
fi |
4931 |
|
# Broken: fails on valid input. |
4932 |
|
continue |
4933 |
|
fi |
4934 |
< |
rm -f conftest.err conftest.$ac_ext |
4934 |
> |
rm -f conftest.err conftest.i conftest.$ac_ext |
4935 |
|
|
4936 |
|
# OK, works on sane cases. Now check whether nonexistent headers |
4937 |
|
# can be detected and how. |
4947 |
|
ac_preproc_ok=: |
4948 |
|
break |
4949 |
|
fi |
4950 |
< |
rm -f conftest.err conftest.$ac_ext |
4950 |
> |
rm -f conftest.err conftest.i conftest.$ac_ext |
4951 |
|
|
4952 |
|
done |
4953 |
|
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
4954 |
< |
rm -f conftest.err conftest.$ac_ext |
4954 |
> |
rm -f conftest.i conftest.err conftest.$ac_ext |
4955 |
|
if $ac_preproc_ok; then : |
4956 |
|
|
4957 |
|
else |
4958 |
|
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4959 |
|
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
4960 |
< |
as_fn_error "C preprocessor \"$CPP\" fails sanity check |
4961 |
< |
See \`config.log' for more details." "$LINENO" 5; } |
4960 |
> |
as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
4961 |
> |
See \`config.log' for more details" "$LINENO" 5; } |
4962 |
|
fi |
4963 |
|
|
4964 |
|
ac_ext=${ac_fc_srcext-f} |
4968 |
|
|
4969 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
4970 |
|
$as_echo_n "checking for grep that handles long lines and -e... " >&6; } |
4971 |
< |
if test "${ac_cv_path_GREP+set}" = set; then : |
4971 |
> |
if ${ac_cv_path_GREP+:} false; then : |
4972 |
|
$as_echo_n "(cached) " >&6 |
4973 |
|
else |
4974 |
|
if test -z "$GREP"; then |
5017 |
|
done |
5018 |
|
IFS=$as_save_IFS |
5019 |
|
if test -z "$ac_cv_path_GREP"; then |
5020 |
< |
as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
5020 |
> |
as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
5021 |
|
fi |
5022 |
|
else |
5023 |
|
ac_cv_path_GREP=$GREP |
5031 |
|
|
5032 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
5033 |
|
$as_echo_n "checking for egrep... " >&6; } |
5034 |
< |
if test "${ac_cv_path_EGREP+set}" = set; then : |
5034 |
> |
if ${ac_cv_path_EGREP+:} false; then : |
5035 |
|
$as_echo_n "(cached) " >&6 |
5036 |
|
else |
5037 |
|
if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
5083 |
|
done |
5084 |
|
IFS=$as_save_IFS |
5085 |
|
if test -z "$ac_cv_path_EGREP"; then |
5086 |
< |
as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
5086 |
> |
as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
5087 |
|
fi |
5088 |
|
else |
5089 |
|
ac_cv_path_EGREP=$EGREP |
5111 |
|
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
5112 |
|
set x ${MAKE-make} |
5113 |
|
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
5114 |
< |
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then : |
5114 |
> |
if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : |
5115 |
|
$as_echo_n "(cached) " >&6 |
5116 |
|
else |
5117 |
|
cat >conftest.make <<\_ACEOF |
5119 |
|
all: |
5120 |
|
@echo '@@@%%%=$(MAKE)=@@@%%%' |
5121 |
|
_ACEOF |
5122 |
< |
# GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
5122 |
> |
# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
5123 |
|
case `${MAKE-make} -f conftest.make 2>/dev/null` in |
5124 |
|
*@@@%%%=?*=@@@%%%*) |
5125 |
|
eval ac_cv_prog_make_${ac_make}_set=yes;; |
5143 |
|
set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
5144 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5145 |
|
$as_echo_n "checking for $ac_word... " >&6; } |
5146 |
< |
if test "${ac_cv_prog_RANLIB+set}" = set; then : |
5146 |
> |
if ${ac_cv_prog_RANLIB+:} false; then : |
5147 |
|
$as_echo_n "(cached) " >&6 |
5148 |
|
else |
5149 |
|
if test -n "$RANLIB"; then |
5183 |
|
set dummy ranlib; ac_word=$2 |
5184 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5185 |
|
$as_echo_n "checking for $ac_word... " >&6; } |
5186 |
< |
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : |
5186 |
> |
if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
5187 |
|
$as_echo_n "(cached) " >&6 |
5188 |
|
else |
5189 |
|
if test -n "$ac_ct_RANLIB"; then |
5235 |
|
set dummy perl; ac_word=$2 |
5236 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5237 |
|
$as_echo_n "checking for $ac_word... " >&6; } |
5238 |
< |
if test "${ac_cv_path_PERLINTERP+set}" = set; then : |
5238 |
> |
if ${ac_cv_path_PERLINTERP+:} false; then : |
5239 |
|
$as_echo_n "(cached) " >&6 |
5240 |
|
else |
5241 |
|
case $PERLINTERP in |
5285 |
|
|
5286 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether explicit instead of detected sharpbang is to be used" >&5 |
5287 |
|
$as_echo_n "checking whether explicit instead of detected sharpbang is to be used... " >&6; } |
5288 |
< |
if test "${ax_cv_opt_perl_shebang+set}" = set; then : |
5288 |
> |
if ${ax_cv_opt_perl_shebang+:} false; then : |
5289 |
|
$as_echo_n "(cached) " >&6 |
5290 |
|
else |
5291 |
|
case "$opt_perl_shebang" in |
5311 |
|
negclass="[^']"; # must leave this comment: m4 will remove the outer brackets for us, heheh |
5312 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for kernel sharpbang invocation to start perl" >&5 |
5313 |
|
$as_echo_n "checking for kernel sharpbang invocation to start perl... " >&6; } |
5314 |
< |
if test "${ac_cv_sys_kernshrpbang_perl+set}" = set; then : |
5314 |
> |
if ${ac_cv_sys_kernshrpbang_perl+:} false; then : |
5315 |
|
$as_echo_n "(cached) " >&6 |
5316 |
|
else |
5317 |
|
_somian_kspb_perl=`echo "$_somian_shbangperl" | sed -ne"s|.*='\($negclass*\)';$|\1|p"` |
5367 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
5368 |
|
$as_echo_n "checking for a BSD-compatible install... " >&6; } |
5369 |
|
if test -z "$INSTALL"; then |
5370 |
< |
if test "${ac_cv_path_install+set}" = set; then : |
5370 |
> |
if ${ac_cv_path_install+:} false; then : |
5371 |
|
$as_echo_n "(cached) " >&6 |
5372 |
|
else |
5373 |
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5447 |
|
x/*) ;; |
5448 |
|
*) INSTALL=`pwd`/ac-tools/"shtool install -c" ; |
5449 |
|
esac |
5450 |
< |
MKINSTALLDIRS=`pwd`/ac-tools/"shtool mkdir -p -f" |
5450 |
> |
MKINSTALLDIRS=`pwd`/ac-tools/"shtool mkdir -p -f -m 755" |
5451 |
|
# Extract the first word of "ar", so it can be a program name with args. |
5452 |
|
set dummy ar; ac_word=$2 |
5453 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5454 |
|
$as_echo_n "checking for $ac_word... " >&6; } |
5455 |
< |
if test "${ac_cv_prog_AR+set}" = set; then : |
5455 |
> |
if ${ac_cv_prog_AR+:} false; then : |
5456 |
|
$as_echo_n "(cached) " >&6 |
5457 |
|
else |
5458 |
|
if test -n "$AR"; then |
5551 |
|
:end' >>confcache |
5552 |
|
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
5553 |
|
if test -w "$cache_file"; then |
5554 |
< |
test "x$cache_file" != "x/dev/null" && |
5554 |
> |
if test "x$cache_file" != "x/dev/null"; then |
5555 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
5556 |
|
$as_echo "$as_me: updating cache $cache_file" >&6;} |
5557 |
< |
cat confcache >$cache_file |
5557 |
> |
if test ! -f "$cache_file" || test -h "$cache_file"; then |
5558 |
> |
cat confcache >"$cache_file" |
5559 |
> |
else |
5560 |
> |
case $cache_file in #( |
5561 |
> |
*/* | ?:*) |
5562 |
> |
mv -f confcache "$cache_file"$$ && |
5563 |
> |
mv -f "$cache_file"$$ "$cache_file" ;; #( |
5564 |
> |
*) |
5565 |
> |
mv -f confcache "$cache_file" ;; |
5566 |
> |
esac |
5567 |
> |
fi |
5568 |
> |
fi |
5569 |
|
else |
5570 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
5571 |
|
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
5578 |
|
set dummy ps; ac_word=$2 |
5579 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5580 |
|
$as_echo_n "checking for $ac_word... " >&6; } |
5581 |
< |
if test "${ac_cv_path_PS+set}" = set; then : |
5581 |
> |
if ${ac_cv_path_PS+:} false; then : |
5582 |
|
$as_echo_n "(cached) " >&6 |
5583 |
|
else |
5584 |
|
case $PS in |
5616 |
|
|
5617 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for POSIX or BSD ps syntax" >&5 |
5618 |
|
$as_echo_n "checking for POSIX or BSD ps syntax... " >&6; } |
5619 |
< |
if test "${ac_cv_prog_ps_syntax+set}" = set; then : |
5619 |
> |
if ${ac_cv_prog_ps_syntax+:} false; then : |
5620 |
|
$as_echo_n "(cached) " >&6 |
5621 |
|
else |
5622 |
|
|
5636 |
|
if test "$ac_cv_prog_ps_ef" = yes; then |
5637 |
|
ac_cv_prog_ps_syntax=POSIX |
5638 |
|
else |
5639 |
< |
as_fn_error "Could not determine ps syntax" "$LINENO" 5 |
5639 |
> |
as_fn_error $? "Could not determine ps syntax" "$LINENO" 5 |
5640 |
|
fi |
5641 |
|
fi |
5642 |
|
|
5658 |
|
$as_echo "#define PSTYPE_IS_POSIX 1" >>confdefs.h |
5659 |
|
|
5660 |
|
else |
5661 |
< |
as_fn_error "Unknown ps syntax type!" "$LINENO" 5 |
5661 |
> |
as_fn_error $? "Unknown ps syntax type!" "$LINENO" 5 |
5662 |
|
fi |
5663 |
|
fi |
5664 |
|
|
5673 |
|
ac_compiler_gnu=$ac_cv_fc_compiler_gnu |
5674 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran flag to compile .F90 files" >&5 |
5675 |
|
$as_echo_n "checking for Fortran flag to compile .F90 files... " >&6; } |
5676 |
< |
if test "${ac_cv_fc_srcext_F90+set}" = set; then : |
5676 |
> |
if ${ac_cv_fc_srcext_F90+:} false; then : |
5677 |
|
$as_echo_n "(cached) " >&6 |
5678 |
|
else |
5679 |
|
ac_ext=F90 |
5699 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_srcext_F90" >&5 |
5700 |
|
$as_echo "$ac_cv_fc_srcext_F90" >&6; } |
5701 |
|
if test "x$ac_cv_fc_srcext_F90" = xunknown; then |
5702 |
< |
as_fn_error "Fortran could not compile .F90 files" "$LINENO" 5 |
5702 |
> |
as_fn_error $? "Fortran could not compile .F90 files" "$LINENO" 5 |
5703 |
|
else |
5704 |
|
ac_fc_srcext=F90 |
5705 |
|
if test "x$ac_cv_fc_srcext_F90" = xnone; then |
5793 |
|
else |
5794 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5795 |
|
$as_echo "no" >&6; } |
5796 |
< |
as_fn_error "Can't figure out working Fortran90 preprocessor flag" "$LINENO" 5 |
5796 |
> |
as_fn_error $? "Can't figure out working Fortran90 preprocessor flag" "$LINENO" 5 |
5797 |
|
fi |
5798 |
|
fi |
5799 |
|
|
5876 |
|
else |
5877 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5878 |
|
$as_echo "no" >&6; } |
5879 |
< |
as_fn_error "Can't figure out working Fortran90 preprocessor define flag" "$LINENO" 5 |
5879 |
> |
as_fn_error $? "Can't figure out working Fortran90 preprocessor define flag" "$LINENO" 5 |
5880 |
|
fi |
5881 |
|
fi |
5882 |
|
|
5886 |
|
ac_compiler_gnu=$ac_cv_fc_compiler_gnu |
5887 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get verbose linking output from $FC" >&5 |
5888 |
|
$as_echo_n "checking how to get verbose linking output from $FC... " >&6; } |
5889 |
< |
if test "${ac_cv_prog_fc_v+set}" = set; then : |
5889 |
> |
if ${ac_cv_prog_fc_v+:} false; then : |
5890 |
|
$as_echo_n "(cached) " >&6 |
5891 |
|
else |
5892 |
|
cat > conftest.$ac_ext <<_ACEOF |
5916 |
|
# gfortran 4.3 outputs lines setting COLLECT_GCC_OPTIONS, COMPILER_PATH, |
5917 |
|
# LIBRARY_PATH; skip all such settings. |
5918 |
|
ac_fc_v_output=`eval $ac_link 5>&1 2>&1 | |
5919 |
< |
grep -v 'Driving:' | grep -v "^[_$as_cr_Letters][_$as_cr_alnum]*="` |
5919 |
> |
sed '/^Driving:/d; /^Configured with:/d; |
5920 |
> |
'"/^[_$as_cr_Letters][_$as_cr_alnum]*=/d"` |
5921 |
|
$as_echo "$ac_fc_v_output" >&5 |
5922 |
|
FCFLAGS=$ac_save_FCFLAGS |
5923 |
|
|
5982 |
|
$as_echo "$ac_cv_prog_fc_v" >&6; } |
5983 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran libraries of $FC" >&5 |
5984 |
|
$as_echo_n "checking for Fortran libraries of $FC... " >&6; } |
5985 |
< |
if test "${ac_cv_fc_libs+set}" = set; then : |
5985 |
> |
if ${ac_cv_fc_libs+:} false; then : |
5986 |
|
$as_echo_n "(cached) " >&6 |
5987 |
|
else |
5988 |
|
if test "x$FCLIBS" != "x"; then |
6007 |
|
# gfortran 4.3 outputs lines setting COLLECT_GCC_OPTIONS, COMPILER_PATH, |
6008 |
|
# LIBRARY_PATH; skip all such settings. |
6009 |
|
ac_fc_v_output=`eval $ac_link 5>&1 2>&1 | |
6010 |
< |
grep -v 'Driving:' | grep -v "^[_$as_cr_Letters][_$as_cr_alnum]*="` |
6010 |
> |
sed '/^Driving:/d; /^Configured with:/d; |
6011 |
> |
'"/^[_$as_cr_Letters][_$as_cr_alnum]*=/d"` |
6012 |
|
$as_echo "$ac_fc_v_output" >&5 |
6013 |
|
FCFLAGS=$ac_save_FCFLAGS |
6014 |
|
|
6098 |
|
;; |
6099 |
|
# Ignore these flags. |
6100 |
|
-lang* | -lcrt*.o | -lc | -lgcc* | -lSystem | -libmil | -little \ |
6101 |
< |
|-LANG:=* | -LIST:* | -LNO:*) |
6101 |
> |
|-LANG:=* | -LIST:* | -LNO:* | -link) |
6102 |
|
;; |
6103 |
|
-lkernel32) |
6104 |
|
test x"$CYGWIN" != xyes && ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg" |
6195 |
|
|
6196 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dummy main to link with Fortran libraries" >&5 |
6197 |
|
$as_echo_n "checking for dummy main to link with Fortran libraries... " >&6; } |
6198 |
< |
if test "${ac_cv_fc_dummy_main+set}" = set; then : |
6198 |
> |
if ${ac_cv_fc_dummy_main+:} false; then : |
6199 |
|
$as_echo_n "(cached) " >&6 |
6200 |
|
else |
6201 |
|
ac_fc_dm_save_LIBS=$LIBS |
6291 |
|
else |
6292 |
|
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
6293 |
|
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
6294 |
< |
as_fn_error "linking to Fortran libraries from C fails |
6295 |
< |
See \`config.log' for more details." "$LINENO" 5; } |
6294 |
> |
as_fn_error $? "linking to Fortran libraries from C fails |
6295 |
> |
See \`config.log' for more details" "$LINENO" 5; } |
6296 |
|
fi |
6297 |
|
|
6298 |
|
ac_ext=${ac_fc_srcext-f} |
6306 |
|
ac_compiler_gnu=$ac_cv_fc_compiler_gnu |
6307 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran name-mangling scheme" >&5 |
6308 |
|
$as_echo_n "checking for Fortran name-mangling scheme... " >&6; } |
6309 |
< |
if test "${ac_cv_fc_mangling+set}" = set; then : |
6309 |
> |
if ${ac_cv_fc_mangling+:} false; then : |
6310 |
|
$as_echo_n "(cached) " >&6 |
6311 |
|
else |
6312 |
|
cat > conftest.$ac_ext <<_ACEOF |
6452 |
|
else |
6453 |
|
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
6454 |
|
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
6455 |
< |
as_fn_error "cannot compile a simple Fortran program |
6456 |
< |
See \`config.log' for more details." "$LINENO" 5; } |
6455 |
> |
as_fn_error $? "cannot compile a simple Fortran program |
6456 |
> |
See \`config.log' for more details" "$LINENO" 5; } |
6457 |
|
fi |
6458 |
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
6459 |
|
|
6530 |
|
ac_compiler_gnu=$ac_cv_fc_compiler_gnu |
6531 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get verbose linking output from $FC" >&5 |
6532 |
|
$as_echo_n "checking how to get verbose linking output from $FC... " >&6; } |
6533 |
< |
if test "${ac_cv_prog_fc_v+set}" = set; then : |
6533 |
> |
if ${ac_cv_prog_fc_v+:} false; then : |
6534 |
|
$as_echo_n "(cached) " >&6 |
6535 |
|
else |
6536 |
|
cat > conftest.$ac_ext <<_ACEOF |
6560 |
|
# gfortran 4.3 outputs lines setting COLLECT_GCC_OPTIONS, COMPILER_PATH, |
6561 |
|
# LIBRARY_PATH; skip all such settings. |
6562 |
|
ac_fc_v_output=`eval $ac_link 5>&1 2>&1 | |
6563 |
< |
grep -v 'Driving:' | grep -v "^[_$as_cr_Letters][_$as_cr_alnum]*="` |
6563 |
> |
sed '/^Driving:/d; /^Configured with:/d; |
6564 |
> |
'"/^[_$as_cr_Letters][_$as_cr_alnum]*=/d"` |
6565 |
|
$as_echo "$ac_fc_v_output" >&5 |
6566 |
|
FCFLAGS=$ac_save_FCFLAGS |
6567 |
|
|
6626 |
|
$as_echo "$ac_cv_prog_fc_v" >&6; } |
6627 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran libraries of $FC" >&5 |
6628 |
|
$as_echo_n "checking for Fortran libraries of $FC... " >&6; } |
6629 |
< |
if test "${ac_cv_fc_libs+set}" = set; then : |
6629 |
> |
if ${ac_cv_fc_libs+:} false; then : |
6630 |
|
$as_echo_n "(cached) " >&6 |
6631 |
|
else |
6632 |
|
if test "x$FCLIBS" != "x"; then |
6651 |
|
# gfortran 4.3 outputs lines setting COLLECT_GCC_OPTIONS, COMPILER_PATH, |
6652 |
|
# LIBRARY_PATH; skip all such settings. |
6653 |
|
ac_fc_v_output=`eval $ac_link 5>&1 2>&1 | |
6654 |
< |
grep -v 'Driving:' | grep -v "^[_$as_cr_Letters][_$as_cr_alnum]*="` |
6654 |
> |
sed '/^Driving:/d; /^Configured with:/d; |
6655 |
> |
'"/^[_$as_cr_Letters][_$as_cr_alnum]*=/d"` |
6656 |
|
$as_echo "$ac_fc_v_output" >&5 |
6657 |
|
FCFLAGS=$ac_save_FCFLAGS |
6658 |
|
|
6742 |
|
;; |
6743 |
|
# Ignore these flags. |
6744 |
|
-lang* | -lcrt*.o | -lc | -lgcc* | -lSystem | -libmil | -little \ |
6745 |
< |
|-LANG:=* | -LIST:* | -LNO:*) |
6745 |
> |
|-LANG:=* | -LIST:* | -LNO:* | -link) |
6746 |
|
;; |
6747 |
|
-lkernel32) |
6748 |
|
test x"$CYGWIN" != xyes && ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg" |
6965 |
|
|
6966 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 90 module file names" >&5 |
6967 |
|
$as_echo_n "checking for Fortran 90 module file names... " >&6; } |
6968 |
< |
if test "${ac_cv_f90_module_names+set}" = set; then : |
6968 |
> |
if ${ac_cv_f90_module_names+:} false; then : |
6969 |
|
$as_echo_n "(cached) " >&6 |
6970 |
|
else |
6971 |
|
ac_ext=${ac_fc_srcext-f} |
7177 |
|
|
7178 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for asin in -lm" >&5 |
7179 |
|
$as_echo_n "checking for asin in -lm... " >&6; } |
7180 |
< |
if test "${ac_cv_lib_m_asin+set}" = set; then : |
7180 |
> |
if ${ac_cv_lib_m_asin+:} false; then : |
7181 |
|
$as_echo_n "(cached) " >&6 |
7182 |
|
else |
7183 |
|
ac_check_lib_save_LIBS=$LIBS |
7219 |
|
fi |
7220 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_asin" >&5 |
7221 |
|
$as_echo "$ac_cv_lib_m_asin" >&6; } |
7222 |
< |
if test "x$ac_cv_lib_m_asin" = x""yes; then : |
7222 |
> |
if test "x$ac_cv_lib_m_asin" = xyes; then : |
7223 |
|
cat >>confdefs.h <<_ACEOF |
7224 |
|
#define HAVE_LIBM 1 |
7225 |
|
_ACEOF |
7233 |
|
|
7234 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
7235 |
|
$as_echo_n "checking for ANSI C header files... " >&6; } |
7236 |
< |
if test "${ac_cv_header_stdc+set}" = set; then : |
7236 |
> |
if ${ac_cv_header_stdc+:} false; then : |
7237 |
|
$as_echo_n "(cached) " >&6 |
7238 |
|
else |
7239 |
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7358 |
|
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7359 |
|
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
7360 |
|
" |
7361 |
< |
eval as_val=\$$as_ac_Header |
8596 |
< |
if test "x$as_val" = x""yes; then : |
7361 |
> |
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
7362 |
|
cat >>confdefs.h <<_ACEOF |
7363 |
|
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
7364 |
|
_ACEOF |
7413 |
|
|
7414 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflateEnd in -lz" >&5 |
7415 |
|
$as_echo_n "checking for inflateEnd in -lz... " >&6; } |
7416 |
< |
if test "${ac_cv_lib_z_inflateEnd+set}" = set; then : |
7416 |
> |
if ${ac_cv_lib_z_inflateEnd+:} false; then : |
7417 |
|
$as_echo_n "(cached) " >&6 |
7418 |
|
else |
7419 |
|
ac_check_lib_save_LIBS=$LIBS |
7455 |
|
fi |
7456 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateEnd" >&5 |
7457 |
|
$as_echo "$ac_cv_lib_z_inflateEnd" >&6; } |
7458 |
< |
if test "x$ac_cv_lib_z_inflateEnd" = x""yes; then : |
7458 |
> |
if test "x$ac_cv_lib_z_inflateEnd" = xyes; then : |
7459 |
|
zlib_cv_libz=yes |
7460 |
|
else |
7461 |
|
zlib_cv_libz=no |
7462 |
|
fi |
7463 |
|
|
7464 |
|
ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default" |
7465 |
< |
if test "x$ac_cv_header_zlib_h" = x""yes; then : |
7465 |
> |
if test "x$ac_cv_header_zlib_h" = xyes; then : |
7466 |
|
zlib_cv_zlib_h=yes |
7467 |
|
else |
7468 |
|
zlib_cv_zlib_h=no |
7499 |
|
echo "" |
7500 |
|
echo "*********************************************************" |
7501 |
|
echo "* WARNING: Could not find a working zlib installation *" |
7502 |
< |
echo "* If you need OOPSE to be able to deal with compressed *" |
7502 |
> |
echo "* If you need OpenMD to be able to deal with compressed *" |
7503 |
|
echo "* trajectory dump files be sure to specify a valid zlib *" |
7504 |
|
echo "* installation with --with-zlib=DIR *" |
7505 |
|
echo "* *" |
7506 |
< |
echo "* OOPSE will still work without zlib installed. *" |
7506 |
> |
echo "* OpenMD will still work without zlib installed. *" |
7507 |
|
echo "*********************************************************" |
7508 |
|
echo "" |
7509 |
|
fi |
7553 |
|
|
7554 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_execute in -lfftw3" >&5 |
7555 |
|
$as_echo_n "checking for fftw_execute in -lfftw3... " >&6; } |
7556 |
< |
if test "${ac_cv_lib_fftw3_fftw_execute+set}" = set; then : |
7556 |
> |
if ${ac_cv_lib_fftw3_fftw_execute+:} false; then : |
7557 |
|
$as_echo_n "(cached) " >&6 |
7558 |
|
else |
7559 |
|
ac_check_lib_save_LIBS=$LIBS |
7595 |
|
fi |
7596 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_execute" >&5 |
7597 |
|
$as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; } |
7598 |
< |
if test "x$ac_cv_lib_fftw3_fftw_execute" = x""yes; then : |
7598 |
> |
if test "x$ac_cv_lib_fftw3_fftw_execute" = xyes; then : |
7599 |
|
fftw_cv_libfftw3=yes |
7600 |
|
else |
7601 |
|
fftw_cv_libfftw3=no |
7602 |
|
fi |
7603 |
|
|
7604 |
|
ac_fn_c_check_header_mongrel "$LINENO" "fftw3.h" "ac_cv_header_fftw3_h" "$ac_includes_default" |
7605 |
< |
if test "x$ac_cv_header_fftw3_h" = x""yes; then : |
7605 |
> |
if test "x$ac_cv_header_fftw3_h" = xyes; then : |
7606 |
|
fftw_cv_fftw3_h=yes |
7607 |
|
else |
7608 |
|
fftw_cv_fftw3_h=no |
7612 |
|
if test "$fftw_cv_libfftw3" = "no" -o "$fftw_cv_fftw3_h" = "no"; then |
7613 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftwnd_one in -lfftw" >&5 |
7614 |
|
$as_echo_n "checking for fftwnd_one in -lfftw... " >&6; } |
7615 |
< |
if test "${ac_cv_lib_fftw_fftwnd_one+set}" = set; then : |
7615 |
> |
if ${ac_cv_lib_fftw_fftwnd_one+:} false; then : |
7616 |
|
$as_echo_n "(cached) " >&6 |
7617 |
|
else |
7618 |
|
ac_check_lib_save_LIBS=$LIBS |
7654 |
|
fi |
7655 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw_fftwnd_one" >&5 |
7656 |
|
$as_echo "$ac_cv_lib_fftw_fftwnd_one" >&6; } |
7657 |
< |
if test "x$ac_cv_lib_fftw_fftwnd_one" = x""yes; then : |
7657 |
> |
if test "x$ac_cv_lib_fftw_fftwnd_one" = xyes; then : |
7658 |
|
fftw_cv_libfftw=yes |
7659 |
|
else |
7660 |
|
fftw_cv_libfftw=no |
7661 |
|
fi |
7662 |
|
|
7663 |
|
ac_fn_c_check_header_mongrel "$LINENO" "fftw.h" "ac_cv_header_fftw_h" "$ac_includes_default" |
7664 |
< |
if test "x$ac_cv_header_fftw_h" = x""yes; then : |
7664 |
> |
if test "x$ac_cv_header_fftw_h" = xyes; then : |
7665 |
|
fftw_cv_fftw_h=yes |
7666 |
|
else |
7667 |
|
fftw_cv_fftw_h=no |
7671 |
|
if test "$fftw_cv_libfftw" = "no" -o "$fftw_cv_fftw_h" = "no"; then |
7672 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftwnd_one in -ldfftw" >&5 |
7673 |
|
$as_echo_n "checking for fftwnd_one in -ldfftw... " >&6; } |
7674 |
< |
if test "${ac_cv_lib_dfftw_fftwnd_one+set}" = set; then : |
7674 |
> |
if ${ac_cv_lib_dfftw_fftwnd_one+:} false; then : |
7675 |
|
$as_echo_n "(cached) " >&6 |
7676 |
|
else |
7677 |
|
ac_check_lib_save_LIBS=$LIBS |
7686 |
|
extern "C" |
7687 |
|
#endif |
7688 |
|
char fftwnd_one (); |
8924 |
– |
#ifdef FC_DUMMY_MAIN |
8925 |
– |
#ifndef FC_DUMMY_MAIN_EQ_F77 |
8926 |
– |
# ifdef __cplusplus |
8927 |
– |
extern "C" |
8928 |
– |
# endif |
8929 |
– |
int FC_DUMMY_MAIN() { return 1; } |
8930 |
– |
#endif |
8931 |
– |
#endif |
8932 |
– |
int |
8933 |
– |
main () |
8934 |
– |
{ |
8935 |
– |
return fftwnd_one (); |
8936 |
– |
; |
8937 |
– |
return 0; |
8938 |
– |
} |
8939 |
– |
_ACEOF |
8940 |
– |
if ac_fn_c_try_link "$LINENO"; then : |
8941 |
– |
ac_cv_lib_dfftw_fftwnd_one=yes |
8942 |
– |
else |
8943 |
– |
ac_cv_lib_dfftw_fftwnd_one=no |
8944 |
– |
fi |
8945 |
– |
rm -f core conftest.err conftest.$ac_objext \ |
8946 |
– |
conftest$ac_exeext conftest.$ac_ext |
8947 |
– |
LIBS=$ac_check_lib_save_LIBS |
8948 |
– |
fi |
8949 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dfftw_fftwnd_one" >&5 |
8950 |
– |
$as_echo "$ac_cv_lib_dfftw_fftwnd_one" >&6; } |
8951 |
– |
if test "x$ac_cv_lib_dfftw_fftwnd_one" = x""yes; then : |
8952 |
– |
fftw_cv_libdfftw=yes |
8953 |
– |
else |
8954 |
– |
fftw_cv_libdfftw=no |
8955 |
– |
fi |
8956 |
– |
|
8957 |
– |
ac_fn_c_check_header_mongrel "$LINENO" "dfftw.h" "ac_cv_header_dfftw_h" "$ac_includes_default" |
8958 |
– |
if test "x$ac_cv_header_dfftw_h" = x""yes; then : |
8959 |
– |
fftw_cv_dfftw_h=yes |
8960 |
– |
else |
8961 |
– |
fftw_cv_dfftw_h=no |
8962 |
– |
fi |
8963 |
– |
|
8964 |
– |
|
8965 |
– |
fi |
8966 |
– |
fi |
8967 |
– |
ac_ext=c |
8968 |
– |
ac_cpp='$CPP $CPPFLAGS' |
8969 |
– |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
8970 |
– |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
8971 |
– |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
8972 |
– |
|
8973 |
– |
if test "$fftw_cv_libfftw3" = "yes" -a "$fftw_cv_fftw3_h" = "yes"; then |
8974 |
– |
|
8975 |
– |
$as_echo "#define HAVE_FFTW3_H 1" >>confdefs.h |
8976 |
– |
|
8977 |
– |
FFTW_INC_DIR="${FFTW_HOME}/include" |
8978 |
– |
FFTW_LIB_DIR="${FFTW_HOME}/lib" |
8979 |
– |
FFTW_LIBS="-lfftw3" |
8980 |
– |
else |
8981 |
– |
if test "$fftw_cv_libfftw" = "yes" -a "$fftw_cv_fftw_h" = "yes"; then |
8982 |
– |
|
8983 |
– |
$as_echo "#define HAVE_FFTW_H 1" >>confdefs.h |
8984 |
– |
|
8985 |
– |
FFTW_INC_DIR="${FFTW_HOME}/include" |
8986 |
– |
FFTW_LIB_DIR="${FFTW_HOME}/lib" |
8987 |
– |
FFTW_LIBS="-lfftw" |
8988 |
– |
else |
8989 |
– |
if test "$fftw_cv_libdfftw" = "yes" -a "$fftw_cv_dfftw_h" = "yes"; then |
8990 |
– |
|
8991 |
– |
$as_echo "#define HAVE_DFFTW_H 1" >>confdefs.h |
8992 |
– |
|
8993 |
– |
FFTW_INC_DIR="${FFTW_HOME}/include" |
8994 |
– |
FFTW_LIB_DIR="${FFTW_HOME}/lib" |
8995 |
– |
FFTW_LIBS="-ldfftw" |
8996 |
– |
else |
8997 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking fftw in ${FFTW_HOME}" >&5 |
8998 |
– |
$as_echo_n "checking fftw in ${FFTW_HOME}... " >&6; } |
8999 |
– |
FFTW_INC_DIR= |
9000 |
– |
FFTW_LIB_DIR= |
9001 |
– |
FFTW_LIBS= |
9002 |
– |
LDFLAGS="$FFTW_OLD_LDFLAGS" |
9003 |
– |
CFLAGS="$FFTW_OLD_CFLAGS" |
9004 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 |
9005 |
– |
$as_echo "failed" >&6; } |
9006 |
– |
echo "" |
9007 |
– |
echo "*********************************************************" |
9008 |
– |
echo "* WARNING: Could not find a working FFTW installation *" |
9009 |
– |
echo "* If you need the staticProps program to be able to *" |
9010 |
– |
echo "* compute undulation spectra, be sure to specify a *" |
9011 |
– |
echo "* valid fftw installation with --with-fftw=DIR *" |
9012 |
– |
echo "* *" |
9013 |
– |
echo "* OOPSE will still work without fftw installed. *" |
9014 |
– |
echo "*********************************************************" |
9015 |
– |
echo "" |
9016 |
– |
fi |
9017 |
– |
fi |
9018 |
– |
fi |
9019 |
– |
|
9020 |
– |
|
9021 |
– |
|
9022 |
– |
fi |
9023 |
– |
fi |
9024 |
– |
fi |
9025 |
– |
|
9026 |
– |
# |
9027 |
– |
# Handle user hints |
9028 |
– |
# |
9029 |
– |
|
9030 |
– |
# Check whether --with-qhull was given. |
9031 |
– |
if test "${with_qhull+set}" = set; then : |
9032 |
– |
withval=$with_qhull; qhull_dir="$withval" |
9033 |
– |
else |
9034 |
– |
qhull_dir="not_set" |
9035 |
– |
fi |
9036 |
– |
|
9037 |
– |
QHULL_INC_DIR= |
9038 |
– |
QHULL_LIB_DIR= |
9039 |
– |
QHULL= |
9040 |
– |
USE_QHULL=no |
9041 |
– |
|
9042 |
– |
if test "$qhull_dir" != "no"; then |
9043 |
– |
if test "$qhull_dir" != "not_set" ; then |
9044 |
– |
if test -d "$qhull_dir"; then |
9045 |
– |
QHULL_HOME="$qhull_dir" |
9046 |
– |
else |
9047 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Sorry, $qhull_dir does not exist, checking usual places" >&5 |
9048 |
– |
$as_echo "$as_me: WARNING: Sorry, $qhull_dir does not exist, checking usual places" >&2;} |
9049 |
– |
QHULL_HOME=/usr/local |
9050 |
– |
if test ! -f "${QHULL_HOME}/include/qhull/qhull.h"; then |
9051 |
– |
QHULL_HOME=/usr |
9052 |
– |
fi |
9053 |
– |
fi |
9054 |
– |
fi |
9055 |
– |
# |
9056 |
– |
# Locate qhull, if wanted |
9057 |
– |
# |
9058 |
– |
if test -n "${QHULL_HOME}"; then |
9059 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: Checking for qhull in ${QHULL_HOME}" >&5 |
9060 |
– |
$as_echo "$as_me: Checking for qhull in ${QHULL_HOME}" >&6;} |
9061 |
– |
|
9062 |
– |
ac_ext=c |
9063 |
– |
ac_cpp='$CPP $CPPFLAGS' |
9064 |
– |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
9065 |
– |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
9066 |
– |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
9067 |
– |
|
9068 |
– |
QHULL_OLD_LDFLAGS=$LDFLAGS |
9069 |
– |
QHULL_OLD_CFLAGS=$CFLAGS |
9070 |
– |
QHULL_OLD_CPPFLAGS=$CPPFLAGS |
9071 |
– |
LDFLAGS="$LDFLAGS -L${QHULL_HOME}/lib" |
9072 |
– |
CFLAGS="$CFLAGS -I${QHULL_HOME}/include" |
9073 |
– |
CPPFLAGS="$CPPFLAGS -I${QHULL_HOME}/include" |
9074 |
– |
ac_fn_c_check_header_mongrel "$LINENO" "qhull/qhull.h" "ac_cv_header_qhull_qhull_h" "$ac_includes_default" |
9075 |
– |
if test "x$ac_cv_header_qhull_qhull_h" = x""yes; then : |
9076 |
– |
qhull_cv_qhull_h=yes |
9077 |
– |
else |
9078 |
– |
qhull_cv_qhull_h=no |
9079 |
– |
fi |
9080 |
– |
|
9081 |
– |
|
9082 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for qh_qhull in -lqhull" >&5 |
9083 |
– |
$as_echo_n "checking for qh_qhull in -lqhull... " >&6; } |
9084 |
– |
if test "${ac_cv_lib_qhull_qh_qhull+set}" = set; then : |
9085 |
– |
$as_echo_n "(cached) " >&6 |
9086 |
– |
else |
9087 |
– |
ac_check_lib_save_LIBS=$LIBS |
9088 |
– |
LIBS="-lqhull $LIBS" |
9089 |
– |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
9090 |
– |
/* end confdefs.h. */ |
9091 |
– |
|
9092 |
– |
/* Override any GCC internal prototype to avoid an error. |
9093 |
– |
Use char because int might match the return type of a GCC |
9094 |
– |
builtin and then its argument prototype would still apply. */ |
9095 |
– |
#ifdef __cplusplus |
9096 |
– |
extern "C" |
9097 |
– |
#endif |
9098 |
– |
char qh_qhull (); |
7689 |
|
#ifdef FC_DUMMY_MAIN |
7690 |
|
#ifndef FC_DUMMY_MAIN_EQ_F77 |
7691 |
|
# ifdef __cplusplus |
7697 |
|
int |
7698 |
|
main () |
7699 |
|
{ |
7700 |
< |
return qh_qhull (); |
7700 |
> |
return fftwnd_one (); |
7701 |
|
; |
7702 |
|
return 0; |
7703 |
|
} |
7704 |
|
_ACEOF |
7705 |
|
if ac_fn_c_try_link "$LINENO"; then : |
7706 |
< |
ac_cv_lib_qhull_qh_qhull=yes |
7706 |
> |
ac_cv_lib_dfftw_fftwnd_one=yes |
7707 |
|
else |
7708 |
< |
ac_cv_lib_qhull_qh_qhull=no |
7708 |
> |
ac_cv_lib_dfftw_fftwnd_one=no |
7709 |
|
fi |
7710 |
|
rm -f core conftest.err conftest.$ac_objext \ |
7711 |
|
conftest$ac_exeext conftest.$ac_ext |
7712 |
|
LIBS=$ac_check_lib_save_LIBS |
7713 |
|
fi |
7714 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_qhull_qh_qhull" >&5 |
7715 |
< |
$as_echo "$ac_cv_lib_qhull_qh_qhull" >&6; } |
7716 |
< |
if test "x$ac_cv_lib_qhull_qh_qhull" = x""yes; then : |
7717 |
< |
qhull_cv_libqhull=yes |
7714 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dfftw_fftwnd_one" >&5 |
7715 |
> |
$as_echo "$ac_cv_lib_dfftw_fftwnd_one" >&6; } |
7716 |
> |
if test "x$ac_cv_lib_dfftw_fftwnd_one" = xyes; then : |
7717 |
> |
fftw_cv_libdfftw=yes |
7718 |
|
else |
7719 |
< |
qhull_cv_libqhull=no |
7719 |
> |
fftw_cv_libdfftw=no |
7720 |
|
fi |
7721 |
|
|
7722 |
< |
LDFLAGS="$QHULL_OLD_LDFLAGS" |
7723 |
< |
CFLAGS="$QHULL_OLD_CFLAGS" |
7724 |
< |
CPPFLAGS="$QHULL_OLD_CPPFLAGS" |
7725 |
< |
ac_ext=c |
7722 |
> |
ac_fn_c_check_header_mongrel "$LINENO" "dfftw.h" "ac_cv_header_dfftw_h" "$ac_includes_default" |
7723 |
> |
if test "x$ac_cv_header_dfftw_h" = xyes; then : |
7724 |
> |
fftw_cv_dfftw_h=yes |
7725 |
> |
else |
7726 |
> |
fftw_cv_dfftw_h=no |
7727 |
> |
fi |
7728 |
> |
|
7729 |
> |
|
7730 |
> |
fi |
7731 |
> |
fi |
7732 |
> |
ac_ext=c |
7733 |
|
ac_cpp='$CPP $CPPFLAGS' |
7734 |
|
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
7735 |
|
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
7736 |
|
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
7737 |
|
|
7738 |
+ |
if test "$fftw_cv_libfftw3" = "yes" -a "$fftw_cv_fftw3_h" = "yes"; then |
7739 |
|
|
7740 |
< |
if test "$qhull_cv_libqhull" = "yes" -a "$qhull_cv_qhull_h" = "yes"; then |
7740 |
> |
$as_echo "#define HAVE_FFTW3_H 1" >>confdefs.h |
7741 |
|
|
7742 |
< |
$as_echo "#define HAVE_QHULL_H 1" >>confdefs.h |
7742 |
> |
FFTW_INC_DIR="${FFTW_HOME}/include" |
7743 |
> |
FFTW_LIB_DIR="${FFTW_HOME}/lib" |
7744 |
> |
FFTW_LIBS="-lfftw3" |
7745 |
> |
else |
7746 |
> |
if test "$fftw_cv_libfftw" = "yes" -a "$fftw_cv_fftw_h" = "yes"; then |
7747 |
|
|
7748 |
+ |
$as_echo "#define HAVE_FFTW_H 1" >>confdefs.h |
7749 |
|
|
7750 |
< |
$as_echo "#define HAVE_QHULL 1" >>confdefs.h |
7751 |
< |
|
7752 |
< |
USE_QHULL=yes |
9150 |
< |
QHULL_INC_DIR="${QHULL_HOME}/include" |
9151 |
< |
QHULL_LIB_DIR="${QHULL_HOME}/lib" |
9152 |
< |
QHULL="-lqhull" |
9153 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Working qhull found, will proceed." >&5 |
9154 |
< |
$as_echo "Working qhull found, will proceed." >&6; } |
7750 |
> |
FFTW_INC_DIR="${FFTW_HOME}/include" |
7751 |
> |
FFTW_LIB_DIR="${FFTW_HOME}/lib" |
7752 |
> |
FFTW_LIBS="-lfftw" |
7753 |
|
else |
7754 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: " >&5 |
9157 |
< |
$as_echo "$as_me: WARNING: " >&2;} |
9158 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find a working qhull installation" >&5 |
9159 |
< |
$as_echo "$as_me: WARNING: Could not find a working qhull installation" >&2;} |
9160 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: If you need OOPSE to be able to deal with convex " >&5 |
9161 |
< |
$as_echo "$as_me: WARNING: If you need OOPSE to be able to deal with convex " >&2;} |
9162 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: hulls be sure to specify a valid qhull installation " >&5 |
9163 |
< |
$as_echo "$as_me: WARNING: hulls be sure to specify a valid qhull installation " >&2;} |
9164 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: with --with-qhull=DIR " >&5 |
9165 |
< |
$as_echo "$as_me: WARNING: with --with-qhull=DIR " >&2;} |
9166 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: " >&5 |
9167 |
< |
$as_echo "$as_me: WARNING: " >&2;} |
9168 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OOPSE will still work without qhull installed. " >&5 |
9169 |
< |
$as_echo "$as_me: WARNING: OOPSE will still work without qhull installed. " >&2;} |
9170 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: " >&5 |
9171 |
< |
$as_echo "$as_me: WARNING: " >&2;} |
9172 |
< |
fi |
9173 |
< |
fi |
9174 |
< |
fi |
7754 |
> |
if test "$fftw_cv_libdfftw" = "yes" -a "$fftw_cv_dfftw_h" = "yes"; then |
7755 |
|
|
7756 |
+ |
$as_echo "#define HAVE_DFFTW_H 1" >>confdefs.h |
7757 |
|
|
7758 |
+ |
FFTW_INC_DIR="${FFTW_HOME}/include" |
7759 |
+ |
FFTW_LIB_DIR="${FFTW_HOME}/lib" |
7760 |
+ |
FFTW_LIBS="-ldfftw" |
7761 |
+ |
else |
7762 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking fftw in ${FFTW_HOME}" >&5 |
7763 |
+ |
$as_echo_n "checking fftw in ${FFTW_HOME}... " >&6; } |
7764 |
+ |
FFTW_INC_DIR= |
7765 |
+ |
FFTW_LIB_DIR= |
7766 |
+ |
FFTW_LIBS= |
7767 |
+ |
LDFLAGS="$FFTW_OLD_LDFLAGS" |
7768 |
+ |
CFLAGS="$FFTW_OLD_CFLAGS" |
7769 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 |
7770 |
+ |
$as_echo "failed" >&6; } |
7771 |
+ |
echo "" |
7772 |
+ |
echo "*********************************************************" |
7773 |
+ |
echo "* WARNING: Could not find a working FFTW installation *" |
7774 |
+ |
echo "* If you need the staticProps program to be able to *" |
7775 |
+ |
echo "* compute undulation spectra, be sure to specify a *" |
7776 |
+ |
echo "* valid fftw installation with --with-fftw=DIR *" |
7777 |
+ |
echo "* *" |
7778 |
+ |
echo "* OpenMD will still work without fftw installed. *" |
7779 |
+ |
echo "*********************************************************" |
7780 |
+ |
echo "" |
7781 |
+ |
fi |
7782 |
+ |
fi |
7783 |
+ |
fi |
7784 |
|
|
7785 |
|
|
7786 |
|
|
7787 |
+ |
fi |
7788 |
+ |
fi |
7789 |
+ |
fi |
7790 |
+ |
|
7791 |
|
ac_ext=cpp |
7792 |
|
ac_cpp='$CXXCPP $CPPFLAGS' |
7793 |
|
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
7796 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 |
7797 |
|
$as_echo_n "checking how to run the C++ preprocessor... " >&6; } |
7798 |
|
if test -z "$CXXCPP"; then |
7799 |
< |
if test "${ac_cv_prog_CXXCPP+set}" = set; then : |
7799 |
> |
if ${ac_cv_prog_CXXCPP+:} false; then : |
7800 |
|
$as_echo_n "(cached) " >&6 |
7801 |
|
else |
7802 |
|
# Double quotes because CXXCPP needs to be expanded |
7826 |
|
# Broken: fails on valid input. |
7827 |
|
continue |
7828 |
|
fi |
7829 |
< |
rm -f conftest.err conftest.$ac_ext |
7829 |
> |
rm -f conftest.err conftest.i conftest.$ac_ext |
7830 |
|
|
7831 |
|
# OK, works on sane cases. Now check whether nonexistent headers |
7832 |
|
# can be detected and how. |
7842 |
|
ac_preproc_ok=: |
7843 |
|
break |
7844 |
|
fi |
7845 |
< |
rm -f conftest.err conftest.$ac_ext |
7845 |
> |
rm -f conftest.err conftest.i conftest.$ac_ext |
7846 |
|
|
7847 |
|
done |
7848 |
|
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
7849 |
< |
rm -f conftest.err conftest.$ac_ext |
7849 |
> |
rm -f conftest.i conftest.err conftest.$ac_ext |
7850 |
|
if $ac_preproc_ok; then : |
7851 |
|
break |
7852 |
|
fi |
7885 |
|
# Broken: fails on valid input. |
7886 |
|
continue |
7887 |
|
fi |
7888 |
< |
rm -f conftest.err conftest.$ac_ext |
7888 |
> |
rm -f conftest.err conftest.i conftest.$ac_ext |
7889 |
|
|
7890 |
|
# OK, works on sane cases. Now check whether nonexistent headers |
7891 |
|
# can be detected and how. |
7901 |
|
ac_preproc_ok=: |
7902 |
|
break |
7903 |
|
fi |
7904 |
< |
rm -f conftest.err conftest.$ac_ext |
7904 |
> |
rm -f conftest.err conftest.i conftest.$ac_ext |
7905 |
|
|
7906 |
|
done |
7907 |
|
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
7908 |
< |
rm -f conftest.err conftest.$ac_ext |
7908 |
> |
rm -f conftest.i conftest.err conftest.$ac_ext |
7909 |
|
if $ac_preproc_ok; then : |
7910 |
|
|
7911 |
|
else |
7912 |
|
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
7913 |
|
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
7914 |
< |
as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check |
7915 |
< |
See \`config.log' for more details." "$LINENO" 5; } |
7914 |
> |
as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check |
7915 |
> |
See \`config.log' for more details" "$LINENO" 5; } |
7916 |
|
fi |
7917 |
|
|
7918 |
|
ac_ext=cpp |
7925 |
|
# |
7926 |
|
# Handle user hints |
7927 |
|
# |
7928 |
+ |
|
7929 |
+ |
# Check whether --with-qhull was given. |
7930 |
+ |
if test "${with_qhull+set}" = set; then : |
7931 |
+ |
withval=$with_qhull; qhull_dir="$withval" |
7932 |
+ |
else |
7933 |
+ |
qhull_dir="not_set" |
7934 |
+ |
fi |
7935 |
|
|
7936 |
+ |
QHULL_INC_DIR= |
7937 |
+ |
QHULL_LIB_DIR= |
7938 |
+ |
QHULL= |
7939 |
+ |
USE_QHULL=no |
7940 |
+ |
|
7941 |
+ |
if test "$qhull_dir" != "no"; then |
7942 |
+ |
if test "$qhull_dir" != "not_set" ; then |
7943 |
+ |
if test -d "$qhull_dir"; then |
7944 |
+ |
QHULL_HOME="$qhull_dir" |
7945 |
+ |
else |
7946 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Sorry, $qhull_dir does not exist, checking usual places" >&5 |
7947 |
+ |
$as_echo "$as_me: WARNING: Sorry, $qhull_dir does not exist, checking usual places" >&2;} |
7948 |
+ |
QHULL_HOME=/usr/local |
7949 |
+ |
if test ! -f "${QHULL_HOME}/include/qhull/libqhull.h"; then |
7950 |
+ |
QHULL_HOME=/usr |
7951 |
+ |
fi |
7952 |
+ |
fi |
7953 |
+ |
fi |
7954 |
+ |
# |
7955 |
+ |
# Locate qhull, if wanted |
7956 |
+ |
# |
7957 |
+ |
if test -n "${QHULL_HOME}"; then |
7958 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: Checking for qhull in ${QHULL_HOME}" >&5 |
7959 |
+ |
$as_echo "$as_me: Checking for qhull in ${QHULL_HOME}" >&6;} |
7960 |
+ |
|
7961 |
+ |
ac_ext=cpp |
7962 |
+ |
ac_cpp='$CXXCPP $CPPFLAGS' |
7963 |
+ |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
7964 |
+ |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
7965 |
+ |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
7966 |
+ |
|
7967 |
+ |
QHULL_OLD_LDFLAGS=$LDFLAGS |
7968 |
+ |
QHULL_OLD_CXXFLAGS=$CXXFLAGS |
7969 |
+ |
QHULL_OLD_CPPFLAGS=$CPPFLAGS |
7970 |
+ |
LDFLAGS="$LDFLAGS -L${QHULL_HOME}/lib" |
7971 |
+ |
CXXFLAGS="$CXXFLAGS -I${QHULL_HOME}/include" |
7972 |
+ |
CPPFLAGS="$CPPFLAGS -I${QHULL_HOME}/include" |
7973 |
+ |
ac_fn_cxx_check_header_mongrel "$LINENO" "qhull/libqhull.h" "ac_cv_header_qhull_libqhull_h" "$ac_includes_default" |
7974 |
+ |
if test "x$ac_cv_header_qhull_libqhull_h" = xyes; then : |
7975 |
+ |
qhull_cv_libqhull_h=yes |
7976 |
+ |
else |
7977 |
+ |
qhull_cv_libqhull_h=no |
7978 |
+ |
fi |
7979 |
+ |
|
7980 |
+ |
|
7981 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for qh_qhull in -lqhull" >&5 |
7982 |
+ |
$as_echo_n "checking for qh_qhull in -lqhull... " >&6; } |
7983 |
+ |
if ${ac_cv_lib_qhull_qh_qhull+:} false; then : |
7984 |
+ |
$as_echo_n "(cached) " >&6 |
7985 |
+ |
else |
7986 |
+ |
ac_check_lib_save_LIBS=$LIBS |
7987 |
+ |
LIBS="-lqhull $LIBS" |
7988 |
+ |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7989 |
+ |
/* end confdefs.h. */ |
7990 |
+ |
|
7991 |
+ |
/* Override any GCC internal prototype to avoid an error. |
7992 |
+ |
Use char because int might match the return type of a GCC |
7993 |
+ |
builtin and then its argument prototype would still apply. */ |
7994 |
+ |
#ifdef __cplusplus |
7995 |
+ |
extern "C" |
7996 |
+ |
#endif |
7997 |
+ |
char qh_qhull (); |
7998 |
+ |
#ifdef FC_DUMMY_MAIN |
7999 |
+ |
#ifndef FC_DUMMY_MAIN_EQ_F77 |
8000 |
+ |
# ifdef __cplusplus |
8001 |
+ |
extern "C" |
8002 |
+ |
# endif |
8003 |
+ |
int FC_DUMMY_MAIN() { return 1; } |
8004 |
+ |
#endif |
8005 |
+ |
#endif |
8006 |
+ |
int |
8007 |
+ |
main () |
8008 |
+ |
{ |
8009 |
+ |
return qh_qhull (); |
8010 |
+ |
; |
8011 |
+ |
return 0; |
8012 |
+ |
} |
8013 |
+ |
_ACEOF |
8014 |
+ |
if ac_fn_cxx_try_link "$LINENO"; then : |
8015 |
+ |
ac_cv_lib_qhull_qh_qhull=yes |
8016 |
+ |
else |
8017 |
+ |
ac_cv_lib_qhull_qh_qhull=no |
8018 |
+ |
fi |
8019 |
+ |
rm -f core conftest.err conftest.$ac_objext \ |
8020 |
+ |
conftest$ac_exeext conftest.$ac_ext |
8021 |
+ |
LIBS=$ac_check_lib_save_LIBS |
8022 |
+ |
fi |
8023 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_qhull_qh_qhull" >&5 |
8024 |
+ |
$as_echo "$ac_cv_lib_qhull_qh_qhull" >&6; } |
8025 |
+ |
if test "x$ac_cv_lib_qhull_qh_qhull" = xyes; then : |
8026 |
+ |
qhull_cv_libqhull=yes |
8027 |
+ |
else |
8028 |
+ |
qhull_cv_libqhull=no |
8029 |
+ |
fi |
8030 |
+ |
|
8031 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for qh_qhull in -lqhull6" >&5 |
8032 |
+ |
$as_echo_n "checking for qh_qhull in -lqhull6... " >&6; } |
8033 |
+ |
if ${ac_cv_lib_qhull6_qh_qhull+:} false; then : |
8034 |
+ |
$as_echo_n "(cached) " >&6 |
8035 |
+ |
else |
8036 |
+ |
ac_check_lib_save_LIBS=$LIBS |
8037 |
+ |
LIBS="-lqhull6 $LIBS" |
8038 |
+ |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8039 |
+ |
/* end confdefs.h. */ |
8040 |
+ |
|
8041 |
+ |
/* Override any GCC internal prototype to avoid an error. |
8042 |
+ |
Use char because int might match the return type of a GCC |
8043 |
+ |
builtin and then its argument prototype would still apply. */ |
8044 |
+ |
#ifdef __cplusplus |
8045 |
+ |
extern "C" |
8046 |
+ |
#endif |
8047 |
+ |
char qh_qhull (); |
8048 |
+ |
#ifdef FC_DUMMY_MAIN |
8049 |
+ |
#ifndef FC_DUMMY_MAIN_EQ_F77 |
8050 |
+ |
# ifdef __cplusplus |
8051 |
+ |
extern "C" |
8052 |
+ |
# endif |
8053 |
+ |
int FC_DUMMY_MAIN() { return 1; } |
8054 |
+ |
#endif |
8055 |
+ |
#endif |
8056 |
+ |
int |
8057 |
+ |
main () |
8058 |
+ |
{ |
8059 |
+ |
return qh_qhull (); |
8060 |
+ |
; |
8061 |
+ |
return 0; |
8062 |
+ |
} |
8063 |
+ |
_ACEOF |
8064 |
+ |
if ac_fn_cxx_try_link "$LINENO"; then : |
8065 |
+ |
ac_cv_lib_qhull6_qh_qhull=yes |
8066 |
+ |
else |
8067 |
+ |
ac_cv_lib_qhull6_qh_qhull=no |
8068 |
+ |
fi |
8069 |
+ |
rm -f core conftest.err conftest.$ac_objext \ |
8070 |
+ |
conftest$ac_exeext conftest.$ac_ext |
8071 |
+ |
LIBS=$ac_check_lib_save_LIBS |
8072 |
+ |
fi |
8073 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_qhull6_qh_qhull" >&5 |
8074 |
+ |
$as_echo "$ac_cv_lib_qhull6_qh_qhull" >&6; } |
8075 |
+ |
if test "x$ac_cv_lib_qhull6_qh_qhull" = xyes; then : |
8076 |
+ |
qhull_cv_libqhull6=yes |
8077 |
+ |
else |
8078 |
+ |
qhull_cv_libqhull6=no |
8079 |
+ |
fi |
8080 |
+ |
|
8081 |
+ |
LDFLAGS="$QHULL_OLD_LDFLAGS" |
8082 |
+ |
CXXFLAGS="$QHULL_OLD_CXXFLAGS" |
8083 |
+ |
CPPFLAGS="$QHULL_OLD_CPPFLAGS" |
8084 |
+ |
ac_ext=c |
8085 |
+ |
ac_cpp='$CPP $CPPFLAGS' |
8086 |
+ |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
8087 |
+ |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
8088 |
+ |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
8089 |
+ |
|
8090 |
+ |
|
8091 |
+ |
if test "$qhull_cv_libqhull_h" = "yes" -a "$qhull_cv_libqhull" = "yes" -o "$qhull_cv_libqhull6" = "yes"; then |
8092 |
+ |
|
8093 |
+ |
$as_echo "#define HAVE_LIBQHULL_H 1" >>confdefs.h |
8094 |
+ |
|
8095 |
+ |
if test "$qhull_cv_libqhull" = "yes"; then |
8096 |
+ |
|
8097 |
+ |
$as_echo "#define HAVE_QHULL 1" >>confdefs.h |
8098 |
+ |
|
8099 |
+ |
QHULL="-lqhull" |
8100 |
+ |
fi |
8101 |
+ |
if test "$qhull_cv_libqhull6" = "yes"; then |
8102 |
+ |
|
8103 |
+ |
$as_echo "#define HAVE_QHULL 1" >>confdefs.h |
8104 |
+ |
|
8105 |
+ |
QHULL="-lqhull6" |
8106 |
+ |
fi |
8107 |
+ |
USE_QHULL=yes |
8108 |
+ |
QHULL_INC_DIR="${QHULL_HOME}/include" |
8109 |
+ |
QHULL_LIB_DIR="${QHULL_HOME}/lib" |
8110 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Working qhull found, will proceed." >&5 |
8111 |
+ |
$as_echo "Working qhull found, will proceed." >&6; } |
8112 |
+ |
else |
8113 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: " >&5 |
8114 |
+ |
$as_echo "$as_me: WARNING: " >&2;} |
8115 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find a working qhull installation" >&5 |
8116 |
+ |
$as_echo "$as_me: WARNING: Could not find a working qhull installation" >&2;} |
8117 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: If you need OpenMD to be able to deal with convex " >&5 |
8118 |
+ |
$as_echo "$as_me: WARNING: If you need OpenMD to be able to deal with convex " >&2;} |
8119 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: hulls be sure to specify a valid qhull installation " >&5 |
8120 |
+ |
$as_echo "$as_me: WARNING: hulls be sure to specify a valid qhull installation " >&2;} |
8121 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: with --with-qhull=DIR " >&5 |
8122 |
+ |
$as_echo "$as_me: WARNING: with --with-qhull=DIR " >&2;} |
8123 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: " >&5 |
8124 |
+ |
$as_echo "$as_me: WARNING: " >&2;} |
8125 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OpenMD will still work without qhull installed. " >&5 |
8126 |
+ |
$as_echo "$as_me: WARNING: OpenMD will still work without qhull installed. " >&2;} |
8127 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: " >&5 |
8128 |
+ |
$as_echo "$as_me: WARNING: " >&2;} |
8129 |
+ |
fi |
8130 |
+ |
fi |
8131 |
+ |
fi |
8132 |
+ |
|
8133 |
+ |
|
8134 |
+ |
|
8135 |
+ |
|
8136 |
+ |
|
8137 |
+ |
# |
8138 |
+ |
# Handle user hints |
8139 |
+ |
# |
8140 |
+ |
|
8141 |
|
# Check whether --with-openbabel was given. |
8142 |
|
if test "${with_openbabel+set}" = set; then : |
8143 |
|
withval=$with_openbabel; openbabel_dir="$withval" |
8178 |
|
LDFLAGS="$LDFLAGS -L${OPENBABEL_HOME}/lib -lopenbabel" |
8179 |
|
CPPFLAGS="$CPPFLAGS -I${OPENBABEL_HOME}/include/openbabel-2.0" |
8180 |
|
ac_fn_cxx_check_header_mongrel "$LINENO" "openbabel/babelconfig.h" "ac_cv_header_openbabel_babelconfig_h" "$ac_includes_default" |
8181 |
< |
if test "x$ac_cv_header_openbabel_babelconfig_h" = x""yes; then : |
8181 |
> |
if test "x$ac_cv_header_openbabel_babelconfig_h" = xyes; then : |
8182 |
|
openbabel_cv_openbabel_h=yes |
8183 |
|
else |
8184 |
|
openbabel_cv_openbabel_h=no |
8186 |
|
|
8187 |
|
|
8188 |
|
ac_fn_cxx_check_header_mongrel "$LINENO" "openbabel/obconversion.h" "ac_cv_header_openbabel_obconversion_h" "$ac_includes_default" |
8189 |
< |
if test "x$ac_cv_header_openbabel_obconversion_h" = x""yes; then : |
8189 |
> |
if test "x$ac_cv_header_openbabel_obconversion_h" = xyes; then : |
8190 |
|
openbabel_cv_obconversion_h=yes |
8191 |
|
else |
8192 |
|
openbabel_cv_obconversion_h=no |
8263 |
|
echo "" |
8264 |
|
echo "*********************************************************" |
8265 |
|
echo "* WARNING: Could not find a working openbabel-2.x *" |
8266 |
< |
echo "* installation If you need OOPSE to be able to convert *" |
8266 |
> |
echo "* installation If you need OpenMD to be able to convert *" |
8267 |
|
echo "* xyz or pdb files you need to specify a valid *" |
8268 |
|
echo "* openbabel-2.x installation with --with-openbabel=DIR *" |
8269 |
|
echo "* *" |
8270 |
< |
echo "* OOPSE will still work without openbabel installed. *" |
8270 |
> |
echo "* OpenMD will still work without openbabel installed. *" |
8271 |
|
echo "*********************************************************" |
8272 |
|
echo "" |
8273 |
|
fi |
8282 |
|
# Checks for header files. |
8283 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
8284 |
|
$as_echo_n "checking for ANSI C header files... " >&6; } |
8285 |
< |
if test "${ac_cv_header_stdc+set}" = set; then : |
8285 |
> |
if ${ac_cv_header_stdc+:} false; then : |
8286 |
|
$as_echo_n "(cached) " >&6 |
8287 |
|
else |
8288 |
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8404 |
|
do : |
8405 |
|
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
8406 |
|
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
8407 |
< |
eval as_val=\$$as_ac_Header |
9585 |
< |
if test "x$as_val" = x""yes; then : |
8407 |
> |
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
8408 |
|
cat >>confdefs.h <<_ACEOF |
8409 |
|
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
8410 |
|
_ACEOF |
8417 |
|
# Checks for typedefs, structures, and compiler characteristics. |
8418 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5 |
8419 |
|
$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; } |
8420 |
< |
if test "${ac_cv_header_stdbool_h+set}" = set; then : |
8420 |
> |
if ${ac_cv_header_stdbool_h+:} false; then : |
8421 |
|
$as_echo_n "(cached) " >&6 |
8422 |
|
else |
8423 |
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8449 |
|
char b[false == 0 ? 1 : -1]; |
8450 |
|
char c[__bool_true_false_are_defined == 1 ? 1 : -1]; |
8451 |
|
char d[(bool) 0.5 == true ? 1 : -1]; |
8452 |
< |
bool e = &s; |
8452 |
> |
/* See body of main program for 'e'. */ |
8453 |
|
char f[(_Bool) 0.0 == false ? 1 : -1]; |
8454 |
|
char g[true]; |
8455 |
|
char h[sizeof (_Bool)]; |
8460 |
|
_Bool n[m]; |
8461 |
|
char o[sizeof n == m * sizeof n[0] ? 1 : -1]; |
8462 |
|
char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1]; |
9641 |
– |
# if defined __xlc__ || defined __GNUC__ |
9642 |
– |
/* Catch a bug in IBM AIX xlc compiler version 6.0.0.0 |
9643 |
– |
reported by James Lemley on 2005-10-05; see |
9644 |
– |
http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html |
9645 |
– |
This test is not quite right, since xlc is allowed to |
9646 |
– |
reject this program, as the initializer for xlcbug is |
9647 |
– |
not one of the forms that C requires support for. |
9648 |
– |
However, doing the test right would require a runtime |
9649 |
– |
test, and that would make cross-compilation harder. |
9650 |
– |
Let us hope that IBM fixes the xlc bug, and also adds |
9651 |
– |
support for this kind of constant expression. In the |
9652 |
– |
meantime, this test will reject xlc, which is OK, since |
9653 |
– |
our stdbool.h substitute should suffice. We also test |
9654 |
– |
this with GCC, where it should work, to detect more |
9655 |
– |
quickly whether someone messes up the test in the |
9656 |
– |
future. */ |
9657 |
– |
char digs[] = "0123456789"; |
9658 |
– |
int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1); |
9659 |
– |
# endif |
8463 |
|
/* Catch a bug in an HP-UX C compiler. See |
8464 |
|
http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html |
8465 |
|
http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html |
8479 |
|
main () |
8480 |
|
{ |
8481 |
|
|
8482 |
+ |
bool e = &s; |
8483 |
|
*pq |= q; |
8484 |
|
*pq |= ! q; |
8485 |
|
/* Refer to every declared value, to avoid compiler optimizations. */ |
8500 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5 |
8501 |
|
$as_echo "$ac_cv_header_stdbool_h" >&6; } |
8502 |
|
ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default" |
8503 |
< |
if test "x$ac_cv_type__Bool" = x""yes; then : |
8503 |
> |
if test "x$ac_cv_type__Bool" = xyes; then : |
8504 |
|
|
8505 |
|
cat >>confdefs.h <<_ACEOF |
8506 |
|
#define HAVE__BOOL 1 |
8517 |
|
|
8518 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 |
8519 |
|
$as_echo_n "checking for an ANSI C-conforming const... " >&6; } |
8520 |
< |
if test "${ac_cv_c_const+set}" = set; then : |
8520 |
> |
if ${ac_cv_c_const+:} false; then : |
8521 |
|
$as_echo_n "(cached) " >&6 |
8522 |
|
else |
8523 |
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8605 |
|
|
8606 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 |
8607 |
|
$as_echo_n "checking for inline... " >&6; } |
8608 |
< |
if test "${ac_cv_c_inline+set}" = set; then : |
8608 |
> |
if ${ac_cv_c_inline+:} false; then : |
8609 |
|
$as_echo_n "(cached) " >&6 |
8610 |
|
else |
8611 |
|
ac_cv_c_inline=no |
8646 |
|
esac |
8647 |
|
|
8648 |
|
ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" |
8649 |
< |
if test "x$ac_cv_type_size_t" = x""yes; then : |
8649 |
> |
if test "x$ac_cv_type_size_t" = xyes; then : |
8650 |
|
|
8651 |
|
else |
8652 |
|
|
8658 |
|
|
8659 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 |
8660 |
|
$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } |
8661 |
< |
if test "${ac_cv_header_time+set}" = set; then : |
8661 |
> |
if ${ac_cv_header_time+:} false; then : |
8662 |
|
$as_echo_n "(cached) " >&6 |
8663 |
|
else |
8664 |
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8704 |
|
for ac_header in stdlib.h |
8705 |
|
do : |
8706 |
|
ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default" |
8707 |
< |
if test "x$ac_cv_header_stdlib_h" = x""yes; then : |
8707 |
> |
if test "x$ac_cv_header_stdlib_h" = xyes; then : |
8708 |
|
cat >>confdefs.h <<_ACEOF |
8709 |
|
#define HAVE_STDLIB_H 1 |
8710 |
|
_ACEOF |
8715 |
|
|
8716 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5 |
8717 |
|
$as_echo_n "checking for GNU libc compatible malloc... " >&6; } |
8718 |
< |
if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then : |
8718 |
> |
if ${ac_cv_func_malloc_0_nonnull+:} false; then : |
8719 |
|
$as_echo_n "(cached) " >&6 |
8720 |
|
else |
8721 |
|
if test "$cross_compiling" = yes; then : |
8779 |
|
for ac_header in stdlib.h |
8780 |
|
do : |
8781 |
|
ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default" |
8782 |
< |
if test "x$ac_cv_header_stdlib_h" = x""yes; then : |
8782 |
> |
if test "x$ac_cv_header_stdlib_h" = xyes; then : |
8783 |
|
cat >>confdefs.h <<_ACEOF |
8784 |
|
#define HAVE_STDLIB_H 1 |
8785 |
|
_ACEOF |
8790 |
|
|
8791 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5 |
8792 |
|
$as_echo_n "checking for GNU libc compatible realloc... " >&6; } |
8793 |
< |
if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then : |
8793 |
> |
if ${ac_cv_func_realloc_0_nonnull+:} false; then : |
8794 |
|
$as_echo_n "(cached) " >&6 |
8795 |
|
else |
8796 |
|
if test "$cross_compiling" = yes; then : |
8855 |
|
do : |
8856 |
|
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
8857 |
|
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
8858 |
< |
eval as_val=\$$as_ac_Header |
10055 |
< |
if test "x$as_val" = x""yes; then : |
8858 |
> |
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
8859 |
|
cat >>confdefs.h <<_ACEOF |
8860 |
|
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
8861 |
|
_ACEOF |
8866 |
|
|
8867 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5 |
8868 |
|
$as_echo_n "checking types of arguments for select... " >&6; } |
8869 |
< |
if test "${ac_cv_func_select_args+set}" = set; then : |
8869 |
> |
if ${ac_cv_func_select_args+:} false; then : |
8870 |
|
$as_echo_n "(cached) " >&6 |
8871 |
|
else |
8872 |
|
for ac_arg234 in 'fd_set *' 'int *' 'void *'; do |
8908 |
|
done |
8909 |
|
done |
8910 |
|
# Provide a safe default value. |
8911 |
< |
: ${ac_cv_func_select_args='int,int *,struct timeval *'} |
8911 |
> |
: "${ac_cv_func_select_args=int,int *,struct timeval *}" |
8912 |
|
|
8913 |
|
fi |
8914 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5 |
8936 |
|
|
8937 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5 |
8938 |
|
$as_echo_n "checking for working strtod... " >&6; } |
8939 |
< |
if test "${ac_cv_func_strtod+set}" = set; then : |
8939 |
> |
if ${ac_cv_func_strtod+:} false; then : |
8940 |
|
$as_echo_n "(cached) " >&6 |
8941 |
|
else |
8942 |
|
if test "$cross_compiling" = yes; then : |
8995 |
|
esac |
8996 |
|
|
8997 |
|
ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow" |
8998 |
< |
if test "x$ac_cv_func_pow" = x""yes; then : |
8998 |
> |
if test "x$ac_cv_func_pow" = xyes; then : |
8999 |
|
|
9000 |
|
fi |
9001 |
|
|
9002 |
|
if test $ac_cv_func_pow = no; then |
9003 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5 |
9004 |
|
$as_echo_n "checking for pow in -lm... " >&6; } |
9005 |
< |
if test "${ac_cv_lib_m_pow+set}" = set; then : |
9005 |
> |
if ${ac_cv_lib_m_pow+:} false; then : |
9006 |
|
$as_echo_n "(cached) " >&6 |
9007 |
|
else |
9008 |
|
ac_check_lib_save_LIBS=$LIBS |
9044 |
|
fi |
9045 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5 |
9046 |
|
$as_echo "$ac_cv_lib_m_pow" >&6; } |
9047 |
< |
if test "x$ac_cv_lib_m_pow" = x""yes; then : |
9047 |
> |
if test "x$ac_cv_lib_m_pow" = xyes; then : |
9048 |
|
POW_LIB=-lm |
9049 |
|
else |
9050 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5 |
9059 |
|
do : |
9060 |
|
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
9061 |
|
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
9062 |
< |
eval as_val=\$$as_ac_var |
10260 |
< |
if test "x$as_val" = x""yes; then : |
9062 |
> |
if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
9063 |
|
cat >>confdefs.h <<_ACEOF |
9064 |
|
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
9065 |
|
_ACEOF |
9116 |
|
# Try to determine "good" native compiler flags if none specified on command |
9117 |
|
# line |
9118 |
|
|
9119 |
< |
if test "$ac_test_FFLAGS" != "set"; then |
9119 |
> |
if test "$ac_test_FCFLAGS" != "set"; then |
9120 |
|
FCFLAGS="" |
9121 |
|
case "${host_cpu}-${host_os}" in |
9122 |
|
|
9165 |
|
|
9166 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${FC} accepts ${FCFLAGS}" >&5 |
9167 |
|
$as_echo_n "checking whether ${FC} accepts ${FCFLAGS}... " >&6; } |
9168 |
< |
if test "${ac_cv_ac_cv_guessed_f90flags+set}" = set; then : |
9168 |
> |
if ${ac_cv_ac_cv_guessed_f90flags+:} false; then : |
9169 |
|
$as_echo_n "(cached) " >&6 |
9170 |
|
else |
9171 |
|
|
9226 |
|
|
9227 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are *really* using GNU cc" >&5 |
9228 |
|
$as_echo_n "checking whether we are *really* using GNU cc... " >&6; } |
9229 |
< |
if test "${ac_cv_prog_really_gcc+set}" = set; then : |
9229 |
> |
if ${ac_cv_prog_really_gcc+:} false; then : |
9230 |
|
$as_echo_n "(cached) " >&6 |
9231 |
|
else |
9232 |
|
|
9331 |
|
|
9332 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts ${CFLAGS}" >&5 |
9333 |
|
$as_echo_n "checking whether ${CC} accepts ${CFLAGS}... " >&6; } |
9334 |
< |
if test "${ac_cv_ac_cv_guessed_cflags+set}" = set; then : |
9334 |
> |
if ${ac_cv_ac_cv_guessed_cflags+:} false; then : |
9335 |
|
$as_echo_n "(cached) " >&6 |
9336 |
|
else |
9337 |
|
echo 'void f(){}' > conftest.c |
9373 |
|
|
9374 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are *really* using GNU c++" >&5 |
9375 |
|
$as_echo_n "checking whether we are *really* using GNU c++... " >&6; } |
9376 |
< |
if test "${ac_cv_prog_really_gxx+set}" = set; then : |
9376 |
> |
if ${ac_cv_prog_really_gxx+:} false; then : |
9377 |
|
$as_echo_n "(cached) " >&6 |
9378 |
|
else |
9379 |
|
|
9469 |
|
|
9470 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts ${CXXFLAGS}" >&5 |
9471 |
|
$as_echo_n "checking whether ${CXX} accepts ${CXXFLAGS}... " >&6; } |
9472 |
< |
if test "${ac_cv_ac_cv_guessed_cxxflags+set}" = set; then : |
9472 |
> |
if ${ac_cv_ac_cv_guessed_cxxflags+:} false; then : |
9473 |
|
$as_echo_n "(cached) " >&6 |
9474 |
|
else |
9475 |
|
echo 'void f(){}' > conftest.cpp |
9505 |
|
|
9506 |
|
;; |
9507 |
|
esac |
10706 |
– |
|
10707 |
– |
|
10708 |
– |
acx_cgal_found=no |
10709 |
– |
|
10710 |
– |
# Check whether --with-cgalmakefile was given. |
10711 |
– |
if test "${with_cgalmakefile+set}" = set; then : |
10712 |
– |
withval=$with_cgalmakefile; |
10713 |
– |
fi |
10714 |
– |
|
10715 |
– |
case $with_cgalmakefile in |
10716 |
– |
yes | "") ;; |
10717 |
– |
no) acx_cgal_found=disable ;; |
10718 |
– |
-* | */* | *.a | *.so | *.so.* | *.o) CGAL_MAKEFILE="$with_cgalmakefile" ;; |
10719 |
– |
*) CGAL_MAKEFILE="$with_cgalmakefile" ;; |
10720 |
– |
esac |
10721 |
– |
|
10722 |
– |
if test "$acx_cgal_found" == no; then |
10723 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CGAL_MAKEFILE" >&5 |
10724 |
– |
$as_echo_n "checking CGAL_MAKEFILE... " >&6; } |
10725 |
– |
|
10726 |
– |
if test \! -z "$CGAL_MAKEFILE"; then |
10727 |
– |
|
10728 |
– |
if test -e "$CGAL_MAKEFILE"; then |
10729 |
– |
tname=`mktemp /tmp/cgal_makefile_dsrXXXXXX` |
9508 |
|
|
10731 |
– |
cat > $tname << _ACEOF |
10732 |
– |
include $CGAL_MAKEFILE |
9509 |
|
|
10734 |
– |
cppflags: |
10735 |
– |
@echo \$(CGAL_CXXFLAGS) |
10736 |
– |
|
10737 |
– |
cxxflags: |
10738 |
– |
@echo |
10739 |
– |
ldflags: |
10740 |
– |
@echo \$(CGAL_LDFLAGS) |
10741 |
– |
_ACEOF |
10742 |
– |
CGAL_CPPFLAGS="`make -s -f $tname cppflags`" |
10743 |
– |
CGAL_CXXFLAGS="`make -s -f $tname cxxflags`" |
10744 |
– |
CGAL_LDFLAGST="`make -s -f $tname ldflags`" |
10745 |
– |
for i in $CGAL_LDFLAGST; do |
10746 |
– |
if test `echo $i| grep -c ^-l`; then |
10747 |
– |
CGAL_LIBS="$CGAL_LIBS $i" |
10748 |
– |
else |
10749 |
– |
CGAL_LDFLAGS="$CGAL_LDFLAGS $i" |
10750 |
– |
fi |
10751 |
– |
done |
10752 |
– |
rm -f $tname |
10753 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10754 |
– |
$as_echo "yes" >&6; } |
10755 |
– |
acx_cgal_found=yes |
10756 |
– |
else |
10757 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: invalid" >&5 |
10758 |
– |
$as_echo "invalid" >&6; } |
10759 |
– |
as_fn_error "CGAL_MAKEFILE defined, but the makefile does not exist." "$LINENO" 5 |
10760 |
– |
fi |
10761 |
– |
else |
10762 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not defined" >&5 |
10763 |
– |
$as_echo "not defined" >&6; } |
10764 |
– |
fi |
10765 |
– |
fi |
10766 |
– |
|
10767 |
– |
if test "$acx_cgal_found" == no; then |
10768 |
– |
ac_fn_c_check_header_mongrel "$LINENO" "CGAL/Exact_predicates_inexact_constructions_kernel.h" "ac_cv_header_CGAL_Exact_predicates_inexact_constructions_kernel_h" "$ac_includes_default" |
10769 |
– |
if test "x$ac_cv_header_CGAL_Exact_predicates_inexact_constructions_kernel_h" = x""yes; then : |
10770 |
– |
cgal_have_header=yes |
10771 |
– |
else |
10772 |
– |
cgal_have_header=no |
10773 |
– |
fi |
10774 |
– |
|
10775 |
– |
|
10776 |
– |
if test "$cgal_have_header" == yes; then |
10777 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lCGAL" >&5 |
10778 |
– |
$as_echo_n "checking for main in -lCGAL... " >&6; } |
10779 |
– |
if test "${ac_cv_lib_CGAL_main+set}" = set; then : |
10780 |
– |
$as_echo_n "(cached) " >&6 |
10781 |
– |
else |
10782 |
– |
ac_check_lib_save_LIBS=$LIBS |
10783 |
– |
LIBS="-lCGAL $LIBS" |
10784 |
– |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
10785 |
– |
/* end confdefs.h. */ |
10786 |
– |
|
10787 |
– |
|
10788 |
– |
#ifdef FC_DUMMY_MAIN |
10789 |
– |
#ifndef FC_DUMMY_MAIN_EQ_F77 |
10790 |
– |
# ifdef __cplusplus |
10791 |
– |
extern "C" |
10792 |
– |
# endif |
10793 |
– |
int FC_DUMMY_MAIN() { return 1; } |
10794 |
– |
#endif |
10795 |
– |
#endif |
10796 |
– |
int |
10797 |
– |
main () |
10798 |
– |
{ |
10799 |
– |
return main (); |
10800 |
– |
; |
10801 |
– |
return 0; |
10802 |
– |
} |
10803 |
– |
_ACEOF |
10804 |
– |
if ac_fn_c_try_link "$LINENO"; then : |
10805 |
– |
ac_cv_lib_CGAL_main=yes |
10806 |
– |
else |
10807 |
– |
ac_cv_lib_CGAL_main=no |
10808 |
– |
fi |
10809 |
– |
rm -f core conftest.err conftest.$ac_objext \ |
10810 |
– |
conftest$ac_exeext conftest.$ac_ext |
10811 |
– |
LIBS=$ac_check_lib_save_LIBS |
10812 |
– |
fi |
10813 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_CGAL_main" >&5 |
10814 |
– |
$as_echo "$ac_cv_lib_CGAL_main" >&6; } |
10815 |
– |
if test "x$ac_cv_lib_CGAL_main" = x""yes; then : |
10816 |
– |
cgal_have_lib=yes |
10817 |
– |
else |
10818 |
– |
cgal_have_lib=no |
10819 |
– |
fi |
10820 |
– |
|
10821 |
– |
if test "$cgal_have_lib" == no; then |
10822 |
– |
save_LIBS="$LIBS"; LIBS="$LIBS -lgmp -lmpfr -lm" |
10823 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lCGAL" >&5 |
10824 |
– |
$as_echo_n "checking for main in -lCGAL... " >&6; } |
10825 |
– |
if test "${ac_cv_lib_CGAL_main+set}" = set; then : |
10826 |
– |
$as_echo_n "(cached) " >&6 |
10827 |
– |
else |
10828 |
– |
ac_check_lib_save_LIBS=$LIBS |
10829 |
– |
LIBS="-lCGAL $LIBS" |
10830 |
– |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
10831 |
– |
/* end confdefs.h. */ |
10832 |
– |
|
10833 |
– |
|
10834 |
– |
#ifdef FC_DUMMY_MAIN |
10835 |
– |
#ifndef FC_DUMMY_MAIN_EQ_F77 |
10836 |
– |
# ifdef __cplusplus |
10837 |
– |
extern "C" |
10838 |
– |
# endif |
10839 |
– |
int FC_DUMMY_MAIN() { return 1; } |
10840 |
– |
#endif |
10841 |
– |
#endif |
10842 |
– |
int |
10843 |
– |
main () |
10844 |
– |
{ |
10845 |
– |
return main (); |
10846 |
– |
; |
10847 |
– |
return 0; |
10848 |
– |
} |
10849 |
– |
_ACEOF |
10850 |
– |
if ac_fn_c_try_link "$LINENO"; then : |
10851 |
– |
ac_cv_lib_CGAL_main=yes |
10852 |
– |
else |
10853 |
– |
ac_cv_lib_CGAL_main=no |
10854 |
– |
fi |
10855 |
– |
rm -f core conftest.err conftest.$ac_objext \ |
10856 |
– |
conftest$ac_exeext conftest.$ac_ext |
10857 |
– |
LIBS=$ac_check_lib_save_LIBS |
10858 |
– |
fi |
10859 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_CGAL_main" >&5 |
10860 |
– |
$as_echo "$ac_cv_lib_CGAL_main" >&6; } |
10861 |
– |
if test "x$ac_cv_lib_CGAL_main" = x""yes; then : |
10862 |
– |
CGAL_LIBS="-lCGAL -lgmp -lmpfr" |
10863 |
– |
cgal_have_lib=yes |
10864 |
– |
else |
10865 |
– |
cgal_have_lib=no |
10866 |
– |
fi |
10867 |
– |
|
10868 |
– |
LIBS="$save_LIBS" |
10869 |
– |
else |
10870 |
– |
CGAL_LIBS="-lCGAL" |
10871 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lmpfr" >&5 |
10872 |
– |
$as_echo_n "checking for main in -lmpfr... " >&6; } |
10873 |
– |
if test "${ac_cv_lib_mpfr_main+set}" = set; then : |
10874 |
– |
$as_echo_n "(cached) " >&6 |
10875 |
– |
else |
10876 |
– |
ac_check_lib_save_LIBS=$LIBS |
10877 |
– |
LIBS="-lmpfr $LIBS" |
10878 |
– |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
10879 |
– |
/* end confdefs.h. */ |
10880 |
– |
|
10881 |
– |
|
10882 |
– |
#ifdef FC_DUMMY_MAIN |
10883 |
– |
#ifndef FC_DUMMY_MAIN_EQ_F77 |
10884 |
– |
# ifdef __cplusplus |
10885 |
– |
extern "C" |
10886 |
– |
# endif |
10887 |
– |
int FC_DUMMY_MAIN() { return 1; } |
10888 |
– |
#endif |
10889 |
– |
#endif |
10890 |
– |
int |
10891 |
– |
main () |
10892 |
– |
{ |
10893 |
– |
return main (); |
10894 |
– |
; |
10895 |
– |
return 0; |
10896 |
– |
} |
10897 |
– |
_ACEOF |
10898 |
– |
if ac_fn_c_try_link "$LINENO"; then : |
10899 |
– |
ac_cv_lib_mpfr_main=yes |
10900 |
– |
else |
10901 |
– |
ac_cv_lib_mpfr_main=no |
10902 |
– |
fi |
10903 |
– |
rm -f core conftest.err conftest.$ac_objext \ |
10904 |
– |
conftest$ac_exeext conftest.$ac_ext |
10905 |
– |
LIBS=$ac_check_lib_save_LIBS |
10906 |
– |
fi |
10907 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpfr_main" >&5 |
10908 |
– |
$as_echo "$ac_cv_lib_mpfr_main" >&6; } |
10909 |
– |
if test "x$ac_cv_lib_mpfr_main" = x""yes; then : |
10910 |
– |
CGAL_LIBS="$CGAL_LIBS -lmpfr" |
10911 |
– |
fi |
10912 |
– |
|
10913 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lgmp" >&5 |
10914 |
– |
$as_echo_n "checking for main in -lgmp... " >&6; } |
10915 |
– |
if test "${ac_cv_lib_gmp_main+set}" = set; then : |
10916 |
– |
$as_echo_n "(cached) " >&6 |
10917 |
– |
else |
10918 |
– |
ac_check_lib_save_LIBS=$LIBS |
10919 |
– |
LIBS="-lgmp $LIBS" |
10920 |
– |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
10921 |
– |
/* end confdefs.h. */ |
10922 |
– |
|
10923 |
– |
|
10924 |
– |
#ifdef FC_DUMMY_MAIN |
10925 |
– |
#ifndef FC_DUMMY_MAIN_EQ_F77 |
10926 |
– |
# ifdef __cplusplus |
10927 |
– |
extern "C" |
10928 |
– |
# endif |
10929 |
– |
int FC_DUMMY_MAIN() { return 1; } |
10930 |
– |
#endif |
10931 |
– |
#endif |
10932 |
– |
int |
10933 |
– |
main () |
10934 |
– |
{ |
10935 |
– |
return main (); |
10936 |
– |
; |
10937 |
– |
return 0; |
10938 |
– |
} |
10939 |
– |
_ACEOF |
10940 |
– |
if ac_fn_c_try_link "$LINENO"; then : |
10941 |
– |
ac_cv_lib_gmp_main=yes |
10942 |
– |
else |
10943 |
– |
ac_cv_lib_gmp_main=no |
10944 |
– |
fi |
10945 |
– |
rm -f core conftest.err conftest.$ac_objext \ |
10946 |
– |
conftest$ac_exeext conftest.$ac_ext |
10947 |
– |
LIBS=$ac_check_lib_save_LIBS |
10948 |
– |
fi |
10949 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gmp_main" >&5 |
10950 |
– |
$as_echo "$ac_cv_lib_gmp_main" >&6; } |
10951 |
– |
if test "x$ac_cv_lib_gmp_main" = x""yes; then : |
10952 |
– |
CGAL_LIBS="$CGAL_LIBS -lgmp" |
10953 |
– |
fi |
10954 |
– |
|
10955 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lgmpxx" >&5 |
10956 |
– |
$as_echo_n "checking for main in -lgmpxx... " >&6; } |
10957 |
– |
if test "${ac_cv_lib_gmpxx_main+set}" = set; then : |
10958 |
– |
$as_echo_n "(cached) " >&6 |
10959 |
– |
else |
10960 |
– |
ac_check_lib_save_LIBS=$LIBS |
10961 |
– |
LIBS="-lgmpxx $LIBS" |
10962 |
– |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
10963 |
– |
/* end confdefs.h. */ |
10964 |
– |
|
10965 |
– |
|
10966 |
– |
#ifdef FC_DUMMY_MAIN |
10967 |
– |
#ifndef FC_DUMMY_MAIN_EQ_F77 |
10968 |
– |
# ifdef __cplusplus |
10969 |
– |
extern "C" |
10970 |
– |
# endif |
10971 |
– |
int FC_DUMMY_MAIN() { return 1; } |
10972 |
– |
#endif |
10973 |
– |
#endif |
10974 |
– |
int |
10975 |
– |
main () |
10976 |
– |
{ |
10977 |
– |
return main (); |
10978 |
– |
; |
10979 |
– |
return 0; |
10980 |
– |
} |
10981 |
– |
_ACEOF |
10982 |
– |
if ac_fn_c_try_link "$LINENO"; then : |
10983 |
– |
ac_cv_lib_gmpxx_main=yes |
10984 |
– |
else |
10985 |
– |
ac_cv_lib_gmpxx_main=no |
10986 |
– |
fi |
10987 |
– |
rm -f core conftest.err conftest.$ac_objext \ |
10988 |
– |
conftest$ac_exeext conftest.$ac_ext |
10989 |
– |
LIBS=$ac_check_lib_save_LIBS |
10990 |
– |
fi |
10991 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gmpxx_main" >&5 |
10992 |
– |
$as_echo "$ac_cv_lib_gmpxx_main" >&6; } |
10993 |
– |
if test "x$ac_cv_lib_gmpxx_main" = x""yes; then : |
10994 |
– |
CGAL_LIBS="$CGAL_LIBS -lgmpxx" |
10995 |
– |
fi |
10996 |
– |
|
10997 |
– |
fi |
10998 |
– |
|
10999 |
– |
if test "$cgal_have_lib" == yes; then |
11000 |
– |
acx_cgal_found=yes |
11001 |
– |
fi |
11002 |
– |
fi |
11003 |
– |
if test "$acx_cgal_found" == yes; then |
11004 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lCore" >&5 |
11005 |
– |
$as_echo_n "checking for main in -lCore... " >&6; } |
11006 |
– |
if test "${ac_cv_lib_Core_main+set}" = set; then : |
11007 |
– |
$as_echo_n "(cached) " >&6 |
11008 |
– |
else |
11009 |
– |
ac_check_lib_save_LIBS=$LIBS |
11010 |
– |
LIBS="-lCore $LIBS" |
11011 |
– |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
11012 |
– |
/* end confdefs.h. */ |
11013 |
– |
|
11014 |
– |
|
11015 |
– |
#ifdef FC_DUMMY_MAIN |
11016 |
– |
#ifndef FC_DUMMY_MAIN_EQ_F77 |
11017 |
– |
# ifdef __cplusplus |
11018 |
– |
extern "C" |
11019 |
– |
# endif |
11020 |
– |
int FC_DUMMY_MAIN() { return 1; } |
11021 |
– |
#endif |
11022 |
– |
#endif |
11023 |
– |
int |
11024 |
– |
main () |
11025 |
– |
{ |
11026 |
– |
return main (); |
11027 |
– |
; |
11028 |
– |
return 0; |
11029 |
– |
} |
11030 |
– |
_ACEOF |
11031 |
– |
if ac_fn_c_try_link "$LINENO"; then : |
11032 |
– |
ac_cv_lib_Core_main=yes |
11033 |
– |
else |
11034 |
– |
ac_cv_lib_Core_main=no |
11035 |
– |
fi |
11036 |
– |
rm -f core conftest.err conftest.$ac_objext \ |
11037 |
– |
conftest$ac_exeext conftest.$ac_ext |
11038 |
– |
LIBS=$ac_check_lib_save_LIBS |
11039 |
– |
fi |
11040 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Core_main" >&5 |
11041 |
– |
$as_echo "$ac_cv_lib_Core_main" >&6; } |
11042 |
– |
if test "x$ac_cv_lib_Core_main" = x""yes; then : |
11043 |
– |
CGAL_LIBS="$CGAL_LIBS -lCore" |
11044 |
– |
fi |
11045 |
– |
|
11046 |
– |
fi |
11047 |
– |
fi |
11048 |
– |
|
11049 |
– |
|
11050 |
– |
|
11051 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CGAL" >&5 |
11052 |
– |
$as_echo_n "checking CGAL... " >&6; } |
11053 |
– |
|
11054 |
– |
|
11055 |
– |
|
11056 |
– |
|
11057 |
– |
|
11058 |
– |
if test "$acx_cgal_found" == yes; then |
11059 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11060 |
– |
$as_echo "yes" >&6; } |
11061 |
– |
|
11062 |
– |
else |
11063 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11064 |
– |
$as_echo "no" >&6; } |
11065 |
– |
|
11066 |
– |
fi |
11067 |
– |
USE_CGAL=no |
11068 |
– |
if test "$acx_cgal_found" == yes; then |
11069 |
– |
USE_CGAL=yes |
11070 |
– |
|
11071 |
– |
$as_echo "#define HAVE_CGAL 1" >>confdefs.h |
11072 |
– |
|
11073 |
– |
|
11074 |
– |
|
11075 |
– |
|
11076 |
– |
|
11077 |
– |
fi |
11078 |
– |
|
11079 |
– |
|
11080 |
– |
|
11081 |
– |
|
9510 |
|
# Check whether --enable-doxygen was given. |
9511 |
|
if test "${enable_doxygen+set}" = set; then : |
9512 |
|
enableval=$enable_doxygen; |
9538 |
|
set dummy doxygen; ac_word=$2 |
9539 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9540 |
|
$as_echo_n "checking for $ac_word... " >&6; } |
9541 |
< |
if test "${ac_cv_path_DOXYGEN+set}" = set; then : |
9541 |
> |
if ${ac_cv_path_DOXYGEN+:} false; then : |
9542 |
|
$as_echo_n "(cached) " >&6 |
9543 |
|
else |
9544 |
|
case $DOXYGEN in |
9576 |
|
|
9577 |
|
if test "x$DOXYGEN" = x; then |
9578 |
|
if test "x$enable_doxygen" = xyes; then |
9579 |
< |
as_fn_error "could not find doxygen" "$LINENO" 5 |
9579 |
> |
as_fn_error $? "could not find doxygen" "$LINENO" 5 |
9580 |
|
fi |
9581 |
|
enable_doc=no |
9582 |
|
else |
9585 |
|
set dummy dot; ac_word=$2 |
9586 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9587 |
|
$as_echo_n "checking for $ac_word... " >&6; } |
9588 |
< |
if test "${ac_cv_path_DOT+set}" = set; then : |
9588 |
> |
if ${ac_cv_path_DOT+:} false; then : |
9589 |
|
$as_echo_n "(cached) " >&6 |
9590 |
|
else |
9591 |
|
case $DOT in |
9633 |
|
|
9634 |
|
if test x$DOT = x; then |
9635 |
|
if test "x$enable_dot" = xyes; then |
9636 |
< |
as_fn_error "could not find dot" "$LINENO" 5 |
9636 |
> |
as_fn_error $? "could not find dot" "$LINENO" 5 |
9637 |
|
fi |
9638 |
|
enable_dot=no |
9639 |
|
else |
9725 |
|
:end' >>confcache |
9726 |
|
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
9727 |
|
if test -w "$cache_file"; then |
9728 |
< |
test "x$cache_file" != "x/dev/null" && |
9728 |
> |
if test "x$cache_file" != "x/dev/null"; then |
9729 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
9730 |
|
$as_echo "$as_me: updating cache $cache_file" >&6;} |
9731 |
< |
cat confcache >$cache_file |
9731 |
> |
if test ! -f "$cache_file" || test -h "$cache_file"; then |
9732 |
> |
cat confcache >"$cache_file" |
9733 |
> |
else |
9734 |
> |
case $cache_file in #( |
9735 |
> |
*/* | ?:*) |
9736 |
> |
mv -f confcache "$cache_file"$$ && |
9737 |
> |
mv -f "$cache_file"$$ "$cache_file" ;; #( |
9738 |
> |
*) |
9739 |
> |
mv -f confcache "$cache_file" ;; |
9740 |
> |
esac |
9741 |
> |
fi |
9742 |
> |
fi |
9743 |
|
else |
9744 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
9745 |
|
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
9755 |
|
|
9756 |
|
ac_libobjs= |
9757 |
|
ac_ltlibobjs= |
9758 |
+ |
U= |
9759 |
|
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
9760 |
|
# 1. Remove the extension, and $U if already installed. |
9761 |
|
ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
9771 |
|
|
9772 |
|
|
9773 |
|
|
9774 |
< |
: ${CONFIG_STATUS=./config.status} |
9774 |
> |
: "${CONFIG_STATUS=./config.status}" |
9775 |
|
ac_write_fail=0 |
9776 |
|
ac_clean_files_save=$ac_clean_files |
9777 |
|
ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
9872 |
|
IFS=" "" $as_nl" |
9873 |
|
|
9874 |
|
# Find who we are. Look in the path if we contain no directory separator. |
9875 |
+ |
as_myself= |
9876 |
|
case $0 in #(( |
9877 |
|
*[\\/]* ) as_myself=$0 ;; |
9878 |
|
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9918 |
|
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
9919 |
|
|
9920 |
|
|
9921 |
< |
# as_fn_error ERROR [LINENO LOG_FD] |
9922 |
< |
# --------------------------------- |
9921 |
> |
# as_fn_error STATUS ERROR [LINENO LOG_FD] |
9922 |
> |
# ---------------------------------------- |
9923 |
|
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
9924 |
|
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
9925 |
< |
# script with status $?, using 1 if that was 0. |
9925 |
> |
# script with STATUS, using 1 if that was 0. |
9926 |
|
as_fn_error () |
9927 |
|
{ |
9928 |
< |
as_status=$?; test $as_status -eq 0 && as_status=1 |
9929 |
< |
if test "$3"; then |
9930 |
< |
as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
9931 |
< |
$as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 |
9928 |
> |
as_status=$1; test $as_status -eq 0 && as_status=1 |
9929 |
> |
if test "$4"; then |
9930 |
> |
as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
9931 |
> |
$as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
9932 |
|
fi |
9933 |
< |
$as_echo "$as_me: error: $1" >&2 |
9933 |
> |
$as_echo "$as_me: error: $2" >&2 |
9934 |
|
as_fn_exit $as_status |
9935 |
|
} # as_fn_error |
9936 |
|
|
10126 |
|
test -d "$as_dir" && break |
10127 |
|
done |
10128 |
|
test -z "$as_dirs" || eval "mkdir $as_dirs" |
10129 |
< |
} || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" |
10129 |
> |
} || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
10130 |
|
|
10131 |
|
|
10132 |
|
} # as_fn_mkdir_p |
10179 |
|
# report actual input values of CONFIG_FILES etc. instead of their |
10180 |
|
# values after options handling. |
10181 |
|
ac_log=" |
10182 |
< |
This file was extended by OOPSE $as_me 4.0, which was |
10183 |
< |
generated by GNU Autoconf 2.64. Invocation command line was |
10182 |
> |
This file was extended by OpenMD $as_me 1.0, which was |
10183 |
> |
generated by GNU Autoconf 2.68. Invocation command line was |
10184 |
|
|
10185 |
|
CONFIG_FILES = $CONFIG_FILES |
10186 |
|
CONFIG_HEADERS = $CONFIG_HEADERS |
10219 |
|
|
10220 |
|
-h, --help print this help, then exit |
10221 |
|
-V, --version print version number and configuration settings, then exit |
10222 |
+ |
--config print configuration, then exit |
10223 |
|
-q, --quiet, --silent |
10224 |
|
do not print progress messages |
10225 |
|
-d, --debug don't remove temporary files |
10239 |
|
|
10240 |
|
_ACEOF |
10241 |
|
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
10242 |
+ |
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
10243 |
|
ac_cs_version="\\ |
10244 |
< |
OOPSE config.status 4.0 |
10245 |
< |
configured by $0, generated by GNU Autoconf 2.64, |
10246 |
< |
with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" |
10244 |
> |
OpenMD config.status 1.0 |
10245 |
> |
configured by $0, generated by GNU Autoconf 2.68, |
10246 |
> |
with options \\"\$ac_cs_config\\" |
10247 |
|
|
10248 |
< |
Copyright (C) 2009 Free Software Foundation, Inc. |
10248 |
> |
Copyright (C) 2010 Free Software Foundation, Inc. |
10249 |
|
This config.status script is free software; the Free Software Foundation |
10250 |
|
gives unlimited permission to copy, distribute and modify it." |
10251 |
|
|
10261 |
|
while test $# != 0 |
10262 |
|
do |
10263 |
|
case $1 in |
10264 |
< |
--*=*) |
10264 |
> |
--*=?*) |
10265 |
|
ac_option=`expr "X$1" : 'X\([^=]*\)='` |
10266 |
|
ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
10267 |
|
ac_shift=: |
10268 |
|
;; |
10269 |
+ |
--*=) |
10270 |
+ |
ac_option=`expr "X$1" : 'X\([^=]*\)='` |
10271 |
+ |
ac_optarg= |
10272 |
+ |
ac_shift=: |
10273 |
+ |
;; |
10274 |
|
*) |
10275 |
|
ac_option=$1 |
10276 |
|
ac_optarg=$2 |
10284 |
|
ac_cs_recheck=: ;; |
10285 |
|
--version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
10286 |
|
$as_echo "$ac_cs_version"; exit ;; |
10287 |
+ |
--config | --confi | --conf | --con | --co | --c ) |
10288 |
+ |
$as_echo "$ac_cs_config"; exit ;; |
10289 |
|
--debug | --debu | --deb | --de | --d | -d ) |
10290 |
|
debug=: ;; |
10291 |
|
--file | --fil | --fi | --f ) |
10292 |
|
$ac_shift |
10293 |
|
case $ac_optarg in |
10294 |
|
*\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
10295 |
+ |
'') as_fn_error $? "missing file argument" ;; |
10296 |
|
esac |
10297 |
|
as_fn_append CONFIG_FILES " '$ac_optarg'" |
10298 |
|
ac_need_defaults=false;; |
10305 |
|
ac_need_defaults=false;; |
10306 |
|
--he | --h) |
10307 |
|
# Conflict between --help and --header |
10308 |
< |
as_fn_error "ambiguous option: \`$1' |
10308 |
> |
as_fn_error $? "ambiguous option: \`$1' |
10309 |
|
Try \`$0 --help' for more information.";; |
10310 |
|
--help | --hel | -h ) |
10311 |
|
$as_echo "$ac_cs_usage"; exit ;; |
10314 |
|
ac_cs_silent=: ;; |
10315 |
|
|
10316 |
|
# This is an error. |
10317 |
< |
-*) as_fn_error "unrecognized option: \`$1' |
10317 |
> |
-*) as_fn_error $? "unrecognized option: \`$1' |
10318 |
|
Try \`$0 --help' for more information." ;; |
10319 |
|
|
10320 |
|
*) as_fn_append ac_config_targets " $1" |
10371 |
|
"src/applications/atom2md/Makefile") CONFIG_FILES="$CONFIG_FILES src/applications/atom2md/Makefile" ;; |
10372 |
|
"scripts/filepp") CONFIG_FILES="$CONFIG_FILES scripts/filepp" ;; |
10373 |
|
|
10374 |
< |
*) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
10374 |
> |
*) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
10375 |
|
esac |
10376 |
|
done |
10377 |
|
|
10393 |
|
# after its creation but before its name has been assigned to `$tmp'. |
10394 |
|
$debug || |
10395 |
|
{ |
10396 |
< |
tmp= |
10396 |
> |
tmp= ac_tmp= |
10397 |
|
trap 'exit_status=$? |
10398 |
< |
{ test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status |
10398 |
> |
: "${ac_tmp:=$tmp}" |
10399 |
> |
{ test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status |
10400 |
|
' 0 |
10401 |
|
trap 'as_fn_exit 1' 1 2 13 15 |
10402 |
|
} |
10404 |
|
|
10405 |
|
{ |
10406 |
|
tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
10407 |
< |
test -n "$tmp" && test -d "$tmp" |
10407 |
> |
test -d "$tmp" |
10408 |
|
} || |
10409 |
|
{ |
10410 |
|
tmp=./conf$$-$RANDOM |
10411 |
|
(umask 077 && mkdir "$tmp") |
10412 |
< |
} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 |
10412 |
> |
} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
10413 |
> |
ac_tmp=$tmp |
10414 |
|
|
10415 |
|
# Set up the scripts for CONFIG_FILES section. |
10416 |
|
# No need to generate them if there are no CONFIG_FILES. |
10427 |
|
fi |
10428 |
|
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
10429 |
|
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then |
10430 |
< |
ac_cs_awk_cr='\r' |
10430 |
> |
ac_cs_awk_cr='\\r' |
10431 |
|
else |
10432 |
|
ac_cs_awk_cr=$ac_cr |
10433 |
|
fi |
10434 |
|
|
10435 |
< |
echo 'BEGIN {' >"$tmp/subs1.awk" && |
10435 |
> |
echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
10436 |
|
_ACEOF |
10437 |
|
|
10438 |
|
|
10441 |
|
echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && |
10442 |
|
echo "_ACEOF" |
10443 |
|
} >conf$$subs.sh || |
10444 |
< |
as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 |
10445 |
< |
ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` |
10444 |
> |
as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
10445 |
> |
ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` |
10446 |
|
ac_delim='%!_!# ' |
10447 |
|
for ac_last_try in false false false false false :; do |
10448 |
|
. ./conf$$subs.sh || |
10449 |
< |
as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 |
10449 |
> |
as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
10450 |
|
|
10451 |
|
ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
10452 |
|
if test $ac_delim_n = $ac_delim_num; then |
10453 |
|
break |
10454 |
|
elif $ac_last_try; then |
10455 |
< |
as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 |
10455 |
> |
as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
10456 |
|
else |
10457 |
|
ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
10458 |
|
fi |
10460 |
|
rm -f conf$$subs.sh |
10461 |
|
|
10462 |
|
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
10463 |
< |
cat >>"\$tmp/subs1.awk" <<\\_ACAWK && |
10463 |
> |
cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
10464 |
|
_ACEOF |
10465 |
|
sed -n ' |
10466 |
|
h |
10474 |
|
t delim |
10475 |
|
:nl |
10476 |
|
h |
10477 |
< |
s/\(.\{148\}\).*/\1/ |
10477 |
> |
s/\(.\{148\}\)..*/\1/ |
10478 |
|
t more1 |
10479 |
|
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ |
10480 |
|
p |
10488 |
|
t nl |
10489 |
|
:delim |
10490 |
|
h |
10491 |
< |
s/\(.\{148\}\).*/\1/ |
10491 |
> |
s/\(.\{148\}\)..*/\1/ |
10492 |
|
t more2 |
10493 |
|
s/["\\]/\\&/g; s/^/"/; s/$/"/ |
10494 |
|
p |
10508 |
|
rm -f conf$$subs.awk |
10509 |
|
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
10510 |
|
_ACAWK |
10511 |
< |
cat >>"\$tmp/subs1.awk" <<_ACAWK && |
10511 |
> |
cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
10512 |
|
for (key in S) S_is_set[key] = 1 |
10513 |
|
FS = "" |
10514 |
|
|
10540 |
|
sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" |
10541 |
|
else |
10542 |
|
cat |
10543 |
< |
fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ |
10544 |
< |
|| as_fn_error "could not setup config files machinery" "$LINENO" 5 |
10543 |
> |
fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
10544 |
> |
|| as_fn_error $? "could not setup config files machinery" "$LINENO" 5 |
10545 |
|
_ACEOF |
10546 |
|
|
10547 |
< |
# VPATH may cause trouble with some makes, so we remove $(srcdir), |
10548 |
< |
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
10547 |
> |
# VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
10548 |
> |
# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and |
10549 |
|
# trailing colons and then remove the whole line if VPATH becomes empty |
10550 |
|
# (actually we leave an empty line to preserve line numbers). |
10551 |
|
if test "x$srcdir" = x.; then |
10552 |
< |
ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
10553 |
< |
s/:*\$(srcdir):*/:/ |
10554 |
< |
s/:*\${srcdir}:*/:/ |
10555 |
< |
s/:*@srcdir@:*/:/ |
10556 |
< |
s/^\([^=]*=[ ]*\):*/\1/ |
10552 |
> |
ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
10553 |
> |
h |
10554 |
> |
s/// |
10555 |
> |
s/^/:/ |
10556 |
> |
s/[ ]*$/:/ |
10557 |
> |
s/:\$(srcdir):/:/g |
10558 |
> |
s/:\${srcdir}:/:/g |
10559 |
> |
s/:@srcdir@:/:/g |
10560 |
> |
s/^:*// |
10561 |
|
s/:*$// |
10562 |
+ |
x |
10563 |
+ |
s/\(=[ ]*\).*/\1/ |
10564 |
+ |
G |
10565 |
+ |
s/\n// |
10566 |
|
s/^[^=]*=[ ]*$// |
10567 |
|
}' |
10568 |
|
fi |
10574 |
|
# No need to generate them if there are no CONFIG_HEADERS. |
10575 |
|
# This happens for instance with `./config.status Makefile'. |
10576 |
|
if test -n "$CONFIG_HEADERS"; then |
10577 |
< |
cat >"$tmp/defines.awk" <<\_ACAWK || |
10577 |
> |
cat >"$ac_tmp/defines.awk" <<\_ACAWK || |
10578 |
|
BEGIN { |
10579 |
|
_ACEOF |
10580 |
|
|
10586 |
|
# handling of long lines. |
10587 |
|
ac_delim='%!_!# ' |
10588 |
|
for ac_last_try in false false :; do |
10589 |
< |
ac_t=`sed -n "/$ac_delim/p" confdefs.h` |
10590 |
< |
if test -z "$ac_t"; then |
10589 |
> |
ac_tt=`sed -n "/$ac_delim/p" confdefs.h` |
10590 |
> |
if test -z "$ac_tt"; then |
10591 |
|
break |
10592 |
|
elif $ac_last_try; then |
10593 |
< |
as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5 |
10593 |
> |
as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
10594 |
|
else |
10595 |
|
ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
10596 |
|
fi |
10675 |
|
_ACAWK |
10676 |
|
_ACEOF |
10677 |
|
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
10678 |
< |
as_fn_error "could not setup config headers machinery" "$LINENO" 5 |
10678 |
> |
as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
10679 |
|
fi # test -n "$CONFIG_HEADERS" |
10680 |
|
|
10681 |
|
|
10688 |
|
esac |
10689 |
|
case $ac_mode$ac_tag in |
10690 |
|
:[FHL]*:*);; |
10691 |
< |
:L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; |
10691 |
> |
:L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
10692 |
|
:[FH]-) ac_tag=-:-;; |
10693 |
|
:[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
10694 |
|
esac |
10707 |
|
for ac_f |
10708 |
|
do |
10709 |
|
case $ac_f in |
10710 |
< |
-) ac_f="$tmp/stdin";; |
10710 |
> |
-) ac_f="$ac_tmp/stdin";; |
10711 |
|
*) # Look for the file first in the build tree, then in the source tree |
10712 |
|
# (if the path is not absolute). The absolute path cannot be DOS-style, |
10713 |
|
# because $ac_f cannot contain `:'. |
10716 |
|
[\\/$]*) false;; |
10717 |
|
*) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
10718 |
|
esac || |
10719 |
< |
as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
10719 |
> |
as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
10720 |
|
esac |
10721 |
|
case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
10722 |
|
as_fn_append ac_file_inputs " '$ac_f'" |
10742 |
|
esac |
10743 |
|
|
10744 |
|
case $ac_tag in |
10745 |
< |
*:-:* | *:-) cat >"$tmp/stdin" \ |
10746 |
< |
|| as_fn_error "could not create $ac_file" "$LINENO" 5 ;; |
10745 |
> |
*:-:* | *:-) cat >"$ac_tmp/stdin" \ |
10746 |
> |
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; |
10747 |
|
esac |
10748 |
|
;; |
10749 |
|
esac |
10873 |
|
s&@INSTALL@&$ac_INSTALL&;t t |
10874 |
|
$ac_datarootdir_hack |
10875 |
|
" |
10876 |
< |
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ |
10877 |
< |
|| as_fn_error "could not create $ac_file" "$LINENO" 5 |
10876 |
> |
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
10877 |
> |
>$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
10878 |
|
|
10879 |
|
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
10880 |
< |
{ ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
10881 |
< |
{ ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
10880 |
> |
{ ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
10881 |
> |
{ ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ |
10882 |
> |
"$ac_tmp/out"`; test -z "$ac_out"; } && |
10883 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
10884 |
< |
which seems to be undefined. Please make sure it is defined." >&5 |
10884 |
> |
which seems to be undefined. Please make sure it is defined" >&5 |
10885 |
|
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
10886 |
< |
which seems to be undefined. Please make sure it is defined." >&2;} |
10886 |
> |
which seems to be undefined. Please make sure it is defined" >&2;} |
10887 |
|
|
10888 |
< |
rm -f "$tmp/stdin" |
10888 |
> |
rm -f "$ac_tmp/stdin" |
10889 |
|
case $ac_file in |
10890 |
< |
-) cat "$tmp/out" && rm -f "$tmp/out";; |
10891 |
< |
*) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; |
10890 |
> |
-) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
10891 |
> |
*) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; |
10892 |
|
esac \ |
10893 |
< |
|| as_fn_error "could not create $ac_file" "$LINENO" 5 |
10893 |
> |
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
10894 |
|
;; |
10895 |
|
:H) |
10896 |
|
# |
10899 |
|
if test x"$ac_file" != x-; then |
10900 |
|
{ |
10901 |
|
$as_echo "/* $configure_input */" \ |
10902 |
< |
&& eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" |
10903 |
< |
} >"$tmp/config.h" \ |
10904 |
< |
|| as_fn_error "could not create $ac_file" "$LINENO" 5 |
10905 |
< |
if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then |
10902 |
> |
&& eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
10903 |
> |
} >"$ac_tmp/config.h" \ |
10904 |
> |
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
10905 |
> |
if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then |
10906 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
10907 |
|
$as_echo "$as_me: $ac_file is unchanged" >&6;} |
10908 |
|
else |
10909 |
|
rm -f "$ac_file" |
10910 |
< |
mv "$tmp/config.h" "$ac_file" \ |
10911 |
< |
|| as_fn_error "could not create $ac_file" "$LINENO" 5 |
10910 |
> |
mv "$ac_tmp/config.h" "$ac_file" \ |
10911 |
> |
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
10912 |
|
fi |
10913 |
|
else |
10914 |
|
$as_echo "/* $configure_input */" \ |
10915 |
< |
&& eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ |
10916 |
< |
|| as_fn_error "could not create -" "$LINENO" 5 |
10915 |
> |
&& eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
10916 |
> |
|| as_fn_error $? "could not create -" "$LINENO" 5 |
10917 |
|
fi |
10918 |
|
;; |
10919 |
|
|
10938 |
|
ac_clean_files=$ac_clean_files_save |
10939 |
|
|
10940 |
|
test $ac_write_fail = 0 || |
10941 |
< |
as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
10941 |
> |
as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
10942 |
|
|
10943 |
|
|
10944 |
|
# configure is writing to config.log, and then calls config.status. |
10959 |
|
exec 5>>config.log |
10960 |
|
# Use ||, not &&, to avoid exiting from the if with $? = 1, which |
10961 |
|
# would make configure fail if this is the last instruction. |
10962 |
< |
$ac_cs_success || as_fn_exit $? |
10962 |
> |
$ac_cs_success || as_fn_exit 1 |
10963 |
|
fi |
10964 |
|
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
10965 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |