ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/OOPSE/configure
Revision: 1238
Committed: Fri Jun 4 14:59:17 2004 UTC (20 years, 1 month ago) by gezelter
File size: 248223 byte(s)
Log Message:
fixed a typo in autoconf script

File Contents

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

Properties

Name Value
svn:executable *