ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/OOPSE-3.0/configure
Revision: 2081
Committed: Fri Mar 4 15:29:03 2005 UTC (19 years, 3 months ago) by gezelter
File size: 268095 byte(s)
Log Message:
SPRNG eradication project

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

Properties

Name Value
svn:executable *