ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/OOPSE-1.0/configure
Revision: 1398
Committed: Fri Jul 23 19:15:46 2004 UTC (19 years, 11 months ago) by gezelter
File size: 259042 byte(s)
Log Message:
removed beadLipid

File Contents

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

Properties

Name Value
svn:executable *