1 |
|
#! /bin/sh |
2 |
|
# Guess values for system-dependent variables and create Makefiles. |
3 |
< |
# Generated by GNU Autoconf 2.57 for OOPSE 1.0. |
3 |
> |
# Generated by GNU Autoconf 2.59 for OOPSE 1.0. |
4 |
|
# |
5 |
|
# Report bugs to <gezelter@nd.edu>. |
6 |
|
# |
7 |
< |
# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 |
8 |
< |
# Free Software Foundation, Inc. |
7 |
> |
# Copyright (C) 2003 Free Software Foundation, Inc. |
8 |
|
# This configure script is free software; the Free Software Foundation |
9 |
|
# gives unlimited permission to copy, distribute and modify it. |
10 |
|
## --------------------- ## |
21 |
|
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
22 |
|
set -o posix |
23 |
|
fi |
24 |
+ |
DUALCASE=1; export DUALCASE # for MKS sh |
25 |
|
|
26 |
|
# Support unset when possible. |
27 |
< |
if (FOO=FOO; unset FOO) >/dev/null 2>&1; then |
27 |
> |
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
28 |
|
as_unset=unset |
29 |
|
else |
30 |
|
as_unset=false |
43 |
|
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
44 |
|
LC_TELEPHONE LC_TIME |
45 |
|
do |
46 |
< |
if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then |
46 |
> |
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
47 |
|
eval $as_var=C; export $as_var |
48 |
|
else |
49 |
|
$as_unset $as_var |
220 |
|
if mkdir -p . 2>/dev/null; then |
221 |
|
as_mkdir_p=: |
222 |
|
else |
223 |
+ |
test -d ./-p && rmdir ./-p |
224 |
|
as_mkdir_p=false |
225 |
|
fi |
226 |
|
|
227 |
|
as_executable_p="test -f" |
228 |
|
|
229 |
|
# Sed expression to map a string onto a valid CPP name. |
230 |
< |
as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" |
230 |
> |
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
231 |
|
|
232 |
|
# Sed expression to map a string onto a valid variable name. |
233 |
< |
as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" |
233 |
> |
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
234 |
|
|
235 |
|
|
236 |
|
# IFS |
312 |
|
# include <unistd.h> |
313 |
|
#endif" |
314 |
|
|
315 |
< |
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS PROGNAME DEBUG build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX F90 F90FLAGS ac_ct_F90 PREPFLAG PREPDEFFLAG INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S SET_MAKE RANLIB ac_ct_RANLIB YACC LEX LEXLIB LEX_OUTPUT_ROOT AR F90LIBS F90_FUNC F90_FUNC_ MPI_DIR MPI_LIBDIR MPI_INC MPI_LIB MPIF77 MPIF90 MPILIBS CPP EGREP SPRNG_LIBDIR SPRNG_LIB SPRNG_INC HAVE_SPRNG MKL_LIBDIR MKL_LIB MKL_INC HAVE_MKL MPI_F90_MODS fortran_machine_defs BATEXT MKINSTALLDIRS OOPSE OOPSE_HOME SUBDIRS FFLAGS LIBOBJS LTLIBOBJS' |
315 |
> |
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS PROGNAME debug build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX OOPSE_TEMPLATE_FLAGS EXTRA_CC_FLAG F90 F90FLAGS ac_ct_F90 PREPFLAG PREPDEFFLAG F90LIBS F90_FUNC F90_FUNC_ MOD F90_WORK_FILES_ARG MODDIRFLAG F90MODINCSPEC INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S SET_MAKE RANLIB ac_ct_RANLIB YACC LEX LEXLIB LEX_OUTPUT_ROOT AR MPI_LIB_DIR MPI_INC_DIR MPI_F90_INC MPI_LIB MPI_F90_LIB USE_MPI CPP EGREP SPRNG_LIBDIR SPRNG_LIB SPRNG_INC HAVE_SPRNG MKL_LIBDIR MKL_LIB MKL_INC HAVE_MKL BATEXT MKINSTALLDIRS OOPSE OOPSE_HOME SUBDIRS FFLAGS LIBOBJS LTLIBOBJS' |
316 |
|
ac_subst_files='' |
317 |
|
|
318 |
|
# Initialize some variables set by options. |
671 |
|
|
672 |
|
# Be sure to have absolute paths. |
673 |
|
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ |
674 |
< |
localstatedir libdir includedir oldincludedir infodir mandir |
674 |
> |
localstatedir libdir includedir oldincludedir infodir mandir |
675 |
|
do |
676 |
|
eval ac_val=$`echo $ac_var` |
677 |
|
case $ac_val in |
711 |
|
# Try the directory containing this script, then its parent. |
712 |
|
ac_confdir=`(dirname "$0") 2>/dev/null || |
713 |
|
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
714 |
< |
X"$0" : 'X\(//\)[^/]' \| \ |
715 |
< |
X"$0" : 'X\(//\)$' \| \ |
716 |
< |
X"$0" : 'X\(/\)' \| \ |
717 |
< |
. : '\(.\)' 2>/dev/null || |
714 |
> |
X"$0" : 'X\(//\)[^/]' \| \ |
715 |
> |
X"$0" : 'X\(//\)$' \| \ |
716 |
> |
X"$0" : 'X\(/\)' \| \ |
717 |
> |
. : '\(.\)' 2>/dev/null || |
718 |
|
echo X"$0" | |
719 |
|
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
720 |
|
/^X\(\/\/\)[^/].*/{ s//\1/; q; } |
785 |
|
ac_env_F90FLAGS_value=$F90FLAGS |
786 |
|
ac_cv_env_F90FLAGS_set=${F90FLAGS+set} |
787 |
|
ac_cv_env_F90FLAGS_value=$F90FLAGS |
787 |
– |
ac_env_MPIF77_set=${MPIF77+set} |
788 |
– |
ac_env_MPIF77_value=$MPIF77 |
789 |
– |
ac_cv_env_MPIF77_set=${MPIF77+set} |
790 |
– |
ac_cv_env_MPIF77_value=$MPIF77 |
788 |
|
ac_env_CPP_set=${CPP+set} |
789 |
|
ac_env_CPP_value=$CPP |
790 |
|
ac_cv_env_CPP_set=${CPP+set} |
822 |
|
cat <<_ACEOF |
823 |
|
Installation directories: |
824 |
|
--prefix=PREFIX install architecture-independent files in PREFIX |
825 |
< |
[$ac_default_prefix] |
825 |
> |
[$ac_default_prefix] |
826 |
|
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
827 |
< |
[PREFIX] |
827 |
> |
[PREFIX] |
828 |
|
|
829 |
|
By default, \`make install' will install all the files in |
830 |
|
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
871 |
|
Optional Packages: |
872 |
|
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
873 |
|
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
874 |
< |
--with-mpi-dir=MPIDIR give the path for MPI /usr/local |
875 |
< |
--with-mpi-lib-dir=dir give the path for MPI-libraries MPI_DIR/lib |
879 |
< |
--with-mpi-inc-dir=dir give the path for MPI-include-files MPI_DIR/include |
880 |
< |
--with-sprng-prefix=PREFIX |
874 |
> |
--with-mpi=<prefix> compile with MPI libraries in <prefix> [default=no] |
875 |
> |
--with-sprng_prefix=PREFIX |
876 |
|
Prefix where SPRNG is installed |
877 |
< |
--with-sprng-lib=PREFIX SPRNG library directory |
877 |
> |
--with-sprng-libdir=PREFIX SPRNG library directory |
878 |
|
--with-sprng-include=PREFIX |
879 |
|
SPRNG include directory |
880 |
< |
--with-mkl Do we want MKL will check /usr/local/intel/mkl60 /opt/intel/mkl60 |
886 |
< |
--with-mpi_f90_mods=<dir> |
887 |
< |
Location where MPI f90 modules are installed |
880 |
> |
--with-mkl Do we want MKL will check /usr/local/intel/mkl61 /opt/intel/mkl61 |
881 |
|
|
882 |
|
Some influential environment variables: |
883 |
|
CC C compiler command |
890 |
|
CXXFLAGS C++ compiler flags |
891 |
|
F90 Fortran 90 compiler command |
892 |
|
F90FLAGS Fortran 90 compiler flags |
900 |
– |
MPIF77 MPI Fortran compiler command |
893 |
|
CPP C preprocessor |
894 |
|
|
895 |
|
Use these variables to override the choices made by `configure' or to help |
929 |
|
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
930 |
|
ac_top_srcdir=$ac_top_builddir$srcdir ;; |
931 |
|
esac |
932 |
< |
# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be |
933 |
< |
# absolute. |
934 |
< |
ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` |
935 |
< |
ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` |
936 |
< |
ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` |
937 |
< |
ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` |
932 |
> |
|
933 |
> |
# Do not use `cd foo && pwd` to compute absolute paths, because |
934 |
> |
# the directories may not exist. |
935 |
> |
case `pwd` in |
936 |
> |
.) ac_abs_builddir="$ac_dir";; |
937 |
> |
*) |
938 |
> |
case "$ac_dir" in |
939 |
> |
.) ac_abs_builddir=`pwd`;; |
940 |
> |
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
941 |
> |
*) ac_abs_builddir=`pwd`/"$ac_dir";; |
942 |
> |
esac;; |
943 |
> |
esac |
944 |
> |
case $ac_abs_builddir in |
945 |
> |
.) ac_abs_top_builddir=${ac_top_builddir}.;; |
946 |
> |
*) |
947 |
> |
case ${ac_top_builddir}. in |
948 |
> |
.) ac_abs_top_builddir=$ac_abs_builddir;; |
949 |
> |
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
950 |
> |
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
951 |
> |
esac;; |
952 |
> |
esac |
953 |
> |
case $ac_abs_builddir in |
954 |
> |
.) ac_abs_srcdir=$ac_srcdir;; |
955 |
> |
*) |
956 |
> |
case $ac_srcdir in |
957 |
> |
.) ac_abs_srcdir=$ac_abs_builddir;; |
958 |
> |
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
959 |
> |
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
960 |
> |
esac;; |
961 |
> |
esac |
962 |
> |
case $ac_abs_builddir in |
963 |
> |
.) ac_abs_top_srcdir=$ac_top_srcdir;; |
964 |
> |
*) |
965 |
> |
case $ac_top_srcdir in |
966 |
> |
.) ac_abs_top_srcdir=$ac_abs_builddir;; |
967 |
> |
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
968 |
> |
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
969 |
> |
esac;; |
970 |
> |
esac |
971 |
|
|
972 |
|
cd $ac_dir |
973 |
|
# Check for guested configure; otherwise get Cygnus style configure. |
978 |
|
echo |
979 |
|
$SHELL $ac_srcdir/configure --help=recursive |
980 |
|
elif test -f $ac_srcdir/configure.ac || |
981 |
< |
test -f $ac_srcdir/configure.in; then |
981 |
> |
test -f $ac_srcdir/configure.in; then |
982 |
|
echo |
983 |
|
$ac_configure --help |
984 |
|
else |
992 |
|
if $ac_init_version; then |
993 |
|
cat <<\_ACEOF |
994 |
|
OOPSE configure 1.0 |
995 |
< |
generated by GNU Autoconf 2.57 |
995 |
> |
generated by GNU Autoconf 2.59 |
996 |
|
|
997 |
< |
Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 |
973 |
< |
Free Software Foundation, Inc. |
997 |
> |
Copyright (C) 2003 Free Software Foundation, Inc. |
998 |
|
This configure script is free software; the Free Software Foundation |
999 |
|
gives unlimited permission to copy, distribute and modify it. |
1000 |
|
_ACEOF |
1006 |
|
running configure, to aid debugging if configure makes a mistake. |
1007 |
|
|
1008 |
|
It was created by OOPSE $as_me 1.0, which was |
1009 |
< |
generated by GNU Autoconf 2.57. Invocation command line was |
1009 |
> |
generated by GNU Autoconf 2.59. Invocation command line was |
1010 |
|
|
1011 |
|
$ $0 $@ |
1012 |
|
|
1083 |
|
2) |
1084 |
|
ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
1085 |
|
if test $ac_must_keep_next = true; then |
1086 |
< |
ac_must_keep_next=false # Got value, back to normal. |
1086 |
> |
ac_must_keep_next=false # Got value, back to normal. |
1087 |
|
else |
1088 |
< |
case $ac_arg in |
1089 |
< |
*=* | --config-cache | -C | -disable-* | --disable-* \ |
1090 |
< |
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
1091 |
< |
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
1092 |
< |
| -with-* | --with-* | -without-* | --without-* | --x) |
1093 |
< |
case "$ac_configure_args0 " in |
1094 |
< |
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
1095 |
< |
esac |
1096 |
< |
;; |
1097 |
< |
-* ) ac_must_keep_next=true ;; |
1098 |
< |
esac |
1088 |
> |
case $ac_arg in |
1089 |
> |
*=* | --config-cache | -C | -disable-* | --disable-* \ |
1090 |
> |
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
1091 |
> |
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
1092 |
> |
| -with-* | --with-* | -without-* | --without-* | --x) |
1093 |
> |
case "$ac_configure_args0 " in |
1094 |
> |
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
1095 |
> |
esac |
1096 |
> |
;; |
1097 |
> |
-* ) ac_must_keep_next=true ;; |
1098 |
> |
esac |
1099 |
|
fi |
1100 |
|
ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" |
1101 |
|
# Get rid of the leading space. |
1129 |
|
case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in |
1130 |
|
*ac_space=\ *) |
1131 |
|
sed -n \ |
1132 |
< |
"s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
1133 |
< |
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" |
1132 |
> |
"s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
1133 |
> |
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" |
1134 |
|
;; |
1135 |
|
*) |
1136 |
|
sed -n \ |
1137 |
< |
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
1137 |
> |
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
1138 |
|
;; |
1139 |
|
esac; |
1140 |
|
} |
1163 |
|
for ac_var in $ac_subst_files |
1164 |
|
do |
1165 |
|
eval ac_val=$`echo $ac_var` |
1166 |
< |
echo "$ac_var='"'"'$ac_val'"'"'" |
1166 |
> |
echo "$ac_var='"'"'$ac_val'"'"'" |
1167 |
|
done | sort |
1168 |
|
echo |
1169 |
|
fi |
1182 |
|
echo "$as_me: caught signal $ac_signal" |
1183 |
|
echo "$as_me: exit $exit_status" |
1184 |
|
} >&5 |
1185 |
< |
rm -f core core.* *.core && |
1185 |
> |
rm -f core *.core && |
1186 |
|
rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
1187 |
|
exit $exit_status |
1188 |
|
' 0 |
1262 |
|
# value. |
1263 |
|
ac_cache_corrupted=false |
1264 |
|
for ac_var in `(set) 2>&1 | |
1265 |
< |
sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
1265 |
> |
sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
1266 |
|
eval ac_old_set=\$ac_cv_env_${ac_var}_set |
1267 |
|
eval ac_new_set=\$ac_env_${ac_var}_set |
1268 |
|
eval ac_old_val="\$ac_cv_env_${ac_var}_value" |
1279 |
|
,);; |
1280 |
|
*) |
1281 |
|
if test "x$ac_old_val" != "x$ac_new_val"; then |
1282 |
< |
{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
1282 |
> |
{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
1283 |
|
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
1284 |
< |
{ echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
1284 |
> |
{ echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
1285 |
|
echo "$as_me: former value: $ac_old_val" >&2;} |
1286 |
< |
{ echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
1286 |
> |
{ echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
1287 |
|
echo "$as_me: current value: $ac_new_val" >&2;} |
1288 |
< |
ac_cache_corrupted=: |
1288 |
> |
ac_cache_corrupted=: |
1289 |
|
fi;; |
1290 |
|
esac |
1291 |
|
# Pass precious variables to config.status. |
1852 |
|
|
1853 |
|
|
1854 |
|
|
1831 |
– |
# what should I build? |
1855 |
|
|
1833 |
– |
# Check whether --enable-debug or --disable-debug was given. |
1834 |
– |
if test "${enable_debug+set}" = set; then |
1835 |
– |
enableval="$enable_debug" |
1836 |
– |
DEBUG=1 |
1837 |
– |
fi; |
1856 |
|
|
1857 |
+ |
|
1858 |
+ |
|
1859 |
+ |
|
1860 |
+ |
|
1861 |
+ |
|
1862 |
+ |
|
1863 |
+ |
|
1864 |
+ |
|
1865 |
+ |
|
1866 |
+ |
|
1867 |
+ |
|
1868 |
+ |
|
1869 |
+ |
|
1870 |
|
# set program name |
1871 |
|
PROGNAME="oopse" |
1872 |
|
|
1873 |
|
|
1874 |
+ |
# there are two ways to do debugging. One with the --enable-debug flag |
1875 |
+ |
# and one using the DEBUG environment variable |
1876 |
+ |
|
1877 |
+ |
debug=0 |
1878 |
+ |
# Check whether --enable-debug or --disable-debug was given. |
1879 |
+ |
if test "${enable_debug+set}" = set; then |
1880 |
+ |
enableval="$enable_debug" |
1881 |
+ |
debug=1 |
1882 |
+ |
fi; |
1883 |
|
if test "${DEBUG}"; then |
1884 |
|
|
1885 |
|
cat >>confdefs.h <<\_ACEOF |
1886 |
< |
#define DEBUG 1 |
1886 |
> |
#define debug 1 |
1887 |
|
_ACEOF |
1888 |
|
|
1889 |
|
msg="$msg, debug mode" |
2065 |
|
(exit $ac_status); } |
2066 |
|
|
2067 |
|
cat >conftest.$ac_ext <<_ACEOF |
2028 |
– |
#line $LINENO "configure" |
2068 |
|
/* confdefs.h. */ |
2069 |
|
_ACEOF |
2070 |
|
cat confdefs.h >>conftest.$ac_ext |
2084 |
|
# Try to create an executable without -o first, disregard a.out. |
2085 |
|
# It will help us diagnose broken compilers, and finding out an intuition |
2086 |
|
# of exeext. |
2087 |
< |
echo "$as_me:$LINENO: checking for C compiler default output" >&5 |
2088 |
< |
echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6 |
2087 |
> |
echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
2088 |
> |
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 |
2089 |
|
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
2090 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
2091 |
|
(eval $ac_link_default) 2>&5 |
2105 |
|
test -f "$ac_file" || continue |
2106 |
|
case $ac_file in |
2107 |
|
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) |
2108 |
< |
;; |
2108 |
> |
;; |
2109 |
|
conftest.$ac_ext ) |
2110 |
< |
# This is the source file. |
2111 |
< |
;; |
2110 |
> |
# This is the source file. |
2111 |
> |
;; |
2112 |
|
[ab].out ) |
2113 |
< |
# We found the default executable, but exeext='' is most |
2114 |
< |
# certainly right. |
2115 |
< |
break;; |
2113 |
> |
# We found the default executable, but exeext='' is most |
2114 |
> |
# certainly right. |
2115 |
> |
break;; |
2116 |
|
*.* ) |
2117 |
< |
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
2118 |
< |
# FIXME: I believe we export ac_cv_exeext for Libtool, |
2119 |
< |
# but it would be cool to find out if it's true. Does anybody |
2120 |
< |
# maintain Libtool? --akim. |
2121 |
< |
export ac_cv_exeext |
2122 |
< |
break;; |
2117 |
> |
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
2118 |
> |
# FIXME: I believe we export ac_cv_exeext for Libtool, |
2119 |
> |
# but it would be cool to find out if it's true. Does anybody |
2120 |
> |
# maintain Libtool? --akim. |
2121 |
> |
export ac_cv_exeext |
2122 |
> |
break;; |
2123 |
|
* ) |
2124 |
< |
break;; |
2124 |
> |
break;; |
2125 |
|
esac |
2126 |
|
done |
2127 |
|
else |
2195 |
|
case $ac_file in |
2196 |
|
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; |
2197 |
|
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
2198 |
< |
export ac_cv_exeext |
2199 |
< |
break;; |
2198 |
> |
export ac_cv_exeext |
2199 |
> |
break;; |
2200 |
|
* ) break;; |
2201 |
|
esac |
2202 |
|
done |
2221 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
2222 |
|
else |
2223 |
|
cat >conftest.$ac_ext <<_ACEOF |
2185 |
– |
#line $LINENO "configure" |
2224 |
|
/* confdefs.h. */ |
2225 |
|
_ACEOF |
2226 |
|
cat confdefs.h >>conftest.$ac_ext |
2271 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
2272 |
|
else |
2273 |
|
cat >conftest.$ac_ext <<_ACEOF |
2236 |
– |
#line $LINENO "configure" |
2274 |
|
/* confdefs.h. */ |
2275 |
|
_ACEOF |
2276 |
|
cat confdefs.h >>conftest.$ac_ext |
2290 |
|
_ACEOF |
2291 |
|
rm -f conftest.$ac_objext |
2292 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2293 |
< |
(eval $ac_compile) 2>&5 |
2293 |
> |
(eval $ac_compile) 2>conftest.er1 |
2294 |
|
ac_status=$? |
2295 |
+ |
grep -v '^ *+' conftest.er1 >conftest.err |
2296 |
+ |
rm -f conftest.er1 |
2297 |
+ |
cat conftest.err >&5 |
2298 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2299 |
|
(exit $ac_status); } && |
2300 |
< |
{ ac_try='test -s conftest.$ac_objext' |
2300 |
> |
{ ac_try='test -z "$ac_c_werror_flag" |
2301 |
> |
|| test ! -s conftest.err' |
2302 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2303 |
|
(eval $ac_try) 2>&5 |
2304 |
|
ac_status=$? |
2305 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2306 |
+ |
(exit $ac_status); }; } && |
2307 |
+ |
{ ac_try='test -s conftest.$ac_objext' |
2308 |
+ |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2309 |
+ |
(eval $ac_try) 2>&5 |
2310 |
+ |
ac_status=$? |
2311 |
+ |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2312 |
|
(exit $ac_status); }; }; then |
2313 |
|
ac_compiler_gnu=yes |
2314 |
|
else |
2317 |
|
|
2318 |
|
ac_compiler_gnu=no |
2319 |
|
fi |
2320 |
< |
rm -f conftest.$ac_objext conftest.$ac_ext |
2320 |
> |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
2321 |
|
ac_cv_c_compiler_gnu=$ac_compiler_gnu |
2322 |
|
|
2323 |
|
fi |
2333 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
2334 |
|
else |
2335 |
|
cat >conftest.$ac_ext <<_ACEOF |
2289 |
– |
#line $LINENO "configure" |
2336 |
|
/* confdefs.h. */ |
2337 |
|
_ACEOF |
2338 |
|
cat confdefs.h >>conftest.$ac_ext |
2349 |
|
_ACEOF |
2350 |
|
rm -f conftest.$ac_objext |
2351 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2352 |
< |
(eval $ac_compile) 2>&5 |
2352 |
> |
(eval $ac_compile) 2>conftest.er1 |
2353 |
|
ac_status=$? |
2354 |
+ |
grep -v '^ *+' conftest.er1 >conftest.err |
2355 |
+ |
rm -f conftest.er1 |
2356 |
+ |
cat conftest.err >&5 |
2357 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2358 |
|
(exit $ac_status); } && |
2359 |
< |
{ ac_try='test -s conftest.$ac_objext' |
2359 |
> |
{ ac_try='test -z "$ac_c_werror_flag" |
2360 |
> |
|| test ! -s conftest.err' |
2361 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2362 |
|
(eval $ac_try) 2>&5 |
2363 |
|
ac_status=$? |
2364 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2365 |
+ |
(exit $ac_status); }; } && |
2366 |
+ |
{ ac_try='test -s conftest.$ac_objext' |
2367 |
+ |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2368 |
+ |
(eval $ac_try) 2>&5 |
2369 |
+ |
ac_status=$? |
2370 |
+ |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2371 |
|
(exit $ac_status); }; }; then |
2372 |
|
ac_cv_prog_cc_g=yes |
2373 |
|
else |
2376 |
|
|
2377 |
|
ac_cv_prog_cc_g=no |
2378 |
|
fi |
2379 |
< |
rm -f conftest.$ac_objext conftest.$ac_ext |
2379 |
> |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
2380 |
|
fi |
2381 |
|
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
2382 |
|
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
2403 |
|
ac_cv_prog_cc_stdc=no |
2404 |
|
ac_save_CC=$CC |
2405 |
|
cat >conftest.$ac_ext <<_ACEOF |
2350 |
– |
#line $LINENO "configure" |
2406 |
|
/* confdefs.h. */ |
2407 |
|
_ACEOF |
2408 |
|
cat confdefs.h >>conftest.$ac_ext |
2430 |
|
va_end (v); |
2431 |
|
return s; |
2432 |
|
} |
2433 |
+ |
|
2434 |
+ |
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
2435 |
+ |
function prototypes and stuff, but not '\xHH' hex character constants. |
2436 |
+ |
These don't provoke an error unfortunately, instead are silently treated |
2437 |
+ |
as 'x'. The following induces an error, until -std1 is added to get |
2438 |
+ |
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
2439 |
+ |
array size at least. It's necessary to write '\x00'==0 to get something |
2440 |
+ |
that's true only with -std1. */ |
2441 |
+ |
int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
2442 |
+ |
|
2443 |
|
int test (int i, double x); |
2444 |
|
struct s1 {int (*f) (int a);}; |
2445 |
|
struct s2 {int (*f) (double a);}; |
2466 |
|
CC="$ac_save_CC $ac_arg" |
2467 |
|
rm -f conftest.$ac_objext |
2468 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2469 |
< |
(eval $ac_compile) 2>&5 |
2469 |
> |
(eval $ac_compile) 2>conftest.er1 |
2470 |
|
ac_status=$? |
2471 |
+ |
grep -v '^ *+' conftest.er1 >conftest.err |
2472 |
+ |
rm -f conftest.er1 |
2473 |
+ |
cat conftest.err >&5 |
2474 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2475 |
|
(exit $ac_status); } && |
2476 |
< |
{ ac_try='test -s conftest.$ac_objext' |
2476 |
> |
{ ac_try='test -z "$ac_c_werror_flag" |
2477 |
> |
|| test ! -s conftest.err' |
2478 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2479 |
|
(eval $ac_try) 2>&5 |
2480 |
|
ac_status=$? |
2481 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2482 |
+ |
(exit $ac_status); }; } && |
2483 |
+ |
{ ac_try='test -s conftest.$ac_objext' |
2484 |
+ |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2485 |
+ |
(eval $ac_try) 2>&5 |
2486 |
+ |
ac_status=$? |
2487 |
+ |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2488 |
|
(exit $ac_status); }; }; then |
2489 |
|
ac_cv_prog_cc_stdc=$ac_arg |
2490 |
|
break |
2493 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
2494 |
|
|
2495 |
|
fi |
2496 |
< |
rm -f conftest.$ac_objext |
2496 |
> |
rm -f conftest.err conftest.$ac_objext |
2497 |
|
done |
2498 |
|
rm -f conftest.$ac_ext conftest.$ac_objext |
2499 |
|
CC=$ac_save_CC |
2521 |
|
_ACEOF |
2522 |
|
rm -f conftest.$ac_objext |
2523 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2524 |
< |
(eval $ac_compile) 2>&5 |
2524 |
> |
(eval $ac_compile) 2>conftest.er1 |
2525 |
|
ac_status=$? |
2526 |
+ |
grep -v '^ *+' conftest.er1 >conftest.err |
2527 |
+ |
rm -f conftest.er1 |
2528 |
+ |
cat conftest.err >&5 |
2529 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2530 |
|
(exit $ac_status); } && |
2531 |
< |
{ ac_try='test -s conftest.$ac_objext' |
2531 |
> |
{ ac_try='test -z "$ac_c_werror_flag" |
2532 |
> |
|| test ! -s conftest.err' |
2533 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2534 |
|
(eval $ac_try) 2>&5 |
2535 |
|
ac_status=$? |
2536 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2537 |
+ |
(exit $ac_status); }; } && |
2538 |
+ |
{ ac_try='test -s conftest.$ac_objext' |
2539 |
+ |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2540 |
+ |
(eval $ac_try) 2>&5 |
2541 |
+ |
ac_status=$? |
2542 |
+ |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2543 |
|
(exit $ac_status); }; }; then |
2544 |
|
for ac_declaration in \ |
2545 |
< |
''\ |
2461 |
< |
'#include <stdlib.h>' \ |
2545 |
> |
'' \ |
2546 |
|
'extern "C" void std::exit (int) throw (); using std::exit;' \ |
2547 |
|
'extern "C" void std::exit (int); using std::exit;' \ |
2548 |
|
'extern "C" void exit (int) throw ();' \ |
2550 |
|
'void exit (int);' |
2551 |
|
do |
2552 |
|
cat >conftest.$ac_ext <<_ACEOF |
2469 |
– |
#line $LINENO "configure" |
2553 |
|
/* confdefs.h. */ |
2554 |
|
_ACEOF |
2555 |
|
cat confdefs.h >>conftest.$ac_ext |
2556 |
|
cat >>conftest.$ac_ext <<_ACEOF |
2557 |
|
/* end confdefs.h. */ |
2475 |
– |
#include <stdlib.h> |
2558 |
|
$ac_declaration |
2559 |
+ |
#include <stdlib.h> |
2560 |
|
int |
2561 |
|
main () |
2562 |
|
{ |
2567 |
|
_ACEOF |
2568 |
|
rm -f conftest.$ac_objext |
2569 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2570 |
< |
(eval $ac_compile) 2>&5 |
2570 |
> |
(eval $ac_compile) 2>conftest.er1 |
2571 |
|
ac_status=$? |
2572 |
+ |
grep -v '^ *+' conftest.er1 >conftest.err |
2573 |
+ |
rm -f conftest.er1 |
2574 |
+ |
cat conftest.err >&5 |
2575 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2576 |
|
(exit $ac_status); } && |
2577 |
< |
{ ac_try='test -s conftest.$ac_objext' |
2577 |
> |
{ ac_try='test -z "$ac_c_werror_flag" |
2578 |
> |
|| test ! -s conftest.err' |
2579 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2580 |
|
(eval $ac_try) 2>&5 |
2581 |
|
ac_status=$? |
2582 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2583 |
+ |
(exit $ac_status); }; } && |
2584 |
+ |
{ ac_try='test -s conftest.$ac_objext' |
2585 |
+ |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2586 |
+ |
(eval $ac_try) 2>&5 |
2587 |
+ |
ac_status=$? |
2588 |
+ |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2589 |
|
(exit $ac_status); }; }; then |
2590 |
|
: |
2591 |
|
else |
2594 |
|
|
2595 |
|
continue |
2596 |
|
fi |
2597 |
< |
rm -f conftest.$ac_objext conftest.$ac_ext |
2597 |
> |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
2598 |
|
cat >conftest.$ac_ext <<_ACEOF |
2506 |
– |
#line $LINENO "configure" |
2599 |
|
/* confdefs.h. */ |
2600 |
|
_ACEOF |
2601 |
|
cat confdefs.h >>conftest.$ac_ext |
2612 |
|
_ACEOF |
2613 |
|
rm -f conftest.$ac_objext |
2614 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2615 |
< |
(eval $ac_compile) 2>&5 |
2615 |
> |
(eval $ac_compile) 2>conftest.er1 |
2616 |
|
ac_status=$? |
2617 |
+ |
grep -v '^ *+' conftest.er1 >conftest.err |
2618 |
+ |
rm -f conftest.er1 |
2619 |
+ |
cat conftest.err >&5 |
2620 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2621 |
|
(exit $ac_status); } && |
2622 |
< |
{ ac_try='test -s conftest.$ac_objext' |
2622 |
> |
{ ac_try='test -z "$ac_c_werror_flag" |
2623 |
> |
|| test ! -s conftest.err' |
2624 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2625 |
|
(eval $ac_try) 2>&5 |
2626 |
|
ac_status=$? |
2627 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2628 |
+ |
(exit $ac_status); }; } && |
2629 |
+ |
{ ac_try='test -s conftest.$ac_objext' |
2630 |
+ |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2631 |
+ |
(eval $ac_try) 2>&5 |
2632 |
+ |
ac_status=$? |
2633 |
+ |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2634 |
|
(exit $ac_status); }; }; then |
2635 |
|
break |
2636 |
|
else |
2638 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
2639 |
|
|
2640 |
|
fi |
2641 |
< |
rm -f conftest.$ac_objext conftest.$ac_ext |
2641 |
> |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
2642 |
|
done |
2643 |
|
rm -f conftest* |
2644 |
|
if test -n "$ac_declaration"; then |
2652 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
2653 |
|
|
2654 |
|
fi |
2655 |
< |
rm -f conftest.$ac_objext conftest.$ac_ext |
2655 |
> |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
2656 |
|
ac_ext=c |
2657 |
|
ac_cpp='$CPP $CPPFLAGS' |
2658 |
|
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
2659 |
|
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
2660 |
|
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
2559 |
– |
|
2560 |
– |
|
2561 |
– |
|
2562 |
– |
|
2563 |
– |
|
2564 |
– |
# Try to determine "good" native compiler flags if none specified on command |
2565 |
– |
# line |
2566 |
– |
if test "$ac_test_CFLAGS" != "set"; then |
2567 |
– |
CFLAGS="" |
2568 |
– |
case "${host_cpu}-${host_os}" in |
2569 |
– |
|
2570 |
– |
*linux*) if test "$CC" = icc; then |
2571 |
– |
CFLAGS="-O" |
2572 |
– |
fi;; |
2573 |
– |
sparc-solaris2*) if test "$CC" = cc; then |
2574 |
– |
CFLAGS="-native -fast -xO5 -dalign" |
2575 |
– |
fi;; |
2576 |
– |
|
2577 |
– |
alpha*-osf*) if test "$CC" = cc; then |
2578 |
– |
CFLAGS="-newc -w0 -O5 -ansi_alias -ansi_args -fp_reorder -tune host -arch host -std1" |
2579 |
– |
fi;; |
2580 |
– |
|
2581 |
– |
hppa*-hpux*) if test "$CC" = cc; then |
2582 |
– |
CFLAGS="-Ae +O3 +Oall" |
2583 |
– |
fi;; |
2584 |
– |
|
2585 |
– |
rs6000*-aix*) if test "$CC" = cc -o "$CC" = xlc; then |
2586 |
– |
CFLAGS="-O3 -qtune=auto -qansialias -w" |
2587 |
– |
fi;; |
2588 |
– |
powerpc*-aix*) |
2589 |
– |
if test "$CC" = cc -o "$CC" = xlc; then |
2590 |
– |
CFLAGS="-O3 -qtune=auto -qansialias -w" |
2591 |
– |
echo "*******************************************************" |
2592 |
– |
echo "* You have AIX on an unknown powerpc system. It is *" |
2593 |
– |
echo "* recommended that you use *" |
2594 |
– |
echo "* *" |
2595 |
– |
echo "* CFLAGS=-O3 -qarch=ppc -qtune=xxx -qansialias -w *" |
2596 |
– |
echo "* ^^^ *" |
2597 |
– |
echo "* where xxx is 601, 603, 604, or whatever kind of *" |
2598 |
– |
echo "* PowerPC CPU you have. For more info, man cc. *" |
2599 |
– |
echo "*******************************************************" |
2600 |
– |
fi;; |
2601 |
– |
*darwin*) |
2602 |
– |
if test "$CC" = xlc -o "$CC" = cc; then |
2603 |
– |
CFLAGS="-O3 -qtune=auto -w" |
2604 |
– |
echo "*******************************************************" |
2605 |
– |
echo "* You have Darwin on an unknown powerpc system. *" |
2606 |
– |
echo "* It is recommended that you use *" |
2607 |
– |
echo "* *" |
2608 |
– |
echo "* CFLAGS=-O3 -qarch=ppc -qtune=xxx -qansialias -w *" |
2609 |
– |
echo "* ^^^ *" |
2610 |
– |
echo "* where xxx is 601, 603, 604, or whatever kind of *" |
2611 |
– |
echo "* PowerPC CPU you have. For more info, man cc. *" |
2612 |
– |
echo "*******************************************************" |
2613 |
– |
fi;; |
2614 |
– |
esac |
2615 |
– |
|
2616 |
– |
# use default flags for gcc on all systems |
2617 |
– |
if test $ac_cv_c_compiler_gnu = yes; then |
2618 |
– |
CFLAGS="-O6 -fomit-frame-pointer -Wall -W -Wcast-qual -Wpointer-arith -Wcast-align -pedantic" |
2619 |
– |
fi |
2620 |
– |
|
2621 |
– |
# test for gcc-specific flags: |
2622 |
– |
if test $ac_cv_c_compiler_gnu = yes; then |
2623 |
– |
# -malign-double for x86 systems |
2661 |
|
|
2662 |
|
|
2626 |
– |
echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -malign-double" >&5 |
2627 |
– |
echo $ECHO_N "checking whether ${CC-cc} accepts -malign-double... $ECHO_C" >&6 |
2628 |
– |
if test "${ac_align_double+set}" = set; then |
2629 |
– |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
2630 |
– |
else |
2631 |
– |
echo 'void f(){}' > conftest.c |
2632 |
– |
if test -z "`${CC-cc} -malign-double -c conftest.c 2>&1`"; then |
2633 |
– |
ac_align_double=yes |
2634 |
– |
else |
2635 |
– |
ac_align_double=no |
2636 |
– |
fi |
2637 |
– |
rm -f conftest* |
2638 |
– |
|
2639 |
– |
fi |
2640 |
– |
echo "$as_me:$LINENO: result: $ac_align_double" >&5 |
2641 |
– |
echo "${ECHO_T}$ac_align_double" >&6 |
2642 |
– |
if test "$ac_align_double" = yes; then |
2643 |
– |
: |
2644 |
– |
CFLAGS="$CFLAGS -malign-double" |
2645 |
– |
else |
2646 |
– |
: |
2647 |
– |
|
2648 |
– |
fi |
2649 |
– |
|
2650 |
– |
# -fstrict-aliasing for gcc-2.95+ |
2651 |
– |
|
2652 |
– |
|
2653 |
– |
echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -fstrict-aliasing" >&5 |
2654 |
– |
echo $ECHO_N "checking whether ${CC-cc} accepts -fstrict-aliasing... $ECHO_C" >&6 |
2655 |
– |
if test "${ac_fstrict_aliasing+set}" = set; then |
2656 |
– |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
2657 |
– |
else |
2658 |
– |
echo 'void f(){}' > conftest.c |
2659 |
– |
if test -z "`${CC-cc} -fstrict-aliasing -c conftest.c 2>&1`"; then |
2660 |
– |
ac_fstrict_aliasing=yes |
2661 |
– |
else |
2662 |
– |
ac_fstrict_aliasing=no |
2663 |
– |
fi |
2664 |
– |
rm -f conftest* |
2665 |
– |
|
2666 |
– |
fi |
2667 |
– |
echo "$as_me:$LINENO: result: $ac_fstrict_aliasing" >&5 |
2668 |
– |
echo "${ECHO_T}$ac_fstrict_aliasing" >&6 |
2669 |
– |
if test "$ac_fstrict_aliasing" = yes; then |
2670 |
– |
: |
2671 |
– |
CFLAGS="$CFLAGS -fstrict-aliasing" |
2672 |
– |
else |
2673 |
– |
: |
2674 |
– |
|
2675 |
– |
fi |
2676 |
– |
|
2677 |
– |
fi |
2678 |
– |
|
2679 |
– |
CPU_FLAGS="" |
2680 |
– |
if test "$GCC" = "yes"; then |
2681 |
– |
case "${host_cpu}" in |
2682 |
– |
i586*) |
2683 |
– |
|
2684 |
– |
echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mcpu=pentium" >&5 |
2685 |
– |
echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=pentium... $ECHO_C" >&6 |
2686 |
– |
if test "${ac_cpu_pentium+set}" = set; then |
2687 |
– |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
2688 |
– |
else |
2689 |
– |
echo 'void f(){}' > conftest.c |
2690 |
– |
if test -z "`${CC-cc} -mcpu=pentium -c conftest.c 2>&1`"; then |
2691 |
– |
ac_cpu_pentium=yes |
2692 |
– |
else |
2693 |
– |
ac_cpu_pentium=no |
2694 |
– |
fi |
2695 |
– |
rm -f conftest* |
2696 |
– |
|
2697 |
– |
fi |
2698 |
– |
echo "$as_me:$LINENO: result: $ac_cpu_pentium" >&5 |
2699 |
– |
echo "${ECHO_T}$ac_cpu_pentium" >&6 |
2700 |
– |
if test "$ac_cpu_pentium" = yes; then |
2701 |
– |
: |
2702 |
– |
CPU_FLAGS=-mcpu=pentium |
2703 |
– |
else |
2704 |
– |
: |
2705 |
– |
|
2706 |
– |
|
2707 |
– |
echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mpentium" >&5 |
2708 |
– |
echo $ECHO_N "checking whether ${CC-cc} accepts -mpentium... $ECHO_C" >&6 |
2709 |
– |
if test "${ac_pentium+set}" = set; then |
2710 |
– |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
2711 |
– |
else |
2712 |
– |
echo 'void f(){}' > conftest.c |
2713 |
– |
if test -z "`${CC-cc} -mpentium -c conftest.c 2>&1`"; then |
2714 |
– |
ac_pentium=yes |
2715 |
– |
else |
2716 |
– |
ac_pentium=no |
2717 |
– |
fi |
2718 |
– |
rm -f conftest* |
2719 |
– |
|
2720 |
– |
fi |
2721 |
– |
echo "$as_me:$LINENO: result: $ac_pentium" >&5 |
2722 |
– |
echo "${ECHO_T}$ac_pentium" >&6 |
2723 |
– |
if test "$ac_pentium" = yes; then |
2724 |
– |
: |
2725 |
– |
CPU_FLAGS=-mpentium |
2726 |
– |
else |
2727 |
– |
: |
2728 |
– |
|
2729 |
– |
fi |
2730 |
– |
|
2731 |
– |
fi |
2732 |
– |
|
2733 |
– |
;; |
2734 |
– |
i686*) |
2735 |
– |
|
2736 |
– |
echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mcpu=pentiumpro" >&5 |
2737 |
– |
echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=pentiumpro... $ECHO_C" >&6 |
2738 |
– |
if test "${ac_cpu_pentiumpro+set}" = set; then |
2739 |
– |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
2740 |
– |
else |
2741 |
– |
echo 'void f(){}' > conftest.c |
2742 |
– |
if test -z "`${CC-cc} -mcpu=pentiumpro -c conftest.c 2>&1`"; then |
2743 |
– |
ac_cpu_pentiumpro=yes |
2744 |
– |
else |
2745 |
– |
ac_cpu_pentiumpro=no |
2746 |
– |
fi |
2747 |
– |
rm -f conftest* |
2748 |
– |
|
2749 |
– |
fi |
2750 |
– |
echo "$as_me:$LINENO: result: $ac_cpu_pentiumpro" >&5 |
2751 |
– |
echo "${ECHO_T}$ac_cpu_pentiumpro" >&6 |
2752 |
– |
if test "$ac_cpu_pentiumpro" = yes; then |
2753 |
– |
: |
2754 |
– |
CPU_FLAGS=-mcpu=pentiumpro |
2755 |
– |
else |
2756 |
– |
: |
2757 |
– |
|
2758 |
– |
|
2759 |
– |
echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mpentiumpro" >&5 |
2760 |
– |
echo $ECHO_N "checking whether ${CC-cc} accepts -mpentiumpro... $ECHO_C" >&6 |
2761 |
– |
if test "${ac_pentiumpro+set}" = set; then |
2762 |
– |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
2763 |
– |
else |
2764 |
– |
echo 'void f(){}' > conftest.c |
2765 |
– |
if test -z "`${CC-cc} -mpentiumpro -c conftest.c 2>&1`"; then |
2766 |
– |
ac_pentiumpro=yes |
2767 |
– |
else |
2768 |
– |
ac_pentiumpro=no |
2769 |
– |
fi |
2770 |
– |
rm -f conftest* |
2771 |
– |
|
2772 |
– |
fi |
2773 |
– |
echo "$as_me:$LINENO: result: $ac_pentiumpro" >&5 |
2774 |
– |
echo "${ECHO_T}$ac_pentiumpro" >&6 |
2775 |
– |
if test "$ac_pentiumpro" = yes; then |
2776 |
– |
: |
2777 |
– |
CPU_FLAGS=-mpentiumpro |
2778 |
– |
else |
2779 |
– |
: |
2780 |
– |
|
2781 |
– |
fi |
2782 |
– |
|
2783 |
– |
fi |
2784 |
– |
|
2785 |
– |
;; |
2786 |
– |
powerpc*) |
2787 |
– |
cputype=`(grep cpu /proc/cpuinfo | head -1 | cut -d: -f2 | sed 's/ //g') 2> /dev/null` |
2788 |
– |
is60x=`echo $cputype | egrep "^600-9e?$"` |
2789 |
– |
if test -n "$is60x"; then |
2790 |
– |
|
2791 |
– |
|
2792 |
– |
echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mcpu=$cputype" >&5 |
2793 |
– |
echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=$cputype... $ECHO_C" >&6 |
2794 |
– |
if test "${ac_m_cpu_60x+set}" = set; then |
2795 |
– |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
2796 |
– |
else |
2797 |
– |
echo 'void f(){}' > conftest.c |
2798 |
– |
if test -z "`${CC-cc} -mcpu=$cputype -c conftest.c 2>&1`"; then |
2799 |
– |
ac_m_cpu_60x=yes |
2800 |
– |
else |
2801 |
– |
ac_m_cpu_60x=no |
2802 |
– |
fi |
2803 |
– |
rm -f conftest* |
2804 |
– |
|
2805 |
– |
fi |
2806 |
– |
echo "$as_me:$LINENO: result: $ac_m_cpu_60x" >&5 |
2807 |
– |
echo "${ECHO_T}$ac_m_cpu_60x" >&6 |
2808 |
– |
if test "$ac_m_cpu_60x" = yes; then |
2809 |
– |
: |
2810 |
– |
CPU_FLAGS=-mcpu=$cputype |
2811 |
– |
else |
2812 |
– |
: |
2813 |
– |
|
2814 |
– |
fi |
2815 |
– |
|
2816 |
– |
elif test "$cputype" = 750; then |
2817 |
– |
|
2818 |
– |
|
2819 |
– |
echo "$as_me:$LINENO: checking whether we are using gcc 2.95 or later" >&5 |
2820 |
– |
echo $ECHO_N "checking whether we are using gcc 2.95 or later... $ECHO_C" >&6 |
2821 |
– |
if test "${ac_cv_prog_gcc_2_95+set}" = set; then |
2822 |
– |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
2823 |
– |
else |
2824 |
– |
|
2825 |
– |
cat > conftest.c <<EOF |
2826 |
– |
#ifdef __GNUC__ |
2827 |
– |
# if (__GNUC__ > 2) || (__GNUC__ == 2 && __GNUC_MINOR__ >= 95) |
2828 |
– |
yes; |
2829 |
– |
# endif |
2830 |
– |
#endif |
2831 |
– |
EOF |
2832 |
– |
if { ac_try='${CC-cc} -E conftest.c' |
2833 |
– |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2834 |
– |
(eval $ac_try) 2>&5 |
2835 |
– |
ac_status=$? |
2836 |
– |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2837 |
– |
(exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then |
2838 |
– |
ac_cv_prog_gcc_2_95=yes |
2839 |
– |
else |
2840 |
– |
ac_cv_prog_gcc_2_95=no |
2841 |
– |
fi |
2842 |
– |
|
2843 |
– |
fi |
2844 |
– |
echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_2_95" >&5 |
2845 |
– |
echo "${ECHO_T}$ac_cv_prog_gcc_2_95" >&6 |
2846 |
– |
if test "$ac_cv_prog_gcc_2_95" = yes; then |
2847 |
– |
: |
2848 |
– |
|
2849 |
– |
|
2850 |
– |
echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mcpu=750" >&5 |
2851 |
– |
echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=750... $ECHO_C" >&6 |
2852 |
– |
if test "${ac_m_cpu_750+set}" = set; then |
2853 |
– |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
2854 |
– |
else |
2855 |
– |
echo 'void f(){}' > conftest.c |
2856 |
– |
if test -z "`${CC-cc} -mcpu=750 -c conftest.c 2>&1`"; then |
2857 |
– |
ac_m_cpu_750=yes |
2858 |
– |
else |
2859 |
– |
ac_m_cpu_750=no |
2860 |
– |
fi |
2861 |
– |
rm -f conftest* |
2862 |
– |
|
2863 |
– |
fi |
2864 |
– |
echo "$as_me:$LINENO: result: $ac_m_cpu_750" >&5 |
2865 |
– |
echo "${ECHO_T}$ac_m_cpu_750" >&6 |
2866 |
– |
if test "$ac_m_cpu_750" = yes; then |
2867 |
– |
: |
2868 |
– |
CPU_FLAGS=-mcpu=750 |
2869 |
– |
else |
2870 |
– |
: |
2871 |
– |
|
2872 |
– |
fi |
2873 |
– |
|
2874 |
– |
else |
2875 |
– |
: |
2876 |
– |
|
2877 |
– |
fi |
2878 |
– |
|
2879 |
– |
fi |
2880 |
– |
if test -z "$CPU_FLAGS"; then |
2881 |
– |
|
2882 |
– |
|
2883 |
– |
echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mcpu=powerpc" >&5 |
2884 |
– |
echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=powerpc... $ECHO_C" >&6 |
2885 |
– |
if test "${ac_m_cpu_powerpc+set}" = set; then |
2886 |
– |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
2887 |
– |
else |
2888 |
– |
echo 'void f(){}' > conftest.c |
2889 |
– |
if test -z "`${CC-cc} -mcpu=powerpc -c conftest.c 2>&1`"; then |
2890 |
– |
ac_m_cpu_powerpc=yes |
2891 |
– |
else |
2892 |
– |
ac_m_cpu_powerpc=no |
2893 |
– |
fi |
2894 |
– |
rm -f conftest* |
2895 |
– |
|
2896 |
– |
fi |
2897 |
– |
echo "$as_me:$LINENO: result: $ac_m_cpu_powerpc" >&5 |
2898 |
– |
echo "${ECHO_T}$ac_m_cpu_powerpc" >&6 |
2899 |
– |
if test "$ac_m_cpu_powerpc" = yes; then |
2900 |
– |
: |
2901 |
– |
CPU_FLAGS=-mcpu=powerpc |
2902 |
– |
else |
2903 |
– |
: |
2904 |
– |
|
2905 |
– |
fi |
2906 |
– |
|
2907 |
– |
fi |
2908 |
– |
if test -z "$CPU_FLAGS"; then |
2909 |
– |
|
2910 |
– |
|
2911 |
– |
echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mpowerpc" >&5 |
2912 |
– |
echo $ECHO_N "checking whether ${CC-cc} accepts -mpowerpc... $ECHO_C" >&6 |
2913 |
– |
if test "${ac_m_powerpc+set}" = set; then |
2914 |
– |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
2915 |
– |
else |
2916 |
– |
echo 'void f(){}' > conftest.c |
2917 |
– |
if test -z "`${CC-cc} -mpowerpc -c conftest.c 2>&1`"; then |
2918 |
– |
ac_m_powerpc=yes |
2919 |
– |
else |
2920 |
– |
ac_m_powerpc=no |
2921 |
– |
fi |
2922 |
– |
rm -f conftest* |
2923 |
– |
|
2924 |
– |
fi |
2925 |
– |
echo "$as_me:$LINENO: result: $ac_m_powerpc" >&5 |
2926 |
– |
echo "${ECHO_T}$ac_m_powerpc" >&6 |
2927 |
– |
if test "$ac_m_powerpc" = yes; then |
2928 |
– |
: |
2929 |
– |
CPU_FLAGS=-mpowerpc |
2930 |
– |
else |
2931 |
– |
: |
2932 |
– |
|
2933 |
– |
fi |
2934 |
– |
|
2935 |
– |
fi |
2936 |
– |
esac |
2937 |
– |
fi |
2938 |
– |
|
2939 |
– |
if test -n "$CPU_FLAGS"; then |
2940 |
– |
CFLAGS="$CFLAGS $CPU_FLAGS" |
2941 |
– |
fi |
2942 |
– |
|
2943 |
– |
if test -z "$CFLAGS"; then |
2944 |
– |
echo "" |
2945 |
– |
echo "********************************************************" |
2946 |
– |
echo "* WARNING: Don't know the best CFLAGS for this system *" |
2947 |
– |
echo "* Use make CFLAGS=..., or edit the top level Makefile *" |
2948 |
– |
echo "* (otherwise, a default of CFLAGS=-O3 will be used) *" |
2949 |
– |
echo "********************************************************" |
2950 |
– |
echo "" |
2951 |
– |
CFLAGS="-O3" |
2952 |
– |
fi |
2953 |
– |
|
2954 |
– |
|
2955 |
– |
|
2956 |
– |
echo "$as_me:$LINENO: checking whether ${CC-cc} accepts ${CFLAGS}" >&5 |
2957 |
– |
echo $ECHO_N "checking whether ${CC-cc} accepts ${CFLAGS}... $ECHO_C" >&6 |
2958 |
– |
if test "${ac_guessed_cflags+set}" = set; then |
2959 |
– |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
2960 |
– |
else |
2961 |
– |
echo 'void f(){}' > conftest.c |
2962 |
– |
if test -z "`${CC-cc} ${CFLAGS} -c conftest.c 2>&1`"; then |
2963 |
– |
ac_guessed_cflags=yes |
2964 |
– |
else |
2965 |
– |
ac_guessed_cflags=no |
2966 |
– |
fi |
2967 |
– |
rm -f conftest* |
2968 |
– |
|
2969 |
– |
fi |
2970 |
– |
echo "$as_me:$LINENO: result: $ac_guessed_cflags" >&5 |
2971 |
– |
echo "${ECHO_T}$ac_guessed_cflags" >&6 |
2972 |
– |
if test "$ac_guessed_cflags" = yes; then |
2973 |
– |
: |
2974 |
– |
|
2975 |
– |
else |
2976 |
– |
: |
2977 |
– |
|
2978 |
– |
echo "" |
2979 |
– |
echo "********************************************************" |
2980 |
– |
echo "* WARNING: The guessed CFLAGS don't seem to work with *" |
2981 |
– |
echo "* your compiler. *" |
2982 |
– |
echo "* Use make CFLAGS=..., or edit the top level Makefile *" |
2983 |
– |
echo "********************************************************" |
2984 |
– |
echo "" |
2985 |
– |
CFLAGS="" |
2986 |
– |
|
2987 |
– |
fi |
2988 |
– |
|
2989 |
– |
|
2990 |
– |
fi |
2991 |
– |
|
2663 |
|
ac_ext=cc |
2664 |
|
ac_cpp='$CXXCPP $CPPFLAGS' |
2665 |
|
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
2666 |
|
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
2667 |
|
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
2668 |
|
if test -n "$ac_tool_prefix"; then |
2669 |
< |
for ac_prog in $CCC icpc icc xlC g++ c++ |
2669 |
> |
for ac_prog in $CCC icpc icc xlc++ xlC CC g++ c++ |
2670 |
|
do |
2671 |
|
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
2672 |
|
set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
2708 |
|
fi |
2709 |
|
if test -z "$CXX"; then |
2710 |
|
ac_ct_CXX=$CXX |
2711 |
< |
for ac_prog in $CCC icpc icc xlC g++ c++ |
2711 |
> |
for ac_prog in $CCC icpc icc xlc++ xlC CC g++ c++ |
2712 |
|
do |
2713 |
|
# Extract the first word of "$ac_prog", so it can be a program name with args. |
2714 |
|
set dummy $ac_prog; ac_word=$2 |
2779 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
2780 |
|
else |
2781 |
|
cat >conftest.$ac_ext <<_ACEOF |
3111 |
– |
#line $LINENO "configure" |
2782 |
|
/* confdefs.h. */ |
2783 |
|
_ACEOF |
2784 |
|
cat confdefs.h >>conftest.$ac_ext |
2798 |
|
_ACEOF |
2799 |
|
rm -f conftest.$ac_objext |
2800 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2801 |
< |
(eval $ac_compile) 2>&5 |
2801 |
> |
(eval $ac_compile) 2>conftest.er1 |
2802 |
|
ac_status=$? |
2803 |
+ |
grep -v '^ *+' conftest.er1 >conftest.err |
2804 |
+ |
rm -f conftest.er1 |
2805 |
+ |
cat conftest.err >&5 |
2806 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2807 |
|
(exit $ac_status); } && |
2808 |
< |
{ ac_try='test -s conftest.$ac_objext' |
2808 |
> |
{ ac_try='test -z "$ac_cxx_werror_flag" |
2809 |
> |
|| test ! -s conftest.err' |
2810 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2811 |
|
(eval $ac_try) 2>&5 |
2812 |
|
ac_status=$? |
2813 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2814 |
+ |
(exit $ac_status); }; } && |
2815 |
+ |
{ ac_try='test -s conftest.$ac_objext' |
2816 |
+ |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2817 |
+ |
(eval $ac_try) 2>&5 |
2818 |
+ |
ac_status=$? |
2819 |
+ |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2820 |
|
(exit $ac_status); }; }; then |
2821 |
|
ac_compiler_gnu=yes |
2822 |
|
else |
2825 |
|
|
2826 |
|
ac_compiler_gnu=no |
2827 |
|
fi |
2828 |
< |
rm -f conftest.$ac_objext conftest.$ac_ext |
2828 |
> |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
2829 |
|
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
2830 |
|
|
2831 |
|
fi |
2841 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
2842 |
|
else |
2843 |
|
cat >conftest.$ac_ext <<_ACEOF |
3164 |
– |
#line $LINENO "configure" |
2844 |
|
/* confdefs.h. */ |
2845 |
|
_ACEOF |
2846 |
|
cat confdefs.h >>conftest.$ac_ext |
2857 |
|
_ACEOF |
2858 |
|
rm -f conftest.$ac_objext |
2859 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2860 |
< |
(eval $ac_compile) 2>&5 |
2860 |
> |
(eval $ac_compile) 2>conftest.er1 |
2861 |
|
ac_status=$? |
2862 |
+ |
grep -v '^ *+' conftest.er1 >conftest.err |
2863 |
+ |
rm -f conftest.er1 |
2864 |
+ |
cat conftest.err >&5 |
2865 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2866 |
|
(exit $ac_status); } && |
2867 |
< |
{ ac_try='test -s conftest.$ac_objext' |
2867 |
> |
{ ac_try='test -z "$ac_cxx_werror_flag" |
2868 |
> |
|| test ! -s conftest.err' |
2869 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2870 |
|
(eval $ac_try) 2>&5 |
2871 |
|
ac_status=$? |
2872 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2873 |
+ |
(exit $ac_status); }; } && |
2874 |
+ |
{ ac_try='test -s conftest.$ac_objext' |
2875 |
+ |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2876 |
+ |
(eval $ac_try) 2>&5 |
2877 |
+ |
ac_status=$? |
2878 |
+ |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2879 |
|
(exit $ac_status); }; }; then |
2880 |
|
ac_cv_prog_cxx_g=yes |
2881 |
|
else |
2884 |
|
|
2885 |
|
ac_cv_prog_cxx_g=no |
2886 |
|
fi |
2887 |
< |
rm -f conftest.$ac_objext conftest.$ac_ext |
2887 |
> |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
2888 |
|
fi |
2889 |
|
echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
2890 |
|
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 |
2904 |
|
fi |
2905 |
|
fi |
2906 |
|
for ac_declaration in \ |
2907 |
< |
''\ |
3219 |
< |
'#include <stdlib.h>' \ |
2907 |
> |
'' \ |
2908 |
|
'extern "C" void std::exit (int) throw (); using std::exit;' \ |
2909 |
|
'extern "C" void std::exit (int); using std::exit;' \ |
2910 |
|
'extern "C" void exit (int) throw ();' \ |
2912 |
|
'void exit (int);' |
2913 |
|
do |
2914 |
|
cat >conftest.$ac_ext <<_ACEOF |
3227 |
– |
#line $LINENO "configure" |
2915 |
|
/* confdefs.h. */ |
2916 |
|
_ACEOF |
2917 |
|
cat confdefs.h >>conftest.$ac_ext |
2918 |
|
cat >>conftest.$ac_ext <<_ACEOF |
2919 |
|
/* end confdefs.h. */ |
3233 |
– |
#include <stdlib.h> |
2920 |
|
$ac_declaration |
2921 |
+ |
#include <stdlib.h> |
2922 |
|
int |
2923 |
|
main () |
2924 |
|
{ |
2929 |
|
_ACEOF |
2930 |
|
rm -f conftest.$ac_objext |
2931 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2932 |
< |
(eval $ac_compile) 2>&5 |
2932 |
> |
(eval $ac_compile) 2>conftest.er1 |
2933 |
|
ac_status=$? |
2934 |
+ |
grep -v '^ *+' conftest.er1 >conftest.err |
2935 |
+ |
rm -f conftest.er1 |
2936 |
+ |
cat conftest.err >&5 |
2937 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2938 |
|
(exit $ac_status); } && |
2939 |
< |
{ ac_try='test -s conftest.$ac_objext' |
2939 |
> |
{ ac_try='test -z "$ac_cxx_werror_flag" |
2940 |
> |
|| test ! -s conftest.err' |
2941 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2942 |
|
(eval $ac_try) 2>&5 |
2943 |
|
ac_status=$? |
2944 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2945 |
+ |
(exit $ac_status); }; } && |
2946 |
+ |
{ ac_try='test -s conftest.$ac_objext' |
2947 |
+ |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2948 |
+ |
(eval $ac_try) 2>&5 |
2949 |
+ |
ac_status=$? |
2950 |
+ |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2951 |
|
(exit $ac_status); }; }; then |
2952 |
|
: |
2953 |
|
else |
2956 |
|
|
2957 |
|
continue |
2958 |
|
fi |
2959 |
< |
rm -f conftest.$ac_objext conftest.$ac_ext |
2959 |
> |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
2960 |
|
cat >conftest.$ac_ext <<_ACEOF |
3264 |
– |
#line $LINENO "configure" |
2961 |
|
/* confdefs.h. */ |
2962 |
|
_ACEOF |
2963 |
|
cat confdefs.h >>conftest.$ac_ext |
2974 |
|
_ACEOF |
2975 |
|
rm -f conftest.$ac_objext |
2976 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2977 |
< |
(eval $ac_compile) 2>&5 |
2977 |
> |
(eval $ac_compile) 2>conftest.er1 |
2978 |
|
ac_status=$? |
2979 |
+ |
grep -v '^ *+' conftest.er1 >conftest.err |
2980 |
+ |
rm -f conftest.er1 |
2981 |
+ |
cat conftest.err >&5 |
2982 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2983 |
|
(exit $ac_status); } && |
2984 |
< |
{ ac_try='test -s conftest.$ac_objext' |
2984 |
> |
{ ac_try='test -z "$ac_cxx_werror_flag" |
2985 |
> |
|| test ! -s conftest.err' |
2986 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2987 |
|
(eval $ac_try) 2>&5 |
2988 |
|
ac_status=$? |
2989 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2990 |
+ |
(exit $ac_status); }; } && |
2991 |
+ |
{ ac_try='test -s conftest.$ac_objext' |
2992 |
+ |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2993 |
+ |
(eval $ac_try) 2>&5 |
2994 |
+ |
ac_status=$? |
2995 |
+ |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2996 |
|
(exit $ac_status); }; }; then |
2997 |
|
break |
2998 |
|
else |
3000 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
3001 |
|
|
3002 |
|
fi |
3003 |
< |
rm -f conftest.$ac_objext conftest.$ac_ext |
3003 |
> |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
3004 |
|
done |
3005 |
|
rm -f conftest* |
3006 |
|
if test -n "$ac_declaration"; then |
3016 |
|
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
3017 |
|
|
3018 |
|
|
3019 |
+ |
OOPSE_TEMPLATE_FLAGS="" |
3020 |
+ |
if test $ac_cv_cxx_compiler_gnu = no; then |
3021 |
+ |
echo "$as_me:$LINENO: checking checking whether ${CXX} accepts -ptused -no_prelink" >&5 |
3022 |
+ |
echo $ECHO_N "checking checking whether ${CXX} accepts -ptused -no_prelink... $ECHO_C" >&6 |
3023 |
+ |
echo 'void f(){}' > conftest.cc |
3024 |
+ |
if test -z "`${CXX} -ptused -no_prelink -c conftest.cc 2>&1`"; then |
3025 |
+ |
echo "$as_me:$LINENO: result: yes" >&5 |
3026 |
+ |
echo "${ECHO_T}yes" >&6 |
3027 |
+ |
OOPSE_TEMPLATE_FLAGS="-ptused -no_prelink" |
3028 |
+ |
else |
3029 |
+ |
echo "$as_me:$LINENO: result: no" >&5 |
3030 |
+ |
echo "${ECHO_T}no" >&6 |
3031 |
+ |
fi |
3032 |
+ |
rm -f conftest* |
3033 |
+ |
echo "$as_me:$LINENO: checking checking whether ${CXX} accepts -instances=static" >&5 |
3034 |
+ |
echo $ECHO_N "checking checking whether ${CXX} accepts -instances=static... $ECHO_C" >&6 |
3035 |
+ |
echo 'void f(){}' > conftest.cc |
3036 |
+ |
if test -z "`${CXX} -instances=static -c conftest.cc 2>&1`"; then |
3037 |
+ |
echo "$as_me:$LINENO: result: yes" >&5 |
3038 |
+ |
echo "${ECHO_T}yes" >&6 |
3039 |
+ |
OOPSE_TEMPLATE_FLAGS="-instances=static" |
3040 |
+ |
else |
3041 |
+ |
echo "$as_me:$LINENO: result: no" >&5 |
3042 |
+ |
echo "${ECHO_T}no" >&6 |
3043 |
+ |
fi |
3044 |
+ |
rm -f conftest* |
3045 |
+ |
echo "$as_me:$LINENO: checking checking whether ${CXX} accepts -pto" >&5 |
3046 |
+ |
echo $ECHO_N "checking checking whether ${CXX} accepts -pto... $ECHO_C" >&6 |
3047 |
+ |
echo 'void f(){}' > conftest.cc |
3048 |
+ |
if test -z "`${CXX} -pto -c conftest.cc 2>&1`"; then |
3049 |
+ |
echo "$as_me:$LINENO: result: yes" >&5 |
3050 |
+ |
echo "${ECHO_T}yes" >&6 |
3051 |
+ |
OOPSE_TEMPLATE_FLAGS="-pto" |
3052 |
+ |
else |
3053 |
+ |
echo "$as_me:$LINENO: result: no" >&5 |
3054 |
+ |
echo "${ECHO_T}no" >&6 |
3055 |
+ |
fi |
3056 |
+ |
rm -f conftest* |
3057 |
+ |
echo "$as_me:$LINENO: checking checking whether ${CXX} accepts -LANG:std" >&5 |
3058 |
+ |
echo $ECHO_N "checking checking whether ${CXX} accepts -LANG:std... $ECHO_C" >&6 |
3059 |
+ |
echo 'void f(){}' > conftest.cc |
3060 |
+ |
if test -z "`${CXX} -LANG:std -c conftest.cc 2>&1`"; then |
3061 |
+ |
echo "$as_me:$LINENO: result: yes" >&5 |
3062 |
+ |
echo "${ECHO_T}yes" >&6 |
3063 |
|
|
3064 |
|
|
3065 |
< |
|
3066 |
< |
# Try to determine "good" native compiler flags if none specified on command |
3067 |
< |
# line |
3068 |
< |
if test "$ac_test_CXXFLAGS" != "set"; then |
3319 |
< |
CXXFLAGS="" |
3320 |
< |
case "${host_cpu}-${host_os}" in |
3321 |
< |
|
3322 |
< |
*linux*) if test "$CXX" = icc -o "$CXX" = icpc; then |
3323 |
< |
CXXFLAGS="-O" |
3324 |
< |
fi;; |
3325 |
< |
sparc-solaris2*) if test "$CXX" = CC; then |
3326 |
< |
CXXFLAGS="-native -fast -xO5 -dalign" |
3327 |
< |
fi;; |
3328 |
< |
rs6000*-aix*) if test "$CXX" = xlC; then |
3329 |
< |
CXXFLAGS="-O3 -qarch=pwrx -qtune=pwrx -qansialias -w" |
3330 |
< |
fi;; |
3331 |
< |
powerpc*-aix*) |
3332 |
< |
if test "$CXX" = xlC; then |
3333 |
< |
CXXFLAGS="-O3 -qarch=ppc -qansialias -w" |
3334 |
< |
echo "*******************************************************" |
3335 |
< |
echo "* You have AIX on an unknown powerpc system. It is *" |
3336 |
< |
echo "* recommended that you use *" |
3337 |
< |
echo "* *" |
3338 |
< |
echo "* CXXFLAGS=-O3 -qarch=ppc -qtune=xxx -qansialias -w *" |
3339 |
< |
echo "* ^^^ *" |
3340 |
< |
echo "* where xxx is 601, 603, 604, or whatever kind of *" |
3341 |
< |
echo "* PowerPC CPU you have. For more info, man cc. *" |
3342 |
< |
echo "*******************************************************" |
3343 |
< |
fi;; |
3344 |
< |
*darwin*) |
3345 |
< |
if test "$CXX" = xlC; then |
3346 |
< |
CXXFLAGS="-O3 -qtune=auto -qansialias -w" |
3347 |
< |
echo "*******************************************************" |
3348 |
< |
echo "* You have AIX on an unknown powerpc system. It is *" |
3349 |
< |
echo "* recommended that you use *" |
3350 |
< |
echo "* *" |
3351 |
< |
echo "* CXXFLAGS=-O3 -qarch=ppc -qtune=xxx -qansialias -w *" |
3352 |
< |
echo "* ^^^ *" |
3353 |
< |
echo "* where xxx is 601, 603, 604, or whatever kind of *" |
3354 |
< |
echo "* PowerPC CPU you have. For more info, man cc. *" |
3355 |
< |
echo "*******************************************************" |
3356 |
< |
fi;; |
3357 |
< |
esac |
3358 |
< |
|
3359 |
< |
# use default flags for gcc on all systems |
3360 |
< |
if test $ac_cv_c_compiler_gnu = yes; then |
3361 |
< |
CXXFLAGS="-O6 -fomit-frame-pointer -Wall -W -Wcast-qual -Wpointer-arith -Wcast-align -pedantic" |
3065 |
> |
EXTRA_CC_FLAG=${EXTRA_CC_FLAG}" -LANG:std" |
3066 |
> |
else |
3067 |
> |
echo "$as_me:$LINENO: result: no" >&5 |
3068 |
> |
echo "${ECHO_T}no" >&6 |
3069 |
|
fi |
3070 |
+ |
fi |
3071 |
|
|
3364 |
– |
# test for gcc-specific flags: |
3365 |
– |
if test $ac_cv_c_compiler_gnu = yes; then |
3366 |
– |
# -malign-double for x86 systems |
3072 |
|
|
3073 |
|
|
3074 |
< |
echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -malign-double" >&5 |
3075 |
< |
echo $ECHO_N "checking whether ${CXX-c++} accepts -malign-double... $ECHO_C" >&6 |
3076 |
< |
if test "${ac_align_double+set}" = set; then |
3074 |
> |
|
3075 |
> |
ac_ext=f90 |
3076 |
> |
ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5' |
3077 |
> |
ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3078 |
> |
ac_compiler_gnu=$ac_cv_f90_compiler_gnu |
3079 |
> |
if test -n "$ac_tool_prefix"; then |
3080 |
> |
for ac_prog in ifort ifc f90 xlf90 pgf90 epcf90 f95 xlf95 lf95 fort g95 |
3081 |
> |
do |
3082 |
> |
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
3083 |
> |
set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
3084 |
> |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3085 |
> |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
3086 |
> |
if test "${ac_cv_prog_F90+set}" = set; then |
3087 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
3088 |
|
else |
3089 |
< |
echo 'void f(){}' > conftest.cpp |
3090 |
< |
if test -z "`${CXX-c++} -malign-double -c conftest.cpp 2>&1`"; then |
3376 |
< |
ac_align_double=yes |
3089 |
> |
if test -n "$F90"; then |
3090 |
> |
ac_cv_prog_F90="$F90" # Let the user override the test. |
3091 |
|
else |
3092 |
< |
ac_align_double=no |
3093 |
< |
fi |
3094 |
< |
rm -f conftest* |
3092 |
> |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3093 |
> |
for as_dir in $PATH |
3094 |
> |
do |
3095 |
> |
IFS=$as_save_IFS |
3096 |
> |
test -z "$as_dir" && as_dir=. |
3097 |
> |
for ac_exec_ext in '' $ac_executable_extensions; do |
3098 |
> |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
3099 |
> |
ac_cv_prog_F90="$ac_tool_prefix$ac_prog" |
3100 |
> |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3101 |
> |
break 2 |
3102 |
> |
fi |
3103 |
> |
done |
3104 |
> |
done |
3105 |
|
|
3106 |
|
fi |
3107 |
< |
echo "$as_me:$LINENO: result: $ac_align_double" >&5 |
3108 |
< |
echo "${ECHO_T}$ac_align_double" >&6 |
3109 |
< |
if test "$ac_align_double" = yes; then |
3110 |
< |
: |
3111 |
< |
CXXFLAGS="$CXXFLAGS -malign-double" |
3107 |
> |
fi |
3108 |
> |
F90=$ac_cv_prog_F90 |
3109 |
> |
if test -n "$F90"; then |
3110 |
> |
echo "$as_me:$LINENO: result: $F90" >&5 |
3111 |
> |
echo "${ECHO_T}$F90" >&6 |
3112 |
|
else |
3113 |
< |
: |
3114 |
< |
|
3113 |
> |
echo "$as_me:$LINENO: result: no" >&5 |
3114 |
> |
echo "${ECHO_T}no" >&6 |
3115 |
|
fi |
3116 |
|
|
3117 |
< |
# -fstrict-aliasing for gcc-2.95+ |
3118 |
< |
|
3119 |
< |
|
3120 |
< |
echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -fstrict-aliasing" >&5 |
3121 |
< |
echo $ECHO_N "checking whether ${CXX-c++} accepts -fstrict-aliasing... $ECHO_C" >&6 |
3122 |
< |
if test "${ac_fstrict_aliasing+set}" = set; then |
3117 |
> |
test -n "$F90" && break |
3118 |
> |
done |
3119 |
> |
fi |
3120 |
> |
if test -z "$F90"; then |
3121 |
> |
ac_ct_F90=$F90 |
3122 |
> |
for ac_prog in ifort ifc f90 xlf90 pgf90 epcf90 f95 xlf95 lf95 fort g95 |
3123 |
> |
do |
3124 |
> |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
3125 |
> |
set dummy $ac_prog; ac_word=$2 |
3126 |
> |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3127 |
> |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
3128 |
> |
if test "${ac_cv_prog_ac_ct_F90+set}" = set; then |
3129 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
3130 |
|
else |
3131 |
< |
echo 'void f(){}' > conftest.cpp |
3132 |
< |
if test -z "`${CXX-c++} -fstrict-aliasing -c conftest.cpp 2>&1`"; then |
3403 |
< |
ac_fstrict_aliasing=yes |
3131 |
> |
if test -n "$ac_ct_F90"; then |
3132 |
> |
ac_cv_prog_ac_ct_F90="$ac_ct_F90" # Let the user override the test. |
3133 |
|
else |
3134 |
< |
ac_fstrict_aliasing=no |
3135 |
< |
fi |
3136 |
< |
rm -f conftest* |
3134 |
> |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3135 |
> |
for as_dir in $PATH |
3136 |
> |
do |
3137 |
> |
IFS=$as_save_IFS |
3138 |
> |
test -z "$as_dir" && as_dir=. |
3139 |
> |
for ac_exec_ext in '' $ac_executable_extensions; do |
3140 |
> |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
3141 |
> |
ac_cv_prog_ac_ct_F90="$ac_prog" |
3142 |
> |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3143 |
> |
break 2 |
3144 |
> |
fi |
3145 |
> |
done |
3146 |
> |
done |
3147 |
|
|
3148 |
|
fi |
3149 |
+ |
fi |
3150 |
+ |
ac_ct_F90=$ac_cv_prog_ac_ct_F90 |
3151 |
+ |
if test -n "$ac_ct_F90"; then |
3152 |
+ |
echo "$as_me:$LINENO: result: $ac_ct_F90" >&5 |
3153 |
+ |
echo "${ECHO_T}$ac_ct_F90" >&6 |
3154 |
+ |
else |
3155 |
+ |
echo "$as_me:$LINENO: result: no" >&5 |
3156 |
+ |
echo "${ECHO_T}no" >&6 |
3157 |
+ |
fi |
3158 |
+ |
|
3159 |
+ |
test -n "$ac_ct_F90" && break |
3160 |
+ |
done |
3161 |
+ |
|
3162 |
+ |
F90=$ac_ct_F90 |
3163 |
+ |
fi |
3164 |
+ |
|
3165 |
+ |
|
3166 |
+ |
# If we don't use `.F90' as extension, the preprocessor is not run on the |
3167 |
+ |
# input file. |
3168 |
+ |
ac_save_ext=$ac_ext |
3169 |
+ |
ac_ext=F90 |
3170 |
+ |
echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 90 compiler" >&5 |
3171 |
+ |
echo $ECHO_N "checking whether we are using the GNU Fortran 90 compiler... $ECHO_C" >&6 |
3172 |
+ |
if test "${ac_cv_f90_compiler_gnu+set}" = set; then |
3173 |
+ |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
3174 |
+ |
else |
3175 |
+ |
cat >conftest.$ac_ext <<_ACEOF |
3176 |
+ |
|
3177 |
+ |
program main |
3178 |
+ |
|
3179 |
+ |
#ifndef __GNUC__ |
3180 |
+ |
choke me |
3181 |
+ |
#endif |
3182 |
+ |
|
3183 |
+ |
end program main |
3184 |
+ |
|
3185 |
+ |
_ACEOF |
3186 |
+ |
rm -f conftest.$ac_objext |
3187 |
+ |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
3188 |
+ |
(eval $ac_compile) 2>conftest.er1 |
3189 |
+ |
ac_status=$? |
3190 |
+ |
grep -v '^ *+' conftest.er1 >conftest.err |
3191 |
+ |
rm -f conftest.er1 |
3192 |
+ |
cat conftest.err >&5 |
3193 |
+ |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3194 |
+ |
(exit $ac_status); } && |
3195 |
+ |
{ ac_try='test -z "$ac_f90_werror_flag" |
3196 |
+ |
|| test ! -s conftest.err' |
3197 |
+ |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3198 |
+ |
(eval $ac_try) 2>&5 |
3199 |
+ |
ac_status=$? |
3200 |
+ |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3201 |
+ |
(exit $ac_status); }; } && |
3202 |
+ |
{ ac_try='test -s conftest.$ac_objext' |
3203 |
+ |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3204 |
+ |
(eval $ac_try) 2>&5 |
3205 |
+ |
ac_status=$? |
3206 |
+ |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3207 |
+ |
(exit $ac_status); }; }; then |
3208 |
+ |
ac_compiler_gnu=yes |
3209 |
+ |
else |
3210 |
+ |
echo "$as_me: failed program was:" >&5 |
3211 |
+ |
sed 's/^/| /' conftest.$ac_ext >&5 |
3212 |
+ |
|
3213 |
+ |
ac_compiler_gnu=no |
3214 |
+ |
fi |
3215 |
+ |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
3216 |
+ |
ac_cv_f90_compiler_gnu=$ac_compiler_gnu |
3217 |
+ |
|
3218 |
+ |
fi |
3219 |
+ |
echo "$as_me:$LINENO: result: $ac_cv_f90_compiler_gnu" >&5 |
3220 |
+ |
echo "${ECHO_T}$ac_cv_f90_compiler_gnu" >&6 |
3221 |
+ |
ac_ext=$ac_save_ext |
3222 |
+ |
G95=`test $ac_compiler_gnu = yes && echo yes` |
3223 |
+ |
ac_ext=c |
3224 |
+ |
ac_cpp='$CPP $CPPFLAGS' |
3225 |
+ |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
3226 |
+ |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3227 |
+ |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
3228 |
+ |
|
3229 |
+ |
|
3230 |
+ |
|
3231 |
+ |
|
3232 |
+ |
|
3233 |
+ |
# Try to determine native compiler flags that allow us to use F90 suffix |
3234 |
+ |
# for preprocessed f90 source. |
3235 |
+ |
|
3236 |
+ |
if test "$ac_test_PREPFLAG" != "set"; then |
3237 |
+ |
PREPFLAG="" |
3238 |
+ |
case "${host_cpu}-${host_os}" in |
3239 |
+ |
|
3240 |
+ |
*linux*) if test "$F90" = ifc -o "$F90" = ifort; then |
3241 |
+ |
PREPFLAG="-fpp1 " |
3242 |
+ |
fi;; |
3243 |
+ |
*aix*) if test "$F90" = xlf90 -o "$F90" = f90; then |
3244 |
+ |
PREPFLAG="-qsuffix=cpp=F90 " |
3245 |
+ |
fi;; |
3246 |
+ |
*darwin*) |
3247 |
+ |
if test "$F90" = f90 -o "$F90" = xlf90; then |
3248 |
+ |
PREPFLAG="-qsuffix=cpp=F90 " |
3249 |
+ |
fi;; |
3250 |
+ |
esac |
3251 |
+ |
|
3252 |
+ |
if test -z "$PREPFLAG"; then |
3253 |
+ |
{ echo "$as_me:$LINENO: WARNING: \"Using empty PREPFLAG\"" >&5 |
3254 |
+ |
echo "$as_me: WARNING: \"Using empty PREPFLAG\"" >&2;} |
3255 |
+ |
PREPFLAG="" |
3256 |
+ |
fi |
3257 |
+ |
|
3258 |
+ |
echo "$as_me:$LINENO: checking to make sure F90 preprocessor flag works" >&5 |
3259 |
+ |
echo $ECHO_N "checking to make sure F90 preprocessor flag works... $ECHO_C" >&6 |
3260 |
+ |
|
3261 |
+ |
|
3262 |
+ |
ac_ext=f90 |
3263 |
+ |
ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5' |
3264 |
+ |
ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3265 |
+ |
ac_compiler_gnu=$ac_cv_f90_compiler_gnu |
3266 |
+ |
|
3267 |
+ |
ac_save_ext=$ac_ext |
3268 |
+ |
ac_ext=F90 |
3269 |
+ |
ac_save_F90FLAGS=$F90FLAGS |
3270 |
+ |
|
3271 |
+ |
if test "$PREPFLAG"; then |
3272 |
+ |
F90FLAGS="${F90FLAGS} ${PREPFLAG}-DTEST" |
3273 |
+ |
fi |
3274 |
+ |
|
3275 |
+ |
cat >conftest.$ac_ext <<_ACEOF |
3276 |
+ |
|
3277 |
+ |
|
3278 |
+ |
program main |
3279 |
+ |
|
3280 |
+ |
integer :: i |
3281 |
+ |
i = 1 |
3282 |
+ |
|
3283 |
+ |
|
3284 |
+ |
end program main |
3285 |
+ |
|
3286 |
+ |
_ACEOF |
3287 |
+ |
rm -f conftest.$ac_objext |
3288 |
+ |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
3289 |
+ |
(eval $ac_compile) 2>conftest.er1 |
3290 |
+ |
ac_status=$? |
3291 |
+ |
grep -v '^ *+' conftest.er1 >conftest.err |
3292 |
+ |
rm -f conftest.er1 |
3293 |
+ |
cat conftest.err >&5 |
3294 |
+ |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3295 |
+ |
(exit $ac_status); } && |
3296 |
+ |
{ ac_try='test -z "$ac_f90_werror_flag" |
3297 |
+ |
|| test ! -s conftest.err' |
3298 |
+ |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3299 |
+ |
(eval $ac_try) 2>&5 |
3300 |
+ |
ac_status=$? |
3301 |
+ |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3302 |
+ |
(exit $ac_status); }; } && |
3303 |
+ |
{ ac_try='test -s conftest.$ac_objext' |
3304 |
+ |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3305 |
+ |
(eval $ac_try) 2>&5 |
3306 |
+ |
ac_status=$? |
3307 |
+ |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3308 |
+ |
(exit $ac_status); }; }; then |
3309 |
+ |
prepflagworks=1 |
3310 |
+ |
else |
3311 |
+ |
echo "$as_me: failed program was:" >&5 |
3312 |
+ |
sed 's/^/| /' conftest.$ac_ext >&5 |
3313 |
+ |
|
3314 |
+ |
prepflagworks=0 |
3315 |
+ |
fi |
3316 |
+ |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
3317 |
+ |
|
3318 |
+ |
F90FLAGS=$ac_save_F90FLAGS |
3319 |
+ |
ac_ext=$ac_save_ext |
3320 |
+ |
ac_ext=c |
3321 |
+ |
ac_cpp='$CPP $CPPFLAGS' |
3322 |
+ |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
3323 |
+ |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3324 |
+ |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
3325 |
+ |
|
3326 |
+ |
|
3327 |
+ |
if test "$prepflagworks" = 1; then |
3328 |
+ |
echo "$as_me:$LINENO: result: yes" >&5 |
3329 |
+ |
echo "${ECHO_T}yes" >&6 |
3330 |
+ |
|
3331 |
+ |
else |
3332 |
+ |
echo "$as_me:$LINENO: result: no" >&5 |
3333 |
+ |
echo "${ECHO_T}no" >&6 |
3334 |
+ |
{ { echo "$as_me:$LINENO: error: Can't figure out working Fortran90 preprocessor flag" >&5 |
3335 |
+ |
echo "$as_me: error: Can't figure out working Fortran90 preprocessor flag" >&2;} |
3336 |
+ |
{ (exit 1); exit 1; }; } |
3337 |
+ |
fi |
3338 |
+ |
fi |
3339 |
+ |
|
3340 |
+ |
|
3341 |
+ |
|
3342 |
+ |
|
3343 |
+ |
|
3344 |
+ |
# Try to determine native compiler flags that allow us to use F90 suffix |
3345 |
+ |
# for preprocessed f90 source with -D type defines |
3346 |
+ |
|
3347 |
+ |
if test "$ac_test_PREPDEFFLAG" != "set"; then |
3348 |
+ |
PREPDEFFLAG="" |
3349 |
+ |
case "${host_cpu}-${host_os}" in |
3350 |
+ |
|
3351 |
+ |
*linux*) if test "$F90" = ifc -o "$F90" = ifort; then |
3352 |
+ |
PREPDEFFLAG=" " |
3353 |
+ |
fi;; |
3354 |
+ |
*aix*) if test "$F90" = xlf90 -o "$F90" = f90; then |
3355 |
+ |
PREPDEFFLAG="-WF," |
3356 |
+ |
fi;; |
3357 |
+ |
*darwin*) |
3358 |
+ |
if test "$F90" = f90 -o "$F90" = xlf90; then |
3359 |
+ |
PREPDEFFLAG="-WF," |
3360 |
+ |
fi;; |
3361 |
+ |
esac |
3362 |
+ |
|
3363 |
+ |
if test -z "$PREPDEFFLAG"; then |
3364 |
+ |
{ echo "$as_me:$LINENO: WARNING: \"Using empty PREPDEFFLAG\"" >&5 |
3365 |
+ |
echo "$as_me: WARNING: \"Using empty PREPDEFFLAG\"" >&2;} |
3366 |
+ |
PREPDEFFLAG=" " |
3367 |
+ |
fi |
3368 |
+ |
|
3369 |
+ |
echo "$as_me:$LINENO: checking to make sure F90 preprocessor define flag works" >&5 |
3370 |
+ |
echo $ECHO_N "checking to make sure F90 preprocessor define flag works... $ECHO_C" >&6 |
3371 |
+ |
|
3372 |
+ |
|
3373 |
+ |
ac_ext=f90 |
3374 |
+ |
ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5' |
3375 |
+ |
ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3376 |
+ |
ac_compiler_gnu=$ac_cv_f90_compiler_gnu |
3377 |
+ |
|
3378 |
+ |
ac_save_ext=$ac_ext |
3379 |
+ |
ac_ext=F90 |
3380 |
+ |
ac_save_F90FLAGS=$F90FLAGS |
3381 |
+ |
|
3382 |
+ |
if test "$PREPDEFFLAG"; then |
3383 |
+ |
F90FLAGS="${F90FLAGS} ${PREPFLAG} ${PREPDEFFLAG}-DTEST" |
3384 |
+ |
fi |
3385 |
+ |
|
3386 |
+ |
cat >conftest.$ac_ext <<_ACEOF |
3387 |
+ |
|
3388 |
+ |
|
3389 |
+ |
program main |
3390 |
+ |
|
3391 |
+ |
integer :: i |
3392 |
+ |
#ifdef TEST |
3393 |
+ |
i = 1 |
3394 |
+ |
#else |
3395 |
+ |
choke me |
3396 |
+ |
#endif |
3397 |
+ |
|
3398 |
+ |
|
3399 |
+ |
end program main |
3400 |
+ |
|
3401 |
+ |
_ACEOF |
3402 |
+ |
rm -f conftest.$ac_objext |
3403 |
+ |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
3404 |
+ |
(eval $ac_compile) 2>conftest.er1 |
3405 |
+ |
ac_status=$? |
3406 |
+ |
grep -v '^ *+' conftest.er1 >conftest.err |
3407 |
+ |
rm -f conftest.er1 |
3408 |
+ |
cat conftest.err >&5 |
3409 |
+ |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3410 |
+ |
(exit $ac_status); } && |
3411 |
+ |
{ ac_try='test -z "$ac_f90_werror_flag" |
3412 |
+ |
|| test ! -s conftest.err' |
3413 |
+ |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3414 |
+ |
(eval $ac_try) 2>&5 |
3415 |
+ |
ac_status=$? |
3416 |
+ |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3417 |
+ |
(exit $ac_status); }; } && |
3418 |
+ |
{ ac_try='test -s conftest.$ac_objext' |
3419 |
+ |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3420 |
+ |
(eval $ac_try) 2>&5 |
3421 |
+ |
ac_status=$? |
3422 |
+ |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3423 |
+ |
(exit $ac_status); }; }; then |
3424 |
+ |
prepdefflagworks=1 |
3425 |
+ |
else |
3426 |
+ |
echo "$as_me: failed program was:" >&5 |
3427 |
+ |
sed 's/^/| /' conftest.$ac_ext >&5 |
3428 |
+ |
|
3429 |
+ |
prepdefflagworks=0 |
3430 |
+ |
fi |
3431 |
+ |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
3432 |
+ |
|
3433 |
+ |
F90FLAGS=$ac_save_F90FLAGS |
3434 |
+ |
ac_ext=$ac_save_ext |
3435 |
+ |
ac_ext=c |
3436 |
+ |
ac_cpp='$CPP $CPPFLAGS' |
3437 |
+ |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
3438 |
+ |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3439 |
+ |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
3440 |
+ |
|
3441 |
+ |
|
3442 |
+ |
|
3443 |
+ |
if test "$prepdefflagworks" = 1; then |
3444 |
+ |
echo "$as_me:$LINENO: result: yes" >&5 |
3445 |
+ |
echo "${ECHO_T}yes" >&6 |
3446 |
+ |
|
3447 |
+ |
else |
3448 |
+ |
echo "$as_me:$LINENO: result: no" >&5 |
3449 |
+ |
echo "${ECHO_T}no" >&6 |
3450 |
+ |
{ { echo "$as_me:$LINENO: error: Can't figure out working Fortran90 preprocessor define flag" >&5 |
3451 |
+ |
echo "$as_me: error: Can't figure out working Fortran90 preprocessor define flag" >&2;} |
3452 |
+ |
{ (exit 1); exit 1; }; } |
3453 |
+ |
fi |
3454 |
+ |
fi |
3455 |
+ |
|
3456 |
+ |
ac_ext=f90 |
3457 |
+ |
ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5' |
3458 |
+ |
ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3459 |
+ |
ac_compiler_gnu=$ac_cv_f90_compiler_gnu |
3460 |
+ |
|
3461 |
+ |
|
3462 |
+ |
|
3463 |
+ |
ac_ext=f90 |
3464 |
+ |
ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5' |
3465 |
+ |
ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3466 |
+ |
ac_compiler_gnu=$ac_cv_f90_compiler_gnu |
3467 |
+ |
echo "$as_me:$LINENO: checking how to get verbose linking output from $F90" >&5 |
3468 |
+ |
echo $ECHO_N "checking how to get verbose linking output from $F90... $ECHO_C" >&6 |
3469 |
+ |
if test "${ac_cv_prog_f90_v+set}" = set; then |
3470 |
+ |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
3471 |
+ |
else |
3472 |
+ |
|
3473 |
+ |
cat >conftest.$ac_ext <<_ACEOF |
3474 |
+ |
|
3475 |
+ |
program main |
3476 |
+ |
|
3477 |
+ |
|
3478 |
+ |
end program main |
3479 |
+ |
|
3480 |
+ |
_ACEOF |
3481 |
+ |
rm -f conftest.$ac_objext |
3482 |
+ |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
3483 |
+ |
(eval $ac_compile) 2>conftest.er1 |
3484 |
+ |
ac_status=$? |
3485 |
+ |
grep -v '^ *+' conftest.er1 >conftest.err |
3486 |
+ |
rm -f conftest.er1 |
3487 |
+ |
cat conftest.err >&5 |
3488 |
+ |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3489 |
+ |
(exit $ac_status); } && |
3490 |
+ |
{ ac_try='test -z "$ac_f90_werror_flag" |
3491 |
+ |
|| test ! -s conftest.err' |
3492 |
+ |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3493 |
+ |
(eval $ac_try) 2>&5 |
3494 |
+ |
ac_status=$? |
3495 |
+ |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3496 |
+ |
(exit $ac_status); }; } && |
3497 |
+ |
{ ac_try='test -s conftest.$ac_objext' |
3498 |
+ |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3499 |
+ |
(eval $ac_try) 2>&5 |
3500 |
+ |
ac_status=$? |
3501 |
+ |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3502 |
+ |
(exit $ac_status); }; }; then |
3503 |
+ |
ac_cv_prog_f90_v= |
3504 |
+ |
# Try some options frequently used verbose output |
3505 |
+ |
for ac_verb in -v -verbose --verbose -V -\#\#\#; do |
3506 |
+ |
ac_ext=f90 |
3507 |
+ |
ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5' |
3508 |
+ |
ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3509 |
+ |
ac_compiler_gnu=$ac_cv_f90_compiler_gnu |
3510 |
+ |
|
3511 |
+ |
cat >conftest.$ac_ext <<_ACEOF |
3512 |
+ |
|
3513 |
+ |
program main |
3514 |
+ |
|
3515 |
+ |
|
3516 |
+ |
end program main |
3517 |
+ |
|
3518 |
+ |
_ACEOF |
3519 |
+ |
|
3520 |
+ |
# Compile and link our simple test program by passing a flag (argument |
3521 |
+ |
# 1 to this macro) to the Fortran 90 compiler in order to get |
3522 |
+ |
# "verbose" output that we can then parse for the Fortran 90 linker |
3523 |
+ |
# flags. |
3524 |
+ |
ac_save_F90FLAGS=$F90FLAGS |
3525 |
+ |
F90FLAGS="$F90FLAGS $ac_verb" |
3526 |
+ |
|
3527 |
+ |
(eval echo $as_me:3527: \"$ac_link\") >&5 |
3528 |
+ |
ac_f90_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'` |
3529 |
+ |
echo "$ac_f90_v_output" >&5 |
3530 |
+ |
F90FLAGS=$ac_save_F90FLAGS |
3531 |
+ |
|
3532 |
+ |
rm -f conftest.* |
3533 |
+ |
ac_ext=f90 |
3534 |
+ |
ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5' |
3535 |
+ |
ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3536 |
+ |
ac_compiler_gnu=$ac_cv_f90_compiler_gnu |
3537 |
+ |
|
3538 |
+ |
# If we are using xlf then replace all the commas with spaces. |
3539 |
+ |
if echo $ac_f90_v_output | grep xlfentry >/dev/null 2>&1; then |
3540 |
+ |
ac_f90_v_output=`echo $ac_f90_v_output | sed 's/,/ /g'` |
3541 |
+ |
fi |
3542 |
+ |
|
3543 |
+ |
# If we are using Cray Fortran then delete quotes. |
3544 |
+ |
# Use "\"" instead of '"' for font-lock-mode. |
3545 |
+ |
# FIXME: a more general fix for quoted arguments with spaces? |
3546 |
+ |
if echo $ac_f90_v_output | grep cft90 >/dev/null 2>&1; then |
3547 |
+ |
ac_f90_v_output=`echo $ac_f90_v_output | sed "s/\"//g"` |
3548 |
+ |
fi |
3549 |
+ |
# look for -l* and *.a constructs in the output |
3550 |
+ |
for ac_arg in $ac_f90_v_output; do |
3551 |
+ |
case $ac_arg in |
3552 |
+ |
[\\/]*.a | ?:[\\/]*.a | -[lLRu]*) |
3553 |
+ |
ac_cv_prog_f90_v=$ac_verb |
3554 |
+ |
break 2 ;; |
3555 |
+ |
esac |
3556 |
+ |
done |
3557 |
+ |
done |
3558 |
+ |
if test -z "$ac_cv_prog_f90_v"; then |
3559 |
+ |
{ echo "$as_me:$LINENO: WARNING: cannot determine how to obtain linking information from $F90" >&5 |
3560 |
+ |
echo "$as_me: WARNING: cannot determine how to obtain linking information from $F90" >&2;} |
3561 |
+ |
fi |
3562 |
+ |
else |
3563 |
+ |
echo "$as_me: failed program was:" >&5 |
3564 |
+ |
sed 's/^/| /' conftest.$ac_ext >&5 |
3565 |
+ |
|
3566 |
+ |
{ echo "$as_me:$LINENO: WARNING: compilation failed" >&5 |
3567 |
+ |
echo "$as_me: WARNING: compilation failed" >&2;} |
3568 |
+ |
fi |
3569 |
+ |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
3570 |
+ |
|
3571 |
+ |
fi |
3572 |
+ |
echo "$as_me:$LINENO: result: $ac_cv_prog_f90_v" >&5 |
3573 |
+ |
echo "${ECHO_T}$ac_cv_prog_f90_v" >&6 |
3574 |
+ |
echo "$as_me:$LINENO: checking for Fortran 90 libraries" >&5 |
3575 |
+ |
echo $ECHO_N "checking for Fortran 90 libraries... $ECHO_C" >&6 |
3576 |
+ |
if test "${ac_cv_flibs+set}" = set; then |
3577 |
+ |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
3578 |
+ |
else |
3579 |
+ |
if test "x$F90LIBS" != "x"; then |
3580 |
+ |
ac_cv_f90libs="$F90LIBS" # Let the user override the test. |
3581 |
+ |
else |
3582 |
+ |
|
3583 |
+ |
ac_ext=f90 |
3584 |
+ |
ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5' |
3585 |
+ |
ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3586 |
+ |
ac_compiler_gnu=$ac_cv_f90_compiler_gnu |
3587 |
+ |
|
3588 |
+ |
cat >conftest.$ac_ext <<_ACEOF |
3589 |
+ |
|
3590 |
+ |
program main |
3591 |
+ |
|
3592 |
+ |
|
3593 |
+ |
end program main |
3594 |
+ |
|
3595 |
+ |
_ACEOF |
3596 |
+ |
|
3597 |
+ |
# Compile and link our simple test program by passing a flag (argument |
3598 |
+ |
# 1 to this macro) to the Fortran 90 compiler in order to get |
3599 |
+ |
# "verbose" output that we can then parse for the Fortran 90 linker |
3600 |
+ |
# flags. |
3601 |
+ |
ac_save_F90FLAGS=$F90FLAGS |
3602 |
+ |
F90FLAGS="$F90FLAGS $ac_cv_prog_f90_v" |
3603 |
+ |
|
3604 |
+ |
(eval echo $as_me:3604: \"$ac_link\") >&5 |
3605 |
+ |
ac_f90_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'` |
3606 |
+ |
echo "$ac_f90_v_output" >&5 |
3607 |
+ |
F90FLAGS=$ac_save_F90FLAGS |
3608 |
+ |
|
3609 |
+ |
rm -f conftest.* |
3610 |
+ |
ac_ext=f90 |
3611 |
+ |
ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5' |
3612 |
+ |
ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3613 |
+ |
ac_compiler_gnu=$ac_cv_f90_compiler_gnu |
3614 |
+ |
|
3615 |
+ |
# If we are using xlf then replace all the commas with spaces. |
3616 |
+ |
if echo $ac_f90_v_output | grep xlfentry >/dev/null 2>&1; then |
3617 |
+ |
ac_f90_v_output=`echo $ac_f90_v_output | sed 's/,/ /g'` |
3618 |
+ |
fi |
3619 |
+ |
|
3620 |
+ |
# If we are using Cray Fortran then delete quotes. |
3621 |
+ |
# Use "\"" instead of '"' for font-lock-mode. |
3622 |
+ |
# FIXME: a more general fix for quoted arguments with spaces? |
3623 |
+ |
if echo $ac_f90_v_output | grep cft90 >/dev/null 2>&1; then |
3624 |
+ |
ac_f90_v_output=`echo $ac_f90_v_output | sed "s/\"//g"` |
3625 |
+ |
fi |
3626 |
+ |
|
3627 |
+ |
ac_cv_f90libs= |
3628 |
+ |
|
3629 |
+ |
# Save positional arguments (if any) |
3630 |
+ |
ac_save_positional="$@" |
3631 |
+ |
|
3632 |
+ |
set X $ac_f90_v_output |
3633 |
+ |
while test $# != 1; do |
3634 |
+ |
shift |
3635 |
+ |
ac_arg=$1 |
3636 |
+ |
case $ac_arg in |
3637 |
+ |
[\\/]*.a | ?:[\\/]*.a) |
3638 |
+ |
ac_exists=false |
3639 |
+ |
for ac_i in $ac_cv_f90libs; do |
3640 |
+ |
if test x"$ac_arg" = x"$ac_i"; then |
3641 |
+ |
ac_exists=true |
3642 |
+ |
break |
3643 |
+ |
fi |
3644 |
+ |
done |
3645 |
+ |
|
3646 |
+ |
if test x"$ac_exists" = xtrue; then |
3647 |
+ |
: |
3648 |
+ |
else |
3649 |
+ |
ac_cv_f90libs="$ac_cv_f90libs $ac_arg" |
3650 |
+ |
fi |
3651 |
+ |
|
3652 |
+ |
;; |
3653 |
+ |
-bI:*) |
3654 |
+ |
ac_exists=false |
3655 |
+ |
for ac_i in $ac_cv_f90libs; do |
3656 |
+ |
if test x"$ac_arg" = x"$ac_i"; then |
3657 |
+ |
ac_exists=true |
3658 |
+ |
break |
3659 |
+ |
fi |
3660 |
+ |
done |
3661 |
+ |
|
3662 |
+ |
if test x"$ac_exists" = xtrue; then |
3663 |
+ |
: |
3664 |
+ |
else |
3665 |
+ |
if test "$ac_compiler_gnu" = yes; then |
3666 |
+ |
for ac_link_opt in $ac_arg; do |
3667 |
+ |
ac_cv_f90libs="$ac_cv_f90libs -Xlinker $ac_link_opt" |
3668 |
+ |
done |
3669 |
+ |
else |
3670 |
+ |
ac_cv_f90libs="$ac_cv_f90libs $ac_arg" |
3671 |
+ |
fi |
3672 |
+ |
fi |
3673 |
+ |
|
3674 |
+ |
;; |
3675 |
+ |
# Ignore these flags. |
3676 |
+ |
-lang* | -lcrt0.o | -lc | -lgcc | -LANG:=*) |
3677 |
+ |
;; |
3678 |
+ |
-lkernel32) |
3679 |
+ |
test x"$CYGWIN" != xyes && ac_cv_f90libs="$ac_cv_f90libs $ac_arg" |
3680 |
+ |
;; |
3681 |
+ |
-[LRuY]) |
3682 |
+ |
# These flags, when seen by themselves, take an argument. |
3683 |
+ |
# We remove the space between option and argument and re-iterate |
3684 |
+ |
# unless we find an empty arg or a new option (starting with -) |
3685 |
+ |
case $2 in |
3686 |
+ |
"" | -*);; |
3687 |
+ |
*) |
3688 |
+ |
ac_arg="$ac_arg$2" |
3689 |
+ |
|
3690 |
+ |
shift; shift |
3691 |
+ |
set X $ac_arg "$@" |
3692 |
+ |
;; |
3693 |
+ |
esac |
3694 |
+ |
;; |
3695 |
+ |
-YP,*) |
3696 |
+ |
for ac_j in `echo $ac_arg | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do |
3697 |
+ |
ac_exists=false |
3698 |
+ |
for ac_i in $ac_cv_f90libs; do |
3699 |
+ |
if test x"$ac_j" = x"$ac_i"; then |
3700 |
+ |
ac_exists=true |
3701 |
+ |
break |
3702 |
+ |
fi |
3703 |
+ |
done |
3704 |
+ |
|
3705 |
+ |
if test x"$ac_exists" = xtrue; then |
3706 |
+ |
: |
3707 |
+ |
else |
3708 |
+ |
ac_arg="$ac_arg $ac_j" |
3709 |
+ |
ac_cv_f90libs="$ac_cv_f90libs $ac_j" |
3710 |
+ |
fi |
3711 |
+ |
|
3712 |
+ |
done |
3713 |
+ |
;; |
3714 |
+ |
-[lLR]*) |
3715 |
+ |
ac_exists=false |
3716 |
+ |
for ac_i in $ac_cv_f90libs; do |
3717 |
+ |
if test x"$ac_arg" = x"$ac_i"; then |
3718 |
+ |
ac_exists=true |
3719 |
+ |
break |
3720 |
+ |
fi |
3721 |
+ |
done |
3722 |
+ |
|
3723 |
+ |
if test x"$ac_exists" = xtrue; then |
3724 |
+ |
: |
3725 |
+ |
else |
3726 |
+ |
ac_cv_f90libs="$ac_cv_f90libs $ac_arg" |
3727 |
+ |
fi |
3728 |
+ |
|
3729 |
+ |
;; |
3730 |
+ |
# Ignore everything else. |
3731 |
+ |
esac |
3732 |
+ |
done |
3733 |
+ |
# restore positional arguments |
3734 |
+ |
set X $ac_save_positional; shift |
3735 |
+ |
|
3736 |
+ |
# We only consider "LD_RUN_PATH" on Solaris systems. If this is seen, |
3737 |
+ |
# then we insist that the "run path" must be an absolute path (i.e. it |
3738 |
+ |
# must begin with a "/"). |
3739 |
+ |
case `(uname -sr) 2>/dev/null` in |
3740 |
+ |
"SunOS 5"*) |
3741 |
+ |
ac_ld_run_path=`echo $ac_f90_v_output | |
3742 |
+ |
sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'` |
3743 |
+ |
test "x$ac_ld_run_path" != x && |
3744 |
+ |
|
3745 |
+ |
if test "$ac_compiler_gnu" = yes; then |
3746 |
+ |
for ac_link_opt in $ac_ld_run_path; do |
3747 |
+ |
ac_cv_f90libs="$ac_cv_f90libs -Xlinker $ac_link_opt" |
3748 |
+ |
done |
3749 |
+ |
else |
3750 |
+ |
ac_cv_f90libs="$ac_cv_f90libs $ac_ld_run_path" |
3751 |
+ |
fi |
3752 |
+ |
;; |
3753 |
+ |
esac |
3754 |
+ |
fi # test "x$F90LIBS" = "x" |
3755 |
+ |
|
3756 |
+ |
fi |
3757 |
+ |
echo "$as_me:$LINENO: result: $ac_cv_flibs" >&5 |
3758 |
+ |
echo "${ECHO_T}$ac_cv_flibs" >&6 |
3759 |
+ |
F90LIBS="$ac_cv_f90libs" |
3760 |
+ |
|
3761 |
+ |
ac_ext=f90 |
3762 |
+ |
ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5' |
3763 |
+ |
ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3764 |
+ |
ac_compiler_gnu=$ac_cv_f90_compiler_gnu |
3765 |
+ |
|
3766 |
+ |
|
3767 |
+ |
echo "$as_me:$LINENO: checking for Fortran 90 name-mangling scheme" >&5 |
3768 |
+ |
echo $ECHO_N "checking for Fortran 90 name-mangling scheme... $ECHO_C" >&6 |
3769 |
+ |
if test "${ac_cv_f90_mangling+set}" = set; then |
3770 |
+ |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
3771 |
+ |
else |
3772 |
+ |
ac_ext=f90 |
3773 |
+ |
ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5' |
3774 |
+ |
ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3775 |
+ |
ac_compiler_gnu=$ac_cv_f90_compiler_gnu |
3776 |
+ |
cat >conftest.$ac_ext <<_ACEOF |
3777 |
+ |
subroutine foobar() |
3778 |
+ |
return |
3779 |
+ |
end |
3780 |
+ |
subroutine foo_bar() |
3781 |
+ |
return |
3782 |
+ |
end |
3783 |
+ |
_ACEOF |
3784 |
+ |
rm -f conftest.$ac_objext |
3785 |
+ |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
3786 |
+ |
(eval $ac_compile) 2>conftest.er1 |
3787 |
+ |
ac_status=$? |
3788 |
+ |
grep -v '^ *+' conftest.er1 >conftest.err |
3789 |
+ |
rm -f conftest.er1 |
3790 |
+ |
cat conftest.err >&5 |
3791 |
+ |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3792 |
+ |
(exit $ac_status); } && |
3793 |
+ |
{ ac_try='test -z "$ac_f90_werror_flag" |
3794 |
+ |
|| test ! -s conftest.err' |
3795 |
+ |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3796 |
+ |
(eval $ac_try) 2>&5 |
3797 |
+ |
ac_status=$? |
3798 |
+ |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3799 |
+ |
(exit $ac_status); }; } && |
3800 |
+ |
{ ac_try='test -s conftest.$ac_objext' |
3801 |
+ |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3802 |
+ |
(eval $ac_try) 2>&5 |
3803 |
+ |
ac_status=$? |
3804 |
+ |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3805 |
+ |
(exit $ac_status); }; }; then |
3806 |
+ |
mv conftest.$ac_objext cf90_test.$ac_objext |
3807 |
+ |
|
3808 |
+ |
ac_ext=c |
3809 |
+ |
ac_cpp='$CPP $CPPFLAGS' |
3810 |
+ |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
3811 |
+ |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3812 |
+ |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
3813 |
+ |
|
3814 |
+ |
ac_save_LIBS=$LIBS |
3815 |
+ |
LIBS="cf90_test.$ac_objext $F90LIBS $LIBS" |
3816 |
+ |
|
3817 |
+ |
ac_success=no |
3818 |
+ |
for ac_foobar in foobar FOOBAR; do |
3819 |
+ |
for ac_underscore in "" "_"; do |
3820 |
+ |
ac_func="$ac_foobar$ac_underscore" |
3821 |
+ |
cat >conftest.$ac_ext <<_ACEOF |
3822 |
+ |
/* confdefs.h. */ |
3823 |
+ |
_ACEOF |
3824 |
+ |
cat confdefs.h >>conftest.$ac_ext |
3825 |
+ |
cat >>conftest.$ac_ext <<_ACEOF |
3826 |
+ |
/* end confdefs.h. */ |
3827 |
+ |
|
3828 |
+ |
/* Override any gcc2 internal prototype to avoid an error. */ |
3829 |
+ |
#ifdef __cplusplus |
3830 |
+ |
extern "C" |
3831 |
+ |
#endif |
3832 |
+ |
/* We use char because int might match the return type of a gcc2 |
3833 |
+ |
builtin and then its argument prototype would still apply. */ |
3834 |
+ |
char $ac_func (); |
3835 |
+ |
int |
3836 |
+ |
main () |
3837 |
+ |
{ |
3838 |
+ |
$ac_func (); |
3839 |
+ |
; |
3840 |
+ |
return 0; |
3841 |
+ |
} |
3842 |
+ |
_ACEOF |
3843 |
+ |
rm -f conftest.$ac_objext conftest$ac_exeext |
3844 |
+ |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
3845 |
+ |
(eval $ac_link) 2>conftest.er1 |
3846 |
+ |
ac_status=$? |
3847 |
+ |
grep -v '^ *+' conftest.er1 >conftest.err |
3848 |
+ |
rm -f conftest.er1 |
3849 |
+ |
cat conftest.err >&5 |
3850 |
+ |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3851 |
+ |
(exit $ac_status); } && |
3852 |
+ |
{ ac_try='test -z "$ac_c_werror_flag" |
3853 |
+ |
|| test ! -s conftest.err' |
3854 |
+ |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3855 |
+ |
(eval $ac_try) 2>&5 |
3856 |
+ |
ac_status=$? |
3857 |
+ |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3858 |
+ |
(exit $ac_status); }; } && |
3859 |
+ |
{ ac_try='test -s conftest$ac_exeext' |
3860 |
+ |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3861 |
+ |
(eval $ac_try) 2>&5 |
3862 |
+ |
ac_status=$? |
3863 |
+ |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3864 |
+ |
(exit $ac_status); }; }; then |
3865 |
+ |
ac_success=yes; break 2 |
3866 |
+ |
else |
3867 |
+ |
echo "$as_me: failed program was:" >&5 |
3868 |
+ |
sed 's/^/| /' conftest.$ac_ext >&5 |
3869 |
+ |
|
3870 |
+ |
fi |
3871 |
+ |
rm -f conftest.err conftest.$ac_objext \ |
3872 |
+ |
conftest$ac_exeext conftest.$ac_ext |
3873 |
+ |
done |
3874 |
+ |
done |
3875 |
+ |
|
3876 |
+ |
if test "$ac_success" = "yes"; then |
3877 |
+ |
case $ac_foobar in |
3878 |
+ |
foobar) |
3879 |
+ |
ac_case=lower |
3880 |
+ |
ac_foo_bar=foo_bar |
3881 |
+ |
;; |
3882 |
+ |
FOOBAR) |
3883 |
+ |
ac_case=upper |
3884 |
+ |
ac_foo_bar=FOO_BAR |
3885 |
+ |
;; |
3886 |
+ |
esac |
3887 |
+ |
|
3888 |
+ |
ac_success_extra=no |
3889 |
+ |
for ac_extra in "" "_"; do |
3890 |
+ |
ac_func="$ac_foo_bar$ac_underscore$ac_extra" |
3891 |
+ |
|
3892 |
+ |
cat >conftest.$ac_ext <<_ACEOF |
3893 |
+ |
/* confdefs.h. */ |
3894 |
+ |
_ACEOF |
3895 |
+ |
cat confdefs.h >>conftest.$ac_ext |
3896 |
+ |
cat >>conftest.$ac_ext <<_ACEOF |
3897 |
+ |
/* end confdefs.h. */ |
3898 |
+ |
|
3899 |
+ |
/* Override any gcc2 internal prototype to avoid an error. */ |
3900 |
+ |
#ifdef __cplusplus |
3901 |
+ |
extern "C" |
3902 |
+ |
#endif |
3903 |
+ |
/* We use char because int might match the return type of a gcc2 |
3904 |
+ |
builtin and then its argument prototype would still apply. */ |
3905 |
+ |
char $ac_func (); |
3906 |
+ |
int |
3907 |
+ |
main () |
3908 |
+ |
{ |
3909 |
+ |
$ac_func (); |
3910 |
+ |
; |
3911 |
+ |
return 0; |
3912 |
+ |
} |
3913 |
+ |
_ACEOF |
3914 |
+ |
rm -f conftest.$ac_objext conftest$ac_exeext |
3915 |
+ |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
3916 |
+ |
(eval $ac_link) 2>conftest.er1 |
3917 |
+ |
ac_status=$? |
3918 |
+ |
grep -v '^ *+' conftest.er1 >conftest.err |
3919 |
+ |
rm -f conftest.er1 |
3920 |
+ |
cat conftest.err >&5 |
3921 |
+ |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3922 |
+ |
(exit $ac_status); } && |
3923 |
+ |
{ ac_try='test -z "$ac_c_werror_flag" |
3924 |
+ |
|| test ! -s conftest.err' |
3925 |
+ |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3926 |
+ |
(eval $ac_try) 2>&5 |
3927 |
+ |
ac_status=$? |
3928 |
+ |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3929 |
+ |
(exit $ac_status); }; } && |
3930 |
+ |
{ ac_try='test -s conftest$ac_exeext' |
3931 |
+ |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3932 |
+ |
(eval $ac_try) 2>&5 |
3933 |
+ |
ac_status=$? |
3934 |
+ |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3935 |
+ |
(exit $ac_status); }; }; then |
3936 |
+ |
ac_success_extra=yes; break |
3937 |
+ |
else |
3938 |
+ |
echo "$as_me: failed program was:" >&5 |
3939 |
+ |
sed 's/^/| /' conftest.$ac_ext >&5 |
3940 |
+ |
|
3941 |
+ |
fi |
3942 |
+ |
rm -f conftest.err conftest.$ac_objext \ |
3943 |
+ |
conftest$ac_exeext conftest.$ac_ext |
3944 |
+ |
done |
3945 |
+ |
|
3946 |
+ |
if test "$ac_success_extra" = "yes"; then |
3947 |
+ |
ac_cv_f90_mangling="$ac_case case" |
3948 |
+ |
if test -z "$ac_underscore"; then |
3949 |
+ |
ac_cv_f90_mangling="$ac_cv_f90_mangling, no underscore" |
3950 |
+ |
else |
3951 |
+ |
ac_cv_f90_mangling="$ac_cv_f90_mangling, underscore" |
3952 |
+ |
|
3953 |
+ |
fi |
3954 |
+ |
if test -z "$ac_extra"; then |
3955 |
+ |
ac_cv_f90_mangling="$ac_cv_f90_mangling, no extra underscore" |
3956 |
+ |
else |
3957 |
+ |
ac_cv_f90_mangling="$ac_cv_f90_mangling, extra underscore" |
3958 |
+ |
fi |
3959 |
+ |
else |
3960 |
+ |
ac_cv_f90_mangling="unknown" |
3961 |
+ |
fi |
3962 |
+ |
else |
3963 |
+ |
ac_cv_f90_mangling="unknown" |
3964 |
+ |
|
3965 |
+ |
fi |
3966 |
+ |
|
3967 |
+ |
LIBS=$ac_save_LIBS |
3968 |
+ |
ac_ext=f90 |
3969 |
+ |
ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5' |
3970 |
+ |
ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3971 |
+ |
ac_compiler_gnu=$ac_cv_f90_compiler_gnu |
3972 |
+ |
rm -f cf90_test* conftest* |
3973 |
+ |
else |
3974 |
+ |
echo "$as_me: failed program was:" >&5 |
3975 |
+ |
sed 's/^/| /' conftest.$ac_ext >&5 |
3976 |
+ |
|
3977 |
+ |
fi |
3978 |
+ |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
3979 |
+ |
ac_ext=f90 |
3980 |
+ |
ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5' |
3981 |
+ |
ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3982 |
+ |
ac_compiler_gnu=$ac_cv_f90_compiler_gnu |
3983 |
+ |
|
3984 |
+ |
fi |
3985 |
+ |
echo "$as_me:$LINENO: result: $ac_cv_f90_mangling" >&5 |
3986 |
+ |
echo "${ECHO_T}$ac_cv_f90_mangling" >&6 |
3987 |
+ |
|
3988 |
+ |
|
3989 |
+ |
|
3990 |
+ |
case $ac_cv_f90_mangling in |
3991 |
+ |
"lower case, no underscore, no extra underscore") |
3992 |
+ |
cat >>confdefs.h <<\_ACEOF |
3993 |
+ |
#define F90_FUNC(name,NAME) name |
3994 |
+ |
_ACEOF |
3995 |
+ |
|
3996 |
+ |
cat >>confdefs.h <<\_ACEOF |
3997 |
+ |
#define F90_FUNC_(name,NAME) name |
3998 |
+ |
_ACEOF |
3999 |
+ |
;; |
4000 |
+ |
"lower case, no underscore, extra underscore") |
4001 |
+ |
cat >>confdefs.h <<\_ACEOF |
4002 |
+ |
#define F90_FUNC(name,NAME) name |
4003 |
+ |
_ACEOF |
4004 |
+ |
|
4005 |
+ |
cat >>confdefs.h <<\_ACEOF |
4006 |
+ |
#define F90_FUNC_(name,NAME) name ## _ |
4007 |
+ |
_ACEOF |
4008 |
+ |
;; |
4009 |
+ |
"lower case, underscore, no extra underscore") |
4010 |
+ |
cat >>confdefs.h <<\_ACEOF |
4011 |
+ |
#define F90_FUNC(name,NAME) name ## _ |
4012 |
+ |
_ACEOF |
4013 |
+ |
|
4014 |
+ |
cat >>confdefs.h <<\_ACEOF |
4015 |
+ |
#define F90_FUNC_(name,NAME) name ## _ |
4016 |
+ |
_ACEOF |
4017 |
+ |
;; |
4018 |
+ |
"lower case, underscore, extra underscore") |
4019 |
+ |
cat >>confdefs.h <<\_ACEOF |
4020 |
+ |
#define F90_FUNC(name,NAME) name ## _ |
4021 |
+ |
_ACEOF |
4022 |
+ |
|
4023 |
+ |
cat >>confdefs.h <<\_ACEOF |
4024 |
+ |
#define F90_FUNC_(name,NAME) name ## __ |
4025 |
+ |
_ACEOF |
4026 |
+ |
;; |
4027 |
+ |
"upper case, no underscore, no extra underscore") |
4028 |
+ |
cat >>confdefs.h <<\_ACEOF |
4029 |
+ |
#define F90_FUNC(name,NAME) NAME |
4030 |
+ |
_ACEOF |
4031 |
+ |
|
4032 |
+ |
cat >>confdefs.h <<\_ACEOF |
4033 |
+ |
#define F90_FUNC_(name,NAME) NAME |
4034 |
+ |
_ACEOF |
4035 |
+ |
;; |
4036 |
+ |
"upper case, no underscore, extra underscore") |
4037 |
+ |
cat >>confdefs.h <<\_ACEOF |
4038 |
+ |
#define F90_FUNC(name,NAME) NAME |
4039 |
+ |
_ACEOF |
4040 |
+ |
|
4041 |
+ |
cat >>confdefs.h <<\_ACEOF |
4042 |
+ |
#define F90_FUNC_(name,NAME) NAME ## _ |
4043 |
+ |
_ACEOF |
4044 |
+ |
;; |
4045 |
+ |
"upper case, underscore, no extra underscore") |
4046 |
+ |
cat >>confdefs.h <<\_ACEOF |
4047 |
+ |
#define F90_FUNC(name,NAME) NAME ## _ |
4048 |
+ |
_ACEOF |
4049 |
+ |
|
4050 |
+ |
cat >>confdefs.h <<\_ACEOF |
4051 |
+ |
#define F90_FUNC_(name,NAME) NAME ## _ |
4052 |
+ |
_ACEOF |
4053 |
+ |
;; |
4054 |
+ |
"upper case, underscore, extra underscore") |
4055 |
+ |
cat >>confdefs.h <<\_ACEOF |
4056 |
+ |
#define F90_FUNC(name,NAME) NAME ## _ |
4057 |
+ |
_ACEOF |
4058 |
+ |
|
4059 |
+ |
cat >>confdefs.h <<\_ACEOF |
4060 |
+ |
#define F90_FUNC_(name,NAME) NAME ## __ |
4061 |
+ |
_ACEOF |
4062 |
+ |
;; |
4063 |
+ |
*) |
4064 |
+ |
{ echo "$as_me:$LINENO: WARNING: unknown Fortran 90 name-mangling scheme" >&5 |
4065 |
+ |
echo "$as_me: WARNING: unknown Fortran 90 name-mangling scheme" >&2;} |
4066 |
+ |
;; |
4067 |
+ |
esac |
4068 |
+ |
|
4069 |
+ |
|
4070 |
+ |
|
4071 |
+ |
|
4072 |
+ |
|
4073 |
+ |
echo "$as_me:$LINENO: checking for module suffix" >&5 |
4074 |
+ |
echo $ECHO_N "checking for module suffix... $ECHO_C" >&6 |
4075 |
+ |
rm -f conftest* |
4076 |
+ |
# Intel ifc compiler generates files by the name of work.pc and work.pcl (!) |
4077 |
+ |
rm -f work* |
4078 |
+ |
cat >conftest.f90 <<EOF |
4079 |
+ |
module conftest |
4080 |
+ |
integer n |
4081 |
+ |
parameter (n=1) |
4082 |
+ |
end module conftest |
4083 |
+ |
EOF |
4084 |
+ |
# SGI and absoft compilers generates module name in upper case! |
4085 |
+ |
testname="conftest" |
4086 |
+ |
modcase="lower" |
4087 |
+ |
if $F90 -c conftest.f90 > conftest.out 2>&1 ; then |
4088 |
+ |
MOD=`ls conftest* | grep -v conftest.f | grep -v conftest.o` |
4089 |
+ |
MOD=`echo "$MOD" | sed -e 's/conftest\.//g'` |
4090 |
+ |
if test -z "$MOD" ; then |
4091 |
+ |
MOD=`ls CONFTEST* 2>/dev/null \ |
4092 |
+ |
| grep -v CONFTEST.f | grep -v CONFTEST.o` |
4093 |
+ |
MOD=`echo "$MOD" | sed -e 's/CONFTEST\.//g'` |
4094 |
+ |
if test -n "$MOD" ; then |
4095 |
+ |
testname="CONFTEST" |
4096 |
+ |
modcase="upper" |
4097 |
+ |
fi |
4098 |
+ |
fi |
4099 |
+ |
if test -z "$MOD" ; then |
4100 |
+ |
echo "$as_me:$LINENO: result: unknown" >&5 |
4101 |
+ |
echo "${ECHO_T}unknown" >&6 |
4102 |
+ |
# Use mod if we can't figure it out |
4103 |
+ |
MOD="mod" |
4104 |
+ |
else |
4105 |
+ |
echo "$as_me:$LINENO: result: $MOD" >&5 |
4106 |
+ |
echo "${ECHO_T}$MOD" >&6 |
4107 |
+ |
fi |
4108 |
+ |
if test -s work.pcl ; then |
4109 |
+ |
{ echo "$as_me:$LINENO: WARNING: Compiler generates auxillery files!" >&5 |
4110 |
+ |
echo "$as_me: WARNING: Compiler generates auxillery files!" >&2;} |
4111 |
+ |
fi |
4112 |
+ |
else |
4113 |
+ |
echo "$as_me:$LINENO: result: unknown" >&5 |
4114 |
+ |
echo "${ECHO_T}unknown" >&6 |
4115 |
+ |
fi |
4116 |
+ |
|
4117 |
+ |
|
4118 |
+ |
|
4119 |
+ |
|
4120 |
+ |
|
4121 |
+ |
# Check for module include path (some use -I, some (Solaris) use -M, some |
4122 |
+ |
# (absoft) use -p). |
4123 |
+ |
# Intel compilers use a wierd system: -cl,filename.pcl . If no file is |
4124 |
+ |
# specified, work.pcl and work.pc are created. However, if you specify |
4125 |
+ |
# a file, it must contain a the name of a file ending in .pc . Ugh! |
4126 |
+ |
# Use the module made above |
4127 |
+ |
echo "$as_me:$LINENO: checking for module directory path flag" >&5 |
4128 |
+ |
echo $ECHO_N "checking for module directory path flag... $ECHO_C" >&6 |
4129 |
+ |
rm -f conftest* |
4130 |
+ |
# Intel ifc compiler generates files by the name of work.pc and work.pcl (!) |
4131 |
+ |
rm -f work* |
4132 |
+ |
cat >conftest.f90 <<EOF |
4133 |
+ |
module conftest |
4134 |
+ |
integer n |
4135 |
+ |
parameter (n=1) |
4136 |
+ |
end module conftest |
4137 |
+ |
EOF |
4138 |
+ |
# SGI and absoft compilers generates module name in upper case! |
4139 |
+ |
testname="conftest" |
4140 |
+ |
if $F90 -c conftest.f90 > conftest.out 2>&1 ; then |
4141 |
+ |
mod=`ls CONFTEST* 2>/dev/null | grep -v CONFTEST.f | grep -v CONFTEST.o` |
4142 |
+ |
mod=`echo "$mod" | sed -e 's/CONFTEST\.//g'` |
4143 |
+ |
if test -n "$mod" ; then |
4144 |
+ |
testname="CONFTEST" |
4145 |
+ |
fi |
4146 |
+ |
madedir=0 |
4147 |
+ |
if test ! -d conf ; then mkdir conf ; madedir=1; fi |
4148 |
+ |
cp $testname.$MOD conf |
4149 |
+ |
rm -f conftest* CONFTEST* |
4150 |
+ |
cat >conftest1.f90 <<EOF |
4151 |
+ |
program main |
4152 |
+ |
use conftest |
4153 |
+ |
print *, n |
4154 |
+ |
end |
4155 |
+ |
EOF |
4156 |
+ |
F90_WORK_FILES_ARG="" |
4157 |
+ |
F90MODINCSPEC="" |
4158 |
+ |
if $F90 -c -Iconf conftest1.f90 > conftest.out 2>&1 ; then |
4159 |
+ |
MODDIRFLAG="-I" |
4160 |
+ |
F90MODINCSPEC="-I<dir>" |
4161 |
+ |
echo "$as_me:$LINENO: result: -I" >&5 |
4162 |
+ |
echo "${ECHO_T}-I" >&6 |
4163 |
+ |
elif $F90 -c -Mconf conftest1.f90 >> conftest.out 2>&1 ; then |
4164 |
+ |
MODDIRFLAG="-M" |
4165 |
+ |
F90MODINCSPEC="-M<dir>" |
4166 |
+ |
echo "$as_me:$LINENO: result: -M" >&5 |
4167 |
+ |
echo "${ECHO_T}-M" >&6 |
4168 |
+ |
elif $F90 -c -pconf conftest1.f90 >> conftest.out 2>&1 ; then |
4169 |
+ |
MODDIRFLAG="-p" |
4170 |
+ |
F90MODINCSPEC="-p<dir>" |
4171 |
+ |
echo "$as_me:$LINENO: result: -p" >&5 |
4172 |
+ |
echo "${ECHO_T}-p" >&6 |
4173 |
+ |
elif test -s work.pc ; then |
4174 |
+ |
cp work.pc conf/mpimod.pc |
4175 |
+ |
echo "mpimod.pc" > conf/mpimod.pcl |
4176 |
+ |
echo "`pwd`/conf/mpimod.pc" >> conf/mpimod.pcl |
4177 |
+ |
if $F90 -c -cl,conf/mpimod.pcl conftest1.f >>conftest.out 2>&1 ; then |
4178 |
+ |
MODDIRFLAG='-cl,mpimod.pcl' |
4179 |
+ |
echo "$as_me:$LINENO: result: -cl,filename where filename contains a list of files and directories" >&5 |
4180 |
+ |
echo "${ECHO_T}-cl,filename where filename contains a list of files and directories" >&6 |
4181 |
+ |
F90_WORK_FILES_ARG="-cl,mpimod.pcl" |
4182 |
+ |
F90MODINCSPEC="-cl,<dir>/<file>mod.pcl" |
4183 |
+ |
|
4184 |
+ |
else |
4185 |
+ |
# The version of the Intel compiler that I have refuses to let |
4186 |
+ |
# you put the "work catalog" list anywhere but the current |
4187 |
+ |
# directory. For example, you cannot in |
4188 |
+ |
: |
4189 |
+ |
fi |
4190 |
+ |
fi |
4191 |
+ |
if test -z "MODDIRFLAG" ; then |
4192 |
+ |
echo "$as_me:$LINENO: result: unknown" >&5 |
4193 |
+ |
echo "${ECHO_T}unknown" >&6 |
4194 |
+ |
fi |
4195 |
+ |
|
4196 |
+ |
|
4197 |
+ |
rm -f conftest* conf/conftest* conf/CONFTEST* CONFTEST* conf/mpimod* |
4198 |
+ |
if test $madedir = 1 ; then rmdir conf ; fi |
4199 |
+ |
fi |
4200 |
+ |
|
4201 |
+ |
|
4202 |
+ |
|
4203 |
+ |
|
4204 |
+ |
case $debug in |
4205 |
+ |
1) |
4206 |
+ |
;; |
4207 |
+ |
*) |
4208 |
+ |
|
4209 |
+ |
|
4210 |
+ |
|
4211 |
+ |
|
4212 |
+ |
|
4213 |
+ |
|
4214 |
+ |
echo "$as_me:$LINENO: checking whether we are *really* using GNU cc" >&5 |
4215 |
+ |
echo $ECHO_N "checking whether we are *really* using GNU cc... $ECHO_C" >&6 |
4216 |
+ |
if test "${ac_cv_prog_really_gcc+set}" = set; then |
4217 |
+ |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
4218 |
+ |
else |
4219 |
+ |
|
4220 |
+ |
cat > conftest.c <<EOF |
4221 |
+ |
#ifdef __GNUC__ |
4222 |
+ |
#ifndef __INTEL_COMPILER |
4223 |
+ |
yes; |
4224 |
+ |
#endif |
4225 |
+ |
#endif |
4226 |
+ |
EOF |
4227 |
+ |
if { ac_try='${CC-cc} -E conftest.c' |
4228 |
+ |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4229 |
+ |
(eval $ac_try) 2>&5 |
4230 |
+ |
ac_status=$? |
4231 |
+ |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4232 |
+ |
(exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then |
4233 |
+ |
ac_cv_prog_really_gcc=yes |
4234 |
+ |
else |
4235 |
+ |
ac_cv_prog_really_gcc=no |
4236 |
+ |
fi |
4237 |
+ |
|
4238 |
+ |
fi |
4239 |
+ |
echo "$as_me:$LINENO: result: $ac_cv_prog_really_gcc" >&5 |
4240 |
+ |
echo "${ECHO_T}$ac_cv_prog_really_gcc" >&6 |
4241 |
+ |
if test "$ac_cv_prog_really_gcc" = yes; then |
4242 |
+ |
: |
4243 |
+ |
|
4244 |
+ |
else |
4245 |
+ |
: |
4246 |
+ |
|
4247 |
+ |
fi |
4248 |
+ |
|
4249 |
+ |
|
4250 |
+ |
# Try to determine "good" native compiler flags if none specified on command |
4251 |
+ |
# line |
4252 |
+ |
if test "$ac_test_CFLAGS" != "set"; then |
4253 |
+ |
CFLAGS="" |
4254 |
+ |
case "${host_cpu}-${host_os}" in |
4255 |
+ |
|
4256 |
+ |
*linux*) if test "$CC" = icc; then |
4257 |
+ |
CFLAGS="-O" |
4258 |
+ |
fi;; |
4259 |
+ |
sparc-solaris2*) if test "$CC" = cc; then |
4260 |
+ |
CFLAGS="-native -fast -xO5 -dalign" |
4261 |
+ |
fi;; |
4262 |
+ |
|
4263 |
+ |
alpha*-osf*) if test "$CC" = cc; then |
4264 |
+ |
CFLAGS="-newc -w0 -O5 -ansi_alias -ansi_args -fp_reorder -tune host -arch host -std1" |
4265 |
+ |
fi;; |
4266 |
+ |
|
4267 |
+ |
hppa*-hpux*) if test "$CC" = cc; then |
4268 |
+ |
CFLAGS="-Ae +O3 +Oall" |
4269 |
+ |
fi;; |
4270 |
+ |
|
4271 |
+ |
rs6000*-aix*) if test "$CC" = cc -o "$CC" = xlc; then |
4272 |
+ |
CFLAGS="-O3 -qtune=auto -qansialias -w" |
4273 |
+ |
fi;; |
4274 |
+ |
powerpc*-aix*) |
4275 |
+ |
if test "$CC" = cc -o "$CC" = xlc; then |
4276 |
+ |
CFLAGS="-O3 -qtune=auto -qansialias -w" |
4277 |
+ |
echo "*******************************************************" |
4278 |
+ |
echo "* You have AIX on an unknown powerpc system. It is *" |
4279 |
+ |
echo "* recommended that you use *" |
4280 |
+ |
echo "* *" |
4281 |
+ |
echo "* CFLAGS=-O3 -qarch=ppc -qtune=xxx -qansialias -w *" |
4282 |
+ |
echo "* ^^^ *" |
4283 |
+ |
echo "* where xxx is 601, 603, 604, or whatever kind of *" |
4284 |
+ |
echo "* PowerPC CPU you have. For more info, man cc. *" |
4285 |
+ |
echo "*******************************************************" |
4286 |
+ |
fi;; |
4287 |
+ |
*darwin*) |
4288 |
+ |
if test "$CC" = xlc -o "$CC" = cc; then |
4289 |
+ |
CFLAGS="-qthreaded -O5 -qtune=auto -qarch=auto -qunroll=auto -qaltivec" |
4290 |
+ |
fi;; |
4291 |
+ |
esac |
4292 |
+ |
|
4293 |
+ |
# use default flags for gcc on all systems |
4294 |
+ |
if test $ac_cv_prog_really_gcc = yes; then |
4295 |
+ |
CFLAGS="-O6 -fomit-frame-pointer -Wall -W -Wcast-qual -Wpointer-arith -Wcast-align -pedantic" |
4296 |
+ |
fi |
4297 |
+ |
|
4298 |
+ |
# test for gcc-specific flags: |
4299 |
+ |
if test $ac_cv_prog_really_gcc = yes; then |
4300 |
+ |
# -malign-double for x86 systems |
4301 |
+ |
|
4302 |
+ |
|
4303 |
+ |
echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -malign-double" >&5 |
4304 |
+ |
echo $ECHO_N "checking whether ${CC-cc} accepts -malign-double... $ECHO_C" >&6 |
4305 |
+ |
if test "${ac_align_double+set}" = set; then |
4306 |
+ |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
4307 |
+ |
else |
4308 |
+ |
echo 'void f(){}' > conftest.c |
4309 |
+ |
if test -z "`${CC-cc} -malign-double -c conftest.c 2>&1`"; then |
4310 |
+ |
ac_align_double=yes |
4311 |
+ |
else |
4312 |
+ |
ac_align_double=no |
4313 |
+ |
fi |
4314 |
+ |
rm -f conftest* |
4315 |
+ |
|
4316 |
+ |
fi |
4317 |
+ |
echo "$as_me:$LINENO: result: $ac_align_double" >&5 |
4318 |
+ |
echo "${ECHO_T}$ac_align_double" >&6 |
4319 |
+ |
if test "$ac_align_double" = yes; then |
4320 |
+ |
: |
4321 |
+ |
CFLAGS="$CFLAGS -malign-double" |
4322 |
+ |
else |
4323 |
+ |
: |
4324 |
+ |
|
4325 |
+ |
fi |
4326 |
+ |
|
4327 |
+ |
# -fstrict-aliasing for gcc-2.95+ |
4328 |
+ |
|
4329 |
+ |
|
4330 |
+ |
echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -fstrict-aliasing" >&5 |
4331 |
+ |
echo $ECHO_N "checking whether ${CC-cc} accepts -fstrict-aliasing... $ECHO_C" >&6 |
4332 |
+ |
if test "${ac_fstrict_aliasing+set}" = set; then |
4333 |
+ |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
4334 |
+ |
else |
4335 |
+ |
echo 'void f(){}' > conftest.c |
4336 |
+ |
if test -z "`${CC-cc} -fstrict-aliasing -c conftest.c 2>&1`"; then |
4337 |
+ |
ac_fstrict_aliasing=yes |
4338 |
+ |
else |
4339 |
+ |
ac_fstrict_aliasing=no |
4340 |
+ |
fi |
4341 |
+ |
rm -f conftest* |
4342 |
+ |
|
4343 |
+ |
fi |
4344 |
|
echo "$as_me:$LINENO: result: $ac_fstrict_aliasing" >&5 |
4345 |
|
echo "${ECHO_T}$ac_fstrict_aliasing" >&6 |
4346 |
|
if test "$ac_fstrict_aliasing" = yes; then |
4347 |
|
: |
4348 |
< |
CXXFLAGS="$CXXFLAGS -fstrict-aliasing" |
4348 |
> |
CFLAGS="$CFLAGS -fstrict-aliasing" |
4349 |
|
else |
4350 |
|
: |
4351 |
|
|
4354 |
|
fi |
4355 |
|
|
4356 |
|
CPU_FLAGS="" |
4357 |
< |
if test "$GCC" = "yes"; then |
4357 |
> |
if test $ac_cv_prog_really_gcc = yes; then |
4358 |
|
case "${host_cpu}" in |
4359 |
|
i586*) |
4360 |
|
|
4381 |
|
: |
4382 |
|
|
4383 |
|
|
4384 |
< |
echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mpentium" >&5 |
4385 |
< |
echo $ECHO_N "checking whether ${CXX-c++} accepts -mpentium... $ECHO_C" >&6 |
4384 |
> |
echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mpentium" >&5 |
4385 |
> |
echo $ECHO_N "checking whether ${CC-cc} accepts -mpentium... $ECHO_C" >&6 |
4386 |
|
if test "${ac_pentium+set}" = set; then |
4387 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
4388 |
|
else |
4389 |
< |
echo 'void f(){}' > conftest.cpp |
4390 |
< |
if test -z "`${CXX-c++} -mpentium -c conftest.cpp 2>&1`"; then |
4389 |
> |
echo 'void f(){}' > conftest.c |
4390 |
> |
if test -z "`${CC-cc} -mpentium -c conftest.c 2>&1`"; then |
4391 |
|
ac_pentium=yes |
4392 |
|
else |
4393 |
|
ac_pentium=no |
4410 |
|
;; |
4411 |
|
i686*) |
4412 |
|
|
4413 |
< |
echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mcpu=pentiumpro" >&5 |
4414 |
< |
echo $ECHO_N "checking whether ${CXX-c++} accepts -mcpu=pentiumpro... $ECHO_C" >&6 |
4413 |
> |
echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mcpu=pentiumpro" >&5 |
4414 |
> |
echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=pentiumpro... $ECHO_C" >&6 |
4415 |
|
if test "${ac_cpu_pentiumpro+set}" = set; then |
4416 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
4417 |
|
else |
4418 |
< |
echo 'void f(){}' > conftest.cpp |
4419 |
< |
if test -z "`${CXX-c++} -mcpu=pentiumpro -c conftest.cpp 2>&1`"; then |
4418 |
> |
echo 'void f(){}' > conftest.c |
4419 |
> |
if test -z "`${CC-cc} -mcpu=pentiumpro -c conftest.c 2>&1`"; then |
4420 |
|
ac_cpu_pentiumpro=yes |
4421 |
|
else |
4422 |
|
ac_cpu_pentiumpro=no |
4433 |
|
: |
4434 |
|
|
4435 |
|
|
4436 |
< |
echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mpentiumpro" >&5 |
4437 |
< |
echo $ECHO_N "checking whether ${CXX-c++} accepts -mpentiumpro... $ECHO_C" >&6 |
4436 |
> |
echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mpentiumpro" >&5 |
4437 |
> |
echo $ECHO_N "checking whether ${CC-cc} accepts -mpentiumpro... $ECHO_C" >&6 |
4438 |
|
if test "${ac_pentiumpro+set}" = set; then |
4439 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
4440 |
|
else |
4441 |
< |
echo 'void f(){}' > conftest.cpp |
4442 |
< |
if test -z "`${CXX-c++} -mpentiumpro -c conftest.cpp 2>&1`"; then |
4441 |
> |
echo 'void f(){}' > conftest.c |
4442 |
> |
if test -z "`${CC-cc} -mpentiumpro -c conftest.c 2>&1`"; then |
4443 |
|
ac_pentiumpro=yes |
4444 |
|
else |
4445 |
|
ac_pentiumpro=no |
4466 |
|
if test -n "$is60x"; then |
4467 |
|
|
4468 |
|
|
4469 |
< |
echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mcpu=$cputype" >&5 |
4470 |
< |
echo $ECHO_N "checking whether ${CXX-c++} accepts -mcpu=$cputype... $ECHO_C" >&6 |
4469 |
> |
echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mcpu=$cputype" >&5 |
4470 |
> |
echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=$cputype... $ECHO_C" >&6 |
4471 |
|
if test "${ac_m_cpu_60x+set}" = set; then |
4472 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
4473 |
|
else |
4474 |
< |
echo 'void f(){}' > conftest.cpp |
4475 |
< |
if test -z "`${CXX-c++} -mcpu=$cputype -c conftest.cpp 2>&1`"; then |
4474 |
> |
echo 'void f(){}' > conftest.c |
4475 |
> |
if test -z "`${CC-cc} -mcpu=$cputype -c conftest.c 2>&1`"; then |
4476 |
|
ac_m_cpu_60x=yes |
4477 |
|
else |
4478 |
|
ac_m_cpu_60x=no |
4500 |
|
else |
4501 |
|
|
4502 |
|
cat > conftest.c <<EOF |
4503 |
< |
#ifdef __GNUC__ |
4503 |
> |
#ifdef __GNUC__ && !defined (__INTEL_COMPILER) |
4504 |
|
# if (__GNUC__ > 2) || (__GNUC__ == 2 && __GNUC_MINOR__ >= 95) |
4505 |
|
yes; |
4506 |
|
# endif |
4524 |
|
: |
4525 |
|
|
4526 |
|
|
4527 |
< |
echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mcpu=750" >&5 |
4528 |
< |
echo $ECHO_N "checking whether ${CXX-c++} accepts -mcpu=750... $ECHO_C" >&6 |
4527 |
> |
echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mcpu=750" >&5 |
4528 |
> |
echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=750... $ECHO_C" >&6 |
4529 |
|
if test "${ac_m_cpu_750+set}" = set; then |
4530 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
4531 |
|
else |
4532 |
< |
echo 'void f(){}' > conftest.cpp |
4533 |
< |
if test -z "`${CXX-c++} -mcpu=750 -c conftest.cpp 2>&1`"; then |
4532 |
> |
echo 'void f(){}' > conftest.c |
4533 |
> |
if test -z "`${CC-cc} -mcpu=750 -c conftest.c 2>&1`"; then |
4534 |
|
ac_m_cpu_750=yes |
4535 |
|
else |
4536 |
|
ac_m_cpu_750=no |
4557 |
|
if test -z "$CPU_FLAGS"; then |
4558 |
|
|
4559 |
|
|
4560 |
< |
echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mcpu=powerpc" >&5 |
4561 |
< |
echo $ECHO_N "checking whether ${CXX-c++} accepts -mcpu=powerpc... $ECHO_C" >&6 |
4560 |
> |
echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mcpu=powerpc" >&5 |
4561 |
> |
echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=powerpc... $ECHO_C" >&6 |
4562 |
|
if test "${ac_m_cpu_powerpc+set}" = set; then |
4563 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
4564 |
|
else |
4565 |
< |
echo 'void f(){}' > conftest.cpp |
4566 |
< |
if test -z "`${CXX-c++} -mcpu=powerpc -c conftest.cpp 2>&1`"; then |
4565 |
> |
echo 'void f(){}' > conftest.c |
4566 |
> |
if test -z "`${CC-cc} -mcpu=powerpc -c conftest.c 2>&1`"; then |
4567 |
|
ac_m_cpu_powerpc=yes |
4568 |
|
else |
4569 |
|
ac_m_cpu_powerpc=no |
4585 |
|
if test -z "$CPU_FLAGS"; then |
4586 |
|
|
4587 |
|
|
4588 |
< |
echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mpowerpc" >&5 |
4589 |
< |
echo $ECHO_N "checking whether ${CXX-c++} accepts -mpowerpc... $ECHO_C" >&6 |
4588 |
> |
echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mpowerpc" >&5 |
4589 |
> |
echo $ECHO_N "checking whether ${CC-cc} accepts -mpowerpc... $ECHO_C" >&6 |
4590 |
|
if test "${ac_m_powerpc+set}" = set; then |
4591 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
4592 |
|
else |
4593 |
< |
echo 'void f(){}' > conftest.cpp |
4594 |
< |
if test -z "`${CXX-c++} -mpowerpc -c conftest.cpp 2>&1`"; then |
4593 |
> |
echo 'void f(){}' > conftest.c |
4594 |
> |
if test -z "`${CC-cc} -mpowerpc -c conftest.c 2>&1`"; then |
4595 |
|
ac_m_powerpc=yes |
4596 |
|
else |
4597 |
|
ac_m_powerpc=no |
4614 |
|
fi |
4615 |
|
|
4616 |
|
if test -n "$CPU_FLAGS"; then |
4617 |
< |
CXXFLAGS="$CXXFLAGS $CPU_FLAGS" |
4617 |
> |
CFLAGS="$CFLAGS $CPU_FLAGS" |
4618 |
|
fi |
4619 |
|
|
4620 |
< |
if test -z "$CXXFLAGS"; then |
4620 |
> |
if test -z "$CFLAGS"; then |
4621 |
|
echo "" |
4622 |
< |
echo "**********************************************************" |
4623 |
< |
echo "* WARNING: Don't know the best CXXFLAGS for this system *" |
4624 |
< |
echo "* Use make CXXFLAGS=..., or edit the top level Makefile *" |
4625 |
< |
echo "* (otherwise, a default of CXXFLAGS=-O3 will be used) *" |
4626 |
< |
echo "**********************************************************" |
4622 |
> |
echo "********************************************************" |
4623 |
> |
echo "* WARNING: Don't know the best CFLAGS for this system *" |
4624 |
> |
echo "* Use make CFLAGS=..., or edit the top level Makefile *" |
4625 |
> |
echo "* (otherwise, a default of CFLAGS=-O3 will be used) *" |
4626 |
> |
echo "********************************************************" |
4627 |
|
echo "" |
4628 |
< |
CXXFLAGS="-O3" |
4628 |
> |
CFLAGS="-O3" |
4629 |
|
fi |
4630 |
|
|
4631 |
|
|
4632 |
|
|
4633 |
< |
echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts ${CXXFLAGS}" >&5 |
4634 |
< |
echo $ECHO_N "checking whether ${CXX-c++} accepts ${CXXFLAGS}... $ECHO_C" >&6 |
4635 |
< |
if test "${ac_guessed_cxxflags+set}" = set; then |
4633 |
> |
echo "$as_me:$LINENO: checking whether ${CC-cc} accepts ${CFLAGS}" >&5 |
4634 |
> |
echo $ECHO_N "checking whether ${CC-cc} accepts ${CFLAGS}... $ECHO_C" >&6 |
4635 |
> |
if test "${ac_guessed_cflags+set}" = set; then |
4636 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
4637 |
|
else |
4638 |
< |
echo 'void f(){}' > conftest.cpp |
4639 |
< |
if test -z "`${CXX-c++} ${CXXFLAGS} -c conftest.cpp 2>&1`"; then |
4640 |
< |
ac_guessed_cxxflags=yes |
4638 |
> |
echo 'void f(){}' > conftest.c |
4639 |
> |
if test -z "`${CC-cc} ${CFLAGS} -c conftest.c 2>&1`"; then |
4640 |
> |
ac_guessed_cflags=yes |
4641 |
|
else |
4642 |
< |
ac_guessed_cxxflags=no |
4642 |
> |
ac_guessed_cflags=no |
4643 |
|
fi |
4644 |
|
rm -f conftest* |
4645 |
|
|
4646 |
|
fi |
4647 |
< |
echo "$as_me:$LINENO: result: $ac_guessed_cxxflags" >&5 |
4648 |
< |
echo "${ECHO_T}$ac_guessed_cxxflags" >&6 |
4649 |
< |
if test "$ac_guessed_cxxflags" = yes; then |
4647 |
> |
echo "$as_me:$LINENO: result: $ac_guessed_cflags" >&5 |
4648 |
> |
echo "${ECHO_T}$ac_guessed_cflags" >&6 |
4649 |
> |
if test "$ac_guessed_cflags" = yes; then |
4650 |
|
: |
4651 |
|
|
4652 |
|
else |
4653 |
|
: |
4654 |
|
|
4655 |
|
echo "" |
4656 |
< |
echo "**********************************************************" |
4657 |
< |
echo "* WARNING: The guessed CXXFLAGS don't seem to work with *" |
4658 |
< |
echo "* your compiler. *" |
4659 |
< |
echo "* Use make CXXFLAGS=..., or edit the top level Makefile *" |
4660 |
< |
echo "**********************************************************" |
4656 |
> |
echo "********************************************************" |
4657 |
> |
echo "* WARNING: The guessed CFLAGS don't seem to work with *" |
4658 |
> |
echo "* your compiler. *" |
4659 |
> |
echo "* Use make CFLAGS=..., or edit the top level Makefile *" |
4660 |
> |
echo "********************************************************" |
4661 |
|
echo "" |
4662 |
< |
CXXFLAGS="" |
4662 |
> |
CFLAGS="" |
4663 |
|
|
4664 |
|
fi |
4665 |
|
|
4666 |
|
|
4667 |
|
fi |
4668 |
|
|
3735 |
– |
ac_ext=f90 |
3736 |
– |
ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5' |
3737 |
– |
ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3738 |
– |
ac_compiler_gnu=$ac_cv_f90_compiler_gnu |
3739 |
– |
if test -n "$ac_tool_prefix"; then |
3740 |
– |
for ac_prog in ifc f90 xlf90 pgf90 epcf90 f95 xlf95 lf95 fort g95 |
3741 |
– |
do |
3742 |
– |
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
3743 |
– |
set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
3744 |
– |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3745 |
– |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
3746 |
– |
if test "${ac_cv_prog_F90+set}" = set; then |
3747 |
– |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
3748 |
– |
else |
3749 |
– |
if test -n "$F90"; then |
3750 |
– |
ac_cv_prog_F90="$F90" # Let the user override the test. |
3751 |
– |
else |
3752 |
– |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3753 |
– |
for as_dir in $PATH |
3754 |
– |
do |
3755 |
– |
IFS=$as_save_IFS |
3756 |
– |
test -z "$as_dir" && as_dir=. |
3757 |
– |
for ac_exec_ext in '' $ac_executable_extensions; do |
3758 |
– |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
3759 |
– |
ac_cv_prog_F90="$ac_tool_prefix$ac_prog" |
3760 |
– |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3761 |
– |
break 2 |
3762 |
– |
fi |
3763 |
– |
done |
3764 |
– |
done |
4669 |
|
|
3766 |
– |
fi |
3767 |
– |
fi |
3768 |
– |
F90=$ac_cv_prog_F90 |
3769 |
– |
if test -n "$F90"; then |
3770 |
– |
echo "$as_me:$LINENO: result: $F90" >&5 |
3771 |
– |
echo "${ECHO_T}$F90" >&6 |
3772 |
– |
else |
3773 |
– |
echo "$as_me:$LINENO: result: no" >&5 |
3774 |
– |
echo "${ECHO_T}no" >&6 |
3775 |
– |
fi |
4670 |
|
|
3777 |
– |
test -n "$F90" && break |
3778 |
– |
done |
3779 |
– |
fi |
3780 |
– |
if test -z "$F90"; then |
3781 |
– |
ac_ct_F90=$F90 |
3782 |
– |
for ac_prog in ifc f90 xlf90 pgf90 epcf90 f95 xlf95 lf95 fort g95 |
3783 |
– |
do |
3784 |
– |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
3785 |
– |
set dummy $ac_prog; ac_word=$2 |
3786 |
– |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3787 |
– |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
3788 |
– |
if test "${ac_cv_prog_ac_ct_F90+set}" = set; then |
3789 |
– |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
3790 |
– |
else |
3791 |
– |
if test -n "$ac_ct_F90"; then |
3792 |
– |
ac_cv_prog_ac_ct_F90="$ac_ct_F90" # Let the user override the test. |
3793 |
– |
else |
3794 |
– |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3795 |
– |
for as_dir in $PATH |
3796 |
– |
do |
3797 |
– |
IFS=$as_save_IFS |
3798 |
– |
test -z "$as_dir" && as_dir=. |
3799 |
– |
for ac_exec_ext in '' $ac_executable_extensions; do |
3800 |
– |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
3801 |
– |
ac_cv_prog_ac_ct_F90="$ac_prog" |
3802 |
– |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3803 |
– |
break 2 |
3804 |
– |
fi |
3805 |
– |
done |
3806 |
– |
done |
4671 |
|
|
3808 |
– |
fi |
3809 |
– |
fi |
3810 |
– |
ac_ct_F90=$ac_cv_prog_ac_ct_F90 |
3811 |
– |
if test -n "$ac_ct_F90"; then |
3812 |
– |
echo "$as_me:$LINENO: result: $ac_ct_F90" >&5 |
3813 |
– |
echo "${ECHO_T}$ac_ct_F90" >&6 |
3814 |
– |
else |
3815 |
– |
echo "$as_me:$LINENO: result: no" >&5 |
3816 |
– |
echo "${ECHO_T}no" >&6 |
3817 |
– |
fi |
4672 |
|
|
3819 |
– |
test -n "$ac_ct_F90" && break |
3820 |
– |
done |
4673 |
|
|
3822 |
– |
F90=$ac_ct_F90 |
3823 |
– |
fi |
4674 |
|
|
4675 |
< |
|
4676 |
< |
# If we don't use `.F90' as extension, the preprocessor is not run on the |
4677 |
< |
# input file. |
3828 |
< |
ac_save_ext=$ac_ext |
3829 |
< |
ac_ext=F90 |
3830 |
< |
echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 90 compiler" >&5 |
3831 |
< |
echo $ECHO_N "checking whether we are using the GNU Fortran 90 compiler... $ECHO_C" >&6 |
3832 |
< |
if test "${ac_cv_f90_compiler_gnu+set}" = set; then |
4675 |
> |
echo "$as_me:$LINENO: checking whether we are *really* using GNU c++" >&5 |
4676 |
> |
echo $ECHO_N "checking whether we are *really* using GNU c++... $ECHO_C" >&6 |
4677 |
> |
if test "${ac_cv_prog_really_gxx+set}" = set; then |
4678 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
4679 |
|
else |
3835 |
– |
cat >conftest.$ac_ext <<_ACEOF |
4680 |
|
|
4681 |
< |
program main |
4682 |
< |
|
4683 |
< |
#ifndef __GNUC__ |
4684 |
< |
choke me |
4681 |
> |
cat > conftest.cpp <<EOF |
4682 |
> |
#ifdef __GNUC__ |
4683 |
> |
#ifndef __INTEL_COMPILER |
4684 |
> |
yes; |
4685 |
> |
#endif |
4686 |
|
#endif |
4687 |
< |
|
4688 |
< |
end program main |
3844 |
< |
|
3845 |
< |
_ACEOF |
3846 |
< |
rm -f conftest.$ac_objext |
3847 |
< |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
3848 |
< |
(eval $ac_compile) 2>&5 |
3849 |
< |
ac_status=$? |
3850 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3851 |
< |
(exit $ac_status); } && |
3852 |
< |
{ ac_try='test -s conftest.$ac_objext' |
4687 |
> |
EOF |
4688 |
> |
if { ac_try='${CXX-c++} -E conftest.cpp' |
4689 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4690 |
|
(eval $ac_try) 2>&5 |
4691 |
|
ac_status=$? |
4692 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4693 |
< |
(exit $ac_status); }; }; then |
4694 |
< |
ac_compiler_gnu=yes |
4693 |
> |
(exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then |
4694 |
> |
ac_cv_prog_really_gxx=yes |
4695 |
|
else |
4696 |
< |
echo "$as_me: failed program was:" >&5 |
3861 |
< |
sed 's/^/| /' conftest.$ac_ext >&5 |
3862 |
< |
|
3863 |
< |
ac_compiler_gnu=no |
4696 |
> |
ac_cv_prog_really_gxx=no |
4697 |
|
fi |
3865 |
– |
rm -f conftest.$ac_objext conftest.$ac_ext |
3866 |
– |
ac_cv_f90_compiler_gnu=$ac_compiler_gnu |
4698 |
|
|
4699 |
|
fi |
4700 |
< |
echo "$as_me:$LINENO: result: $ac_cv_f90_compiler_gnu" >&5 |
4701 |
< |
echo "${ECHO_T}$ac_cv_f90_compiler_gnu" >&6 |
4702 |
< |
ac_ext=$ac_save_ext |
4703 |
< |
G95=`test $ac_compiler_gnu = yes && echo yes` |
3873 |
< |
ac_ext=c |
3874 |
< |
ac_cpp='$CPP $CPPFLAGS' |
3875 |
< |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
3876 |
< |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3877 |
< |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
4700 |
> |
echo "$as_me:$LINENO: result: $ac_cv_prog_really_gxx" >&5 |
4701 |
> |
echo "${ECHO_T}$ac_cv_prog_really_gxx" >&6 |
4702 |
> |
if test "$ac_cv_prog_really_gxx" = yes; then |
4703 |
> |
: |
4704 |
|
|
4705 |
+ |
else |
4706 |
+ |
: |
4707 |
|
|
4708 |
+ |
fi |
4709 |
|
|
4710 |
|
|
3882 |
– |
|
4711 |
|
# Try to determine "good" native compiler flags if none specified on command |
4712 |
|
# line |
4713 |
< |
if test "$ac_test_F90FLAGS" != "set"; then |
4714 |
< |
F90FLAGS="" |
4713 |
> |
if test "$ac_test_CXXFLAGS" != "set"; then |
4714 |
> |
CXXFLAGS="" |
4715 |
|
case "${host_cpu}-${host_os}" in |
4716 |
|
|
4717 |
< |
*linux*) if test "$F90" = ifc; then |
4718 |
< |
F90FLAGS="-O" |
4717 |
> |
*linux*) if test "$CXX" = icc -o "$CXX" = icpc; then |
4718 |
> |
CXXFLAGS="-O" |
4719 |
|
fi;; |
4720 |
< |
rs6000*-aix*) if test "$F90" = xlf90 -o "$F90" = f90; then |
4721 |
< |
F90FLAGS="-O3 -qarch=pwrx -qtune=pwrx -qansialias -w" |
4720 |
> |
sparc-solaris2*) if test "$CXX" = CC; then |
4721 |
> |
CXXFLAGS="-native -fast -xO5 -dalign" |
4722 |
> |
fi;; |
4723 |
> |
rs6000*-aix*) if test "$CXX" = xlC; then |
4724 |
> |
CXXFLAGS="-O3 -qarch=pwrx -qtune=pwrx -qansialias -w" |
4725 |
|
fi;; |
4726 |
|
powerpc*-aix*) |
4727 |
< |
if test "$F90" = f90 -o "$F90" = xlf90; then |
4728 |
< |
F90FLAGS="-O3 -qarch=ppc -qansialias -w" |
4727 |
> |
if test "$CXX" = xlC; then |
4728 |
> |
CXXFLAGS="-O3 -qarch=ppc -qansialias -w" |
4729 |
|
echo "*******************************************************" |
4730 |
|
echo "* You have AIX on an unknown powerpc system. It is *" |
4731 |
|
echo "* recommended that you use *" |
4732 |
|
echo "* *" |
4733 |
< |
echo "* F90FLAGS=-O3 -qarch=ppc -qtune=xxx -qansialias -w *" |
4733 |
> |
echo "* CXXFLAGS=-O3 -qarch=ppc -qtune=xxx -qansialias -w *" |
4734 |
|
echo "* ^^^ *" |
4735 |
|
echo "* where xxx is 601, 603, 604, or whatever kind of *" |
4736 |
< |
echo "* PowerPC CPU you have. For more info, man xlf. *" |
4736 |
> |
echo "* PowerPC CPU you have. For more info, man cc. *" |
4737 |
|
echo "*******************************************************" |
4738 |
|
fi;; |
4739 |
|
*darwin*) |
4740 |
< |
if test "$F90" = f90 -o "$F90" = xlf90; then |
4741 |
< |
F90FLAGS="-O3 -qtune=auto -w" |
3911 |
< |
echo "*********************************************************" |
3912 |
< |
echo "* You have Darwin on an unknown powerpc system. It is *" |
3913 |
< |
echo "* recommended that you use *" |
3914 |
< |
echo "* *" |
3915 |
< |
echo "* CXXFLAGS=-O3 -qarch=ppc -qtune=xxx -qansialias -w *" |
3916 |
< |
echo "* ^^^ *" |
3917 |
< |
echo "* where xxx is 601, 603, 604, or whatever kind of *" |
3918 |
< |
echo "* PowerPC CPU you have. For more info, man xlf. *" |
3919 |
< |
echo "*********************************************************" |
4740 |
> |
if test "$CXX" = xlc++; then |
4741 |
> |
CXXFLAGS="-qthreaded -O5 -qtune=auto -qarch=auto -qunroll=auto -qaltivec" |
4742 |
|
fi;; |
4743 |
|
esac |
4744 |
|
|
4745 |
< |
if test -n "$CPU_FLAGS"; then |
4746 |
< |
F90FLAGS="$F90FLAGS $CPU_FLAGS" |
4745 |
> |
# use default flags for gcc on all systems |
4746 |
> |
if test $ac_cv_prog_really_gxx = yes; then |
4747 |
> |
CXXFLAGS="-O6 -fomit-frame-pointer -Wall -W -Wcast-qual -Wpointer-arith -Wcast-align -pedantic" |
4748 |
|
fi |
4749 |
|
|
4750 |
< |
if test -z "$F90FLAGS"; then |
4751 |
< |
echo "" |
4752 |
< |
echo "**********************************************************" |
3930 |
< |
echo "* WARNING: Don't know the best F90FLAGS for this system *" |
3931 |
< |
echo "* Use make F90FLAGS=..., or edit the top level Makefile *" |
3932 |
< |
echo "* (otherwise, a default of F90FLAGS=-O3 will be used) *" |
3933 |
< |
echo "**********************************************************" |
3934 |
< |
echo "" |
3935 |
< |
F90FLAGS="-O3" |
3936 |
< |
fi |
4750 |
> |
# test for gcc-specific flags: |
4751 |
> |
if test $ac_cv_prog_really_gxx = yes; then |
4752 |
> |
# -malign-double for x86 systems |
4753 |
|
|
4754 |
|
|
4755 |
< |
echo "$as_me:$LINENO: checking whether ${F90-f90} accepts ${F90FLAGS}" >&5 |
4756 |
< |
echo $ECHO_N "checking whether ${F90-f90} accepts ${F90FLAGS}... $ECHO_C" >&6 |
4757 |
< |
if test "${ac_guessed_f90flags+set}" = set; then |
4755 |
> |
echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -malign-double" >&5 |
4756 |
> |
echo $ECHO_N "checking whether ${CXX-c++} accepts -malign-double... $ECHO_C" >&6 |
4757 |
> |
if test "${ac_align_double+set}" = set; then |
4758 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
4759 |
|
else |
4760 |
+ |
echo 'void f(){}' > conftest.cpp |
4761 |
+ |
if test -z "`${CXX-c++} -malign-double -c conftest.cpp 2>&1`"; then |
4762 |
+ |
ac_align_double=yes |
4763 |
+ |
else |
4764 |
+ |
ac_align_double=no |
4765 |
+ |
fi |
4766 |
+ |
rm -f conftest* |
4767 |
|
|
4768 |
+ |
fi |
4769 |
+ |
echo "$as_me:$LINENO: result: $ac_align_double" >&5 |
4770 |
+ |
echo "${ECHO_T}$ac_align_double" >&6 |
4771 |
+ |
if test "$ac_align_double" = yes; then |
4772 |
+ |
: |
4773 |
+ |
CXXFLAGS="$CXXFLAGS -malign-double" |
4774 |
+ |
else |
4775 |
+ |
: |
4776 |
|
|
4777 |
+ |
fi |
4778 |
|
|
4779 |
< |
ac_ext=f90 |
3948 |
< |
ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5' |
3949 |
< |
ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3950 |
< |
ac_compiler_gnu=$ac_cv_f90_compiler_gnu |
4779 |
> |
# -fstrict-aliasing for gcc-2.95+ |
4780 |
|
|
4781 |
< |
echo 'program main' > conftest.$ac_ext |
4782 |
< |
echo 'end program main' >> conftest.$ac_ext |
4783 |
< |
ac_compile='${F90-f90} -c ${F90FLAGS} $F90FLAGS conftest.$ac_ext 1>&5' |
4784 |
< |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
4785 |
< |
(eval $ac_compile) 2>&5 |
3957 |
< |
ac_status=$? |
3958 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3959 |
< |
(exit $ac_status); }; then |
3960 |
< |
ac_guessed_f90flags=yes |
4781 |
> |
|
4782 |
> |
echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -fstrict-aliasing" >&5 |
4783 |
> |
echo $ECHO_N "checking whether ${CXX-c++} accepts -fstrict-aliasing... $ECHO_C" >&6 |
4784 |
> |
if test "${ac_fstrict_aliasing+set}" = set; then |
4785 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
4786 |
|
else |
4787 |
< |
ac_guessed_f90flags=no |
4787 |
> |
echo 'void f(){}' > conftest.cpp |
4788 |
> |
if test -z "`${CXX-c++} -fstrict-aliasing -c conftest.cpp 2>&1`"; then |
4789 |
> |
ac_fstrict_aliasing=yes |
4790 |
> |
else |
4791 |
> |
ac_fstrict_aliasing=no |
4792 |
|
fi |
4793 |
|
rm -f conftest* |
3965 |
– |
ac_ext=c |
3966 |
– |
ac_cpp='$CPP $CPPFLAGS' |
3967 |
– |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
3968 |
– |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3969 |
– |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
4794 |
|
|
3971 |
– |
|
4795 |
|
fi |
4796 |
< |
echo "$as_me:$LINENO: result: $ac_guessed_f90flags" >&5 |
4797 |
< |
echo "${ECHO_T}$ac_guessed_f90flags" >&6 |
4798 |
< |
if test "$ac_guessed_f90flags" = yes; then |
4796 |
> |
echo "$as_me:$LINENO: result: $ac_fstrict_aliasing" >&5 |
4797 |
> |
echo "${ECHO_T}$ac_fstrict_aliasing" >&6 |
4798 |
> |
if test "$ac_fstrict_aliasing" = yes; then |
4799 |
|
: |
4800 |
< |
|
4800 |
> |
CXXFLAGS="$CXXFLAGS -fstrict-aliasing" |
4801 |
|
else |
4802 |
|
: |
4803 |
|
|
3981 |
– |
echo "" |
3982 |
– |
echo "**********************************************************" |
3983 |
– |
echo "* WARNING: The guessed F90FLAGS don't seem to work with *" |
3984 |
– |
echo "* your compiler. *" |
3985 |
– |
echo "* Use make F90FLAGS=..., or edit the top level Makefile *" |
3986 |
– |
echo "**********************************************************" |
3987 |
– |
echo "" |
3988 |
– |
F90FLAGS="" |
3989 |
– |
|
4804 |
|
fi |
4805 |
|
|
4806 |
+ |
fi |
4807 |
|
|
4808 |
+ |
CPU_FLAGS="" |
4809 |
+ |
if test $ac_cv_prog_really_gxx = yes; then |
4810 |
+ |
case "${host_cpu}" in |
4811 |
+ |
i586*) |
4812 |
+ |
|
4813 |
+ |
echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mcpu=pentium" >&5 |
4814 |
+ |
echo $ECHO_N "checking whether ${CXX-c++} accepts -mcpu=pentium... $ECHO_C" >&6 |
4815 |
+ |
if test "${ac_cpu_pentium+set}" = set; then |
4816 |
+ |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
4817 |
+ |
else |
4818 |
+ |
echo 'void f(){}' > conftest.cpp |
4819 |
+ |
if test -z "`${CXX-c++} -mcpu=pentium -c conftest.cpp 2>&1`"; then |
4820 |
+ |
ac_cpu_pentium=yes |
4821 |
+ |
else |
4822 |
+ |
ac_cpu_pentium=no |
4823 |
|
fi |
4824 |
+ |
rm -f conftest* |
4825 |
|
|
4826 |
+ |
fi |
4827 |
+ |
echo "$as_me:$LINENO: result: $ac_cpu_pentium" >&5 |
4828 |
+ |
echo "${ECHO_T}$ac_cpu_pentium" >&6 |
4829 |
+ |
if test "$ac_cpu_pentium" = yes; then |
4830 |
+ |
: |
4831 |
+ |
CPU_FLAGS=-mcpu=pentium |
4832 |
+ |
else |
4833 |
+ |
: |
4834 |
|
|
4835 |
|
|
4836 |
+ |
echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mpentium" >&5 |
4837 |
+ |
echo $ECHO_N "checking whether ${CXX-c++} accepts -mpentium... $ECHO_C" >&6 |
4838 |
+ |
if test "${ac_pentium+set}" = set; then |
4839 |
+ |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
4840 |
+ |
else |
4841 |
+ |
echo 'void f(){}' > conftest.cpp |
4842 |
+ |
if test -z "`${CXX-c++} -mpentium -c conftest.cpp 2>&1`"; then |
4843 |
+ |
ac_pentium=yes |
4844 |
+ |
else |
4845 |
+ |
ac_pentium=no |
4846 |
+ |
fi |
4847 |
+ |
rm -f conftest* |
4848 |
|
|
4849 |
+ |
fi |
4850 |
+ |
echo "$as_me:$LINENO: result: $ac_pentium" >&5 |
4851 |
+ |
echo "${ECHO_T}$ac_pentium" >&6 |
4852 |
+ |
if test "$ac_pentium" = yes; then |
4853 |
+ |
: |
4854 |
+ |
CPU_FLAGS=-mpentium |
4855 |
+ |
else |
4856 |
+ |
: |
4857 |
|
|
4858 |
< |
# Try to determine native compiler flags that allow us to use F90 suffix |
4000 |
< |
# for preprocessed f90 source. |
4858 |
> |
fi |
4859 |
|
|
4860 |
< |
if test "$ac_test_PREPFLAG" != "set"; then |
4003 |
< |
PREPFLAG="" |
4004 |
< |
case "${host_cpu}-${host_os}" in |
4860 |
> |
fi |
4861 |
|
|
4862 |
< |
*linux*) if test "$F90" = ifc; then |
4863 |
< |
PREPFLAG="-fpp1 " |
4008 |
< |
fi;; |
4009 |
< |
*aix*) if test "$F90" = xlf90 -o "$F90" = f90; then |
4010 |
< |
PREPFLAG="-qsuffix=cpp=F90 " |
4011 |
< |
fi;; |
4012 |
< |
*darwin*) |
4013 |
< |
if test "$F90" = f90 -o "$F90" = xlf90; then |
4014 |
< |
PREPFLAG="-qsuffix=cpp=F90 " |
4015 |
< |
fi;; |
4016 |
< |
esac |
4862 |
> |
;; |
4863 |
> |
i686*) |
4864 |
|
|
4865 |
< |
if test -z "$PREPFLAG"; then |
4866 |
< |
echo "" |
4867 |
< |
echo "**********************************************************" |
4868 |
< |
echo "* WARNING: Don't know the best PREPFLAG for this system *" |
4869 |
< |
echo "* Use make PREPFLAG=..., or edit the top level Makefile *" |
4870 |
< |
echo "* (otherwise, an empty PREPFLAG will be used) *" |
4871 |
< |
echo "**********************************************************" |
4872 |
< |
echo "" |
4873 |
< |
PREPFLAG="" |
4874 |
< |
fi |
4865 |
> |
echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mcpu=pentiumpro" >&5 |
4866 |
> |
echo $ECHO_N "checking whether ${CXX-c++} accepts -mcpu=pentiumpro... $ECHO_C" >&6 |
4867 |
> |
if test "${ac_cpu_pentiumpro+set}" = set; then |
4868 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
4869 |
> |
else |
4870 |
> |
echo 'void f(){}' > conftest.cpp |
4871 |
> |
if test -z "`${CXX-c++} -mcpu=pentiumpro -c conftest.cpp 2>&1`"; then |
4872 |
> |
ac_cpu_pentiumpro=yes |
4873 |
> |
else |
4874 |
> |
ac_cpu_pentiumpro=no |
4875 |
> |
fi |
4876 |
> |
rm -f conftest* |
4877 |
|
|
4878 |
< |
echo "$as_me:$LINENO: checking to make sure F90 preprocessor flag works" >&5 |
4879 |
< |
echo $ECHO_N "checking to make sure F90 preprocessor flag works... $ECHO_C" >&6 |
4878 |
> |
fi |
4879 |
> |
echo "$as_me:$LINENO: result: $ac_cpu_pentiumpro" >&5 |
4880 |
> |
echo "${ECHO_T}$ac_cpu_pentiumpro" >&6 |
4881 |
> |
if test "$ac_cpu_pentiumpro" = yes; then |
4882 |
> |
: |
4883 |
> |
CPU_FLAGS=-mcpu=pentiumpro |
4884 |
> |
else |
4885 |
> |
: |
4886 |
|
|
4887 |
|
|
4888 |
< |
ac_ext=f90 |
4889 |
< |
ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5' |
4890 |
< |
ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
4891 |
< |
ac_compiler_gnu=$ac_cv_f90_compiler_gnu |
4888 |
> |
echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mpentiumpro" >&5 |
4889 |
> |
echo $ECHO_N "checking whether ${CXX-c++} accepts -mpentiumpro... $ECHO_C" >&6 |
4890 |
> |
if test "${ac_pentiumpro+set}" = set; then |
4891 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
4892 |
> |
else |
4893 |
> |
echo 'void f(){}' > conftest.cpp |
4894 |
> |
if test -z "`${CXX-c++} -mpentiumpro -c conftest.cpp 2>&1`"; then |
4895 |
> |
ac_pentiumpro=yes |
4896 |
> |
else |
4897 |
> |
ac_pentiumpro=no |
4898 |
> |
fi |
4899 |
> |
rm -f conftest* |
4900 |
|
|
4901 |
< |
ac_save_ext=$ac_ext |
4902 |
< |
ac_ext=F90 |
4903 |
< |
ac_save_F90FLAGS=$F90FLAGS |
4901 |
> |
fi |
4902 |
> |
echo "$as_me:$LINENO: result: $ac_pentiumpro" >&5 |
4903 |
> |
echo "${ECHO_T}$ac_pentiumpro" >&6 |
4904 |
> |
if test "$ac_pentiumpro" = yes; then |
4905 |
> |
: |
4906 |
> |
CPU_FLAGS=-mpentiumpro |
4907 |
> |
else |
4908 |
> |
: |
4909 |
|
|
4042 |
– |
if test "$PREPFLAG"; then |
4043 |
– |
F90FLAGS="${F90FLAGS} ${PREPFLAG}-DTEST" |
4910 |
|
fi |
4911 |
|
|
4912 |
< |
cat >conftest.$ac_ext <<_ACEOF |
4912 |
> |
fi |
4913 |
|
|
4914 |
+ |
;; |
4915 |
+ |
powerpc*) |
4916 |
+ |
cputype=`(grep cpu /proc/cpuinfo | head -1 | cut -d: -f2 | sed 's/ //g') 2> /dev/null` |
4917 |
+ |
is60x=`echo $cputype | egrep "^600-9e?$"` |
4918 |
+ |
if test -n "$is60x"; then |
4919 |
|
|
4049 |
– |
program main |
4920 |
|
|
4921 |
< |
integer :: i |
4922 |
< |
i = 1 |
4921 |
> |
echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mcpu=$cputype" >&5 |
4922 |
> |
echo $ECHO_N "checking whether ${CXX-c++} accepts -mcpu=$cputype... $ECHO_C" >&6 |
4923 |
> |
if test "${ac_m_cpu_60x+set}" = set; then |
4924 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
4925 |
> |
else |
4926 |
> |
echo 'void f(){}' > conftest.cpp |
4927 |
> |
if test -z "`${CXX-c++} -mcpu=$cputype -c conftest.cpp 2>&1`"; then |
4928 |
> |
ac_m_cpu_60x=yes |
4929 |
> |
else |
4930 |
> |
ac_m_cpu_60x=no |
4931 |
> |
fi |
4932 |
> |
rm -f conftest* |
4933 |
|
|
4934 |
+ |
fi |
4935 |
+ |
echo "$as_me:$LINENO: result: $ac_m_cpu_60x" >&5 |
4936 |
+ |
echo "${ECHO_T}$ac_m_cpu_60x" >&6 |
4937 |
+ |
if test "$ac_m_cpu_60x" = yes; then |
4938 |
+ |
: |
4939 |
+ |
CPU_FLAGS=-mcpu=$cputype |
4940 |
+ |
else |
4941 |
+ |
: |
4942 |
|
|
4943 |
< |
end program main |
4943 |
> |
fi |
4944 |
|
|
4945 |
< |
_ACEOF |
4946 |
< |
rm -f conftest.$ac_objext |
4947 |
< |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
4948 |
< |
(eval $ac_compile) 2>&5 |
4949 |
< |
ac_status=$? |
4950 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4951 |
< |
(exit $ac_status); } && |
4952 |
< |
{ ac_try='test -s conftest.$ac_objext' |
4945 |
> |
elif test "$cputype" = 750; then |
4946 |
> |
|
4947 |
> |
|
4948 |
> |
echo "$as_me:$LINENO: checking whether we are using g++ 2.95 or later" >&5 |
4949 |
> |
echo $ECHO_N "checking whether we are using g++ 2.95 or later... $ECHO_C" >&6 |
4950 |
> |
if test "${ac_cv_prog_gxx_2_95+set}" = set; then |
4951 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
4952 |
> |
else |
4953 |
> |
|
4954 |
> |
cat > conftest.cpp <<EOF |
4955 |
> |
#ifdef __GNUC__ && !defined (__INTEL_COMPILER) |
4956 |
> |
# if (__GNUC__ > 2) || (__GNUC__ == 2 && __GNUC_MINOR__ >= 95) |
4957 |
> |
yes; |
4958 |
> |
# endif |
4959 |
> |
#endif |
4960 |
> |
EOF |
4961 |
> |
if { ac_try='${CXX-c++} -E conftest.cpp' |
4962 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4963 |
|
(eval $ac_try) 2>&5 |
4964 |
|
ac_status=$? |
4965 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4966 |
< |
(exit $ac_status); }; }; then |
4967 |
< |
prepflagworks=1 |
4966 |
> |
(exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then |
4967 |
> |
ac_cv_prog_gxx_2_95=yes |
4968 |
|
else |
4969 |
< |
echo "$as_me: failed program was:" >&5 |
4970 |
< |
sed 's/^/| /' conftest.$ac_ext >&5 |
4969 |
> |
ac_cv_prog_gxx_2_95=no |
4970 |
> |
fi |
4971 |
|
|
4075 |
– |
prepflagworks=0 |
4972 |
|
fi |
4973 |
< |
rm -f conftest.$ac_objext conftest.$ac_ext |
4973 |
> |
echo "$as_me:$LINENO: result: $ac_cv_prog_gxx_2_95" >&5 |
4974 |
> |
echo "${ECHO_T}$ac_cv_prog_gxx_2_95" >&6 |
4975 |
> |
if test "$ac_cv_prog_gxx_2_95" = yes; then |
4976 |
> |
: |
4977 |
|
|
4079 |
– |
F90FLAGS=$ac_save_F90FLAGS |
4080 |
– |
ac_ext=$ac_save_ext |
4081 |
– |
ac_ext=c |
4082 |
– |
ac_cpp='$CPP $CPPFLAGS' |
4083 |
– |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
4084 |
– |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
4085 |
– |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
4978 |
|
|
4979 |
+ |
echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mcpu=750" >&5 |
4980 |
+ |
echo $ECHO_N "checking whether ${CXX-c++} accepts -mcpu=750... $ECHO_C" >&6 |
4981 |
+ |
if test "${ac_m_cpu_750+set}" = set; then |
4982 |
+ |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
4983 |
+ |
else |
4984 |
+ |
echo 'void f(){}' > conftest.cpp |
4985 |
+ |
if test -z "`${CXX-c++} -mcpu=750 -c conftest.cpp 2>&1`"; then |
4986 |
+ |
ac_m_cpu_750=yes |
4987 |
+ |
else |
4988 |
+ |
ac_m_cpu_750=no |
4989 |
+ |
fi |
4990 |
+ |
rm -f conftest* |
4991 |
|
|
4992 |
+ |
fi |
4993 |
+ |
echo "$as_me:$LINENO: result: $ac_m_cpu_750" >&5 |
4994 |
+ |
echo "${ECHO_T}$ac_m_cpu_750" >&6 |
4995 |
+ |
if test "$ac_m_cpu_750" = yes; then |
4996 |
+ |
: |
4997 |
+ |
CPU_FLAGS=-mcpu=750 |
4998 |
+ |
else |
4999 |
+ |
: |
5000 |
|
|
5001 |
< |
if test "$prepflagworks" = 1; then |
4090 |
< |
echo "$as_me:$LINENO: result: yes" >&5 |
4091 |
< |
echo "${ECHO_T}yes" >&6 |
5001 |
> |
fi |
5002 |
|
|
5003 |
< |
else |
5004 |
< |
echo "$as_me:$LINENO: result: no" >&5 |
5005 |
< |
echo "${ECHO_T}no" >&6 |
5006 |
< |
{ { echo "$as_me:$LINENO: error: Can't figure out working Fortran90 preprocessor flag" >&5 |
5007 |
< |
echo "$as_me: error: Can't figure out working Fortran90 preprocessor flag" >&2;} |
5008 |
< |
{ (exit 1); exit 1; }; } |
5003 |
> |
else |
5004 |
> |
: |
5005 |
> |
|
5006 |
> |
fi |
5007 |
> |
|
5008 |
> |
fi |
5009 |
> |
if test -z "$CPU_FLAGS"; then |
5010 |
> |
|
5011 |
> |
|
5012 |
> |
echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mcpu=powerpc" >&5 |
5013 |
> |
echo $ECHO_N "checking whether ${CXX-c++} accepts -mcpu=powerpc... $ECHO_C" >&6 |
5014 |
> |
if test "${ac_m_cpu_powerpc+set}" = set; then |
5015 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
5016 |
> |
else |
5017 |
> |
echo 'void f(){}' > conftest.cpp |
5018 |
> |
if test -z "`${CXX-c++} -mcpu=powerpc -c conftest.cpp 2>&1`"; then |
5019 |
> |
ac_m_cpu_powerpc=yes |
5020 |
> |
else |
5021 |
> |
ac_m_cpu_powerpc=no |
5022 |
> |
fi |
5023 |
> |
rm -f conftest* |
5024 |
> |
|
5025 |
> |
fi |
5026 |
> |
echo "$as_me:$LINENO: result: $ac_m_cpu_powerpc" >&5 |
5027 |
> |
echo "${ECHO_T}$ac_m_cpu_powerpc" >&6 |
5028 |
> |
if test "$ac_m_cpu_powerpc" = yes; then |
5029 |
> |
: |
5030 |
> |
CPU_FLAGS=-mcpu=powerpc |
5031 |
> |
else |
5032 |
> |
: |
5033 |
> |
|
5034 |
> |
fi |
5035 |
> |
|
5036 |
> |
fi |
5037 |
> |
if test -z "$CPU_FLAGS"; then |
5038 |
> |
|
5039 |
> |
|
5040 |
> |
echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mpowerpc" >&5 |
5041 |
> |
echo $ECHO_N "checking whether ${CXX-c++} accepts -mpowerpc... $ECHO_C" >&6 |
5042 |
> |
if test "${ac_m_powerpc+set}" = set; then |
5043 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
5044 |
> |
else |
5045 |
> |
echo 'void f(){}' > conftest.cpp |
5046 |
> |
if test -z "`${CXX-c++} -mpowerpc -c conftest.cpp 2>&1`"; then |
5047 |
> |
ac_m_powerpc=yes |
5048 |
> |
else |
5049 |
> |
ac_m_powerpc=no |
5050 |
> |
fi |
5051 |
> |
rm -f conftest* |
5052 |
> |
|
5053 |
> |
fi |
5054 |
> |
echo "$as_me:$LINENO: result: $ac_m_powerpc" >&5 |
5055 |
> |
echo "${ECHO_T}$ac_m_powerpc" >&6 |
5056 |
> |
if test "$ac_m_powerpc" = yes; then |
5057 |
> |
: |
5058 |
> |
CPU_FLAGS=-mpowerpc |
5059 |
> |
else |
5060 |
> |
: |
5061 |
> |
|
5062 |
> |
fi |
5063 |
> |
|
5064 |
> |
fi |
5065 |
> |
esac |
5066 |
|
fi |
5067 |
+ |
|
5068 |
+ |
if test -n "$CPU_FLAGS"; then |
5069 |
+ |
CXXFLAGS="$CXXFLAGS $CPU_FLAGS" |
5070 |
+ |
fi |
5071 |
+ |
|
5072 |
+ |
if test -z "$CXXFLAGS"; then |
5073 |
+ |
echo "" |
5074 |
+ |
echo "**********************************************************" |
5075 |
+ |
echo "* WARNING: Don't know the best CXXFLAGS for this system *" |
5076 |
+ |
echo "* Use make CXXFLAGS=..., or edit the top level Makefile *" |
5077 |
+ |
echo "* (otherwise, a default of CXXFLAGS=-O3 will be used) *" |
5078 |
+ |
echo "**********************************************************" |
5079 |
+ |
echo "" |
5080 |
+ |
CXXFLAGS="-O3" |
5081 |
+ |
fi |
5082 |
+ |
|
5083 |
+ |
|
5084 |
+ |
|
5085 |
+ |
echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts ${CXXFLAGS}" >&5 |
5086 |
+ |
echo $ECHO_N "checking whether ${CXX-c++} accepts ${CXXFLAGS}... $ECHO_C" >&6 |
5087 |
+ |
if test "${ac_guessed_cxxflags+set}" = set; then |
5088 |
+ |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
5089 |
+ |
else |
5090 |
+ |
echo 'void f(){}' > conftest.cpp |
5091 |
+ |
if test -z "`${CXX-c++} ${CXXFLAGS} -c conftest.cpp 2>&1`"; then |
5092 |
+ |
ac_guessed_cxxflags=yes |
5093 |
+ |
else |
5094 |
+ |
ac_guessed_cxxflags=no |
5095 |
|
fi |
5096 |
+ |
rm -f conftest* |
5097 |
|
|
5098 |
+ |
fi |
5099 |
+ |
echo "$as_me:$LINENO: result: $ac_guessed_cxxflags" >&5 |
5100 |
+ |
echo "${ECHO_T}$ac_guessed_cxxflags" >&6 |
5101 |
+ |
if test "$ac_guessed_cxxflags" = yes; then |
5102 |
+ |
: |
5103 |
|
|
5104 |
+ |
else |
5105 |
+ |
: |
5106 |
|
|
5107 |
+ |
echo "" |
5108 |
+ |
echo "**********************************************************" |
5109 |
+ |
echo "* WARNING: The guessed CXXFLAGS don't seem to work with *" |
5110 |
+ |
echo "* your compiler. *" |
5111 |
+ |
echo "* Use make CXXFLAGS=..., or edit the top level Makefile *" |
5112 |
+ |
echo "**********************************************************" |
5113 |
+ |
echo "" |
5114 |
+ |
CXXFLAGS="" |
5115 |
+ |
|
5116 |
+ |
fi |
5117 |
+ |
|
5118 |
+ |
|
5119 |
+ |
fi |
5120 |
+ |
|
5121 |
+ |
|
5122 |
+ |
|
5123 |
+ |
|
5124 |
+ |
|
5125 |
+ |
# Try to determine "good" native compiler flags if none specified on command |
5126 |
+ |
# line |
5127 |
|
|
5128 |
< |
|
5129 |
< |
# Try to determine native compiler flags that allow us to use F90 suffix |
4107 |
< |
# for preprocessed f90 source with -D type defines |
4108 |
< |
|
4109 |
< |
if test "$ac_test_PREPDEFFLAG" != "set"; then |
4110 |
< |
PREPDEFFLAG="" |
5128 |
> |
if test x"$F90FLAGS" = x ; then |
5129 |
> |
F90FLAGS="" |
5130 |
|
case "${host_cpu}-${host_os}" in |
5131 |
|
|
5132 |
< |
*linux*) if test "$F90" = ifc; then |
5133 |
< |
PREPDEFFLAG=" " |
5132 |
> |
*linux*) if test "$F90" = ifc -o "$F90" = ifort; then |
5133 |
> |
F90FLAGS="-O" |
5134 |
|
fi;; |
5135 |
< |
*aix*) if test "$F90" = xlf90 -o "$F90" = f90; then |
5136 |
< |
PREPDEFFLAG="-WF," |
5135 |
> |
rs6000*-aix*) if test "$F90" = xlf90 -o "$F90" = f90; then |
5136 |
> |
F90FLAGS="-O3 -qarch=pwrx -qtune=pwrx -qansialias -w" |
5137 |
|
fi;; |
5138 |
< |
*darwin*) |
5138 |
> |
powerpc*-aix*) |
5139 |
|
if test "$F90" = f90 -o "$F90" = xlf90; then |
5140 |
< |
PREPDEFFLAG="-WF," |
5140 |
> |
F90FLAGS="-O3 -qarch=ppc -qansialias -w" |
5141 |
> |
echo "*******************************************************" |
5142 |
> |
echo "* You have AIX on an unknown powerpc system. It is *" |
5143 |
> |
echo "* recommended that you use *" |
5144 |
> |
echo "* *" |
5145 |
> |
echo "* F90FLAGS=-O3 -qarch=ppc -qtune=xxx -qansialias -w *" |
5146 |
> |
echo "* ^^^ *" |
5147 |
> |
echo "* where xxx is 601, 603, 604, or whatever kind of *" |
5148 |
> |
echo "* PowerPC CPU you have. For more info, man xlf. *" |
5149 |
> |
echo "*******************************************************" |
5150 |
|
fi;; |
5151 |
+ |
*darwin*) |
5152 |
+ |
if test "$F90" = f90 -o "$F90" = xlf90 -o "$F90" = xlf95; then |
5153 |
+ |
F90FLAGS="-qthreaded -O5 -qtune=auto -qarch=auto -qunroll=auto" |
5154 |
+ |
fi;; |
5155 |
|
esac |
5156 |
|
|
5157 |
< |
if test -z "$PREPDEFFLAG"; then |
5157 |
> |
if test -n "$CPU_FLAGS"; then |
5158 |
> |
F90FLAGS="$F90FLAGS $CPU_FLAGS" |
5159 |
> |
fi |
5160 |
> |
|
5161 |
> |
if test -z "$F90FLAGS"; then |
5162 |
|
echo "" |
5163 |
< |
echo "*************************************************************" |
5164 |
< |
echo "* WARNING: Don't know the best PREPDEFFLAG for this system *" |
5165 |
< |
echo "* Use make PREPDEFFLAG=..., or edit the top level Makefile *" |
5166 |
< |
echo "* (otherwise, an empty PREPDEFFLAG will be used) *" |
5167 |
< |
echo "*************************************************************" |
5163 |
> |
echo "**********************************************************" |
5164 |
> |
echo "* WARNING: Don't know the best F90FLAGS for this system *" |
5165 |
> |
echo "* Use make F90FLAGS=..., or edit the top level Makefile *" |
5166 |
> |
echo "* (otherwise, a default of F90FLAGS=-O3 will be used) *" |
5167 |
> |
echo "**********************************************************" |
5168 |
|
echo "" |
5169 |
< |
PREPDEFFLAG=" " |
5169 |
> |
F90FLAGS="-O3" |
5170 |
|
fi |
5171 |
|
|
4136 |
– |
echo "$as_me:$LINENO: checking to make sure F90 preprocessor define flag works" >&5 |
4137 |
– |
echo $ECHO_N "checking to make sure F90 preprocessor define flag works... $ECHO_C" >&6 |
5172 |
|
|
5173 |
+ |
echo "$as_me:$LINENO: checking whether ${F90-f90} accepts ${F90FLAGS}" >&5 |
5174 |
+ |
echo $ECHO_N "checking whether ${F90-f90} accepts ${F90FLAGS}... $ECHO_C" >&6 |
5175 |
+ |
if test "${ac_guessed_f90flags+set}" = set; then |
5176 |
+ |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
5177 |
+ |
else |
5178 |
|
|
5179 |
< |
ac_ext=f90 |
5179 |
> |
|
5180 |
> |
|
5181 |
> |
ac_ext=f90 |
5182 |
|
ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5' |
5183 |
|
ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
5184 |
|
ac_compiler_gnu=$ac_cv_f90_compiler_gnu |
5185 |
|
|
5186 |
< |
ac_save_ext=$ac_ext |
5187 |
< |
ac_ext=F90 |
5188 |
< |
ac_save_F90FLAGS=$F90FLAGS |
4148 |
< |
|
4149 |
< |
if test "$PREPDEFFLAG"; then |
4150 |
< |
F90FLAGS="${F90FLAGS} ${PREPFLAG} ${PREPDEFFLAG}-DTEST" |
4151 |
< |
fi |
4152 |
< |
|
4153 |
< |
cat >conftest.$ac_ext <<_ACEOF |
4154 |
< |
|
4155 |
< |
|
4156 |
< |
program main |
4157 |
< |
|
4158 |
< |
integer :: i |
4159 |
< |
#ifdef TEST |
4160 |
< |
i = 1 |
4161 |
< |
#else |
4162 |
< |
choke me |
4163 |
< |
#endif |
4164 |
< |
|
4165 |
< |
|
4166 |
< |
end program main |
4167 |
< |
|
4168 |
< |
_ACEOF |
4169 |
< |
rm -f conftest.$ac_objext |
5186 |
> |
echo 'program main' > conftest.$ac_ext |
5187 |
> |
echo 'end program main' >> conftest.$ac_ext |
5188 |
> |
ac_compile='${F90-f90} -c ${F90FLAGS} $F90FLAGS conftest.$ac_ext 1>&5' |
5189 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
5190 |
|
(eval $ac_compile) 2>&5 |
5191 |
|
ac_status=$? |
5192 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5193 |
< |
(exit $ac_status); } && |
5194 |
< |
{ ac_try='test -s conftest.$ac_objext' |
4176 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4177 |
< |
(eval $ac_try) 2>&5 |
4178 |
< |
ac_status=$? |
4179 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4180 |
< |
(exit $ac_status); }; }; then |
4181 |
< |
prepdefflagworks=1 |
5193 |
> |
(exit $ac_status); }; then |
5194 |
> |
ac_guessed_f90flags=yes |
5195 |
|
else |
5196 |
< |
echo "$as_me: failed program was:" >&5 |
4184 |
< |
sed 's/^/| /' conftest.$ac_ext >&5 |
4185 |
< |
|
4186 |
< |
prepdefflagworks=0 |
5196 |
> |
ac_guessed_f90flags=no |
5197 |
|
fi |
5198 |
< |
rm -f conftest.$ac_objext conftest.$ac_ext |
5198 |
> |
rm -f conftest* |
5199 |
> |
ac_ext=f90 |
5200 |
> |
ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5' |
5201 |
> |
ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
5202 |
> |
ac_compiler_gnu=$ac_cv_f90_compiler_gnu |
5203 |
|
|
4190 |
– |
F90FLAGS=$ac_save_F90FLAGS |
4191 |
– |
ac_ext=$ac_save_ext |
4192 |
– |
ac_ext=c |
4193 |
– |
ac_cpp='$CPP $CPPFLAGS' |
4194 |
– |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
4195 |
– |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
4196 |
– |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
5204 |
|
|
5205 |
+ |
fi |
5206 |
+ |
echo "$as_me:$LINENO: result: $ac_guessed_f90flags" >&5 |
5207 |
+ |
echo "${ECHO_T}$ac_guessed_f90flags" >&6 |
5208 |
+ |
if test "$ac_guessed_f90flags" = yes; then |
5209 |
+ |
: |
5210 |
|
|
5211 |
+ |
else |
5212 |
+ |
: |
5213 |
|
|
5214 |
< |
if test "$prepdefflagworks" = 1; then |
5215 |
< |
echo "$as_me:$LINENO: result: yes" >&5 |
5216 |
< |
echo "${ECHO_T}yes" >&6 |
5214 |
> |
echo "" |
5215 |
> |
echo "**********************************************************" |
5216 |
> |
echo "* WARNING: The guessed F90FLAGS don't seem to work with *" |
5217 |
> |
echo "* your compiler. *" |
5218 |
> |
echo "* Use make F90FLAGS=..., or edit the top level Makefile *" |
5219 |
> |
echo "**********************************************************" |
5220 |
> |
echo "" |
5221 |
> |
F90FLAGS="" |
5222 |
|
|
4204 |
– |
else |
4205 |
– |
echo "$as_me:$LINENO: result: no" >&5 |
4206 |
– |
echo "${ECHO_T}no" >&6 |
4207 |
– |
{ { echo "$as_me:$LINENO: error: Can't figure out working Fortran90 preprocessor define flag" >&5 |
4208 |
– |
echo "$as_me: error: Can't figure out working Fortran90 preprocessor define flag" >&2;} |
4209 |
– |
{ (exit 1); exit 1; }; } |
4210 |
– |
fi |
5223 |
|
fi |
5224 |
|
|
5225 |
+ |
|
5226 |
+ |
fi |
5227 |
+ |
|
5228 |
+ |
;; |
5229 |
+ |
esac |
5230 |
+ |
|
5231 |
|
# Find a good install program. We prefer a C program (faster), |
5232 |
|
# so one script is as good as another. But avoid the broken or |
5233 |
|
# incompatible versions: |
5239 |
|
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
5240 |
|
# AFS /usr/afsws/bin/install, which mishandles nonexistent args |
5241 |
|
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
5242 |
+ |
# OS/2's system install, which has a completely different semantic |
5243 |
|
# ./install, which can be erroneously created by make from ./install.sh. |
5244 |
|
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
5245 |
|
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 |
5256 |
|
case $as_dir/ in |
5257 |
|
./ | .// | /cC/* | \ |
5258 |
|
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
5259 |
+ |
?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
5260 |
|
/usr/ucb/* ) ;; |
5261 |
|
*) |
5262 |
|
# OSF1 and SCO ODT 3.0 have their own names for install. |
5264 |
|
# by default. |
5265 |
|
for ac_prog in ginstall scoinst install; do |
5266 |
|
for ac_exec_ext in '' $ac_executable_extensions; do |
5267 |
< |
if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
5268 |
< |
if test $ac_prog = install && |
5269 |
< |
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
5270 |
< |
# AIX install. It has an incompatible calling convention. |
5271 |
< |
: |
5272 |
< |
elif test $ac_prog = install && |
5273 |
< |
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
5274 |
< |
# program-specific install script used by HP pwplus--don't use. |
5275 |
< |
: |
5276 |
< |
else |
5277 |
< |
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
5278 |
< |
break 3 |
5279 |
< |
fi |
5280 |
< |
fi |
5267 |
> |
if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
5268 |
> |
if test $ac_prog = install && |
5269 |
> |
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
5270 |
> |
# AIX install. It has an incompatible calling convention. |
5271 |
> |
: |
5272 |
> |
elif test $ac_prog = install && |
5273 |
> |
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
5274 |
> |
# program-specific install script used by HP pwplus--don't use. |
5275 |
> |
: |
5276 |
> |
else |
5277 |
> |
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
5278 |
> |
break 3 |
5279 |
> |
fi |
5280 |
> |
fi |
5281 |
|
done |
5282 |
|
done |
5283 |
|
;; |
5320 |
|
|
5321 |
|
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
5322 |
|
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 |
5323 |
< |
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'` |
5323 |
> |
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
5324 |
|
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
5325 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
5326 |
|
else |
5468 |
|
done |
5469 |
|
test -n "$YACC" || YACC="yacc" |
5470 |
|
|
4451 |
– |
|
5471 |
|
for ac_prog in flex lex |
5472 |
|
do |
5473 |
|
# Extract the first word of "$ac_prog", so it can be a program name with args. |
5519 |
|
ac_check_lib_save_LIBS=$LIBS |
5520 |
|
LIBS="-lfl $LIBS" |
5521 |
|
cat >conftest.$ac_ext <<_ACEOF |
4503 |
– |
#line $LINENO "configure" |
4504 |
– |
/* confdefs.h. */ |
4505 |
– |
_ACEOF |
4506 |
– |
cat confdefs.h >>conftest.$ac_ext |
4507 |
– |
cat >>conftest.$ac_ext <<_ACEOF |
4508 |
– |
/* end confdefs.h. */ |
5522 |
|
|
5523 |
< |
/* Override any gcc2 internal prototype to avoid an error. */ |
5524 |
< |
#ifdef __cplusplus |
5525 |
< |
extern "C" |
5526 |
< |
#endif |
5527 |
< |
/* We use char because int might match the return type of a gcc2 |
4515 |
< |
builtin and then its argument prototype would still apply. */ |
4516 |
< |
char yywrap (); |
4517 |
< |
int |
4518 |
< |
main () |
4519 |
< |
{ |
4520 |
< |
yywrap (); |
4521 |
< |
; |
4522 |
< |
return 0; |
4523 |
< |
} |
5523 |
> |
program main |
5524 |
> |
|
5525 |
> |
call yywrap |
5526 |
> |
end program main |
5527 |
> |
|
5528 |
|
_ACEOF |
5529 |
|
rm -f conftest.$ac_objext conftest$ac_exeext |
5530 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
5531 |
< |
(eval $ac_link) 2>&5 |
5531 |
> |
(eval $ac_link) 2>conftest.er1 |
5532 |
|
ac_status=$? |
5533 |
+ |
grep -v '^ *+' conftest.er1 >conftest.err |
5534 |
+ |
rm -f conftest.er1 |
5535 |
+ |
cat conftest.err >&5 |
5536 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5537 |
|
(exit $ac_status); } && |
5538 |
< |
{ ac_try='test -s conftest$ac_exeext' |
5538 |
> |
{ ac_try='test -z "$ac_f90_werror_flag" |
5539 |
> |
|| test ! -s conftest.err' |
5540 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5541 |
|
(eval $ac_try) 2>&5 |
5542 |
|
ac_status=$? |
5543 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5544 |
+ |
(exit $ac_status); }; } && |
5545 |
+ |
{ ac_try='test -s conftest$ac_exeext' |
5546 |
+ |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5547 |
+ |
(eval $ac_try) 2>&5 |
5548 |
+ |
ac_status=$? |
5549 |
+ |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5550 |
|
(exit $ac_status); }; }; then |
5551 |
|
ac_cv_lib_fl_yywrap=yes |
5552 |
|
else |
5555 |
|
|
5556 |
|
ac_cv_lib_fl_yywrap=no |
5557 |
|
fi |
5558 |
< |
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
5558 |
> |
rm -f conftest.err conftest.$ac_objext \ |
5559 |
> |
conftest$ac_exeext conftest.$ac_ext |
5560 |
|
LIBS=$ac_check_lib_save_LIBS |
5561 |
|
fi |
5562 |
|
echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5 |
5572 |
|
ac_check_lib_save_LIBS=$LIBS |
5573 |
|
LIBS="-ll $LIBS" |
5574 |
|
cat >conftest.$ac_ext <<_ACEOF |
4560 |
– |
#line $LINENO "configure" |
4561 |
– |
/* confdefs.h. */ |
4562 |
– |
_ACEOF |
4563 |
– |
cat confdefs.h >>conftest.$ac_ext |
4564 |
– |
cat >>conftest.$ac_ext <<_ACEOF |
4565 |
– |
/* end confdefs.h. */ |
5575 |
|
|
5576 |
< |
/* Override any gcc2 internal prototype to avoid an error. */ |
5577 |
< |
#ifdef __cplusplus |
5578 |
< |
extern "C" |
5579 |
< |
#endif |
5580 |
< |
/* We use char because int might match the return type of a gcc2 |
4572 |
< |
builtin and then its argument prototype would still apply. */ |
4573 |
< |
char yywrap (); |
4574 |
< |
int |
4575 |
< |
main () |
4576 |
< |
{ |
4577 |
< |
yywrap (); |
4578 |
< |
; |
4579 |
< |
return 0; |
4580 |
< |
} |
5576 |
> |
program main |
5577 |
> |
|
5578 |
> |
call yywrap |
5579 |
> |
end program main |
5580 |
> |
|
5581 |
|
_ACEOF |
5582 |
|
rm -f conftest.$ac_objext conftest$ac_exeext |
5583 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
5584 |
< |
(eval $ac_link) 2>&5 |
5584 |
> |
(eval $ac_link) 2>conftest.er1 |
5585 |
|
ac_status=$? |
5586 |
+ |
grep -v '^ *+' conftest.er1 >conftest.err |
5587 |
+ |
rm -f conftest.er1 |
5588 |
+ |
cat conftest.err >&5 |
5589 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5590 |
|
(exit $ac_status); } && |
5591 |
< |
{ ac_try='test -s conftest$ac_exeext' |
5591 |
> |
{ ac_try='test -z "$ac_f90_werror_flag" |
5592 |
> |
|| test ! -s conftest.err' |
5593 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5594 |
|
(eval $ac_try) 2>&5 |
5595 |
|
ac_status=$? |
5596 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5597 |
+ |
(exit $ac_status); }; } && |
5598 |
+ |
{ ac_try='test -s conftest$ac_exeext' |
5599 |
+ |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5600 |
+ |
(eval $ac_try) 2>&5 |
5601 |
+ |
ac_status=$? |
5602 |
+ |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5603 |
|
(exit $ac_status); }; }; then |
5604 |
|
ac_cv_lib_l_yywrap=yes |
5605 |
|
else |
5608 |
|
|
5609 |
|
ac_cv_lib_l_yywrap=no |
5610 |
|
fi |
5611 |
< |
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
5611 |
> |
rm -f conftest.err conftest.$ac_objext \ |
5612 |
> |
conftest$ac_exeext conftest.$ac_ext |
5613 |
|
LIBS=$ac_check_lib_save_LIBS |
5614 |
|
fi |
5615 |
|
echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5 |
5671 |
|
_ACEOF |
5672 |
|
rm -f conftest.$ac_objext conftest$ac_exeext |
5673 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
5674 |
< |
(eval $ac_link) 2>&5 |
5674 |
> |
(eval $ac_link) 2>conftest.er1 |
5675 |
|
ac_status=$? |
5676 |
+ |
grep -v '^ *+' conftest.er1 >conftest.err |
5677 |
+ |
rm -f conftest.er1 |
5678 |
+ |
cat conftest.err >&5 |
5679 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5680 |
|
(exit $ac_status); } && |
5681 |
< |
{ ac_try='test -s conftest$ac_exeext' |
5681 |
> |
{ ac_try='test -z "$ac_f90_werror_flag" |
5682 |
> |
|| test ! -s conftest.err' |
5683 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5684 |
|
(eval $ac_try) 2>&5 |
5685 |
|
ac_status=$? |
5686 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5687 |
+ |
(exit $ac_status); }; } && |
5688 |
+ |
{ ac_try='test -s conftest$ac_exeext' |
5689 |
+ |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5690 |
+ |
(eval $ac_try) 2>&5 |
5691 |
+ |
ac_status=$? |
5692 |
+ |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5693 |
|
(exit $ac_status); }; }; then |
5694 |
|
ac_cv_prog_lex_yytext_pointer=yes |
5695 |
|
else |
5697 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
5698 |
|
|
5699 |
|
fi |
5700 |
< |
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
5700 |
> |
rm -f conftest.err conftest.$ac_objext \ |
5701 |
> |
conftest$ac_exeext conftest.$ac_ext |
5702 |
|
LIBS=$ac_save_LIBS |
5703 |
|
rm -f "${LEX_OUTPUT_ROOT}.c" |
5704 |
|
|
5782 |
|
# `set' does not quote correctly, so add quotes (double-quote |
5783 |
|
# substitution turns \\\\ into \\, and sed turns \\ into \). |
5784 |
|
sed -n \ |
5785 |
< |
"s/'/'\\\\''/g; |
5786 |
< |
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
5785 |
> |
"s/'/'\\\\''/g; |
5786 |
> |
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
5787 |
|
;; |
5788 |
|
*) |
5789 |
|
# `set' quotes correctly as required by POSIX, so do not add quotes. |
5790 |
|
sed -n \ |
5791 |
< |
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
5791 |
> |
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
5792 |
|
;; |
5793 |
|
esac; |
5794 |
|
} | |
5811 |
|
exit 1 |
5812 |
|
fi |
5813 |
|
|
4792 |
– |
ac_ext=f90 |
4793 |
– |
ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5' |
4794 |
– |
ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
4795 |
– |
ac_compiler_gnu=$ac_cv_f90_compiler_gnu |
5814 |
|
|
5815 |
|
|
5816 |
< |
|
5817 |
< |
ac_ext=f90 |
5818 |
< |
ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5' |
5819 |
< |
ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
4802 |
< |
ac_compiler_gnu=$ac_cv_f90_compiler_gnu |
4803 |
< |
echo "$as_me:$LINENO: checking how to get verbose linking output from $F90" >&5 |
4804 |
< |
echo $ECHO_N "checking how to get verbose linking output from $F90... $ECHO_C" >&6 |
4805 |
< |
if test "${ac_cv_prog_f90_v+set}" = set; then |
4806 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
5816 |
> |
# Check whether --with-mpi or --without-mpi was given. |
5817 |
> |
if test "${with_mpi+set}" = set; then |
5818 |
> |
withval="$with_mpi" |
5819 |
> |
with_mpi=$withval |
5820 |
|
else |
5821 |
< |
|
5822 |
< |
cat >conftest.$ac_ext <<_ACEOF |
4810 |
< |
|
4811 |
< |
program main |
4812 |
< |
|
4813 |
< |
|
4814 |
< |
end program main |
5821 |
> |
with_mpi="no" |
5822 |
> |
fi; |
5823 |
|
|
5824 |
< |
_ACEOF |
5825 |
< |
rm -f conftest.$ac_objext |
5826 |
< |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
5827 |
< |
(eval $ac_compile) 2>&5 |
5828 |
< |
ac_status=$? |
5829 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5830 |
< |
(exit $ac_status); } && |
5831 |
< |
{ ac_try='test -s conftest.$ac_objext' |
5832 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5833 |
< |
(eval $ac_try) 2>&5 |
4826 |
< |
ac_status=$? |
4827 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4828 |
< |
(exit $ac_status); }; }; then |
4829 |
< |
ac_cv_prog_f90_v= |
4830 |
< |
# Try some options frequently used verbose output |
4831 |
< |
for ac_verb in -v -verbose --verbose -V -\#\#\#; do |
4832 |
< |
ac_ext=f90 |
4833 |
< |
ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5' |
4834 |
< |
ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
4835 |
< |
ac_compiler_gnu=$ac_cv_f90_compiler_gnu |
5824 |
> |
case "x$with_mpi" in |
5825 |
> |
xyes | "x") USE_MPI=yes;; |
5826 |
> |
xno) USE_MPI=no ;; |
5827 |
> |
*) MPI="$with_mpi"; USE_MPI=yes ;; |
5828 |
> |
esac |
5829 |
> |
if test "$USE_MPI" = "yes" -a -z "$with_mpi"; then |
5830 |
> |
MPI="/usr/local" |
5831 |
> |
fi |
5832 |
> |
if test "$USE_MPI" = "yes"; then |
5833 |
> |
echo "MPI = $MPI" |
5834 |
|
|
4837 |
– |
cat >conftest.$ac_ext <<_ACEOF |
5835 |
|
|
5836 |
< |
program main |
5837 |
< |
|
5838 |
< |
|
4842 |
< |
end program main |
4843 |
< |
|
4844 |
< |
_ACEOF |
4845 |
< |
|
4846 |
< |
# Compile and link our simple test program by passing a flag (argument |
4847 |
< |
# 1 to this macro) to the Fortran 90 compiler in order to get |
4848 |
< |
# "verbose" output that we can then parse for the Fortran 90 linker |
4849 |
< |
# flags. |
4850 |
< |
ac_save_F90FLAGS=$F90FLAGS |
4851 |
< |
F90FLAGS="$F90FLAGS $ac_verb" |
4852 |
< |
|
4853 |
< |
(eval echo $as_me:4853: \"$ac_link\") >&5 |
4854 |
< |
ac_f90_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'` |
4855 |
< |
echo "$ac_f90_v_output" >&5 |
4856 |
< |
F90FLAGS=$ac_save_F90FLAGS |
4857 |
< |
|
4858 |
< |
rm -f conftest.* |
4859 |
< |
ac_ext=f90 |
4860 |
< |
ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5' |
4861 |
< |
ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
4862 |
< |
ac_compiler_gnu=$ac_cv_f90_compiler_gnu |
4863 |
< |
|
4864 |
< |
# If we are using xlf then replace all the commas with spaces. |
4865 |
< |
if echo $ac_f90_v_output | grep xlfentry >/dev/null 2>&1; then |
4866 |
< |
ac_f90_v_output=`echo $ac_f90_v_output | sed 's/,/ /g'` |
4867 |
< |
fi |
5836 |
> |
# Set variables... |
5837 |
> |
MPI_LIB_DIR="$MPI/lib" |
5838 |
> |
MPI_INC_DIR="$MPI/include" |
5839 |
|
|
4869 |
– |
# If we are using Cray Fortran then delete quotes. |
4870 |
– |
# Use "\"" instead of '"' for font-lock-mode. |
4871 |
– |
# FIXME: a more general fix for quoted arguments with spaces? |
4872 |
– |
if echo $ac_f90_v_output | grep cft90 >/dev/null 2>&1; then |
4873 |
– |
ac_f90_v_output=`echo $ac_f90_v_output | sed "s/\"//g"` |
4874 |
– |
fi |
4875 |
– |
# look for -l* and *.a constructs in the output |
4876 |
– |
for ac_arg in $ac_f90_v_output; do |
4877 |
– |
case $ac_arg in |
4878 |
– |
[\\/]*.a | ?:[\\/]*.a | -[lLRu]*) |
4879 |
– |
ac_cv_prog_f90_v=$ac_verb |
4880 |
– |
break 2 ;; |
4881 |
– |
esac |
4882 |
– |
done |
4883 |
– |
done |
4884 |
– |
if test -z "$ac_cv_prog_f90_v"; then |
4885 |
– |
{ echo "$as_me:$LINENO: WARNING: cannot determine how to obtain linking information from $F90" >&5 |
4886 |
– |
echo "$as_me: WARNING: cannot determine how to obtain linking information from $F90" >&2;} |
4887 |
– |
fi |
4888 |
– |
else |
4889 |
– |
echo "$as_me: failed program was:" >&5 |
4890 |
– |
sed 's/^/| /' conftest.$ac_ext >&5 |
5840 |
|
|
4892 |
– |
{ echo "$as_me:$LINENO: WARNING: compilation failed" >&5 |
4893 |
– |
echo "$as_me: WARNING: compilation failed" >&2;} |
4894 |
– |
fi |
4895 |
– |
rm -f conftest.$ac_objext conftest.$ac_ext |
5841 |
|
|
5842 |
< |
fi |
5843 |
< |
echo "$as_me:$LINENO: result: $ac_cv_prog_f90_v" >&5 |
5844 |
< |
echo "${ECHO_T}$ac_cv_prog_f90_v" >&6 |
5845 |
< |
echo "$as_me:$LINENO: checking for Fortran 90 libraries" >&5 |
5846 |
< |
echo $ECHO_N "checking for Fortran 90 libraries... $ECHO_C" >&6 |
5847 |
< |
if test "${ac_cv_flibs+set}" = set; then |
5848 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
5842 |
> |
echo "$as_me:$LINENO: checking for mpi.h" >&5 |
5843 |
> |
echo $ECHO_N "checking for mpi.h... $ECHO_C" >&6 |
5844 |
> |
have_mpi_h=0 |
5845 |
> |
echo '#include <mpi.h>' > conftest.cc |
5846 |
> |
if test -z "`${CXX} -I${MPI_INC_DIR} -c conftest.cc 2>&1`"; then |
5847 |
> |
echo "$as_me:$LINENO: result: yes" >&5 |
5848 |
> |
echo "${ECHO_T}yes" >&6 |
5849 |
> |
have_mpi_h=1 |
5850 |
|
else |
5851 |
< |
if test "x$F90LIBS" != "x"; then |
5852 |
< |
ac_cv_f90libs="$F90LIBS" # Let the user override the test. |
5853 |
< |
else |
5851 |
> |
echo "$as_me:$LINENO: result: no! Check MPI include paths" >&5 |
5852 |
> |
echo "${ECHO_T}no! Check MPI include paths" >&6 |
5853 |
> |
USE_MPI="no" |
5854 |
> |
fi |
5855 |
> |
rm -f conftest* |
5856 |
> |
if test "$have_mpi_h" = 1; then |
5857 |
|
|
5858 |
< |
ac_ext=f90 |
5859 |
< |
ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5' |
4911 |
< |
ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
4912 |
< |
ac_compiler_gnu=$ac_cv_f90_compiler_gnu |
4913 |
< |
|
4914 |
< |
cat >conftest.$ac_ext <<_ACEOF |
4915 |
< |
|
4916 |
< |
program main |
4917 |
< |
|
4918 |
< |
|
4919 |
< |
end program main |
4920 |
< |
|
5858 |
> |
cat >>confdefs.h <<\_ACEOF |
5859 |
> |
#define HAVE_MPI_H 1 |
5860 |
|
_ACEOF |
5861 |
|
|
4923 |
– |
# Compile and link our simple test program by passing a flag (argument |
4924 |
– |
# 1 to this macro) to the Fortran 90 compiler in order to get |
4925 |
– |
# "verbose" output that we can then parse for the Fortran 90 linker |
4926 |
– |
# flags. |
4927 |
– |
ac_save_F90FLAGS=$F90FLAGS |
4928 |
– |
F90FLAGS="$F90FLAGS $ac_cv_prog_f90_v" |
4929 |
– |
|
4930 |
– |
(eval echo $as_me:4930: \"$ac_link\") >&5 |
4931 |
– |
ac_f90_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'` |
4932 |
– |
echo "$ac_f90_v_output" >&5 |
4933 |
– |
F90FLAGS=$ac_save_F90FLAGS |
4934 |
– |
|
4935 |
– |
rm -f conftest.* |
4936 |
– |
ac_ext=f90 |
4937 |
– |
ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5' |
4938 |
– |
ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
4939 |
– |
ac_compiler_gnu=$ac_cv_f90_compiler_gnu |
4940 |
– |
|
4941 |
– |
# If we are using xlf then replace all the commas with spaces. |
4942 |
– |
if echo $ac_f90_v_output | grep xlfentry >/dev/null 2>&1; then |
4943 |
– |
ac_f90_v_output=`echo $ac_f90_v_output | sed 's/,/ /g'` |
5862 |
|
fi |
5863 |
|
|
5864 |
< |
# If we are using Cray Fortran then delete quotes. |
5865 |
< |
# Use "\"" instead of '"' for font-lock-mode. |
5866 |
< |
# FIXME: a more general fix for quoted arguments with spaces? |
5867 |
< |
if echo $ac_f90_v_output | grep cft90 >/dev/null 2>&1; then |
5868 |
< |
ac_f90_v_output=`echo $ac_f90_v_output | sed "s/\"//g"` |
5869 |
< |
fi |
5870 |
< |
|
5871 |
< |
ac_cv_f90libs= |
5872 |
< |
|
5873 |
< |
# Save positional arguments (if any) |
5874 |
< |
ac_save_positional="$@" |
5875 |
< |
|
5876 |
< |
set X $ac_f90_v_output |
5877 |
< |
while test $# != 1; do |
4960 |
< |
shift |
4961 |
< |
ac_arg=$1 |
4962 |
< |
case $ac_arg in |
4963 |
< |
[\\/]*.a | ?:[\\/]*.a) |
4964 |
< |
ac_exists=false |
4965 |
< |
for ac_i in $ac_cv_f90libs; do |
4966 |
< |
if test x"$ac_arg" = x"$ac_i"; then |
4967 |
< |
ac_exists=true |
4968 |
< |
break |
4969 |
< |
fi |
4970 |
< |
done |
4971 |
< |
|
4972 |
< |
if test x"$ac_exists" = xtrue; then |
4973 |
< |
: |
5864 |
> |
echo "$as_me:$LINENO: checking whether mpif.h is usable" >&5 |
5865 |
> |
echo $ECHO_N "checking whether mpif.h is usable... $ECHO_C" >&6 |
5866 |
> |
have_mpif_h=0 |
5867 |
> |
rm -f conftest* |
5868 |
> |
cat >conftest.f90 <<EOF |
5869 |
> |
program main |
5870 |
> |
include 'mpif.h' |
5871 |
> |
end |
5872 |
> |
EOF |
5873 |
> |
if $F90 -I$MPI_INC_DIR -c conftest.f90 > conftest.out 2>&1 ; then |
5874 |
> |
echo "$as_me:$LINENO: result: yes" >&5 |
5875 |
> |
echo "${ECHO_T}yes" >&6 |
5876 |
> |
MPI_F90_INC="$MPI_INC_DIR" |
5877 |
> |
have_mpif_h=1 |
5878 |
|
else |
5879 |
< |
ac_cv_f90libs="$ac_cv_f90libs $ac_arg" |
5880 |
< |
fi |
4977 |
< |
|
4978 |
< |
;; |
4979 |
< |
-bI:*) |
4980 |
< |
ac_exists=false |
4981 |
< |
for ac_i in $ac_cv_f90libs; do |
4982 |
< |
if test x"$ac_arg" = x"$ac_i"; then |
4983 |
< |
ac_exists=true |
4984 |
< |
break |
4985 |
< |
fi |
4986 |
< |
done |
4987 |
< |
|
4988 |
< |
if test x"$ac_exists" = xtrue; then |
4989 |
< |
: |
4990 |
< |
else |
4991 |
< |
if test "$ac_compiler_gnu" = yes; then |
4992 |
< |
for ac_link_opt in $ac_arg; do |
4993 |
< |
ac_cv_f90libs="$ac_cv_f90libs -Xlinker $ac_link_opt" |
4994 |
< |
done |
4995 |
< |
else |
4996 |
< |
ac_cv_f90libs="$ac_cv_f90libs $ac_arg" |
4997 |
< |
fi |
4998 |
< |
fi |
4999 |
< |
|
5000 |
< |
;; |
5001 |
< |
# Ignore these flags. |
5002 |
< |
-lang* | -lcrt0.o | -lc | -lgcc | -LANG:=*) |
5003 |
< |
;; |
5004 |
< |
-lkernel32) |
5005 |
< |
test x"$CYGWIN" != xyes && ac_cv_f90libs="$ac_cv_f90libs $ac_arg" |
5006 |
< |
;; |
5007 |
< |
-[LRuY]) |
5008 |
< |
# These flags, when seen by themselves, take an argument. |
5009 |
< |
# We remove the space between option and argument and re-iterate |
5010 |
< |
# unless we find an empty arg or a new option (starting with -) |
5011 |
< |
case $2 in |
5012 |
< |
"" | -*);; |
5013 |
< |
*) |
5014 |
< |
ac_arg="$ac_arg$2" |
5015 |
< |
|
5016 |
< |
shift; shift |
5017 |
< |
set X $ac_arg "$@" |
5018 |
< |
;; |
5019 |
< |
esac |
5020 |
< |
;; |
5021 |
< |
-YP,*) |
5022 |
< |
for ac_j in `echo $ac_arg | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do |
5023 |
< |
ac_exists=false |
5024 |
< |
for ac_i in $ac_cv_f90libs; do |
5025 |
< |
if test x"$ac_j" = x"$ac_i"; then |
5026 |
< |
ac_exists=true |
5027 |
< |
break |
5028 |
< |
fi |
5029 |
< |
done |
5030 |
< |
|
5031 |
< |
if test x"$ac_exists" = xtrue; then |
5032 |
< |
: |
5033 |
< |
else |
5034 |
< |
ac_arg="$ac_arg $ac_j" |
5035 |
< |
ac_cv_f90libs="$ac_cv_f90libs $ac_j" |
5036 |
< |
fi |
5037 |
< |
|
5038 |
< |
done |
5039 |
< |
;; |
5040 |
< |
-[lLR]*) |
5041 |
< |
ac_exists=false |
5042 |
< |
for ac_i in $ac_cv_f90libs; do |
5043 |
< |
if test x"$ac_arg" = x"$ac_i"; then |
5044 |
< |
ac_exists=true |
5045 |
< |
break |
5046 |
< |
fi |
5047 |
< |
done |
5048 |
< |
|
5049 |
< |
if test x"$ac_exists" = xtrue; then |
5050 |
< |
: |
5051 |
< |
else |
5052 |
< |
ac_cv_f90libs="$ac_cv_f90libs $ac_arg" |
5053 |
< |
fi |
5054 |
< |
|
5055 |
< |
;; |
5056 |
< |
# Ignore everything else. |
5057 |
< |
esac |
5058 |
< |
done |
5059 |
< |
# restore positional arguments |
5060 |
< |
set X $ac_save_positional; shift |
5061 |
< |
|
5062 |
< |
# We only consider "LD_RUN_PATH" on Solaris systems. If this is seen, |
5063 |
< |
# then we insist that the "run path" must be an absolute path (i.e. it |
5064 |
< |
# must begin with a "/"). |
5065 |
< |
case `(uname -sr) 2>/dev/null` in |
5066 |
< |
"SunOS 5"*) |
5067 |
< |
ac_ld_run_path=`echo $ac_f90_v_output | |
5068 |
< |
sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'` |
5069 |
< |
test "x$ac_ld_run_path" != x && |
5070 |
< |
|
5071 |
< |
if test "$ac_compiler_gnu" = yes; then |
5072 |
< |
for ac_link_opt in $ac_ld_run_path; do |
5073 |
< |
ac_cv_f90libs="$ac_cv_f90libs -Xlinker $ac_link_opt" |
5074 |
< |
done |
5075 |
< |
else |
5076 |
< |
ac_cv_f90libs="$ac_cv_f90libs $ac_ld_run_path" |
5077 |
< |
fi |
5078 |
< |
;; |
5079 |
< |
esac |
5080 |
< |
fi # test "x$F90LIBS" = "x" |
5081 |
< |
|
5082 |
< |
fi |
5083 |
< |
echo "$as_me:$LINENO: result: $ac_cv_flibs" >&5 |
5084 |
< |
echo "${ECHO_T}$ac_cv_flibs" >&6 |
5085 |
< |
F90LIBS="$ac_cv_f90libs" |
5086 |
< |
|
5087 |
< |
ac_ext=f90 |
5088 |
< |
ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5' |
5089 |
< |
ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
5090 |
< |
ac_compiler_gnu=$ac_cv_f90_compiler_gnu |
5091 |
< |
|
5092 |
< |
echo "$as_me:$LINENO: checking for Fortran 90 name-mangling scheme" >&5 |
5093 |
< |
echo $ECHO_N "checking for Fortran 90 name-mangling scheme... $ECHO_C" >&6 |
5094 |
< |
if test "${ac_cv_f90_mangling+set}" = set; then |
5095 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
5096 |
< |
else |
5097 |
< |
ac_ext=f90 |
5098 |
< |
ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5' |
5099 |
< |
ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
5100 |
< |
ac_compiler_gnu=$ac_cv_f90_compiler_gnu |
5101 |
< |
cat >conftest.$ac_ext <<_ACEOF |
5102 |
< |
subroutine foobar() |
5103 |
< |
return |
5104 |
< |
end |
5105 |
< |
subroutine foo_bar() |
5106 |
< |
return |
5107 |
< |
end |
5108 |
< |
_ACEOF |
5109 |
< |
rm -f conftest.$ac_objext |
5110 |
< |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
5111 |
< |
(eval $ac_compile) 2>&5 |
5112 |
< |
ac_status=$? |
5113 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5114 |
< |
(exit $ac_status); } && |
5115 |
< |
{ ac_try='test -s conftest.$ac_objext' |
5116 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5117 |
< |
(eval $ac_try) 2>&5 |
5118 |
< |
ac_status=$? |
5119 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5120 |
< |
(exit $ac_status); }; }; then |
5121 |
< |
mv conftest.$ac_objext cf90_test.$ac_objext |
5122 |
< |
|
5123 |
< |
ac_ext=c |
5124 |
< |
ac_cpp='$CPP $CPPFLAGS' |
5125 |
< |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
5126 |
< |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
5127 |
< |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
5128 |
< |
|
5129 |
< |
ac_save_LIBS=$LIBS |
5130 |
< |
LIBS="cf90_test.$ac_objext $F90LIBS $LIBS" |
5131 |
< |
|
5132 |
< |
ac_success=no |
5133 |
< |
for ac_foobar in foobar FOOBAR; do |
5134 |
< |
for ac_underscore in "" "_"; do |
5135 |
< |
ac_func="$ac_foobar$ac_underscore" |
5136 |
< |
cat >conftest.$ac_ext <<_ACEOF |
5137 |
< |
#line $LINENO "configure" |
5138 |
< |
/* confdefs.h. */ |
5139 |
< |
_ACEOF |
5140 |
< |
cat confdefs.h >>conftest.$ac_ext |
5141 |
< |
cat >>conftest.$ac_ext <<_ACEOF |
5142 |
< |
/* end confdefs.h. */ |
5143 |
< |
|
5144 |
< |
/* Override any gcc2 internal prototype to avoid an error. */ |
5145 |
< |
#ifdef __cplusplus |
5146 |
< |
extern "C" |
5147 |
< |
#endif |
5148 |
< |
/* We use char because int might match the return type of a gcc2 |
5149 |
< |
builtin and then its argument prototype would still apply. */ |
5150 |
< |
char $ac_func (); |
5151 |
< |
int |
5152 |
< |
main () |
5153 |
< |
{ |
5154 |
< |
$ac_func (); |
5155 |
< |
; |
5156 |
< |
return 0; |
5157 |
< |
} |
5158 |
< |
_ACEOF |
5159 |
< |
rm -f conftest.$ac_objext conftest$ac_exeext |
5160 |
< |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
5161 |
< |
(eval $ac_link) 2>&5 |
5162 |
< |
ac_status=$? |
5163 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5164 |
< |
(exit $ac_status); } && |
5165 |
< |
{ ac_try='test -s conftest$ac_exeext' |
5166 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5167 |
< |
(eval $ac_try) 2>&5 |
5168 |
< |
ac_status=$? |
5169 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5170 |
< |
(exit $ac_status); }; }; then |
5171 |
< |
ac_success=yes; break 2 |
5172 |
< |
else |
5173 |
< |
echo "$as_me: failed program was:" >&5 |
5174 |
< |
sed 's/^/| /' conftest.$ac_ext >&5 |
5175 |
< |
|
5176 |
< |
fi |
5177 |
< |
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
5178 |
< |
done |
5179 |
< |
done |
5180 |
< |
|
5181 |
< |
if test "$ac_success" = "yes"; then |
5182 |
< |
case $ac_foobar in |
5183 |
< |
foobar) |
5184 |
< |
ac_case=lower |
5185 |
< |
ac_foo_bar=foo_bar |
5186 |
< |
;; |
5187 |
< |
FOOBAR) |
5188 |
< |
ac_case=upper |
5189 |
< |
ac_foo_bar=FOO_BAR |
5190 |
< |
;; |
5191 |
< |
esac |
5192 |
< |
|
5193 |
< |
ac_success_extra=no |
5194 |
< |
for ac_extra in "" "_"; do |
5195 |
< |
ac_func="$ac_foo_bar$ac_underscore$ac_extra" |
5196 |
< |
|
5197 |
< |
cat >conftest.$ac_ext <<_ACEOF |
5198 |
< |
#line $LINENO "configure" |
5199 |
< |
/* confdefs.h. */ |
5200 |
< |
_ACEOF |
5201 |
< |
cat confdefs.h >>conftest.$ac_ext |
5202 |
< |
cat >>conftest.$ac_ext <<_ACEOF |
5203 |
< |
/* end confdefs.h. */ |
5204 |
< |
|
5205 |
< |
/* Override any gcc2 internal prototype to avoid an error. */ |
5206 |
< |
#ifdef __cplusplus |
5207 |
< |
extern "C" |
5208 |
< |
#endif |
5209 |
< |
/* We use char because int might match the return type of a gcc2 |
5210 |
< |
builtin and then its argument prototype would still apply. */ |
5211 |
< |
char $ac_func (); |
5212 |
< |
int |
5213 |
< |
main () |
5214 |
< |
{ |
5215 |
< |
$ac_func (); |
5216 |
< |
; |
5217 |
< |
return 0; |
5218 |
< |
} |
5219 |
< |
_ACEOF |
5220 |
< |
rm -f conftest.$ac_objext conftest$ac_exeext |
5221 |
< |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
5222 |
< |
(eval $ac_link) 2>&5 |
5223 |
< |
ac_status=$? |
5224 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5225 |
< |
(exit $ac_status); } && |
5226 |
< |
{ ac_try='test -s conftest$ac_exeext' |
5227 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5228 |
< |
(eval $ac_try) 2>&5 |
5229 |
< |
ac_status=$? |
5230 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5231 |
< |
(exit $ac_status); }; }; then |
5232 |
< |
ac_success_extra=yes; break |
5233 |
< |
else |
5234 |
< |
echo "$as_me: failed program was:" >&5 |
5235 |
< |
sed 's/^/| /' conftest.$ac_ext >&5 |
5236 |
< |
|
5237 |
< |
fi |
5238 |
< |
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
5239 |
< |
done |
5240 |
< |
|
5241 |
< |
if test "$ac_success_extra" = "yes"; then |
5242 |
< |
ac_cv_f90_mangling="$ac_case case" |
5243 |
< |
if test -z "$ac_underscore"; then |
5244 |
< |
ac_cv_f90_mangling="$ac_cv_f90_mangling, no underscore" |
5245 |
< |
else |
5246 |
< |
ac_cv_f90_mangling="$ac_cv_f90_mangling, underscore" |
5247 |
< |
|
5879 |
> |
if test -s conftest.out ; then |
5880 |
> |
cat conftest.out >> config.log |
5881 |
|
fi |
5882 |
< |
if test -z "$ac_extra"; then |
5883 |
< |
ac_cv_f90_mangling="$ac_cv_f90_mangling, no extra underscore" |
5884 |
< |
else |
5252 |
< |
ac_cv_f90_mangling="$ac_cv_f90_mangling, extra underscore" |
5253 |
< |
fi |
5254 |
< |
else |
5255 |
< |
ac_cv_f90_mangling="unknown" |
5256 |
< |
fi |
5257 |
< |
else |
5258 |
< |
ac_cv_f90_mangling="unknown" |
5259 |
< |
|
5260 |
< |
fi |
5261 |
< |
|
5262 |
< |
LIBS=$ac_save_LIBS |
5263 |
< |
ac_ext=f90 |
5264 |
< |
ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5' |
5265 |
< |
ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
5266 |
< |
ac_compiler_gnu=$ac_cv_f90_compiler_gnu |
5267 |
< |
rm -f cf90_test* conftest* |
5268 |
< |
else |
5269 |
< |
echo "$as_me: failed program was:" >&5 |
5270 |
< |
sed 's/^/| /' conftest.$ac_ext >&5 |
5271 |
< |
|
5882 |
> |
echo "$as_me:$LINENO: result: no! Check MPI include paths" >&5 |
5883 |
> |
echo "${ECHO_T}no! Check MPI include paths" >&6 |
5884 |
> |
USE_MPI="no" |
5885 |
|
fi |
5886 |
< |
rm -f conftest.$ac_objext conftest.$ac_ext |
5274 |
< |
ac_ext=f90 |
5275 |
< |
ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5' |
5276 |
< |
ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
5277 |
< |
ac_compiler_gnu=$ac_cv_f90_compiler_gnu |
5886 |
> |
rm -f conftest* |
5887 |
|
|
5888 |
< |
fi |
5280 |
< |
echo "$as_me:$LINENO: result: $ac_cv_f90_mangling" >&5 |
5281 |
< |
echo "${ECHO_T}$ac_cv_f90_mangling" >&6 |
5888 |
> |
if test "$have_mpif_h" = 1; then |
5889 |
|
|
5890 |
< |
|
5891 |
< |
|
5285 |
< |
case $ac_cv_f90_mangling in |
5286 |
< |
"lower case, no underscore, no extra underscore") |
5287 |
< |
cat >>confdefs.h <<\_ACEOF |
5288 |
< |
#define F90_FUNC(name,NAME) name |
5890 |
> |
cat >>confdefs.h <<\_ACEOF |
5891 |
> |
#define HAVE_MPIF_H 1 |
5892 |
|
_ACEOF |
5893 |
|
|
5894 |
< |
cat >>confdefs.h <<\_ACEOF |
5292 |
< |
#define F90_FUNC_(name,NAME) name |
5293 |
< |
_ACEOF |
5294 |
< |
;; |
5295 |
< |
"lower case, no underscore, extra underscore") |
5296 |
< |
cat >>confdefs.h <<\_ACEOF |
5297 |
< |
#define F90_FUNC(name,NAME) name |
5298 |
< |
_ACEOF |
5299 |
< |
|
5300 |
< |
cat >>confdefs.h <<\_ACEOF |
5301 |
< |
#define F90_FUNC_(name,NAME) name ## _ |
5302 |
< |
_ACEOF |
5303 |
< |
;; |
5304 |
< |
"lower case, underscore, no extra underscore") |
5305 |
< |
cat >>confdefs.h <<\_ACEOF |
5306 |
< |
#define F90_FUNC(name,NAME) name ## _ |
5307 |
< |
_ACEOF |
5308 |
< |
|
5309 |
< |
cat >>confdefs.h <<\_ACEOF |
5310 |
< |
#define F90_FUNC_(name,NAME) name ## _ |
5311 |
< |
_ACEOF |
5312 |
< |
;; |
5313 |
< |
"lower case, underscore, extra underscore") |
5314 |
< |
cat >>confdefs.h <<\_ACEOF |
5315 |
< |
#define F90_FUNC(name,NAME) name ## _ |
5316 |
< |
_ACEOF |
5317 |
< |
|
5318 |
< |
cat >>confdefs.h <<\_ACEOF |
5319 |
< |
#define F90_FUNC_(name,NAME) name ## __ |
5320 |
< |
_ACEOF |
5321 |
< |
;; |
5322 |
< |
"upper case, no underscore, no extra underscore") |
5323 |
< |
cat >>confdefs.h <<\_ACEOF |
5324 |
< |
#define F90_FUNC(name,NAME) NAME |
5325 |
< |
_ACEOF |
5326 |
< |
|
5327 |
< |
cat >>confdefs.h <<\_ACEOF |
5328 |
< |
#define F90_FUNC_(name,NAME) NAME |
5329 |
< |
_ACEOF |
5330 |
< |
;; |
5331 |
< |
"upper case, no underscore, extra underscore") |
5332 |
< |
cat >>confdefs.h <<\_ACEOF |
5333 |
< |
#define F90_FUNC(name,NAME) NAME |
5334 |
< |
_ACEOF |
5335 |
< |
|
5336 |
< |
cat >>confdefs.h <<\_ACEOF |
5337 |
< |
#define F90_FUNC_(name,NAME) NAME ## _ |
5338 |
< |
_ACEOF |
5339 |
< |
;; |
5340 |
< |
"upper case, underscore, no extra underscore") |
5341 |
< |
cat >>confdefs.h <<\_ACEOF |
5342 |
< |
#define F90_FUNC(name,NAME) NAME ## _ |
5343 |
< |
_ACEOF |
5344 |
< |
|
5345 |
< |
cat >>confdefs.h <<\_ACEOF |
5346 |
< |
#define F90_FUNC_(name,NAME) NAME ## _ |
5347 |
< |
_ACEOF |
5348 |
< |
;; |
5349 |
< |
"upper case, underscore, extra underscore") |
5350 |
< |
cat >>confdefs.h <<\_ACEOF |
5351 |
< |
#define F90_FUNC(name,NAME) NAME ## _ |
5352 |
< |
_ACEOF |
5353 |
< |
|
5354 |
< |
cat >>confdefs.h <<\_ACEOF |
5355 |
< |
#define F90_FUNC_(name,NAME) NAME ## __ |
5356 |
< |
_ACEOF |
5357 |
< |
;; |
5358 |
< |
*) |
5359 |
< |
{ echo "$as_me:$LINENO: WARNING: unknown Fortran 90 name-mangling scheme" >&5 |
5360 |
< |
echo "$as_me: WARNING: unknown Fortran 90 name-mangling scheme" >&2;} |
5361 |
< |
;; |
5362 |
< |
esac |
5363 |
< |
|
5364 |
< |
|
5365 |
< |
|
5366 |
< |
|
5367 |
< |
echo "$as_me:$LINENO: checking for mpi-directory" >&5 |
5368 |
< |
echo $ECHO_N "checking for mpi-directory... $ECHO_C" >&6 |
5369 |
< |
|
5370 |
< |
# Check whether --with-MPI_DIR or --without-MPI_DIR was given. |
5371 |
< |
if test "${with_MPI_DIR+set}" = set; then |
5372 |
< |
withval="$with_MPI_DIR" |
5373 |
< |
MPI_DIR="$withval" |
5374 |
< |
else |
5375 |
< |
MPI_DIR="/usr/local" |
5376 |
< |
fi; |
5377 |
< |
echo "$as_me:$LINENO: result: $MPI_DIR" >&5 |
5378 |
< |
echo "${ECHO_T}$MPI_DIR" >&6 |
5379 |
< |
|
5380 |
< |
|
5381 |
< |
echo "$as_me:$LINENO: checking for mpi-lib-directory" >&5 |
5382 |
< |
echo $ECHO_N "checking for mpi-lib-directory... $ECHO_C" >&6 |
5383 |
< |
|
5384 |
< |
# Check whether --with-MPI_LIBDIR or --without-MPI_LIBDIR was given. |
5385 |
< |
if test "${with_MPI_LIBDIR+set}" = set; then |
5386 |
< |
withval="$with_MPI_LIBDIR" |
5387 |
< |
MPI_LIBDIR="$withval" |
5388 |
< |
else |
5389 |
< |
MPI_LIBDIR="$MPI_DIR/lib" |
5390 |
< |
fi; |
5391 |
< |
echo "$as_me:$LINENO: result: $MPI_LIBDIR" >&5 |
5392 |
< |
echo "${ECHO_T}$MPI_LIBDIR" >&6 |
5393 |
< |
|
5394 |
< |
|
5395 |
< |
echo "$as_me:$LINENO: checking for mpi-inc-directory" >&5 |
5396 |
< |
echo $ECHO_N "checking for mpi-inc-directory... $ECHO_C" >&6 |
5397 |
< |
|
5398 |
< |
# Check whether --with-MPI_INC or --without-MPI_INC was given. |
5399 |
< |
if test "${with_MPI_INC+set}" = set; then |
5400 |
< |
withval="$with_MPI_INC" |
5401 |
< |
MPI_INC="$withval" |
5402 |
< |
else |
5403 |
< |
MPI_INC="$MPI_DIR/include" |
5404 |
< |
fi; |
5405 |
< |
echo "$as_me:$LINENO: result: $MPI_INC" >&5 |
5406 |
< |
echo "${ECHO_T}$MPI_INC" >&6 |
5407 |
< |
|
5408 |
< |
|
5409 |
< |
|
5410 |
< |
echo "$as_me:$LINENO: checking for MPI library" >&5 |
5411 |
< |
echo $ECHO_N "checking for MPI library... $ECHO_C" >&6 |
5412 |
< |
MPI_LIB="" |
5413 |
< |
case "$host" in |
5414 |
< |
*-ibm-aix*) |
5415 |
< |
echo "$as_me:$LINENO: checking whether to use signal-based MPI library" >&5 |
5416 |
< |
echo $ECHO_N "checking whether to use signal-based MPI library... $ECHO_C" >&6 |
5417 |
< |
echo "$as_me:$LINENO: result: $PACX_SIGNAL" >&5 |
5418 |
< |
echo "${ECHO_T}$PACX_SIGNAL" >&6 |
5419 |
< |
if test "x$PACX_SIGNAL" = "xyes" ; then |
5420 |
< |
if test -f "$MPI_LIBDIR/libmpi.a" ; then |
5421 |
< |
MPI_LIB="-lmpi" |
5422 |
< |
elif test -f "$MPI_LIBDIR/libmpi.so" ; then |
5423 |
< |
MPI_LIB="-lmpi" |
5424 |
< |
elif test -f "$MPI_LIBDIR/libmpich.a" ; then |
5425 |
< |
MPI_LIB="-lmpich" |
5426 |
< |
else |
5427 |
< |
{ { echo "$as_me:$LINENO: error: neither libmpi nor libmpich found; check path for MPI package first..." >&5 |
5428 |
< |
echo "$as_me: error: neither libmpi nor libmpich found; check path for MPI package first..." >&2;} |
5429 |
< |
{ (exit 1); exit 1; }; } |
5430 |
< |
fi |
5431 |
< |
else |
5432 |
< |
if test -f "$MPI_LIBDIR/libmpi_r.a" ; then |
5433 |
< |
MPI_LIB="-lmpi_r" |
5434 |
< |
else |
5435 |
< |
{ { echo "$as_me:$LINENO: error: libmpi_r not found; check path for MPI package..." >&5 |
5436 |
< |
echo "$as_me: error: libmpi_r not found; check path for MPI package..." >&2;} |
5437 |
< |
{ (exit 1); exit 1; }; } |
5438 |
< |
fi |
5439 |
< |
fi |
5440 |
< |
echo "$as_me:$LINENO: result: found $MPI_LIB" >&5 |
5441 |
< |
echo "${ECHO_T}found $MPI_LIB" >&6 |
5442 |
< |
;; |
5443 |
< |
*) if test -f "$MPI_LIBDIR/libmpi.a" ; then |
5444 |
< |
MPI_LIB="-lmpi" |
5445 |
< |
elif test -f "$MPI_LIBDIR/libmpi.so" ; then |
5446 |
< |
MPI_LIB="-lmpi" |
5447 |
< |
elif test -f "$MPI_LIBDIR/libmpich.a" ; then |
5448 |
< |
MPI_LIB="-lmpich" |
5449 |
< |
else |
5450 |
< |
{ { echo "$as_me:$LINENO: error: neither libmpi nor libmpich found; check path for MPI package first..." >&5 |
5451 |
< |
echo "$as_me: error: neither libmpi nor libmpich found; check path for MPI package first..." >&2;} |
5452 |
< |
{ (exit 1); exit 1; }; } |
5453 |
< |
fi |
5454 |
< |
echo "$as_me:$LINENO: result: found $MPI_LIB" >&5 |
5455 |
< |
echo "${ECHO_T}found $MPI_LIB" >&6 |
5456 |
< |
;; |
5457 |
< |
esac |
5458 |
< |
|
5894 |
> |
fi |
5895 |
|
|
5896 |
+ |
ac_ext=c |
5897 |
+ |
ac_cpp='$CPP $CPPFLAGS' |
5898 |
+ |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
5899 |
+ |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
5900 |
+ |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
5901 |
|
|
5902 |
+ |
ac_save_LDFLAGS=$LDFLAGS |
5903 |
+ |
LDFLAGS="${LDFLAGS} -L${MPI_LIB_DIR} " |
5904 |
|
|
5905 |
< |
|
5906 |
< |
|
5907 |
< |
|
5908 |
< |
for ac_prog in mpif90 hf90 mpxlf90 mpf90 mpxlf95 mpxlf_r |
5466 |
< |
do |
5467 |
< |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
5468 |
< |
set dummy $ac_prog; ac_word=$2 |
5469 |
< |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5470 |
< |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
5471 |
< |
if test "${ac_cv_prog_MPIF90+set}" = set; then |
5905 |
> |
if test x = x"$MPI_LIB"; then |
5906 |
> |
echo "$as_me:$LINENO: checking for MPI_Init in -lmpi" >&5 |
5907 |
> |
echo $ECHO_N "checking for MPI_Init in -lmpi... $ECHO_C" >&6 |
5908 |
> |
if test "${ac_cv_lib_mpi_MPI_Init+set}" = set; then |
5909 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
5910 |
|
else |
5911 |
< |
if test -n "$MPIF90"; then |
5912 |
< |
ac_cv_prog_MPIF90="$MPIF90" # Let the user override the test. |
5911 |
> |
ac_check_lib_save_LIBS=$LIBS |
5912 |
> |
LIBS="-lmpi $LIBS" |
5913 |
> |
cat >conftest.$ac_ext <<_ACEOF |
5914 |
> |
/* confdefs.h. */ |
5915 |
> |
_ACEOF |
5916 |
> |
cat confdefs.h >>conftest.$ac_ext |
5917 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
5918 |
> |
/* end confdefs.h. */ |
5919 |
> |
|
5920 |
> |
/* Override any gcc2 internal prototype to avoid an error. */ |
5921 |
> |
#ifdef __cplusplus |
5922 |
> |
extern "C" |
5923 |
> |
#endif |
5924 |
> |
/* We use char because int might match the return type of a gcc2 |
5925 |
> |
builtin and then its argument prototype would still apply. */ |
5926 |
> |
char MPI_Init (); |
5927 |
> |
int |
5928 |
> |
main () |
5929 |
> |
{ |
5930 |
> |
MPI_Init (); |
5931 |
> |
; |
5932 |
> |
return 0; |
5933 |
> |
} |
5934 |
> |
_ACEOF |
5935 |
> |
rm -f conftest.$ac_objext conftest$ac_exeext |
5936 |
> |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
5937 |
> |
(eval $ac_link) 2>conftest.er1 |
5938 |
> |
ac_status=$? |
5939 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
5940 |
> |
rm -f conftest.er1 |
5941 |
> |
cat conftest.err >&5 |
5942 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5943 |
> |
(exit $ac_status); } && |
5944 |
> |
{ ac_try='test -z "$ac_c_werror_flag" |
5945 |
> |
|| test ! -s conftest.err' |
5946 |
> |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5947 |
> |
(eval $ac_try) 2>&5 |
5948 |
> |
ac_status=$? |
5949 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5950 |
> |
(exit $ac_status); }; } && |
5951 |
> |
{ ac_try='test -s conftest$ac_exeext' |
5952 |
> |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5953 |
> |
(eval $ac_try) 2>&5 |
5954 |
> |
ac_status=$? |
5955 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5956 |
> |
(exit $ac_status); }; }; then |
5957 |
> |
ac_cv_lib_mpi_MPI_Init=yes |
5958 |
|
else |
5959 |
< |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5960 |
< |
for as_dir in $PATH |
5479 |
< |
do |
5480 |
< |
IFS=$as_save_IFS |
5481 |
< |
test -z "$as_dir" && as_dir=. |
5482 |
< |
for ac_exec_ext in '' $ac_executable_extensions; do |
5483 |
< |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
5484 |
< |
ac_cv_prog_MPIF90="$ac_prog" |
5485 |
< |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5486 |
< |
break 2 |
5487 |
< |
fi |
5488 |
< |
done |
5489 |
< |
done |
5959 |
> |
echo "$as_me: failed program was:" >&5 |
5960 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
5961 |
|
|
5962 |
+ |
ac_cv_lib_mpi_MPI_Init=no |
5963 |
|
fi |
5964 |
+ |
rm -f conftest.err conftest.$ac_objext \ |
5965 |
+ |
conftest$ac_exeext conftest.$ac_ext |
5966 |
+ |
LIBS=$ac_check_lib_save_LIBS |
5967 |
|
fi |
5968 |
< |
MPIF90=$ac_cv_prog_MPIF90 |
5969 |
< |
if test -n "$MPIF90"; then |
5970 |
< |
echo "$as_me:$LINENO: result: $MPIF90" >&5 |
5971 |
< |
echo "${ECHO_T}$MPIF90" >&6 |
5497 |
< |
else |
5498 |
< |
echo "$as_me:$LINENO: result: no" >&5 |
5499 |
< |
echo "${ECHO_T}no" >&6 |
5968 |
> |
echo "$as_me:$LINENO: result: $ac_cv_lib_mpi_MPI_Init" >&5 |
5969 |
> |
echo "${ECHO_T}$ac_cv_lib_mpi_MPI_Init" >&6 |
5970 |
> |
if test $ac_cv_lib_mpi_MPI_Init = yes; then |
5971 |
> |
MPI_LIB="-lmpi" |
5972 |
|
fi |
5973 |
|
|
5974 |
< |
test -n "$MPIF90" && break |
5975 |
< |
done |
5976 |
< |
test -n "$MPIF90" || MPIF90="$F90" |
5974 |
> |
fi |
5975 |
> |
if test x = x"$MPI_LIB"; then |
5976 |
> |
echo "$as_me:$LINENO: checking for MPI_Init in -lmpich" >&5 |
5977 |
> |
echo $ECHO_N "checking for MPI_Init in -lmpich... $ECHO_C" >&6 |
5978 |
> |
if test "${ac_cv_lib_mpich_MPI_Init+set}" = set; then |
5979 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
5980 |
> |
else |
5981 |
> |
ac_check_lib_save_LIBS=$LIBS |
5982 |
> |
LIBS="-lmpich $LIBS" |
5983 |
> |
cat >conftest.$ac_ext <<_ACEOF |
5984 |
> |
/* confdefs.h. */ |
5985 |
> |
_ACEOF |
5986 |
> |
cat confdefs.h >>conftest.$ac_ext |
5987 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
5988 |
> |
/* end confdefs.h. */ |
5989 |
|
|
5990 |
< |
acx_mpi_save_F90="$F90" |
5991 |
< |
F90="$MPIF90" |
5992 |
< |
|
5993 |
< |
|
5994 |
< |
|
5995 |
< |
if test x = x"$MPILIBS"; then |
5996 |
< |
echo "$as_me:$LINENO: checking for MPI_Init" >&5 |
5997 |
< |
echo $ECHO_N "checking for MPI_Init... $ECHO_C" >&6 |
5998 |
< |
cat >conftest.$ac_ext <<_ACEOF |
5999 |
< |
|
6000 |
< |
program main |
6001 |
< |
|
6002 |
< |
call MPI_Init |
6003 |
< |
end program main |
5520 |
< |
|
5990 |
> |
/* Override any gcc2 internal prototype to avoid an error. */ |
5991 |
> |
#ifdef __cplusplus |
5992 |
> |
extern "C" |
5993 |
> |
#endif |
5994 |
> |
/* We use char because int might match the return type of a gcc2 |
5995 |
> |
builtin and then its argument prototype would still apply. */ |
5996 |
> |
char MPI_Init (); |
5997 |
> |
int |
5998 |
> |
main () |
5999 |
> |
{ |
6000 |
> |
MPI_Init (); |
6001 |
> |
; |
6002 |
> |
return 0; |
6003 |
> |
} |
6004 |
|
_ACEOF |
6005 |
|
rm -f conftest.$ac_objext conftest$ac_exeext |
6006 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
6007 |
< |
(eval $ac_link) 2>&5 |
6007 |
> |
(eval $ac_link) 2>conftest.er1 |
6008 |
|
ac_status=$? |
6009 |
+ |
grep -v '^ *+' conftest.er1 >conftest.err |
6010 |
+ |
rm -f conftest.er1 |
6011 |
+ |
cat conftest.err >&5 |
6012 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6013 |
|
(exit $ac_status); } && |
6014 |
< |
{ ac_try='test -s conftest$ac_exeext' |
6014 |
> |
{ ac_try='test -z "$ac_c_werror_flag" |
6015 |
> |
|| test ! -s conftest.err' |
6016 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6017 |
|
(eval $ac_try) 2>&5 |
6018 |
|
ac_status=$? |
6019 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6020 |
+ |
(exit $ac_status); }; } && |
6021 |
+ |
{ ac_try='test -s conftest$ac_exeext' |
6022 |
+ |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6023 |
+ |
(eval $ac_try) 2>&5 |
6024 |
+ |
ac_status=$? |
6025 |
+ |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6026 |
|
(exit $ac_status); }; }; then |
6027 |
< |
MPILIBS=" " |
5535 |
< |
echo "$as_me:$LINENO: result: yes" >&5 |
5536 |
< |
echo "${ECHO_T}yes" >&6 |
6027 |
> |
ac_cv_lib_mpich_MPI_Init=yes |
6028 |
|
else |
6029 |
|
echo "$as_me: failed program was:" >&5 |
6030 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
6031 |
|
|
6032 |
< |
echo "$as_me:$LINENO: result: no" >&5 |
5542 |
< |
echo "${ECHO_T}no" >&6 |
6032 |
> |
ac_cv_lib_mpich_MPI_Init=no |
6033 |
|
fi |
6034 |
< |
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
6034 |
> |
rm -f conftest.err conftest.$ac_objext \ |
6035 |
> |
conftest$ac_exeext conftest.$ac_ext |
6036 |
> |
LIBS=$ac_check_lib_save_LIBS |
6037 |
|
fi |
6038 |
< |
if test x = x"$MPILIBS"; then |
6038 |
> |
echo "$as_me:$LINENO: result: $ac_cv_lib_mpich_MPI_Init" >&5 |
6039 |
> |
echo "${ECHO_T}$ac_cv_lib_mpich_MPI_Init" >&6 |
6040 |
> |
if test $ac_cv_lib_mpich_MPI_Init = yes; then |
6041 |
> |
MPI_LIB="-lmpich" |
6042 |
> |
fi |
6043 |
> |
|
6044 |
> |
fi |
6045 |
> |
$as_unset ac_cv_lib_mpi_MPI_Init |
6046 |
> |
if test x = x"$MPI_LIB"; then |
6047 |
|
echo "$as_me:$LINENO: checking for MPI_Init in -lmpi" >&5 |
6048 |
|
echo $ECHO_N "checking for MPI_Init in -lmpi... $ECHO_C" >&6 |
6049 |
|
if test "${ac_cv_lib_mpi_MPI_Init+set}" = set; then |
6050 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
6051 |
|
else |
6052 |
|
ac_check_lib_save_LIBS=$LIBS |
6053 |
< |
LIBS="-lmpi $LIBS" |
6053 |
> |
LIBS="-lmpi "-llam" $LIBS" |
6054 |
|
cat >conftest.$ac_ext <<_ACEOF |
6055 |
+ |
/* confdefs.h. */ |
6056 |
+ |
_ACEOF |
6057 |
+ |
cat confdefs.h >>conftest.$ac_ext |
6058 |
+ |
cat >>conftest.$ac_ext <<_ACEOF |
6059 |
+ |
/* end confdefs.h. */ |
6060 |
|
|
6061 |
< |
program main |
6062 |
< |
|
6063 |
< |
call MPI_Init |
6064 |
< |
end program main |
6065 |
< |
|
6061 |
> |
/* Override any gcc2 internal prototype to avoid an error. */ |
6062 |
> |
#ifdef __cplusplus |
6063 |
> |
extern "C" |
6064 |
> |
#endif |
6065 |
> |
/* We use char because int might match the return type of a gcc2 |
6066 |
> |
builtin and then its argument prototype would still apply. */ |
6067 |
> |
char MPI_Init (); |
6068 |
> |
int |
6069 |
> |
main () |
6070 |
> |
{ |
6071 |
> |
MPI_Init (); |
6072 |
> |
; |
6073 |
> |
return 0; |
6074 |
> |
} |
6075 |
|
_ACEOF |
6076 |
|
rm -f conftest.$ac_objext conftest$ac_exeext |
6077 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
6078 |
< |
(eval $ac_link) 2>&5 |
6078 |
> |
(eval $ac_link) 2>conftest.er1 |
6079 |
|
ac_status=$? |
6080 |
+ |
grep -v '^ *+' conftest.er1 >conftest.err |
6081 |
+ |
rm -f conftest.er1 |
6082 |
+ |
cat conftest.err >&5 |
6083 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6084 |
|
(exit $ac_status); } && |
6085 |
< |
{ ac_try='test -s conftest$ac_exeext' |
6085 |
> |
{ ac_try='test -z "$ac_c_werror_flag" |
6086 |
> |
|| test ! -s conftest.err' |
6087 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6088 |
|
(eval $ac_try) 2>&5 |
6089 |
|
ac_status=$? |
6090 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6091 |
+ |
(exit $ac_status); }; } && |
6092 |
+ |
{ ac_try='test -s conftest$ac_exeext' |
6093 |
+ |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6094 |
+ |
(eval $ac_try) 2>&5 |
6095 |
+ |
ac_status=$? |
6096 |
+ |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6097 |
|
(exit $ac_status); }; }; then |
6098 |
|
ac_cv_lib_mpi_MPI_Init=yes |
6099 |
|
else |
6102 |
|
|
6103 |
|
ac_cv_lib_mpi_MPI_Init=no |
6104 |
|
fi |
6105 |
< |
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
6105 |
> |
rm -f conftest.err conftest.$ac_objext \ |
6106 |
> |
conftest$ac_exeext conftest.$ac_ext |
6107 |
|
LIBS=$ac_check_lib_save_LIBS |
6108 |
|
fi |
6109 |
|
echo "$as_me:$LINENO: result: $ac_cv_lib_mpi_MPI_Init" >&5 |
6110 |
|
echo "${ECHO_T}$ac_cv_lib_mpi_MPI_Init" >&6 |
6111 |
|
if test $ac_cv_lib_mpi_MPI_Init = yes; then |
6112 |
< |
MPILIBS="-lmpi" |
6112 |
> |
MPI_LIB="-lmpi -llam" |
6113 |
|
fi |
6114 |
|
|
6115 |
|
fi |
6116 |
< |
if test x = x"$MPILIBS"; then |
6117 |
< |
echo "$as_me:$LINENO: checking for MPI_Init in -lmpich" >&5 |
6118 |
< |
echo $ECHO_N "checking for MPI_Init in -lmpich... $ECHO_C" >&6 |
6119 |
< |
if test "${ac_cv_lib_mpich_MPI_Init+set}" = set; then |
6116 |
> |
|
6117 |
> |
$as_unset ac_cv_lib_mpi_MPI_Init |
6118 |
> |
if test x = x"$MPI_LIB"; then |
6119 |
> |
echo "$as_me:$LINENO: checking for MPI_Init in -lmpi" >&5 |
6120 |
> |
echo $ECHO_N "checking for MPI_Init in -lmpi... $ECHO_C" >&6 |
6121 |
> |
if test "${ac_cv_lib_mpi_MPI_Init+set}" = set; then |
6122 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
6123 |
|
else |
6124 |
|
ac_check_lib_save_LIBS=$LIBS |
6125 |
< |
LIBS="-lmpich $LIBS" |
6125 |
> |
LIBS="-lmpi -llam -lpthread $LIBS" |
6126 |
|
cat >conftest.$ac_ext <<_ACEOF |
6127 |
+ |
/* confdefs.h. */ |
6128 |
+ |
_ACEOF |
6129 |
+ |
cat confdefs.h >>conftest.$ac_ext |
6130 |
+ |
cat >>conftest.$ac_ext <<_ACEOF |
6131 |
+ |
/* end confdefs.h. */ |
6132 |
|
|
6133 |
< |
program main |
6134 |
< |
|
6135 |
< |
call MPI_Init |
6136 |
< |
end program main |
6137 |
< |
|
6133 |
> |
/* Override any gcc2 internal prototype to avoid an error. */ |
6134 |
> |
#ifdef __cplusplus |
6135 |
> |
extern "C" |
6136 |
> |
#endif |
6137 |
> |
/* We use char because int might match the return type of a gcc2 |
6138 |
> |
builtin and then its argument prototype would still apply. */ |
6139 |
> |
char MPI_Init (); |
6140 |
> |
int |
6141 |
> |
main () |
6142 |
> |
{ |
6143 |
> |
MPI_Init (); |
6144 |
> |
; |
6145 |
> |
return 0; |
6146 |
> |
} |
6147 |
|
_ACEOF |
6148 |
|
rm -f conftest.$ac_objext conftest$ac_exeext |
6149 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
6150 |
< |
(eval $ac_link) 2>&5 |
6150 |
> |
(eval $ac_link) 2>conftest.er1 |
6151 |
|
ac_status=$? |
6152 |
+ |
grep -v '^ *+' conftest.er1 >conftest.err |
6153 |
+ |
rm -f conftest.er1 |
6154 |
+ |
cat conftest.err >&5 |
6155 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6156 |
|
(exit $ac_status); } && |
6157 |
< |
{ ac_try='test -s conftest$ac_exeext' |
6157 |
> |
{ ac_try='test -z "$ac_c_werror_flag" |
6158 |
> |
|| test ! -s conftest.err' |
6159 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6160 |
|
(eval $ac_try) 2>&5 |
6161 |
|
ac_status=$? |
6162 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6163 |
+ |
(exit $ac_status); }; } && |
6164 |
+ |
{ ac_try='test -s conftest$ac_exeext' |
6165 |
+ |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6166 |
+ |
(eval $ac_try) 2>&5 |
6167 |
+ |
ac_status=$? |
6168 |
+ |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6169 |
|
(exit $ac_status); }; }; then |
6170 |
< |
ac_cv_lib_mpich_MPI_Init=yes |
6170 |
> |
ac_cv_lib_mpi_MPI_Init=yes |
6171 |
|
else |
6172 |
|
echo "$as_me: failed program was:" >&5 |
6173 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
6174 |
|
|
6175 |
< |
ac_cv_lib_mpich_MPI_Init=no |
6175 |
> |
ac_cv_lib_mpi_MPI_Init=no |
6176 |
|
fi |
6177 |
< |
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
6177 |
> |
rm -f conftest.err conftest.$ac_objext \ |
6178 |
> |
conftest$ac_exeext conftest.$ac_ext |
6179 |
|
LIBS=$ac_check_lib_save_LIBS |
6180 |
|
fi |
6181 |
< |
echo "$as_me:$LINENO: result: $ac_cv_lib_mpich_MPI_Init" >&5 |
6182 |
< |
echo "${ECHO_T}$ac_cv_lib_mpich_MPI_Init" >&6 |
6183 |
< |
if test $ac_cv_lib_mpich_MPI_Init = yes; then |
6184 |
< |
MPILIBS="-lmpich" |
6181 |
> |
echo "$as_me:$LINENO: result: $ac_cv_lib_mpi_MPI_Init" >&5 |
6182 |
> |
echo "${ECHO_T}$ac_cv_lib_mpi_MPI_Init" >&6 |
6183 |
> |
if test $ac_cv_lib_mpi_MPI_Init = yes; then |
6184 |
> |
MPI_LIB="-lmpi -llam -lpthread" |
6185 |
> |
else |
6186 |
> |
|
6187 |
> |
{ { echo "$as_me:$LINENO: error: Didn't find liblam, libmpi, or libmpich; check path for MPI package first..." >&5 |
6188 |
> |
echo "$as_me: error: Didn't find liblam, libmpi, or libmpich; check path for MPI package first..." >&2;} |
6189 |
> |
{ (exit 1); exit 1; }; } |
6190 |
> |
USE_MPI="no" |
6191 |
> |
|
6192 |
|
fi |
6193 |
|
|
6194 |
|
fi |
6195 |
|
|
6196 |
|
|
6197 |
|
|
6198 |
< |
F90="$acx_mpi_save_F90" |
6199 |
< |
|
6200 |
< |
|
6201 |
< |
|
6202 |
< |
# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: |
6203 |
< |
if test x = x"$MPILIBS"; then |
6204 |
< |
|
5646 |
< |
: |
6198 |
> |
echo "$as_me:$LINENO: checking for MPI Fortran library" >&5 |
6199 |
> |
echo $ECHO_N "checking for MPI Fortran library... $ECHO_C" >&6 |
6200 |
> |
MPI_F90_LIB="" |
6201 |
> |
if test -f "$MPI_LIB_DIR/libfmpich.a" ; then |
6202 |
> |
MPI_F90_LIB="-lfmpich" |
6203 |
> |
elif test -f "$MPI_LIB_DIR/liblamf77mpi.a" ; then |
6204 |
> |
MPI_F90_LIB="-llamf77mpi" |
6205 |
|
else |
6206 |
+ |
MPI_F90_LIB=" " |
6207 |
+ |
fi |
6208 |
+ |
echo "$as_me:$LINENO: result: found $MPI_F90_LIB" >&5 |
6209 |
+ |
echo "${ECHO_T}found $MPI_F90_LIB" >&6 |
6210 |
|
|
5649 |
– |
cat >>confdefs.h <<\_ACEOF |
5650 |
– |
#define HAVE_MPI 1 |
5651 |
– |
_ACEOF |
6211 |
|
|
5653 |
– |
: |
6212 |
|
fi |
6213 |
|
|
6214 |
|
|
6215 |
+ |
|
6216 |
|
ac_ext=c |
6217 |
|
ac_cpp='$CPP $CPPFLAGS' |
6218 |
|
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
6241 |
|
# On the NeXT, cc -E runs the code through the compiler's parser, |
6242 |
|
# not just through cpp. "Syntax error" is here to catch this case. |
6243 |
|
cat >conftest.$ac_ext <<_ACEOF |
5685 |
– |
#line $LINENO "configure" |
6244 |
|
/* confdefs.h. */ |
6245 |
|
_ACEOF |
6246 |
|
cat confdefs.h >>conftest.$ac_ext |
6251 |
|
#else |
6252 |
|
# include <assert.h> |
6253 |
|
#endif |
6254 |
< |
Syntax error |
6254 |
> |
Syntax error |
6255 |
|
_ACEOF |
6256 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
6257 |
|
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
6263 |
|
(exit $ac_status); } >/dev/null; then |
6264 |
|
if test -s conftest.err; then |
6265 |
|
ac_cpp_err=$ac_c_preproc_warn_flag |
6266 |
+ |
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
6267 |
|
else |
6268 |
|
ac_cpp_err= |
6269 |
|
fi |
6284 |
|
# OK, works on sane cases. Now check whether non-existent headers |
6285 |
|
# can be detected and how. |
6286 |
|
cat >conftest.$ac_ext <<_ACEOF |
5728 |
– |
#line $LINENO "configure" |
6287 |
|
/* confdefs.h. */ |
6288 |
|
_ACEOF |
6289 |
|
cat confdefs.h >>conftest.$ac_ext |
6301 |
|
(exit $ac_status); } >/dev/null; then |
6302 |
|
if test -s conftest.err; then |
6303 |
|
ac_cpp_err=$ac_c_preproc_warn_flag |
6304 |
+ |
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
6305 |
|
else |
6306 |
|
ac_cpp_err= |
6307 |
|
fi |
6348 |
|
# On the NeXT, cc -E runs the code through the compiler's parser, |
6349 |
|
# not just through cpp. "Syntax error" is here to catch this case. |
6350 |
|
cat >conftest.$ac_ext <<_ACEOF |
5792 |
– |
#line $LINENO "configure" |
6351 |
|
/* confdefs.h. */ |
6352 |
|
_ACEOF |
6353 |
|
cat confdefs.h >>conftest.$ac_ext |
6358 |
|
#else |
6359 |
|
# include <assert.h> |
6360 |
|
#endif |
6361 |
< |
Syntax error |
6361 |
> |
Syntax error |
6362 |
|
_ACEOF |
6363 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
6364 |
|
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
6370 |
|
(exit $ac_status); } >/dev/null; then |
6371 |
|
if test -s conftest.err; then |
6372 |
|
ac_cpp_err=$ac_c_preproc_warn_flag |
6373 |
+ |
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
6374 |
|
else |
6375 |
|
ac_cpp_err= |
6376 |
|
fi |
6391 |
|
# OK, works on sane cases. Now check whether non-existent headers |
6392 |
|
# can be detected and how. |
6393 |
|
cat >conftest.$ac_ext <<_ACEOF |
5835 |
– |
#line $LINENO "configure" |
6394 |
|
/* confdefs.h. */ |
6395 |
|
_ACEOF |
6396 |
|
cat confdefs.h >>conftest.$ac_ext |
6408 |
|
(exit $ac_status); } >/dev/null; then |
6409 |
|
if test -s conftest.err; then |
6410 |
|
ac_cpp_err=$ac_c_preproc_warn_flag |
6411 |
+ |
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
6412 |
|
else |
6413 |
|
ac_cpp_err= |
6414 |
|
fi |
6469 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
6470 |
|
else |
6471 |
|
cat >conftest.$ac_ext <<_ACEOF |
5913 |
– |
#line $LINENO "configure" |
6472 |
|
/* confdefs.h. */ |
6473 |
|
_ACEOF |
6474 |
|
cat confdefs.h >>conftest.$ac_ext |
6489 |
|
_ACEOF |
6490 |
|
rm -f conftest.$ac_objext |
6491 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
6492 |
< |
(eval $ac_compile) 2>&5 |
6492 |
> |
(eval $ac_compile) 2>conftest.er1 |
6493 |
|
ac_status=$? |
6494 |
+ |
grep -v '^ *+' conftest.er1 >conftest.err |
6495 |
+ |
rm -f conftest.er1 |
6496 |
+ |
cat conftest.err >&5 |
6497 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6498 |
|
(exit $ac_status); } && |
6499 |
< |
{ ac_try='test -s conftest.$ac_objext' |
6499 |
> |
{ ac_try='test -z "$ac_c_werror_flag" |
6500 |
> |
|| test ! -s conftest.err' |
6501 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6502 |
|
(eval $ac_try) 2>&5 |
6503 |
|
ac_status=$? |
6504 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6505 |
+ |
(exit $ac_status); }; } && |
6506 |
+ |
{ ac_try='test -s conftest.$ac_objext' |
6507 |
+ |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6508 |
+ |
(eval $ac_try) 2>&5 |
6509 |
+ |
ac_status=$? |
6510 |
+ |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6511 |
|
(exit $ac_status); }; }; then |
6512 |
|
ac_cv_header_stdc=yes |
6513 |
|
else |
6516 |
|
|
6517 |
|
ac_cv_header_stdc=no |
6518 |
|
fi |
6519 |
< |
rm -f conftest.$ac_objext conftest.$ac_ext |
6519 |
> |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
6520 |
|
|
6521 |
|
if test $ac_cv_header_stdc = yes; then |
6522 |
|
# SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
6523 |
|
cat >conftest.$ac_ext <<_ACEOF |
5956 |
– |
#line $LINENO "configure" |
6524 |
|
/* confdefs.h. */ |
6525 |
|
_ACEOF |
6526 |
|
cat confdefs.h >>conftest.$ac_ext |
6542 |
|
if test $ac_cv_header_stdc = yes; then |
6543 |
|
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
6544 |
|
cat >conftest.$ac_ext <<_ACEOF |
5978 |
– |
#line $LINENO "configure" |
6545 |
|
/* confdefs.h. */ |
6546 |
|
_ACEOF |
6547 |
|
cat confdefs.h >>conftest.$ac_ext |
6566 |
|
: |
6567 |
|
else |
6568 |
|
cat >conftest.$ac_ext <<_ACEOF |
6003 |
– |
#line $LINENO "configure" |
6569 |
|
/* confdefs.h. */ |
6570 |
|
_ACEOF |
6571 |
|
cat confdefs.h >>conftest.$ac_ext |
6577 |
|
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
6578 |
|
#else |
6579 |
|
# define ISLOWER(c) \ |
6580 |
< |
(('a' <= (c) && (c) <= 'i') \ |
6581 |
< |
|| ('j' <= (c) && (c) <= 'r') \ |
6582 |
< |
|| ('s' <= (c) && (c) <= 'z')) |
6580 |
> |
(('a' <= (c) && (c) <= 'i') \ |
6581 |
> |
|| ('j' <= (c) && (c) <= 'r') \ |
6582 |
> |
|| ('s' <= (c) && (c) <= 'z')) |
6583 |
|
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
6584 |
|
#endif |
6585 |
|
|
6590 |
|
int i; |
6591 |
|
for (i = 0; i < 256; i++) |
6592 |
|
if (XOR (islower (i), ISLOWER (i)) |
6593 |
< |
|| toupper (i) != TOUPPER (i)) |
6593 |
> |
|| toupper (i) != TOUPPER (i)) |
6594 |
|
exit(2); |
6595 |
|
exit (0); |
6596 |
|
} |
6615 |
|
( exit $ac_status ) |
6616 |
|
ac_cv_header_stdc=no |
6617 |
|
fi |
6618 |
< |
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
6618 |
> |
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
6619 |
|
fi |
6620 |
|
fi |
6621 |
|
fi |
6640 |
|
|
6641 |
|
|
6642 |
|
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
6643 |
< |
inttypes.h stdint.h unistd.h |
6643 |
> |
inttypes.h stdint.h unistd.h |
6644 |
|
do |
6645 |
|
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
6646 |
|
echo "$as_me:$LINENO: checking for $ac_header" >&5 |
6649 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
6650 |
|
else |
6651 |
|
cat >conftest.$ac_ext <<_ACEOF |
6087 |
– |
#line $LINENO "configure" |
6652 |
|
/* confdefs.h. */ |
6653 |
|
_ACEOF |
6654 |
|
cat confdefs.h >>conftest.$ac_ext |
6660 |
|
_ACEOF |
6661 |
|
rm -f conftest.$ac_objext |
6662 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
6663 |
< |
(eval $ac_compile) 2>&5 |
6663 |
> |
(eval $ac_compile) 2>conftest.er1 |
6664 |
|
ac_status=$? |
6665 |
+ |
grep -v '^ *+' conftest.er1 >conftest.err |
6666 |
+ |
rm -f conftest.er1 |
6667 |
+ |
cat conftest.err >&5 |
6668 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6669 |
|
(exit $ac_status); } && |
6670 |
< |
{ ac_try='test -s conftest.$ac_objext' |
6670 |
> |
{ ac_try='test -z "$ac_c_werror_flag" |
6671 |
> |
|| test ! -s conftest.err' |
6672 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6673 |
|
(eval $ac_try) 2>&5 |
6674 |
|
ac_status=$? |
6675 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6676 |
+ |
(exit $ac_status); }; } && |
6677 |
+ |
{ ac_try='test -s conftest.$ac_objext' |
6678 |
+ |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6679 |
+ |
(eval $ac_try) 2>&5 |
6680 |
+ |
ac_status=$? |
6681 |
+ |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6682 |
|
(exit $ac_status); }; }; then |
6683 |
|
eval "$as_ac_Header=yes" |
6684 |
|
else |
6687 |
|
|
6688 |
|
eval "$as_ac_Header=no" |
6689 |
|
fi |
6690 |
< |
rm -f conftest.$ac_objext conftest.$ac_ext |
6690 |
> |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
6691 |
|
fi |
6692 |
|
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
6693 |
|
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
6704 |
|
|
6705 |
|
|
6706 |
|
|
6707 |
< |
# Check whether --with-sprng-prefix or --without-sprng-prefix was given. |
6707 |
> |
# Check whether --with-sprng_prefix or --without-sprng_prefix was given. |
6708 |
|
if test "${with_sprng_prefix+set}" = set; then |
6709 |
|
withval="$with_sprng_prefix" |
6710 |
|
sprng_prefix="$withval" |
6712 |
|
sprng_prefix="/usr/local" |
6713 |
|
fi; |
6714 |
|
|
6715 |
< |
# Check whether --with-sprng-lib-prefix or --without-sprng-lib-prefix was given. |
6716 |
< |
if test "${with_sprng_lib_prefix+set}" = set; then |
6717 |
< |
withval="$with_sprng_lib_prefix" |
6718 |
< |
sprng_lib_prefix="$withval" |
6715 |
> |
# Check whether --with-sprng-libdir or --without-sprng-libdir was given. |
6716 |
> |
if test "${with_sprng_libdir+set}" = set; then |
6717 |
> |
withval="$with_sprng_libdir" |
6718 |
> |
sprng_libdir="$withval" |
6719 |
|
else |
6720 |
< |
sprng_lib_prefix="/usr/local/lib" |
6720 |
> |
sprng_libdir="/usr/local/lib" |
6721 |
|
fi; |
6722 |
|
|
6723 |
< |
# Check whether --with-sprng-include-prefix or --without-sprng-include-prefix was given. |
6724 |
< |
if test "${with_sprng_include_prefix+set}" = set; then |
6725 |
< |
withval="$with_sprng_include_prefix" |
6726 |
< |
sprng_include_prefix="$withval" |
6723 |
> |
# Check whether --with-sprng-include or --without-sprng-include was given. |
6724 |
> |
if test "${with_sprng_include+set}" = set; then |
6725 |
> |
withval="$with_sprng_include" |
6726 |
> |
sprng_include="$withval" |
6727 |
|
else |
6728 |
< |
sprng_include_prefix="/usr/local/include/sprng" |
6728 |
> |
sprng_include="/usr/local/include/sprng" |
6729 |
|
fi; |
6730 |
|
|
6731 |
< |
if test x$sprng_lib_prefix = x ; then |
6732 |
< |
sprng_lib_prefix=${sprng_prefix}/lib |
6731 |
> |
if test x$sprng_libdir = x ; then |
6732 |
> |
sprng_libdir=${sprng_prefix}/lib |
6733 |
|
fi |
6734 |
|
|
6735 |
< |
if test x$sprng_include_prefix = x ; then |
6736 |
< |
sprng_include_prefix=${sprng_prefix}/include |
6735 |
> |
if test x$sprng_include = x ; then |
6736 |
> |
sprng_include=${sprng_prefix}/include |
6737 |
|
fi |
6738 |
|
|
6739 |
< |
echo "$as_me:$LINENO: checking for SPRNG include files in $sprng_include_prefix" >&5 |
6740 |
< |
echo $ECHO_N "checking for SPRNG include files in $sprng_include_prefix... $ECHO_C" >&6 |
6741 |
< |
if test -f ${sprng_include_prefix}/sprng.h; then |
6739 |
> |
echo "$as_me:$LINENO: checking for SPRNG include files in $sprng_include" >&5 |
6740 |
> |
echo $ECHO_N "checking for SPRNG include files in $sprng_include... $ECHO_C" >&6 |
6741 |
> |
if test -f ${sprng_include}/sprng.h; then |
6742 |
|
have_sprngincl=yes |
6743 |
|
echo "$as_me:$LINENO: result: yes" >&5 |
6744 |
|
echo "${ECHO_T}yes" >&6 |
6751 |
|
{ (exit 1); exit 1; }; } |
6752 |
|
fi |
6753 |
|
|
6754 |
< |
echo "$as_me:$LINENO: checking for SPRNG libraries in $sprng_lib_prefix" >&5 |
6755 |
< |
echo $ECHO_N "checking for SPRNG libraries in $sprng_lib_prefix... $ECHO_C" >&6 |
6756 |
< |
if test -f ${sprng_lib_prefix}/libsprng.a; then |
6754 |
> |
echo "$as_me:$LINENO: checking for SPRNG libraries in $sprng_libdir" >&5 |
6755 |
> |
echo $ECHO_N "checking for SPRNG libraries in $sprng_libdir... $ECHO_C" >&6 |
6756 |
> |
if test -f ${sprng_libdir}/libsprng.a; then |
6757 |
|
have_sprnglib=yes |
6758 |
|
echo "$as_me:$LINENO: result: yes" >&5 |
6759 |
|
echo "${ECHO_T}yes" >&6 |
6775 |
|
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
6776 |
|
|
6777 |
|
ac_save_CPPFLAGS=$CPPFLAGS |
6778 |
< |
CPPFLAGS="${CPPFLAGS} -I${sprng_include_prefix}" |
6778 |
> |
CPPFLAGS="${CPPFLAGS} -I${sprng_include}" |
6779 |
|
ac_save_LDFLAGS=$LDFLAGS |
6780 |
< |
LDFLAGS="${LDFLAGS} -L${sprng_lib_prefix} -lsprng" |
6780 |
> |
LDFLAGS="${LDFLAGS} -L${sprng_libdir} -lsprng" |
6781 |
|
if test "${ac_cv_header_sprng_h+set}" = set; then |
6782 |
|
echo "$as_me:$LINENO: checking for sprng.h" >&5 |
6783 |
|
echo $ECHO_N "checking for sprng.h... $ECHO_C" >&6 |
6791 |
|
echo "$as_me:$LINENO: checking sprng.h usability" >&5 |
6792 |
|
echo $ECHO_N "checking sprng.h usability... $ECHO_C" >&6 |
6793 |
|
cat >conftest.$ac_ext <<_ACEOF |
6220 |
– |
#line $LINENO "configure" |
6794 |
|
/* confdefs.h. */ |
6795 |
|
_ACEOF |
6796 |
|
cat confdefs.h >>conftest.$ac_ext |
6801 |
|
_ACEOF |
6802 |
|
rm -f conftest.$ac_objext |
6803 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
6804 |
< |
(eval $ac_compile) 2>&5 |
6804 |
> |
(eval $ac_compile) 2>conftest.er1 |
6805 |
|
ac_status=$? |
6806 |
+ |
grep -v '^ *+' conftest.er1 >conftest.err |
6807 |
+ |
rm -f conftest.er1 |
6808 |
+ |
cat conftest.err >&5 |
6809 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6810 |
|
(exit $ac_status); } && |
6811 |
< |
{ ac_try='test -s conftest.$ac_objext' |
6811 |
> |
{ ac_try='test -z "$ac_c_werror_flag" |
6812 |
> |
|| test ! -s conftest.err' |
6813 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6814 |
|
(eval $ac_try) 2>&5 |
6815 |
|
ac_status=$? |
6816 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6817 |
+ |
(exit $ac_status); }; } && |
6818 |
+ |
{ ac_try='test -s conftest.$ac_objext' |
6819 |
+ |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6820 |
+ |
(eval $ac_try) 2>&5 |
6821 |
+ |
ac_status=$? |
6822 |
+ |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6823 |
|
(exit $ac_status); }; }; then |
6824 |
|
ac_header_compiler=yes |
6825 |
|
else |
6828 |
|
|
6829 |
|
ac_header_compiler=no |
6830 |
|
fi |
6831 |
< |
rm -f conftest.$ac_objext conftest.$ac_ext |
6831 |
> |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
6832 |
|
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
6833 |
|
echo "${ECHO_T}$ac_header_compiler" >&6 |
6834 |
|
|
6836 |
|
echo "$as_me:$LINENO: checking sprng.h presence" >&5 |
6837 |
|
echo $ECHO_N "checking sprng.h presence... $ECHO_C" >&6 |
6838 |
|
cat >conftest.$ac_ext <<_ACEOF |
6256 |
– |
#line $LINENO "configure" |
6839 |
|
/* confdefs.h. */ |
6840 |
|
_ACEOF |
6841 |
|
cat confdefs.h >>conftest.$ac_ext |
6853 |
|
(exit $ac_status); } >/dev/null; then |
6854 |
|
if test -s conftest.err; then |
6855 |
|
ac_cpp_err=$ac_c_preproc_warn_flag |
6856 |
+ |
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
6857 |
|
else |
6858 |
|
ac_cpp_err= |
6859 |
|
fi |
6873 |
|
echo "${ECHO_T}$ac_header_preproc" >&6 |
6874 |
|
|
6875 |
|
# So? What about this header? |
6876 |
< |
case $ac_header_compiler:$ac_header_preproc in |
6877 |
< |
yes:no ) |
6876 |
> |
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
6877 |
> |
yes:no: ) |
6878 |
|
{ echo "$as_me:$LINENO: WARNING: sprng.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
6879 |
|
echo "$as_me: WARNING: sprng.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
6880 |
< |
{ echo "$as_me:$LINENO: WARNING: sprng.h: proceeding with the preprocessor's result" >&5 |
6881 |
< |
echo "$as_me: WARNING: sprng.h: proceeding with the preprocessor's result" >&2;} |
6882 |
< |
( |
6300 |
< |
cat <<\_ASBOX |
6301 |
< |
## ------------------------------------ ## |
6302 |
< |
## Report this to bug-autoconf@gnu.org. ## |
6303 |
< |
## ------------------------------------ ## |
6304 |
< |
_ASBOX |
6305 |
< |
) | |
6306 |
< |
sed "s/^/$as_me: WARNING: /" >&2 |
6880 |
> |
{ echo "$as_me:$LINENO: WARNING: sprng.h: proceeding with the compiler's result" >&5 |
6881 |
> |
echo "$as_me: WARNING: sprng.h: proceeding with the compiler's result" >&2;} |
6882 |
> |
ac_header_preproc=yes |
6883 |
|
;; |
6884 |
< |
no:yes ) |
6884 |
> |
no:yes:* ) |
6885 |
|
{ echo "$as_me:$LINENO: WARNING: sprng.h: present but cannot be compiled" >&5 |
6886 |
|
echo "$as_me: WARNING: sprng.h: present but cannot be compiled" >&2;} |
6887 |
< |
{ echo "$as_me:$LINENO: WARNING: sprng.h: check for missing prerequisite headers?" >&5 |
6888 |
< |
echo "$as_me: WARNING: sprng.h: check for missing prerequisite headers?" >&2;} |
6887 |
> |
{ echo "$as_me:$LINENO: WARNING: sprng.h: check for missing prerequisite headers?" >&5 |
6888 |
> |
echo "$as_me: WARNING: sprng.h: check for missing prerequisite headers?" >&2;} |
6889 |
> |
{ echo "$as_me:$LINENO: WARNING: sprng.h: see the Autoconf documentation" >&5 |
6890 |
> |
echo "$as_me: WARNING: sprng.h: see the Autoconf documentation" >&2;} |
6891 |
> |
{ echo "$as_me:$LINENO: WARNING: sprng.h: section \"Present But Cannot Be Compiled\"" >&5 |
6892 |
> |
echo "$as_me: WARNING: sprng.h: section \"Present But Cannot Be Compiled\"" >&2;} |
6893 |
|
{ echo "$as_me:$LINENO: WARNING: sprng.h: proceeding with the preprocessor's result" >&5 |
6894 |
|
echo "$as_me: WARNING: sprng.h: proceeding with the preprocessor's result" >&2;} |
6895 |
+ |
{ echo "$as_me:$LINENO: WARNING: sprng.h: in the future, the compiler will take precedence" >&5 |
6896 |
+ |
echo "$as_me: WARNING: sprng.h: in the future, the compiler will take precedence" >&2;} |
6897 |
|
( |
6898 |
|
cat <<\_ASBOX |
6899 |
< |
## ------------------------------------ ## |
6900 |
< |
## Report this to bug-autoconf@gnu.org. ## |
6901 |
< |
## ------------------------------------ ## |
6899 |
> |
## ------------------------------ ## |
6900 |
> |
## Report this to gezelter@nd.edu ## |
6901 |
> |
## ------------------------------ ## |
6902 |
|
_ASBOX |
6903 |
|
) | |
6904 |
|
sed "s/^/$as_me: WARNING: /" >&2 |
6925 |
|
ac_check_lib_save_LIBS=$LIBS |
6926 |
|
LIBS="-lsprng $LIBS" |
6927 |
|
cat >conftest.$ac_ext <<_ACEOF |
6346 |
– |
#line $LINENO "configure" |
6928 |
|
/* confdefs.h. */ |
6929 |
|
_ACEOF |
6930 |
|
cat confdefs.h >>conftest.$ac_ext |
6948 |
|
_ACEOF |
6949 |
|
rm -f conftest.$ac_objext conftest$ac_exeext |
6950 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
6951 |
< |
(eval $ac_link) 2>&5 |
6951 |
> |
(eval $ac_link) 2>conftest.er1 |
6952 |
|
ac_status=$? |
6953 |
+ |
grep -v '^ *+' conftest.er1 >conftest.err |
6954 |
+ |
rm -f conftest.er1 |
6955 |
+ |
cat conftest.err >&5 |
6956 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6957 |
|
(exit $ac_status); } && |
6958 |
< |
{ ac_try='test -s conftest$ac_exeext' |
6958 |
> |
{ ac_try='test -z "$ac_c_werror_flag" |
6959 |
> |
|| test ! -s conftest.err' |
6960 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6961 |
|
(eval $ac_try) 2>&5 |
6962 |
|
ac_status=$? |
6963 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6964 |
+ |
(exit $ac_status); }; } && |
6965 |
+ |
{ ac_try='test -s conftest$ac_exeext' |
6966 |
+ |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6967 |
+ |
(eval $ac_try) 2>&5 |
6968 |
+ |
ac_status=$? |
6969 |
+ |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6970 |
|
(exit $ac_status); }; }; then |
6971 |
|
ac_cv_lib_sprng_init_rng=yes |
6972 |
|
else |
6975 |
|
|
6976 |
|
ac_cv_lib_sprng_init_rng=no |
6977 |
|
fi |
6978 |
< |
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
6978 |
> |
rm -f conftest.err conftest.$ac_objext \ |
6979 |
> |
conftest$ac_exeext conftest.$ac_ext |
6980 |
|
LIBS=$ac_check_lib_save_LIBS |
6981 |
|
fi |
6982 |
|
echo "$as_me:$LINENO: result: $ac_cv_lib_sprng_init_rng" >&5 |
6983 |
|
echo "${ECHO_T}$ac_cv_lib_sprng_init_rng" >&6 |
6984 |
|
if test $ac_cv_lib_sprng_init_rng = yes; then |
6985 |
< |
SPRNG_LIBDIR="${sprng_lib_prefix}" |
6986 |
< |
SPRNG_LIB="-lsprng" SPRNG_INC="-I${sprng_include_prefix}" |
6985 |
> |
SPRNG_LIBDIR="${sprng_libdir}" |
6986 |
> |
SPRNG_LIB="-lsprng" SPRNG_INC="-I${sprng_include}" |
6987 |
|
HAVE_SPRNG="yes" |
6988 |
|
fi |
6989 |
|
|
6992 |
|
|
6993 |
|
CPPFLAGS=$ac_save_CPPFLAGS |
6994 |
|
LDFLAGS=$ac_save_LDFLAGS |
6995 |
< |
ac_ext=f90 |
6996 |
< |
ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5' |
6997 |
< |
ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
6998 |
< |
ac_compiler_gnu=$ac_cv_f90_compiler_gnu |
6995 |
> |
ac_ext=c |
6996 |
> |
ac_cpp='$CPP $CPPFLAGS' |
6997 |
> |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
6998 |
> |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
6999 |
> |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
7000 |
|
|
7001 |
|
|
7002 |
|
if test x_$HAVE_SPRNG != x_yes; then |
7017 |
|
withval="$with_mkl" |
7018 |
|
echo "$as_me:$LINENO: result: yes" >&5 |
7019 |
|
echo "${ECHO_T}yes" >&6 |
7020 |
< |
for dir in $withval /usr/local/intel/mkl60 /opt/intel/mkl60; do |
7020 |
> |
for dir in $withval /usr/local/intel/mkl61 /opt/intel/mkl61; do |
7021 |
|
mkldir="$dir" |
7022 |
|
if test -f "$dir/include/mkl.h"; then |
7023 |
|
found_mkl="yes"; |
7057 |
|
echo "$as_me:$LINENO: checking mkl.h usability" >&5 |
7058 |
|
echo $ECHO_N "checking mkl.h usability... $ECHO_C" >&6 |
7059 |
|
cat >conftest.$ac_ext <<_ACEOF |
6467 |
– |
#line $LINENO "configure" |
7060 |
|
/* confdefs.h. */ |
7061 |
|
_ACEOF |
7062 |
|
cat confdefs.h >>conftest.$ac_ext |
7067 |
|
_ACEOF |
7068 |
|
rm -f conftest.$ac_objext |
7069 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
7070 |
< |
(eval $ac_compile) 2>&5 |
7070 |
> |
(eval $ac_compile) 2>conftest.er1 |
7071 |
|
ac_status=$? |
7072 |
+ |
grep -v '^ *+' conftest.er1 >conftest.err |
7073 |
+ |
rm -f conftest.er1 |
7074 |
+ |
cat conftest.err >&5 |
7075 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7076 |
|
(exit $ac_status); } && |
7077 |
< |
{ ac_try='test -s conftest.$ac_objext' |
7077 |
> |
{ ac_try='test -z "$ac_c_werror_flag" |
7078 |
> |
|| test ! -s conftest.err' |
7079 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7080 |
|
(eval $ac_try) 2>&5 |
7081 |
|
ac_status=$? |
7082 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7083 |
+ |
(exit $ac_status); }; } && |
7084 |
+ |
{ ac_try='test -s conftest.$ac_objext' |
7085 |
+ |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7086 |
+ |
(eval $ac_try) 2>&5 |
7087 |
+ |
ac_status=$? |
7088 |
+ |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7089 |
|
(exit $ac_status); }; }; then |
7090 |
|
ac_header_compiler=yes |
7091 |
|
else |
7094 |
|
|
7095 |
|
ac_header_compiler=no |
7096 |
|
fi |
7097 |
< |
rm -f conftest.$ac_objext conftest.$ac_ext |
7097 |
> |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
7098 |
|
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
7099 |
|
echo "${ECHO_T}$ac_header_compiler" >&6 |
7100 |
|
|
7102 |
|
echo "$as_me:$LINENO: checking mkl.h presence" >&5 |
7103 |
|
echo $ECHO_N "checking mkl.h presence... $ECHO_C" >&6 |
7104 |
|
cat >conftest.$ac_ext <<_ACEOF |
6503 |
– |
#line $LINENO "configure" |
7105 |
|
/* confdefs.h. */ |
7106 |
|
_ACEOF |
7107 |
|
cat confdefs.h >>conftest.$ac_ext |
7119 |
|
(exit $ac_status); } >/dev/null; then |
7120 |
|
if test -s conftest.err; then |
7121 |
|
ac_cpp_err=$ac_c_preproc_warn_flag |
7122 |
+ |
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
7123 |
|
else |
7124 |
|
ac_cpp_err= |
7125 |
|
fi |
7139 |
|
echo "${ECHO_T}$ac_header_preproc" >&6 |
7140 |
|
|
7141 |
|
# So? What about this header? |
7142 |
< |
case $ac_header_compiler:$ac_header_preproc in |
7143 |
< |
yes:no ) |
7142 |
> |
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
7143 |
> |
yes:no: ) |
7144 |
|
{ echo "$as_me:$LINENO: WARNING: mkl.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
7145 |
|
echo "$as_me: WARNING: mkl.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
7146 |
< |
{ echo "$as_me:$LINENO: WARNING: mkl.h: proceeding with the preprocessor's result" >&5 |
7147 |
< |
echo "$as_me: WARNING: mkl.h: proceeding with the preprocessor's result" >&2;} |
7148 |
< |
( |
6547 |
< |
cat <<\_ASBOX |
6548 |
< |
## ------------------------------------ ## |
6549 |
< |
## Report this to bug-autoconf@gnu.org. ## |
6550 |
< |
## ------------------------------------ ## |
6551 |
< |
_ASBOX |
6552 |
< |
) | |
6553 |
< |
sed "s/^/$as_me: WARNING: /" >&2 |
7146 |
> |
{ echo "$as_me:$LINENO: WARNING: mkl.h: proceeding with the compiler's result" >&5 |
7147 |
> |
echo "$as_me: WARNING: mkl.h: proceeding with the compiler's result" >&2;} |
7148 |
> |
ac_header_preproc=yes |
7149 |
|
;; |
7150 |
< |
no:yes ) |
7150 |
> |
no:yes:* ) |
7151 |
|
{ echo "$as_me:$LINENO: WARNING: mkl.h: present but cannot be compiled" >&5 |
7152 |
|
echo "$as_me: WARNING: mkl.h: present but cannot be compiled" >&2;} |
7153 |
< |
{ echo "$as_me:$LINENO: WARNING: mkl.h: check for missing prerequisite headers?" >&5 |
7154 |
< |
echo "$as_me: WARNING: mkl.h: check for missing prerequisite headers?" >&2;} |
7153 |
> |
{ echo "$as_me:$LINENO: WARNING: mkl.h: check for missing prerequisite headers?" >&5 |
7154 |
> |
echo "$as_me: WARNING: mkl.h: check for missing prerequisite headers?" >&2;} |
7155 |
> |
{ echo "$as_me:$LINENO: WARNING: mkl.h: see the Autoconf documentation" >&5 |
7156 |
> |
echo "$as_me: WARNING: mkl.h: see the Autoconf documentation" >&2;} |
7157 |
> |
{ echo "$as_me:$LINENO: WARNING: mkl.h: section \"Present But Cannot Be Compiled\"" >&5 |
7158 |
> |
echo "$as_me: WARNING: mkl.h: section \"Present But Cannot Be Compiled\"" >&2;} |
7159 |
|
{ echo "$as_me:$LINENO: WARNING: mkl.h: proceeding with the preprocessor's result" >&5 |
7160 |
|
echo "$as_me: WARNING: mkl.h: proceeding with the preprocessor's result" >&2;} |
7161 |
+ |
{ echo "$as_me:$LINENO: WARNING: mkl.h: in the future, the compiler will take precedence" >&5 |
7162 |
+ |
echo "$as_me: WARNING: mkl.h: in the future, the compiler will take precedence" >&2;} |
7163 |
|
( |
7164 |
|
cat <<\_ASBOX |
7165 |
< |
## ------------------------------------ ## |
7166 |
< |
## Report this to bug-autoconf@gnu.org. ## |
7167 |
< |
## ------------------------------------ ## |
7165 |
> |
## ------------------------------ ## |
7166 |
> |
## Report this to gezelter@nd.edu ## |
7167 |
> |
## ------------------------------ ## |
7168 |
|
_ASBOX |
7169 |
|
) | |
7170 |
|
sed "s/^/$as_me: WARNING: /" >&2 |
7191 |
|
ac_check_lib_save_LIBS=$LIBS |
7192 |
|
LIBS="-lmkl $LIBS" |
7193 |
|
cat >conftest.$ac_ext <<_ACEOF |
6593 |
– |
#line $LINENO "configure" |
7194 |
|
/* confdefs.h. */ |
7195 |
|
_ACEOF |
7196 |
|
cat confdefs.h >>conftest.$ac_ext |
7214 |
|
_ACEOF |
7215 |
|
rm -f conftest.$ac_objext conftest$ac_exeext |
7216 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
7217 |
< |
(eval $ac_link) 2>&5 |
7217 |
> |
(eval $ac_link) 2>conftest.er1 |
7218 |
|
ac_status=$? |
7219 |
+ |
grep -v '^ *+' conftest.er1 >conftest.err |
7220 |
+ |
rm -f conftest.er1 |
7221 |
+ |
cat conftest.err >&5 |
7222 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7223 |
|
(exit $ac_status); } && |
7224 |
< |
{ ac_try='test -s conftest$ac_exeext' |
7224 |
> |
{ ac_try='test -z "$ac_c_werror_flag" |
7225 |
> |
|| test ! -s conftest.err' |
7226 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7227 |
|
(eval $ac_try) 2>&5 |
7228 |
|
ac_status=$? |
7229 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7230 |
+ |
(exit $ac_status); }; } && |
7231 |
+ |
{ ac_try='test -s conftest$ac_exeext' |
7232 |
+ |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7233 |
+ |
(eval $ac_try) 2>&5 |
7234 |
+ |
ac_status=$? |
7235 |
+ |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7236 |
|
(exit $ac_status); }; }; then |
7237 |
|
ac_cv_lib_mkl_vslNewStream=yes |
7238 |
|
else |
7241 |
|
|
7242 |
|
ac_cv_lib_mkl_vslNewStream=no |
7243 |
|
fi |
7244 |
< |
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
7244 |
> |
rm -f conftest.err conftest.$ac_objext \ |
7245 |
> |
conftest$ac_exeext conftest.$ac_ext |
7246 |
|
LIBS=$ac_check_lib_save_LIBS |
7247 |
|
fi |
7248 |
|
echo "$as_me:$LINENO: result: $ac_cv_lib_mkl_vslNewStream" >&5 |
7261 |
|
|
7262 |
|
CPPFLAGS=$ac_save_CPPFLAGS |
7263 |
|
LDFLAGS=$ac_save_LDFLAGS |
7264 |
< |
ac_ext=f90 |
7265 |
< |
ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5' |
7266 |
< |
ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
7267 |
< |
ac_compiler_gnu=$ac_cv_f90_compiler_gnu |
7264 |
> |
ac_ext=c |
7265 |
> |
ac_cpp='$CPP $CPPFLAGS' |
7266 |
> |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
7267 |
> |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
7268 |
> |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
7269 |
|
|
7270 |
|
|
7271 |
|
if test x_$HAVE_MKL != x_yes; then |
7288 |
|
|
7289 |
|
|
7290 |
|
|
6679 |
– |
# Check whether --with-mpi_f90_mods or --without-mpi_f90_mods was given. |
6680 |
– |
if test "${with_mpi_f90_mods+set}" = set; then |
6681 |
– |
withval="$with_mpi_f90_mods" |
6682 |
– |
mpi_f90_mods="$withval" |
6683 |
– |
else |
6684 |
– |
mpi_f90_mods="/usr/local/include/f90choice" |
6685 |
– |
fi; |
7291 |
|
|
6687 |
– |
echo "$as_me:$LINENO: checking for MPI F90 modules" >&5 |
6688 |
– |
echo $ECHO_N "checking for MPI F90 modules... $ECHO_C" >&6 |
6689 |
– |
|
6690 |
– |
|
6691 |
– |
ac_ext=f90 |
6692 |
– |
ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5' |
6693 |
– |
ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
6694 |
– |
ac_compiler_gnu=$ac_cv_f90_compiler_gnu |
6695 |
– |
|
6696 |
– |
ac_save_F90FLAGS=$F90FLAGS |
6697 |
– |
if test "$mpi_f90_mods"; then |
6698 |
– |
F90FLAGS="${F90FLAGS} -I${mpi_f90_mods}" |
6699 |
– |
fi |
6700 |
– |
|
6701 |
– |
cat >conftest.$ac_ext <<_ACEOF |
6702 |
– |
|
6703 |
– |
|
6704 |
– |
program main |
6705 |
– |
|
6706 |
– |
use mpi |
6707 |
– |
integer :: ierr |
6708 |
– |
call MPI_Init(ierr) |
6709 |
– |
|
6710 |
– |
|
6711 |
– |
end program main |
6712 |
– |
|
6713 |
– |
_ACEOF |
6714 |
– |
rm -f conftest.$ac_objext |
6715 |
– |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
6716 |
– |
(eval $ac_compile) 2>&5 |
6717 |
– |
ac_status=$? |
6718 |
– |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6719 |
– |
(exit $ac_status); } && |
6720 |
– |
{ ac_try='test -s conftest.$ac_objext' |
6721 |
– |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6722 |
– |
(eval $ac_try) 2>&5 |
6723 |
– |
ac_status=$? |
6724 |
– |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6725 |
– |
(exit $ac_status); }; }; then |
6726 |
– |
HAVE_MPI_MOD=1 |
6727 |
– |
else |
6728 |
– |
echo "$as_me: failed program was:" >&5 |
6729 |
– |
sed 's/^/| /' conftest.$ac_ext >&5 |
6730 |
– |
|
6731 |
– |
HAVE_MPI_MOD=0 |
6732 |
– |
fi |
6733 |
– |
rm -f conftest.$ac_objext conftest.$ac_ext |
6734 |
– |
|
6735 |
– |
F90FLAGS=$ac_save_F90FLAGS |
6736 |
– |
ac_ext=f90 |
6737 |
– |
ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5' |
6738 |
– |
ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
6739 |
– |
ac_compiler_gnu=$ac_cv_f90_compiler_gnu |
6740 |
– |
|
6741 |
– |
|
6742 |
– |
if test "$HAVE_MPI_MOD" = 1; then |
6743 |
– |
echo "$as_me:$LINENO: result: yes" >&5 |
6744 |
– |
echo "${ECHO_T}yes" >&6 |
6745 |
– |
|
6746 |
– |
cat >>confdefs.h <<\_ACEOF |
6747 |
– |
#define MPI_MOD 1 |
6748 |
– |
_ACEOF |
6749 |
– |
|
6750 |
– |
MPI_F90_MODS="-I${mpi_f90_mods}" |
6751 |
– |
|
6752 |
– |
else |
6753 |
– |
echo "$as_me:$LINENO: result: no" >&5 |
6754 |
– |
echo "${ECHO_T}no" >&6 |
6755 |
– |
{ { echo "$as_me:$LINENO: error: Couldn't locate MPI F90 Modules" >&5 |
6756 |
– |
echo "$as_me: error: Couldn't locate MPI F90 Modules" >&2;} |
6757 |
– |
{ (exit 1); exit 1; }; } |
6758 |
– |
fi |
6759 |
– |
|
6760 |
– |
|
6761 |
– |
|
6762 |
– |
case $F90 in |
6763 |
– |
ifc) fortran_machine_defs='Linux_ifc_machdep$(O)' ;; |
6764 |
– |
*) fortran_machine_defs='' ;; |
6765 |
– |
esac |
6766 |
– |
|
6767 |
– |
|
6768 |
– |
|
6769 |
– |
|
7292 |
|
OBJEXT=".$OBJEXT" |
7293 |
|
|
7294 |
|
OOPSE=oopse |
7312 |
|
|
7313 |
|
MKINSTALLDIRS=`pwd`/ac-tools/"shtool mkdir -p -f" |
7314 |
|
|
7315 |
< |
SUBDIRS="libBASS libmdtools src forceFields samples utils utils/sysbuilder" |
7315 |
> |
SUBDIRS="libBASS libmdtools src forceFields samples utils utils/sysbuilder staticProps third-party " |
7316 |
|
|
7317 |
< |
#CFLAGS=${CFLAGS-""} |
7318 |
< |
#CXXFLAGS=${CXXFLAGS-""} |
7319 |
< |
#CPPFLAGS=${CPPFLAGS-""} |
7320 |
< |
#FFLAGS=${FFLAGS-""} |
7321 |
< |
#LDFLAGS=${LDFLAGS-""} |
7322 |
< |
#OPTIMIZE=${OPTIMIZE-"-O"} |
7323 |
< |
#DEBUG=${DEBUG-"-g"} |
7317 |
> |
CFLAGS=${CFLAGS-""} |
7318 |
> |
CXXFLAGS=${CXXFLAGS-""} |
7319 |
> |
CPPFLAGS=${CPPFLAGS-""} |
7320 |
> |
FFLAGS=${FFLAGS-""} |
7321 |
> |
F90FLAGS=${F90FLAGS-""} |
7322 |
> |
LDFLAGS=${LDFLAGS-""} |
7323 |
> |
DEBUG=${DEBUG-"-g"} |
7324 |
|
|
7325 |
|
case $debug in |
7326 |
< |
true) |
6805 |
< |
CFLAGS="$DEBUG $CFLAGS" |
6806 |
< |
CXXFLAGS="$DEBUG $CXXFLAGS" |
7326 |
> |
1) |
7327 |
|
FFLAGS="$DEBUG $FFLAGS" |
7328 |
|
F90FLAGS="$DEBUG $F90FLAGS" |
7329 |
|
;; |
7330 |
|
*) |
6811 |
– |
CFLAGS="$OPTIMIZE $CFLAGS" |
6812 |
– |
CXXFLAGS="$OPTIMIZE $CXXFLAGS" |
6813 |
– |
FFLAGS="$OPTIMIZE $FFLAGS" |
6814 |
– |
F90FLAGS="$OPTIMIZE $F90FLAGS" |
7331 |
|
;; |
7332 |
|
esac |
7333 |
|
|
7347 |
|
|
7348 |
|
|
7349 |
|
|
7350 |
< |
ac_config_headers="$ac_config_headers libmdtools/config.h" |
7350 |
> |
ac_config_headers="$ac_config_headers libBASS/config.h libmdtools/config.h" |
7351 |
|
|
7352 |
< |
ac_config_files="$ac_config_files Makefile libBASS/Makefile libmdtools/Makefile src/Makefile utils/Makefile utils/sysbuilder/Makefile forceFields/Makefile samples/Makefile samples/alkane/Makefile samples/argon/Makefile samples/beadLipid/Makefile samples/lipid/Makefile samples/metals/Makefile samples/water/Makefile" |
7352 |
> |
ac_config_files="$ac_config_files Makefile libBASS/Makefile libmdtools/Makefile src/Makefile utils/Makefile utils/sysbuilder/Makefile forceFields/Makefile samples/Makefile staticProps/Makefile third-party/Makefile samples/alkane/Makefile samples/argon/Makefile samples/beadLipid/Makefile samples/lipid/Makefile samples/metals/Makefile samples/water/Makefile" |
7353 |
|
|
7354 |
|
|
7355 |
|
cat >confcache <<\_ACEOF |
7380 |
|
# `set' does not quote correctly, so add quotes (double-quote |
7381 |
|
# substitution turns \\\\ into \\, and sed turns \\ into \). |
7382 |
|
sed -n \ |
7383 |
< |
"s/'/'\\\\''/g; |
7384 |
< |
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
7383 |
> |
"s/'/'\\\\''/g; |
7384 |
> |
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
7385 |
|
;; |
7386 |
|
*) |
7387 |
|
# `set' quotes correctly as required by POSIX, so do not add quotes. |
7388 |
|
sed -n \ |
7389 |
< |
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
7389 |
> |
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
7390 |
|
;; |
7391 |
|
esac; |
7392 |
|
} | |
7416 |
|
# trailing colons and then remove the whole line if VPATH becomes empty |
7417 |
|
# (actually we leave an empty line to preserve line numbers). |
7418 |
|
if test "x$srcdir" = x.; then |
7419 |
< |
ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
7419 |
> |
ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
7420 |
|
s/:*\$(srcdir):*/:/; |
7421 |
|
s/:*\${srcdir}:*/:/; |
7422 |
|
s/:*@srcdir@:*/:/; |
7423 |
< |
s/^\([^=]*=[ ]*\):*/\1/; |
7423 |
> |
s/^\([^=]*=[ ]*\):*/\1/; |
7424 |
|
s/:*$//; |
7425 |
< |
s/^[^=]*=[ ]*$//; |
7425 |
> |
s/^[^=]*=[ ]*$//; |
7426 |
|
}' |
7427 |
|
fi |
7428 |
|
|
7433 |
|
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
7434 |
|
# 1. Remove the extension, and $U if already installed. |
7435 |
|
ac_i=`echo "$ac_i" | |
7436 |
< |
sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
7436 |
> |
sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
7437 |
|
# 2. Add them. |
7438 |
|
ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" |
7439 |
|
ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' |
7477 |
|
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
7478 |
|
set -o posix |
7479 |
|
fi |
7480 |
+ |
DUALCASE=1; export DUALCASE # for MKS sh |
7481 |
|
|
7482 |
|
# Support unset when possible. |
7483 |
< |
if (FOO=FOO; unset FOO) >/dev/null 2>&1; then |
7483 |
> |
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
7484 |
|
as_unset=unset |
7485 |
|
else |
7486 |
|
as_unset=false |
7499 |
|
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
7500 |
|
LC_TELEPHONE LC_TIME |
7501 |
|
do |
7502 |
< |
if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then |
7502 |
> |
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
7503 |
|
eval $as_var=C; export $as_var |
7504 |
|
else |
7505 |
|
$as_unset $as_var |
7678 |
|
if mkdir -p . 2>/dev/null; then |
7679 |
|
as_mkdir_p=: |
7680 |
|
else |
7681 |
+ |
test -d ./-p && rmdir ./-p |
7682 |
|
as_mkdir_p=false |
7683 |
|
fi |
7684 |
|
|
7685 |
|
as_executable_p="test -f" |
7686 |
|
|
7687 |
|
# Sed expression to map a string onto a valid CPP name. |
7688 |
< |
as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" |
7688 |
> |
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
7689 |
|
|
7690 |
|
# Sed expression to map a string onto a valid variable name. |
7691 |
< |
as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" |
7691 |
> |
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
7692 |
|
|
7693 |
|
|
7694 |
|
# IFS |
7715 |
|
cat >&5 <<_CSEOF |
7716 |
|
|
7717 |
|
This file was extended by OOPSE $as_me 1.0, which was |
7718 |
< |
generated by GNU Autoconf 2.57. Invocation command line was |
7718 |
> |
generated by GNU Autoconf 2.59. Invocation command line was |
7719 |
|
|
7720 |
|
CONFIG_FILES = $CONFIG_FILES |
7721 |
|
CONFIG_HEADERS = $CONFIG_HEADERS |
7759 |
|
-d, --debug don't remove temporary files |
7760 |
|
--recheck update $as_me by reconfiguring in the same conditions |
7761 |
|
--file=FILE[:TEMPLATE] |
7762 |
< |
instantiate the configuration file FILE |
7762 |
> |
instantiate the configuration file FILE |
7763 |
|
--header=FILE[:TEMPLATE] |
7764 |
< |
instantiate the configuration header FILE |
7764 |
> |
instantiate the configuration header FILE |
7765 |
|
|
7766 |
|
Configuration files: |
7767 |
|
$config_files |
7775 |
|
cat >>$CONFIG_STATUS <<_ACEOF |
7776 |
|
ac_cs_version="\\ |
7777 |
|
OOPSE config.status 1.0 |
7778 |
< |
configured by $0, generated by GNU Autoconf 2.57, |
7778 |
> |
configured by $0, generated by GNU Autoconf 2.59, |
7779 |
|
with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
7780 |
|
|
7781 |
< |
Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 |
7264 |
< |
Free Software Foundation, Inc. |
7781 |
> |
Copyright (C) 2003 Free Software Foundation, Inc. |
7782 |
|
This config.status script is free software; the Free Software Foundation |
7783 |
|
gives unlimited permission to copy, distribute and modify it." |
7784 |
|
srcdir=$srcdir |
7885 |
|
"utils/sysbuilder/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/sysbuilder/Makefile" ;; |
7886 |
|
"forceFields/Makefile" ) CONFIG_FILES="$CONFIG_FILES forceFields/Makefile" ;; |
7887 |
|
"samples/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/Makefile" ;; |
7888 |
+ |
"staticProps/Makefile" ) CONFIG_FILES="$CONFIG_FILES staticProps/Makefile" ;; |
7889 |
+ |
"third-party/Makefile" ) CONFIG_FILES="$CONFIG_FILES third-party/Makefile" ;; |
7890 |
|
"samples/alkane/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/alkane/Makefile" ;; |
7891 |
|
"samples/argon/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/argon/Makefile" ;; |
7892 |
|
"samples/beadLipid/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/beadLipid/Makefile" ;; |
7893 |
|
"samples/lipid/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/lipid/Makefile" ;; |
7894 |
|
"samples/metals/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/metals/Makefile" ;; |
7895 |
|
"samples/water/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/water/Makefile" ;; |
7896 |
+ |
"libBASS/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS libBASS/config.h" ;; |
7897 |
|
"libmdtools/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS libmdtools/config.h" ;; |
7898 |
|
*) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
7899 |
|
echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
7980 |
|
s,@ECHO_T@,$ECHO_T,;t t |
7981 |
|
s,@LIBS@,$LIBS,;t t |
7982 |
|
s,@PROGNAME@,$PROGNAME,;t t |
7983 |
< |
s,@DEBUG@,$DEBUG,;t t |
7983 |
> |
s,@debug@,$debug,;t t |
7984 |
|
s,@build@,$build,;t t |
7985 |
|
s,@build_cpu@,$build_cpu,;t t |
7986 |
|
s,@build_vendor@,$build_vendor,;t t |
7999 |
|
s,@CXX@,$CXX,;t t |
8000 |
|
s,@CXXFLAGS@,$CXXFLAGS,;t t |
8001 |
|
s,@ac_ct_CXX@,$ac_ct_CXX,;t t |
8002 |
+ |
s,@OOPSE_TEMPLATE_FLAGS@,$OOPSE_TEMPLATE_FLAGS,;t t |
8003 |
+ |
s,@EXTRA_CC_FLAG@,$EXTRA_CC_FLAG,;t t |
8004 |
|
s,@F90@,$F90,;t t |
8005 |
|
s,@F90FLAGS@,$F90FLAGS,;t t |
8006 |
|
s,@ac_ct_F90@,$ac_ct_F90,;t t |
8007 |
|
s,@PREPFLAG@,$PREPFLAG,;t t |
8008 |
|
s,@PREPDEFFLAG@,$PREPDEFFLAG,;t t |
8009 |
+ |
s,@F90LIBS@,$F90LIBS,;t t |
8010 |
+ |
s,@F90_FUNC@,$F90_FUNC,;t t |
8011 |
+ |
s,@F90_FUNC_@,$F90_FUNC_,;t t |
8012 |
+ |
s,@MOD@,$MOD,;t t |
8013 |
+ |
s,@F90_WORK_FILES_ARG@,$F90_WORK_FILES_ARG,;t t |
8014 |
+ |
s,@MODDIRFLAG@,$MODDIRFLAG,;t t |
8015 |
+ |
s,@F90MODINCSPEC@,$F90MODINCSPEC,;t t |
8016 |
|
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
8017 |
|
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t |
8018 |
|
s,@INSTALL_DATA@,$INSTALL_DATA,;t t |
8025 |
|
s,@LEXLIB@,$LEXLIB,;t t |
8026 |
|
s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t |
8027 |
|
s,@AR@,$AR,;t t |
8028 |
< |
s,@F90LIBS@,$F90LIBS,;t t |
8029 |
< |
s,@F90_FUNC@,$F90_FUNC,;t t |
8030 |
< |
s,@F90_FUNC_@,$F90_FUNC_,;t t |
7502 |
< |
s,@MPI_DIR@,$MPI_DIR,;t t |
7503 |
< |
s,@MPI_LIBDIR@,$MPI_LIBDIR,;t t |
7504 |
< |
s,@MPI_INC@,$MPI_INC,;t t |
8028 |
> |
s,@MPI_LIB_DIR@,$MPI_LIB_DIR,;t t |
8029 |
> |
s,@MPI_INC_DIR@,$MPI_INC_DIR,;t t |
8030 |
> |
s,@MPI_F90_INC@,$MPI_F90_INC,;t t |
8031 |
|
s,@MPI_LIB@,$MPI_LIB,;t t |
8032 |
< |
s,@MPIF77@,$MPIF77,;t t |
8033 |
< |
s,@MPIF90@,$MPIF90,;t t |
7508 |
< |
s,@MPILIBS@,$MPILIBS,;t t |
8032 |
> |
s,@MPI_F90_LIB@,$MPI_F90_LIB,;t t |
8033 |
> |
s,@USE_MPI@,$USE_MPI,;t t |
8034 |
|
s,@CPP@,$CPP,;t t |
8035 |
|
s,@EGREP@,$EGREP,;t t |
8036 |
|
s,@SPRNG_LIBDIR@,$SPRNG_LIBDIR,;t t |
8041 |
|
s,@MKL_LIB@,$MKL_LIB,;t t |
8042 |
|
s,@MKL_INC@,$MKL_INC,;t t |
8043 |
|
s,@HAVE_MKL@,$HAVE_MKL,;t t |
7519 |
– |
s,@MPI_F90_MODS@,$MPI_F90_MODS,;t t |
7520 |
– |
s,@fortran_machine_defs@,$fortran_machine_defs,;t t |
8044 |
|
s,@BATEXT@,$BATEXT,;t t |
8045 |
|
s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t |
8046 |
|
s,@OOPSE@,$OOPSE,;t t |
8078 |
|
(echo ':t |
8079 |
|
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed |
8080 |
|
if test -z "$ac_sed_cmds"; then |
8081 |
< |
ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
8081 |
> |
ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
8082 |
|
else |
8083 |
< |
ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
8083 |
> |
ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
8084 |
|
fi |
8085 |
|
ac_sed_frag=`expr $ac_sed_frag + 1` |
8086 |
|
ac_beg=$ac_end |
8098 |
|
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
8099 |
|
case $ac_file in |
8100 |
|
- | *:- | *:-:* ) # input from stdin |
8101 |
< |
cat >$tmp/stdin |
8102 |
< |
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
8103 |
< |
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
8101 |
> |
cat >$tmp/stdin |
8102 |
> |
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
8103 |
> |
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
8104 |
|
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
8105 |
< |
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
8105 |
> |
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
8106 |
|
* ) ac_file_in=$ac_file.in ;; |
8107 |
|
esac |
8108 |
|
|
8109 |
|
# Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
8110 |
|
ac_dir=`(dirname "$ac_file") 2>/dev/null || |
8111 |
|
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
8112 |
< |
X"$ac_file" : 'X\(//\)[^/]' \| \ |
8113 |
< |
X"$ac_file" : 'X\(//\)$' \| \ |
8114 |
< |
X"$ac_file" : 'X\(/\)' \| \ |
8115 |
< |
. : '\(.\)' 2>/dev/null || |
8112 |
> |
X"$ac_file" : 'X\(//\)[^/]' \| \ |
8113 |
> |
X"$ac_file" : 'X\(//\)$' \| \ |
8114 |
> |
X"$ac_file" : 'X\(/\)' \| \ |
8115 |
> |
. : '\(.\)' 2>/dev/null || |
8116 |
|
echo X"$ac_file" | |
8117 |
|
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
8118 |
|
/^X\(\/\/\)[^/].*/{ s//\1/; q; } |
8128 |
|
as_dirs="$as_dir $as_dirs" |
8129 |
|
as_dir=`(dirname "$as_dir") 2>/dev/null || |
8130 |
|
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
8131 |
< |
X"$as_dir" : 'X\(//\)[^/]' \| \ |
8132 |
< |
X"$as_dir" : 'X\(//\)$' \| \ |
8133 |
< |
X"$as_dir" : 'X\(/\)' \| \ |
8134 |
< |
. : '\(.\)' 2>/dev/null || |
8131 |
> |
X"$as_dir" : 'X\(//\)[^/]' \| \ |
8132 |
> |
X"$as_dir" : 'X\(//\)$' \| \ |
8133 |
> |
X"$as_dir" : 'X\(/\)' \| \ |
8134 |
> |
. : '\(.\)' 2>/dev/null || |
8135 |
|
echo X"$as_dir" | |
8136 |
|
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
8137 |
|
/^X\(\/\/\)[^/].*/{ s//\1/; q; } |
8169 |
|
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
8170 |
|
ac_top_srcdir=$ac_top_builddir$srcdir ;; |
8171 |
|
esac |
7649 |
– |
# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be |
7650 |
– |
# absolute. |
7651 |
– |
ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` |
7652 |
– |
ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` |
7653 |
– |
ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` |
7654 |
– |
ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` |
8172 |
|
|
8173 |
+ |
# Do not use `cd foo && pwd` to compute absolute paths, because |
8174 |
+ |
# the directories may not exist. |
8175 |
+ |
case `pwd` in |
8176 |
+ |
.) ac_abs_builddir="$ac_dir";; |
8177 |
+ |
*) |
8178 |
+ |
case "$ac_dir" in |
8179 |
+ |
.) ac_abs_builddir=`pwd`;; |
8180 |
+ |
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
8181 |
+ |
*) ac_abs_builddir=`pwd`/"$ac_dir";; |
8182 |
+ |
esac;; |
8183 |
+ |
esac |
8184 |
+ |
case $ac_abs_builddir in |
8185 |
+ |
.) ac_abs_top_builddir=${ac_top_builddir}.;; |
8186 |
+ |
*) |
8187 |
+ |
case ${ac_top_builddir}. in |
8188 |
+ |
.) ac_abs_top_builddir=$ac_abs_builddir;; |
8189 |
+ |
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
8190 |
+ |
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
8191 |
+ |
esac;; |
8192 |
+ |
esac |
8193 |
+ |
case $ac_abs_builddir in |
8194 |
+ |
.) ac_abs_srcdir=$ac_srcdir;; |
8195 |
+ |
*) |
8196 |
+ |
case $ac_srcdir in |
8197 |
+ |
.) ac_abs_srcdir=$ac_abs_builddir;; |
8198 |
+ |
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
8199 |
+ |
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
8200 |
+ |
esac;; |
8201 |
+ |
esac |
8202 |
+ |
case $ac_abs_builddir in |
8203 |
+ |
.) ac_abs_top_srcdir=$ac_top_srcdir;; |
8204 |
+ |
*) |
8205 |
+ |
case $ac_top_srcdir in |
8206 |
+ |
.) ac_abs_top_srcdir=$ac_abs_builddir;; |
8207 |
+ |
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
8208 |
+ |
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
8209 |
+ |
esac;; |
8210 |
+ |
esac |
8211 |
|
|
8212 |
+ |
|
8213 |
|
case $INSTALL in |
8214 |
|
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
8215 |
|
*) ac_INSTALL=$ac_top_builddir$INSTALL ;; |
8229 |
|
configure_input="$ac_file. " |
8230 |
|
fi |
8231 |
|
configure_input=$configure_input"Generated from `echo $ac_file_in | |
8232 |
< |
sed 's,.*/,,'` by configure." |
8232 |
> |
sed 's,.*/,,'` by configure." |
8233 |
|
|
8234 |
|
# First look for the input files in the build tree, otherwise in the |
8235 |
|
# src tree. |
8238 |
|
case $f in |
8239 |
|
-) echo $tmp/stdin ;; |
8240 |
|
[\\/$]*) |
8241 |
< |
# Absolute (can't be DOS-style, as IFS=:) |
8242 |
< |
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
8241 |
> |
# Absolute (can't be DOS-style, as IFS=:) |
8242 |
> |
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
8243 |
|
echo "$as_me: error: cannot find input file: $f" >&2;} |
8244 |
|
{ (exit 1); exit 1; }; } |
8245 |
< |
echo $f;; |
8245 |
> |
echo "$f";; |
8246 |
|
*) # Relative |
8247 |
< |
if test -f "$f"; then |
8248 |
< |
# Build tree |
8249 |
< |
echo $f |
8250 |
< |
elif test -f "$srcdir/$f"; then |
8251 |
< |
# Source tree |
8252 |
< |
echo $srcdir/$f |
8253 |
< |
else |
8254 |
< |
# /dev/null tree |
8255 |
< |
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
8247 |
> |
if test -f "$f"; then |
8248 |
> |
# Build tree |
8249 |
> |
echo "$f" |
8250 |
> |
elif test -f "$srcdir/$f"; then |
8251 |
> |
# Source tree |
8252 |
> |
echo "$srcdir/$f" |
8253 |
> |
else |
8254 |
> |
# /dev/null tree |
8255 |
> |
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
8256 |
|
echo "$as_me: error: cannot find input file: $f" >&2;} |
8257 |
|
{ (exit 1); exit 1; }; } |
8258 |
< |
fi;; |
8258 |
> |
fi;; |
8259 |
|
esac |
8260 |
|
done` || { (exit 1); exit 1; } |
8261 |
|
_ACEOF |
8297 |
|
# NAME is the cpp macro being defined and VALUE is the value it is being given. |
8298 |
|
# |
8299 |
|
# ac_d sets the value in "#define NAME VALUE" lines. |
8300 |
< |
ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
8301 |
< |
ac_dB='[ ].*$,\1#\2' |
8300 |
> |
ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
8301 |
> |
ac_dB='[ ].*$,\1#\2' |
8302 |
|
ac_dC=' ' |
8303 |
|
ac_dD=',;t' |
8304 |
|
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
8305 |
< |
ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
8305 |
> |
ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
8306 |
|
ac_uB='$,\1#\2define\3' |
8307 |
|
ac_uC=' ' |
8308 |
|
ac_uD=',;t' |
8311 |
|
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
8312 |
|
case $ac_file in |
8313 |
|
- | *:- | *:-:* ) # input from stdin |
8314 |
< |
cat >$tmp/stdin |
8315 |
< |
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
8316 |
< |
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
8314 |
> |
cat >$tmp/stdin |
8315 |
> |
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
8316 |
> |
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
8317 |
|
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
8318 |
< |
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
8318 |
> |
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
8319 |
|
* ) ac_file_in=$ac_file.in ;; |
8320 |
|
esac |
8321 |
|
|
8329 |
|
case $f in |
8330 |
|
-) echo $tmp/stdin ;; |
8331 |
|
[\\/$]*) |
8332 |
< |
# Absolute (can't be DOS-style, as IFS=:) |
8333 |
< |
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
8332 |
> |
# Absolute (can't be DOS-style, as IFS=:) |
8333 |
> |
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
8334 |
|
echo "$as_me: error: cannot find input file: $f" >&2;} |
8335 |
|
{ (exit 1); exit 1; }; } |
8336 |
< |
echo $f;; |
8336 |
> |
# Do quote $f, to prevent DOS paths from being IFS'd. |
8337 |
> |
echo "$f";; |
8338 |
|
*) # Relative |
8339 |
< |
if test -f "$f"; then |
8340 |
< |
# Build tree |
8341 |
< |
echo $f |
8342 |
< |
elif test -f "$srcdir/$f"; then |
8343 |
< |
# Source tree |
8344 |
< |
echo $srcdir/$f |
8345 |
< |
else |
8346 |
< |
# /dev/null tree |
8347 |
< |
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
8339 |
> |
if test -f "$f"; then |
8340 |
> |
# Build tree |
8341 |
> |
echo "$f" |
8342 |
> |
elif test -f "$srcdir/$f"; then |
8343 |
> |
# Source tree |
8344 |
> |
echo "$srcdir/$f" |
8345 |
> |
else |
8346 |
> |
# /dev/null tree |
8347 |
> |
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
8348 |
|
echo "$as_me: error: cannot find input file: $f" >&2;} |
8349 |
|
{ (exit 1); exit 1; }; } |
8350 |
< |
fi;; |
8350 |
> |
fi;; |
8351 |
|
esac |
8352 |
|
done` || { (exit 1); exit 1; } |
8353 |
|
# Remove the trailing spaces. |
8354 |
< |
sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
8354 |
> |
sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
8355 |
|
|
8356 |
|
_ACEOF |
8357 |
|
|
8374 |
|
s,[\\$`],\\&,g |
8375 |
|
t clear |
8376 |
|
: clear |
8377 |
< |
s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
8377 |
> |
s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
8378 |
|
t end |
8379 |
< |
s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
8379 |
> |
s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
8380 |
|
: end |
8381 |
|
_ACEOF |
8382 |
|
# If some macros were called several times there might be several times |
8390 |
|
# example, in the case of _POSIX_SOURCE, which is predefined and required |
8391 |
|
# on some systems where configure will not decide to define it. |
8392 |
|
cat >>conftest.undefs <<\_ACEOF |
8393 |
< |
s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
8393 |
> |
s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
8394 |
|
_ACEOF |
8395 |
|
|
8396 |
|
# Break up conftest.defines because some shells have a limit on the size |
8397 |
|
# of here documents, and old seds have small limits too (100 cmds). |
8398 |
|
echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS |
8399 |
< |
echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
8399 |
> |
echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
8400 |
|
echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
8401 |
|
echo ' :' >>$CONFIG_STATUS |
8402 |
|
rm -f conftest.tail |
8405 |
|
# Write a limited-size here document to $tmp/defines.sed. |
8406 |
|
echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS |
8407 |
|
# Speed up: don't consider the non `#define' lines. |
8408 |
< |
echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
8408 |
> |
echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
8409 |
|
# Work around the forget-to-reset-the-flag bug. |
8410 |
|
echo 't clr' >>$CONFIG_STATUS |
8411 |
|
echo ': clr' >>$CONFIG_STATUS |
8432 |
|
# Write a limited-size here document to $tmp/undefs.sed. |
8433 |
|
echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS |
8434 |
|
# Speed up: don't consider the non `#undef' |
8435 |
< |
echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
8435 |
> |
echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
8436 |
|
# Work around the forget-to-reset-the-flag bug. |
8437 |
|
echo 't clr' >>$CONFIG_STATUS |
8438 |
|
echo ': clr' >>$CONFIG_STATUS |
8466 |
|
else |
8467 |
|
ac_dir=`(dirname "$ac_file") 2>/dev/null || |
8468 |
|
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
8469 |
< |
X"$ac_file" : 'X\(//\)[^/]' \| \ |
8470 |
< |
X"$ac_file" : 'X\(//\)$' \| \ |
8471 |
< |
X"$ac_file" : 'X\(/\)' \| \ |
8472 |
< |
. : '\(.\)' 2>/dev/null || |
8469 |
> |
X"$ac_file" : 'X\(//\)[^/]' \| \ |
8470 |
> |
X"$ac_file" : 'X\(//\)$' \| \ |
8471 |
> |
X"$ac_file" : 'X\(/\)' \| \ |
8472 |
> |
. : '\(.\)' 2>/dev/null || |
8473 |
|
echo X"$ac_file" | |
8474 |
|
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
8475 |
|
/^X\(\/\/\)[^/].*/{ s//\1/; q; } |
8485 |
|
as_dirs="$as_dir $as_dirs" |
8486 |
|
as_dir=`(dirname "$as_dir") 2>/dev/null || |
8487 |
|
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
8488 |
< |
X"$as_dir" : 'X\(//\)[^/]' \| \ |
8489 |
< |
X"$as_dir" : 'X\(//\)$' \| \ |
8490 |
< |
X"$as_dir" : 'X\(/\)' \| \ |
8491 |
< |
. : '\(.\)' 2>/dev/null || |
8488 |
> |
X"$as_dir" : 'X\(//\)[^/]' \| \ |
8489 |
> |
X"$as_dir" : 'X\(//\)$' \| \ |
8490 |
> |
X"$as_dir" : 'X\(/\)' \| \ |
8491 |
> |
. : '\(.\)' 2>/dev/null || |
8492 |
|
echo X"$as_dir" | |
8493 |
|
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
8494 |
|
/^X\(\/\/\)[^/].*/{ s//\1/; q; } |