ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/OOPSE-1.0/configure
Revision: 1359
Committed: Tue Jul 20 17:07:01 2004 UTC (19 years, 11 months ago) by gezelter
File size: 245781 byte(s)
Log Message:
*** empty log message ***

File Contents

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

Properties

Name Value
svn:executable *