ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/OOPSE/configure
Revision: 822
Committed: Mon Oct 27 16:20:59 2003 UTC (20 years, 9 months ago) by gezelter
File size: 232192 byte(s)
Log Message:
fixes for configure, sysBuild

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

Properties

Name Value
svn:executable *