1 |
|
#! /bin/sh |
2 |
|
# Guess values for system-dependent variables and create Makefiles. |
3 |
< |
# Generated by Autoconf 2.50 for OOPSE 1.0. |
3 |
> |
# Generated by GNU Autoconf 2.57 for OOPSE 1.0. |
4 |
|
# |
5 |
|
# Report bugs to <gezelter@nd.edu>. |
6 |
|
# |
7 |
< |
# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 |
7 |
> |
# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 |
8 |
|
# Free Software Foundation, Inc. |
9 |
|
# This configure script is free software; the Free Software Foundation |
10 |
|
# gives unlimited permission to copy, distribute and modify it. |
11 |
+ |
## --------------------- ## |
12 |
+ |
## M4sh Initialization. ## |
13 |
+ |
## --------------------- ## |
14 |
|
|
15 |
|
# Be Bourne compatible |
16 |
|
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
17 |
|
emulate sh |
18 |
|
NULLCMD=: |
19 |
+ |
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
20 |
+ |
# is contrary to our usage. Disable this feature. |
21 |
+ |
alias -g '${1+"$@"}'='"$@"' |
22 |
|
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
23 |
|
set -o posix |
24 |
|
fi |
25 |
|
|
26 |
+ |
# Support unset when possible. |
27 |
+ |
if (FOO=FOO; unset FOO) >/dev/null 2>&1; then |
28 |
+ |
as_unset=unset |
29 |
+ |
else |
30 |
+ |
as_unset=false |
31 |
+ |
fi |
32 |
+ |
|
33 |
+ |
|
34 |
+ |
# Work around bugs in pre-3.0 UWIN ksh. |
35 |
+ |
$as_unset ENV MAIL MAILPATH |
36 |
+ |
PS1='$ ' |
37 |
+ |
PS2='> ' |
38 |
+ |
PS4='+ ' |
39 |
+ |
|
40 |
+ |
# NLS nuisances. |
41 |
+ |
for as_var in \ |
42 |
+ |
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
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 |
47 |
+ |
eval $as_var=C; export $as_var |
48 |
+ |
else |
49 |
+ |
$as_unset $as_var |
50 |
+ |
fi |
51 |
+ |
done |
52 |
+ |
|
53 |
+ |
# Required to use basename. |
54 |
+ |
if expr a : '\(a\)' >/dev/null 2>&1; then |
55 |
+ |
as_expr=expr |
56 |
+ |
else |
57 |
+ |
as_expr=false |
58 |
+ |
fi |
59 |
+ |
|
60 |
+ |
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
61 |
+ |
as_basename=basename |
62 |
+ |
else |
63 |
+ |
as_basename=false |
64 |
+ |
fi |
65 |
+ |
|
66 |
+ |
|
67 |
|
# Name of the executable. |
68 |
< |
as_me=`echo "$0" |sed 's,.*[\\/],,'` |
68 |
> |
as_me=`$as_basename "$0" || |
69 |
> |
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
70 |
> |
X"$0" : 'X\(//\)$' \| \ |
71 |
> |
X"$0" : 'X\(/\)$' \| \ |
72 |
> |
. : '\(.\)' 2>/dev/null || |
73 |
> |
echo X/"$0" | |
74 |
> |
sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
75 |
> |
/^X\/\(\/\/\)$/{ s//\1/; q; } |
76 |
> |
/^X\/\(\/\).*/{ s//\1/; q; } |
77 |
> |
s/.*/./; q'` |
78 |
|
|
79 |
+ |
|
80 |
+ |
# PATH needs CR, and LINENO needs CR and PATH. |
81 |
+ |
# Avoid depending upon Character Ranges. |
82 |
+ |
as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
83 |
+ |
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
84 |
+ |
as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
85 |
+ |
as_cr_digits='0123456789' |
86 |
+ |
as_cr_alnum=$as_cr_Letters$as_cr_digits |
87 |
+ |
|
88 |
+ |
# The user is always right. |
89 |
+ |
if test "${PATH_SEPARATOR+set}" != set; then |
90 |
+ |
echo "#! /bin/sh" >conf$$.sh |
91 |
+ |
echo "exit 0" >>conf$$.sh |
92 |
+ |
chmod +x conf$$.sh |
93 |
+ |
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
94 |
+ |
PATH_SEPARATOR=';' |
95 |
+ |
else |
96 |
+ |
PATH_SEPARATOR=: |
97 |
+ |
fi |
98 |
+ |
rm -f conf$$.sh |
99 |
+ |
fi |
100 |
+ |
|
101 |
+ |
|
102 |
+ |
as_lineno_1=$LINENO |
103 |
+ |
as_lineno_2=$LINENO |
104 |
+ |
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
105 |
+ |
test "x$as_lineno_1" != "x$as_lineno_2" && |
106 |
+ |
test "x$as_lineno_3" = "x$as_lineno_2" || { |
107 |
+ |
# Find who we are. Look in the path if we contain no path at all |
108 |
+ |
# relative or not. |
109 |
+ |
case $0 in |
110 |
+ |
*[\\/]* ) as_myself=$0 ;; |
111 |
+ |
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
112 |
+ |
for as_dir in $PATH |
113 |
+ |
do |
114 |
+ |
IFS=$as_save_IFS |
115 |
+ |
test -z "$as_dir" && as_dir=. |
116 |
+ |
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
117 |
+ |
done |
118 |
+ |
|
119 |
+ |
;; |
120 |
+ |
esac |
121 |
+ |
# We did not find ourselves, most probably we were run as `sh COMMAND' |
122 |
+ |
# in which case we are not to be found in the path. |
123 |
+ |
if test "x$as_myself" = x; then |
124 |
+ |
as_myself=$0 |
125 |
+ |
fi |
126 |
+ |
if test ! -f "$as_myself"; then |
127 |
+ |
{ echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 |
128 |
+ |
{ (exit 1); exit 1; }; } |
129 |
+ |
fi |
130 |
+ |
case $CONFIG_SHELL in |
131 |
+ |
'') |
132 |
+ |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
133 |
+ |
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
134 |
+ |
do |
135 |
+ |
IFS=$as_save_IFS |
136 |
+ |
test -z "$as_dir" && as_dir=. |
137 |
+ |
for as_base in sh bash ksh sh5; do |
138 |
+ |
case $as_dir in |
139 |
+ |
/*) |
140 |
+ |
if ("$as_dir/$as_base" -c ' |
141 |
+ |
as_lineno_1=$LINENO |
142 |
+ |
as_lineno_2=$LINENO |
143 |
+ |
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
144 |
+ |
test "x$as_lineno_1" != "x$as_lineno_2" && |
145 |
+ |
test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
146 |
+ |
$as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
147 |
+ |
$as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
148 |
+ |
CONFIG_SHELL=$as_dir/$as_base |
149 |
+ |
export CONFIG_SHELL |
150 |
+ |
exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
151 |
+ |
fi;; |
152 |
+ |
esac |
153 |
+ |
done |
154 |
+ |
done |
155 |
+ |
;; |
156 |
+ |
esac |
157 |
+ |
|
158 |
+ |
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
159 |
+ |
# uniformly replaced by the line number. The first 'sed' inserts a |
160 |
+ |
# line-number line before each line; the second 'sed' does the real |
161 |
+ |
# work. The second script uses 'N' to pair each line-number line |
162 |
+ |
# with the numbered line, and appends trailing '-' during |
163 |
+ |
# substitution so that $LINENO is not a special case at line end. |
164 |
+ |
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
165 |
+ |
# second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
166 |
+ |
sed '=' <$as_myself | |
167 |
+ |
sed ' |
168 |
+ |
N |
169 |
+ |
s,$,-, |
170 |
+ |
: loop |
171 |
+ |
s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
172 |
+ |
t loop |
173 |
+ |
s,-$,, |
174 |
+ |
s,^['$as_cr_digits']*\n,, |
175 |
+ |
' >$as_me.lineno && |
176 |
+ |
chmod +x $as_me.lineno || |
177 |
+ |
{ echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
178 |
+ |
{ (exit 1); exit 1; }; } |
179 |
+ |
|
180 |
+ |
# Don't try to exec as it changes $[0], causing all sort of problems |
181 |
+ |
# (the dirname of $[0] is not the place where we might find the |
182 |
+ |
# original and so on. Autoconf is especially sensible to this). |
183 |
+ |
. ./$as_me.lineno |
184 |
+ |
# Exit status is that of the last command. |
185 |
+ |
exit |
186 |
+ |
} |
187 |
+ |
|
188 |
+ |
|
189 |
+ |
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
190 |
+ |
*c*,-n*) ECHO_N= ECHO_C=' |
191 |
+ |
' ECHO_T=' ' ;; |
192 |
+ |
*c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
193 |
+ |
*) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
194 |
+ |
esac |
195 |
+ |
|
196 |
|
if expr a : '\(a\)' >/dev/null 2>&1; then |
197 |
|
as_expr=expr |
198 |
|
else |
217 |
|
fi |
218 |
|
rm -f conf$$ conf$$.exe conf$$.file |
219 |
|
|
220 |
< |
as_executable_p="test -f" |
221 |
< |
|
49 |
< |
# Support unset when possible. |
50 |
< |
if (FOO=FOO; unset FOO) >/dev/null 2>&1; then |
51 |
< |
as_unset=unset |
220 |
> |
if mkdir -p . 2>/dev/null; then |
221 |
> |
as_mkdir_p=: |
222 |
|
else |
223 |
< |
as_unset=false |
223 |
> |
as_mkdir_p=false |
224 |
|
fi |
225 |
|
|
226 |
< |
# NLS nuisances. |
57 |
< |
$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; } |
58 |
< |
$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; } |
59 |
< |
$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; } |
60 |
< |
$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; } |
61 |
< |
$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; } |
62 |
< |
$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; } |
63 |
< |
$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; } |
64 |
< |
$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; } |
226 |
> |
as_executable_p="test -f" |
227 |
|
|
228 |
+ |
# Sed expression to map a string onto a valid CPP name. |
229 |
+ |
as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" |
230 |
+ |
|
231 |
+ |
# Sed expression to map a string onto a valid variable name. |
232 |
+ |
as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" |
233 |
+ |
|
234 |
+ |
|
235 |
|
# IFS |
236 |
|
# We need space, tab and new line, in precisely that order. |
237 |
|
as_nl=' |
239 |
|
IFS=" $as_nl" |
240 |
|
|
241 |
|
# CDPATH. |
242 |
< |
$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; } |
242 |
> |
$as_unset CDPATH |
243 |
|
|
244 |
+ |
|
245 |
|
# Name of the host. |
246 |
|
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
247 |
|
# so uname gets run too. |
253 |
|
# Initializations. |
254 |
|
# |
255 |
|
ac_default_prefix=/usr/local |
256 |
+ |
ac_config_libobj_dir=. |
257 |
|
cross_compiling=no |
258 |
|
subdirs= |
259 |
< |
MFLAGS= MAKEFLAGS= |
259 |
> |
MFLAGS= |
260 |
> |
MAKEFLAGS= |
261 |
|
SHELL=${CONFIG_SHELL-/bin/sh} |
262 |
|
|
263 |
|
# Maximum number of lines to put in a shell here document. |
265 |
|
# only ac_max_sed_lines should be used. |
266 |
|
: ${ac_max_here_lines=38} |
267 |
|
|
268 |
< |
# Avoid depending upon Character Ranges. |
269 |
< |
ac_cr_az='abcdefghijklmnopqrstuvwxyz' |
270 |
< |
ac_cr_AZ='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
271 |
< |
ac_cr_09='0123456789' |
272 |
< |
ac_cr_alnum=$ac_cr_az$ac_cr_AZ$ac_cr_09 |
268 |
> |
# Identity of this package. |
269 |
> |
PACKAGE_NAME='OOPSE' |
270 |
> |
PACKAGE_TARNAME='oopse' |
271 |
> |
PACKAGE_VERSION='1.0' |
272 |
> |
PACKAGE_STRING='OOPSE 1.0' |
273 |
> |
PACKAGE_BUGREPORT='gezelter@nd.edu' |
274 |
|
|
102 |
– |
# Sed expression to map a string onto a valid sh and CPP variable names. |
103 |
– |
ac_tr_sh="sed y%*+%pp%;s%[^_$ac_cr_alnum]%_%g" |
104 |
– |
ac_tr_cpp="sed y%*$ac_cr_az%P$ac_cr_AZ%;s%[^_$ac_cr_alnum]%_%g" |
105 |
– |
|
275 |
|
ac_unique_file="src/oopse.cpp" |
276 |
|
ac_default_prefix="/usr/local" |
277 |
+ |
# Factoring default headers for most tests. |
278 |
+ |
ac_includes_default="\ |
279 |
+ |
#include <stdio.h> |
280 |
+ |
#if HAVE_SYS_TYPES_H |
281 |
+ |
# include <sys/types.h> |
282 |
+ |
#endif |
283 |
+ |
#if HAVE_SYS_STAT_H |
284 |
+ |
# include <sys/stat.h> |
285 |
+ |
#endif |
286 |
+ |
#if STDC_HEADERS |
287 |
+ |
# include <stdlib.h> |
288 |
+ |
# include <stddef.h> |
289 |
+ |
#else |
290 |
+ |
# if HAVE_STDLIB_H |
291 |
+ |
# include <stdlib.h> |
292 |
+ |
# endif |
293 |
+ |
#endif |
294 |
+ |
#if HAVE_STRING_H |
295 |
+ |
# if !STDC_HEADERS && HAVE_MEMORY_H |
296 |
+ |
# include <memory.h> |
297 |
+ |
# endif |
298 |
+ |
# include <string.h> |
299 |
+ |
#endif |
300 |
+ |
#if HAVE_STRINGS_H |
301 |
+ |
# include <strings.h> |
302 |
+ |
#endif |
303 |
+ |
#if HAVE_INTTYPES_H |
304 |
+ |
# include <inttypes.h> |
305 |
+ |
#else |
306 |
+ |
# if HAVE_STDINT_H |
307 |
+ |
# include <stdint.h> |
308 |
+ |
# endif |
309 |
+ |
#endif |
310 |
+ |
#if HAVE_UNISTD_H |
311 |
+ |
# include <unistd.h> |
312 |
+ |
#endif" |
313 |
|
|
314 |
+ |
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' |
315 |
+ |
ac_subst_files='' |
316 |
+ |
|
317 |
|
# Initialize some variables set by options. |
318 |
|
ac_init_help= |
319 |
|
ac_init_version=false |
351 |
|
oldincludedir='/usr/include' |
352 |
|
infodir='${prefix}/info' |
353 |
|
mandir='${prefix}/man' |
146 |
– |
|
147 |
– |
# Identity of this package. |
148 |
– |
PACKAGE_NAME='OOPSE' |
149 |
– |
PACKAGE_TARNAME='oopse' |
150 |
– |
PACKAGE_VERSION='1.0' |
151 |
– |
PACKAGE_STRING='OOPSE 1.0' |
152 |
– |
PACKAGE_BUGREPORT='gezelter@nd.edu' |
354 |
|
|
355 |
|
ac_prev= |
356 |
|
for ac_option |
397 |
|
-disable-* | --disable-*) |
398 |
|
ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
399 |
|
# Reject names that are not valid shell variable names. |
400 |
< |
expr "x$ac_feature" : ".*[^-_$ac_cr_alnum]" >/dev/null && |
400 |
> |
expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
401 |
|
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
402 |
|
{ (exit 1); exit 1; }; } |
403 |
|
ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
406 |
|
-enable-* | --enable-*) |
407 |
|
ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
408 |
|
# Reject names that are not valid shell variable names. |
409 |
< |
expr "x$ac_feature" : ".*[^-_$ac_cr_alnum]" >/dev/null && |
409 |
> |
expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
410 |
|
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
411 |
|
{ (exit 1); exit 1; }; } |
412 |
|
ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
484 |
|
with_fp=no ;; |
485 |
|
|
486 |
|
-no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
487 |
< |
| --no-cr | --no-c) |
487 |
> |
| --no-cr | --no-c | -n) |
488 |
|
no_create=yes ;; |
489 |
|
|
490 |
|
-no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
588 |
|
-with-* | --with-*) |
589 |
|
ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
590 |
|
# Reject names that are not valid shell variable names. |
591 |
< |
expr "x$ac_package" : ".*[^-_$ac_cr_alnum]" >/dev/null && |
591 |
> |
expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
592 |
|
{ echo "$as_me: error: invalid package name: $ac_package" >&2 |
593 |
|
{ (exit 1); exit 1; }; } |
594 |
|
ac_package=`echo $ac_package| sed 's/-/_/g'` |
601 |
|
-without-* | --without-*) |
602 |
|
ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
603 |
|
# Reject names that are not valid shell variable names. |
604 |
< |
expr "x$ac_package" : ".*[^-_$ac_cr_alnum]" >/dev/null && |
604 |
> |
expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
605 |
|
{ echo "$as_me: error: invalid package name: $ac_package" >&2 |
606 |
|
{ (exit 1); exit 1; }; } |
607 |
|
ac_package=`echo $ac_package | sed 's/-/_/g'` |
633 |
|
*=*) |
634 |
|
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
635 |
|
# Reject names that are not valid shell variable names. |
636 |
< |
expr "x$ac_envvar" : ".*[^_$ac_cr_alnum]" >/dev/null && |
636 |
> |
expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
637 |
|
{ echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
638 |
|
{ (exit 1); exit 1; }; } |
639 |
|
ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` |
643 |
|
*) |
644 |
|
# FIXME: should be removed in autoconf 3.0. |
645 |
|
echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
646 |
< |
expr "x$ac_option" : ".*[^-._$ac_cr_alnum]" >/dev/null && |
646 |
> |
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
647 |
|
echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
648 |
|
: ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
649 |
|
;; |
658 |
|
fi |
659 |
|
|
660 |
|
# Be sure to have absolute paths. |
661 |
+ |
for ac_var in exec_prefix prefix |
662 |
+ |
do |
663 |
+ |
eval ac_val=$`echo $ac_var` |
664 |
+ |
case $ac_val in |
665 |
+ |
[\\/$]* | ?:[\\/]* | NONE | '' ) ;; |
666 |
+ |
*) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
667 |
+ |
{ (exit 1); exit 1; }; };; |
668 |
+ |
esac |
669 |
+ |
done |
670 |
+ |
|
671 |
+ |
# Be sure to have absolute paths. |
672 |
|
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ |
673 |
< |
localstatedir libdir includedir oldincludedir infodir mandir \ |
462 |
< |
exec_prefix prefix |
673 |
> |
localstatedir libdir includedir oldincludedir infodir mandir |
674 |
|
do |
675 |
|
eval ac_val=$`echo $ac_var` |
676 |
|
case $ac_val in |
677 |
|
[\\/$]* | ?:[\\/]* ) ;; |
678 |
< |
NONE ) ;; |
468 |
< |
*) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2 |
678 |
> |
*) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
679 |
|
{ (exit 1); exit 1; }; };; |
680 |
|
esac |
681 |
|
done |
682 |
|
|
683 |
|
# There might be people who depend on the old broken behavior: `$host' |
684 |
|
# used to hold the argument of --host etc. |
685 |
+ |
# FIXME: To remove some day. |
686 |
|
build=$build_alias |
687 |
|
host=$host_alias |
688 |
|
target=$target_alias |
689 |
|
|
690 |
< |
# FIXME: should be removed in autoconf 3.0. |
690 |
> |
# FIXME: To remove some day. |
691 |
|
if test "x$host_alias" != x; then |
692 |
|
if test "x$build_alias" = x; then |
693 |
|
cross_compiling=maybe |
703 |
|
|
704 |
|
test "$silent" = yes && exec 6>/dev/null |
705 |
|
|
706 |
+ |
|
707 |
|
# Find the source files, if location was not specified. |
708 |
|
if test -z "$srcdir"; then |
709 |
|
ac_srcdir_defaulted=yes |
710 |
|
# Try the directory containing this script, then its parent. |
711 |
< |
ac_prog=$0 |
712 |
< |
ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'` |
713 |
< |
test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. |
711 |
> |
ac_confdir=`(dirname "$0") 2>/dev/null || |
712 |
> |
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
713 |
> |
X"$0" : 'X\(//\)[^/]' \| \ |
714 |
> |
X"$0" : 'X\(//\)$' \| \ |
715 |
> |
X"$0" : 'X\(/\)' \| \ |
716 |
> |
. : '\(.\)' 2>/dev/null || |
717 |
> |
echo X"$0" | |
718 |
> |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
719 |
> |
/^X\(\/\/\)[^/].*/{ s//\1/; q; } |
720 |
> |
/^X\(\/\/\)$/{ s//\1/; q; } |
721 |
> |
/^X\(\/\).*/{ s//\1/; q; } |
722 |
> |
s/.*/./; q'` |
723 |
|
srcdir=$ac_confdir |
724 |
|
if test ! -r $srcdir/$ac_unique_file; then |
725 |
|
srcdir=.. |
729 |
|
fi |
730 |
|
if test ! -r $srcdir/$ac_unique_file; then |
731 |
|
if test "$ac_srcdir_defaulted" = yes; then |
732 |
< |
{ echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2 |
732 |
> |
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 |
733 |
|
{ (exit 1); exit 1; }; } |
734 |
|
else |
735 |
< |
{ echo "$as_me: error: cannot find sources in $srcdir" >&2 |
735 |
> |
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
736 |
|
{ (exit 1); exit 1; }; } |
737 |
|
fi |
738 |
|
fi |
739 |
+ |
(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || |
740 |
+ |
{ echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 |
741 |
+ |
{ (exit 1); exit 1; }; } |
742 |
|
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` |
743 |
|
ac_env_build_alias_set=${build_alias+set} |
744 |
|
ac_env_build_alias_value=$build_alias |
784 |
|
ac_env_F90FLAGS_value=$F90FLAGS |
785 |
|
ac_cv_env_F90FLAGS_set=${F90FLAGS+set} |
786 |
|
ac_cv_env_F90FLAGS_value=$F90FLAGS |
563 |
– |
ac_env_MPIF77_set=${MPIF77+set} |
564 |
– |
ac_env_MPIF77_value=$MPIF77 |
565 |
– |
ac_cv_env_MPIF77_set=${MPIF77+set} |
566 |
– |
ac_cv_env_MPIF77_value=$MPIF77 |
787 |
|
ac_env_CPP_set=${CPP+set} |
788 |
|
ac_env_CPP_value=$CPP |
789 |
|
ac_cv_env_CPP_set=${CPP+set} |
795 |
|
if test "$ac_init_help" = "long"; then |
796 |
|
# Omit some internal or obsolete options to make the list less imposing. |
797 |
|
# This message is too long to be a string in the A/UX 3.1 sh. |
798 |
< |
cat <<EOF |
798 |
> |
cat <<_ACEOF |
799 |
|
\`configure' configures OOPSE 1.0 to adapt to many kinds of systems. |
800 |
|
|
801 |
|
Usage: $0 [OPTION]... [VAR=VALUE]... |
816 |
|
-n, --no-create do not create output files |
817 |
|
--srcdir=DIR find the sources in DIR [configure dir or \`..'] |
818 |
|
|
819 |
< |
EOF |
819 |
> |
_ACEOF |
820 |
|
|
821 |
< |
cat <<EOF |
821 |
> |
cat <<_ACEOF |
822 |
|
Installation directories: |
823 |
|
--prefix=PREFIX install architecture-independent files in PREFIX |
824 |
|
[$ac_default_prefix] |
845 |
|
--oldincludedir=DIR C header files for non-gcc [/usr/include] |
846 |
|
--infodir=DIR info documentation [PREFIX/info] |
847 |
|
--mandir=DIR man documentation [PREFIX/man] |
848 |
< |
EOF |
848 |
> |
_ACEOF |
849 |
|
|
850 |
< |
cat <<\EOF |
850 |
> |
cat <<\_ACEOF |
851 |
|
|
852 |
|
System types: |
853 |
|
--build=BUILD configure for building on BUILD [guessed] |
854 |
< |
--host=HOST build programs to run on HOST [BUILD] |
855 |
< |
EOF |
854 |
> |
--host=HOST cross-compile to build programs to run on HOST [BUILD] |
855 |
> |
_ACEOF |
856 |
|
fi |
857 |
|
|
858 |
|
if test -n "$ac_init_help"; then |
859 |
|
case $ac_init_help in |
860 |
|
short | recursive ) echo "Configuration of OOPSE 1.0:";; |
861 |
|
esac |
862 |
< |
cat <<\EOF |
862 |
> |
cat <<\_ACEOF |
863 |
|
|
864 |
|
Optional Features: |
865 |
|
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
870 |
|
Optional Packages: |
871 |
|
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
872 |
|
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
873 |
< |
--with-mpi_dir=MPIDIR give the path for MPI /usr/local |
654 |
< |
--with-mpi-libdir=dir give the path for MPI-libraries MPI_DIR/lib |
655 |
< |
--with-mpi_inc=dir give the path for MPI-include-files MPI_DIR/include |
873 |
> |
--with-mpi=<prefix> compile with MPI libraries in <prefix> [default=no] |
874 |
|
--with-sprng_prefix=PREFIX |
875 |
|
Prefix where SPRNG is installed |
876 |
|
--with-sprng-libdir=PREFIX SPRNG library directory |
877 |
|
--with-sprng-include=PREFIX |
878 |
|
SPRNG include directory |
879 |
< |
--with-mkl Do we want MKL will check /usr/local/intel/mkl60 /opt/intel/mkl60 |
662 |
< |
--with-mpi_f90_mods=<dir> |
663 |
< |
Location where MPI f90 modules are installed |
879 |
> |
--with-mkl Do we want MKL will check /usr/local/intel/mkl61 /opt/intel/mkl61 |
880 |
|
|
881 |
|
Some influential environment variables: |
882 |
|
CC C compiler command |
889 |
|
CXXFLAGS C++ compiler flags |
890 |
|
F90 Fortran 90 compiler command |
891 |
|
F90FLAGS Fortran 90 compiler flags |
676 |
– |
MPIF77 MPI Fortran compiler command |
892 |
|
CPP C preprocessor |
893 |
|
|
894 |
|
Use these variables to override the choices made by `configure' or to help |
895 |
|
it to find libraries and programs with nonstandard names/locations. |
896 |
|
|
897 |
|
Report bugs to <gezelter@nd.edu>. |
898 |
< |
EOF |
898 |
> |
_ACEOF |
899 |
|
fi |
900 |
|
|
901 |
|
if test "$ac_init_help" = "recursive"; then |
902 |
|
# If there are subdirs, report their specific --help. |
903 |
|
ac_popdir=`pwd` |
904 |
< |
for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue |
905 |
< |
cd $ac_subdir |
906 |
< |
# A "../" for each directory in /$ac_subdir. |
692 |
< |
ac_dots=`echo $ac_subdir | |
693 |
< |
sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` |
904 |
> |
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
905 |
> |
test -d $ac_dir || continue |
906 |
> |
ac_builddir=. |
907 |
|
|
908 |
< |
case $srcdir in |
909 |
< |
.) # No --srcdir option. We are building in place. |
910 |
< |
ac_sub_srcdir=$srcdir ;; |
911 |
< |
[\\/]* | ?:[\\/]* ) # Absolute path. |
912 |
< |
ac_sub_srcdir=$srcdir/$ac_subdir ;; |
913 |
< |
*) # Relative path. |
914 |
< |
ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;; |
702 |
< |
esac |
908 |
> |
if test "$ac_dir" != .; then |
909 |
> |
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
910 |
> |
# A "../" for each directory in $ac_dir_suffix. |
911 |
> |
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
912 |
> |
else |
913 |
> |
ac_dir_suffix= ac_top_builddir= |
914 |
> |
fi |
915 |
|
|
916 |
< |
# Check for guested configure; otherwise get Cygnus style configure. |
917 |
< |
if test -f $ac_sub_srcdir/configure.gnu; then |
918 |
< |
echo |
919 |
< |
$SHELL $ac_sub_srcdir/configure.gnu --help=recursive |
920 |
< |
elif test -f $ac_sub_srcdir/configure; then |
916 |
> |
case $srcdir in |
917 |
> |
.) # No --srcdir option. We are building in place. |
918 |
> |
ac_srcdir=. |
919 |
> |
if test -z "$ac_top_builddir"; then |
920 |
> |
ac_top_srcdir=. |
921 |
> |
else |
922 |
> |
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
923 |
> |
fi ;; |
924 |
> |
[\\/]* | ?:[\\/]* ) # Absolute path. |
925 |
> |
ac_srcdir=$srcdir$ac_dir_suffix; |
926 |
> |
ac_top_srcdir=$srcdir ;; |
927 |
> |
*) # Relative path. |
928 |
> |
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
929 |
> |
ac_top_srcdir=$ac_top_builddir$srcdir ;; |
930 |
> |
esac |
931 |
> |
# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be |
932 |
> |
# absolute. |
933 |
> |
ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` |
934 |
> |
ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` |
935 |
> |
ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` |
936 |
> |
ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` |
937 |
> |
|
938 |
> |
cd $ac_dir |
939 |
> |
# Check for guested configure; otherwise get Cygnus style configure. |
940 |
> |
if test -f $ac_srcdir/configure.gnu; then |
941 |
|
echo |
942 |
< |
$SHELL $ac_sub_srcdir/configure --help=recursive |
943 |
< |
elif test -f $ac_sub_srcdir/configure.ac || |
712 |
< |
test -f $ac_sub_srcdir/configure.in; then |
942 |
> |
$SHELL $ac_srcdir/configure.gnu --help=recursive |
943 |
> |
elif test -f $ac_srcdir/configure; then |
944 |
|
echo |
945 |
+ |
$SHELL $ac_srcdir/configure --help=recursive |
946 |
+ |
elif test -f $ac_srcdir/configure.ac || |
947 |
+ |
test -f $ac_srcdir/configure.in; then |
948 |
+ |
echo |
949 |
|
$ac_configure --help |
950 |
|
else |
951 |
< |
echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2 |
951 |
> |
echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
952 |
|
fi |
953 |
|
cd $ac_popdir |
954 |
|
done |
956 |
|
|
957 |
|
test -n "$ac_init_help" && exit 0 |
958 |
|
if $ac_init_version; then |
959 |
< |
cat <<\EOF |
959 |
> |
cat <<\_ACEOF |
960 |
|
OOPSE configure 1.0 |
961 |
< |
generated by GNU Autoconf 2.50 |
961 |
> |
generated by GNU Autoconf 2.57 |
962 |
|
|
963 |
< |
Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 |
963 |
> |
Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 |
964 |
|
Free Software Foundation, Inc. |
965 |
|
This configure script is free software; the Free Software Foundation |
966 |
|
gives unlimited permission to copy, distribute and modify it. |
967 |
< |
EOF |
967 |
> |
_ACEOF |
968 |
|
exit 0 |
969 |
|
fi |
970 |
|
exec 5>config.log |
971 |
< |
cat >&5 <<EOF |
971 |
> |
cat >&5 <<_ACEOF |
972 |
|
This file contains any messages produced by compilers while |
973 |
|
running configure, to aid debugging if configure makes a mistake. |
974 |
|
|
975 |
|
It was created by OOPSE $as_me 1.0, which was |
976 |
< |
generated by GNU Autoconf 2.50. Invocation command line was |
976 |
> |
generated by GNU Autoconf 2.57. Invocation command line was |
977 |
|
|
978 |
|
$ $0 $@ |
979 |
|
|
980 |
< |
EOF |
980 |
> |
_ACEOF |
981 |
|
{ |
982 |
|
cat <<_ASUNAME |
983 |
< |
## ---------- ## |
984 |
< |
## Platform. ## |
985 |
< |
## ---------- ## |
983 |
> |
## --------- ## |
984 |
> |
## Platform. ## |
985 |
> |
## --------- ## |
986 |
|
|
987 |
|
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
988 |
|
uname -m = `(uname -m) 2>/dev/null || echo unknown` |
1001 |
|
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
1002 |
|
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
1003 |
|
|
769 |
– |
PATH = $PATH |
770 |
– |
|
1004 |
|
_ASUNAME |
1005 |
+ |
|
1006 |
+ |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1007 |
+ |
for as_dir in $PATH |
1008 |
+ |
do |
1009 |
+ |
IFS=$as_save_IFS |
1010 |
+ |
test -z "$as_dir" && as_dir=. |
1011 |
+ |
echo "PATH: $as_dir" |
1012 |
+ |
done |
1013 |
+ |
|
1014 |
|
} >&5 |
1015 |
|
|
1016 |
< |
cat >&5 <<EOF |
775 |
< |
## ------------ ## |
776 |
< |
## Core tests. ## |
777 |
< |
## ------------ ## |
1016 |
> |
cat >&5 <<_ACEOF |
1017 |
|
|
779 |
– |
EOF |
1018 |
|
|
1019 |
+ |
## ----------- ## |
1020 |
+ |
## Core tests. ## |
1021 |
+ |
## ----------- ## |
1022 |
+ |
|
1023 |
+ |
_ACEOF |
1024 |
+ |
|
1025 |
+ |
|
1026 |
|
# Keep a trace of the command line. |
1027 |
|
# Strip out --no-create and --no-recursion so they do not pile up. |
1028 |
+ |
# Strip out --silent because we don't want to record it for future runs. |
1029 |
|
# Also quote any args containing shell meta-characters. |
1030 |
+ |
# Make two passes to allow for proper duplicate-argument suppression. |
1031 |
|
ac_configure_args= |
1032 |
+ |
ac_configure_args0= |
1033 |
+ |
ac_configure_args1= |
1034 |
|
ac_sep= |
1035 |
< |
for ac_arg |
1035 |
> |
ac_must_keep_next=false |
1036 |
> |
for ac_pass in 1 2 |
1037 |
|
do |
1038 |
< |
case $ac_arg in |
1039 |
< |
-no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
1040 |
< |
| --no-cr | --no-c) ;; |
1041 |
< |
-no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
1042 |
< |
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; |
1043 |
< |
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
1044 |
< |
ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` |
1045 |
< |
ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" |
1046 |
< |
ac_sep=" " ;; |
1047 |
< |
*) ac_configure_args="$ac_configure_args$ac_sep$ac_arg" |
1048 |
< |
ac_sep=" " ;; |
1049 |
< |
esac |
1050 |
< |
# Get rid of the leading space. |
1038 |
> |
for ac_arg |
1039 |
> |
do |
1040 |
> |
case $ac_arg in |
1041 |
> |
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
1042 |
> |
-q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1043 |
> |
| -silent | --silent | --silen | --sile | --sil) |
1044 |
> |
continue ;; |
1045 |
> |
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
1046 |
> |
ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
1047 |
> |
esac |
1048 |
> |
case $ac_pass in |
1049 |
> |
1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
1050 |
> |
2) |
1051 |
> |
ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
1052 |
> |
if test $ac_must_keep_next = true; then |
1053 |
> |
ac_must_keep_next=false # Got value, back to normal. |
1054 |
> |
else |
1055 |
> |
case $ac_arg in |
1056 |
> |
*=* | --config-cache | -C | -disable-* | --disable-* \ |
1057 |
> |
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
1058 |
> |
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
1059 |
> |
| -with-* | --with-* | -without-* | --without-* | --x) |
1060 |
> |
case "$ac_configure_args0 " in |
1061 |
> |
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
1062 |
> |
esac |
1063 |
> |
;; |
1064 |
> |
-* ) ac_must_keep_next=true ;; |
1065 |
> |
esac |
1066 |
> |
fi |
1067 |
> |
ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" |
1068 |
> |
# Get rid of the leading space. |
1069 |
> |
ac_sep=" " |
1070 |
> |
;; |
1071 |
> |
esac |
1072 |
> |
done |
1073 |
|
done |
1074 |
+ |
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
1075 |
+ |
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
1076 |
|
|
1077 |
|
# When interrupted or exit'd, cleanup temporary files, and complete |
1078 |
|
# config.log. We remove comments because anyway the quotes in there |
1079 |
|
# would cause problems or look ugly. |
1080 |
+ |
# WARNING: Be sure not to use single quotes in there, as some shells, |
1081 |
+ |
# such as our DU 5.0 friend, will then `close' the trap. |
1082 |
|
trap 'exit_status=$? |
1083 |
|
# Save into config.log some information that might help in debugging. |
1084 |
< |
echo >&5 |
1085 |
< |
echo "## ----------------- ##" >&5 |
1086 |
< |
echo "## Cache variables. ##" >&5 |
1087 |
< |
echo "## ----------------- ##" >&5 |
1088 |
< |
echo >&5 |
1089 |
< |
# The following way of writing the cache mishandles newlines in values, |
1084 |
> |
{ |
1085 |
> |
echo |
1086 |
> |
|
1087 |
> |
cat <<\_ASBOX |
1088 |
> |
## ---------------- ## |
1089 |
> |
## Cache variables. ## |
1090 |
> |
## ---------------- ## |
1091 |
> |
_ASBOX |
1092 |
> |
echo |
1093 |
> |
# The following way of writing the cache mishandles newlines in values, |
1094 |
|
{ |
1095 |
|
(set) 2>&1 | |
1096 |
|
case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in |
1097 |
|
*ac_space=\ *) |
1098 |
|
sed -n \ |
1099 |
|
"s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
1100 |
< |
s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" |
1100 |
> |
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" |
1101 |
|
;; |
1102 |
|
*) |
1103 |
|
sed -n \ |
1104 |
< |
"s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
1104 |
> |
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
1105 |
|
;; |
1106 |
|
esac; |
1107 |
< |
} >&5 |
1108 |
< |
sed "/^$/d" confdefs.h >conftest.log |
1109 |
< |
if test -s conftest.log; then |
1110 |
< |
echo >&5 |
1111 |
< |
echo "## ------------ ##" >&5 |
1112 |
< |
echo "## confdefs.h. ##" >&5 |
1113 |
< |
echo "## ------------ ##" >&5 |
1114 |
< |
echo >&5 |
1115 |
< |
cat conftest.log >&5 |
1116 |
< |
fi |
1117 |
< |
(echo; echo) >&5 |
1118 |
< |
test "$ac_signal" != 0 && |
1119 |
< |
echo "$as_me: caught signal $ac_signal" >&5 |
1120 |
< |
echo "$as_me: exit $exit_status" >&5 |
1121 |
< |
rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files && |
1107 |
> |
} |
1108 |
> |
echo |
1109 |
> |
|
1110 |
> |
cat <<\_ASBOX |
1111 |
> |
## ----------------- ## |
1112 |
> |
## Output variables. ## |
1113 |
> |
## ----------------- ## |
1114 |
> |
_ASBOX |
1115 |
> |
echo |
1116 |
> |
for ac_var in $ac_subst_vars |
1117 |
> |
do |
1118 |
> |
eval ac_val=$`echo $ac_var` |
1119 |
> |
echo "$ac_var='"'"'$ac_val'"'"'" |
1120 |
> |
done | sort |
1121 |
> |
echo |
1122 |
> |
|
1123 |
> |
if test -n "$ac_subst_files"; then |
1124 |
> |
cat <<\_ASBOX |
1125 |
> |
## ------------- ## |
1126 |
> |
## Output files. ## |
1127 |
> |
## ------------- ## |
1128 |
> |
_ASBOX |
1129 |
> |
echo |
1130 |
> |
for ac_var in $ac_subst_files |
1131 |
> |
do |
1132 |
> |
eval ac_val=$`echo $ac_var` |
1133 |
> |
echo "$ac_var='"'"'$ac_val'"'"'" |
1134 |
> |
done | sort |
1135 |
> |
echo |
1136 |
> |
fi |
1137 |
> |
|
1138 |
> |
if test -s confdefs.h; then |
1139 |
> |
cat <<\_ASBOX |
1140 |
> |
## ----------- ## |
1141 |
> |
## confdefs.h. ## |
1142 |
> |
## ----------- ## |
1143 |
> |
_ASBOX |
1144 |
> |
echo |
1145 |
> |
sed "/^$/d" confdefs.h | sort |
1146 |
> |
echo |
1147 |
> |
fi |
1148 |
> |
test "$ac_signal" != 0 && |
1149 |
> |
echo "$as_me: caught signal $ac_signal" |
1150 |
> |
echo "$as_me: exit $exit_status" |
1151 |
> |
} >&5 |
1152 |
> |
rm -f core core.* *.core && |
1153 |
> |
rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
1154 |
|
exit $exit_status |
1155 |
|
' 0 |
1156 |
|
for ac_signal in 1 2 13 15; do |
1157 |
< |
trap 'ac_status=$?; ac_signal='$ac_signal'; { (exit $ac_status); exit $ac_status; }' $ac_signal |
1157 |
> |
trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
1158 |
|
done |
1159 |
|
ac_signal=0 |
1160 |
|
|
1163 |
|
# AIX cpp loses on an empty file, so make sure it contains at least a newline. |
1164 |
|
echo >confdefs.h |
1165 |
|
|
1166 |
+ |
# Predefined preprocessor variables. |
1167 |
+ |
|
1168 |
+ |
cat >>confdefs.h <<_ACEOF |
1169 |
+ |
#define PACKAGE_NAME "$PACKAGE_NAME" |
1170 |
+ |
_ACEOF |
1171 |
+ |
|
1172 |
+ |
|
1173 |
+ |
cat >>confdefs.h <<_ACEOF |
1174 |
+ |
#define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
1175 |
+ |
_ACEOF |
1176 |
+ |
|
1177 |
+ |
|
1178 |
+ |
cat >>confdefs.h <<_ACEOF |
1179 |
+ |
#define PACKAGE_VERSION "$PACKAGE_VERSION" |
1180 |
+ |
_ACEOF |
1181 |
+ |
|
1182 |
+ |
|
1183 |
+ |
cat >>confdefs.h <<_ACEOF |
1184 |
+ |
#define PACKAGE_STRING "$PACKAGE_STRING" |
1185 |
+ |
_ACEOF |
1186 |
+ |
|
1187 |
+ |
|
1188 |
+ |
cat >>confdefs.h <<_ACEOF |
1189 |
+ |
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
1190 |
+ |
_ACEOF |
1191 |
+ |
|
1192 |
+ |
|
1193 |
|
# Let the site file select an alternate cache file if it wants to. |
1194 |
|
# Prefer explicitly selected file to automatically selected ones. |
1195 |
|
if test -z "$CONFIG_SITE"; then |
1201 |
|
fi |
1202 |
|
for ac_site_file in $CONFIG_SITE; do |
1203 |
|
if test -r "$ac_site_file"; then |
1204 |
< |
{ echo "$as_me:865: loading site script $ac_site_file" >&5 |
1204 |
> |
{ echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
1205 |
|
echo "$as_me: loading site script $ac_site_file" >&6;} |
1206 |
< |
cat "$ac_site_file" >&5 |
1206 |
> |
sed 's/^/| /' "$ac_site_file" >&5 |
1207 |
|
. "$ac_site_file" |
1208 |
|
fi |
1209 |
|
done |
1212 |
|
# Some versions of bash will fail to source /dev/null (special |
1213 |
|
# files actually), so we avoid doing that. |
1214 |
|
if test -f "$cache_file"; then |
1215 |
< |
{ echo "$as_me:876: loading cache $cache_file" >&5 |
1215 |
> |
{ echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
1216 |
|
echo "$as_me: loading cache $cache_file" >&6;} |
1217 |
|
case $cache_file in |
1218 |
|
[\\/]* | ?:[\\/]* ) . $cache_file;; |
1220 |
|
esac |
1221 |
|
fi |
1222 |
|
else |
1223 |
< |
{ echo "$as_me:884: creating cache $cache_file" >&5 |
1223 |
> |
{ echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
1224 |
|
echo "$as_me: creating cache $cache_file" >&6;} |
1225 |
|
>$cache_file |
1226 |
|
fi |
1227 |
|
|
1228 |
|
# Check that the precious variables saved in the cache have kept the same |
1229 |
|
# value. |
1230 |
< |
ac_suggest_removing_cache=false |
1230 |
> |
ac_cache_corrupted=false |
1231 |
|
for ac_var in `(set) 2>&1 | |
1232 |
|
sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
1233 |
|
eval ac_old_set=\$ac_cv_env_${ac_var}_set |
1236 |
|
eval ac_new_val="\$ac_env_${ac_var}_value" |
1237 |
|
case $ac_old_set,$ac_new_set in |
1238 |
|
set,) |
1239 |
< |
{ echo "$as_me:900: WARNING: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
1240 |
< |
echo "$as_me: WARNING: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
1241 |
< |
ac_suggest_removing_cache=: ;; |
1239 |
> |
{ echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
1240 |
> |
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
1241 |
> |
ac_cache_corrupted=: ;; |
1242 |
|
,set) |
1243 |
< |
{ echo "$as_me:904: WARNING: \`$ac_var' was not set in the previous run" >&5 |
1244 |
< |
echo "$as_me: WARNING: \`$ac_var' was not set in the previous run" >&2;} |
1245 |
< |
ac_suggest_removing_cache=: ;; |
1243 |
> |
{ echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
1244 |
> |
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
1245 |
> |
ac_cache_corrupted=: ;; |
1246 |
|
,);; |
1247 |
|
*) |
1248 |
|
if test "x$ac_old_val" != "x$ac_new_val"; then |
1249 |
< |
{ echo "$as_me:910: WARNING: \`$ac_var' has changed since the previous run:" >&5 |
1250 |
< |
echo "$as_me: WARNING: \`$ac_var' has changed since the previous run:" >&2;} |
1251 |
< |
{ echo "$as_me:912: WARNING: former value: $ac_old_val" >&5 |
1252 |
< |
echo "$as_me: WARNING: former value: $ac_old_val" >&2;} |
1253 |
< |
{ echo "$as_me:914: WARNING: current value: $ac_new_val" >&5 |
1254 |
< |
echo "$as_me: WARNING: current value: $ac_new_val" >&2;} |
1255 |
< |
ac_suggest_removing_cache=: |
1249 |
> |
{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
1250 |
> |
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
1251 |
> |
{ echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
1252 |
> |
echo "$as_me: former value: $ac_old_val" >&2;} |
1253 |
> |
{ echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
1254 |
> |
echo "$as_me: current value: $ac_new_val" >&2;} |
1255 |
> |
ac_cache_corrupted=: |
1256 |
|
fi;; |
1257 |
|
esac |
1258 |
+ |
# Pass precious variables to config.status. |
1259 |
+ |
if test "$ac_new_set" = set; then |
1260 |
+ |
case $ac_new_val in |
1261 |
+ |
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
1262 |
+ |
ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
1263 |
+ |
*) ac_arg=$ac_var=$ac_new_val ;; |
1264 |
+ |
esac |
1265 |
+ |
case " $ac_configure_args " in |
1266 |
+ |
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
1267 |
+ |
*) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
1268 |
+ |
esac |
1269 |
+ |
fi |
1270 |
|
done |
1271 |
< |
if $ac_suggest_removing_cache; then |
1272 |
< |
{ echo "$as_me:921: WARNING: changes in the environment can compromise the build" >&5 |
1273 |
< |
echo "$as_me: WARNING: changes in the environment can compromise the build" >&2;} |
1274 |
< |
{ echo "$as_me:923: WARNING: consider removing $cache_file and starting over" >&5 |
1275 |
< |
echo "$as_me: WARNING: consider removing $cache_file and starting over" >&2;} |
1271 |
> |
if $ac_cache_corrupted; then |
1272 |
> |
{ echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
1273 |
> |
echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
1274 |
> |
{ { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
1275 |
> |
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
1276 |
> |
{ (exit 1); exit 1; }; } |
1277 |
|
fi |
1278 |
|
|
1279 |
|
ac_ext=c |
1282 |
|
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
1283 |
|
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
1284 |
|
|
1285 |
< |
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
1286 |
< |
*c*,-n*) ECHO_N= ECHO_C=' |
935 |
< |
' ECHO_T=' ' ;; |
936 |
< |
*c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
937 |
< |
*) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
938 |
< |
esac |
939 |
< |
echo "#! $SHELL" >conftest.sh |
940 |
< |
echo "exit 0" >>conftest.sh |
941 |
< |
chmod +x conftest.sh |
942 |
< |
if { (echo "$as_me:942: PATH=\".;.\"; conftest.sh") >&5 |
943 |
< |
(PATH=".;."; conftest.sh) 2>&5 |
944 |
< |
ac_status=$? |
945 |
< |
echo "$as_me:945: \$? = $ac_status" >&5 |
946 |
< |
(exit $ac_status); }; then |
947 |
< |
ac_path_separator=';' |
948 |
< |
else |
949 |
< |
ac_path_separator=: |
950 |
< |
fi |
951 |
< |
PATH_SEPARATOR="$ac_path_separator" |
952 |
< |
rm -f conftest.sh |
1285 |
> |
|
1286 |
> |
|
1287 |
|
|
1288 |
+ |
|
1289 |
+ |
|
1290 |
+ |
|
1291 |
+ |
|
1292 |
+ |
|
1293 |
+ |
|
1294 |
+ |
|
1295 |
+ |
|
1296 |
+ |
|
1297 |
+ |
|
1298 |
+ |
|
1299 |
+ |
|
1300 |
+ |
|
1301 |
+ |
|
1302 |
+ |
|
1303 |
+ |
|
1304 |
+ |
|
1305 |
+ |
|
1306 |
+ |
|
1307 |
+ |
|
1308 |
+ |
|
1309 |
+ |
|
1310 |
+ |
|
1311 |
|
ac_aux_dir= |
1312 |
|
for ac_dir in ac-tools $srcdir/ac-tools; do |
1313 |
|
if test -f $ac_dir/install-sh; then |
1325 |
|
fi |
1326 |
|
done |
1327 |
|
if test -z "$ac_aux_dir"; then |
1328 |
< |
{ { echo "$as_me:971: error: cannot find install-sh or install.sh in ac-tools $srcdir/ac-tools" >&5 |
1328 |
> |
{ { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ac-tools $srcdir/ac-tools" >&5 |
1329 |
|
echo "$as_me: error: cannot find install-sh or install.sh in ac-tools $srcdir/ac-tools" >&2;} |
1330 |
|
{ (exit 1); exit 1; }; } |
1331 |
|
fi |
1333 |
|
ac_config_sub="$SHELL $ac_aux_dir/config.sub" |
1334 |
|
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. |
1335 |
|
|
1336 |
+ |
|
1337 |
|
# This file is part of Autoconf. -*- Autoconf -*- |
1338 |
|
# Programming languages support. |
1339 |
|
# Copyright 2000, 2001 |
1384 |
|
# Written by Akim Demaille, Christian Marquardt, Martin Wilks (and probably |
1385 |
|
# many others). |
1386 |
|
|
1387 |
+ |
|
1388 |
|
# Table of Contents: |
1389 |
|
# |
1390 |
|
# 1. Language selection |
1420 |
|
# ACTION-IF-NOT-FOUND. |
1421 |
|
# _AC_LIST_MEMBER_IF |
1422 |
|
|
1423 |
+ |
|
1424 |
+ |
|
1425 |
|
# _AC_LINKER_OPTION(LINKER-OPTIONS, SHELL-VARIABLE) |
1426 |
|
# ------------------------------------------------- |
1427 |
|
# |
1452 |
|
# FIXME: Get rid of this macro. |
1453 |
|
# _AC_LINKER_OPTION |
1454 |
|
|
1455 |
+ |
|
1456 |
+ |
|
1457 |
|
## ----------------------- ## |
1458 |
|
## 1. Language selection. ## |
1459 |
|
## ----------------------- ## |
1465 |
|
# AC_LANG(Fortran 90) |
1466 |
|
# ------------------- |
1467 |
|
|
1468 |
+ |
|
1469 |
+ |
|
1470 |
|
# _AC_LANG_ABBREV(Fortran 90) |
1471 |
|
# --------------------------- |
1472 |
|
|
1473 |
+ |
|
1474 |
+ |
|
1475 |
|
# ----------------------------- # |
1476 |
|
# 1c. The Fortran 95 language. # |
1477 |
|
# ----------------------------- # |
1479 |
|
# AC_LANG(Fortran 95) |
1480 |
|
# ------------------- |
1481 |
|
|
1482 |
+ |
|
1483 |
+ |
|
1484 |
|
# _AC_LANG_ABBREV(Fortran 95) |
1485 |
|
# --------------------------- |
1486 |
|
|
1487 |
+ |
|
1488 |
+ |
|
1489 |
|
## ---------------------- ## |
1490 |
|
## 2.Producing programs. ## |
1491 |
|
## ---------------------- ## |
1497 |
|
# AC_LANG_SOURCE(Fortran 90)(BODY) |
1498 |
|
# -------------------------------- |
1499 |
|
|
1500 |
+ |
|
1501 |
+ |
|
1502 |
|
# AC_LANG_PROGRAM(Fortran 90)([PROLOGUE], [BODY]) |
1503 |
|
# ----------------------------------------------- |
1504 |
|
|
1505 |
+ |
|
1506 |
|
# AC_LANG_CALL(Fortran 90)(PROLOGUE, FUNCTION) |
1507 |
|
# -------------------------------------------- |
1508 |
|
|
1509 |
+ |
|
1510 |
+ |
|
1511 |
|
# ------------------------ # |
1512 |
|
# 2c. Fortran 95 sources. # |
1513 |
|
# ------------------------ # |
1515 |
|
# AC_LANG_SOURCE(Fortran 95)(BODY) |
1516 |
|
# -------------------------------- |
1517 |
|
|
1518 |
+ |
|
1519 |
|
# AC_LANG_PROGRAM(Fortran 95)([PROLOGUE], [BODY]) |
1520 |
|
# ----------------------------------------------- |
1521 |
|
|
1522 |
+ |
|
1523 |
|
# AC_LANG_CALL(Fortran 95)(PROLOGUE, FUNCTION) |
1524 |
|
# -------------------------------------------- |
1525 |
|
|
1526 |
+ |
|
1527 |
+ |
|
1528 |
|
## -------------------------------------------- ## |
1529 |
|
## 3. Looking for Compilers and Preprocessors. ## |
1530 |
|
## -------------------------------------------- ## |
1533 |
|
# 3b. The Fortran 90 compiler. # |
1534 |
|
# ----------------------------- # |
1535 |
|
|
1536 |
+ |
|
1537 |
|
# AC_LANG_PREPROC(Fortran 90) |
1538 |
|
# --------------------------- |
1539 |
|
# Find the Fortran 90 preprocessor. Must be AC_DEFUN'd to be AC_REQUIRE'able. |
1540 |
|
|
1541 |
+ |
|
1542 |
+ |
|
1543 |
|
# AC_LANG_COMPILER(Fortran 90) |
1544 |
|
# ---------------------------- |
1545 |
|
# Find the Fortran 90 compiler. Must be AC_DEFUN'd to be |
1546 |
|
# AC_REQUIRE'able. |
1547 |
|
|
1548 |
+ |
|
1549 |
+ |
|
1550 |
|
# AC_PROG_F90([COMPILERS...]) |
1551 |
|
# --------------------------- |
1552 |
|
# COMPILERS is a space separated list of Fortran 90 compilers to search |
1563 |
|
# fort is the Compaq Fortran 90 (now 95) compiler for Tru64 and Linux/Alpha. |
1564 |
|
# AC_PROG_F90 |
1565 |
|
|
1566 |
+ |
|
1567 |
|
# ----------------------------- # |
1568 |
|
# 3c. The Fortran 95 compiler. # |
1569 |
|
# ----------------------------- # |
1570 |
|
|
1571 |
+ |
|
1572 |
|
# AC_LANG_PREPROC(Fortran 95) |
1573 |
|
# --------------------------- |
1574 |
|
# Find the Fortran 95 preprocessor. Must be AC_DEFUN'd to be AC_REQUIRE'able. |
1575 |
|
|
1576 |
+ |
|
1577 |
+ |
|
1578 |
|
# AC_LANG_COMPILER(Fortran 95) |
1579 |
|
# ---------------------------- |
1580 |
|
# Find the Fortran 95 compiler. Must be AC_DEFUN'd to be |
1581 |
|
# AC_REQUIRE'able. |
1582 |
|
|
1583 |
+ |
|
1584 |
+ |
|
1585 |
|
# AC_PROG_F95([COMPILERS...]) |
1586 |
|
# --------------------------- |
1587 |
|
# COMPILERS is a space separated list of Fortran 95 compilers to search |
1595 |
|
# fort is the Compaq Fortran 90 (now 95) compiler for Tru64 and Linux/Alpha. |
1596 |
|
# AC_PROG_F95 |
1597 |
|
|
1598 |
+ |
|
1599 |
|
## ------------------------------- ## |
1600 |
|
## 4. Compilers' characteristics. ## |
1601 |
|
## ------------------------------- ## |
1602 |
|
|
1603 |
+ |
|
1604 |
|
# ---------------------------------------- # |
1605 |
|
# 4b. Fortan 90 compiler characteristics. # |
1606 |
|
# ---------------------------------------- # |
1607 |
|
|
1608 |
+ |
|
1609 |
|
# _AC_PROG_F90_V_OUTPUT([FLAG = $ac_cv_prog_f90_v]) |
1610 |
|
# ------------------------------------------------- |
1611 |
|
# Link a trivial Fortran program, compiling with a verbose output FLAG |
1615 |
|
# so that any link flags that are echoed by the compiler appear as |
1616 |
|
# space-separated items. |
1617 |
|
# _AC_PROG_F90_V_OUTPUT |
1618 |
+ |
|
1619 |
|
|
1620 |
|
# _AC_PROG_F90_V |
1621 |
|
# -------------- |
1626 |
|
# Some compilers don't accept -v (Lahey: -verbose, xlf: -V, Fujitsu: -###) |
1627 |
|
# _AC_PROG_F90_V |
1628 |
|
|
1629 |
+ |
|
1630 |
|
# AC_F90_LIBRARY_LDFLAGS |
1631 |
|
# ---------------------- |
1632 |
|
# |
1654 |
|
# This macro was copied from the Fortran 77 version by Matthew D. Langston. |
1655 |
|
# AC_F90_LIBRARY_LDFLAGS |
1656 |
|
|
1657 |
+ |
|
1658 |
|
# _AC_F90_NAME_MANGLING |
1659 |
|
# --------------------- |
1660 |
|
# Test for the name mangling scheme used by the Fortran 90 compiler. |
1674 |
|
|
1675 |
|
# The replacement is empty. |
1676 |
|
|
1677 |
+ |
|
1678 |
+ |
|
1679 |
|
# AC_F90_WRAPPERS |
1680 |
|
# --------------- |
1681 |
|
# Defines C macros F90_FUNC(name,NAME) and F90_FUNC_(name,NAME) to |
1684 |
|
# scheme used by the Fortran 90 compiler. |
1685 |
|
# AC_F90_WRAPPERS |
1686 |
|
|
1687 |
+ |
|
1688 |
|
# AC_F90_FUNC(NAME, [SHELLVAR = NAME]) |
1689 |
|
# ------------------------------------ |
1690 |
|
# For a Fortran subroutine of given NAME, define a shell variable |
1692 |
|
# argument is not supplied, it defaults to NAME. |
1693 |
|
# AC_F90_FUNC |
1694 |
|
|
1695 |
+ |
|
1696 |
|
# ---------------------------------------- # |
1697 |
|
# 4c. Fortan 95 compiler characteristics. # |
1698 |
|
# ---------------------------------------- # |
1699 |
|
|
1700 |
+ |
|
1701 |
|
# _AC_PROG_F95_V_OUTPUT([FLAG = $ac_cv_prog_f95_v]) |
1702 |
|
# ------------------------------------------------- |
1703 |
|
# Link a trivial Fortran program, compiling with a verbose output FLAG |
1708 |
|
# space-separated items. |
1709 |
|
# _AC_PROG_F95_V_OUTPUT |
1710 |
|
|
1711 |
+ |
|
1712 |
|
# _AC_PROG_F95_V |
1713 |
|
# -------------- |
1714 |
|
# |
1718 |
|
# Some compilers don't accept -v (Lahey: -verbose, xlf: -V, Fujitsu: -###) |
1719 |
|
# _AC_PROG_F95_V |
1720 |
|
|
1721 |
+ |
|
1722 |
|
# AC_F95_LIBRARY_LDFLAGS |
1723 |
|
# ---------------------- |
1724 |
|
# |
1746 |
|
# This macro was copied from the Fortran 77 version by Matthew D. Langston. |
1747 |
|
# AC_F95_LIBRARY_LDFLAGS |
1748 |
|
|
1749 |
+ |
|
1750 |
|
# _AC_F95_NAME_MANGLING |
1751 |
|
# --------------------- |
1752 |
|
# Test for the name mangling scheme used by the Fortran 95 compiler. |
1766 |
|
|
1767 |
|
# The replacement is empty. |
1768 |
|
|
1769 |
+ |
|
1770 |
+ |
|
1771 |
|
# AC_F95_WRAPPERS |
1772 |
|
# --------------- |
1773 |
|
# Defines C macros F95_FUNC(name,NAME) and F95_FUNC_(name,NAME) to |
1776 |
|
# scheme used by the Fortran 95 compiler. |
1777 |
|
# AC_F95_WRAPPERS |
1778 |
|
|
1779 |
+ |
|
1780 |
|
# AC_F95_FUNC(NAME, [SHELLVAR = NAME]) |
1781 |
|
# ------------------------------------ |
1782 |
|
# For a Fortran subroutine of given NAME, define a shell variable |
1784 |
|
# argument is not supplied, it defaults to NAME. |
1785 |
|
# AC_F95_FUNC |
1786 |
|
|
1787 |
+ |
|
1788 |
+ |
|
1789 |
+ |
|
1790 |
+ |
|
1791 |
+ |
|
1792 |
+ |
|
1793 |
+ |
|
1794 |
+ |
|
1795 |
+ |
|
1796 |
+ |
|
1797 |
+ |
|
1798 |
+ |
|
1799 |
+ |
|
1800 |
+ |
|
1801 |
+ |
|
1802 |
+ |
|
1803 |
+ |
|
1804 |
+ |
|
1805 |
+ |
|
1806 |
+ |
|
1807 |
+ |
|
1808 |
+ |
|
1809 |
+ |
|
1810 |
+ |
|
1811 |
+ |
|
1812 |
+ |
|
1813 |
+ |
|
1814 |
+ |
|
1815 |
+ |
|
1816 |
+ |
|
1817 |
+ |
|
1818 |
+ |
|
1819 |
+ |
|
1820 |
+ |
|
1821 |
+ |
|
1822 |
+ |
|
1823 |
+ |
|
1824 |
+ |
|
1825 |
+ |
|
1826 |
+ |
|
1827 |
+ |
|
1828 |
+ |
|
1829 |
+ |
|
1830 |
+ |
|
1831 |
+ |
|
1832 |
+ |
|
1833 |
+ |
|
1834 |
+ |
|
1835 |
+ |
|
1836 |
+ |
|
1837 |
|
# set program name |
1838 |
|
PROGNAME="oopse" |
1839 |
|
|
1840 |
+ |
|
1841 |
|
# there are two ways to do debugging. One with the --enable-debug flag |
1842 |
|
# and one using the DEBUG environment variable |
1843 |
|
|
1849 |
|
fi; |
1850 |
|
if test "${DEBUG}"; then |
1851 |
|
|
1852 |
< |
cat >>confdefs.h <<\EOF |
1852 |
> |
cat >>confdefs.h <<\_ACEOF |
1853 |
|
#define debug 1 |
1854 |
< |
EOF |
1854 |
> |
_ACEOF |
1855 |
|
|
1856 |
|
msg="$msg, debug mode" |
1857 |
|
fi |
1858 |
|
|
1859 |
+ |
|
1860 |
|
# who am i |
1861 |
|
# Make sure we can run config.sub. |
1862 |
|
$ac_config_sub sun4 >/dev/null 2>&1 || |
1863 |
< |
{ { echo "$as_me:1403: error: cannot run $ac_config_sub" >&5 |
1863 |
> |
{ { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 |
1864 |
|
echo "$as_me: error: cannot run $ac_config_sub" >&2;} |
1865 |
|
{ (exit 1); exit 1; }; } |
1866 |
|
|
1867 |
< |
echo "$as_me:1407: checking build system type" >&5 |
1867 |
> |
echo "$as_me:$LINENO: checking build system type" >&5 |
1868 |
|
echo $ECHO_N "checking build system type... $ECHO_C" >&6 |
1869 |
|
if test "${ac_cv_build+set}" = set; then |
1870 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
1873 |
|
test -z "$ac_cv_build_alias" && |
1874 |
|
ac_cv_build_alias=`$ac_config_guess` |
1875 |
|
test -z "$ac_cv_build_alias" && |
1876 |
< |
{ { echo "$as_me:1416: error: cannot guess build type; you must specify one" >&5 |
1876 |
> |
{ { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
1877 |
|
echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
1878 |
|
{ (exit 1); exit 1; }; } |
1879 |
|
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || |
1880 |
< |
{ { echo "$as_me:1420: error: $ac_config_sub $ac_cv_build_alias failed." >&5 |
1881 |
< |
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;} |
1880 |
> |
{ { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 |
1881 |
> |
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} |
1882 |
|
{ (exit 1); exit 1; }; } |
1883 |
|
|
1884 |
|
fi |
1885 |
< |
echo "$as_me:1425: result: $ac_cv_build" >&5 |
1885 |
> |
echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
1886 |
|
echo "${ECHO_T}$ac_cv_build" >&6 |
1887 |
|
build=$ac_cv_build |
1888 |
|
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
1889 |
|
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
1890 |
|
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
1891 |
|
|
1892 |
< |
echo "$as_me:1432: checking host system type" >&5 |
1892 |
> |
|
1893 |
> |
echo "$as_me:$LINENO: checking host system type" >&5 |
1894 |
|
echo $ECHO_N "checking host system type... $ECHO_C" >&6 |
1895 |
|
if test "${ac_cv_host+set}" = set; then |
1896 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
1899 |
|
test -z "$ac_cv_host_alias" && |
1900 |
|
ac_cv_host_alias=$ac_cv_build_alias |
1901 |
|
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || |
1902 |
< |
{ { echo "$as_me:1441: error: $ac_config_sub $ac_cv_host_alias failed" >&5 |
1902 |
> |
{ { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 |
1903 |
|
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} |
1904 |
|
{ (exit 1); exit 1; }; } |
1905 |
|
|
1906 |
|
fi |
1907 |
< |
echo "$as_me:1446: result: $ac_cv_host" >&5 |
1907 |
> |
echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
1908 |
|
echo "${ECHO_T}$ac_cv_host" >&6 |
1909 |
|
host=$ac_cv_host |
1910 |
|
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
1911 |
|
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
1912 |
|
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
1913 |
|
|
1914 |
+ |
|
1915 |
+ |
|
1916 |
|
ac_ext=c |
1917 |
|
ac_cpp='$CPP $CPPFLAGS' |
1918 |
|
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
1923 |
|
do |
1924 |
|
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
1925 |
|
set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
1926 |
< |
echo "$as_me:1463: checking for $ac_word" >&5 |
1926 |
> |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1927 |
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
1928 |
|
if test "${ac_cv_prog_CC+set}" = set; then |
1929 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
1931 |
|
if test -n "$CC"; then |
1932 |
|
ac_cv_prog_CC="$CC" # Let the user override the test. |
1933 |
|
else |
1934 |
< |
ac_save_IFS=$IFS; IFS=$ac_path_separator |
1935 |
< |
ac_dummy="$PATH" |
1936 |
< |
for ac_dir in $ac_dummy; do |
1937 |
< |
IFS=$ac_save_IFS |
1938 |
< |
test -z "$ac_dir" && ac_dir=. |
1939 |
< |
$as_executable_p "$ac_dir/$ac_word" || continue |
1940 |
< |
ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
1941 |
< |
echo "$as_me:1478: found $ac_dir/$ac_word" >&5 |
1942 |
< |
break |
1934 |
> |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1935 |
> |
for as_dir in $PATH |
1936 |
> |
do |
1937 |
> |
IFS=$as_save_IFS |
1938 |
> |
test -z "$as_dir" && as_dir=. |
1939 |
> |
for ac_exec_ext in '' $ac_executable_extensions; do |
1940 |
> |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1941 |
> |
ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
1942 |
> |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1943 |
> |
break 2 |
1944 |
> |
fi |
1945 |
|
done |
1946 |
+ |
done |
1947 |
|
|
1948 |
|
fi |
1949 |
|
fi |
1950 |
|
CC=$ac_cv_prog_CC |
1951 |
|
if test -n "$CC"; then |
1952 |
< |
echo "$as_me:1486: result: $CC" >&5 |
1952 |
> |
echo "$as_me:$LINENO: result: $CC" >&5 |
1953 |
|
echo "${ECHO_T}$CC" >&6 |
1954 |
|
else |
1955 |
< |
echo "$as_me:1489: result: no" >&5 |
1955 |
> |
echo "$as_me:$LINENO: result: no" >&5 |
1956 |
|
echo "${ECHO_T}no" >&6 |
1957 |
|
fi |
1958 |
|
|
1965 |
|
do |
1966 |
|
# Extract the first word of "$ac_prog", so it can be a program name with args. |
1967 |
|
set dummy $ac_prog; ac_word=$2 |
1968 |
< |
echo "$as_me:1502: checking for $ac_word" >&5 |
1968 |
> |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1969 |
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
1970 |
|
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
1971 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
1973 |
|
if test -n "$ac_ct_CC"; then |
1974 |
|
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
1975 |
|
else |
1976 |
< |
ac_save_IFS=$IFS; IFS=$ac_path_separator |
1977 |
< |
ac_dummy="$PATH" |
1978 |
< |
for ac_dir in $ac_dummy; do |
1979 |
< |
IFS=$ac_save_IFS |
1980 |
< |
test -z "$ac_dir" && ac_dir=. |
1981 |
< |
$as_executable_p "$ac_dir/$ac_word" || continue |
1982 |
< |
ac_cv_prog_ac_ct_CC="$ac_prog" |
1983 |
< |
echo "$as_me:1517: found $ac_dir/$ac_word" >&5 |
1984 |
< |
break |
1976 |
> |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1977 |
> |
for as_dir in $PATH |
1978 |
> |
do |
1979 |
> |
IFS=$as_save_IFS |
1980 |
> |
test -z "$as_dir" && as_dir=. |
1981 |
> |
for ac_exec_ext in '' $ac_executable_extensions; do |
1982 |
> |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1983 |
> |
ac_cv_prog_ac_ct_CC="$ac_prog" |
1984 |
> |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1985 |
> |
break 2 |
1986 |
> |
fi |
1987 |
|
done |
1988 |
+ |
done |
1989 |
|
|
1990 |
|
fi |
1991 |
|
fi |
1992 |
|
ac_ct_CC=$ac_cv_prog_ac_ct_CC |
1993 |
|
if test -n "$ac_ct_CC"; then |
1994 |
< |
echo "$as_me:1525: result: $ac_ct_CC" >&5 |
1994 |
> |
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
1995 |
|
echo "${ECHO_T}$ac_ct_CC" >&6 |
1996 |
|
else |
1997 |
< |
echo "$as_me:1528: result: no" >&5 |
1997 |
> |
echo "$as_me:$LINENO: result: no" >&5 |
1998 |
|
echo "${ECHO_T}no" >&6 |
1999 |
|
fi |
2000 |
|
|
2004 |
|
CC=$ac_ct_CC |
2005 |
|
fi |
2006 |
|
|
2007 |
< |
test -z "$CC" && { { echo "$as_me:1538: error: no acceptable cc found in \$PATH" >&5 |
2008 |
< |
echo "$as_me: error: no acceptable cc found in \$PATH" >&2;} |
2007 |
> |
|
2008 |
> |
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
2009 |
> |
See \`config.log' for more details." >&5 |
2010 |
> |
echo "$as_me: error: no acceptable C compiler found in \$PATH |
2011 |
> |
See \`config.log' for more details." >&2;} |
2012 |
|
{ (exit 1); exit 1; }; } |
2013 |
|
|
2014 |
+ |
# Provide some information about the compiler. |
2015 |
+ |
echo "$as_me:$LINENO:" \ |
2016 |
+ |
"checking for C compiler version" >&5 |
2017 |
+ |
ac_compiler=`set X $ac_compile; echo $2` |
2018 |
+ |
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
2019 |
+ |
(eval $ac_compiler --version </dev/null >&5) 2>&5 |
2020 |
+ |
ac_status=$? |
2021 |
+ |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2022 |
+ |
(exit $ac_status); } |
2023 |
+ |
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
2024 |
+ |
(eval $ac_compiler -v </dev/null >&5) 2>&5 |
2025 |
+ |
ac_status=$? |
2026 |
+ |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2027 |
+ |
(exit $ac_status); } |
2028 |
+ |
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
2029 |
+ |
(eval $ac_compiler -V </dev/null >&5) 2>&5 |
2030 |
+ |
ac_status=$? |
2031 |
+ |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2032 |
+ |
(exit $ac_status); } |
2033 |
+ |
|
2034 |
|
cat >conftest.$ac_ext <<_ACEOF |
2035 |
< |
#line 1543 "configure" |
2036 |
< |
#include "confdefs.h" |
2035 |
> |
#line $LINENO "configure" |
2036 |
> |
/* confdefs.h. */ |
2037 |
> |
_ACEOF |
2038 |
> |
cat confdefs.h >>conftest.$ac_ext |
2039 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
2040 |
> |
/* end confdefs.h. */ |
2041 |
|
|
2042 |
|
int |
2043 |
|
main () |
2048 |
|
} |
2049 |
|
_ACEOF |
2050 |
|
ac_clean_files_save=$ac_clean_files |
2051 |
< |
ac_clean_files="$ac_clean_files a.out a.exe" |
2051 |
> |
ac_clean_files="$ac_clean_files a.out a.exe b.out" |
2052 |
|
# Try to create an executable without -o first, disregard a.out. |
2053 |
< |
# It will help us diagnose broken compiler, and finding out an intuition |
2053 |
> |
# It will help us diagnose broken compilers, and finding out an intuition |
2054 |
|
# of exeext. |
2055 |
< |
echo "$as_me:1559: checking for C compiler default output" >&5 |
2055 |
> |
echo "$as_me:$LINENO: checking for C compiler default output" >&5 |
2056 |
|
echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6 |
2057 |
|
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
2058 |
< |
if { (eval echo "$as_me:1562: \"$ac_link_default\"") >&5 |
2058 |
> |
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
2059 |
|
(eval $ac_link_default) 2>&5 |
2060 |
|
ac_status=$? |
2061 |
< |
echo "$as_me:1565: \$? = $ac_status" >&5 |
2061 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2062 |
|
(exit $ac_status); }; then |
2063 |
< |
for ac_file in `ls a.exe conftest.exe a.* conftest conftest.* 2>/dev/null`; do |
2063 |
> |
# Find the output, starting from the most likely. This scheme is |
2064 |
> |
# not robust to junk in `.', hence go to wildcards (a.*) only as a last |
2065 |
> |
# resort. |
2066 |
> |
|
2067 |
> |
# Be careful to initialize this variable, since it used to be cached. |
2068 |
> |
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
2069 |
> |
ac_cv_exeext= |
2070 |
> |
# b.out is created by i960 compilers. |
2071 |
> |
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out |
2072 |
> |
do |
2073 |
> |
test -f "$ac_file" || continue |
2074 |
|
case $ac_file in |
2075 |
< |
*.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;; |
2076 |
< |
a.out ) # We found the default executable, but exeext='' is most |
2077 |
< |
# certainly right. |
2078 |
< |
break;; |
2079 |
< |
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
2080 |
< |
export ac_cv_exeext |
2081 |
< |
break;; |
2082 |
< |
* ) break;; |
2075 |
> |
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) |
2076 |
> |
;; |
2077 |
> |
conftest.$ac_ext ) |
2078 |
> |
# This is the source file. |
2079 |
> |
;; |
2080 |
> |
[ab].out ) |
2081 |
> |
# We found the default executable, but exeext='' is most |
2082 |
> |
# certainly right. |
2083 |
> |
break;; |
2084 |
> |
*.* ) |
2085 |
> |
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
2086 |
> |
# FIXME: I believe we export ac_cv_exeext for Libtool, |
2087 |
> |
# but it would be cool to find out if it's true. Does anybody |
2088 |
> |
# maintain Libtool? --akim. |
2089 |
> |
export ac_cv_exeext |
2090 |
> |
break;; |
2091 |
> |
* ) |
2092 |
> |
break;; |
2093 |
|
esac |
2094 |
|
done |
2095 |
|
else |
2096 |
|
echo "$as_me: failed program was:" >&5 |
2097 |
< |
cat conftest.$ac_ext >&5 |
2098 |
< |
{ { echo "$as_me:1582: error: C compiler cannot create executables" >&5 |
2099 |
< |
echo "$as_me: error: C compiler cannot create executables" >&2;} |
2097 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
2098 |
> |
|
2099 |
> |
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables |
2100 |
> |
See \`config.log' for more details." >&5 |
2101 |
> |
echo "$as_me: error: C compiler cannot create executables |
2102 |
> |
See \`config.log' for more details." >&2;} |
2103 |
|
{ (exit 77); exit 77; }; } |
2104 |
|
fi |
2105 |
|
|
2106 |
|
ac_exeext=$ac_cv_exeext |
2107 |
< |
echo "$as_me:1588: result: $ac_file" >&5 |
2107 |
> |
echo "$as_me:$LINENO: result: $ac_file" >&5 |
2108 |
|
echo "${ECHO_T}$ac_file" >&6 |
2109 |
|
|
2110 |
|
# Check the compiler produces executables we can run. If not, either |
2111 |
|
# the compiler is broken, or we cross compile. |
2112 |
< |
echo "$as_me:1593: checking whether the C compiler works" >&5 |
2112 |
> |
echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
2113 |
|
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 |
2114 |
|
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
2115 |
|
# If not cross compiling, check that we can run a simple program. |
2116 |
|
if test "$cross_compiling" != yes; then |
2117 |
|
if { ac_try='./$ac_file' |
2118 |
< |
{ (eval echo "$as_me:1599: \"$ac_try\"") >&5 |
2118 |
> |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2119 |
|
(eval $ac_try) 2>&5 |
2120 |
|
ac_status=$? |
2121 |
< |
echo "$as_me:1602: \$? = $ac_status" >&5 |
2121 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2122 |
|
(exit $ac_status); }; }; then |
2123 |
|
cross_compiling=no |
2124 |
|
else |
2125 |
|
if test "$cross_compiling" = maybe; then |
2126 |
|
cross_compiling=yes |
2127 |
|
else |
2128 |
< |
{ { echo "$as_me:1609: error: cannot run C compiled programs. |
2129 |
< |
If you meant to cross compile, use \`--host'." >&5 |
2128 |
> |
{ { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
2129 |
> |
If you meant to cross compile, use \`--host'. |
2130 |
> |
See \`config.log' for more details." >&5 |
2131 |
|
echo "$as_me: error: cannot run C compiled programs. |
2132 |
< |
If you meant to cross compile, use \`--host'." >&2;} |
2132 |
> |
If you meant to cross compile, use \`--host'. |
2133 |
> |
See \`config.log' for more details." >&2;} |
2134 |
|
{ (exit 1); exit 1; }; } |
2135 |
|
fi |
2136 |
|
fi |
2137 |
|
fi |
2138 |
< |
echo "$as_me:1617: result: yes" >&5 |
2138 |
> |
echo "$as_me:$LINENO: result: yes" >&5 |
2139 |
|
echo "${ECHO_T}yes" >&6 |
2140 |
|
|
2141 |
< |
rm -f a.out a.exe conftest$ac_cv_exeext |
2141 |
> |
rm -f a.out a.exe conftest$ac_cv_exeext b.out |
2142 |
|
ac_clean_files=$ac_clean_files_save |
2143 |
|
# Check the compiler produces executables we can run. If not, either |
2144 |
|
# the compiler is broken, or we cross compile. |
2145 |
< |
echo "$as_me:1624: checking whether we are cross compiling" >&5 |
2145 |
> |
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
2146 |
|
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
2147 |
< |
echo "$as_me:1626: result: $cross_compiling" >&5 |
2147 |
> |
echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
2148 |
|
echo "${ECHO_T}$cross_compiling" >&6 |
2149 |
|
|
2150 |
< |
echo "$as_me:1629: checking for executable suffix" >&5 |
2151 |
< |
echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6 |
2152 |
< |
if { (eval echo "$as_me:1631: \"$ac_link\"") >&5 |
2150 |
> |
echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
2151 |
> |
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
2152 |
> |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
2153 |
|
(eval $ac_link) 2>&5 |
2154 |
|
ac_status=$? |
2155 |
< |
echo "$as_me:1634: \$? = $ac_status" >&5 |
2155 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2156 |
|
(exit $ac_status); }; then |
2157 |
|
# If both `conftest.exe' and `conftest' are `present' (well, observable) |
2158 |
|
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
2159 |
|
# work properly (i.e., refer to `conftest.exe'), while it won't with |
2160 |
|
# `rm'. |
2161 |
< |
for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do |
2161 |
> |
for ac_file in conftest.exe conftest conftest.*; do |
2162 |
> |
test -f "$ac_file" || continue |
2163 |
|
case $ac_file in |
2164 |
< |
*.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;; |
2164 |
> |
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; |
2165 |
|
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
2166 |
|
export ac_cv_exeext |
2167 |
|
break;; |
2169 |
|
esac |
2170 |
|
done |
2171 |
|
else |
2172 |
< |
{ { echo "$as_me:1650: error: cannot compute EXEEXT: cannot compile and link" >&5 |
2173 |
< |
echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;} |
2172 |
> |
{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
2173 |
> |
See \`config.log' for more details." >&5 |
2174 |
> |
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
2175 |
> |
See \`config.log' for more details." >&2;} |
2176 |
|
{ (exit 1); exit 1; }; } |
2177 |
|
fi |
2178 |
|
|
2179 |
|
rm -f conftest$ac_cv_exeext |
2180 |
< |
echo "$as_me:1656: result: $ac_cv_exeext" >&5 |
2180 |
> |
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
2181 |
|
echo "${ECHO_T}$ac_cv_exeext" >&6 |
2182 |
|
|
2183 |
|
rm -f conftest.$ac_ext |
2184 |
|
EXEEXT=$ac_cv_exeext |
2185 |
|
ac_exeext=$EXEEXT |
2186 |
< |
echo "$as_me:1662: checking for object suffix" >&5 |
2187 |
< |
echo $ECHO_N "checking for object suffix... $ECHO_C" >&6 |
2186 |
> |
echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
2187 |
> |
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 |
2188 |
|
if test "${ac_cv_objext+set}" = set; then |
2189 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
2190 |
|
else |
2191 |
|
cat >conftest.$ac_ext <<_ACEOF |
2192 |
< |
#line 1668 "configure" |
2193 |
< |
#include "confdefs.h" |
2192 |
> |
#line $LINENO "configure" |
2193 |
> |
/* confdefs.h. */ |
2194 |
> |
_ACEOF |
2195 |
> |
cat confdefs.h >>conftest.$ac_ext |
2196 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
2197 |
> |
/* end confdefs.h. */ |
2198 |
|
|
2199 |
|
int |
2200 |
|
main () |
2205 |
|
} |
2206 |
|
_ACEOF |
2207 |
|
rm -f conftest.o conftest.obj |
2208 |
< |
if { (eval echo "$as_me:1680: \"$ac_compile\"") >&5 |
2208 |
> |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2209 |
|
(eval $ac_compile) 2>&5 |
2210 |
|
ac_status=$? |
2211 |
< |
echo "$as_me:1683: \$? = $ac_status" >&5 |
2211 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2212 |
|
(exit $ac_status); }; then |
2213 |
|
for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do |
2214 |
|
case $ac_file in |
2215 |
< |
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;; |
2215 |
> |
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; |
2216 |
|
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
2217 |
|
break;; |
2218 |
|
esac |
2219 |
|
done |
2220 |
|
else |
2221 |
|
echo "$as_me: failed program was:" >&5 |
2222 |
< |
cat conftest.$ac_ext >&5 |
2223 |
< |
{ { echo "$as_me:1695: error: cannot compute OBJEXT: cannot compile" >&5 |
2224 |
< |
echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;} |
2222 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
2223 |
> |
|
2224 |
> |
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
2225 |
> |
See \`config.log' for more details." >&5 |
2226 |
> |
echo "$as_me: error: cannot compute suffix of object files: cannot compile |
2227 |
> |
See \`config.log' for more details." >&2;} |
2228 |
|
{ (exit 1); exit 1; }; } |
2229 |
|
fi |
2230 |
|
|
2231 |
|
rm -f conftest.$ac_cv_objext conftest.$ac_ext |
2232 |
|
fi |
2233 |
< |
echo "$as_me:1702: result: $ac_cv_objext" >&5 |
2233 |
> |
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
2234 |
|
echo "${ECHO_T}$ac_cv_objext" >&6 |
2235 |
|
OBJEXT=$ac_cv_objext |
2236 |
|
ac_objext=$OBJEXT |
2237 |
< |
echo "$as_me:1706: checking whether we are using the GNU C compiler" >&5 |
2237 |
> |
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
2238 |
|
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
2239 |
|
if test "${ac_cv_c_compiler_gnu+set}" = set; then |
2240 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
2241 |
|
else |
2242 |
|
cat >conftest.$ac_ext <<_ACEOF |
2243 |
< |
#line 1712 "configure" |
2244 |
< |
#include "confdefs.h" |
2243 |
> |
#line $LINENO "configure" |
2244 |
> |
/* confdefs.h. */ |
2245 |
> |
_ACEOF |
2246 |
> |
cat confdefs.h >>conftest.$ac_ext |
2247 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
2248 |
> |
/* end confdefs.h. */ |
2249 |
|
|
2250 |
|
int |
2251 |
|
main () |
2259 |
|
} |
2260 |
|
_ACEOF |
2261 |
|
rm -f conftest.$ac_objext |
2262 |
< |
if { (eval echo "$as_me:1727: \"$ac_compile\"") >&5 |
2262 |
> |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2263 |
|
(eval $ac_compile) 2>&5 |
2264 |
|
ac_status=$? |
2265 |
< |
echo "$as_me:1730: \$? = $ac_status" >&5 |
2265 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2266 |
|
(exit $ac_status); } && |
2267 |
|
{ ac_try='test -s conftest.$ac_objext' |
2268 |
< |
{ (eval echo "$as_me:1733: \"$ac_try\"") >&5 |
2268 |
> |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2269 |
|
(eval $ac_try) 2>&5 |
2270 |
|
ac_status=$? |
2271 |
< |
echo "$as_me:1736: \$? = $ac_status" >&5 |
2271 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2272 |
|
(exit $ac_status); }; }; then |
2273 |
|
ac_compiler_gnu=yes |
2274 |
|
else |
2275 |
|
echo "$as_me: failed program was:" >&5 |
2276 |
< |
cat conftest.$ac_ext >&5 |
2276 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
2277 |
> |
|
2278 |
|
ac_compiler_gnu=no |
2279 |
|
fi |
2280 |
|
rm -f conftest.$ac_objext conftest.$ac_ext |
2281 |
|
ac_cv_c_compiler_gnu=$ac_compiler_gnu |
2282 |
|
|
2283 |
|
fi |
2284 |
< |
echo "$as_me:1748: result: $ac_cv_c_compiler_gnu" >&5 |
2284 |
> |
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
2285 |
|
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
2286 |
|
GCC=`test $ac_compiler_gnu = yes && echo yes` |
2287 |
|
ac_test_CFLAGS=${CFLAGS+set} |
2288 |
|
ac_save_CFLAGS=$CFLAGS |
2289 |
|
CFLAGS="-g" |
2290 |
< |
echo "$as_me:1754: checking whether $CC accepts -g" >&5 |
2290 |
> |
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
2291 |
|
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
2292 |
|
if test "${ac_cv_prog_cc_g+set}" = set; then |
2293 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
2294 |
|
else |
2295 |
|
cat >conftest.$ac_ext <<_ACEOF |
2296 |
< |
#line 1760 "configure" |
2297 |
< |
#include "confdefs.h" |
2296 |
> |
#line $LINENO "configure" |
2297 |
> |
/* confdefs.h. */ |
2298 |
> |
_ACEOF |
2299 |
> |
cat confdefs.h >>conftest.$ac_ext |
2300 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
2301 |
> |
/* end confdefs.h. */ |
2302 |
|
|
2303 |
|
int |
2304 |
|
main () |
2309 |
|
} |
2310 |
|
_ACEOF |
2311 |
|
rm -f conftest.$ac_objext |
2312 |
< |
if { (eval echo "$as_me:1772: \"$ac_compile\"") >&5 |
2312 |
> |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2313 |
|
(eval $ac_compile) 2>&5 |
2314 |
|
ac_status=$? |
2315 |
< |
echo "$as_me:1775: \$? = $ac_status" >&5 |
2315 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2316 |
|
(exit $ac_status); } && |
2317 |
|
{ ac_try='test -s conftest.$ac_objext' |
2318 |
< |
{ (eval echo "$as_me:1778: \"$ac_try\"") >&5 |
2318 |
> |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2319 |
|
(eval $ac_try) 2>&5 |
2320 |
|
ac_status=$? |
2321 |
< |
echo "$as_me:1781: \$? = $ac_status" >&5 |
2321 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2322 |
|
(exit $ac_status); }; }; then |
2323 |
|
ac_cv_prog_cc_g=yes |
2324 |
|
else |
2325 |
|
echo "$as_me: failed program was:" >&5 |
2326 |
< |
cat conftest.$ac_ext >&5 |
2326 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
2327 |
> |
|
2328 |
|
ac_cv_prog_cc_g=no |
2329 |
|
fi |
2330 |
|
rm -f conftest.$ac_objext conftest.$ac_ext |
2331 |
|
fi |
2332 |
< |
echo "$as_me:1791: result: $ac_cv_prog_cc_g" >&5 |
2332 |
> |
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
2333 |
|
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
2334 |
|
if test "$ac_test_CFLAGS" = set; then |
2335 |
|
CFLAGS=$ac_save_CFLAGS |
2345 |
|
else |
2346 |
|
CFLAGS= |
2347 |
|
fi |
2348 |
+ |
fi |
2349 |
+ |
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
2350 |
+ |
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
2351 |
+ |
if test "${ac_cv_prog_cc_stdc+set}" = set; then |
2352 |
+ |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
2353 |
+ |
else |
2354 |
+ |
ac_cv_prog_cc_stdc=no |
2355 |
+ |
ac_save_CC=$CC |
2356 |
+ |
cat >conftest.$ac_ext <<_ACEOF |
2357 |
+ |
#line $LINENO "configure" |
2358 |
+ |
/* confdefs.h. */ |
2359 |
+ |
_ACEOF |
2360 |
+ |
cat confdefs.h >>conftest.$ac_ext |
2361 |
+ |
cat >>conftest.$ac_ext <<_ACEOF |
2362 |
+ |
/* end confdefs.h. */ |
2363 |
+ |
#include <stdarg.h> |
2364 |
+ |
#include <stdio.h> |
2365 |
+ |
#include <sys/types.h> |
2366 |
+ |
#include <sys/stat.h> |
2367 |
+ |
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
2368 |
+ |
struct buf { int x; }; |
2369 |
+ |
FILE * (*rcsopen) (struct buf *, struct stat *, int); |
2370 |
+ |
static char *e (p, i) |
2371 |
+ |
char **p; |
2372 |
+ |
int i; |
2373 |
+ |
{ |
2374 |
+ |
return p[i]; |
2375 |
+ |
} |
2376 |
+ |
static char *f (char * (*g) (char **, int), char **p, ...) |
2377 |
+ |
{ |
2378 |
+ |
char *s; |
2379 |
+ |
va_list v; |
2380 |
+ |
va_start (v,p); |
2381 |
+ |
s = g (p, va_arg (v,int)); |
2382 |
+ |
va_end (v); |
2383 |
+ |
return s; |
2384 |
+ |
} |
2385 |
+ |
int test (int i, double x); |
2386 |
+ |
struct s1 {int (*f) (int a);}; |
2387 |
+ |
struct s2 {int (*f) (double a);}; |
2388 |
+ |
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
2389 |
+ |
int argc; |
2390 |
+ |
char **argv; |
2391 |
+ |
int |
2392 |
+ |
main () |
2393 |
+ |
{ |
2394 |
+ |
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
2395 |
+ |
; |
2396 |
+ |
return 0; |
2397 |
+ |
} |
2398 |
+ |
_ACEOF |
2399 |
+ |
# Don't try gcc -ansi; that turns off useful extensions and |
2400 |
+ |
# breaks some systems' header files. |
2401 |
+ |
# AIX -qlanglvl=ansi |
2402 |
+ |
# Ultrix and OSF/1 -std1 |
2403 |
+ |
# HP-UX 10.20 and later -Ae |
2404 |
+ |
# HP-UX older versions -Aa -D_HPUX_SOURCE |
2405 |
+ |
# SVR4 -Xc -D__EXTENSIONS__ |
2406 |
+ |
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
2407 |
+ |
do |
2408 |
+ |
CC="$ac_save_CC $ac_arg" |
2409 |
+ |
rm -f conftest.$ac_objext |
2410 |
+ |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2411 |
+ |
(eval $ac_compile) 2>&5 |
2412 |
+ |
ac_status=$? |
2413 |
+ |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2414 |
+ |
(exit $ac_status); } && |
2415 |
+ |
{ ac_try='test -s conftest.$ac_objext' |
2416 |
+ |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2417 |
+ |
(eval $ac_try) 2>&5 |
2418 |
+ |
ac_status=$? |
2419 |
+ |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2420 |
+ |
(exit $ac_status); }; }; then |
2421 |
+ |
ac_cv_prog_cc_stdc=$ac_arg |
2422 |
+ |
break |
2423 |
+ |
else |
2424 |
+ |
echo "$as_me: failed program was:" >&5 |
2425 |
+ |
sed 's/^/| /' conftest.$ac_ext >&5 |
2426 |
+ |
|
2427 |
|
fi |
2428 |
+ |
rm -f conftest.$ac_objext |
2429 |
+ |
done |
2430 |
+ |
rm -f conftest.$ac_ext conftest.$ac_objext |
2431 |
+ |
CC=$ac_save_CC |
2432 |
+ |
|
2433 |
+ |
fi |
2434 |
+ |
|
2435 |
+ |
case "x$ac_cv_prog_cc_stdc" in |
2436 |
+ |
x|xno) |
2437 |
+ |
echo "$as_me:$LINENO: result: none needed" >&5 |
2438 |
+ |
echo "${ECHO_T}none needed" >&6 ;; |
2439 |
+ |
*) |
2440 |
+ |
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
2441 |
+ |
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
2442 |
+ |
CC="$CC $ac_cv_prog_cc_stdc" ;; |
2443 |
+ |
esac |
2444 |
+ |
|
2445 |
|
# Some people use a C++ compiler to compile C. Since we use `exit', |
2446 |
|
# in C++ we need to declare it. In case someone uses the same compiler |
2447 |
|
# for both compiling C and C++ we need to have the C++ compiler decide |
2452 |
|
#endif |
2453 |
|
_ACEOF |
2454 |
|
rm -f conftest.$ac_objext |
2455 |
< |
if { (eval echo "$as_me:1818: \"$ac_compile\"") >&5 |
2455 |
> |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2456 |
|
(eval $ac_compile) 2>&5 |
2457 |
|
ac_status=$? |
2458 |
< |
echo "$as_me:1821: \$? = $ac_status" >&5 |
2458 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2459 |
|
(exit $ac_status); } && |
2460 |
|
{ ac_try='test -s conftest.$ac_objext' |
2461 |
< |
{ (eval echo "$as_me:1824: \"$ac_try\"") >&5 |
2461 |
> |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2462 |
|
(eval $ac_try) 2>&5 |
2463 |
|
ac_status=$? |
2464 |
< |
echo "$as_me:1827: \$? = $ac_status" >&5 |
2464 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2465 |
|
(exit $ac_status); }; }; then |
2466 |
|
for ac_declaration in \ |
2467 |
|
''\ |
2473 |
|
'void exit (int);' |
2474 |
|
do |
2475 |
|
cat >conftest.$ac_ext <<_ACEOF |
2476 |
< |
#line 1839 "configure" |
2477 |
< |
#include "confdefs.h" |
2476 |
> |
#line $LINENO "configure" |
2477 |
> |
/* confdefs.h. */ |
2478 |
> |
_ACEOF |
2479 |
> |
cat confdefs.h >>conftest.$ac_ext |
2480 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
2481 |
> |
/* end confdefs.h. */ |
2482 |
|
#include <stdlib.h> |
2483 |
|
$ac_declaration |
2484 |
|
int |
2490 |
|
} |
2491 |
|
_ACEOF |
2492 |
|
rm -f conftest.$ac_objext |
2493 |
< |
if { (eval echo "$as_me:1852: \"$ac_compile\"") >&5 |
2493 |
> |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2494 |
|
(eval $ac_compile) 2>&5 |
2495 |
|
ac_status=$? |
2496 |
< |
echo "$as_me:1855: \$? = $ac_status" >&5 |
2496 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2497 |
|
(exit $ac_status); } && |
2498 |
|
{ ac_try='test -s conftest.$ac_objext' |
2499 |
< |
{ (eval echo "$as_me:1858: \"$ac_try\"") >&5 |
2499 |
> |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2500 |
|
(eval $ac_try) 2>&5 |
2501 |
|
ac_status=$? |
2502 |
< |
echo "$as_me:1861: \$? = $ac_status" >&5 |
2502 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2503 |
|
(exit $ac_status); }; }; then |
2504 |
|
: |
2505 |
|
else |
2506 |
|
echo "$as_me: failed program was:" >&5 |
2507 |
< |
cat conftest.$ac_ext >&5 |
2507 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
2508 |
> |
|
2509 |
|
continue |
2510 |
|
fi |
2511 |
|
rm -f conftest.$ac_objext conftest.$ac_ext |
2512 |
|
cat >conftest.$ac_ext <<_ACEOF |
2513 |
< |
#line 1871 "configure" |
2514 |
< |
#include "confdefs.h" |
2513 |
> |
#line $LINENO "configure" |
2514 |
> |
/* confdefs.h. */ |
2515 |
> |
_ACEOF |
2516 |
> |
cat confdefs.h >>conftest.$ac_ext |
2517 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
2518 |
> |
/* end confdefs.h. */ |
2519 |
|
$ac_declaration |
2520 |
|
int |
2521 |
|
main () |
2526 |
|
} |
2527 |
|
_ACEOF |
2528 |
|
rm -f conftest.$ac_objext |
2529 |
< |
if { (eval echo "$as_me:1883: \"$ac_compile\"") >&5 |
2529 |
> |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2530 |
|
(eval $ac_compile) 2>&5 |
2531 |
|
ac_status=$? |
2532 |
< |
echo "$as_me:1886: \$? = $ac_status" >&5 |
2532 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2533 |
|
(exit $ac_status); } && |
2534 |
|
{ ac_try='test -s conftest.$ac_objext' |
2535 |
< |
{ (eval echo "$as_me:1889: \"$ac_try\"") >&5 |
2535 |
> |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2536 |
|
(eval $ac_try) 2>&5 |
2537 |
|
ac_status=$? |
2538 |
< |
echo "$as_me:1892: \$? = $ac_status" >&5 |
2538 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2539 |
|
(exit $ac_status); }; }; then |
2540 |
|
break |
2541 |
|
else |
2542 |
|
echo "$as_me: failed program was:" >&5 |
2543 |
< |
cat conftest.$ac_ext >&5 |
2543 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
2544 |
> |
|
2545 |
|
fi |
2546 |
|
rm -f conftest.$ac_objext conftest.$ac_ext |
2547 |
|
done |
2548 |
< |
echo '#ifdef __cplusplus' >>confdefs.h |
2549 |
< |
echo $ac_declaration >>confdefs.h |
2550 |
< |
echo '#endif' >>confdefs.h |
2548 |
> |
rm -f conftest* |
2549 |
> |
if test -n "$ac_declaration"; then |
2550 |
> |
echo '#ifdef __cplusplus' >>confdefs.h |
2551 |
> |
echo $ac_declaration >>confdefs.h |
2552 |
> |
echo '#endif' >>confdefs.h |
2553 |
> |
fi |
2554 |
|
|
2555 |
|
else |
2556 |
|
echo "$as_me: failed program was:" >&5 |
2557 |
< |
cat conftest.$ac_ext >&5 |
2557 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
2558 |
> |
|
2559 |
|
fi |
2560 |
|
rm -f conftest.$ac_objext conftest.$ac_ext |
2561 |
|
ac_ext=c |
2564 |
|
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
2565 |
|
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
2566 |
|
|
2567 |
+ |
|
2568 |
|
ac_ext=cc |
2569 |
|
ac_cpp='$CXXCPP $CPPFLAGS' |
2570 |
|
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
2571 |
|
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
2572 |
|
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
2573 |
|
if test -n "$ac_tool_prefix"; then |
2574 |
< |
for ac_prog in $CCC icpc icc xlC CC g++ c++ |
2574 |
> |
for ac_prog in $CCC icpc icc xlc++ xlC CC g++ c++ |
2575 |
|
do |
2576 |
|
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
2577 |
|
set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
2578 |
< |
echo "$as_me:1926: checking for $ac_word" >&5 |
2578 |
> |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2579 |
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2580 |
|
if test "${ac_cv_prog_CXX+set}" = set; then |
2581 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
2583 |
|
if test -n "$CXX"; then |
2584 |
|
ac_cv_prog_CXX="$CXX" # Let the user override the test. |
2585 |
|
else |
2586 |
< |
ac_save_IFS=$IFS; IFS=$ac_path_separator |
2587 |
< |
ac_dummy="$PATH" |
2588 |
< |
for ac_dir in $ac_dummy; do |
2589 |
< |
IFS=$ac_save_IFS |
2590 |
< |
test -z "$ac_dir" && ac_dir=. |
2591 |
< |
$as_executable_p "$ac_dir/$ac_word" || continue |
2592 |
< |
ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
2593 |
< |
echo "$as_me:1941: found $ac_dir/$ac_word" >&5 |
2594 |
< |
break |
2586 |
> |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2587 |
> |
for as_dir in $PATH |
2588 |
> |
do |
2589 |
> |
IFS=$as_save_IFS |
2590 |
> |
test -z "$as_dir" && as_dir=. |
2591 |
> |
for ac_exec_ext in '' $ac_executable_extensions; do |
2592 |
> |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
2593 |
> |
ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
2594 |
> |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2595 |
> |
break 2 |
2596 |
> |
fi |
2597 |
|
done |
2598 |
+ |
done |
2599 |
|
|
2600 |
|
fi |
2601 |
|
fi |
2602 |
|
CXX=$ac_cv_prog_CXX |
2603 |
|
if test -n "$CXX"; then |
2604 |
< |
echo "$as_me:1949: result: $CXX" >&5 |
2604 |
> |
echo "$as_me:$LINENO: result: $CXX" >&5 |
2605 |
|
echo "${ECHO_T}$CXX" >&6 |
2606 |
|
else |
2607 |
< |
echo "$as_me:1952: result: no" >&5 |
2607 |
> |
echo "$as_me:$LINENO: result: no" >&5 |
2608 |
|
echo "${ECHO_T}no" >&6 |
2609 |
|
fi |
2610 |
|
|
2613 |
|
fi |
2614 |
|
if test -z "$CXX"; then |
2615 |
|
ac_ct_CXX=$CXX |
2616 |
< |
for ac_prog in $CCC icpc icc xlC CC g++ c++ |
2616 |
> |
for ac_prog in $CCC icpc icc xlc++ xlC CC g++ c++ |
2617 |
|
do |
2618 |
|
# Extract the first word of "$ac_prog", so it can be a program name with args. |
2619 |
|
set dummy $ac_prog; ac_word=$2 |
2620 |
< |
echo "$as_me:1965: checking for $ac_word" >&5 |
2620 |
> |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2621 |
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2622 |
|
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
2623 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
2625 |
|
if test -n "$ac_ct_CXX"; then |
2626 |
|
ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
2627 |
|
else |
2628 |
< |
ac_save_IFS=$IFS; IFS=$ac_path_separator |
2629 |
< |
ac_dummy="$PATH" |
2630 |
< |
for ac_dir in $ac_dummy; do |
2631 |
< |
IFS=$ac_save_IFS |
2632 |
< |
test -z "$ac_dir" && ac_dir=. |
2633 |
< |
$as_executable_p "$ac_dir/$ac_word" || continue |
2634 |
< |
ac_cv_prog_ac_ct_CXX="$ac_prog" |
2635 |
< |
echo "$as_me:1980: found $ac_dir/$ac_word" >&5 |
2636 |
< |
break |
2628 |
> |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2629 |
> |
for as_dir in $PATH |
2630 |
> |
do |
2631 |
> |
IFS=$as_save_IFS |
2632 |
> |
test -z "$as_dir" && as_dir=. |
2633 |
> |
for ac_exec_ext in '' $ac_executable_extensions; do |
2634 |
> |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
2635 |
> |
ac_cv_prog_ac_ct_CXX="$ac_prog" |
2636 |
> |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2637 |
> |
break 2 |
2638 |
> |
fi |
2639 |
|
done |
2640 |
+ |
done |
2641 |
|
|
2642 |
|
fi |
2643 |
|
fi |
2644 |
|
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
2645 |
|
if test -n "$ac_ct_CXX"; then |
2646 |
< |
echo "$as_me:1988: result: $ac_ct_CXX" >&5 |
2646 |
> |
echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
2647 |
|
echo "${ECHO_T}$ac_ct_CXX" >&6 |
2648 |
|
else |
2649 |
< |
echo "$as_me:1991: result: no" >&5 |
2649 |
> |
echo "$as_me:$LINENO: result: no" >&5 |
2650 |
|
echo "${ECHO_T}no" >&6 |
2651 |
|
fi |
2652 |
|
|
2657 |
|
CXX=$ac_ct_CXX |
2658 |
|
fi |
2659 |
|
|
2660 |
< |
echo "$as_me:2002: checking whether we are using the GNU C++ compiler" >&5 |
2660 |
> |
|
2661 |
> |
# Provide some information about the compiler. |
2662 |
> |
echo "$as_me:$LINENO:" \ |
2663 |
> |
"checking for C++ compiler version" >&5 |
2664 |
> |
ac_compiler=`set X $ac_compile; echo $2` |
2665 |
> |
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
2666 |
> |
(eval $ac_compiler --version </dev/null >&5) 2>&5 |
2667 |
> |
ac_status=$? |
2668 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2669 |
> |
(exit $ac_status); } |
2670 |
> |
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
2671 |
> |
(eval $ac_compiler -v </dev/null >&5) 2>&5 |
2672 |
> |
ac_status=$? |
2673 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2674 |
> |
(exit $ac_status); } |
2675 |
> |
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
2676 |
> |
(eval $ac_compiler -V </dev/null >&5) 2>&5 |
2677 |
> |
ac_status=$? |
2678 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2679 |
> |
(exit $ac_status); } |
2680 |
> |
|
2681 |
> |
echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
2682 |
|
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 |
2683 |
|
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
2684 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
2685 |
|
else |
2686 |
|
cat >conftest.$ac_ext <<_ACEOF |
2687 |
< |
#line 2008 "configure" |
2688 |
< |
#include "confdefs.h" |
2687 |
> |
#line $LINENO "configure" |
2688 |
> |
/* confdefs.h. */ |
2689 |
> |
_ACEOF |
2690 |
> |
cat confdefs.h >>conftest.$ac_ext |
2691 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
2692 |
> |
/* end confdefs.h. */ |
2693 |
|
|
2694 |
|
int |
2695 |
|
main () |
2703 |
|
} |
2704 |
|
_ACEOF |
2705 |
|
rm -f conftest.$ac_objext |
2706 |
< |
if { (eval echo "$as_me:2023: \"$ac_compile\"") >&5 |
2706 |
> |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2707 |
|
(eval $ac_compile) 2>&5 |
2708 |
|
ac_status=$? |
2709 |
< |
echo "$as_me:2026: \$? = $ac_status" >&5 |
2709 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2710 |
|
(exit $ac_status); } && |
2711 |
|
{ ac_try='test -s conftest.$ac_objext' |
2712 |
< |
{ (eval echo "$as_me:2029: \"$ac_try\"") >&5 |
2712 |
> |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2713 |
|
(eval $ac_try) 2>&5 |
2714 |
|
ac_status=$? |
2715 |
< |
echo "$as_me:2032: \$? = $ac_status" >&5 |
2715 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2716 |
|
(exit $ac_status); }; }; then |
2717 |
|
ac_compiler_gnu=yes |
2718 |
|
else |
2719 |
|
echo "$as_me: failed program was:" >&5 |
2720 |
< |
cat conftest.$ac_ext >&5 |
2720 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
2721 |
> |
|
2722 |
|
ac_compiler_gnu=no |
2723 |
|
fi |
2724 |
|
rm -f conftest.$ac_objext conftest.$ac_ext |
2725 |
|
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
2726 |
|
|
2727 |
|
fi |
2728 |
< |
echo "$as_me:2044: result: $ac_cv_cxx_compiler_gnu" >&5 |
2728 |
> |
echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
2729 |
|
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 |
2730 |
|
GXX=`test $ac_compiler_gnu = yes && echo yes` |
2731 |
|
ac_test_CXXFLAGS=${CXXFLAGS+set} |
2732 |
|
ac_save_CXXFLAGS=$CXXFLAGS |
2733 |
|
CXXFLAGS="-g" |
2734 |
< |
echo "$as_me:2050: checking whether $CXX accepts -g" >&5 |
2734 |
> |
echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
2735 |
|
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 |
2736 |
|
if test "${ac_cv_prog_cxx_g+set}" = set; then |
2737 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
2738 |
|
else |
2739 |
|
cat >conftest.$ac_ext <<_ACEOF |
2740 |
< |
#line 2056 "configure" |
2741 |
< |
#include "confdefs.h" |
2740 |
> |
#line $LINENO "configure" |
2741 |
> |
/* confdefs.h. */ |
2742 |
> |
_ACEOF |
2743 |
> |
cat confdefs.h >>conftest.$ac_ext |
2744 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
2745 |
> |
/* end confdefs.h. */ |
2746 |
|
|
2747 |
|
int |
2748 |
|
main () |
2753 |
|
} |
2754 |
|
_ACEOF |
2755 |
|
rm -f conftest.$ac_objext |
2756 |
< |
if { (eval echo "$as_me:2068: \"$ac_compile\"") >&5 |
2756 |
> |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2757 |
|
(eval $ac_compile) 2>&5 |
2758 |
|
ac_status=$? |
2759 |
< |
echo "$as_me:2071: \$? = $ac_status" >&5 |
2759 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2760 |
|
(exit $ac_status); } && |
2761 |
|
{ ac_try='test -s conftest.$ac_objext' |
2762 |
< |
{ (eval echo "$as_me:2074: \"$ac_try\"") >&5 |
2762 |
> |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2763 |
|
(eval $ac_try) 2>&5 |
2764 |
|
ac_status=$? |
2765 |
< |
echo "$as_me:2077: \$? = $ac_status" >&5 |
2765 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2766 |
|
(exit $ac_status); }; }; then |
2767 |
|
ac_cv_prog_cxx_g=yes |
2768 |
|
else |
2769 |
|
echo "$as_me: failed program was:" >&5 |
2770 |
< |
cat conftest.$ac_ext >&5 |
2770 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
2771 |
> |
|
2772 |
|
ac_cv_prog_cxx_g=no |
2773 |
|
fi |
2774 |
|
rm -f conftest.$ac_objext conftest.$ac_ext |
2775 |
|
fi |
2776 |
< |
echo "$as_me:2087: result: $ac_cv_prog_cxx_g" >&5 |
2776 |
> |
echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
2777 |
|
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 |
2778 |
|
if test "$ac_test_CXXFLAGS" = set; then |
2779 |
|
CXXFLAGS=$ac_save_CXXFLAGS |
2800 |
|
'void exit (int);' |
2801 |
|
do |
2802 |
|
cat >conftest.$ac_ext <<_ACEOF |
2803 |
< |
#line 2114 "configure" |
2804 |
< |
#include "confdefs.h" |
2803 |
> |
#line $LINENO "configure" |
2804 |
> |
/* confdefs.h. */ |
2805 |
> |
_ACEOF |
2806 |
> |
cat confdefs.h >>conftest.$ac_ext |
2807 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
2808 |
> |
/* end confdefs.h. */ |
2809 |
|
#include <stdlib.h> |
2810 |
|
$ac_declaration |
2811 |
|
int |
2817 |
|
} |
2818 |
|
_ACEOF |
2819 |
|
rm -f conftest.$ac_objext |
2820 |
< |
if { (eval echo "$as_me:2127: \"$ac_compile\"") >&5 |
2820 |
> |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2821 |
|
(eval $ac_compile) 2>&5 |
2822 |
|
ac_status=$? |
2823 |
< |
echo "$as_me:2130: \$? = $ac_status" >&5 |
2823 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2824 |
|
(exit $ac_status); } && |
2825 |
|
{ ac_try='test -s conftest.$ac_objext' |
2826 |
< |
{ (eval echo "$as_me:2133: \"$ac_try\"") >&5 |
2826 |
> |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2827 |
|
(eval $ac_try) 2>&5 |
2828 |
|
ac_status=$? |
2829 |
< |
echo "$as_me:2136: \$? = $ac_status" >&5 |
2829 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2830 |
|
(exit $ac_status); }; }; then |
2831 |
|
: |
2832 |
|
else |
2833 |
|
echo "$as_me: failed program was:" >&5 |
2834 |
< |
cat conftest.$ac_ext >&5 |
2834 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
2835 |
> |
|
2836 |
|
continue |
2837 |
|
fi |
2838 |
|
rm -f conftest.$ac_objext conftest.$ac_ext |
2839 |
|
cat >conftest.$ac_ext <<_ACEOF |
2840 |
< |
#line 2146 "configure" |
2841 |
< |
#include "confdefs.h" |
2840 |
> |
#line $LINENO "configure" |
2841 |
> |
/* confdefs.h. */ |
2842 |
> |
_ACEOF |
2843 |
> |
cat confdefs.h >>conftest.$ac_ext |
2844 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
2845 |
> |
/* end confdefs.h. */ |
2846 |
|
$ac_declaration |
2847 |
|
int |
2848 |
|
main () |
2853 |
|
} |
2854 |
|
_ACEOF |
2855 |
|
rm -f conftest.$ac_objext |
2856 |
< |
if { (eval echo "$as_me:2158: \"$ac_compile\"") >&5 |
2856 |
> |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2857 |
|
(eval $ac_compile) 2>&5 |
2858 |
|
ac_status=$? |
2859 |
< |
echo "$as_me:2161: \$? = $ac_status" >&5 |
2859 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2860 |
|
(exit $ac_status); } && |
2861 |
|
{ ac_try='test -s conftest.$ac_objext' |
2862 |
< |
{ (eval echo "$as_me:2164: \"$ac_try\"") >&5 |
2862 |
> |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2863 |
|
(eval $ac_try) 2>&5 |
2864 |
|
ac_status=$? |
2865 |
< |
echo "$as_me:2167: \$? = $ac_status" >&5 |
2865 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2866 |
|
(exit $ac_status); }; }; then |
2867 |
|
break |
2868 |
|
else |
2869 |
|
echo "$as_me: failed program was:" >&5 |
2870 |
< |
cat conftest.$ac_ext >&5 |
2870 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
2871 |
> |
|
2872 |
|
fi |
2873 |
|
rm -f conftest.$ac_objext conftest.$ac_ext |
2874 |
|
done |
2875 |
< |
echo '#ifdef __cplusplus' >>confdefs.h |
2876 |
< |
echo $ac_declaration >>confdefs.h |
2877 |
< |
echo '#endif' >>confdefs.h |
2875 |
> |
rm -f conftest* |
2876 |
> |
if test -n "$ac_declaration"; then |
2877 |
> |
echo '#ifdef __cplusplus' >>confdefs.h |
2878 |
> |
echo $ac_declaration >>confdefs.h |
2879 |
> |
echo '#endif' >>confdefs.h |
2880 |
> |
fi |
2881 |
|
|
2882 |
|
ac_ext=c |
2883 |
|
ac_cpp='$CPP $CPPFLAGS' |
2885 |
|
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
2886 |
|
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
2887 |
|
|
2888 |
+ |
|
2889 |
+ |
OOPSE_TEMPLATE_FLAGS="" |
2890 |
+ |
if test $ac_cv_cxx_compiler_gnu = no; then |
2891 |
+ |
echo "$as_me:$LINENO: checking checking whether ${CXX} accepts -ptused -no_prelink" >&5 |
2892 |
+ |
echo $ECHO_N "checking checking whether ${CXX} accepts -ptused -no_prelink... $ECHO_C" >&6 |
2893 |
+ |
echo 'void f(){}' > conftest.cc |
2894 |
+ |
if test -z "`${CXX} -ptused -no_prelink -c conftest.cc 2>&1`"; then |
2895 |
+ |
echo "$as_me:$LINENO: result: yes" >&5 |
2896 |
+ |
echo "${ECHO_T}yes" >&6 |
2897 |
+ |
OOPSE_TEMPLATE_FLAGS="-ptused -no_prelink" |
2898 |
+ |
else |
2899 |
+ |
echo "$as_me:$LINENO: result: no" >&5 |
2900 |
+ |
echo "${ECHO_T}no" >&6 |
2901 |
+ |
fi |
2902 |
+ |
rm -f conftest* |
2903 |
+ |
echo "$as_me:$LINENO: checking checking whether ${CXX} accepts -instances=static" >&5 |
2904 |
+ |
echo $ECHO_N "checking checking whether ${CXX} accepts -instances=static... $ECHO_C" >&6 |
2905 |
+ |
echo 'void f(){}' > conftest.cc |
2906 |
+ |
if test -z "`${CXX} -instances=static -c conftest.cc 2>&1`"; then |
2907 |
+ |
echo "$as_me:$LINENO: result: yes" >&5 |
2908 |
+ |
echo "${ECHO_T}yes" >&6 |
2909 |
+ |
OOPSE_TEMPLATE_FLAGS="-instances=static" |
2910 |
+ |
else |
2911 |
+ |
echo "$as_me:$LINENO: result: no" >&5 |
2912 |
+ |
echo "${ECHO_T}no" >&6 |
2913 |
+ |
fi |
2914 |
+ |
rm -f conftest* |
2915 |
+ |
echo "$as_me:$LINENO: checking checking whether ${CXX} accepts -pto" >&5 |
2916 |
+ |
echo $ECHO_N "checking checking whether ${CXX} accepts -pto... $ECHO_C" >&6 |
2917 |
+ |
echo 'void f(){}' > conftest.cc |
2918 |
+ |
if test -z "`${CXX} -pto -c conftest.cc 2>&1`"; then |
2919 |
+ |
echo "$as_me:$LINENO: result: yes" >&5 |
2920 |
+ |
echo "${ECHO_T}yes" >&6 |
2921 |
+ |
OOPSE_TEMPLATE_FLAGS="-pto" |
2922 |
+ |
else |
2923 |
+ |
echo "$as_me:$LINENO: result: no" >&5 |
2924 |
+ |
echo "${ECHO_T}no" >&6 |
2925 |
+ |
fi |
2926 |
+ |
rm -f conftest* |
2927 |
+ |
echo "$as_me:$LINENO: checking checking whether ${CXX} accepts -LANG:std" >&5 |
2928 |
+ |
echo $ECHO_N "checking checking whether ${CXX} accepts -LANG:std... $ECHO_C" >&6 |
2929 |
+ |
echo 'void f(){}' > conftest.cc |
2930 |
+ |
if test -z "`${CXX} -LANG:std -c conftest.cc 2>&1`"; then |
2931 |
+ |
echo "$as_me:$LINENO: result: yes" >&5 |
2932 |
+ |
echo "${ECHO_T}yes" >&6 |
2933 |
+ |
|
2934 |
+ |
|
2935 |
+ |
EXTRA_CC_FLAG=${EXTRA_CC_FLAG}" -LANG:std" |
2936 |
+ |
else |
2937 |
+ |
echo "$as_me:$LINENO: result: no" >&5 |
2938 |
+ |
echo "${ECHO_T}no" >&6 |
2939 |
+ |
fi |
2940 |
+ |
fi |
2941 |
+ |
|
2942 |
+ |
|
2943 |
+ |
|
2944 |
+ |
|
2945 |
|
ac_ext=f90 |
2946 |
|
ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5' |
2947 |
|
ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
2948 |
|
ac_compiler_gnu=$ac_cv_f90_compiler_gnu |
2949 |
|
if test -n "$ac_tool_prefix"; then |
2950 |
< |
for ac_prog in ifc f90 xlf90 pgf90 epcf90 f95 xlf95 lf95 fort g95 |
2950 |
> |
for ac_prog in ifort ifc f90 xlf90 pgf90 epcf90 f95 xlf95 lf95 fort g95 |
2951 |
|
do |
2952 |
|
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
2953 |
|
set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
2954 |
< |
echo "$as_me:2195: checking for $ac_word" >&5 |
2954 |
> |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2955 |
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2956 |
|
if test "${ac_cv_prog_F90+set}" = set; then |
2957 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
2959 |
|
if test -n "$F90"; then |
2960 |
|
ac_cv_prog_F90="$F90" # Let the user override the test. |
2961 |
|
else |
2962 |
< |
ac_save_IFS=$IFS; IFS=$ac_path_separator |
2963 |
< |
ac_dummy="$PATH" |
2964 |
< |
for ac_dir in $ac_dummy; do |
2965 |
< |
IFS=$ac_save_IFS |
2966 |
< |
test -z "$ac_dir" && ac_dir=. |
2967 |
< |
$as_executable_p "$ac_dir/$ac_word" || continue |
2968 |
< |
ac_cv_prog_F90="$ac_tool_prefix$ac_prog" |
2969 |
< |
echo "$as_me:2210: found $ac_dir/$ac_word" >&5 |
2970 |
< |
break |
2962 |
> |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2963 |
> |
for as_dir in $PATH |
2964 |
> |
do |
2965 |
> |
IFS=$as_save_IFS |
2966 |
> |
test -z "$as_dir" && as_dir=. |
2967 |
> |
for ac_exec_ext in '' $ac_executable_extensions; do |
2968 |
> |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
2969 |
> |
ac_cv_prog_F90="$ac_tool_prefix$ac_prog" |
2970 |
> |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2971 |
> |
break 2 |
2972 |
> |
fi |
2973 |
|
done |
2974 |
+ |
done |
2975 |
|
|
2976 |
|
fi |
2977 |
|
fi |
2978 |
|
F90=$ac_cv_prog_F90 |
2979 |
|
if test -n "$F90"; then |
2980 |
< |
echo "$as_me:2218: result: $F90" >&5 |
2980 |
> |
echo "$as_me:$LINENO: result: $F90" >&5 |
2981 |
|
echo "${ECHO_T}$F90" >&6 |
2982 |
|
else |
2983 |
< |
echo "$as_me:2221: result: no" >&5 |
2983 |
> |
echo "$as_me:$LINENO: result: no" >&5 |
2984 |
|
echo "${ECHO_T}no" >&6 |
2985 |
|
fi |
2986 |
|
|
2989 |
|
fi |
2990 |
|
if test -z "$F90"; then |
2991 |
|
ac_ct_F90=$F90 |
2992 |
< |
for ac_prog in ifc f90 xlf90 pgf90 epcf90 f95 xlf95 lf95 fort g95 |
2992 |
> |
for ac_prog in ifort ifc f90 xlf90 pgf90 epcf90 f95 xlf95 lf95 fort g95 |
2993 |
|
do |
2994 |
|
# Extract the first word of "$ac_prog", so it can be a program name with args. |
2995 |
|
set dummy $ac_prog; ac_word=$2 |
2996 |
< |
echo "$as_me:2234: checking for $ac_word" >&5 |
2996 |
> |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2997 |
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2998 |
|
if test "${ac_cv_prog_ac_ct_F90+set}" = set; then |
2999 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
3001 |
|
if test -n "$ac_ct_F90"; then |
3002 |
|
ac_cv_prog_ac_ct_F90="$ac_ct_F90" # Let the user override the test. |
3003 |
|
else |
3004 |
< |
ac_save_IFS=$IFS; IFS=$ac_path_separator |
3005 |
< |
ac_dummy="$PATH" |
3006 |
< |
for ac_dir in $ac_dummy; do |
3007 |
< |
IFS=$ac_save_IFS |
3008 |
< |
test -z "$ac_dir" && ac_dir=. |
3009 |
< |
$as_executable_p "$ac_dir/$ac_word" || continue |
3010 |
< |
ac_cv_prog_ac_ct_F90="$ac_prog" |
3011 |
< |
echo "$as_me:2249: found $ac_dir/$ac_word" >&5 |
3012 |
< |
break |
3004 |
> |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3005 |
> |
for as_dir in $PATH |
3006 |
> |
do |
3007 |
> |
IFS=$as_save_IFS |
3008 |
> |
test -z "$as_dir" && as_dir=. |
3009 |
> |
for ac_exec_ext in '' $ac_executable_extensions; do |
3010 |
> |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
3011 |
> |
ac_cv_prog_ac_ct_F90="$ac_prog" |
3012 |
> |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3013 |
> |
break 2 |
3014 |
> |
fi |
3015 |
|
done |
3016 |
+ |
done |
3017 |
|
|
3018 |
|
fi |
3019 |
|
fi |
3020 |
|
ac_ct_F90=$ac_cv_prog_ac_ct_F90 |
3021 |
|
if test -n "$ac_ct_F90"; then |
3022 |
< |
echo "$as_me:2257: result: $ac_ct_F90" >&5 |
3022 |
> |
echo "$as_me:$LINENO: result: $ac_ct_F90" >&5 |
3023 |
|
echo "${ECHO_T}$ac_ct_F90" >&6 |
3024 |
|
else |
3025 |
< |
echo "$as_me:2260: result: no" >&5 |
3025 |
> |
echo "$as_me:$LINENO: result: no" >&5 |
3026 |
|
echo "${ECHO_T}no" >&6 |
3027 |
|
fi |
3028 |
|
|
3032 |
|
F90=$ac_ct_F90 |
3033 |
|
fi |
3034 |
|
|
3035 |
+ |
|
3036 |
|
# If we don't use `.F90' as extension, the preprocessor is not run on the |
3037 |
|
# input file. |
3038 |
|
ac_save_ext=$ac_ext |
3039 |
|
ac_ext=F90 |
3040 |
< |
echo "$as_me:2274: checking whether we are using the GNU Fortran 90 compiler" >&5 |
3040 |
> |
echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 90 compiler" >&5 |
3041 |
|
echo $ECHO_N "checking whether we are using the GNU Fortran 90 compiler... $ECHO_C" >&6 |
3042 |
|
if test "${ac_cv_f90_compiler_gnu+set}" = set; then |
3043 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
3054 |
|
|
3055 |
|
_ACEOF |
3056 |
|
rm -f conftest.$ac_objext |
3057 |
< |
if { (eval echo "$as_me:2291: \"$ac_compile\"") >&5 |
3057 |
> |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
3058 |
|
(eval $ac_compile) 2>&5 |
3059 |
|
ac_status=$? |
3060 |
< |
echo "$as_me:2294: \$? = $ac_status" >&5 |
3060 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3061 |
|
(exit $ac_status); } && |
3062 |
|
{ ac_try='test -s conftest.$ac_objext' |
3063 |
< |
{ (eval echo "$as_me:2297: \"$ac_try\"") >&5 |
3063 |
> |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3064 |
|
(eval $ac_try) 2>&5 |
3065 |
|
ac_status=$? |
3066 |
< |
echo "$as_me:2300: \$? = $ac_status" >&5 |
3066 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3067 |
|
(exit $ac_status); }; }; then |
3068 |
|
ac_compiler_gnu=yes |
3069 |
|
else |
3070 |
|
echo "$as_me: failed program was:" >&5 |
3071 |
< |
cat conftest.$ac_ext >&5 |
3071 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
3072 |
> |
|
3073 |
|
ac_compiler_gnu=no |
3074 |
|
fi |
3075 |
|
rm -f conftest.$ac_objext conftest.$ac_ext |
3076 |
|
ac_cv_f90_compiler_gnu=$ac_compiler_gnu |
3077 |
|
|
3078 |
|
fi |
3079 |
< |
echo "$as_me:2312: result: $ac_cv_f90_compiler_gnu" >&5 |
3079 |
> |
echo "$as_me:$LINENO: result: $ac_cv_f90_compiler_gnu" >&5 |
3080 |
|
echo "${ECHO_T}$ac_cv_f90_compiler_gnu" >&6 |
3081 |
|
ac_ext=$ac_save_ext |
3082 |
|
G95=`test $ac_compiler_gnu = yes && echo yes` |
3086 |
|
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3087 |
|
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
3088 |
|
|
3089 |
+ |
|
3090 |
+ |
|
3091 |
+ |
|
3092 |
+ |
|
3093 |
|
# Try to determine native compiler flags that allow us to use F90 suffix |
3094 |
|
# for preprocessed f90 source. |
3095 |
|
|
3097 |
|
PREPFLAG="" |
3098 |
|
case "${host_cpu}-${host_os}" in |
3099 |
|
|
3100 |
< |
*linux*) if test "$F90" = ifc; then |
3100 |
> |
*linux*) if test "$F90" = ifc -o "$F90" = ifort; then |
3101 |
|
PREPFLAG="-fpp1 " |
3102 |
|
fi;; |
3103 |
|
*aix*) if test "$F90" = xlf90 -o "$F90" = f90; then |
3110 |
|
esac |
3111 |
|
|
3112 |
|
if test -z "$PREPFLAG"; then |
3113 |
< |
echo "" |
3114 |
< |
echo "**********************************************************" |
2344 |
< |
echo "* WARNING: Don't know the best PREPFLAG for this system *" |
2345 |
< |
echo "* Use make PREPFLAG=..., or edit the top level Makefile *" |
2346 |
< |
echo "* (otherwise, an empty PREPFLAG will be used) *" |
2347 |
< |
echo "**********************************************************" |
2348 |
< |
echo "" |
3113 |
> |
{ echo "$as_me:$LINENO: WARNING: \"Using empty PREPFLAG\"" >&5 |
3114 |
> |
echo "$as_me: WARNING: \"Using empty PREPFLAG\"" >&2;} |
3115 |
|
PREPFLAG="" |
3116 |
|
fi |
3117 |
|
|
3118 |
< |
echo "$as_me:2352: checking to make sure F90 preprocessor flag works" >&5 |
3118 |
> |
echo "$as_me:$LINENO: checking to make sure F90 preprocessor flag works" >&5 |
3119 |
|
echo $ECHO_N "checking to make sure F90 preprocessor flag works... $ECHO_C" >&6 |
3120 |
|
|
3121 |
+ |
|
3122 |
|
ac_ext=f90 |
3123 |
|
ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5' |
3124 |
|
ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3134 |
|
|
3135 |
|
cat >conftest.$ac_ext <<_ACEOF |
3136 |
|
|
3137 |
+ |
|
3138 |
|
program main |
3139 |
|
|
3140 |
|
integer :: i |
3141 |
|
i = 1 |
3142 |
|
|
3143 |
+ |
|
3144 |
|
end program main |
3145 |
|
|
3146 |
|
_ACEOF |
3147 |
|
rm -f conftest.$ac_objext |
3148 |
< |
if { (eval echo "$as_me:2379: \"$ac_compile\"") >&5 |
3148 |
> |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
3149 |
|
(eval $ac_compile) 2>&5 |
3150 |
|
ac_status=$? |
3151 |
< |
echo "$as_me:2382: \$? = $ac_status" >&5 |
3151 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3152 |
|
(exit $ac_status); } && |
3153 |
|
{ ac_try='test -s conftest.$ac_objext' |
3154 |
< |
{ (eval echo "$as_me:2385: \"$ac_try\"") >&5 |
3154 |
> |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3155 |
|
(eval $ac_try) 2>&5 |
3156 |
|
ac_status=$? |
3157 |
< |
echo "$as_me:2388: \$? = $ac_status" >&5 |
3157 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3158 |
|
(exit $ac_status); }; }; then |
3159 |
|
prepflagworks=1 |
3160 |
|
else |
3161 |
|
echo "$as_me: failed program was:" >&5 |
3162 |
< |
cat conftest.$ac_ext >&5 |
3162 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
3163 |
> |
|
3164 |
|
prepflagworks=0 |
3165 |
|
fi |
3166 |
|
rm -f conftest.$ac_objext conftest.$ac_ext |
3173 |
|
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3174 |
|
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
3175 |
|
|
3176 |
+ |
|
3177 |
|
if test "$prepflagworks" = 1; then |
3178 |
< |
echo "$as_me:2407: result: yes" >&5 |
3178 |
> |
echo "$as_me:$LINENO: result: yes" >&5 |
3179 |
|
echo "${ECHO_T}yes" >&6 |
3180 |
|
|
3181 |
|
else |
3182 |
< |
echo "$as_me:2411: result: no" >&5 |
3182 |
> |
echo "$as_me:$LINENO: result: no" >&5 |
3183 |
|
echo "${ECHO_T}no" >&6 |
3184 |
< |
{ { echo "$as_me:2413: error: Can't figure out working Fortran90 preprocessor flag" >&5 |
3184 |
> |
{ { echo "$as_me:$LINENO: error: Can't figure out working Fortran90 preprocessor flag" >&5 |
3185 |
|
echo "$as_me: error: Can't figure out working Fortran90 preprocessor flag" >&2;} |
3186 |
|
{ (exit 1); exit 1; }; } |
3187 |
|
fi |
3188 |
|
fi |
3189 |
|
|
3190 |
+ |
|
3191 |
+ |
|
3192 |
+ |
|
3193 |
+ |
|
3194 |
|
# Try to determine native compiler flags that allow us to use F90 suffix |
3195 |
|
# for preprocessed f90 source with -D type defines |
3196 |
|
|
3198 |
|
PREPDEFFLAG="" |
3199 |
|
case "${host_cpu}-${host_os}" in |
3200 |
|
|
3201 |
< |
*linux*) if test "$F90" = ifc; then |
3201 |
> |
*linux*) if test "$F90" = ifc -o "$F90" = ifort; then |
3202 |
|
PREPDEFFLAG=" " |
3203 |
|
fi;; |
3204 |
|
*aix*) if test "$F90" = xlf90 -o "$F90" = f90; then |
3211 |
|
esac |
3212 |
|
|
3213 |
|
if test -z "$PREPDEFFLAG"; then |
3214 |
< |
echo "" |
3215 |
< |
echo "*************************************************************" |
2441 |
< |
echo "* WARNING: Don't know the best PREPDEFFLAG for this system *" |
2442 |
< |
echo "* Use make PREPDEFFLAG=..., or edit the top level Makefile *" |
2443 |
< |
echo "* (otherwise, an empty PREPDEFFLAG will be used) *" |
2444 |
< |
echo "*************************************************************" |
2445 |
< |
echo "" |
3214 |
> |
{ echo "$as_me:$LINENO: WARNING: \"Using empty PREPDEFFLAG\"" >&5 |
3215 |
> |
echo "$as_me: WARNING: \"Using empty PREPDEFFLAG\"" >&2;} |
3216 |
|
PREPDEFFLAG=" " |
3217 |
|
fi |
3218 |
|
|
3219 |
< |
echo "$as_me:2449: checking to make sure F90 preprocessor define flag works" >&5 |
3219 |
> |
echo "$as_me:$LINENO: checking to make sure F90 preprocessor define flag works" >&5 |
3220 |
|
echo $ECHO_N "checking to make sure F90 preprocessor define flag works... $ECHO_C" >&6 |
3221 |
|
|
3222 |
+ |
|
3223 |
|
ac_ext=f90 |
3224 |
|
ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5' |
3225 |
|
ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3235 |
|
|
3236 |
|
cat >conftest.$ac_ext <<_ACEOF |
3237 |
|
|
3238 |
+ |
|
3239 |
|
program main |
3240 |
|
|
3241 |
|
integer :: i |
3245 |
|
choke me |
3246 |
|
#endif |
3247 |
|
|
3248 |
+ |
|
3249 |
|
end program main |
3250 |
|
|
3251 |
|
_ACEOF |
3252 |
|
rm -f conftest.$ac_objext |
3253 |
< |
if { (eval echo "$as_me:2480: \"$ac_compile\"") >&5 |
3253 |
> |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
3254 |
|
(eval $ac_compile) 2>&5 |
3255 |
|
ac_status=$? |
3256 |
< |
echo "$as_me:2483: \$? = $ac_status" >&5 |
3256 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3257 |
|
(exit $ac_status); } && |
3258 |
|
{ ac_try='test -s conftest.$ac_objext' |
3259 |
< |
{ (eval echo "$as_me:2486: \"$ac_try\"") >&5 |
3259 |
> |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3260 |
|
(eval $ac_try) 2>&5 |
3261 |
|
ac_status=$? |
3262 |
< |
echo "$as_me:2489: \$? = $ac_status" >&5 |
3262 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3263 |
|
(exit $ac_status); }; }; then |
3264 |
|
prepdefflagworks=1 |
3265 |
|
else |
3266 |
|
echo "$as_me: failed program was:" >&5 |
3267 |
< |
cat conftest.$ac_ext >&5 |
3267 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
3268 |
> |
|
3269 |
|
prepdefflagworks=0 |
3270 |
|
fi |
3271 |
|
rm -f conftest.$ac_objext conftest.$ac_ext |
3278 |
|
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3279 |
|
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
3280 |
|
|
3281 |
+ |
|
3282 |
+ |
|
3283 |
|
if test "$prepdefflagworks" = 1; then |
3284 |
< |
echo "$as_me:2508: result: yes" >&5 |
3284 |
> |
echo "$as_me:$LINENO: result: yes" >&5 |
3285 |
|
echo "${ECHO_T}yes" >&6 |
3286 |
|
|
3287 |
|
else |
3288 |
< |
echo "$as_me:2512: result: no" >&5 |
3288 |
> |
echo "$as_me:$LINENO: result: no" >&5 |
3289 |
|
echo "${ECHO_T}no" >&6 |
3290 |
< |
{ { echo "$as_me:2514: error: Can't figure out working Fortran90 preprocessor define flag" >&5 |
3290 |
> |
{ { echo "$as_me:$LINENO: error: Can't figure out working Fortran90 preprocessor define flag" >&5 |
3291 |
|
echo "$as_me: error: Can't figure out working Fortran90 preprocessor define flag" >&2;} |
3292 |
|
{ (exit 1); exit 1; }; } |
3293 |
|
fi |
3294 |
|
fi |
3295 |
|
|
3296 |
< |
case $debug in |
3297 |
< |
1) |
3298 |
< |
;; |
3299 |
< |
*) |
3296 |
> |
ac_ext=f90 |
3297 |
> |
ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5' |
3298 |
> |
ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3299 |
> |
ac_compiler_gnu=$ac_cv_f90_compiler_gnu |
3300 |
|
|
2525 |
– |
# Try to determine "good" native compiler flags if none specified on command |
2526 |
– |
# line |
2527 |
– |
if test "$ac_test_CFLAGS" != "set"; then |
2528 |
– |
CFLAGS="" |
2529 |
– |
case "${host_cpu}-${host_os}" in |
3301 |
|
|
2531 |
– |
*linux*) if test "$CC" = icc; then |
2532 |
– |
CFLAGS="-O" |
2533 |
– |
fi;; |
2534 |
– |
sparc-solaris2*) if test "$CC" = cc; then |
2535 |
– |
CFLAGS="-native -fast -xO5 -dalign" |
2536 |
– |
fi;; |
3302 |
|
|
3303 |
< |
alpha*-osf*) if test "$CC" = cc; then |
3304 |
< |
CFLAGS="-newc -w0 -O5 -ansi_alias -ansi_args -fp_reorder -tune host -arch host -std1" |
3305 |
< |
fi;; |
3303 |
> |
ac_ext=f90 |
3304 |
> |
ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5' |
3305 |
> |
ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3306 |
> |
ac_compiler_gnu=$ac_cv_f90_compiler_gnu |
3307 |
> |
echo "$as_me:$LINENO: checking how to get verbose linking output from $F90" >&5 |
3308 |
> |
echo $ECHO_N "checking how to get verbose linking output from $F90... $ECHO_C" >&6 |
3309 |
> |
if test "${ac_cv_prog_f90_v+set}" = set; then |
3310 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
3311 |
> |
else |
3312 |
|
|
3313 |
< |
hppa*-hpux*) if test "$CC" = cc; then |
2543 |
< |
CFLAGS="-Ae +O3 +Oall" |
2544 |
< |
fi;; |
3313 |
> |
cat >conftest.$ac_ext <<_ACEOF |
3314 |
|
|
3315 |
< |
rs6000*-aix*) if test "$CC" = cc -o "$CC" = xlc; then |
2547 |
< |
CFLAGS="-O3 -qtune=auto -qansialias -w" |
2548 |
< |
fi;; |
2549 |
< |
powerpc*-aix*) |
2550 |
< |
if test "$CC" = cc -o "$CC" = xlc; then |
2551 |
< |
CFLAGS="-O3 -qtune=auto -qansialias -w" |
2552 |
< |
echo "*******************************************************" |
2553 |
< |
echo "* You have AIX on an unknown powerpc system. It is *" |
2554 |
< |
echo "* recommended that you use *" |
2555 |
< |
echo "* *" |
2556 |
< |
echo "* CFLAGS=-O3 -qarch=ppc -qtune=xxx -qansialias -w *" |
2557 |
< |
echo "* ^^^ *" |
2558 |
< |
echo "* where xxx is 601, 603, 604, or whatever kind of *" |
2559 |
< |
echo "* PowerPC CPU you have. For more info, man cc. *" |
2560 |
< |
echo "*******************************************************" |
2561 |
< |
fi;; |
2562 |
< |
*darwin*) |
2563 |
< |
if test "$CC" = xlc -o "$CC" = cc; then |
2564 |
< |
CFLAGS="-O3 -qtune=auto -w" |
2565 |
< |
echo "*******************************************************" |
2566 |
< |
echo "* You have Darwin on an unknown powerpc system. *" |
2567 |
< |
echo "* It is recommended that you use *" |
2568 |
< |
echo "* *" |
2569 |
< |
echo "* CFLAGS=-O3 -qarch=ppc -qtune=xxx -qansialias -w *" |
2570 |
< |
echo "* ^^^ *" |
2571 |
< |
echo "* where xxx is 601, 603, 604, or whatever kind of *" |
2572 |
< |
echo "* PowerPC CPU you have. For more info, man cc. *" |
2573 |
< |
echo "*******************************************************" |
2574 |
< |
fi;; |
2575 |
< |
esac |
3315 |
> |
program main |
3316 |
|
|
2577 |
– |
# use default flags for gcc on all systems |
2578 |
– |
if test $ac_cv_c_compiler_gnu = yes; then |
2579 |
– |
CFLAGS="-O6 -fomit-frame-pointer -Wall -W -Wcast-qual -Wpointer-arith -Wcast-align -pedantic" |
2580 |
– |
fi |
3317 |
|
|
3318 |
< |
# test for gcc-specific flags: |
2583 |
< |
if test $ac_cv_c_compiler_gnu = yes; then |
2584 |
< |
# -malign-double for x86 systems |
3318 |
> |
end program main |
3319 |
|
|
3320 |
< |
echo "$as_me:2586: checking whether ${CC-cc} accepts -malign-double" >&5 |
3321 |
< |
echo $ECHO_N "checking whether ${CC-cc} accepts -malign-double... $ECHO_C" >&6 |
3322 |
< |
if test "${ac_align_double+set}" = set; then |
3323 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
3324 |
< |
else |
3325 |
< |
echo 'void f(){}' > conftest.c |
3326 |
< |
if test -z "`${CC-cc} -malign-double -c conftest.c 2>&1`"; then |
3327 |
< |
ac_align_double=yes |
3328 |
< |
else |
3329 |
< |
ac_align_double=no |
3330 |
< |
fi |
3331 |
< |
rm -f conftest* |
3320 |
> |
_ACEOF |
3321 |
> |
rm -f conftest.$ac_objext |
3322 |
> |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
3323 |
> |
(eval $ac_compile) 2>&5 |
3324 |
> |
ac_status=$? |
3325 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3326 |
> |
(exit $ac_status); } && |
3327 |
> |
{ ac_try='test -s conftest.$ac_objext' |
3328 |
> |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3329 |
> |
(eval $ac_try) 2>&5 |
3330 |
> |
ac_status=$? |
3331 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3332 |
> |
(exit $ac_status); }; }; then |
3333 |
> |
ac_cv_prog_f90_v= |
3334 |
> |
# Try some options frequently used verbose output |
3335 |
> |
for ac_verb in -v -verbose --verbose -V -\#\#\#; do |
3336 |
> |
ac_ext=f90 |
3337 |
> |
ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5' |
3338 |
> |
ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3339 |
> |
ac_compiler_gnu=$ac_cv_f90_compiler_gnu |
3340 |
|
|
3341 |
< |
fi |
2600 |
< |
echo "$as_me:2600: result: $ac_align_double" >&5 |
2601 |
< |
echo "${ECHO_T}$ac_align_double" >&6 |
2602 |
< |
if test "$ac_align_double" = yes; then |
2603 |
< |
: |
2604 |
< |
CFLAGS="$CFLAGS -malign-double" |
2605 |
< |
else |
2606 |
< |
: |
3341 |
> |
cat >conftest.$ac_ext <<_ACEOF |
3342 |
|
|
3343 |
< |
fi |
3343 |
> |
program main |
3344 |
|
|
2610 |
– |
# -fstrict-aliasing for gcc-2.95+ |
3345 |
|
|
3346 |
< |
echo "$as_me:2612: checking whether ${CC-cc} accepts -fstrict-aliasing" >&5 |
2613 |
< |
echo $ECHO_N "checking whether ${CC-cc} accepts -fstrict-aliasing... $ECHO_C" >&6 |
2614 |
< |
if test "${ac_fstrict_aliasing+set}" = set; then |
2615 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
2616 |
< |
else |
2617 |
< |
echo 'void f(){}' > conftest.c |
2618 |
< |
if test -z "`${CC-cc} -fstrict-aliasing -c conftest.c 2>&1`"; then |
2619 |
< |
ac_fstrict_aliasing=yes |
2620 |
< |
else |
2621 |
< |
ac_fstrict_aliasing=no |
2622 |
< |
fi |
2623 |
< |
rm -f conftest* |
3346 |
> |
end program main |
3347 |
|
|
3348 |
< |
fi |
2626 |
< |
echo "$as_me:2626: result: $ac_fstrict_aliasing" >&5 |
2627 |
< |
echo "${ECHO_T}$ac_fstrict_aliasing" >&6 |
2628 |
< |
if test "$ac_fstrict_aliasing" = yes; then |
2629 |
< |
: |
2630 |
< |
CFLAGS="$CFLAGS -fstrict-aliasing" |
2631 |
< |
else |
2632 |
< |
: |
3348 |
> |
_ACEOF |
3349 |
|
|
3350 |
< |
fi |
3350 |
> |
# Compile and link our simple test program by passing a flag (argument |
3351 |
> |
# 1 to this macro) to the Fortran 90 compiler in order to get |
3352 |
> |
# "verbose" output that we can then parse for the Fortran 90 linker |
3353 |
> |
# flags. |
3354 |
> |
ac_save_F90FLAGS=$F90FLAGS |
3355 |
> |
F90FLAGS="$F90FLAGS $ac_verb" |
3356 |
|
|
3357 |
< |
fi |
3357 |
> |
(eval echo $as_me:3357: \"$ac_link\") >&5 |
3358 |
> |
ac_f90_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'` |
3359 |
> |
echo "$ac_f90_v_output" >&5 |
3360 |
> |
F90FLAGS=$ac_save_F90FLAGS |
3361 |
|
|
3362 |
< |
CPU_FLAGS="" |
3363 |
< |
if test "$GCC" = "yes"; then |
3364 |
< |
case "${host_cpu}" in |
3365 |
< |
i586*) |
3362 |
> |
rm -f conftest.* |
3363 |
> |
ac_ext=f90 |
3364 |
> |
ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5' |
3365 |
> |
ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3366 |
> |
ac_compiler_gnu=$ac_cv_f90_compiler_gnu |
3367 |
|
|
3368 |
< |
echo "$as_me:2643: checking whether ${CC-cc} accepts -mcpu=pentium" >&5 |
3369 |
< |
echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=pentium... $ECHO_C" >&6 |
3370 |
< |
if test "${ac_cpu_pentium+set}" = set; then |
2646 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
2647 |
< |
else |
2648 |
< |
echo 'void f(){}' > conftest.c |
2649 |
< |
if test -z "`${CC-cc} -mcpu=pentium -c conftest.c 2>&1`"; then |
2650 |
< |
ac_cpu_pentium=yes |
2651 |
< |
else |
2652 |
< |
ac_cpu_pentium=no |
3368 |
> |
# If we are using xlf then replace all the commas with spaces. |
3369 |
> |
if echo $ac_f90_v_output | grep xlfentry >/dev/null 2>&1; then |
3370 |
> |
ac_f90_v_output=`echo $ac_f90_v_output | sed 's/,/ /g'` |
3371 |
|
fi |
2654 |
– |
rm -f conftest* |
3372 |
|
|
3373 |
+ |
# If we are using Cray Fortran then delete quotes. |
3374 |
+ |
# Use "\"" instead of '"' for font-lock-mode. |
3375 |
+ |
# FIXME: a more general fix for quoted arguments with spaces? |
3376 |
+ |
if echo $ac_f90_v_output | grep cft90 >/dev/null 2>&1; then |
3377 |
+ |
ac_f90_v_output=`echo $ac_f90_v_output | sed "s/\"//g"` |
3378 |
|
fi |
3379 |
< |
echo "$as_me:2657: result: $ac_cpu_pentium" >&5 |
3380 |
< |
echo "${ECHO_T}$ac_cpu_pentium" >&6 |
3381 |
< |
if test "$ac_cpu_pentium" = yes; then |
3382 |
< |
: |
3383 |
< |
CPU_FLAGS=-mcpu=pentium |
3384 |
< |
else |
3385 |
< |
: |
3386 |
< |
|
3387 |
< |
echo "$as_me:2665: checking whether ${CC-cc} accepts -mpentium" >&5 |
3388 |
< |
echo $ECHO_N "checking whether ${CC-cc} accepts -mpentium... $ECHO_C" >&6 |
3389 |
< |
if test "${ac_pentium+set}" = set; then |
3390 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
2669 |
< |
else |
2670 |
< |
echo 'void f(){}' > conftest.c |
2671 |
< |
if test -z "`${CC-cc} -mpentium -c conftest.c 2>&1`"; then |
2672 |
< |
ac_pentium=yes |
2673 |
< |
else |
2674 |
< |
ac_pentium=no |
3379 |
> |
# look for -l* and *.a constructs in the output |
3380 |
> |
for ac_arg in $ac_f90_v_output; do |
3381 |
> |
case $ac_arg in |
3382 |
> |
[\\/]*.a | ?:[\\/]*.a | -[lLRu]*) |
3383 |
> |
ac_cv_prog_f90_v=$ac_verb |
3384 |
> |
break 2 ;; |
3385 |
> |
esac |
3386 |
> |
done |
3387 |
> |
done |
3388 |
> |
if test -z "$ac_cv_prog_f90_v"; then |
3389 |
> |
{ echo "$as_me:$LINENO: WARNING: cannot determine how to obtain linking information from $F90" >&5 |
3390 |
> |
echo "$as_me: WARNING: cannot determine how to obtain linking information from $F90" >&2;} |
3391 |
|
fi |
2676 |
– |
rm -f conftest* |
2677 |
– |
|
2678 |
– |
fi |
2679 |
– |
echo "$as_me:2679: result: $ac_pentium" >&5 |
2680 |
– |
echo "${ECHO_T}$ac_pentium" >&6 |
2681 |
– |
if test "$ac_pentium" = yes; then |
2682 |
– |
: |
2683 |
– |
CPU_FLAGS=-mpentium |
3392 |
|
else |
3393 |
< |
: |
3393 |
> |
echo "$as_me: failed program was:" >&5 |
3394 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
3395 |
|
|
3396 |
+ |
{ echo "$as_me:$LINENO: WARNING: compilation failed" >&5 |
3397 |
+ |
echo "$as_me: WARNING: compilation failed" >&2;} |
3398 |
|
fi |
3399 |
+ |
rm -f conftest.$ac_objext conftest.$ac_ext |
3400 |
|
|
3401 |
|
fi |
3402 |
< |
|
3403 |
< |
;; |
3404 |
< |
i686*) |
3405 |
< |
|
3406 |
< |
echo "$as_me:2694: checking whether ${CC-cc} accepts -mcpu=pentiumpro" >&5 |
2695 |
< |
echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=pentiumpro... $ECHO_C" >&6 |
2696 |
< |
if test "${ac_cpu_pentiumpro+set}" = set; then |
3402 |
> |
echo "$as_me:$LINENO: result: $ac_cv_prog_f90_v" >&5 |
3403 |
> |
echo "${ECHO_T}$ac_cv_prog_f90_v" >&6 |
3404 |
> |
echo "$as_me:$LINENO: checking for Fortran 90 libraries" >&5 |
3405 |
> |
echo $ECHO_N "checking for Fortran 90 libraries... $ECHO_C" >&6 |
3406 |
> |
if test "${ac_cv_flibs+set}" = set; then |
3407 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
3408 |
|
else |
3409 |
< |
echo 'void f(){}' > conftest.c |
3410 |
< |
if test -z "`${CC-cc} -mcpu=pentiumpro -c conftest.c 2>&1`"; then |
2701 |
< |
ac_cpu_pentiumpro=yes |
3409 |
> |
if test "x$F90LIBS" != "x"; then |
3410 |
> |
ac_cv_f90libs="$F90LIBS" # Let the user override the test. |
3411 |
|
else |
2703 |
– |
ac_cpu_pentiumpro=no |
2704 |
– |
fi |
2705 |
– |
rm -f conftest* |
3412 |
|
|
3413 |
< |
fi |
3414 |
< |
echo "$as_me:2708: result: $ac_cpu_pentiumpro" >&5 |
3415 |
< |
echo "${ECHO_T}$ac_cpu_pentiumpro" >&6 |
3416 |
< |
if test "$ac_cpu_pentiumpro" = yes; then |
2711 |
< |
: |
2712 |
< |
CPU_FLAGS=-mcpu=pentiumpro |
2713 |
< |
else |
2714 |
< |
: |
3413 |
> |
ac_ext=f90 |
3414 |
> |
ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5' |
3415 |
> |
ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3416 |
> |
ac_compiler_gnu=$ac_cv_f90_compiler_gnu |
3417 |
|
|
3418 |
< |
echo "$as_me:2716: checking whether ${CC-cc} accepts -mpentiumpro" >&5 |
2717 |
< |
echo $ECHO_N "checking whether ${CC-cc} accepts -mpentiumpro... $ECHO_C" >&6 |
2718 |
< |
if test "${ac_pentiumpro+set}" = set; then |
2719 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
2720 |
< |
else |
2721 |
< |
echo 'void f(){}' > conftest.c |
2722 |
< |
if test -z "`${CC-cc} -mpentiumpro -c conftest.c 2>&1`"; then |
2723 |
< |
ac_pentiumpro=yes |
2724 |
< |
else |
2725 |
< |
ac_pentiumpro=no |
2726 |
< |
fi |
2727 |
< |
rm -f conftest* |
3418 |
> |
cat >conftest.$ac_ext <<_ACEOF |
3419 |
|
|
3420 |
< |
fi |
2730 |
< |
echo "$as_me:2730: result: $ac_pentiumpro" >&5 |
2731 |
< |
echo "${ECHO_T}$ac_pentiumpro" >&6 |
2732 |
< |
if test "$ac_pentiumpro" = yes; then |
2733 |
< |
: |
2734 |
< |
CPU_FLAGS=-mpentiumpro |
2735 |
< |
else |
2736 |
< |
: |
3420 |
> |
program main |
3421 |
|
|
2738 |
– |
fi |
3422 |
|
|
3423 |
< |
fi |
3423 |
> |
end program main |
3424 |
|
|
3425 |
< |
;; |
2743 |
< |
powerpc*) |
2744 |
< |
cputype=`(grep cpu /proc/cpuinfo | head -1 | cut -d: -f2 | sed 's/ //g') 2> /dev/null` |
2745 |
< |
is60x=`echo $cputype | egrep "^600-9e?$"` |
2746 |
< |
if test -n "$is60x"; then |
3425 |
> |
_ACEOF |
3426 |
|
|
3427 |
< |
echo "$as_me:2748: checking whether ${CC-cc} accepts -mcpu=$cputype" >&5 |
3428 |
< |
echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=$cputype... $ECHO_C" >&6 |
3429 |
< |
if test "${ac_m_cpu_60x+set}" = set; then |
3430 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
3431 |
< |
else |
3432 |
< |
echo 'void f(){}' > conftest.c |
2754 |
< |
if test -z "`${CC-cc} -mcpu=$cputype -c conftest.c 2>&1`"; then |
2755 |
< |
ac_m_cpu_60x=yes |
2756 |
< |
else |
2757 |
< |
ac_m_cpu_60x=no |
2758 |
< |
fi |
2759 |
< |
rm -f conftest* |
3427 |
> |
# Compile and link our simple test program by passing a flag (argument |
3428 |
> |
# 1 to this macro) to the Fortran 90 compiler in order to get |
3429 |
> |
# "verbose" output that we can then parse for the Fortran 90 linker |
3430 |
> |
# flags. |
3431 |
> |
ac_save_F90FLAGS=$F90FLAGS |
3432 |
> |
F90FLAGS="$F90FLAGS $ac_cv_prog_f90_v" |
3433 |
|
|
3434 |
+ |
(eval echo $as_me:3434: \"$ac_link\") >&5 |
3435 |
+ |
ac_f90_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'` |
3436 |
+ |
echo "$ac_f90_v_output" >&5 |
3437 |
+ |
F90FLAGS=$ac_save_F90FLAGS |
3438 |
+ |
|
3439 |
+ |
rm -f conftest.* |
3440 |
+ |
ac_ext=f90 |
3441 |
+ |
ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5' |
3442 |
+ |
ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3443 |
+ |
ac_compiler_gnu=$ac_cv_f90_compiler_gnu |
3444 |
+ |
|
3445 |
+ |
# If we are using xlf then replace all the commas with spaces. |
3446 |
+ |
if echo $ac_f90_v_output | grep xlfentry >/dev/null 2>&1; then |
3447 |
+ |
ac_f90_v_output=`echo $ac_f90_v_output | sed 's/,/ /g'` |
3448 |
|
fi |
2762 |
– |
echo "$as_me:2762: result: $ac_m_cpu_60x" >&5 |
2763 |
– |
echo "${ECHO_T}$ac_m_cpu_60x" >&6 |
2764 |
– |
if test "$ac_m_cpu_60x" = yes; then |
2765 |
– |
: |
2766 |
– |
CPU_FLAGS=-mcpu=$cputype |
2767 |
– |
else |
2768 |
– |
: |
3449 |
|
|
3450 |
+ |
# If we are using Cray Fortran then delete quotes. |
3451 |
+ |
# Use "\"" instead of '"' for font-lock-mode. |
3452 |
+ |
# FIXME: a more general fix for quoted arguments with spaces? |
3453 |
+ |
if echo $ac_f90_v_output | grep cft90 >/dev/null 2>&1; then |
3454 |
+ |
ac_f90_v_output=`echo $ac_f90_v_output | sed "s/\"//g"` |
3455 |
|
fi |
3456 |
|
|
3457 |
< |
elif test "$cputype" = 750; then |
3457 |
> |
ac_cv_f90libs= |
3458 |
|
|
3459 |
< |
echo "$as_me:2774: checking whether we are using gcc 2.95 or later" >&5 |
3460 |
< |
echo $ECHO_N "checking whether we are using gcc 2.95 or later... $ECHO_C" >&6 |
2776 |
< |
if test "${ac_cv_prog_gcc_2_95+set}" = set; then |
2777 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
2778 |
< |
else |
3459 |
> |
# Save positional arguments (if any) |
3460 |
> |
ac_save_positional="$@" |
3461 |
|
|
3462 |
< |
cat > conftest.c <<EOF |
3463 |
< |
#ifdef __GNUC__ |
3464 |
< |
# if (__GNUC__ > 2) || (__GNUC__ == 2 && __GNUC_MINOR__ >= 95) |
3465 |
< |
yes; |
3466 |
< |
# endif |
3467 |
< |
#endif |
3468 |
< |
EOF |
3469 |
< |
if { ac_try='${CC-cc} -E conftest.c' |
3470 |
< |
{ (eval echo "$as_me:2788: \"$ac_try\"") >&5 |
3471 |
< |
(eval $ac_try) 2>&5 |
3472 |
< |
ac_status=$? |
3473 |
< |
echo "$as_me:2791: \$? = $ac_status" >&5 |
3474 |
< |
(exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then |
3475 |
< |
ac_cv_prog_gcc_2_95=yes |
3462 |
> |
set X $ac_f90_v_output |
3463 |
> |
while test $# != 1; do |
3464 |
> |
shift |
3465 |
> |
ac_arg=$1 |
3466 |
> |
case $ac_arg in |
3467 |
> |
[\\/]*.a | ?:[\\/]*.a) |
3468 |
> |
ac_exists=false |
3469 |
> |
for ac_i in $ac_cv_f90libs; do |
3470 |
> |
if test x"$ac_arg" = x"$ac_i"; then |
3471 |
> |
ac_exists=true |
3472 |
> |
break |
3473 |
> |
fi |
3474 |
> |
done |
3475 |
> |
|
3476 |
> |
if test x"$ac_exists" = xtrue; then |
3477 |
> |
: |
3478 |
|
else |
3479 |
< |
ac_cv_prog_gcc_2_95=no |
3479 |
> |
ac_cv_f90libs="$ac_cv_f90libs $ac_arg" |
3480 |
|
fi |
3481 |
|
|
3482 |
< |
fi |
3483 |
< |
echo "$as_me:2799: result: $ac_cv_prog_gcc_2_95" >&5 |
3484 |
< |
echo "${ECHO_T}$ac_cv_prog_gcc_2_95" >&6 |
3485 |
< |
if test "$ac_cv_prog_gcc_2_95" = yes; then |
3486 |
< |
: |
3487 |
< |
|
3488 |
< |
echo "$as_me:2804: checking whether ${CC-cc} accepts -mcpu=750" >&5 |
3489 |
< |
echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=750... $ECHO_C" >&6 |
3482 |
> |
;; |
3483 |
> |
-bI:*) |
3484 |
> |
ac_exists=false |
3485 |
> |
for ac_i in $ac_cv_f90libs; do |
3486 |
> |
if test x"$ac_arg" = x"$ac_i"; then |
3487 |
> |
ac_exists=true |
3488 |
> |
break |
3489 |
> |
fi |
3490 |
> |
done |
3491 |
> |
|
3492 |
> |
if test x"$ac_exists" = xtrue; then |
3493 |
> |
: |
3494 |
> |
else |
3495 |
> |
if test "$ac_compiler_gnu" = yes; then |
3496 |
> |
for ac_link_opt in $ac_arg; do |
3497 |
> |
ac_cv_f90libs="$ac_cv_f90libs -Xlinker $ac_link_opt" |
3498 |
> |
done |
3499 |
> |
else |
3500 |
> |
ac_cv_f90libs="$ac_cv_f90libs $ac_arg" |
3501 |
> |
fi |
3502 |
> |
fi |
3503 |
> |
|
3504 |
> |
;; |
3505 |
> |
# Ignore these flags. |
3506 |
> |
-lang* | -lcrt[012].o | -lc | -lgcc | -LANG:=*) |
3507 |
> |
;; |
3508 |
> |
-lkernel32) |
3509 |
> |
test x"$CYGWIN" != xyes && ac_cv_f90libs="$ac_cv_f90libs $ac_arg" |
3510 |
> |
;; |
3511 |
> |
-[LRuY]) |
3512 |
> |
# These flags, when seen by themselves, take an argument. |
3513 |
> |
# We remove the space between option and argument and re-iterate |
3514 |
> |
# unless we find an empty arg or a new option (starting with -) |
3515 |
> |
case $2 in |
3516 |
> |
"" | -*);; |
3517 |
> |
*) |
3518 |
> |
ac_arg="$ac_arg$2" |
3519 |
> |
|
3520 |
> |
shift; shift |
3521 |
> |
set X $ac_arg "$@" |
3522 |
> |
;; |
3523 |
> |
esac |
3524 |
> |
;; |
3525 |
> |
-YP,*) |
3526 |
> |
for ac_j in `echo $ac_arg | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do |
3527 |
> |
ac_exists=false |
3528 |
> |
for ac_i in $ac_cv_f90libs; do |
3529 |
> |
if test x"$ac_j" = x"$ac_i"; then |
3530 |
> |
ac_exists=true |
3531 |
> |
break |
3532 |
> |
fi |
3533 |
> |
done |
3534 |
> |
|
3535 |
> |
if test x"$ac_exists" = xtrue; then |
3536 |
> |
: |
3537 |
> |
else |
3538 |
> |
ac_arg="$ac_arg $ac_j" |
3539 |
> |
ac_cv_f90libs="$ac_cv_f90libs $ac_j" |
3540 |
> |
fi |
3541 |
> |
|
3542 |
> |
done |
3543 |
> |
;; |
3544 |
> |
-[lLR]*) |
3545 |
> |
ac_exists=false |
3546 |
> |
for ac_i in $ac_cv_f90libs; do |
3547 |
> |
if test x"$ac_arg" = x"$ac_i"; then |
3548 |
> |
ac_exists=true |
3549 |
> |
break |
3550 |
> |
fi |
3551 |
> |
done |
3552 |
> |
|
3553 |
> |
if test x"$ac_exists" = xtrue; then |
3554 |
> |
: |
3555 |
> |
else |
3556 |
> |
ac_cv_f90libs="$ac_cv_f90libs $ac_arg" |
3557 |
> |
fi |
3558 |
> |
|
3559 |
> |
;; |
3560 |
> |
# Ignore everything else. |
3561 |
> |
esac |
3562 |
> |
done |
3563 |
> |
# restore positional arguments |
3564 |
> |
set X $ac_save_positional; shift |
3565 |
> |
|
3566 |
> |
# We only consider "LD_RUN_PATH" on Solaris systems. If this is seen, |
3567 |
> |
# then we insist that the "run path" must be an absolute path (i.e. it |
3568 |
> |
# must begin with a "/"). |
3569 |
> |
case `(uname -sr) 2>/dev/null` in |
3570 |
> |
"SunOS 5"*) |
3571 |
> |
ac_ld_run_path=`echo $ac_f90_v_output | |
3572 |
> |
sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'` |
3573 |
> |
test "x$ac_ld_run_path" != x && |
3574 |
> |
|
3575 |
> |
if test "$ac_compiler_gnu" = yes; then |
3576 |
> |
for ac_link_opt in $ac_ld_run_path; do |
3577 |
> |
ac_cv_f90libs="$ac_cv_f90libs -Xlinker $ac_link_opt" |
3578 |
> |
done |
3579 |
> |
else |
3580 |
> |
ac_cv_f90libs="$ac_cv_f90libs $ac_ld_run_path" |
3581 |
> |
fi |
3582 |
> |
;; |
3583 |
> |
esac |
3584 |
> |
fi # test "x$F90LIBS" = "x" |
3585 |
> |
|
3586 |
> |
fi |
3587 |
> |
echo "$as_me:$LINENO: result: $ac_cv_flibs" >&5 |
3588 |
> |
echo "${ECHO_T}$ac_cv_flibs" >&6 |
3589 |
> |
F90LIBS="$ac_cv_f90libs" |
3590 |
> |
|
3591 |
> |
ac_ext=f90 |
3592 |
> |
ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5' |
3593 |
> |
ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3594 |
> |
ac_compiler_gnu=$ac_cv_f90_compiler_gnu |
3595 |
> |
|
3596 |
> |
|
3597 |
> |
echo "$as_me:$LINENO: checking for Fortran 90 name-mangling scheme" >&5 |
3598 |
> |
echo $ECHO_N "checking for Fortran 90 name-mangling scheme... $ECHO_C" >&6 |
3599 |
> |
if test "${ac_cv_f90_mangling+set}" = set; then |
3600 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
3601 |
> |
else |
3602 |
> |
ac_ext=f90 |
3603 |
> |
ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5' |
3604 |
> |
ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3605 |
> |
ac_compiler_gnu=$ac_cv_f90_compiler_gnu |
3606 |
> |
cat >conftest.$ac_ext <<_ACEOF |
3607 |
> |
subroutine foobar() |
3608 |
> |
return |
3609 |
> |
end |
3610 |
> |
subroutine foo_bar() |
3611 |
> |
return |
3612 |
> |
end |
3613 |
> |
_ACEOF |
3614 |
> |
rm -f conftest.$ac_objext |
3615 |
> |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
3616 |
> |
(eval $ac_compile) 2>&5 |
3617 |
> |
ac_status=$? |
3618 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3619 |
> |
(exit $ac_status); } && |
3620 |
> |
{ ac_try='test -s conftest.$ac_objext' |
3621 |
> |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3622 |
> |
(eval $ac_try) 2>&5 |
3623 |
> |
ac_status=$? |
3624 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3625 |
> |
(exit $ac_status); }; }; then |
3626 |
> |
mv conftest.$ac_objext cf90_test.$ac_objext |
3627 |
> |
|
3628 |
> |
ac_ext=c |
3629 |
> |
ac_cpp='$CPP $CPPFLAGS' |
3630 |
> |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
3631 |
> |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3632 |
> |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
3633 |
> |
|
3634 |
> |
ac_save_LIBS=$LIBS |
3635 |
> |
LIBS="cf90_test.$ac_objext $F90LIBS $LIBS" |
3636 |
> |
|
3637 |
> |
ac_success=no |
3638 |
> |
for ac_foobar in foobar FOOBAR; do |
3639 |
> |
for ac_underscore in "" "_"; do |
3640 |
> |
ac_func="$ac_foobar$ac_underscore" |
3641 |
> |
cat >conftest.$ac_ext <<_ACEOF |
3642 |
> |
#line $LINENO "configure" |
3643 |
> |
/* confdefs.h. */ |
3644 |
> |
_ACEOF |
3645 |
> |
cat confdefs.h >>conftest.$ac_ext |
3646 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
3647 |
> |
/* end confdefs.h. */ |
3648 |
> |
|
3649 |
> |
/* Override any gcc2 internal prototype to avoid an error. */ |
3650 |
> |
#ifdef __cplusplus |
3651 |
> |
extern "C" |
3652 |
> |
#endif |
3653 |
> |
/* We use char because int might match the return type of a gcc2 |
3654 |
> |
builtin and then its argument prototype would still apply. */ |
3655 |
> |
char $ac_func (); |
3656 |
> |
int |
3657 |
> |
main () |
3658 |
> |
{ |
3659 |
> |
$ac_func (); |
3660 |
> |
; |
3661 |
> |
return 0; |
3662 |
> |
} |
3663 |
> |
_ACEOF |
3664 |
> |
rm -f conftest.$ac_objext conftest$ac_exeext |
3665 |
> |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
3666 |
> |
(eval $ac_link) 2>&5 |
3667 |
> |
ac_status=$? |
3668 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3669 |
> |
(exit $ac_status); } && |
3670 |
> |
{ ac_try='test -s conftest$ac_exeext' |
3671 |
> |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3672 |
> |
(eval $ac_try) 2>&5 |
3673 |
> |
ac_status=$? |
3674 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3675 |
> |
(exit $ac_status); }; }; then |
3676 |
> |
ac_success=yes; break 2 |
3677 |
> |
else |
3678 |
> |
echo "$as_me: failed program was:" >&5 |
3679 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
3680 |
> |
|
3681 |
> |
fi |
3682 |
> |
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
3683 |
> |
done |
3684 |
> |
done |
3685 |
> |
|
3686 |
> |
if test "$ac_success" = "yes"; then |
3687 |
> |
case $ac_foobar in |
3688 |
> |
foobar) |
3689 |
> |
ac_case=lower |
3690 |
> |
ac_foo_bar=foo_bar |
3691 |
> |
;; |
3692 |
> |
FOOBAR) |
3693 |
> |
ac_case=upper |
3694 |
> |
ac_foo_bar=FOO_BAR |
3695 |
> |
;; |
3696 |
> |
esac |
3697 |
> |
|
3698 |
> |
ac_success_extra=no |
3699 |
> |
for ac_extra in "" "_"; do |
3700 |
> |
ac_func="$ac_foo_bar$ac_underscore$ac_extra" |
3701 |
> |
|
3702 |
> |
cat >conftest.$ac_ext <<_ACEOF |
3703 |
> |
#line $LINENO "configure" |
3704 |
> |
/* confdefs.h. */ |
3705 |
> |
_ACEOF |
3706 |
> |
cat confdefs.h >>conftest.$ac_ext |
3707 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
3708 |
> |
/* end confdefs.h. */ |
3709 |
> |
|
3710 |
> |
/* Override any gcc2 internal prototype to avoid an error. */ |
3711 |
> |
#ifdef __cplusplus |
3712 |
> |
extern "C" |
3713 |
> |
#endif |
3714 |
> |
/* We use char because int might match the return type of a gcc2 |
3715 |
> |
builtin and then its argument prototype would still apply. */ |
3716 |
> |
char $ac_func (); |
3717 |
> |
int |
3718 |
> |
main () |
3719 |
> |
{ |
3720 |
> |
$ac_func (); |
3721 |
> |
; |
3722 |
> |
return 0; |
3723 |
> |
} |
3724 |
> |
_ACEOF |
3725 |
> |
rm -f conftest.$ac_objext conftest$ac_exeext |
3726 |
> |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
3727 |
> |
(eval $ac_link) 2>&5 |
3728 |
> |
ac_status=$? |
3729 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3730 |
> |
(exit $ac_status); } && |
3731 |
> |
{ ac_try='test -s conftest$ac_exeext' |
3732 |
> |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3733 |
> |
(eval $ac_try) 2>&5 |
3734 |
> |
ac_status=$? |
3735 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3736 |
> |
(exit $ac_status); }; }; then |
3737 |
> |
ac_success_extra=yes; break |
3738 |
> |
else |
3739 |
> |
echo "$as_me: failed program was:" >&5 |
3740 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
3741 |
> |
|
3742 |
> |
fi |
3743 |
> |
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
3744 |
> |
done |
3745 |
> |
|
3746 |
> |
if test "$ac_success_extra" = "yes"; then |
3747 |
> |
ac_cv_f90_mangling="$ac_case case" |
3748 |
> |
if test -z "$ac_underscore"; then |
3749 |
> |
ac_cv_f90_mangling="$ac_cv_f90_mangling, no underscore" |
3750 |
> |
else |
3751 |
> |
ac_cv_f90_mangling="$ac_cv_f90_mangling, underscore" |
3752 |
> |
|
3753 |
> |
fi |
3754 |
> |
if test -z "$ac_extra"; then |
3755 |
> |
ac_cv_f90_mangling="$ac_cv_f90_mangling, no extra underscore" |
3756 |
> |
else |
3757 |
> |
ac_cv_f90_mangling="$ac_cv_f90_mangling, extra underscore" |
3758 |
> |
fi |
3759 |
> |
else |
3760 |
> |
ac_cv_f90_mangling="unknown" |
3761 |
> |
fi |
3762 |
> |
else |
3763 |
> |
ac_cv_f90_mangling="unknown" |
3764 |
> |
|
3765 |
> |
fi |
3766 |
> |
|
3767 |
> |
LIBS=$ac_save_LIBS |
3768 |
> |
ac_ext=f90 |
3769 |
> |
ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5' |
3770 |
> |
ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3771 |
> |
ac_compiler_gnu=$ac_cv_f90_compiler_gnu |
3772 |
> |
rm -f cf90_test* conftest* |
3773 |
> |
else |
3774 |
> |
echo "$as_me: failed program was:" >&5 |
3775 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
3776 |
> |
|
3777 |
> |
fi |
3778 |
> |
rm -f conftest.$ac_objext conftest.$ac_ext |
3779 |
> |
ac_ext=f90 |
3780 |
> |
ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5' |
3781 |
> |
ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3782 |
> |
ac_compiler_gnu=$ac_cv_f90_compiler_gnu |
3783 |
> |
|
3784 |
> |
fi |
3785 |
> |
echo "$as_me:$LINENO: result: $ac_cv_f90_mangling" >&5 |
3786 |
> |
echo "${ECHO_T}$ac_cv_f90_mangling" >&6 |
3787 |
> |
|
3788 |
> |
|
3789 |
> |
|
3790 |
> |
case $ac_cv_f90_mangling in |
3791 |
> |
"lower case, no underscore, no extra underscore") |
3792 |
> |
cat >>confdefs.h <<\_ACEOF |
3793 |
> |
#define F90_FUNC(name,NAME) name |
3794 |
> |
_ACEOF |
3795 |
> |
|
3796 |
> |
cat >>confdefs.h <<\_ACEOF |
3797 |
> |
#define F90_FUNC_(name,NAME) name |
3798 |
> |
_ACEOF |
3799 |
> |
;; |
3800 |
> |
"lower case, no underscore, extra underscore") |
3801 |
> |
cat >>confdefs.h <<\_ACEOF |
3802 |
> |
#define F90_FUNC(name,NAME) name |
3803 |
> |
_ACEOF |
3804 |
> |
|
3805 |
> |
cat >>confdefs.h <<\_ACEOF |
3806 |
> |
#define F90_FUNC_(name,NAME) name ## _ |
3807 |
> |
_ACEOF |
3808 |
> |
;; |
3809 |
> |
"lower case, underscore, no extra underscore") |
3810 |
> |
cat >>confdefs.h <<\_ACEOF |
3811 |
> |
#define F90_FUNC(name,NAME) name ## _ |
3812 |
> |
_ACEOF |
3813 |
> |
|
3814 |
> |
cat >>confdefs.h <<\_ACEOF |
3815 |
> |
#define F90_FUNC_(name,NAME) name ## _ |
3816 |
> |
_ACEOF |
3817 |
> |
;; |
3818 |
> |
"lower case, underscore, extra underscore") |
3819 |
> |
cat >>confdefs.h <<\_ACEOF |
3820 |
> |
#define F90_FUNC(name,NAME) name ## _ |
3821 |
> |
_ACEOF |
3822 |
> |
|
3823 |
> |
cat >>confdefs.h <<\_ACEOF |
3824 |
> |
#define F90_FUNC_(name,NAME) name ## __ |
3825 |
> |
_ACEOF |
3826 |
> |
;; |
3827 |
> |
"upper case, no underscore, no extra underscore") |
3828 |
> |
cat >>confdefs.h <<\_ACEOF |
3829 |
> |
#define F90_FUNC(name,NAME) NAME |
3830 |
> |
_ACEOF |
3831 |
> |
|
3832 |
> |
cat >>confdefs.h <<\_ACEOF |
3833 |
> |
#define F90_FUNC_(name,NAME) NAME |
3834 |
> |
_ACEOF |
3835 |
> |
;; |
3836 |
> |
"upper case, no underscore, extra underscore") |
3837 |
> |
cat >>confdefs.h <<\_ACEOF |
3838 |
> |
#define F90_FUNC(name,NAME) NAME |
3839 |
> |
_ACEOF |
3840 |
> |
|
3841 |
> |
cat >>confdefs.h <<\_ACEOF |
3842 |
> |
#define F90_FUNC_(name,NAME) NAME ## _ |
3843 |
> |
_ACEOF |
3844 |
> |
;; |
3845 |
> |
"upper case, underscore, no extra underscore") |
3846 |
> |
cat >>confdefs.h <<\_ACEOF |
3847 |
> |
#define F90_FUNC(name,NAME) NAME ## _ |
3848 |
> |
_ACEOF |
3849 |
> |
|
3850 |
> |
cat >>confdefs.h <<\_ACEOF |
3851 |
> |
#define F90_FUNC_(name,NAME) NAME ## _ |
3852 |
> |
_ACEOF |
3853 |
> |
;; |
3854 |
> |
"upper case, underscore, extra underscore") |
3855 |
> |
cat >>confdefs.h <<\_ACEOF |
3856 |
> |
#define F90_FUNC(name,NAME) NAME ## _ |
3857 |
> |
_ACEOF |
3858 |
> |
|
3859 |
> |
cat >>confdefs.h <<\_ACEOF |
3860 |
> |
#define F90_FUNC_(name,NAME) NAME ## __ |
3861 |
> |
_ACEOF |
3862 |
> |
;; |
3863 |
> |
*) |
3864 |
> |
{ echo "$as_me:$LINENO: WARNING: unknown Fortran 90 name-mangling scheme" >&5 |
3865 |
> |
echo "$as_me: WARNING: unknown Fortran 90 name-mangling scheme" >&2;} |
3866 |
> |
;; |
3867 |
> |
esac |
3868 |
> |
|
3869 |
> |
|
3870 |
> |
|
3871 |
> |
|
3872 |
> |
|
3873 |
> |
echo "$as_me:$LINENO: checking for module suffix" >&5 |
3874 |
> |
echo $ECHO_N "checking for module suffix... $ECHO_C" >&6 |
3875 |
> |
rm -f conftest* |
3876 |
> |
# Intel ifc compiler generates files by the name of work.pc and work.pcl (!) |
3877 |
> |
rm -f work* |
3878 |
> |
cat >conftest.f90 <<EOF |
3879 |
> |
module conftest |
3880 |
> |
integer n |
3881 |
> |
parameter (n=1) |
3882 |
> |
end module conftest |
3883 |
> |
EOF |
3884 |
> |
# SGI and absoft compilers generates module name in upper case! |
3885 |
> |
testname="conftest" |
3886 |
> |
modcase="lower" |
3887 |
> |
if $F90 -c conftest.f90 > conftest.out 2>&1 ; then |
3888 |
> |
MOD=`ls conftest* | grep -v conftest.f | grep -v conftest.o` |
3889 |
> |
MOD=`echo "$MOD" | sed -e 's/conftest\.//g'` |
3890 |
> |
if test -z "$MOD" ; then |
3891 |
> |
MOD=`ls CONFTEST* 2>/dev/null \ |
3892 |
> |
| grep -v CONFTEST.f | grep -v CONFTEST.o` |
3893 |
> |
MOD=`echo "$MOD" | sed -e 's/CONFTEST\.//g'` |
3894 |
> |
if test -n "$MOD" ; then |
3895 |
> |
testname="CONFTEST" |
3896 |
> |
modcase="upper" |
3897 |
> |
fi |
3898 |
> |
fi |
3899 |
> |
if test -z "$MOD" ; then |
3900 |
> |
echo "$as_me:$LINENO: result: unknown" >&5 |
3901 |
> |
echo "${ECHO_T}unknown" >&6 |
3902 |
> |
# Use mod if we can't figure it out |
3903 |
> |
MOD="mod" |
3904 |
> |
else |
3905 |
> |
echo "$as_me:$LINENO: result: $MOD" >&5 |
3906 |
> |
echo "${ECHO_T}$MOD" >&6 |
3907 |
> |
fi |
3908 |
> |
if test -s work.pcl ; then |
3909 |
> |
{ echo "$as_me:$LINENO: WARNING: Compiler generates auxillery files!" >&5 |
3910 |
> |
echo "$as_me: WARNING: Compiler generates auxillery files!" >&2;} |
3911 |
> |
fi |
3912 |
> |
else |
3913 |
> |
echo "$as_me:$LINENO: result: unknown" >&5 |
3914 |
> |
echo "${ECHO_T}unknown" >&6 |
3915 |
> |
fi |
3916 |
> |
|
3917 |
> |
|
3918 |
> |
|
3919 |
> |
|
3920 |
> |
|
3921 |
> |
# Check for module include path (some use -I, some (Solaris) use -M, some |
3922 |
> |
# (absoft) use -p). |
3923 |
> |
# Intel compilers use a wierd system: -cl,filename.pcl . If no file is |
3924 |
> |
# specified, work.pcl and work.pc are created. However, if you specify |
3925 |
> |
# a file, it must contain a the name of a file ending in .pc . Ugh! |
3926 |
> |
# Use the module made above |
3927 |
> |
echo "$as_me:$LINENO: checking for module directory path flag" >&5 |
3928 |
> |
echo $ECHO_N "checking for module directory path flag... $ECHO_C" >&6 |
3929 |
> |
rm -f conftest* |
3930 |
> |
# Intel ifc compiler generates files by the name of work.pc and work.pcl (!) |
3931 |
> |
rm -f work* |
3932 |
> |
cat >conftest.f90 <<EOF |
3933 |
> |
module conftest |
3934 |
> |
integer n |
3935 |
> |
parameter (n=1) |
3936 |
> |
end module conftest |
3937 |
> |
EOF |
3938 |
> |
# SGI and absoft compilers generates module name in upper case! |
3939 |
> |
testname="conftest" |
3940 |
> |
if $F90 -c conftest.f90 > conftest.out 2>&1 ; then |
3941 |
> |
mod=`ls CONFTEST* 2>/dev/null | grep -v CONFTEST.f | grep -v CONFTEST.o` |
3942 |
> |
mod=`echo "$mod" | sed -e 's/CONFTEST\.//g'` |
3943 |
> |
if test -n "$mod" ; then |
3944 |
> |
testname="CONFTEST" |
3945 |
> |
fi |
3946 |
> |
madedir=0 |
3947 |
> |
if test ! -d conf ; then mkdir conf ; madedir=1; fi |
3948 |
> |
cp $testname.$MOD conf |
3949 |
> |
rm -f conftest* CONFTEST* |
3950 |
> |
cat >conftest1.f90 <<EOF |
3951 |
> |
program main |
3952 |
> |
use conftest |
3953 |
> |
print *, n |
3954 |
> |
end |
3955 |
> |
EOF |
3956 |
> |
F90_WORK_FILES_ARG="" |
3957 |
> |
F90MODINCSPEC="" |
3958 |
> |
if $F90 -c -Iconf conftest1.f90 > conftest.out 2>&1 ; then |
3959 |
> |
MODDIRFLAG="-I" |
3960 |
> |
F90MODINCSPEC="-I<dir>" |
3961 |
> |
echo "$as_me:$LINENO: result: -I" >&5 |
3962 |
> |
echo "${ECHO_T}-I" >&6 |
3963 |
> |
elif $F90 -c -Mconf conftest1.f90 >> conftest.out 2>&1 ; then |
3964 |
> |
MODDIRFLAG="-M" |
3965 |
> |
F90MODINCSPEC="-M<dir>" |
3966 |
> |
echo "$as_me:$LINENO: result: -M" >&5 |
3967 |
> |
echo "${ECHO_T}-M" >&6 |
3968 |
> |
elif $F90 -c -pconf conftest1.f90 >> conftest.out 2>&1 ; then |
3969 |
> |
MODDIRFLAG="-p" |
3970 |
> |
F90MODINCSPEC="-p<dir>" |
3971 |
> |
echo "$as_me:$LINENO: result: -p" >&5 |
3972 |
> |
echo "${ECHO_T}-p" >&6 |
3973 |
> |
elif test -s work.pc ; then |
3974 |
> |
cp work.pc conf/mpimod.pc |
3975 |
> |
echo "mpimod.pc" > conf/mpimod.pcl |
3976 |
> |
echo "`pwd`/conf/mpimod.pc" >> conf/mpimod.pcl |
3977 |
> |
if $F90 -c -cl,conf/mpimod.pcl conftest1.f >>conftest.out 2>&1 ; then |
3978 |
> |
MODDIRFLAG='-cl,mpimod.pcl' |
3979 |
> |
echo "$as_me:$LINENO: result: -cl,filename where filename contains a list of files and directories" >&5 |
3980 |
> |
echo "${ECHO_T}-cl,filename where filename contains a list of files and directories" >&6 |
3981 |
> |
F90_WORK_FILES_ARG="-cl,mpimod.pcl" |
3982 |
> |
F90MODINCSPEC="-cl,<dir>/<file>mod.pcl" |
3983 |
> |
|
3984 |
> |
else |
3985 |
> |
# The version of the Intel compiler that I have refuses to let |
3986 |
> |
# you put the "work catalog" list anywhere but the current |
3987 |
> |
# directory. For example, you cannot in |
3988 |
> |
: |
3989 |
> |
fi |
3990 |
> |
fi |
3991 |
> |
if test -z "MODDIRFLAG" ; then |
3992 |
> |
echo "$as_me:$LINENO: result: unknown" >&5 |
3993 |
> |
echo "${ECHO_T}unknown" >&6 |
3994 |
> |
fi |
3995 |
> |
|
3996 |
> |
|
3997 |
> |
rm -f conftest* conf/conftest* conf/CONFTEST* CONFTEST* conf/mpimod* |
3998 |
> |
if test $madedir = 1 ; then rmdir conf ; fi |
3999 |
> |
fi |
4000 |
> |
|
4001 |
> |
|
4002 |
> |
|
4003 |
> |
|
4004 |
> |
case $debug in |
4005 |
> |
1) |
4006 |
> |
;; |
4007 |
> |
*) |
4008 |
> |
|
4009 |
> |
|
4010 |
> |
|
4011 |
> |
|
4012 |
> |
|
4013 |
> |
|
4014 |
> |
echo "$as_me:$LINENO: checking whether we are *really* using GNU cc" >&5 |
4015 |
> |
echo $ECHO_N "checking whether we are *really* using GNU cc... $ECHO_C" >&6 |
4016 |
> |
if test "${ac_cv_prog_really_gcc+set}" = set; then |
4017 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
4018 |
> |
else |
4019 |
> |
|
4020 |
> |
cat > conftest.c <<EOF |
4021 |
> |
#ifdef __GNUC__ |
4022 |
> |
#ifndef __INTEL_COMPILER |
4023 |
> |
yes; |
4024 |
> |
#endif |
4025 |
> |
#endif |
4026 |
> |
EOF |
4027 |
> |
if { ac_try='${CC-cc} -E conftest.c' |
4028 |
> |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4029 |
> |
(eval $ac_try) 2>&5 |
4030 |
> |
ac_status=$? |
4031 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4032 |
> |
(exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then |
4033 |
> |
ac_cv_prog_really_gcc=yes |
4034 |
> |
else |
4035 |
> |
ac_cv_prog_really_gcc=no |
4036 |
> |
fi |
4037 |
> |
|
4038 |
> |
fi |
4039 |
> |
echo "$as_me:$LINENO: result: $ac_cv_prog_really_gcc" >&5 |
4040 |
> |
echo "${ECHO_T}$ac_cv_prog_really_gcc" >&6 |
4041 |
> |
if test "$ac_cv_prog_really_gcc" = yes; then |
4042 |
> |
: |
4043 |
> |
|
4044 |
> |
else |
4045 |
> |
: |
4046 |
> |
|
4047 |
> |
fi |
4048 |
> |
|
4049 |
> |
|
4050 |
> |
# Try to determine "good" native compiler flags if none specified on command |
4051 |
> |
# line |
4052 |
> |
if test "$ac_test_CFLAGS" != "set"; then |
4053 |
> |
CFLAGS="" |
4054 |
> |
case "${host_cpu}-${host_os}" in |
4055 |
> |
|
4056 |
> |
*linux*) if test "$CC" = icc; then |
4057 |
> |
CFLAGS="-O" |
4058 |
> |
fi;; |
4059 |
> |
sparc-solaris2*) if test "$CC" = cc; then |
4060 |
> |
CFLAGS="-native -fast -xO5 -dalign" |
4061 |
> |
fi;; |
4062 |
> |
|
4063 |
> |
alpha*-osf*) if test "$CC" = cc; then |
4064 |
> |
CFLAGS="-newc -w0 -O5 -ansi_alias -ansi_args -fp_reorder -tune host -arch host -std1" |
4065 |
> |
fi;; |
4066 |
> |
|
4067 |
> |
hppa*-hpux*) if test "$CC" = cc; then |
4068 |
> |
CFLAGS="-Ae +O3 +Oall" |
4069 |
> |
fi;; |
4070 |
> |
|
4071 |
> |
rs6000*-aix*) if test "$CC" = cc -o "$CC" = xlc; then |
4072 |
> |
CFLAGS="-O3 -qtune=auto -qansialias -w" |
4073 |
> |
fi;; |
4074 |
> |
powerpc*-aix*) |
4075 |
> |
if test "$CC" = cc -o "$CC" = xlc; then |
4076 |
> |
CFLAGS="-O3 -qtune=auto -qansialias -w" |
4077 |
> |
echo "*******************************************************" |
4078 |
> |
echo "* You have AIX on an unknown powerpc system. It is *" |
4079 |
> |
echo "* recommended that you use *" |
4080 |
> |
echo "* *" |
4081 |
> |
echo "* CFLAGS=-O3 -qarch=ppc -qtune=xxx -qansialias -w *" |
4082 |
> |
echo "* ^^^ *" |
4083 |
> |
echo "* where xxx is 601, 603, 604, or whatever kind of *" |
4084 |
> |
echo "* PowerPC CPU you have. For more info, man cc. *" |
4085 |
> |
echo "*******************************************************" |
4086 |
> |
fi;; |
4087 |
> |
*darwin*) |
4088 |
> |
if test "$CC" = xlc -o "$CC" = cc; then |
4089 |
> |
CFLAGS="-qthreaded -O5 -qtune=auto -qarch=auto -qunroll=auto -qaltivec" |
4090 |
> |
fi;; |
4091 |
> |
esac |
4092 |
> |
|
4093 |
> |
# use default flags for gcc on all systems |
4094 |
> |
if test $ac_cv_prog_really_gcc = yes; then |
4095 |
> |
CFLAGS="-O6 -fomit-frame-pointer -Wall -W -Wcast-qual -Wpointer-arith -Wcast-align -pedantic" |
4096 |
> |
fi |
4097 |
> |
|
4098 |
> |
# test for gcc-specific flags: |
4099 |
> |
if test $ac_cv_prog_really_gcc = yes; then |
4100 |
> |
# -malign-double for x86 systems |
4101 |
> |
|
4102 |
> |
|
4103 |
> |
echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -malign-double" >&5 |
4104 |
> |
echo $ECHO_N "checking whether ${CC-cc} accepts -malign-double... $ECHO_C" >&6 |
4105 |
> |
if test "${ac_align_double+set}" = set; then |
4106 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
4107 |
> |
else |
4108 |
> |
echo 'void f(){}' > conftest.c |
4109 |
> |
if test -z "`${CC-cc} -malign-double -c conftest.c 2>&1`"; then |
4110 |
> |
ac_align_double=yes |
4111 |
> |
else |
4112 |
> |
ac_align_double=no |
4113 |
> |
fi |
4114 |
> |
rm -f conftest* |
4115 |
> |
|
4116 |
> |
fi |
4117 |
> |
echo "$as_me:$LINENO: result: $ac_align_double" >&5 |
4118 |
> |
echo "${ECHO_T}$ac_align_double" >&6 |
4119 |
> |
if test "$ac_align_double" = yes; then |
4120 |
> |
: |
4121 |
> |
CFLAGS="$CFLAGS -malign-double" |
4122 |
> |
else |
4123 |
> |
: |
4124 |
> |
|
4125 |
> |
fi |
4126 |
> |
|
4127 |
> |
# -fstrict-aliasing for gcc-2.95+ |
4128 |
> |
|
4129 |
> |
|
4130 |
> |
echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -fstrict-aliasing" >&5 |
4131 |
> |
echo $ECHO_N "checking whether ${CC-cc} accepts -fstrict-aliasing... $ECHO_C" >&6 |
4132 |
> |
if test "${ac_fstrict_aliasing+set}" = set; then |
4133 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
4134 |
> |
else |
4135 |
> |
echo 'void f(){}' > conftest.c |
4136 |
> |
if test -z "`${CC-cc} -fstrict-aliasing -c conftest.c 2>&1`"; then |
4137 |
> |
ac_fstrict_aliasing=yes |
4138 |
> |
else |
4139 |
> |
ac_fstrict_aliasing=no |
4140 |
> |
fi |
4141 |
> |
rm -f conftest* |
4142 |
> |
|
4143 |
> |
fi |
4144 |
> |
echo "$as_me:$LINENO: result: $ac_fstrict_aliasing" >&5 |
4145 |
> |
echo "${ECHO_T}$ac_fstrict_aliasing" >&6 |
4146 |
> |
if test "$ac_fstrict_aliasing" = yes; then |
4147 |
> |
: |
4148 |
> |
CFLAGS="$CFLAGS -fstrict-aliasing" |
4149 |
> |
else |
4150 |
> |
: |
4151 |
> |
|
4152 |
> |
fi |
4153 |
> |
|
4154 |
> |
fi |
4155 |
> |
|
4156 |
> |
CPU_FLAGS="" |
4157 |
> |
if test $ac_cv_prog_really_gcc = yes; then |
4158 |
> |
case "${host_cpu}" in |
4159 |
> |
i586*) |
4160 |
> |
|
4161 |
> |
echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mcpu=pentium" >&5 |
4162 |
> |
echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=pentium... $ECHO_C" >&6 |
4163 |
> |
if test "${ac_cpu_pentium+set}" = set; then |
4164 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
4165 |
> |
else |
4166 |
> |
echo 'void f(){}' > conftest.c |
4167 |
> |
if test -z "`${CC-cc} -mcpu=pentium -c conftest.c 2>&1`"; then |
4168 |
> |
ac_cpu_pentium=yes |
4169 |
> |
else |
4170 |
> |
ac_cpu_pentium=no |
4171 |
> |
fi |
4172 |
> |
rm -f conftest* |
4173 |
> |
|
4174 |
> |
fi |
4175 |
> |
echo "$as_me:$LINENO: result: $ac_cpu_pentium" >&5 |
4176 |
> |
echo "${ECHO_T}$ac_cpu_pentium" >&6 |
4177 |
> |
if test "$ac_cpu_pentium" = yes; then |
4178 |
> |
: |
4179 |
> |
CPU_FLAGS=-mcpu=pentium |
4180 |
> |
else |
4181 |
> |
: |
4182 |
> |
|
4183 |
> |
|
4184 |
> |
echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mpentium" >&5 |
4185 |
> |
echo $ECHO_N "checking whether ${CC-cc} accepts -mpentium... $ECHO_C" >&6 |
4186 |
> |
if test "${ac_pentium+set}" = set; then |
4187 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
4188 |
> |
else |
4189 |
> |
echo 'void f(){}' > conftest.c |
4190 |
> |
if test -z "`${CC-cc} -mpentium -c conftest.c 2>&1`"; then |
4191 |
> |
ac_pentium=yes |
4192 |
> |
else |
4193 |
> |
ac_pentium=no |
4194 |
> |
fi |
4195 |
> |
rm -f conftest* |
4196 |
> |
|
4197 |
> |
fi |
4198 |
> |
echo "$as_me:$LINENO: result: $ac_pentium" >&5 |
4199 |
> |
echo "${ECHO_T}$ac_pentium" >&6 |
4200 |
> |
if test "$ac_pentium" = yes; then |
4201 |
> |
: |
4202 |
> |
CPU_FLAGS=-mpentium |
4203 |
> |
else |
4204 |
> |
: |
4205 |
> |
|
4206 |
> |
fi |
4207 |
> |
|
4208 |
> |
fi |
4209 |
> |
|
4210 |
> |
;; |
4211 |
> |
i686*) |
4212 |
> |
|
4213 |
> |
echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mcpu=pentiumpro" >&5 |
4214 |
> |
echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=pentiumpro... $ECHO_C" >&6 |
4215 |
> |
if test "${ac_cpu_pentiumpro+set}" = set; then |
4216 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
4217 |
> |
else |
4218 |
> |
echo 'void f(){}' > conftest.c |
4219 |
> |
if test -z "`${CC-cc} -mcpu=pentiumpro -c conftest.c 2>&1`"; then |
4220 |
> |
ac_cpu_pentiumpro=yes |
4221 |
> |
else |
4222 |
> |
ac_cpu_pentiumpro=no |
4223 |
> |
fi |
4224 |
> |
rm -f conftest* |
4225 |
> |
|
4226 |
> |
fi |
4227 |
> |
echo "$as_me:$LINENO: result: $ac_cpu_pentiumpro" >&5 |
4228 |
> |
echo "${ECHO_T}$ac_cpu_pentiumpro" >&6 |
4229 |
> |
if test "$ac_cpu_pentiumpro" = yes; then |
4230 |
> |
: |
4231 |
> |
CPU_FLAGS=-mcpu=pentiumpro |
4232 |
> |
else |
4233 |
> |
: |
4234 |
> |
|
4235 |
> |
|
4236 |
> |
echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mpentiumpro" >&5 |
4237 |
> |
echo $ECHO_N "checking whether ${CC-cc} accepts -mpentiumpro... $ECHO_C" >&6 |
4238 |
> |
if test "${ac_pentiumpro+set}" = set; then |
4239 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
4240 |
> |
else |
4241 |
> |
echo 'void f(){}' > conftest.c |
4242 |
> |
if test -z "`${CC-cc} -mpentiumpro -c conftest.c 2>&1`"; then |
4243 |
> |
ac_pentiumpro=yes |
4244 |
> |
else |
4245 |
> |
ac_pentiumpro=no |
4246 |
> |
fi |
4247 |
> |
rm -f conftest* |
4248 |
> |
|
4249 |
> |
fi |
4250 |
> |
echo "$as_me:$LINENO: result: $ac_pentiumpro" >&5 |
4251 |
> |
echo "${ECHO_T}$ac_pentiumpro" >&6 |
4252 |
> |
if test "$ac_pentiumpro" = yes; then |
4253 |
> |
: |
4254 |
> |
CPU_FLAGS=-mpentiumpro |
4255 |
> |
else |
4256 |
> |
: |
4257 |
> |
|
4258 |
> |
fi |
4259 |
> |
|
4260 |
> |
fi |
4261 |
> |
|
4262 |
> |
;; |
4263 |
> |
powerpc*) |
4264 |
> |
cputype=`(grep cpu /proc/cpuinfo | head -1 | cut -d: -f2 | sed 's/ //g') 2> /dev/null` |
4265 |
> |
is60x=`echo $cputype | egrep "^600-9e?$"` |
4266 |
> |
if test -n "$is60x"; then |
4267 |
> |
|
4268 |
> |
|
4269 |
> |
echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mcpu=$cputype" >&5 |
4270 |
> |
echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=$cputype... $ECHO_C" >&6 |
4271 |
> |
if test "${ac_m_cpu_60x+set}" = set; then |
4272 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
4273 |
> |
else |
4274 |
> |
echo 'void f(){}' > conftest.c |
4275 |
> |
if test -z "`${CC-cc} -mcpu=$cputype -c conftest.c 2>&1`"; then |
4276 |
> |
ac_m_cpu_60x=yes |
4277 |
> |
else |
4278 |
> |
ac_m_cpu_60x=no |
4279 |
> |
fi |
4280 |
> |
rm -f conftest* |
4281 |
> |
|
4282 |
> |
fi |
4283 |
> |
echo "$as_me:$LINENO: result: $ac_m_cpu_60x" >&5 |
4284 |
> |
echo "${ECHO_T}$ac_m_cpu_60x" >&6 |
4285 |
> |
if test "$ac_m_cpu_60x" = yes; then |
4286 |
> |
: |
4287 |
> |
CPU_FLAGS=-mcpu=$cputype |
4288 |
> |
else |
4289 |
> |
: |
4290 |
> |
|
4291 |
> |
fi |
4292 |
> |
|
4293 |
> |
elif test "$cputype" = 750; then |
4294 |
> |
|
4295 |
> |
|
4296 |
> |
echo "$as_me:$LINENO: checking whether we are using gcc 2.95 or later" >&5 |
4297 |
> |
echo $ECHO_N "checking whether we are using gcc 2.95 or later... $ECHO_C" >&6 |
4298 |
> |
if test "${ac_cv_prog_gcc_2_95+set}" = set; then |
4299 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
4300 |
> |
else |
4301 |
> |
|
4302 |
> |
cat > conftest.c <<EOF |
4303 |
> |
#ifdef __GNUC__ && !defined (__INTEL_COMPILER) |
4304 |
> |
# if (__GNUC__ > 2) || (__GNUC__ == 2 && __GNUC_MINOR__ >= 95) |
4305 |
> |
yes; |
4306 |
> |
# endif |
4307 |
> |
#endif |
4308 |
> |
EOF |
4309 |
> |
if { ac_try='${CC-cc} -E conftest.c' |
4310 |
> |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4311 |
> |
(eval $ac_try) 2>&5 |
4312 |
> |
ac_status=$? |
4313 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4314 |
> |
(exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then |
4315 |
> |
ac_cv_prog_gcc_2_95=yes |
4316 |
> |
else |
4317 |
> |
ac_cv_prog_gcc_2_95=no |
4318 |
> |
fi |
4319 |
> |
|
4320 |
> |
fi |
4321 |
> |
echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_2_95" >&5 |
4322 |
> |
echo "${ECHO_T}$ac_cv_prog_gcc_2_95" >&6 |
4323 |
> |
if test "$ac_cv_prog_gcc_2_95" = yes; then |
4324 |
> |
: |
4325 |
> |
|
4326 |
> |
|
4327 |
> |
echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mcpu=750" >&5 |
4328 |
> |
echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=750... $ECHO_C" >&6 |
4329 |
|
if test "${ac_m_cpu_750+set}" = set; then |
4330 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
4331 |
|
else |
4338 |
|
rm -f conftest* |
4339 |
|
|
4340 |
|
fi |
4341 |
< |
echo "$as_me:2818: result: $ac_m_cpu_750" >&5 |
4341 |
> |
echo "$as_me:$LINENO: result: $ac_m_cpu_750" >&5 |
4342 |
|
echo "${ECHO_T}$ac_m_cpu_750" >&6 |
4343 |
|
if test "$ac_m_cpu_750" = yes; then |
4344 |
|
: |
4356 |
|
fi |
4357 |
|
if test -z "$CPU_FLAGS"; then |
4358 |
|
|
4359 |
< |
echo "$as_me:2836: checking whether ${CC-cc} accepts -mcpu=powerpc" >&5 |
4359 |
> |
|
4360 |
> |
echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mcpu=powerpc" >&5 |
4361 |
|
echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=powerpc... $ECHO_C" >&6 |
4362 |
|
if test "${ac_m_cpu_powerpc+set}" = set; then |
4363 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
4371 |
|
rm -f conftest* |
4372 |
|
|
4373 |
|
fi |
4374 |
< |
echo "$as_me:2850: result: $ac_m_cpu_powerpc" >&5 |
4374 |
> |
echo "$as_me:$LINENO: result: $ac_m_cpu_powerpc" >&5 |
4375 |
|
echo "${ECHO_T}$ac_m_cpu_powerpc" >&6 |
4376 |
|
if test "$ac_m_cpu_powerpc" = yes; then |
4377 |
|
: |
4384 |
|
fi |
4385 |
|
if test -z "$CPU_FLAGS"; then |
4386 |
|
|
4387 |
< |
echo "$as_me:2863: checking whether ${CC-cc} accepts -mpowerpc" >&5 |
4387 |
> |
|
4388 |
> |
echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mpowerpc" >&5 |
4389 |
|
echo $ECHO_N "checking whether ${CC-cc} accepts -mpowerpc... $ECHO_C" >&6 |
4390 |
|
if test "${ac_m_powerpc+set}" = set; then |
4391 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
4399 |
|
rm -f conftest* |
4400 |
|
|
4401 |
|
fi |
4402 |
< |
echo "$as_me:2877: result: $ac_m_powerpc" >&5 |
4402 |
> |
echo "$as_me:$LINENO: result: $ac_m_powerpc" >&5 |
4403 |
|
echo "${ECHO_T}$ac_m_powerpc" >&6 |
4404 |
|
if test "$ac_m_powerpc" = yes; then |
4405 |
|
: |
4428 |
|
CFLAGS="-O3" |
4429 |
|
fi |
4430 |
|
|
4431 |
< |
echo "$as_me:2906: checking whether ${CC-cc} accepts ${CFLAGS}" >&5 |
4431 |
> |
|
4432 |
> |
|
4433 |
> |
echo "$as_me:$LINENO: checking whether ${CC-cc} accepts ${CFLAGS}" >&5 |
4434 |
|
echo $ECHO_N "checking whether ${CC-cc} accepts ${CFLAGS}... $ECHO_C" >&6 |
4435 |
|
if test "${ac_guessed_cflags+set}" = set; then |
4436 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
4444 |
|
rm -f conftest* |
4445 |
|
|
4446 |
|
fi |
4447 |
< |
echo "$as_me:2920: result: $ac_guessed_cflags" >&5 |
4447 |
> |
echo "$as_me:$LINENO: result: $ac_guessed_cflags" >&5 |
4448 |
|
echo "${ECHO_T}$ac_guessed_cflags" >&6 |
4449 |
|
if test "$ac_guessed_cflags" = yes; then |
4450 |
|
: |
4462 |
|
CFLAGS="" |
4463 |
|
|
4464 |
|
fi |
4465 |
+ |
|
4466 |
+ |
|
4467 |
+ |
fi |
4468 |
+ |
|
4469 |
+ |
|
4470 |
+ |
|
4471 |
+ |
|
4472 |
+ |
|
4473 |
+ |
|
4474 |
+ |
|
4475 |
+ |
echo "$as_me:$LINENO: checking whether we are *really* using GNU c++" >&5 |
4476 |
+ |
echo $ECHO_N "checking whether we are *really* using GNU c++... $ECHO_C" >&6 |
4477 |
+ |
if test "${ac_cv_prog_really_gxx+set}" = set; then |
4478 |
+ |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
4479 |
+ |
else |
4480 |
+ |
|
4481 |
+ |
cat > conftest.cpp <<EOF |
4482 |
+ |
#ifdef __GNUC__ |
4483 |
+ |
#ifndef __INTEL_COMPILER |
4484 |
+ |
yes; |
4485 |
+ |
#endif |
4486 |
+ |
#endif |
4487 |
+ |
EOF |
4488 |
+ |
if { ac_try='${CXX-c++} -E conftest.cpp' |
4489 |
+ |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4490 |
+ |
(eval $ac_try) 2>&5 |
4491 |
+ |
ac_status=$? |
4492 |
+ |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4493 |
+ |
(exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then |
4494 |
+ |
ac_cv_prog_really_gxx=yes |
4495 |
+ |
else |
4496 |
+ |
ac_cv_prog_really_gxx=no |
4497 |
+ |
fi |
4498 |
+ |
|
4499 |
+ |
fi |
4500 |
+ |
echo "$as_me:$LINENO: result: $ac_cv_prog_really_gxx" >&5 |
4501 |
+ |
echo "${ECHO_T}$ac_cv_prog_really_gxx" >&6 |
4502 |
+ |
if test "$ac_cv_prog_really_gxx" = yes; then |
4503 |
+ |
: |
4504 |
|
|
4505 |
+ |
else |
4506 |
+ |
: |
4507 |
+ |
|
4508 |
|
fi |
4509 |
|
|
4510 |
+ |
|
4511 |
|
# Try to determine "good" native compiler flags if none specified on command |
4512 |
|
# line |
4513 |
|
if test "$ac_test_CXXFLAGS" != "set"; then |
4537 |
|
echo "*******************************************************" |
4538 |
|
fi;; |
4539 |
|
*darwin*) |
4540 |
< |
if test "$CXX" = xlC; then |
4541 |
< |
CXXFLAGS="-O3 -qtune=auto -qansialias -w" |
2972 |
< |
echo "*******************************************************" |
2973 |
< |
echo "* You have AIX on an unknown powerpc system. It is *" |
2974 |
< |
echo "* recommended that you use *" |
2975 |
< |
echo "* *" |
2976 |
< |
echo "* CXXFLAGS=-O3 -qarch=ppc -qtune=xxx -qansialias -w *" |
2977 |
< |
echo "* ^^^ *" |
2978 |
< |
echo "* where xxx is 601, 603, 604, or whatever kind of *" |
2979 |
< |
echo "* PowerPC CPU you have. For more info, man cc. *" |
2980 |
< |
echo "*******************************************************" |
4540 |
> |
if test "$CXX" = xlc++; then |
4541 |
> |
CXXFLAGS="-qthreaded -O5 -qtune=auto -qarch=auto -qunroll=auto -qaltivec" |
4542 |
|
fi;; |
4543 |
|
esac |
4544 |
|
|
4545 |
|
# use default flags for gcc on all systems |
4546 |
< |
if test $ac_cv_c_compiler_gnu = yes; then |
4546 |
> |
if test $ac_cv_prog_really_gxx = yes; then |
4547 |
|
CXXFLAGS="-O6 -fomit-frame-pointer -Wall -W -Wcast-qual -Wpointer-arith -Wcast-align -pedantic" |
4548 |
|
fi |
4549 |
|
|
4550 |
|
# test for gcc-specific flags: |
4551 |
< |
if test $ac_cv_c_compiler_gnu = yes; then |
4551 |
> |
if test $ac_cv_prog_really_gxx = yes; then |
4552 |
|
# -malign-double for x86 systems |
4553 |
|
|
4554 |
< |
echo "$as_me:2993: checking whether ${CXX-c++} accepts -malign-double" >&5 |
4554 |
> |
|
4555 |
> |
echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -malign-double" >&5 |
4556 |
|
echo $ECHO_N "checking whether ${CXX-c++} accepts -malign-double... $ECHO_C" >&6 |
4557 |
|
if test "${ac_align_double+set}" = set; then |
4558 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
4566 |
|
rm -f conftest* |
4567 |
|
|
4568 |
|
fi |
4569 |
< |
echo "$as_me:3007: result: $ac_align_double" >&5 |
4569 |
> |
echo "$as_me:$LINENO: result: $ac_align_double" >&5 |
4570 |
|
echo "${ECHO_T}$ac_align_double" >&6 |
4571 |
|
if test "$ac_align_double" = yes; then |
4572 |
|
: |
4578 |
|
|
4579 |
|
# -fstrict-aliasing for gcc-2.95+ |
4580 |
|
|
4581 |
< |
echo "$as_me:3019: checking whether ${CXX-c++} accepts -fstrict-aliasing" >&5 |
4581 |
> |
|
4582 |
> |
echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -fstrict-aliasing" >&5 |
4583 |
|
echo $ECHO_N "checking whether ${CXX-c++} accepts -fstrict-aliasing... $ECHO_C" >&6 |
4584 |
|
if test "${ac_fstrict_aliasing+set}" = set; then |
4585 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
4593 |
|
rm -f conftest* |
4594 |
|
|
4595 |
|
fi |
4596 |
< |
echo "$as_me:3033: result: $ac_fstrict_aliasing" >&5 |
4596 |
> |
echo "$as_me:$LINENO: result: $ac_fstrict_aliasing" >&5 |
4597 |
|
echo "${ECHO_T}$ac_fstrict_aliasing" >&6 |
4598 |
|
if test "$ac_fstrict_aliasing" = yes; then |
4599 |
|
: |
4606 |
|
fi |
4607 |
|
|
4608 |
|
CPU_FLAGS="" |
4609 |
< |
if test "$GCC" = "yes"; then |
4609 |
> |
if test $ac_cv_prog_really_gxx = yes; then |
4610 |
|
case "${host_cpu}" in |
4611 |
|
i586*) |
4612 |
|
|
4613 |
< |
echo "$as_me:3050: checking whether ${CC-cc} accepts -mcpu=pentium" >&5 |
4614 |
< |
echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=pentium... $ECHO_C" >&6 |
4613 |
> |
echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mcpu=pentium" >&5 |
4614 |
> |
echo $ECHO_N "checking whether ${CXX-c++} accepts -mcpu=pentium... $ECHO_C" >&6 |
4615 |
|
if test "${ac_cpu_pentium+set}" = set; then |
4616 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
4617 |
|
else |
4618 |
< |
echo 'void f(){}' > conftest.c |
4619 |
< |
if test -z "`${CC-cc} -mcpu=pentium -c conftest.c 2>&1`"; then |
4618 |
> |
echo 'void f(){}' > conftest.cpp |
4619 |
> |
if test -z "`${CXX-c++} -mcpu=pentium -c conftest.cpp 2>&1`"; then |
4620 |
|
ac_cpu_pentium=yes |
4621 |
|
else |
4622 |
|
ac_cpu_pentium=no |
4624 |
|
rm -f conftest* |
4625 |
|
|
4626 |
|
fi |
4627 |
< |
echo "$as_me:3064: result: $ac_cpu_pentium" >&5 |
4627 |
> |
echo "$as_me:$LINENO: result: $ac_cpu_pentium" >&5 |
4628 |
|
echo "${ECHO_T}$ac_cpu_pentium" >&6 |
4629 |
|
if test "$ac_cpu_pentium" = yes; then |
4630 |
|
: |
4632 |
|
else |
4633 |
|
: |
4634 |
|
|
4635 |
< |
echo "$as_me:3072: checking whether ${CXX-c++} accepts -mpentium" >&5 |
4635 |
> |
|
4636 |
> |
echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mpentium" >&5 |
4637 |
|
echo $ECHO_N "checking whether ${CXX-c++} accepts -mpentium... $ECHO_C" >&6 |
4638 |
|
if test "${ac_pentium+set}" = set; then |
4639 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
4647 |
|
rm -f conftest* |
4648 |
|
|
4649 |
|
fi |
4650 |
< |
echo "$as_me:3086: result: $ac_pentium" >&5 |
4650 |
> |
echo "$as_me:$LINENO: result: $ac_pentium" >&5 |
4651 |
|
echo "${ECHO_T}$ac_pentium" >&6 |
4652 |
|
if test "$ac_pentium" = yes; then |
4653 |
|
: |
4662 |
|
;; |
4663 |
|
i686*) |
4664 |
|
|
4665 |
< |
echo "$as_me:3101: checking whether ${CXX-c++} accepts -mcpu=pentiumpro" >&5 |
4665 |
> |
echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mcpu=pentiumpro" >&5 |
4666 |
|
echo $ECHO_N "checking whether ${CXX-c++} accepts -mcpu=pentiumpro... $ECHO_C" >&6 |
4667 |
|
if test "${ac_cpu_pentiumpro+set}" = set; then |
4668 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
4676 |
|
rm -f conftest* |
4677 |
|
|
4678 |
|
fi |
4679 |
< |
echo "$as_me:3115: result: $ac_cpu_pentiumpro" >&5 |
4679 |
> |
echo "$as_me:$LINENO: result: $ac_cpu_pentiumpro" >&5 |
4680 |
|
echo "${ECHO_T}$ac_cpu_pentiumpro" >&6 |
4681 |
|
if test "$ac_cpu_pentiumpro" = yes; then |
4682 |
|
: |
4684 |
|
else |
4685 |
|
: |
4686 |
|
|
4687 |
< |
echo "$as_me:3123: checking whether ${CXX-c++} accepts -mpentiumpro" >&5 |
4687 |
> |
|
4688 |
> |
echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mpentiumpro" >&5 |
4689 |
|
echo $ECHO_N "checking whether ${CXX-c++} accepts -mpentiumpro... $ECHO_C" >&6 |
4690 |
|
if test "${ac_pentiumpro+set}" = set; then |
4691 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
4699 |
|
rm -f conftest* |
4700 |
|
|
4701 |
|
fi |
4702 |
< |
echo "$as_me:3137: result: $ac_pentiumpro" >&5 |
4702 |
> |
echo "$as_me:$LINENO: result: $ac_pentiumpro" >&5 |
4703 |
|
echo "${ECHO_T}$ac_pentiumpro" >&6 |
4704 |
|
if test "$ac_pentiumpro" = yes; then |
4705 |
|
: |
4717 |
|
is60x=`echo $cputype | egrep "^600-9e?$"` |
4718 |
|
if test -n "$is60x"; then |
4719 |
|
|
4720 |
< |
echo "$as_me:3155: checking whether ${CXX-c++} accepts -mcpu=$cputype" >&5 |
4720 |
> |
|
4721 |
> |
echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mcpu=$cputype" >&5 |
4722 |
|
echo $ECHO_N "checking whether ${CXX-c++} accepts -mcpu=$cputype... $ECHO_C" >&6 |
4723 |
|
if test "${ac_m_cpu_60x+set}" = set; then |
4724 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
4732 |
|
rm -f conftest* |
4733 |
|
|
4734 |
|
fi |
4735 |
< |
echo "$as_me:3169: result: $ac_m_cpu_60x" >&5 |
4735 |
> |
echo "$as_me:$LINENO: result: $ac_m_cpu_60x" >&5 |
4736 |
|
echo "${ECHO_T}$ac_m_cpu_60x" >&6 |
4737 |
|
if test "$ac_m_cpu_60x" = yes; then |
4738 |
|
: |
4744 |
|
|
4745 |
|
elif test "$cputype" = 750; then |
4746 |
|
|
4747 |
< |
echo "$as_me:3181: checking whether we are using gcc 2.95 or later" >&5 |
4748 |
< |
echo $ECHO_N "checking whether we are using gcc 2.95 or later... $ECHO_C" >&6 |
4749 |
< |
if test "${ac_cv_prog_gcc_2_95+set}" = set; then |
4747 |
> |
|
4748 |
> |
echo "$as_me:$LINENO: checking whether we are using g++ 2.95 or later" >&5 |
4749 |
> |
echo $ECHO_N "checking whether we are using g++ 2.95 or later... $ECHO_C" >&6 |
4750 |
> |
if test "${ac_cv_prog_gxx_2_95+set}" = set; then |
4751 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
4752 |
|
else |
4753 |
|
|
4754 |
< |
cat > conftest.c <<EOF |
4755 |
< |
#ifdef __GNUC__ |
4754 |
> |
cat > conftest.cpp <<EOF |
4755 |
> |
#ifdef __GNUC__ && !defined (__INTEL_COMPILER) |
4756 |
|
# if (__GNUC__ > 2) || (__GNUC__ == 2 && __GNUC_MINOR__ >= 95) |
4757 |
|
yes; |
4758 |
|
# endif |
4759 |
|
#endif |
4760 |
|
EOF |
4761 |
< |
if { ac_try='${CC-cc} -E conftest.c' |
4762 |
< |
{ (eval echo "$as_me:3195: \"$ac_try\"") >&5 |
4761 |
> |
if { ac_try='${CXX-c++} -E conftest.cpp' |
4762 |
> |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4763 |
|
(eval $ac_try) 2>&5 |
4764 |
|
ac_status=$? |
4765 |
< |
echo "$as_me:3198: \$? = $ac_status" >&5 |
4765 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4766 |
|
(exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then |
4767 |
< |
ac_cv_prog_gcc_2_95=yes |
4767 |
> |
ac_cv_prog_gxx_2_95=yes |
4768 |
|
else |
4769 |
< |
ac_cv_prog_gcc_2_95=no |
4769 |
> |
ac_cv_prog_gxx_2_95=no |
4770 |
|
fi |
4771 |
|
|
4772 |
|
fi |
4773 |
< |
echo "$as_me:3206: result: $ac_cv_prog_gcc_2_95" >&5 |
4774 |
< |
echo "${ECHO_T}$ac_cv_prog_gcc_2_95" >&6 |
4775 |
< |
if test "$ac_cv_prog_gcc_2_95" = yes; then |
4773 |
> |
echo "$as_me:$LINENO: result: $ac_cv_prog_gxx_2_95" >&5 |
4774 |
> |
echo "${ECHO_T}$ac_cv_prog_gxx_2_95" >&6 |
4775 |
> |
if test "$ac_cv_prog_gxx_2_95" = yes; then |
4776 |
|
: |
4777 |
|
|
4778 |
< |
echo "$as_me:3211: checking whether ${CXX-c++} accepts -mcpu=750" >&5 |
4778 |
> |
|
4779 |
> |
echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mcpu=750" >&5 |
4780 |
|
echo $ECHO_N "checking whether ${CXX-c++} accepts -mcpu=750... $ECHO_C" >&6 |
4781 |
|
if test "${ac_m_cpu_750+set}" = set; then |
4782 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
4790 |
|
rm -f conftest* |
4791 |
|
|
4792 |
|
fi |
4793 |
< |
echo "$as_me:3225: result: $ac_m_cpu_750" >&5 |
4793 |
> |
echo "$as_me:$LINENO: result: $ac_m_cpu_750" >&5 |
4794 |
|
echo "${ECHO_T}$ac_m_cpu_750" >&6 |
4795 |
|
if test "$ac_m_cpu_750" = yes; then |
4796 |
|
: |
4808 |
|
fi |
4809 |
|
if test -z "$CPU_FLAGS"; then |
4810 |
|
|
4811 |
< |
echo "$as_me:3243: checking whether ${CXX-c++} accepts -mcpu=powerpc" >&5 |
4811 |
> |
|
4812 |
> |
echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mcpu=powerpc" >&5 |
4813 |
|
echo $ECHO_N "checking whether ${CXX-c++} accepts -mcpu=powerpc... $ECHO_C" >&6 |
4814 |
|
if test "${ac_m_cpu_powerpc+set}" = set; then |
4815 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
4823 |
|
rm -f conftest* |
4824 |
|
|
4825 |
|
fi |
4826 |
< |
echo "$as_me:3257: result: $ac_m_cpu_powerpc" >&5 |
4826 |
> |
echo "$as_me:$LINENO: result: $ac_m_cpu_powerpc" >&5 |
4827 |
|
echo "${ECHO_T}$ac_m_cpu_powerpc" >&6 |
4828 |
|
if test "$ac_m_cpu_powerpc" = yes; then |
4829 |
|
: |
4836 |
|
fi |
4837 |
|
if test -z "$CPU_FLAGS"; then |
4838 |
|
|
4839 |
< |
echo "$as_me:3270: checking whether ${CXX-c++} accepts -mpowerpc" >&5 |
4839 |
> |
|
4840 |
> |
echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mpowerpc" >&5 |
4841 |
|
echo $ECHO_N "checking whether ${CXX-c++} accepts -mpowerpc... $ECHO_C" >&6 |
4842 |
|
if test "${ac_m_powerpc+set}" = set; then |
4843 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
4851 |
|
rm -f conftest* |
4852 |
|
|
4853 |
|
fi |
4854 |
< |
echo "$as_me:3284: result: $ac_m_powerpc" >&5 |
4854 |
> |
echo "$as_me:$LINENO: result: $ac_m_powerpc" >&5 |
4855 |
|
echo "${ECHO_T}$ac_m_powerpc" >&6 |
4856 |
|
if test "$ac_m_powerpc" = yes; then |
4857 |
|
: |
4880 |
|
CXXFLAGS="-O3" |
4881 |
|
fi |
4882 |
|
|
4883 |
< |
echo "$as_me:3313: checking whether ${CXX-c++} accepts ${CXXFLAGS}" >&5 |
4883 |
> |
|
4884 |
> |
|
4885 |
> |
echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts ${CXXFLAGS}" >&5 |
4886 |
|
echo $ECHO_N "checking whether ${CXX-c++} accepts ${CXXFLAGS}... $ECHO_C" >&6 |
4887 |
|
if test "${ac_guessed_cxxflags+set}" = set; then |
4888 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
4896 |
|
rm -f conftest* |
4897 |
|
|
4898 |
|
fi |
4899 |
< |
echo "$as_me:3327: result: $ac_guessed_cxxflags" >&5 |
4899 |
> |
echo "$as_me:$LINENO: result: $ac_guessed_cxxflags" >&5 |
4900 |
|
echo "${ECHO_T}$ac_guessed_cxxflags" >&6 |
4901 |
|
if test "$ac_guessed_cxxflags" = yes; then |
4902 |
|
: |
4915 |
|
|
4916 |
|
fi |
4917 |
|
|
4918 |
+ |
|
4919 |
|
fi |
4920 |
|
|
4921 |
+ |
|
4922 |
+ |
|
4923 |
+ |
|
4924 |
+ |
|
4925 |
|
# Try to determine "good" native compiler flags if none specified on command |
4926 |
|
# line |
4927 |
|
|
4929 |
|
F90FLAGS="" |
4930 |
|
case "${host_cpu}-${host_os}" in |
4931 |
|
|
4932 |
< |
*linux*) if test "$F90" = ifc; then |
4932 |
> |
*linux*) if test "$F90" = ifc -o "$F90" = ifort; then |
4933 |
|
F90FLAGS="-O" |
4934 |
|
fi;; |
4935 |
|
rs6000*-aix*) if test "$F90" = xlf90 -o "$F90" = f90; then |
4949 |
|
echo "*******************************************************" |
4950 |
|
fi;; |
4951 |
|
*darwin*) |
4952 |
< |
if test "$F90" = f90 -o "$F90" = xlf90; then |
4953 |
< |
F90FLAGS="-O3 -qtune=auto -w" |
3377 |
< |
echo "*********************************************************" |
3378 |
< |
echo "* You have Darwin on an unknown powerpc system. It is *" |
3379 |
< |
echo "* recommended that you use *" |
3380 |
< |
echo "* *" |
3381 |
< |
echo "* CXXFLAGS=-O3 -qarch=ppc -qtune=xxx -qansialias -w *" |
3382 |
< |
echo "* ^^^ *" |
3383 |
< |
echo "* where xxx is 601, 603, 604, or whatever kind of *" |
3384 |
< |
echo "* PowerPC CPU you have. For more info, man xlf. *" |
3385 |
< |
echo "*********************************************************" |
4952 |
> |
if test "$F90" = f90 -o "$F90" = xlf90 -o "$F90" = xlf95; then |
4953 |
> |
F90FLAGS="-qthreaded -O5 -qtune=auto -qarch=auto -qunroll=auto" |
4954 |
|
fi;; |
4955 |
|
esac |
4956 |
|
|
4969 |
|
F90FLAGS="-O3" |
4970 |
|
fi |
4971 |
|
|
4972 |
< |
echo "$as_me:3404: checking whether ${F90-f90} accepts ${F90FLAGS}" >&5 |
4972 |
> |
|
4973 |
> |
echo "$as_me:$LINENO: checking whether ${F90-f90} accepts ${F90FLAGS}" >&5 |
4974 |
|
echo $ECHO_N "checking whether ${F90-f90} accepts ${F90FLAGS}... $ECHO_C" >&6 |
4975 |
|
if test "${ac_guessed_f90flags+set}" = set; then |
4976 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
4977 |
|
else |
4978 |
|
|
4979 |
+ |
|
4980 |
+ |
|
4981 |
|
ac_ext=f90 |
4982 |
|
ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5' |
4983 |
|
ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
4986 |
|
echo 'program main' > conftest.$ac_ext |
4987 |
|
echo 'end program main' >> conftest.$ac_ext |
4988 |
|
ac_compile='${F90-f90} -c ${F90FLAGS} $F90FLAGS conftest.$ac_ext 1>&5' |
4989 |
< |
if { (eval echo "$as_me:3418: \"$ac_compile\"") >&5 |
4989 |
> |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
4990 |
|
(eval $ac_compile) 2>&5 |
4991 |
|
ac_status=$? |
4992 |
< |
echo "$as_me:3421: \$? = $ac_status" >&5 |
4992 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4993 |
|
(exit $ac_status); }; then |
4994 |
|
ac_guessed_f90flags=yes |
4995 |
|
else |
4996 |
|
ac_guessed_f90flags=no |
4997 |
|
fi |
4998 |
|
rm -f conftest* |
4999 |
< |
ac_ext=c |
5000 |
< |
ac_cpp='$CPP $CPPFLAGS' |
5001 |
< |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
5002 |
< |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3432 |
< |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
4999 |
> |
ac_ext=f90 |
5000 |
> |
ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5' |
5001 |
> |
ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
5002 |
> |
ac_compiler_gnu=$ac_cv_f90_compiler_gnu |
5003 |
|
|
5004 |
+ |
|
5005 |
|
fi |
5006 |
< |
echo "$as_me:3435: result: $ac_guessed_f90flags" >&5 |
5006 |
> |
echo "$as_me:$LINENO: result: $ac_guessed_f90flags" >&5 |
5007 |
|
echo "${ECHO_T}$ac_guessed_f90flags" >&6 |
5008 |
|
if test "$ac_guessed_f90flags" = yes; then |
5009 |
|
: |
5022 |
|
|
5023 |
|
fi |
5024 |
|
|
5025 |
+ |
|
5026 |
|
fi |
5027 |
|
|
5028 |
|
;; |
5040 |
|
# AFS /usr/afsws/bin/install, which mishandles nonexistent args |
5041 |
|
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
5042 |
|
# ./install, which can be erroneously created by make from ./install.sh. |
5043 |
< |
echo "$as_me:3471: checking for a BSD compatible install" >&5 |
5044 |
< |
echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6 |
5043 |
> |
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
5044 |
> |
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 |
5045 |
|
if test -z "$INSTALL"; then |
5046 |
|
if test "${ac_cv_path_install+set}" = set; then |
5047 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
5048 |
|
else |
5049 |
< |
ac_save_IFS=$IFS; IFS=$ac_path_separator |
5050 |
< |
for ac_dir in $PATH; do |
5051 |
< |
IFS=$ac_save_IFS |
5052 |
< |
# Account for people who put trailing slashes in PATH elements. |
5053 |
< |
case $ac_dir/ in |
5054 |
< |
/ | ./ | .// | /cC/* \ |
5055 |
< |
| /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \ |
5056 |
< |
| /usr/ucb/* ) ;; |
5057 |
< |
*) |
5058 |
< |
# OSF1 and SCO ODT 3.0 have their own names for install. |
5059 |
< |
# Don't use installbsd from OSF since it installs stuff as root |
5060 |
< |
# by default. |
5061 |
< |
for ac_prog in ginstall scoinst install; do |
5062 |
< |
if $as_executable_p "$ac_dir/$ac_prog"; then |
5063 |
< |
if test $ac_prog = install && |
5064 |
< |
grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then |
5065 |
< |
# AIX install. It has an incompatible calling convention. |
5066 |
< |
: |
5067 |
< |
elif test $ac_prog = install && |
5068 |
< |
grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then |
5069 |
< |
# program-specific install script used by HP pwplus--don't use. |
5070 |
< |
: |
5071 |
< |
else |
5072 |
< |
ac_cv_path_install="$ac_dir/$ac_prog -c" |
5073 |
< |
break 2 |
5074 |
< |
fi |
5075 |
< |
fi |
5049 |
> |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5050 |
> |
for as_dir in $PATH |
5051 |
> |
do |
5052 |
> |
IFS=$as_save_IFS |
5053 |
> |
test -z "$as_dir" && as_dir=. |
5054 |
> |
# Account for people who put trailing slashes in PATH elements. |
5055 |
> |
case $as_dir/ in |
5056 |
> |
./ | .// | /cC/* | \ |
5057 |
> |
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
5058 |
> |
/usr/ucb/* ) ;; |
5059 |
> |
*) |
5060 |
> |
# OSF1 and SCO ODT 3.0 have their own names for install. |
5061 |
> |
# Don't use installbsd from OSF since it installs stuff as root |
5062 |
> |
# by default. |
5063 |
> |
for ac_prog in ginstall scoinst install; do |
5064 |
> |
for ac_exec_ext in '' $ac_executable_extensions; do |
5065 |
> |
if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
5066 |
> |
if test $ac_prog = install && |
5067 |
> |
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
5068 |
> |
# AIX install. It has an incompatible calling convention. |
5069 |
> |
: |
5070 |
> |
elif test $ac_prog = install && |
5071 |
> |
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
5072 |
> |
# program-specific install script used by HP pwplus--don't use. |
5073 |
> |
: |
5074 |
> |
else |
5075 |
> |
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
5076 |
> |
break 3 |
5077 |
> |
fi |
5078 |
> |
fi |
5079 |
|
done |
5080 |
< |
;; |
5081 |
< |
esac |
5082 |
< |
done |
5080 |
> |
done |
5081 |
> |
;; |
5082 |
> |
esac |
5083 |
> |
done |
5084 |
|
|
5085 |
+ |
|
5086 |
|
fi |
5087 |
|
if test "${ac_cv_path_install+set}" = set; then |
5088 |
|
INSTALL=$ac_cv_path_install |
5094 |
|
INSTALL=$ac_install_sh |
5095 |
|
fi |
5096 |
|
fi |
5097 |
< |
echo "$as_me:3520: result: $INSTALL" >&5 |
5097 |
> |
echo "$as_me:$LINENO: result: $INSTALL" >&5 |
5098 |
|
echo "${ECHO_T}$INSTALL" >&6 |
5099 |
|
|
5100 |
|
# Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
5105 |
|
|
5106 |
|
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
5107 |
|
|
5108 |
< |
echo "$as_me:3531: checking whether ln -s works" >&5 |
5108 |
> |
echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
5109 |
|
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 |
5110 |
|
LN_S=$as_ln_s |
5111 |
|
if test "$LN_S" = "ln -s"; then |
5112 |
< |
echo "$as_me:3535: result: yes" >&5 |
5112 |
> |
echo "$as_me:$LINENO: result: yes" >&5 |
5113 |
|
echo "${ECHO_T}yes" >&6 |
5114 |
|
else |
5115 |
< |
echo "$as_me:3538: result: no, using $LN_S" >&5 |
5115 |
> |
echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
5116 |
|
echo "${ECHO_T}no, using $LN_S" >&6 |
5117 |
|
fi |
5118 |
|
|
5119 |
< |
echo "$as_me:3542: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
5120 |
< |
echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6 |
5119 |
> |
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
5120 |
> |
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 |
5121 |
|
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'` |
5122 |
|
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
5123 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
5124 |
|
else |
5125 |
< |
cat >conftest.make <<\EOF |
5125 |
> |
cat >conftest.make <<\_ACEOF |
5126 |
|
all: |
5127 |
< |
@echo 'ac_maketemp="${MAKE}"' |
5128 |
< |
EOF |
5127 |
> |
@echo 'ac_maketemp="$(MAKE)"' |
5128 |
> |
_ACEOF |
5129 |
|
# GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
5130 |
|
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` |
5131 |
|
if test -n "$ac_maketemp"; then |
5136 |
|
rm -f conftest.make |
5137 |
|
fi |
5138 |
|
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then |
5139 |
< |
echo "$as_me:3562: result: yes" >&5 |
5139 |
> |
echo "$as_me:$LINENO: result: yes" >&5 |
5140 |
|
echo "${ECHO_T}yes" >&6 |
5141 |
|
SET_MAKE= |
5142 |
|
else |
5143 |
< |
echo "$as_me:3566: result: no" >&5 |
5143 |
> |
echo "$as_me:$LINENO: result: no" >&5 |
5144 |
|
echo "${ECHO_T}no" >&6 |
5145 |
|
SET_MAKE="MAKE=${MAKE-make}" |
5146 |
|
fi |
5148 |
|
if test -n "$ac_tool_prefix"; then |
5149 |
|
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
5150 |
|
set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
5151 |
< |
echo "$as_me:3574: checking for $ac_word" >&5 |
5151 |
> |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5152 |
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
5153 |
|
if test "${ac_cv_prog_RANLIB+set}" = set; then |
5154 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
5156 |
|
if test -n "$RANLIB"; then |
5157 |
|
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
5158 |
|
else |
5159 |
< |
ac_save_IFS=$IFS; IFS=$ac_path_separator |
5160 |
< |
ac_dummy="$PATH" |
5161 |
< |
for ac_dir in $ac_dummy; do |
5162 |
< |
IFS=$ac_save_IFS |
5163 |
< |
test -z "$ac_dir" && ac_dir=. |
5164 |
< |
$as_executable_p "$ac_dir/$ac_word" || continue |
5165 |
< |
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
5166 |
< |
echo "$as_me:3589: found $ac_dir/$ac_word" >&5 |
5167 |
< |
break |
5159 |
> |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5160 |
> |
for as_dir in $PATH |
5161 |
> |
do |
5162 |
> |
IFS=$as_save_IFS |
5163 |
> |
test -z "$as_dir" && as_dir=. |
5164 |
> |
for ac_exec_ext in '' $ac_executable_extensions; do |
5165 |
> |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
5166 |
> |
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
5167 |
> |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5168 |
> |
break 2 |
5169 |
> |
fi |
5170 |
|
done |
5171 |
+ |
done |
5172 |
|
|
5173 |
|
fi |
5174 |
|
fi |
5175 |
|
RANLIB=$ac_cv_prog_RANLIB |
5176 |
|
if test -n "$RANLIB"; then |
5177 |
< |
echo "$as_me:3597: result: $RANLIB" >&5 |
5177 |
> |
echo "$as_me:$LINENO: result: $RANLIB" >&5 |
5178 |
|
echo "${ECHO_T}$RANLIB" >&6 |
5179 |
|
else |
5180 |
< |
echo "$as_me:3600: result: no" >&5 |
5180 |
> |
echo "$as_me:$LINENO: result: no" >&5 |
5181 |
|
echo "${ECHO_T}no" >&6 |
5182 |
|
fi |
5183 |
|
|
5186 |
|
ac_ct_RANLIB=$RANLIB |
5187 |
|
# Extract the first word of "ranlib", so it can be a program name with args. |
5188 |
|
set dummy ranlib; ac_word=$2 |
5189 |
< |
echo "$as_me:3609: checking for $ac_word" >&5 |
5189 |
> |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5190 |
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
5191 |
|
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
5192 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
5194 |
|
if test -n "$ac_ct_RANLIB"; then |
5195 |
|
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
5196 |
|
else |
5197 |
< |
ac_save_IFS=$IFS; IFS=$ac_path_separator |
5198 |
< |
ac_dummy="$PATH" |
5199 |
< |
for ac_dir in $ac_dummy; do |
5200 |
< |
IFS=$ac_save_IFS |
5201 |
< |
test -z "$ac_dir" && ac_dir=. |
5202 |
< |
$as_executable_p "$ac_dir/$ac_word" || continue |
5203 |
< |
ac_cv_prog_ac_ct_RANLIB="ranlib" |
5204 |
< |
echo "$as_me:3624: found $ac_dir/$ac_word" >&5 |
5205 |
< |
break |
5197 |
> |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5198 |
> |
for as_dir in $PATH |
5199 |
> |
do |
5200 |
> |
IFS=$as_save_IFS |
5201 |
> |
test -z "$as_dir" && as_dir=. |
5202 |
> |
for ac_exec_ext in '' $ac_executable_extensions; do |
5203 |
> |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
5204 |
> |
ac_cv_prog_ac_ct_RANLIB="ranlib" |
5205 |
> |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5206 |
> |
break 2 |
5207 |
> |
fi |
5208 |
|
done |
5209 |
+ |
done |
5210 |
|
|
5211 |
|
test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
5212 |
|
fi |
5213 |
|
fi |
5214 |
|
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
5215 |
|
if test -n "$ac_ct_RANLIB"; then |
5216 |
< |
echo "$as_me:3633: result: $ac_ct_RANLIB" >&5 |
5216 |
> |
echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
5217 |
|
echo "${ECHO_T}$ac_ct_RANLIB" >&6 |
5218 |
|
else |
5219 |
< |
echo "$as_me:3636: result: no" >&5 |
5219 |
> |
echo "$as_me:$LINENO: result: no" >&5 |
5220 |
|
echo "${ECHO_T}no" >&6 |
5221 |
|
fi |
5222 |
|
|
5229 |
|
do |
5230 |
|
# Extract the first word of "$ac_prog", so it can be a program name with args. |
5231 |
|
set dummy $ac_prog; ac_word=$2 |
5232 |
< |
echo "$as_me:3649: checking for $ac_word" >&5 |
5232 |
> |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5233 |
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
5234 |
|
if test "${ac_cv_prog_YACC+set}" = set; then |
5235 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
5237 |
|
if test -n "$YACC"; then |
5238 |
|
ac_cv_prog_YACC="$YACC" # Let the user override the test. |
5239 |
|
else |
5240 |
< |
ac_save_IFS=$IFS; IFS=$ac_path_separator |
5241 |
< |
ac_dummy="$PATH" |
5242 |
< |
for ac_dir in $ac_dummy; do |
5243 |
< |
IFS=$ac_save_IFS |
5244 |
< |
test -z "$ac_dir" && ac_dir=. |
5245 |
< |
$as_executable_p "$ac_dir/$ac_word" || continue |
5246 |
< |
ac_cv_prog_YACC="$ac_prog" |
5247 |
< |
echo "$as_me:3664: found $ac_dir/$ac_word" >&5 |
5248 |
< |
break |
5240 |
> |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5241 |
> |
for as_dir in $PATH |
5242 |
> |
do |
5243 |
> |
IFS=$as_save_IFS |
5244 |
> |
test -z "$as_dir" && as_dir=. |
5245 |
> |
for ac_exec_ext in '' $ac_executable_extensions; do |
5246 |
> |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
5247 |
> |
ac_cv_prog_YACC="$ac_prog" |
5248 |
> |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5249 |
> |
break 2 |
5250 |
> |
fi |
5251 |
|
done |
5252 |
+ |
done |
5253 |
|
|
5254 |
|
fi |
5255 |
|
fi |
5256 |
|
YACC=$ac_cv_prog_YACC |
5257 |
|
if test -n "$YACC"; then |
5258 |
< |
echo "$as_me:3672: result: $YACC" >&5 |
5258 |
> |
echo "$as_me:$LINENO: result: $YACC" >&5 |
5259 |
|
echo "${ECHO_T}$YACC" >&6 |
5260 |
|
else |
5261 |
< |
echo "$as_me:3675: result: no" >&5 |
5261 |
> |
echo "$as_me:$LINENO: result: no" >&5 |
5262 |
|
echo "${ECHO_T}no" >&6 |
5263 |
|
fi |
5264 |
|
|
5270 |
|
do |
5271 |
|
# Extract the first word of "$ac_prog", so it can be a program name with args. |
5272 |
|
set dummy $ac_prog; ac_word=$2 |
5273 |
< |
echo "$as_me:3687: checking for $ac_word" >&5 |
5273 |
> |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5274 |
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
5275 |
|
if test "${ac_cv_prog_LEX+set}" = set; then |
5276 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
5278 |
|
if test -n "$LEX"; then |
5279 |
|
ac_cv_prog_LEX="$LEX" # Let the user override the test. |
5280 |
|
else |
5281 |
< |
ac_save_IFS=$IFS; IFS=$ac_path_separator |
5282 |
< |
ac_dummy="$PATH" |
5283 |
< |
for ac_dir in $ac_dummy; do |
5284 |
< |
IFS=$ac_save_IFS |
5285 |
< |
test -z "$ac_dir" && ac_dir=. |
5286 |
< |
$as_executable_p "$ac_dir/$ac_word" || continue |
5287 |
< |
ac_cv_prog_LEX="$ac_prog" |
5288 |
< |
echo "$as_me:3702: found $ac_dir/$ac_word" >&5 |
5289 |
< |
break |
5281 |
> |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5282 |
> |
for as_dir in $PATH |
5283 |
> |
do |
5284 |
> |
IFS=$as_save_IFS |
5285 |
> |
test -z "$as_dir" && as_dir=. |
5286 |
> |
for ac_exec_ext in '' $ac_executable_extensions; do |
5287 |
> |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
5288 |
> |
ac_cv_prog_LEX="$ac_prog" |
5289 |
> |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5290 |
> |
break 2 |
5291 |
> |
fi |
5292 |
|
done |
5293 |
+ |
done |
5294 |
|
|
5295 |
|
fi |
5296 |
|
fi |
5297 |
|
LEX=$ac_cv_prog_LEX |
5298 |
|
if test -n "$LEX"; then |
5299 |
< |
echo "$as_me:3710: result: $LEX" >&5 |
5299 |
> |
echo "$as_me:$LINENO: result: $LEX" >&5 |
5300 |
|
echo "${ECHO_T}$LEX" >&6 |
5301 |
|
else |
5302 |
< |
echo "$as_me:3713: result: no" >&5 |
5302 |
> |
echo "$as_me:$LINENO: result: no" >&5 |
5303 |
|
echo "${ECHO_T}no" >&6 |
5304 |
|
fi |
5305 |
|
|
5309 |
|
|
5310 |
|
if test -z "$LEXLIB" |
5311 |
|
then |
5312 |
< |
echo "$as_me:3723: checking for yywrap in -lfl" >&5 |
5312 |
> |
echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5 |
5313 |
|
echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6 |
5314 |
|
if test "${ac_cv_lib_fl_yywrap+set}" = set; then |
5315 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
5317 |
|
ac_check_lib_save_LIBS=$LIBS |
5318 |
|
LIBS="-lfl $LIBS" |
5319 |
|
cat >conftest.$ac_ext <<_ACEOF |
3731 |
– |
#line 3731 "configure" |
3732 |
– |
#include "confdefs.h" |
5320 |
|
|
5321 |
< |
/* Override any gcc2 internal prototype to avoid an error. */ |
5322 |
< |
#ifdef __cplusplus |
5323 |
< |
extern "C" |
5324 |
< |
#endif |
5325 |
< |
/* We use char because int might match the return type of a gcc2 |
3739 |
< |
builtin and then its argument prototype would still apply. */ |
3740 |
< |
char yywrap (); |
3741 |
< |
int |
3742 |
< |
main () |
3743 |
< |
{ |
3744 |
< |
yywrap (); |
3745 |
< |
; |
3746 |
< |
return 0; |
3747 |
< |
} |
5321 |
> |
program main |
5322 |
> |
|
5323 |
> |
call yywrap |
5324 |
> |
end program main |
5325 |
> |
|
5326 |
|
_ACEOF |
5327 |
|
rm -f conftest.$ac_objext conftest$ac_exeext |
5328 |
< |
if { (eval echo "$as_me:3750: \"$ac_link\"") >&5 |
5328 |
> |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
5329 |
|
(eval $ac_link) 2>&5 |
5330 |
|
ac_status=$? |
5331 |
< |
echo "$as_me:3753: \$? = $ac_status" >&5 |
5331 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5332 |
|
(exit $ac_status); } && |
5333 |
|
{ ac_try='test -s conftest$ac_exeext' |
5334 |
< |
{ (eval echo "$as_me:3756: \"$ac_try\"") >&5 |
5334 |
> |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5335 |
|
(eval $ac_try) 2>&5 |
5336 |
|
ac_status=$? |
5337 |
< |
echo "$as_me:3759: \$? = $ac_status" >&5 |
5337 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5338 |
|
(exit $ac_status); }; }; then |
5339 |
|
ac_cv_lib_fl_yywrap=yes |
5340 |
|
else |
5341 |
|
echo "$as_me: failed program was:" >&5 |
5342 |
< |
cat conftest.$ac_ext >&5 |
5342 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
5343 |
> |
|
5344 |
|
ac_cv_lib_fl_yywrap=no |
5345 |
|
fi |
5346 |
|
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
5347 |
|
LIBS=$ac_check_lib_save_LIBS |
5348 |
|
fi |
5349 |
< |
echo "$as_me:3770: result: $ac_cv_lib_fl_yywrap" >&5 |
5349 |
> |
echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5 |
5350 |
|
echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6 |
5351 |
|
if test $ac_cv_lib_fl_yywrap = yes; then |
5352 |
|
LEXLIB="-lfl" |
5353 |
|
else |
5354 |
< |
echo "$as_me:3775: checking for yywrap in -ll" >&5 |
5354 |
> |
echo "$as_me:$LINENO: checking for yywrap in -ll" >&5 |
5355 |
|
echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6 |
5356 |
|
if test "${ac_cv_lib_l_yywrap+set}" = set; then |
5357 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
5359 |
|
ac_check_lib_save_LIBS=$LIBS |
5360 |
|
LIBS="-ll $LIBS" |
5361 |
|
cat >conftest.$ac_ext <<_ACEOF |
3783 |
– |
#line 3783 "configure" |
3784 |
– |
#include "confdefs.h" |
5362 |
|
|
5363 |
< |
/* Override any gcc2 internal prototype to avoid an error. */ |
5364 |
< |
#ifdef __cplusplus |
5365 |
< |
extern "C" |
5366 |
< |
#endif |
5367 |
< |
/* We use char because int might match the return type of a gcc2 |
3791 |
< |
builtin and then its argument prototype would still apply. */ |
3792 |
< |
char yywrap (); |
3793 |
< |
int |
3794 |
< |
main () |
3795 |
< |
{ |
3796 |
< |
yywrap (); |
3797 |
< |
; |
3798 |
< |
return 0; |
3799 |
< |
} |
5363 |
> |
program main |
5364 |
> |
|
5365 |
> |
call yywrap |
5366 |
> |
end program main |
5367 |
> |
|
5368 |
|
_ACEOF |
5369 |
|
rm -f conftest.$ac_objext conftest$ac_exeext |
5370 |
< |
if { (eval echo "$as_me:3802: \"$ac_link\"") >&5 |
5370 |
> |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
5371 |
|
(eval $ac_link) 2>&5 |
5372 |
|
ac_status=$? |
5373 |
< |
echo "$as_me:3805: \$? = $ac_status" >&5 |
5373 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5374 |
|
(exit $ac_status); } && |
5375 |
|
{ ac_try='test -s conftest$ac_exeext' |
5376 |
< |
{ (eval echo "$as_me:3808: \"$ac_try\"") >&5 |
5376 |
> |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5377 |
|
(eval $ac_try) 2>&5 |
5378 |
|
ac_status=$? |
5379 |
< |
echo "$as_me:3811: \$? = $ac_status" >&5 |
5379 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5380 |
|
(exit $ac_status); }; }; then |
5381 |
|
ac_cv_lib_l_yywrap=yes |
5382 |
|
else |
5383 |
|
echo "$as_me: failed program was:" >&5 |
5384 |
< |
cat conftest.$ac_ext >&5 |
5384 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
5385 |
> |
|
5386 |
|
ac_cv_lib_l_yywrap=no |
5387 |
|
fi |
5388 |
|
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
5389 |
|
LIBS=$ac_check_lib_save_LIBS |
5390 |
|
fi |
5391 |
< |
echo "$as_me:3822: result: $ac_cv_lib_l_yywrap" >&5 |
5391 |
> |
echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5 |
5392 |
|
echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6 |
5393 |
|
if test $ac_cv_lib_l_yywrap = yes; then |
5394 |
|
LEXLIB="-ll" |
5399 |
|
fi |
5400 |
|
|
5401 |
|
if test "x$LEX" != "x:"; then |
5402 |
< |
echo "$as_me:3833: checking lex output file root" >&5 |
5402 |
> |
echo "$as_me:$LINENO: checking lex output file root" >&5 |
5403 |
|
echo $ECHO_N "checking lex output file root... $ECHO_C" >&6 |
5404 |
|
if test "${ac_cv_prog_lex_root+set}" = set; then |
5405 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
5406 |
|
else |
5407 |
|
# The minimal lex program is just a single line: %%. But some broken lexes |
5408 |
|
# (Solaris, I think it was) want two %% lines, so accommodate them. |
5409 |
< |
echo '%% |
5410 |
< |
%%' | $LEX |
5409 |
> |
cat >conftest.l <<_ACEOF |
5410 |
> |
%% |
5411 |
> |
%% |
5412 |
> |
_ACEOF |
5413 |
> |
{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5 |
5414 |
> |
(eval $LEX conftest.l) 2>&5 |
5415 |
> |
ac_status=$? |
5416 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5417 |
> |
(exit $ac_status); } |
5418 |
|
if test -f lex.yy.c; then |
5419 |
|
ac_cv_prog_lex_root=lex.yy |
5420 |
|
elif test -f lexyy.c; then |
5421 |
|
ac_cv_prog_lex_root=lexyy |
5422 |
|
else |
5423 |
< |
{ { echo "$as_me:3847: error: cannot find output from $LEX; giving up" >&5 |
5423 |
> |
{ { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5 |
5424 |
|
echo "$as_me: error: cannot find output from $LEX; giving up" >&2;} |
5425 |
|
{ (exit 1); exit 1; }; } |
5426 |
|
fi |
5427 |
|
fi |
5428 |
< |
echo "$as_me:3852: result: $ac_cv_prog_lex_root" >&5 |
5428 |
> |
echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5 |
5429 |
|
echo "${ECHO_T}$ac_cv_prog_lex_root" >&6 |
5430 |
+ |
rm -f conftest.l |
5431 |
|
LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root |
5432 |
|
|
5433 |
< |
echo "$as_me:3856: checking whether yytext is a pointer" >&5 |
5433 |
> |
echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5 |
5434 |
|
echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6 |
5435 |
|
if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then |
5436 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
5446 |
|
`cat $LEX_OUTPUT_ROOT.c` |
5447 |
|
_ACEOF |
5448 |
|
rm -f conftest.$ac_objext conftest$ac_exeext |
5449 |
< |
if { (eval echo "$as_me:3872: \"$ac_link\"") >&5 |
5449 |
> |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
5450 |
|
(eval $ac_link) 2>&5 |
5451 |
|
ac_status=$? |
5452 |
< |
echo "$as_me:3875: \$? = $ac_status" >&5 |
5452 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5453 |
|
(exit $ac_status); } && |
5454 |
|
{ ac_try='test -s conftest$ac_exeext' |
5455 |
< |
{ (eval echo "$as_me:3878: \"$ac_try\"") >&5 |
5455 |
> |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5456 |
|
(eval $ac_try) 2>&5 |
5457 |
|
ac_status=$? |
5458 |
< |
echo "$as_me:3881: \$? = $ac_status" >&5 |
5458 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5459 |
|
(exit $ac_status); }; }; then |
5460 |
|
ac_cv_prog_lex_yytext_pointer=yes |
5461 |
|
else |
5462 |
|
echo "$as_me: failed program was:" >&5 |
5463 |
< |
cat conftest.$ac_ext >&5 |
5463 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
5464 |
> |
|
5465 |
|
fi |
5466 |
|
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
5467 |
|
LIBS=$ac_save_LIBS |
5468 |
|
rm -f "${LEX_OUTPUT_ROOT}.c" |
5469 |
|
|
5470 |
|
fi |
5471 |
< |
echo "$as_me:3893: result: $ac_cv_prog_lex_yytext_pointer" >&5 |
5471 |
> |
echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5 |
5472 |
|
echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6 |
5473 |
|
if test $ac_cv_prog_lex_yytext_pointer = yes; then |
5474 |
|
|
5475 |
< |
cat >>confdefs.h <<\EOF |
5475 |
> |
cat >>confdefs.h <<\_ACEOF |
5476 |
|
#define YYTEXT_POINTER 1 |
5477 |
< |
EOF |
5477 |
> |
_ACEOF |
5478 |
|
|
5479 |
|
fi |
5480 |
|
|
5481 |
|
fi |
5482 |
|
# Extract the first word of "ar", so it can be a program name with args. |
5483 |
|
set dummy ar; ac_word=$2 |
5484 |
< |
echo "$as_me:3906: checking for $ac_word" >&5 |
5484 |
> |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5485 |
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
5486 |
|
if test "${ac_cv_prog_AR+set}" = set; then |
5487 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
5489 |
|
if test -n "$AR"; then |
5490 |
|
ac_cv_prog_AR="$AR" # Let the user override the test. |
5491 |
|
else |
5492 |
< |
ac_save_IFS=$IFS; IFS=$ac_path_separator |
5493 |
< |
ac_dummy="$PATH" |
5494 |
< |
for ac_dir in $ac_dummy; do |
5495 |
< |
IFS=$ac_save_IFS |
5496 |
< |
test -z "$ac_dir" && ac_dir=. |
5497 |
< |
$as_executable_p "$ac_dir/$ac_word" || continue |
5498 |
< |
ac_cv_prog_AR="ar" |
5499 |
< |
echo "$as_me:3921: found $ac_dir/$ac_word" >&5 |
5500 |
< |
break |
5492 |
> |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5493 |
> |
for as_dir in $PATH |
5494 |
> |
do |
5495 |
> |
IFS=$as_save_IFS |
5496 |
> |
test -z "$as_dir" && as_dir=. |
5497 |
> |
for ac_exec_ext in '' $ac_executable_extensions; do |
5498 |
> |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
5499 |
> |
ac_cv_prog_AR="ar" |
5500 |
> |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5501 |
> |
break 2 |
5502 |
> |
fi |
5503 |
|
done |
5504 |
+ |
done |
5505 |
|
|
5506 |
|
test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="NONE" |
5507 |
|
fi |
5508 |
|
fi |
5509 |
|
AR=$ac_cv_prog_AR |
5510 |
|
if test -n "$AR"; then |
5511 |
< |
echo "$as_me:3930: result: $AR" >&5 |
5511 |
> |
echo "$as_me:$LINENO: result: $AR" >&5 |
5512 |
|
echo "${ECHO_T}$AR" >&6 |
5513 |
|
else |
5514 |
< |
echo "$as_me:3933: result: no" >&5 |
5514 |
> |
echo "$as_me:$LINENO: result: no" >&5 |
5515 |
|
echo "${ECHO_T}no" >&6 |
5516 |
|
fi |
5517 |
|
|
5518 |
|
if test "$AR" = "NONE"; then |
5519 |
< |
{ { echo "$as_me:3938: error: --> Can't find \`ar'!" >&5 |
5519 |
> |
{ { echo "$as_me:$LINENO: error: --> Can't find \`ar'!" >&5 |
5520 |
|
echo "$as_me: error: --> Can't find \`ar'!" >&2;} |
5521 |
|
{ (exit 1); exit 1; }; } |
5522 |
|
cat >confcache <<\_ACEOF |
5529 |
|
# config.status only pays attention to the cache file if you give it |
5530 |
|
# the --recheck option to rerun configure. |
5531 |
|
# |
5532 |
< |
# `ac_cv_env_foo' variables (set or unset) will be overriden when |
5532 |
> |
# `ac_cv_env_foo' variables (set or unset) will be overridden when |
5533 |
|
# loading this file, other *unset* `ac_cv_foo' will be assigned the |
5534 |
|
# following values. |
5535 |
|
|
5548 |
|
# substitution turns \\\\ into \\, and sed turns \\ into \). |
5549 |
|
sed -n \ |
5550 |
|
"s/'/'\\\\''/g; |
5551 |
< |
s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
5551 |
> |
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
5552 |
|
;; |
5553 |
|
*) |
5554 |
|
# `set' quotes correctly as required by POSIX, so do not add quotes. |
5555 |
|
sed -n \ |
5556 |
< |
"s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
5556 |
> |
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
5557 |
|
;; |
5558 |
|
esac; |
5559 |
|
} | |
5564 |
|
t end |
5565 |
|
/^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
5566 |
|
: end' >>confcache |
5567 |
< |
if cmp -s $cache_file confcache; then :; else |
5567 |
> |
if diff $cache_file confcache >/dev/null 2>&1; then :; else |
5568 |
|
if test -w $cache_file; then |
5569 |
|
test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
5570 |
|
cat confcache >$cache_file |
5576 |
|
exit 1 |
5577 |
|
fi |
5578 |
|
|
3998 |
– |
ac_ext=f90 |
3999 |
– |
ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5' |
4000 |
– |
ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
4001 |
– |
ac_compiler_gnu=$ac_cv_f90_compiler_gnu |
5579 |
|
|
5580 |
< |
ac_ext=f90 |
5581 |
< |
ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5' |
5582 |
< |
ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
5583 |
< |
ac_compiler_gnu=$ac_cv_f90_compiler_gnu |
5584 |
< |
echo "$as_me:4007: checking how to get verbose linking output from $F90" >&5 |
4008 |
< |
echo $ECHO_N "checking how to get verbose linking output from $F90... $ECHO_C" >&6 |
4009 |
< |
if test "${ac_cv_prog_f90_v+set}" = set; then |
4010 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
5580 |
> |
|
5581 |
> |
# Check whether --with-mpi or --without-mpi was given. |
5582 |
> |
if test "${with_mpi+set}" = set; then |
5583 |
> |
withval="$with_mpi" |
5584 |
> |
with_mpi=$withval |
5585 |
|
else |
5586 |
+ |
with_mpi="no" |
5587 |
+ |
fi; |
5588 |
|
|
5589 |
< |
cat >conftest.$ac_ext <<_ACEOF |
5589 |
> |
case "x$with_mpi" in |
5590 |
> |
xyes | "x") USE_MPI=yes;; |
5591 |
> |
xno) USE_MPI=no ;; |
5592 |
> |
*) MPI="$with_mpi"; USE_MPI=yes ;; |
5593 |
> |
esac |
5594 |
> |
if test "$USE_MPI" = "yes" -a -z "$with_mpi"; then |
5595 |
> |
MPI="/usr/local" |
5596 |
> |
fi |
5597 |
> |
if test "$USE_MPI" = "yes"; then |
5598 |
> |
echo "MPI = $MPI" |
5599 |
|
|
4015 |
– |
program main |
5600 |
|
|
5601 |
< |
end program main |
5601 |
> |
# Set variables... |
5602 |
> |
MPI_LIB_DIR="$MPI/lib" |
5603 |
> |
MPI_INC_DIR="$MPI/include" |
5604 |
|
|
4019 |
– |
_ACEOF |
4020 |
– |
rm -f conftest.$ac_objext |
4021 |
– |
if { (eval echo "$as_me:4021: \"$ac_compile\"") >&5 |
4022 |
– |
(eval $ac_compile) 2>&5 |
4023 |
– |
ac_status=$? |
4024 |
– |
echo "$as_me:4024: \$? = $ac_status" >&5 |
4025 |
– |
(exit $ac_status); } && |
4026 |
– |
{ ac_try='test -s conftest.$ac_objext' |
4027 |
– |
{ (eval echo "$as_me:4027: \"$ac_try\"") >&5 |
4028 |
– |
(eval $ac_try) 2>&5 |
4029 |
– |
ac_status=$? |
4030 |
– |
echo "$as_me:4030: \$? = $ac_status" >&5 |
4031 |
– |
(exit $ac_status); }; }; then |
4032 |
– |
ac_cv_prog_f90_v= |
4033 |
– |
# Try some options frequently used verbose output |
4034 |
– |
for ac_verb in -v -verbose --verbose -V -\#\#\#; do |
4035 |
– |
ac_ext=f90 |
4036 |
– |
ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5' |
4037 |
– |
ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
4038 |
– |
ac_compiler_gnu=$ac_cv_f90_compiler_gnu |
5605 |
|
|
4040 |
– |
cat >conftest.$ac_ext <<_ACEOF |
4041 |
– |
|
4042 |
– |
program main |
4043 |
– |
|
4044 |
– |
end program main |
4045 |
– |
|
4046 |
– |
_ACEOF |
4047 |
– |
|
4048 |
– |
# Compile and link our simple test program by passing a flag (argument |
4049 |
– |
# 1 to this macro) to the Fortran 90 compiler in order to get |
4050 |
– |
# "verbose" output that we can then parse for the Fortran 90 linker |
4051 |
– |
# flags. |
4052 |
– |
ac_save_F90FLAGS=$F90FLAGS |
4053 |
– |
F90FLAGS="$F90FLAGS $ac_verb" |
4054 |
– |
|
4055 |
– |
(eval echo $as_me:4055: \"$ac_link\") >&5 |
4056 |
– |
ac_f90_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'` |
4057 |
– |
echo "$ac_f90_v_output" >&5 |
4058 |
– |
F90FLAGS=$ac_save_F90FLAGS |
4059 |
– |
|
4060 |
– |
rm -f conftest.* |
4061 |
– |
ac_ext=f90 |
4062 |
– |
ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5' |
4063 |
– |
ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
4064 |
– |
ac_compiler_gnu=$ac_cv_f90_compiler_gnu |
4065 |
– |
|
4066 |
– |
# If we are using xlf then replace all the commas with spaces. |
4067 |
– |
if echo $ac_f90_v_output | grep xlfentry >/dev/null 2>&1; then |
4068 |
– |
ac_f90_v_output=`echo $ac_f90_v_output | sed 's/,/ /g'` |
4069 |
– |
fi |
4070 |
– |
|
4071 |
– |
# If we are using Cray Fortran then delete quotes. |
4072 |
– |
# Use "\"" instead of '"' for font-lock-mode. |
4073 |
– |
# FIXME: a more general fix for quoted arguments with spaces? |
4074 |
– |
if echo $ac_f90_v_output | grep cft90 >/dev/null 2>&1; then |
4075 |
– |
ac_f90_v_output=`echo $ac_f90_v_output | sed "s/\"//g"` |
4076 |
– |
fi |
4077 |
– |
# look for -l* and *.a constructs in the output |
4078 |
– |
for ac_arg in $ac_f90_v_output; do |
4079 |
– |
case $ac_arg in |
4080 |
– |
[\\/]*.a | ?:[\\/]*.a | -[lLRu]*) |
4081 |
– |
ac_cv_prog_f90_v=$ac_verb |
4082 |
– |
break 2 ;; |
4083 |
– |
esac |
4084 |
– |
done |
4085 |
– |
done |
4086 |
– |
if test -z "$ac_cv_prog_f90_v"; then |
4087 |
– |
{ echo "$as_me:4087: WARNING: cannot determine how to obtain linking information from $F90" >&5 |
4088 |
– |
echo "$as_me: WARNING: cannot determine how to obtain linking information from $F90" >&2;} |
4089 |
– |
fi |
4090 |
– |
else |
4091 |
– |
echo "$as_me: failed program was:" >&5 |
4092 |
– |
cat conftest.$ac_ext >&5 |
4093 |
– |
{ echo "$as_me:4093: WARNING: compilation failed" >&5 |
4094 |
– |
echo "$as_me: WARNING: compilation failed" >&2;} |
4095 |
– |
fi |
4096 |
– |
rm -f conftest.$ac_objext conftest.$ac_ext |
5606 |
|
|
5607 |
< |
fi |
5608 |
< |
echo "$as_me:4099: result: $ac_cv_prog_f90_v" >&5 |
5609 |
< |
echo "${ECHO_T}$ac_cv_prog_f90_v" >&6 |
5610 |
< |
echo "$as_me:4101: checking for Fortran 90 libraries" >&5 |
5611 |
< |
echo $ECHO_N "checking for Fortran 90 libraries... $ECHO_C" >&6 |
5612 |
< |
if test "${ac_cv_flibs+set}" = set; then |
5613 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
5607 |
> |
echo "$as_me:$LINENO: checking for mpi.h" >&5 |
5608 |
> |
echo $ECHO_N "checking for mpi.h... $ECHO_C" >&6 |
5609 |
> |
have_mpi_h=0 |
5610 |
> |
echo '#include <mpi.h>' > conftest.cc |
5611 |
> |
if test -z "`${CXX} -I${MPI_INC_DIR} -c conftest.cc 2>&1`"; then |
5612 |
> |
echo "$as_me:$LINENO: result: yes" >&5 |
5613 |
> |
echo "${ECHO_T}yes" >&6 |
5614 |
> |
have_mpi_h=1 |
5615 |
|
else |
5616 |
< |
if test "x$F90LIBS" != "x"; then |
5617 |
< |
ac_cv_f90libs="$F90LIBS" # Let the user override the test. |
5618 |
< |
else |
5616 |
> |
echo "$as_me:$LINENO: result: no! Check MPI include paths" >&5 |
5617 |
> |
echo "${ECHO_T}no! Check MPI include paths" >&6 |
5618 |
> |
USE_MPI="no" |
5619 |
> |
fi |
5620 |
> |
rm -f conftest* |
5621 |
> |
if test "$have_mpi_h" = 1; then |
5622 |
|
|
5623 |
< |
ac_ext=f90 |
5624 |
< |
ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5' |
4112 |
< |
ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
4113 |
< |
ac_compiler_gnu=$ac_cv_f90_compiler_gnu |
4114 |
< |
|
4115 |
< |
cat >conftest.$ac_ext <<_ACEOF |
4116 |
< |
|
4117 |
< |
program main |
4118 |
< |
|
4119 |
< |
end program main |
4120 |
< |
|
5623 |
> |
cat >>confdefs.h <<\_ACEOF |
5624 |
> |
#define HAVE_MPI_H 1 |
5625 |
|
_ACEOF |
5626 |
|
|
4123 |
– |
# Compile and link our simple test program by passing a flag (argument |
4124 |
– |
# 1 to this macro) to the Fortran 90 compiler in order to get |
4125 |
– |
# "verbose" output that we can then parse for the Fortran 90 linker |
4126 |
– |
# flags. |
4127 |
– |
ac_save_F90FLAGS=$F90FLAGS |
4128 |
– |
F90FLAGS="$F90FLAGS $ac_cv_prog_f90_v" |
4129 |
– |
|
4130 |
– |
(eval echo $as_me:4130: \"$ac_link\") >&5 |
4131 |
– |
ac_f90_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'` |
4132 |
– |
echo "$ac_f90_v_output" >&5 |
4133 |
– |
F90FLAGS=$ac_save_F90FLAGS |
4134 |
– |
|
4135 |
– |
rm -f conftest.* |
4136 |
– |
ac_ext=f90 |
4137 |
– |
ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5' |
4138 |
– |
ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
4139 |
– |
ac_compiler_gnu=$ac_cv_f90_compiler_gnu |
4140 |
– |
|
4141 |
– |
# If we are using xlf then replace all the commas with spaces. |
4142 |
– |
if echo $ac_f90_v_output | grep xlfentry >/dev/null 2>&1; then |
4143 |
– |
ac_f90_v_output=`echo $ac_f90_v_output | sed 's/,/ /g'` |
5627 |
|
fi |
5628 |
|
|
5629 |
< |
# If we are using Cray Fortran then delete quotes. |
5630 |
< |
# Use "\"" instead of '"' for font-lock-mode. |
5631 |
< |
# FIXME: a more general fix for quoted arguments with spaces? |
5632 |
< |
if echo $ac_f90_v_output | grep cft90 >/dev/null 2>&1; then |
5633 |
< |
ac_f90_v_output=`echo $ac_f90_v_output | sed "s/\"//g"` |
5634 |
< |
fi |
5635 |
< |
|
5636 |
< |
ac_cv_f90libs= |
5637 |
< |
|
5638 |
< |
# Save positional arguments (if any) |
5639 |
< |
ac_save_positional="$@" |
5640 |
< |
|
5641 |
< |
set X $ac_f90_v_output |
5642 |
< |
while test $# != 1; do |
4160 |
< |
shift |
4161 |
< |
ac_arg=$1 |
4162 |
< |
case $ac_arg in |
4163 |
< |
[\\/]*.a | ?:[\\/]*.a) |
4164 |
< |
ac_exists=false |
4165 |
< |
for ac_i in $ac_cv_f90libs; do |
4166 |
< |
if test x"$ac_arg" = x"$ac_i"; then |
4167 |
< |
ac_exists=true |
4168 |
< |
break |
4169 |
< |
fi |
4170 |
< |
done |
4171 |
< |
|
4172 |
< |
if test x"$ac_exists" = xtrue; then |
4173 |
< |
: |
5629 |
> |
echo "$as_me:$LINENO: checking whether mpif.h is usable" >&5 |
5630 |
> |
echo $ECHO_N "checking whether mpif.h is usable... $ECHO_C" >&6 |
5631 |
> |
have_mpif_h=0 |
5632 |
> |
rm -f conftest* |
5633 |
> |
cat >conftest.f90 <<EOF |
5634 |
> |
program main |
5635 |
> |
include 'mpif.h' |
5636 |
> |
end |
5637 |
> |
EOF |
5638 |
> |
if $F90 -I$MPI_INC_DIR -c conftest.f90 > conftest.out 2>&1 ; then |
5639 |
> |
echo "$as_me:$LINENO: result: yes" >&5 |
5640 |
> |
echo "${ECHO_T}yes" >&6 |
5641 |
> |
MPI_F90_INC="$MPI_INC_DIR" |
5642 |
> |
have_mpif_h=1 |
5643 |
|
else |
5644 |
< |
ac_cv_f90libs="$ac_cv_f90libs $ac_arg" |
5644 |
> |
if test -s conftest.out ; then |
5645 |
> |
cat conftest.out >> config.log |
5646 |
> |
fi |
5647 |
> |
echo "$as_me:$LINENO: result: no! Check MPI include paths" >&5 |
5648 |
> |
echo "${ECHO_T}no! Check MPI include paths" >&6 |
5649 |
> |
USE_MPI="no" |
5650 |
|
fi |
5651 |
+ |
rm -f conftest* |
5652 |
|
|
5653 |
< |
;; |
4179 |
< |
-bI:*) |
4180 |
< |
ac_exists=false |
4181 |
< |
for ac_i in $ac_cv_f90libs; do |
4182 |
< |
if test x"$ac_arg" = x"$ac_i"; then |
4183 |
< |
ac_exists=true |
4184 |
< |
break |
4185 |
< |
fi |
4186 |
< |
done |
5653 |
> |
if test "$have_mpif_h" = 1; then |
5654 |
|
|
5655 |
< |
if test x"$ac_exists" = xtrue; then |
5656 |
< |
: |
5657 |
< |
else |
4191 |
< |
if test "$ac_compiler_gnu" = yes; then |
4192 |
< |
for ac_link_opt in $ac_arg; do |
4193 |
< |
ac_cv_f90libs="$ac_cv_f90libs -Xlinker $ac_link_opt" |
4194 |
< |
done |
4195 |
< |
else |
4196 |
< |
ac_cv_f90libs="$ac_cv_f90libs $ac_arg" |
4197 |
< |
fi |
4198 |
< |
fi |
5655 |
> |
cat >>confdefs.h <<\_ACEOF |
5656 |
> |
#define HAVE_MPIF_H 1 |
5657 |
> |
_ACEOF |
5658 |
|
|
4200 |
– |
;; |
4201 |
– |
# Ignore these flags. |
4202 |
– |
-lang* | -lcrt0.o | -lc | -lgcc | -LANG:=*) |
4203 |
– |
;; |
4204 |
– |
-lkernel32) |
4205 |
– |
test x"$CYGWIN" != xyes && ac_cv_f90libs="$ac_cv_f90libs $ac_arg" |
4206 |
– |
;; |
4207 |
– |
-[LRuY]) |
4208 |
– |
# These flags, when seen by themselves, take an argument. |
4209 |
– |
# We remove the space between option and argument and re-iterate |
4210 |
– |
# unless we find an empty arg or a new option (starting with -) |
4211 |
– |
case $2 in |
4212 |
– |
"" | -*);; |
4213 |
– |
*) |
4214 |
– |
ac_arg="$ac_arg$2" |
4215 |
– |
|
4216 |
– |
shift; shift |
4217 |
– |
set X $ac_arg "$@" |
4218 |
– |
;; |
4219 |
– |
esac |
4220 |
– |
;; |
4221 |
– |
-YP,*) |
4222 |
– |
for ac_j in `echo $ac_arg | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do |
4223 |
– |
ac_exists=false |
4224 |
– |
for ac_i in $ac_cv_f90libs; do |
4225 |
– |
if test x"$ac_j" = x"$ac_i"; then |
4226 |
– |
ac_exists=true |
4227 |
– |
break |
4228 |
– |
fi |
4229 |
– |
done |
4230 |
– |
|
4231 |
– |
if test x"$ac_exists" = xtrue; then |
4232 |
– |
: |
4233 |
– |
else |
4234 |
– |
ac_arg="$ac_arg $ac_j" |
4235 |
– |
ac_cv_f90libs="$ac_cv_f90libs $ac_j" |
5659 |
|
fi |
5660 |
|
|
5661 |
< |
done |
4239 |
< |
;; |
4240 |
< |
-[lLR]*) |
4241 |
< |
ac_exists=false |
4242 |
< |
for ac_i in $ac_cv_f90libs; do |
4243 |
< |
if test x"$ac_arg" = x"$ac_i"; then |
4244 |
< |
ac_exists=true |
4245 |
< |
break |
4246 |
< |
fi |
4247 |
< |
done |
4248 |
< |
|
4249 |
< |
if test x"$ac_exists" = xtrue; then |
4250 |
< |
: |
4251 |
< |
else |
4252 |
< |
ac_cv_f90libs="$ac_cv_f90libs $ac_arg" |
4253 |
< |
fi |
4254 |
< |
|
4255 |
< |
;; |
4256 |
< |
# Ignore everything else. |
4257 |
< |
esac |
4258 |
< |
done |
4259 |
< |
# restore positional arguments |
4260 |
< |
set X $ac_save_positional; shift |
4261 |
< |
|
4262 |
< |
# We only consider "LD_RUN_PATH" on Solaris systems. If this is seen, |
4263 |
< |
# then we insist that the "run path" must be an absolute path (i.e. it |
4264 |
< |
# must begin with a "/"). |
4265 |
< |
case `(uname -sr) 2>/dev/null` in |
4266 |
< |
"SunOS 5"*) |
4267 |
< |
ac_ld_run_path=`echo $ac_f90_v_output | |
4268 |
< |
sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'` |
4269 |
< |
test "x$ac_ld_run_path" != x && |
4270 |
< |
|
4271 |
< |
if test "$ac_compiler_gnu" = yes; then |
4272 |
< |
for ac_link_opt in $ac_ld_run_path; do |
4273 |
< |
ac_cv_f90libs="$ac_cv_f90libs -Xlinker $ac_link_opt" |
4274 |
< |
done |
4275 |
< |
else |
4276 |
< |
ac_cv_f90libs="$ac_cv_f90libs $ac_ld_run_path" |
4277 |
< |
fi |
4278 |
< |
;; |
4279 |
< |
esac |
4280 |
< |
fi # test "x$F90LIBS" = "x" |
4281 |
< |
|
4282 |
< |
fi |
4283 |
< |
echo "$as_me:4283: result: $ac_cv_flibs" >&5 |
4284 |
< |
echo "${ECHO_T}$ac_cv_flibs" >&6 |
4285 |
< |
F90LIBS="$ac_cv_f90libs" |
4286 |
< |
|
4287 |
< |
ac_ext=f90 |
4288 |
< |
ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5' |
4289 |
< |
ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
4290 |
< |
ac_compiler_gnu=$ac_cv_f90_compiler_gnu |
4291 |
< |
|
4292 |
< |
echo "$as_me:4292: checking for Fortran 90 name-mangling scheme" >&5 |
4293 |
< |
echo $ECHO_N "checking for Fortran 90 name-mangling scheme... $ECHO_C" >&6 |
4294 |
< |
if test "${ac_cv_f90_mangling+set}" = set; then |
4295 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
4296 |
< |
else |
4297 |
< |
ac_ext=f90 |
4298 |
< |
ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5' |
4299 |
< |
ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
4300 |
< |
ac_compiler_gnu=$ac_cv_f90_compiler_gnu |
4301 |
< |
cat >conftest.$ac_ext <<_ACEOF |
4302 |
< |
subroutine foobar() |
4303 |
< |
return |
4304 |
< |
end |
4305 |
< |
subroutine foo_bar() |
4306 |
< |
return |
4307 |
< |
end |
4308 |
< |
_ACEOF |
4309 |
< |
rm -f conftest.$ac_objext |
4310 |
< |
if { (eval echo "$as_me:4310: \"$ac_compile\"") >&5 |
4311 |
< |
(eval $ac_compile) 2>&5 |
4312 |
< |
ac_status=$? |
4313 |
< |
echo "$as_me:4313: \$? = $ac_status" >&5 |
4314 |
< |
(exit $ac_status); } && |
4315 |
< |
{ ac_try='test -s conftest.$ac_objext' |
4316 |
< |
{ (eval echo "$as_me:4316: \"$ac_try\"") >&5 |
4317 |
< |
(eval $ac_try) 2>&5 |
4318 |
< |
ac_status=$? |
4319 |
< |
echo "$as_me:4319: \$? = $ac_status" >&5 |
4320 |
< |
(exit $ac_status); }; }; then |
4321 |
< |
mv conftest.$ac_objext cf90_test.$ac_objext |
4322 |
< |
|
4323 |
< |
ac_ext=c |
5661 |
> |
ac_ext=c |
5662 |
|
ac_cpp='$CPP $CPPFLAGS' |
5663 |
|
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
5664 |
|
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
5665 |
|
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
5666 |
|
|
5667 |
< |
ac_save_LIBS=$LIBS |
5668 |
< |
LIBS="cf90_test.$ac_objext $F90LIBS $LIBS" |
5667 |
> |
ac_save_LDFLAGS=$LDFLAGS |
5668 |
> |
LDFLAGS="${LDFLAGS} -L${MPI_LIB_DIR} " |
5669 |
|
|
5670 |
< |
ac_success=no |
5671 |
< |
for ac_foobar in foobar FOOBAR; do |
5672 |
< |
for ac_underscore in "" "_"; do |
5673 |
< |
ac_func="$ac_foobar$ac_underscore" |
5674 |
< |
cat >conftest.$ac_ext <<_ACEOF |
5675 |
< |
#line 4337 "configure" |
5676 |
< |
#include "confdefs.h" |
5670 |
> |
if test x = x"$MPI_LIB"; then |
5671 |
> |
echo "$as_me:$LINENO: checking for MPI_Init in -lmpi" >&5 |
5672 |
> |
echo $ECHO_N "checking for MPI_Init in -lmpi... $ECHO_C" >&6 |
5673 |
> |
if test "${ac_cv_lib_mpi_MPI_Init+set}" = set; then |
5674 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
5675 |
> |
else |
5676 |
> |
ac_check_lib_save_LIBS=$LIBS |
5677 |
> |
LIBS="-lmpi $LIBS" |
5678 |
> |
cat >conftest.$ac_ext <<_ACEOF |
5679 |
> |
#line $LINENO "configure" |
5680 |
> |
/* confdefs.h. */ |
5681 |
> |
_ACEOF |
5682 |
> |
cat confdefs.h >>conftest.$ac_ext |
5683 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
5684 |
> |
/* end confdefs.h. */ |
5685 |
|
|
5686 |
|
/* Override any gcc2 internal prototype to avoid an error. */ |
5687 |
|
#ifdef __cplusplus |
5689 |
|
#endif |
5690 |
|
/* We use char because int might match the return type of a gcc2 |
5691 |
|
builtin and then its argument prototype would still apply. */ |
5692 |
< |
char $ac_func (); |
5692 |
> |
char MPI_Init (); |
5693 |
|
int |
5694 |
|
main () |
5695 |
|
{ |
5696 |
< |
$ac_func (); |
5696 |
> |
MPI_Init (); |
5697 |
|
; |
5698 |
|
return 0; |
5699 |
|
} |
5700 |
|
_ACEOF |
5701 |
|
rm -f conftest.$ac_objext conftest$ac_exeext |
5702 |
< |
if { (eval echo "$as_me:4356: \"$ac_link\"") >&5 |
5702 |
> |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
5703 |
|
(eval $ac_link) 2>&5 |
5704 |
|
ac_status=$? |
5705 |
< |
echo "$as_me:4359: \$? = $ac_status" >&5 |
5705 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5706 |
|
(exit $ac_status); } && |
5707 |
|
{ ac_try='test -s conftest$ac_exeext' |
5708 |
< |
{ (eval echo "$as_me:4362: \"$ac_try\"") >&5 |
5708 |
> |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5709 |
|
(eval $ac_try) 2>&5 |
5710 |
|
ac_status=$? |
5711 |
< |
echo "$as_me:4365: \$? = $ac_status" >&5 |
5711 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5712 |
|
(exit $ac_status); }; }; then |
5713 |
< |
ac_success=yes; break 2 |
5713 |
> |
ac_cv_lib_mpi_MPI_Init=yes |
5714 |
|
else |
5715 |
|
echo "$as_me: failed program was:" >&5 |
5716 |
< |
cat conftest.$ac_ext >&5 |
5716 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
5717 |
> |
|
5718 |
> |
ac_cv_lib_mpi_MPI_Init=no |
5719 |
|
fi |
5720 |
|
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
5721 |
< |
done |
5722 |
< |
done |
5721 |
> |
LIBS=$ac_check_lib_save_LIBS |
5722 |
> |
fi |
5723 |
> |
echo "$as_me:$LINENO: result: $ac_cv_lib_mpi_MPI_Init" >&5 |
5724 |
> |
echo "${ECHO_T}$ac_cv_lib_mpi_MPI_Init" >&6 |
5725 |
> |
if test $ac_cv_lib_mpi_MPI_Init = yes; then |
5726 |
> |
MPI_LIB="-lmpi" |
5727 |
> |
fi |
5728 |
|
|
5729 |
< |
if test "$ac_success" = "yes"; then |
5730 |
< |
case $ac_foobar in |
5731 |
< |
foobar) |
5732 |
< |
ac_case=lower |
5733 |
< |
ac_foo_bar=foo_bar |
5734 |
< |
;; |
5735 |
< |
FOOBAR) |
5736 |
< |
ac_case=upper |
5737 |
< |
ac_foo_bar=FOO_BAR |
5738 |
< |
;; |
5739 |
< |
esac |
5729 |
> |
fi |
5730 |
> |
if test x = x"$MPI_LIB"; then |
5731 |
> |
echo "$as_me:$LINENO: checking for MPI_Init in -lmpich" >&5 |
5732 |
> |
echo $ECHO_N "checking for MPI_Init in -lmpich... $ECHO_C" >&6 |
5733 |
> |
if test "${ac_cv_lib_mpich_MPI_Init+set}" = set; then |
5734 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
5735 |
> |
else |
5736 |
> |
ac_check_lib_save_LIBS=$LIBS |
5737 |
> |
LIBS="-lmpich $LIBS" |
5738 |
> |
cat >conftest.$ac_ext <<_ACEOF |
5739 |
> |
#line $LINENO "configure" |
5740 |
> |
/* confdefs.h. */ |
5741 |
> |
_ACEOF |
5742 |
> |
cat confdefs.h >>conftest.$ac_ext |
5743 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
5744 |
> |
/* end confdefs.h. */ |
5745 |
|
|
4388 |
– |
ac_success_extra=no |
4389 |
– |
for ac_extra in "" "_"; do |
4390 |
– |
ac_func="$ac_foo_bar$ac_underscore$ac_extra" |
4391 |
– |
|
4392 |
– |
cat >conftest.$ac_ext <<_ACEOF |
4393 |
– |
#line 4393 "configure" |
4394 |
– |
#include "confdefs.h" |
4395 |
– |
|
5746 |
|
/* Override any gcc2 internal prototype to avoid an error. */ |
5747 |
|
#ifdef __cplusplus |
5748 |
|
extern "C" |
5749 |
|
#endif |
5750 |
|
/* We use char because int might match the return type of a gcc2 |
5751 |
|
builtin and then its argument prototype would still apply. */ |
5752 |
< |
char $ac_func (); |
5752 |
> |
char MPI_Init (); |
5753 |
|
int |
5754 |
|
main () |
5755 |
|
{ |
5756 |
< |
$ac_func (); |
5756 |
> |
MPI_Init (); |
5757 |
|
; |
5758 |
|
return 0; |
5759 |
|
} |
5760 |
|
_ACEOF |
5761 |
|
rm -f conftest.$ac_objext conftest$ac_exeext |
5762 |
< |
if { (eval echo "$as_me:4412: \"$ac_link\"") >&5 |
5762 |
> |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
5763 |
|
(eval $ac_link) 2>&5 |
5764 |
|
ac_status=$? |
5765 |
< |
echo "$as_me:4415: \$? = $ac_status" >&5 |
5765 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5766 |
|
(exit $ac_status); } && |
5767 |
|
{ ac_try='test -s conftest$ac_exeext' |
5768 |
< |
{ (eval echo "$as_me:4418: \"$ac_try\"") >&5 |
5768 |
> |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5769 |
|
(eval $ac_try) 2>&5 |
5770 |
|
ac_status=$? |
5771 |
< |
echo "$as_me:4421: \$? = $ac_status" >&5 |
5771 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5772 |
|
(exit $ac_status); }; }; then |
5773 |
< |
ac_success_extra=yes; break |
5773 |
> |
ac_cv_lib_mpich_MPI_Init=yes |
5774 |
|
else |
5775 |
|
echo "$as_me: failed program was:" >&5 |
5776 |
< |
cat conftest.$ac_ext >&5 |
5776 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
5777 |
> |
|
5778 |
> |
ac_cv_lib_mpich_MPI_Init=no |
5779 |
|
fi |
5780 |
|
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
5781 |
< |
done |
4430 |
< |
|
4431 |
< |
if test "$ac_success_extra" = "yes"; then |
4432 |
< |
ac_cv_f90_mangling="$ac_case case" |
4433 |
< |
if test -z "$ac_underscore"; then |
4434 |
< |
ac_cv_f90_mangling="$ac_cv_f90_mangling, no underscore" |
4435 |
< |
else |
4436 |
< |
ac_cv_f90_mangling="$ac_cv_f90_mangling, underscore" |
4437 |
< |
|
4438 |
< |
fi |
4439 |
< |
if test -z "$ac_extra"; then |
4440 |
< |
ac_cv_f90_mangling="$ac_cv_f90_mangling, no extra underscore" |
4441 |
< |
else |
4442 |
< |
ac_cv_f90_mangling="$ac_cv_f90_mangling, extra underscore" |
4443 |
< |
fi |
4444 |
< |
else |
4445 |
< |
ac_cv_f90_mangling="unknown" |
4446 |
< |
fi |
4447 |
< |
else |
4448 |
< |
ac_cv_f90_mangling="unknown" |
4449 |
< |
|
4450 |
< |
fi |
4451 |
< |
|
4452 |
< |
LIBS=$ac_save_LIBS |
4453 |
< |
ac_ext=f90 |
4454 |
< |
ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5' |
4455 |
< |
ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
4456 |
< |
ac_compiler_gnu=$ac_cv_f90_compiler_gnu |
4457 |
< |
rm -f cf90_test* conftest* |
4458 |
< |
else |
4459 |
< |
echo "$as_me: failed program was:" >&5 |
4460 |
< |
cat conftest.$ac_ext >&5 |
5781 |
> |
LIBS=$ac_check_lib_save_LIBS |
5782 |
|
fi |
5783 |
< |
rm -f conftest.$ac_objext conftest.$ac_ext |
5784 |
< |
ac_ext=f90 |
5785 |
< |
ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5' |
5786 |
< |
ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
4466 |
< |
ac_compiler_gnu=$ac_cv_f90_compiler_gnu |
4467 |
< |
|
4468 |
< |
fi |
4469 |
< |
echo "$as_me:4469: result: $ac_cv_f90_mangling" >&5 |
4470 |
< |
echo "${ECHO_T}$ac_cv_f90_mangling" >&6 |
4471 |
< |
|
4472 |
< |
case $ac_cv_f90_mangling in |
4473 |
< |
"lower case, no underscore, no extra underscore") |
4474 |
< |
cat >>confdefs.h <<\EOF |
4475 |
< |
#define F90_FUNC(name,NAME) name |
4476 |
< |
EOF |
4477 |
< |
|
4478 |
< |
cat >>confdefs.h <<\EOF |
4479 |
< |
#define F90_FUNC_(name,NAME) name |
4480 |
< |
EOF |
4481 |
< |
;; |
4482 |
< |
"lower case, no underscore, extra underscore") |
4483 |
< |
cat >>confdefs.h <<\EOF |
4484 |
< |
#define F90_FUNC(name,NAME) name |
4485 |
< |
EOF |
4486 |
< |
|
4487 |
< |
cat >>confdefs.h <<\EOF |
4488 |
< |
#define F90_FUNC_(name,NAME) name ## _ |
4489 |
< |
EOF |
4490 |
< |
;; |
4491 |
< |
"lower case, underscore, no extra underscore") |
4492 |
< |
cat >>confdefs.h <<\EOF |
4493 |
< |
#define F90_FUNC(name,NAME) name ## _ |
4494 |
< |
EOF |
4495 |
< |
|
4496 |
< |
cat >>confdefs.h <<\EOF |
4497 |
< |
#define F90_FUNC_(name,NAME) name ## _ |
4498 |
< |
EOF |
4499 |
< |
;; |
4500 |
< |
"lower case, underscore, extra underscore") |
4501 |
< |
cat >>confdefs.h <<\EOF |
4502 |
< |
#define F90_FUNC(name,NAME) name ## _ |
4503 |
< |
EOF |
4504 |
< |
|
4505 |
< |
cat >>confdefs.h <<\EOF |
4506 |
< |
#define F90_FUNC_(name,NAME) name ## __ |
4507 |
< |
EOF |
4508 |
< |
;; |
4509 |
< |
"upper case, no underscore, no extra underscore") |
4510 |
< |
cat >>confdefs.h <<\EOF |
4511 |
< |
#define F90_FUNC(name,NAME) NAME |
4512 |
< |
EOF |
4513 |
< |
|
4514 |
< |
cat >>confdefs.h <<\EOF |
4515 |
< |
#define F90_FUNC_(name,NAME) NAME |
4516 |
< |
EOF |
4517 |
< |
;; |
4518 |
< |
"upper case, no underscore, extra underscore") |
4519 |
< |
cat >>confdefs.h <<\EOF |
4520 |
< |
#define F90_FUNC(name,NAME) NAME |
4521 |
< |
EOF |
4522 |
< |
|
4523 |
< |
cat >>confdefs.h <<\EOF |
4524 |
< |
#define F90_FUNC_(name,NAME) NAME ## _ |
4525 |
< |
EOF |
4526 |
< |
;; |
4527 |
< |
"upper case, underscore, no extra underscore") |
4528 |
< |
cat >>confdefs.h <<\EOF |
4529 |
< |
#define F90_FUNC(name,NAME) NAME ## _ |
4530 |
< |
EOF |
4531 |
< |
|
4532 |
< |
cat >>confdefs.h <<\EOF |
4533 |
< |
#define F90_FUNC_(name,NAME) NAME ## _ |
4534 |
< |
EOF |
4535 |
< |
;; |
4536 |
< |
"upper case, underscore, extra underscore") |
4537 |
< |
cat >>confdefs.h <<\EOF |
4538 |
< |
#define F90_FUNC(name,NAME) NAME ## _ |
4539 |
< |
EOF |
4540 |
< |
|
4541 |
< |
cat >>confdefs.h <<\EOF |
4542 |
< |
#define F90_FUNC_(name,NAME) NAME ## __ |
4543 |
< |
EOF |
4544 |
< |
;; |
4545 |
< |
*) |
4546 |
< |
{ echo "$as_me:4546: WARNING: unknown Fortran 90 name-mangling scheme" >&5 |
4547 |
< |
echo "$as_me: WARNING: unknown Fortran 90 name-mangling scheme" >&2;} |
4548 |
< |
;; |
4549 |
< |
esac |
4550 |
< |
|
4551 |
< |
echo "$as_me:4551: checking for module suffix" >&5 |
4552 |
< |
echo $ECHO_N "checking for module suffix... $ECHO_C" >&6 |
4553 |
< |
rm -f conftest* |
4554 |
< |
# Intel ifc compiler generates files by the name of work.pc and work.pcl (!) |
4555 |
< |
rm -f work* |
4556 |
< |
cat >conftest.f <<EOF |
4557 |
< |
module conftest |
4558 |
< |
integer n |
4559 |
< |
parameter (n=1) |
4560 |
< |
end module conftest |
4561 |
< |
EOF |
4562 |
< |
# SGI and absoft compilers generates module name in upper case! |
4563 |
< |
testname="conftest" |
4564 |
< |
modcase="lower" |
4565 |
< |
if $F90 -c conftest.f > conftest.out 2>&1 ; then |
4566 |
< |
MOD=`ls conftest* | grep -v conftest.f | grep -v conftest.o` |
4567 |
< |
MOD=`echo "$MOD" | sed -e 's/conftest\.//g'` |
4568 |
< |
if test -z "$MOD" ; then |
4569 |
< |
MOD=`ls CONFTEST* 2>/dev/null \ |
4570 |
< |
| grep -v CONFTEST.f | grep -v CONFTEST.o` |
4571 |
< |
MOD=`echo "$MOD" | sed -e 's/CONFTEST\.//g'` |
4572 |
< |
if test -n "$MOD" ; then |
4573 |
< |
testname="CONFTEST" |
4574 |
< |
modcase="upper" |
4575 |
< |
fi |
4576 |
< |
fi |
4577 |
< |
if test -z "$MOD" ; then |
4578 |
< |
echo "$as_me:4578: result: unknown" >&5 |
4579 |
< |
echo "${ECHO_T}unknown" >&6 |
4580 |
< |
# Use mod if we can't figure it out |
4581 |
< |
MOD="mod" |
4582 |
< |
else |
4583 |
< |
echo "$as_me:4583: result: $MOD" >&5 |
4584 |
< |
echo "${ECHO_T}$MOD" >&6 |
4585 |
< |
fi |
4586 |
< |
if test -s work.pcl ; then |
4587 |
< |
{ echo "$as_me:4587: WARNING: Compiler generates auxillery files!" >&5 |
4588 |
< |
echo "$as_me: WARNING: Compiler generates auxillery files!" >&2;} |
4589 |
< |
fi |
4590 |
< |
else |
4591 |
< |
echo "$as_me:4591: result: unknown" >&5 |
4592 |
< |
echo "${ECHO_T}unknown" >&6 |
5783 |
> |
echo "$as_me:$LINENO: result: $ac_cv_lib_mpich_MPI_Init" >&5 |
5784 |
> |
echo "${ECHO_T}$ac_cv_lib_mpich_MPI_Init" >&6 |
5785 |
> |
if test $ac_cv_lib_mpich_MPI_Init = yes; then |
5786 |
> |
MPI_LIB="-lmpich" |
5787 |
|
fi |
5788 |
|
|
4595 |
– |
# Check for module include path (some use -I, some (Solaris) use -M, some |
4596 |
– |
# (absoft) use -p). |
4597 |
– |
# Intel compilers use a wierd system: -cl,filename.pcl . If no file is |
4598 |
– |
# specified, work.pcl and work.pc are created. However, if you specify |
4599 |
– |
# a file, it must contain a the name of a file ending in .pc . Ugh! |
4600 |
– |
# Use the module made above |
4601 |
– |
echo "$as_me:4601: checking for module directory path flag" >&5 |
4602 |
– |
echo $ECHO_N "checking for module directory path flag... $ECHO_C" >&6 |
4603 |
– |
madedir=0 |
4604 |
– |
if test ! -d conf ; then mkdir conf ; madedir=1; fi |
4605 |
– |
cp $testname.$MOD conf |
4606 |
– |
rm -f conftest* CONFTEST* |
4607 |
– |
cat >conftest1.f <<EOF |
4608 |
– |
program main |
4609 |
– |
use conftest |
4610 |
– |
print *, n |
4611 |
– |
end |
4612 |
– |
EOF |
4613 |
– |
F90_WORK_FILES_ARG="" |
4614 |
– |
F90MODINCSPEC="" |
4615 |
– |
if $F90 -c -Iconf conftest1.f > conftest.out 2>&1 ; then |
4616 |
– |
MODDIRFLAG="-I" |
4617 |
– |
F90MODINCSPEC="-I<dir>" |
4618 |
– |
echo "$as_me:4618: result: -I" >&5 |
4619 |
– |
echo "${ECHO_T}-I" >&6 |
4620 |
– |
elif $F90 -c -Mconf conftest1.f >> conftest.out 2>&1 ; then |
4621 |
– |
MODDIRFLAG="-M" |
4622 |
– |
F90MODINCSPEC="-M<dir>" |
4623 |
– |
echo "$as_me:4623: result: -M" >&5 |
4624 |
– |
echo "${ECHO_T}-M" >&6 |
4625 |
– |
elif $F90 -c -pconf conftest1.f >> conftest.out 2>&1 ; then |
4626 |
– |
MODDIRFLAG="-p" |
4627 |
– |
F90MODINCSPEC="-p<dir>" |
4628 |
– |
echo "$as_me:4628: result: -p" >&5 |
4629 |
– |
echo "${ECHO_T}-p" >&6 |
4630 |
– |
elif test -s work.pc ; then |
4631 |
– |
cp work.pc conf/mpimod.pc |
4632 |
– |
echo "mpimod.pc" > conf/mpimod.pcl |
4633 |
– |
echo "`pwd`/conf/mpimod.pc" >> conf/mpimod.pcl |
4634 |
– |
if $F90 -c -cl,conf/mpimod.pcl conftest1.f >>conftest.out 2>&1 ; then |
4635 |
– |
MODDIRFLAG='-cl,mpimod.pcl' |
4636 |
– |
echo "$as_me:4636: result: -cl,filename where filename contains a list of files and |
4637 |
– |
directories" >&5 |
4638 |
– |
echo "${ECHO_T}-cl,filename where filename contains a list of files and |
4639 |
– |
directories" >&6 |
4640 |
– |
F90_WORK_FILES_ARG="-cl,mpimod.pcl" |
4641 |
– |
F90MODINCSPEC="-cl,<dir>/<file>mod.pcl" |
4642 |
– |
|
4643 |
– |
else |
4644 |
– |
# The version of the Intel compiler that I have refuses to let |
4645 |
– |
# you put the "work catalog" list anywhere but the current directory. |
4646 |
– |
# For example, you cannot in |
4647 |
– |
: |
4648 |
– |
fi |
5789 |
|
fi |
5790 |
< |
if test -z "MODDIRFLAG" ; then |
5791 |
< |
echo "$as_me:4651: result: unknown" >&5 |
5792 |
< |
echo "${ECHO_T}unknown" >&6 |
4653 |
< |
fi |
4654 |
< |
|
4655 |
< |
rm -f conftest* conf/conftest* conf/CONFTEST* CONFTEST* conf/mpimod* |
4656 |
< |
if test $madedir = 1 ; then rmdir conf ; fi |
4657 |
< |
|
4658 |
< |
echo "$as_me:4658: checking for mpi-directory" >&5 |
4659 |
< |
echo $ECHO_N "checking for mpi-directory... $ECHO_C" >&6 |
4660 |
< |
|
4661 |
< |
# Check whether --with-mpi_dir or --without-mpi_dir was given. |
4662 |
< |
if test "${with_mpi_dir+set}" = set; then |
4663 |
< |
withval="$with_mpi_dir" |
4664 |
< |
MPI_DIR="$withval" |
4665 |
< |
else |
4666 |
< |
MPI_DIR="/usr/local" |
4667 |
< |
fi; |
4668 |
< |
echo "$as_me:4668: result: $MPI_DIR" >&5 |
4669 |
< |
echo "${ECHO_T}$MPI_DIR" >&6 |
4670 |
< |
|
4671 |
< |
echo "$as_me:4671: checking for mpi-lib-directory" >&5 |
4672 |
< |
echo $ECHO_N "checking for mpi-lib-directory... $ECHO_C" >&6 |
4673 |
< |
|
4674 |
< |
# Check whether --with-mpi_libdir or --without-mpi_libdir was given. |
4675 |
< |
if test "${with_mpi_libdir+set}" = set; then |
4676 |
< |
withval="$with_mpi_libdir" |
4677 |
< |
MPI_LIBDIR="$withval" |
4678 |
< |
else |
4679 |
< |
MPI_LIBDIR="$MPI_DIR/lib" |
4680 |
< |
fi; |
4681 |
< |
echo "$as_me:4681: result: $MPI_LIBDIR" >&5 |
4682 |
< |
echo "${ECHO_T}$MPI_LIBDIR" >&6 |
4683 |
< |
|
4684 |
< |
echo "$as_me:4684: checking for mpi-inc-directory" >&5 |
4685 |
< |
echo $ECHO_N "checking for mpi-inc-directory... $ECHO_C" >&6 |
4686 |
< |
|
4687 |
< |
# Check whether --with-mpi_inc or --without-mpi_inc was given. |
4688 |
< |
if test "${with_mpi_inc+set}" = set; then |
4689 |
< |
withval="$with_mpi_inc" |
4690 |
< |
MPI_INC="$withval" |
4691 |
< |
else |
4692 |
< |
MPI_INC="$MPI_DIR/include" |
4693 |
< |
fi; |
4694 |
< |
echo "$as_me:4694: result: $MPI_INC" >&5 |
4695 |
< |
echo "${ECHO_T}$MPI_INC" >&6 |
4696 |
< |
|
4697 |
< |
echo "$as_me:4697: checking for MPI library" >&5 |
4698 |
< |
echo $ECHO_N "checking for MPI library... $ECHO_C" >&6 |
4699 |
< |
MPI_LIB="" |
4700 |
< |
case "$host" in |
4701 |
< |
*-ibm-aix*) |
4702 |
< |
echo "$as_me:4702: checking whether to use signal-based MPI library" >&5 |
4703 |
< |
echo $ECHO_N "checking whether to use signal-based MPI library... $ECHO_C" >&6 |
4704 |
< |
echo "$as_me:4704: result: $PACX_SIGNAL" >&5 |
4705 |
< |
echo "${ECHO_T}$PACX_SIGNAL" >&6 |
4706 |
< |
if test "x$PACX_SIGNAL" = "xyes" ; then |
4707 |
< |
if test -f "$MPI_LIBDIR/libmpi.a" ; then |
4708 |
< |
MPI_LIB="-lmpi" |
4709 |
< |
elif test -f "$MPI_LIBDIR/libmpi.so" ; then |
4710 |
< |
MPI_LIB="-lmpi" |
4711 |
< |
elif test -f "$MPI_LIBDIR/libmpich.a" ; then |
4712 |
< |
MPI_LIB="-lmpich" |
4713 |
< |
else |
4714 |
< |
{ { echo "$as_me:4714: error: neither libmpi nor libmpich found; check path for MPI package first..." >&5 |
4715 |
< |
echo "$as_me: error: neither libmpi nor libmpich found; check path for MPI package first..." >&2;} |
4716 |
< |
{ (exit 1); exit 1; }; } |
4717 |
< |
fi |
4718 |
< |
else |
4719 |
< |
if test -f "$MPI_LIBDIR/libmpi_r.a" ; then |
4720 |
< |
MPI_LIB="-lmpi_r" |
4721 |
< |
else |
4722 |
< |
{ { echo "$as_me:4722: error: libmpi_r not found; check path for MPI package..." >&5 |
4723 |
< |
echo "$as_me: error: libmpi_r not found; check path for MPI package..." >&2;} |
4724 |
< |
{ (exit 1); exit 1; }; } |
4725 |
< |
fi |
4726 |
< |
fi |
4727 |
< |
echo "$as_me:4727: result: found $MPI_LIB" >&5 |
4728 |
< |
echo "${ECHO_T}found $MPI_LIB" >&6 |
4729 |
< |
;; |
4730 |
< |
*) if test -f "$MPI_LIBDIR/libmpi.a" ; then |
4731 |
< |
MPI_LIB="-lmpi" |
4732 |
< |
elif test -f "$MPI_LIBDIR/libmpi.so" ; then |
4733 |
< |
MPI_LIB="-lmpi" |
4734 |
< |
elif test -f "$MPI_LIBDIR/libmpich.a" ; then |
4735 |
< |
MPI_LIB="-lmpich" |
4736 |
< |
else |
4737 |
< |
{ { echo "$as_me:4737: error: neither libmpi nor libmpich found; check path for MPI package first..." >&5 |
4738 |
< |
echo "$as_me: error: neither libmpi nor libmpich found; check path for MPI package first..." >&2;} |
4739 |
< |
{ (exit 1); exit 1; }; } |
4740 |
< |
fi |
4741 |
< |
echo "$as_me:4741: result: found $MPI_LIB" >&5 |
4742 |
< |
echo "${ECHO_T}found $MPI_LIB" >&6 |
4743 |
< |
;; |
4744 |
< |
esac |
4745 |
< |
|
4746 |
< |
for ac_prog in mpif90 hf90 mpxlf90 mpf90 mpxlf95 mpxlf_r |
4747 |
< |
do |
4748 |
< |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
4749 |
< |
set dummy $ac_prog; ac_word=$2 |
4750 |
< |
echo "$as_me:4750: checking for $ac_word" >&5 |
4751 |
< |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
4752 |
< |
if test "${ac_cv_prog_MPIF90+set}" = set; then |
4753 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
4754 |
< |
else |
4755 |
< |
if test -n "$MPIF90"; then |
4756 |
< |
ac_cv_prog_MPIF90="$MPIF90" # Let the user override the test. |
4757 |
< |
else |
4758 |
< |
ac_save_IFS=$IFS; IFS=$ac_path_separator |
4759 |
< |
ac_dummy="$PATH" |
4760 |
< |
for ac_dir in $ac_dummy; do |
4761 |
< |
IFS=$ac_save_IFS |
4762 |
< |
test -z "$ac_dir" && ac_dir=. |
4763 |
< |
$as_executable_p "$ac_dir/$ac_word" || continue |
4764 |
< |
ac_cv_prog_MPIF90="$ac_prog" |
4765 |
< |
echo "$as_me:4765: found $ac_dir/$ac_word" >&5 |
4766 |
< |
break |
4767 |
< |
done |
4768 |
< |
|
4769 |
< |
fi |
4770 |
< |
fi |
4771 |
< |
MPIF90=$ac_cv_prog_MPIF90 |
4772 |
< |
if test -n "$MPIF90"; then |
4773 |
< |
echo "$as_me:4773: result: $MPIF90" >&5 |
4774 |
< |
echo "${ECHO_T}$MPIF90" >&6 |
4775 |
< |
else |
4776 |
< |
echo "$as_me:4776: result: no" >&5 |
4777 |
< |
echo "${ECHO_T}no" >&6 |
4778 |
< |
fi |
4779 |
< |
|
4780 |
< |
test -n "$MPIF90" && break |
4781 |
< |
done |
4782 |
< |
test -n "$MPIF90" || MPIF90="$F90" |
4783 |
< |
|
4784 |
< |
acx_mpi_save_F90="$F90" |
4785 |
< |
F90="$MPIF90" |
4786 |
< |
|
4787 |
< |
if test x = x"$MPILIBS"; then |
4788 |
< |
echo "$as_me:4788: checking for MPI_Init" >&5 |
4789 |
< |
echo $ECHO_N "checking for MPI_Init... $ECHO_C" >&6 |
4790 |
< |
cat >conftest.$ac_ext <<_ACEOF |
4791 |
< |
|
4792 |
< |
program main |
4793 |
< |
|
4794 |
< |
call MPI_Init |
4795 |
< |
end program main |
4796 |
< |
|
4797 |
< |
_ACEOF |
4798 |
< |
rm -f conftest.$ac_objext conftest$ac_exeext |
4799 |
< |
if { (eval echo "$as_me:4799: \"$ac_link\"") >&5 |
4800 |
< |
(eval $ac_link) 2>&5 |
4801 |
< |
ac_status=$? |
4802 |
< |
echo "$as_me:4802: \$? = $ac_status" >&5 |
4803 |
< |
(exit $ac_status); } && |
4804 |
< |
{ ac_try='test -s conftest$ac_exeext' |
4805 |
< |
{ (eval echo "$as_me:4805: \"$ac_try\"") >&5 |
4806 |
< |
(eval $ac_try) 2>&5 |
4807 |
< |
ac_status=$? |
4808 |
< |
echo "$as_me:4808: \$? = $ac_status" >&5 |
4809 |
< |
(exit $ac_status); }; }; then |
4810 |
< |
MPILIBS=" " |
4811 |
< |
echo "$as_me:4811: result: yes" >&5 |
4812 |
< |
echo "${ECHO_T}yes" >&6 |
4813 |
< |
else |
4814 |
< |
echo "$as_me: failed program was:" >&5 |
4815 |
< |
cat conftest.$ac_ext >&5 |
4816 |
< |
echo "$as_me:4816: result: no" >&5 |
4817 |
< |
echo "${ECHO_T}no" >&6 |
4818 |
< |
fi |
4819 |
< |
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
4820 |
< |
fi |
4821 |
< |
if test x = x"$MPILIBS"; then |
4822 |
< |
echo "$as_me:4822: checking for MPI_Init in -lmpi" >&5 |
5790 |
> |
$as_unset ac_cv_lib_mpi_MPI_Init |
5791 |
> |
if test x = x"$MPI_LIB"; then |
5792 |
> |
echo "$as_me:$LINENO: checking for MPI_Init in -lmpi" >&5 |
5793 |
|
echo $ECHO_N "checking for MPI_Init in -lmpi... $ECHO_C" >&6 |
5794 |
|
if test "${ac_cv_lib_mpi_MPI_Init+set}" = set; then |
5795 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
5796 |
|
else |
5797 |
|
ac_check_lib_save_LIBS=$LIBS |
5798 |
< |
LIBS="-lmpi $LIBS" |
5798 |
> |
LIBS="-lmpi "-llam" $LIBS" |
5799 |
|
cat >conftest.$ac_ext <<_ACEOF |
5800 |
+ |
#line $LINENO "configure" |
5801 |
+ |
/* confdefs.h. */ |
5802 |
+ |
_ACEOF |
5803 |
+ |
cat confdefs.h >>conftest.$ac_ext |
5804 |
+ |
cat >>conftest.$ac_ext <<_ACEOF |
5805 |
+ |
/* end confdefs.h. */ |
5806 |
|
|
5807 |
< |
program main |
5808 |
< |
|
5809 |
< |
call MPI_Init |
5810 |
< |
end program main |
5811 |
< |
|
5807 |
> |
/* Override any gcc2 internal prototype to avoid an error. */ |
5808 |
> |
#ifdef __cplusplus |
5809 |
> |
extern "C" |
5810 |
> |
#endif |
5811 |
> |
/* We use char because int might match the return type of a gcc2 |
5812 |
> |
builtin and then its argument prototype would still apply. */ |
5813 |
> |
char MPI_Init (); |
5814 |
> |
int |
5815 |
> |
main () |
5816 |
> |
{ |
5817 |
> |
MPI_Init (); |
5818 |
> |
; |
5819 |
> |
return 0; |
5820 |
> |
} |
5821 |
|
_ACEOF |
5822 |
|
rm -f conftest.$ac_objext conftest$ac_exeext |
5823 |
< |
if { (eval echo "$as_me:4838: \"$ac_link\"") >&5 |
5823 |
> |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
5824 |
|
(eval $ac_link) 2>&5 |
5825 |
|
ac_status=$? |
5826 |
< |
echo "$as_me:4841: \$? = $ac_status" >&5 |
5826 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5827 |
|
(exit $ac_status); } && |
5828 |
|
{ ac_try='test -s conftest$ac_exeext' |
5829 |
< |
{ (eval echo "$as_me:4844: \"$ac_try\"") >&5 |
5829 |
> |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5830 |
|
(eval $ac_try) 2>&5 |
5831 |
|
ac_status=$? |
5832 |
< |
echo "$as_me:4847: \$? = $ac_status" >&5 |
5832 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5833 |
|
(exit $ac_status); }; }; then |
5834 |
|
ac_cv_lib_mpi_MPI_Init=yes |
5835 |
|
else |
5836 |
|
echo "$as_me: failed program was:" >&5 |
5837 |
< |
cat conftest.$ac_ext >&5 |
5837 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
5838 |
> |
|
5839 |
|
ac_cv_lib_mpi_MPI_Init=no |
5840 |
|
fi |
5841 |
|
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
5842 |
|
LIBS=$ac_check_lib_save_LIBS |
5843 |
|
fi |
5844 |
< |
echo "$as_me:4858: result: $ac_cv_lib_mpi_MPI_Init" >&5 |
5844 |
> |
echo "$as_me:$LINENO: result: $ac_cv_lib_mpi_MPI_Init" >&5 |
5845 |
|
echo "${ECHO_T}$ac_cv_lib_mpi_MPI_Init" >&6 |
5846 |
|
if test $ac_cv_lib_mpi_MPI_Init = yes; then |
5847 |
< |
MPILIBS="-lmpi" |
5847 |
> |
MPI_LIB="-lmpi -llam" |
5848 |
|
fi |
5849 |
|
|
5850 |
|
fi |
5851 |
< |
if test x = x"$MPILIBS"; then |
5852 |
< |
echo "$as_me:4866: checking for MPI_Init in -lmpich" >&5 |
5853 |
< |
echo $ECHO_N "checking for MPI_Init in -lmpich... $ECHO_C" >&6 |
5854 |
< |
if test "${ac_cv_lib_mpich_MPI_Init+set}" = set; then |
5851 |
> |
|
5852 |
> |
$as_unset ac_cv_lib_mpi_MPI_Init |
5853 |
> |
if test x = x"$MPI_LIB"; then |
5854 |
> |
echo "$as_me:$LINENO: checking for MPI_Init in -lmpi" >&5 |
5855 |
> |
echo $ECHO_N "checking for MPI_Init in -lmpi... $ECHO_C" >&6 |
5856 |
> |
if test "${ac_cv_lib_mpi_MPI_Init+set}" = set; then |
5857 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
5858 |
|
else |
5859 |
|
ac_check_lib_save_LIBS=$LIBS |
5860 |
< |
LIBS="-lmpich $LIBS" |
5860 |
> |
LIBS="-lmpi -llam -lpthread $LIBS" |
5861 |
|
cat >conftest.$ac_ext <<_ACEOF |
5862 |
+ |
#line $LINENO "configure" |
5863 |
+ |
/* confdefs.h. */ |
5864 |
+ |
_ACEOF |
5865 |
+ |
cat confdefs.h >>conftest.$ac_ext |
5866 |
+ |
cat >>conftest.$ac_ext <<_ACEOF |
5867 |
+ |
/* end confdefs.h. */ |
5868 |
|
|
5869 |
< |
program main |
5870 |
< |
|
5871 |
< |
call MPI_Init |
5872 |
< |
end program main |
5873 |
< |
|
5869 |
> |
/* Override any gcc2 internal prototype to avoid an error. */ |
5870 |
> |
#ifdef __cplusplus |
5871 |
> |
extern "C" |
5872 |
> |
#endif |
5873 |
> |
/* We use char because int might match the return type of a gcc2 |
5874 |
> |
builtin and then its argument prototype would still apply. */ |
5875 |
> |
char MPI_Init (); |
5876 |
> |
int |
5877 |
> |
main () |
5878 |
> |
{ |
5879 |
> |
MPI_Init (); |
5880 |
> |
; |
5881 |
> |
return 0; |
5882 |
> |
} |
5883 |
|
_ACEOF |
5884 |
|
rm -f conftest.$ac_objext conftest$ac_exeext |
5885 |
< |
if { (eval echo "$as_me:4882: \"$ac_link\"") >&5 |
5885 |
> |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
5886 |
|
(eval $ac_link) 2>&5 |
5887 |
|
ac_status=$? |
5888 |
< |
echo "$as_me:4885: \$? = $ac_status" >&5 |
5888 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5889 |
|
(exit $ac_status); } && |
5890 |
|
{ ac_try='test -s conftest$ac_exeext' |
5891 |
< |
{ (eval echo "$as_me:4888: \"$ac_try\"") >&5 |
5891 |
> |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5892 |
|
(eval $ac_try) 2>&5 |
5893 |
|
ac_status=$? |
5894 |
< |
echo "$as_me:4891: \$? = $ac_status" >&5 |
5894 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5895 |
|
(exit $ac_status); }; }; then |
5896 |
< |
ac_cv_lib_mpich_MPI_Init=yes |
5896 |
> |
ac_cv_lib_mpi_MPI_Init=yes |
5897 |
|
else |
5898 |
|
echo "$as_me: failed program was:" >&5 |
5899 |
< |
cat conftest.$ac_ext >&5 |
5900 |
< |
ac_cv_lib_mpich_MPI_Init=no |
5899 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
5900 |
> |
|
5901 |
> |
ac_cv_lib_mpi_MPI_Init=no |
5902 |
|
fi |
5903 |
|
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
5904 |
|
LIBS=$ac_check_lib_save_LIBS |
5905 |
|
fi |
5906 |
< |
echo "$as_me:4902: result: $ac_cv_lib_mpich_MPI_Init" >&5 |
5907 |
< |
echo "${ECHO_T}$ac_cv_lib_mpich_MPI_Init" >&6 |
5908 |
< |
if test $ac_cv_lib_mpich_MPI_Init = yes; then |
5909 |
< |
MPILIBS="-lmpich" |
5906 |
> |
echo "$as_me:$LINENO: result: $ac_cv_lib_mpi_MPI_Init" >&5 |
5907 |
> |
echo "${ECHO_T}$ac_cv_lib_mpi_MPI_Init" >&6 |
5908 |
> |
if test $ac_cv_lib_mpi_MPI_Init = yes; then |
5909 |
> |
MPI_LIB="-lmpi -llam -lpthread" |
5910 |
> |
else |
5911 |
> |
|
5912 |
> |
{ { echo "$as_me:$LINENO: error: Didn't find liblam, libmpi, or libmpich; check path for MPI package first..." >&5 |
5913 |
> |
echo "$as_me: error: Didn't find liblam, libmpi, or libmpich; check path for MPI package first..." >&2;} |
5914 |
> |
{ (exit 1); exit 1; }; } |
5915 |
> |
USE_MPI="no" |
5916 |
> |
|
5917 |
|
fi |
5918 |
|
|
5919 |
|
fi |
5920 |
|
|
4910 |
– |
F90="$acx_mpi_save_F90" |
5921 |
|
|
4912 |
– |
# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: |
4913 |
– |
if test x = x"$MPILIBS"; then |
5922 |
|
|
5923 |
< |
: |
5923 |
> |
echo "$as_me:$LINENO: checking for MPI Fortran library" >&5 |
5924 |
> |
echo $ECHO_N "checking for MPI Fortran library... $ECHO_C" >&6 |
5925 |
> |
MPI_F90_LIB="" |
5926 |
> |
if test -f "$MPI_LIB_DIR/libfmpich.a" ; then |
5927 |
> |
MPI_F90_LIB="-lfmpich" |
5928 |
> |
elif test -f "$MPI_LIB_DIR/liblamf77mpi.a" ; then |
5929 |
> |
MPI_F90_LIB="-llamf77mpi" |
5930 |
|
else |
5931 |
+ |
MPI_F90_LIB=" " |
5932 |
+ |
fi |
5933 |
+ |
echo "$as_me:$LINENO: result: found $MPI_F90_LIB" >&5 |
5934 |
+ |
echo "${ECHO_T}found $MPI_F90_LIB" >&6 |
5935 |
|
|
4918 |
– |
cat >>confdefs.h <<\EOF |
4919 |
– |
#define HAVE_MPI 1 |
4920 |
– |
EOF |
5936 |
|
|
4922 |
– |
: |
5937 |
|
fi |
5938 |
|
|
5939 |
+ |
|
5940 |
+ |
|
5941 |
|
ac_ext=c |
5942 |
|
ac_cpp='$CPP $CPPFLAGS' |
5943 |
|
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
5944 |
|
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
5945 |
|
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
5946 |
< |
echo "$as_me:4930: checking how to run the C preprocessor" >&5 |
5946 |
> |
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
5947 |
|
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 |
5948 |
|
# On Suns, sometimes $CPP names a directory. |
5949 |
|
if test -n "$CPP" && test -d "$CPP"; then |
5956 |
|
# Double quotes because CPP needs to be expanded |
5957 |
|
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
5958 |
|
do |
4943 |
– |
# break 2 since there is a loop in there. |
5959 |
|
ac_preproc_ok=false |
5960 |
|
for ac_c_preproc_warn_flag in '' yes |
5961 |
|
do |
5962 |
|
# Use a header file that comes with gcc, so configuring glibc |
5963 |
|
# with a fresh cross-compiler works. |
5964 |
+ |
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
5965 |
+ |
# <limits.h> exists even on freestanding compilers. |
5966 |
|
# On the NeXT, cc -E runs the code through the compiler's parser, |
5967 |
|
# not just through cpp. "Syntax error" is here to catch this case. |
5968 |
|
cat >conftest.$ac_ext <<_ACEOF |
5969 |
< |
#line 4952 "configure" |
5970 |
< |
#include "confdefs.h" |
5971 |
< |
#include <assert.h> |
5969 |
> |
#line $LINENO "configure" |
5970 |
> |
/* confdefs.h. */ |
5971 |
> |
_ACEOF |
5972 |
> |
cat confdefs.h >>conftest.$ac_ext |
5973 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
5974 |
> |
/* end confdefs.h. */ |
5975 |
> |
#ifdef __STDC__ |
5976 |
> |
# include <limits.h> |
5977 |
> |
#else |
5978 |
> |
# include <assert.h> |
5979 |
> |
#endif |
5980 |
|
Syntax error |
5981 |
|
_ACEOF |
5982 |
< |
if { (eval echo "$as_me:4957: \"$ac_cpp conftest.$ac_ext\"") >&5 |
5982 |
> |
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
5983 |
|
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
5984 |
|
ac_status=$? |
5985 |
< |
egrep -v '^ *\+' conftest.er1 >conftest.err |
5985 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
5986 |
|
rm -f conftest.er1 |
5987 |
|
cat conftest.err >&5 |
5988 |
< |
echo "$as_me:4963: \$? = $ac_status" >&5 |
5988 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5989 |
|
(exit $ac_status); } >/dev/null; then |
5990 |
|
if test -s conftest.err; then |
5991 |
|
ac_cpp_err=$ac_c_preproc_warn_flag |
5999 |
|
: |
6000 |
|
else |
6001 |
|
echo "$as_me: failed program was:" >&5 |
6002 |
< |
cat conftest.$ac_ext >&5 |
6002 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
6003 |
> |
|
6004 |
|
# Broken: fails on valid input. |
6005 |
|
continue |
6006 |
|
fi |
6009 |
|
# OK, works on sane cases. Now check whether non-existent headers |
6010 |
|
# can be detected and how. |
6011 |
|
cat >conftest.$ac_ext <<_ACEOF |
6012 |
< |
#line 4986 "configure" |
6013 |
< |
#include "confdefs.h" |
6012 |
> |
#line $LINENO "configure" |
6013 |
> |
/* confdefs.h. */ |
6014 |
> |
_ACEOF |
6015 |
> |
cat confdefs.h >>conftest.$ac_ext |
6016 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
6017 |
> |
/* end confdefs.h. */ |
6018 |
|
#include <ac_nonexistent.h> |
6019 |
|
_ACEOF |
6020 |
< |
if { (eval echo "$as_me:4990: \"$ac_cpp conftest.$ac_ext\"") >&5 |
6020 |
> |
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
6021 |
|
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
6022 |
|
ac_status=$? |
6023 |
< |
egrep -v '^ *\+' conftest.er1 >conftest.err |
6023 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
6024 |
|
rm -f conftest.er1 |
6025 |
|
cat conftest.err >&5 |
6026 |
< |
echo "$as_me:4996: \$? = $ac_status" >&5 |
6026 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6027 |
|
(exit $ac_status); } >/dev/null; then |
6028 |
|
if test -s conftest.err; then |
6029 |
|
ac_cpp_err=$ac_c_preproc_warn_flag |
6038 |
|
continue |
6039 |
|
else |
6040 |
|
echo "$as_me: failed program was:" >&5 |
6041 |
< |
cat conftest.$ac_ext >&5 |
6041 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
6042 |
> |
|
6043 |
|
# Passes both tests. |
6044 |
|
ac_preproc_ok=: |
6045 |
|
break |
6050 |
|
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
6051 |
|
rm -f conftest.err conftest.$ac_ext |
6052 |
|
if $ac_preproc_ok; then |
6053 |
< |
break 2 |
6053 |
> |
break |
6054 |
|
fi |
6055 |
|
|
6056 |
|
done |
6061 |
|
else |
6062 |
|
ac_cv_prog_CPP=$CPP |
6063 |
|
fi |
6064 |
< |
echo "$as_me:5033: result: $CPP" >&5 |
6064 |
> |
echo "$as_me:$LINENO: result: $CPP" >&5 |
6065 |
|
echo "${ECHO_T}$CPP" >&6 |
6066 |
|
ac_preproc_ok=false |
6067 |
|
for ac_c_preproc_warn_flag in '' yes |
6068 |
|
do |
6069 |
|
# Use a header file that comes with gcc, so configuring glibc |
6070 |
|
# with a fresh cross-compiler works. |
6071 |
+ |
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
6072 |
+ |
# <limits.h> exists even on freestanding compilers. |
6073 |
|
# On the NeXT, cc -E runs the code through the compiler's parser, |
6074 |
|
# not just through cpp. "Syntax error" is here to catch this case. |
6075 |
|
cat >conftest.$ac_ext <<_ACEOF |
6076 |
< |
#line 5043 "configure" |
6077 |
< |
#include "confdefs.h" |
6078 |
< |
#include <assert.h> |
6076 |
> |
#line $LINENO "configure" |
6077 |
> |
/* confdefs.h. */ |
6078 |
> |
_ACEOF |
6079 |
> |
cat confdefs.h >>conftest.$ac_ext |
6080 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
6081 |
> |
/* end confdefs.h. */ |
6082 |
> |
#ifdef __STDC__ |
6083 |
> |
# include <limits.h> |
6084 |
> |
#else |
6085 |
> |
# include <assert.h> |
6086 |
> |
#endif |
6087 |
|
Syntax error |
6088 |
|
_ACEOF |
6089 |
< |
if { (eval echo "$as_me:5048: \"$ac_cpp conftest.$ac_ext\"") >&5 |
6089 |
> |
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
6090 |
|
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
6091 |
|
ac_status=$? |
6092 |
< |
egrep -v '^ *\+' conftest.er1 >conftest.err |
6092 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
6093 |
|
rm -f conftest.er1 |
6094 |
|
cat conftest.err >&5 |
6095 |
< |
echo "$as_me:5054: \$? = $ac_status" >&5 |
6095 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6096 |
|
(exit $ac_status); } >/dev/null; then |
6097 |
|
if test -s conftest.err; then |
6098 |
|
ac_cpp_err=$ac_c_preproc_warn_flag |
6106 |
|
: |
6107 |
|
else |
6108 |
|
echo "$as_me: failed program was:" >&5 |
6109 |
< |
cat conftest.$ac_ext >&5 |
6109 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
6110 |
> |
|
6111 |
|
# Broken: fails on valid input. |
6112 |
|
continue |
6113 |
|
fi |
6116 |
|
# OK, works on sane cases. Now check whether non-existent headers |
6117 |
|
# can be detected and how. |
6118 |
|
cat >conftest.$ac_ext <<_ACEOF |
6119 |
< |
#line 5077 "configure" |
6120 |
< |
#include "confdefs.h" |
6119 |
> |
#line $LINENO "configure" |
6120 |
> |
/* confdefs.h. */ |
6121 |
> |
_ACEOF |
6122 |
> |
cat confdefs.h >>conftest.$ac_ext |
6123 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
6124 |
> |
/* end confdefs.h. */ |
6125 |
|
#include <ac_nonexistent.h> |
6126 |
|
_ACEOF |
6127 |
< |
if { (eval echo "$as_me:5081: \"$ac_cpp conftest.$ac_ext\"") >&5 |
6127 |
> |
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
6128 |
|
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
6129 |
|
ac_status=$? |
6130 |
< |
egrep -v '^ *\+' conftest.er1 >conftest.err |
6130 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
6131 |
|
rm -f conftest.er1 |
6132 |
|
cat conftest.err >&5 |
6133 |
< |
echo "$as_me:5087: \$? = $ac_status" >&5 |
6133 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6134 |
|
(exit $ac_status); } >/dev/null; then |
6135 |
|
if test -s conftest.err; then |
6136 |
|
ac_cpp_err=$ac_c_preproc_warn_flag |
6145 |
|
continue |
6146 |
|
else |
6147 |
|
echo "$as_me: failed program was:" >&5 |
6148 |
< |
cat conftest.$ac_ext >&5 |
6148 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
6149 |
> |
|
6150 |
|
# Passes both tests. |
6151 |
|
ac_preproc_ok=: |
6152 |
|
break |
6159 |
|
if $ac_preproc_ok; then |
6160 |
|
: |
6161 |
|
else |
6162 |
< |
{ { echo "$as_me:5115: error: C preprocessor \"$CPP\" fails sanity check" >&5 |
6163 |
< |
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;} |
6162 |
> |
{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
6163 |
> |
See \`config.log' for more details." >&5 |
6164 |
> |
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
6165 |
> |
See \`config.log' for more details." >&2;} |
6166 |
|
{ (exit 1); exit 1; }; } |
6167 |
|
fi |
6168 |
|
|
6172 |
|
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
6173 |
|
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
6174 |
|
|
6175 |
+ |
|
6176 |
+ |
echo "$as_me:$LINENO: checking for egrep" >&5 |
6177 |
+ |
echo $ECHO_N "checking for egrep... $ECHO_C" >&6 |
6178 |
+ |
if test "${ac_cv_prog_egrep+set}" = set; then |
6179 |
+ |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
6180 |
+ |
else |
6181 |
+ |
if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
6182 |
+ |
then ac_cv_prog_egrep='grep -E' |
6183 |
+ |
else ac_cv_prog_egrep='egrep' |
6184 |
+ |
fi |
6185 |
+ |
fi |
6186 |
+ |
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
6187 |
+ |
echo "${ECHO_T}$ac_cv_prog_egrep" >&6 |
6188 |
+ |
EGREP=$ac_cv_prog_egrep |
6189 |
+ |
|
6190 |
+ |
|
6191 |
+ |
echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
6192 |
+ |
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
6193 |
+ |
if test "${ac_cv_header_stdc+set}" = set; then |
6194 |
+ |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
6195 |
+ |
else |
6196 |
+ |
cat >conftest.$ac_ext <<_ACEOF |
6197 |
+ |
#line $LINENO "configure" |
6198 |
+ |
/* confdefs.h. */ |
6199 |
+ |
_ACEOF |
6200 |
+ |
cat confdefs.h >>conftest.$ac_ext |
6201 |
+ |
cat >>conftest.$ac_ext <<_ACEOF |
6202 |
+ |
/* end confdefs.h. */ |
6203 |
+ |
#include <stdlib.h> |
6204 |
+ |
#include <stdarg.h> |
6205 |
+ |
#include <string.h> |
6206 |
+ |
#include <float.h> |
6207 |
+ |
|
6208 |
+ |
int |
6209 |
+ |
main () |
6210 |
+ |
{ |
6211 |
+ |
|
6212 |
+ |
; |
6213 |
+ |
return 0; |
6214 |
+ |
} |
6215 |
+ |
_ACEOF |
6216 |
+ |
rm -f conftest.$ac_objext |
6217 |
+ |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
6218 |
+ |
(eval $ac_compile) 2>&5 |
6219 |
+ |
ac_status=$? |
6220 |
+ |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6221 |
+ |
(exit $ac_status); } && |
6222 |
+ |
{ ac_try='test -s conftest.$ac_objext' |
6223 |
+ |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6224 |
+ |
(eval $ac_try) 2>&5 |
6225 |
+ |
ac_status=$? |
6226 |
+ |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6227 |
+ |
(exit $ac_status); }; }; then |
6228 |
+ |
ac_cv_header_stdc=yes |
6229 |
+ |
else |
6230 |
+ |
echo "$as_me: failed program was:" >&5 |
6231 |
+ |
sed 's/^/| /' conftest.$ac_ext >&5 |
6232 |
+ |
|
6233 |
+ |
ac_cv_header_stdc=no |
6234 |
+ |
fi |
6235 |
+ |
rm -f conftest.$ac_objext conftest.$ac_ext |
6236 |
+ |
|
6237 |
+ |
if test $ac_cv_header_stdc = yes; then |
6238 |
+ |
# SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
6239 |
+ |
cat >conftest.$ac_ext <<_ACEOF |
6240 |
+ |
#line $LINENO "configure" |
6241 |
+ |
/* confdefs.h. */ |
6242 |
+ |
_ACEOF |
6243 |
+ |
cat confdefs.h >>conftest.$ac_ext |
6244 |
+ |
cat >>conftest.$ac_ext <<_ACEOF |
6245 |
+ |
/* end confdefs.h. */ |
6246 |
+ |
#include <string.h> |
6247 |
+ |
|
6248 |
+ |
_ACEOF |
6249 |
+ |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
6250 |
+ |
$EGREP "memchr" >/dev/null 2>&1; then |
6251 |
+ |
: |
6252 |
+ |
else |
6253 |
+ |
ac_cv_header_stdc=no |
6254 |
+ |
fi |
6255 |
+ |
rm -f conftest* |
6256 |
+ |
|
6257 |
+ |
fi |
6258 |
+ |
|
6259 |
+ |
if test $ac_cv_header_stdc = yes; then |
6260 |
+ |
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
6261 |
+ |
cat >conftest.$ac_ext <<_ACEOF |
6262 |
+ |
#line $LINENO "configure" |
6263 |
+ |
/* confdefs.h. */ |
6264 |
+ |
_ACEOF |
6265 |
+ |
cat confdefs.h >>conftest.$ac_ext |
6266 |
+ |
cat >>conftest.$ac_ext <<_ACEOF |
6267 |
+ |
/* end confdefs.h. */ |
6268 |
+ |
#include <stdlib.h> |
6269 |
+ |
|
6270 |
+ |
_ACEOF |
6271 |
+ |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
6272 |
+ |
$EGREP "free" >/dev/null 2>&1; then |
6273 |
+ |
: |
6274 |
+ |
else |
6275 |
+ |
ac_cv_header_stdc=no |
6276 |
+ |
fi |
6277 |
+ |
rm -f conftest* |
6278 |
+ |
|
6279 |
+ |
fi |
6280 |
+ |
|
6281 |
+ |
if test $ac_cv_header_stdc = yes; then |
6282 |
+ |
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
6283 |
+ |
if test "$cross_compiling" = yes; then |
6284 |
+ |
: |
6285 |
+ |
else |
6286 |
+ |
cat >conftest.$ac_ext <<_ACEOF |
6287 |
+ |
#line $LINENO "configure" |
6288 |
+ |
/* confdefs.h. */ |
6289 |
+ |
_ACEOF |
6290 |
+ |
cat confdefs.h >>conftest.$ac_ext |
6291 |
+ |
cat >>conftest.$ac_ext <<_ACEOF |
6292 |
+ |
/* end confdefs.h. */ |
6293 |
+ |
#include <ctype.h> |
6294 |
+ |
#if ((' ' & 0x0FF) == 0x020) |
6295 |
+ |
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
6296 |
+ |
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
6297 |
+ |
#else |
6298 |
+ |
# define ISLOWER(c) \ |
6299 |
+ |
(('a' <= (c) && (c) <= 'i') \ |
6300 |
+ |
|| ('j' <= (c) && (c) <= 'r') \ |
6301 |
+ |
|| ('s' <= (c) && (c) <= 'z')) |
6302 |
+ |
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
6303 |
+ |
#endif |
6304 |
+ |
|
6305 |
+ |
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
6306 |
+ |
int |
6307 |
+ |
main () |
6308 |
+ |
{ |
6309 |
+ |
int i; |
6310 |
+ |
for (i = 0; i < 256; i++) |
6311 |
+ |
if (XOR (islower (i), ISLOWER (i)) |
6312 |
+ |
|| toupper (i) != TOUPPER (i)) |
6313 |
+ |
exit(2); |
6314 |
+ |
exit (0); |
6315 |
+ |
} |
6316 |
+ |
_ACEOF |
6317 |
+ |
rm -f conftest$ac_exeext |
6318 |
+ |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
6319 |
+ |
(eval $ac_link) 2>&5 |
6320 |
+ |
ac_status=$? |
6321 |
+ |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6322 |
+ |
(exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
6323 |
+ |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6324 |
+ |
(eval $ac_try) 2>&5 |
6325 |
+ |
ac_status=$? |
6326 |
+ |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6327 |
+ |
(exit $ac_status); }; }; then |
6328 |
+ |
: |
6329 |
+ |
else |
6330 |
+ |
echo "$as_me: program exited with status $ac_status" >&5 |
6331 |
+ |
echo "$as_me: failed program was:" >&5 |
6332 |
+ |
sed 's/^/| /' conftest.$ac_ext >&5 |
6333 |
+ |
|
6334 |
+ |
( exit $ac_status ) |
6335 |
+ |
ac_cv_header_stdc=no |
6336 |
+ |
fi |
6337 |
+ |
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
6338 |
+ |
fi |
6339 |
+ |
fi |
6340 |
+ |
fi |
6341 |
+ |
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
6342 |
+ |
echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
6343 |
+ |
if test $ac_cv_header_stdc = yes; then |
6344 |
+ |
|
6345 |
+ |
cat >>confdefs.h <<\_ACEOF |
6346 |
+ |
#define STDC_HEADERS 1 |
6347 |
+ |
_ACEOF |
6348 |
+ |
|
6349 |
+ |
fi |
6350 |
+ |
|
6351 |
+ |
# On IRIX 5.3, sys/types and inttypes.h are conflicting. |
6352 |
+ |
|
6353 |
+ |
|
6354 |
+ |
|
6355 |
+ |
|
6356 |
+ |
|
6357 |
+ |
|
6358 |
+ |
|
6359 |
+ |
|
6360 |
+ |
|
6361 |
+ |
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
6362 |
+ |
inttypes.h stdint.h unistd.h |
6363 |
+ |
do |
6364 |
+ |
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
6365 |
+ |
echo "$as_me:$LINENO: checking for $ac_header" >&5 |
6366 |
+ |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
6367 |
+ |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
6368 |
+ |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
6369 |
+ |
else |
6370 |
+ |
cat >conftest.$ac_ext <<_ACEOF |
6371 |
+ |
#line $LINENO "configure" |
6372 |
+ |
/* confdefs.h. */ |
6373 |
+ |
_ACEOF |
6374 |
+ |
cat confdefs.h >>conftest.$ac_ext |
6375 |
+ |
cat >>conftest.$ac_ext <<_ACEOF |
6376 |
+ |
/* end confdefs.h. */ |
6377 |
+ |
$ac_includes_default |
6378 |
+ |
|
6379 |
+ |
#include <$ac_header> |
6380 |
+ |
_ACEOF |
6381 |
+ |
rm -f conftest.$ac_objext |
6382 |
+ |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
6383 |
+ |
(eval $ac_compile) 2>&5 |
6384 |
+ |
ac_status=$? |
6385 |
+ |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6386 |
+ |
(exit $ac_status); } && |
6387 |
+ |
{ ac_try='test -s conftest.$ac_objext' |
6388 |
+ |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6389 |
+ |
(eval $ac_try) 2>&5 |
6390 |
+ |
ac_status=$? |
6391 |
+ |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6392 |
+ |
(exit $ac_status); }; }; then |
6393 |
+ |
eval "$as_ac_Header=yes" |
6394 |
+ |
else |
6395 |
+ |
echo "$as_me: failed program was:" >&5 |
6396 |
+ |
sed 's/^/| /' conftest.$ac_ext >&5 |
6397 |
+ |
|
6398 |
+ |
eval "$as_ac_Header=no" |
6399 |
+ |
fi |
6400 |
+ |
rm -f conftest.$ac_objext conftest.$ac_ext |
6401 |
+ |
fi |
6402 |
+ |
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
6403 |
+ |
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
6404 |
+ |
if test `eval echo '${'$as_ac_Header'}'` = yes; then |
6405 |
+ |
cat >>confdefs.h <<_ACEOF |
6406 |
+ |
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
6407 |
+ |
_ACEOF |
6408 |
+ |
|
6409 |
+ |
fi |
6410 |
+ |
|
6411 |
+ |
done |
6412 |
+ |
|
6413 |
+ |
|
6414 |
+ |
|
6415 |
+ |
|
6416 |
+ |
|
6417 |
|
# Check whether --with-sprng_prefix or --without-sprng_prefix was given. |
6418 |
|
if test "${with_sprng_prefix+set}" = set; then |
6419 |
|
withval="$with_sprng_prefix" |
6446 |
|
sprng_include=${sprng_prefix}/include |
6447 |
|
fi |
6448 |
|
|
6449 |
< |
echo "$as_me:5158: checking for SPRNG include files in $sprng_include" >&5 |
6449 |
> |
echo "$as_me:$LINENO: checking for SPRNG include files in $sprng_include" >&5 |
6450 |
|
echo $ECHO_N "checking for SPRNG include files in $sprng_include... $ECHO_C" >&6 |
6451 |
|
if test -f ${sprng_include}/sprng.h; then |
6452 |
|
have_sprngincl=yes |
6453 |
< |
echo "$as_me:5162: result: yes" >&5 |
6453 |
> |
echo "$as_me:$LINENO: result: yes" >&5 |
6454 |
|
echo "${ECHO_T}yes" >&6 |
6455 |
|
else |
6456 |
|
have_sprngincl=no |
6457 |
< |
echo "$as_me:5166: result: no" >&5 |
6457 |
> |
echo "$as_me:$LINENO: result: no" >&5 |
6458 |
|
echo "${ECHO_T}no" >&6 |
6459 |
< |
{ { echo "$as_me:5168: error: Could not locate the SPRNG include files" >&5 |
6459 |
> |
{ { echo "$as_me:$LINENO: error: Could not locate the SPRNG include files" >&5 |
6460 |
|
echo "$as_me: error: Could not locate the SPRNG include files" >&2;} |
6461 |
|
{ (exit 1); exit 1; }; } |
6462 |
|
fi |
6463 |
|
|
6464 |
< |
echo "$as_me:5173: checking for SPRNG libraries in $sprng_libdir" >&5 |
6464 |
> |
echo "$as_me:$LINENO: checking for SPRNG libraries in $sprng_libdir" >&5 |
6465 |
|
echo $ECHO_N "checking for SPRNG libraries in $sprng_libdir... $ECHO_C" >&6 |
6466 |
|
if test -f ${sprng_libdir}/libsprng.a; then |
6467 |
|
have_sprnglib=yes |
6468 |
< |
echo "$as_me:5177: result: yes" >&5 |
6468 |
> |
echo "$as_me:$LINENO: result: yes" >&5 |
6469 |
|
echo "${ECHO_T}yes" >&6 |
6470 |
|
else |
6471 |
|
have_sprnglib=no |
6472 |
< |
echo "$as_me:5181: result: no" >&5 |
6472 |
> |
echo "$as_me:$LINENO: result: no" >&5 |
6473 |
|
echo "${ECHO_T}no" >&6 |
6474 |
< |
{ { echo "$as_me:5183: error: Could not locate the SPRNG libraries" >&5 |
6474 |
> |
{ { echo "$as_me:$LINENO: error: Could not locate the SPRNG libraries" >&5 |
6475 |
|
echo "$as_me: error: Could not locate the SPRNG libraries" >&2;} |
6476 |
|
{ (exit 1); exit 1; }; } |
6477 |
|
fi |
6478 |
|
|
6479 |
+ |
|
6480 |
+ |
|
6481 |
|
ac_ext=c |
6482 |
|
ac_cpp='$CPP $CPPFLAGS' |
6483 |
|
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
6488 |
|
CPPFLAGS="${CPPFLAGS} -I${sprng_include}" |
6489 |
|
ac_save_LDFLAGS=$LDFLAGS |
6490 |
|
LDFLAGS="${LDFLAGS} -L${sprng_libdir} -lsprng" |
6491 |
< |
echo "$as_me:5198: checking for sprng.h" >&5 |
6491 |
> |
if test "${ac_cv_header_sprng_h+set}" = set; then |
6492 |
> |
echo "$as_me:$LINENO: checking for sprng.h" >&5 |
6493 |
|
echo $ECHO_N "checking for sprng.h... $ECHO_C" >&6 |
6494 |
|
if test "${ac_cv_header_sprng_h+set}" = set; then |
6495 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
6496 |
+ |
fi |
6497 |
+ |
echo "$as_me:$LINENO: result: $ac_cv_header_sprng_h" >&5 |
6498 |
+ |
echo "${ECHO_T}$ac_cv_header_sprng_h" >&6 |
6499 |
|
else |
6500 |
< |
cat >conftest.$ac_ext <<_ACEOF |
6501 |
< |
#line 5204 "configure" |
6502 |
< |
#include "confdefs.h" |
6500 |
> |
# Is the header compilable? |
6501 |
> |
echo "$as_me:$LINENO: checking sprng.h usability" >&5 |
6502 |
> |
echo $ECHO_N "checking sprng.h usability... $ECHO_C" >&6 |
6503 |
> |
cat >conftest.$ac_ext <<_ACEOF |
6504 |
> |
#line $LINENO "configure" |
6505 |
> |
/* confdefs.h. */ |
6506 |
> |
_ACEOF |
6507 |
> |
cat confdefs.h >>conftest.$ac_ext |
6508 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
6509 |
> |
/* end confdefs.h. */ |
6510 |
> |
$ac_includes_default |
6511 |
|
#include <sprng.h> |
6512 |
|
_ACEOF |
6513 |
< |
if { (eval echo "$as_me:5208: \"$ac_cpp conftest.$ac_ext\"") >&5 |
6513 |
> |
rm -f conftest.$ac_objext |
6514 |
> |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
6515 |
> |
(eval $ac_compile) 2>&5 |
6516 |
> |
ac_status=$? |
6517 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6518 |
> |
(exit $ac_status); } && |
6519 |
> |
{ ac_try='test -s conftest.$ac_objext' |
6520 |
> |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6521 |
> |
(eval $ac_try) 2>&5 |
6522 |
> |
ac_status=$? |
6523 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6524 |
> |
(exit $ac_status); }; }; then |
6525 |
> |
ac_header_compiler=yes |
6526 |
> |
else |
6527 |
> |
echo "$as_me: failed program was:" >&5 |
6528 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
6529 |
> |
|
6530 |
> |
ac_header_compiler=no |
6531 |
> |
fi |
6532 |
> |
rm -f conftest.$ac_objext conftest.$ac_ext |
6533 |
> |
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
6534 |
> |
echo "${ECHO_T}$ac_header_compiler" >&6 |
6535 |
> |
|
6536 |
> |
# Is the header present? |
6537 |
> |
echo "$as_me:$LINENO: checking sprng.h presence" >&5 |
6538 |
> |
echo $ECHO_N "checking sprng.h presence... $ECHO_C" >&6 |
6539 |
> |
cat >conftest.$ac_ext <<_ACEOF |
6540 |
> |
#line $LINENO "configure" |
6541 |
> |
/* confdefs.h. */ |
6542 |
> |
_ACEOF |
6543 |
> |
cat confdefs.h >>conftest.$ac_ext |
6544 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
6545 |
> |
/* end confdefs.h. */ |
6546 |
> |
#include <sprng.h> |
6547 |
> |
_ACEOF |
6548 |
> |
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
6549 |
|
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
6550 |
|
ac_status=$? |
6551 |
< |
egrep -v '^ *\+' conftest.er1 >conftest.err |
6551 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
6552 |
|
rm -f conftest.er1 |
6553 |
|
cat conftest.err >&5 |
6554 |
< |
echo "$as_me:5214: \$? = $ac_status" >&5 |
6554 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6555 |
|
(exit $ac_status); } >/dev/null; then |
6556 |
|
if test -s conftest.err; then |
6557 |
|
ac_cpp_err=$ac_c_preproc_warn_flag |
6562 |
|
ac_cpp_err=yes |
6563 |
|
fi |
6564 |
|
if test -z "$ac_cpp_err"; then |
6565 |
< |
ac_cv_header_sprng_h=yes |
6565 |
> |
ac_header_preproc=yes |
6566 |
|
else |
6567 |
|
echo "$as_me: failed program was:" >&5 |
6568 |
< |
cat conftest.$ac_ext >&5 |
6569 |
< |
ac_cv_header_sprng_h=no |
6568 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
6569 |
> |
|
6570 |
> |
ac_header_preproc=no |
6571 |
|
fi |
6572 |
|
rm -f conftest.err conftest.$ac_ext |
6573 |
+ |
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
6574 |
+ |
echo "${ECHO_T}$ac_header_preproc" >&6 |
6575 |
+ |
|
6576 |
+ |
# So? What about this header? |
6577 |
+ |
case $ac_header_compiler:$ac_header_preproc in |
6578 |
+ |
yes:no ) |
6579 |
+ |
{ echo "$as_me:$LINENO: WARNING: sprng.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
6580 |
+ |
echo "$as_me: WARNING: sprng.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
6581 |
+ |
{ echo "$as_me:$LINENO: WARNING: sprng.h: proceeding with the preprocessor's result" >&5 |
6582 |
+ |
echo "$as_me: WARNING: sprng.h: proceeding with the preprocessor's result" >&2;} |
6583 |
+ |
( |
6584 |
+ |
cat <<\_ASBOX |
6585 |
+ |
## ------------------------------------ ## |
6586 |
+ |
## Report this to bug-autoconf@gnu.org. ## |
6587 |
+ |
## ------------------------------------ ## |
6588 |
+ |
_ASBOX |
6589 |
+ |
) | |
6590 |
+ |
sed "s/^/$as_me: WARNING: /" >&2 |
6591 |
+ |
;; |
6592 |
+ |
no:yes ) |
6593 |
+ |
{ echo "$as_me:$LINENO: WARNING: sprng.h: present but cannot be compiled" >&5 |
6594 |
+ |
echo "$as_me: WARNING: sprng.h: present but cannot be compiled" >&2;} |
6595 |
+ |
{ echo "$as_me:$LINENO: WARNING: sprng.h: check for missing prerequisite headers?" >&5 |
6596 |
+ |
echo "$as_me: WARNING: sprng.h: check for missing prerequisite headers?" >&2;} |
6597 |
+ |
{ echo "$as_me:$LINENO: WARNING: sprng.h: proceeding with the preprocessor's result" >&5 |
6598 |
+ |
echo "$as_me: WARNING: sprng.h: proceeding with the preprocessor's result" >&2;} |
6599 |
+ |
( |
6600 |
+ |
cat <<\_ASBOX |
6601 |
+ |
## ------------------------------------ ## |
6602 |
+ |
## Report this to bug-autoconf@gnu.org. ## |
6603 |
+ |
## ------------------------------------ ## |
6604 |
+ |
_ASBOX |
6605 |
+ |
) | |
6606 |
+ |
sed "s/^/$as_me: WARNING: /" >&2 |
6607 |
+ |
;; |
6608 |
+ |
esac |
6609 |
+ |
echo "$as_me:$LINENO: checking for sprng.h" >&5 |
6610 |
+ |
echo $ECHO_N "checking for sprng.h... $ECHO_C" >&6 |
6611 |
+ |
if test "${ac_cv_header_sprng_h+set}" = set; then |
6612 |
+ |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
6613 |
+ |
else |
6614 |
+ |
ac_cv_header_sprng_h=$ac_header_preproc |
6615 |
|
fi |
6616 |
< |
echo "$as_me:5233: result: $ac_cv_header_sprng_h" >&5 |
6616 |
> |
echo "$as_me:$LINENO: result: $ac_cv_header_sprng_h" >&5 |
6617 |
|
echo "${ECHO_T}$ac_cv_header_sprng_h" >&6 |
6618 |
+ |
|
6619 |
+ |
fi |
6620 |
|
if test $ac_cv_header_sprng_h = yes; then |
6621 |
|
|
6622 |
< |
echo "$as_me:5237: checking for init_rng in -lsprng" >&5 |
6622 |
> |
echo "$as_me:$LINENO: checking for init_rng in -lsprng" >&5 |
6623 |
|
echo $ECHO_N "checking for init_rng in -lsprng... $ECHO_C" >&6 |
6624 |
|
if test "${ac_cv_lib_sprng_init_rng+set}" = set; then |
6625 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
6627 |
|
ac_check_lib_save_LIBS=$LIBS |
6628 |
|
LIBS="-lsprng $LIBS" |
6629 |
|
cat >conftest.$ac_ext <<_ACEOF |
6630 |
< |
#line 5245 "configure" |
6631 |
< |
#include "confdefs.h" |
6630 |
> |
#line $LINENO "configure" |
6631 |
> |
/* confdefs.h. */ |
6632 |
> |
_ACEOF |
6633 |
> |
cat confdefs.h >>conftest.$ac_ext |
6634 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
6635 |
> |
/* end confdefs.h. */ |
6636 |
|
|
6637 |
|
/* Override any gcc2 internal prototype to avoid an error. */ |
6638 |
|
#ifdef __cplusplus |
6650 |
|
} |
6651 |
|
_ACEOF |
6652 |
|
rm -f conftest.$ac_objext conftest$ac_exeext |
6653 |
< |
if { (eval echo "$as_me:5264: \"$ac_link\"") >&5 |
6653 |
> |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
6654 |
|
(eval $ac_link) 2>&5 |
6655 |
|
ac_status=$? |
6656 |
< |
echo "$as_me:5267: \$? = $ac_status" >&5 |
6656 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6657 |
|
(exit $ac_status); } && |
6658 |
|
{ ac_try='test -s conftest$ac_exeext' |
6659 |
< |
{ (eval echo "$as_me:5270: \"$ac_try\"") >&5 |
6659 |
> |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6660 |
|
(eval $ac_try) 2>&5 |
6661 |
|
ac_status=$? |
6662 |
< |
echo "$as_me:5273: \$? = $ac_status" >&5 |
6662 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6663 |
|
(exit $ac_status); }; }; then |
6664 |
|
ac_cv_lib_sprng_init_rng=yes |
6665 |
|
else |
6666 |
|
echo "$as_me: failed program was:" >&5 |
6667 |
< |
cat conftest.$ac_ext >&5 |
6667 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
6668 |
> |
|
6669 |
|
ac_cv_lib_sprng_init_rng=no |
6670 |
|
fi |
6671 |
|
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
6672 |
|
LIBS=$ac_check_lib_save_LIBS |
6673 |
|
fi |
6674 |
< |
echo "$as_me:5284: result: $ac_cv_lib_sprng_init_rng" >&5 |
6674 |
> |
echo "$as_me:$LINENO: result: $ac_cv_lib_sprng_init_rng" >&5 |
6675 |
|
echo "${ECHO_T}$ac_cv_lib_sprng_init_rng" >&6 |
6676 |
|
if test $ac_cv_lib_sprng_init_rng = yes; then |
6677 |
|
SPRNG_LIBDIR="${sprng_libdir}" |
6681 |
|
|
6682 |
|
fi |
6683 |
|
|
6684 |
+ |
|
6685 |
|
CPPFLAGS=$ac_save_CPPFLAGS |
6686 |
< |
LDFLAGS=$ac_save_LDFLAGS |
6687 |
< |
ac_ext=f90 |
6688 |
< |
ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5' |
6689 |
< |
ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
6690 |
< |
ac_compiler_gnu=$ac_cv_f90_compiler_gnu |
6686 |
> |
LDFLAGS=$ac_save_LDFLAGS |
6687 |
> |
ac_ext=c |
6688 |
> |
ac_cpp='$CPP $CPPFLAGS' |
6689 |
> |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
6690 |
> |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
6691 |
> |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
6692 |
> |
|
6693 |
|
|
6694 |
|
if test x_$HAVE_SPRNG != x_yes; then |
6695 |
< |
{ { echo "$as_me:5302: error: Can't build with SPRNG" >&5 |
6695 |
> |
{ { echo "$as_me:$LINENO: error: Can't build with SPRNG" >&5 |
6696 |
|
echo "$as_me: error: Can't build with SPRNG" >&2;} |
6697 |
|
{ (exit 1); exit 1; }; } |
6698 |
|
fi |
6699 |
|
|
6700 |
< |
echo "$as_me:5307: checking if MKL is wanted" >&5 |
6700 |
> |
|
6701 |
> |
|
6702 |
> |
|
6703 |
> |
|
6704 |
> |
echo "$as_me:$LINENO: checking if MKL is wanted" >&5 |
6705 |
|
echo $ECHO_N "checking if MKL is wanted... $ECHO_C" >&6 |
6706 |
|
|
6707 |
|
# Check whether --with-mkl or --without-mkl was given. |
6708 |
|
if test "${with_mkl+set}" = set; then |
6709 |
|
withval="$with_mkl" |
6710 |
< |
echo "$as_me:5313: result: yes" >&5 |
6710 |
> |
echo "$as_me:$LINENO: result: yes" >&5 |
6711 |
|
echo "${ECHO_T}yes" >&6 |
6712 |
< |
for dir in $withval /usr/local/intel/mkl60 /opt/intel/mkl60; do |
6712 |
> |
for dir in $withval /usr/local/intel/mkl61 /opt/intel/mkl61; do |
6713 |
|
mkldir="$dir" |
6714 |
|
if test -f "$dir/include/mkl.h"; then |
6715 |
|
found_mkl="yes"; |
6717 |
|
fi |
6718 |
|
done |
6719 |
|
if test x_$found_mkl != x_yes; then |
6720 |
< |
{ { echo "$as_me:5323: error: Cannot find MKL includes" >&5 |
6720 |
> |
{ { echo "$as_me:$LINENO: error: Cannot find MKL includes" >&5 |
6721 |
|
echo "$as_me: error: Cannot find MKL includes" >&2;} |
6722 |
|
{ (exit 1); exit 1; }; } |
6723 |
|
else |
6724 |
|
printf "MKL includes found in $mkldir/include\n"; |
6725 |
|
fi |
6726 |
|
|
6727 |
+ |
|
6728 |
+ |
|
6729 |
|
ac_ext=c |
6730 |
|
ac_cpp='$CPP $CPPFLAGS' |
6731 |
|
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
6736 |
|
CPPFLAGS="${CPPFLAGS} -I${mkldir}/include" |
6737 |
|
ac_save_LDFLAGS=$LDFLAGS |
6738 |
|
LDFLAGS="${LDFLAGS} -L${mkldir}/lib/32 -lmkl -lvml -lguide" |
6739 |
< |
echo "$as_me:5340: checking for mkl.h" >&5 |
6739 |
> |
if test "${ac_cv_header_mkl_h+set}" = set; then |
6740 |
> |
echo "$as_me:$LINENO: checking for mkl.h" >&5 |
6741 |
|
echo $ECHO_N "checking for mkl.h... $ECHO_C" >&6 |
6742 |
|
if test "${ac_cv_header_mkl_h+set}" = set; then |
6743 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
6744 |
+ |
fi |
6745 |
+ |
echo "$as_me:$LINENO: result: $ac_cv_header_mkl_h" >&5 |
6746 |
+ |
echo "${ECHO_T}$ac_cv_header_mkl_h" >&6 |
6747 |
|
else |
6748 |
< |
cat >conftest.$ac_ext <<_ACEOF |
6749 |
< |
#line 5346 "configure" |
6750 |
< |
#include "confdefs.h" |
6748 |
> |
# Is the header compilable? |
6749 |
> |
echo "$as_me:$LINENO: checking mkl.h usability" >&5 |
6750 |
> |
echo $ECHO_N "checking mkl.h usability... $ECHO_C" >&6 |
6751 |
> |
cat >conftest.$ac_ext <<_ACEOF |
6752 |
> |
#line $LINENO "configure" |
6753 |
> |
/* confdefs.h. */ |
6754 |
> |
_ACEOF |
6755 |
> |
cat confdefs.h >>conftest.$ac_ext |
6756 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
6757 |
> |
/* end confdefs.h. */ |
6758 |
> |
$ac_includes_default |
6759 |
|
#include <mkl.h> |
6760 |
|
_ACEOF |
6761 |
< |
if { (eval echo "$as_me:5350: \"$ac_cpp conftest.$ac_ext\"") >&5 |
6761 |
> |
rm -f conftest.$ac_objext |
6762 |
> |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
6763 |
> |
(eval $ac_compile) 2>&5 |
6764 |
> |
ac_status=$? |
6765 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6766 |
> |
(exit $ac_status); } && |
6767 |
> |
{ ac_try='test -s conftest.$ac_objext' |
6768 |
> |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6769 |
> |
(eval $ac_try) 2>&5 |
6770 |
> |
ac_status=$? |
6771 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6772 |
> |
(exit $ac_status); }; }; then |
6773 |
> |
ac_header_compiler=yes |
6774 |
> |
else |
6775 |
> |
echo "$as_me: failed program was:" >&5 |
6776 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
6777 |
> |
|
6778 |
> |
ac_header_compiler=no |
6779 |
> |
fi |
6780 |
> |
rm -f conftest.$ac_objext conftest.$ac_ext |
6781 |
> |
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
6782 |
> |
echo "${ECHO_T}$ac_header_compiler" >&6 |
6783 |
> |
|
6784 |
> |
# Is the header present? |
6785 |
> |
echo "$as_me:$LINENO: checking mkl.h presence" >&5 |
6786 |
> |
echo $ECHO_N "checking mkl.h presence... $ECHO_C" >&6 |
6787 |
> |
cat >conftest.$ac_ext <<_ACEOF |
6788 |
> |
#line $LINENO "configure" |
6789 |
> |
/* confdefs.h. */ |
6790 |
> |
_ACEOF |
6791 |
> |
cat confdefs.h >>conftest.$ac_ext |
6792 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
6793 |
> |
/* end confdefs.h. */ |
6794 |
> |
#include <mkl.h> |
6795 |
> |
_ACEOF |
6796 |
> |
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
6797 |
|
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
6798 |
|
ac_status=$? |
6799 |
< |
egrep -v '^ *\+' conftest.er1 >conftest.err |
6799 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
6800 |
|
rm -f conftest.er1 |
6801 |
|
cat conftest.err >&5 |
6802 |
< |
echo "$as_me:5356: \$? = $ac_status" >&5 |
6802 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6803 |
|
(exit $ac_status); } >/dev/null; then |
6804 |
|
if test -s conftest.err; then |
6805 |
|
ac_cpp_err=$ac_c_preproc_warn_flag |
6810 |
|
ac_cpp_err=yes |
6811 |
|
fi |
6812 |
|
if test -z "$ac_cpp_err"; then |
6813 |
< |
ac_cv_header_mkl_h=yes |
6813 |
> |
ac_header_preproc=yes |
6814 |
|
else |
6815 |
|
echo "$as_me: failed program was:" >&5 |
6816 |
< |
cat conftest.$ac_ext >&5 |
6817 |
< |
ac_cv_header_mkl_h=no |
6816 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
6817 |
> |
|
6818 |
> |
ac_header_preproc=no |
6819 |
|
fi |
6820 |
|
rm -f conftest.err conftest.$ac_ext |
6821 |
< |
fi |
6822 |
< |
echo "$as_me:5375: result: $ac_cv_header_mkl_h" >&5 |
6821 |
> |
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
6822 |
> |
echo "${ECHO_T}$ac_header_preproc" >&6 |
6823 |
> |
|
6824 |
> |
# So? What about this header? |
6825 |
> |
case $ac_header_compiler:$ac_header_preproc in |
6826 |
> |
yes:no ) |
6827 |
> |
{ echo "$as_me:$LINENO: WARNING: mkl.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
6828 |
> |
echo "$as_me: WARNING: mkl.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
6829 |
> |
{ echo "$as_me:$LINENO: WARNING: mkl.h: proceeding with the preprocessor's result" >&5 |
6830 |
> |
echo "$as_me: WARNING: mkl.h: proceeding with the preprocessor's result" >&2;} |
6831 |
> |
( |
6832 |
> |
cat <<\_ASBOX |
6833 |
> |
## ------------------------------------ ## |
6834 |
> |
## Report this to bug-autoconf@gnu.org. ## |
6835 |
> |
## ------------------------------------ ## |
6836 |
> |
_ASBOX |
6837 |
> |
) | |
6838 |
> |
sed "s/^/$as_me: WARNING: /" >&2 |
6839 |
> |
;; |
6840 |
> |
no:yes ) |
6841 |
> |
{ echo "$as_me:$LINENO: WARNING: mkl.h: present but cannot be compiled" >&5 |
6842 |
> |
echo "$as_me: WARNING: mkl.h: present but cannot be compiled" >&2;} |
6843 |
> |
{ echo "$as_me:$LINENO: WARNING: mkl.h: check for missing prerequisite headers?" >&5 |
6844 |
> |
echo "$as_me: WARNING: mkl.h: check for missing prerequisite headers?" >&2;} |
6845 |
> |
{ echo "$as_me:$LINENO: WARNING: mkl.h: proceeding with the preprocessor's result" >&5 |
6846 |
> |
echo "$as_me: WARNING: mkl.h: proceeding with the preprocessor's result" >&2;} |
6847 |
> |
( |
6848 |
> |
cat <<\_ASBOX |
6849 |
> |
## ------------------------------------ ## |
6850 |
> |
## Report this to bug-autoconf@gnu.org. ## |
6851 |
> |
## ------------------------------------ ## |
6852 |
> |
_ASBOX |
6853 |
> |
) | |
6854 |
> |
sed "s/^/$as_me: WARNING: /" >&2 |
6855 |
> |
;; |
6856 |
> |
esac |
6857 |
> |
echo "$as_me:$LINENO: checking for mkl.h" >&5 |
6858 |
> |
echo $ECHO_N "checking for mkl.h... $ECHO_C" >&6 |
6859 |
> |
if test "${ac_cv_header_mkl_h+set}" = set; then |
6860 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
6861 |
> |
else |
6862 |
> |
ac_cv_header_mkl_h=$ac_header_preproc |
6863 |
> |
fi |
6864 |
> |
echo "$as_me:$LINENO: result: $ac_cv_header_mkl_h" >&5 |
6865 |
|
echo "${ECHO_T}$ac_cv_header_mkl_h" >&6 |
6866 |
+ |
|
6867 |
+ |
fi |
6868 |
|
if test $ac_cv_header_mkl_h = yes; then |
6869 |
|
|
6870 |
< |
echo "$as_me:5379: checking for vslNewStream in -lmkl" >&5 |
6870 |
> |
echo "$as_me:$LINENO: checking for vslNewStream in -lmkl" >&5 |
6871 |
|
echo $ECHO_N "checking for vslNewStream in -lmkl... $ECHO_C" >&6 |
6872 |
|
if test "${ac_cv_lib_mkl_vslNewStream+set}" = set; then |
6873 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
6875 |
|
ac_check_lib_save_LIBS=$LIBS |
6876 |
|
LIBS="-lmkl $LIBS" |
6877 |
|
cat >conftest.$ac_ext <<_ACEOF |
6878 |
< |
#line 5387 "configure" |
6879 |
< |
#include "confdefs.h" |
6878 |
> |
#line $LINENO "configure" |
6879 |
> |
/* confdefs.h. */ |
6880 |
> |
_ACEOF |
6881 |
> |
cat confdefs.h >>conftest.$ac_ext |
6882 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
6883 |
> |
/* end confdefs.h. */ |
6884 |
|
|
6885 |
|
/* Override any gcc2 internal prototype to avoid an error. */ |
6886 |
|
#ifdef __cplusplus |
6898 |
|
} |
6899 |
|
_ACEOF |
6900 |
|
rm -f conftest.$ac_objext conftest$ac_exeext |
6901 |
< |
if { (eval echo "$as_me:5406: \"$ac_link\"") >&5 |
6901 |
> |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
6902 |
|
(eval $ac_link) 2>&5 |
6903 |
|
ac_status=$? |
6904 |
< |
echo "$as_me:5409: \$? = $ac_status" >&5 |
6904 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6905 |
|
(exit $ac_status); } && |
6906 |
|
{ ac_try='test -s conftest$ac_exeext' |
6907 |
< |
{ (eval echo "$as_me:5412: \"$ac_try\"") >&5 |
6907 |
> |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6908 |
|
(eval $ac_try) 2>&5 |
6909 |
|
ac_status=$? |
6910 |
< |
echo "$as_me:5415: \$? = $ac_status" >&5 |
6910 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6911 |
|
(exit $ac_status); }; }; then |
6912 |
|
ac_cv_lib_mkl_vslNewStream=yes |
6913 |
|
else |
6914 |
|
echo "$as_me: failed program was:" >&5 |
6915 |
< |
cat conftest.$ac_ext >&5 |
6915 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
6916 |
> |
|
6917 |
|
ac_cv_lib_mkl_vslNewStream=no |
6918 |
|
fi |
6919 |
|
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
6920 |
|
LIBS=$ac_check_lib_save_LIBS |
6921 |
|
fi |
6922 |
< |
echo "$as_me:5426: result: $ac_cv_lib_mkl_vslNewStream" >&5 |
6922 |
> |
echo "$as_me:$LINENO: result: $ac_cv_lib_mkl_vslNewStream" >&5 |
6923 |
|
echo "${ECHO_T}$ac_cv_lib_mkl_vslNewStream" >&6 |
6924 |
|
if test $ac_cv_lib_mkl_vslNewStream = yes; then |
6925 |
|
MKL_LIBDIR="${mkldir}/lib/32", |
6927 |
|
HAVE_MKL="yes" |
6928 |
|
fi |
6929 |
|
|
6930 |
+ |
|
6931 |
|
else |
6932 |
|
MKL_INC="-I${mkldir}/include" |
6933 |
|
fi |
6934 |
|
|
6935 |
+ |
|
6936 |
|
CPPFLAGS=$ac_save_CPPFLAGS |
6937 |
|
LDFLAGS=$ac_save_LDFLAGS |
6938 |
< |
ac_ext=f90 |
6939 |
< |
ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5' |
6940 |
< |
ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
6941 |
< |
ac_compiler_gnu=$ac_cv_f90_compiler_gnu |
6938 |
> |
ac_ext=c |
6939 |
> |
ac_cpp='$CPP $CPPFLAGS' |
6940 |
> |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
6941 |
> |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
6942 |
> |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
6943 |
|
|
6944 |
+ |
|
6945 |
|
if test x_$HAVE_MKL != x_yes; then |
6946 |
< |
{ { echo "$as_me:5446: error: Can't build with MKL" >&5 |
6946 |
> |
{ { echo "$as_me:$LINENO: error: Can't build with MKL" >&5 |
6947 |
|
echo "$as_me: error: Can't build with MKL" >&2;} |
6948 |
|
{ (exit 1); exit 1; }; } |
6949 |
|
fi |
6950 |
|
|
5451 |
– |
else |
6951 |
|
|
5453 |
– |
echo "$as_me:5453: result: no" >&5 |
5454 |
– |
echo "${ECHO_T}no" >&6 |
6952 |
|
|
5456 |
– |
fi; |
6953 |
|
|
5458 |
– |
# Check whether --with-mpi_f90_mods or --without-mpi_f90_mods was given. |
5459 |
– |
if test "${with_mpi_f90_mods+set}" = set; then |
5460 |
– |
withval="$with_mpi_f90_mods" |
5461 |
– |
mpi_f90_mods="$withval" |
5462 |
– |
else |
5463 |
– |
mpi_f90_mods="/usr/local/include/f90choice" |
5464 |
– |
fi; |
6954 |
|
|
5466 |
– |
echo "$as_me:5466: checking for MPI F90 modules" >&5 |
5467 |
– |
echo $ECHO_N "checking for MPI F90 modules... $ECHO_C" >&6 |
5468 |
– |
|
5469 |
– |
ac_ext=f90 |
5470 |
– |
ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5' |
5471 |
– |
ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
5472 |
– |
ac_compiler_gnu=$ac_cv_f90_compiler_gnu |
5473 |
– |
|
5474 |
– |
ac_save_F90FLAGS=$F90FLAGS |
5475 |
– |
|
5476 |
– |
if test "$mpi_f90_mods"; then |
5477 |
– |
F90FLAGS="${F90FLAGS} ${MODDIRFLAG}${mpi_f90_mods}" |
5478 |
– |
fi |
5479 |
– |
|
5480 |
– |
cat >conftest.$ac_ext <<_ACEOF |
5481 |
– |
|
5482 |
– |
program main |
5483 |
– |
|
5484 |
– |
use mpi |
5485 |
– |
integer :: ierr |
5486 |
– |
call MPI_Init(ierr) |
5487 |
– |
|
5488 |
– |
end program main |
5489 |
– |
|
5490 |
– |
_ACEOF |
5491 |
– |
rm -f conftest.$ac_objext |
5492 |
– |
if { (eval echo "$as_me:5492: \"$ac_compile\"") >&5 |
5493 |
– |
(eval $ac_compile) 2>&5 |
5494 |
– |
ac_status=$? |
5495 |
– |
echo "$as_me:5495: \$? = $ac_status" >&5 |
5496 |
– |
(exit $ac_status); } && |
5497 |
– |
{ ac_try='test -s conftest.$ac_objext' |
5498 |
– |
{ (eval echo "$as_me:5498: \"$ac_try\"") >&5 |
5499 |
– |
(eval $ac_try) 2>&5 |
5500 |
– |
ac_status=$? |
5501 |
– |
echo "$as_me:5501: \$? = $ac_status" >&5 |
5502 |
– |
(exit $ac_status); }; }; then |
5503 |
– |
HAVE_MPI_MOD=1 |
6955 |
|
else |
5505 |
– |
echo "$as_me: failed program was:" >&5 |
5506 |
– |
cat conftest.$ac_ext >&5 |
5507 |
– |
HAVE_MPI_MOD=0 |
5508 |
– |
fi |
5509 |
– |
rm -f conftest.$ac_objext conftest.$ac_ext |
6956 |
|
|
6957 |
< |
F90FLAGS=$ac_save_F90FLAGS |
6958 |
< |
ac_ext=f90 |
5513 |
< |
ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5' |
5514 |
< |
ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
5515 |
< |
ac_compiler_gnu=$ac_cv_f90_compiler_gnu |
6957 |
> |
echo "$as_me:$LINENO: result: no" >&5 |
6958 |
> |
echo "${ECHO_T}no" >&6 |
6959 |
|
|
6960 |
< |
if test "$HAVE_MPI_MOD" = 1; then |
5518 |
< |
echo "$as_me:5518: result: yes" >&5 |
5519 |
< |
echo "${ECHO_T}yes" >&6 |
6960 |
> |
fi; |
6961 |
|
|
5521 |
– |
cat >>confdefs.h <<\EOF |
5522 |
– |
#define MPI_MOD 1 |
5523 |
– |
EOF |
6962 |
|
|
5525 |
– |
MPI_F90_MODS="${mpi_f90_mods}" |
6963 |
|
|
5527 |
– |
# The library name: |
5528 |
– |
if test -z "$MPI_LIB" ; then |
5529 |
– |
MPI_LIBNAME=-lmpich |
5530 |
– |
else |
5531 |
– |
MPI_LIBNAME="$MPI_LIB" |
5532 |
– |
fi |
5533 |
– |
if test -z "$MPIMODLIBNAME" ; then |
5534 |
– |
MPIMODLIBNAME="${MPI_LIBNAME}f90" |
5535 |
– |
fi |
6964 |
|
|
5537 |
– |
else |
5538 |
– |
echo "$as_me:5538: result: no" >&5 |
5539 |
– |
echo "${ECHO_T}no" >&6 |
5540 |
– |
{ { echo "$as_me:5540: error: Couldn't locate MPI F90 Modules" >&5 |
5541 |
– |
echo "$as_me: error: Couldn't locate MPI F90 Modules" >&2;} |
5542 |
– |
{ (exit 1); exit 1; }; } |
5543 |
– |
fi |
6965 |
|
|
6966 |
|
OBJEXT=".$OBJEXT" |
6967 |
|
|
6986 |
|
|
6987 |
|
MKINSTALLDIRS=`pwd`/ac-tools/"shtool mkdir -p -f" |
6988 |
|
|
6989 |
< |
SUBDIRS="libBASS libmdtools src forceFields samples utils utils/sysbuilder staticProps" |
6989 |
> |
SUBDIRS="libBASS libmdtools src forceFields samples utils utils/sysbuilder staticProps third-party " |
6990 |
|
|
6991 |
|
CFLAGS=${CFLAGS-""} |
6992 |
|
CXXFLAGS=${CXXFLAGS-""} |
7005 |
|
;; |
7006 |
|
esac |
7007 |
|
|
5587 |
– |
ac_config_headers="$ac_config_headers libmdtools/config.h" |
7008 |
|
|
5589 |
– |
ac_config_files="$ac_config_files Makefile libBASS/Makefile libmdtools/Makefile src/Makefile utils/Makefile utils/sysbuilder/Makefile forceFields/Makefile samples/Makefile staticProps/Makefile samples/alkane/Makefile samples/argon/Makefile samples/beadLipid/Makefile samples/lipid/Makefile samples/metals/Makefile samples/water/Makefile" |
7009 |
|
|
7010 |
+ |
|
7011 |
+ |
|
7012 |
+ |
|
7013 |
+ |
|
7014 |
+ |
|
7015 |
+ |
|
7016 |
+ |
|
7017 |
+ |
|
7018 |
+ |
|
7019 |
+ |
|
7020 |
+ |
|
7021 |
+ |
|
7022 |
+ |
|
7023 |
+ |
|
7024 |
+ |
ac_config_headers="$ac_config_headers libBASS/config.h libmdtools/config.h" |
7025 |
+ |
|
7026 |
+ |
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" |
7027 |
+ |
|
7028 |
+ |
|
7029 |
|
cat >confcache <<\_ACEOF |
7030 |
|
# This file is a shell script that caches the results of configure |
7031 |
|
# tests run on this system so they can be shared between configure |
7036 |
|
# config.status only pays attention to the cache file if you give it |
7037 |
|
# the --recheck option to rerun configure. |
7038 |
|
# |
7039 |
< |
# `ac_cv_env_foo' variables (set or unset) will be overriden when |
7039 |
> |
# `ac_cv_env_foo' variables (set or unset) will be overridden when |
7040 |
|
# loading this file, other *unset* `ac_cv_foo' will be assigned the |
7041 |
|
# following values. |
7042 |
|
|
7055 |
|
# substitution turns \\\\ into \\, and sed turns \\ into \). |
7056 |
|
sed -n \ |
7057 |
|
"s/'/'\\\\''/g; |
7058 |
< |
s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
7058 |
> |
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
7059 |
|
;; |
7060 |
|
*) |
7061 |
|
# `set' quotes correctly as required by POSIX, so do not add quotes. |
7062 |
|
sed -n \ |
7063 |
< |
"s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
7063 |
> |
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
7064 |
|
;; |
7065 |
|
esac; |
7066 |
|
} | |
7071 |
|
t end |
7072 |
|
/^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
7073 |
|
: end' >>confcache |
7074 |
< |
if cmp -s $cache_file confcache; then :; else |
7074 |
> |
if diff $cache_file confcache >/dev/null 2>&1; then :; else |
7075 |
|
if test -w $cache_file; then |
7076 |
|
test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
7077 |
|
cat confcache >$cache_file |
7102 |
|
|
7103 |
|
DEFS=-DHAVE_CONFIG_H |
7104 |
|
|
7105 |
+ |
ac_libobjs= |
7106 |
+ |
ac_ltlibobjs= |
7107 |
+ |
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
7108 |
+ |
# 1. Remove the extension, and $U if already installed. |
7109 |
+ |
ac_i=`echo "$ac_i" | |
7110 |
+ |
sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
7111 |
+ |
# 2. Add them. |
7112 |
+ |
ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" |
7113 |
+ |
ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' |
7114 |
+ |
done |
7115 |
+ |
LIBOBJS=$ac_libobjs |
7116 |
+ |
|
7117 |
+ |
LTLIBOBJS=$ac_ltlibobjs |
7118 |
+ |
|
7119 |
+ |
|
7120 |
+ |
|
7121 |
|
: ${CONFIG_STATUS=./config.status} |
7122 |
|
ac_clean_files_save=$ac_clean_files |
7123 |
|
ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
7124 |
< |
{ echo "$as_me:5670: creating $CONFIG_STATUS" >&5 |
7124 |
> |
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
7125 |
|
echo "$as_me: creating $CONFIG_STATUS" >&6;} |
7126 |
|
cat >$CONFIG_STATUS <<_ACEOF |
7127 |
|
#! $SHELL |
7128 |
< |
# Generated automatically by configure. |
7128 |
> |
# Generated by $as_me. |
7129 |
|
# Run this file to recreate the current configuration. |
7130 |
|
# Compiler output produced by configure, useful for debugging |
7131 |
|
# configure, is in config.log if it exists. |
7132 |
|
|
7133 |
|
debug=false |
7134 |
+ |
ac_cs_recheck=false |
7135 |
+ |
ac_cs_silent=false |
7136 |
|
SHELL=\${CONFIG_SHELL-$SHELL} |
5681 |
– |
ac_cs_invocation="\$0 \$@" |
5682 |
– |
|
7137 |
|
_ACEOF |
7138 |
|
|
7139 |
|
cat >>$CONFIG_STATUS <<\_ACEOF |
7140 |
+ |
## --------------------- ## |
7141 |
+ |
## M4sh Initialization. ## |
7142 |
+ |
## --------------------- ## |
7143 |
+ |
|
7144 |
|
# Be Bourne compatible |
7145 |
|
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
7146 |
|
emulate sh |
7147 |
|
NULLCMD=: |
7148 |
+ |
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
7149 |
+ |
# is contrary to our usage. Disable this feature. |
7150 |
+ |
alias -g '${1+"$@"}'='"$@"' |
7151 |
|
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
7152 |
|
set -o posix |
7153 |
|
fi |
7154 |
|
|
7155 |
+ |
# Support unset when possible. |
7156 |
+ |
if (FOO=FOO; unset FOO) >/dev/null 2>&1; then |
7157 |
+ |
as_unset=unset |
7158 |
+ |
else |
7159 |
+ |
as_unset=false |
7160 |
+ |
fi |
7161 |
+ |
|
7162 |
+ |
|
7163 |
+ |
# Work around bugs in pre-3.0 UWIN ksh. |
7164 |
+ |
$as_unset ENV MAIL MAILPATH |
7165 |
+ |
PS1='$ ' |
7166 |
+ |
PS2='> ' |
7167 |
+ |
PS4='+ ' |
7168 |
+ |
|
7169 |
+ |
# NLS nuisances. |
7170 |
+ |
for as_var in \ |
7171 |
+ |
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
7172 |
+ |
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
7173 |
+ |
LC_TELEPHONE LC_TIME |
7174 |
+ |
do |
7175 |
+ |
if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then |
7176 |
+ |
eval $as_var=C; export $as_var |
7177 |
+ |
else |
7178 |
+ |
$as_unset $as_var |
7179 |
+ |
fi |
7180 |
+ |
done |
7181 |
+ |
|
7182 |
+ |
# Required to use basename. |
7183 |
+ |
if expr a : '\(a\)' >/dev/null 2>&1; then |
7184 |
+ |
as_expr=expr |
7185 |
+ |
else |
7186 |
+ |
as_expr=false |
7187 |
+ |
fi |
7188 |
+ |
|
7189 |
+ |
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
7190 |
+ |
as_basename=basename |
7191 |
+ |
else |
7192 |
+ |
as_basename=false |
7193 |
+ |
fi |
7194 |
+ |
|
7195 |
+ |
|
7196 |
|
# Name of the executable. |
7197 |
< |
as_me=`echo "$0" |sed 's,.*[\\/],,'` |
7197 |
> |
as_me=`$as_basename "$0" || |
7198 |
> |
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
7199 |
> |
X"$0" : 'X\(//\)$' \| \ |
7200 |
> |
X"$0" : 'X\(/\)$' \| \ |
7201 |
> |
. : '\(.\)' 2>/dev/null || |
7202 |
> |
echo X/"$0" | |
7203 |
> |
sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
7204 |
> |
/^X\/\(\/\/\)$/{ s//\1/; q; } |
7205 |
> |
/^X\/\(\/\).*/{ s//\1/; q; } |
7206 |
> |
s/.*/./; q'` |
7207 |
> |
|
7208 |
> |
|
7209 |
> |
# PATH needs CR, and LINENO needs CR and PATH. |
7210 |
> |
# Avoid depending upon Character Ranges. |
7211 |
> |
as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
7212 |
> |
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
7213 |
> |
as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
7214 |
> |
as_cr_digits='0123456789' |
7215 |
> |
as_cr_alnum=$as_cr_Letters$as_cr_digits |
7216 |
> |
|
7217 |
> |
# The user is always right. |
7218 |
> |
if test "${PATH_SEPARATOR+set}" != set; then |
7219 |
> |
echo "#! /bin/sh" >conf$$.sh |
7220 |
> |
echo "exit 0" >>conf$$.sh |
7221 |
> |
chmod +x conf$$.sh |
7222 |
> |
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
7223 |
> |
PATH_SEPARATOR=';' |
7224 |
> |
else |
7225 |
> |
PATH_SEPARATOR=: |
7226 |
> |
fi |
7227 |
> |
rm -f conf$$.sh |
7228 |
> |
fi |
7229 |
|
|
7230 |
+ |
|
7231 |
+ |
as_lineno_1=$LINENO |
7232 |
+ |
as_lineno_2=$LINENO |
7233 |
+ |
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
7234 |
+ |
test "x$as_lineno_1" != "x$as_lineno_2" && |
7235 |
+ |
test "x$as_lineno_3" = "x$as_lineno_2" || { |
7236 |
+ |
# Find who we are. Look in the path if we contain no path at all |
7237 |
+ |
# relative or not. |
7238 |
+ |
case $0 in |
7239 |
+ |
*[\\/]* ) as_myself=$0 ;; |
7240 |
+ |
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7241 |
+ |
for as_dir in $PATH |
7242 |
+ |
do |
7243 |
+ |
IFS=$as_save_IFS |
7244 |
+ |
test -z "$as_dir" && as_dir=. |
7245 |
+ |
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
7246 |
+ |
done |
7247 |
+ |
|
7248 |
+ |
;; |
7249 |
+ |
esac |
7250 |
+ |
# We did not find ourselves, most probably we were run as `sh COMMAND' |
7251 |
+ |
# in which case we are not to be found in the path. |
7252 |
+ |
if test "x$as_myself" = x; then |
7253 |
+ |
as_myself=$0 |
7254 |
+ |
fi |
7255 |
+ |
if test ! -f "$as_myself"; then |
7256 |
+ |
{ { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 |
7257 |
+ |
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} |
7258 |
+ |
{ (exit 1); exit 1; }; } |
7259 |
+ |
fi |
7260 |
+ |
case $CONFIG_SHELL in |
7261 |
+ |
'') |
7262 |
+ |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7263 |
+ |
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
7264 |
+ |
do |
7265 |
+ |
IFS=$as_save_IFS |
7266 |
+ |
test -z "$as_dir" && as_dir=. |
7267 |
+ |
for as_base in sh bash ksh sh5; do |
7268 |
+ |
case $as_dir in |
7269 |
+ |
/*) |
7270 |
+ |
if ("$as_dir/$as_base" -c ' |
7271 |
+ |
as_lineno_1=$LINENO |
7272 |
+ |
as_lineno_2=$LINENO |
7273 |
+ |
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
7274 |
+ |
test "x$as_lineno_1" != "x$as_lineno_2" && |
7275 |
+ |
test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
7276 |
+ |
$as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
7277 |
+ |
$as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
7278 |
+ |
CONFIG_SHELL=$as_dir/$as_base |
7279 |
+ |
export CONFIG_SHELL |
7280 |
+ |
exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
7281 |
+ |
fi;; |
7282 |
+ |
esac |
7283 |
+ |
done |
7284 |
+ |
done |
7285 |
+ |
;; |
7286 |
+ |
esac |
7287 |
+ |
|
7288 |
+ |
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
7289 |
+ |
# uniformly replaced by the line number. The first 'sed' inserts a |
7290 |
+ |
# line-number line before each line; the second 'sed' does the real |
7291 |
+ |
# work. The second script uses 'N' to pair each line-number line |
7292 |
+ |
# with the numbered line, and appends trailing '-' during |
7293 |
+ |
# substitution so that $LINENO is not a special case at line end. |
7294 |
+ |
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
7295 |
+ |
# second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
7296 |
+ |
sed '=' <$as_myself | |
7297 |
+ |
sed ' |
7298 |
+ |
N |
7299 |
+ |
s,$,-, |
7300 |
+ |
: loop |
7301 |
+ |
s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
7302 |
+ |
t loop |
7303 |
+ |
s,-$,, |
7304 |
+ |
s,^['$as_cr_digits']*\n,, |
7305 |
+ |
' >$as_me.lineno && |
7306 |
+ |
chmod +x $as_me.lineno || |
7307 |
+ |
{ { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 |
7308 |
+ |
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} |
7309 |
+ |
{ (exit 1); exit 1; }; } |
7310 |
+ |
|
7311 |
+ |
# Don't try to exec as it changes $[0], causing all sort of problems |
7312 |
+ |
# (the dirname of $[0] is not the place where we might find the |
7313 |
+ |
# original and so on. Autoconf is especially sensible to this). |
7314 |
+ |
. ./$as_me.lineno |
7315 |
+ |
# Exit status is that of the last command. |
7316 |
+ |
exit |
7317 |
+ |
} |
7318 |
+ |
|
7319 |
+ |
|
7320 |
+ |
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
7321 |
+ |
*c*,-n*) ECHO_N= ECHO_C=' |
7322 |
+ |
' ECHO_T=' ' ;; |
7323 |
+ |
*c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
7324 |
+ |
*) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
7325 |
+ |
esac |
7326 |
+ |
|
7327 |
|
if expr a : '\(a\)' >/dev/null 2>&1; then |
7328 |
|
as_expr=expr |
7329 |
|
else |
7348 |
|
fi |
7349 |
|
rm -f conf$$ conf$$.exe conf$$.file |
7350 |
|
|
7351 |
< |
as_executable_p="test -f" |
7352 |
< |
|
5723 |
< |
# Support unset when possible. |
5724 |
< |
if (FOO=FOO; unset FOO) >/dev/null 2>&1; then |
5725 |
< |
as_unset=unset |
7351 |
> |
if mkdir -p . 2>/dev/null; then |
7352 |
> |
as_mkdir_p=: |
7353 |
|
else |
7354 |
< |
as_unset=false |
7354 |
> |
as_mkdir_p=false |
7355 |
|
fi |
7356 |
|
|
7357 |
< |
# NLS nuisances. |
5731 |
< |
$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; } |
5732 |
< |
$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; } |
5733 |
< |
$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; } |
5734 |
< |
$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; } |
5735 |
< |
$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; } |
5736 |
< |
$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; } |
5737 |
< |
$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; } |
5738 |
< |
$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; } |
7357 |
> |
as_executable_p="test -f" |
7358 |
|
|
7359 |
+ |
# Sed expression to map a string onto a valid CPP name. |
7360 |
+ |
as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" |
7361 |
+ |
|
7362 |
+ |
# Sed expression to map a string onto a valid variable name. |
7363 |
+ |
as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" |
7364 |
+ |
|
7365 |
+ |
|
7366 |
|
# IFS |
7367 |
|
# We need space, tab and new line, in precisely that order. |
7368 |
|
as_nl=' |
7370 |
|
IFS=" $as_nl" |
7371 |
|
|
7372 |
|
# CDPATH. |
7373 |
< |
$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; } |
7373 |
> |
$as_unset CDPATH |
7374 |
|
|
7375 |
|
exec 6>&1 |
7376 |
|
|
7377 |
+ |
# Open the log real soon, to keep \$[0] and so on meaningful, and to |
7378 |
+ |
# report actual input values of CONFIG_FILES etc. instead of their |
7379 |
+ |
# values after options handling. Logging --version etc. is OK. |
7380 |
+ |
exec 5>>config.log |
7381 |
+ |
{ |
7382 |
+ |
echo |
7383 |
+ |
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
7384 |
+ |
## Running $as_me. ## |
7385 |
+ |
_ASBOX |
7386 |
+ |
} >&5 |
7387 |
+ |
cat >&5 <<_CSEOF |
7388 |
+ |
|
7389 |
+ |
This file was extended by OOPSE $as_me 1.0, which was |
7390 |
+ |
generated by GNU Autoconf 2.57. Invocation command line was |
7391 |
+ |
|
7392 |
+ |
CONFIG_FILES = $CONFIG_FILES |
7393 |
+ |
CONFIG_HEADERS = $CONFIG_HEADERS |
7394 |
+ |
CONFIG_LINKS = $CONFIG_LINKS |
7395 |
+ |
CONFIG_COMMANDS = $CONFIG_COMMANDS |
7396 |
+ |
$ $0 $@ |
7397 |
+ |
|
7398 |
+ |
_CSEOF |
7399 |
+ |
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 |
7400 |
+ |
echo >&5 |
7401 |
|
_ACEOF |
7402 |
|
|
7403 |
|
# Files that config.status was made for. |
7417 |
|
echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS |
7418 |
|
fi |
7419 |
|
|
7420 |
< |
cat >>$CONFIG_STATUS <<\EOF |
7420 |
> |
cat >>$CONFIG_STATUS <<\_ACEOF |
7421 |
|
|
7422 |
|
ac_cs_usage="\ |
7423 |
|
\`$as_me' instantiates files from templates according to the |
7427 |
|
|
7428 |
|
-h, --help print this help, then exit |
7429 |
|
-V, --version print version number, then exit |
7430 |
+ |
-q, --quiet do not print progress messages |
7431 |
|
-d, --debug don't remove temporary files |
7432 |
|
--recheck update $as_me by reconfiguring in the same conditions |
7433 |
|
--file=FILE[:TEMPLATE] |
7442 |
|
$config_headers |
7443 |
|
|
7444 |
|
Report bugs to <bug-autoconf@gnu.org>." |
7445 |
< |
EOF |
7445 |
> |
_ACEOF |
7446 |
|
|
7447 |
< |
cat >>$CONFIG_STATUS <<EOF |
7447 |
> |
cat >>$CONFIG_STATUS <<_ACEOF |
7448 |
|
ac_cs_version="\\ |
7449 |
|
OOPSE config.status 1.0 |
7450 |
< |
configured by $0, generated by GNU Autoconf 2.50, |
7450 |
> |
configured by $0, generated by GNU Autoconf 2.57, |
7451 |
|
with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
7452 |
|
|
7453 |
|
Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 |
7456 |
|
gives unlimited permission to copy, distribute and modify it." |
7457 |
|
srcdir=$srcdir |
7458 |
|
INSTALL="$INSTALL" |
7459 |
< |
EOF |
7459 |
> |
_ACEOF |
7460 |
|
|
7461 |
< |
cat >>$CONFIG_STATUS <<\EOF |
7461 |
> |
cat >>$CONFIG_STATUS <<\_ACEOF |
7462 |
|
# If no file are specified by the user, then we need to provide default |
7463 |
|
# value. By we need to know if files were specified by the user. |
7464 |
|
ac_need_defaults=: |
7468 |
|
--*=*) |
7469 |
|
ac_option=`expr "x$1" : 'x\([^=]*\)='` |
7470 |
|
ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` |
7471 |
< |
shift |
5821 |
< |
set dummy "$ac_option" "$ac_optarg" ${1+"$@"} |
5822 |
< |
shift |
7471 |
> |
ac_shift=: |
7472 |
|
;; |
7473 |
< |
-*);; |
7473 |
> |
-*) |
7474 |
> |
ac_option=$1 |
7475 |
> |
ac_optarg=$2 |
7476 |
> |
ac_shift=shift |
7477 |
> |
;; |
7478 |
|
*) # This is not an option, so the user has probably given explicit |
7479 |
|
# arguments. |
7480 |
+ |
ac_option=$1 |
7481 |
|
ac_need_defaults=false;; |
7482 |
|
esac |
7483 |
|
|
7484 |
< |
case $1 in |
7484 |
> |
case $ac_option in |
7485 |
|
# Handling of the options. |
7486 |
< |
EOF |
7487 |
< |
cat >>$CONFIG_STATUS <<EOF |
7486 |
> |
_ACEOF |
7487 |
> |
cat >>$CONFIG_STATUS <<\_ACEOF |
7488 |
|
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
7489 |
< |
echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion" |
5836 |
< |
exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;; |
5837 |
< |
EOF |
5838 |
< |
cat >>$CONFIG_STATUS <<\EOF |
7489 |
> |
ac_cs_recheck=: ;; |
7490 |
|
--version | --vers* | -V ) |
7491 |
|
echo "$ac_cs_version"; exit 0 ;; |
7492 |
|
--he | --h) |
7493 |
|
# Conflict between --help and --header |
7494 |
< |
{ { echo "$as_me:5843: error: ambiguous option: $1 |
7494 |
> |
{ { echo "$as_me:$LINENO: error: ambiguous option: $1 |
7495 |
|
Try \`$0 --help' for more information." >&5 |
7496 |
|
echo "$as_me: error: ambiguous option: $1 |
7497 |
|
Try \`$0 --help' for more information." >&2;} |
7501 |
|
--debug | --d* | -d ) |
7502 |
|
debug=: ;; |
7503 |
|
--file | --fil | --fi | --f ) |
7504 |
< |
shift |
7505 |
< |
CONFIG_FILES="$CONFIG_FILES $1" |
7504 |
> |
$ac_shift |
7505 |
> |
CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
7506 |
|
ac_need_defaults=false;; |
7507 |
|
--header | --heade | --head | --hea ) |
7508 |
< |
shift |
7509 |
< |
CONFIG_HEADERS="$CONFIG_HEADERS $1" |
7508 |
> |
$ac_shift |
7509 |
> |
CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
7510 |
|
ac_need_defaults=false;; |
7511 |
+ |
-q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
7512 |
+ |
| -silent | --silent | --silen | --sile | --sil | --si | --s) |
7513 |
+ |
ac_cs_silent=: ;; |
7514 |
|
|
5861 |
– |
# Handling of arguments. |
5862 |
– |
'Makefile' ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
5863 |
– |
'libBASS/Makefile' ) CONFIG_FILES="$CONFIG_FILES libBASS/Makefile" ;; |
5864 |
– |
'libmdtools/Makefile' ) CONFIG_FILES="$CONFIG_FILES libmdtools/Makefile" ;; |
5865 |
– |
'src/Makefile' ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; |
5866 |
– |
'utils/Makefile' ) CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;; |
5867 |
– |
'utils/sysbuilder/Makefile' ) CONFIG_FILES="$CONFIG_FILES utils/sysbuilder/Makefile" ;; |
5868 |
– |
'forceFields/Makefile' ) CONFIG_FILES="$CONFIG_FILES forceFields/Makefile" ;; |
5869 |
– |
'samples/Makefile' ) CONFIG_FILES="$CONFIG_FILES samples/Makefile" ;; |
5870 |
– |
'staticProps/Makefile' ) CONFIG_FILES="$CONFIG_FILES staticProps/Makefile" ;; |
5871 |
– |
'samples/alkane/Makefile' ) CONFIG_FILES="$CONFIG_FILES samples/alkane/Makefile" ;; |
5872 |
– |
'samples/argon/Makefile' ) CONFIG_FILES="$CONFIG_FILES samples/argon/Makefile" ;; |
5873 |
– |
'samples/beadLipid/Makefile' ) CONFIG_FILES="$CONFIG_FILES samples/beadLipid/Makefile" ;; |
5874 |
– |
'samples/lipid/Makefile' ) CONFIG_FILES="$CONFIG_FILES samples/lipid/Makefile" ;; |
5875 |
– |
'samples/metals/Makefile' ) CONFIG_FILES="$CONFIG_FILES samples/metals/Makefile" ;; |
5876 |
– |
'samples/water/Makefile' ) CONFIG_FILES="$CONFIG_FILES samples/water/Makefile" ;; |
5877 |
– |
'libmdtools/config.h' ) CONFIG_HEADERS="$CONFIG_HEADERS libmdtools/config.h" ;; |
5878 |
– |
|
7515 |
|
# This is an error. |
7516 |
< |
-*) { { echo "$as_me:5880: error: unrecognized option: $1 |
7516 |
> |
-*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
7517 |
|
Try \`$0 --help' for more information." >&5 |
7518 |
|
echo "$as_me: error: unrecognized option: $1 |
7519 |
|
Try \`$0 --help' for more information." >&2;} |
7520 |
|
{ (exit 1); exit 1; }; } ;; |
7521 |
< |
*) { { echo "$as_me:5885: error: invalid argument: $1" >&5 |
7522 |
< |
echo "$as_me: error: invalid argument: $1" >&2;} |
7523 |
< |
{ (exit 1); exit 1; }; };; |
7521 |
> |
|
7522 |
> |
*) ac_config_targets="$ac_config_targets $1" ;; |
7523 |
> |
|
7524 |
|
esac |
7525 |
|
shift |
7526 |
|
done |
7527 |
|
|
7528 |
< |
exec 5>>config.log |
5893 |
< |
cat >&5 << _ACEOF |
7528 |
> |
ac_configure_extra_args= |
7529 |
|
|
7530 |
< |
## ----------------------- ## |
7531 |
< |
## Running config.status. ## |
7532 |
< |
## ----------------------- ## |
7533 |
< |
|
5899 |
< |
This file was extended by $as_me (OOPSE 1.0) 2.50, executed with |
5900 |
< |
> $ac_cs_invocation |
5901 |
< |
on `(hostname || uname -n) 2>/dev/null | sed 1q` |
7530 |
> |
if $ac_cs_silent; then |
7531 |
> |
exec 6>/dev/null |
7532 |
> |
ac_configure_extra_args="$ac_configure_extra_args --silent" |
7533 |
> |
fi |
7534 |
|
|
7535 |
|
_ACEOF |
7536 |
< |
EOF |
7536 |
> |
cat >>$CONFIG_STATUS <<_ACEOF |
7537 |
> |
if \$ac_cs_recheck; then |
7538 |
> |
echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
7539 |
> |
exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
7540 |
> |
fi |
7541 |
|
|
7542 |
< |
cat >>$CONFIG_STATUS <<\EOF |
7542 |
> |
_ACEOF |
7543 |
> |
|
7544 |
> |
|
7545 |
> |
|
7546 |
> |
|
7547 |
> |
|
7548 |
> |
cat >>$CONFIG_STATUS <<\_ACEOF |
7549 |
> |
for ac_config_target in $ac_config_targets |
7550 |
> |
do |
7551 |
> |
case "$ac_config_target" in |
7552 |
> |
# Handling of arguments. |
7553 |
> |
"Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
7554 |
> |
"libBASS/Makefile" ) CONFIG_FILES="$CONFIG_FILES libBASS/Makefile" ;; |
7555 |
> |
"libmdtools/Makefile" ) CONFIG_FILES="$CONFIG_FILES libmdtools/Makefile" ;; |
7556 |
> |
"src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; |
7557 |
> |
"utils/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;; |
7558 |
> |
"utils/sysbuilder/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/sysbuilder/Makefile" ;; |
7559 |
> |
"forceFields/Makefile" ) CONFIG_FILES="$CONFIG_FILES forceFields/Makefile" ;; |
7560 |
> |
"samples/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/Makefile" ;; |
7561 |
> |
"staticProps/Makefile" ) CONFIG_FILES="$CONFIG_FILES staticProps/Makefile" ;; |
7562 |
> |
"third-party/Makefile" ) CONFIG_FILES="$CONFIG_FILES third-party/Makefile" ;; |
7563 |
> |
"samples/alkane/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/alkane/Makefile" ;; |
7564 |
> |
"samples/argon/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/argon/Makefile" ;; |
7565 |
> |
"samples/beadLipid/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/beadLipid/Makefile" ;; |
7566 |
> |
"samples/lipid/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/lipid/Makefile" ;; |
7567 |
> |
"samples/metals/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/metals/Makefile" ;; |
7568 |
> |
"samples/water/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/water/Makefile" ;; |
7569 |
> |
"libBASS/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS libBASS/config.h" ;; |
7570 |
> |
"libmdtools/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS libmdtools/config.h" ;; |
7571 |
> |
*) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
7572 |
> |
echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
7573 |
> |
{ (exit 1); exit 1; }; };; |
7574 |
> |
esac |
7575 |
> |
done |
7576 |
> |
|
7577 |
|
# If the user did not use the arguments to specify the items to instantiate, |
7578 |
|
# then the envvar interface is used. Set only those that are not. |
7579 |
|
# We use the long form for the default assignment because of an extremely |
7583 |
|
test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
7584 |
|
fi |
7585 |
|
|
7586 |
+ |
# Have a temporary directory for convenience. Make it in the build tree |
7587 |
+ |
# simply because there is no reason to put it here, and in addition, |
7588 |
+ |
# creating and moving files from /tmp can sometimes cause problems. |
7589 |
|
# Create a temporary directory, and hook for its removal unless debugging. |
7590 |
|
$debug || |
7591 |
|
{ |
7592 |
|
trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
7593 |
< |
trap '{ (exit $?); exit $?; }' 1 2 13 15 |
7593 |
> |
trap '{ (exit 1); exit 1; }' 1 2 13 15 |
7594 |
|
} |
7595 |
|
|
7596 |
|
# Create a (secure) tmp directory for tmp files. |
7597 |
< |
: ${TMPDIR=/tmp} |
7597 |
> |
|
7598 |
|
{ |
7599 |
< |
tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` && |
7599 |
> |
tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && |
7600 |
|
test -n "$tmp" && test -d "$tmp" |
7601 |
|
} || |
7602 |
|
{ |
7603 |
< |
tmp=$TMPDIR/cs$$-$RANDOM |
7603 |
> |
tmp=./confstat$$-$RANDOM |
7604 |
|
(umask 077 && mkdir $tmp) |
7605 |
|
} || |
7606 |
|
{ |
7607 |
< |
echo "$me: cannot create a temporary directory in $TMPDIR" >&2 |
7607 |
> |
echo "$me: cannot create a temporary directory in ." >&2 |
7608 |
|
{ (exit 1); exit 1; } |
7609 |
|
} |
7610 |
|
|
7611 |
< |
EOF |
7611 |
> |
_ACEOF |
7612 |
|
|
7613 |
< |
cat >>$CONFIG_STATUS <<EOF |
7613 |
> |
cat >>$CONFIG_STATUS <<_ACEOF |
7614 |
|
|
7615 |
|
# |
7616 |
|
# CONFIG_FILES section. |
7623 |
|
sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; |
7624 |
|
s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF |
7625 |
|
s,@SHELL@,$SHELL,;t t |
7626 |
+ |
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t |
7627 |
+ |
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t |
7628 |
+ |
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t |
7629 |
+ |
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t |
7630 |
+ |
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t |
7631 |
+ |
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t |
7632 |
|
s,@exec_prefix@,$exec_prefix,;t t |
7633 |
|
s,@prefix@,$prefix,;t t |
7634 |
|
s,@program_transform_name@,$program_transform_name,;t t |
7644 |
|
s,@oldincludedir@,$oldincludedir,;t t |
7645 |
|
s,@infodir@,$infodir,;t t |
7646 |
|
s,@mandir@,$mandir,;t t |
7647 |
< |
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t |
7648 |
< |
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t |
7649 |
< |
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t |
7650 |
< |
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t |
5972 |
< |
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t |
7647 |
> |
s,@build_alias@,$build_alias,;t t |
7648 |
> |
s,@host_alias@,$host_alias,;t t |
7649 |
> |
s,@target_alias@,$target_alias,;t t |
7650 |
> |
s,@DEFS@,$DEFS,;t t |
7651 |
|
s,@ECHO_C@,$ECHO_C,;t t |
7652 |
|
s,@ECHO_N@,$ECHO_N,;t t |
7653 |
|
s,@ECHO_T@,$ECHO_T,;t t |
5976 |
– |
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t |
5977 |
– |
s,@DEFS@,$DEFS,;t t |
7654 |
|
s,@LIBS@,$LIBS,;t t |
7655 |
|
s,@PROGNAME@,$PROGNAME,;t t |
7656 |
|
s,@debug@,$debug,;t t |
7672 |
|
s,@CXX@,$CXX,;t t |
7673 |
|
s,@CXXFLAGS@,$CXXFLAGS,;t t |
7674 |
|
s,@ac_ct_CXX@,$ac_ct_CXX,;t t |
7675 |
+ |
s,@OOPSE_TEMPLATE_FLAGS@,$OOPSE_TEMPLATE_FLAGS,;t t |
7676 |
+ |
s,@EXTRA_CC_FLAG@,$EXTRA_CC_FLAG,;t t |
7677 |
|
s,@F90@,$F90,;t t |
7678 |
|
s,@F90FLAGS@,$F90FLAGS,;t t |
7679 |
|
s,@ac_ct_F90@,$ac_ct_F90,;t t |
7680 |
|
s,@PREPFLAG@,$PREPFLAG,;t t |
7681 |
|
s,@PREPDEFFLAG@,$PREPDEFFLAG,;t t |
7682 |
+ |
s,@F90LIBS@,$F90LIBS,;t t |
7683 |
+ |
s,@F90_FUNC@,$F90_FUNC,;t t |
7684 |
+ |
s,@F90_FUNC_@,$F90_FUNC_,;t t |
7685 |
+ |
s,@MOD@,$MOD,;t t |
7686 |
+ |
s,@F90_WORK_FILES_ARG@,$F90_WORK_FILES_ARG,;t t |
7687 |
+ |
s,@MODDIRFLAG@,$MODDIRFLAG,;t t |
7688 |
+ |
s,@F90MODINCSPEC@,$F90MODINCSPEC,;t t |
7689 |
|
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
7690 |
|
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t |
7691 |
|
s,@INSTALL_DATA@,$INSTALL_DATA,;t t |
7698 |
|
s,@LEXLIB@,$LEXLIB,;t t |
7699 |
|
s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t |
7700 |
|
s,@AR@,$AR,;t t |
7701 |
< |
s,@F90LIBS@,$F90LIBS,;t t |
7702 |
< |
s,@F90_FUNC@,$F90_FUNC,;t t |
7703 |
< |
s,@F90_FUNC_@,$F90_FUNC_,;t t |
6019 |
< |
s,@MOD@,$MOD,;t t |
6020 |
< |
s,@F90_WORK_FILES_ARG@,$F90_WORK_FILES_ARG,;t t |
6021 |
< |
s,@MODDIRFLAG@,$MODDIRFLAG,;t t |
6022 |
< |
s,@F90MODINCSPEC@,$F90MODINCSPEC,;t t |
6023 |
< |
s,@mpi_dir@,$mpi_dir,;t t |
6024 |
< |
s,@MPI_LIBDIR@,$MPI_LIBDIR,;t t |
6025 |
< |
s,@MPI_INC@,$MPI_INC,;t t |
7701 |
> |
s,@MPI_LIB_DIR@,$MPI_LIB_DIR,;t t |
7702 |
> |
s,@MPI_INC_DIR@,$MPI_INC_DIR,;t t |
7703 |
> |
s,@MPI_F90_INC@,$MPI_F90_INC,;t t |
7704 |
|
s,@MPI_LIB@,$MPI_LIB,;t t |
7705 |
< |
s,@MPIF77@,$MPIF77,;t t |
7706 |
< |
s,@MPIF90@,$MPIF90,;t t |
6029 |
< |
s,@MPILIBS@,$MPILIBS,;t t |
7705 |
> |
s,@MPI_F90_LIB@,$MPI_F90_LIB,;t t |
7706 |
> |
s,@USE_MPI@,$USE_MPI,;t t |
7707 |
|
s,@CPP@,$CPP,;t t |
7708 |
+ |
s,@EGREP@,$EGREP,;t t |
7709 |
|
s,@SPRNG_LIBDIR@,$SPRNG_LIBDIR,;t t |
7710 |
|
s,@SPRNG_LIB@,$SPRNG_LIB,;t t |
7711 |
|
s,@SPRNG_INC@,$SPRNG_INC,;t t |
7714 |
|
s,@MKL_LIB@,$MKL_LIB,;t t |
7715 |
|
s,@MKL_INC@,$MKL_INC,;t t |
7716 |
|
s,@HAVE_MKL@,$HAVE_MKL,;t t |
6039 |
– |
s,@MPI_F90_MODS@,$MPI_F90_MODS,;t t |
6040 |
– |
s,@MPIMODLIBNAME@,$MPIMODLIBNAME,;t t |
7717 |
|
s,@BATEXT@,$BATEXT,;t t |
7718 |
|
s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t |
7719 |
|
s,@OOPSE@,$OOPSE,;t t |
7720 |
|
s,@OOPSE_HOME@,$OOPSE_HOME,;t t |
7721 |
|
s,@SUBDIRS@,$SUBDIRS,;t t |
7722 |
|
s,@FFLAGS@,$FFLAGS,;t t |
7723 |
+ |
s,@LIBOBJS@,$LIBOBJS,;t t |
7724 |
+ |
s,@LTLIBOBJS@,$LTLIBOBJS,;t t |
7725 |
|
CEOF |
7726 |
|
|
7727 |
< |
EOF |
7727 |
> |
_ACEOF |
7728 |
|
|
7729 |
< |
cat >>$CONFIG_STATUS <<\EOF |
7729 |
> |
cat >>$CONFIG_STATUS <<\_ACEOF |
7730 |
|
# Split the substitutions into bite-sized pieces for seds with |
7731 |
|
# small command number limits, like on Digital OSF/1 and HP-UX. |
7732 |
|
ac_max_sed_lines=48 |
7765 |
|
fi |
7766 |
|
fi # test -n "$CONFIG_FILES" |
7767 |
|
|
7768 |
< |
EOF |
7769 |
< |
cat >>$CONFIG_STATUS <<\EOF |
7768 |
> |
_ACEOF |
7769 |
> |
cat >>$CONFIG_STATUS <<\_ACEOF |
7770 |
|
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
7771 |
|
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
7772 |
|
case $ac_file in |
7780 |
|
esac |
7781 |
|
|
7782 |
|
# Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
7783 |
< |
ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
7783 |
> |
ac_dir=`(dirname "$ac_file") 2>/dev/null || |
7784 |
> |
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
7785 |
|
X"$ac_file" : 'X\(//\)[^/]' \| \ |
7786 |
|
X"$ac_file" : 'X\(//\)$' \| \ |
7787 |
|
X"$ac_file" : 'X\(/\)' \| \ |
7792 |
|
/^X\(\/\/\)$/{ s//\1/; q; } |
7793 |
|
/^X\(\/\).*/{ s//\1/; q; } |
7794 |
|
s/.*/./; q'` |
7795 |
< |
if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
7796 |
< |
{ case "$ac_dir" in |
6118 |
< |
[\\/]* | ?:[\\/]* ) as_incr_dir=;; |
6119 |
< |
*) as_incr_dir=.;; |
6120 |
< |
esac |
6121 |
< |
as_dummy="$ac_dir" |
6122 |
< |
for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do |
6123 |
< |
case $as_mkdir_dir in |
6124 |
< |
# Skip DOS drivespec |
6125 |
< |
?:) as_incr_dir=$as_mkdir_dir ;; |
6126 |
< |
*) |
6127 |
< |
as_incr_dir=$as_incr_dir/$as_mkdir_dir |
6128 |
< |
test -d "$as_incr_dir" || mkdir "$as_incr_dir" |
6129 |
< |
;; |
6130 |
< |
esac |
6131 |
< |
done; } |
6132 |
< |
|
6133 |
< |
ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`" |
6134 |
< |
# A "../" for each directory in $ac_dir_suffix. |
6135 |
< |
ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'` |
7795 |
> |
{ if $as_mkdir_p; then |
7796 |
> |
mkdir -p "$ac_dir" |
7797 |
|
else |
7798 |
< |
ac_dir_suffix= ac_dots= |
7799 |
< |
fi |
7798 |
> |
as_dir="$ac_dir" |
7799 |
> |
as_dirs= |
7800 |
> |
while test ! -d "$as_dir"; do |
7801 |
> |
as_dirs="$as_dir $as_dirs" |
7802 |
> |
as_dir=`(dirname "$as_dir") 2>/dev/null || |
7803 |
> |
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
7804 |
> |
X"$as_dir" : 'X\(//\)[^/]' \| \ |
7805 |
> |
X"$as_dir" : 'X\(//\)$' \| \ |
7806 |
> |
X"$as_dir" : 'X\(/\)' \| \ |
7807 |
> |
. : '\(.\)' 2>/dev/null || |
7808 |
> |
echo X"$as_dir" | |
7809 |
> |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
7810 |
> |
/^X\(\/\/\)[^/].*/{ s//\1/; q; } |
7811 |
> |
/^X\(\/\/\)$/{ s//\1/; q; } |
7812 |
> |
/^X\(\/\).*/{ s//\1/; q; } |
7813 |
> |
s/.*/./; q'` |
7814 |
> |
done |
7815 |
> |
test ! -n "$as_dirs" || mkdir $as_dirs |
7816 |
> |
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
7817 |
> |
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
7818 |
> |
{ (exit 1); exit 1; }; }; } |
7819 |
|
|
7820 |
< |
case $srcdir in |
7821 |
< |
.) ac_srcdir=. |
7822 |
< |
if test -z "$ac_dots"; then |
7823 |
< |
ac_top_srcdir=. |
7824 |
< |
else |
7825 |
< |
ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'` |
7826 |
< |
fi ;; |
7827 |
< |
[\\/]* | ?:[\\/]* ) |
7828 |
< |
ac_srcdir=$srcdir$ac_dir_suffix; |
7829 |
< |
ac_top_srcdir=$srcdir ;; |
7820 |
> |
ac_builddir=. |
7821 |
> |
|
7822 |
> |
if test "$ac_dir" != .; then |
7823 |
> |
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
7824 |
> |
# A "../" for each directory in $ac_dir_suffix. |
7825 |
> |
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
7826 |
> |
else |
7827 |
> |
ac_dir_suffix= ac_top_builddir= |
7828 |
> |
fi |
7829 |
> |
|
7830 |
> |
case $srcdir in |
7831 |
> |
.) # No --srcdir option. We are building in place. |
7832 |
> |
ac_srcdir=. |
7833 |
> |
if test -z "$ac_top_builddir"; then |
7834 |
> |
ac_top_srcdir=. |
7835 |
> |
else |
7836 |
> |
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
7837 |
> |
fi ;; |
7838 |
> |
[\\/]* | ?:[\\/]* ) # Absolute path. |
7839 |
> |
ac_srcdir=$srcdir$ac_dir_suffix; |
7840 |
> |
ac_top_srcdir=$srcdir ;; |
7841 |
|
*) # Relative path. |
7842 |
< |
ac_srcdir=$ac_dots$srcdir$ac_dir_suffix |
7843 |
< |
ac_top_srcdir=$ac_dots$srcdir ;; |
7844 |
< |
esac |
7842 |
> |
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
7843 |
> |
ac_top_srcdir=$ac_top_builddir$srcdir ;; |
7844 |
> |
esac |
7845 |
> |
# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be |
7846 |
> |
# absolute. |
7847 |
> |
ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` |
7848 |
> |
ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` |
7849 |
> |
ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` |
7850 |
> |
ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` |
7851 |
|
|
7852 |
+ |
|
7853 |
|
case $INSTALL in |
7854 |
|
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
7855 |
< |
*) ac_INSTALL=$ac_dots$INSTALL ;; |
7855 |
> |
*) ac_INSTALL=$ac_top_builddir$INSTALL ;; |
7856 |
|
esac |
7857 |
|
|
7858 |
|
if test x"$ac_file" != x-; then |
7859 |
< |
{ echo "$as_me:6161: creating $ac_file" >&5 |
7859 |
> |
{ echo "$as_me:$LINENO: creating $ac_file" >&5 |
7860 |
|
echo "$as_me: creating $ac_file" >&6;} |
7861 |
|
rm -f "$ac_file" |
7862 |
|
fi |
7863 |
|
# Let's still pretend it is `configure' which instantiates (i.e., don't |
7864 |
|
# use $as_me), people would be surprised to read: |
7865 |
< |
# /* config.h. Generated automatically by config.status. */ |
7866 |
< |
configure_input="Generated automatically from `echo $ac_file_in | |
7867 |
< |
sed 's,.*/,,'` by configure." |
7865 |
> |
# /* config.h. Generated by config.status. */ |
7866 |
> |
if test x"$ac_file" = x-; then |
7867 |
> |
configure_input= |
7868 |
> |
else |
7869 |
> |
configure_input="$ac_file. " |
7870 |
> |
fi |
7871 |
> |
configure_input=$configure_input"Generated from `echo $ac_file_in | |
7872 |
> |
sed 's,.*/,,'` by configure." |
7873 |
|
|
7874 |
|
# First look for the input files in the build tree, otherwise in the |
7875 |
|
# src tree. |
7879 |
|
-) echo $tmp/stdin ;; |
7880 |
|
[\\/$]*) |
7881 |
|
# Absolute (can't be DOS-style, as IFS=:) |
7882 |
< |
test -f "$f" || { { echo "$as_me:6179: error: cannot find input file: $f" >&5 |
7882 |
> |
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
7883 |
|
echo "$as_me: error: cannot find input file: $f" >&2;} |
7884 |
|
{ (exit 1); exit 1; }; } |
7885 |
|
echo $f;; |
7892 |
|
echo $srcdir/$f |
7893 |
|
else |
7894 |
|
# /dev/null tree |
7895 |
< |
{ { echo "$as_me:6192: error: cannot find input file: $f" >&5 |
7895 |
> |
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
7896 |
|
echo "$as_me: error: cannot find input file: $f" >&2;} |
7897 |
|
{ (exit 1); exit 1; }; } |
7898 |
|
fi;; |
7899 |
|
esac |
7900 |
|
done` || { (exit 1); exit 1; } |
7901 |
< |
EOF |
7902 |
< |
cat >>$CONFIG_STATUS <<EOF |
7901 |
> |
_ACEOF |
7902 |
> |
cat >>$CONFIG_STATUS <<_ACEOF |
7903 |
|
sed "$ac_vpsub |
7904 |
|
$extrasub |
7905 |
< |
EOF |
7906 |
< |
cat >>$CONFIG_STATUS <<\EOF |
7905 |
> |
_ACEOF |
7906 |
> |
cat >>$CONFIG_STATUS <<\_ACEOF |
7907 |
|
:t |
7908 |
|
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
7909 |
|
s,@configure_input@,$configure_input,;t t |
7910 |
|
s,@srcdir@,$ac_srcdir,;t t |
7911 |
+ |
s,@abs_srcdir@,$ac_abs_srcdir,;t t |
7912 |
|
s,@top_srcdir@,$ac_top_srcdir,;t t |
7913 |
+ |
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t |
7914 |
+ |
s,@builddir@,$ac_builddir,;t t |
7915 |
+ |
s,@abs_builddir@,$ac_abs_builddir,;t t |
7916 |
+ |
s,@top_builddir@,$ac_top_builddir,;t t |
7917 |
+ |
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t |
7918 |
|
s,@INSTALL@,$ac_INSTALL,;t t |
7919 |
|
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out |
7920 |
|
rm -f $tmp/stdin |
7926 |
|
fi |
7927 |
|
|
7928 |
|
done |
7929 |
< |
EOF |
7930 |
< |
cat >>$CONFIG_STATUS <<\EOF |
7929 |
> |
_ACEOF |
7930 |
> |
cat >>$CONFIG_STATUS <<\_ACEOF |
7931 |
|
|
7932 |
|
# |
7933 |
|
# CONFIG_HEADER section. |
7959 |
|
* ) ac_file_in=$ac_file.in ;; |
7960 |
|
esac |
7961 |
|
|
7962 |
< |
test x"$ac_file" != x- && { echo "$as_me:6253: creating $ac_file" >&5 |
7962 |
> |
test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
7963 |
|
echo "$as_me: creating $ac_file" >&6;} |
7964 |
|
|
7965 |
|
# First look for the input files in the build tree, otherwise in the |
7970 |
|
-) echo $tmp/stdin ;; |
7971 |
|
[\\/$]*) |
7972 |
|
# Absolute (can't be DOS-style, as IFS=:) |
7973 |
< |
test -f "$f" || { { echo "$as_me:6264: error: cannot find input file: $f" >&5 |
7973 |
> |
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
7974 |
|
echo "$as_me: error: cannot find input file: $f" >&2;} |
7975 |
|
{ (exit 1); exit 1; }; } |
7976 |
|
echo $f;; |
7983 |
|
echo $srcdir/$f |
7984 |
|
else |
7985 |
|
# /dev/null tree |
7986 |
< |
{ { echo "$as_me:6277: error: cannot find input file: $f" >&5 |
7986 |
> |
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
7987 |
|
echo "$as_me: error: cannot find input file: $f" >&2;} |
7988 |
|
{ (exit 1); exit 1; }; } |
7989 |
|
fi;; |
7992 |
|
# Remove the trailing spaces. |
7993 |
|
sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
7994 |
|
|
7995 |
< |
EOF |
7995 |
> |
_ACEOF |
7996 |
|
|
7997 |
|
# Transform confdefs.h into two sed scripts, `conftest.defines' and |
7998 |
|
# `conftest.undefs', that substitutes the proper values into |
8008 |
|
# `end' is used to avoid that the second main sed command (meant for |
8009 |
|
# 0-ary CPP macros) applies to n-ary macro definitions. |
8010 |
|
# See the Autoconf documentation for `clear'. |
8011 |
< |
cat >confdef2sed.sed <<\EOF |
8011 |
> |
cat >confdef2sed.sed <<\_ACEOF |
8012 |
|
s/[\\&,]/\\&/g |
8013 |
|
s,[\\$`],\\&,g |
8014 |
|
t clear |
8015 |
|
: clear |
8016 |
< |
s,^[ ]*#[ ]*define[ ][ ]*\(\([^ (][^ (]*\)([^)]*)\)[ ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp |
8016 |
> |
s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
8017 |
|
t end |
8018 |
|
s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
8019 |
|
: end |
8020 |
< |
EOF |
8020 |
> |
_ACEOF |
8021 |
|
# If some macros were called several times there might be several times |
8022 |
|
# the same #defines, which is useless. Nevertheless, we may not want to |
8023 |
|
# sort them, since we want the *last* AC-DEFINE to be honored. |
8028 |
|
# This sed command replaces #undef with comments. This is necessary, for |
8029 |
|
# example, in the case of _POSIX_SOURCE, which is predefined and required |
8030 |
|
# on some systems where configure will not decide to define it. |
8031 |
< |
cat >>conftest.undefs <<\EOF |
8031 |
> |
cat >>conftest.undefs <<\_ACEOF |
8032 |
|
s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
8033 |
< |
EOF |
8033 |
> |
_ACEOF |
8034 |
|
|
8035 |
|
# Break up conftest.defines because some shells have a limit on the size |
8036 |
|
# of here documents, and old seds have small limits too (100 cmds). |
8037 |
|
echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS |
8038 |
< |
echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
8038 |
> |
echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
8039 |
|
echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
8040 |
|
echo ' :' >>$CONFIG_STATUS |
8041 |
|
rm -f conftest.tail |
8059 |
|
mv conftest.tail conftest.defines |
8060 |
|
done |
8061 |
|
rm -f conftest.defines |
8062 |
< |
echo ' fi # egrep' >>$CONFIG_STATUS |
8062 |
> |
echo ' fi # grep' >>$CONFIG_STATUS |
8063 |
|
echo >>$CONFIG_STATUS |
8064 |
|
|
8065 |
|
# Break up conftest.undefs because some shells have a limit on the size |
8087 |
|
done |
8088 |
|
rm -f conftest.undefs |
8089 |
|
|
8090 |
< |
cat >>$CONFIG_STATUS <<\EOF |
8090 |
> |
cat >>$CONFIG_STATUS <<\_ACEOF |
8091 |
|
# Let's still pretend it is `configure' which instantiates (i.e., don't |
8092 |
|
# use $as_me), people would be surprised to read: |
8093 |
< |
# /* config.h. Generated automatically by config.status. */ |
8093 |
> |
# /* config.h. Generated by config.status. */ |
8094 |
|
if test x"$ac_file" = x-; then |
8095 |
< |
echo "/* Generated automatically by configure. */" >$tmp/config.h |
8095 |
> |
echo "/* Generated by configure. */" >$tmp/config.h |
8096 |
|
else |
8097 |
< |
echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h |
8097 |
> |
echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
8098 |
|
fi |
8099 |
|
cat $tmp/in >>$tmp/config.h |
8100 |
|
rm -f $tmp/in |
8101 |
|
if test x"$ac_file" != x-; then |
8102 |
< |
if cmp -s $ac_file $tmp/config.h 2>/dev/null; then |
8103 |
< |
{ echo "$as_me:6394: $ac_file is unchanged" >&5 |
8102 |
> |
if diff $ac_file $tmp/config.h >/dev/null 2>&1; then |
8103 |
> |
{ echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
8104 |
|
echo "$as_me: $ac_file is unchanged" >&6;} |
8105 |
|
else |
8106 |
< |
ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
8106 |
> |
ac_dir=`(dirname "$ac_file") 2>/dev/null || |
8107 |
> |
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
8108 |
|
X"$ac_file" : 'X\(//\)[^/]' \| \ |
8109 |
|
X"$ac_file" : 'X\(//\)$' \| \ |
8110 |
|
X"$ac_file" : 'X\(/\)' \| \ |
8115 |
|
/^X\(\/\/\)$/{ s//\1/; q; } |
8116 |
|
/^X\(\/\).*/{ s//\1/; q; } |
8117 |
|
s/.*/./; q'` |
8118 |
< |
if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
8119 |
< |
{ case "$ac_dir" in |
8120 |
< |
[\\/]* | ?:[\\/]* ) as_incr_dir=;; |
8121 |
< |
*) as_incr_dir=.;; |
8122 |
< |
esac |
8123 |
< |
as_dummy="$ac_dir" |
8124 |
< |
for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do |
8125 |
< |
case $as_mkdir_dir in |
8126 |
< |
# Skip DOS drivespec |
8127 |
< |
?:) as_incr_dir=$as_mkdir_dir ;; |
8128 |
< |
*) |
8129 |
< |
as_incr_dir=$as_incr_dir/$as_mkdir_dir |
8130 |
< |
test -d "$as_incr_dir" || mkdir "$as_incr_dir" |
8131 |
< |
;; |
8132 |
< |
esac |
8133 |
< |
done; } |
8118 |
> |
{ if $as_mkdir_p; then |
8119 |
> |
mkdir -p "$ac_dir" |
8120 |
> |
else |
8121 |
> |
as_dir="$ac_dir" |
8122 |
> |
as_dirs= |
8123 |
> |
while test ! -d "$as_dir"; do |
8124 |
> |
as_dirs="$as_dir $as_dirs" |
8125 |
> |
as_dir=`(dirname "$as_dir") 2>/dev/null || |
8126 |
> |
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
8127 |
> |
X"$as_dir" : 'X\(//\)[^/]' \| \ |
8128 |
> |
X"$as_dir" : 'X\(//\)$' \| \ |
8129 |
> |
X"$as_dir" : 'X\(/\)' \| \ |
8130 |
> |
. : '\(.\)' 2>/dev/null || |
8131 |
> |
echo X"$as_dir" | |
8132 |
> |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
8133 |
> |
/^X\(\/\/\)[^/].*/{ s//\1/; q; } |
8134 |
> |
/^X\(\/\/\)$/{ s//\1/; q; } |
8135 |
> |
/^X\(\/\).*/{ s//\1/; q; } |
8136 |
> |
s/.*/./; q'` |
8137 |
> |
done |
8138 |
> |
test ! -n "$as_dirs" || mkdir $as_dirs |
8139 |
> |
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
8140 |
> |
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
8141 |
> |
{ (exit 1); exit 1; }; }; } |
8142 |
|
|
6425 |
– |
fi |
8143 |
|
rm -f $ac_file |
8144 |
|
mv $tmp/config.h $ac_file |
8145 |
|
fi |
8148 |
|
rm -f $tmp/config.h |
8149 |
|
fi |
8150 |
|
done |
8151 |
< |
EOF |
8151 |
> |
_ACEOF |
8152 |
|
|
8153 |
< |
cat >>$CONFIG_STATUS <<\EOF |
8153 |
> |
cat >>$CONFIG_STATUS <<\_ACEOF |
8154 |
|
|
8155 |
|
{ (exit 0); exit 0; } |
8156 |
< |
EOF |
8156 |
> |
_ACEOF |
8157 |
|
chmod +x $CONFIG_STATUS |
8158 |
|
ac_clean_files=$ac_clean_files_save |
8159 |
|
|
8160 |
+ |
|
8161 |
|
# configure is writing to config.log, and then calls config.status. |
8162 |
|
# config.status does its own redirection, appending to config.log. |
8163 |
|
# Unfortunately, on DOS this fails, as config.log is still kept open |
8168 |
|
# need to make the FD available again. |
8169 |
|
if test "$no_create" != yes; then |
8170 |
|
ac_cs_success=: |
8171 |
+ |
ac_config_status_args= |
8172 |
+ |
test "$silent" = yes && |
8173 |
+ |
ac_config_status_args="$ac_config_status_args --quiet" |
8174 |
|
exec 5>/dev/null |
8175 |
< |
$SHELL $CONFIG_STATUS || ac_cs_success=false |
8175 |
> |
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
8176 |
|
exec 5>>config.log |
8177 |
|
# Use ||, not &&, to avoid exiting from the if with $? = 1, which |
8178 |
|
# would make configure fail if this is the last instruction. |