ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/OOPSE-3.0/configure
Revision: 2026
Committed: Tue Feb 15 05:59:14 2005 UTC (19 years, 4 months ago) by gezelter
File size: 280693 byte(s)
Log Message:
bugfixes for residentMem on LINUX

File Contents

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

Properties

Name Value
svn:executable *