ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/OOPSE/configure
Revision: 826
Committed: Mon Oct 27 23:00:59 2003 UTC (20 years, 8 months ago) by gezelter
File size: 236006 byte(s)
Log Message:
Stuff for MOD support in other compilers

File Contents

# User Rev Content
1 gezelter 749 #! /bin/sh
2     # Guess values for system-dependent variables and create Makefiles.
3 mmeineke 791 # Generated by GNU Autoconf 2.57 for OOPSE 1.0.
4 gezelter 749 #
5     # Report bugs to <gezelter@nd.edu>.
6     #
7 mmeineke 791 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
8 gezelter 749 # 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 mmeineke 791 ## --------------------- ##
12     ## M4sh Initialization. ##
13     ## --------------------- ##
14 gezelter 749
15     # Be Bourne compatible
16     if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17     emulate sh
18     NULLCMD=:
19 mmeineke 791 # 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 gezelter 749 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23     set -o posix
24     fi
25    
26 mmeineke 791 # 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 gezelter 749 # Name of the executable.
68 mmeineke 791 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 gezelter 749
79 mmeineke 791
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 gezelter 749 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 mmeineke 791 if mkdir -p . 2>/dev/null; then
221     as_mkdir_p=:
222 gezelter 749 else
223 mmeineke 791 as_mkdir_p=false
224 gezelter 749 fi
225    
226 mmeineke 791 as_executable_p="test -f"
227 gezelter 749
228 mmeineke 791 # 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 gezelter 749 # 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 mmeineke 791 $as_unset CDPATH
243 gezelter 749
244 mmeineke 791
245 gezelter 749 # 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 mmeineke 791 ac_config_libobj_dir=.
257 gezelter 749 cross_compiling=no
258     subdirs=
259 mmeineke 791 MFLAGS=
260     MAKEFLAGS=
261 gezelter 749 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 mmeineke 791 # 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 gezelter 749
275     ac_unique_file="src/oopse.cpp"
276     ac_default_prefix="/usr/local"
277 mmeineke 791 # 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 gezelter 749
314 gezelter 826 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_ MOD F90_WORK_FILES_ARG MODDIRFLAG F90MODINCSPEC 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 MPIMODLIBNAME BATEXT MKINSTALLDIRS OOPSE OOPSE_HOME SUBDIRS FFLAGS LIBOBJS LTLIBOBJS'
315 mmeineke 791 ac_subst_files=''
316    
317 gezelter 749 # 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 mmeineke 791 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
401 gezelter 749 { 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 mmeineke 791 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
410 gezelter 749 { 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 mmeineke 791 | --no-cr | --no-c | -n)
488 gezelter 749 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 mmeineke 791 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
592 gezelter 749 { 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 mmeineke 791 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
605 gezelter 749 { 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 mmeineke 791 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
637 gezelter 749 { 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 mmeineke 791 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
647 gezelter 749 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 mmeineke 791 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 gezelter 749 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
673 mmeineke 791 localstatedir libdir includedir oldincludedir infodir mandir
674 gezelter 749 do
675     eval ac_val=$`echo $ac_var`
676     case $ac_val in
677     [\\/$]* | ?:[\\/]* ) ;;
678 mmeineke 791 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
679 gezelter 749 { (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 mmeineke 791 # FIXME: To remove some day.
686 gezelter 749 build=$build_alias
687     host=$host_alias
688     target=$target_alias
689    
690 mmeineke 791 # FIXME: To remove some day.
691 gezelter 749 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 mmeineke 791
707 gezelter 749 # 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 mmeineke 791 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 gezelter 749 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 mmeineke 791 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
733 gezelter 749 { (exit 1); exit 1; }; }
734     else
735 mmeineke 791 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
736 gezelter 749 { (exit 1); exit 1; }; }
737     fi
738     fi
739 mmeineke 791 (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 gezelter 749 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 mmeineke 791 cat <<_ACEOF
803 gezelter 749 \`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 mmeineke 791 _ACEOF
824 gezelter 749
825 mmeineke 791 cat <<_ACEOF
826 gezelter 749 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 mmeineke 791 _ACEOF
853 gezelter 749
854 mmeineke 791 cat <<\_ACEOF
855 gezelter 749
856     System types:
857     --build=BUILD configure for building on BUILD [guessed]
858 mmeineke 791 --host=HOST cross-compile to build programs to run on HOST [BUILD]
859     _ACEOF
860 gezelter 749 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 mmeineke 791 cat <<\_ACEOF
867 gezelter 749
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 gezelter 786 --with-mpi_dir=MPIDIR give the path for MPI /usr/local
878     --with-mpi-libdir=dir give the path for MPI-libraries MPI_DIR/lib
879     --with-mpi_inc=dir give the path for MPI-include-files MPI_DIR/include
880 mmeineke 790 --with-sprng_prefix=PREFIX
881 gezelter 749 Prefix where SPRNG is installed
882 gezelter 816 --with-sprng-libdir=PREFIX SPRNG library directory
883     --with-sprng-include=PREFIX
884 gezelter 749 SPRNG include directory
885     --with-mkl Do we want MKL will check /usr/local/intel/mkl60 /opt/intel/mkl60
886 mmeineke 791 --with-mpi_f90_mods=<dir>
887     Location where MPI f90 modules are installed
888 gezelter 749
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 mmeineke 791 _ACEOF
908 gezelter 749 fi
909    
910     if test "$ac_init_help" = "recursive"; then
911     # If there are subdirs, report their specific --help.
912     ac_popdir=`pwd`
913 mmeineke 791 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
914     test -d $ac_dir || continue
915     ac_builddir=.
916 gezelter 749
917 mmeineke 791 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 gezelter 749
925 mmeineke 791 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 gezelter 749 # Check for guested configure; otherwise get Cygnus style configure.
949 mmeineke 791 if test -f $ac_srcdir/configure.gnu; then
950 gezelter 749 echo
951 mmeineke 791 $SHELL $ac_srcdir/configure.gnu --help=recursive
952     elif test -f $ac_srcdir/configure; then
953 gezelter 749 echo
954 mmeineke 791 $SHELL $ac_srcdir/configure --help=recursive
955     elif test -f $ac_srcdir/configure.ac ||
956     test -f $ac_srcdir/configure.in; then
957 gezelter 749 echo
958     $ac_configure --help
959     else
960 mmeineke 791 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
961 gezelter 749 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 mmeineke 791 cat <<\_ACEOF
969 gezelter 749 OOPSE configure 1.0
970 mmeineke 791 generated by GNU Autoconf 2.57
971 gezelter 749
972 mmeineke 791 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
973 gezelter 749 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 mmeineke 791 _ACEOF
977 gezelter 749 exit 0
978     fi
979     exec 5>config.log
980 mmeineke 791 cat >&5 <<_ACEOF
981 gezelter 749 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 mmeineke 791 generated by GNU Autoconf 2.57. Invocation command line was
986 gezelter 749
987     $ $0 $@
988    
989 mmeineke 791 _ACEOF
990 gezelter 749 {
991     cat <<_ASUNAME
992 mmeineke 791 ## --------- ##
993     ## Platform. ##
994     ## --------- ##
995 gezelter 749
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 mmeineke 791 _ASUNAME
1014 mmeineke 790
1015 mmeineke 791 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 gezelter 749 } >&5
1024    
1025 mmeineke 791 cat >&5 <<_ACEOF
1026 gezelter 749
1027    
1028 mmeineke 791 ## ----------- ##
1029     ## Core tests. ##
1030     ## ----------- ##
1031    
1032     _ACEOF
1033    
1034    
1035 gezelter 749 # Keep a trace of the command line.
1036     # Strip out --no-create and --no-recursion so they do not pile up.
1037 mmeineke 791 # Strip out --silent because we don't want to record it for future runs.
1038 gezelter 749 # Also quote any args containing shell meta-characters.
1039 mmeineke 791 # Make two passes to allow for proper duplicate-argument suppression.
1040 gezelter 749 ac_configure_args=
1041 mmeineke 791 ac_configure_args0=
1042     ac_configure_args1=
1043 gezelter 749 ac_sep=
1044 mmeineke 791 ac_must_keep_next=false
1045     for ac_pass in 1 2
1046 gezelter 749 do
1047 mmeineke 791 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 gezelter 749 done
1083 mmeineke 791 $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 gezelter 749
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 mmeineke 791 # 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 gezelter 749 trap 'exit_status=$?
1092     # Save into config.log some information that might help in debugging.
1093 mmeineke 791 {
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 gezelter 749 {
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 mmeineke 791 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1110 gezelter 749 ;;
1111     *)
1112     sed -n \
1113 mmeineke 791 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1114 gezelter 749 ;;
1115     esac;
1116 mmeineke 791 }
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 gezelter 749 exit $exit_status
1164     ' 0
1165     for ac_signal in 1 2 13 15; do
1166 mmeineke 791 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1167 gezelter 749 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 mmeineke 791 # 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 gezelter 749 # 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 mmeineke 791 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1214 gezelter 749 echo "$as_me: loading site script $ac_site_file" >&6;}
1215 mmeineke 791 sed 's/^/| /' "$ac_site_file" >&5
1216 gezelter 749 . "$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 mmeineke 791 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1225 gezelter 749 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 mmeineke 791 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1233 gezelter 749 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 mmeineke 791 ac_cache_corrupted=false
1240 gezelter 749 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 mmeineke 791 { 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 gezelter 749 ,set)
1252 mmeineke 791 { 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 gezelter 749 ,);;
1256     *)
1257     if test "x$ac_old_val" != "x$ac_new_val"; then
1258 mmeineke 791 { 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 gezelter 749 fi;;
1266     esac
1267 mmeineke 791 # 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 gezelter 749 done
1280 mmeineke 791 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 gezelter 749 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 mmeineke 791
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 gezelter 749 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 mmeineke 791 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ac-tools $srcdir/ac-tools" >&5
1338 gezelter 749 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 mmeineke 791
1346 gezelter 749 # 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 mmeineke 791
1397 gezelter 749 # 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 mmeineke 791
1433    
1434 gezelter 749 # _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 mmeineke 791
1465    
1466 gezelter 749 ## ----------------------- ##
1467     ## 1. Language selection. ##
1468     ## ----------------------- ##
1469    
1470     # ----------------------------- #
1471     # 1b. The Fortran 90 language. #
1472     # ----------------------------- #
1473    
1474     # AC_LANG(Fortran 90)
1475     # -------------------
1476    
1477 mmeineke 791
1478    
1479 gezelter 749 # _AC_LANG_ABBREV(Fortran 90)
1480     # ---------------------------
1481    
1482 mmeineke 791
1483    
1484 gezelter 749 # ----------------------------- #
1485     # 1c. The Fortran 95 language. #
1486     # ----------------------------- #
1487    
1488     # AC_LANG(Fortran 95)
1489     # -------------------
1490    
1491 mmeineke 791
1492    
1493 gezelter 749 # _AC_LANG_ABBREV(Fortran 95)
1494     # ---------------------------
1495    
1496 mmeineke 791
1497    
1498 gezelter 749 ## ---------------------- ##
1499     ## 2.Producing programs. ##
1500     ## ---------------------- ##
1501    
1502     # ------------------------ #
1503     # 2b. Fortran 90 sources. #
1504     # ------------------------ #
1505    
1506     # AC_LANG_SOURCE(Fortran 90)(BODY)
1507     # --------------------------------
1508    
1509 mmeineke 791
1510    
1511 gezelter 749 # AC_LANG_PROGRAM(Fortran 90)([PROLOGUE], [BODY])
1512     # -----------------------------------------------
1513    
1514 mmeineke 791
1515 gezelter 749 # AC_LANG_CALL(Fortran 90)(PROLOGUE, FUNCTION)
1516     # --------------------------------------------
1517    
1518 mmeineke 791
1519    
1520 gezelter 749 # ------------------------ #
1521     # 2c. Fortran 95 sources. #
1522     # ------------------------ #
1523    
1524     # AC_LANG_SOURCE(Fortran 95)(BODY)
1525     # --------------------------------
1526    
1527 mmeineke 791
1528 gezelter 749 # AC_LANG_PROGRAM(Fortran 95)([PROLOGUE], [BODY])
1529     # -----------------------------------------------
1530    
1531 mmeineke 791
1532 gezelter 749 # AC_LANG_CALL(Fortran 95)(PROLOGUE, FUNCTION)
1533     # --------------------------------------------
1534    
1535 mmeineke 791
1536    
1537 gezelter 749 ## -------------------------------------------- ##
1538     ## 3. Looking for Compilers and Preprocessors. ##
1539     ## -------------------------------------------- ##
1540    
1541     # ----------------------------- #
1542     # 3b. The Fortran 90 compiler. #
1543     # ----------------------------- #
1544    
1545 mmeineke 791
1546 gezelter 749 # AC_LANG_PREPROC(Fortran 90)
1547     # ---------------------------
1548     # Find the Fortran 90 preprocessor. Must be AC_DEFUN'd to be AC_REQUIRE'able.
1549    
1550 mmeineke 791
1551    
1552 gezelter 749 # 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 mmeineke 791
1558    
1559 gezelter 749 # 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 mmeineke 791
1576 gezelter 749 # ----------------------------- #
1577     # 3c. The Fortran 95 compiler. #
1578     # ----------------------------- #
1579    
1580 mmeineke 791
1581 gezelter 749 # AC_LANG_PREPROC(Fortran 95)
1582     # ---------------------------
1583     # Find the Fortran 95 preprocessor. Must be AC_DEFUN'd to be AC_REQUIRE'able.
1584    
1585 mmeineke 791
1586    
1587 gezelter 749 # 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 mmeineke 791
1593    
1594 gezelter 749 # 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 mmeineke 791
1608 gezelter 749 ## ------------------------------- ##
1609     ## 4. Compilers' characteristics. ##
1610     ## ------------------------------- ##
1611    
1612 mmeineke 791
1613 gezelter 749 # ---------------------------------------- #
1614     # 4b. Fortan 90 compiler characteristics. #
1615     # ---------------------------------------- #
1616    
1617 mmeineke 791
1618 gezelter 749 # _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 mmeineke 791
1629 gezelter 749 # _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 mmeineke 791
1639 gezelter 749 # 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 mmeineke 791
1667 gezelter 749 # _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 mmeineke 791
1687    
1688 gezelter 749 # 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 mmeineke 791
1697 gezelter 749 # 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 mmeineke 791
1705 gezelter 749 # ---------------------------------------- #
1706     # 4c. Fortan 95 compiler characteristics. #
1707     # ---------------------------------------- #
1708    
1709 mmeineke 791
1710 gezelter 749 # _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 mmeineke 791
1721 gezelter 749 # _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 mmeineke 791
1731 gezelter 749 # 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 mmeineke 791
1759 gezelter 749 # _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 mmeineke 791
1779    
1780 gezelter 749 # 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 mmeineke 791
1789 gezelter 749 # 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 mmeineke 791
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 gezelter 826
1832    
1833    
1834    
1835    
1836    
1837    
1838    
1839 gezelter 822 # set program name
1840     PROGNAME="oopse"
1841 gezelter 749
1842 gezelter 822
1843     # there are two ways to do debugging. One with the --enable-debug flag
1844     # and one using the DEBUG environment variable
1845    
1846     debug=0
1847 gezelter 749 # Check whether --enable-debug or --disable-debug was given.
1848     if test "${enable_debug+set}" = set; then
1849     enableval="$enable_debug"
1850 gezelter 822 debug=1
1851 gezelter 749 fi;
1852     if test "${DEBUG}"; then
1853    
1854 mmeineke 791 cat >>confdefs.h <<\_ACEOF
1855 gezelter 822 #define debug 1
1856 mmeineke 791 _ACEOF
1857 gezelter 749
1858     msg="$msg, debug mode"
1859     fi
1860    
1861 mmeineke 791
1862 gezelter 749 # who am i
1863     # Make sure we can run config.sub.
1864     $ac_config_sub sun4 >/dev/null 2>&1 ||
1865 mmeineke 791 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1866 gezelter 749 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1867     { (exit 1); exit 1; }; }
1868    
1869 mmeineke 791 echo "$as_me:$LINENO: checking build system type" >&5
1870 gezelter 749 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1871     if test "${ac_cv_build+set}" = set; then
1872     echo $ECHO_N "(cached) $ECHO_C" >&6
1873     else
1874     ac_cv_build_alias=$build_alias
1875     test -z "$ac_cv_build_alias" &&
1876     ac_cv_build_alias=`$ac_config_guess`
1877     test -z "$ac_cv_build_alias" &&
1878 mmeineke 791 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1879 gezelter 749 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1880     { (exit 1); exit 1; }; }
1881     ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1882 mmeineke 791 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1883     echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1884 gezelter 749 { (exit 1); exit 1; }; }
1885    
1886     fi
1887 mmeineke 791 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1888 gezelter 749 echo "${ECHO_T}$ac_cv_build" >&6
1889     build=$ac_cv_build
1890     build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1891     build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1892     build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1893    
1894 mmeineke 791
1895     echo "$as_me:$LINENO: checking host system type" >&5
1896 gezelter 749 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1897     if test "${ac_cv_host+set}" = set; then
1898     echo $ECHO_N "(cached) $ECHO_C" >&6
1899     else
1900     ac_cv_host_alias=$host_alias
1901     test -z "$ac_cv_host_alias" &&
1902     ac_cv_host_alias=$ac_cv_build_alias
1903     ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1904 mmeineke 791 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1905 gezelter 749 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1906     { (exit 1); exit 1; }; }
1907    
1908     fi
1909 mmeineke 791 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1910 gezelter 749 echo "${ECHO_T}$ac_cv_host" >&6
1911     host=$ac_cv_host
1912     host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1913     host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1914     host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1915    
1916 mmeineke 791
1917    
1918 gezelter 749 ac_ext=c
1919     ac_cpp='$CPP $CPPFLAGS'
1920     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1921     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1922     ac_compiler_gnu=$ac_cv_c_compiler_gnu
1923     if test -n "$ac_tool_prefix"; then
1924     for ac_prog in icc xlc gcc cc
1925     do
1926     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1927     set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1928 mmeineke 791 echo "$as_me:$LINENO: checking for $ac_word" >&5
1929 gezelter 749 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1930     if test "${ac_cv_prog_CC+set}" = set; then
1931     echo $ECHO_N "(cached) $ECHO_C" >&6
1932     else
1933     if test -n "$CC"; then
1934     ac_cv_prog_CC="$CC" # Let the user override the test.
1935     else
1936 mmeineke 791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1937     for as_dir in $PATH
1938     do
1939     IFS=$as_save_IFS
1940     test -z "$as_dir" && as_dir=.
1941     for ac_exec_ext in '' $ac_executable_extensions; do
1942     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1943     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1944     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1945     break 2
1946     fi
1947 gezelter 749 done
1948 mmeineke 791 done
1949 gezelter 749
1950     fi
1951     fi
1952     CC=$ac_cv_prog_CC
1953     if test -n "$CC"; then
1954 mmeineke 791 echo "$as_me:$LINENO: result: $CC" >&5
1955 gezelter 749 echo "${ECHO_T}$CC" >&6
1956     else
1957 mmeineke 791 echo "$as_me:$LINENO: result: no" >&5
1958 gezelter 749 echo "${ECHO_T}no" >&6
1959     fi
1960    
1961     test -n "$CC" && break
1962     done
1963     fi
1964     if test -z "$CC"; then
1965     ac_ct_CC=$CC
1966     for ac_prog in icc xlc gcc cc
1967     do
1968     # Extract the first word of "$ac_prog", so it can be a program name with args.
1969     set dummy $ac_prog; ac_word=$2
1970 mmeineke 791 echo "$as_me:$LINENO: checking for $ac_word" >&5
1971 gezelter 749 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1972     if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1973     echo $ECHO_N "(cached) $ECHO_C" >&6
1974     else
1975     if test -n "$ac_ct_CC"; then
1976     ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1977     else
1978 mmeineke 791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1979     for as_dir in $PATH
1980     do
1981     IFS=$as_save_IFS
1982     test -z "$as_dir" && as_dir=.
1983     for ac_exec_ext in '' $ac_executable_extensions; do
1984     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1985     ac_cv_prog_ac_ct_CC="$ac_prog"
1986     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1987     break 2
1988     fi
1989 gezelter 749 done
1990 mmeineke 791 done
1991 gezelter 749
1992     fi
1993     fi
1994     ac_ct_CC=$ac_cv_prog_ac_ct_CC
1995     if test -n "$ac_ct_CC"; then
1996 mmeineke 791 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1997 gezelter 749 echo "${ECHO_T}$ac_ct_CC" >&6
1998     else
1999 mmeineke 791 echo "$as_me:$LINENO: result: no" >&5
2000 gezelter 749 echo "${ECHO_T}no" >&6
2001     fi
2002    
2003     test -n "$ac_ct_CC" && break
2004     done
2005    
2006     CC=$ac_ct_CC
2007     fi
2008    
2009 mmeineke 791
2010     test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2011     See \`config.log' for more details." >&5
2012     echo "$as_me: error: no acceptable C compiler found in \$PATH
2013     See \`config.log' for more details." >&2;}
2014 gezelter 749 { (exit 1); exit 1; }; }
2015    
2016 mmeineke 791 # Provide some information about the compiler.
2017     echo "$as_me:$LINENO:" \
2018     "checking for C compiler version" >&5
2019     ac_compiler=`set X $ac_compile; echo $2`
2020     { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2021     (eval $ac_compiler --version </dev/null >&5) 2>&5
2022     ac_status=$?
2023     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2024     (exit $ac_status); }
2025     { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2026     (eval $ac_compiler -v </dev/null >&5) 2>&5
2027     ac_status=$?
2028     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2029     (exit $ac_status); }
2030     { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2031     (eval $ac_compiler -V </dev/null >&5) 2>&5
2032     ac_status=$?
2033     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2034     (exit $ac_status); }
2035    
2036 gezelter 749 cat >conftest.$ac_ext <<_ACEOF
2037 mmeineke 791 #line $LINENO "configure"
2038     /* confdefs.h. */
2039     _ACEOF
2040     cat confdefs.h >>conftest.$ac_ext
2041     cat >>conftest.$ac_ext <<_ACEOF
2042     /* end confdefs.h. */
2043 gezelter 749
2044     int
2045     main ()
2046     {
2047    
2048     ;
2049     return 0;
2050     }
2051     _ACEOF
2052     ac_clean_files_save=$ac_clean_files
2053 mmeineke 791 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2054 gezelter 749 # Try to create an executable without -o first, disregard a.out.
2055 mmeineke 791 # It will help us diagnose broken compilers, and finding out an intuition
2056 gezelter 749 # of exeext.
2057 mmeineke 791 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2058 gezelter 749 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2059     ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2060 mmeineke 791 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2061 gezelter 749 (eval $ac_link_default) 2>&5
2062     ac_status=$?
2063 mmeineke 791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2064 gezelter 749 (exit $ac_status); }; then
2065 mmeineke 791 # Find the output, starting from the most likely. This scheme is
2066     # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2067     # resort.
2068    
2069     # Be careful to initialize this variable, since it used to be cached.
2070     # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2071     ac_cv_exeext=
2072     # b.out is created by i960 compilers.
2073     for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2074     do
2075     test -f "$ac_file" || continue
2076 gezelter 749 case $ac_file in
2077 mmeineke 791 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2078     ;;
2079     conftest.$ac_ext )
2080     # This is the source file.
2081     ;;
2082     [ab].out )
2083     # We found the default executable, but exeext='' is most
2084     # certainly right.
2085     break;;
2086     *.* )
2087     ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2088     # FIXME: I believe we export ac_cv_exeext for Libtool,
2089     # but it would be cool to find out if it's true. Does anybody
2090     # maintain Libtool? --akim.
2091     export ac_cv_exeext
2092     break;;
2093     * )
2094     break;;
2095 gezelter 749 esac
2096     done
2097     else
2098     echo "$as_me: failed program was:" >&5
2099 mmeineke 791 sed 's/^/| /' conftest.$ac_ext >&5
2100    
2101     { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2102     See \`config.log' for more details." >&5
2103     echo "$as_me: error: C compiler cannot create executables
2104     See \`config.log' for more details." >&2;}
2105 gezelter 749 { (exit 77); exit 77; }; }
2106     fi
2107    
2108     ac_exeext=$ac_cv_exeext
2109 mmeineke 791 echo "$as_me:$LINENO: result: $ac_file" >&5
2110 gezelter 749 echo "${ECHO_T}$ac_file" >&6
2111    
2112     # Check the compiler produces executables we can run. If not, either
2113     # the compiler is broken, or we cross compile.
2114 mmeineke 791 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2115 gezelter 749 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2116     # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2117     # If not cross compiling, check that we can run a simple program.
2118     if test "$cross_compiling" != yes; then
2119     if { ac_try='./$ac_file'
2120 mmeineke 791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2121 gezelter 749 (eval $ac_try) 2>&5
2122     ac_status=$?
2123 mmeineke 791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2124 gezelter 749 (exit $ac_status); }; }; then
2125     cross_compiling=no
2126     else
2127     if test "$cross_compiling" = maybe; then
2128     cross_compiling=yes
2129     else
2130 mmeineke 791 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2131     If you meant to cross compile, use \`--host'.
2132     See \`config.log' for more details." >&5
2133 gezelter 749 echo "$as_me: error: cannot run C compiled programs.
2134 mmeineke 791 If you meant to cross compile, use \`--host'.
2135     See \`config.log' for more details." >&2;}
2136 gezelter 749 { (exit 1); exit 1; }; }
2137     fi
2138     fi
2139     fi
2140 mmeineke 791 echo "$as_me:$LINENO: result: yes" >&5
2141 gezelter 749 echo "${ECHO_T}yes" >&6
2142    
2143 mmeineke 791 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2144 gezelter 749 ac_clean_files=$ac_clean_files_save
2145     # Check the compiler produces executables we can run. If not, either
2146     # the compiler is broken, or we cross compile.
2147 mmeineke 791 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2148 gezelter 749 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2149 mmeineke 791 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2150 gezelter 749 echo "${ECHO_T}$cross_compiling" >&6
2151    
2152 mmeineke 791 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2153     echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2154     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2155 gezelter 749 (eval $ac_link) 2>&5
2156     ac_status=$?
2157 mmeineke 791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2158 gezelter 749 (exit $ac_status); }; then
2159     # If both `conftest.exe' and `conftest' are `present' (well, observable)
2160     # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2161     # work properly (i.e., refer to `conftest.exe'), while it won't with
2162     # `rm'.
2163 mmeineke 791 for ac_file in conftest.exe conftest conftest.*; do
2164     test -f "$ac_file" || continue
2165 gezelter 749 case $ac_file in
2166 mmeineke 791 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2167 gezelter 749 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2168     export ac_cv_exeext
2169     break;;
2170     * ) break;;
2171     esac
2172     done
2173     else
2174 mmeineke 791 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2175     See \`config.log' for more details." >&5
2176     echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2177     See \`config.log' for more details." >&2;}
2178 gezelter 749 { (exit 1); exit 1; }; }
2179     fi
2180    
2181     rm -f conftest$ac_cv_exeext
2182 mmeineke 791 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2183 gezelter 749 echo "${ECHO_T}$ac_cv_exeext" >&6
2184    
2185     rm -f conftest.$ac_ext
2186     EXEEXT=$ac_cv_exeext
2187     ac_exeext=$EXEEXT
2188 mmeineke 791 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2189     echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2190 gezelter 749 if test "${ac_cv_objext+set}" = set; then
2191     echo $ECHO_N "(cached) $ECHO_C" >&6
2192     else
2193     cat >conftest.$ac_ext <<_ACEOF
2194 mmeineke 791 #line $LINENO "configure"
2195     /* confdefs.h. */
2196     _ACEOF
2197     cat confdefs.h >>conftest.$ac_ext
2198     cat >>conftest.$ac_ext <<_ACEOF
2199     /* end confdefs.h. */
2200 gezelter 749
2201     int
2202     main ()
2203     {
2204    
2205     ;
2206     return 0;
2207     }
2208     _ACEOF
2209     rm -f conftest.o conftest.obj
2210 mmeineke 791 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2211 gezelter 749 (eval $ac_compile) 2>&5
2212     ac_status=$?
2213 mmeineke 791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2214 gezelter 749 (exit $ac_status); }; then
2215     for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2216     case $ac_file in
2217 mmeineke 791 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2218 gezelter 749 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2219     break;;
2220     esac
2221     done
2222     else
2223     echo "$as_me: failed program was:" >&5
2224 mmeineke 791 sed 's/^/| /' conftest.$ac_ext >&5
2225    
2226     { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2227     See \`config.log' for more details." >&5
2228     echo "$as_me: error: cannot compute suffix of object files: cannot compile
2229     See \`config.log' for more details." >&2;}
2230 gezelter 749 { (exit 1); exit 1; }; }
2231     fi
2232    
2233     rm -f conftest.$ac_cv_objext conftest.$ac_ext
2234     fi
2235 mmeineke 791 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2236 gezelter 749 echo "${ECHO_T}$ac_cv_objext" >&6
2237     OBJEXT=$ac_cv_objext
2238     ac_objext=$OBJEXT
2239 mmeineke 791 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2240 gezelter 749 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2241     if test "${ac_cv_c_compiler_gnu+set}" = set; then
2242     echo $ECHO_N "(cached) $ECHO_C" >&6
2243     else
2244     cat >conftest.$ac_ext <<_ACEOF
2245 mmeineke 791 #line $LINENO "configure"
2246     /* confdefs.h. */
2247     _ACEOF
2248     cat confdefs.h >>conftest.$ac_ext
2249     cat >>conftest.$ac_ext <<_ACEOF
2250     /* end confdefs.h. */
2251 gezelter 749
2252     int
2253     main ()
2254     {
2255     #ifndef __GNUC__
2256     choke me
2257     #endif
2258    
2259     ;
2260     return 0;
2261     }
2262     _ACEOF
2263     rm -f conftest.$ac_objext
2264 mmeineke 791 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2265 gezelter 749 (eval $ac_compile) 2>&5
2266     ac_status=$?
2267 mmeineke 791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2268 gezelter 749 (exit $ac_status); } &&
2269     { ac_try='test -s conftest.$ac_objext'
2270 mmeineke 791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2271 gezelter 749 (eval $ac_try) 2>&5
2272     ac_status=$?
2273 mmeineke 791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2274 gezelter 749 (exit $ac_status); }; }; then
2275     ac_compiler_gnu=yes
2276     else
2277     echo "$as_me: failed program was:" >&5
2278 mmeineke 791 sed 's/^/| /' conftest.$ac_ext >&5
2279    
2280 gezelter 749 ac_compiler_gnu=no
2281     fi
2282     rm -f conftest.$ac_objext conftest.$ac_ext
2283     ac_cv_c_compiler_gnu=$ac_compiler_gnu
2284    
2285     fi
2286 mmeineke 791 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2287 gezelter 749 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2288     GCC=`test $ac_compiler_gnu = yes && echo yes`
2289     ac_test_CFLAGS=${CFLAGS+set}
2290     ac_save_CFLAGS=$CFLAGS
2291     CFLAGS="-g"
2292 mmeineke 791 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2293 gezelter 749 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2294     if test "${ac_cv_prog_cc_g+set}" = set; then
2295     echo $ECHO_N "(cached) $ECHO_C" >&6
2296     else
2297     cat >conftest.$ac_ext <<_ACEOF
2298 mmeineke 791 #line $LINENO "configure"
2299     /* confdefs.h. */
2300     _ACEOF
2301     cat confdefs.h >>conftest.$ac_ext
2302     cat >>conftest.$ac_ext <<_ACEOF
2303     /* end confdefs.h. */
2304 gezelter 749
2305     int
2306     main ()
2307     {
2308    
2309     ;
2310     return 0;
2311     }
2312     _ACEOF
2313     rm -f conftest.$ac_objext
2314 mmeineke 791 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2315 gezelter 749 (eval $ac_compile) 2>&5
2316     ac_status=$?
2317 mmeineke 791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2318 gezelter 749 (exit $ac_status); } &&
2319     { ac_try='test -s conftest.$ac_objext'
2320 mmeineke 791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2321 gezelter 749 (eval $ac_try) 2>&5
2322     ac_status=$?
2323 mmeineke 791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2324 gezelter 749 (exit $ac_status); }; }; then
2325     ac_cv_prog_cc_g=yes
2326     else
2327     echo "$as_me: failed program was:" >&5
2328 mmeineke 791 sed 's/^/| /' conftest.$ac_ext >&5
2329    
2330 gezelter 749 ac_cv_prog_cc_g=no
2331     fi
2332     rm -f conftest.$ac_objext conftest.$ac_ext
2333     fi
2334 mmeineke 791 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2335 gezelter 749 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2336     if test "$ac_test_CFLAGS" = set; then
2337     CFLAGS=$ac_save_CFLAGS
2338     elif test $ac_cv_prog_cc_g = yes; then
2339     if test "$GCC" = yes; then
2340     CFLAGS="-g -O2"
2341     else
2342     CFLAGS="-g"
2343     fi
2344     else
2345     if test "$GCC" = yes; then
2346     CFLAGS="-O2"
2347     else
2348     CFLAGS=
2349     fi
2350     fi
2351 mmeineke 791 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2352     echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2353     if test "${ac_cv_prog_cc_stdc+set}" = set; then
2354     echo $ECHO_N "(cached) $ECHO_C" >&6
2355     else
2356     ac_cv_prog_cc_stdc=no
2357     ac_save_CC=$CC
2358     cat >conftest.$ac_ext <<_ACEOF
2359     #line $LINENO "configure"
2360     /* confdefs.h. */
2361     _ACEOF
2362     cat confdefs.h >>conftest.$ac_ext
2363     cat >>conftest.$ac_ext <<_ACEOF
2364     /* end confdefs.h. */
2365     #include <stdarg.h>
2366     #include <stdio.h>
2367     #include <sys/types.h>
2368     #include <sys/stat.h>
2369     /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2370     struct buf { int x; };
2371     FILE * (*rcsopen) (struct buf *, struct stat *, int);
2372     static char *e (p, i)
2373     char **p;
2374     int i;
2375     {
2376     return p[i];
2377     }
2378     static char *f (char * (*g) (char **, int), char **p, ...)
2379     {
2380     char *s;
2381     va_list v;
2382     va_start (v,p);
2383     s = g (p, va_arg (v,int));
2384     va_end (v);
2385     return s;
2386     }
2387     int test (int i, double x);
2388     struct s1 {int (*f) (int a);};
2389     struct s2 {int (*f) (double a);};
2390     int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2391     int argc;
2392     char **argv;
2393     int
2394     main ()
2395     {
2396     return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2397     ;
2398     return 0;
2399     }
2400     _ACEOF
2401     # Don't try gcc -ansi; that turns off useful extensions and
2402     # breaks some systems' header files.
2403     # AIX -qlanglvl=ansi
2404     # Ultrix and OSF/1 -std1
2405     # HP-UX 10.20 and later -Ae
2406     # HP-UX older versions -Aa -D_HPUX_SOURCE
2407     # SVR4 -Xc -D__EXTENSIONS__
2408     for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2409     do
2410     CC="$ac_save_CC $ac_arg"
2411     rm -f conftest.$ac_objext
2412     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2413     (eval $ac_compile) 2>&5
2414     ac_status=$?
2415     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2416     (exit $ac_status); } &&
2417     { ac_try='test -s conftest.$ac_objext'
2418     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2419     (eval $ac_try) 2>&5
2420     ac_status=$?
2421     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2422     (exit $ac_status); }; }; then
2423     ac_cv_prog_cc_stdc=$ac_arg
2424     break
2425     else
2426     echo "$as_me: failed program was:" >&5
2427     sed 's/^/| /' conftest.$ac_ext >&5
2428    
2429     fi
2430     rm -f conftest.$ac_objext
2431     done
2432     rm -f conftest.$ac_ext conftest.$ac_objext
2433     CC=$ac_save_CC
2434    
2435     fi
2436    
2437     case "x$ac_cv_prog_cc_stdc" in
2438     x|xno)
2439     echo "$as_me:$LINENO: result: none needed" >&5
2440     echo "${ECHO_T}none needed" >&6 ;;
2441     *)
2442     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2443     echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2444     CC="$CC $ac_cv_prog_cc_stdc" ;;
2445     esac
2446    
2447 gezelter 749 # Some people use a C++ compiler to compile C. Since we use `exit',
2448     # in C++ we need to declare it. In case someone uses the same compiler
2449     # for both compiling C and C++ we need to have the C++ compiler decide
2450     # the declaration of exit, since it's the most demanding environment.
2451     cat >conftest.$ac_ext <<_ACEOF
2452     #ifndef __cplusplus
2453     choke me
2454     #endif
2455     _ACEOF
2456     rm -f conftest.$ac_objext
2457 mmeineke 791 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2458 gezelter 749 (eval $ac_compile) 2>&5
2459     ac_status=$?
2460 mmeineke 791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2461 gezelter 749 (exit $ac_status); } &&
2462     { ac_try='test -s conftest.$ac_objext'
2463 mmeineke 791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2464 gezelter 749 (eval $ac_try) 2>&5
2465     ac_status=$?
2466 mmeineke 791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2467 gezelter 749 (exit $ac_status); }; }; then
2468     for ac_declaration in \
2469     ''\
2470     '#include <stdlib.h>' \
2471     'extern "C" void std::exit (int) throw (); using std::exit;' \
2472     'extern "C" void std::exit (int); using std::exit;' \
2473     'extern "C" void exit (int) throw ();' \
2474     'extern "C" void exit (int);' \
2475     'void exit (int);'
2476     do
2477     cat >conftest.$ac_ext <<_ACEOF
2478 mmeineke 791 #line $LINENO "configure"
2479     /* confdefs.h. */
2480     _ACEOF
2481     cat confdefs.h >>conftest.$ac_ext
2482     cat >>conftest.$ac_ext <<_ACEOF
2483     /* end confdefs.h. */
2484 gezelter 749 #include <stdlib.h>
2485     $ac_declaration
2486     int
2487     main ()
2488     {
2489     exit (42);
2490     ;
2491     return 0;
2492     }
2493     _ACEOF
2494     rm -f conftest.$ac_objext
2495 mmeineke 791 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2496 gezelter 749 (eval $ac_compile) 2>&5
2497     ac_status=$?
2498 mmeineke 791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2499 gezelter 749 (exit $ac_status); } &&
2500     { ac_try='test -s conftest.$ac_objext'
2501 mmeineke 791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2502 gezelter 749 (eval $ac_try) 2>&5
2503     ac_status=$?
2504 mmeineke 791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2505 gezelter 749 (exit $ac_status); }; }; then
2506     :
2507     else
2508     echo "$as_me: failed program was:" >&5
2509 mmeineke 791 sed 's/^/| /' conftest.$ac_ext >&5
2510    
2511 gezelter 749 continue
2512     fi
2513     rm -f conftest.$ac_objext conftest.$ac_ext
2514     cat >conftest.$ac_ext <<_ACEOF
2515 mmeineke 791 #line $LINENO "configure"
2516     /* confdefs.h. */
2517     _ACEOF
2518     cat confdefs.h >>conftest.$ac_ext
2519     cat >>conftest.$ac_ext <<_ACEOF
2520     /* end confdefs.h. */
2521 gezelter 749 $ac_declaration
2522     int
2523     main ()
2524     {
2525     exit (42);
2526     ;
2527     return 0;
2528     }
2529     _ACEOF
2530     rm -f conftest.$ac_objext
2531 mmeineke 791 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2532 gezelter 749 (eval $ac_compile) 2>&5
2533     ac_status=$?
2534 mmeineke 791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2535 gezelter 749 (exit $ac_status); } &&
2536     { ac_try='test -s conftest.$ac_objext'
2537 mmeineke 791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2538 gezelter 749 (eval $ac_try) 2>&5
2539     ac_status=$?
2540 mmeineke 791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2541 gezelter 749 (exit $ac_status); }; }; then
2542     break
2543     else
2544     echo "$as_me: failed program was:" >&5
2545 mmeineke 791 sed 's/^/| /' conftest.$ac_ext >&5
2546    
2547 gezelter 749 fi
2548     rm -f conftest.$ac_objext conftest.$ac_ext
2549     done
2550 mmeineke 791 rm -f conftest*
2551     if test -n "$ac_declaration"; then
2552     echo '#ifdef __cplusplus' >>confdefs.h
2553     echo $ac_declaration >>confdefs.h
2554     echo '#endif' >>confdefs.h
2555     fi
2556 gezelter 749
2557     else
2558     echo "$as_me: failed program was:" >&5
2559 mmeineke 791 sed 's/^/| /' conftest.$ac_ext >&5
2560    
2561 gezelter 749 fi
2562     rm -f conftest.$ac_objext conftest.$ac_ext
2563     ac_ext=c
2564     ac_cpp='$CPP $CPPFLAGS'
2565     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2566     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2567     ac_compiler_gnu=$ac_cv_c_compiler_gnu
2568    
2569 gezelter 822 ac_ext=cc
2570     ac_cpp='$CXXCPP $CPPFLAGS'
2571     ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2572     ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2573     ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2574     if test -n "$ac_tool_prefix"; then
2575     for ac_prog in $CCC icpc icc xlC CC g++ c++
2576     do
2577     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2578     set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2579     echo "$as_me:$LINENO: checking for $ac_word" >&5
2580     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2581     if test "${ac_cv_prog_CXX+set}" = set; then
2582     echo $ECHO_N "(cached) $ECHO_C" >&6
2583     else
2584     if test -n "$CXX"; then
2585     ac_cv_prog_CXX="$CXX" # Let the user override the test.
2586     else
2587     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2588     for as_dir in $PATH
2589     do
2590     IFS=$as_save_IFS
2591     test -z "$as_dir" && as_dir=.
2592     for ac_exec_ext in '' $ac_executable_extensions; do
2593     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2594     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2595     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2596     break 2
2597     fi
2598     done
2599     done
2600 mmeineke 791
2601 gezelter 822 fi
2602     fi
2603     CXX=$ac_cv_prog_CXX
2604     if test -n "$CXX"; then
2605     echo "$as_me:$LINENO: result: $CXX" >&5
2606     echo "${ECHO_T}$CXX" >&6
2607     else
2608     echo "$as_me:$LINENO: result: no" >&5
2609     echo "${ECHO_T}no" >&6
2610     fi
2611 mmeineke 791
2612 gezelter 822 test -n "$CXX" && break
2613     done
2614     fi
2615     if test -z "$CXX"; then
2616     ac_ct_CXX=$CXX
2617     for ac_prog in $CCC icpc icc xlC CC g++ c++
2618     do
2619     # Extract the first word of "$ac_prog", so it can be a program name with args.
2620     set dummy $ac_prog; ac_word=$2
2621     echo "$as_me:$LINENO: checking for $ac_word" >&5
2622     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2623     if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2624     echo $ECHO_N "(cached) $ECHO_C" >&6
2625     else
2626     if test -n "$ac_ct_CXX"; then
2627     ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2628     else
2629     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2630     for as_dir in $PATH
2631     do
2632     IFS=$as_save_IFS
2633     test -z "$as_dir" && as_dir=.
2634     for ac_exec_ext in '' $ac_executable_extensions; do
2635     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2636     ac_cv_prog_ac_ct_CXX="$ac_prog"
2637     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2638     break 2
2639     fi
2640     done
2641     done
2642 mmeineke 791
2643 gezelter 822 fi
2644     fi
2645     ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2646     if test -n "$ac_ct_CXX"; then
2647     echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2648     echo "${ECHO_T}$ac_ct_CXX" >&6
2649     else
2650     echo "$as_me:$LINENO: result: no" >&5
2651     echo "${ECHO_T}no" >&6
2652     fi
2653 mmeineke 791
2654 gezelter 822 test -n "$ac_ct_CXX" && break
2655     done
2656     test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2657    
2658     CXX=$ac_ct_CXX
2659     fi
2660    
2661    
2662     # Provide some information about the compiler.
2663     echo "$as_me:$LINENO:" \
2664     "checking for C++ compiler version" >&5
2665     ac_compiler=`set X $ac_compile; echo $2`
2666     { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2667     (eval $ac_compiler --version </dev/null >&5) 2>&5
2668     ac_status=$?
2669     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2670     (exit $ac_status); }
2671     { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2672     (eval $ac_compiler -v </dev/null >&5) 2>&5
2673     ac_status=$?
2674     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2675     (exit $ac_status); }
2676     { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2677     (eval $ac_compiler -V </dev/null >&5) 2>&5
2678     ac_status=$?
2679     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2680     (exit $ac_status); }
2681    
2682     echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2683     echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2684     if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2685     echo $ECHO_N "(cached) $ECHO_C" >&6
2686     else
2687     cat >conftest.$ac_ext <<_ACEOF
2688     #line $LINENO "configure"
2689     /* confdefs.h. */
2690     _ACEOF
2691     cat confdefs.h >>conftest.$ac_ext
2692     cat >>conftest.$ac_ext <<_ACEOF
2693     /* end confdefs.h. */
2694    
2695     int
2696     main ()
2697     {
2698     #ifndef __GNUC__
2699     choke me
2700     #endif
2701    
2702     ;
2703     return 0;
2704     }
2705     _ACEOF
2706     rm -f conftest.$ac_objext
2707     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2708     (eval $ac_compile) 2>&5
2709     ac_status=$?
2710     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2711     (exit $ac_status); } &&
2712     { ac_try='test -s conftest.$ac_objext'
2713     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2714     (eval $ac_try) 2>&5
2715     ac_status=$?
2716     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2717     (exit $ac_status); }; }; then
2718     ac_compiler_gnu=yes
2719     else
2720     echo "$as_me: failed program was:" >&5
2721     sed 's/^/| /' conftest.$ac_ext >&5
2722    
2723     ac_compiler_gnu=no
2724     fi
2725     rm -f conftest.$ac_objext conftest.$ac_ext
2726     ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2727    
2728     fi
2729     echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2730     echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2731     GXX=`test $ac_compiler_gnu = yes && echo yes`
2732     ac_test_CXXFLAGS=${CXXFLAGS+set}
2733     ac_save_CXXFLAGS=$CXXFLAGS
2734     CXXFLAGS="-g"
2735     echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2736     echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2737     if test "${ac_cv_prog_cxx_g+set}" = set; then
2738     echo $ECHO_N "(cached) $ECHO_C" >&6
2739     else
2740     cat >conftest.$ac_ext <<_ACEOF
2741     #line $LINENO "configure"
2742     /* confdefs.h. */
2743     _ACEOF
2744     cat confdefs.h >>conftest.$ac_ext
2745     cat >>conftest.$ac_ext <<_ACEOF
2746     /* end confdefs.h. */
2747    
2748     int
2749     main ()
2750     {
2751    
2752     ;
2753     return 0;
2754     }
2755     _ACEOF
2756     rm -f conftest.$ac_objext
2757     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2758     (eval $ac_compile) 2>&5
2759     ac_status=$?
2760     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2761     (exit $ac_status); } &&
2762     { ac_try='test -s conftest.$ac_objext'
2763     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2764     (eval $ac_try) 2>&5
2765     ac_status=$?
2766     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2767     (exit $ac_status); }; }; then
2768     ac_cv_prog_cxx_g=yes
2769     else
2770     echo "$as_me: failed program was:" >&5
2771     sed 's/^/| /' conftest.$ac_ext >&5
2772    
2773     ac_cv_prog_cxx_g=no
2774     fi
2775     rm -f conftest.$ac_objext conftest.$ac_ext
2776     fi
2777     echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2778     echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2779     if test "$ac_test_CXXFLAGS" = set; then
2780     CXXFLAGS=$ac_save_CXXFLAGS
2781     elif test $ac_cv_prog_cxx_g = yes; then
2782     if test "$GXX" = yes; then
2783     CXXFLAGS="-g -O2"
2784     else
2785     CXXFLAGS="-g"
2786     fi
2787     else
2788     if test "$GXX" = yes; then
2789     CXXFLAGS="-O2"
2790     else
2791     CXXFLAGS=
2792     fi
2793     fi
2794     for ac_declaration in \
2795     ''\
2796     '#include <stdlib.h>' \
2797     'extern "C" void std::exit (int) throw (); using std::exit;' \
2798     'extern "C" void std::exit (int); using std::exit;' \
2799     'extern "C" void exit (int) throw ();' \
2800     'extern "C" void exit (int);' \
2801     'void exit (int);'
2802     do
2803     cat >conftest.$ac_ext <<_ACEOF
2804     #line $LINENO "configure"
2805     /* confdefs.h. */
2806     _ACEOF
2807     cat confdefs.h >>conftest.$ac_ext
2808     cat >>conftest.$ac_ext <<_ACEOF
2809     /* end confdefs.h. */
2810     #include <stdlib.h>
2811     $ac_declaration
2812     int
2813     main ()
2814     {
2815     exit (42);
2816     ;
2817     return 0;
2818     }
2819     _ACEOF
2820     rm -f conftest.$ac_objext
2821     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2822     (eval $ac_compile) 2>&5
2823     ac_status=$?
2824     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2825     (exit $ac_status); } &&
2826     { ac_try='test -s conftest.$ac_objext'
2827     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2828     (eval $ac_try) 2>&5
2829     ac_status=$?
2830     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2831     (exit $ac_status); }; }; then
2832     :
2833     else
2834     echo "$as_me: failed program was:" >&5
2835     sed 's/^/| /' conftest.$ac_ext >&5
2836    
2837     continue
2838     fi
2839     rm -f conftest.$ac_objext conftest.$ac_ext
2840     cat >conftest.$ac_ext <<_ACEOF
2841     #line $LINENO "configure"
2842     /* confdefs.h. */
2843     _ACEOF
2844     cat confdefs.h >>conftest.$ac_ext
2845     cat >>conftest.$ac_ext <<_ACEOF
2846     /* end confdefs.h. */
2847     $ac_declaration
2848     int
2849     main ()
2850     {
2851     exit (42);
2852     ;
2853     return 0;
2854     }
2855     _ACEOF
2856     rm -f conftest.$ac_objext
2857     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2858     (eval $ac_compile) 2>&5
2859     ac_status=$?
2860     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2861     (exit $ac_status); } &&
2862     { ac_try='test -s conftest.$ac_objext'
2863     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2864     (eval $ac_try) 2>&5
2865     ac_status=$?
2866     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2867     (exit $ac_status); }; }; then
2868     break
2869     else
2870     echo "$as_me: failed program was:" >&5
2871     sed 's/^/| /' conftest.$ac_ext >&5
2872    
2873     fi
2874     rm -f conftest.$ac_objext conftest.$ac_ext
2875     done
2876     rm -f conftest*
2877     if test -n "$ac_declaration"; then
2878     echo '#ifdef __cplusplus' >>confdefs.h
2879     echo $ac_declaration >>confdefs.h
2880     echo '#endif' >>confdefs.h
2881     fi
2882    
2883     ac_ext=c
2884     ac_cpp='$CPP $CPPFLAGS'
2885     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2886     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2887     ac_compiler_gnu=$ac_cv_c_compiler_gnu
2888    
2889     ac_ext=f90
2890     ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
2891     ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2892     ac_compiler_gnu=$ac_cv_f90_compiler_gnu
2893     if test -n "$ac_tool_prefix"; then
2894     for ac_prog in ifc f90 xlf90 pgf90 epcf90 f95 xlf95 lf95 fort g95
2895     do
2896     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2897     set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2898     echo "$as_me:$LINENO: checking for $ac_word" >&5
2899     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2900     if test "${ac_cv_prog_F90+set}" = set; then
2901     echo $ECHO_N "(cached) $ECHO_C" >&6
2902     else
2903     if test -n "$F90"; then
2904     ac_cv_prog_F90="$F90" # Let the user override the test.
2905     else
2906     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2907     for as_dir in $PATH
2908     do
2909     IFS=$as_save_IFS
2910     test -z "$as_dir" && as_dir=.
2911     for ac_exec_ext in '' $ac_executable_extensions; do
2912     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2913     ac_cv_prog_F90="$ac_tool_prefix$ac_prog"
2914     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2915     break 2
2916     fi
2917     done
2918     done
2919    
2920     fi
2921     fi
2922     F90=$ac_cv_prog_F90
2923     if test -n "$F90"; then
2924     echo "$as_me:$LINENO: result: $F90" >&5
2925     echo "${ECHO_T}$F90" >&6
2926     else
2927     echo "$as_me:$LINENO: result: no" >&5
2928     echo "${ECHO_T}no" >&6
2929     fi
2930    
2931     test -n "$F90" && break
2932     done
2933     fi
2934     if test -z "$F90"; then
2935     ac_ct_F90=$F90
2936     for ac_prog in ifc f90 xlf90 pgf90 epcf90 f95 xlf95 lf95 fort g95
2937     do
2938     # Extract the first word of "$ac_prog", so it can be a program name with args.
2939     set dummy $ac_prog; ac_word=$2
2940     echo "$as_me:$LINENO: checking for $ac_word" >&5
2941     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2942     if test "${ac_cv_prog_ac_ct_F90+set}" = set; then
2943     echo $ECHO_N "(cached) $ECHO_C" >&6
2944     else
2945     if test -n "$ac_ct_F90"; then
2946     ac_cv_prog_ac_ct_F90="$ac_ct_F90" # Let the user override the test.
2947     else
2948     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2949     for as_dir in $PATH
2950     do
2951     IFS=$as_save_IFS
2952     test -z "$as_dir" && as_dir=.
2953     for ac_exec_ext in '' $ac_executable_extensions; do
2954     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2955     ac_cv_prog_ac_ct_F90="$ac_prog"
2956     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2957     break 2
2958     fi
2959     done
2960     done
2961    
2962     fi
2963     fi
2964     ac_ct_F90=$ac_cv_prog_ac_ct_F90
2965     if test -n "$ac_ct_F90"; then
2966     echo "$as_me:$LINENO: result: $ac_ct_F90" >&5
2967     echo "${ECHO_T}$ac_ct_F90" >&6
2968     else
2969     echo "$as_me:$LINENO: result: no" >&5
2970     echo "${ECHO_T}no" >&6
2971     fi
2972    
2973     test -n "$ac_ct_F90" && break
2974     done
2975    
2976     F90=$ac_ct_F90
2977     fi
2978    
2979    
2980     # If we don't use `.F90' as extension, the preprocessor is not run on the
2981     # input file.
2982     ac_save_ext=$ac_ext
2983     ac_ext=F90
2984     echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 90 compiler" >&5
2985     echo $ECHO_N "checking whether we are using the GNU Fortran 90 compiler... $ECHO_C" >&6
2986     if test "${ac_cv_f90_compiler_gnu+set}" = set; then
2987     echo $ECHO_N "(cached) $ECHO_C" >&6
2988     else
2989     cat >conftest.$ac_ext <<_ACEOF
2990    
2991     program main
2992    
2993     #ifndef __GNUC__
2994     choke me
2995     #endif
2996    
2997     end program main
2998    
2999     _ACEOF
3000     rm -f conftest.$ac_objext
3001     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3002     (eval $ac_compile) 2>&5
3003     ac_status=$?
3004     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3005     (exit $ac_status); } &&
3006     { ac_try='test -s conftest.$ac_objext'
3007     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3008     (eval $ac_try) 2>&5
3009     ac_status=$?
3010     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3011     (exit $ac_status); }; }; then
3012     ac_compiler_gnu=yes
3013     else
3014     echo "$as_me: failed program was:" >&5
3015     sed 's/^/| /' conftest.$ac_ext >&5
3016    
3017     ac_compiler_gnu=no
3018     fi
3019     rm -f conftest.$ac_objext conftest.$ac_ext
3020     ac_cv_f90_compiler_gnu=$ac_compiler_gnu
3021    
3022     fi
3023     echo "$as_me:$LINENO: result: $ac_cv_f90_compiler_gnu" >&5
3024     echo "${ECHO_T}$ac_cv_f90_compiler_gnu" >&6
3025     ac_ext=$ac_save_ext
3026     G95=`test $ac_compiler_gnu = yes && echo yes`
3027     ac_ext=c
3028     ac_cpp='$CPP $CPPFLAGS'
3029     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3030     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3031     ac_compiler_gnu=$ac_cv_c_compiler_gnu
3032    
3033    
3034    
3035    
3036    
3037     # Try to determine native compiler flags that allow us to use F90 suffix
3038     # for preprocessed f90 source.
3039    
3040     if test "$ac_test_PREPFLAG" != "set"; then
3041     PREPFLAG=""
3042     case "${host_cpu}-${host_os}" in
3043    
3044     *linux*) if test "$F90" = ifc; then
3045     PREPFLAG="-fpp1 "
3046     fi;;
3047     *aix*) if test "$F90" = xlf90 -o "$F90" = f90; then
3048     PREPFLAG="-qsuffix=cpp=F90 "
3049     fi;;
3050     *darwin*)
3051     if test "$F90" = f90 -o "$F90" = xlf90; then
3052     PREPFLAG="-qsuffix=cpp=F90 "
3053     fi;;
3054     esac
3055    
3056     if test -z "$PREPFLAG"; then
3057     echo ""
3058     echo "**********************************************************"
3059     echo "* WARNING: Don't know the best PREPFLAG for this system *"
3060     echo "* Use make PREPFLAG=..., or edit the top level Makefile *"
3061     echo "* (otherwise, an empty PREPFLAG will be used) *"
3062     echo "**********************************************************"
3063     echo ""
3064     PREPFLAG=""
3065     fi
3066    
3067     echo "$as_me:$LINENO: checking to make sure F90 preprocessor flag works" >&5
3068     echo $ECHO_N "checking to make sure F90 preprocessor flag works... $ECHO_C" >&6
3069    
3070    
3071     ac_ext=f90
3072     ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3073     ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3074     ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3075    
3076     ac_save_ext=$ac_ext
3077     ac_ext=F90
3078     ac_save_F90FLAGS=$F90FLAGS
3079    
3080     if test "$PREPFLAG"; then
3081     F90FLAGS="${F90FLAGS} ${PREPFLAG}-DTEST"
3082     fi
3083    
3084     cat >conftest.$ac_ext <<_ACEOF
3085    
3086    
3087     program main
3088    
3089     integer :: i
3090     i = 1
3091    
3092    
3093     end program main
3094    
3095     _ACEOF
3096     rm -f conftest.$ac_objext
3097     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3098     (eval $ac_compile) 2>&5
3099     ac_status=$?
3100     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3101     (exit $ac_status); } &&
3102     { ac_try='test -s conftest.$ac_objext'
3103     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3104     (eval $ac_try) 2>&5
3105     ac_status=$?
3106     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3107     (exit $ac_status); }; }; then
3108     prepflagworks=1
3109     else
3110     echo "$as_me: failed program was:" >&5
3111     sed 's/^/| /' conftest.$ac_ext >&5
3112    
3113     prepflagworks=0
3114     fi
3115     rm -f conftest.$ac_objext conftest.$ac_ext
3116    
3117     F90FLAGS=$ac_save_F90FLAGS
3118     ac_ext=$ac_save_ext
3119     ac_ext=c
3120     ac_cpp='$CPP $CPPFLAGS'
3121     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3122     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3123     ac_compiler_gnu=$ac_cv_c_compiler_gnu
3124    
3125    
3126    
3127     if test "$prepflagworks" = 1; then
3128     echo "$as_me:$LINENO: result: yes" >&5
3129     echo "${ECHO_T}yes" >&6
3130    
3131     else
3132     echo "$as_me:$LINENO: result: no" >&5
3133     echo "${ECHO_T}no" >&6
3134     { { echo "$as_me:$LINENO: error: Can't figure out working Fortran90 preprocessor flag" >&5
3135     echo "$as_me: error: Can't figure out working Fortran90 preprocessor flag" >&2;}
3136     { (exit 1); exit 1; }; }
3137     fi
3138     fi
3139    
3140    
3141    
3142    
3143    
3144     # Try to determine native compiler flags that allow us to use F90 suffix
3145     # for preprocessed f90 source with -D type defines
3146    
3147     if test "$ac_test_PREPDEFFLAG" != "set"; then
3148     PREPDEFFLAG=""
3149     case "${host_cpu}-${host_os}" in
3150    
3151     *linux*) if test "$F90" = ifc; then
3152     PREPDEFFLAG=" "
3153     fi;;
3154     *aix*) if test "$F90" = xlf90 -o "$F90" = f90; then
3155     PREPDEFFLAG="-WF,"
3156     fi;;
3157     *darwin*)
3158     if test "$F90" = f90 -o "$F90" = xlf90; then
3159     PREPDEFFLAG="-WF,"
3160     fi;;
3161     esac
3162    
3163     if test -z "$PREPDEFFLAG"; then
3164     echo ""
3165     echo "*************************************************************"
3166     echo "* WARNING: Don't know the best PREPDEFFLAG for this system *"
3167     echo "* Use make PREPDEFFLAG=..., or edit the top level Makefile *"
3168     echo "* (otherwise, an empty PREPDEFFLAG will be used) *"
3169     echo "*************************************************************"
3170     echo ""
3171     PREPDEFFLAG=" "
3172     fi
3173    
3174     echo "$as_me:$LINENO: checking to make sure F90 preprocessor define flag works" >&5
3175     echo $ECHO_N "checking to make sure F90 preprocessor define flag works... $ECHO_C" >&6
3176    
3177    
3178     ac_ext=f90
3179     ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3180     ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3181     ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3182    
3183     ac_save_ext=$ac_ext
3184     ac_ext=F90
3185     ac_save_F90FLAGS=$F90FLAGS
3186    
3187     if test "$PREPDEFFLAG"; then
3188     F90FLAGS="${F90FLAGS} ${PREPFLAG} ${PREPDEFFLAG}-DTEST"
3189     fi
3190    
3191     cat >conftest.$ac_ext <<_ACEOF
3192    
3193    
3194     program main
3195    
3196     integer :: i
3197     #ifdef TEST
3198     i = 1
3199     #else
3200     choke me
3201     #endif
3202    
3203    
3204     end program main
3205    
3206     _ACEOF
3207     rm -f conftest.$ac_objext
3208     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3209     (eval $ac_compile) 2>&5
3210     ac_status=$?
3211     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3212     (exit $ac_status); } &&
3213     { ac_try='test -s conftest.$ac_objext'
3214     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3215     (eval $ac_try) 2>&5
3216     ac_status=$?
3217     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3218     (exit $ac_status); }; }; then
3219     prepdefflagworks=1
3220     else
3221     echo "$as_me: failed program was:" >&5
3222     sed 's/^/| /' conftest.$ac_ext >&5
3223    
3224     prepdefflagworks=0
3225     fi
3226     rm -f conftest.$ac_objext conftest.$ac_ext
3227    
3228     F90FLAGS=$ac_save_F90FLAGS
3229     ac_ext=$ac_save_ext
3230     ac_ext=c
3231     ac_cpp='$CPP $CPPFLAGS'
3232     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3233     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3234     ac_compiler_gnu=$ac_cv_c_compiler_gnu
3235    
3236    
3237    
3238     if test "$prepdefflagworks" = 1; then
3239     echo "$as_me:$LINENO: result: yes" >&5
3240     echo "${ECHO_T}yes" >&6
3241    
3242     else
3243     echo "$as_me:$LINENO: result: no" >&5
3244     echo "${ECHO_T}no" >&6
3245     { { echo "$as_me:$LINENO: error: Can't figure out working Fortran90 preprocessor define flag" >&5
3246     echo "$as_me: error: Can't figure out working Fortran90 preprocessor define flag" >&2;}
3247     { (exit 1); exit 1; }; }
3248     fi
3249     fi
3250    
3251    
3252     case $debug in
3253     1)
3254     ;;
3255     *)
3256    
3257    
3258    
3259    
3260 gezelter 749 # Try to determine "good" native compiler flags if none specified on command
3261     # line
3262     if test "$ac_test_CFLAGS" != "set"; then
3263     CFLAGS=""
3264     case "${host_cpu}-${host_os}" in
3265    
3266     *linux*) if test "$CC" = icc; then
3267     CFLAGS="-O"
3268     fi;;
3269     sparc-solaris2*) if test "$CC" = cc; then
3270     CFLAGS="-native -fast -xO5 -dalign"
3271     fi;;
3272    
3273     alpha*-osf*) if test "$CC" = cc; then
3274     CFLAGS="-newc -w0 -O5 -ansi_alias -ansi_args -fp_reorder -tune host -arch host -std1"
3275     fi;;
3276    
3277     hppa*-hpux*) if test "$CC" = cc; then
3278     CFLAGS="-Ae +O3 +Oall"
3279     fi;;
3280    
3281     rs6000*-aix*) if test "$CC" = cc -o "$CC" = xlc; then
3282     CFLAGS="-O3 -qtune=auto -qansialias -w"
3283     fi;;
3284     powerpc*-aix*)
3285     if test "$CC" = cc -o "$CC" = xlc; then
3286     CFLAGS="-O3 -qtune=auto -qansialias -w"
3287     echo "*******************************************************"
3288     echo "* You have AIX on an unknown powerpc system. It is *"
3289     echo "* recommended that you use *"
3290     echo "* *"
3291     echo "* CFLAGS=-O3 -qarch=ppc -qtune=xxx -qansialias -w *"
3292     echo "* ^^^ *"
3293     echo "* where xxx is 601, 603, 604, or whatever kind of *"
3294     echo "* PowerPC CPU you have. For more info, man cc. *"
3295     echo "*******************************************************"
3296     fi;;
3297     *darwin*)
3298     if test "$CC" = xlc -o "$CC" = cc; then
3299     CFLAGS="-O3 -qtune=auto -w"
3300     echo "*******************************************************"
3301     echo "* You have Darwin on an unknown powerpc system. *"
3302     echo "* It is recommended that you use *"
3303     echo "* *"
3304     echo "* CFLAGS=-O3 -qarch=ppc -qtune=xxx -qansialias -w *"
3305     echo "* ^^^ *"
3306     echo "* where xxx is 601, 603, 604, or whatever kind of *"
3307     echo "* PowerPC CPU you have. For more info, man cc. *"
3308     echo "*******************************************************"
3309     fi;;
3310     esac
3311    
3312     # use default flags for gcc on all systems
3313     if test $ac_cv_c_compiler_gnu = yes; then
3314     CFLAGS="-O6 -fomit-frame-pointer -Wall -W -Wcast-qual -Wpointer-arith -Wcast-align -pedantic"
3315     fi
3316    
3317     # test for gcc-specific flags:
3318     if test $ac_cv_c_compiler_gnu = yes; then
3319     # -malign-double for x86 systems
3320    
3321 mmeineke 791
3322     echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -malign-double" >&5
3323 gezelter 749 echo $ECHO_N "checking whether ${CC-cc} accepts -malign-double... $ECHO_C" >&6
3324     if test "${ac_align_double+set}" = set; then
3325     echo $ECHO_N "(cached) $ECHO_C" >&6
3326     else
3327     echo 'void f(){}' > conftest.c
3328     if test -z "`${CC-cc} -malign-double -c conftest.c 2>&1`"; then
3329     ac_align_double=yes
3330     else
3331     ac_align_double=no
3332     fi
3333     rm -f conftest*
3334    
3335     fi
3336 mmeineke 791 echo "$as_me:$LINENO: result: $ac_align_double" >&5
3337 gezelter 749 echo "${ECHO_T}$ac_align_double" >&6
3338     if test "$ac_align_double" = yes; then
3339     :
3340     CFLAGS="$CFLAGS -malign-double"
3341     else
3342     :
3343    
3344     fi
3345    
3346     # -fstrict-aliasing for gcc-2.95+
3347    
3348 mmeineke 791
3349     echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -fstrict-aliasing" >&5
3350 gezelter 749 echo $ECHO_N "checking whether ${CC-cc} accepts -fstrict-aliasing... $ECHO_C" >&6
3351     if test "${ac_fstrict_aliasing+set}" = set; then
3352     echo $ECHO_N "(cached) $ECHO_C" >&6
3353     else
3354     echo 'void f(){}' > conftest.c
3355     if test -z "`${CC-cc} -fstrict-aliasing -c conftest.c 2>&1`"; then
3356     ac_fstrict_aliasing=yes
3357     else
3358     ac_fstrict_aliasing=no
3359     fi
3360     rm -f conftest*
3361    
3362     fi
3363 mmeineke 791 echo "$as_me:$LINENO: result: $ac_fstrict_aliasing" >&5
3364 gezelter 749 echo "${ECHO_T}$ac_fstrict_aliasing" >&6
3365     if test "$ac_fstrict_aliasing" = yes; then
3366     :
3367     CFLAGS="$CFLAGS -fstrict-aliasing"
3368     else
3369     :
3370    
3371     fi
3372    
3373     fi
3374    
3375     CPU_FLAGS=""
3376     if test "$GCC" = "yes"; then
3377     case "${host_cpu}" in
3378     i586*)
3379    
3380 mmeineke 791 echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mcpu=pentium" >&5
3381 gezelter 749 echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=pentium... $ECHO_C" >&6
3382     if test "${ac_cpu_pentium+set}" = set; then
3383     echo $ECHO_N "(cached) $ECHO_C" >&6
3384     else
3385     echo 'void f(){}' > conftest.c
3386     if test -z "`${CC-cc} -mcpu=pentium -c conftest.c 2>&1`"; then
3387     ac_cpu_pentium=yes
3388     else
3389     ac_cpu_pentium=no
3390     fi
3391     rm -f conftest*
3392    
3393     fi
3394 mmeineke 791 echo "$as_me:$LINENO: result: $ac_cpu_pentium" >&5
3395 gezelter 749 echo "${ECHO_T}$ac_cpu_pentium" >&6
3396     if test "$ac_cpu_pentium" = yes; then
3397     :
3398     CPU_FLAGS=-mcpu=pentium
3399     else
3400     :
3401    
3402 mmeineke 791
3403     echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mpentium" >&5
3404 gezelter 749 echo $ECHO_N "checking whether ${CC-cc} accepts -mpentium... $ECHO_C" >&6
3405     if test "${ac_pentium+set}" = set; then
3406     echo $ECHO_N "(cached) $ECHO_C" >&6
3407     else
3408     echo 'void f(){}' > conftest.c
3409     if test -z "`${CC-cc} -mpentium -c conftest.c 2>&1`"; then
3410     ac_pentium=yes
3411     else
3412     ac_pentium=no
3413     fi
3414     rm -f conftest*
3415    
3416     fi
3417 mmeineke 791 echo "$as_me:$LINENO: result: $ac_pentium" >&5
3418 gezelter 749 echo "${ECHO_T}$ac_pentium" >&6
3419     if test "$ac_pentium" = yes; then
3420     :
3421     CPU_FLAGS=-mpentium
3422     else
3423     :
3424    
3425     fi
3426    
3427     fi
3428    
3429     ;;
3430     i686*)
3431    
3432 mmeineke 791 echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mcpu=pentiumpro" >&5
3433 gezelter 749 echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=pentiumpro... $ECHO_C" >&6
3434     if test "${ac_cpu_pentiumpro+set}" = set; then
3435     echo $ECHO_N "(cached) $ECHO_C" >&6
3436     else
3437     echo 'void f(){}' > conftest.c
3438     if test -z "`${CC-cc} -mcpu=pentiumpro -c conftest.c 2>&1`"; then
3439     ac_cpu_pentiumpro=yes
3440     else
3441     ac_cpu_pentiumpro=no
3442     fi
3443     rm -f conftest*
3444    
3445     fi
3446 mmeineke 791 echo "$as_me:$LINENO: result: $ac_cpu_pentiumpro" >&5
3447 gezelter 749 echo "${ECHO_T}$ac_cpu_pentiumpro" >&6
3448     if test "$ac_cpu_pentiumpro" = yes; then
3449     :
3450     CPU_FLAGS=-mcpu=pentiumpro
3451     else
3452     :
3453    
3454 mmeineke 791
3455     echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mpentiumpro" >&5
3456 gezelter 749 echo $ECHO_N "checking whether ${CC-cc} accepts -mpentiumpro... $ECHO_C" >&6
3457     if test "${ac_pentiumpro+set}" = set; then
3458     echo $ECHO_N "(cached) $ECHO_C" >&6
3459     else
3460     echo 'void f(){}' > conftest.c
3461     if test -z "`${CC-cc} -mpentiumpro -c conftest.c 2>&1`"; then
3462     ac_pentiumpro=yes
3463     else
3464     ac_pentiumpro=no
3465     fi
3466     rm -f conftest*
3467    
3468     fi
3469 mmeineke 791 echo "$as_me:$LINENO: result: $ac_pentiumpro" >&5
3470 gezelter 749 echo "${ECHO_T}$ac_pentiumpro" >&6
3471     if test "$ac_pentiumpro" = yes; then
3472     :
3473     CPU_FLAGS=-mpentiumpro
3474     else
3475     :
3476    
3477     fi
3478    
3479     fi
3480    
3481     ;;
3482     powerpc*)
3483     cputype=`(grep cpu /proc/cpuinfo | head -1 | cut -d: -f2 | sed 's/ //g') 2> /dev/null`
3484     is60x=`echo $cputype | egrep "^600-9e?$"`
3485     if test -n "$is60x"; then
3486    
3487 mmeineke 791
3488     echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mcpu=$cputype" >&5
3489 gezelter 749 echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=$cputype... $ECHO_C" >&6
3490     if test "${ac_m_cpu_60x+set}" = set; then
3491     echo $ECHO_N "(cached) $ECHO_C" >&6
3492     else
3493     echo 'void f(){}' > conftest.c
3494     if test -z "`${CC-cc} -mcpu=$cputype -c conftest.c 2>&1`"; then
3495     ac_m_cpu_60x=yes
3496     else
3497     ac_m_cpu_60x=no
3498     fi
3499     rm -f conftest*
3500    
3501     fi
3502 mmeineke 791 echo "$as_me:$LINENO: result: $ac_m_cpu_60x" >&5
3503 gezelter 749 echo "${ECHO_T}$ac_m_cpu_60x" >&6
3504     if test "$ac_m_cpu_60x" = yes; then
3505     :
3506     CPU_FLAGS=-mcpu=$cputype
3507     else
3508     :
3509    
3510     fi
3511    
3512     elif test "$cputype" = 750; then
3513    
3514 mmeineke 791
3515     echo "$as_me:$LINENO: checking whether we are using gcc 2.95 or later" >&5
3516 gezelter 749 echo $ECHO_N "checking whether we are using gcc 2.95 or later... $ECHO_C" >&6
3517     if test "${ac_cv_prog_gcc_2_95+set}" = set; then
3518     echo $ECHO_N "(cached) $ECHO_C" >&6
3519     else
3520    
3521     cat > conftest.c <<EOF
3522     #ifdef __GNUC__
3523     # if (__GNUC__ > 2) || (__GNUC__ == 2 && __GNUC_MINOR__ >= 95)
3524     yes;
3525     # endif
3526     #endif
3527     EOF
3528     if { ac_try='${CC-cc} -E conftest.c'
3529 mmeineke 791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3530 gezelter 749 (eval $ac_try) 2>&5
3531     ac_status=$?
3532 mmeineke 791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3533 gezelter 749 (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then
3534     ac_cv_prog_gcc_2_95=yes
3535     else
3536     ac_cv_prog_gcc_2_95=no
3537     fi
3538    
3539     fi
3540 mmeineke 791 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_2_95" >&5
3541 gezelter 749 echo "${ECHO_T}$ac_cv_prog_gcc_2_95" >&6
3542     if test "$ac_cv_prog_gcc_2_95" = yes; then
3543     :
3544    
3545 mmeineke 791
3546     echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mcpu=750" >&5
3547 gezelter 749 echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=750... $ECHO_C" >&6
3548     if test "${ac_m_cpu_750+set}" = set; then
3549     echo $ECHO_N "(cached) $ECHO_C" >&6
3550     else
3551     echo 'void f(){}' > conftest.c
3552     if test -z "`${CC-cc} -mcpu=750 -c conftest.c 2>&1`"; then
3553     ac_m_cpu_750=yes
3554     else
3555     ac_m_cpu_750=no
3556     fi
3557     rm -f conftest*
3558    
3559     fi
3560 mmeineke 791 echo "$as_me:$LINENO: result: $ac_m_cpu_750" >&5
3561 gezelter 749 echo "${ECHO_T}$ac_m_cpu_750" >&6
3562     if test "$ac_m_cpu_750" = yes; then
3563     :
3564     CPU_FLAGS=-mcpu=750
3565     else
3566     :
3567    
3568     fi
3569    
3570     else
3571     :
3572    
3573     fi
3574    
3575     fi
3576     if test -z "$CPU_FLAGS"; then
3577    
3578 mmeineke 791
3579     echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mcpu=powerpc" >&5
3580 gezelter 749 echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=powerpc... $ECHO_C" >&6
3581     if test "${ac_m_cpu_powerpc+set}" = set; then
3582     echo $ECHO_N "(cached) $ECHO_C" >&6
3583     else
3584     echo 'void f(){}' > conftest.c
3585     if test -z "`${CC-cc} -mcpu=powerpc -c conftest.c 2>&1`"; then
3586     ac_m_cpu_powerpc=yes
3587     else
3588     ac_m_cpu_powerpc=no
3589     fi
3590     rm -f conftest*
3591    
3592     fi
3593 mmeineke 791 echo "$as_me:$LINENO: result: $ac_m_cpu_powerpc" >&5
3594 gezelter 749 echo "${ECHO_T}$ac_m_cpu_powerpc" >&6
3595     if test "$ac_m_cpu_powerpc" = yes; then
3596     :
3597     CPU_FLAGS=-mcpu=powerpc
3598     else
3599     :
3600    
3601     fi
3602    
3603     fi
3604     if test -z "$CPU_FLAGS"; then
3605    
3606 mmeineke 791
3607     echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mpowerpc" >&5
3608 gezelter 749 echo $ECHO_N "checking whether ${CC-cc} accepts -mpowerpc... $ECHO_C" >&6
3609     if test "${ac_m_powerpc+set}" = set; then
3610     echo $ECHO_N "(cached) $ECHO_C" >&6
3611     else
3612     echo 'void f(){}' > conftest.c
3613     if test -z "`${CC-cc} -mpowerpc -c conftest.c 2>&1`"; then
3614     ac_m_powerpc=yes
3615     else
3616     ac_m_powerpc=no
3617     fi
3618     rm -f conftest*
3619    
3620     fi
3621 mmeineke 791 echo "$as_me:$LINENO: result: $ac_m_powerpc" >&5
3622 gezelter 749 echo "${ECHO_T}$ac_m_powerpc" >&6
3623     if test "$ac_m_powerpc" = yes; then
3624     :
3625     CPU_FLAGS=-mpowerpc
3626     else
3627     :
3628    
3629     fi
3630    
3631     fi
3632     esac
3633     fi
3634    
3635     if test -n "$CPU_FLAGS"; then
3636     CFLAGS="$CFLAGS $CPU_FLAGS"
3637     fi
3638    
3639     if test -z "$CFLAGS"; then
3640     echo ""
3641     echo "********************************************************"
3642     echo "* WARNING: Don't know the best CFLAGS for this system *"
3643     echo "* Use make CFLAGS=..., or edit the top level Makefile *"
3644     echo "* (otherwise, a default of CFLAGS=-O3 will be used) *"
3645     echo "********************************************************"
3646     echo ""
3647     CFLAGS="-O3"
3648     fi
3649    
3650 mmeineke 791
3651    
3652     echo "$as_me:$LINENO: checking whether ${CC-cc} accepts ${CFLAGS}" >&5
3653 gezelter 749 echo $ECHO_N "checking whether ${CC-cc} accepts ${CFLAGS}... $ECHO_C" >&6
3654     if test "${ac_guessed_cflags+set}" = set; then
3655     echo $ECHO_N "(cached) $ECHO_C" >&6
3656     else
3657     echo 'void f(){}' > conftest.c
3658     if test -z "`${CC-cc} ${CFLAGS} -c conftest.c 2>&1`"; then
3659     ac_guessed_cflags=yes
3660     else
3661     ac_guessed_cflags=no
3662     fi
3663     rm -f conftest*
3664    
3665     fi
3666 mmeineke 791 echo "$as_me:$LINENO: result: $ac_guessed_cflags" >&5
3667 gezelter 749 echo "${ECHO_T}$ac_guessed_cflags" >&6
3668     if test "$ac_guessed_cflags" = yes; then
3669     :
3670    
3671     else
3672     :
3673    
3674     echo ""
3675     echo "********************************************************"
3676     echo "* WARNING: The guessed CFLAGS don't seem to work with *"
3677     echo "* your compiler. *"
3678     echo "* Use make CFLAGS=..., or edit the top level Makefile *"
3679     echo "********************************************************"
3680     echo ""
3681     CFLAGS=""
3682    
3683     fi
3684    
3685 mmeineke 791
3686 gezelter 749 fi
3687    
3688    
3689    
3690    
3691    
3692     # Try to determine "good" native compiler flags if none specified on command
3693     # line
3694     if test "$ac_test_CXXFLAGS" != "set"; then
3695     CXXFLAGS=""
3696     case "${host_cpu}-${host_os}" in
3697    
3698     *linux*) if test "$CXX" = icc -o "$CXX" = icpc; then
3699     CXXFLAGS="-O"
3700     fi;;
3701     sparc-solaris2*) if test "$CXX" = CC; then
3702     CXXFLAGS="-native -fast -xO5 -dalign"
3703     fi;;
3704     rs6000*-aix*) if test "$CXX" = xlC; then
3705     CXXFLAGS="-O3 -qarch=pwrx -qtune=pwrx -qansialias -w"
3706     fi;;
3707     powerpc*-aix*)
3708     if test "$CXX" = xlC; then
3709     CXXFLAGS="-O3 -qarch=ppc -qansialias -w"
3710     echo "*******************************************************"
3711     echo "* You have AIX on an unknown powerpc system. It is *"
3712     echo "* recommended that you use *"
3713     echo "* *"
3714     echo "* CXXFLAGS=-O3 -qarch=ppc -qtune=xxx -qansialias -w *"
3715     echo "* ^^^ *"
3716     echo "* where xxx is 601, 603, 604, or whatever kind of *"
3717     echo "* PowerPC CPU you have. For more info, man cc. *"
3718     echo "*******************************************************"
3719     fi;;
3720     *darwin*)
3721     if test "$CXX" = xlC; then
3722     CXXFLAGS="-O3 -qtune=auto -qansialias -w"
3723     echo "*******************************************************"
3724     echo "* You have AIX on an unknown powerpc system. It is *"
3725     echo "* recommended that you use *"
3726     echo "* *"
3727     echo "* CXXFLAGS=-O3 -qarch=ppc -qtune=xxx -qansialias -w *"
3728     echo "* ^^^ *"
3729     echo "* where xxx is 601, 603, 604, or whatever kind of *"
3730     echo "* PowerPC CPU you have. For more info, man cc. *"
3731     echo "*******************************************************"
3732     fi;;
3733     esac
3734    
3735     # use default flags for gcc on all systems
3736     if test $ac_cv_c_compiler_gnu = yes; then
3737     CXXFLAGS="-O6 -fomit-frame-pointer -Wall -W -Wcast-qual -Wpointer-arith -Wcast-align -pedantic"
3738     fi
3739    
3740     # test for gcc-specific flags:
3741     if test $ac_cv_c_compiler_gnu = yes; then
3742     # -malign-double for x86 systems
3743    
3744 mmeineke 791
3745     echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -malign-double" >&5
3746 gezelter 749 echo $ECHO_N "checking whether ${CXX-c++} accepts -malign-double... $ECHO_C" >&6
3747     if test "${ac_align_double+set}" = set; then
3748     echo $ECHO_N "(cached) $ECHO_C" >&6
3749     else
3750     echo 'void f(){}' > conftest.cpp
3751     if test -z "`${CXX-c++} -malign-double -c conftest.cpp 2>&1`"; then
3752     ac_align_double=yes
3753     else
3754     ac_align_double=no
3755     fi
3756     rm -f conftest*
3757    
3758     fi
3759 mmeineke 791 echo "$as_me:$LINENO: result: $ac_align_double" >&5
3760 gezelter 749 echo "${ECHO_T}$ac_align_double" >&6
3761     if test "$ac_align_double" = yes; then
3762     :
3763     CXXFLAGS="$CXXFLAGS -malign-double"
3764     else
3765     :
3766    
3767     fi
3768    
3769     # -fstrict-aliasing for gcc-2.95+
3770    
3771 mmeineke 791
3772     echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -fstrict-aliasing" >&5
3773 gezelter 749 echo $ECHO_N "checking whether ${CXX-c++} accepts -fstrict-aliasing... $ECHO_C" >&6
3774     if test "${ac_fstrict_aliasing+set}" = set; then
3775     echo $ECHO_N "(cached) $ECHO_C" >&6
3776     else
3777     echo 'void f(){}' > conftest.cpp
3778     if test -z "`${CXX-c++} -fstrict-aliasing -c conftest.cpp 2>&1`"; then
3779     ac_fstrict_aliasing=yes
3780     else
3781     ac_fstrict_aliasing=no
3782     fi
3783     rm -f conftest*
3784    
3785     fi
3786 mmeineke 791 echo "$as_me:$LINENO: result: $ac_fstrict_aliasing" >&5
3787 gezelter 749 echo "${ECHO_T}$ac_fstrict_aliasing" >&6
3788     if test "$ac_fstrict_aliasing" = yes; then
3789     :
3790     CXXFLAGS="$CXXFLAGS -fstrict-aliasing"
3791     else
3792     :
3793    
3794     fi
3795    
3796     fi
3797    
3798     CPU_FLAGS=""
3799     if test "$GCC" = "yes"; then
3800     case "${host_cpu}" in
3801     i586*)
3802    
3803 mmeineke 791 echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mcpu=pentium" >&5
3804 gezelter 749 echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=pentium... $ECHO_C" >&6
3805     if test "${ac_cpu_pentium+set}" = set; then
3806     echo $ECHO_N "(cached) $ECHO_C" >&6
3807     else
3808     echo 'void f(){}' > conftest.c
3809     if test -z "`${CC-cc} -mcpu=pentium -c conftest.c 2>&1`"; then
3810     ac_cpu_pentium=yes
3811     else
3812     ac_cpu_pentium=no
3813     fi
3814     rm -f conftest*
3815    
3816     fi
3817 mmeineke 791 echo "$as_me:$LINENO: result: $ac_cpu_pentium" >&5
3818 gezelter 749 echo "${ECHO_T}$ac_cpu_pentium" >&6
3819     if test "$ac_cpu_pentium" = yes; then
3820     :
3821     CPU_FLAGS=-mcpu=pentium
3822     else
3823     :
3824    
3825 mmeineke 791
3826     echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mpentium" >&5
3827 gezelter 749 echo $ECHO_N "checking whether ${CXX-c++} accepts -mpentium... $ECHO_C" >&6
3828     if test "${ac_pentium+set}" = set; then
3829     echo $ECHO_N "(cached) $ECHO_C" >&6
3830     else
3831     echo 'void f(){}' > conftest.cpp
3832     if test -z "`${CXX-c++} -mpentium -c conftest.cpp 2>&1`"; then
3833     ac_pentium=yes
3834     else
3835     ac_pentium=no
3836     fi
3837     rm -f conftest*
3838    
3839     fi
3840 mmeineke 791 echo "$as_me:$LINENO: result: $ac_pentium" >&5
3841 gezelter 749 echo "${ECHO_T}$ac_pentium" >&6
3842     if test "$ac_pentium" = yes; then
3843     :
3844     CPU_FLAGS=-mpentium
3845     else
3846     :
3847    
3848     fi
3849    
3850     fi
3851    
3852     ;;
3853     i686*)
3854    
3855 mmeineke 791 echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mcpu=pentiumpro" >&5
3856 gezelter 749 echo $ECHO_N "checking whether ${CXX-c++} accepts -mcpu=pentiumpro... $ECHO_C" >&6
3857     if test "${ac_cpu_pentiumpro+set}" = set; then
3858     echo $ECHO_N "(cached) $ECHO_C" >&6
3859     else
3860     echo 'void f(){}' > conftest.cpp
3861     if test -z "`${CXX-c++} -mcpu=pentiumpro -c conftest.cpp 2>&1`"; then
3862     ac_cpu_pentiumpro=yes
3863     else
3864     ac_cpu_pentiumpro=no
3865     fi
3866     rm -f conftest*
3867    
3868     fi
3869 mmeineke 791 echo "$as_me:$LINENO: result: $ac_cpu_pentiumpro" >&5
3870 gezelter 749 echo "${ECHO_T}$ac_cpu_pentiumpro" >&6
3871     if test "$ac_cpu_pentiumpro" = yes; then
3872     :
3873     CPU_FLAGS=-mcpu=pentiumpro
3874     else
3875     :
3876    
3877 mmeineke 791
3878     echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mpentiumpro" >&5
3879 gezelter 749 echo $ECHO_N "checking whether ${CXX-c++} accepts -mpentiumpro... $ECHO_C" >&6
3880     if test "${ac_pentiumpro+set}" = set; then
3881     echo $ECHO_N "(cached) $ECHO_C" >&6
3882     else
3883     echo 'void f(){}' > conftest.cpp
3884     if test -z "`${CXX-c++} -mpentiumpro -c conftest.cpp 2>&1`"; then
3885     ac_pentiumpro=yes
3886     else
3887     ac_pentiumpro=no
3888     fi
3889     rm -f conftest*
3890    
3891     fi
3892 mmeineke 791 echo "$as_me:$LINENO: result: $ac_pentiumpro" >&5
3893 gezelter 749 echo "${ECHO_T}$ac_pentiumpro" >&6
3894     if test "$ac_pentiumpro" = yes; then
3895     :
3896     CPU_FLAGS=-mpentiumpro
3897     else
3898     :
3899    
3900     fi
3901    
3902     fi
3903    
3904     ;;
3905     powerpc*)
3906     cputype=`(grep cpu /proc/cpuinfo | head -1 | cut -d: -f2 | sed 's/ //g') 2> /dev/null`
3907     is60x=`echo $cputype | egrep "^600-9e?$"`
3908     if test -n "$is60x"; then
3909    
3910 mmeineke 791
3911     echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mcpu=$cputype" >&5
3912 gezelter 749 echo $ECHO_N "checking whether ${CXX-c++} accepts -mcpu=$cputype... $ECHO_C" >&6
3913     if test "${ac_m_cpu_60x+set}" = set; then
3914     echo $ECHO_N "(cached) $ECHO_C" >&6
3915     else
3916     echo 'void f(){}' > conftest.cpp
3917     if test -z "`${CXX-c++} -mcpu=$cputype -c conftest.cpp 2>&1`"; then
3918     ac_m_cpu_60x=yes
3919     else
3920     ac_m_cpu_60x=no
3921     fi
3922     rm -f conftest*
3923    
3924     fi
3925 mmeineke 791 echo "$as_me:$LINENO: result: $ac_m_cpu_60x" >&5
3926 gezelter 749 echo "${ECHO_T}$ac_m_cpu_60x" >&6
3927     if test "$ac_m_cpu_60x" = yes; then
3928     :
3929     CPU_FLAGS=-mcpu=$cputype
3930     else
3931     :
3932    
3933     fi
3934    
3935     elif test "$cputype" = 750; then
3936    
3937 mmeineke 791
3938     echo "$as_me:$LINENO: checking whether we are using gcc 2.95 or later" >&5
3939 gezelter 749 echo $ECHO_N "checking whether we are using gcc 2.95 or later... $ECHO_C" >&6
3940     if test "${ac_cv_prog_gcc_2_95+set}" = set; then
3941     echo $ECHO_N "(cached) $ECHO_C" >&6
3942     else
3943    
3944     cat > conftest.c <<EOF
3945     #ifdef __GNUC__
3946     # if (__GNUC__ > 2) || (__GNUC__ == 2 && __GNUC_MINOR__ >= 95)
3947     yes;
3948     # endif
3949     #endif
3950     EOF
3951     if { ac_try='${CC-cc} -E conftest.c'
3952 mmeineke 791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3953 gezelter 749 (eval $ac_try) 2>&5
3954     ac_status=$?
3955 mmeineke 791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3956 gezelter 749 (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then
3957     ac_cv_prog_gcc_2_95=yes
3958     else
3959     ac_cv_prog_gcc_2_95=no
3960     fi
3961    
3962     fi
3963 mmeineke 791 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_2_95" >&5
3964 gezelter 749 echo "${ECHO_T}$ac_cv_prog_gcc_2_95" >&6
3965     if test "$ac_cv_prog_gcc_2_95" = yes; then
3966     :
3967    
3968 mmeineke 791
3969     echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mcpu=750" >&5
3970 gezelter 749 echo $ECHO_N "checking whether ${CXX-c++} accepts -mcpu=750... $ECHO_C" >&6
3971     if test "${ac_m_cpu_750+set}" = set; then
3972     echo $ECHO_N "(cached) $ECHO_C" >&6
3973     else
3974     echo 'void f(){}' > conftest.cpp
3975     if test -z "`${CXX-c++} -mcpu=750 -c conftest.cpp 2>&1`"; then
3976     ac_m_cpu_750=yes
3977     else
3978     ac_m_cpu_750=no
3979     fi
3980     rm -f conftest*
3981    
3982     fi
3983 mmeineke 791 echo "$as_me:$LINENO: result: $ac_m_cpu_750" >&5
3984 gezelter 749 echo "${ECHO_T}$ac_m_cpu_750" >&6
3985     if test "$ac_m_cpu_750" = yes; then
3986     :
3987     CPU_FLAGS=-mcpu=750
3988     else
3989     :
3990    
3991     fi
3992    
3993     else
3994     :
3995    
3996     fi
3997    
3998     fi
3999     if test -z "$CPU_FLAGS"; then
4000    
4001 mmeineke 791
4002     echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mcpu=powerpc" >&5
4003 gezelter 749 echo $ECHO_N "checking whether ${CXX-c++} accepts -mcpu=powerpc... $ECHO_C" >&6
4004     if test "${ac_m_cpu_powerpc+set}" = set; then
4005     echo $ECHO_N "(cached) $ECHO_C" >&6
4006     else
4007     echo 'void f(){}' > conftest.cpp
4008     if test -z "`${CXX-c++} -mcpu=powerpc -c conftest.cpp 2>&1`"; then
4009     ac_m_cpu_powerpc=yes
4010     else
4011     ac_m_cpu_powerpc=no
4012     fi
4013     rm -f conftest*
4014    
4015     fi
4016 mmeineke 791 echo "$as_me:$LINENO: result: $ac_m_cpu_powerpc" >&5
4017 gezelter 749 echo "${ECHO_T}$ac_m_cpu_powerpc" >&6
4018     if test "$ac_m_cpu_powerpc" = yes; then
4019     :
4020     CPU_FLAGS=-mcpu=powerpc
4021     else
4022     :
4023    
4024     fi
4025    
4026     fi
4027     if test -z "$CPU_FLAGS"; then
4028    
4029 mmeineke 791
4030     echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mpowerpc" >&5
4031 gezelter 749 echo $ECHO_N "checking whether ${CXX-c++} accepts -mpowerpc... $ECHO_C" >&6
4032     if test "${ac_m_powerpc+set}" = set; then
4033     echo $ECHO_N "(cached) $ECHO_C" >&6
4034     else
4035     echo 'void f(){}' > conftest.cpp
4036     if test -z "`${CXX-c++} -mpowerpc -c conftest.cpp 2>&1`"; then
4037     ac_m_powerpc=yes
4038     else
4039     ac_m_powerpc=no
4040     fi
4041     rm -f conftest*
4042    
4043     fi
4044 mmeineke 791 echo "$as_me:$LINENO: result: $ac_m_powerpc" >&5
4045 gezelter 749 echo "${ECHO_T}$ac_m_powerpc" >&6
4046     if test "$ac_m_powerpc" = yes; then
4047     :
4048     CPU_FLAGS=-mpowerpc
4049     else
4050     :
4051    
4052     fi
4053    
4054     fi
4055     esac
4056     fi
4057    
4058     if test -n "$CPU_FLAGS"; then
4059     CXXFLAGS="$CXXFLAGS $CPU_FLAGS"
4060     fi
4061    
4062     if test -z "$CXXFLAGS"; then
4063     echo ""
4064     echo "**********************************************************"
4065     echo "* WARNING: Don't know the best CXXFLAGS for this system *"
4066     echo "* Use make CXXFLAGS=..., or edit the top level Makefile *"
4067     echo "* (otherwise, a default of CXXFLAGS=-O3 will be used) *"
4068     echo "**********************************************************"
4069     echo ""
4070     CXXFLAGS="-O3"
4071     fi
4072    
4073 mmeineke 791
4074    
4075     echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts ${CXXFLAGS}" >&5
4076 gezelter 749 echo $ECHO_N "checking whether ${CXX-c++} accepts ${CXXFLAGS}... $ECHO_C" >&6
4077     if test "${ac_guessed_cxxflags+set}" = set; then
4078     echo $ECHO_N "(cached) $ECHO_C" >&6
4079     else
4080     echo 'void f(){}' > conftest.cpp
4081     if test -z "`${CXX-c++} ${CXXFLAGS} -c conftest.cpp 2>&1`"; then
4082     ac_guessed_cxxflags=yes
4083     else
4084     ac_guessed_cxxflags=no
4085     fi
4086     rm -f conftest*
4087    
4088     fi
4089 mmeineke 791 echo "$as_me:$LINENO: result: $ac_guessed_cxxflags" >&5
4090 gezelter 749 echo "${ECHO_T}$ac_guessed_cxxflags" >&6
4091     if test "$ac_guessed_cxxflags" = yes; then
4092     :
4093    
4094     else
4095     :
4096    
4097     echo ""
4098     echo "**********************************************************"
4099     echo "* WARNING: The guessed CXXFLAGS don't seem to work with *"
4100     echo "* your compiler. *"
4101     echo "* Use make CXXFLAGS=..., or edit the top level Makefile *"
4102     echo "**********************************************************"
4103     echo ""
4104     CXXFLAGS=""
4105    
4106     fi
4107    
4108 mmeineke 791
4109 gezelter 749 fi
4110    
4111    
4112    
4113    
4114    
4115     # Try to determine "good" native compiler flags if none specified on command
4116     # line
4117 gezelter 785
4118 mmeineke 808 if test x"$F90FLAGS" == x ; then
4119 gezelter 749 F90FLAGS=""
4120     case "${host_cpu}-${host_os}" in
4121    
4122     *linux*) if test "$F90" = ifc; then
4123     F90FLAGS="-O"
4124     fi;;
4125     rs6000*-aix*) if test "$F90" = xlf90 -o "$F90" = f90; then
4126     F90FLAGS="-O3 -qarch=pwrx -qtune=pwrx -qansialias -w"
4127     fi;;
4128     powerpc*-aix*)
4129     if test "$F90" = f90 -o "$F90" = xlf90; then
4130     F90FLAGS="-O3 -qarch=ppc -qansialias -w"
4131     echo "*******************************************************"
4132     echo "* You have AIX on an unknown powerpc system. It is *"
4133     echo "* recommended that you use *"
4134     echo "* *"
4135     echo "* F90FLAGS=-O3 -qarch=ppc -qtune=xxx -qansialias -w *"
4136     echo "* ^^^ *"
4137     echo "* where xxx is 601, 603, 604, or whatever kind of *"
4138     echo "* PowerPC CPU you have. For more info, man xlf. *"
4139     echo "*******************************************************"
4140     fi;;
4141     *darwin*)
4142     if test "$F90" = f90 -o "$F90" = xlf90; then
4143     F90FLAGS="-O3 -qtune=auto -w"
4144     echo "*********************************************************"
4145     echo "* You have Darwin on an unknown powerpc system. It is *"
4146     echo "* recommended that you use *"
4147     echo "* *"
4148     echo "* CXXFLAGS=-O3 -qarch=ppc -qtune=xxx -qansialias -w *"
4149     echo "* ^^^ *"
4150     echo "* where xxx is 601, 603, 604, or whatever kind of *"
4151     echo "* PowerPC CPU you have. For more info, man xlf. *"
4152     echo "*********************************************************"
4153     fi;;
4154     esac
4155    
4156     if test -n "$CPU_FLAGS"; then
4157     F90FLAGS="$F90FLAGS $CPU_FLAGS"
4158     fi
4159    
4160     if test -z "$F90FLAGS"; then
4161     echo ""
4162     echo "**********************************************************"
4163     echo "* WARNING: Don't know the best F90FLAGS for this system *"
4164     echo "* Use make F90FLAGS=..., or edit the top level Makefile *"
4165     echo "* (otherwise, a default of F90FLAGS=-O3 will be used) *"
4166     echo "**********************************************************"
4167     echo ""
4168     F90FLAGS="-O3"
4169     fi
4170    
4171 mmeineke 791
4172     echo "$as_me:$LINENO: checking whether ${F90-f90} accepts ${F90FLAGS}" >&5
4173 gezelter 749 echo $ECHO_N "checking whether ${F90-f90} accepts ${F90FLAGS}... $ECHO_C" >&6
4174     if test "${ac_guessed_f90flags+set}" = set; then
4175     echo $ECHO_N "(cached) $ECHO_C" >&6
4176     else
4177    
4178 mmeineke 791
4179    
4180 gezelter 749 ac_ext=f90
4181     ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
4182     ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4183     ac_compiler_gnu=$ac_cv_f90_compiler_gnu
4184    
4185     echo 'program main' > conftest.$ac_ext
4186     echo 'end program main' >> conftest.$ac_ext
4187     ac_compile='${F90-f90} -c ${F90FLAGS} $F90FLAGS conftest.$ac_ext 1>&5'
4188 mmeineke 791 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4189 gezelter 749 (eval $ac_compile) 2>&5
4190     ac_status=$?
4191 mmeineke 791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4192 gezelter 749 (exit $ac_status); }; then
4193     ac_guessed_f90flags=yes
4194     else
4195     ac_guessed_f90flags=no
4196     fi
4197     rm -f conftest*
4198     ac_ext=c
4199     ac_cpp='$CPP $CPPFLAGS'
4200     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4201     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4202     ac_compiler_gnu=$ac_cv_c_compiler_gnu
4203    
4204 mmeineke 791
4205 gezelter 749 fi
4206 mmeineke 791 echo "$as_me:$LINENO: result: $ac_guessed_f90flags" >&5
4207 gezelter 749 echo "${ECHO_T}$ac_guessed_f90flags" >&6
4208     if test "$ac_guessed_f90flags" = yes; then
4209     :
4210    
4211     else
4212     :
4213    
4214     echo ""
4215     echo "**********************************************************"
4216     echo "* WARNING: The guessed F90FLAGS don't seem to work with *"
4217     echo "* your compiler. *"
4218     echo "* Use make F90FLAGS=..., or edit the top level Makefile *"
4219     echo "**********************************************************"
4220     echo ""
4221     F90FLAGS=""
4222    
4223     fi
4224    
4225 mmeineke 791
4226 gezelter 749 fi
4227    
4228 gezelter 822 ;;
4229     esac
4230 mmeineke 791
4231 gezelter 749 # Find a good install program. We prefer a C program (faster),
4232     # so one script is as good as another. But avoid the broken or
4233     # incompatible versions:
4234     # SysV /etc/install, /usr/sbin/install
4235     # SunOS /usr/etc/install
4236     # IRIX /sbin/install
4237     # AIX /bin/install
4238     # AmigaOS /C/install, which installs bootblocks on floppy discs
4239     # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4240     # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4241     # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4242     # ./install, which can be erroneously created by make from ./install.sh.
4243 mmeineke 791 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4244     echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4245 gezelter 749 if test -z "$INSTALL"; then
4246     if test "${ac_cv_path_install+set}" = set; then
4247     echo $ECHO_N "(cached) $ECHO_C" >&6
4248     else
4249 mmeineke 791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4250     for as_dir in $PATH
4251     do
4252     IFS=$as_save_IFS
4253     test -z "$as_dir" && as_dir=.
4254     # Account for people who put trailing slashes in PATH elements.
4255     case $as_dir/ in
4256     ./ | .// | /cC/* | \
4257     /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4258     /usr/ucb/* ) ;;
4259     *)
4260     # OSF1 and SCO ODT 3.0 have their own names for install.
4261     # Don't use installbsd from OSF since it installs stuff as root
4262     # by default.
4263     for ac_prog in ginstall scoinst install; do
4264     for ac_exec_ext in '' $ac_executable_extensions; do
4265     if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4266     if test $ac_prog = install &&
4267     grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4268     # AIX install. It has an incompatible calling convention.
4269     :
4270     elif test $ac_prog = install &&
4271     grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4272     # program-specific install script used by HP pwplus--don't use.
4273     :
4274     else
4275     ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4276     break 3
4277     fi
4278     fi
4279 gezelter 749 done
4280 mmeineke 791 done
4281     ;;
4282     esac
4283     done
4284 gezelter 749
4285 mmeineke 791
4286 gezelter 749 fi
4287     if test "${ac_cv_path_install+set}" = set; then
4288     INSTALL=$ac_cv_path_install
4289     else
4290     # As a last resort, use the slow shell script. We don't cache a
4291     # path for INSTALL within a source directory, because that will
4292     # break other packages using the cache if that directory is
4293     # removed, or if the path is relative.
4294     INSTALL=$ac_install_sh
4295     fi
4296     fi
4297 mmeineke 791 echo "$as_me:$LINENO: result: $INSTALL" >&5
4298 gezelter 749 echo "${ECHO_T}$INSTALL" >&6
4299    
4300     # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4301     # It thinks the first close brace ends the variable substitution.
4302     test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4303    
4304     test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4305    
4306     test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4307    
4308 mmeineke 791 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4309 gezelter 749 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4310     LN_S=$as_ln_s
4311     if test "$LN_S" = "ln -s"; then
4312 mmeineke 791 echo "$as_me:$LINENO: result: yes" >&5
4313 gezelter 749 echo "${ECHO_T}yes" >&6
4314     else
4315 mmeineke 791 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4316 gezelter 749 echo "${ECHO_T}no, using $LN_S" >&6
4317     fi
4318    
4319 mmeineke 791 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4320     echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4321 gezelter 749 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
4322     if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4323     echo $ECHO_N "(cached) $ECHO_C" >&6
4324     else
4325 mmeineke 791 cat >conftest.make <<\_ACEOF
4326 gezelter 749 all:
4327 mmeineke 791 @echo 'ac_maketemp="$(MAKE)"'
4328     _ACEOF
4329 gezelter 749 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4330     eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4331     if test -n "$ac_maketemp"; then
4332     eval ac_cv_prog_make_${ac_make}_set=yes
4333     else
4334     eval ac_cv_prog_make_${ac_make}_set=no
4335     fi
4336     rm -f conftest.make
4337     fi
4338     if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4339 mmeineke 791 echo "$as_me:$LINENO: result: yes" >&5
4340 gezelter 749 echo "${ECHO_T}yes" >&6
4341     SET_MAKE=
4342     else
4343 mmeineke 791 echo "$as_me:$LINENO: result: no" >&5
4344 gezelter 749 echo "${ECHO_T}no" >&6
4345     SET_MAKE="MAKE=${MAKE-make}"
4346     fi
4347    
4348     if test -n "$ac_tool_prefix"; then
4349     # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4350     set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4351 mmeineke 791 echo "$as_me:$LINENO: checking for $ac_word" >&5
4352 gezelter 749 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4353     if test "${ac_cv_prog_RANLIB+set}" = set; then
4354     echo $ECHO_N "(cached) $ECHO_C" >&6
4355     else
4356     if test -n "$RANLIB"; then
4357     ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4358     else
4359 mmeineke 791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4360     for as_dir in $PATH
4361     do
4362     IFS=$as_save_IFS
4363     test -z "$as_dir" && as_dir=.
4364     for ac_exec_ext in '' $ac_executable_extensions; do
4365     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4366     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4367     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4368     break 2
4369     fi
4370 gezelter 749 done
4371 mmeineke 791 done
4372 gezelter 749
4373     fi
4374     fi
4375     RANLIB=$ac_cv_prog_RANLIB
4376     if test -n "$RANLIB"; then
4377 mmeineke 791 echo "$as_me:$LINENO: result: $RANLIB" >&5
4378 gezelter 749 echo "${ECHO_T}$RANLIB" >&6
4379     else
4380 mmeineke 791 echo "$as_me:$LINENO: result: no" >&5
4381 gezelter 749 echo "${ECHO_T}no" >&6
4382     fi
4383    
4384     fi
4385     if test -z "$ac_cv_prog_RANLIB"; then
4386     ac_ct_RANLIB=$RANLIB
4387     # Extract the first word of "ranlib", so it can be a program name with args.
4388     set dummy ranlib; ac_word=$2
4389 mmeineke 791 echo "$as_me:$LINENO: checking for $ac_word" >&5
4390 gezelter 749 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4391     if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4392     echo $ECHO_N "(cached) $ECHO_C" >&6
4393     else
4394     if test -n "$ac_ct_RANLIB"; then
4395     ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4396     else
4397 mmeineke 791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4398     for as_dir in $PATH
4399     do
4400     IFS=$as_save_IFS
4401     test -z "$as_dir" && as_dir=.
4402     for ac_exec_ext in '' $ac_executable_extensions; do
4403     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4404     ac_cv_prog_ac_ct_RANLIB="ranlib"
4405     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4406     break 2
4407     fi
4408 gezelter 749 done
4409 mmeineke 791 done
4410 gezelter 749
4411     test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4412     fi
4413     fi
4414     ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4415     if test -n "$ac_ct_RANLIB"; then
4416 mmeineke 791 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4417 gezelter 749 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4418     else
4419 mmeineke 791 echo "$as_me:$LINENO: result: no" >&5
4420 gezelter 749 echo "${ECHO_T}no" >&6
4421     fi
4422    
4423     RANLIB=$ac_ct_RANLIB
4424     else
4425     RANLIB="$ac_cv_prog_RANLIB"
4426     fi
4427    
4428     for ac_prog in 'bison -y' byacc
4429     do
4430     # Extract the first word of "$ac_prog", so it can be a program name with args.
4431     set dummy $ac_prog; ac_word=$2
4432 mmeineke 791 echo "$as_me:$LINENO: checking for $ac_word" >&5
4433 gezelter 749 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4434     if test "${ac_cv_prog_YACC+set}" = set; then
4435     echo $ECHO_N "(cached) $ECHO_C" >&6
4436     else
4437     if test -n "$YACC"; then
4438     ac_cv_prog_YACC="$YACC" # Let the user override the test.
4439     else
4440 mmeineke 791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4441     for as_dir in $PATH
4442     do
4443     IFS=$as_save_IFS
4444     test -z "$as_dir" && as_dir=.
4445     for ac_exec_ext in '' $ac_executable_extensions; do
4446     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4447     ac_cv_prog_YACC="$ac_prog"
4448     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4449     break 2
4450     fi
4451 gezelter 749 done
4452 mmeineke 791 done
4453 gezelter 749
4454     fi
4455     fi
4456     YACC=$ac_cv_prog_YACC
4457     if test -n "$YACC"; then
4458 mmeineke 791 echo "$as_me:$LINENO: result: $YACC" >&5
4459 gezelter 749 echo "${ECHO_T}$YACC" >&6
4460     else
4461 mmeineke 791 echo "$as_me:$LINENO: result: no" >&5
4462 gezelter 749 echo "${ECHO_T}no" >&6
4463     fi
4464    
4465     test -n "$YACC" && break
4466     done
4467     test -n "$YACC" || YACC="yacc"
4468    
4469 mmeineke 791
4470 gezelter 749 for ac_prog in flex lex
4471     do
4472     # Extract the first word of "$ac_prog", so it can be a program name with args.
4473     set dummy $ac_prog; ac_word=$2
4474 mmeineke 791 echo "$as_me:$LINENO: checking for $ac_word" >&5
4475 gezelter 749 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4476     if test "${ac_cv_prog_LEX+set}" = set; then
4477     echo $ECHO_N "(cached) $ECHO_C" >&6
4478     else
4479     if test -n "$LEX"; then
4480     ac_cv_prog_LEX="$LEX" # Let the user override the test.
4481     else
4482 mmeineke 791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4483     for as_dir in $PATH
4484     do
4485     IFS=$as_save_IFS
4486     test -z "$as_dir" && as_dir=.
4487     for ac_exec_ext in '' $ac_executable_extensions; do
4488     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4489     ac_cv_prog_LEX="$ac_prog"
4490     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4491     break 2
4492     fi
4493 gezelter 749 done
4494 mmeineke 791 done
4495 gezelter 749
4496     fi
4497     fi
4498     LEX=$ac_cv_prog_LEX
4499     if test -n "$LEX"; then
4500 mmeineke 791 echo "$as_me:$LINENO: result: $LEX" >&5
4501 gezelter 749 echo "${ECHO_T}$LEX" >&6
4502     else
4503 mmeineke 791 echo "$as_me:$LINENO: result: no" >&5
4504 gezelter 749 echo "${ECHO_T}no" >&6
4505     fi
4506    
4507     test -n "$LEX" && break
4508     done
4509     test -n "$LEX" || LEX=":"
4510    
4511     if test -z "$LEXLIB"
4512     then
4513 mmeineke 791 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
4514 gezelter 749 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
4515     if test "${ac_cv_lib_fl_yywrap+set}" = set; then
4516     echo $ECHO_N "(cached) $ECHO_C" >&6
4517     else
4518     ac_check_lib_save_LIBS=$LIBS
4519     LIBS="-lfl $LIBS"
4520     cat >conftest.$ac_ext <<_ACEOF
4521 mmeineke 791 #line $LINENO "configure"
4522     /* confdefs.h. */
4523     _ACEOF
4524     cat confdefs.h >>conftest.$ac_ext
4525     cat >>conftest.$ac_ext <<_ACEOF
4526     /* end confdefs.h. */
4527 gezelter 749
4528     /* Override any gcc2 internal prototype to avoid an error. */
4529     #ifdef __cplusplus
4530     extern "C"
4531     #endif
4532     /* We use char because int might match the return type of a gcc2
4533     builtin and then its argument prototype would still apply. */
4534     char yywrap ();
4535     int
4536     main ()
4537     {
4538     yywrap ();
4539     ;
4540     return 0;
4541     }
4542     _ACEOF
4543     rm -f conftest.$ac_objext conftest$ac_exeext
4544 mmeineke 791 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4545 gezelter 749 (eval $ac_link) 2>&5
4546     ac_status=$?
4547 mmeineke 791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4548 gezelter 749 (exit $ac_status); } &&
4549     { ac_try='test -s conftest$ac_exeext'
4550 mmeineke 791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4551 gezelter 749 (eval $ac_try) 2>&5
4552     ac_status=$?
4553 mmeineke 791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4554 gezelter 749 (exit $ac_status); }; }; then
4555     ac_cv_lib_fl_yywrap=yes
4556     else
4557     echo "$as_me: failed program was:" >&5
4558 mmeineke 791 sed 's/^/| /' conftest.$ac_ext >&5
4559    
4560 gezelter 749 ac_cv_lib_fl_yywrap=no
4561     fi
4562     rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4563     LIBS=$ac_check_lib_save_LIBS
4564     fi
4565 mmeineke 791 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
4566 gezelter 749 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
4567     if test $ac_cv_lib_fl_yywrap = yes; then
4568     LEXLIB="-lfl"
4569     else
4570 mmeineke 791 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
4571 gezelter 749 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
4572     if test "${ac_cv_lib_l_yywrap+set}" = set; then
4573     echo $ECHO_N "(cached) $ECHO_C" >&6
4574     else
4575     ac_check_lib_save_LIBS=$LIBS
4576     LIBS="-ll $LIBS"
4577     cat >conftest.$ac_ext <<_ACEOF
4578 mmeineke 791 #line $LINENO "configure"
4579     /* confdefs.h. */
4580     _ACEOF
4581     cat confdefs.h >>conftest.$ac_ext
4582     cat >>conftest.$ac_ext <<_ACEOF
4583     /* end confdefs.h. */
4584 gezelter 749
4585     /* Override any gcc2 internal prototype to avoid an error. */
4586     #ifdef __cplusplus
4587     extern "C"
4588     #endif
4589     /* We use char because int might match the return type of a gcc2
4590     builtin and then its argument prototype would still apply. */
4591     char yywrap ();
4592     int
4593     main ()
4594     {
4595     yywrap ();
4596     ;
4597     return 0;
4598     }
4599     _ACEOF
4600     rm -f conftest.$ac_objext conftest$ac_exeext
4601 mmeineke 791 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4602 gezelter 749 (eval $ac_link) 2>&5
4603     ac_status=$?
4604 mmeineke 791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4605 gezelter 749 (exit $ac_status); } &&
4606     { ac_try='test -s conftest$ac_exeext'
4607 mmeineke 791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4608 gezelter 749 (eval $ac_try) 2>&5
4609     ac_status=$?
4610 mmeineke 791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4611 gezelter 749 (exit $ac_status); }; }; then
4612     ac_cv_lib_l_yywrap=yes
4613     else
4614     echo "$as_me: failed program was:" >&5
4615 mmeineke 791 sed 's/^/| /' conftest.$ac_ext >&5
4616    
4617 gezelter 749 ac_cv_lib_l_yywrap=no
4618     fi
4619     rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4620     LIBS=$ac_check_lib_save_LIBS
4621     fi
4622 mmeineke 791 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
4623 gezelter 749 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
4624     if test $ac_cv_lib_l_yywrap = yes; then
4625     LEXLIB="-ll"
4626     fi
4627    
4628     fi
4629    
4630     fi
4631    
4632     if test "x$LEX" != "x:"; then
4633 mmeineke 791 echo "$as_me:$LINENO: checking lex output file root" >&5
4634 gezelter 749 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
4635     if test "${ac_cv_prog_lex_root+set}" = set; then
4636     echo $ECHO_N "(cached) $ECHO_C" >&6
4637     else
4638     # The minimal lex program is just a single line: %%. But some broken lexes
4639     # (Solaris, I think it was) want two %% lines, so accommodate them.
4640 mmeineke 791 cat >conftest.l <<_ACEOF
4641     %%
4642     %%
4643     _ACEOF
4644     { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
4645     (eval $LEX conftest.l) 2>&5
4646     ac_status=$?
4647     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4648     (exit $ac_status); }
4649 gezelter 749 if test -f lex.yy.c; then
4650     ac_cv_prog_lex_root=lex.yy
4651     elif test -f lexyy.c; then
4652     ac_cv_prog_lex_root=lexyy
4653     else
4654 mmeineke 791 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
4655 gezelter 749 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
4656     { (exit 1); exit 1; }; }
4657     fi
4658     fi
4659 mmeineke 791 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
4660 gezelter 749 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
4661 mmeineke 791 rm -f conftest.l
4662 gezelter 749 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4663    
4664 mmeineke 791 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
4665 gezelter 749 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
4666     if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
4667     echo $ECHO_N "(cached) $ECHO_C" >&6
4668     else
4669     # POSIX says lex can declare yytext either as a pointer or an array; the
4670     # default is implementation-dependent. Figure out which it is, since
4671     # not all implementations provide the %pointer and %array declarations.
4672     ac_cv_prog_lex_yytext_pointer=no
4673     echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
4674     ac_save_LIBS=$LIBS
4675     LIBS="$LIBS $LEXLIB"
4676     cat >conftest.$ac_ext <<_ACEOF
4677     `cat $LEX_OUTPUT_ROOT.c`
4678     _ACEOF
4679     rm -f conftest.$ac_objext conftest$ac_exeext
4680 mmeineke 791 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4681 gezelter 749 (eval $ac_link) 2>&5
4682     ac_status=$?
4683 mmeineke 791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4684 gezelter 749 (exit $ac_status); } &&
4685     { ac_try='test -s conftest$ac_exeext'
4686 mmeineke 791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4687 gezelter 749 (eval $ac_try) 2>&5
4688     ac_status=$?
4689 mmeineke 791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4690 gezelter 749 (exit $ac_status); }; }; then
4691     ac_cv_prog_lex_yytext_pointer=yes
4692     else
4693     echo "$as_me: failed program was:" >&5
4694 mmeineke 791 sed 's/^/| /' conftest.$ac_ext >&5
4695    
4696 gezelter 749 fi
4697     rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4698     LIBS=$ac_save_LIBS
4699     rm -f "${LEX_OUTPUT_ROOT}.c"
4700    
4701     fi
4702 mmeineke 791 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
4703 gezelter 749 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
4704     if test $ac_cv_prog_lex_yytext_pointer = yes; then
4705    
4706 mmeineke 791 cat >>confdefs.h <<\_ACEOF
4707 gezelter 749 #define YYTEXT_POINTER 1
4708 mmeineke 791 _ACEOF
4709 gezelter 749
4710     fi
4711    
4712     fi
4713     # Extract the first word of "ar", so it can be a program name with args.
4714     set dummy ar; ac_word=$2
4715 mmeineke 791 echo "$as_me:$LINENO: checking for $ac_word" >&5
4716 gezelter 749 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4717     if test "${ac_cv_prog_AR+set}" = set; then
4718     echo $ECHO_N "(cached) $ECHO_C" >&6
4719     else
4720     if test -n "$AR"; then
4721     ac_cv_prog_AR="$AR" # Let the user override the test.
4722     else
4723 mmeineke 791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4724     for as_dir in $PATH
4725     do
4726     IFS=$as_save_IFS
4727     test -z "$as_dir" && as_dir=.
4728     for ac_exec_ext in '' $ac_executable_extensions; do
4729     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4730     ac_cv_prog_AR="ar"
4731     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4732     break 2
4733     fi
4734 gezelter 749 done
4735 mmeineke 791 done
4736 gezelter 749
4737     test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="NONE"
4738     fi
4739     fi
4740     AR=$ac_cv_prog_AR
4741     if test -n "$AR"; then
4742 mmeineke 791 echo "$as_me:$LINENO: result: $AR" >&5
4743 gezelter 749 echo "${ECHO_T}$AR" >&6
4744     else
4745 mmeineke 791 echo "$as_me:$LINENO: result: no" >&5
4746 gezelter 749 echo "${ECHO_T}no" >&6
4747     fi
4748    
4749     if test "$AR" = "NONE"; then
4750 mmeineke 791 { { echo "$as_me:$LINENO: error: --> Can't find \`ar'!" >&5
4751 gezelter 749 echo "$as_me: error: --> Can't find \`ar'!" >&2;}
4752     { (exit 1); exit 1; }; }
4753     cat >confcache <<\_ACEOF
4754     # This file is a shell script that caches the results of configure
4755     # tests run on this system so they can be shared between configure
4756     # scripts and configure runs, see configure's option --config-cache.
4757     # It is not useful on other systems. If it contains results you don't
4758     # want to keep, you may remove or edit it.
4759     #
4760     # config.status only pays attention to the cache file if you give it
4761     # the --recheck option to rerun configure.
4762     #
4763 mmeineke 791 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4764 gezelter 749 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4765     # following values.
4766    
4767     _ACEOF
4768    
4769     # The following way of writing the cache mishandles newlines in values,
4770     # but we know of no workaround that is simple, portable, and efficient.
4771     # So, don't put newlines in cache variables' values.
4772     # Ultrix sh set writes to stderr and can't be redirected directly,
4773     # and sets the high bit in the cache file unless we assign to the vars.
4774     {
4775     (set) 2>&1 |
4776     case `(ac_space=' '; set | grep ac_space) 2>&1` in
4777     *ac_space=\ *)
4778     # `set' does not quote correctly, so add quotes (double-quote
4779     # substitution turns \\\\ into \\, and sed turns \\ into \).
4780     sed -n \
4781     "s/'/'\\\\''/g;
4782 mmeineke 791 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4783 gezelter 749 ;;
4784     *)
4785     # `set' quotes correctly as required by POSIX, so do not add quotes.
4786     sed -n \
4787 mmeineke 791 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4788 gezelter 749 ;;
4789     esac;
4790     } |
4791     sed '
4792     t clear
4793     : clear
4794     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4795     t end
4796     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4797     : end' >>confcache
4798 mmeineke 791 if diff $cache_file confcache >/dev/null 2>&1; then :; else
4799 gezelter 749 if test -w $cache_file; then
4800     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4801     cat confcache >$cache_file
4802     else
4803     echo "not updating unwritable cache $cache_file"
4804     fi
4805     fi
4806     rm -f confcache
4807     exit 1
4808     fi
4809    
4810     ac_ext=f90
4811     ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
4812     ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4813     ac_compiler_gnu=$ac_cv_f90_compiler_gnu
4814    
4815 mmeineke 791
4816    
4817 gezelter 749 ac_ext=f90
4818     ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
4819     ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4820     ac_compiler_gnu=$ac_cv_f90_compiler_gnu
4821 mmeineke 791 echo "$as_me:$LINENO: checking how to get verbose linking output from $F90" >&5
4822 gezelter 749 echo $ECHO_N "checking how to get verbose linking output from $F90... $ECHO_C" >&6
4823     if test "${ac_cv_prog_f90_v+set}" = set; then
4824     echo $ECHO_N "(cached) $ECHO_C" >&6
4825     else
4826    
4827     cat >conftest.$ac_ext <<_ACEOF
4828    
4829     program main
4830    
4831 mmeineke 791
4832 gezelter 749 end program main
4833    
4834     _ACEOF
4835     rm -f conftest.$ac_objext
4836 mmeineke 791 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4837 gezelter 749 (eval $ac_compile) 2>&5
4838     ac_status=$?
4839 mmeineke 791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4840 gezelter 749 (exit $ac_status); } &&
4841     { ac_try='test -s conftest.$ac_objext'
4842 mmeineke 791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4843 gezelter 749 (eval $ac_try) 2>&5
4844     ac_status=$?
4845 mmeineke 791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4846 gezelter 749 (exit $ac_status); }; }; then
4847     ac_cv_prog_f90_v=
4848     # Try some options frequently used verbose output
4849     for ac_verb in -v -verbose --verbose -V -\#\#\#; do
4850     ac_ext=f90
4851     ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
4852     ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4853     ac_compiler_gnu=$ac_cv_f90_compiler_gnu
4854    
4855     cat >conftest.$ac_ext <<_ACEOF
4856    
4857     program main
4858    
4859 mmeineke 791
4860 gezelter 749 end program main
4861    
4862     _ACEOF
4863    
4864     # Compile and link our simple test program by passing a flag (argument
4865     # 1 to this macro) to the Fortran 90 compiler in order to get
4866     # "verbose" output that we can then parse for the Fortran 90 linker
4867     # flags.
4868     ac_save_F90FLAGS=$F90FLAGS
4869     F90FLAGS="$F90FLAGS $ac_verb"
4870    
4871 gezelter 826 (eval echo $as_me:4871: \"$ac_link\") >&5
4872 gezelter 749 ac_f90_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
4873     echo "$ac_f90_v_output" >&5
4874     F90FLAGS=$ac_save_F90FLAGS
4875    
4876     rm -f conftest.*
4877     ac_ext=f90
4878     ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
4879     ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4880     ac_compiler_gnu=$ac_cv_f90_compiler_gnu
4881    
4882     # If we are using xlf then replace all the commas with spaces.
4883     if echo $ac_f90_v_output | grep xlfentry >/dev/null 2>&1; then
4884     ac_f90_v_output=`echo $ac_f90_v_output | sed 's/,/ /g'`
4885     fi
4886    
4887     # If we are using Cray Fortran then delete quotes.
4888     # Use "\"" instead of '"' for font-lock-mode.
4889     # FIXME: a more general fix for quoted arguments with spaces?
4890     if echo $ac_f90_v_output | grep cft90 >/dev/null 2>&1; then
4891     ac_f90_v_output=`echo $ac_f90_v_output | sed "s/\"//g"`
4892     fi
4893     # look for -l* and *.a constructs in the output
4894     for ac_arg in $ac_f90_v_output; do
4895     case $ac_arg in
4896     [\\/]*.a | ?:[\\/]*.a | -[lLRu]*)
4897     ac_cv_prog_f90_v=$ac_verb
4898     break 2 ;;
4899     esac
4900     done
4901     done
4902     if test -z "$ac_cv_prog_f90_v"; then
4903 mmeineke 791 { echo "$as_me:$LINENO: WARNING: cannot determine how to obtain linking information from $F90" >&5
4904 gezelter 749 echo "$as_me: WARNING: cannot determine how to obtain linking information from $F90" >&2;}
4905     fi
4906     else
4907     echo "$as_me: failed program was:" >&5
4908 mmeineke 791 sed 's/^/| /' conftest.$ac_ext >&5
4909    
4910     { echo "$as_me:$LINENO: WARNING: compilation failed" >&5
4911 gezelter 749 echo "$as_me: WARNING: compilation failed" >&2;}
4912     fi
4913     rm -f conftest.$ac_objext conftest.$ac_ext
4914    
4915     fi
4916 mmeineke 791 echo "$as_me:$LINENO: result: $ac_cv_prog_f90_v" >&5
4917 gezelter 749 echo "${ECHO_T}$ac_cv_prog_f90_v" >&6
4918 mmeineke 791 echo "$as_me:$LINENO: checking for Fortran 90 libraries" >&5
4919 gezelter 749 echo $ECHO_N "checking for Fortran 90 libraries... $ECHO_C" >&6
4920     if test "${ac_cv_flibs+set}" = set; then
4921     echo $ECHO_N "(cached) $ECHO_C" >&6
4922     else
4923     if test "x$F90LIBS" != "x"; then
4924     ac_cv_f90libs="$F90LIBS" # Let the user override the test.
4925     else
4926    
4927     ac_ext=f90
4928     ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
4929     ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4930     ac_compiler_gnu=$ac_cv_f90_compiler_gnu
4931    
4932     cat >conftest.$ac_ext <<_ACEOF
4933    
4934     program main
4935    
4936 mmeineke 791
4937 gezelter 749 end program main
4938    
4939     _ACEOF
4940    
4941     # Compile and link our simple test program by passing a flag (argument
4942     # 1 to this macro) to the Fortran 90 compiler in order to get
4943     # "verbose" output that we can then parse for the Fortran 90 linker
4944     # flags.
4945     ac_save_F90FLAGS=$F90FLAGS
4946     F90FLAGS="$F90FLAGS $ac_cv_prog_f90_v"
4947    
4948 gezelter 826 (eval echo $as_me:4948: \"$ac_link\") >&5
4949 gezelter 749 ac_f90_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
4950     echo "$ac_f90_v_output" >&5
4951     F90FLAGS=$ac_save_F90FLAGS
4952    
4953     rm -f conftest.*
4954     ac_ext=f90
4955     ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
4956     ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4957     ac_compiler_gnu=$ac_cv_f90_compiler_gnu
4958    
4959     # If we are using xlf then replace all the commas with spaces.
4960     if echo $ac_f90_v_output | grep xlfentry >/dev/null 2>&1; then
4961     ac_f90_v_output=`echo $ac_f90_v_output | sed 's/,/ /g'`
4962     fi
4963    
4964     # If we are using Cray Fortran then delete quotes.
4965     # Use "\"" instead of '"' for font-lock-mode.
4966     # FIXME: a more general fix for quoted arguments with spaces?
4967     if echo $ac_f90_v_output | grep cft90 >/dev/null 2>&1; then
4968     ac_f90_v_output=`echo $ac_f90_v_output | sed "s/\"//g"`
4969     fi
4970    
4971     ac_cv_f90libs=
4972    
4973     # Save positional arguments (if any)
4974     ac_save_positional="$@"
4975    
4976     set X $ac_f90_v_output
4977     while test $# != 1; do
4978     shift
4979     ac_arg=$1
4980     case $ac_arg in
4981     [\\/]*.a | ?:[\\/]*.a)
4982     ac_exists=false
4983     for ac_i in $ac_cv_f90libs; do
4984     if test x"$ac_arg" = x"$ac_i"; then
4985     ac_exists=true
4986     break
4987     fi
4988     done
4989    
4990     if test x"$ac_exists" = xtrue; then
4991     :
4992     else
4993     ac_cv_f90libs="$ac_cv_f90libs $ac_arg"
4994     fi
4995    
4996     ;;
4997     -bI:*)
4998     ac_exists=false
4999     for ac_i in $ac_cv_f90libs; do
5000     if test x"$ac_arg" = x"$ac_i"; then
5001     ac_exists=true
5002     break
5003     fi
5004     done
5005    
5006     if test x"$ac_exists" = xtrue; then
5007     :
5008     else
5009     if test "$ac_compiler_gnu" = yes; then
5010     for ac_link_opt in $ac_arg; do
5011     ac_cv_f90libs="$ac_cv_f90libs -Xlinker $ac_link_opt"
5012     done
5013     else
5014     ac_cv_f90libs="$ac_cv_f90libs $ac_arg"
5015     fi
5016     fi
5017    
5018     ;;
5019     # Ignore these flags.
5020     -lang* | -lcrt0.o | -lc | -lgcc | -LANG:=*)
5021     ;;
5022     -lkernel32)
5023     test x"$CYGWIN" != xyes && ac_cv_f90libs="$ac_cv_f90libs $ac_arg"
5024     ;;
5025     -[LRuY])
5026     # These flags, when seen by themselves, take an argument.
5027     # We remove the space between option and argument and re-iterate
5028     # unless we find an empty arg or a new option (starting with -)
5029     case $2 in
5030     "" | -*);;
5031     *)
5032     ac_arg="$ac_arg$2"
5033    
5034     shift; shift
5035     set X $ac_arg "$@"
5036     ;;
5037     esac
5038     ;;
5039     -YP,*)
5040     for ac_j in `echo $ac_arg | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do
5041     ac_exists=false
5042     for ac_i in $ac_cv_f90libs; do
5043     if test x"$ac_j" = 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_arg="$ac_arg $ac_j"
5053     ac_cv_f90libs="$ac_cv_f90libs $ac_j"
5054     fi
5055    
5056     done
5057     ;;
5058     -[lLR]*)
5059     ac_exists=false
5060     for ac_i in $ac_cv_f90libs; do
5061     if test x"$ac_arg" = x"$ac_i"; then
5062     ac_exists=true
5063     break
5064     fi
5065     done
5066    
5067     if test x"$ac_exists" = xtrue; then
5068     :
5069     else
5070     ac_cv_f90libs="$ac_cv_f90libs $ac_arg"
5071     fi
5072    
5073     ;;
5074     # Ignore everything else.
5075     esac
5076     done
5077     # restore positional arguments
5078     set X $ac_save_positional; shift
5079    
5080     # We only consider "LD_RUN_PATH" on Solaris systems. If this is seen,
5081     # then we insist that the "run path" must be an absolute path (i.e. it
5082     # must begin with a "/").
5083     case `(uname -sr) 2>/dev/null` in
5084     "SunOS 5"*)
5085     ac_ld_run_path=`echo $ac_f90_v_output |
5086     sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'`
5087     test "x$ac_ld_run_path" != x &&
5088    
5089     if test "$ac_compiler_gnu" = yes; then
5090     for ac_link_opt in $ac_ld_run_path; do
5091     ac_cv_f90libs="$ac_cv_f90libs -Xlinker $ac_link_opt"
5092     done
5093     else
5094     ac_cv_f90libs="$ac_cv_f90libs $ac_ld_run_path"
5095     fi
5096     ;;
5097     esac
5098     fi # test "x$F90LIBS" = "x"
5099    
5100     fi
5101 mmeineke 791 echo "$as_me:$LINENO: result: $ac_cv_flibs" >&5
5102 gezelter 749 echo "${ECHO_T}$ac_cv_flibs" >&6
5103     F90LIBS="$ac_cv_f90libs"
5104    
5105     ac_ext=f90
5106     ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
5107     ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5108     ac_compiler_gnu=$ac_cv_f90_compiler_gnu
5109    
5110 mmeineke 791 echo "$as_me:$LINENO: checking for Fortran 90 name-mangling scheme" >&5
5111 gezelter 749 echo $ECHO_N "checking for Fortran 90 name-mangling scheme... $ECHO_C" >&6
5112     if test "${ac_cv_f90_mangling+set}" = set; then
5113     echo $ECHO_N "(cached) $ECHO_C" >&6
5114     else
5115     ac_ext=f90
5116     ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
5117     ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5118     ac_compiler_gnu=$ac_cv_f90_compiler_gnu
5119     cat >conftest.$ac_ext <<_ACEOF
5120     subroutine foobar()
5121     return
5122     end
5123     subroutine foo_bar()
5124     return
5125     end
5126     _ACEOF
5127     rm -f conftest.$ac_objext
5128 mmeineke 791 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5129 gezelter 749 (eval $ac_compile) 2>&5
5130     ac_status=$?
5131 mmeineke 791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5132 gezelter 749 (exit $ac_status); } &&
5133     { ac_try='test -s conftest.$ac_objext'
5134 mmeineke 791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5135 gezelter 749 (eval $ac_try) 2>&5
5136     ac_status=$?
5137 mmeineke 791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5138 gezelter 749 (exit $ac_status); }; }; then
5139     mv conftest.$ac_objext cf90_test.$ac_objext
5140    
5141     ac_ext=c
5142     ac_cpp='$CPP $CPPFLAGS'
5143     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5144     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5145     ac_compiler_gnu=$ac_cv_c_compiler_gnu
5146    
5147     ac_save_LIBS=$LIBS
5148     LIBS="cf90_test.$ac_objext $F90LIBS $LIBS"
5149    
5150     ac_success=no
5151     for ac_foobar in foobar FOOBAR; do
5152     for ac_underscore in "" "_"; do
5153     ac_func="$ac_foobar$ac_underscore"
5154     cat >conftest.$ac_ext <<_ACEOF
5155 mmeineke 791 #line $LINENO "configure"
5156     /* confdefs.h. */
5157     _ACEOF
5158     cat confdefs.h >>conftest.$ac_ext
5159     cat >>conftest.$ac_ext <<_ACEOF
5160     /* end confdefs.h. */
5161 gezelter 749
5162     /* Override any gcc2 internal prototype to avoid an error. */
5163     #ifdef __cplusplus
5164     extern "C"
5165     #endif
5166     /* We use char because int might match the return type of a gcc2
5167     builtin and then its argument prototype would still apply. */
5168     char $ac_func ();
5169     int
5170     main ()
5171     {
5172     $ac_func ();
5173     ;
5174     return 0;
5175     }
5176     _ACEOF
5177     rm -f conftest.$ac_objext conftest$ac_exeext
5178 mmeineke 791 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5179 gezelter 749 (eval $ac_link) 2>&5
5180     ac_status=$?
5181 mmeineke 791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5182 gezelter 749 (exit $ac_status); } &&
5183     { ac_try='test -s conftest$ac_exeext'
5184 mmeineke 791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5185 gezelter 749 (eval $ac_try) 2>&5
5186     ac_status=$?
5187 mmeineke 791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5188 gezelter 749 (exit $ac_status); }; }; then
5189     ac_success=yes; break 2
5190     else
5191     echo "$as_me: failed program was:" >&5
5192 mmeineke 791 sed 's/^/| /' conftest.$ac_ext >&5
5193    
5194 gezelter 749 fi
5195     rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5196     done
5197     done
5198    
5199     if test "$ac_success" = "yes"; then
5200     case $ac_foobar in
5201     foobar)
5202     ac_case=lower
5203     ac_foo_bar=foo_bar
5204     ;;
5205     FOOBAR)
5206     ac_case=upper
5207     ac_foo_bar=FOO_BAR
5208     ;;
5209     esac
5210    
5211     ac_success_extra=no
5212     for ac_extra in "" "_"; do
5213     ac_func="$ac_foo_bar$ac_underscore$ac_extra"
5214    
5215     cat >conftest.$ac_ext <<_ACEOF
5216 mmeineke 791 #line $LINENO "configure"
5217     /* confdefs.h. */
5218     _ACEOF
5219     cat confdefs.h >>conftest.$ac_ext
5220     cat >>conftest.$ac_ext <<_ACEOF
5221     /* end confdefs.h. */
5222 gezelter 749
5223     /* Override any gcc2 internal prototype to avoid an error. */
5224     #ifdef __cplusplus
5225     extern "C"
5226     #endif
5227     /* We use char because int might match the return type of a gcc2
5228     builtin and then its argument prototype would still apply. */
5229     char $ac_func ();
5230     int
5231     main ()
5232     {
5233     $ac_func ();
5234     ;
5235     return 0;
5236     }
5237     _ACEOF
5238     rm -f conftest.$ac_objext conftest$ac_exeext
5239 mmeineke 791 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5240 gezelter 749 (eval $ac_link) 2>&5
5241     ac_status=$?
5242 mmeineke 791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5243 gezelter 749 (exit $ac_status); } &&
5244     { ac_try='test -s conftest$ac_exeext'
5245 mmeineke 791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5246 gezelter 749 (eval $ac_try) 2>&5
5247     ac_status=$?
5248 mmeineke 791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5249 gezelter 749 (exit $ac_status); }; }; then
5250     ac_success_extra=yes; break
5251     else
5252     echo "$as_me: failed program was:" >&5
5253 mmeineke 791 sed 's/^/| /' conftest.$ac_ext >&5
5254    
5255 gezelter 749 fi
5256     rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5257     done
5258    
5259     if test "$ac_success_extra" = "yes"; then
5260     ac_cv_f90_mangling="$ac_case case"
5261     if test -z "$ac_underscore"; then
5262     ac_cv_f90_mangling="$ac_cv_f90_mangling, no underscore"
5263     else
5264     ac_cv_f90_mangling="$ac_cv_f90_mangling, underscore"
5265    
5266     fi
5267     if test -z "$ac_extra"; then
5268     ac_cv_f90_mangling="$ac_cv_f90_mangling, no extra underscore"
5269     else
5270     ac_cv_f90_mangling="$ac_cv_f90_mangling, extra underscore"
5271     fi
5272     else
5273     ac_cv_f90_mangling="unknown"
5274     fi
5275     else
5276     ac_cv_f90_mangling="unknown"
5277    
5278     fi
5279    
5280     LIBS=$ac_save_LIBS
5281     ac_ext=f90
5282     ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
5283     ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5284     ac_compiler_gnu=$ac_cv_f90_compiler_gnu
5285     rm -f cf90_test* conftest*
5286     else
5287     echo "$as_me: failed program was:" >&5
5288 mmeineke 791 sed 's/^/| /' conftest.$ac_ext >&5
5289    
5290 gezelter 749 fi
5291     rm -f conftest.$ac_objext conftest.$ac_ext
5292     ac_ext=f90
5293     ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
5294     ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5295     ac_compiler_gnu=$ac_cv_f90_compiler_gnu
5296    
5297     fi
5298 mmeineke 791 echo "$as_me:$LINENO: result: $ac_cv_f90_mangling" >&5
5299 gezelter 749 echo "${ECHO_T}$ac_cv_f90_mangling" >&6
5300    
5301 mmeineke 791
5302    
5303 gezelter 749 case $ac_cv_f90_mangling in
5304     "lower case, no underscore, no extra underscore")
5305 mmeineke 791 cat >>confdefs.h <<\_ACEOF
5306 gezelter 749 #define F90_FUNC(name,NAME) name
5307 mmeineke 791 _ACEOF
5308 gezelter 749
5309 mmeineke 791 cat >>confdefs.h <<\_ACEOF
5310 gezelter 749 #define F90_FUNC_(name,NAME) name
5311 mmeineke 791 _ACEOF
5312 gezelter 749 ;;
5313     "lower case, no underscore, extra underscore")
5314 mmeineke 791 cat >>confdefs.h <<\_ACEOF
5315 gezelter 749 #define F90_FUNC(name,NAME) name
5316 mmeineke 791 _ACEOF
5317 gezelter 749
5318 mmeineke 791 cat >>confdefs.h <<\_ACEOF
5319 gezelter 749 #define F90_FUNC_(name,NAME) name ## _
5320 mmeineke 791 _ACEOF
5321 gezelter 749 ;;
5322     "lower case, underscore, no extra underscore")
5323 mmeineke 791 cat >>confdefs.h <<\_ACEOF
5324 gezelter 749 #define F90_FUNC(name,NAME) name ## _
5325 mmeineke 791 _ACEOF
5326 gezelter 749
5327 mmeineke 791 cat >>confdefs.h <<\_ACEOF
5328 gezelter 749 #define F90_FUNC_(name,NAME) name ## _
5329 mmeineke 791 _ACEOF
5330 gezelter 749 ;;
5331     "lower case, underscore, extra underscore")
5332 mmeineke 791 cat >>confdefs.h <<\_ACEOF
5333 gezelter 749 #define F90_FUNC(name,NAME) name ## _
5334 mmeineke 791 _ACEOF
5335 gezelter 749
5336 mmeineke 791 cat >>confdefs.h <<\_ACEOF
5337 gezelter 749 #define F90_FUNC_(name,NAME) name ## __
5338 mmeineke 791 _ACEOF
5339 gezelter 749 ;;
5340     "upper case, no underscore, no extra underscore")
5341 mmeineke 791 cat >>confdefs.h <<\_ACEOF
5342 gezelter 749 #define F90_FUNC(name,NAME) NAME
5343 mmeineke 791 _ACEOF
5344 gezelter 749
5345 mmeineke 791 cat >>confdefs.h <<\_ACEOF
5346 gezelter 749 #define F90_FUNC_(name,NAME) NAME
5347 mmeineke 791 _ACEOF
5348 gezelter 749 ;;
5349     "upper case, no underscore, extra underscore")
5350 mmeineke 791 cat >>confdefs.h <<\_ACEOF
5351 gezelter 749 #define F90_FUNC(name,NAME) NAME
5352 mmeineke 791 _ACEOF
5353 gezelter 749
5354 mmeineke 791 cat >>confdefs.h <<\_ACEOF
5355 gezelter 749 #define F90_FUNC_(name,NAME) NAME ## _
5356 mmeineke 791 _ACEOF
5357 gezelter 749 ;;
5358     "upper case, underscore, no extra underscore")
5359 mmeineke 791 cat >>confdefs.h <<\_ACEOF
5360 gezelter 749 #define F90_FUNC(name,NAME) NAME ## _
5361 mmeineke 791 _ACEOF
5362 gezelter 749
5363 mmeineke 791 cat >>confdefs.h <<\_ACEOF
5364 gezelter 749 #define F90_FUNC_(name,NAME) NAME ## _
5365 mmeineke 791 _ACEOF
5366 gezelter 749 ;;
5367     "upper case, underscore, extra underscore")
5368 mmeineke 791 cat >>confdefs.h <<\_ACEOF
5369 gezelter 749 #define F90_FUNC(name,NAME) NAME ## _
5370 mmeineke 791 _ACEOF
5371 gezelter 749
5372 mmeineke 791 cat >>confdefs.h <<\_ACEOF
5373 gezelter 749 #define F90_FUNC_(name,NAME) NAME ## __
5374 mmeineke 791 _ACEOF
5375 gezelter 749 ;;
5376     *)
5377 mmeineke 791 { echo "$as_me:$LINENO: WARNING: unknown Fortran 90 name-mangling scheme" >&5
5378 gezelter 749 echo "$as_me: WARNING: unknown Fortran 90 name-mangling scheme" >&2;}
5379     ;;
5380     esac
5381    
5382 mmeineke 791
5383    
5384    
5385 gezelter 826
5386     echo "$as_me:$LINENO: checking for module suffix" >&5
5387     echo $ECHO_N "checking for module suffix... $ECHO_C" >&6
5388     rm -f conftest*
5389     # Intel ifc compiler generates files by the name of work.pc and work.pcl (!)
5390     rm -f work*
5391     cat >conftest.f <<EOF
5392     module conftest
5393     integer n
5394     parameter (n=1)
5395     end module conftest
5396     EOF
5397     # SGI and absoft compilers generates module name in upper case!
5398     testname="conftest"
5399     modcase="lower"
5400     if $F90 -c conftest.f > conftest.out 2>&1 ; then
5401     MOD=`ls conftest* | grep -v conftest.f | grep -v conftest.o`
5402     MOD=`echo "$MOD" | sed -e 's/conftest\.//g'`
5403     if test -z "$MOD" ; then
5404     MOD=`ls CONFTEST* 2>/dev/null \
5405     | grep -v CONFTEST.f | grep -v CONFTEST.o`
5406     MOD=`echo "$MOD" | sed -e 's/CONFTEST\.//g'`
5407     if test -n "$MOD" ; then
5408     testname="CONFTEST"
5409     modcase="upper"
5410     fi
5411     fi
5412     if test -z "$MOD" ; then
5413     echo "$as_me:$LINENO: result: unknown" >&5
5414     echo "${ECHO_T}unknown" >&6
5415     # Use mod if we can't figure it out
5416     MOD="mod"
5417     else
5418     echo "$as_me:$LINENO: result: $MOD" >&5
5419     echo "${ECHO_T}$MOD" >&6
5420     fi
5421     if test -s work.pcl ; then
5422     { echo "$as_me:$LINENO: WARNING: Compiler generates auxillery files!" >&5
5423     echo "$as_me: WARNING: Compiler generates auxillery files!" >&2;}
5424     fi
5425     else
5426     echo "$as_me:$LINENO: result: unknown" >&5
5427     echo "${ECHO_T}unknown" >&6
5428     fi
5429    
5430    
5431    
5432    
5433    
5434     # Check for module include path (some use -I, some (Solaris) use -M, some
5435     # (absoft) use -p).
5436     # Intel compilers use a wierd system: -cl,filename.pcl . If no file is
5437     # specified, work.pcl and work.pc are created. However, if you specify
5438     # a file, it must contain a the name of a file ending in .pc . Ugh!
5439     # Use the module made above
5440     echo "$as_me:$LINENO: checking for module directory path flag" >&5
5441     echo $ECHO_N "checking for module directory path flag... $ECHO_C" >&6
5442     madedir=0
5443     if test ! -d conf ; then mkdir conf ; madedir=1; fi
5444     cp $testname.$MOD conf
5445     rm -f conftest* CONFTEST*
5446     cat >conftest1.f <<EOF
5447     program main
5448     use conftest
5449     print *, n
5450     end
5451     EOF
5452     F90_WORK_FILES_ARG=""
5453     F90MODINCSPEC=""
5454     if $F90 -c -Iconf conftest1.f > conftest.out 2>&1 ; then
5455     MODDIRFLAG="-I"
5456     F90MODINCSPEC="-I<dir>"
5457     echo "$as_me:$LINENO: result: -I" >&5
5458     echo "${ECHO_T}-I" >&6
5459     elif $F90 -c -Mconf conftest1.f >> conftest.out 2>&1 ; then
5460     MODDIRFLAG="-M"
5461     F90MODINCSPEC="-M<dir>"
5462     echo "$as_me:$LINENO: result: -M" >&5
5463     echo "${ECHO_T}-M" >&6
5464     elif $F90 -c -pconf conftest1.f >> conftest.out 2>&1 ; then
5465     MODDIRFLAG="-p"
5466     F90MODINCSPEC="-p<dir>"
5467     echo "$as_me:$LINENO: result: -p" >&5
5468     echo "${ECHO_T}-p" >&6
5469     elif test -s work.pc ; then
5470     cp work.pc conf/mpimod.pc
5471     echo "mpimod.pc" > conf/mpimod.pcl
5472     echo "`pwd`/conf/mpimod.pc" >> conf/mpimod.pcl
5473     if $F90 -c -cl,conf/mpimod.pcl conftest1.f >>conftest.out 2>&1 ; then
5474     MODDIRFLAG='-cl,mpimod.pcl'
5475     echo "$as_me:$LINENO: result: -cl,filename where filename contains a list of files and
5476     directories" >&5
5477     echo "${ECHO_T}-cl,filename where filename contains a list of files and
5478     directories" >&6
5479     F90_WORK_FILES_ARG="-cl,mpimod.pcl"
5480     F90MODINCSPEC="-cl,<dir>/<file>mod.pcl"
5481    
5482     else
5483     # The version of the Intel compiler that I have refuses to let
5484     # you put the "work catalog" list anywhere but the current directory.
5485     # For example, you cannot in
5486     :
5487     fi
5488     fi
5489     if test -z "MODDIRFLAG" ; then
5490     echo "$as_me:$LINENO: result: unknown" >&5
5491     echo "${ECHO_T}unknown" >&6
5492     fi
5493    
5494    
5495     rm -f conftest* conf/conftest* conf/CONFTEST* CONFTEST* conf/mpimod*
5496     if test $madedir = 1 ; then rmdir conf ; fi
5497    
5498    
5499    
5500 mmeineke 791 echo "$as_me:$LINENO: checking for mpi-directory" >&5
5501 gezelter 749 echo $ECHO_N "checking for mpi-directory... $ECHO_C" >&6
5502    
5503 gezelter 786 # Check whether --with-mpi_dir or --without-mpi_dir was given.
5504     if test "${with_mpi_dir+set}" = set; then
5505     withval="$with_mpi_dir"
5506 gezelter 749 MPI_DIR="$withval"
5507     else
5508     MPI_DIR="/usr/local"
5509     fi;
5510 mmeineke 791 echo "$as_me:$LINENO: result: $MPI_DIR" >&5
5511 gezelter 749 echo "${ECHO_T}$MPI_DIR" >&6
5512    
5513 mmeineke 791
5514     echo "$as_me:$LINENO: checking for mpi-lib-directory" >&5
5515 gezelter 749 echo $ECHO_N "checking for mpi-lib-directory... $ECHO_C" >&6
5516    
5517 gezelter 786 # Check whether --with-mpi_libdir or --without-mpi_libdir was given.
5518     if test "${with_mpi_libdir+set}" = set; then
5519     withval="$with_mpi_libdir"
5520 gezelter 749 MPI_LIBDIR="$withval"
5521     else
5522     MPI_LIBDIR="$MPI_DIR/lib"
5523     fi;
5524 mmeineke 791 echo "$as_me:$LINENO: result: $MPI_LIBDIR" >&5
5525 gezelter 749 echo "${ECHO_T}$MPI_LIBDIR" >&6
5526    
5527 mmeineke 791
5528     echo "$as_me:$LINENO: checking for mpi-inc-directory" >&5
5529 gezelter 749 echo $ECHO_N "checking for mpi-inc-directory... $ECHO_C" >&6
5530    
5531 gezelter 786 # Check whether --with-mpi_inc or --without-mpi_inc was given.
5532     if test "${with_mpi_inc+set}" = set; then
5533     withval="$with_mpi_inc"
5534 gezelter 749 MPI_INC="$withval"
5535     else
5536     MPI_INC="$MPI_DIR/include"
5537     fi;
5538 mmeineke 791 echo "$as_me:$LINENO: result: $MPI_INC" >&5
5539 gezelter 749 echo "${ECHO_T}$MPI_INC" >&6
5540    
5541 mmeineke 791
5542    
5543     echo "$as_me:$LINENO: checking for MPI library" >&5
5544 gezelter 749 echo $ECHO_N "checking for MPI library... $ECHO_C" >&6
5545     MPI_LIB=""
5546     case "$host" in
5547     *-ibm-aix*)
5548 mmeineke 791 echo "$as_me:$LINENO: checking whether to use signal-based MPI library" >&5
5549 gezelter 749 echo $ECHO_N "checking whether to use signal-based MPI library... $ECHO_C" >&6
5550 mmeineke 791 echo "$as_me:$LINENO: result: $PACX_SIGNAL" >&5
5551 gezelter 749 echo "${ECHO_T}$PACX_SIGNAL" >&6
5552     if test "x$PACX_SIGNAL" = "xyes" ; then
5553     if test -f "$MPI_LIBDIR/libmpi.a" ; then
5554     MPI_LIB="-lmpi"
5555     elif test -f "$MPI_LIBDIR/libmpi.so" ; then
5556     MPI_LIB="-lmpi"
5557     elif test -f "$MPI_LIBDIR/libmpich.a" ; then
5558     MPI_LIB="-lmpich"
5559     else
5560 mmeineke 791 { { echo "$as_me:$LINENO: error: neither libmpi nor libmpich found; check path for MPI package first..." >&5
5561 gezelter 749 echo "$as_me: error: neither libmpi nor libmpich found; check path for MPI package first..." >&2;}
5562     { (exit 1); exit 1; }; }
5563     fi
5564     else
5565     if test -f "$MPI_LIBDIR/libmpi_r.a" ; then
5566     MPI_LIB="-lmpi_r"
5567     else
5568 mmeineke 791 { { echo "$as_me:$LINENO: error: libmpi_r not found; check path for MPI package..." >&5
5569 gezelter 749 echo "$as_me: error: libmpi_r not found; check path for MPI package..." >&2;}
5570     { (exit 1); exit 1; }; }
5571     fi
5572     fi
5573 mmeineke 791 echo "$as_me:$LINENO: result: found $MPI_LIB" >&5
5574 gezelter 749 echo "${ECHO_T}found $MPI_LIB" >&6
5575     ;;
5576     *) if test -f "$MPI_LIBDIR/libmpi.a" ; then
5577     MPI_LIB="-lmpi"
5578     elif test -f "$MPI_LIBDIR/libmpi.so" ; then
5579     MPI_LIB="-lmpi"
5580     elif test -f "$MPI_LIBDIR/libmpich.a" ; then
5581     MPI_LIB="-lmpich"
5582     else
5583 mmeineke 791 { { echo "$as_me:$LINENO: error: neither libmpi nor libmpich found; check path for MPI package first..." >&5
5584 gezelter 749 echo "$as_me: error: neither libmpi nor libmpich found; check path for MPI package first..." >&2;}
5585     { (exit 1); exit 1; }; }
5586     fi
5587 mmeineke 791 echo "$as_me:$LINENO: result: found $MPI_LIB" >&5
5588 gezelter 749 echo "${ECHO_T}found $MPI_LIB" >&6
5589     ;;
5590     esac
5591    
5592 mmeineke 791
5593    
5594    
5595    
5596    
5597    
5598 gezelter 749 for ac_prog in mpif90 hf90 mpxlf90 mpf90 mpxlf95 mpxlf_r
5599     do
5600     # Extract the first word of "$ac_prog", so it can be a program name with args.
5601     set dummy $ac_prog; ac_word=$2
5602 mmeineke 791 echo "$as_me:$LINENO: checking for $ac_word" >&5
5603 gezelter 749 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5604     if test "${ac_cv_prog_MPIF90+set}" = set; then
5605     echo $ECHO_N "(cached) $ECHO_C" >&6
5606     else
5607     if test -n "$MPIF90"; then
5608     ac_cv_prog_MPIF90="$MPIF90" # Let the user override the test.
5609     else
5610 mmeineke 791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5611     for as_dir in $PATH
5612     do
5613     IFS=$as_save_IFS
5614     test -z "$as_dir" && as_dir=.
5615     for ac_exec_ext in '' $ac_executable_extensions; do
5616     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5617     ac_cv_prog_MPIF90="$ac_prog"
5618     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5619     break 2
5620     fi
5621 gezelter 749 done
5622 mmeineke 791 done
5623 gezelter 749
5624     fi
5625     fi
5626     MPIF90=$ac_cv_prog_MPIF90
5627     if test -n "$MPIF90"; then
5628 mmeineke 791 echo "$as_me:$LINENO: result: $MPIF90" >&5
5629 gezelter 749 echo "${ECHO_T}$MPIF90" >&6
5630     else
5631 mmeineke 791 echo "$as_me:$LINENO: result: no" >&5
5632 gezelter 749 echo "${ECHO_T}no" >&6
5633     fi
5634    
5635     test -n "$MPIF90" && break
5636     done
5637     test -n "$MPIF90" || MPIF90="$F90"
5638    
5639     acx_mpi_save_F90="$F90"
5640     F90="$MPIF90"
5641    
5642 mmeineke 791
5643    
5644 gezelter 749 if test x = x"$MPILIBS"; then
5645 mmeineke 791 echo "$as_me:$LINENO: checking for MPI_Init" >&5
5646 gezelter 749 echo $ECHO_N "checking for MPI_Init... $ECHO_C" >&6
5647     cat >conftest.$ac_ext <<_ACEOF
5648    
5649     program main
5650    
5651     call MPI_Init
5652     end program main
5653    
5654     _ACEOF
5655     rm -f conftest.$ac_objext conftest$ac_exeext
5656 mmeineke 791 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5657 gezelter 749 (eval $ac_link) 2>&5
5658     ac_status=$?
5659 mmeineke 791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5660 gezelter 749 (exit $ac_status); } &&
5661     { ac_try='test -s conftest$ac_exeext'
5662 mmeineke 791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5663 gezelter 749 (eval $ac_try) 2>&5
5664     ac_status=$?
5665 mmeineke 791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5666 gezelter 749 (exit $ac_status); }; }; then
5667     MPILIBS=" "
5668 mmeineke 791 echo "$as_me:$LINENO: result: yes" >&5
5669 gezelter 749 echo "${ECHO_T}yes" >&6
5670     else
5671     echo "$as_me: failed program was:" >&5
5672 mmeineke 791 sed 's/^/| /' conftest.$ac_ext >&5
5673    
5674     echo "$as_me:$LINENO: result: no" >&5
5675 gezelter 749 echo "${ECHO_T}no" >&6
5676     fi
5677     rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5678     fi
5679     if test x = x"$MPILIBS"; then
5680 mmeineke 791 echo "$as_me:$LINENO: checking for MPI_Init in -lmpi" >&5
5681 gezelter 749 echo $ECHO_N "checking for MPI_Init in -lmpi... $ECHO_C" >&6
5682     if test "${ac_cv_lib_mpi_MPI_Init+set}" = set; then
5683     echo $ECHO_N "(cached) $ECHO_C" >&6
5684     else
5685     ac_check_lib_save_LIBS=$LIBS
5686     LIBS="-lmpi $LIBS"
5687     cat >conftest.$ac_ext <<_ACEOF
5688    
5689     program main
5690    
5691     call MPI_Init
5692     end program main
5693    
5694     _ACEOF
5695     rm -f conftest.$ac_objext conftest$ac_exeext
5696 mmeineke 791 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5697 gezelter 749 (eval $ac_link) 2>&5
5698     ac_status=$?
5699 mmeineke 791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5700 gezelter 749 (exit $ac_status); } &&
5701     { ac_try='test -s conftest$ac_exeext'
5702 mmeineke 791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5703 gezelter 749 (eval $ac_try) 2>&5
5704     ac_status=$?
5705 mmeineke 791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5706 gezelter 749 (exit $ac_status); }; }; then
5707     ac_cv_lib_mpi_MPI_Init=yes
5708     else
5709     echo "$as_me: failed program was:" >&5
5710 mmeineke 791 sed 's/^/| /' conftest.$ac_ext >&5
5711    
5712 gezelter 749 ac_cv_lib_mpi_MPI_Init=no
5713     fi
5714     rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5715     LIBS=$ac_check_lib_save_LIBS
5716     fi
5717 mmeineke 791 echo "$as_me:$LINENO: result: $ac_cv_lib_mpi_MPI_Init" >&5
5718 gezelter 749 echo "${ECHO_T}$ac_cv_lib_mpi_MPI_Init" >&6
5719     if test $ac_cv_lib_mpi_MPI_Init = yes; then
5720     MPILIBS="-lmpi"
5721     fi
5722    
5723     fi
5724     if test x = x"$MPILIBS"; then
5725 mmeineke 791 echo "$as_me:$LINENO: checking for MPI_Init in -lmpich" >&5
5726 gezelter 749 echo $ECHO_N "checking for MPI_Init in -lmpich... $ECHO_C" >&6
5727     if test "${ac_cv_lib_mpich_MPI_Init+set}" = set; then
5728     echo $ECHO_N "(cached) $ECHO_C" >&6
5729     else
5730     ac_check_lib_save_LIBS=$LIBS
5731     LIBS="-lmpich $LIBS"
5732     cat >conftest.$ac_ext <<_ACEOF
5733    
5734     program main
5735    
5736     call MPI_Init
5737     end program main
5738    
5739     _ACEOF
5740     rm -f conftest.$ac_objext conftest$ac_exeext
5741 mmeineke 791 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5742 gezelter 749 (eval $ac_link) 2>&5
5743     ac_status=$?
5744 mmeineke 791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5745 gezelter 749 (exit $ac_status); } &&
5746     { ac_try='test -s conftest$ac_exeext'
5747 mmeineke 791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5748 gezelter 749 (eval $ac_try) 2>&5
5749     ac_status=$?
5750 mmeineke 791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5751 gezelter 749 (exit $ac_status); }; }; then
5752     ac_cv_lib_mpich_MPI_Init=yes
5753     else
5754     echo "$as_me: failed program was:" >&5
5755 mmeineke 791 sed 's/^/| /' conftest.$ac_ext >&5
5756    
5757 gezelter 749 ac_cv_lib_mpich_MPI_Init=no
5758     fi
5759     rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5760     LIBS=$ac_check_lib_save_LIBS
5761     fi
5762 mmeineke 791 echo "$as_me:$LINENO: result: $ac_cv_lib_mpich_MPI_Init" >&5
5763 gezelter 749 echo "${ECHO_T}$ac_cv_lib_mpich_MPI_Init" >&6
5764     if test $ac_cv_lib_mpich_MPI_Init = yes; then
5765     MPILIBS="-lmpich"
5766     fi
5767    
5768     fi
5769    
5770 mmeineke 791
5771    
5772 gezelter 749 F90="$acx_mpi_save_F90"
5773    
5774 mmeineke 791
5775    
5776 gezelter 749 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
5777     if test x = x"$MPILIBS"; then
5778    
5779     :
5780     else
5781    
5782 mmeineke 791 cat >>confdefs.h <<\_ACEOF
5783 gezelter 749 #define HAVE_MPI 1
5784 mmeineke 791 _ACEOF
5785 gezelter 749
5786     :
5787     fi
5788    
5789 mmeineke 791
5790 gezelter 749 ac_ext=c
5791     ac_cpp='$CPP $CPPFLAGS'
5792     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5793     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5794     ac_compiler_gnu=$ac_cv_c_compiler_gnu
5795 mmeineke 791 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5796 gezelter 749 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5797     # On Suns, sometimes $CPP names a directory.
5798     if test -n "$CPP" && test -d "$CPP"; then
5799     CPP=
5800     fi
5801     if test -z "$CPP"; then
5802     if test "${ac_cv_prog_CPP+set}" = set; then
5803     echo $ECHO_N "(cached) $ECHO_C" >&6
5804     else
5805     # Double quotes because CPP needs to be expanded
5806     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5807     do
5808     ac_preproc_ok=false
5809     for ac_c_preproc_warn_flag in '' yes
5810     do
5811     # Use a header file that comes with gcc, so configuring glibc
5812     # with a fresh cross-compiler works.
5813 mmeineke 791 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5814     # <limits.h> exists even on freestanding compilers.
5815 gezelter 749 # On the NeXT, cc -E runs the code through the compiler's parser,
5816     # not just through cpp. "Syntax error" is here to catch this case.
5817     cat >conftest.$ac_ext <<_ACEOF
5818 mmeineke 791 #line $LINENO "configure"
5819     /* confdefs.h. */
5820     _ACEOF
5821     cat confdefs.h >>conftest.$ac_ext
5822     cat >>conftest.$ac_ext <<_ACEOF
5823     /* end confdefs.h. */
5824     #ifdef __STDC__
5825     # include <limits.h>
5826     #else
5827     # include <assert.h>
5828     #endif
5829 gezelter 749 Syntax error
5830     _ACEOF
5831 mmeineke 791 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5832 gezelter 749 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5833     ac_status=$?
5834 mmeineke 791 grep -v '^ *+' conftest.er1 >conftest.err
5835 gezelter 749 rm -f conftest.er1
5836     cat conftest.err >&5
5837 mmeineke 791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5838 gezelter 749 (exit $ac_status); } >/dev/null; then
5839     if test -s conftest.err; then
5840     ac_cpp_err=$ac_c_preproc_warn_flag
5841     else
5842     ac_cpp_err=
5843     fi
5844     else
5845     ac_cpp_err=yes
5846     fi
5847     if test -z "$ac_cpp_err"; then
5848     :
5849     else
5850     echo "$as_me: failed program was:" >&5
5851 mmeineke 791 sed 's/^/| /' conftest.$ac_ext >&5
5852    
5853 gezelter 749 # Broken: fails on valid input.
5854     continue
5855     fi
5856     rm -f conftest.err conftest.$ac_ext
5857    
5858     # OK, works on sane cases. Now check whether non-existent headers
5859     # can be detected and how.
5860     cat >conftest.$ac_ext <<_ACEOF
5861 mmeineke 791 #line $LINENO "configure"
5862     /* confdefs.h. */
5863     _ACEOF
5864     cat confdefs.h >>conftest.$ac_ext
5865     cat >>conftest.$ac_ext <<_ACEOF
5866     /* end confdefs.h. */
5867 gezelter 749 #include <ac_nonexistent.h>
5868     _ACEOF
5869 mmeineke 791 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5870 gezelter 749 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5871     ac_status=$?
5872 mmeineke 791 grep -v '^ *+' conftest.er1 >conftest.err
5873 gezelter 749 rm -f conftest.er1
5874     cat conftest.err >&5
5875 mmeineke 791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5876 gezelter 749 (exit $ac_status); } >/dev/null; then
5877     if test -s conftest.err; then
5878     ac_cpp_err=$ac_c_preproc_warn_flag
5879     else
5880     ac_cpp_err=
5881     fi
5882     else
5883     ac_cpp_err=yes
5884     fi
5885     if test -z "$ac_cpp_err"; then
5886     # Broken: success on invalid input.
5887     continue
5888     else
5889     echo "$as_me: failed program was:" >&5
5890 mmeineke 791 sed 's/^/| /' conftest.$ac_ext >&5
5891    
5892 gezelter 749 # Passes both tests.
5893     ac_preproc_ok=:
5894     break
5895     fi
5896     rm -f conftest.err conftest.$ac_ext
5897    
5898     done
5899     # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5900     rm -f conftest.err conftest.$ac_ext
5901     if $ac_preproc_ok; then
5902 mmeineke 791 break
5903 gezelter 749 fi
5904    
5905     done
5906     ac_cv_prog_CPP=$CPP
5907    
5908     fi
5909     CPP=$ac_cv_prog_CPP
5910     else
5911     ac_cv_prog_CPP=$CPP
5912     fi
5913 mmeineke 791 echo "$as_me:$LINENO: result: $CPP" >&5
5914 gezelter 749 echo "${ECHO_T}$CPP" >&6
5915     ac_preproc_ok=false
5916     for ac_c_preproc_warn_flag in '' yes
5917     do
5918     # Use a header file that comes with gcc, so configuring glibc
5919     # with a fresh cross-compiler works.
5920 mmeineke 791 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5921     # <limits.h> exists even on freestanding compilers.
5922 gezelter 749 # On the NeXT, cc -E runs the code through the compiler's parser,
5923     # not just through cpp. "Syntax error" is here to catch this case.
5924     cat >conftest.$ac_ext <<_ACEOF
5925 mmeineke 791 #line $LINENO "configure"
5926     /* confdefs.h. */
5927     _ACEOF
5928     cat confdefs.h >>conftest.$ac_ext
5929     cat >>conftest.$ac_ext <<_ACEOF
5930     /* end confdefs.h. */
5931     #ifdef __STDC__
5932     # include <limits.h>
5933     #else
5934     # include <assert.h>
5935     #endif
5936 gezelter 749 Syntax error
5937     _ACEOF
5938 mmeineke 791 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5939 gezelter 749 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5940     ac_status=$?
5941 mmeineke 791 grep -v '^ *+' conftest.er1 >conftest.err
5942 gezelter 749 rm -f conftest.er1
5943     cat conftest.err >&5
5944 mmeineke 791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5945 gezelter 749 (exit $ac_status); } >/dev/null; then
5946     if test -s conftest.err; then
5947     ac_cpp_err=$ac_c_preproc_warn_flag
5948     else
5949     ac_cpp_err=
5950     fi
5951     else
5952     ac_cpp_err=yes
5953     fi
5954     if test -z "$ac_cpp_err"; then
5955     :
5956     else
5957     echo "$as_me: failed program was:" >&5
5958 mmeineke 791 sed 's/^/| /' conftest.$ac_ext >&5
5959    
5960 gezelter 749 # Broken: fails on valid input.
5961     continue
5962     fi
5963     rm -f conftest.err conftest.$ac_ext
5964    
5965     # OK, works on sane cases. Now check whether non-existent headers
5966     # can be detected and how.
5967     cat >conftest.$ac_ext <<_ACEOF
5968 mmeineke 791 #line $LINENO "configure"
5969     /* confdefs.h. */
5970     _ACEOF
5971     cat confdefs.h >>conftest.$ac_ext
5972     cat >>conftest.$ac_ext <<_ACEOF
5973     /* end confdefs.h. */
5974 gezelter 749 #include <ac_nonexistent.h>
5975     _ACEOF
5976 mmeineke 791 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5977 gezelter 749 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5978     ac_status=$?
5979 mmeineke 791 grep -v '^ *+' conftest.er1 >conftest.err
5980 gezelter 749 rm -f conftest.er1
5981     cat conftest.err >&5
5982 mmeineke 791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5983 gezelter 749 (exit $ac_status); } >/dev/null; then
5984     if test -s conftest.err; then
5985     ac_cpp_err=$ac_c_preproc_warn_flag
5986     else
5987     ac_cpp_err=
5988     fi
5989     else
5990     ac_cpp_err=yes
5991     fi
5992     if test -z "$ac_cpp_err"; then
5993     # Broken: success on invalid input.
5994     continue
5995     else
5996     echo "$as_me: failed program was:" >&5
5997 mmeineke 791 sed 's/^/| /' conftest.$ac_ext >&5
5998    
5999 gezelter 749 # Passes both tests.
6000     ac_preproc_ok=:
6001     break
6002     fi
6003     rm -f conftest.err conftest.$ac_ext
6004    
6005     done
6006     # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6007     rm -f conftest.err conftest.$ac_ext
6008     if $ac_preproc_ok; then
6009     :
6010     else
6011 mmeineke 791 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6012     See \`config.log' for more details." >&5
6013     echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6014     See \`config.log' for more details." >&2;}
6015 gezelter 749 { (exit 1); exit 1; }; }
6016     fi
6017    
6018     ac_ext=c
6019     ac_cpp='$CPP $CPPFLAGS'
6020     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6021     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6022     ac_compiler_gnu=$ac_cv_c_compiler_gnu
6023    
6024 mmeineke 791
6025     echo "$as_me:$LINENO: checking for egrep" >&5
6026     echo $ECHO_N "checking for egrep... $ECHO_C" >&6
6027     if test "${ac_cv_prog_egrep+set}" = set; then
6028     echo $ECHO_N "(cached) $ECHO_C" >&6
6029     else
6030     if echo a | (grep -E '(a|b)') >/dev/null 2>&1
6031     then ac_cv_prog_egrep='grep -E'
6032     else ac_cv_prog_egrep='egrep'
6033     fi
6034     fi
6035     echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
6036     echo "${ECHO_T}$ac_cv_prog_egrep" >&6
6037     EGREP=$ac_cv_prog_egrep
6038    
6039    
6040     echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6041     echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6042     if test "${ac_cv_header_stdc+set}" = set; then
6043     echo $ECHO_N "(cached) $ECHO_C" >&6
6044     else
6045     cat >conftest.$ac_ext <<_ACEOF
6046     #line $LINENO "configure"
6047     /* confdefs.h. */
6048     _ACEOF
6049     cat confdefs.h >>conftest.$ac_ext
6050     cat >>conftest.$ac_ext <<_ACEOF
6051     /* end confdefs.h. */
6052     #include <stdlib.h>
6053     #include <stdarg.h>
6054     #include <string.h>
6055     #include <float.h>
6056    
6057     int
6058     main ()
6059     {
6060    
6061     ;
6062     return 0;
6063     }
6064     _ACEOF
6065     rm -f conftest.$ac_objext
6066     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6067     (eval $ac_compile) 2>&5
6068     ac_status=$?
6069     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6070     (exit $ac_status); } &&
6071     { ac_try='test -s conftest.$ac_objext'
6072     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6073     (eval $ac_try) 2>&5
6074     ac_status=$?
6075     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6076     (exit $ac_status); }; }; then
6077     ac_cv_header_stdc=yes
6078     else
6079     echo "$as_me: failed program was:" >&5
6080     sed 's/^/| /' conftest.$ac_ext >&5
6081    
6082     ac_cv_header_stdc=no
6083     fi
6084     rm -f conftest.$ac_objext conftest.$ac_ext
6085    
6086     if test $ac_cv_header_stdc = yes; then
6087     # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6088     cat >conftest.$ac_ext <<_ACEOF
6089     #line $LINENO "configure"
6090     /* confdefs.h. */
6091     _ACEOF
6092     cat confdefs.h >>conftest.$ac_ext
6093     cat >>conftest.$ac_ext <<_ACEOF
6094     /* end confdefs.h. */
6095     #include <string.h>
6096    
6097     _ACEOF
6098     if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6099     $EGREP "memchr" >/dev/null 2>&1; then
6100     :
6101     else
6102     ac_cv_header_stdc=no
6103     fi
6104     rm -f conftest*
6105    
6106     fi
6107    
6108     if test $ac_cv_header_stdc = yes; then
6109     # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6110     cat >conftest.$ac_ext <<_ACEOF
6111     #line $LINENO "configure"
6112     /* confdefs.h. */
6113     _ACEOF
6114     cat confdefs.h >>conftest.$ac_ext
6115     cat >>conftest.$ac_ext <<_ACEOF
6116     /* end confdefs.h. */
6117     #include <stdlib.h>
6118    
6119     _ACEOF
6120     if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6121     $EGREP "free" >/dev/null 2>&1; then
6122     :
6123     else
6124     ac_cv_header_stdc=no
6125     fi
6126     rm -f conftest*
6127    
6128     fi
6129    
6130     if test $ac_cv_header_stdc = yes; then
6131     # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6132     if test "$cross_compiling" = yes; then
6133     :
6134     else
6135     cat >conftest.$ac_ext <<_ACEOF
6136     #line $LINENO "configure"
6137     /* confdefs.h. */
6138     _ACEOF
6139     cat confdefs.h >>conftest.$ac_ext
6140     cat >>conftest.$ac_ext <<_ACEOF
6141     /* end confdefs.h. */
6142     #include <ctype.h>
6143     #if ((' ' & 0x0FF) == 0x020)
6144     # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6145     # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6146     #else
6147     # define ISLOWER(c) \
6148     (('a' <= (c) && (c) <= 'i') \
6149     || ('j' <= (c) && (c) <= 'r') \
6150     || ('s' <= (c) && (c) <= 'z'))
6151     # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6152     #endif
6153    
6154     #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6155     int
6156     main ()
6157     {
6158     int i;
6159     for (i = 0; i < 256; i++)
6160     if (XOR (islower (i), ISLOWER (i))
6161     || toupper (i) != TOUPPER (i))
6162     exit(2);
6163     exit (0);
6164     }
6165     _ACEOF
6166     rm -f conftest$ac_exeext
6167     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6168     (eval $ac_link) 2>&5
6169     ac_status=$?
6170     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6171     (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6172     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6173     (eval $ac_try) 2>&5
6174     ac_status=$?
6175     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6176     (exit $ac_status); }; }; then
6177     :
6178     else
6179     echo "$as_me: program exited with status $ac_status" >&5
6180     echo "$as_me: failed program was:" >&5
6181     sed 's/^/| /' conftest.$ac_ext >&5
6182    
6183     ( exit $ac_status )
6184     ac_cv_header_stdc=no
6185     fi
6186     rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6187     fi
6188     fi
6189     fi
6190     echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6191     echo "${ECHO_T}$ac_cv_header_stdc" >&6
6192     if test $ac_cv_header_stdc = yes; then
6193    
6194     cat >>confdefs.h <<\_ACEOF
6195     #define STDC_HEADERS 1
6196     _ACEOF
6197    
6198     fi
6199    
6200     # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6201    
6202    
6203    
6204    
6205    
6206    
6207    
6208    
6209    
6210     for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6211     inttypes.h stdint.h unistd.h
6212     do
6213     as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6214     echo "$as_me:$LINENO: checking for $ac_header" >&5
6215     echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6216     if eval "test \"\${$as_ac_Header+set}\" = set"; then
6217     echo $ECHO_N "(cached) $ECHO_C" >&6
6218     else
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    
6228     #include <$ac_header>
6229     _ACEOF
6230     rm -f conftest.$ac_objext
6231     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6232     (eval $ac_compile) 2>&5
6233     ac_status=$?
6234     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6235     (exit $ac_status); } &&
6236     { ac_try='test -s conftest.$ac_objext'
6237     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6238     (eval $ac_try) 2>&5
6239     ac_status=$?
6240     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6241     (exit $ac_status); }; }; then
6242     eval "$as_ac_Header=yes"
6243     else
6244     echo "$as_me: failed program was:" >&5
6245     sed 's/^/| /' conftest.$ac_ext >&5
6246    
6247     eval "$as_ac_Header=no"
6248     fi
6249     rm -f conftest.$ac_objext conftest.$ac_ext
6250     fi
6251     echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6252     echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6253     if test `eval echo '${'$as_ac_Header'}'` = yes; then
6254     cat >>confdefs.h <<_ACEOF
6255     #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6256     _ACEOF
6257    
6258     fi
6259    
6260     done
6261    
6262    
6263    
6264    
6265    
6266 mmeineke 790 # Check whether --with-sprng_prefix or --without-sprng_prefix was given.
6267 gezelter 749 if test "${with_sprng_prefix+set}" = set; then
6268     withval="$with_sprng_prefix"
6269     sprng_prefix="$withval"
6270     else
6271     sprng_prefix="/usr/local"
6272     fi;
6273    
6274 gezelter 816 # Check whether --with-sprng-libdir or --without-sprng-libdir was given.
6275     if test "${with_sprng_libdir+set}" = set; then
6276     withval="$with_sprng_libdir"
6277     sprng_libdir="$withval"
6278 gezelter 749 else
6279 gezelter 816 sprng_libdir="/usr/local/lib"
6280 gezelter 749 fi;
6281    
6282 gezelter 816 # Check whether --with-sprng-include or --without-sprng-include was given.
6283     if test "${with_sprng_include+set}" = set; then
6284     withval="$with_sprng_include"
6285     sprng_include="$withval"
6286 gezelter 749 else
6287 gezelter 816 sprng_include="/usr/local/include/sprng"
6288 gezelter 749 fi;
6289    
6290 gezelter 816 if test x$sprng_libdir = x ; then
6291     sprng_libdir=${sprng_prefix}/lib
6292 gezelter 749 fi
6293    
6294 gezelter 816 if test x$sprng_include = x ; then
6295     sprng_include=${sprng_prefix}/include
6296 gezelter 749 fi
6297    
6298 gezelter 816 echo "$as_me:$LINENO: checking for SPRNG include files in $sprng_include" >&5
6299     echo $ECHO_N "checking for SPRNG include files in $sprng_include... $ECHO_C" >&6
6300     if test -f ${sprng_include}/sprng.h; then
6301 gezelter 749 have_sprngincl=yes
6302 mmeineke 791 echo "$as_me:$LINENO: result: yes" >&5
6303 gezelter 749 echo "${ECHO_T}yes" >&6
6304     else
6305     have_sprngincl=no
6306 mmeineke 791 echo "$as_me:$LINENO: result: no" >&5
6307 gezelter 749 echo "${ECHO_T}no" >&6
6308 mmeineke 791 { { echo "$as_me:$LINENO: error: Could not locate the SPRNG include files" >&5
6309 gezelter 749 echo "$as_me: error: Could not locate the SPRNG include files" >&2;}
6310     { (exit 1); exit 1; }; }
6311     fi
6312    
6313 gezelter 816 echo "$as_me:$LINENO: checking for SPRNG libraries in $sprng_libdir" >&5
6314     echo $ECHO_N "checking for SPRNG libraries in $sprng_libdir... $ECHO_C" >&6
6315     if test -f ${sprng_libdir}/libsprng.a; then
6316 gezelter 749 have_sprnglib=yes
6317 mmeineke 791 echo "$as_me:$LINENO: result: yes" >&5
6318 gezelter 749 echo "${ECHO_T}yes" >&6
6319     else
6320     have_sprnglib=no
6321 mmeineke 791 echo "$as_me:$LINENO: result: no" >&5
6322 gezelter 749 echo "${ECHO_T}no" >&6
6323 mmeineke 791 { { echo "$as_me:$LINENO: error: Could not locate the SPRNG libraries" >&5
6324 gezelter 749 echo "$as_me: error: Could not locate the SPRNG libraries" >&2;}
6325     { (exit 1); exit 1; }; }
6326     fi
6327    
6328 mmeineke 791
6329    
6330 gezelter 749 ac_ext=c
6331     ac_cpp='$CPP $CPPFLAGS'
6332     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6333     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6334     ac_compiler_gnu=$ac_cv_c_compiler_gnu
6335    
6336     ac_save_CPPFLAGS=$CPPFLAGS
6337 gezelter 816 CPPFLAGS="${CPPFLAGS} -I${sprng_include}"
6338 gezelter 749 ac_save_LDFLAGS=$LDFLAGS
6339 gezelter 816 LDFLAGS="${LDFLAGS} -L${sprng_libdir} -lsprng"
6340 mmeineke 791 if test "${ac_cv_header_sprng_h+set}" = set; then
6341     echo "$as_me:$LINENO: checking for sprng.h" >&5
6342 gezelter 749 echo $ECHO_N "checking for sprng.h... $ECHO_C" >&6
6343     if test "${ac_cv_header_sprng_h+set}" = set; then
6344     echo $ECHO_N "(cached) $ECHO_C" >&6
6345 mmeineke 791 fi
6346     echo "$as_me:$LINENO: result: $ac_cv_header_sprng_h" >&5
6347     echo "${ECHO_T}$ac_cv_header_sprng_h" >&6
6348 gezelter 749 else
6349 mmeineke 791 # Is the header compilable?
6350     echo "$as_me:$LINENO: checking sprng.h usability" >&5
6351     echo $ECHO_N "checking sprng.h usability... $ECHO_C" >&6
6352     cat >conftest.$ac_ext <<_ACEOF
6353     #line $LINENO "configure"
6354     /* confdefs.h. */
6355     _ACEOF
6356     cat confdefs.h >>conftest.$ac_ext
6357     cat >>conftest.$ac_ext <<_ACEOF
6358     /* end confdefs.h. */
6359     $ac_includes_default
6360 gezelter 749 #include <sprng.h>
6361     _ACEOF
6362 mmeineke 791 rm -f conftest.$ac_objext
6363     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6364     (eval $ac_compile) 2>&5
6365     ac_status=$?
6366     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6367     (exit $ac_status); } &&
6368     { ac_try='test -s conftest.$ac_objext'
6369     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6370     (eval $ac_try) 2>&5
6371     ac_status=$?
6372     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6373     (exit $ac_status); }; }; then
6374     ac_header_compiler=yes
6375     else
6376     echo "$as_me: failed program was:" >&5
6377     sed 's/^/| /' conftest.$ac_ext >&5
6378    
6379     ac_header_compiler=no
6380     fi
6381     rm -f conftest.$ac_objext conftest.$ac_ext
6382     echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6383     echo "${ECHO_T}$ac_header_compiler" >&6
6384    
6385     # Is the header present?
6386     echo "$as_me:$LINENO: checking sprng.h presence" >&5
6387     echo $ECHO_N "checking sprng.h presence... $ECHO_C" >&6
6388     cat >conftest.$ac_ext <<_ACEOF
6389     #line $LINENO "configure"
6390     /* confdefs.h. */
6391     _ACEOF
6392     cat confdefs.h >>conftest.$ac_ext
6393     cat >>conftest.$ac_ext <<_ACEOF
6394     /* end confdefs.h. */
6395     #include <sprng.h>
6396     _ACEOF
6397     if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6398 gezelter 749 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6399     ac_status=$?
6400 mmeineke 791 grep -v '^ *+' conftest.er1 >conftest.err
6401 gezelter 749 rm -f conftest.er1
6402     cat conftest.err >&5
6403 mmeineke 791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6404 gezelter 749 (exit $ac_status); } >/dev/null; then
6405     if test -s conftest.err; then
6406     ac_cpp_err=$ac_c_preproc_warn_flag
6407     else
6408     ac_cpp_err=
6409     fi
6410     else
6411     ac_cpp_err=yes
6412     fi
6413     if test -z "$ac_cpp_err"; then
6414 mmeineke 791 ac_header_preproc=yes
6415 gezelter 749 else
6416     echo "$as_me: failed program was:" >&5
6417 mmeineke 791 sed 's/^/| /' conftest.$ac_ext >&5
6418    
6419     ac_header_preproc=no
6420 gezelter 749 fi
6421     rm -f conftest.err conftest.$ac_ext
6422 mmeineke 791 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6423     echo "${ECHO_T}$ac_header_preproc" >&6
6424    
6425     # So? What about this header?
6426     case $ac_header_compiler:$ac_header_preproc in
6427     yes:no )
6428     { echo "$as_me:$LINENO: WARNING: sprng.h: accepted by the compiler, rejected by the preprocessor!" >&5
6429     echo "$as_me: WARNING: sprng.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6430     { echo "$as_me:$LINENO: WARNING: sprng.h: proceeding with the preprocessor's result" >&5
6431     echo "$as_me: WARNING: sprng.h: proceeding with the preprocessor's result" >&2;}
6432     (
6433     cat <<\_ASBOX
6434     ## ------------------------------------ ##
6435     ## Report this to bug-autoconf@gnu.org. ##
6436     ## ------------------------------------ ##
6437     _ASBOX
6438     ) |
6439     sed "s/^/$as_me: WARNING: /" >&2
6440     ;;
6441     no:yes )
6442     { echo "$as_me:$LINENO: WARNING: sprng.h: present but cannot be compiled" >&5
6443     echo "$as_me: WARNING: sprng.h: present but cannot be compiled" >&2;}
6444     { echo "$as_me:$LINENO: WARNING: sprng.h: check for missing prerequisite headers?" >&5
6445     echo "$as_me: WARNING: sprng.h: check for missing prerequisite headers?" >&2;}
6446     { echo "$as_me:$LINENO: WARNING: sprng.h: proceeding with the preprocessor's result" >&5
6447     echo "$as_me: WARNING: sprng.h: proceeding with the preprocessor's result" >&2;}
6448     (
6449     cat <<\_ASBOX
6450     ## ------------------------------------ ##
6451     ## Report this to bug-autoconf@gnu.org. ##
6452     ## ------------------------------------ ##
6453     _ASBOX
6454     ) |
6455     sed "s/^/$as_me: WARNING: /" >&2
6456     ;;
6457     esac
6458     echo "$as_me:$LINENO: checking for sprng.h" >&5
6459     echo $ECHO_N "checking for sprng.h... $ECHO_C" >&6
6460     if test "${ac_cv_header_sprng_h+set}" = set; then
6461     echo $ECHO_N "(cached) $ECHO_C" >&6
6462     else
6463     ac_cv_header_sprng_h=$ac_header_preproc
6464 gezelter 749 fi
6465 mmeineke 791 echo "$as_me:$LINENO: result: $ac_cv_header_sprng_h" >&5
6466 gezelter 749 echo "${ECHO_T}$ac_cv_header_sprng_h" >&6
6467 mmeineke 791
6468     fi
6469 gezelter 749 if test $ac_cv_header_sprng_h = yes; then
6470    
6471 mmeineke 791 echo "$as_me:$LINENO: checking for init_rng in -lsprng" >&5
6472 gezelter 749 echo $ECHO_N "checking for init_rng in -lsprng... $ECHO_C" >&6
6473     if test "${ac_cv_lib_sprng_init_rng+set}" = set; then
6474     echo $ECHO_N "(cached) $ECHO_C" >&6
6475     else
6476     ac_check_lib_save_LIBS=$LIBS
6477     LIBS="-lsprng $LIBS"
6478     cat >conftest.$ac_ext <<_ACEOF
6479 mmeineke 791 #line $LINENO "configure"
6480     /* confdefs.h. */
6481     _ACEOF
6482     cat confdefs.h >>conftest.$ac_ext
6483     cat >>conftest.$ac_ext <<_ACEOF
6484     /* end confdefs.h. */
6485 gezelter 749
6486     /* Override any gcc2 internal prototype to avoid an error. */
6487     #ifdef __cplusplus
6488     extern "C"
6489     #endif
6490     /* We use char because int might match the return type of a gcc2
6491     builtin and then its argument prototype would still apply. */
6492     char init_rng ();
6493     int
6494     main ()
6495     {
6496     init_rng ();
6497     ;
6498     return 0;
6499     }
6500     _ACEOF
6501     rm -f conftest.$ac_objext conftest$ac_exeext
6502 mmeineke 791 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6503 gezelter 749 (eval $ac_link) 2>&5
6504     ac_status=$?
6505 mmeineke 791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6506 gezelter 749 (exit $ac_status); } &&
6507     { ac_try='test -s conftest$ac_exeext'
6508 mmeineke 791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6509 gezelter 749 (eval $ac_try) 2>&5
6510     ac_status=$?
6511 mmeineke 791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6512 gezelter 749 (exit $ac_status); }; }; then
6513     ac_cv_lib_sprng_init_rng=yes
6514     else
6515     echo "$as_me: failed program was:" >&5
6516 mmeineke 791 sed 's/^/| /' conftest.$ac_ext >&5
6517    
6518 gezelter 749 ac_cv_lib_sprng_init_rng=no
6519     fi
6520     rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6521     LIBS=$ac_check_lib_save_LIBS
6522     fi
6523 mmeineke 791 echo "$as_me:$LINENO: result: $ac_cv_lib_sprng_init_rng" >&5
6524 gezelter 749 echo "${ECHO_T}$ac_cv_lib_sprng_init_rng" >&6
6525     if test $ac_cv_lib_sprng_init_rng = yes; then
6526 gezelter 816 SPRNG_LIBDIR="${sprng_libdir}"
6527     SPRNG_LIB="-lsprng" SPRNG_INC="-I${sprng_include}"
6528 gezelter 749 HAVE_SPRNG="yes"
6529     fi
6530    
6531     fi
6532    
6533 mmeineke 791
6534 gezelter 749 CPPFLAGS=$ac_save_CPPFLAGS
6535     LDFLAGS=$ac_save_LDFLAGS
6536     ac_ext=f90
6537     ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
6538     ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6539     ac_compiler_gnu=$ac_cv_f90_compiler_gnu
6540    
6541 mmeineke 791
6542 gezelter 749 if test x_$HAVE_SPRNG != x_yes; then
6543 mmeineke 791 { { echo "$as_me:$LINENO: error: Can't build with SPRNG" >&5
6544 gezelter 749 echo "$as_me: error: Can't build with SPRNG" >&2;}
6545     { (exit 1); exit 1; }; }
6546     fi
6547    
6548 mmeineke 791
6549    
6550    
6551    
6552     echo "$as_me:$LINENO: checking if MKL is wanted" >&5
6553 gezelter 749 echo $ECHO_N "checking if MKL is wanted... $ECHO_C" >&6
6554    
6555     # Check whether --with-mkl or --without-mkl was given.
6556     if test "${with_mkl+set}" = set; then
6557     withval="$with_mkl"
6558 mmeineke 791 echo "$as_me:$LINENO: result: yes" >&5
6559 gezelter 749 echo "${ECHO_T}yes" >&6
6560     for dir in $withval /usr/local/intel/mkl60 /opt/intel/mkl60; do
6561     mkldir="$dir"
6562     if test -f "$dir/include/mkl.h"; then
6563     found_mkl="yes";
6564     break;
6565     fi
6566     done
6567     if test x_$found_mkl != x_yes; then
6568 mmeineke 791 { { echo "$as_me:$LINENO: error: Cannot find MKL includes" >&5
6569 gezelter 749 echo "$as_me: error: Cannot find MKL includes" >&2;}
6570     { (exit 1); exit 1; }; }
6571     else
6572     printf "MKL includes found in $mkldir/include\n";
6573     fi
6574    
6575 mmeineke 791
6576    
6577 gezelter 749 ac_ext=c
6578     ac_cpp='$CPP $CPPFLAGS'
6579     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6580     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6581     ac_compiler_gnu=$ac_cv_c_compiler_gnu
6582    
6583     ac_save_CPPFLAGS=$CPPFLAGS
6584     CPPFLAGS="${CPPFLAGS} -I${mkldir}/include"
6585     ac_save_LDFLAGS=$LDFLAGS
6586     LDFLAGS="${LDFLAGS} -L${mkldir}/lib/32 -lmkl -lvml -lguide"
6587 mmeineke 791 if test "${ac_cv_header_mkl_h+set}" = set; then
6588     echo "$as_me:$LINENO: checking for mkl.h" >&5
6589 gezelter 749 echo $ECHO_N "checking for mkl.h... $ECHO_C" >&6
6590     if test "${ac_cv_header_mkl_h+set}" = set; then
6591     echo $ECHO_N "(cached) $ECHO_C" >&6
6592 mmeineke 791 fi
6593     echo "$as_me:$LINENO: result: $ac_cv_header_mkl_h" >&5
6594     echo "${ECHO_T}$ac_cv_header_mkl_h" >&6
6595 gezelter 749 else
6596 mmeineke 791 # Is the header compilable?
6597     echo "$as_me:$LINENO: checking mkl.h usability" >&5
6598     echo $ECHO_N "checking mkl.h usability... $ECHO_C" >&6
6599     cat >conftest.$ac_ext <<_ACEOF
6600     #line $LINENO "configure"
6601     /* confdefs.h. */
6602     _ACEOF
6603     cat confdefs.h >>conftest.$ac_ext
6604     cat >>conftest.$ac_ext <<_ACEOF
6605     /* end confdefs.h. */
6606     $ac_includes_default
6607 gezelter 749 #include <mkl.h>
6608     _ACEOF
6609 mmeineke 791 rm -f conftest.$ac_objext
6610     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6611     (eval $ac_compile) 2>&5
6612     ac_status=$?
6613     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6614     (exit $ac_status); } &&
6615     { ac_try='test -s conftest.$ac_objext'
6616     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6617     (eval $ac_try) 2>&5
6618     ac_status=$?
6619     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6620     (exit $ac_status); }; }; then
6621     ac_header_compiler=yes
6622     else
6623     echo "$as_me: failed program was:" >&5
6624     sed 's/^/| /' conftest.$ac_ext >&5
6625    
6626     ac_header_compiler=no
6627     fi
6628     rm -f conftest.$ac_objext conftest.$ac_ext
6629     echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6630     echo "${ECHO_T}$ac_header_compiler" >&6
6631    
6632     # Is the header present?
6633     echo "$as_me:$LINENO: checking mkl.h presence" >&5
6634     echo $ECHO_N "checking mkl.h presence... $ECHO_C" >&6
6635     cat >conftest.$ac_ext <<_ACEOF
6636     #line $LINENO "configure"
6637     /* confdefs.h. */
6638     _ACEOF
6639     cat confdefs.h >>conftest.$ac_ext
6640     cat >>conftest.$ac_ext <<_ACEOF
6641     /* end confdefs.h. */
6642     #include <mkl.h>
6643     _ACEOF
6644     if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6645 gezelter 749 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6646     ac_status=$?
6647 mmeineke 791 grep -v '^ *+' conftest.er1 >conftest.err
6648 gezelter 749 rm -f conftest.er1
6649     cat conftest.err >&5
6650 mmeineke 791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6651 gezelter 749 (exit $ac_status); } >/dev/null; then
6652     if test -s conftest.err; then
6653     ac_cpp_err=$ac_c_preproc_warn_flag
6654     else
6655     ac_cpp_err=
6656     fi
6657     else
6658     ac_cpp_err=yes
6659     fi
6660     if test -z "$ac_cpp_err"; then
6661 mmeineke 791 ac_header_preproc=yes
6662 gezelter 749 else
6663     echo "$as_me: failed program was:" >&5
6664 mmeineke 791 sed 's/^/| /' conftest.$ac_ext >&5
6665    
6666     ac_header_preproc=no
6667 gezelter 749 fi
6668     rm -f conftest.err conftest.$ac_ext
6669 mmeineke 791 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6670     echo "${ECHO_T}$ac_header_preproc" >&6
6671    
6672     # So? What about this header?
6673     case $ac_header_compiler:$ac_header_preproc in
6674     yes:no )
6675     { echo "$as_me:$LINENO: WARNING: mkl.h: accepted by the compiler, rejected by the preprocessor!" >&5
6676     echo "$as_me: WARNING: mkl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6677     { echo "$as_me:$LINENO: WARNING: mkl.h: proceeding with the preprocessor's result" >&5
6678     echo "$as_me: WARNING: mkl.h: proceeding with the preprocessor's result" >&2;}
6679     (
6680     cat <<\_ASBOX
6681     ## ------------------------------------ ##
6682     ## Report this to bug-autoconf@gnu.org. ##
6683     ## ------------------------------------ ##
6684     _ASBOX
6685     ) |
6686     sed "s/^/$as_me: WARNING: /" >&2
6687     ;;
6688     no:yes )
6689     { echo "$as_me:$LINENO: WARNING: mkl.h: present but cannot be compiled" >&5
6690     echo "$as_me: WARNING: mkl.h: present but cannot be compiled" >&2;}
6691     { echo "$as_me:$LINENO: WARNING: mkl.h: check for missing prerequisite headers?" >&5
6692     echo "$as_me: WARNING: mkl.h: check for missing prerequisite headers?" >&2;}
6693     { echo "$as_me:$LINENO: WARNING: mkl.h: proceeding with the preprocessor's result" >&5
6694     echo "$as_me: WARNING: mkl.h: proceeding with the preprocessor's result" >&2;}
6695     (
6696     cat <<\_ASBOX
6697     ## ------------------------------------ ##
6698     ## Report this to bug-autoconf@gnu.org. ##
6699     ## ------------------------------------ ##
6700     _ASBOX
6701     ) |
6702     sed "s/^/$as_me: WARNING: /" >&2
6703     ;;
6704     esac
6705     echo "$as_me:$LINENO: checking for mkl.h" >&5
6706     echo $ECHO_N "checking for mkl.h... $ECHO_C" >&6
6707     if test "${ac_cv_header_mkl_h+set}" = set; then
6708     echo $ECHO_N "(cached) $ECHO_C" >&6
6709     else
6710     ac_cv_header_mkl_h=$ac_header_preproc
6711 gezelter 749 fi
6712 mmeineke 791 echo "$as_me:$LINENO: result: $ac_cv_header_mkl_h" >&5
6713 gezelter 749 echo "${ECHO_T}$ac_cv_header_mkl_h" >&6
6714 mmeineke 791
6715     fi
6716 gezelter 749 if test $ac_cv_header_mkl_h = yes; then
6717    
6718 mmeineke 791 echo "$as_me:$LINENO: checking for vslNewStream in -lmkl" >&5
6719 gezelter 749 echo $ECHO_N "checking for vslNewStream in -lmkl... $ECHO_C" >&6
6720     if test "${ac_cv_lib_mkl_vslNewStream+set}" = set; then
6721     echo $ECHO_N "(cached) $ECHO_C" >&6
6722     else
6723     ac_check_lib_save_LIBS=$LIBS
6724     LIBS="-lmkl $LIBS"
6725     cat >conftest.$ac_ext <<_ACEOF
6726 mmeineke 791 #line $LINENO "configure"
6727     /* confdefs.h. */
6728     _ACEOF
6729     cat confdefs.h >>conftest.$ac_ext
6730     cat >>conftest.$ac_ext <<_ACEOF
6731     /* end confdefs.h. */
6732 gezelter 749
6733     /* Override any gcc2 internal prototype to avoid an error. */
6734     #ifdef __cplusplus
6735     extern "C"
6736     #endif
6737     /* We use char because int might match the return type of a gcc2
6738     builtin and then its argument prototype would still apply. */
6739     char vslNewStream ();
6740     int
6741     main ()
6742     {
6743     vslNewStream ();
6744     ;
6745     return 0;
6746     }
6747     _ACEOF
6748     rm -f conftest.$ac_objext conftest$ac_exeext
6749 mmeineke 791 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6750 gezelter 749 (eval $ac_link) 2>&5
6751     ac_status=$?
6752 mmeineke 791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6753 gezelter 749 (exit $ac_status); } &&
6754     { ac_try='test -s conftest$ac_exeext'
6755 mmeineke 791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6756 gezelter 749 (eval $ac_try) 2>&5
6757     ac_status=$?
6758 mmeineke 791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6759 gezelter 749 (exit $ac_status); }; }; then
6760     ac_cv_lib_mkl_vslNewStream=yes
6761     else
6762     echo "$as_me: failed program was:" >&5
6763 mmeineke 791 sed 's/^/| /' conftest.$ac_ext >&5
6764    
6765 gezelter 749 ac_cv_lib_mkl_vslNewStream=no
6766     fi
6767     rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6768     LIBS=$ac_check_lib_save_LIBS
6769     fi
6770 mmeineke 791 echo "$as_me:$LINENO: result: $ac_cv_lib_mkl_vslNewStream" >&5
6771 gezelter 749 echo "${ECHO_T}$ac_cv_lib_mkl_vslNewStream" >&6
6772     if test $ac_cv_lib_mkl_vslNewStream = yes; then
6773     MKL_LIBDIR="${mkldir}/lib/32",
6774     MKL_LIB="-lmkl -lvml -lguide",
6775     HAVE_MKL="yes"
6776     fi
6777    
6778 mmeineke 791
6779 gezelter 749 else
6780     MKL_INC="-I${mkldir}/include"
6781     fi
6782    
6783 mmeineke 791
6784 gezelter 749 CPPFLAGS=$ac_save_CPPFLAGS
6785     LDFLAGS=$ac_save_LDFLAGS
6786     ac_ext=f90
6787     ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
6788     ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6789     ac_compiler_gnu=$ac_cv_f90_compiler_gnu
6790    
6791 mmeineke 791
6792 gezelter 749 if test x_$HAVE_MKL != x_yes; then
6793 mmeineke 791 { { echo "$as_me:$LINENO: error: Can't build with MKL" >&5
6794 gezelter 749 echo "$as_me: error: Can't build with MKL" >&2;}
6795     { (exit 1); exit 1; }; }
6796     fi
6797    
6798 mmeineke 791
6799    
6800    
6801    
6802 gezelter 749 else
6803    
6804 mmeineke 791 echo "$as_me:$LINENO: result: no" >&5
6805 gezelter 749 echo "${ECHO_T}no" >&6
6806    
6807     fi;
6808    
6809    
6810 mmeineke 791
6811    
6812 gezelter 826
6813 mmeineke 791 # Check whether --with-mpi_f90_mods or --without-mpi_f90_mods was given.
6814     if test "${with_mpi_f90_mods+set}" = set; then
6815     withval="$with_mpi_f90_mods"
6816     mpi_f90_mods="$withval"
6817     else
6818     mpi_f90_mods="/usr/local/include/f90choice"
6819     fi;
6820    
6821     echo "$as_me:$LINENO: checking for MPI F90 modules" >&5
6822     echo $ECHO_N "checking for MPI F90 modules... $ECHO_C" >&6
6823    
6824    
6825     ac_ext=f90
6826     ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
6827     ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6828     ac_compiler_gnu=$ac_cv_f90_compiler_gnu
6829    
6830     ac_save_F90FLAGS=$F90FLAGS
6831 gezelter 826
6832 mmeineke 791 if test "$mpi_f90_mods"; then
6833 gezelter 826 F90FLAGS="${F90FLAGS} ${MODDIRFLAG}${mpi_f90_mods}"
6834 mmeineke 791 fi
6835    
6836     cat >conftest.$ac_ext <<_ACEOF
6837    
6838    
6839     program main
6840    
6841     use mpi
6842     integer :: ierr
6843     call MPI_Init(ierr)
6844    
6845    
6846     end program main
6847    
6848     _ACEOF
6849     rm -f conftest.$ac_objext
6850     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6851     (eval $ac_compile) 2>&5
6852     ac_status=$?
6853     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6854     (exit $ac_status); } &&
6855     { ac_try='test -s conftest.$ac_objext'
6856     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6857     (eval $ac_try) 2>&5
6858     ac_status=$?
6859     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6860     (exit $ac_status); }; }; then
6861     HAVE_MPI_MOD=1
6862     else
6863     echo "$as_me: failed program was:" >&5
6864     sed 's/^/| /' conftest.$ac_ext >&5
6865    
6866     HAVE_MPI_MOD=0
6867     fi
6868     rm -f conftest.$ac_objext conftest.$ac_ext
6869    
6870     F90FLAGS=$ac_save_F90FLAGS
6871     ac_ext=f90
6872     ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
6873     ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6874     ac_compiler_gnu=$ac_cv_f90_compiler_gnu
6875    
6876    
6877     if test "$HAVE_MPI_MOD" = 1; then
6878     echo "$as_me:$LINENO: result: yes" >&5
6879     echo "${ECHO_T}yes" >&6
6880    
6881     cat >>confdefs.h <<\_ACEOF
6882     #define MPI_MOD 1
6883     _ACEOF
6884    
6885 gezelter 826 MPI_F90_MODS="${mpi_f90_mods}"
6886 mmeineke 791
6887     # The library name:
6888     if test -z "$MPI_LIB" ; then
6889     MPI_LIBNAME=-lmpich
6890     else
6891     MPI_LIBNAME="$MPI_LIB"
6892     fi
6893     if test -z "$MPIMODLIBNAME" ; then
6894     MPIMODLIBNAME="${MPI_LIBNAME}f90"
6895     fi
6896    
6897     else
6898     echo "$as_me:$LINENO: result: no" >&5
6899     echo "${ECHO_T}no" >&6
6900     { { echo "$as_me:$LINENO: error: Couldn't locate MPI F90 Modules" >&5
6901     echo "$as_me: error: Couldn't locate MPI F90 Modules" >&2;}
6902     { (exit 1); exit 1; }; }
6903     fi
6904    
6905    
6906    
6907    
6908    
6909 gezelter 749 OBJEXT=".$OBJEXT"
6910    
6911     OOPSE=oopse
6912    
6913     if test "x${prefix}" = "xNONE"
6914     then
6915     OOPSE_HOME=${ac_default_prefix}/oopse
6916     else
6917     OOPSE_HOME=${prefix}/oopse
6918     fi
6919     # Check whether --enable-oopse-home or --disable-oopse-home was given.
6920     if test "${enable_oopse_home+set}" = set; then
6921     enableval="$enable_oopse_home"
6922     OOPSE_HOME="${enableval}"
6923     fi;
6924    
6925     case "x$INSTALL" in
6926     x/*) ;;
6927     *) INSTALL=`pwd`/ac-tools/"shtool install -c" ;
6928     esac
6929    
6930     MKINSTALLDIRS=`pwd`/ac-tools/"shtool mkdir -p -f"
6931    
6932 mmeineke 808 SUBDIRS="libBASS libmdtools src forceFields samples utils utils/sysbuilder staticProps"
6933 gezelter 749
6934 mmeineke 794 CFLAGS=${CFLAGS-""}
6935     CXXFLAGS=${CXXFLAGS-""}
6936     CPPFLAGS=${CPPFLAGS-""}
6937     FFLAGS=${FFLAGS-""}
6938     F90FLAGS=${F90FLAGS-""}
6939     LDFLAGS=${LDFLAGS-""}
6940     DEBUG=${DEBUG-"-g"}
6941 gezelter 749
6942     case $debug in
6943 gezelter 822 1)
6944 gezelter 749 FFLAGS="$DEBUG $FFLAGS"
6945     F90FLAGS="$DEBUG $F90FLAGS"
6946     ;;
6947     *)
6948     ;;
6949     esac
6950    
6951    
6952    
6953 mmeineke 791
6954    
6955    
6956    
6957    
6958    
6959    
6960    
6961    
6962    
6963    
6964    
6965    
6966    
6967     ac_config_headers="$ac_config_headers libmdtools/config.h"
6968    
6969 mmeineke 808 ac_config_files="$ac_config_files Makefile libBASS/Makefile libmdtools/Makefile src/Makefile utils/Makefile utils/sysbuilder/Makefile forceFields/Makefile samples/Makefile staticProps/Makefile samples/alkane/Makefile samples/argon/Makefile samples/beadLipid/Makefile samples/lipid/Makefile samples/metals/Makefile samples/water/Makefile"
6970 mmeineke 791
6971    
6972 gezelter 749 cat >confcache <<\_ACEOF
6973     # This file is a shell script that caches the results of configure
6974     # tests run on this system so they can be shared between configure
6975     # scripts and configure runs, see configure's option --config-cache.
6976     # It is not useful on other systems. If it contains results you don't
6977     # want to keep, you may remove or edit it.
6978     #
6979     # config.status only pays attention to the cache file if you give it
6980     # the --recheck option to rerun configure.
6981     #
6982 mmeineke 791 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6983 gezelter 749 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6984     # following values.
6985    
6986     _ACEOF
6987    
6988     # The following way of writing the cache mishandles newlines in values,
6989     # but we know of no workaround that is simple, portable, and efficient.
6990     # So, don't put newlines in cache variables' values.
6991     # Ultrix sh set writes to stderr and can't be redirected directly,
6992     # and sets the high bit in the cache file unless we assign to the vars.
6993     {
6994     (set) 2>&1 |
6995     case `(ac_space=' '; set | grep ac_space) 2>&1` in
6996     *ac_space=\ *)
6997     # `set' does not quote correctly, so add quotes (double-quote
6998     # substitution turns \\\\ into \\, and sed turns \\ into \).
6999     sed -n \
7000     "s/'/'\\\\''/g;
7001 mmeineke 791 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7002 gezelter 749 ;;
7003     *)
7004     # `set' quotes correctly as required by POSIX, so do not add quotes.
7005     sed -n \
7006 mmeineke 791 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
7007 gezelter 749 ;;
7008     esac;
7009     } |
7010     sed '
7011     t clear
7012     : clear
7013     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7014     t end
7015     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7016     : end' >>confcache
7017 mmeineke 791 if diff $cache_file confcache >/dev/null 2>&1; then :; else
7018 gezelter 749 if test -w $cache_file; then
7019     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
7020     cat confcache >$cache_file
7021     else
7022     echo "not updating unwritable cache $cache_file"
7023     fi
7024     fi
7025     rm -f confcache
7026    
7027     test "x$prefix" = xNONE && prefix=$ac_default_prefix
7028     # Let make expand exec_prefix.
7029     test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7030    
7031     # VPATH may cause trouble with some makes, so we remove $(srcdir),
7032     # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
7033     # trailing colons and then remove the whole line if VPATH becomes empty
7034     # (actually we leave an empty line to preserve line numbers).
7035     if test "x$srcdir" = x.; then
7036     ac_vpsub='/^[ ]*VPATH[ ]*=/{
7037     s/:*\$(srcdir):*/:/;
7038     s/:*\${srcdir}:*/:/;
7039     s/:*@srcdir@:*/:/;
7040     s/^\([^=]*=[ ]*\):*/\1/;
7041     s/:*$//;
7042     s/^[^=]*=[ ]*$//;
7043     }'
7044     fi
7045    
7046     DEFS=-DHAVE_CONFIG_H
7047    
7048 mmeineke 791 ac_libobjs=
7049     ac_ltlibobjs=
7050     for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7051     # 1. Remove the extension, and $U if already installed.
7052     ac_i=`echo "$ac_i" |
7053     sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
7054     # 2. Add them.
7055     ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
7056     ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
7057     done
7058     LIBOBJS=$ac_libobjs
7059    
7060     LTLIBOBJS=$ac_ltlibobjs
7061    
7062    
7063    
7064 gezelter 749 : ${CONFIG_STATUS=./config.status}
7065     ac_clean_files_save=$ac_clean_files
7066     ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7067 mmeineke 791 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
7068 gezelter 749 echo "$as_me: creating $CONFIG_STATUS" >&6;}
7069     cat >$CONFIG_STATUS <<_ACEOF
7070     #! $SHELL
7071 mmeineke 791 # Generated by $as_me.
7072 gezelter 749 # Run this file to recreate the current configuration.
7073     # Compiler output produced by configure, useful for debugging
7074     # configure, is in config.log if it exists.
7075    
7076     debug=false
7077 mmeineke 791 ac_cs_recheck=false
7078     ac_cs_silent=false
7079 gezelter 749 SHELL=\${CONFIG_SHELL-$SHELL}
7080     _ACEOF
7081    
7082     cat >>$CONFIG_STATUS <<\_ACEOF
7083 mmeineke 791 ## --------------------- ##
7084     ## M4sh Initialization. ##
7085     ## --------------------- ##
7086    
7087 gezelter 749 # Be Bourne compatible
7088     if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
7089     emulate sh
7090     NULLCMD=:
7091 mmeineke 791 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
7092     # is contrary to our usage. Disable this feature.
7093     alias -g '${1+"$@"}'='"$@"'
7094 gezelter 749 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
7095     set -o posix
7096     fi
7097    
7098 mmeineke 791 # Support unset when possible.
7099     if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
7100     as_unset=unset
7101     else
7102     as_unset=false
7103     fi
7104    
7105    
7106     # Work around bugs in pre-3.0 UWIN ksh.
7107     $as_unset ENV MAIL MAILPATH
7108     PS1='$ '
7109     PS2='> '
7110     PS4='+ '
7111    
7112     # NLS nuisances.
7113     for as_var in \
7114     LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
7115     LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
7116     LC_TELEPHONE LC_TIME
7117     do
7118     if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
7119     eval $as_var=C; export $as_var
7120     else
7121     $as_unset $as_var
7122     fi
7123     done
7124    
7125     # Required to use basename.
7126     if expr a : '\(a\)' >/dev/null 2>&1; then
7127     as_expr=expr
7128     else
7129     as_expr=false
7130     fi
7131    
7132     if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
7133     as_basename=basename
7134     else
7135     as_basename=false
7136     fi
7137    
7138    
7139 gezelter 749 # Name of the executable.
7140 mmeineke 791 as_me=`$as_basename "$0" ||
7141     $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7142     X"$0" : 'X\(//\)$' \| \
7143     X"$0" : 'X\(/\)$' \| \
7144     . : '\(.\)' 2>/dev/null ||
7145     echo X/"$0" |
7146     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
7147     /^X\/\(\/\/\)$/{ s//\1/; q; }
7148     /^X\/\(\/\).*/{ s//\1/; q; }
7149     s/.*/./; q'`
7150 gezelter 749
7151 mmeineke 791
7152     # PATH needs CR, and LINENO needs CR and PATH.
7153     # Avoid depending upon Character Ranges.
7154     as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7155     as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7156     as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7157     as_cr_digits='0123456789'
7158     as_cr_alnum=$as_cr_Letters$as_cr_digits
7159    
7160     # The user is always right.
7161     if test "${PATH_SEPARATOR+set}" != set; then
7162     echo "#! /bin/sh" >conf$$.sh
7163     echo "exit 0" >>conf$$.sh
7164     chmod +x conf$$.sh
7165     if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7166     PATH_SEPARATOR=';'
7167     else
7168     PATH_SEPARATOR=:
7169     fi
7170     rm -f conf$$.sh
7171     fi
7172    
7173    
7174     as_lineno_1=$LINENO
7175     as_lineno_2=$LINENO
7176     as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7177     test "x$as_lineno_1" != "x$as_lineno_2" &&
7178     test "x$as_lineno_3" = "x$as_lineno_2" || {
7179     # Find who we are. Look in the path if we contain no path at all
7180     # relative or not.
7181     case $0 in
7182     *[\\/]* ) as_myself=$0 ;;
7183     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7184     for as_dir in $PATH
7185     do
7186     IFS=$as_save_IFS
7187     test -z "$as_dir" && as_dir=.
7188     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7189     done
7190    
7191     ;;
7192     esac
7193     # We did not find ourselves, most probably we were run as `sh COMMAND'
7194     # in which case we are not to be found in the path.
7195     if test "x$as_myself" = x; then
7196     as_myself=$0
7197     fi
7198     if test ! -f "$as_myself"; then
7199     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
7200     echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
7201     { (exit 1); exit 1; }; }
7202     fi
7203     case $CONFIG_SHELL in
7204     '')
7205     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7206     for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
7207     do
7208     IFS=$as_save_IFS
7209     test -z "$as_dir" && as_dir=.
7210     for as_base in sh bash ksh sh5; do
7211     case $as_dir in
7212     /*)
7213     if ("$as_dir/$as_base" -c '
7214     as_lineno_1=$LINENO
7215     as_lineno_2=$LINENO
7216     as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7217     test "x$as_lineno_1" != "x$as_lineno_2" &&
7218     test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
7219     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
7220     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
7221     CONFIG_SHELL=$as_dir/$as_base
7222     export CONFIG_SHELL
7223     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
7224     fi;;
7225     esac
7226     done
7227     done
7228     ;;
7229     esac
7230    
7231     # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
7232     # uniformly replaced by the line number. The first 'sed' inserts a
7233     # line-number line before each line; the second 'sed' does the real
7234     # work. The second script uses 'N' to pair each line-number line
7235     # with the numbered line, and appends trailing '-' during
7236     # substitution so that $LINENO is not a special case at line end.
7237     # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7238     # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
7239     sed '=' <$as_myself |
7240     sed '
7241     N
7242     s,$,-,
7243     : loop
7244     s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
7245     t loop
7246     s,-$,,
7247     s,^['$as_cr_digits']*\n,,
7248     ' >$as_me.lineno &&
7249     chmod +x $as_me.lineno ||
7250     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
7251     echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
7252     { (exit 1); exit 1; }; }
7253    
7254     # Don't try to exec as it changes $[0], causing all sort of problems
7255     # (the dirname of $[0] is not the place where we might find the
7256     # original and so on. Autoconf is especially sensible to this).
7257     . ./$as_me.lineno
7258     # Exit status is that of the last command.
7259     exit
7260     }
7261    
7262    
7263     case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
7264     *c*,-n*) ECHO_N= ECHO_C='
7265     ' ECHO_T=' ' ;;
7266     *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
7267     *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
7268     esac
7269    
7270 gezelter 749 if expr a : '\(a\)' >/dev/null 2>&1; then
7271     as_expr=expr
7272     else
7273     as_expr=false
7274     fi
7275    
7276     rm -f conf$$ conf$$.exe conf$$.file
7277     echo >conf$$.file
7278     if ln -s conf$$.file conf$$ 2>/dev/null; then
7279     # We could just check for DJGPP; but this test a) works b) is more generic
7280     # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
7281     if test -f conf$$.exe; then
7282     # Don't use ln at all; we don't have any links
7283     as_ln_s='cp -p'
7284     else
7285     as_ln_s='ln -s'
7286     fi
7287     elif ln conf$$.file conf$$ 2>/dev/null; then
7288     as_ln_s=ln
7289     else
7290     as_ln_s='cp -p'
7291     fi
7292     rm -f conf$$ conf$$.exe conf$$.file
7293    
7294 mmeineke 791 if mkdir -p . 2>/dev/null; then
7295     as_mkdir_p=:
7296 gezelter 749 else
7297 mmeineke 791 as_mkdir_p=false
7298 gezelter 749 fi
7299    
7300 mmeineke 791 as_executable_p="test -f"
7301 gezelter 749
7302 mmeineke 791 # Sed expression to map a string onto a valid CPP name.
7303     as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
7304    
7305     # Sed expression to map a string onto a valid variable name.
7306     as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
7307    
7308    
7309 gezelter 749 # IFS
7310     # We need space, tab and new line, in precisely that order.
7311     as_nl='
7312     '
7313     IFS=" $as_nl"
7314    
7315     # CDPATH.
7316 mmeineke 791 $as_unset CDPATH
7317 gezelter 749
7318     exec 6>&1
7319    
7320 mmeineke 791 # Open the log real soon, to keep \$[0] and so on meaningful, and to
7321     # report actual input values of CONFIG_FILES etc. instead of their
7322     # values after options handling. Logging --version etc. is OK.
7323     exec 5>>config.log
7324     {
7325     echo
7326     sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7327     ## Running $as_me. ##
7328     _ASBOX
7329     } >&5
7330     cat >&5 <<_CSEOF
7331    
7332     This file was extended by OOPSE $as_me 1.0, which was
7333     generated by GNU Autoconf 2.57. Invocation command line was
7334    
7335     CONFIG_FILES = $CONFIG_FILES
7336     CONFIG_HEADERS = $CONFIG_HEADERS
7337     CONFIG_LINKS = $CONFIG_LINKS
7338     CONFIG_COMMANDS = $CONFIG_COMMANDS
7339     $ $0 $@
7340    
7341     _CSEOF
7342     echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
7343     echo >&5
7344 gezelter 749 _ACEOF
7345    
7346     # Files that config.status was made for.
7347     if test -n "$ac_config_files"; then
7348     echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
7349     fi
7350    
7351     if test -n "$ac_config_headers"; then
7352     echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
7353     fi
7354    
7355     if test -n "$ac_config_links"; then
7356     echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
7357     fi
7358    
7359     if test -n "$ac_config_commands"; then
7360     echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
7361     fi
7362    
7363 mmeineke 791 cat >>$CONFIG_STATUS <<\_ACEOF
7364 gezelter 749
7365     ac_cs_usage="\
7366     \`$as_me' instantiates files from templates according to the
7367     current configuration.
7368    
7369     Usage: $0 [OPTIONS] [FILE]...
7370    
7371     -h, --help print this help, then exit
7372     -V, --version print version number, then exit
7373 mmeineke 791 -q, --quiet do not print progress messages
7374 gezelter 749 -d, --debug don't remove temporary files
7375     --recheck update $as_me by reconfiguring in the same conditions
7376     --file=FILE[:TEMPLATE]
7377     instantiate the configuration file FILE
7378     --header=FILE[:TEMPLATE]
7379     instantiate the configuration header FILE
7380    
7381     Configuration files:
7382     $config_files
7383    
7384     Configuration headers:
7385     $config_headers
7386    
7387     Report bugs to <bug-autoconf@gnu.org>."
7388 mmeineke 791 _ACEOF
7389 gezelter 749
7390 mmeineke 791 cat >>$CONFIG_STATUS <<_ACEOF
7391 gezelter 749 ac_cs_version="\\
7392     OOPSE config.status 1.0
7393 mmeineke 791 configured by $0, generated by GNU Autoconf 2.57,
7394 gezelter 749 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
7395    
7396     Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
7397     Free Software Foundation, Inc.
7398     This config.status script is free software; the Free Software Foundation
7399     gives unlimited permission to copy, distribute and modify it."
7400     srcdir=$srcdir
7401     INSTALL="$INSTALL"
7402 mmeineke 791 _ACEOF
7403 gezelter 749
7404 mmeineke 791 cat >>$CONFIG_STATUS <<\_ACEOF
7405 gezelter 749 # If no file are specified by the user, then we need to provide default
7406     # value. By we need to know if files were specified by the user.
7407     ac_need_defaults=:
7408     while test $# != 0
7409     do
7410     case $1 in
7411     --*=*)
7412     ac_option=`expr "x$1" : 'x\([^=]*\)='`
7413     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
7414 mmeineke 791 ac_shift=:
7415 gezelter 749 ;;
7416 mmeineke 791 -*)
7417     ac_option=$1
7418     ac_optarg=$2
7419     ac_shift=shift
7420     ;;
7421 gezelter 749 *) # This is not an option, so the user has probably given explicit
7422     # arguments.
7423 mmeineke 791 ac_option=$1
7424 gezelter 749 ac_need_defaults=false;;
7425     esac
7426    
7427 mmeineke 791 case $ac_option in
7428 gezelter 749 # Handling of the options.
7429 mmeineke 791 _ACEOF
7430     cat >>$CONFIG_STATUS <<\_ACEOF
7431 gezelter 749 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7432 mmeineke 791 ac_cs_recheck=: ;;
7433 gezelter 749 --version | --vers* | -V )
7434     echo "$ac_cs_version"; exit 0 ;;
7435     --he | --h)
7436     # Conflict between --help and --header
7437 mmeineke 791 { { echo "$as_me:$LINENO: error: ambiguous option: $1
7438 gezelter 749 Try \`$0 --help' for more information." >&5
7439     echo "$as_me: error: ambiguous option: $1
7440     Try \`$0 --help' for more information." >&2;}
7441     { (exit 1); exit 1; }; };;
7442     --help | --hel | -h )
7443     echo "$ac_cs_usage"; exit 0 ;;
7444     --debug | --d* | -d )
7445     debug=: ;;
7446     --file | --fil | --fi | --f )
7447 mmeineke 791 $ac_shift
7448     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
7449 gezelter 749 ac_need_defaults=false;;
7450     --header | --heade | --head | --hea )
7451 mmeineke 791 $ac_shift
7452     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
7453 gezelter 749 ac_need_defaults=false;;
7454 mmeineke 791 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7455     | -silent | --silent | --silen | --sile | --sil | --si | --s)
7456     ac_cs_silent=: ;;
7457 gezelter 749
7458     # This is an error.
7459 mmeineke 791 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
7460 gezelter 749 Try \`$0 --help' for more information." >&5
7461     echo "$as_me: error: unrecognized option: $1
7462     Try \`$0 --help' for more information." >&2;}
7463     { (exit 1); exit 1; }; } ;;
7464 mmeineke 791
7465     *) ac_config_targets="$ac_config_targets $1" ;;
7466    
7467 gezelter 749 esac
7468     shift
7469     done
7470    
7471 mmeineke 791 ac_configure_extra_args=
7472 gezelter 749
7473 mmeineke 791 if $ac_cs_silent; then
7474     exec 6>/dev/null
7475     ac_configure_extra_args="$ac_configure_extra_args --silent"
7476     fi
7477 gezelter 749
7478 mmeineke 791 _ACEOF
7479     cat >>$CONFIG_STATUS <<_ACEOF
7480     if \$ac_cs_recheck; then
7481     echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
7482     exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7483     fi
7484 gezelter 749
7485     _ACEOF
7486    
7487 mmeineke 791
7488    
7489    
7490    
7491     cat >>$CONFIG_STATUS <<\_ACEOF
7492     for ac_config_target in $ac_config_targets
7493     do
7494     case "$ac_config_target" in
7495     # Handling of arguments.
7496     "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7497     "libBASS/Makefile" ) CONFIG_FILES="$CONFIG_FILES libBASS/Makefile" ;;
7498     "libmdtools/Makefile" ) CONFIG_FILES="$CONFIG_FILES libmdtools/Makefile" ;;
7499     "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
7500     "utils/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
7501     "utils/sysbuilder/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/sysbuilder/Makefile" ;;
7502     "forceFields/Makefile" ) CONFIG_FILES="$CONFIG_FILES forceFields/Makefile" ;;
7503     "samples/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/Makefile" ;;
7504 mmeineke 808 "staticProps/Makefile" ) CONFIG_FILES="$CONFIG_FILES staticProps/Makefile" ;;
7505 mmeineke 791 "samples/alkane/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/alkane/Makefile" ;;
7506     "samples/argon/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/argon/Makefile" ;;
7507     "samples/beadLipid/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/beadLipid/Makefile" ;;
7508     "samples/lipid/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/lipid/Makefile" ;;
7509     "samples/metals/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/metals/Makefile" ;;
7510     "samples/water/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/water/Makefile" ;;
7511     "libmdtools/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS libmdtools/config.h" ;;
7512     *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
7513     echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
7514     { (exit 1); exit 1; }; };;
7515     esac
7516     done
7517    
7518 gezelter 749 # If the user did not use the arguments to specify the items to instantiate,
7519     # then the envvar interface is used. Set only those that are not.
7520     # We use the long form for the default assignment because of an extremely
7521     # bizarre bug on SunOS 4.1.3.
7522     if $ac_need_defaults; then
7523     test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7524     test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7525     fi
7526    
7527 mmeineke 791 # Have a temporary directory for convenience. Make it in the build tree
7528     # simply because there is no reason to put it here, and in addition,
7529     # creating and moving files from /tmp can sometimes cause problems.
7530 gezelter 749 # Create a temporary directory, and hook for its removal unless debugging.
7531     $debug ||
7532     {
7533     trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
7534 mmeineke 791 trap '{ (exit 1); exit 1; }' 1 2 13 15
7535 gezelter 749 }
7536    
7537     # Create a (secure) tmp directory for tmp files.
7538 mmeineke 791
7539 gezelter 749 {
7540 mmeineke 791 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
7541 gezelter 749 test -n "$tmp" && test -d "$tmp"
7542     } ||
7543     {
7544 mmeineke 791 tmp=./confstat$$-$RANDOM
7545 gezelter 749 (umask 077 && mkdir $tmp)
7546     } ||
7547     {
7548 mmeineke 791 echo "$me: cannot create a temporary directory in ." >&2
7549 gezelter 749 { (exit 1); exit 1; }
7550     }
7551    
7552 mmeineke 791 _ACEOF
7553 gezelter 749
7554 mmeineke 791 cat >>$CONFIG_STATUS <<_ACEOF
7555 gezelter 749
7556     #
7557     # CONFIG_FILES section.
7558     #
7559    
7560     # No need to generate the scripts if there are no CONFIG_FILES.
7561     # This happens for instance when ./config.status config.h
7562     if test -n "\$CONFIG_FILES"; then
7563     # Protect against being on the right side of a sed subst in config.status.
7564     sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
7565     s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
7566     s,@SHELL@,$SHELL,;t t
7567 mmeineke 791 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
7568     s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
7569     s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
7570     s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
7571     s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
7572     s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
7573 gezelter 749 s,@exec_prefix@,$exec_prefix,;t t
7574     s,@prefix@,$prefix,;t t
7575     s,@program_transform_name@,$program_transform_name,;t t
7576     s,@bindir@,$bindir,;t t
7577     s,@sbindir@,$sbindir,;t t
7578     s,@libexecdir@,$libexecdir,;t t
7579     s,@datadir@,$datadir,;t t
7580     s,@sysconfdir@,$sysconfdir,;t t
7581     s,@sharedstatedir@,$sharedstatedir,;t t
7582     s,@localstatedir@,$localstatedir,;t t
7583     s,@libdir@,$libdir,;t t
7584     s,@includedir@,$includedir,;t t
7585     s,@oldincludedir@,$oldincludedir,;t t
7586     s,@infodir@,$infodir,;t t
7587     s,@mandir@,$mandir,;t t
7588 mmeineke 791 s,@build_alias@,$build_alias,;t t
7589     s,@host_alias@,$host_alias,;t t
7590     s,@target_alias@,$target_alias,;t t
7591     s,@DEFS@,$DEFS,;t t
7592 gezelter 749 s,@ECHO_C@,$ECHO_C,;t t
7593     s,@ECHO_N@,$ECHO_N,;t t
7594     s,@ECHO_T@,$ECHO_T,;t t
7595     s,@LIBS@,$LIBS,;t t
7596     s,@PROGNAME@,$PROGNAME,;t t
7597 gezelter 822 s,@debug@,$debug,;t t
7598 gezelter 749 s,@build@,$build,;t t
7599     s,@build_cpu@,$build_cpu,;t t
7600     s,@build_vendor@,$build_vendor,;t t
7601     s,@build_os@,$build_os,;t t
7602     s,@host@,$host,;t t
7603     s,@host_cpu@,$host_cpu,;t t
7604     s,@host_vendor@,$host_vendor,;t t
7605     s,@host_os@,$host_os,;t t
7606     s,@CC@,$CC,;t t
7607     s,@CFLAGS@,$CFLAGS,;t t
7608     s,@LDFLAGS@,$LDFLAGS,;t t
7609     s,@CPPFLAGS@,$CPPFLAGS,;t t
7610     s,@ac_ct_CC@,$ac_ct_CC,;t t
7611     s,@EXEEXT@,$EXEEXT,;t t
7612     s,@OBJEXT@,$OBJEXT,;t t
7613     s,@CXX@,$CXX,;t t
7614     s,@CXXFLAGS@,$CXXFLAGS,;t t
7615     s,@ac_ct_CXX@,$ac_ct_CXX,;t t
7616     s,@F90@,$F90,;t t
7617     s,@F90FLAGS@,$F90FLAGS,;t t
7618     s,@ac_ct_F90@,$ac_ct_F90,;t t
7619     s,@PREPFLAG@,$PREPFLAG,;t t
7620     s,@PREPDEFFLAG@,$PREPDEFFLAG,;t t
7621     s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
7622     s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
7623     s,@INSTALL_DATA@,$INSTALL_DATA,;t t
7624     s,@LN_S@,$LN_S,;t t
7625     s,@SET_MAKE@,$SET_MAKE,;t t
7626     s,@RANLIB@,$RANLIB,;t t
7627     s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
7628     s,@YACC@,$YACC,;t t
7629     s,@LEX@,$LEX,;t t
7630     s,@LEXLIB@,$LEXLIB,;t t
7631     s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
7632     s,@AR@,$AR,;t t
7633     s,@F90LIBS@,$F90LIBS,;t t
7634     s,@F90_FUNC@,$F90_FUNC,;t t
7635     s,@F90_FUNC_@,$F90_FUNC_,;t t
7636 gezelter 826 s,@MOD@,$MOD,;t t
7637     s,@F90_WORK_FILES_ARG@,$F90_WORK_FILES_ARG,;t t
7638     s,@MODDIRFLAG@,$MODDIRFLAG,;t t
7639     s,@F90MODINCSPEC@,$F90MODINCSPEC,;t t
7640 gezelter 786 s,@mpi_dir@,$mpi_dir,;t t
7641 gezelter 749 s,@MPI_LIBDIR@,$MPI_LIBDIR,;t t
7642     s,@MPI_INC@,$MPI_INC,;t t
7643     s,@MPI_LIB@,$MPI_LIB,;t t
7644     s,@MPIF77@,$MPIF77,;t t
7645     s,@MPIF90@,$MPIF90,;t t
7646     s,@MPILIBS@,$MPILIBS,;t t
7647     s,@CPP@,$CPP,;t t
7648 mmeineke 791 s,@EGREP@,$EGREP,;t t
7649 gezelter 749 s,@SPRNG_LIBDIR@,$SPRNG_LIBDIR,;t t
7650     s,@SPRNG_LIB@,$SPRNG_LIB,;t t
7651     s,@SPRNG_INC@,$SPRNG_INC,;t t
7652     s,@HAVE_SPRNG@,$HAVE_SPRNG,;t t
7653     s,@MKL_LIBDIR@,$MKL_LIBDIR,;t t
7654     s,@MKL_LIB@,$MKL_LIB,;t t
7655     s,@MKL_INC@,$MKL_INC,;t t
7656     s,@HAVE_MKL@,$HAVE_MKL,;t t
7657 mmeineke 791 s,@MPI_F90_MODS@,$MPI_F90_MODS,;t t
7658     s,@MPIMODLIBNAME@,$MPIMODLIBNAME,;t t
7659 gezelter 749 s,@BATEXT@,$BATEXT,;t t
7660     s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
7661     s,@OOPSE@,$OOPSE,;t t
7662     s,@OOPSE_HOME@,$OOPSE_HOME,;t t
7663     s,@SUBDIRS@,$SUBDIRS,;t t
7664     s,@FFLAGS@,$FFLAGS,;t t
7665 mmeineke 791 s,@LIBOBJS@,$LIBOBJS,;t t
7666     s,@LTLIBOBJS@,$LTLIBOBJS,;t t
7667 gezelter 749 CEOF
7668    
7669 mmeineke 791 _ACEOF
7670 gezelter 749
7671 mmeineke 791 cat >>$CONFIG_STATUS <<\_ACEOF
7672 gezelter 749 # Split the substitutions into bite-sized pieces for seds with
7673     # small command number limits, like on Digital OSF/1 and HP-UX.
7674     ac_max_sed_lines=48
7675     ac_sed_frag=1 # Number of current file.
7676     ac_beg=1 # First line for current file.
7677     ac_end=$ac_max_sed_lines # Line after last line for current file.
7678     ac_more_lines=:
7679     ac_sed_cmds=
7680     while $ac_more_lines; do
7681     if test $ac_beg -gt 1; then
7682     sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7683     else
7684     sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7685     fi
7686     if test ! -s $tmp/subs.frag; then
7687     ac_more_lines=false
7688     else
7689     # The purpose of the label and of the branching condition is to
7690     # speed up the sed processing (if there are no `@' at all, there
7691     # is no need to browse any of the substitutions).
7692     # These are the two extra sed commands mentioned above.
7693     (echo ':t
7694     /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
7695     if test -z "$ac_sed_cmds"; then
7696     ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
7697     else
7698     ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
7699     fi
7700     ac_sed_frag=`expr $ac_sed_frag + 1`
7701     ac_beg=$ac_end
7702     ac_end=`expr $ac_end + $ac_max_sed_lines`
7703     fi
7704     done
7705     if test -z "$ac_sed_cmds"; then
7706     ac_sed_cmds=cat
7707     fi
7708     fi # test -n "$CONFIG_FILES"
7709    
7710 mmeineke 791 _ACEOF
7711     cat >>$CONFIG_STATUS <<\_ACEOF
7712 gezelter 749 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
7713     # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7714     case $ac_file in
7715     - | *:- | *:-:* ) # input from stdin
7716     cat >$tmp/stdin
7717     ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7718     ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7719     *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7720     ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7721     * ) ac_file_in=$ac_file.in ;;
7722     esac
7723    
7724     # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
7725 mmeineke 791 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7726     $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7727 gezelter 749 X"$ac_file" : 'X\(//\)[^/]' \| \
7728     X"$ac_file" : 'X\(//\)$' \| \
7729     X"$ac_file" : 'X\(/\)' \| \
7730     . : '\(.\)' 2>/dev/null ||
7731     echo X"$ac_file" |
7732     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7733     /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7734     /^X\(\/\/\)$/{ s//\1/; q; }
7735     /^X\(\/\).*/{ s//\1/; q; }
7736     s/.*/./; q'`
7737 mmeineke 791 { if $as_mkdir_p; then
7738     mkdir -p "$ac_dir"
7739 gezelter 749 else
7740 mmeineke 791 as_dir="$ac_dir"
7741     as_dirs=
7742     while test ! -d "$as_dir"; do
7743     as_dirs="$as_dir $as_dirs"
7744     as_dir=`(dirname "$as_dir") 2>/dev/null ||
7745     $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7746     X"$as_dir" : 'X\(//\)[^/]' \| \
7747     X"$as_dir" : 'X\(//\)$' \| \
7748     X"$as_dir" : 'X\(/\)' \| \
7749     . : '\(.\)' 2>/dev/null ||
7750     echo X"$as_dir" |
7751     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7752     /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7753     /^X\(\/\/\)$/{ s//\1/; q; }
7754     /^X\(\/\).*/{ s//\1/; q; }
7755     s/.*/./; q'`
7756     done
7757     test ! -n "$as_dirs" || mkdir $as_dirs
7758     fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7759     echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7760     { (exit 1); exit 1; }; }; }
7761 gezelter 749
7762 mmeineke 791 ac_builddir=.
7763    
7764     if test "$ac_dir" != .; then
7765     ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7766     # A "../" for each directory in $ac_dir_suffix.
7767     ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7768     else
7769     ac_dir_suffix= ac_top_builddir=
7770     fi
7771    
7772     case $srcdir in
7773     .) # No --srcdir option. We are building in place.
7774     ac_srcdir=.
7775     if test -z "$ac_top_builddir"; then
7776     ac_top_srcdir=.
7777     else
7778     ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7779     fi ;;
7780     [\\/]* | ?:[\\/]* ) # Absolute path.
7781     ac_srcdir=$srcdir$ac_dir_suffix;
7782     ac_top_srcdir=$srcdir ;;
7783 gezelter 749 *) # Relative path.
7784 mmeineke 791 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7785     ac_top_srcdir=$ac_top_builddir$srcdir ;;
7786     esac
7787     # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
7788     # absolute.
7789     ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
7790     ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
7791     ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
7792     ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
7793 gezelter 749
7794 mmeineke 791
7795 gezelter 749 case $INSTALL in
7796     [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7797 mmeineke 791 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
7798 gezelter 749 esac
7799    
7800     if test x"$ac_file" != x-; then
7801 mmeineke 791 { echo "$as_me:$LINENO: creating $ac_file" >&5
7802 gezelter 749 echo "$as_me: creating $ac_file" >&6;}
7803     rm -f "$ac_file"
7804     fi
7805     # Let's still pretend it is `configure' which instantiates (i.e., don't
7806     # use $as_me), people would be surprised to read:
7807 mmeineke 791 # /* config.h. Generated by config.status. */
7808     if test x"$ac_file" = x-; then
7809     configure_input=
7810     else
7811     configure_input="$ac_file. "
7812     fi
7813     configure_input=$configure_input"Generated from `echo $ac_file_in |
7814     sed 's,.*/,,'` by configure."
7815 gezelter 749
7816     # First look for the input files in the build tree, otherwise in the
7817     # src tree.
7818     ac_file_inputs=`IFS=:
7819     for f in $ac_file_in; do
7820     case $f in
7821     -) echo $tmp/stdin ;;
7822     [\\/$]*)
7823     # Absolute (can't be DOS-style, as IFS=:)
7824 mmeineke 791 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7825 gezelter 749 echo "$as_me: error: cannot find input file: $f" >&2;}
7826     { (exit 1); exit 1; }; }
7827     echo $f;;
7828     *) # Relative
7829     if test -f "$f"; then
7830     # Build tree
7831     echo $f
7832     elif test -f "$srcdir/$f"; then
7833     # Source tree
7834     echo $srcdir/$f
7835     else
7836     # /dev/null tree
7837 mmeineke 791 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7838 gezelter 749 echo "$as_me: error: cannot find input file: $f" >&2;}
7839     { (exit 1); exit 1; }; }
7840     fi;;
7841     esac
7842     done` || { (exit 1); exit 1; }
7843 mmeineke 791 _ACEOF
7844     cat >>$CONFIG_STATUS <<_ACEOF
7845 gezelter 749 sed "$ac_vpsub
7846     $extrasub
7847 mmeineke 791 _ACEOF
7848     cat >>$CONFIG_STATUS <<\_ACEOF
7849 gezelter 749 :t
7850     /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7851     s,@configure_input@,$configure_input,;t t
7852     s,@srcdir@,$ac_srcdir,;t t
7853 mmeineke 791 s,@abs_srcdir@,$ac_abs_srcdir,;t t
7854 gezelter 749 s,@top_srcdir@,$ac_top_srcdir,;t t
7855 mmeineke 791 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
7856     s,@builddir@,$ac_builddir,;t t
7857     s,@abs_builddir@,$ac_abs_builddir,;t t
7858     s,@top_builddir@,$ac_top_builddir,;t t
7859     s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
7860 gezelter 749 s,@INSTALL@,$ac_INSTALL,;t t
7861     " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
7862     rm -f $tmp/stdin
7863     if test x"$ac_file" != x-; then
7864     mv $tmp/out $ac_file
7865     else
7866     cat $tmp/out
7867     rm -f $tmp/out
7868     fi
7869    
7870     done
7871 mmeineke 791 _ACEOF
7872     cat >>$CONFIG_STATUS <<\_ACEOF
7873 gezelter 749
7874     #
7875     # CONFIG_HEADER section.
7876     #
7877    
7878     # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7879     # NAME is the cpp macro being defined and VALUE is the value it is being given.
7880     #
7881     # ac_d sets the value in "#define NAME VALUE" lines.
7882     ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7883     ac_dB='[ ].*$,\1#\2'
7884     ac_dC=' '
7885     ac_dD=',;t'
7886     # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7887     ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7888     ac_uB='$,\1#\2define\3'
7889     ac_uC=' '
7890     ac_uD=',;t'
7891    
7892     for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
7893     # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7894     case $ac_file in
7895     - | *:- | *:-:* ) # input from stdin
7896     cat >$tmp/stdin
7897     ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7898     ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7899     *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7900     ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7901     * ) ac_file_in=$ac_file.in ;;
7902     esac
7903    
7904 mmeineke 791 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
7905 gezelter 749 echo "$as_me: creating $ac_file" >&6;}
7906    
7907     # First look for the input files in the build tree, otherwise in the
7908     # src tree.
7909     ac_file_inputs=`IFS=:
7910     for f in $ac_file_in; do
7911     case $f in
7912     -) echo $tmp/stdin ;;
7913     [\\/$]*)
7914     # Absolute (can't be DOS-style, as IFS=:)
7915 mmeineke 791 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7916 gezelter 749 echo "$as_me: error: cannot find input file: $f" >&2;}
7917     { (exit 1); exit 1; }; }
7918     echo $f;;
7919     *) # Relative
7920     if test -f "$f"; then
7921     # Build tree
7922     echo $f
7923     elif test -f "$srcdir/$f"; then
7924     # Source tree
7925     echo $srcdir/$f
7926     else
7927     # /dev/null tree
7928 mmeineke 791 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7929 gezelter 749 echo "$as_me: error: cannot find input file: $f" >&2;}
7930     { (exit 1); exit 1; }; }
7931     fi;;
7932     esac
7933     done` || { (exit 1); exit 1; }
7934     # Remove the trailing spaces.
7935     sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
7936    
7937 mmeineke 791 _ACEOF
7938 gezelter 749
7939     # Transform confdefs.h into two sed scripts, `conftest.defines' and
7940     # `conftest.undefs', that substitutes the proper values into
7941     # config.h.in to produce config.h. The first handles `#define'
7942     # templates, and the second `#undef' templates.
7943     # And first: Protect against being on the right side of a sed subst in
7944     # config.status. Protect against being in an unquoted here document
7945     # in config.status.
7946     rm -f conftest.defines conftest.undefs
7947     # Using a here document instead of a string reduces the quoting nightmare.
7948     # Putting comments in sed scripts is not portable.
7949     #
7950     # `end' is used to avoid that the second main sed command (meant for
7951     # 0-ary CPP macros) applies to n-ary macro definitions.
7952     # See the Autoconf documentation for `clear'.
7953 mmeineke 791 cat >confdef2sed.sed <<\_ACEOF
7954 gezelter 749 s/[\\&,]/\\&/g
7955     s,[\\$`],\\&,g
7956     t clear
7957     : clear
7958 mmeineke 791 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
7959 gezelter 749 t end
7960     s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
7961     : end
7962 mmeineke 791 _ACEOF
7963 gezelter 749 # If some macros were called several times there might be several times
7964     # the same #defines, which is useless. Nevertheless, we may not want to
7965     # sort them, since we want the *last* AC-DEFINE to be honored.
7966     uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
7967     sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
7968     rm -f confdef2sed.sed
7969    
7970     # This sed command replaces #undef with comments. This is necessary, for
7971     # example, in the case of _POSIX_SOURCE, which is predefined and required
7972     # on some systems where configure will not decide to define it.
7973 mmeineke 791 cat >>conftest.undefs <<\_ACEOF
7974 gezelter 749 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
7975 mmeineke 791 _ACEOF
7976 gezelter 749
7977     # Break up conftest.defines because some shells have a limit on the size
7978     # of here documents, and old seds have small limits too (100 cmds).
7979     echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
7980 mmeineke 791 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
7981 gezelter 749 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
7982     echo ' :' >>$CONFIG_STATUS
7983     rm -f conftest.tail
7984     while grep . conftest.defines >/dev/null
7985     do
7986     # Write a limited-size here document to $tmp/defines.sed.
7987     echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
7988     # Speed up: don't consider the non `#define' lines.
7989     echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
7990     # Work around the forget-to-reset-the-flag bug.
7991     echo 't clr' >>$CONFIG_STATUS
7992     echo ': clr' >>$CONFIG_STATUS
7993     sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
7994     echo 'CEOF
7995     sed -f $tmp/defines.sed $tmp/in >$tmp/out
7996     rm -f $tmp/in
7997     mv $tmp/out $tmp/in
7998     ' >>$CONFIG_STATUS
7999     sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
8000     rm -f conftest.defines
8001     mv conftest.tail conftest.defines
8002     done
8003     rm -f conftest.defines
8004 mmeineke 791 echo ' fi # grep' >>$CONFIG_STATUS
8005 gezelter 749 echo >>$CONFIG_STATUS
8006    
8007     # Break up conftest.undefs because some shells have a limit on the size
8008     # of here documents, and old seds have small limits too (100 cmds).
8009     echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
8010     rm -f conftest.tail
8011     while grep . conftest.undefs >/dev/null
8012     do
8013     # Write a limited-size here document to $tmp/undefs.sed.
8014     echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
8015     # Speed up: don't consider the non `#undef'
8016     echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
8017     # Work around the forget-to-reset-the-flag bug.
8018     echo 't clr' >>$CONFIG_STATUS
8019     echo ': clr' >>$CONFIG_STATUS
8020     sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
8021     echo 'CEOF
8022     sed -f $tmp/undefs.sed $tmp/in >$tmp/out
8023     rm -f $tmp/in
8024     mv $tmp/out $tmp/in
8025     ' >>$CONFIG_STATUS
8026     sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
8027     rm -f conftest.undefs
8028     mv conftest.tail conftest.undefs
8029     done
8030     rm -f conftest.undefs
8031    
8032 mmeineke 791 cat >>$CONFIG_STATUS <<\_ACEOF
8033 gezelter 749 # Let's still pretend it is `configure' which instantiates (i.e., don't
8034     # use $as_me), people would be surprised to read:
8035 mmeineke 791 # /* config.h. Generated by config.status. */
8036 gezelter 749 if test x"$ac_file" = x-; then
8037 mmeineke 791 echo "/* Generated by configure. */" >$tmp/config.h
8038 gezelter 749 else
8039 mmeineke 791 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
8040 gezelter 749 fi
8041     cat $tmp/in >>$tmp/config.h
8042     rm -f $tmp/in
8043     if test x"$ac_file" != x-; then
8044 mmeineke 791 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
8045     { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
8046 gezelter 749 echo "$as_me: $ac_file is unchanged" >&6;}
8047     else
8048 mmeineke 791 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
8049     $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8050 gezelter 749 X"$ac_file" : 'X\(//\)[^/]' \| \
8051     X"$ac_file" : 'X\(//\)$' \| \
8052     X"$ac_file" : 'X\(/\)' \| \
8053     . : '\(.\)' 2>/dev/null ||
8054     echo X"$ac_file" |
8055     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8056     /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8057     /^X\(\/\/\)$/{ s//\1/; q; }
8058     /^X\(\/\).*/{ s//\1/; q; }
8059     s/.*/./; q'`
8060 mmeineke 791 { if $as_mkdir_p; then
8061     mkdir -p "$ac_dir"
8062     else
8063     as_dir="$ac_dir"
8064     as_dirs=
8065     while test ! -d "$as_dir"; do
8066     as_dirs="$as_dir $as_dirs"
8067     as_dir=`(dirname "$as_dir") 2>/dev/null ||
8068     $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8069     X"$as_dir" : 'X\(//\)[^/]' \| \
8070     X"$as_dir" : 'X\(//\)$' \| \
8071     X"$as_dir" : 'X\(/\)' \| \
8072     . : '\(.\)' 2>/dev/null ||
8073     echo X"$as_dir" |
8074     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8075     /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8076     /^X\(\/\/\)$/{ s//\1/; q; }
8077     /^X\(\/\).*/{ s//\1/; q; }
8078     s/.*/./; q'`
8079     done
8080     test ! -n "$as_dirs" || mkdir $as_dirs
8081     fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8082     echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8083     { (exit 1); exit 1; }; }; }
8084 gezelter 749
8085     rm -f $ac_file
8086     mv $tmp/config.h $ac_file
8087     fi
8088     else
8089     cat $tmp/config.h
8090     rm -f $tmp/config.h
8091     fi
8092     done
8093 mmeineke 791 _ACEOF
8094 gezelter 749
8095 mmeineke 791 cat >>$CONFIG_STATUS <<\_ACEOF
8096 gezelter 749
8097     { (exit 0); exit 0; }
8098 mmeineke 791 _ACEOF
8099 gezelter 749 chmod +x $CONFIG_STATUS
8100     ac_clean_files=$ac_clean_files_save
8101    
8102 mmeineke 791
8103 gezelter 749 # configure is writing to config.log, and then calls config.status.
8104     # config.status does its own redirection, appending to config.log.
8105     # Unfortunately, on DOS this fails, as config.log is still kept open
8106     # by configure, so config.status won't be able to write to it; its
8107     # output is simply discarded. So we exec the FD to /dev/null,
8108     # effectively closing config.log, so it can be properly (re)opened and
8109     # appended to by config.status. When coming back to configure, we
8110     # need to make the FD available again.
8111     if test "$no_create" != yes; then
8112     ac_cs_success=:
8113 mmeineke 791 ac_config_status_args=
8114     test "$silent" = yes &&
8115     ac_config_status_args="$ac_config_status_args --quiet"
8116 gezelter 749 exec 5>/dev/null
8117 mmeineke 791 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8118 gezelter 749 exec 5>>config.log
8119     # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8120     # would make configure fail if this is the last instruction.
8121     $ac_cs_success || { (exit 1); exit 1; }
8122     fi
8123    

Properties

Name Value
svn:executable *