ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/OOPSE/configure
Revision: 838
Committed: Wed Oct 29 03:06:51 2003 UTC (20 years, 8 months ago) by gezelter
File size: 236681 byte(s)
Log Message:
compatibility fixes

File Contents

# Content
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
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, 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=`$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
199 as_expr=false
200 fi
201
202 rm -f conf$$ conf$$.exe conf$$.file
203 echo >conf$$.file
204 if ln -s conf$$.file conf$$ 2>/dev/null; then
205 # We could just check for DJGPP; but this test a) works b) is more generic
206 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207 if test -f conf$$.exe; then
208 # Don't use ln at all; we don't have any links
209 as_ln_s='cp -p'
210 else
211 as_ln_s='ln -s'
212 fi
213 elif ln conf$$.file conf$$ 2>/dev/null; then
214 as_ln_s=ln
215 else
216 as_ln_s='cp -p'
217 fi
218 rm -f conf$$ conf$$.exe conf$$.file
219
220 if mkdir -p . 2>/dev/null; then
221 as_mkdir_p=:
222 else
223 as_mkdir_p=false
224 fi
225
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='
238 '
239 IFS=" $as_nl"
240
241 # 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.
248 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
249
250 exec 6>&1
251
252 #
253 # Initializations.
254 #
255 ac_default_prefix=/usr/local
256 ac_config_libobj_dir=.
257 cross_compiling=no
258 subdirs=
259 MFLAGS=
260 MAKEFLAGS=
261 SHELL=${CONFIG_SHELL-/bin/sh}
262
263 # Maximum number of lines to put in a shell here document.
264 # This variable seems obsolete. It should probably be removed, and
265 # only ac_max_sed_lines should be used.
266 : ${ac_max_here_lines=38}
267
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
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 F90 F90FLAGS ac_ct_F90 PREPFLAG PREPDEFFLAG INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S SET_MAKE RANLIB ac_ct_RANLIB YACC LEX LEXLIB LEX_OUTPUT_ROOT AR F90LIBS F90_FUNC F90_FUNC_ MOD F90_WORK_FILES_ARG MODDIRFLAG F90MODINCSPEC mpi_dir MPI_LIBDIR MPI_INC MPI_LIB MPIF77 MPIF90 MPILIBS CPP EGREP SPRNG_LIBDIR SPRNG_LIB SPRNG_INC HAVE_SPRNG MKL_LIBDIR MKL_LIB MKL_INC HAVE_MKL MPI_F90_MODS MPIMODLIBNAME 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
320 # The variables have the same names as the options, with
321 # dashes changed to underlines.
322 cache_file=/dev/null
323 exec_prefix=NONE
324 no_create=
325 no_recursion=
326 prefix=NONE
327 program_prefix=NONE
328 program_suffix=NONE
329 program_transform_name=s,x,x,
330 silent=
331 site=
332 srcdir=
333 verbose=
334 x_includes=NONE
335 x_libraries=NONE
336
337 # Installation directory options.
338 # These are left unexpanded so users can "make install exec_prefix=/foo"
339 # and all the variables that are supposed to be based on exec_prefix
340 # by default will actually change.
341 # Use braces instead of parens because sh, perl, etc. also accept them.
342 bindir='${exec_prefix}/bin'
343 sbindir='${exec_prefix}/sbin'
344 libexecdir='${exec_prefix}/libexec'
345 datadir='${prefix}/share'
346 sysconfdir='${prefix}/etc'
347 sharedstatedir='${prefix}/com'
348 localstatedir='${prefix}/var'
349 libdir='${exec_prefix}/lib'
350 includedir='${prefix}/include'
351 oldincludedir='/usr/include'
352 infodir='${prefix}/info'
353 mandir='${prefix}/man'
354
355 ac_prev=
356 for ac_option
357 do
358 # If the previous option needs an argument, assign it.
359 if test -n "$ac_prev"; then
360 eval "$ac_prev=\$ac_option"
361 ac_prev=
362 continue
363 fi
364
365 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
366
367 # Accept the important Cygnus configure options, so we can diagnose typos.
368
369 case $ac_option in
370
371 -bindir | --bindir | --bindi | --bind | --bin | --bi)
372 ac_prev=bindir ;;
373 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
374 bindir=$ac_optarg ;;
375
376 -build | --build | --buil | --bui | --bu)
377 ac_prev=build_alias ;;
378 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
379 build_alias=$ac_optarg ;;
380
381 -cache-file | --cache-file | --cache-fil | --cache-fi \
382 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
383 ac_prev=cache_file ;;
384 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
385 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
386 cache_file=$ac_optarg ;;
387
388 --config-cache | -C)
389 cache_file=config.cache ;;
390
391 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
392 ac_prev=datadir ;;
393 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
394 | --da=*)
395 datadir=$ac_optarg ;;
396
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" : ".*[^-_$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'`
404 eval "enable_$ac_feature=no" ;;
405
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" : ".*[^-_$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'`
413 case $ac_option in
414 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
415 *) ac_optarg=yes ;;
416 esac
417 eval "enable_$ac_feature='$ac_optarg'" ;;
418
419 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
420 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
421 | --exec | --exe | --ex)
422 ac_prev=exec_prefix ;;
423 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
424 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
425 | --exec=* | --exe=* | --ex=*)
426 exec_prefix=$ac_optarg ;;
427
428 -gas | --gas | --ga | --g)
429 # Obsolete; use --with-gas.
430 with_gas=yes ;;
431
432 -help | --help | --hel | --he | -h)
433 ac_init_help=long ;;
434 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
435 ac_init_help=recursive ;;
436 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
437 ac_init_help=short ;;
438
439 -host | --host | --hos | --ho)
440 ac_prev=host_alias ;;
441 -host=* | --host=* | --hos=* | --ho=*)
442 host_alias=$ac_optarg ;;
443
444 -includedir | --includedir | --includedi | --included | --include \
445 | --includ | --inclu | --incl | --inc)
446 ac_prev=includedir ;;
447 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
448 | --includ=* | --inclu=* | --incl=* | --inc=*)
449 includedir=$ac_optarg ;;
450
451 -infodir | --infodir | --infodi | --infod | --info | --inf)
452 ac_prev=infodir ;;
453 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
454 infodir=$ac_optarg ;;
455
456 -libdir | --libdir | --libdi | --libd)
457 ac_prev=libdir ;;
458 -libdir=* | --libdir=* | --libdi=* | --libd=*)
459 libdir=$ac_optarg ;;
460
461 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
462 | --libexe | --libex | --libe)
463 ac_prev=libexecdir ;;
464 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
465 | --libexe=* | --libex=* | --libe=*)
466 libexecdir=$ac_optarg ;;
467
468 -localstatedir | --localstatedir | --localstatedi | --localstated \
469 | --localstate | --localstat | --localsta | --localst \
470 | --locals | --local | --loca | --loc | --lo)
471 ac_prev=localstatedir ;;
472 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
473 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
474 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
475 localstatedir=$ac_optarg ;;
476
477 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
478 ac_prev=mandir ;;
479 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
480 mandir=$ac_optarg ;;
481
482 -nfp | --nfp | --nf)
483 # Obsolete; use --without-fp.
484 with_fp=no ;;
485
486 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
487 | --no-cr | --no-c | -n)
488 no_create=yes ;;
489
490 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
491 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
492 no_recursion=yes ;;
493
494 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
495 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
496 | --oldin | --oldi | --old | --ol | --o)
497 ac_prev=oldincludedir ;;
498 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
499 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
500 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
501 oldincludedir=$ac_optarg ;;
502
503 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
504 ac_prev=prefix ;;
505 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
506 prefix=$ac_optarg ;;
507
508 -program-prefix | --program-prefix | --program-prefi | --program-pref \
509 | --program-pre | --program-pr | --program-p)
510 ac_prev=program_prefix ;;
511 -program-prefix=* | --program-prefix=* | --program-prefi=* \
512 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
513 program_prefix=$ac_optarg ;;
514
515 -program-suffix | --program-suffix | --program-suffi | --program-suff \
516 | --program-suf | --program-su | --program-s)
517 ac_prev=program_suffix ;;
518 -program-suffix=* | --program-suffix=* | --program-suffi=* \
519 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
520 program_suffix=$ac_optarg ;;
521
522 -program-transform-name | --program-transform-name \
523 | --program-transform-nam | --program-transform-na \
524 | --program-transform-n | --program-transform- \
525 | --program-transform | --program-transfor \
526 | --program-transfo | --program-transf \
527 | --program-trans | --program-tran \
528 | --progr-tra | --program-tr | --program-t)
529 ac_prev=program_transform_name ;;
530 -program-transform-name=* | --program-transform-name=* \
531 | --program-transform-nam=* | --program-transform-na=* \
532 | --program-transform-n=* | --program-transform-=* \
533 | --program-transform=* | --program-transfor=* \
534 | --program-transfo=* | --program-transf=* \
535 | --program-trans=* | --program-tran=* \
536 | --progr-tra=* | --program-tr=* | --program-t=*)
537 program_transform_name=$ac_optarg ;;
538
539 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
540 | -silent | --silent | --silen | --sile | --sil)
541 silent=yes ;;
542
543 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
544 ac_prev=sbindir ;;
545 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
546 | --sbi=* | --sb=*)
547 sbindir=$ac_optarg ;;
548
549 -sharedstatedir | --sharedstatedir | --sharedstatedi \
550 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
551 | --sharedst | --shareds | --shared | --share | --shar \
552 | --sha | --sh)
553 ac_prev=sharedstatedir ;;
554 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
555 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
556 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
557 | --sha=* | --sh=*)
558 sharedstatedir=$ac_optarg ;;
559
560 -site | --site | --sit)
561 ac_prev=site ;;
562 -site=* | --site=* | --sit=*)
563 site=$ac_optarg ;;
564
565 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
566 ac_prev=srcdir ;;
567 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
568 srcdir=$ac_optarg ;;
569
570 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
571 | --syscon | --sysco | --sysc | --sys | --sy)
572 ac_prev=sysconfdir ;;
573 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
574 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
575 sysconfdir=$ac_optarg ;;
576
577 -target | --target | --targe | --targ | --tar | --ta | --t)
578 ac_prev=target_alias ;;
579 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
580 target_alias=$ac_optarg ;;
581
582 -v | -verbose | --verbose | --verbos | --verbo | --verb)
583 verbose=yes ;;
584
585 -version | --version | --versio | --versi | --vers | -V)
586 ac_init_version=: ;;
587
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" : ".*[^-_$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'`
595 case $ac_option in
596 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
597 *) ac_optarg=yes ;;
598 esac
599 eval "with_$ac_package='$ac_optarg'" ;;
600
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" : ".*[^-_$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'`
608 eval "with_$ac_package=no" ;;
609
610 --x)
611 # Obsolete; use --with-x.
612 with_x=yes ;;
613
614 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
615 | --x-incl | --x-inc | --x-in | --x-i)
616 ac_prev=x_includes ;;
617 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
618 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
619 x_includes=$ac_optarg ;;
620
621 -x-libraries | --x-libraries | --x-librarie | --x-librari \
622 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
623 ac_prev=x_libraries ;;
624 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
625 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
626 x_libraries=$ac_optarg ;;
627
628 -*) { echo "$as_me: error: unrecognized option: $ac_option
629 Try \`$0 --help' for more information." >&2
630 { (exit 1); exit 1; }; }
631 ;;
632
633 *=*)
634 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
635 # Reject names that are not valid shell variable names.
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"`
640 eval "$ac_envvar='$ac_optarg'"
641 export $ac_envvar ;;
642
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" : ".*[^-._$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 ;;
650
651 esac
652 done
653
654 if test -n "$ac_prev"; then
655 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
656 { echo "$as_me: error: missing argument to $ac_option" >&2
657 { (exit 1); exit 1; }; }
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
674 do
675 eval ac_val=$`echo $ac_var`
676 case $ac_val in
677 [\\/$]* | ?:[\\/]* ) ;;
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: To remove some day.
691 if test "x$host_alias" != x; then
692 if test "x$build_alias" = x; then
693 cross_compiling=maybe
694 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
695 If a cross compiler is detected then cross compile mode will be used." >&2
696 elif test "x$build_alias" != "x$host_alias"; then
697 cross_compiling=yes
698 fi
699 fi
700
701 ac_tool_prefix=
702 test -n "$host_alias" && ac_tool_prefix=$host_alias-
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_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=..
726 fi
727 else
728 ac_srcdir_defaulted=no
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 ($ac_unique_file) in $ac_confdir or .." >&2
733 { (exit 1); exit 1; }; }
734 else
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
745 ac_cv_env_build_alias_set=${build_alias+set}
746 ac_cv_env_build_alias_value=$build_alias
747 ac_env_host_alias_set=${host_alias+set}
748 ac_env_host_alias_value=$host_alias
749 ac_cv_env_host_alias_set=${host_alias+set}
750 ac_cv_env_host_alias_value=$host_alias
751 ac_env_target_alias_set=${target_alias+set}
752 ac_env_target_alias_value=$target_alias
753 ac_cv_env_target_alias_set=${target_alias+set}
754 ac_cv_env_target_alias_value=$target_alias
755 ac_env_CC_set=${CC+set}
756 ac_env_CC_value=$CC
757 ac_cv_env_CC_set=${CC+set}
758 ac_cv_env_CC_value=$CC
759 ac_env_CFLAGS_set=${CFLAGS+set}
760 ac_env_CFLAGS_value=$CFLAGS
761 ac_cv_env_CFLAGS_set=${CFLAGS+set}
762 ac_cv_env_CFLAGS_value=$CFLAGS
763 ac_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_env_LDFLAGS_value=$LDFLAGS
765 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
766 ac_cv_env_LDFLAGS_value=$LDFLAGS
767 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_env_CPPFLAGS_value=$CPPFLAGS
769 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
770 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
771 ac_env_CXX_set=${CXX+set}
772 ac_env_CXX_value=$CXX
773 ac_cv_env_CXX_set=${CXX+set}
774 ac_cv_env_CXX_value=$CXX
775 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
776 ac_env_CXXFLAGS_value=$CXXFLAGS
777 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
778 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
779 ac_env_F90_set=${F90+set}
780 ac_env_F90_value=$F90
781 ac_cv_env_F90_set=${F90+set}
782 ac_cv_env_F90_value=$F90
783 ac_env_F90FLAGS_set=${F90FLAGS+set}
784 ac_env_F90FLAGS_value=$F90FLAGS
785 ac_cv_env_F90FLAGS_set=${F90FLAGS+set}
786 ac_cv_env_F90FLAGS_value=$F90FLAGS
787 ac_env_MPIF77_set=${MPIF77+set}
788 ac_env_MPIF77_value=$MPIF77
789 ac_cv_env_MPIF77_set=${MPIF77+set}
790 ac_cv_env_MPIF77_value=$MPIF77
791 ac_env_CPP_set=${CPP+set}
792 ac_env_CPP_value=$CPP
793 ac_cv_env_CPP_set=${CPP+set}
794 ac_cv_env_CPP_value=$CPP
795
796 #
797 # Report the --help message.
798 #
799 if test "$ac_init_help" = "long"; then
800 # Omit some internal or obsolete options to make the list less imposing.
801 # This message is too long to be a string in the A/UX 3.1 sh.
802 cat <<_ACEOF
803 \`configure' configures OOPSE 1.0 to adapt to many kinds of systems.
804
805 Usage: $0 [OPTION]... [VAR=VALUE]...
806
807 To assign environment variables (e.g., CC, CFLAGS...), specify them as
808 VAR=VALUE. See below for descriptions of some of the useful variables.
809
810 Defaults for the options are specified in brackets.
811
812 Configuration:
813 -h, --help display this help and exit
814 --help=short display options specific to this package
815 --help=recursive display the short help of all the included packages
816 -V, --version display version information and exit
817 -q, --quiet, --silent do not print \`checking...' messages
818 --cache-file=FILE cache test results in FILE [disabled]
819 -C, --config-cache alias for \`--cache-file=config.cache'
820 -n, --no-create do not create output files
821 --srcdir=DIR find the sources in DIR [configure dir or \`..']
822
823 _ACEOF
824
825 cat <<_ACEOF
826 Installation directories:
827 --prefix=PREFIX install architecture-independent files in PREFIX
828 [$ac_default_prefix]
829 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
830 [PREFIX]
831
832 By default, \`make install' will install all the files in
833 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
834 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
835 for instance \`--prefix=\$HOME'.
836
837 For better control, use the options below.
838
839 Fine tuning of the installation directories:
840 --bindir=DIR user executables [EPREFIX/bin]
841 --sbindir=DIR system admin executables [EPREFIX/sbin]
842 --libexecdir=DIR program executables [EPREFIX/libexec]
843 --datadir=DIR read-only architecture-independent data [PREFIX/share]
844 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
845 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
846 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
847 --libdir=DIR object code libraries [EPREFIX/lib]
848 --includedir=DIR C header files [PREFIX/include]
849 --oldincludedir=DIR C header files for non-gcc [/usr/include]
850 --infodir=DIR info documentation [PREFIX/info]
851 --mandir=DIR man documentation [PREFIX/man]
852 _ACEOF
853
854 cat <<\_ACEOF
855
856 System types:
857 --build=BUILD configure for building on BUILD [guessed]
858 --host=HOST cross-compile to build programs to run on HOST [BUILD]
859 _ACEOF
860 fi
861
862 if test -n "$ac_init_help"; then
863 case $ac_init_help in
864 short | recursive ) echo "Configuration of OOPSE 1.0:";;
865 esac
866 cat <<\_ACEOF
867
868 Optional Features:
869 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
870 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
871 --enable-debug Compile OOPSE in debug mode
872 --enable-oopse-home=DIR define oopse home dir PREFIX/oopse
873
874 Optional Packages:
875 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
876 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
877 --with-mpi_dir=MPIDIR give the path for MPI /usr/local
878 --with-mpi-libdir=dir give the path for MPI-libraries MPI_DIR/lib
879 --with-mpi_inc=dir give the path for MPI-include-files MPI_DIR/include
880 --with-sprng_prefix=PREFIX
881 Prefix where SPRNG is installed
882 --with-sprng-libdir=PREFIX SPRNG library directory
883 --with-sprng-include=PREFIX
884 SPRNG include directory
885 --with-mkl Do we want MKL will check /usr/local/intel/mkl60 /opt/intel/mkl60
886 --with-mpi_f90_mods=<dir>
887 Location where MPI f90 modules are installed
888
889 Some influential environment variables:
890 CC C compiler command
891 CFLAGS C compiler flags
892 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
893 nonstandard directory <lib dir>
894 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
895 headers in a nonstandard directory <include dir>
896 CXX C++ compiler command
897 CXXFLAGS C++ compiler flags
898 F90 Fortran 90 compiler command
899 F90FLAGS Fortran 90 compiler flags
900 MPIF77 MPI Fortran compiler command
901 CPP C preprocessor
902
903 Use these variables to override the choices made by `configure' or to help
904 it to find libraries and programs with nonstandard names/locations.
905
906 Report bugs to <gezelter@nd.edu>.
907 _ACEOF
908 fi
909
910 if test "$ac_init_help" = "recursive"; then
911 # If there are subdirs, report their specific --help.
912 ac_popdir=`pwd`
913 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
914 test -d $ac_dir || continue
915 ac_builddir=.
916
917 if test "$ac_dir" != .; then
918 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
919 # A "../" for each directory in $ac_dir_suffix.
920 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
921 else
922 ac_dir_suffix= ac_top_builddir=
923 fi
924
925 case $srcdir in
926 .) # No --srcdir option. We are building in place.
927 ac_srcdir=.
928 if test -z "$ac_top_builddir"; then
929 ac_top_srcdir=.
930 else
931 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
932 fi ;;
933 [\\/]* | ?:[\\/]* ) # Absolute path.
934 ac_srcdir=$srcdir$ac_dir_suffix;
935 ac_top_srcdir=$srcdir ;;
936 *) # Relative path.
937 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
938 ac_top_srcdir=$ac_top_builddir$srcdir ;;
939 esac
940 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
941 # absolute.
942 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
943 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
944 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
945 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
946
947 cd $ac_dir
948 # Check for guested configure; otherwise get Cygnus style configure.
949 if test -f $ac_srcdir/configure.gnu; then
950 echo
951 $SHELL $ac_srcdir/configure.gnu --help=recursive
952 elif test -f $ac_srcdir/configure; then
953 echo
954 $SHELL $ac_srcdir/configure --help=recursive
955 elif test -f $ac_srcdir/configure.ac ||
956 test -f $ac_srcdir/configure.in; then
957 echo
958 $ac_configure --help
959 else
960 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
961 fi
962 cd $ac_popdir
963 done
964 fi
965
966 test -n "$ac_init_help" && exit 0
967 if $ac_init_version; then
968 cat <<\_ACEOF
969 OOPSE configure 1.0
970 generated by GNU Autoconf 2.57
971
972 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
973 Free Software Foundation, Inc.
974 This configure script is free software; the Free Software Foundation
975 gives unlimited permission to copy, distribute and modify it.
976 _ACEOF
977 exit 0
978 fi
979 exec 5>config.log
980 cat >&5 <<_ACEOF
981 This file contains any messages produced by compilers while
982 running configure, to aid debugging if configure makes a mistake.
983
984 It was created by OOPSE $as_me 1.0, which was
985 generated by GNU Autoconf 2.57. Invocation command line was
986
987 $ $0 $@
988
989 _ACEOF
990 {
991 cat <<_ASUNAME
992 ## --------- ##
993 ## Platform. ##
994 ## --------- ##
995
996 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
997 uname -m = `(uname -m) 2>/dev/null || echo unknown`
998 uname -r = `(uname -r) 2>/dev/null || echo unknown`
999 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1000 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1001
1002 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1003 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1004
1005 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1006 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1007 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1008 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1009 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1010 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1011 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1012
1013 _ASUNAME
1014
1015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1016 for as_dir in $PATH
1017 do
1018 IFS=$as_save_IFS
1019 test -z "$as_dir" && as_dir=.
1020 echo "PATH: $as_dir"
1021 done
1022
1023 } >&5
1024
1025 cat >&5 <<_ACEOF
1026
1027
1028 ## ----------- ##
1029 ## Core tests. ##
1030 ## ----------- ##
1031
1032 _ACEOF
1033
1034
1035 # Keep a trace of the command line.
1036 # Strip out --no-create and --no-recursion so they do not pile up.
1037 # Strip out --silent because we don't want to record it for future runs.
1038 # Also quote any args containing shell meta-characters.
1039 # Make two passes to allow for proper duplicate-argument suppression.
1040 ac_configure_args=
1041 ac_configure_args0=
1042 ac_configure_args1=
1043 ac_sep=
1044 ac_must_keep_next=false
1045 for ac_pass in 1 2
1046 do
1047 for ac_arg
1048 do
1049 case $ac_arg in
1050 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1051 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1052 | -silent | --silent | --silen | --sile | --sil)
1053 continue ;;
1054 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1055 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1056 esac
1057 case $ac_pass in
1058 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1059 2)
1060 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1061 if test $ac_must_keep_next = true; then
1062 ac_must_keep_next=false # Got value, back to normal.
1063 else
1064 case $ac_arg in
1065 *=* | --config-cache | -C | -disable-* | --disable-* \
1066 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1067 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1068 | -with-* | --with-* | -without-* | --without-* | --x)
1069 case "$ac_configure_args0 " in
1070 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1071 esac
1072 ;;
1073 -* ) ac_must_keep_next=true ;;
1074 esac
1075 fi
1076 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1077 # Get rid of the leading space.
1078 ac_sep=" "
1079 ;;
1080 esac
1081 done
1082 done
1083 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1084 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1085
1086 # When interrupted or exit'd, cleanup temporary files, and complete
1087 # config.log. We remove comments because anyway the quotes in there
1088 # would cause problems or look ugly.
1089 # WARNING: Be sure not to use single quotes in there, as some shells,
1090 # such as our DU 5.0 friend, will then `close' the trap.
1091 trap 'exit_status=$?
1092 # Save into config.log some information that might help in debugging.
1093 {
1094 echo
1095
1096 cat <<\_ASBOX
1097 ## ---------------- ##
1098 ## Cache variables. ##
1099 ## ---------------- ##
1100 _ASBOX
1101 echo
1102 # The following way of writing the cache mishandles newlines in values,
1103 {
1104 (set) 2>&1 |
1105 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1106 *ac_space=\ *)
1107 sed -n \
1108 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1109 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1110 ;;
1111 *)
1112 sed -n \
1113 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1114 ;;
1115 esac;
1116 }
1117 echo
1118
1119 cat <<\_ASBOX
1120 ## ----------------- ##
1121 ## Output variables. ##
1122 ## ----------------- ##
1123 _ASBOX
1124 echo
1125 for ac_var in $ac_subst_vars
1126 do
1127 eval ac_val=$`echo $ac_var`
1128 echo "$ac_var='"'"'$ac_val'"'"'"
1129 done | sort
1130 echo
1131
1132 if test -n "$ac_subst_files"; then
1133 cat <<\_ASBOX
1134 ## ------------- ##
1135 ## Output files. ##
1136 ## ------------- ##
1137 _ASBOX
1138 echo
1139 for ac_var in $ac_subst_files
1140 do
1141 eval ac_val=$`echo $ac_var`
1142 echo "$ac_var='"'"'$ac_val'"'"'"
1143 done | sort
1144 echo
1145 fi
1146
1147 if test -s confdefs.h; then
1148 cat <<\_ASBOX
1149 ## ----------- ##
1150 ## confdefs.h. ##
1151 ## ----------- ##
1152 _ASBOX
1153 echo
1154 sed "/^$/d" confdefs.h | sort
1155 echo
1156 fi
1157 test "$ac_signal" != 0 &&
1158 echo "$as_me: caught signal $ac_signal"
1159 echo "$as_me: exit $exit_status"
1160 } >&5
1161 rm -f core core.* *.core &&
1162 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1163 exit $exit_status
1164 ' 0
1165 for ac_signal in 1 2 13 15; do
1166 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1167 done
1168 ac_signal=0
1169
1170 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1171 rm -rf conftest* confdefs.h
1172 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1173 echo >confdefs.h
1174
1175 # Predefined preprocessor variables.
1176
1177 cat >>confdefs.h <<_ACEOF
1178 #define PACKAGE_NAME "$PACKAGE_NAME"
1179 _ACEOF
1180
1181
1182 cat >>confdefs.h <<_ACEOF
1183 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1184 _ACEOF
1185
1186
1187 cat >>confdefs.h <<_ACEOF
1188 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1189 _ACEOF
1190
1191
1192 cat >>confdefs.h <<_ACEOF
1193 #define PACKAGE_STRING "$PACKAGE_STRING"
1194 _ACEOF
1195
1196
1197 cat >>confdefs.h <<_ACEOF
1198 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1199 _ACEOF
1200
1201
1202 # Let the site file select an alternate cache file if it wants to.
1203 # Prefer explicitly selected file to automatically selected ones.
1204 if test -z "$CONFIG_SITE"; then
1205 if test "x$prefix" != xNONE; then
1206 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1207 else
1208 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1209 fi
1210 fi
1211 for ac_site_file in $CONFIG_SITE; do
1212 if test -r "$ac_site_file"; then
1213 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1214 echo "$as_me: loading site script $ac_site_file" >&6;}
1215 sed 's/^/| /' "$ac_site_file" >&5
1216 . "$ac_site_file"
1217 fi
1218 done
1219
1220 if test -r "$cache_file"; then
1221 # Some versions of bash will fail to source /dev/null (special
1222 # files actually), so we avoid doing that.
1223 if test -f "$cache_file"; then
1224 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1225 echo "$as_me: loading cache $cache_file" >&6;}
1226 case $cache_file in
1227 [\\/]* | ?:[\\/]* ) . $cache_file;;
1228 *) . ./$cache_file;;
1229 esac
1230 fi
1231 else
1232 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1233 echo "$as_me: creating cache $cache_file" >&6;}
1234 >$cache_file
1235 fi
1236
1237 # Check that the precious variables saved in the cache have kept the same
1238 # value.
1239 ac_cache_corrupted=false
1240 for ac_var in `(set) 2>&1 |
1241 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1242 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1243 eval ac_new_set=\$ac_env_${ac_var}_set
1244 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1245 eval ac_new_val="\$ac_env_${ac_var}_value"
1246 case $ac_old_set,$ac_new_set in
1247 set,)
1248 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1249 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1250 ac_cache_corrupted=: ;;
1251 ,set)
1252 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1253 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1254 ac_cache_corrupted=: ;;
1255 ,);;
1256 *)
1257 if test "x$ac_old_val" != "x$ac_new_val"; then
1258 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1259 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1260 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1261 echo "$as_me: former value: $ac_old_val" >&2;}
1262 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1263 echo "$as_me: current value: $ac_new_val" >&2;}
1264 ac_cache_corrupted=:
1265 fi;;
1266 esac
1267 # Pass precious variables to config.status.
1268 if test "$ac_new_set" = set; then
1269 case $ac_new_val in
1270 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1271 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1272 *) ac_arg=$ac_var=$ac_new_val ;;
1273 esac
1274 case " $ac_configure_args " in
1275 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1276 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1277 esac
1278 fi
1279 done
1280 if $ac_cache_corrupted; then
1281 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1282 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1283 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1284 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1285 { (exit 1); exit 1; }; }
1286 fi
1287
1288 ac_ext=c
1289 ac_cpp='$CPP $CPPFLAGS'
1290 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1291 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1292 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320 ac_aux_dir=
1321 for ac_dir in ac-tools $srcdir/ac-tools; do
1322 if test -f $ac_dir/install-sh; then
1323 ac_aux_dir=$ac_dir
1324 ac_install_sh="$ac_aux_dir/install-sh -c"
1325 break
1326 elif test -f $ac_dir/install.sh; then
1327 ac_aux_dir=$ac_dir
1328 ac_install_sh="$ac_aux_dir/install.sh -c"
1329 break
1330 elif test -f $ac_dir/shtool; then
1331 ac_aux_dir=$ac_dir
1332 ac_install_sh="$ac_aux_dir/shtool install -c"
1333 break
1334 fi
1335 done
1336 if test -z "$ac_aux_dir"; then
1337 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ac-tools $srcdir/ac-tools" >&5
1338 echo "$as_me: error: cannot find install-sh or install.sh in ac-tools $srcdir/ac-tools" >&2;}
1339 { (exit 1); exit 1; }; }
1340 fi
1341 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1342 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1343 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1344
1345
1346 # This file is part of Autoconf. -*- Autoconf -*-
1347 # Programming languages support.
1348 # Copyright 2000, 2001
1349 # Free Software Foundation, Inc.
1350 #
1351 # This program is free software; you can redistribute it and/or modify
1352 # it under the terms of the GNU General Public License as published by
1353 # the Free Software Foundation; either version 2, or (at your option)
1354 # any later version.
1355 #
1356 # This program is distributed in the hope that it will be useful,
1357 # but WITHOUT ANY WARRANTY; without even the implied warranty of
1358 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1359 # GNU General Public License for more details.
1360 #
1361 # You should have received a copy of the GNU General Public License
1362 # along with this program; if not, write to the Free Software
1363 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
1364 # 02111-1307, USA.
1365 #
1366 # As a special exception, the Free Software Foundation gives unlimited
1367 # permission to copy, distribute and modify the configure scripts that
1368 # are the output of Autoconf. You need not follow the terms of the GNU
1369 # General Public License when using or distributing such scripts, even
1370 # though portions of the text of Autoconf appear in them. The GNU
1371 # General Public License (GPL) does govern all other use of the material
1372 # that constitutes the Autoconf program.
1373 #
1374 # Certain portions of the Autoconf source text are designed to be copied
1375 # (in certain cases, depending on the input) into the output of
1376 # Autoconf. We call these the "data" portions. The rest of the Autoconf
1377 # source text consists of comments plus executable code that decides which
1378 # of the data portions to output in any given case. We call these
1379 # comments and executable code the "non-data" portions. Autoconf never
1380 # copies any of the non-data portions into its output.
1381 #
1382 # This special exception to the GPL applies to versions of Autoconf
1383 # released by the Free Software Foundation. When you make and
1384 # distribute a modified version of Autoconf, you may extend this special
1385 # exception to the GPL to apply to your modified version as well, *unless*
1386 # your modified version has the potential to copy into its output some
1387 # of the text that was the non-data portion of the version that you started
1388 # with. (In other words, unless your change moves or copies text from
1389 # the non-data portions to the data portions.) If your modification has
1390 # such potential, you must delete any notice of this special exception
1391 # to the GPL from your modified version.
1392 #
1393 # Written by Akim Demaille, Christian Marquardt, Martin Wilks (and probably
1394 # many others).
1395
1396
1397 # Table of Contents:
1398 #
1399 # 1. Language selection
1400 # and routines to produce programs in a given language.
1401 # a. Fortran 77 (to be moved from aclang.m4)
1402 # b. Fortran 90
1403 # c. Fortran 95
1404 #
1405 # 2. Producing programs in a given language.
1406 # a. Fortran 77 (to be moved from aclang.m4)
1407 # b. Fortran 90
1408 # c. Fortran 95
1409 #
1410 # 3. Looking for a compiler
1411 # And possibly the associated preprocessor.
1412 # a. Fortran 77 (to be moved from aclang.m4)
1413 # b. Fortran 90
1414 # c. Fortran 95
1415 #
1416 # 4. Compilers' characteristics.
1417 # a. Fortran 77 (to be moved from aclang.m4)
1418 # b. Fortran 90
1419 # c. Fortran 95
1420
1421 # _AC_LIST_MEMBER_IF(ELEMENT, LIST, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
1422 # ---------------------------------------------------------------------------
1423 #
1424 # Processing the elements of a list is tedious in shell programming,
1425 # as lists tend to be implemented as space delimited strings.
1426 #
1427 # This macro searches LIST for ELEMENT, and executes ACTION-IF-FOUND
1428 # if ELEMENT is a member of LIST, otherwise it executes
1429 # ACTION-IF-NOT-FOUND.
1430 # _AC_LIST_MEMBER_IF
1431
1432
1433
1434 # _AC_LINKER_OPTION(LINKER-OPTIONS, SHELL-VARIABLE)
1435 # -------------------------------------------------
1436 #
1437 # Specifying options to the compiler (whether it be the C, C++ or
1438 # Fortran 77 compiler) that are meant for the linker is compiler
1439 # dependent. This macro lets you give options to the compiler that
1440 # are meant for the linker in a portable, compiler-independent way.
1441 #
1442 # This macro take two arguments, a list of linker options that the
1443 # compiler should pass to the linker (LINKER-OPTIONS) and the name of
1444 # a shell variable (SHELL-VARIABLE). The list of linker options are
1445 # appended to the shell variable in a compiler-dependent way.
1446 #
1447 # For example, if the selected language is C, then this:
1448 #
1449 # _AC_LINKER_OPTION([-R /usr/local/lib/foo], foo_LDFLAGS)
1450 #
1451 # will expand into this if the selected C compiler is gcc:
1452 #
1453 # foo_LDFLAGS="-Xlinker -R -Xlinker /usr/local/lib/foo"
1454 #
1455 # otherwise, it will expand into this:
1456 #
1457 # foo_LDFLAGS"-R /usr/local/lib/foo"
1458 #
1459 # You are encouraged to add support for compilers that this macro
1460 # doesn't currently support.
1461 # FIXME: Get rid of this macro.
1462 # _AC_LINKER_OPTION
1463
1464
1465
1466 ## ----------------------- ##
1467 ## 1. Language selection. ##
1468 ## ----------------------- ##
1469
1470 # ----------------------------- #
1471 # 1b. The Fortran 90 language. #
1472 # ----------------------------- #
1473
1474 # AC_LANG(Fortran 90)
1475 # -------------------
1476
1477
1478
1479 # _AC_LANG_ABBREV(Fortran 90)
1480 # ---------------------------
1481
1482
1483
1484 # ----------------------------- #
1485 # 1c. The Fortran 95 language. #
1486 # ----------------------------- #
1487
1488 # AC_LANG(Fortran 95)
1489 # -------------------
1490
1491
1492
1493 # _AC_LANG_ABBREV(Fortran 95)
1494 # ---------------------------
1495
1496
1497
1498 ## ---------------------- ##
1499 ## 2.Producing programs. ##
1500 ## ---------------------- ##
1501
1502 # ------------------------ #
1503 # 2b. Fortran 90 sources. #
1504 # ------------------------ #
1505
1506 # AC_LANG_SOURCE(Fortran 90)(BODY)
1507 # --------------------------------
1508
1509
1510
1511 # AC_LANG_PROGRAM(Fortran 90)([PROLOGUE], [BODY])
1512 # -----------------------------------------------
1513
1514
1515 # AC_LANG_CALL(Fortran 90)(PROLOGUE, FUNCTION)
1516 # --------------------------------------------
1517
1518
1519
1520 # ------------------------ #
1521 # 2c. Fortran 95 sources. #
1522 # ------------------------ #
1523
1524 # AC_LANG_SOURCE(Fortran 95)(BODY)
1525 # --------------------------------
1526
1527
1528 # AC_LANG_PROGRAM(Fortran 95)([PROLOGUE], [BODY])
1529 # -----------------------------------------------
1530
1531
1532 # AC_LANG_CALL(Fortran 95)(PROLOGUE, FUNCTION)
1533 # --------------------------------------------
1534
1535
1536
1537 ## -------------------------------------------- ##
1538 ## 3. Looking for Compilers and Preprocessors. ##
1539 ## -------------------------------------------- ##
1540
1541 # ----------------------------- #
1542 # 3b. The Fortran 90 compiler. #
1543 # ----------------------------- #
1544
1545
1546 # AC_LANG_PREPROC(Fortran 90)
1547 # ---------------------------
1548 # Find the Fortran 90 preprocessor. Must be AC_DEFUN'd to be AC_REQUIRE'able.
1549
1550
1551
1552 # AC_LANG_COMPILER(Fortran 90)
1553 # ----------------------------
1554 # Find the Fortran 90 compiler. Must be AC_DEFUN'd to be
1555 # AC_REQUIRE'able.
1556
1557
1558
1559 # AC_PROG_F90([COMPILERS...])
1560 # ---------------------------
1561 # COMPILERS is a space separated list of Fortran 90 compilers to search
1562 # for.
1563 #
1564 # Compilers are ordered by
1565 # 1. F90, F95
1566 # 2. Good/tested native compilers, bad/untested native compilers
1567 #
1568 # pgf90 is the Portland Group F90 compilers.
1569 # xlf90/xlf95 are IBM (AIX) F90/F95 compilers.
1570 # lf95 is the Lahey-Fujitsu compiler.
1571 # epcf90 is the "Edinburgh Portable Compiler" F90.
1572 # fort is the Compaq Fortran 90 (now 95) compiler for Tru64 and Linux/Alpha.
1573 # AC_PROG_F90
1574
1575
1576 # ----------------------------- #
1577 # 3c. The Fortran 95 compiler. #
1578 # ----------------------------- #
1579
1580
1581 # AC_LANG_PREPROC(Fortran 95)
1582 # ---------------------------
1583 # Find the Fortran 95 preprocessor. Must be AC_DEFUN'd to be AC_REQUIRE'able.
1584
1585
1586
1587 # AC_LANG_COMPILER(Fortran 95)
1588 # ----------------------------
1589 # Find the Fortran 95 compiler. Must be AC_DEFUN'd to be
1590 # AC_REQUIRE'able.
1591
1592
1593
1594 # AC_PROG_F95([COMPILERS...])
1595 # ---------------------------
1596 # COMPILERS is a space separated list of Fortran 95 compilers to search
1597 # for.
1598 #
1599 # Compilers are ordered by
1600 # 1. Good/tested native compilers, bad/untested native compilers
1601 #
1602 # xlf95 is the IBM (AIX) F95 compiler.
1603 # lf95 is the Lahey-Fujitsu compiler.
1604 # fort is the Compaq Fortran 90 (now 95) compiler for Tru64 and Linux/Alpha.
1605 # AC_PROG_F95
1606
1607
1608 ## ------------------------------- ##
1609 ## 4. Compilers' characteristics. ##
1610 ## ------------------------------- ##
1611
1612
1613 # ---------------------------------------- #
1614 # 4b. Fortan 90 compiler characteristics. #
1615 # ---------------------------------------- #
1616
1617
1618 # _AC_PROG_F90_V_OUTPUT([FLAG = $ac_cv_prog_f90_v])
1619 # -------------------------------------------------
1620 # Link a trivial Fortran program, compiling with a verbose output FLAG
1621 # (which default value, $ac_cv_prog_f90_v, is computed by
1622 # _AC_PROG_F90_V), and return the output in $ac_f90_v_output. This
1623 # output is processed in the way expected by AC_F90_LIBRARY_LDFLAGS,
1624 # so that any link flags that are echoed by the compiler appear as
1625 # space-separated items.
1626 # _AC_PROG_F90_V_OUTPUT
1627
1628
1629 # _AC_PROG_F90_V
1630 # --------------
1631 #
1632 # Determine the flag that causes the Fortran 90 compiler to print
1633 # information of library and object files (normally -v)
1634 # Needed for AC_F90_LIBRARY_FLAGS
1635 # Some compilers don't accept -v (Lahey: -verbose, xlf: -V, Fujitsu: -###)
1636 # _AC_PROG_F90_V
1637
1638
1639 # AC_F90_LIBRARY_LDFLAGS
1640 # ----------------------
1641 #
1642 # Determine the linker flags (e.g. "-L" and "-l") for the Fortran 90
1643 # intrinsic and run-time libraries that are required to successfully
1644 # link a Fortran 90 program or shared library. The output variable
1645 # F90LIBS is set to these flags.
1646 #
1647 # This macro is intended to be used in those situations when it is
1648 # necessary to mix, e.g. C++ and Fortran 90, source code into a single
1649 # program or shared library.
1650 #
1651 # For example, if object files from a C++ and Fortran 90 compiler must
1652 # be linked together, then the C++ compiler/linker must be used for
1653 # linking (since special C++-ish things need to happen at link time
1654 # like calling global constructors, instantiating templates, enabling
1655 # exception support, etc.).
1656 #
1657 # However, the Fortran 90 intrinsic and run-time libraries must be
1658 # linked in as well, but the C++ compiler/linker doesn't know how to
1659 # add these Fortran 90 libraries. Hence, the macro
1660 # "AC_F90_LIBRARY_LDFLAGS" was created to determine these Fortran 90
1661 # libraries.
1662 #
1663 # This macro was copied from the Fortran 77 version by Matthew D. Langston.
1664 # AC_F90_LIBRARY_LDFLAGS
1665
1666
1667 # _AC_F90_NAME_MANGLING
1668 # ---------------------
1669 # Test for the name mangling scheme used by the Fortran 90 compiler.
1670 #
1671 # Sets ac_cv_f90_mangling. The value contains three fields, separated
1672 # by commas:
1673 #
1674 # lower case / upper case:
1675 # case translation of the Fortan 90 symbols
1676 # underscore / no underscore:
1677 # whether the compiler appends "_" to symbol names
1678 # extra underscore / no extra underscore:
1679 # whether the compiler appends an extra "_" to symbol names already
1680 # containing at least one underscore
1681 #
1682 # _AC_F90_NAME_MANGLING
1683
1684 # The replacement is empty.
1685
1686
1687
1688 # AC_F90_WRAPPERS
1689 # ---------------
1690 # Defines C macros F90_FUNC(name,NAME) and F90_FUNC_(name,NAME) to
1691 # properly mangle the names of C identifiers, and C identifiers with
1692 # underscores, respectively, so that they match the name mangling
1693 # scheme used by the Fortran 90 compiler.
1694 # AC_F90_WRAPPERS
1695
1696
1697 # AC_F90_FUNC(NAME, [SHELLVAR = NAME])
1698 # ------------------------------------
1699 # For a Fortran subroutine of given NAME, define a shell variable
1700 # $SHELLVAR to the Fortran 90 mangled name. If the SHELLVAR
1701 # argument is not supplied, it defaults to NAME.
1702 # AC_F90_FUNC
1703
1704
1705 # ---------------------------------------- #
1706 # 4c. Fortan 95 compiler characteristics. #
1707 # ---------------------------------------- #
1708
1709
1710 # _AC_PROG_F95_V_OUTPUT([FLAG = $ac_cv_prog_f95_v])
1711 # -------------------------------------------------
1712 # Link a trivial Fortran program, compiling with a verbose output FLAG
1713 # (which default value, $ac_cv_prog_f95_v, is computed by
1714 # _AC_PROG_F95_V), and return the output in $ac_f95_v_output. This
1715 # output is processed in the way expected by AC_F95_LIBRARY_LDFLAGS,
1716 # so that any link flags that are echoed by the compiler appear as
1717 # space-separated items.
1718 # _AC_PROG_F95_V_OUTPUT
1719
1720
1721 # _AC_PROG_F95_V
1722 # --------------
1723 #
1724 # Determine the flag that causes the Fortran 95 compiler to print
1725 # information of library and object files (normally -v)
1726 # Needed for AC_F95_LIBRARY_FLAGS
1727 # Some compilers don't accept -v (Lahey: -verbose, xlf: -V, Fujitsu: -###)
1728 # _AC_PROG_F95_V
1729
1730
1731 # AC_F95_LIBRARY_LDFLAGS
1732 # ----------------------
1733 #
1734 # Determine the linker flags (e.g. "-L" and "-l") for the Fortran 95
1735 # intrinsic and run-time libraries that are required to successfully
1736 # link a Fortran 95 program or shared library. The output variable
1737 # F95LIBS is set to these flags.
1738 #
1739 # This macro is intended to be used in those situations when it is
1740 # necessary to mix, e.g. C++ and Fortran 95, source code into a single
1741 # program or shared library.
1742 #
1743 # For example, if object files from a C++ and Fortran 95 compiler must
1744 # be linked together, then the C++ compiler/linker must be used for
1745 # linking (since special C++-ish things need to happen at link time
1746 # like calling global constructors, instantiating templates, enabling
1747 # exception support, etc.).
1748 #
1749 # However, the Fortran 95 intrinsic and run-time libraries must be
1750 # linked in as well, but the C++ compiler/linker doesn't know how to
1751 # add these Fortran 95 libraries. Hence, the macro
1752 # "AC_F95_LIBRARY_LDFLAGS" was created to determine these Fortran 95
1753 # libraries.
1754 #
1755 # This macro was copied from the Fortran 77 version by Matthew D. Langston.
1756 # AC_F95_LIBRARY_LDFLAGS
1757
1758
1759 # _AC_F95_NAME_MANGLING
1760 # ---------------------
1761 # Test for the name mangling scheme used by the Fortran 95 compiler.
1762 #
1763 # Sets ac_cv_f95_mangling. The value contains three fields, separated
1764 # by commas:
1765 #
1766 # lower case / upper case:
1767 # case translation of the Fortan 95 symbols
1768 # underscore / no underscore:
1769 # whether the compiler appends "_" to symbol names
1770 # extra underscore / no extra underscore:
1771 # whether the compiler appends an extra "_" to symbol names already
1772 # containing at least one underscore
1773 #
1774 # _AC_F95_NAME_MANGLING
1775
1776 # The replacement is empty.
1777
1778
1779
1780 # AC_F95_WRAPPERS
1781 # ---------------
1782 # Defines C macros F95_FUNC(name,NAME) and F95_FUNC_(name,NAME) to
1783 # properly mangle the names of C identifiers, and C identifiers with
1784 # underscores, respectively, so that they match the name mangling
1785 # scheme used by the Fortran 95 compiler.
1786 # AC_F95_WRAPPERS
1787
1788
1789 # AC_F95_FUNC(NAME, [SHELLVAR = NAME])
1790 # ------------------------------------
1791 # For a Fortran subroutine of given NAME, define a shell variable
1792 # $SHELLVAR to the Fortran 95 mangled name. If the SHELLVAR
1793 # argument is not supplied, it defaults to NAME.
1794 # AC_F95_FUNC
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
1838
1839 # set program name
1840 PROGNAME="oopse"
1841
1842
1843 # there are two ways to do debugging. One with the --enable-debug flag
1844 # and one using the DEBUG environment variable
1845
1846 debug=0
1847 # Check whether --enable-debug or --disable-debug was given.
1848 if test "${enable_debug+set}" = set; then
1849 enableval="$enable_debug"
1850 debug=1
1851 fi;
1852 if test "${DEBUG}"; then
1853
1854 cat >>confdefs.h <<\_ACEOF
1855 #define debug 1
1856 _ACEOF
1857
1858 msg="$msg, debug mode"
1859 fi
1860
1861
1862 # who am i
1863 # Make sure we can run config.sub.
1864 $ac_config_sub sun4 >/dev/null 2>&1 ||
1865 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1866 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1867 { (exit 1); exit 1; }; }
1868
1869 echo "$as_me:$LINENO: checking build system type" >&5
1870 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1871 if test "${ac_cv_build+set}" = set; then
1872 echo $ECHO_N "(cached) $ECHO_C" >&6
1873 else
1874 ac_cv_build_alias=$build_alias
1875 test -z "$ac_cv_build_alias" &&
1876 ac_cv_build_alias=`$ac_config_guess`
1877 test -z "$ac_cv_build_alias" &&
1878 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1879 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1880 { (exit 1); exit 1; }; }
1881 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1882 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1883 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1884 { (exit 1); exit 1; }; }
1885
1886 fi
1887 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1888 echo "${ECHO_T}$ac_cv_build" >&6
1889 build=$ac_cv_build
1890 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1891 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1892 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1893
1894
1895 echo "$as_me:$LINENO: checking host system type" >&5
1896 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1897 if test "${ac_cv_host+set}" = set; then
1898 echo $ECHO_N "(cached) $ECHO_C" >&6
1899 else
1900 ac_cv_host_alias=$host_alias
1901 test -z "$ac_cv_host_alias" &&
1902 ac_cv_host_alias=$ac_cv_build_alias
1903 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1904 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1905 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1906 { (exit 1); exit 1; }; }
1907
1908 fi
1909 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1910 echo "${ECHO_T}$ac_cv_host" >&6
1911 host=$ac_cv_host
1912 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1913 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1914 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1915
1916
1917
1918 ac_ext=c
1919 ac_cpp='$CPP $CPPFLAGS'
1920 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1921 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1922 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1923 if test -n "$ac_tool_prefix"; then
1924 for ac_prog in icc xlc gcc cc
1925 do
1926 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1927 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1928 echo "$as_me:$LINENO: checking for $ac_word" >&5
1929 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1930 if test "${ac_cv_prog_CC+set}" = set; then
1931 echo $ECHO_N "(cached) $ECHO_C" >&6
1932 else
1933 if test -n "$CC"; then
1934 ac_cv_prog_CC="$CC" # Let the user override the test.
1935 else
1936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1937 for as_dir in $PATH
1938 do
1939 IFS=$as_save_IFS
1940 test -z "$as_dir" && as_dir=.
1941 for ac_exec_ext in '' $ac_executable_extensions; do
1942 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1943 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1944 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1945 break 2
1946 fi
1947 done
1948 done
1949
1950 fi
1951 fi
1952 CC=$ac_cv_prog_CC
1953 if test -n "$CC"; then
1954 echo "$as_me:$LINENO: result: $CC" >&5
1955 echo "${ECHO_T}$CC" >&6
1956 else
1957 echo "$as_me:$LINENO: result: no" >&5
1958 echo "${ECHO_T}no" >&6
1959 fi
1960
1961 test -n "$CC" && break
1962 done
1963 fi
1964 if test -z "$CC"; then
1965 ac_ct_CC=$CC
1966 for ac_prog in icc xlc gcc cc
1967 do
1968 # Extract the first word of "$ac_prog", so it can be a program name with args.
1969 set dummy $ac_prog; ac_word=$2
1970 echo "$as_me:$LINENO: checking for $ac_word" >&5
1971 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1972 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1973 echo $ECHO_N "(cached) $ECHO_C" >&6
1974 else
1975 if test -n "$ac_ct_CC"; then
1976 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1977 else
1978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1979 for as_dir in $PATH
1980 do
1981 IFS=$as_save_IFS
1982 test -z "$as_dir" && as_dir=.
1983 for ac_exec_ext in '' $ac_executable_extensions; do
1984 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1985 ac_cv_prog_ac_ct_CC="$ac_prog"
1986 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1987 break 2
1988 fi
1989 done
1990 done
1991
1992 fi
1993 fi
1994 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1995 if test -n "$ac_ct_CC"; then
1996 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1997 echo "${ECHO_T}$ac_ct_CC" >&6
1998 else
1999 echo "$as_me:$LINENO: result: no" >&5
2000 echo "${ECHO_T}no" >&6
2001 fi
2002
2003 test -n "$ac_ct_CC" && break
2004 done
2005
2006 CC=$ac_ct_CC
2007 fi
2008
2009
2010 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2011 See \`config.log' for more details." >&5
2012 echo "$as_me: error: no acceptable C compiler found in \$PATH
2013 See \`config.log' for more details." >&2;}
2014 { (exit 1); exit 1; }; }
2015
2016 # Provide some information about the compiler.
2017 echo "$as_me:$LINENO:" \
2018 "checking for C compiler version" >&5
2019 ac_compiler=`set X $ac_compile; echo $2`
2020 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2021 (eval $ac_compiler --version </dev/null >&5) 2>&5
2022 ac_status=$?
2023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2024 (exit $ac_status); }
2025 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2026 (eval $ac_compiler -v </dev/null >&5) 2>&5
2027 ac_status=$?
2028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2029 (exit $ac_status); }
2030 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2031 (eval $ac_compiler -V </dev/null >&5) 2>&5
2032 ac_status=$?
2033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2034 (exit $ac_status); }
2035
2036 cat >conftest.$ac_ext <<_ACEOF
2037 #line $LINENO "configure"
2038 /* confdefs.h. */
2039 _ACEOF
2040 cat confdefs.h >>conftest.$ac_ext
2041 cat >>conftest.$ac_ext <<_ACEOF
2042 /* end confdefs.h. */
2043
2044 int
2045 main ()
2046 {
2047
2048 ;
2049 return 0;
2050 }
2051 _ACEOF
2052 ac_clean_files_save=$ac_clean_files
2053 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2054 # Try to create an executable without -o first, disregard a.out.
2055 # It will help us diagnose broken compilers, and finding out an intuition
2056 # of exeext.
2057 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2058 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2059 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2060 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2061 (eval $ac_link_default) 2>&5
2062 ac_status=$?
2063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2064 (exit $ac_status); }; then
2065 # Find the output, starting from the most likely. This scheme is
2066 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2067 # resort.
2068
2069 # Be careful to initialize this variable, since it used to be cached.
2070 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2071 ac_cv_exeext=
2072 # b.out is created by i960 compilers.
2073 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2074 do
2075 test -f "$ac_file" || continue
2076 case $ac_file in
2077 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2078 ;;
2079 conftest.$ac_ext )
2080 # This is the source file.
2081 ;;
2082 [ab].out )
2083 # We found the default executable, but exeext='' is most
2084 # certainly right.
2085 break;;
2086 *.* )
2087 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2088 # FIXME: I believe we export ac_cv_exeext for Libtool,
2089 # but it would be cool to find out if it's true. Does anybody
2090 # maintain Libtool? --akim.
2091 export ac_cv_exeext
2092 break;;
2093 * )
2094 break;;
2095 esac
2096 done
2097 else
2098 echo "$as_me: failed program was:" >&5
2099 sed 's/^/| /' conftest.$ac_ext >&5
2100
2101 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2102 See \`config.log' for more details." >&5
2103 echo "$as_me: error: C compiler cannot create executables
2104 See \`config.log' for more details." >&2;}
2105 { (exit 77); exit 77; }; }
2106 fi
2107
2108 ac_exeext=$ac_cv_exeext
2109 echo "$as_me:$LINENO: result: $ac_file" >&5
2110 echo "${ECHO_T}$ac_file" >&6
2111
2112 # Check the compiler produces executables we can run. If not, either
2113 # the compiler is broken, or we cross compile.
2114 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2115 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2116 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2117 # If not cross compiling, check that we can run a simple program.
2118 if test "$cross_compiling" != yes; then
2119 if { ac_try='./$ac_file'
2120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2121 (eval $ac_try) 2>&5
2122 ac_status=$?
2123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2124 (exit $ac_status); }; }; then
2125 cross_compiling=no
2126 else
2127 if test "$cross_compiling" = maybe; then
2128 cross_compiling=yes
2129 else
2130 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2131 If you meant to cross compile, use \`--host'.
2132 See \`config.log' for more details." >&5
2133 echo "$as_me: error: cannot run C compiled programs.
2134 If you meant to cross compile, use \`--host'.
2135 See \`config.log' for more details." >&2;}
2136 { (exit 1); exit 1; }; }
2137 fi
2138 fi
2139 fi
2140 echo "$as_me:$LINENO: result: yes" >&5
2141 echo "${ECHO_T}yes" >&6
2142
2143 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2144 ac_clean_files=$ac_clean_files_save
2145 # Check the compiler produces executables we can run. If not, either
2146 # the compiler is broken, or we cross compile.
2147 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2148 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2149 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2150 echo "${ECHO_T}$cross_compiling" >&6
2151
2152 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2153 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2154 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2155 (eval $ac_link) 2>&5
2156 ac_status=$?
2157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2158 (exit $ac_status); }; then
2159 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2160 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2161 # work properly (i.e., refer to `conftest.exe'), while it won't with
2162 # `rm'.
2163 for ac_file in conftest.exe conftest conftest.*; do
2164 test -f "$ac_file" || continue
2165 case $ac_file in
2166 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2167 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2168 export ac_cv_exeext
2169 break;;
2170 * ) break;;
2171 esac
2172 done
2173 else
2174 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2175 See \`config.log' for more details." >&5
2176 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2177 See \`config.log' for more details." >&2;}
2178 { (exit 1); exit 1; }; }
2179 fi
2180
2181 rm -f conftest$ac_cv_exeext
2182 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2183 echo "${ECHO_T}$ac_cv_exeext" >&6
2184
2185 rm -f conftest.$ac_ext
2186 EXEEXT=$ac_cv_exeext
2187 ac_exeext=$EXEEXT
2188 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2189 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2190 if test "${ac_cv_objext+set}" = set; then
2191 echo $ECHO_N "(cached) $ECHO_C" >&6
2192 else
2193 cat >conftest.$ac_ext <<_ACEOF
2194 #line $LINENO "configure"
2195 /* confdefs.h. */
2196 _ACEOF
2197 cat confdefs.h >>conftest.$ac_ext
2198 cat >>conftest.$ac_ext <<_ACEOF
2199 /* end confdefs.h. */
2200
2201 int
2202 main ()
2203 {
2204
2205 ;
2206 return 0;
2207 }
2208 _ACEOF
2209 rm -f conftest.o conftest.obj
2210 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2211 (eval $ac_compile) 2>&5
2212 ac_status=$?
2213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2214 (exit $ac_status); }; then
2215 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2216 case $ac_file in
2217 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2218 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2219 break;;
2220 esac
2221 done
2222 else
2223 echo "$as_me: failed program was:" >&5
2224 sed 's/^/| /' conftest.$ac_ext >&5
2225
2226 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2227 See \`config.log' for more details." >&5
2228 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2229 See \`config.log' for more details." >&2;}
2230 { (exit 1); exit 1; }; }
2231 fi
2232
2233 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2234 fi
2235 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2236 echo "${ECHO_T}$ac_cv_objext" >&6
2237 OBJEXT=$ac_cv_objext
2238 ac_objext=$OBJEXT
2239 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2240 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2241 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2242 echo $ECHO_N "(cached) $ECHO_C" >&6
2243 else
2244 cat >conftest.$ac_ext <<_ACEOF
2245 #line $LINENO "configure"
2246 /* confdefs.h. */
2247 _ACEOF
2248 cat confdefs.h >>conftest.$ac_ext
2249 cat >>conftest.$ac_ext <<_ACEOF
2250 /* end confdefs.h. */
2251
2252 int
2253 main ()
2254 {
2255 #ifndef __GNUC__
2256 choke me
2257 #endif
2258
2259 ;
2260 return 0;
2261 }
2262 _ACEOF
2263 rm -f conftest.$ac_objext
2264 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2265 (eval $ac_compile) 2>&5
2266 ac_status=$?
2267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2268 (exit $ac_status); } &&
2269 { ac_try='test -s conftest.$ac_objext'
2270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2271 (eval $ac_try) 2>&5
2272 ac_status=$?
2273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2274 (exit $ac_status); }; }; then
2275 ac_compiler_gnu=yes
2276 else
2277 echo "$as_me: failed program was:" >&5
2278 sed 's/^/| /' conftest.$ac_ext >&5
2279
2280 ac_compiler_gnu=no
2281 fi
2282 rm -f conftest.$ac_objext conftest.$ac_ext
2283 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2284
2285 fi
2286 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2287 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2288 GCC=`test $ac_compiler_gnu = yes && echo yes`
2289 ac_test_CFLAGS=${CFLAGS+set}
2290 ac_save_CFLAGS=$CFLAGS
2291 CFLAGS="-g"
2292 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2293 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2294 if test "${ac_cv_prog_cc_g+set}" = set; then
2295 echo $ECHO_N "(cached) $ECHO_C" >&6
2296 else
2297 cat >conftest.$ac_ext <<_ACEOF
2298 #line $LINENO "configure"
2299 /* confdefs.h. */
2300 _ACEOF
2301 cat confdefs.h >>conftest.$ac_ext
2302 cat >>conftest.$ac_ext <<_ACEOF
2303 /* end confdefs.h. */
2304
2305 int
2306 main ()
2307 {
2308
2309 ;
2310 return 0;
2311 }
2312 _ACEOF
2313 rm -f conftest.$ac_objext
2314 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2315 (eval $ac_compile) 2>&5
2316 ac_status=$?
2317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2318 (exit $ac_status); } &&
2319 { ac_try='test -s conftest.$ac_objext'
2320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2321 (eval $ac_try) 2>&5
2322 ac_status=$?
2323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2324 (exit $ac_status); }; }; then
2325 ac_cv_prog_cc_g=yes
2326 else
2327 echo "$as_me: failed program was:" >&5
2328 sed 's/^/| /' conftest.$ac_ext >&5
2329
2330 ac_cv_prog_cc_g=no
2331 fi
2332 rm -f conftest.$ac_objext conftest.$ac_ext
2333 fi
2334 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2335 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2336 if test "$ac_test_CFLAGS" = set; then
2337 CFLAGS=$ac_save_CFLAGS
2338 elif test $ac_cv_prog_cc_g = yes; then
2339 if test "$GCC" = yes; then
2340 CFLAGS="-g -O2"
2341 else
2342 CFLAGS="-g"
2343 fi
2344 else
2345 if test "$GCC" = yes; then
2346 CFLAGS="-O2"
2347 else
2348 CFLAGS=
2349 fi
2350 fi
2351 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2352 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2353 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2354 echo $ECHO_N "(cached) $ECHO_C" >&6
2355 else
2356 ac_cv_prog_cc_stdc=no
2357 ac_save_CC=$CC
2358 cat >conftest.$ac_ext <<_ACEOF
2359 #line $LINENO "configure"
2360 /* confdefs.h. */
2361 _ACEOF
2362 cat confdefs.h >>conftest.$ac_ext
2363 cat >>conftest.$ac_ext <<_ACEOF
2364 /* end confdefs.h. */
2365 #include <stdarg.h>
2366 #include <stdio.h>
2367 #include <sys/types.h>
2368 #include <sys/stat.h>
2369 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2370 struct buf { int x; };
2371 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2372 static char *e (p, i)
2373 char **p;
2374 int i;
2375 {
2376 return p[i];
2377 }
2378 static char *f (char * (*g) (char **, int), char **p, ...)
2379 {
2380 char *s;
2381 va_list v;
2382 va_start (v,p);
2383 s = g (p, va_arg (v,int));
2384 va_end (v);
2385 return s;
2386 }
2387 int test (int i, double x);
2388 struct s1 {int (*f) (int a);};
2389 struct s2 {int (*f) (double a);};
2390 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2391 int argc;
2392 char **argv;
2393 int
2394 main ()
2395 {
2396 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2397 ;
2398 return 0;
2399 }
2400 _ACEOF
2401 # Don't try gcc -ansi; that turns off useful extensions and
2402 # breaks some systems' header files.
2403 # AIX -qlanglvl=ansi
2404 # Ultrix and OSF/1 -std1
2405 # HP-UX 10.20 and later -Ae
2406 # HP-UX older versions -Aa -D_HPUX_SOURCE
2407 # SVR4 -Xc -D__EXTENSIONS__
2408 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2409 do
2410 CC="$ac_save_CC $ac_arg"
2411 rm -f conftest.$ac_objext
2412 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2413 (eval $ac_compile) 2>&5
2414 ac_status=$?
2415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2416 (exit $ac_status); } &&
2417 { ac_try='test -s conftest.$ac_objext'
2418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2419 (eval $ac_try) 2>&5
2420 ac_status=$?
2421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2422 (exit $ac_status); }; }; then
2423 ac_cv_prog_cc_stdc=$ac_arg
2424 break
2425 else
2426 echo "$as_me: failed program was:" >&5
2427 sed 's/^/| /' conftest.$ac_ext >&5
2428
2429 fi
2430 rm -f conftest.$ac_objext
2431 done
2432 rm -f conftest.$ac_ext conftest.$ac_objext
2433 CC=$ac_save_CC
2434
2435 fi
2436
2437 case "x$ac_cv_prog_cc_stdc" in
2438 x|xno)
2439 echo "$as_me:$LINENO: result: none needed" >&5
2440 echo "${ECHO_T}none needed" >&6 ;;
2441 *)
2442 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2443 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2444 CC="$CC $ac_cv_prog_cc_stdc" ;;
2445 esac
2446
2447 # Some people use a C++ compiler to compile C. Since we use `exit',
2448 # in C++ we need to declare it. In case someone uses the same compiler
2449 # for both compiling C and C++ we need to have the C++ compiler decide
2450 # the declaration of exit, since it's the most demanding environment.
2451 cat >conftest.$ac_ext <<_ACEOF
2452 #ifndef __cplusplus
2453 choke me
2454 #endif
2455 _ACEOF
2456 rm -f conftest.$ac_objext
2457 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2458 (eval $ac_compile) 2>&5
2459 ac_status=$?
2460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2461 (exit $ac_status); } &&
2462 { ac_try='test -s conftest.$ac_objext'
2463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2464 (eval $ac_try) 2>&5
2465 ac_status=$?
2466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2467 (exit $ac_status); }; }; then
2468 for ac_declaration in \
2469 ''\
2470 '#include <stdlib.h>' \
2471 'extern "C" void std::exit (int) throw (); using std::exit;' \
2472 'extern "C" void std::exit (int); using std::exit;' \
2473 'extern "C" void exit (int) throw ();' \
2474 'extern "C" void exit (int);' \
2475 'void exit (int);'
2476 do
2477 cat >conftest.$ac_ext <<_ACEOF
2478 #line $LINENO "configure"
2479 /* confdefs.h. */
2480 _ACEOF
2481 cat confdefs.h >>conftest.$ac_ext
2482 cat >>conftest.$ac_ext <<_ACEOF
2483 /* end confdefs.h. */
2484 #include <stdlib.h>
2485 $ac_declaration
2486 int
2487 main ()
2488 {
2489 exit (42);
2490 ;
2491 return 0;
2492 }
2493 _ACEOF
2494 rm -f conftest.$ac_objext
2495 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2496 (eval $ac_compile) 2>&5
2497 ac_status=$?
2498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2499 (exit $ac_status); } &&
2500 { ac_try='test -s conftest.$ac_objext'
2501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2502 (eval $ac_try) 2>&5
2503 ac_status=$?
2504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2505 (exit $ac_status); }; }; then
2506 :
2507 else
2508 echo "$as_me: failed program was:" >&5
2509 sed 's/^/| /' conftest.$ac_ext >&5
2510
2511 continue
2512 fi
2513 rm -f conftest.$ac_objext conftest.$ac_ext
2514 cat >conftest.$ac_ext <<_ACEOF
2515 #line $LINENO "configure"
2516 /* confdefs.h. */
2517 _ACEOF
2518 cat confdefs.h >>conftest.$ac_ext
2519 cat >>conftest.$ac_ext <<_ACEOF
2520 /* end confdefs.h. */
2521 $ac_declaration
2522 int
2523 main ()
2524 {
2525 exit (42);
2526 ;
2527 return 0;
2528 }
2529 _ACEOF
2530 rm -f conftest.$ac_objext
2531 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2532 (eval $ac_compile) 2>&5
2533 ac_status=$?
2534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2535 (exit $ac_status); } &&
2536 { ac_try='test -s conftest.$ac_objext'
2537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2538 (eval $ac_try) 2>&5
2539 ac_status=$?
2540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2541 (exit $ac_status); }; }; then
2542 break
2543 else
2544 echo "$as_me: failed program was:" >&5
2545 sed 's/^/| /' conftest.$ac_ext >&5
2546
2547 fi
2548 rm -f conftest.$ac_objext conftest.$ac_ext
2549 done
2550 rm -f conftest*
2551 if test -n "$ac_declaration"; then
2552 echo '#ifdef __cplusplus' >>confdefs.h
2553 echo $ac_declaration >>confdefs.h
2554 echo '#endif' >>confdefs.h
2555 fi
2556
2557 else
2558 echo "$as_me: failed program was:" >&5
2559 sed 's/^/| /' conftest.$ac_ext >&5
2560
2561 fi
2562 rm -f conftest.$ac_objext conftest.$ac_ext
2563 ac_ext=c
2564 ac_cpp='$CPP $CPPFLAGS'
2565 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2566 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2567 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2568
2569 ac_ext=cc
2570 ac_cpp='$CXXCPP $CPPFLAGS'
2571 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2572 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2573 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2574 if test -n "$ac_tool_prefix"; then
2575 for ac_prog in $CCC icpc icc xlC CC g++ c++
2576 do
2577 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2578 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2579 echo "$as_me:$LINENO: checking for $ac_word" >&5
2580 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2581 if test "${ac_cv_prog_CXX+set}" = set; then
2582 echo $ECHO_N "(cached) $ECHO_C" >&6
2583 else
2584 if test -n "$CXX"; then
2585 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2586 else
2587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2588 for as_dir in $PATH
2589 do
2590 IFS=$as_save_IFS
2591 test -z "$as_dir" && as_dir=.
2592 for ac_exec_ext in '' $ac_executable_extensions; do
2593 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2594 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2595 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2596 break 2
2597 fi
2598 done
2599 done
2600
2601 fi
2602 fi
2603 CXX=$ac_cv_prog_CXX
2604 if test -n "$CXX"; then
2605 echo "$as_me:$LINENO: result: $CXX" >&5
2606 echo "${ECHO_T}$CXX" >&6
2607 else
2608 echo "$as_me:$LINENO: result: no" >&5
2609 echo "${ECHO_T}no" >&6
2610 fi
2611
2612 test -n "$CXX" && break
2613 done
2614 fi
2615 if test -z "$CXX"; then
2616 ac_ct_CXX=$CXX
2617 for ac_prog in $CCC icpc icc xlC CC g++ c++
2618 do
2619 # Extract the first word of "$ac_prog", so it can be a program name with args.
2620 set dummy $ac_prog; ac_word=$2
2621 echo "$as_me:$LINENO: checking for $ac_word" >&5
2622 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2623 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2624 echo $ECHO_N "(cached) $ECHO_C" >&6
2625 else
2626 if test -n "$ac_ct_CXX"; then
2627 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2628 else
2629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2630 for as_dir in $PATH
2631 do
2632 IFS=$as_save_IFS
2633 test -z "$as_dir" && as_dir=.
2634 for ac_exec_ext in '' $ac_executable_extensions; do
2635 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2636 ac_cv_prog_ac_ct_CXX="$ac_prog"
2637 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2638 break 2
2639 fi
2640 done
2641 done
2642
2643 fi
2644 fi
2645 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2646 if test -n "$ac_ct_CXX"; then
2647 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2648 echo "${ECHO_T}$ac_ct_CXX" >&6
2649 else
2650 echo "$as_me:$LINENO: result: no" >&5
2651 echo "${ECHO_T}no" >&6
2652 fi
2653
2654 test -n "$ac_ct_CXX" && break
2655 done
2656 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2657
2658 CXX=$ac_ct_CXX
2659 fi
2660
2661
2662 # Provide some information about the compiler.
2663 echo "$as_me:$LINENO:" \
2664 "checking for C++ compiler version" >&5
2665 ac_compiler=`set X $ac_compile; echo $2`
2666 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2667 (eval $ac_compiler --version </dev/null >&5) 2>&5
2668 ac_status=$?
2669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2670 (exit $ac_status); }
2671 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2672 (eval $ac_compiler -v </dev/null >&5) 2>&5
2673 ac_status=$?
2674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2675 (exit $ac_status); }
2676 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2677 (eval $ac_compiler -V </dev/null >&5) 2>&5
2678 ac_status=$?
2679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2680 (exit $ac_status); }
2681
2682 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2683 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2684 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2685 echo $ECHO_N "(cached) $ECHO_C" >&6
2686 else
2687 cat >conftest.$ac_ext <<_ACEOF
2688 #line $LINENO "configure"
2689 /* confdefs.h. */
2690 _ACEOF
2691 cat confdefs.h >>conftest.$ac_ext
2692 cat >>conftest.$ac_ext <<_ACEOF
2693 /* end confdefs.h. */
2694
2695 int
2696 main ()
2697 {
2698 #ifndef __GNUC__
2699 choke me
2700 #endif
2701
2702 ;
2703 return 0;
2704 }
2705 _ACEOF
2706 rm -f conftest.$ac_objext
2707 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2708 (eval $ac_compile) 2>&5
2709 ac_status=$?
2710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2711 (exit $ac_status); } &&
2712 { ac_try='test -s conftest.$ac_objext'
2713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2714 (eval $ac_try) 2>&5
2715 ac_status=$?
2716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2717 (exit $ac_status); }; }; then
2718 ac_compiler_gnu=yes
2719 else
2720 echo "$as_me: failed program was:" >&5
2721 sed 's/^/| /' conftest.$ac_ext >&5
2722
2723 ac_compiler_gnu=no
2724 fi
2725 rm -f conftest.$ac_objext conftest.$ac_ext
2726 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2727
2728 fi
2729 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2730 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2731 GXX=`test $ac_compiler_gnu = yes && echo yes`
2732 ac_test_CXXFLAGS=${CXXFLAGS+set}
2733 ac_save_CXXFLAGS=$CXXFLAGS
2734 CXXFLAGS="-g"
2735 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2736 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2737 if test "${ac_cv_prog_cxx_g+set}" = set; then
2738 echo $ECHO_N "(cached) $ECHO_C" >&6
2739 else
2740 cat >conftest.$ac_ext <<_ACEOF
2741 #line $LINENO "configure"
2742 /* confdefs.h. */
2743 _ACEOF
2744 cat confdefs.h >>conftest.$ac_ext
2745 cat >>conftest.$ac_ext <<_ACEOF
2746 /* end confdefs.h. */
2747
2748 int
2749 main ()
2750 {
2751
2752 ;
2753 return 0;
2754 }
2755 _ACEOF
2756 rm -f conftest.$ac_objext
2757 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2758 (eval $ac_compile) 2>&5
2759 ac_status=$?
2760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2761 (exit $ac_status); } &&
2762 { ac_try='test -s conftest.$ac_objext'
2763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2764 (eval $ac_try) 2>&5
2765 ac_status=$?
2766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2767 (exit $ac_status); }; }; then
2768 ac_cv_prog_cxx_g=yes
2769 else
2770 echo "$as_me: failed program was:" >&5
2771 sed 's/^/| /' conftest.$ac_ext >&5
2772
2773 ac_cv_prog_cxx_g=no
2774 fi
2775 rm -f conftest.$ac_objext conftest.$ac_ext
2776 fi
2777 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2778 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2779 if test "$ac_test_CXXFLAGS" = set; then
2780 CXXFLAGS=$ac_save_CXXFLAGS
2781 elif test $ac_cv_prog_cxx_g = yes; then
2782 if test "$GXX" = yes; then
2783 CXXFLAGS="-g -O2"
2784 else
2785 CXXFLAGS="-g"
2786 fi
2787 else
2788 if test "$GXX" = yes; then
2789 CXXFLAGS="-O2"
2790 else
2791 CXXFLAGS=
2792 fi
2793 fi
2794 for ac_declaration in \
2795 ''\
2796 '#include <stdlib.h>' \
2797 'extern "C" void std::exit (int) throw (); using std::exit;' \
2798 'extern "C" void std::exit (int); using std::exit;' \
2799 'extern "C" void exit (int) throw ();' \
2800 'extern "C" void exit (int);' \
2801 'void exit (int);'
2802 do
2803 cat >conftest.$ac_ext <<_ACEOF
2804 #line $LINENO "configure"
2805 /* confdefs.h. */
2806 _ACEOF
2807 cat confdefs.h >>conftest.$ac_ext
2808 cat >>conftest.$ac_ext <<_ACEOF
2809 /* end confdefs.h. */
2810 #include <stdlib.h>
2811 $ac_declaration
2812 int
2813 main ()
2814 {
2815 exit (42);
2816 ;
2817 return 0;
2818 }
2819 _ACEOF
2820 rm -f conftest.$ac_objext
2821 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2822 (eval $ac_compile) 2>&5
2823 ac_status=$?
2824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2825 (exit $ac_status); } &&
2826 { ac_try='test -s conftest.$ac_objext'
2827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2828 (eval $ac_try) 2>&5
2829 ac_status=$?
2830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2831 (exit $ac_status); }; }; then
2832 :
2833 else
2834 echo "$as_me: failed program was:" >&5
2835 sed 's/^/| /' conftest.$ac_ext >&5
2836
2837 continue
2838 fi
2839 rm -f conftest.$ac_objext conftest.$ac_ext
2840 cat >conftest.$ac_ext <<_ACEOF
2841 #line $LINENO "configure"
2842 /* confdefs.h. */
2843 _ACEOF
2844 cat confdefs.h >>conftest.$ac_ext
2845 cat >>conftest.$ac_ext <<_ACEOF
2846 /* end confdefs.h. */
2847 $ac_declaration
2848 int
2849 main ()
2850 {
2851 exit (42);
2852 ;
2853 return 0;
2854 }
2855 _ACEOF
2856 rm -f conftest.$ac_objext
2857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2858 (eval $ac_compile) 2>&5
2859 ac_status=$?
2860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2861 (exit $ac_status); } &&
2862 { ac_try='test -s conftest.$ac_objext'
2863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2864 (eval $ac_try) 2>&5
2865 ac_status=$?
2866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2867 (exit $ac_status); }; }; then
2868 break
2869 else
2870 echo "$as_me: failed program was:" >&5
2871 sed 's/^/| /' conftest.$ac_ext >&5
2872
2873 fi
2874 rm -f conftest.$ac_objext conftest.$ac_ext
2875 done
2876 rm -f conftest*
2877 if test -n "$ac_declaration"; then
2878 echo '#ifdef __cplusplus' >>confdefs.h
2879 echo $ac_declaration >>confdefs.h
2880 echo '#endif' >>confdefs.h
2881 fi
2882
2883 ac_ext=c
2884 ac_cpp='$CPP $CPPFLAGS'
2885 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2886 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2887 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2888
2889 ac_ext=f90
2890 ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
2891 ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2892 ac_compiler_gnu=$ac_cv_f90_compiler_gnu
2893 if test -n "$ac_tool_prefix"; then
2894 for ac_prog in ifc f90 xlf90 pgf90 epcf90 f95 xlf95 lf95 fort g95
2895 do
2896 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2897 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2898 echo "$as_me:$LINENO: checking for $ac_word" >&5
2899 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2900 if test "${ac_cv_prog_F90+set}" = set; then
2901 echo $ECHO_N "(cached) $ECHO_C" >&6
2902 else
2903 if test -n "$F90"; then
2904 ac_cv_prog_F90="$F90" # Let the user override the test.
2905 else
2906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2907 for as_dir in $PATH
2908 do
2909 IFS=$as_save_IFS
2910 test -z "$as_dir" && as_dir=.
2911 for ac_exec_ext in '' $ac_executable_extensions; do
2912 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2913 ac_cv_prog_F90="$ac_tool_prefix$ac_prog"
2914 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2915 break 2
2916 fi
2917 done
2918 done
2919
2920 fi
2921 fi
2922 F90=$ac_cv_prog_F90
2923 if test -n "$F90"; then
2924 echo "$as_me:$LINENO: result: $F90" >&5
2925 echo "${ECHO_T}$F90" >&6
2926 else
2927 echo "$as_me:$LINENO: result: no" >&5
2928 echo "${ECHO_T}no" >&6
2929 fi
2930
2931 test -n "$F90" && break
2932 done
2933 fi
2934 if test -z "$F90"; then
2935 ac_ct_F90=$F90
2936 for ac_prog in ifc f90 xlf90 pgf90 epcf90 f95 xlf95 lf95 fort g95
2937 do
2938 # Extract the first word of "$ac_prog", so it can be a program name with args.
2939 set dummy $ac_prog; ac_word=$2
2940 echo "$as_me:$LINENO: checking for $ac_word" >&5
2941 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2942 if test "${ac_cv_prog_ac_ct_F90+set}" = set; then
2943 echo $ECHO_N "(cached) $ECHO_C" >&6
2944 else
2945 if test -n "$ac_ct_F90"; then
2946 ac_cv_prog_ac_ct_F90="$ac_ct_F90" # Let the user override the test.
2947 else
2948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2949 for as_dir in $PATH
2950 do
2951 IFS=$as_save_IFS
2952 test -z "$as_dir" && as_dir=.
2953 for ac_exec_ext in '' $ac_executable_extensions; do
2954 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2955 ac_cv_prog_ac_ct_F90="$ac_prog"
2956 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2957 break 2
2958 fi
2959 done
2960 done
2961
2962 fi
2963 fi
2964 ac_ct_F90=$ac_cv_prog_ac_ct_F90
2965 if test -n "$ac_ct_F90"; then
2966 echo "$as_me:$LINENO: result: $ac_ct_F90" >&5
2967 echo "${ECHO_T}$ac_ct_F90" >&6
2968 else
2969 echo "$as_me:$LINENO: result: no" >&5
2970 echo "${ECHO_T}no" >&6
2971 fi
2972
2973 test -n "$ac_ct_F90" && break
2974 done
2975
2976 F90=$ac_ct_F90
2977 fi
2978
2979
2980 # If we don't use `.F90' as extension, the preprocessor is not run on the
2981 # input file.
2982 ac_save_ext=$ac_ext
2983 ac_ext=F90
2984 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 90 compiler" >&5
2985 echo $ECHO_N "checking whether we are using the GNU Fortran 90 compiler... $ECHO_C" >&6
2986 if test "${ac_cv_f90_compiler_gnu+set}" = set; then
2987 echo $ECHO_N "(cached) $ECHO_C" >&6
2988 else
2989 cat >conftest.$ac_ext <<_ACEOF
2990
2991 program main
2992
2993 #ifndef __GNUC__
2994 choke me
2995 #endif
2996
2997 end program main
2998
2999 _ACEOF
3000 rm -f conftest.$ac_objext
3001 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3002 (eval $ac_compile) 2>&5
3003 ac_status=$?
3004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3005 (exit $ac_status); } &&
3006 { ac_try='test -s conftest.$ac_objext'
3007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3008 (eval $ac_try) 2>&5
3009 ac_status=$?
3010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3011 (exit $ac_status); }; }; then
3012 ac_compiler_gnu=yes
3013 else
3014 echo "$as_me: failed program was:" >&5
3015 sed 's/^/| /' conftest.$ac_ext >&5
3016
3017 ac_compiler_gnu=no
3018 fi
3019 rm -f conftest.$ac_objext conftest.$ac_ext
3020 ac_cv_f90_compiler_gnu=$ac_compiler_gnu
3021
3022 fi
3023 echo "$as_me:$LINENO: result: $ac_cv_f90_compiler_gnu" >&5
3024 echo "${ECHO_T}$ac_cv_f90_compiler_gnu" >&6
3025 ac_ext=$ac_save_ext
3026 G95=`test $ac_compiler_gnu = yes && echo yes`
3027 ac_ext=c
3028 ac_cpp='$CPP $CPPFLAGS'
3029 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3030 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3031 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3032
3033
3034
3035
3036
3037 # Try to determine native compiler flags that allow us to use F90 suffix
3038 # for preprocessed f90 source.
3039
3040 if test "$ac_test_PREPFLAG" != "set"; then
3041 PREPFLAG=""
3042 case "${host_cpu}-${host_os}" in
3043
3044 *linux*) if test "$F90" = ifc; then
3045 PREPFLAG="-fpp1 "
3046 fi;;
3047 *aix*) if test "$F90" = xlf90 -o "$F90" = f90; then
3048 PREPFLAG="-qsuffix=cpp=F90 "
3049 fi;;
3050 *darwin*)
3051 if test "$F90" = f90 -o "$F90" = xlf90; then
3052 PREPFLAG="-qsuffix=cpp=F90 "
3053 fi;;
3054 esac
3055
3056 if test -z "$PREPFLAG"; then
3057 echo ""
3058 echo "**********************************************************"
3059 echo "* WARNING: Don't know the best PREPFLAG for this system *"
3060 echo "* Use make PREPFLAG=..., or edit the top level Makefile *"
3061 echo "* (otherwise, an empty PREPFLAG will be used) *"
3062 echo "**********************************************************"
3063 echo ""
3064 PREPFLAG=""
3065 fi
3066
3067 echo "$as_me:$LINENO: checking to make sure F90 preprocessor flag works" >&5
3068 echo $ECHO_N "checking to make sure F90 preprocessor flag works... $ECHO_C" >&6
3069
3070
3071 ac_ext=f90
3072 ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3073 ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3074 ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3075
3076 ac_save_ext=$ac_ext
3077 ac_ext=F90
3078 ac_save_F90FLAGS=$F90FLAGS
3079
3080 if test "$PREPFLAG"; then
3081 F90FLAGS="${F90FLAGS} ${PREPFLAG}-DTEST"
3082 fi
3083
3084 cat >conftest.$ac_ext <<_ACEOF
3085
3086
3087 program main
3088
3089 integer :: i
3090 i = 1
3091
3092
3093 end program main
3094
3095 _ACEOF
3096 rm -f conftest.$ac_objext
3097 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3098 (eval $ac_compile) 2>&5
3099 ac_status=$?
3100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3101 (exit $ac_status); } &&
3102 { ac_try='test -s conftest.$ac_objext'
3103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3104 (eval $ac_try) 2>&5
3105 ac_status=$?
3106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3107 (exit $ac_status); }; }; then
3108 prepflagworks=1
3109 else
3110 echo "$as_me: failed program was:" >&5
3111 sed 's/^/| /' conftest.$ac_ext >&5
3112
3113 prepflagworks=0
3114 fi
3115 rm -f conftest.$ac_objext conftest.$ac_ext
3116
3117 F90FLAGS=$ac_save_F90FLAGS
3118 ac_ext=$ac_save_ext
3119 ac_ext=c
3120 ac_cpp='$CPP $CPPFLAGS'
3121 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3122 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3123 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3124
3125
3126
3127 if test "$prepflagworks" = 1; then
3128 echo "$as_me:$LINENO: result: yes" >&5
3129 echo "${ECHO_T}yes" >&6
3130
3131 else
3132 echo "$as_me:$LINENO: result: no" >&5
3133 echo "${ECHO_T}no" >&6
3134 { { echo "$as_me:$LINENO: error: Can't figure out working Fortran90 preprocessor flag" >&5
3135 echo "$as_me: error: Can't figure out working Fortran90 preprocessor flag" >&2;}
3136 { (exit 1); exit 1; }; }
3137 fi
3138 fi
3139
3140
3141
3142
3143
3144 # Try to determine native compiler flags that allow us to use F90 suffix
3145 # for preprocessed f90 source with -D type defines
3146
3147 if test "$ac_test_PREPDEFFLAG" != "set"; then
3148 PREPDEFFLAG=""
3149 case "${host_cpu}-${host_os}" in
3150
3151 *linux*) if test "$F90" = ifc; then
3152 PREPDEFFLAG=" "
3153 fi;;
3154 *aix*) if test "$F90" = xlf90 -o "$F90" = f90; then
3155 PREPDEFFLAG="-WF,"
3156 fi;;
3157 *darwin*)
3158 if test "$F90" = f90 -o "$F90" = xlf90; then
3159 PREPDEFFLAG="-WF,"
3160 fi;;
3161 esac
3162
3163 if test -z "$PREPDEFFLAG"; then
3164 echo ""
3165 echo "*************************************************************"
3166 echo "* WARNING: Don't know the best PREPDEFFLAG for this system *"
3167 echo "* Use make PREPDEFFLAG=..., or edit the top level Makefile *"
3168 echo "* (otherwise, an empty PREPDEFFLAG will be used) *"
3169 echo "*************************************************************"
3170 echo ""
3171 PREPDEFFLAG=" "
3172 fi
3173
3174 echo "$as_me:$LINENO: checking to make sure F90 preprocessor define flag works" >&5
3175 echo $ECHO_N "checking to make sure F90 preprocessor define flag works... $ECHO_C" >&6
3176
3177
3178 ac_ext=f90
3179 ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3180 ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3181 ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3182
3183 ac_save_ext=$ac_ext
3184 ac_ext=F90
3185 ac_save_F90FLAGS=$F90FLAGS
3186
3187 if test "$PREPDEFFLAG"; then
3188 F90FLAGS="${F90FLAGS} ${PREPFLAG} ${PREPDEFFLAG}-DTEST"
3189 fi
3190
3191 cat >conftest.$ac_ext <<_ACEOF
3192
3193
3194 program main
3195
3196 integer :: i
3197 #ifdef TEST
3198 i = 1
3199 #else
3200 choke me
3201 #endif
3202
3203
3204 end program main
3205
3206 _ACEOF
3207 rm -f conftest.$ac_objext
3208 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3209 (eval $ac_compile) 2>&5
3210 ac_status=$?
3211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3212 (exit $ac_status); } &&
3213 { ac_try='test -s conftest.$ac_objext'
3214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3215 (eval $ac_try) 2>&5
3216 ac_status=$?
3217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3218 (exit $ac_status); }; }; then
3219 prepdefflagworks=1
3220 else
3221 echo "$as_me: failed program was:" >&5
3222 sed 's/^/| /' conftest.$ac_ext >&5
3223
3224 prepdefflagworks=0
3225 fi
3226 rm -f conftest.$ac_objext conftest.$ac_ext
3227
3228 F90FLAGS=$ac_save_F90FLAGS
3229 ac_ext=$ac_save_ext
3230 ac_ext=c
3231 ac_cpp='$CPP $CPPFLAGS'
3232 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3233 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3234 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3235
3236
3237
3238 if test "$prepdefflagworks" = 1; then
3239 echo "$as_me:$LINENO: result: yes" >&5
3240 echo "${ECHO_T}yes" >&6
3241
3242 else
3243 echo "$as_me:$LINENO: result: no" >&5
3244 echo "${ECHO_T}no" >&6
3245 { { echo "$as_me:$LINENO: error: Can't figure out working Fortran90 preprocessor define flag" >&5
3246 echo "$as_me: error: Can't figure out working Fortran90 preprocessor define flag" >&2;}
3247 { (exit 1); exit 1; }; }
3248 fi
3249 fi
3250
3251
3252 case $debug in
3253 1)
3254 ;;
3255 *)
3256
3257
3258
3259
3260 # Try to determine "good" native compiler flags if none specified on command
3261 # line
3262 if test "$ac_test_CFLAGS" != "set"; then
3263 CFLAGS=""
3264 case "${host_cpu}-${host_os}" in
3265
3266 *linux*) if test "$CC" = icc; then
3267 CFLAGS="-O"
3268 fi;;
3269 sparc-solaris2*) if test "$CC" = cc; then
3270 CFLAGS="-native -fast -xO5 -dalign"
3271 fi;;
3272
3273 alpha*-osf*) if test "$CC" = cc; then
3274 CFLAGS="-newc -w0 -O5 -ansi_alias -ansi_args -fp_reorder -tune host -arch host -std1"
3275 fi;;
3276
3277 hppa*-hpux*) if test "$CC" = cc; then
3278 CFLAGS="-Ae +O3 +Oall"
3279 fi;;
3280
3281 rs6000*-aix*) if test "$CC" = cc -o "$CC" = xlc; then
3282 CFLAGS="-O3 -qtune=auto -qansialias -w"
3283 fi;;
3284 powerpc*-aix*)
3285 if test "$CC" = cc -o "$CC" = xlc; then
3286 CFLAGS="-O3 -qtune=auto -qansialias -w"
3287 echo "*******************************************************"
3288 echo "* You have AIX on an unknown powerpc system. It is *"
3289 echo "* recommended that you use *"
3290 echo "* *"
3291 echo "* CFLAGS=-O3 -qarch=ppc -qtune=xxx -qansialias -w *"
3292 echo "* ^^^ *"
3293 echo "* where xxx is 601, 603, 604, or whatever kind of *"
3294 echo "* PowerPC CPU you have. For more info, man cc. *"
3295 echo "*******************************************************"
3296 fi;;
3297 *darwin*)
3298 if test "$CC" = xlc -o "$CC" = cc; then
3299 CFLAGS="-O3 -qtune=auto -w"
3300 echo "*******************************************************"
3301 echo "* You have Darwin on an unknown powerpc system. *"
3302 echo "* It is recommended that you use *"
3303 echo "* *"
3304 echo "* CFLAGS=-O3 -qarch=ppc -qtune=xxx -qansialias -w *"
3305 echo "* ^^^ *"
3306 echo "* where xxx is 601, 603, 604, or whatever kind of *"
3307 echo "* PowerPC CPU you have. For more info, man cc. *"
3308 echo "*******************************************************"
3309 fi;;
3310 esac
3311
3312 # use default flags for gcc on all systems
3313 if test $ac_cv_c_compiler_gnu = yes; then
3314 CFLAGS="-O6 -fomit-frame-pointer -Wall -W -Wcast-qual -Wpointer-arith -Wcast-align -pedantic"
3315 fi
3316
3317 # test for gcc-specific flags:
3318 if test $ac_cv_c_compiler_gnu = yes; then
3319 # -malign-double for x86 systems
3320
3321
3322 echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -malign-double" >&5
3323 echo $ECHO_N "checking whether ${CC-cc} accepts -malign-double... $ECHO_C" >&6
3324 if test "${ac_align_double+set}" = set; then
3325 echo $ECHO_N "(cached) $ECHO_C" >&6
3326 else
3327 echo 'void f(){}' > conftest.c
3328 if test -z "`${CC-cc} -malign-double -c conftest.c 2>&1`"; then
3329 ac_align_double=yes
3330 else
3331 ac_align_double=no
3332 fi
3333 rm -f conftest*
3334
3335 fi
3336 echo "$as_me:$LINENO: result: $ac_align_double" >&5
3337 echo "${ECHO_T}$ac_align_double" >&6
3338 if test "$ac_align_double" = yes; then
3339 :
3340 CFLAGS="$CFLAGS -malign-double"
3341 else
3342 :
3343
3344 fi
3345
3346 # -fstrict-aliasing for gcc-2.95+
3347
3348
3349 echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -fstrict-aliasing" >&5
3350 echo $ECHO_N "checking whether ${CC-cc} accepts -fstrict-aliasing... $ECHO_C" >&6
3351 if test "${ac_fstrict_aliasing+set}" = set; then
3352 echo $ECHO_N "(cached) $ECHO_C" >&6
3353 else
3354 echo 'void f(){}' > conftest.c
3355 if test -z "`${CC-cc} -fstrict-aliasing -c conftest.c 2>&1`"; then
3356 ac_fstrict_aliasing=yes
3357 else
3358 ac_fstrict_aliasing=no
3359 fi
3360 rm -f conftest*
3361
3362 fi
3363 echo "$as_me:$LINENO: result: $ac_fstrict_aliasing" >&5
3364 echo "${ECHO_T}$ac_fstrict_aliasing" >&6
3365 if test "$ac_fstrict_aliasing" = yes; then
3366 :
3367 CFLAGS="$CFLAGS -fstrict-aliasing"
3368 else
3369 :
3370
3371 fi
3372
3373 fi
3374
3375 CPU_FLAGS=""
3376 if test "$GCC" = "yes"; then
3377 case "${host_cpu}" in
3378 i586*)
3379
3380 echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mcpu=pentium" >&5
3381 echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=pentium... $ECHO_C" >&6
3382 if test "${ac_cpu_pentium+set}" = set; then
3383 echo $ECHO_N "(cached) $ECHO_C" >&6
3384 else
3385 echo 'void f(){}' > conftest.c
3386 if test -z "`${CC-cc} -mcpu=pentium -c conftest.c 2>&1`"; then
3387 ac_cpu_pentium=yes
3388 else
3389 ac_cpu_pentium=no
3390 fi
3391 rm -f conftest*
3392
3393 fi
3394 echo "$as_me:$LINENO: result: $ac_cpu_pentium" >&5
3395 echo "${ECHO_T}$ac_cpu_pentium" >&6
3396 if test "$ac_cpu_pentium" = yes; then
3397 :
3398 CPU_FLAGS=-mcpu=pentium
3399 else
3400 :
3401
3402
3403 echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mpentium" >&5
3404 echo $ECHO_N "checking whether ${CC-cc} accepts -mpentium... $ECHO_C" >&6
3405 if test "${ac_pentium+set}" = set; then
3406 echo $ECHO_N "(cached) $ECHO_C" >&6
3407 else
3408 echo 'void f(){}' > conftest.c
3409 if test -z "`${CC-cc} -mpentium -c conftest.c 2>&1`"; then
3410 ac_pentium=yes
3411 else
3412 ac_pentium=no
3413 fi
3414 rm -f conftest*
3415
3416 fi
3417 echo "$as_me:$LINENO: result: $ac_pentium" >&5
3418 echo "${ECHO_T}$ac_pentium" >&6
3419 if test "$ac_pentium" = yes; then
3420 :
3421 CPU_FLAGS=-mpentium
3422 else
3423 :
3424
3425 fi
3426
3427 fi
3428
3429 ;;
3430 i686*)
3431
3432 echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mcpu=pentiumpro" >&5
3433 echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=pentiumpro... $ECHO_C" >&6
3434 if test "${ac_cpu_pentiumpro+set}" = set; then
3435 echo $ECHO_N "(cached) $ECHO_C" >&6
3436 else
3437 echo 'void f(){}' > conftest.c
3438 if test -z "`${CC-cc} -mcpu=pentiumpro -c conftest.c 2>&1`"; then
3439 ac_cpu_pentiumpro=yes
3440 else
3441 ac_cpu_pentiumpro=no
3442 fi
3443 rm -f conftest*
3444
3445 fi
3446 echo "$as_me:$LINENO: result: $ac_cpu_pentiumpro" >&5
3447 echo "${ECHO_T}$ac_cpu_pentiumpro" >&6
3448 if test "$ac_cpu_pentiumpro" = yes; then
3449 :
3450 CPU_FLAGS=-mcpu=pentiumpro
3451 else
3452 :
3453
3454
3455 echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mpentiumpro" >&5
3456 echo $ECHO_N "checking whether ${CC-cc} accepts -mpentiumpro... $ECHO_C" >&6
3457 if test "${ac_pentiumpro+set}" = set; then
3458 echo $ECHO_N "(cached) $ECHO_C" >&6
3459 else
3460 echo 'void f(){}' > conftest.c
3461 if test -z "`${CC-cc} -mpentiumpro -c conftest.c 2>&1`"; then
3462 ac_pentiumpro=yes
3463 else
3464 ac_pentiumpro=no
3465 fi
3466 rm -f conftest*
3467
3468 fi
3469 echo "$as_me:$LINENO: result: $ac_pentiumpro" >&5
3470 echo "${ECHO_T}$ac_pentiumpro" >&6
3471 if test "$ac_pentiumpro" = yes; then
3472 :
3473 CPU_FLAGS=-mpentiumpro
3474 else
3475 :
3476
3477 fi
3478
3479 fi
3480
3481 ;;
3482 powerpc*)
3483 cputype=`(grep cpu /proc/cpuinfo | head -1 | cut -d: -f2 | sed 's/ //g') 2> /dev/null`
3484 is60x=`echo $cputype | egrep "^600-9e?$"`
3485 if test -n "$is60x"; then
3486
3487
3488 echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mcpu=$cputype" >&5
3489 echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=$cputype... $ECHO_C" >&6
3490 if test "${ac_m_cpu_60x+set}" = set; then
3491 echo $ECHO_N "(cached) $ECHO_C" >&6
3492 else
3493 echo 'void f(){}' > conftest.c
3494 if test -z "`${CC-cc} -mcpu=$cputype -c conftest.c 2>&1`"; then
3495 ac_m_cpu_60x=yes
3496 else
3497 ac_m_cpu_60x=no
3498 fi
3499 rm -f conftest*
3500
3501 fi
3502 echo "$as_me:$LINENO: result: $ac_m_cpu_60x" >&5
3503 echo "${ECHO_T}$ac_m_cpu_60x" >&6
3504 if test "$ac_m_cpu_60x" = yes; then
3505 :
3506 CPU_FLAGS=-mcpu=$cputype
3507 else
3508 :
3509
3510 fi
3511
3512 elif test "$cputype" = 750; then
3513
3514
3515 echo "$as_me:$LINENO: checking whether we are using gcc 2.95 or later" >&5
3516 echo $ECHO_N "checking whether we are using gcc 2.95 or later... $ECHO_C" >&6
3517 if test "${ac_cv_prog_gcc_2_95+set}" = set; then
3518 echo $ECHO_N "(cached) $ECHO_C" >&6
3519 else
3520
3521 cat > conftest.c <<EOF
3522 #ifdef __GNUC__
3523 # if (__GNUC__ > 2) || (__GNUC__ == 2 && __GNUC_MINOR__ >= 95)
3524 yes;
3525 # endif
3526 #endif
3527 EOF
3528 if { ac_try='${CC-cc} -E conftest.c'
3529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3530 (eval $ac_try) 2>&5
3531 ac_status=$?
3532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3533 (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then
3534 ac_cv_prog_gcc_2_95=yes
3535 else
3536 ac_cv_prog_gcc_2_95=no
3537 fi
3538
3539 fi
3540 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_2_95" >&5
3541 echo "${ECHO_T}$ac_cv_prog_gcc_2_95" >&6
3542 if test "$ac_cv_prog_gcc_2_95" = yes; then
3543 :
3544
3545
3546 echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mcpu=750" >&5
3547 echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=750... $ECHO_C" >&6
3548 if test "${ac_m_cpu_750+set}" = set; then
3549 echo $ECHO_N "(cached) $ECHO_C" >&6
3550 else
3551 echo 'void f(){}' > conftest.c
3552 if test -z "`${CC-cc} -mcpu=750 -c conftest.c 2>&1`"; then
3553 ac_m_cpu_750=yes
3554 else
3555 ac_m_cpu_750=no
3556 fi
3557 rm -f conftest*
3558
3559 fi
3560 echo "$as_me:$LINENO: result: $ac_m_cpu_750" >&5
3561 echo "${ECHO_T}$ac_m_cpu_750" >&6
3562 if test "$ac_m_cpu_750" = yes; then
3563 :
3564 CPU_FLAGS=-mcpu=750
3565 else
3566 :
3567
3568 fi
3569
3570 else
3571 :
3572
3573 fi
3574
3575 fi
3576 if test -z "$CPU_FLAGS"; then
3577
3578
3579 echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mcpu=powerpc" >&5
3580 echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=powerpc... $ECHO_C" >&6
3581 if test "${ac_m_cpu_powerpc+set}" = set; then
3582 echo $ECHO_N "(cached) $ECHO_C" >&6
3583 else
3584 echo 'void f(){}' > conftest.c
3585 if test -z "`${CC-cc} -mcpu=powerpc -c conftest.c 2>&1`"; then
3586 ac_m_cpu_powerpc=yes
3587 else
3588 ac_m_cpu_powerpc=no
3589 fi
3590 rm -f conftest*
3591
3592 fi
3593 echo "$as_me:$LINENO: result: $ac_m_cpu_powerpc" >&5
3594 echo "${ECHO_T}$ac_m_cpu_powerpc" >&6
3595 if test "$ac_m_cpu_powerpc" = yes; then
3596 :
3597 CPU_FLAGS=-mcpu=powerpc
3598 else
3599 :
3600
3601 fi
3602
3603 fi
3604 if test -z "$CPU_FLAGS"; then
3605
3606
3607 echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mpowerpc" >&5
3608 echo $ECHO_N "checking whether ${CC-cc} accepts -mpowerpc... $ECHO_C" >&6
3609 if test "${ac_m_powerpc+set}" = set; then
3610 echo $ECHO_N "(cached) $ECHO_C" >&6
3611 else
3612 echo 'void f(){}' > conftest.c
3613 if test -z "`${CC-cc} -mpowerpc -c conftest.c 2>&1`"; then
3614 ac_m_powerpc=yes
3615 else
3616 ac_m_powerpc=no
3617 fi
3618 rm -f conftest*
3619
3620 fi
3621 echo "$as_me:$LINENO: result: $ac_m_powerpc" >&5
3622 echo "${ECHO_T}$ac_m_powerpc" >&6
3623 if test "$ac_m_powerpc" = yes; then
3624 :
3625 CPU_FLAGS=-mpowerpc
3626 else
3627 :
3628
3629 fi
3630
3631 fi
3632 esac
3633 fi
3634
3635 if test -n "$CPU_FLAGS"; then
3636 CFLAGS="$CFLAGS $CPU_FLAGS"
3637 fi
3638
3639 if test -z "$CFLAGS"; then
3640 echo ""
3641 echo "********************************************************"
3642 echo "* WARNING: Don't know the best CFLAGS for this system *"
3643 echo "* Use make CFLAGS=..., or edit the top level Makefile *"
3644 echo "* (otherwise, a default of CFLAGS=-O3 will be used) *"
3645 echo "********************************************************"
3646 echo ""
3647 CFLAGS="-O3"
3648 fi
3649
3650
3651
3652 echo "$as_me:$LINENO: checking whether ${CC-cc} accepts ${CFLAGS}" >&5
3653 echo $ECHO_N "checking whether ${CC-cc} accepts ${CFLAGS}... $ECHO_C" >&6
3654 if test "${ac_guessed_cflags+set}" = set; then
3655 echo $ECHO_N "(cached) $ECHO_C" >&6
3656 else
3657 echo 'void f(){}' > conftest.c
3658 if test -z "`${CC-cc} ${CFLAGS} -c conftest.c 2>&1`"; then
3659 ac_guessed_cflags=yes
3660 else
3661 ac_guessed_cflags=no
3662 fi
3663 rm -f conftest*
3664
3665 fi
3666 echo "$as_me:$LINENO: result: $ac_guessed_cflags" >&5
3667 echo "${ECHO_T}$ac_guessed_cflags" >&6
3668 if test "$ac_guessed_cflags" = yes; then
3669 :
3670
3671 else
3672 :
3673
3674 echo ""
3675 echo "********************************************************"
3676 echo "* WARNING: The guessed CFLAGS don't seem to work with *"
3677 echo "* your compiler. *"
3678 echo "* Use make CFLAGS=..., or edit the top level Makefile *"
3679 echo "********************************************************"
3680 echo ""
3681 CFLAGS=""
3682
3683 fi
3684
3685
3686 fi
3687
3688
3689
3690
3691
3692 # Try to determine "good" native compiler flags if none specified on command
3693 # line
3694 if test "$ac_test_CXXFLAGS" != "set"; then
3695 CXXFLAGS=""
3696 case "${host_cpu}-${host_os}" in
3697
3698 *linux*) if test "$CXX" = icc -o "$CXX" = icpc; then
3699 CXXFLAGS="-O"
3700 fi;;
3701 sparc-solaris2*) if test "$CXX" = CC; then
3702 CXXFLAGS="-native -fast -xO5 -dalign"
3703 fi;;
3704 rs6000*-aix*) if test "$CXX" = xlC; then
3705 CXXFLAGS="-O3 -qarch=pwrx -qtune=pwrx -qansialias -w"
3706 fi;;
3707 powerpc*-aix*)
3708 if test "$CXX" = xlC; then
3709 CXXFLAGS="-O3 -qarch=ppc -qansialias -w"
3710 echo "*******************************************************"
3711 echo "* You have AIX on an unknown powerpc system. It is *"
3712 echo "* recommended that you use *"
3713 echo "* *"
3714 echo "* CXXFLAGS=-O3 -qarch=ppc -qtune=xxx -qansialias -w *"
3715 echo "* ^^^ *"
3716 echo "* where xxx is 601, 603, 604, or whatever kind of *"
3717 echo "* PowerPC CPU you have. For more info, man cc. *"
3718 echo "*******************************************************"
3719 fi;;
3720 *darwin*)
3721 if test "$CXX" = xlC; then
3722 CXXFLAGS="-O3 -qtune=auto -qansialias -w"
3723 echo "*******************************************************"
3724 echo "* You have AIX on an unknown powerpc system. It is *"
3725 echo "* recommended that you use *"
3726 echo "* *"
3727 echo "* CXXFLAGS=-O3 -qarch=ppc -qtune=xxx -qansialias -w *"
3728 echo "* ^^^ *"
3729 echo "* where xxx is 601, 603, 604, or whatever kind of *"
3730 echo "* PowerPC CPU you have. For more info, man cc. *"
3731 echo "*******************************************************"
3732 fi;;
3733 esac
3734
3735 # use default flags for gcc on all systems
3736 if test $ac_cv_c_compiler_gnu = yes; then
3737 CXXFLAGS="-O6 -fomit-frame-pointer -Wall -W -Wcast-qual -Wpointer-arith -Wcast-align -pedantic"
3738 fi
3739
3740 # test for gcc-specific flags:
3741 if test $ac_cv_c_compiler_gnu = yes; then
3742 # -malign-double for x86 systems
3743
3744
3745 echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -malign-double" >&5
3746 echo $ECHO_N "checking whether ${CXX-c++} accepts -malign-double... $ECHO_C" >&6
3747 if test "${ac_align_double+set}" = set; then
3748 echo $ECHO_N "(cached) $ECHO_C" >&6
3749 else
3750 echo 'void f(){}' > conftest.cpp
3751 if test -z "`${CXX-c++} -malign-double -c conftest.cpp 2>&1`"; then
3752 ac_align_double=yes
3753 else
3754 ac_align_double=no
3755 fi
3756 rm -f conftest*
3757
3758 fi
3759 echo "$as_me:$LINENO: result: $ac_align_double" >&5
3760 echo "${ECHO_T}$ac_align_double" >&6
3761 if test "$ac_align_double" = yes; then
3762 :
3763 CXXFLAGS="$CXXFLAGS -malign-double"
3764 else
3765 :
3766
3767 fi
3768
3769 # -fstrict-aliasing for gcc-2.95+
3770
3771
3772 echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -fstrict-aliasing" >&5
3773 echo $ECHO_N "checking whether ${CXX-c++} accepts -fstrict-aliasing... $ECHO_C" >&6
3774 if test "${ac_fstrict_aliasing+set}" = set; then
3775 echo $ECHO_N "(cached) $ECHO_C" >&6
3776 else
3777 echo 'void f(){}' > conftest.cpp
3778 if test -z "`${CXX-c++} -fstrict-aliasing -c conftest.cpp 2>&1`"; then
3779 ac_fstrict_aliasing=yes
3780 else
3781 ac_fstrict_aliasing=no
3782 fi
3783 rm -f conftest*
3784
3785 fi
3786 echo "$as_me:$LINENO: result: $ac_fstrict_aliasing" >&5
3787 echo "${ECHO_T}$ac_fstrict_aliasing" >&6
3788 if test "$ac_fstrict_aliasing" = yes; then
3789 :
3790 CXXFLAGS="$CXXFLAGS -fstrict-aliasing"
3791 else
3792 :
3793
3794 fi
3795
3796 fi
3797
3798 CPU_FLAGS=""
3799 if test "$GCC" = "yes"; then
3800 case "${host_cpu}" in
3801 i586*)
3802
3803 echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mcpu=pentium" >&5
3804 echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=pentium... $ECHO_C" >&6
3805 if test "${ac_cpu_pentium+set}" = set; then
3806 echo $ECHO_N "(cached) $ECHO_C" >&6
3807 else
3808 echo 'void f(){}' > conftest.c
3809 if test -z "`${CC-cc} -mcpu=pentium -c conftest.c 2>&1`"; then
3810 ac_cpu_pentium=yes
3811 else
3812 ac_cpu_pentium=no
3813 fi
3814 rm -f conftest*
3815
3816 fi
3817 echo "$as_me:$LINENO: result: $ac_cpu_pentium" >&5
3818 echo "${ECHO_T}$ac_cpu_pentium" >&6
3819 if test "$ac_cpu_pentium" = yes; then
3820 :
3821 CPU_FLAGS=-mcpu=pentium
3822 else
3823 :
3824
3825
3826 echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mpentium" >&5
3827 echo $ECHO_N "checking whether ${CXX-c++} accepts -mpentium... $ECHO_C" >&6
3828 if test "${ac_pentium+set}" = set; then
3829 echo $ECHO_N "(cached) $ECHO_C" >&6
3830 else
3831 echo 'void f(){}' > conftest.cpp
3832 if test -z "`${CXX-c++} -mpentium -c conftest.cpp 2>&1`"; then
3833 ac_pentium=yes
3834 else
3835 ac_pentium=no
3836 fi
3837 rm -f conftest*
3838
3839 fi
3840 echo "$as_me:$LINENO: result: $ac_pentium" >&5
3841 echo "${ECHO_T}$ac_pentium" >&6
3842 if test "$ac_pentium" = yes; then
3843 :
3844 CPU_FLAGS=-mpentium
3845 else
3846 :
3847
3848 fi
3849
3850 fi
3851
3852 ;;
3853 i686*)
3854
3855 echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mcpu=pentiumpro" >&5
3856 echo $ECHO_N "checking whether ${CXX-c++} accepts -mcpu=pentiumpro... $ECHO_C" >&6
3857 if test "${ac_cpu_pentiumpro+set}" = set; then
3858 echo $ECHO_N "(cached) $ECHO_C" >&6
3859 else
3860 echo 'void f(){}' > conftest.cpp
3861 if test -z "`${CXX-c++} -mcpu=pentiumpro -c conftest.cpp 2>&1`"; then
3862 ac_cpu_pentiumpro=yes
3863 else
3864 ac_cpu_pentiumpro=no
3865 fi
3866 rm -f conftest*
3867
3868 fi
3869 echo "$as_me:$LINENO: result: $ac_cpu_pentiumpro" >&5
3870 echo "${ECHO_T}$ac_cpu_pentiumpro" >&6
3871 if test "$ac_cpu_pentiumpro" = yes; then
3872 :
3873 CPU_FLAGS=-mcpu=pentiumpro
3874 else
3875 :
3876
3877
3878 echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mpentiumpro" >&5
3879 echo $ECHO_N "checking whether ${CXX-c++} accepts -mpentiumpro... $ECHO_C" >&6
3880 if test "${ac_pentiumpro+set}" = set; then
3881 echo $ECHO_N "(cached) $ECHO_C" >&6
3882 else
3883 echo 'void f(){}' > conftest.cpp
3884 if test -z "`${CXX-c++} -mpentiumpro -c conftest.cpp 2>&1`"; then
3885 ac_pentiumpro=yes
3886 else
3887 ac_pentiumpro=no
3888 fi
3889 rm -f conftest*
3890
3891 fi
3892 echo "$as_me:$LINENO: result: $ac_pentiumpro" >&5
3893 echo "${ECHO_T}$ac_pentiumpro" >&6
3894 if test "$ac_pentiumpro" = yes; then
3895 :
3896 CPU_FLAGS=-mpentiumpro
3897 else
3898 :
3899
3900 fi
3901
3902 fi
3903
3904 ;;
3905 powerpc*)
3906 cputype=`(grep cpu /proc/cpuinfo | head -1 | cut -d: -f2 | sed 's/ //g') 2> /dev/null`
3907 is60x=`echo $cputype | egrep "^600-9e?$"`
3908 if test -n "$is60x"; then
3909
3910
3911 echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mcpu=$cputype" >&5
3912 echo $ECHO_N "checking whether ${CXX-c++} accepts -mcpu=$cputype... $ECHO_C" >&6
3913 if test "${ac_m_cpu_60x+set}" = set; then
3914 echo $ECHO_N "(cached) $ECHO_C" >&6
3915 else
3916 echo 'void f(){}' > conftest.cpp
3917 if test -z "`${CXX-c++} -mcpu=$cputype -c conftest.cpp 2>&1`"; then
3918 ac_m_cpu_60x=yes
3919 else
3920 ac_m_cpu_60x=no
3921 fi
3922 rm -f conftest*
3923
3924 fi
3925 echo "$as_me:$LINENO: result: $ac_m_cpu_60x" >&5
3926 echo "${ECHO_T}$ac_m_cpu_60x" >&6
3927 if test "$ac_m_cpu_60x" = yes; then
3928 :
3929 CPU_FLAGS=-mcpu=$cputype
3930 else
3931 :
3932
3933 fi
3934
3935 elif test "$cputype" = 750; then
3936
3937
3938 echo "$as_me:$LINENO: checking whether we are using gcc 2.95 or later" >&5
3939 echo $ECHO_N "checking whether we are using gcc 2.95 or later... $ECHO_C" >&6
3940 if test "${ac_cv_prog_gcc_2_95+set}" = set; then
3941 echo $ECHO_N "(cached) $ECHO_C" >&6
3942 else
3943
3944 cat > conftest.c <<EOF
3945 #ifdef __GNUC__
3946 # if (__GNUC__ > 2) || (__GNUC__ == 2 && __GNUC_MINOR__ >= 95)
3947 yes;
3948 # endif
3949 #endif
3950 EOF
3951 if { ac_try='${CC-cc} -E conftest.c'
3952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3953 (eval $ac_try) 2>&5
3954 ac_status=$?
3955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3956 (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then
3957 ac_cv_prog_gcc_2_95=yes
3958 else
3959 ac_cv_prog_gcc_2_95=no
3960 fi
3961
3962 fi
3963 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_2_95" >&5
3964 echo "${ECHO_T}$ac_cv_prog_gcc_2_95" >&6
3965 if test "$ac_cv_prog_gcc_2_95" = yes; then
3966 :
3967
3968
3969 echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mcpu=750" >&5
3970 echo $ECHO_N "checking whether ${CXX-c++} accepts -mcpu=750... $ECHO_C" >&6
3971 if test "${ac_m_cpu_750+set}" = set; then
3972 echo $ECHO_N "(cached) $ECHO_C" >&6
3973 else
3974 echo 'void f(){}' > conftest.cpp
3975 if test -z "`${CXX-c++} -mcpu=750 -c conftest.cpp 2>&1`"; then
3976 ac_m_cpu_750=yes
3977 else
3978 ac_m_cpu_750=no
3979 fi
3980 rm -f conftest*
3981
3982 fi
3983 echo "$as_me:$LINENO: result: $ac_m_cpu_750" >&5
3984 echo "${ECHO_T}$ac_m_cpu_750" >&6
3985 if test "$ac_m_cpu_750" = yes; then
3986 :
3987 CPU_FLAGS=-mcpu=750
3988 else
3989 :
3990
3991 fi
3992
3993 else
3994 :
3995
3996 fi
3997
3998 fi
3999 if test -z "$CPU_FLAGS"; then
4000
4001
4002 echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mcpu=powerpc" >&5
4003 echo $ECHO_N "checking whether ${CXX-c++} accepts -mcpu=powerpc... $ECHO_C" >&6
4004 if test "${ac_m_cpu_powerpc+set}" = set; then
4005 echo $ECHO_N "(cached) $ECHO_C" >&6
4006 else
4007 echo 'void f(){}' > conftest.cpp
4008 if test -z "`${CXX-c++} -mcpu=powerpc -c conftest.cpp 2>&1`"; then
4009 ac_m_cpu_powerpc=yes
4010 else
4011 ac_m_cpu_powerpc=no
4012 fi
4013 rm -f conftest*
4014
4015 fi
4016 echo "$as_me:$LINENO: result: $ac_m_cpu_powerpc" >&5
4017 echo "${ECHO_T}$ac_m_cpu_powerpc" >&6
4018 if test "$ac_m_cpu_powerpc" = yes; then
4019 :
4020 CPU_FLAGS=-mcpu=powerpc
4021 else
4022 :
4023
4024 fi
4025
4026 fi
4027 if test -z "$CPU_FLAGS"; then
4028
4029
4030 echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mpowerpc" >&5
4031 echo $ECHO_N "checking whether ${CXX-c++} accepts -mpowerpc... $ECHO_C" >&6
4032 if test "${ac_m_powerpc+set}" = set; then
4033 echo $ECHO_N "(cached) $ECHO_C" >&6
4034 else
4035 echo 'void f(){}' > conftest.cpp
4036 if test -z "`${CXX-c++} -mpowerpc -c conftest.cpp 2>&1`"; then
4037 ac_m_powerpc=yes
4038 else
4039 ac_m_powerpc=no
4040 fi
4041 rm -f conftest*
4042
4043 fi
4044 echo "$as_me:$LINENO: result: $ac_m_powerpc" >&5
4045 echo "${ECHO_T}$ac_m_powerpc" >&6
4046 if test "$ac_m_powerpc" = yes; then
4047 :
4048 CPU_FLAGS=-mpowerpc
4049 else
4050 :
4051
4052 fi
4053
4054 fi
4055 esac
4056 fi
4057
4058 if test -n "$CPU_FLAGS"; then
4059 CXXFLAGS="$CXXFLAGS $CPU_FLAGS"
4060 fi
4061
4062 if test -z "$CXXFLAGS"; then
4063 echo ""
4064 echo "**********************************************************"
4065 echo "* WARNING: Don't know the best CXXFLAGS for this system *"
4066 echo "* Use make CXXFLAGS=..., or edit the top level Makefile *"
4067 echo "* (otherwise, a default of CXXFLAGS=-O3 will be used) *"
4068 echo "**********************************************************"
4069 echo ""
4070 CXXFLAGS="-O3"
4071 fi
4072
4073
4074
4075 echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts ${CXXFLAGS}" >&5
4076 echo $ECHO_N "checking whether ${CXX-c++} accepts ${CXXFLAGS}... $ECHO_C" >&6
4077 if test "${ac_guessed_cxxflags+set}" = set; then
4078 echo $ECHO_N "(cached) $ECHO_C" >&6
4079 else
4080 echo 'void f(){}' > conftest.cpp
4081 if test -z "`${CXX-c++} ${CXXFLAGS} -c conftest.cpp 2>&1`"; then
4082 ac_guessed_cxxflags=yes
4083 else
4084 ac_guessed_cxxflags=no
4085 fi
4086 rm -f conftest*
4087
4088 fi
4089 echo "$as_me:$LINENO: result: $ac_guessed_cxxflags" >&5
4090 echo "${ECHO_T}$ac_guessed_cxxflags" >&6
4091 if test "$ac_guessed_cxxflags" = yes; then
4092 :
4093
4094 else
4095 :
4096
4097 echo ""
4098 echo "**********************************************************"
4099 echo "* WARNING: The guessed CXXFLAGS don't seem to work with *"
4100 echo "* your compiler. *"
4101 echo "* Use make CXXFLAGS=..., or edit the top level Makefile *"
4102 echo "**********************************************************"
4103 echo ""
4104 CXXFLAGS=""
4105
4106 fi
4107
4108
4109 fi
4110
4111
4112
4113
4114
4115 # Try to determine "good" native compiler flags if none specified on command
4116 # line
4117
4118 if test x"$F90FLAGS" = x ; then
4119 F90FLAGS=""
4120 case "${host_cpu}-${host_os}" in
4121
4122 *linux*) if test "$F90" = ifc; then
4123 F90FLAGS="-O"
4124 fi;;
4125 rs6000*-aix*) if test "$F90" = xlf90 -o "$F90" = f90; then
4126 F90FLAGS="-O3 -qarch=pwrx -qtune=pwrx -qansialias -w"
4127 fi;;
4128 powerpc*-aix*)
4129 if test "$F90" = f90 -o "$F90" = xlf90; then
4130 F90FLAGS="-O3 -qarch=ppc -qansialias -w"
4131 echo "*******************************************************"
4132 echo "* You have AIX on an unknown powerpc system. It is *"
4133 echo "* recommended that you use *"
4134 echo "* *"
4135 echo "* F90FLAGS=-O3 -qarch=ppc -qtune=xxx -qansialias -w *"
4136 echo "* ^^^ *"
4137 echo "* where xxx is 601, 603, 604, or whatever kind of *"
4138 echo "* PowerPC CPU you have. For more info, man xlf. *"
4139 echo "*******************************************************"
4140 fi;;
4141 *darwin*)
4142 if test "$F90" = f90 -o "$F90" = xlf90; then
4143 F90FLAGS="-O3 -qtune=auto -w"
4144 echo "*********************************************************"
4145 echo "* You have Darwin on an unknown powerpc system. It is *"
4146 echo "* recommended that you use *"
4147 echo "* *"
4148 echo "* CXXFLAGS=-O3 -qarch=ppc -qtune=xxx -qansialias -w *"
4149 echo "* ^^^ *"
4150 echo "* where xxx is 601, 603, 604, or whatever kind of *"
4151 echo "* PowerPC CPU you have. For more info, man xlf. *"
4152 echo "*********************************************************"
4153 fi;;
4154 esac
4155
4156 if test -n "$CPU_FLAGS"; then
4157 F90FLAGS="$F90FLAGS $CPU_FLAGS"
4158 fi
4159
4160 if test -z "$F90FLAGS"; then
4161 echo ""
4162 echo "**********************************************************"
4163 echo "* WARNING: Don't know the best F90FLAGS for this system *"
4164 echo "* Use make F90FLAGS=..., or edit the top level Makefile *"
4165 echo "* (otherwise, a default of F90FLAGS=-O3 will be used) *"
4166 echo "**********************************************************"
4167 echo ""
4168 F90FLAGS="-O3"
4169 fi
4170
4171
4172 echo "$as_me:$LINENO: checking whether ${F90-f90} accepts ${F90FLAGS}" >&5
4173 echo $ECHO_N "checking whether ${F90-f90} accepts ${F90FLAGS}... $ECHO_C" >&6
4174 if test "${ac_guessed_f90flags+set}" = set; then
4175 echo $ECHO_N "(cached) $ECHO_C" >&6
4176 else
4177
4178
4179
4180 ac_ext=f90
4181 ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
4182 ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4183 ac_compiler_gnu=$ac_cv_f90_compiler_gnu
4184
4185 echo 'program main' > conftest.$ac_ext
4186 echo 'end program main' >> conftest.$ac_ext
4187 ac_compile='${F90-f90} -c ${F90FLAGS} $F90FLAGS conftest.$ac_ext 1>&5'
4188 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4189 (eval $ac_compile) 2>&5
4190 ac_status=$?
4191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4192 (exit $ac_status); }; then
4193 ac_guessed_f90flags=yes
4194 else
4195 ac_guessed_f90flags=no
4196 fi
4197 rm -f conftest*
4198 ac_ext=c
4199 ac_cpp='$CPP $CPPFLAGS'
4200 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4201 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4202 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4203
4204
4205 fi
4206 echo "$as_me:$LINENO: result: $ac_guessed_f90flags" >&5
4207 echo "${ECHO_T}$ac_guessed_f90flags" >&6
4208 if test "$ac_guessed_f90flags" = yes; then
4209 :
4210
4211 else
4212 :
4213
4214 echo ""
4215 echo "**********************************************************"
4216 echo "* WARNING: The guessed F90FLAGS don't seem to work with *"
4217 echo "* your compiler. *"
4218 echo "* Use make F90FLAGS=..., or edit the top level Makefile *"
4219 echo "**********************************************************"
4220 echo ""
4221 F90FLAGS=""
4222
4223 fi
4224
4225
4226 fi
4227
4228 ;;
4229 esac
4230
4231 # Find a good install program. We prefer a C program (faster),
4232 # so one script is as good as another. But avoid the broken or
4233 # incompatible versions:
4234 # SysV /etc/install, /usr/sbin/install
4235 # SunOS /usr/etc/install
4236 # IRIX /sbin/install
4237 # AIX /bin/install
4238 # AmigaOS /C/install, which installs bootblocks on floppy discs
4239 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4240 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4241 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4242 # ./install, which can be erroneously created by make from ./install.sh.
4243 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4244 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4245 if test -z "$INSTALL"; then
4246 if test "${ac_cv_path_install+set}" = set; then
4247 echo $ECHO_N "(cached) $ECHO_C" >&6
4248 else
4249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4250 for as_dir in $PATH
4251 do
4252 IFS=$as_save_IFS
4253 test -z "$as_dir" && as_dir=.
4254 # Account for people who put trailing slashes in PATH elements.
4255 case $as_dir/ in
4256 ./ | .// | /cC/* | \
4257 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4258 /usr/ucb/* ) ;;
4259 *)
4260 # OSF1 and SCO ODT 3.0 have their own names for install.
4261 # Don't use installbsd from OSF since it installs stuff as root
4262 # by default.
4263 for ac_prog in ginstall scoinst install; do
4264 for ac_exec_ext in '' $ac_executable_extensions; do
4265 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4266 if test $ac_prog = install &&
4267 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4268 # AIX install. It has an incompatible calling convention.
4269 :
4270 elif test $ac_prog = install &&
4271 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4272 # program-specific install script used by HP pwplus--don't use.
4273 :
4274 else
4275 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4276 break 3
4277 fi
4278 fi
4279 done
4280 done
4281 ;;
4282 esac
4283 done
4284
4285
4286 fi
4287 if test "${ac_cv_path_install+set}" = set; then
4288 INSTALL=$ac_cv_path_install
4289 else
4290 # As a last resort, use the slow shell script. We don't cache a
4291 # path for INSTALL within a source directory, because that will
4292 # break other packages using the cache if that directory is
4293 # removed, or if the path is relative.
4294 INSTALL=$ac_install_sh
4295 fi
4296 fi
4297 echo "$as_me:$LINENO: result: $INSTALL" >&5
4298 echo "${ECHO_T}$INSTALL" >&6
4299
4300 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4301 # It thinks the first close brace ends the variable substitution.
4302 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4303
4304 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4305
4306 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4307
4308 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4309 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4310 LN_S=$as_ln_s
4311 if test "$LN_S" = "ln -s"; then
4312 echo "$as_me:$LINENO: result: yes" >&5
4313 echo "${ECHO_T}yes" >&6
4314 else
4315 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4316 echo "${ECHO_T}no, using $LN_S" >&6
4317 fi
4318
4319 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4320 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4321 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
4322 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4323 echo $ECHO_N "(cached) $ECHO_C" >&6
4324 else
4325 cat >conftest.make <<\_ACEOF
4326 all:
4327 @echo 'ac_maketemp="$(MAKE)"'
4328 _ACEOF
4329 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4330 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4331 if test -n "$ac_maketemp"; then
4332 eval ac_cv_prog_make_${ac_make}_set=yes
4333 else
4334 eval ac_cv_prog_make_${ac_make}_set=no
4335 fi
4336 rm -f conftest.make
4337 fi
4338 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4339 echo "$as_me:$LINENO: result: yes" >&5
4340 echo "${ECHO_T}yes" >&6
4341 SET_MAKE=
4342 else
4343 echo "$as_me:$LINENO: result: no" >&5
4344 echo "${ECHO_T}no" >&6
4345 SET_MAKE="MAKE=${MAKE-make}"
4346 fi
4347
4348 if test -n "$ac_tool_prefix"; then
4349 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4350 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4351 echo "$as_me:$LINENO: checking for $ac_word" >&5
4352 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4353 if test "${ac_cv_prog_RANLIB+set}" = set; then
4354 echo $ECHO_N "(cached) $ECHO_C" >&6
4355 else
4356 if test -n "$RANLIB"; then
4357 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4358 else
4359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4360 for as_dir in $PATH
4361 do
4362 IFS=$as_save_IFS
4363 test -z "$as_dir" && as_dir=.
4364 for ac_exec_ext in '' $ac_executable_extensions; do
4365 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4366 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4367 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4368 break 2
4369 fi
4370 done
4371 done
4372
4373 fi
4374 fi
4375 RANLIB=$ac_cv_prog_RANLIB
4376 if test -n "$RANLIB"; then
4377 echo "$as_me:$LINENO: result: $RANLIB" >&5
4378 echo "${ECHO_T}$RANLIB" >&6
4379 else
4380 echo "$as_me:$LINENO: result: no" >&5
4381 echo "${ECHO_T}no" >&6
4382 fi
4383
4384 fi
4385 if test -z "$ac_cv_prog_RANLIB"; then
4386 ac_ct_RANLIB=$RANLIB
4387 # Extract the first word of "ranlib", so it can be a program name with args.
4388 set dummy ranlib; ac_word=$2
4389 echo "$as_me:$LINENO: checking for $ac_word" >&5
4390 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4391 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4392 echo $ECHO_N "(cached) $ECHO_C" >&6
4393 else
4394 if test -n "$ac_ct_RANLIB"; then
4395 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4396 else
4397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4398 for as_dir in $PATH
4399 do
4400 IFS=$as_save_IFS
4401 test -z "$as_dir" && as_dir=.
4402 for ac_exec_ext in '' $ac_executable_extensions; do
4403 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4404 ac_cv_prog_ac_ct_RANLIB="ranlib"
4405 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4406 break 2
4407 fi
4408 done
4409 done
4410
4411 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4412 fi
4413 fi
4414 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4415 if test -n "$ac_ct_RANLIB"; then
4416 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4417 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4418 else
4419 echo "$as_me:$LINENO: result: no" >&5
4420 echo "${ECHO_T}no" >&6
4421 fi
4422
4423 RANLIB=$ac_ct_RANLIB
4424 else
4425 RANLIB="$ac_cv_prog_RANLIB"
4426 fi
4427
4428 for ac_prog in 'bison -y' byacc
4429 do
4430 # Extract the first word of "$ac_prog", so it can be a program name with args.
4431 set dummy $ac_prog; ac_word=$2
4432 echo "$as_me:$LINENO: checking for $ac_word" >&5
4433 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4434 if test "${ac_cv_prog_YACC+set}" = set; then
4435 echo $ECHO_N "(cached) $ECHO_C" >&6
4436 else
4437 if test -n "$YACC"; then
4438 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4439 else
4440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4441 for as_dir in $PATH
4442 do
4443 IFS=$as_save_IFS
4444 test -z "$as_dir" && as_dir=.
4445 for ac_exec_ext in '' $ac_executable_extensions; do
4446 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4447 ac_cv_prog_YACC="$ac_prog"
4448 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4449 break 2
4450 fi
4451 done
4452 done
4453
4454 fi
4455 fi
4456 YACC=$ac_cv_prog_YACC
4457 if test -n "$YACC"; then
4458 echo "$as_me:$LINENO: result: $YACC" >&5
4459 echo "${ECHO_T}$YACC" >&6
4460 else
4461 echo "$as_me:$LINENO: result: no" >&5
4462 echo "${ECHO_T}no" >&6
4463 fi
4464
4465 test -n "$YACC" && break
4466 done
4467 test -n "$YACC" || YACC="yacc"
4468
4469
4470 for ac_prog in flex lex
4471 do
4472 # Extract the first word of "$ac_prog", so it can be a program name with args.
4473 set dummy $ac_prog; ac_word=$2
4474 echo "$as_me:$LINENO: checking for $ac_word" >&5
4475 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4476 if test "${ac_cv_prog_LEX+set}" = set; then
4477 echo $ECHO_N "(cached) $ECHO_C" >&6
4478 else
4479 if test -n "$LEX"; then
4480 ac_cv_prog_LEX="$LEX" # Let the user override the test.
4481 else
4482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4483 for as_dir in $PATH
4484 do
4485 IFS=$as_save_IFS
4486 test -z "$as_dir" && as_dir=.
4487 for ac_exec_ext in '' $ac_executable_extensions; do
4488 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4489 ac_cv_prog_LEX="$ac_prog"
4490 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4491 break 2
4492 fi
4493 done
4494 done
4495
4496 fi
4497 fi
4498 LEX=$ac_cv_prog_LEX
4499 if test -n "$LEX"; then
4500 echo "$as_me:$LINENO: result: $LEX" >&5
4501 echo "${ECHO_T}$LEX" >&6
4502 else
4503 echo "$as_me:$LINENO: result: no" >&5
4504 echo "${ECHO_T}no" >&6
4505 fi
4506
4507 test -n "$LEX" && break
4508 done
4509 test -n "$LEX" || LEX=":"
4510
4511 if test -z "$LEXLIB"
4512 then
4513 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
4514 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
4515 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
4516 echo $ECHO_N "(cached) $ECHO_C" >&6
4517 else
4518 ac_check_lib_save_LIBS=$LIBS
4519 LIBS="-lfl $LIBS"
4520 cat >conftest.$ac_ext <<_ACEOF
4521 #line $LINENO "configure"
4522 /* confdefs.h. */
4523 _ACEOF
4524 cat confdefs.h >>conftest.$ac_ext
4525 cat >>conftest.$ac_ext <<_ACEOF
4526 /* end confdefs.h. */
4527
4528 /* Override any gcc2 internal prototype to avoid an error. */
4529 #ifdef __cplusplus
4530 extern "C"
4531 #endif
4532 /* We use char because int might match the return type of a gcc2
4533 builtin and then its argument prototype would still apply. */
4534 char yywrap ();
4535 int
4536 main ()
4537 {
4538 yywrap ();
4539 ;
4540 return 0;
4541 }
4542 _ACEOF
4543 rm -f conftest.$ac_objext conftest$ac_exeext
4544 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4545 (eval $ac_link) 2>&5
4546 ac_status=$?
4547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4548 (exit $ac_status); } &&
4549 { ac_try='test -s conftest$ac_exeext'
4550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4551 (eval $ac_try) 2>&5
4552 ac_status=$?
4553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4554 (exit $ac_status); }; }; then
4555 ac_cv_lib_fl_yywrap=yes
4556 else
4557 echo "$as_me: failed program was:" >&5
4558 sed 's/^/| /' conftest.$ac_ext >&5
4559
4560 ac_cv_lib_fl_yywrap=no
4561 fi
4562 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4563 LIBS=$ac_check_lib_save_LIBS
4564 fi
4565 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
4566 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
4567 if test $ac_cv_lib_fl_yywrap = yes; then
4568 LEXLIB="-lfl"
4569 else
4570 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
4571 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
4572 if test "${ac_cv_lib_l_yywrap+set}" = set; then
4573 echo $ECHO_N "(cached) $ECHO_C" >&6
4574 else
4575 ac_check_lib_save_LIBS=$LIBS
4576 LIBS="-ll $LIBS"
4577 cat >conftest.$ac_ext <<_ACEOF
4578 #line $LINENO "configure"
4579 /* confdefs.h. */
4580 _ACEOF
4581 cat confdefs.h >>conftest.$ac_ext
4582 cat >>conftest.$ac_ext <<_ACEOF
4583 /* end confdefs.h. */
4584
4585 /* Override any gcc2 internal prototype to avoid an error. */
4586 #ifdef __cplusplus
4587 extern "C"
4588 #endif
4589 /* We use char because int might match the return type of a gcc2
4590 builtin and then its argument prototype would still apply. */
4591 char yywrap ();
4592 int
4593 main ()
4594 {
4595 yywrap ();
4596 ;
4597 return 0;
4598 }
4599 _ACEOF
4600 rm -f conftest.$ac_objext conftest$ac_exeext
4601 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4602 (eval $ac_link) 2>&5
4603 ac_status=$?
4604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4605 (exit $ac_status); } &&
4606 { ac_try='test -s conftest$ac_exeext'
4607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4608 (eval $ac_try) 2>&5
4609 ac_status=$?
4610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4611 (exit $ac_status); }; }; then
4612 ac_cv_lib_l_yywrap=yes
4613 else
4614 echo "$as_me: failed program was:" >&5
4615 sed 's/^/| /' conftest.$ac_ext >&5
4616
4617 ac_cv_lib_l_yywrap=no
4618 fi
4619 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4620 LIBS=$ac_check_lib_save_LIBS
4621 fi
4622 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
4623 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
4624 if test $ac_cv_lib_l_yywrap = yes; then
4625 LEXLIB="-ll"
4626 fi
4627
4628 fi
4629
4630 fi
4631
4632 if test "x$LEX" != "x:"; then
4633 echo "$as_me:$LINENO: checking lex output file root" >&5
4634 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
4635 if test "${ac_cv_prog_lex_root+set}" = set; then
4636 echo $ECHO_N "(cached) $ECHO_C" >&6
4637 else
4638 # The minimal lex program is just a single line: %%. But some broken lexes
4639 # (Solaris, I think it was) want two %% lines, so accommodate them.
4640 cat >conftest.l <<_ACEOF
4641 %%
4642 %%
4643 _ACEOF
4644 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
4645 (eval $LEX conftest.l) 2>&5
4646 ac_status=$?
4647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4648 (exit $ac_status); }
4649 if test -f lex.yy.c; then
4650 ac_cv_prog_lex_root=lex.yy
4651 elif test -f lexyy.c; then
4652 ac_cv_prog_lex_root=lexyy
4653 else
4654 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
4655 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
4656 { (exit 1); exit 1; }; }
4657 fi
4658 fi
4659 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
4660 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
4661 rm -f conftest.l
4662 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4663
4664 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
4665 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
4666 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
4667 echo $ECHO_N "(cached) $ECHO_C" >&6
4668 else
4669 # POSIX says lex can declare yytext either as a pointer or an array; the
4670 # default is implementation-dependent. Figure out which it is, since
4671 # not all implementations provide the %pointer and %array declarations.
4672 ac_cv_prog_lex_yytext_pointer=no
4673 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
4674 ac_save_LIBS=$LIBS
4675 LIBS="$LIBS $LEXLIB"
4676 cat >conftest.$ac_ext <<_ACEOF
4677 `cat $LEX_OUTPUT_ROOT.c`
4678 _ACEOF
4679 rm -f conftest.$ac_objext conftest$ac_exeext
4680 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4681 (eval $ac_link) 2>&5
4682 ac_status=$?
4683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4684 (exit $ac_status); } &&
4685 { ac_try='test -s conftest$ac_exeext'
4686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4687 (eval $ac_try) 2>&5
4688 ac_status=$?
4689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4690 (exit $ac_status); }; }; then
4691 ac_cv_prog_lex_yytext_pointer=yes
4692 else
4693 echo "$as_me: failed program was:" >&5
4694 sed 's/^/| /' conftest.$ac_ext >&5
4695
4696 fi
4697 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4698 LIBS=$ac_save_LIBS
4699 rm -f "${LEX_OUTPUT_ROOT}.c"
4700
4701 fi
4702 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
4703 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
4704 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4705
4706 cat >>confdefs.h <<\_ACEOF
4707 #define YYTEXT_POINTER 1
4708 _ACEOF
4709
4710 fi
4711
4712 fi
4713 # Extract the first word of "ar", so it can be a program name with args.
4714 set dummy ar; ac_word=$2
4715 echo "$as_me:$LINENO: checking for $ac_word" >&5
4716 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4717 if test "${ac_cv_prog_AR+set}" = set; then
4718 echo $ECHO_N "(cached) $ECHO_C" >&6
4719 else
4720 if test -n "$AR"; then
4721 ac_cv_prog_AR="$AR" # Let the user override the test.
4722 else
4723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4724 for as_dir in $PATH
4725 do
4726 IFS=$as_save_IFS
4727 test -z "$as_dir" && as_dir=.
4728 for ac_exec_ext in '' $ac_executable_extensions; do
4729 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4730 ac_cv_prog_AR="ar"
4731 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4732 break 2
4733 fi
4734 done
4735 done
4736
4737 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="NONE"
4738 fi
4739 fi
4740 AR=$ac_cv_prog_AR
4741 if test -n "$AR"; then
4742 echo "$as_me:$LINENO: result: $AR" >&5
4743 echo "${ECHO_T}$AR" >&6
4744 else
4745 echo "$as_me:$LINENO: result: no" >&5
4746 echo "${ECHO_T}no" >&6
4747 fi
4748
4749 if test "$AR" = "NONE"; then
4750 { { echo "$as_me:$LINENO: error: --> Can't find \`ar'!" >&5
4751 echo "$as_me: error: --> Can't find \`ar'!" >&2;}
4752 { (exit 1); exit 1; }; }
4753 cat >confcache <<\_ACEOF
4754 # This file is a shell script that caches the results of configure
4755 # tests run on this system so they can be shared between configure
4756 # scripts and configure runs, see configure's option --config-cache.
4757 # It is not useful on other systems. If it contains results you don't
4758 # want to keep, you may remove or edit it.
4759 #
4760 # config.status only pays attention to the cache file if you give it
4761 # the --recheck option to rerun configure.
4762 #
4763 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4764 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4765 # following values.
4766
4767 _ACEOF
4768
4769 # The following way of writing the cache mishandles newlines in values,
4770 # but we know of no workaround that is simple, portable, and efficient.
4771 # So, don't put newlines in cache variables' values.
4772 # Ultrix sh set writes to stderr and can't be redirected directly,
4773 # and sets the high bit in the cache file unless we assign to the vars.
4774 {
4775 (set) 2>&1 |
4776 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4777 *ac_space=\ *)
4778 # `set' does not quote correctly, so add quotes (double-quote
4779 # substitution turns \\\\ into \\, and sed turns \\ into \).
4780 sed -n \
4781 "s/'/'\\\\''/g;
4782 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4783 ;;
4784 *)
4785 # `set' quotes correctly as required by POSIX, so do not add quotes.
4786 sed -n \
4787 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4788 ;;
4789 esac;
4790 } |
4791 sed '
4792 t clear
4793 : clear
4794 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4795 t end
4796 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4797 : end' >>confcache
4798 if diff $cache_file confcache >/dev/null 2>&1; then :; else
4799 if test -w $cache_file; then
4800 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4801 cat confcache >$cache_file
4802 else
4803 echo "not updating unwritable cache $cache_file"
4804 fi
4805 fi
4806 rm -f confcache
4807 exit 1
4808 fi
4809
4810 ac_ext=f90
4811 ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
4812 ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4813 ac_compiler_gnu=$ac_cv_f90_compiler_gnu
4814
4815
4816
4817 ac_ext=f90
4818 ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
4819 ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4820 ac_compiler_gnu=$ac_cv_f90_compiler_gnu
4821 echo "$as_me:$LINENO: checking how to get verbose linking output from $F90" >&5
4822 echo $ECHO_N "checking how to get verbose linking output from $F90... $ECHO_C" >&6
4823 if test "${ac_cv_prog_f90_v+set}" = set; then
4824 echo $ECHO_N "(cached) $ECHO_C" >&6
4825 else
4826
4827 cat >conftest.$ac_ext <<_ACEOF
4828
4829 program main
4830
4831
4832 end program main
4833
4834 _ACEOF
4835 rm -f conftest.$ac_objext
4836 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4837 (eval $ac_compile) 2>&5
4838 ac_status=$?
4839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4840 (exit $ac_status); } &&
4841 { ac_try='test -s conftest.$ac_objext'
4842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4843 (eval $ac_try) 2>&5
4844 ac_status=$?
4845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4846 (exit $ac_status); }; }; then
4847 ac_cv_prog_f90_v=
4848 # Try some options frequently used verbose output
4849 for ac_verb in -v -verbose --verbose -V -\#\#\#; do
4850 ac_ext=f90
4851 ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
4852 ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4853 ac_compiler_gnu=$ac_cv_f90_compiler_gnu
4854
4855 cat >conftest.$ac_ext <<_ACEOF
4856
4857 program main
4858
4859
4860 end program main
4861
4862 _ACEOF
4863
4864 # Compile and link our simple test program by passing a flag (argument
4865 # 1 to this macro) to the Fortran 90 compiler in order to get
4866 # "verbose" output that we can then parse for the Fortran 90 linker
4867 # flags.
4868 ac_save_F90FLAGS=$F90FLAGS
4869 F90FLAGS="$F90FLAGS $ac_verb"
4870
4871 (eval echo $as_me:4871: \"$ac_link\") >&5
4872 ac_f90_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
4873 echo "$ac_f90_v_output" >&5
4874 F90FLAGS=$ac_save_F90FLAGS
4875
4876 rm -f conftest.*
4877 ac_ext=f90
4878 ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
4879 ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4880 ac_compiler_gnu=$ac_cv_f90_compiler_gnu
4881
4882 # If we are using xlf then replace all the commas with spaces.
4883 if echo $ac_f90_v_output | grep xlfentry >/dev/null 2>&1; then
4884 ac_f90_v_output=`echo $ac_f90_v_output | sed 's/,/ /g'`
4885 fi
4886
4887 # If we are using Cray Fortran then delete quotes.
4888 # Use "\"" instead of '"' for font-lock-mode.
4889 # FIXME: a more general fix for quoted arguments with spaces?
4890 if echo $ac_f90_v_output | grep cft90 >/dev/null 2>&1; then
4891 ac_f90_v_output=`echo $ac_f90_v_output | sed "s/\"//g"`
4892 fi
4893 # look for -l* and *.a constructs in the output
4894 for ac_arg in $ac_f90_v_output; do
4895 case $ac_arg in
4896 [\\/]*.a | ?:[\\/]*.a | -[lLRu]*)
4897 ac_cv_prog_f90_v=$ac_verb
4898 break 2 ;;
4899 esac
4900 done
4901 done
4902 if test -z "$ac_cv_prog_f90_v"; then
4903 { echo "$as_me:$LINENO: WARNING: cannot determine how to obtain linking information from $F90" >&5
4904 echo "$as_me: WARNING: cannot determine how to obtain linking information from $F90" >&2;}
4905 fi
4906 else
4907 echo "$as_me: failed program was:" >&5
4908 sed 's/^/| /' conftest.$ac_ext >&5
4909
4910 { echo "$as_me:$LINENO: WARNING: compilation failed" >&5
4911 echo "$as_me: WARNING: compilation failed" >&2;}
4912 fi
4913 rm -f conftest.$ac_objext conftest.$ac_ext
4914
4915 fi
4916 echo "$as_me:$LINENO: result: $ac_cv_prog_f90_v" >&5
4917 echo "${ECHO_T}$ac_cv_prog_f90_v" >&6
4918 echo "$as_me:$LINENO: checking for Fortran 90 libraries" >&5
4919 echo $ECHO_N "checking for Fortran 90 libraries... $ECHO_C" >&6
4920 if test "${ac_cv_flibs+set}" = set; then
4921 echo $ECHO_N "(cached) $ECHO_C" >&6
4922 else
4923 if test "x$F90LIBS" != "x"; then
4924 ac_cv_f90libs="$F90LIBS" # Let the user override the test.
4925 else
4926
4927 ac_ext=f90
4928 ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
4929 ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4930 ac_compiler_gnu=$ac_cv_f90_compiler_gnu
4931
4932 cat >conftest.$ac_ext <<_ACEOF
4933
4934 program main
4935
4936
4937 end program main
4938
4939 _ACEOF
4940
4941 # Compile and link our simple test program by passing a flag (argument
4942 # 1 to this macro) to the Fortran 90 compiler in order to get
4943 # "verbose" output that we can then parse for the Fortran 90 linker
4944 # flags.
4945 ac_save_F90FLAGS=$F90FLAGS
4946 F90FLAGS="$F90FLAGS $ac_cv_prog_f90_v"
4947
4948 (eval echo $as_me:4948: \"$ac_link\") >&5
4949 ac_f90_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
4950 echo "$ac_f90_v_output" >&5
4951 F90FLAGS=$ac_save_F90FLAGS
4952
4953 rm -f conftest.*
4954 ac_ext=f90
4955 ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
4956 ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4957 ac_compiler_gnu=$ac_cv_f90_compiler_gnu
4958
4959 # If we are using xlf then replace all the commas with spaces.
4960 if echo $ac_f90_v_output | grep xlfentry >/dev/null 2>&1; then
4961 ac_f90_v_output=`echo $ac_f90_v_output | sed 's/,/ /g'`
4962 fi
4963
4964 # If we are using Cray Fortran then delete quotes.
4965 # Use "\"" instead of '"' for font-lock-mode.
4966 # FIXME: a more general fix for quoted arguments with spaces?
4967 if echo $ac_f90_v_output | grep cft90 >/dev/null 2>&1; then
4968 ac_f90_v_output=`echo $ac_f90_v_output | sed "s/\"//g"`
4969 fi
4970
4971 ac_cv_f90libs=
4972
4973 # Save positional arguments (if any)
4974 ac_save_positional="$@"
4975
4976 set X $ac_f90_v_output
4977 while test $# != 1; do
4978 shift
4979 ac_arg=$1
4980 case $ac_arg in
4981 [\\/]*.a | ?:[\\/]*.a)
4982 ac_exists=false
4983 for ac_i in $ac_cv_f90libs; do
4984 if test x"$ac_arg" = x"$ac_i"; then
4985 ac_exists=true
4986 break
4987 fi
4988 done
4989
4990 if test x"$ac_exists" = xtrue; then
4991 :
4992 else
4993 ac_cv_f90libs="$ac_cv_f90libs $ac_arg"
4994 fi
4995
4996 ;;
4997 -bI:*)
4998 ac_exists=false
4999 for ac_i in $ac_cv_f90libs; do
5000 if test x"$ac_arg" = x"$ac_i"; then
5001 ac_exists=true
5002 break
5003 fi
5004 done
5005
5006 if test x"$ac_exists" = xtrue; then
5007 :
5008 else
5009 if test "$ac_compiler_gnu" = yes; then
5010 for ac_link_opt in $ac_arg; do
5011 ac_cv_f90libs="$ac_cv_f90libs -Xlinker $ac_link_opt"
5012 done
5013 else
5014 ac_cv_f90libs="$ac_cv_f90libs $ac_arg"
5015 fi
5016 fi
5017
5018 ;;
5019 # Ignore these flags.
5020 -lang* | -lcrt0.o | -lc | -lgcc | -LANG:=*)
5021 ;;
5022 -lkernel32)
5023 test x"$CYGWIN" != xyes && ac_cv_f90libs="$ac_cv_f90libs $ac_arg"
5024 ;;
5025 -[LRuY])
5026 # These flags, when seen by themselves, take an argument.
5027 # We remove the space between option and argument and re-iterate
5028 # unless we find an empty arg or a new option (starting with -)
5029 case $2 in
5030 "" | -*);;
5031 *)
5032 ac_arg="$ac_arg$2"
5033
5034 shift; shift
5035 set X $ac_arg "$@"
5036 ;;
5037 esac
5038 ;;
5039 -YP,*)
5040 for ac_j in `echo $ac_arg | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do
5041 ac_exists=false
5042 for ac_i in $ac_cv_f90libs; do
5043 if test x"$ac_j" = x"$ac_i"; then
5044 ac_exists=true
5045 break
5046 fi
5047 done
5048
5049 if test x"$ac_exists" = xtrue; then
5050 :
5051 else
5052 ac_arg="$ac_arg $ac_j"
5053 ac_cv_f90libs="$ac_cv_f90libs $ac_j"
5054 fi
5055
5056 done
5057 ;;
5058 -[lLR]*)
5059 ac_exists=false
5060 for ac_i in $ac_cv_f90libs; do
5061 if test x"$ac_arg" = x"$ac_i"; then
5062 ac_exists=true
5063 break
5064 fi
5065 done
5066
5067 if test x"$ac_exists" = xtrue; then
5068 :
5069 else
5070 ac_cv_f90libs="$ac_cv_f90libs $ac_arg"
5071 fi
5072
5073 ;;
5074 # Ignore everything else.
5075 esac
5076 done
5077 # restore positional arguments
5078 set X $ac_save_positional; shift
5079
5080 # We only consider "LD_RUN_PATH" on Solaris systems. If this is seen,
5081 # then we insist that the "run path" must be an absolute path (i.e. it
5082 # must begin with a "/").
5083 case `(uname -sr) 2>/dev/null` in
5084 "SunOS 5"*)
5085 ac_ld_run_path=`echo $ac_f90_v_output |
5086 sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'`
5087 test "x$ac_ld_run_path" != x &&
5088
5089 if test "$ac_compiler_gnu" = yes; then
5090 for ac_link_opt in $ac_ld_run_path; do
5091 ac_cv_f90libs="$ac_cv_f90libs -Xlinker $ac_link_opt"
5092 done
5093 else
5094 ac_cv_f90libs="$ac_cv_f90libs $ac_ld_run_path"
5095 fi
5096 ;;
5097 esac
5098 fi # test "x$F90LIBS" = "x"
5099
5100 fi
5101 echo "$as_me:$LINENO: result: $ac_cv_flibs" >&5
5102 echo "${ECHO_T}$ac_cv_flibs" >&6
5103 F90LIBS="$ac_cv_f90libs"
5104
5105 ac_ext=f90
5106 ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
5107 ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5108 ac_compiler_gnu=$ac_cv_f90_compiler_gnu
5109
5110 echo "$as_me:$LINENO: checking for Fortran 90 name-mangling scheme" >&5
5111 echo $ECHO_N "checking for Fortran 90 name-mangling scheme... $ECHO_C" >&6
5112 if test "${ac_cv_f90_mangling+set}" = set; then
5113 echo $ECHO_N "(cached) $ECHO_C" >&6
5114 else
5115 ac_ext=f90
5116 ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
5117 ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5118 ac_compiler_gnu=$ac_cv_f90_compiler_gnu
5119 cat >conftest.$ac_ext <<_ACEOF
5120 subroutine foobar()
5121 return
5122 end
5123 subroutine foo_bar()
5124 return
5125 end
5126 _ACEOF
5127 rm -f conftest.$ac_objext
5128 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5129 (eval $ac_compile) 2>&5
5130 ac_status=$?
5131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5132 (exit $ac_status); } &&
5133 { ac_try='test -s conftest.$ac_objext'
5134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5135 (eval $ac_try) 2>&5
5136 ac_status=$?
5137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5138 (exit $ac_status); }; }; then
5139 mv conftest.$ac_objext cf90_test.$ac_objext
5140
5141 ac_ext=c
5142 ac_cpp='$CPP $CPPFLAGS'
5143 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5144 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5145 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5146
5147 ac_save_LIBS=$LIBS
5148 LIBS="cf90_test.$ac_objext $F90LIBS $LIBS"
5149
5150 ac_success=no
5151 for ac_foobar in foobar FOOBAR; do
5152 for ac_underscore in "" "_"; do
5153 ac_func="$ac_foobar$ac_underscore"
5154 cat >conftest.$ac_ext <<_ACEOF
5155 #line $LINENO "configure"
5156 /* confdefs.h. */
5157 _ACEOF
5158 cat confdefs.h >>conftest.$ac_ext
5159 cat >>conftest.$ac_ext <<_ACEOF
5160 /* end confdefs.h. */
5161
5162 /* Override any gcc2 internal prototype to avoid an error. */
5163 #ifdef __cplusplus
5164 extern "C"
5165 #endif
5166 /* We use char because int might match the return type of a gcc2
5167 builtin and then its argument prototype would still apply. */
5168 char $ac_func ();
5169 int
5170 main ()
5171 {
5172 $ac_func ();
5173 ;
5174 return 0;
5175 }
5176 _ACEOF
5177 rm -f conftest.$ac_objext conftest$ac_exeext
5178 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5179 (eval $ac_link) 2>&5
5180 ac_status=$?
5181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5182 (exit $ac_status); } &&
5183 { ac_try='test -s conftest$ac_exeext'
5184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5185 (eval $ac_try) 2>&5
5186 ac_status=$?
5187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5188 (exit $ac_status); }; }; then
5189 ac_success=yes; break 2
5190 else
5191 echo "$as_me: failed program was:" >&5
5192 sed 's/^/| /' conftest.$ac_ext >&5
5193
5194 fi
5195 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5196 done
5197 done
5198
5199 if test "$ac_success" = "yes"; then
5200 case $ac_foobar in
5201 foobar)
5202 ac_case=lower
5203 ac_foo_bar=foo_bar
5204 ;;
5205 FOOBAR)
5206 ac_case=upper
5207 ac_foo_bar=FOO_BAR
5208 ;;
5209 esac
5210
5211 ac_success_extra=no
5212 for ac_extra in "" "_"; do
5213 ac_func="$ac_foo_bar$ac_underscore$ac_extra"
5214
5215 cat >conftest.$ac_ext <<_ACEOF
5216 #line $LINENO "configure"
5217 /* confdefs.h. */
5218 _ACEOF
5219 cat confdefs.h >>conftest.$ac_ext
5220 cat >>conftest.$ac_ext <<_ACEOF
5221 /* end confdefs.h. */
5222
5223 /* Override any gcc2 internal prototype to avoid an error. */
5224 #ifdef __cplusplus
5225 extern "C"
5226 #endif
5227 /* We use char because int might match the return type of a gcc2
5228 builtin and then its argument prototype would still apply. */
5229 char $ac_func ();
5230 int
5231 main ()
5232 {
5233 $ac_func ();
5234 ;
5235 return 0;
5236 }
5237 _ACEOF
5238 rm -f conftest.$ac_objext conftest$ac_exeext
5239 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5240 (eval $ac_link) 2>&5
5241 ac_status=$?
5242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5243 (exit $ac_status); } &&
5244 { ac_try='test -s conftest$ac_exeext'
5245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5246 (eval $ac_try) 2>&5
5247 ac_status=$?
5248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5249 (exit $ac_status); }; }; then
5250 ac_success_extra=yes; break
5251 else
5252 echo "$as_me: failed program was:" >&5
5253 sed 's/^/| /' conftest.$ac_ext >&5
5254
5255 fi
5256 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5257 done
5258
5259 if test "$ac_success_extra" = "yes"; then
5260 ac_cv_f90_mangling="$ac_case case"
5261 if test -z "$ac_underscore"; then
5262 ac_cv_f90_mangling="$ac_cv_f90_mangling, no underscore"
5263 else
5264 ac_cv_f90_mangling="$ac_cv_f90_mangling, underscore"
5265
5266 fi
5267 if test -z "$ac_extra"; then
5268 ac_cv_f90_mangling="$ac_cv_f90_mangling, no extra underscore"
5269 else
5270 ac_cv_f90_mangling="$ac_cv_f90_mangling, extra underscore"
5271 fi
5272 else
5273 ac_cv_f90_mangling="unknown"
5274 fi
5275 else
5276 ac_cv_f90_mangling="unknown"
5277
5278 fi
5279
5280 LIBS=$ac_save_LIBS
5281 ac_ext=f90
5282 ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
5283 ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5284 ac_compiler_gnu=$ac_cv_f90_compiler_gnu
5285 rm -f cf90_test* conftest*
5286 else
5287 echo "$as_me: failed program was:" >&5
5288 sed 's/^/| /' conftest.$ac_ext >&5
5289
5290 fi
5291 rm -f conftest.$ac_objext conftest.$ac_ext
5292 ac_ext=f90
5293 ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
5294 ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5295 ac_compiler_gnu=$ac_cv_f90_compiler_gnu
5296
5297 fi
5298 echo "$as_me:$LINENO: result: $ac_cv_f90_mangling" >&5
5299 echo "${ECHO_T}$ac_cv_f90_mangling" >&6
5300
5301
5302
5303 case $ac_cv_f90_mangling in
5304 "lower case, no underscore, no extra underscore")
5305 cat >>confdefs.h <<\_ACEOF
5306 #define F90_FUNC(name,NAME) name
5307 _ACEOF
5308
5309 cat >>confdefs.h <<\_ACEOF
5310 #define F90_FUNC_(name,NAME) name
5311 _ACEOF
5312 ;;
5313 "lower case, no underscore, extra underscore")
5314 cat >>confdefs.h <<\_ACEOF
5315 #define F90_FUNC(name,NAME) name
5316 _ACEOF
5317
5318 cat >>confdefs.h <<\_ACEOF
5319 #define F90_FUNC_(name,NAME) name ## _
5320 _ACEOF
5321 ;;
5322 "lower case, underscore, no extra underscore")
5323 cat >>confdefs.h <<\_ACEOF
5324 #define F90_FUNC(name,NAME) name ## _
5325 _ACEOF
5326
5327 cat >>confdefs.h <<\_ACEOF
5328 #define F90_FUNC_(name,NAME) name ## _
5329 _ACEOF
5330 ;;
5331 "lower case, underscore, extra underscore")
5332 cat >>confdefs.h <<\_ACEOF
5333 #define F90_FUNC(name,NAME) name ## _
5334 _ACEOF
5335
5336 cat >>confdefs.h <<\_ACEOF
5337 #define F90_FUNC_(name,NAME) name ## __
5338 _ACEOF
5339 ;;
5340 "upper case, no underscore, no extra underscore")
5341 cat >>confdefs.h <<\_ACEOF
5342 #define F90_FUNC(name,NAME) NAME
5343 _ACEOF
5344
5345 cat >>confdefs.h <<\_ACEOF
5346 #define F90_FUNC_(name,NAME) NAME
5347 _ACEOF
5348 ;;
5349 "upper case, no underscore, extra underscore")
5350 cat >>confdefs.h <<\_ACEOF
5351 #define F90_FUNC(name,NAME) NAME
5352 _ACEOF
5353
5354 cat >>confdefs.h <<\_ACEOF
5355 #define F90_FUNC_(name,NAME) NAME ## _
5356 _ACEOF
5357 ;;
5358 "upper case, underscore, no extra underscore")
5359 cat >>confdefs.h <<\_ACEOF
5360 #define F90_FUNC(name,NAME) NAME ## _
5361 _ACEOF
5362
5363 cat >>confdefs.h <<\_ACEOF
5364 #define F90_FUNC_(name,NAME) NAME ## _
5365 _ACEOF
5366 ;;
5367 "upper case, underscore, extra underscore")
5368 cat >>confdefs.h <<\_ACEOF
5369 #define F90_FUNC(name,NAME) NAME ## _
5370 _ACEOF
5371
5372 cat >>confdefs.h <<\_ACEOF
5373 #define F90_FUNC_(name,NAME) NAME ## __
5374 _ACEOF
5375 ;;
5376 *)
5377 { echo "$as_me:$LINENO: WARNING: unknown Fortran 90 name-mangling scheme" >&5
5378 echo "$as_me: WARNING: unknown Fortran 90 name-mangling scheme" >&2;}
5379 ;;
5380 esac
5381
5382
5383
5384
5385
5386 echo "$as_me:$LINENO: checking for module suffix" >&5
5387 echo $ECHO_N "checking for module suffix... $ECHO_C" >&6
5388 rm -f conftest*
5389 # Intel ifc compiler generates files by the name of work.pc and work.pcl (!)
5390 rm -f work*
5391 cat >conftest.f90 <<EOF
5392 module conftest
5393 integer n
5394 parameter (n=1)
5395 end module conftest
5396 EOF
5397 # SGI and absoft compilers generates module name in upper case!
5398 testname="conftest"
5399 modcase="lower"
5400 if $F90 -c conftest.f90 > conftest.out 2>&1 ; then
5401 MOD=`ls conftest* | grep -v conftest.f | grep -v conftest.o`
5402 MOD=`echo "$MOD" | sed -e 's/conftest\.//g'`
5403 if test -z "$MOD" ; then
5404 MOD=`ls CONFTEST* 2>/dev/null \
5405 | grep -v CONFTEST.f | grep -v CONFTEST.o`
5406 MOD=`echo "$MOD" | sed -e 's/CONFTEST\.//g'`
5407 if test -n "$MOD" ; then
5408 testname="CONFTEST"
5409 modcase="upper"
5410 fi
5411 fi
5412 if test -z "$MOD" ; then
5413 echo "$as_me:$LINENO: result: unknown" >&5
5414 echo "${ECHO_T}unknown" >&6
5415 # Use mod if we can't figure it out
5416 MOD="mod"
5417 else
5418 echo "$as_me:$LINENO: result: $MOD" >&5
5419 echo "${ECHO_T}$MOD" >&6
5420 fi
5421 if test -s work.pcl ; then
5422 { echo "$as_me:$LINENO: WARNING: Compiler generates auxillery files!" >&5
5423 echo "$as_me: WARNING: Compiler generates auxillery files!" >&2;}
5424 fi
5425 else
5426 echo "$as_me:$LINENO: result: unknown" >&5
5427 echo "${ECHO_T}unknown" >&6
5428 fi
5429
5430
5431
5432
5433
5434 # Check for module include path (some use -I, some (Solaris) use -M, some
5435 # (absoft) use -p).
5436 # Intel compilers use a wierd system: -cl,filename.pcl . If no file is
5437 # specified, work.pcl and work.pc are created. However, if you specify
5438 # a file, it must contain a the name of a file ending in .pc . Ugh!
5439 # Use the module made above
5440 echo "$as_me:$LINENO: checking for module directory path flag" >&5
5441 echo $ECHO_N "checking for module directory path flag... $ECHO_C" >&6
5442 rm -f conftest*
5443 # Intel ifc compiler generates files by the name of work.pc and work.pcl (!)
5444 rm -f work*
5445 cat >conftest.f90 <<EOF
5446 module conftest
5447 integer n
5448 parameter (n=1)
5449 end module conftest
5450 EOF
5451 # SGI and absoft compilers generates module name in upper case!
5452 testname="conftest"
5453 if $F90 -c conftest.f90 > conftest.out 2>&1 ; then
5454 mod=`ls CONFTEST* 2>/dev/null | grep -v CONFTEST.f | grep -v CONFTEST.o`
5455 mod=`echo "$mod" | sed -e 's/CONFTEST\.//g'`
5456 if test -n "$mod" ; then
5457 testname="CONFTEST"
5458 fi
5459 madedir=0
5460 if test ! -d conf ; then mkdir conf ; madedir=1; fi
5461 cp $testname.$MOD conf
5462 rm -f conftest* CONFTEST*
5463 cat >conftest1.f90 <<EOF
5464 program main
5465 use conftest
5466 print *, n
5467 end
5468 EOF
5469 F90_WORK_FILES_ARG=""
5470 F90MODINCSPEC=""
5471 if $F90 -c -Iconf conftest1.f90 > conftest.out 2>&1 ; then
5472 MODDIRFLAG="-I"
5473 F90MODINCSPEC="-I<dir>"
5474 echo "$as_me:$LINENO: result: -I" >&5
5475 echo "${ECHO_T}-I" >&6
5476 elif $F90 -c -Mconf conftest1.f90 >> conftest.out 2>&1 ; then
5477 MODDIRFLAG="-M"
5478 F90MODINCSPEC="-M<dir>"
5479 echo "$as_me:$LINENO: result: -M" >&5
5480 echo "${ECHO_T}-M" >&6
5481 elif $F90 -c -pconf conftest1.f90 >> conftest.out 2>&1 ; then
5482 MODDIRFLAG="-p"
5483 F90MODINCSPEC="-p<dir>"
5484 echo "$as_me:$LINENO: result: -p" >&5
5485 echo "${ECHO_T}-p" >&6
5486 elif test -s work.pc ; then
5487 cp work.pc conf/mpimod.pc
5488 echo "mpimod.pc" > conf/mpimod.pcl
5489 echo "`pwd`/conf/mpimod.pc" >> conf/mpimod.pcl
5490 if $F90 -c -cl,conf/mpimod.pcl conftest1.f >>conftest.out 2>&1 ; then
5491 MODDIRFLAG='-cl,mpimod.pcl'
5492 echo "$as_me:$LINENO: result: -cl,filename where filename contains a list of files and directories" >&5
5493 echo "${ECHO_T}-cl,filename where filename contains a list of files and directories" >&6
5494 F90_WORK_FILES_ARG="-cl,mpimod.pcl"
5495 F90MODINCSPEC="-cl,<dir>/<file>mod.pcl"
5496
5497 else
5498 # The version of the Intel compiler that I have refuses to let
5499 # you put the "work catalog" list anywhere but the current
5500 # directory. For example, you cannot in
5501 :
5502 fi
5503 fi
5504 if test -z "MODDIRFLAG" ; then
5505 echo "$as_me:$LINENO: result: unknown" >&5
5506 echo "${ECHO_T}unknown" >&6
5507 fi
5508
5509
5510 rm -f conftest* conf/conftest* conf/CONFTEST* CONFTEST* conf/mpimod*
5511 if test $madedir = 1 ; then rmdir conf ; fi
5512 fi
5513
5514
5515
5516 echo "$as_me:$LINENO: checking for mpi-directory" >&5
5517 echo $ECHO_N "checking for mpi-directory... $ECHO_C" >&6
5518
5519 # Check whether --with-mpi_dir or --without-mpi_dir was given.
5520 if test "${with_mpi_dir+set}" = set; then
5521 withval="$with_mpi_dir"
5522 MPI_DIR="$withval"
5523 else
5524 MPI_DIR="/usr/local"
5525 fi;
5526 echo "$as_me:$LINENO: result: $MPI_DIR" >&5
5527 echo "${ECHO_T}$MPI_DIR" >&6
5528
5529
5530 echo "$as_me:$LINENO: checking for mpi-lib-directory" >&5
5531 echo $ECHO_N "checking for mpi-lib-directory... $ECHO_C" >&6
5532
5533 # Check whether --with-mpi_libdir or --without-mpi_libdir was given.
5534 if test "${with_mpi_libdir+set}" = set; then
5535 withval="$with_mpi_libdir"
5536 MPI_LIBDIR="$withval"
5537 else
5538 MPI_LIBDIR="$MPI_DIR/lib"
5539 fi;
5540 echo "$as_me:$LINENO: result: $MPI_LIBDIR" >&5
5541 echo "${ECHO_T}$MPI_LIBDIR" >&6
5542
5543
5544 echo "$as_me:$LINENO: checking for mpi-inc-directory" >&5
5545 echo $ECHO_N "checking for mpi-inc-directory... $ECHO_C" >&6
5546
5547 # Check whether --with-mpi_inc or --without-mpi_inc was given.
5548 if test "${with_mpi_inc+set}" = set; then
5549 withval="$with_mpi_inc"
5550 MPI_INC="$withval"
5551 else
5552 MPI_INC="$MPI_DIR/include"
5553 fi;
5554 echo "$as_me:$LINENO: result: $MPI_INC" >&5
5555 echo "${ECHO_T}$MPI_INC" >&6
5556
5557
5558
5559 echo "$as_me:$LINENO: checking for MPI library" >&5
5560 echo $ECHO_N "checking for MPI library... $ECHO_C" >&6
5561 MPI_LIB=""
5562 case "$host" in
5563 *-ibm-aix*)
5564 echo "$as_me:$LINENO: checking whether to use signal-based MPI library" >&5
5565 echo $ECHO_N "checking whether to use signal-based MPI library... $ECHO_C" >&6
5566 echo "$as_me:$LINENO: result: $PACX_SIGNAL" >&5
5567 echo "${ECHO_T}$PACX_SIGNAL" >&6
5568 if test "x$PACX_SIGNAL" = "xyes" ; then
5569 if test -f "$MPI_LIBDIR/libmpi.a" ; then
5570 MPI_LIB="-lmpi"
5571 elif test -f "$MPI_LIBDIR/libmpi.so" ; then
5572 MPI_LIB="-lmpi"
5573 elif test -f "$MPI_LIBDIR/libmpich.a" ; then
5574 MPI_LIB="-lmpich"
5575 else
5576 { { echo "$as_me:$LINENO: error: neither libmpi nor libmpich found; check path for MPI package first..." >&5
5577 echo "$as_me: error: neither libmpi nor libmpich found; check path for MPI package first..." >&2;}
5578 { (exit 1); exit 1; }; }
5579 fi
5580 else
5581 if test -f "$MPI_LIBDIR/libmpi_r.a" ; then
5582 MPI_LIB="-lmpi_r"
5583 else
5584 { { echo "$as_me:$LINENO: error: libmpi_r not found; check path for MPI package..." >&5
5585 echo "$as_me: error: libmpi_r not found; check path for MPI package..." >&2;}
5586 { (exit 1); exit 1; }; }
5587 fi
5588 fi
5589 echo "$as_me:$LINENO: result: found $MPI_LIB" >&5
5590 echo "${ECHO_T}found $MPI_LIB" >&6
5591 ;;
5592 *) if test -f "$MPI_LIBDIR/libmpi.a" ; then
5593 MPI_LIB="-lmpi"
5594 elif test -f "$MPI_LIBDIR/libmpi.so" ; then
5595 MPI_LIB="-lmpi"
5596 elif test -f "$MPI_LIBDIR/libmpich.a" ; then
5597 MPI_LIB="-lmpich"
5598 else
5599 { { echo "$as_me:$LINENO: error: neither libmpi nor libmpich found; check path for MPI package first..." >&5
5600 echo "$as_me: error: neither libmpi nor libmpich found; check path for MPI package first..." >&2;}
5601 { (exit 1); exit 1; }; }
5602 fi
5603 echo "$as_me:$LINENO: result: found $MPI_LIB" >&5
5604 echo "${ECHO_T}found $MPI_LIB" >&6
5605 ;;
5606 esac
5607
5608
5609
5610
5611
5612
5613
5614 for ac_prog in mpif90 hf90 mpxlf90 mpf90 mpxlf95 mpxlf_r
5615 do
5616 # Extract the first word of "$ac_prog", so it can be a program name with args.
5617 set dummy $ac_prog; ac_word=$2
5618 echo "$as_me:$LINENO: checking for $ac_word" >&5
5619 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5620 if test "${ac_cv_prog_MPIF90+set}" = set; then
5621 echo $ECHO_N "(cached) $ECHO_C" >&6
5622 else
5623 if test -n "$MPIF90"; then
5624 ac_cv_prog_MPIF90="$MPIF90" # Let the user override the test.
5625 else
5626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5627 for as_dir in $PATH
5628 do
5629 IFS=$as_save_IFS
5630 test -z "$as_dir" && as_dir=.
5631 for ac_exec_ext in '' $ac_executable_extensions; do
5632 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5633 ac_cv_prog_MPIF90="$ac_prog"
5634 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5635 break 2
5636 fi
5637 done
5638 done
5639
5640 fi
5641 fi
5642 MPIF90=$ac_cv_prog_MPIF90
5643 if test -n "$MPIF90"; then
5644 echo "$as_me:$LINENO: result: $MPIF90" >&5
5645 echo "${ECHO_T}$MPIF90" >&6
5646 else
5647 echo "$as_me:$LINENO: result: no" >&5
5648 echo "${ECHO_T}no" >&6
5649 fi
5650
5651 test -n "$MPIF90" && break
5652 done
5653 test -n "$MPIF90" || MPIF90="$F90"
5654
5655 acx_mpi_save_F90="$F90"
5656 F90="$MPIF90"
5657
5658
5659
5660 if test x = x"$MPILIBS"; then
5661 echo "$as_me:$LINENO: checking for MPI_Init" >&5
5662 echo $ECHO_N "checking for MPI_Init... $ECHO_C" >&6
5663 cat >conftest.$ac_ext <<_ACEOF
5664
5665 program main
5666
5667 call MPI_Init
5668 end program main
5669
5670 _ACEOF
5671 rm -f conftest.$ac_objext conftest$ac_exeext
5672 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5673 (eval $ac_link) 2>&5
5674 ac_status=$?
5675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5676 (exit $ac_status); } &&
5677 { ac_try='test -s conftest$ac_exeext'
5678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5679 (eval $ac_try) 2>&5
5680 ac_status=$?
5681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5682 (exit $ac_status); }; }; then
5683 MPILIBS=" "
5684 echo "$as_me:$LINENO: result: yes" >&5
5685 echo "${ECHO_T}yes" >&6
5686 else
5687 echo "$as_me: failed program was:" >&5
5688 sed 's/^/| /' conftest.$ac_ext >&5
5689
5690 echo "$as_me:$LINENO: result: no" >&5
5691 echo "${ECHO_T}no" >&6
5692 fi
5693 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5694 fi
5695 if test x = x"$MPILIBS"; then
5696 echo "$as_me:$LINENO: checking for MPI_Init in -lmpi" >&5
5697 echo $ECHO_N "checking for MPI_Init in -lmpi... $ECHO_C" >&6
5698 if test "${ac_cv_lib_mpi_MPI_Init+set}" = set; then
5699 echo $ECHO_N "(cached) $ECHO_C" >&6
5700 else
5701 ac_check_lib_save_LIBS=$LIBS
5702 LIBS="-lmpi $LIBS"
5703 cat >conftest.$ac_ext <<_ACEOF
5704
5705 program main
5706
5707 call MPI_Init
5708 end program main
5709
5710 _ACEOF
5711 rm -f conftest.$ac_objext conftest$ac_exeext
5712 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5713 (eval $ac_link) 2>&5
5714 ac_status=$?
5715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5716 (exit $ac_status); } &&
5717 { ac_try='test -s conftest$ac_exeext'
5718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5719 (eval $ac_try) 2>&5
5720 ac_status=$?
5721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5722 (exit $ac_status); }; }; then
5723 ac_cv_lib_mpi_MPI_Init=yes
5724 else
5725 echo "$as_me: failed program was:" >&5
5726 sed 's/^/| /' conftest.$ac_ext >&5
5727
5728 ac_cv_lib_mpi_MPI_Init=no
5729 fi
5730 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5731 LIBS=$ac_check_lib_save_LIBS
5732 fi
5733 echo "$as_me:$LINENO: result: $ac_cv_lib_mpi_MPI_Init" >&5
5734 echo "${ECHO_T}$ac_cv_lib_mpi_MPI_Init" >&6
5735 if test $ac_cv_lib_mpi_MPI_Init = yes; then
5736 MPILIBS="-lmpi"
5737 fi
5738
5739 fi
5740 if test x = x"$MPILIBS"; then
5741 echo "$as_me:$LINENO: checking for MPI_Init in -lmpich" >&5
5742 echo $ECHO_N "checking for MPI_Init in -lmpich... $ECHO_C" >&6
5743 if test "${ac_cv_lib_mpich_MPI_Init+set}" = set; then
5744 echo $ECHO_N "(cached) $ECHO_C" >&6
5745 else
5746 ac_check_lib_save_LIBS=$LIBS
5747 LIBS="-lmpich $LIBS"
5748 cat >conftest.$ac_ext <<_ACEOF
5749
5750 program main
5751
5752 call MPI_Init
5753 end program main
5754
5755 _ACEOF
5756 rm -f conftest.$ac_objext conftest$ac_exeext
5757 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5758 (eval $ac_link) 2>&5
5759 ac_status=$?
5760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5761 (exit $ac_status); } &&
5762 { ac_try='test -s conftest$ac_exeext'
5763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5764 (eval $ac_try) 2>&5
5765 ac_status=$?
5766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5767 (exit $ac_status); }; }; then
5768 ac_cv_lib_mpich_MPI_Init=yes
5769 else
5770 echo "$as_me: failed program was:" >&5
5771 sed 's/^/| /' conftest.$ac_ext >&5
5772
5773 ac_cv_lib_mpich_MPI_Init=no
5774 fi
5775 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5776 LIBS=$ac_check_lib_save_LIBS
5777 fi
5778 echo "$as_me:$LINENO: result: $ac_cv_lib_mpich_MPI_Init" >&5
5779 echo "${ECHO_T}$ac_cv_lib_mpich_MPI_Init" >&6
5780 if test $ac_cv_lib_mpich_MPI_Init = yes; then
5781 MPILIBS="-lmpich"
5782 fi
5783
5784 fi
5785
5786
5787
5788 F90="$acx_mpi_save_F90"
5789
5790
5791
5792 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
5793 if test x = x"$MPILIBS"; then
5794
5795 :
5796 else
5797
5798 cat >>confdefs.h <<\_ACEOF
5799 #define HAVE_MPI 1
5800 _ACEOF
5801
5802 :
5803 fi
5804
5805
5806 ac_ext=c
5807 ac_cpp='$CPP $CPPFLAGS'
5808 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5809 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5810 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5811 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5812 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5813 # On Suns, sometimes $CPP names a directory.
5814 if test -n "$CPP" && test -d "$CPP"; then
5815 CPP=
5816 fi
5817 if test -z "$CPP"; then
5818 if test "${ac_cv_prog_CPP+set}" = set; then
5819 echo $ECHO_N "(cached) $ECHO_C" >&6
5820 else
5821 # Double quotes because CPP needs to be expanded
5822 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5823 do
5824 ac_preproc_ok=false
5825 for ac_c_preproc_warn_flag in '' yes
5826 do
5827 # Use a header file that comes with gcc, so configuring glibc
5828 # with a fresh cross-compiler works.
5829 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5830 # <limits.h> exists even on freestanding compilers.
5831 # On the NeXT, cc -E runs the code through the compiler's parser,
5832 # not just through cpp. "Syntax error" is here to catch this case.
5833 cat >conftest.$ac_ext <<_ACEOF
5834 #line $LINENO "configure"
5835 /* confdefs.h. */
5836 _ACEOF
5837 cat confdefs.h >>conftest.$ac_ext
5838 cat >>conftest.$ac_ext <<_ACEOF
5839 /* end confdefs.h. */
5840 #ifdef __STDC__
5841 # include <limits.h>
5842 #else
5843 # include <assert.h>
5844 #endif
5845 Syntax error
5846 _ACEOF
5847 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5848 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5849 ac_status=$?
5850 grep -v '^ *+' conftest.er1 >conftest.err
5851 rm -f conftest.er1
5852 cat conftest.err >&5
5853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5854 (exit $ac_status); } >/dev/null; then
5855 if test -s conftest.err; then
5856 ac_cpp_err=$ac_c_preproc_warn_flag
5857 else
5858 ac_cpp_err=
5859 fi
5860 else
5861 ac_cpp_err=yes
5862 fi
5863 if test -z "$ac_cpp_err"; then
5864 :
5865 else
5866 echo "$as_me: failed program was:" >&5
5867 sed 's/^/| /' conftest.$ac_ext >&5
5868
5869 # Broken: fails on valid input.
5870 continue
5871 fi
5872 rm -f conftest.err conftest.$ac_ext
5873
5874 # OK, works on sane cases. Now check whether non-existent headers
5875 # can be detected and how.
5876 cat >conftest.$ac_ext <<_ACEOF
5877 #line $LINENO "configure"
5878 /* confdefs.h. */
5879 _ACEOF
5880 cat confdefs.h >>conftest.$ac_ext
5881 cat >>conftest.$ac_ext <<_ACEOF
5882 /* end confdefs.h. */
5883 #include <ac_nonexistent.h>
5884 _ACEOF
5885 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5886 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5887 ac_status=$?
5888 grep -v '^ *+' conftest.er1 >conftest.err
5889 rm -f conftest.er1
5890 cat conftest.err >&5
5891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5892 (exit $ac_status); } >/dev/null; then
5893 if test -s conftest.err; then
5894 ac_cpp_err=$ac_c_preproc_warn_flag
5895 else
5896 ac_cpp_err=
5897 fi
5898 else
5899 ac_cpp_err=yes
5900 fi
5901 if test -z "$ac_cpp_err"; then
5902 # Broken: success on invalid input.
5903 continue
5904 else
5905 echo "$as_me: failed program was:" >&5
5906 sed 's/^/| /' conftest.$ac_ext >&5
5907
5908 # Passes both tests.
5909 ac_preproc_ok=:
5910 break
5911 fi
5912 rm -f conftest.err conftest.$ac_ext
5913
5914 done
5915 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5916 rm -f conftest.err conftest.$ac_ext
5917 if $ac_preproc_ok; then
5918 break
5919 fi
5920
5921 done
5922 ac_cv_prog_CPP=$CPP
5923
5924 fi
5925 CPP=$ac_cv_prog_CPP
5926 else
5927 ac_cv_prog_CPP=$CPP
5928 fi
5929 echo "$as_me:$LINENO: result: $CPP" >&5
5930 echo "${ECHO_T}$CPP" >&6
5931 ac_preproc_ok=false
5932 for ac_c_preproc_warn_flag in '' yes
5933 do
5934 # Use a header file that comes with gcc, so configuring glibc
5935 # with a fresh cross-compiler works.
5936 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5937 # <limits.h> exists even on freestanding compilers.
5938 # On the NeXT, cc -E runs the code through the compiler's parser,
5939 # not just through cpp. "Syntax error" is here to catch this case.
5940 cat >conftest.$ac_ext <<_ACEOF
5941 #line $LINENO "configure"
5942 /* confdefs.h. */
5943 _ACEOF
5944 cat confdefs.h >>conftest.$ac_ext
5945 cat >>conftest.$ac_ext <<_ACEOF
5946 /* end confdefs.h. */
5947 #ifdef __STDC__
5948 # include <limits.h>
5949 #else
5950 # include <assert.h>
5951 #endif
5952 Syntax error
5953 _ACEOF
5954 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5955 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5956 ac_status=$?
5957 grep -v '^ *+' conftest.er1 >conftest.err
5958 rm -f conftest.er1
5959 cat conftest.err >&5
5960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5961 (exit $ac_status); } >/dev/null; then
5962 if test -s conftest.err; then
5963 ac_cpp_err=$ac_c_preproc_warn_flag
5964 else
5965 ac_cpp_err=
5966 fi
5967 else
5968 ac_cpp_err=yes
5969 fi
5970 if test -z "$ac_cpp_err"; then
5971 :
5972 else
5973 echo "$as_me: failed program was:" >&5
5974 sed 's/^/| /' conftest.$ac_ext >&5
5975
5976 # Broken: fails on valid input.
5977 continue
5978 fi
5979 rm -f conftest.err conftest.$ac_ext
5980
5981 # OK, works on sane cases. Now check whether non-existent headers
5982 # can be detected and how.
5983 cat >conftest.$ac_ext <<_ACEOF
5984 #line $LINENO "configure"
5985 /* confdefs.h. */
5986 _ACEOF
5987 cat confdefs.h >>conftest.$ac_ext
5988 cat >>conftest.$ac_ext <<_ACEOF
5989 /* end confdefs.h. */
5990 #include <ac_nonexistent.h>
5991 _ACEOF
5992 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5993 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5994 ac_status=$?
5995 grep -v '^ *+' conftest.er1 >conftest.err
5996 rm -f conftest.er1
5997 cat conftest.err >&5
5998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5999 (exit $ac_status); } >/dev/null; then
6000 if test -s conftest.err; then
6001 ac_cpp_err=$ac_c_preproc_warn_flag
6002 else
6003 ac_cpp_err=
6004 fi
6005 else
6006 ac_cpp_err=yes
6007 fi
6008 if test -z "$ac_cpp_err"; then
6009 # Broken: success on invalid input.
6010 continue
6011 else
6012 echo "$as_me: failed program was:" >&5
6013 sed 's/^/| /' conftest.$ac_ext >&5
6014
6015 # Passes both tests.
6016 ac_preproc_ok=:
6017 break
6018 fi
6019 rm -f conftest.err conftest.$ac_ext
6020
6021 done
6022 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6023 rm -f conftest.err conftest.$ac_ext
6024 if $ac_preproc_ok; then
6025 :
6026 else
6027 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6028 See \`config.log' for more details." >&5
6029 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6030 See \`config.log' for more details." >&2;}
6031 { (exit 1); exit 1; }; }
6032 fi
6033
6034 ac_ext=c
6035 ac_cpp='$CPP $CPPFLAGS'
6036 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6037 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6038 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6039
6040
6041 echo "$as_me:$LINENO: checking for egrep" >&5
6042 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
6043 if test "${ac_cv_prog_egrep+set}" = set; then
6044 echo $ECHO_N "(cached) $ECHO_C" >&6
6045 else
6046 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
6047 then ac_cv_prog_egrep='grep -E'
6048 else ac_cv_prog_egrep='egrep'
6049 fi
6050 fi
6051 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
6052 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
6053 EGREP=$ac_cv_prog_egrep
6054
6055
6056 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6057 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6058 if test "${ac_cv_header_stdc+set}" = set; then
6059 echo $ECHO_N "(cached) $ECHO_C" >&6
6060 else
6061 cat >conftest.$ac_ext <<_ACEOF
6062 #line $LINENO "configure"
6063 /* confdefs.h. */
6064 _ACEOF
6065 cat confdefs.h >>conftest.$ac_ext
6066 cat >>conftest.$ac_ext <<_ACEOF
6067 /* end confdefs.h. */
6068 #include <stdlib.h>
6069 #include <stdarg.h>
6070 #include <string.h>
6071 #include <float.h>
6072
6073 int
6074 main ()
6075 {
6076
6077 ;
6078 return 0;
6079 }
6080 _ACEOF
6081 rm -f conftest.$ac_objext
6082 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6083 (eval $ac_compile) 2>&5
6084 ac_status=$?
6085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6086 (exit $ac_status); } &&
6087 { ac_try='test -s conftest.$ac_objext'
6088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6089 (eval $ac_try) 2>&5
6090 ac_status=$?
6091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6092 (exit $ac_status); }; }; then
6093 ac_cv_header_stdc=yes
6094 else
6095 echo "$as_me: failed program was:" >&5
6096 sed 's/^/| /' conftest.$ac_ext >&5
6097
6098 ac_cv_header_stdc=no
6099 fi
6100 rm -f conftest.$ac_objext conftest.$ac_ext
6101
6102 if test $ac_cv_header_stdc = yes; then
6103 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6104 cat >conftest.$ac_ext <<_ACEOF
6105 #line $LINENO "configure"
6106 /* confdefs.h. */
6107 _ACEOF
6108 cat confdefs.h >>conftest.$ac_ext
6109 cat >>conftest.$ac_ext <<_ACEOF
6110 /* end confdefs.h. */
6111 #include <string.h>
6112
6113 _ACEOF
6114 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6115 $EGREP "memchr" >/dev/null 2>&1; then
6116 :
6117 else
6118 ac_cv_header_stdc=no
6119 fi
6120 rm -f conftest*
6121
6122 fi
6123
6124 if test $ac_cv_header_stdc = yes; then
6125 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6126 cat >conftest.$ac_ext <<_ACEOF
6127 #line $LINENO "configure"
6128 /* confdefs.h. */
6129 _ACEOF
6130 cat confdefs.h >>conftest.$ac_ext
6131 cat >>conftest.$ac_ext <<_ACEOF
6132 /* end confdefs.h. */
6133 #include <stdlib.h>
6134
6135 _ACEOF
6136 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6137 $EGREP "free" >/dev/null 2>&1; then
6138 :
6139 else
6140 ac_cv_header_stdc=no
6141 fi
6142 rm -f conftest*
6143
6144 fi
6145
6146 if test $ac_cv_header_stdc = yes; then
6147 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6148 if test "$cross_compiling" = yes; then
6149 :
6150 else
6151 cat >conftest.$ac_ext <<_ACEOF
6152 #line $LINENO "configure"
6153 /* confdefs.h. */
6154 _ACEOF
6155 cat confdefs.h >>conftest.$ac_ext
6156 cat >>conftest.$ac_ext <<_ACEOF
6157 /* end confdefs.h. */
6158 #include <ctype.h>
6159 #if ((' ' & 0x0FF) == 0x020)
6160 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6161 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6162 #else
6163 # define ISLOWER(c) \
6164 (('a' <= (c) && (c) <= 'i') \
6165 || ('j' <= (c) && (c) <= 'r') \
6166 || ('s' <= (c) && (c) <= 'z'))
6167 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6168 #endif
6169
6170 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6171 int
6172 main ()
6173 {
6174 int i;
6175 for (i = 0; i < 256; i++)
6176 if (XOR (islower (i), ISLOWER (i))
6177 || toupper (i) != TOUPPER (i))
6178 exit(2);
6179 exit (0);
6180 }
6181 _ACEOF
6182 rm -f conftest$ac_exeext
6183 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6184 (eval $ac_link) 2>&5
6185 ac_status=$?
6186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6187 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6189 (eval $ac_try) 2>&5
6190 ac_status=$?
6191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6192 (exit $ac_status); }; }; then
6193 :
6194 else
6195 echo "$as_me: program exited with status $ac_status" >&5
6196 echo "$as_me: failed program was:" >&5
6197 sed 's/^/| /' conftest.$ac_ext >&5
6198
6199 ( exit $ac_status )
6200 ac_cv_header_stdc=no
6201 fi
6202 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6203 fi
6204 fi
6205 fi
6206 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6207 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6208 if test $ac_cv_header_stdc = yes; then
6209
6210 cat >>confdefs.h <<\_ACEOF
6211 #define STDC_HEADERS 1
6212 _ACEOF
6213
6214 fi
6215
6216 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6227 inttypes.h stdint.h unistd.h
6228 do
6229 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6230 echo "$as_me:$LINENO: checking for $ac_header" >&5
6231 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6232 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6233 echo $ECHO_N "(cached) $ECHO_C" >&6
6234 else
6235 cat >conftest.$ac_ext <<_ACEOF
6236 #line $LINENO "configure"
6237 /* confdefs.h. */
6238 _ACEOF
6239 cat confdefs.h >>conftest.$ac_ext
6240 cat >>conftest.$ac_ext <<_ACEOF
6241 /* end confdefs.h. */
6242 $ac_includes_default
6243
6244 #include <$ac_header>
6245 _ACEOF
6246 rm -f conftest.$ac_objext
6247 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6248 (eval $ac_compile) 2>&5
6249 ac_status=$?
6250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6251 (exit $ac_status); } &&
6252 { ac_try='test -s conftest.$ac_objext'
6253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6254 (eval $ac_try) 2>&5
6255 ac_status=$?
6256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6257 (exit $ac_status); }; }; then
6258 eval "$as_ac_Header=yes"
6259 else
6260 echo "$as_me: failed program was:" >&5
6261 sed 's/^/| /' conftest.$ac_ext >&5
6262
6263 eval "$as_ac_Header=no"
6264 fi
6265 rm -f conftest.$ac_objext conftest.$ac_ext
6266 fi
6267 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6268 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6269 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6270 cat >>confdefs.h <<_ACEOF
6271 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6272 _ACEOF
6273
6274 fi
6275
6276 done
6277
6278
6279
6280
6281
6282 # Check whether --with-sprng_prefix or --without-sprng_prefix was given.
6283 if test "${with_sprng_prefix+set}" = set; then
6284 withval="$with_sprng_prefix"
6285 sprng_prefix="$withval"
6286 else
6287 sprng_prefix="/usr/local"
6288 fi;
6289
6290 # Check whether --with-sprng-libdir or --without-sprng-libdir was given.
6291 if test "${with_sprng_libdir+set}" = set; then
6292 withval="$with_sprng_libdir"
6293 sprng_libdir="$withval"
6294 else
6295 sprng_libdir="/usr/local/lib"
6296 fi;
6297
6298 # Check whether --with-sprng-include or --without-sprng-include was given.
6299 if test "${with_sprng_include+set}" = set; then
6300 withval="$with_sprng_include"
6301 sprng_include="$withval"
6302 else
6303 sprng_include="/usr/local/include/sprng"
6304 fi;
6305
6306 if test x$sprng_libdir = x ; then
6307 sprng_libdir=${sprng_prefix}/lib
6308 fi
6309
6310 if test x$sprng_include = x ; then
6311 sprng_include=${sprng_prefix}/include
6312 fi
6313
6314 echo "$as_me:$LINENO: checking for SPRNG include files in $sprng_include" >&5
6315 echo $ECHO_N "checking for SPRNG include files in $sprng_include... $ECHO_C" >&6
6316 if test -f ${sprng_include}/sprng.h; then
6317 have_sprngincl=yes
6318 echo "$as_me:$LINENO: result: yes" >&5
6319 echo "${ECHO_T}yes" >&6
6320 else
6321 have_sprngincl=no
6322 echo "$as_me:$LINENO: result: no" >&5
6323 echo "${ECHO_T}no" >&6
6324 { { echo "$as_me:$LINENO: error: Could not locate the SPRNG include files" >&5
6325 echo "$as_me: error: Could not locate the SPRNG include files" >&2;}
6326 { (exit 1); exit 1; }; }
6327 fi
6328
6329 echo "$as_me:$LINENO: checking for SPRNG libraries in $sprng_libdir" >&5
6330 echo $ECHO_N "checking for SPRNG libraries in $sprng_libdir... $ECHO_C" >&6
6331 if test -f ${sprng_libdir}/libsprng.a; then
6332 have_sprnglib=yes
6333 echo "$as_me:$LINENO: result: yes" >&5
6334 echo "${ECHO_T}yes" >&6
6335 else
6336 have_sprnglib=no
6337 echo "$as_me:$LINENO: result: no" >&5
6338 echo "${ECHO_T}no" >&6
6339 { { echo "$as_me:$LINENO: error: Could not locate the SPRNG libraries" >&5
6340 echo "$as_me: error: Could not locate the SPRNG libraries" >&2;}
6341 { (exit 1); exit 1; }; }
6342 fi
6343
6344
6345
6346 ac_ext=c
6347 ac_cpp='$CPP $CPPFLAGS'
6348 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6349 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6350 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6351
6352 ac_save_CPPFLAGS=$CPPFLAGS
6353 CPPFLAGS="${CPPFLAGS} -I${sprng_include}"
6354 ac_save_LDFLAGS=$LDFLAGS
6355 LDFLAGS="${LDFLAGS} -L${sprng_libdir} -lsprng"
6356 if test "${ac_cv_header_sprng_h+set}" = set; then
6357 echo "$as_me:$LINENO: checking for sprng.h" >&5
6358 echo $ECHO_N "checking for sprng.h... $ECHO_C" >&6
6359 if test "${ac_cv_header_sprng_h+set}" = set; then
6360 echo $ECHO_N "(cached) $ECHO_C" >&6
6361 fi
6362 echo "$as_me:$LINENO: result: $ac_cv_header_sprng_h" >&5
6363 echo "${ECHO_T}$ac_cv_header_sprng_h" >&6
6364 else
6365 # Is the header compilable?
6366 echo "$as_me:$LINENO: checking sprng.h usability" >&5
6367 echo $ECHO_N "checking sprng.h usability... $ECHO_C" >&6
6368 cat >conftest.$ac_ext <<_ACEOF
6369 #line $LINENO "configure"
6370 /* confdefs.h. */
6371 _ACEOF
6372 cat confdefs.h >>conftest.$ac_ext
6373 cat >>conftest.$ac_ext <<_ACEOF
6374 /* end confdefs.h. */
6375 $ac_includes_default
6376 #include <sprng.h>
6377 _ACEOF
6378 rm -f conftest.$ac_objext
6379 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6380 (eval $ac_compile) 2>&5
6381 ac_status=$?
6382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6383 (exit $ac_status); } &&
6384 { ac_try='test -s conftest.$ac_objext'
6385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6386 (eval $ac_try) 2>&5
6387 ac_status=$?
6388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6389 (exit $ac_status); }; }; then
6390 ac_header_compiler=yes
6391 else
6392 echo "$as_me: failed program was:" >&5
6393 sed 's/^/| /' conftest.$ac_ext >&5
6394
6395 ac_header_compiler=no
6396 fi
6397 rm -f conftest.$ac_objext conftest.$ac_ext
6398 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6399 echo "${ECHO_T}$ac_header_compiler" >&6
6400
6401 # Is the header present?
6402 echo "$as_me:$LINENO: checking sprng.h presence" >&5
6403 echo $ECHO_N "checking sprng.h presence... $ECHO_C" >&6
6404 cat >conftest.$ac_ext <<_ACEOF
6405 #line $LINENO "configure"
6406 /* confdefs.h. */
6407 _ACEOF
6408 cat confdefs.h >>conftest.$ac_ext
6409 cat >>conftest.$ac_ext <<_ACEOF
6410 /* end confdefs.h. */
6411 #include <sprng.h>
6412 _ACEOF
6413 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6414 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6415 ac_status=$?
6416 grep -v '^ *+' conftest.er1 >conftest.err
6417 rm -f conftest.er1
6418 cat conftest.err >&5
6419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6420 (exit $ac_status); } >/dev/null; then
6421 if test -s conftest.err; then
6422 ac_cpp_err=$ac_c_preproc_warn_flag
6423 else
6424 ac_cpp_err=
6425 fi
6426 else
6427 ac_cpp_err=yes
6428 fi
6429 if test -z "$ac_cpp_err"; then
6430 ac_header_preproc=yes
6431 else
6432 echo "$as_me: failed program was:" >&5
6433 sed 's/^/| /' conftest.$ac_ext >&5
6434
6435 ac_header_preproc=no
6436 fi
6437 rm -f conftest.err conftest.$ac_ext
6438 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6439 echo "${ECHO_T}$ac_header_preproc" >&6
6440
6441 # So? What about this header?
6442 case $ac_header_compiler:$ac_header_preproc in
6443 yes:no )
6444 { echo "$as_me:$LINENO: WARNING: sprng.h: accepted by the compiler, rejected by the preprocessor!" >&5
6445 echo "$as_me: WARNING: sprng.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6446 { echo "$as_me:$LINENO: WARNING: sprng.h: proceeding with the preprocessor's result" >&5
6447 echo "$as_me: WARNING: sprng.h: proceeding with the preprocessor's result" >&2;}
6448 (
6449 cat <<\_ASBOX
6450 ## ------------------------------------ ##
6451 ## Report this to bug-autoconf@gnu.org. ##
6452 ## ------------------------------------ ##
6453 _ASBOX
6454 ) |
6455 sed "s/^/$as_me: WARNING: /" >&2
6456 ;;
6457 no:yes )
6458 { echo "$as_me:$LINENO: WARNING: sprng.h: present but cannot be compiled" >&5
6459 echo "$as_me: WARNING: sprng.h: present but cannot be compiled" >&2;}
6460 { echo "$as_me:$LINENO: WARNING: sprng.h: check for missing prerequisite headers?" >&5
6461 echo "$as_me: WARNING: sprng.h: check for missing prerequisite headers?" >&2;}
6462 { echo "$as_me:$LINENO: WARNING: sprng.h: proceeding with the preprocessor's result" >&5
6463 echo "$as_me: WARNING: sprng.h: proceeding with the preprocessor's result" >&2;}
6464 (
6465 cat <<\_ASBOX
6466 ## ------------------------------------ ##
6467 ## Report this to bug-autoconf@gnu.org. ##
6468 ## ------------------------------------ ##
6469 _ASBOX
6470 ) |
6471 sed "s/^/$as_me: WARNING: /" >&2
6472 ;;
6473 esac
6474 echo "$as_me:$LINENO: checking for sprng.h" >&5
6475 echo $ECHO_N "checking for sprng.h... $ECHO_C" >&6
6476 if test "${ac_cv_header_sprng_h+set}" = set; then
6477 echo $ECHO_N "(cached) $ECHO_C" >&6
6478 else
6479 ac_cv_header_sprng_h=$ac_header_preproc
6480 fi
6481 echo "$as_me:$LINENO: result: $ac_cv_header_sprng_h" >&5
6482 echo "${ECHO_T}$ac_cv_header_sprng_h" >&6
6483
6484 fi
6485 if test $ac_cv_header_sprng_h = yes; then
6486
6487 echo "$as_me:$LINENO: checking for init_rng in -lsprng" >&5
6488 echo $ECHO_N "checking for init_rng in -lsprng... $ECHO_C" >&6
6489 if test "${ac_cv_lib_sprng_init_rng+set}" = set; then
6490 echo $ECHO_N "(cached) $ECHO_C" >&6
6491 else
6492 ac_check_lib_save_LIBS=$LIBS
6493 LIBS="-lsprng $LIBS"
6494 cat >conftest.$ac_ext <<_ACEOF
6495 #line $LINENO "configure"
6496 /* confdefs.h. */
6497 _ACEOF
6498 cat confdefs.h >>conftest.$ac_ext
6499 cat >>conftest.$ac_ext <<_ACEOF
6500 /* end confdefs.h. */
6501
6502 /* Override any gcc2 internal prototype to avoid an error. */
6503 #ifdef __cplusplus
6504 extern "C"
6505 #endif
6506 /* We use char because int might match the return type of a gcc2
6507 builtin and then its argument prototype would still apply. */
6508 char init_rng ();
6509 int
6510 main ()
6511 {
6512 init_rng ();
6513 ;
6514 return 0;
6515 }
6516 _ACEOF
6517 rm -f conftest.$ac_objext conftest$ac_exeext
6518 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6519 (eval $ac_link) 2>&5
6520 ac_status=$?
6521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6522 (exit $ac_status); } &&
6523 { ac_try='test -s conftest$ac_exeext'
6524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6525 (eval $ac_try) 2>&5
6526 ac_status=$?
6527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6528 (exit $ac_status); }; }; then
6529 ac_cv_lib_sprng_init_rng=yes
6530 else
6531 echo "$as_me: failed program was:" >&5
6532 sed 's/^/| /' conftest.$ac_ext >&5
6533
6534 ac_cv_lib_sprng_init_rng=no
6535 fi
6536 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6537 LIBS=$ac_check_lib_save_LIBS
6538 fi
6539 echo "$as_me:$LINENO: result: $ac_cv_lib_sprng_init_rng" >&5
6540 echo "${ECHO_T}$ac_cv_lib_sprng_init_rng" >&6
6541 if test $ac_cv_lib_sprng_init_rng = yes; then
6542 SPRNG_LIBDIR="${sprng_libdir}"
6543 SPRNG_LIB="-lsprng" SPRNG_INC="-I${sprng_include}"
6544 HAVE_SPRNG="yes"
6545 fi
6546
6547 fi
6548
6549
6550 CPPFLAGS=$ac_save_CPPFLAGS
6551 LDFLAGS=$ac_save_LDFLAGS
6552 ac_ext=f90
6553 ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
6554 ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6555 ac_compiler_gnu=$ac_cv_f90_compiler_gnu
6556
6557
6558 if test x_$HAVE_SPRNG != x_yes; then
6559 { { echo "$as_me:$LINENO: error: Can't build with SPRNG" >&5
6560 echo "$as_me: error: Can't build with SPRNG" >&2;}
6561 { (exit 1); exit 1; }; }
6562 fi
6563
6564
6565
6566
6567
6568 echo "$as_me:$LINENO: checking if MKL is wanted" >&5
6569 echo $ECHO_N "checking if MKL is wanted... $ECHO_C" >&6
6570
6571 # Check whether --with-mkl or --without-mkl was given.
6572 if test "${with_mkl+set}" = set; then
6573 withval="$with_mkl"
6574 echo "$as_me:$LINENO: result: yes" >&5
6575 echo "${ECHO_T}yes" >&6
6576 for dir in $withval /usr/local/intel/mkl60 /opt/intel/mkl60; do
6577 mkldir="$dir"
6578 if test -f "$dir/include/mkl.h"; then
6579 found_mkl="yes";
6580 break;
6581 fi
6582 done
6583 if test x_$found_mkl != x_yes; then
6584 { { echo "$as_me:$LINENO: error: Cannot find MKL includes" >&5
6585 echo "$as_me: error: Cannot find MKL includes" >&2;}
6586 { (exit 1); exit 1; }; }
6587 else
6588 printf "MKL includes found in $mkldir/include\n";
6589 fi
6590
6591
6592
6593 ac_ext=c
6594 ac_cpp='$CPP $CPPFLAGS'
6595 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6596 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6597 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6598
6599 ac_save_CPPFLAGS=$CPPFLAGS
6600 CPPFLAGS="${CPPFLAGS} -I${mkldir}/include"
6601 ac_save_LDFLAGS=$LDFLAGS
6602 LDFLAGS="${LDFLAGS} -L${mkldir}/lib/32 -lmkl -lvml -lguide"
6603 if test "${ac_cv_header_mkl_h+set}" = set; then
6604 echo "$as_me:$LINENO: checking for mkl.h" >&5
6605 echo $ECHO_N "checking for mkl.h... $ECHO_C" >&6
6606 if test "${ac_cv_header_mkl_h+set}" = set; then
6607 echo $ECHO_N "(cached) $ECHO_C" >&6
6608 fi
6609 echo "$as_me:$LINENO: result: $ac_cv_header_mkl_h" >&5
6610 echo "${ECHO_T}$ac_cv_header_mkl_h" >&6
6611 else
6612 # Is the header compilable?
6613 echo "$as_me:$LINENO: checking mkl.h usability" >&5
6614 echo $ECHO_N "checking mkl.h usability... $ECHO_C" >&6
6615 cat >conftest.$ac_ext <<_ACEOF
6616 #line $LINENO "configure"
6617 /* confdefs.h. */
6618 _ACEOF
6619 cat confdefs.h >>conftest.$ac_ext
6620 cat >>conftest.$ac_ext <<_ACEOF
6621 /* end confdefs.h. */
6622 $ac_includes_default
6623 #include <mkl.h>
6624 _ACEOF
6625 rm -f conftest.$ac_objext
6626 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6627 (eval $ac_compile) 2>&5
6628 ac_status=$?
6629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6630 (exit $ac_status); } &&
6631 { ac_try='test -s conftest.$ac_objext'
6632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6633 (eval $ac_try) 2>&5
6634 ac_status=$?
6635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6636 (exit $ac_status); }; }; then
6637 ac_header_compiler=yes
6638 else
6639 echo "$as_me: failed program was:" >&5
6640 sed 's/^/| /' conftest.$ac_ext >&5
6641
6642 ac_header_compiler=no
6643 fi
6644 rm -f conftest.$ac_objext conftest.$ac_ext
6645 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6646 echo "${ECHO_T}$ac_header_compiler" >&6
6647
6648 # Is the header present?
6649 echo "$as_me:$LINENO: checking mkl.h presence" >&5
6650 echo $ECHO_N "checking mkl.h presence... $ECHO_C" >&6
6651 cat >conftest.$ac_ext <<_ACEOF
6652 #line $LINENO "configure"
6653 /* confdefs.h. */
6654 _ACEOF
6655 cat confdefs.h >>conftest.$ac_ext
6656 cat >>conftest.$ac_ext <<_ACEOF
6657 /* end confdefs.h. */
6658 #include <mkl.h>
6659 _ACEOF
6660 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6661 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6662 ac_status=$?
6663 grep -v '^ *+' conftest.er1 >conftest.err
6664 rm -f conftest.er1
6665 cat conftest.err >&5
6666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6667 (exit $ac_status); } >/dev/null; then
6668 if test -s conftest.err; then
6669 ac_cpp_err=$ac_c_preproc_warn_flag
6670 else
6671 ac_cpp_err=
6672 fi
6673 else
6674 ac_cpp_err=yes
6675 fi
6676 if test -z "$ac_cpp_err"; then
6677 ac_header_preproc=yes
6678 else
6679 echo "$as_me: failed program was:" >&5
6680 sed 's/^/| /' conftest.$ac_ext >&5
6681
6682 ac_header_preproc=no
6683 fi
6684 rm -f conftest.err conftest.$ac_ext
6685 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6686 echo "${ECHO_T}$ac_header_preproc" >&6
6687
6688 # So? What about this header?
6689 case $ac_header_compiler:$ac_header_preproc in
6690 yes:no )
6691 { echo "$as_me:$LINENO: WARNING: mkl.h: accepted by the compiler, rejected by the preprocessor!" >&5
6692 echo "$as_me: WARNING: mkl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6693 { echo "$as_me:$LINENO: WARNING: mkl.h: proceeding with the preprocessor's result" >&5
6694 echo "$as_me: WARNING: mkl.h: proceeding with the preprocessor's result" >&2;}
6695 (
6696 cat <<\_ASBOX
6697 ## ------------------------------------ ##
6698 ## Report this to bug-autoconf@gnu.org. ##
6699 ## ------------------------------------ ##
6700 _ASBOX
6701 ) |
6702 sed "s/^/$as_me: WARNING: /" >&2
6703 ;;
6704 no:yes )
6705 { echo "$as_me:$LINENO: WARNING: mkl.h: present but cannot be compiled" >&5
6706 echo "$as_me: WARNING: mkl.h: present but cannot be compiled" >&2;}
6707 { echo "$as_me:$LINENO: WARNING: mkl.h: check for missing prerequisite headers?" >&5
6708 echo "$as_me: WARNING: mkl.h: check for missing prerequisite headers?" >&2;}
6709 { echo "$as_me:$LINENO: WARNING: mkl.h: proceeding with the preprocessor's result" >&5
6710 echo "$as_me: WARNING: mkl.h: proceeding with the preprocessor's result" >&2;}
6711 (
6712 cat <<\_ASBOX
6713 ## ------------------------------------ ##
6714 ## Report this to bug-autoconf@gnu.org. ##
6715 ## ------------------------------------ ##
6716 _ASBOX
6717 ) |
6718 sed "s/^/$as_me: WARNING: /" >&2
6719 ;;
6720 esac
6721 echo "$as_me:$LINENO: checking for mkl.h" >&5
6722 echo $ECHO_N "checking for mkl.h... $ECHO_C" >&6
6723 if test "${ac_cv_header_mkl_h+set}" = set; then
6724 echo $ECHO_N "(cached) $ECHO_C" >&6
6725 else
6726 ac_cv_header_mkl_h=$ac_header_preproc
6727 fi
6728 echo "$as_me:$LINENO: result: $ac_cv_header_mkl_h" >&5
6729 echo "${ECHO_T}$ac_cv_header_mkl_h" >&6
6730
6731 fi
6732 if test $ac_cv_header_mkl_h = yes; then
6733
6734 echo "$as_me:$LINENO: checking for vslNewStream in -lmkl" >&5
6735 echo $ECHO_N "checking for vslNewStream in -lmkl... $ECHO_C" >&6
6736 if test "${ac_cv_lib_mkl_vslNewStream+set}" = set; then
6737 echo $ECHO_N "(cached) $ECHO_C" >&6
6738 else
6739 ac_check_lib_save_LIBS=$LIBS
6740 LIBS="-lmkl $LIBS"
6741 cat >conftest.$ac_ext <<_ACEOF
6742 #line $LINENO "configure"
6743 /* confdefs.h. */
6744 _ACEOF
6745 cat confdefs.h >>conftest.$ac_ext
6746 cat >>conftest.$ac_ext <<_ACEOF
6747 /* end confdefs.h. */
6748
6749 /* Override any gcc2 internal prototype to avoid an error. */
6750 #ifdef __cplusplus
6751 extern "C"
6752 #endif
6753 /* We use char because int might match the return type of a gcc2
6754 builtin and then its argument prototype would still apply. */
6755 char vslNewStream ();
6756 int
6757 main ()
6758 {
6759 vslNewStream ();
6760 ;
6761 return 0;
6762 }
6763 _ACEOF
6764 rm -f conftest.$ac_objext conftest$ac_exeext
6765 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6766 (eval $ac_link) 2>&5
6767 ac_status=$?
6768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6769 (exit $ac_status); } &&
6770 { ac_try='test -s conftest$ac_exeext'
6771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6772 (eval $ac_try) 2>&5
6773 ac_status=$?
6774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6775 (exit $ac_status); }; }; then
6776 ac_cv_lib_mkl_vslNewStream=yes
6777 else
6778 echo "$as_me: failed program was:" >&5
6779 sed 's/^/| /' conftest.$ac_ext >&5
6780
6781 ac_cv_lib_mkl_vslNewStream=no
6782 fi
6783 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6784 LIBS=$ac_check_lib_save_LIBS
6785 fi
6786 echo "$as_me:$LINENO: result: $ac_cv_lib_mkl_vslNewStream" >&5
6787 echo "${ECHO_T}$ac_cv_lib_mkl_vslNewStream" >&6
6788 if test $ac_cv_lib_mkl_vslNewStream = yes; then
6789 MKL_LIBDIR="${mkldir}/lib/32",
6790 MKL_LIB="-lmkl -lvml -lguide",
6791 HAVE_MKL="yes"
6792 fi
6793
6794
6795 else
6796 MKL_INC="-I${mkldir}/include"
6797 fi
6798
6799
6800 CPPFLAGS=$ac_save_CPPFLAGS
6801 LDFLAGS=$ac_save_LDFLAGS
6802 ac_ext=f90
6803 ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
6804 ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6805 ac_compiler_gnu=$ac_cv_f90_compiler_gnu
6806
6807
6808 if test x_$HAVE_MKL != x_yes; then
6809 { { echo "$as_me:$LINENO: error: Can't build with MKL" >&5
6810 echo "$as_me: error: Can't build with MKL" >&2;}
6811 { (exit 1); exit 1; }; }
6812 fi
6813
6814
6815
6816
6817
6818 else
6819
6820 echo "$as_me:$LINENO: result: no" >&5
6821 echo "${ECHO_T}no" >&6
6822
6823 fi;
6824
6825
6826
6827
6828
6829 # Check whether --with-mpi_f90_mods or --without-mpi_f90_mods was given.
6830 if test "${with_mpi_f90_mods+set}" = set; then
6831 withval="$with_mpi_f90_mods"
6832 mpi_f90_mods="$withval"
6833 else
6834 mpi_f90_mods="/usr/local/include/f90choice"
6835 fi;
6836
6837 echo "$as_me:$LINENO: checking for MPI F90 modules" >&5
6838 echo $ECHO_N "checking for MPI F90 modules... $ECHO_C" >&6
6839
6840
6841 ac_ext=f90
6842 ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
6843 ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6844 ac_compiler_gnu=$ac_cv_f90_compiler_gnu
6845
6846 ac_save_F90FLAGS=$F90FLAGS
6847
6848 if test "$mpi_f90_mods"; then
6849 F90FLAGS="${F90FLAGS} ${MODDIRFLAG}${mpi_f90_mods}"
6850 fi
6851
6852 cat >conftest.$ac_ext <<_ACEOF
6853
6854
6855 program main
6856
6857 use mpi
6858 integer :: ierr
6859 call MPI_Init(ierr)
6860
6861
6862 end program main
6863
6864 _ACEOF
6865 rm -f conftest.$ac_objext
6866 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6867 (eval $ac_compile) 2>&5
6868 ac_status=$?
6869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6870 (exit $ac_status); } &&
6871 { ac_try='test -s conftest.$ac_objext'
6872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6873 (eval $ac_try) 2>&5
6874 ac_status=$?
6875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6876 (exit $ac_status); }; }; then
6877 HAVE_MPI_MOD=1
6878 else
6879 echo "$as_me: failed program was:" >&5
6880 sed 's/^/| /' conftest.$ac_ext >&5
6881
6882 HAVE_MPI_MOD=0
6883 fi
6884 rm -f conftest.$ac_objext conftest.$ac_ext
6885
6886 F90FLAGS=$ac_save_F90FLAGS
6887 ac_ext=f90
6888 ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
6889 ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6890 ac_compiler_gnu=$ac_cv_f90_compiler_gnu
6891
6892
6893 if test "$HAVE_MPI_MOD" = 1; then
6894 echo "$as_me:$LINENO: result: yes" >&5
6895 echo "${ECHO_T}yes" >&6
6896
6897 cat >>confdefs.h <<\_ACEOF
6898 #define MPI_MOD 1
6899 _ACEOF
6900
6901 MPI_F90_MODS="${mpi_f90_mods}"
6902
6903 # The library name:
6904 if test -z "$MPI_LIB" ; then
6905 MPI_LIBNAME=-lmpich
6906 else
6907 MPI_LIBNAME="$MPI_LIB"
6908 fi
6909 if test -z "$MPIMODLIBNAME" ; then
6910 MPIMODLIBNAME="${MPI_LIBNAME}f90"
6911 fi
6912
6913 else
6914 echo "$as_me:$LINENO: result: no" >&5
6915 echo "${ECHO_T}no" >&6
6916 { { echo "$as_me:$LINENO: error: Couldn't locate MPI F90 Modules" >&5
6917 echo "$as_me: error: Couldn't locate MPI F90 Modules" >&2;}
6918 { (exit 1); exit 1; }; }
6919 fi
6920
6921
6922
6923
6924
6925 OBJEXT=".$OBJEXT"
6926
6927 OOPSE=oopse
6928
6929 if test "x${prefix}" = "xNONE"
6930 then
6931 OOPSE_HOME=${ac_default_prefix}/oopse
6932 else
6933 OOPSE_HOME=${prefix}/oopse
6934 fi
6935 # Check whether --enable-oopse-home or --disable-oopse-home was given.
6936 if test "${enable_oopse_home+set}" = set; then
6937 enableval="$enable_oopse_home"
6938 OOPSE_HOME="${enableval}"
6939 fi;
6940
6941 case "x$INSTALL" in
6942 x/*) ;;
6943 *) INSTALL=`pwd`/ac-tools/"shtool install -c" ;
6944 esac
6945
6946 MKINSTALLDIRS=`pwd`/ac-tools/"shtool mkdir -p -f"
6947
6948 SUBDIRS="libBASS libmdtools src forceFields samples utils utils/sysbuilder staticProps"
6949
6950 CFLAGS=${CFLAGS-""}
6951 CXXFLAGS=${CXXFLAGS-""}
6952 CPPFLAGS=${CPPFLAGS-""}
6953 FFLAGS=${FFLAGS-""}
6954 F90FLAGS=${F90FLAGS-""}
6955 LDFLAGS=${LDFLAGS-""}
6956 DEBUG=${DEBUG-"-g"}
6957
6958 case $debug in
6959 1)
6960 FFLAGS="$DEBUG $FFLAGS"
6961 F90FLAGS="$DEBUG $F90FLAGS"
6962 ;;
6963 *)
6964 ;;
6965 esac
6966
6967
6968
6969
6970
6971
6972
6973
6974
6975
6976
6977
6978
6979
6980
6981
6982
6983 ac_config_headers="$ac_config_headers libmdtools/config.h"
6984
6985 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"
6986
6987
6988 cat >confcache <<\_ACEOF
6989 # This file is a shell script that caches the results of configure
6990 # tests run on this system so they can be shared between configure
6991 # scripts and configure runs, see configure's option --config-cache.
6992 # It is not useful on other systems. If it contains results you don't
6993 # want to keep, you may remove or edit it.
6994 #
6995 # config.status only pays attention to the cache file if you give it
6996 # the --recheck option to rerun configure.
6997 #
6998 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6999 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7000 # following values.
7001
7002 _ACEOF
7003
7004 # The following way of writing the cache mishandles newlines in values,
7005 # but we know of no workaround that is simple, portable, and efficient.
7006 # So, don't put newlines in cache variables' values.
7007 # Ultrix sh set writes to stderr and can't be redirected directly,
7008 # and sets the high bit in the cache file unless we assign to the vars.
7009 {
7010 (set) 2>&1 |
7011 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7012 *ac_space=\ *)
7013 # `set' does not quote correctly, so add quotes (double-quote
7014 # substitution turns \\\\ into \\, and sed turns \\ into \).
7015 sed -n \
7016 "s/'/'\\\\''/g;
7017 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7018 ;;
7019 *)
7020 # `set' quotes correctly as required by POSIX, so do not add quotes.
7021 sed -n \
7022 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
7023 ;;
7024 esac;
7025 } |
7026 sed '
7027 t clear
7028 : clear
7029 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7030 t end
7031 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7032 : end' >>confcache
7033 if diff $cache_file confcache >/dev/null 2>&1; then :; else
7034 if test -w $cache_file; then
7035 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
7036 cat confcache >$cache_file
7037 else
7038 echo "not updating unwritable cache $cache_file"
7039 fi
7040 fi
7041 rm -f confcache
7042
7043 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7044 # Let make expand exec_prefix.
7045 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7046
7047 # VPATH may cause trouble with some makes, so we remove $(srcdir),
7048 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
7049 # trailing colons and then remove the whole line if VPATH becomes empty
7050 # (actually we leave an empty line to preserve line numbers).
7051 if test "x$srcdir" = x.; then
7052 ac_vpsub='/^[ ]*VPATH[ ]*=/{
7053 s/:*\$(srcdir):*/:/;
7054 s/:*\${srcdir}:*/:/;
7055 s/:*@srcdir@:*/:/;
7056 s/^\([^=]*=[ ]*\):*/\1/;
7057 s/:*$//;
7058 s/^[^=]*=[ ]*$//;
7059 }'
7060 fi
7061
7062 DEFS=-DHAVE_CONFIG_H
7063
7064 ac_libobjs=
7065 ac_ltlibobjs=
7066 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7067 # 1. Remove the extension, and $U if already installed.
7068 ac_i=`echo "$ac_i" |
7069 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
7070 # 2. Add them.
7071 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
7072 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
7073 done
7074 LIBOBJS=$ac_libobjs
7075
7076 LTLIBOBJS=$ac_ltlibobjs
7077
7078
7079
7080 : ${CONFIG_STATUS=./config.status}
7081 ac_clean_files_save=$ac_clean_files
7082 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7083 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
7084 echo "$as_me: creating $CONFIG_STATUS" >&6;}
7085 cat >$CONFIG_STATUS <<_ACEOF
7086 #! $SHELL
7087 # Generated by $as_me.
7088 # Run this file to recreate the current configuration.
7089 # Compiler output produced by configure, useful for debugging
7090 # configure, is in config.log if it exists.
7091
7092 debug=false
7093 ac_cs_recheck=false
7094 ac_cs_silent=false
7095 SHELL=\${CONFIG_SHELL-$SHELL}
7096 _ACEOF
7097
7098 cat >>$CONFIG_STATUS <<\_ACEOF
7099 ## --------------------- ##
7100 ## M4sh Initialization. ##
7101 ## --------------------- ##
7102
7103 # Be Bourne compatible
7104 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
7105 emulate sh
7106 NULLCMD=:
7107 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
7108 # is contrary to our usage. Disable this feature.
7109 alias -g '${1+"$@"}'='"$@"'
7110 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
7111 set -o posix
7112 fi
7113
7114 # Support unset when possible.
7115 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
7116 as_unset=unset
7117 else
7118 as_unset=false
7119 fi
7120
7121
7122 # Work around bugs in pre-3.0 UWIN ksh.
7123 $as_unset ENV MAIL MAILPATH
7124 PS1='$ '
7125 PS2='> '
7126 PS4='+ '
7127
7128 # NLS nuisances.
7129 for as_var in \
7130 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
7131 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
7132 LC_TELEPHONE LC_TIME
7133 do
7134 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
7135 eval $as_var=C; export $as_var
7136 else
7137 $as_unset $as_var
7138 fi
7139 done
7140
7141 # Required to use basename.
7142 if expr a : '\(a\)' >/dev/null 2>&1; then
7143 as_expr=expr
7144 else
7145 as_expr=false
7146 fi
7147
7148 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
7149 as_basename=basename
7150 else
7151 as_basename=false
7152 fi
7153
7154
7155 # Name of the executable.
7156 as_me=`$as_basename "$0" ||
7157 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7158 X"$0" : 'X\(//\)$' \| \
7159 X"$0" : 'X\(/\)$' \| \
7160 . : '\(.\)' 2>/dev/null ||
7161 echo X/"$0" |
7162 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
7163 /^X\/\(\/\/\)$/{ s//\1/; q; }
7164 /^X\/\(\/\).*/{ s//\1/; q; }
7165 s/.*/./; q'`
7166
7167
7168 # PATH needs CR, and LINENO needs CR and PATH.
7169 # Avoid depending upon Character Ranges.
7170 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7171 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7172 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7173 as_cr_digits='0123456789'
7174 as_cr_alnum=$as_cr_Letters$as_cr_digits
7175
7176 # The user is always right.
7177 if test "${PATH_SEPARATOR+set}" != set; then
7178 echo "#! /bin/sh" >conf$$.sh
7179 echo "exit 0" >>conf$$.sh
7180 chmod +x conf$$.sh
7181 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7182 PATH_SEPARATOR=';'
7183 else
7184 PATH_SEPARATOR=:
7185 fi
7186 rm -f conf$$.sh
7187 fi
7188
7189
7190 as_lineno_1=$LINENO
7191 as_lineno_2=$LINENO
7192 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7193 test "x$as_lineno_1" != "x$as_lineno_2" &&
7194 test "x$as_lineno_3" = "x$as_lineno_2" || {
7195 # Find who we are. Look in the path if we contain no path at all
7196 # relative or not.
7197 case $0 in
7198 *[\\/]* ) as_myself=$0 ;;
7199 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7200 for as_dir in $PATH
7201 do
7202 IFS=$as_save_IFS
7203 test -z "$as_dir" && as_dir=.
7204 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7205 done
7206
7207 ;;
7208 esac
7209 # We did not find ourselves, most probably we were run as `sh COMMAND'
7210 # in which case we are not to be found in the path.
7211 if test "x$as_myself" = x; then
7212 as_myself=$0
7213 fi
7214 if test ! -f "$as_myself"; then
7215 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
7216 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
7217 { (exit 1); exit 1; }; }
7218 fi
7219 case $CONFIG_SHELL in
7220 '')
7221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
7223 do
7224 IFS=$as_save_IFS
7225 test -z "$as_dir" && as_dir=.
7226 for as_base in sh bash ksh sh5; do
7227 case $as_dir in
7228 /*)
7229 if ("$as_dir/$as_base" -c '
7230 as_lineno_1=$LINENO
7231 as_lineno_2=$LINENO
7232 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7233 test "x$as_lineno_1" != "x$as_lineno_2" &&
7234 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
7235 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
7236 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
7237 CONFIG_SHELL=$as_dir/$as_base
7238 export CONFIG_SHELL
7239 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
7240 fi;;
7241 esac
7242 done
7243 done
7244 ;;
7245 esac
7246
7247 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
7248 # uniformly replaced by the line number. The first 'sed' inserts a
7249 # line-number line before each line; the second 'sed' does the real
7250 # work. The second script uses 'N' to pair each line-number line
7251 # with the numbered line, and appends trailing '-' during
7252 # substitution so that $LINENO is not a special case at line end.
7253 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7254 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
7255 sed '=' <$as_myself |
7256 sed '
7257 N
7258 s,$,-,
7259 : loop
7260 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
7261 t loop
7262 s,-$,,
7263 s,^['$as_cr_digits']*\n,,
7264 ' >$as_me.lineno &&
7265 chmod +x $as_me.lineno ||
7266 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
7267 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
7268 { (exit 1); exit 1; }; }
7269
7270 # Don't try to exec as it changes $[0], causing all sort of problems
7271 # (the dirname of $[0] is not the place where we might find the
7272 # original and so on. Autoconf is especially sensible to this).
7273 . ./$as_me.lineno
7274 # Exit status is that of the last command.
7275 exit
7276 }
7277
7278
7279 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
7280 *c*,-n*) ECHO_N= ECHO_C='
7281 ' ECHO_T=' ' ;;
7282 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
7283 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
7284 esac
7285
7286 if expr a : '\(a\)' >/dev/null 2>&1; then
7287 as_expr=expr
7288 else
7289 as_expr=false
7290 fi
7291
7292 rm -f conf$$ conf$$.exe conf$$.file
7293 echo >conf$$.file
7294 if ln -s conf$$.file conf$$ 2>/dev/null; then
7295 # We could just check for DJGPP; but this test a) works b) is more generic
7296 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
7297 if test -f conf$$.exe; then
7298 # Don't use ln at all; we don't have any links
7299 as_ln_s='cp -p'
7300 else
7301 as_ln_s='ln -s'
7302 fi
7303 elif ln conf$$.file conf$$ 2>/dev/null; then
7304 as_ln_s=ln
7305 else
7306 as_ln_s='cp -p'
7307 fi
7308 rm -f conf$$ conf$$.exe conf$$.file
7309
7310 if mkdir -p . 2>/dev/null; then
7311 as_mkdir_p=:
7312 else
7313 as_mkdir_p=false
7314 fi
7315
7316 as_executable_p="test -f"
7317
7318 # Sed expression to map a string onto a valid CPP name.
7319 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
7320
7321 # Sed expression to map a string onto a valid variable name.
7322 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
7323
7324
7325 # IFS
7326 # We need space, tab and new line, in precisely that order.
7327 as_nl='
7328 '
7329 IFS=" $as_nl"
7330
7331 # CDPATH.
7332 $as_unset CDPATH
7333
7334 exec 6>&1
7335
7336 # Open the log real soon, to keep \$[0] and so on meaningful, and to
7337 # report actual input values of CONFIG_FILES etc. instead of their
7338 # values after options handling. Logging --version etc. is OK.
7339 exec 5>>config.log
7340 {
7341 echo
7342 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7343 ## Running $as_me. ##
7344 _ASBOX
7345 } >&5
7346 cat >&5 <<_CSEOF
7347
7348 This file was extended by OOPSE $as_me 1.0, which was
7349 generated by GNU Autoconf 2.57. Invocation command line was
7350
7351 CONFIG_FILES = $CONFIG_FILES
7352 CONFIG_HEADERS = $CONFIG_HEADERS
7353 CONFIG_LINKS = $CONFIG_LINKS
7354 CONFIG_COMMANDS = $CONFIG_COMMANDS
7355 $ $0 $@
7356
7357 _CSEOF
7358 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
7359 echo >&5
7360 _ACEOF
7361
7362 # Files that config.status was made for.
7363 if test -n "$ac_config_files"; then
7364 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
7365 fi
7366
7367 if test -n "$ac_config_headers"; then
7368 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
7369 fi
7370
7371 if test -n "$ac_config_links"; then
7372 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
7373 fi
7374
7375 if test -n "$ac_config_commands"; then
7376 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
7377 fi
7378
7379 cat >>$CONFIG_STATUS <<\_ACEOF
7380
7381 ac_cs_usage="\
7382 \`$as_me' instantiates files from templates according to the
7383 current configuration.
7384
7385 Usage: $0 [OPTIONS] [FILE]...
7386
7387 -h, --help print this help, then exit
7388 -V, --version print version number, then exit
7389 -q, --quiet do not print progress messages
7390 -d, --debug don't remove temporary files
7391 --recheck update $as_me by reconfiguring in the same conditions
7392 --file=FILE[:TEMPLATE]
7393 instantiate the configuration file FILE
7394 --header=FILE[:TEMPLATE]
7395 instantiate the configuration header FILE
7396
7397 Configuration files:
7398 $config_files
7399
7400 Configuration headers:
7401 $config_headers
7402
7403 Report bugs to <bug-autoconf@gnu.org>."
7404 _ACEOF
7405
7406 cat >>$CONFIG_STATUS <<_ACEOF
7407 ac_cs_version="\\
7408 OOPSE config.status 1.0
7409 configured by $0, generated by GNU Autoconf 2.57,
7410 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
7411
7412 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
7413 Free Software Foundation, Inc.
7414 This config.status script is free software; the Free Software Foundation
7415 gives unlimited permission to copy, distribute and modify it."
7416 srcdir=$srcdir
7417 INSTALL="$INSTALL"
7418 _ACEOF
7419
7420 cat >>$CONFIG_STATUS <<\_ACEOF
7421 # If no file are specified by the user, then we need to provide default
7422 # value. By we need to know if files were specified by the user.
7423 ac_need_defaults=:
7424 while test $# != 0
7425 do
7426 case $1 in
7427 --*=*)
7428 ac_option=`expr "x$1" : 'x\([^=]*\)='`
7429 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
7430 ac_shift=:
7431 ;;
7432 -*)
7433 ac_option=$1
7434 ac_optarg=$2
7435 ac_shift=shift
7436 ;;
7437 *) # This is not an option, so the user has probably given explicit
7438 # arguments.
7439 ac_option=$1
7440 ac_need_defaults=false;;
7441 esac
7442
7443 case $ac_option in
7444 # Handling of the options.
7445 _ACEOF
7446 cat >>$CONFIG_STATUS <<\_ACEOF
7447 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7448 ac_cs_recheck=: ;;
7449 --version | --vers* | -V )
7450 echo "$ac_cs_version"; exit 0 ;;
7451 --he | --h)
7452 # Conflict between --help and --header
7453 { { echo "$as_me:$LINENO: error: ambiguous option: $1
7454 Try \`$0 --help' for more information." >&5
7455 echo "$as_me: error: ambiguous option: $1
7456 Try \`$0 --help' for more information." >&2;}
7457 { (exit 1); exit 1; }; };;
7458 --help | --hel | -h )
7459 echo "$ac_cs_usage"; exit 0 ;;
7460 --debug | --d* | -d )
7461 debug=: ;;
7462 --file | --fil | --fi | --f )
7463 $ac_shift
7464 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
7465 ac_need_defaults=false;;
7466 --header | --heade | --head | --hea )
7467 $ac_shift
7468 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
7469 ac_need_defaults=false;;
7470 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7471 | -silent | --silent | --silen | --sile | --sil | --si | --s)
7472 ac_cs_silent=: ;;
7473
7474 # This is an error.
7475 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
7476 Try \`$0 --help' for more information." >&5
7477 echo "$as_me: error: unrecognized option: $1
7478 Try \`$0 --help' for more information." >&2;}
7479 { (exit 1); exit 1; }; } ;;
7480
7481 *) ac_config_targets="$ac_config_targets $1" ;;
7482
7483 esac
7484 shift
7485 done
7486
7487 ac_configure_extra_args=
7488
7489 if $ac_cs_silent; then
7490 exec 6>/dev/null
7491 ac_configure_extra_args="$ac_configure_extra_args --silent"
7492 fi
7493
7494 _ACEOF
7495 cat >>$CONFIG_STATUS <<_ACEOF
7496 if \$ac_cs_recheck; then
7497 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
7498 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7499 fi
7500
7501 _ACEOF
7502
7503
7504
7505
7506
7507 cat >>$CONFIG_STATUS <<\_ACEOF
7508 for ac_config_target in $ac_config_targets
7509 do
7510 case "$ac_config_target" in
7511 # Handling of arguments.
7512 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7513 "libBASS/Makefile" ) CONFIG_FILES="$CONFIG_FILES libBASS/Makefile" ;;
7514 "libmdtools/Makefile" ) CONFIG_FILES="$CONFIG_FILES libmdtools/Makefile" ;;
7515 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
7516 "utils/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
7517 "utils/sysbuilder/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/sysbuilder/Makefile" ;;
7518 "forceFields/Makefile" ) CONFIG_FILES="$CONFIG_FILES forceFields/Makefile" ;;
7519 "samples/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/Makefile" ;;
7520 "staticProps/Makefile" ) CONFIG_FILES="$CONFIG_FILES staticProps/Makefile" ;;
7521 "samples/alkane/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/alkane/Makefile" ;;
7522 "samples/argon/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/argon/Makefile" ;;
7523 "samples/beadLipid/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/beadLipid/Makefile" ;;
7524 "samples/lipid/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/lipid/Makefile" ;;
7525 "samples/metals/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/metals/Makefile" ;;
7526 "samples/water/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/water/Makefile" ;;
7527 "libmdtools/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS libmdtools/config.h" ;;
7528 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
7529 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
7530 { (exit 1); exit 1; }; };;
7531 esac
7532 done
7533
7534 # If the user did not use the arguments to specify the items to instantiate,
7535 # then the envvar interface is used. Set only those that are not.
7536 # We use the long form for the default assignment because of an extremely
7537 # bizarre bug on SunOS 4.1.3.
7538 if $ac_need_defaults; then
7539 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7540 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7541 fi
7542
7543 # Have a temporary directory for convenience. Make it in the build tree
7544 # simply because there is no reason to put it here, and in addition,
7545 # creating and moving files from /tmp can sometimes cause problems.
7546 # Create a temporary directory, and hook for its removal unless debugging.
7547 $debug ||
7548 {
7549 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
7550 trap '{ (exit 1); exit 1; }' 1 2 13 15
7551 }
7552
7553 # Create a (secure) tmp directory for tmp files.
7554
7555 {
7556 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
7557 test -n "$tmp" && test -d "$tmp"
7558 } ||
7559 {
7560 tmp=./confstat$$-$RANDOM
7561 (umask 077 && mkdir $tmp)
7562 } ||
7563 {
7564 echo "$me: cannot create a temporary directory in ." >&2
7565 { (exit 1); exit 1; }
7566 }
7567
7568 _ACEOF
7569
7570 cat >>$CONFIG_STATUS <<_ACEOF
7571
7572 #
7573 # CONFIG_FILES section.
7574 #
7575
7576 # No need to generate the scripts if there are no CONFIG_FILES.
7577 # This happens for instance when ./config.status config.h
7578 if test -n "\$CONFIG_FILES"; then
7579 # Protect against being on the right side of a sed subst in config.status.
7580 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
7581 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
7582 s,@SHELL@,$SHELL,;t t
7583 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
7584 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
7585 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
7586 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
7587 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
7588 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
7589 s,@exec_prefix@,$exec_prefix,;t t
7590 s,@prefix@,$prefix,;t t
7591 s,@program_transform_name@,$program_transform_name,;t t
7592 s,@bindir@,$bindir,;t t
7593 s,@sbindir@,$sbindir,;t t
7594 s,@libexecdir@,$libexecdir,;t t
7595 s,@datadir@,$datadir,;t t
7596 s,@sysconfdir@,$sysconfdir,;t t
7597 s,@sharedstatedir@,$sharedstatedir,;t t
7598 s,@localstatedir@,$localstatedir,;t t
7599 s,@libdir@,$libdir,;t t
7600 s,@includedir@,$includedir,;t t
7601 s,@oldincludedir@,$oldincludedir,;t t
7602 s,@infodir@,$infodir,;t t
7603 s,@mandir@,$mandir,;t t
7604 s,@build_alias@,$build_alias,;t t
7605 s,@host_alias@,$host_alias,;t t
7606 s,@target_alias@,$target_alias,;t t
7607 s,@DEFS@,$DEFS,;t t
7608 s,@ECHO_C@,$ECHO_C,;t t
7609 s,@ECHO_N@,$ECHO_N,;t t
7610 s,@ECHO_T@,$ECHO_T,;t t
7611 s,@LIBS@,$LIBS,;t t
7612 s,@PROGNAME@,$PROGNAME,;t t
7613 s,@debug@,$debug,;t t
7614 s,@build@,$build,;t t
7615 s,@build_cpu@,$build_cpu,;t t
7616 s,@build_vendor@,$build_vendor,;t t
7617 s,@build_os@,$build_os,;t t
7618 s,@host@,$host,;t t
7619 s,@host_cpu@,$host_cpu,;t t
7620 s,@host_vendor@,$host_vendor,;t t
7621 s,@host_os@,$host_os,;t t
7622 s,@CC@,$CC,;t t
7623 s,@CFLAGS@,$CFLAGS,;t t
7624 s,@LDFLAGS@,$LDFLAGS,;t t
7625 s,@CPPFLAGS@,$CPPFLAGS,;t t
7626 s,@ac_ct_CC@,$ac_ct_CC,;t t
7627 s,@EXEEXT@,$EXEEXT,;t t
7628 s,@OBJEXT@,$OBJEXT,;t t
7629 s,@CXX@,$CXX,;t t
7630 s,@CXXFLAGS@,$CXXFLAGS,;t t
7631 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
7632 s,@F90@,$F90,;t t
7633 s,@F90FLAGS@,$F90FLAGS,;t t
7634 s,@ac_ct_F90@,$ac_ct_F90,;t t
7635 s,@PREPFLAG@,$PREPFLAG,;t t
7636 s,@PREPDEFFLAG@,$PREPDEFFLAG,;t t
7637 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
7638 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
7639 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
7640 s,@LN_S@,$LN_S,;t t
7641 s,@SET_MAKE@,$SET_MAKE,;t t
7642 s,@RANLIB@,$RANLIB,;t t
7643 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
7644 s,@YACC@,$YACC,;t t
7645 s,@LEX@,$LEX,;t t
7646 s,@LEXLIB@,$LEXLIB,;t t
7647 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
7648 s,@AR@,$AR,;t t
7649 s,@F90LIBS@,$F90LIBS,;t t
7650 s,@F90_FUNC@,$F90_FUNC,;t t
7651 s,@F90_FUNC_@,$F90_FUNC_,;t t
7652 s,@MOD@,$MOD,;t t
7653 s,@F90_WORK_FILES_ARG@,$F90_WORK_FILES_ARG,;t t
7654 s,@MODDIRFLAG@,$MODDIRFLAG,;t t
7655 s,@F90MODINCSPEC@,$F90MODINCSPEC,;t t
7656 s,@mpi_dir@,$mpi_dir,;t t
7657 s,@MPI_LIBDIR@,$MPI_LIBDIR,;t t
7658 s,@MPI_INC@,$MPI_INC,;t t
7659 s,@MPI_LIB@,$MPI_LIB,;t t
7660 s,@MPIF77@,$MPIF77,;t t
7661 s,@MPIF90@,$MPIF90,;t t
7662 s,@MPILIBS@,$MPILIBS,;t t
7663 s,@CPP@,$CPP,;t t
7664 s,@EGREP@,$EGREP,;t t
7665 s,@SPRNG_LIBDIR@,$SPRNG_LIBDIR,;t t
7666 s,@SPRNG_LIB@,$SPRNG_LIB,;t t
7667 s,@SPRNG_INC@,$SPRNG_INC,;t t
7668 s,@HAVE_SPRNG@,$HAVE_SPRNG,;t t
7669 s,@MKL_LIBDIR@,$MKL_LIBDIR,;t t
7670 s,@MKL_LIB@,$MKL_LIB,;t t
7671 s,@MKL_INC@,$MKL_INC,;t t
7672 s,@HAVE_MKL@,$HAVE_MKL,;t t
7673 s,@MPI_F90_MODS@,$MPI_F90_MODS,;t t
7674 s,@MPIMODLIBNAME@,$MPIMODLIBNAME,;t t
7675 s,@BATEXT@,$BATEXT,;t t
7676 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
7677 s,@OOPSE@,$OOPSE,;t t
7678 s,@OOPSE_HOME@,$OOPSE_HOME,;t t
7679 s,@SUBDIRS@,$SUBDIRS,;t t
7680 s,@FFLAGS@,$FFLAGS,;t t
7681 s,@LIBOBJS@,$LIBOBJS,;t t
7682 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
7683 CEOF
7684
7685 _ACEOF
7686
7687 cat >>$CONFIG_STATUS <<\_ACEOF
7688 # Split the substitutions into bite-sized pieces for seds with
7689 # small command number limits, like on Digital OSF/1 and HP-UX.
7690 ac_max_sed_lines=48
7691 ac_sed_frag=1 # Number of current file.
7692 ac_beg=1 # First line for current file.
7693 ac_end=$ac_max_sed_lines # Line after last line for current file.
7694 ac_more_lines=:
7695 ac_sed_cmds=
7696 while $ac_more_lines; do
7697 if test $ac_beg -gt 1; then
7698 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7699 else
7700 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7701 fi
7702 if test ! -s $tmp/subs.frag; then
7703 ac_more_lines=false
7704 else
7705 # The purpose of the label and of the branching condition is to
7706 # speed up the sed processing (if there are no `@' at all, there
7707 # is no need to browse any of the substitutions).
7708 # These are the two extra sed commands mentioned above.
7709 (echo ':t
7710 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
7711 if test -z "$ac_sed_cmds"; then
7712 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
7713 else
7714 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
7715 fi
7716 ac_sed_frag=`expr $ac_sed_frag + 1`
7717 ac_beg=$ac_end
7718 ac_end=`expr $ac_end + $ac_max_sed_lines`
7719 fi
7720 done
7721 if test -z "$ac_sed_cmds"; then
7722 ac_sed_cmds=cat
7723 fi
7724 fi # test -n "$CONFIG_FILES"
7725
7726 _ACEOF
7727 cat >>$CONFIG_STATUS <<\_ACEOF
7728 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
7729 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7730 case $ac_file in
7731 - | *:- | *:-:* ) # input from stdin
7732 cat >$tmp/stdin
7733 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7734 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7735 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7736 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7737 * ) ac_file_in=$ac_file.in ;;
7738 esac
7739
7740 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
7741 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7742 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7743 X"$ac_file" : 'X\(//\)[^/]' \| \
7744 X"$ac_file" : 'X\(//\)$' \| \
7745 X"$ac_file" : 'X\(/\)' \| \
7746 . : '\(.\)' 2>/dev/null ||
7747 echo X"$ac_file" |
7748 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7749 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7750 /^X\(\/\/\)$/{ s//\1/; q; }
7751 /^X\(\/\).*/{ s//\1/; q; }
7752 s/.*/./; q'`
7753 { if $as_mkdir_p; then
7754 mkdir -p "$ac_dir"
7755 else
7756 as_dir="$ac_dir"
7757 as_dirs=
7758 while test ! -d "$as_dir"; do
7759 as_dirs="$as_dir $as_dirs"
7760 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7761 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7762 X"$as_dir" : 'X\(//\)[^/]' \| \
7763 X"$as_dir" : 'X\(//\)$' \| \
7764 X"$as_dir" : 'X\(/\)' \| \
7765 . : '\(.\)' 2>/dev/null ||
7766 echo X"$as_dir" |
7767 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7768 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7769 /^X\(\/\/\)$/{ s//\1/; q; }
7770 /^X\(\/\).*/{ s//\1/; q; }
7771 s/.*/./; q'`
7772 done
7773 test ! -n "$as_dirs" || mkdir $as_dirs
7774 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7775 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7776 { (exit 1); exit 1; }; }; }
7777
7778 ac_builddir=.
7779
7780 if test "$ac_dir" != .; then
7781 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7782 # A "../" for each directory in $ac_dir_suffix.
7783 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7784 else
7785 ac_dir_suffix= ac_top_builddir=
7786 fi
7787
7788 case $srcdir in
7789 .) # No --srcdir option. We are building in place.
7790 ac_srcdir=.
7791 if test -z "$ac_top_builddir"; then
7792 ac_top_srcdir=.
7793 else
7794 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7795 fi ;;
7796 [\\/]* | ?:[\\/]* ) # Absolute path.
7797 ac_srcdir=$srcdir$ac_dir_suffix;
7798 ac_top_srcdir=$srcdir ;;
7799 *) # Relative path.
7800 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7801 ac_top_srcdir=$ac_top_builddir$srcdir ;;
7802 esac
7803 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
7804 # absolute.
7805 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
7806 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
7807 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
7808 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
7809
7810
7811 case $INSTALL in
7812 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7813 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
7814 esac
7815
7816 if test x"$ac_file" != x-; then
7817 { echo "$as_me:$LINENO: creating $ac_file" >&5
7818 echo "$as_me: creating $ac_file" >&6;}
7819 rm -f "$ac_file"
7820 fi
7821 # Let's still pretend it is `configure' which instantiates (i.e., don't
7822 # use $as_me), people would be surprised to read:
7823 # /* config.h. Generated by config.status. */
7824 if test x"$ac_file" = x-; then
7825 configure_input=
7826 else
7827 configure_input="$ac_file. "
7828 fi
7829 configure_input=$configure_input"Generated from `echo $ac_file_in |
7830 sed 's,.*/,,'` by configure."
7831
7832 # First look for the input files in the build tree, otherwise in the
7833 # src tree.
7834 ac_file_inputs=`IFS=:
7835 for f in $ac_file_in; do
7836 case $f in
7837 -) echo $tmp/stdin ;;
7838 [\\/$]*)
7839 # Absolute (can't be DOS-style, as IFS=:)
7840 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7841 echo "$as_me: error: cannot find input file: $f" >&2;}
7842 { (exit 1); exit 1; }; }
7843 echo $f;;
7844 *) # Relative
7845 if test -f "$f"; then
7846 # Build tree
7847 echo $f
7848 elif test -f "$srcdir/$f"; then
7849 # Source tree
7850 echo $srcdir/$f
7851 else
7852 # /dev/null tree
7853 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7854 echo "$as_me: error: cannot find input file: $f" >&2;}
7855 { (exit 1); exit 1; }; }
7856 fi;;
7857 esac
7858 done` || { (exit 1); exit 1; }
7859 _ACEOF
7860 cat >>$CONFIG_STATUS <<_ACEOF
7861 sed "$ac_vpsub
7862 $extrasub
7863 _ACEOF
7864 cat >>$CONFIG_STATUS <<\_ACEOF
7865 :t
7866 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7867 s,@configure_input@,$configure_input,;t t
7868 s,@srcdir@,$ac_srcdir,;t t
7869 s,@abs_srcdir@,$ac_abs_srcdir,;t t
7870 s,@top_srcdir@,$ac_top_srcdir,;t t
7871 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
7872 s,@builddir@,$ac_builddir,;t t
7873 s,@abs_builddir@,$ac_abs_builddir,;t t
7874 s,@top_builddir@,$ac_top_builddir,;t t
7875 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
7876 s,@INSTALL@,$ac_INSTALL,;t t
7877 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
7878 rm -f $tmp/stdin
7879 if test x"$ac_file" != x-; then
7880 mv $tmp/out $ac_file
7881 else
7882 cat $tmp/out
7883 rm -f $tmp/out
7884 fi
7885
7886 done
7887 _ACEOF
7888 cat >>$CONFIG_STATUS <<\_ACEOF
7889
7890 #
7891 # CONFIG_HEADER section.
7892 #
7893
7894 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7895 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7896 #
7897 # ac_d sets the value in "#define NAME VALUE" lines.
7898 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7899 ac_dB='[ ].*$,\1#\2'
7900 ac_dC=' '
7901 ac_dD=',;t'
7902 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7903 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7904 ac_uB='$,\1#\2define\3'
7905 ac_uC=' '
7906 ac_uD=',;t'
7907
7908 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
7909 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7910 case $ac_file in
7911 - | *:- | *:-:* ) # input from stdin
7912 cat >$tmp/stdin
7913 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7914 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7915 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7916 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7917 * ) ac_file_in=$ac_file.in ;;
7918 esac
7919
7920 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
7921 echo "$as_me: creating $ac_file" >&6;}
7922
7923 # First look for the input files in the build tree, otherwise in the
7924 # src tree.
7925 ac_file_inputs=`IFS=:
7926 for f in $ac_file_in; do
7927 case $f in
7928 -) echo $tmp/stdin ;;
7929 [\\/$]*)
7930 # Absolute (can't be DOS-style, as IFS=:)
7931 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7932 echo "$as_me: error: cannot find input file: $f" >&2;}
7933 { (exit 1); exit 1; }; }
7934 echo $f;;
7935 *) # Relative
7936 if test -f "$f"; then
7937 # Build tree
7938 echo $f
7939 elif test -f "$srcdir/$f"; then
7940 # Source tree
7941 echo $srcdir/$f
7942 else
7943 # /dev/null tree
7944 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7945 echo "$as_me: error: cannot find input file: $f" >&2;}
7946 { (exit 1); exit 1; }; }
7947 fi;;
7948 esac
7949 done` || { (exit 1); exit 1; }
7950 # Remove the trailing spaces.
7951 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
7952
7953 _ACEOF
7954
7955 # Transform confdefs.h into two sed scripts, `conftest.defines' and
7956 # `conftest.undefs', that substitutes the proper values into
7957 # config.h.in to produce config.h. The first handles `#define'
7958 # templates, and the second `#undef' templates.
7959 # And first: Protect against being on the right side of a sed subst in
7960 # config.status. Protect against being in an unquoted here document
7961 # in config.status.
7962 rm -f conftest.defines conftest.undefs
7963 # Using a here document instead of a string reduces the quoting nightmare.
7964 # Putting comments in sed scripts is not portable.
7965 #
7966 # `end' is used to avoid that the second main sed command (meant for
7967 # 0-ary CPP macros) applies to n-ary macro definitions.
7968 # See the Autoconf documentation for `clear'.
7969 cat >confdef2sed.sed <<\_ACEOF
7970 s/[\\&,]/\\&/g
7971 s,[\\$`],\\&,g
7972 t clear
7973 : clear
7974 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
7975 t end
7976 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
7977 : end
7978 _ACEOF
7979 # If some macros were called several times there might be several times
7980 # the same #defines, which is useless. Nevertheless, we may not want to
7981 # sort them, since we want the *last* AC-DEFINE to be honored.
7982 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
7983 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
7984 rm -f confdef2sed.sed
7985
7986 # This sed command replaces #undef with comments. This is necessary, for
7987 # example, in the case of _POSIX_SOURCE, which is predefined and required
7988 # on some systems where configure will not decide to define it.
7989 cat >>conftest.undefs <<\_ACEOF
7990 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
7991 _ACEOF
7992
7993 # Break up conftest.defines because some shells have a limit on the size
7994 # of here documents, and old seds have small limits too (100 cmds).
7995 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
7996 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
7997 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
7998 echo ' :' >>$CONFIG_STATUS
7999 rm -f conftest.tail
8000 while grep . conftest.defines >/dev/null
8001 do
8002 # Write a limited-size here document to $tmp/defines.sed.
8003 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
8004 # Speed up: don't consider the non `#define' lines.
8005 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
8006 # Work around the forget-to-reset-the-flag bug.
8007 echo 't clr' >>$CONFIG_STATUS
8008 echo ': clr' >>$CONFIG_STATUS
8009 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
8010 echo 'CEOF
8011 sed -f $tmp/defines.sed $tmp/in >$tmp/out
8012 rm -f $tmp/in
8013 mv $tmp/out $tmp/in
8014 ' >>$CONFIG_STATUS
8015 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
8016 rm -f conftest.defines
8017 mv conftest.tail conftest.defines
8018 done
8019 rm -f conftest.defines
8020 echo ' fi # grep' >>$CONFIG_STATUS
8021 echo >>$CONFIG_STATUS
8022
8023 # Break up conftest.undefs because some shells have a limit on the size
8024 # of here documents, and old seds have small limits too (100 cmds).
8025 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
8026 rm -f conftest.tail
8027 while grep . conftest.undefs >/dev/null
8028 do
8029 # Write a limited-size here document to $tmp/undefs.sed.
8030 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
8031 # Speed up: don't consider the non `#undef'
8032 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
8033 # Work around the forget-to-reset-the-flag bug.
8034 echo 't clr' >>$CONFIG_STATUS
8035 echo ': clr' >>$CONFIG_STATUS
8036 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
8037 echo 'CEOF
8038 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
8039 rm -f $tmp/in
8040 mv $tmp/out $tmp/in
8041 ' >>$CONFIG_STATUS
8042 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
8043 rm -f conftest.undefs
8044 mv conftest.tail conftest.undefs
8045 done
8046 rm -f conftest.undefs
8047
8048 cat >>$CONFIG_STATUS <<\_ACEOF
8049 # Let's still pretend it is `configure' which instantiates (i.e., don't
8050 # use $as_me), people would be surprised to read:
8051 # /* config.h. Generated by config.status. */
8052 if test x"$ac_file" = x-; then
8053 echo "/* Generated by configure. */" >$tmp/config.h
8054 else
8055 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
8056 fi
8057 cat $tmp/in >>$tmp/config.h
8058 rm -f $tmp/in
8059 if test x"$ac_file" != x-; then
8060 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
8061 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
8062 echo "$as_me: $ac_file is unchanged" >&6;}
8063 else
8064 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
8065 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8066 X"$ac_file" : 'X\(//\)[^/]' \| \
8067 X"$ac_file" : 'X\(//\)$' \| \
8068 X"$ac_file" : 'X\(/\)' \| \
8069 . : '\(.\)' 2>/dev/null ||
8070 echo X"$ac_file" |
8071 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8072 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8073 /^X\(\/\/\)$/{ s//\1/; q; }
8074 /^X\(\/\).*/{ s//\1/; q; }
8075 s/.*/./; q'`
8076 { if $as_mkdir_p; then
8077 mkdir -p "$ac_dir"
8078 else
8079 as_dir="$ac_dir"
8080 as_dirs=
8081 while test ! -d "$as_dir"; do
8082 as_dirs="$as_dir $as_dirs"
8083 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8084 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8085 X"$as_dir" : 'X\(//\)[^/]' \| \
8086 X"$as_dir" : 'X\(//\)$' \| \
8087 X"$as_dir" : 'X\(/\)' \| \
8088 . : '\(.\)' 2>/dev/null ||
8089 echo X"$as_dir" |
8090 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8091 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8092 /^X\(\/\/\)$/{ s//\1/; q; }
8093 /^X\(\/\).*/{ s//\1/; q; }
8094 s/.*/./; q'`
8095 done
8096 test ! -n "$as_dirs" || mkdir $as_dirs
8097 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8098 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8099 { (exit 1); exit 1; }; }; }
8100
8101 rm -f $ac_file
8102 mv $tmp/config.h $ac_file
8103 fi
8104 else
8105 cat $tmp/config.h
8106 rm -f $tmp/config.h
8107 fi
8108 done
8109 _ACEOF
8110
8111 cat >>$CONFIG_STATUS <<\_ACEOF
8112
8113 { (exit 0); exit 0; }
8114 _ACEOF
8115 chmod +x $CONFIG_STATUS
8116 ac_clean_files=$ac_clean_files_save
8117
8118
8119 # configure is writing to config.log, and then calls config.status.
8120 # config.status does its own redirection, appending to config.log.
8121 # Unfortunately, on DOS this fails, as config.log is still kept open
8122 # by configure, so config.status won't be able to write to it; its
8123 # output is simply discarded. So we exec the FD to /dev/null,
8124 # effectively closing config.log, so it can be properly (re)opened and
8125 # appended to by config.status. When coming back to configure, we
8126 # need to make the FD available again.
8127 if test "$no_create" != yes; then
8128 ac_cs_success=:
8129 ac_config_status_args=
8130 test "$silent" = yes &&
8131 ac_config_status_args="$ac_config_status_args --quiet"
8132 exec 5>/dev/null
8133 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8134 exec 5>>config.log
8135 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8136 # would make configure fail if this is the last instruction.
8137 $ac_cs_success || { (exit 1); exit 1; }
8138 fi
8139

Properties

Name Value
svn:executable *