ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/OOPSE/configure
Revision: 749
Committed: Fri Sep 5 22:36:12 2003 UTC (20 years, 10 months ago) by gezelter
File size: 232136 byte(s)
Log Message:
fixed sprng problem

File Contents

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

Properties

Name Value
svn:executable *