ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/OOPSE/configure
Revision: 896
Committed: Mon Jan 5 22:18:40 2004 UTC (20 years, 6 months ago) by chuckv
File size: 241616 byte(s)
Log Message:
mpich mucking

File Contents

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

Properties

Name Value
svn:executable *