ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/OOPSE-3.0/configure
Revision: 2023
Committed: Mon Feb 14 23:26:25 2005 UTC (19 years, 4 months ago) by gezelter
File size: 280271 byte(s)
Log Message:
ps niceness

File Contents

# User Rev Content
1 gezelter 1490 #! /bin/sh
2     # Guess values for system-dependent variables and create Makefiles.
3 gezelter 1499 # Generated by GNU Autoconf 2.59 for OOPSE 2.0.
4 gezelter 1490 #
5     # Report bugs to <gezelter@nd.edu>.
6     #
7     # Copyright (C) 2003 Free Software Foundation, Inc.
8     # 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     DUALCASE=1; export DUALCASE # for MKS sh
25    
26     # Support unset when possible.
27     if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28     as_unset=unset
29     else
30     as_unset=false
31     fi
32    
33    
34     # Work around bugs in pre-3.0 UWIN ksh.
35     $as_unset ENV MAIL MAILPATH
36     PS1='$ '
37     PS2='> '
38     PS4='+ '
39    
40     # NLS nuisances.
41     for as_var in \
42     LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43     LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44     LC_TELEPHONE LC_TIME
45     do
46     if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47     eval $as_var=C; export $as_var
48     else
49     $as_unset $as_var
50     fi
51     done
52    
53     # Required to use basename.
54     if expr a : '\(a\)' >/dev/null 2>&1; then
55     as_expr=expr
56     else
57     as_expr=false
58     fi
59    
60     if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61     as_basename=basename
62     else
63     as_basename=false
64     fi
65    
66    
67     # Name of the executable.
68     as_me=`$as_basename "$0" ||
69     $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70     X"$0" : 'X\(//\)$' \| \
71     X"$0" : 'X\(/\)$' \| \
72     . : '\(.\)' 2>/dev/null ||
73     echo X/"$0" |
74     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75     /^X\/\(\/\/\)$/{ s//\1/; q; }
76     /^X\/\(\/\).*/{ s//\1/; q; }
77     s/.*/./; q'`
78    
79    
80     # PATH needs CR, and LINENO needs CR and PATH.
81     # Avoid depending upon Character Ranges.
82     as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83     as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84     as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85     as_cr_digits='0123456789'
86     as_cr_alnum=$as_cr_Letters$as_cr_digits
87    
88     # The user is always right.
89     if test "${PATH_SEPARATOR+set}" != set; then
90     echo "#! /bin/sh" >conf$$.sh
91     echo "exit 0" >>conf$$.sh
92     chmod +x conf$$.sh
93     if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94     PATH_SEPARATOR=';'
95     else
96     PATH_SEPARATOR=:
97     fi
98     rm -f conf$$.sh
99     fi
100    
101    
102     as_lineno_1=$LINENO
103     as_lineno_2=$LINENO
104     as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105     test "x$as_lineno_1" != "x$as_lineno_2" &&
106     test "x$as_lineno_3" = "x$as_lineno_2" || {
107     # Find who we are. Look in the path if we contain no path at all
108     # relative or not.
109     case $0 in
110     *[\\/]* ) as_myself=$0 ;;
111     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112     for as_dir in $PATH
113     do
114     IFS=$as_save_IFS
115     test -z "$as_dir" && as_dir=.
116     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117     done
118    
119     ;;
120     esac
121     # We did not find ourselves, most probably we were run as `sh COMMAND'
122     # in which case we are not to be found in the path.
123     if test "x$as_myself" = x; then
124     as_myself=$0
125     fi
126     if test ! -f "$as_myself"; then
127     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128     { (exit 1); exit 1; }; }
129     fi
130     case $CONFIG_SHELL in
131     '')
132     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133     for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134     do
135     IFS=$as_save_IFS
136     test -z "$as_dir" && as_dir=.
137     for as_base in sh bash ksh sh5; do
138     case $as_dir in
139     /*)
140     if ("$as_dir/$as_base" -c '
141     as_lineno_1=$LINENO
142     as_lineno_2=$LINENO
143     as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144     test "x$as_lineno_1" != "x$as_lineno_2" &&
145     test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
146     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148     CONFIG_SHELL=$as_dir/$as_base
149     export CONFIG_SHELL
150     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151     fi;;
152     esac
153     done
154     done
155     ;;
156     esac
157    
158     # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159     # uniformly replaced by the line number. The first 'sed' inserts a
160     # line-number line before each line; the second 'sed' does the real
161     # work. The second script uses 'N' to pair each line-number line
162     # with the numbered line, and appends trailing '-' during
163     # substitution so that $LINENO is not a special case at line end.
164     # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165     # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
166     sed '=' <$as_myself |
167     sed '
168     N
169     s,$,-,
170     : loop
171     s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172     t loop
173     s,-$,,
174     s,^['$as_cr_digits']*\n,,
175     ' >$as_me.lineno &&
176     chmod +x $as_me.lineno ||
177     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178     { (exit 1); exit 1; }; }
179    
180     # Don't try to exec as it changes $[0], causing all sort of problems
181     # (the dirname of $[0] is not the place where we might find the
182     # original and so on. Autoconf is especially sensible to this).
183     . ./$as_me.lineno
184     # Exit status is that of the last command.
185     exit
186     }
187    
188    
189     case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190     *c*,-n*) ECHO_N= ECHO_C='
191     ' ECHO_T=' ' ;;
192     *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193     *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194     esac
195    
196     if expr a : '\(a\)' >/dev/null 2>&1; then
197     as_expr=expr
198     else
199     as_expr=false
200     fi
201    
202     rm -f conf$$ conf$$.exe conf$$.file
203     echo >conf$$.file
204     if ln -s conf$$.file conf$$ 2>/dev/null; then
205     # We could just check for DJGPP; but this test a) works b) is more generic
206     # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207     if test -f conf$$.exe; then
208     # Don't use ln at all; we don't have any links
209     as_ln_s='cp -p'
210     else
211     as_ln_s='ln -s'
212     fi
213     elif ln conf$$.file conf$$ 2>/dev/null; then
214     as_ln_s=ln
215     else
216     as_ln_s='cp -p'
217     fi
218     rm -f conf$$ conf$$.exe conf$$.file
219    
220     if mkdir -p . 2>/dev/null; then
221     as_mkdir_p=:
222     else
223     test -d ./-p && rmdir ./-p
224     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     as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
231    
232     # Sed expression to map a string onto a valid variable name.
233     as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234    
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 2023 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 PSTYPE 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     localstatedir libdir includedir oldincludedir infodir mandir
675     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     X"$0" : 'X\(//\)[^/]' \| \
715     X"$0" : 'X\(//\)$' \| \
716     X"$0" : 'X\(/\)' \| \
717     . : '\(.\)' 2>/dev/null ||
718     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     [$ac_default_prefix]
826     --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
827     [PREFIX]
828    
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     # 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     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     test -f $ac_srcdir/configure.in; then
983     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 1490 generated by GNU Autoconf 2.59
997    
998     Copyright (C) 2003 Free Software Foundation, Inc.
999     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 1490 generated by GNU Autoconf 2.59. Invocation command line was
1011    
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     ac_must_keep_next=false # Got value, back to normal.
1088     else
1089     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     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     "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1134     s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1135     ;;
1136     *)
1137     sed -n \
1138     "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1139     ;;
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     echo "$ac_var='"'"'$ac_val'"'"'"
1168     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     rm -f core *.core &&
1187     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     sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1267     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     { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1284     echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1285     { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1286     echo "$as_me: former value: $ac_old_val" >&2;}
1287     { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1288     echo "$as_me: current value: $ac_new_val" >&2;}
1289     ac_cache_corrupted=:
1290     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     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     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     ;;
2127     conftest.$ac_ext )
2128     # This is the source file.
2129     ;;
2130     [ab].out )
2131     # We found the default executable, but exeext='' is most
2132     # certainly right.
2133     break;;
2134     *.* )
2135     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     * )
2142     break;;
2143     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     export ac_cv_exeext
2217     break;;
2218     * ) 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     (eval $ac_compile) 2>conftest.er1
2312     ac_status=$?
2313     grep -v '^ *+' conftest.er1 >conftest.err
2314     rm -f conftest.er1
2315     cat conftest.err >&5
2316     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2317     (exit $ac_status); } &&
2318     { ac_try='test -z "$ac_c_werror_flag"
2319     || test ! -s conftest.err'
2320     { (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     (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     (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     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2339     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     (eval $ac_compile) 2>conftest.er1
2371     ac_status=$?
2372     grep -v '^ *+' conftest.er1 >conftest.err
2373     rm -f conftest.er1
2374     cat conftest.err >&5
2375     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2376     (exit $ac_status); } &&
2377     { ac_try='test -z "$ac_c_werror_flag"
2378     || test ! -s conftest.err'
2379     { (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     (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     (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     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2398     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    
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     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     (eval $ac_compile) 2>conftest.er1
2488     ac_status=$?
2489     grep -v '^ *+' conftest.er1 >conftest.err
2490     rm -f conftest.er1
2491     cat conftest.err >&5
2492     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2493     (exit $ac_status); } &&
2494     { ac_try='test -z "$ac_c_werror_flag"
2495     || test ! -s conftest.err'
2496     { (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     (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     (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     rm -f conftest.err conftest.$ac_objext
2515     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     (eval $ac_compile) 2>conftest.er1
2543     ac_status=$?
2544     grep -v '^ *+' conftest.er1 >conftest.err
2545     rm -f conftest.er1
2546     cat conftest.err >&5
2547     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2548     (exit $ac_status); } &&
2549     { ac_try='test -z "$ac_c_werror_flag"
2550     || test ! -s conftest.err'
2551     { (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     (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     (exit $ac_status); }; }; then
2562     for ac_declaration in \
2563     '' \
2564     '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     $ac_declaration
2577     #include <stdlib.h>
2578     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     (eval $ac_compile) 2>conftest.er1
2589     ac_status=$?
2590     grep -v '^ *+' conftest.er1 >conftest.err
2591     rm -f conftest.er1
2592     cat conftest.err >&5
2593     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2594     (exit $ac_status); } &&
2595     { ac_try='test -z "$ac_c_werror_flag"
2596     || test ! -s conftest.err'
2597     { (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     (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     (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     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2616     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     (eval $ac_compile) 2>conftest.er1
2634     ac_status=$?
2635     grep -v '^ *+' conftest.er1 >conftest.err
2636     rm -f conftest.er1
2637     cat conftest.err >&5
2638     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2639     (exit $ac_status); } &&
2640     { ac_try='test -z "$ac_c_werror_flag"
2641     || test ! -s conftest.err'
2642     { (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     (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     (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     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2660     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     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2674     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     (eval $ac_compile) 2>conftest.er1
2820     ac_status=$?
2821     grep -v '^ *+' conftest.er1 >conftest.err
2822     rm -f conftest.er1
2823     cat conftest.err >&5
2824     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2825     (exit $ac_status); } &&
2826     { ac_try='test -z "$ac_cxx_werror_flag"
2827     || test ! -s conftest.err'
2828     { (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     (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     (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     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2847     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     (eval $ac_compile) 2>conftest.er1
2879     ac_status=$?
2880     grep -v '^ *+' conftest.er1 >conftest.err
2881     rm -f conftest.er1
2882     cat conftest.err >&5
2883     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2884     (exit $ac_status); } &&
2885     { ac_try='test -z "$ac_cxx_werror_flag"
2886     || test ! -s conftest.err'
2887     { (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     (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     (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     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2906     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     '' \
2926     '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     $ac_declaration
2939     #include <stdlib.h>
2940     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     (eval $ac_compile) 2>conftest.er1
2951     ac_status=$?
2952     grep -v '^ *+' conftest.er1 >conftest.err
2953     rm -f conftest.er1
2954     cat conftest.err >&5
2955     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2956     (exit $ac_status); } &&
2957     { ac_try='test -z "$ac_cxx_werror_flag"
2958     || test ! -s conftest.err'
2959     { (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     (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     (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     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2978     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     (eval $ac_compile) 2>conftest.er1
2996     ac_status=$?
2997     grep -v '^ *+' conftest.er1 >conftest.err
2998     rm -f conftest.er1
2999     cat conftest.err >&5
3000     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3001     (exit $ac_status); } &&
3002     { ac_try='test -z "$ac_cxx_werror_flag"
3003     || test ! -s conftest.err'
3004     { (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     (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     (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     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3022     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     (eval $ac_compile) 2>conftest.er1
3207     ac_status=$?
3208     grep -v '^ *+' conftest.er1 >conftest.err
3209     rm -f conftest.er1
3210     cat conftest.err >&5
3211     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3212     (exit $ac_status); } &&
3213     { ac_try='test -z "$ac_f90_werror_flag"
3214     || test ! -s conftest.err'
3215     { (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     (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     (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     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3234     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     (eval $ac_compile) 2>conftest.er1
3308     ac_status=$?
3309     grep -v '^ *+' conftest.er1 >conftest.err
3310     rm -f conftest.er1
3311     cat conftest.err >&5
3312     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3313     (exit $ac_status); } &&
3314     { ac_try='test -z "$ac_f90_werror_flag"
3315     || test ! -s conftest.err'
3316     { (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     (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     (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     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3335    
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     (eval $ac_compile) 2>conftest.er1
3423     ac_status=$?
3424     grep -v '^ *+' conftest.er1 >conftest.err
3425     rm -f conftest.er1
3426     cat conftest.err >&5
3427     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3428     (exit $ac_status); } &&
3429     { ac_try='test -z "$ac_f90_werror_flag"
3430     || test ! -s conftest.err'
3431     { (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     (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     (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     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3450    
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     (eval $ac_compile) 2>conftest.er1
3502     ac_status=$?
3503     grep -v '^ *+' conftest.er1 >conftest.err
3504     rm -f conftest.er1
3505     cat conftest.err >&5
3506     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3507     (exit $ac_status); } &&
3508     { ac_try='test -z "$ac_f90_werror_flag"
3509     || test ! -s conftest.err'
3510     { (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     (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     (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 1540 (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     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3588    
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 1540 (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     (eval $ac_compile) 2>conftest.er1
3805     ac_status=$?
3806     grep -v '^ *+' conftest.er1 >conftest.err
3807     rm -f conftest.er1
3808     cat conftest.err >&5
3809     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3810     (exit $ac_status); } &&
3811     { ac_try='test -z "$ac_f90_werror_flag"
3812     || test ! -s conftest.err'
3813     { (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     (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     (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     (eval $ac_link) 2>conftest.er1
3864     ac_status=$?
3865     grep -v '^ *+' conftest.er1 >conftest.err
3866     rm -f conftest.er1
3867     cat conftest.err >&5
3868     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3869     (exit $ac_status); } &&
3870     { ac_try='test -z "$ac_c_werror_flag"
3871     || test ! -s conftest.err'
3872     { (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     (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     (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     rm -f conftest.err conftest.$ac_objext \
3890     conftest$ac_exeext conftest.$ac_ext
3891     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     (eval $ac_link) 2>conftest.er1
3935     ac_status=$?
3936     grep -v '^ *+' conftest.er1 >conftest.err
3937     rm -f conftest.er1
3938     cat conftest.err >&5
3939     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3940     (exit $ac_status); } &&
3941     { ac_try='test -z "$ac_c_werror_flag"
3942     || test ! -s conftest.err'
3943     { (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     (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     (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     rm -f conftest.err conftest.$ac_objext \
3961     conftest$ac_exeext conftest.$ac_ext
3962     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     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3997     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     (eval $ac_compile) 2>conftest.er1
4240     ac_status=$?
4241     grep -v '^ *+' conftest.er1 >conftest.err
4242     rm -f conftest.er1
4243     cat conftest.err >&5
4244     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4245     (exit $ac_status); } &&
4246     { ac_try='test -z "$ac_f90_werror_flag"
4247     || test ! -s conftest.err'
4248     { (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     (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     (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     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4359     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     Syntax error
4499     _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     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4511     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     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4549     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     Syntax error
4606     _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     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4618     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     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4656     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     (eval $ac_compile) 2>conftest.er1
4737     ac_status=$?
4738     grep -v '^ *+' conftest.er1 >conftest.err
4739     rm -f conftest.er1
4740     cat conftest.err >&5
4741     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4742     (exit $ac_status); } &&
4743     { ac_try='test -z "$ac_c_werror_flag"
4744     || test ! -s conftest.err'
4745     { (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     (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     (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     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4764    
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     (('a' <= (c) && (c) <= 'i') \
4825     || ('j' <= (c) && (c) <= 'r') \
4826     || ('s' <= (c) && (c) <= 'z'))
4827     # 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     || toupper (i) != TOUPPER (i))
4838     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     rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4863     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     inttypes.h stdint.h unistd.h
4888     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     (eval $ac_compile) 2>conftest.er1
4908     ac_status=$?
4909     grep -v '^ *+' conftest.er1 >conftest.err
4910     rm -f conftest.er1
4911     cat conftest.err >&5
4912     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4913     (exit $ac_status); } &&
4914     { ac_try='test -z "$ac_c_werror_flag"
4915     || test ! -s conftest.err'
4916     { (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     (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     (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     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4935     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     (eval $ac_compile) 2>conftest.er1
4984     ac_status=$?
4985     grep -v '^ *+' conftest.er1 >conftest.err
4986     rm -f conftest.er1
4987     cat conftest.err >&5
4988     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4989     (exit $ac_status); } &&
4990     { ac_try='test -z "$ac_c_werror_flag"
4991     || test ! -s conftest.err'
4992     { (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     (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     (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     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5011     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     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5036     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     case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5056     yes:no: )
5057     { 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     { 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     ;;
5063     no:yes:* )
5064     { 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     { 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     { 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     { 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     (
5077     cat <<\_ASBOX
5078     ## ------------------------------ ##
5079     ## Report this to gezelter@nd.edu ##
5080     ## ------------------------------ ##
5081     _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     eval "$as_ac_Header=\$ac_header_preproc"
5092     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     /* 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     /* 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    
5134     #ifdef __STDC__
5135     # include <limits.h>
5136     #else
5137     # include <assert.h>
5138     #endif
5139    
5140     #undef $ac_func
5141    
5142     /* 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     (eval $ac_link) 2>conftest.er1
5173     ac_status=$?
5174     grep -v '^ *+' conftest.er1 >conftest.err
5175     rm -f conftest.er1
5176     cat conftest.err >&5
5177     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5178     (exit $ac_status); } &&
5179     { ac_try='test -z "$ac_c_werror_flag"
5180     || test ! -s conftest.err'
5181     { (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     (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     (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     rm -f conftest.err conftest.$ac_objext \
5200     conftest$ac_exeext conftest.$ac_ext
5201     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     (eval $ac_compile) 2>conftest.er1
5234     ac_status=$?
5235     grep -v '^ *+' conftest.er1 >conftest.err
5236     rm -f conftest.er1
5237     cat conftest.err >&5
5238     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5239     (exit $ac_status); } &&
5240     { ac_try='test -z "$ac_c_werror_flag"
5241     || test ! -s conftest.err'
5242     { (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     (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     (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     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5268    
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     (eval $ac_compile) 2>conftest.er1
5300     ac_status=$?
5301     grep -v '^ *+' conftest.er1 >conftest.err
5302     rm -f conftest.er1
5303     cat conftest.err >&5
5304     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5305     (exit $ac_status); } &&
5306     { ac_try='test -z "$ac_c_werror_flag"
5307     || test ! -s conftest.err'
5308     { (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     (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     (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     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5327     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     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5352     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     case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5372     yes:no: )
5373     { 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     { 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     ;;
5379     no:yes:* )
5380     { 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     { 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     { 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     { 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     (
5393     cat <<\_ASBOX
5394     ## ------------------------------ ##
5395     ## Report this to gezelter@nd.edu ##
5396     ## ------------------------------ ##
5397     _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     eval "$as_ac_Header=\$ac_header_preproc"
5408     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     /* 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     /* 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    
5446     #ifdef __STDC__
5447     # include <limits.h>
5448     #else
5449     # include <assert.h>
5450     #endif
5451    
5452     #undef $ac_func
5453    
5454     /* 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     (eval $ac_link) 2>conftest.er1
5485     ac_status=$?
5486     grep -v '^ *+' conftest.er1 >conftest.err
5487     rm -f conftest.er1
5488     cat conftest.err >&5
5489     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5490     (exit $ac_status); } &&
5491     { ac_try='test -z "$ac_c_werror_flag"
5492     || test ! -s conftest.err'
5493     { (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     (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     (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     rm -f conftest.err conftest.$ac_objext \
5512     conftest$ac_exeext conftest.$ac_ext
5513     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     (eval $ac_link) 2>conftest.er1
5555     ac_status=$?
5556     grep -v '^ *+' conftest.er1 >conftest.err
5557     rm -f conftest.er1
5558     cat conftest.err >&5
5559     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5560     (exit $ac_status); } &&
5561     { ac_try='test -z "$ac_c_werror_flag"
5562     || test ! -s conftest.err'
5563     { (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     (exit $ac_status); }; } &&
5568     { ac_try='test -s conftest$ac_exeext'
5569     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5570     (eval $ac_try) 2>&5
5571     ac_status=$?
5572     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5573     (exit $ac_status); }; }; then
5574     ac_cv_lib_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     rm -f conftest.err conftest.$ac_objext \
5582     conftest$ac_exeext conftest.$ac_ext
5583     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     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     # OS/2's system install, which has a completely different semantic
6659     # ./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     ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6676     /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     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     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     set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
6740     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     (eval $ac_link) 2>conftest.er1
6962     ac_status=$?
6963     grep -v '^ *+' conftest.er1 >conftest.err
6964     rm -f conftest.er1
6965     cat conftest.err >&5
6966     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6967     (exit $ac_status); } &&
6968     { ac_try='test -z "$ac_c_werror_flag"
6969     || test ! -s conftest.err'
6970     { (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     (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     (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     rm -f conftest.err conftest.$ac_objext \
6989     conftest$ac_exeext conftest.$ac_ext
6990     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     (eval $ac_link) 2>conftest.er1
7029     ac_status=$?
7030     grep -v '^ *+' conftest.er1 >conftest.err
7031     rm -f conftest.er1
7032     cat conftest.err >&5
7033     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7034     (exit $ac_status); } &&
7035     { ac_try='test -z "$ac_c_werror_flag"
7036     || test ! -s conftest.err'
7037     { (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     (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     (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     rm -f conftest.err conftest.$ac_objext \
7056     conftest$ac_exeext conftest.$ac_ext
7057     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     (eval $ac_link) 2>conftest.er1
7119     ac_status=$?
7120     grep -v '^ *+' conftest.er1 >conftest.err
7121     rm -f conftest.er1
7122     cat conftest.err >&5
7123     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7124     (exit $ac_status); } &&
7125     { ac_try='test -z "$ac_c_werror_flag"
7126     || test ! -s conftest.err'
7127     { (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     (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     (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     rm -f conftest.err conftest.$ac_objext \
7145     conftest$ac_exeext conftest.$ac_ext
7146     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     "s/'/'\\\\''/g;
7230     s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7231     ;;
7232     *)
7233     # `set' quotes correctly as required by POSIX, so do not add quotes.
7234     sed -n \
7235     "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
7236     ;;
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     echo "$as_me:$LINENO: checking for POSIX ps" >&5
7298     echo $ECHO_N "checking for POSIX ps... $ECHO_C" >&6
7299     if test "${ac_cv_prog_ps_posix+set}" = set; then
7300     echo $ECHO_N "(cached) $ECHO_C" >&6
7301     else
7302    
7303     USER=${USER:-${LOGNAME:-`logname`}}
7304 gezelter 2023 if $PS -U $USER -opid,args >/dev/null 2>&1; then
7305 gezelter 2022 ac_cv_prog_ps_posix=yes
7306     else
7307     ac_cv_prog_ps_posix=no
7308     fi
7309    
7310     fi
7311     echo "$as_me:$LINENO: result: $ac_cv_prog_ps_posix" >&5
7312     echo "${ECHO_T}$ac_cv_prog_ps_posix" >&6
7313     if test "$ac_cv_prog_ps_posix" = yes; then
7314 gezelter 2023 PSTYPE=BSD
7315 gezelter 2022 else
7316 gezelter 2023 PSTYPE=POSIX
7317 gezelter 2022 fi
7318    
7319    
7320    
7321    
7322    
7323    
7324 gezelter 1490 # Check whether --with-mpi or --without-mpi was given.
7325     if test "${with_mpi+set}" = set; then
7326     withval="$with_mpi"
7327     with_mpi=$withval
7328     else
7329     with_mpi="no"
7330     fi;
7331    
7332     case "x$with_mpi" in
7333     xyes | "x") USE_MPI=yes;;
7334     xno) USE_MPI=no ;;
7335     *) MPI="$with_mpi"; USE_MPI=yes ;;
7336     esac
7337     if test "$USE_MPI" = "yes" -a -z "$with_mpi"; then
7338     MPI="/usr/local"
7339     fi
7340     if test "$USE_MPI" = "yes"; then
7341    
7342    
7343     # Set variables...
7344     MPI_LIB_DIR="$MPI/lib"
7345     MPI_INC_DIR="$MPI/include"
7346    
7347    
7348    
7349     echo "$as_me:$LINENO: checking for mpi.h" >&5
7350     echo $ECHO_N "checking for mpi.h... $ECHO_C" >&6
7351     have_mpi_h=0
7352     echo '#include <mpi.h>' > conftest.cc
7353     if test -z "`${CXX} -I${MPI_INC_DIR} -c conftest.cc 2>&1`"; then
7354     echo "$as_me:$LINENO: result: yes" >&5
7355     echo "${ECHO_T}yes" >&6
7356     have_mpi_h=1
7357     else
7358     echo "$as_me:$LINENO: result: no! Check MPI include paths" >&5
7359     echo "${ECHO_T}no! Check MPI include paths" >&6
7360     USE_MPI="no"
7361     fi
7362     rm -f conftest*
7363     if test "$have_mpi_h" = 1; then
7364    
7365     cat >>confdefs.h <<\_ACEOF
7366     #define HAVE_MPI_H 1
7367     _ACEOF
7368    
7369     fi
7370    
7371     echo "$as_me:$LINENO: checking whether mpif.h is usable" >&5
7372     echo $ECHO_N "checking whether mpif.h is usable... $ECHO_C" >&6
7373     have_mpif_h=0
7374     rm -f conftest*
7375     cat >conftest.f90 <<EOF
7376     program main
7377     include 'mpif.h'
7378     end
7379     EOF
7380     if $F90 -I$MPI_INC_DIR -c conftest.f90 > conftest.out 2>&1 ; then
7381     echo "$as_me:$LINENO: result: yes" >&5
7382     echo "${ECHO_T}yes" >&6
7383     MPI_F90_INC="$MPI_INC_DIR"
7384     have_mpif_h=1
7385     else
7386     if test -s conftest.out ; then
7387     cat conftest.out >> config.log
7388     fi
7389     echo "$as_me:$LINENO: result: no! Check MPI include paths" >&5
7390     echo "${ECHO_T}no! Check MPI include paths" >&6
7391     USE_MPI="no"
7392     fi
7393     rm -f conftest*
7394    
7395     if test "$have_mpif_h" = 1; then
7396    
7397     cat >>confdefs.h <<\_ACEOF
7398     #define HAVE_MPIF_H 1
7399     _ACEOF
7400    
7401     fi
7402    
7403     ac_ext=c
7404     ac_cpp='$CPP $CPPFLAGS'
7405     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7406     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7407     ac_compiler_gnu=$ac_cv_c_compiler_gnu
7408    
7409     ac_save_LDFLAGS=$LDFLAGS
7410     LDFLAGS="${LDFLAGS} -L${MPI_LIB_DIR} "
7411    
7412     if test x = x"$MPI_LIB"; then
7413     echo "$as_me:$LINENO: checking for MPI_Init in -lmpich" >&5
7414     echo $ECHO_N "checking for MPI_Init in -lmpich... $ECHO_C" >&6
7415     if test "${ac_cv_lib_mpich_MPI_Init+set}" = set; then
7416     echo $ECHO_N "(cached) $ECHO_C" >&6
7417     else
7418     ac_check_lib_save_LIBS=$LIBS
7419     LIBS="-lmpich $LIBS"
7420     cat >conftest.$ac_ext <<_ACEOF
7421     /* confdefs.h. */
7422     _ACEOF
7423     cat confdefs.h >>conftest.$ac_ext
7424     cat >>conftest.$ac_ext <<_ACEOF
7425     /* end confdefs.h. */
7426    
7427     /* Override any gcc2 internal prototype to avoid an error. */
7428     #ifdef __cplusplus
7429     extern "C"
7430     #endif
7431     /* We use char because int might match the return type of a gcc2
7432     builtin and then its argument prototype would still apply. */
7433     char MPI_Init ();
7434     int
7435     main ()
7436     {
7437     MPI_Init ();
7438     ;
7439     return 0;
7440     }
7441     _ACEOF
7442     rm -f conftest.$ac_objext conftest$ac_exeext
7443     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7444     (eval $ac_link) 2>conftest.er1
7445     ac_status=$?
7446     grep -v '^ *+' conftest.er1 >conftest.err
7447     rm -f conftest.er1
7448     cat conftest.err >&5
7449     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7450     (exit $ac_status); } &&
7451     { ac_try='test -z "$ac_c_werror_flag"
7452     || test ! -s conftest.err'
7453     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7454     (eval $ac_try) 2>&5
7455     ac_status=$?
7456     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7457     (exit $ac_status); }; } &&
7458     { ac_try='test -s conftest$ac_exeext'
7459     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7460     (eval $ac_try) 2>&5
7461     ac_status=$?
7462     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7463     (exit $ac_status); }; }; then
7464     ac_cv_lib_mpich_MPI_Init=yes
7465     else
7466     echo "$as_me: failed program was:" >&5
7467     sed 's/^/| /' conftest.$ac_ext >&5
7468    
7469     ac_cv_lib_mpich_MPI_Init=no
7470     fi
7471     rm -f conftest.err conftest.$ac_objext \
7472     conftest$ac_exeext conftest.$ac_ext
7473     LIBS=$ac_check_lib_save_LIBS
7474     fi
7475     echo "$as_me:$LINENO: result: $ac_cv_lib_mpich_MPI_Init" >&5
7476     echo "${ECHO_T}$ac_cv_lib_mpich_MPI_Init" >&6
7477     if test $ac_cv_lib_mpich_MPI_Init = yes; then
7478     MPI_LIB="-lmpich"
7479     fi
7480    
7481     fi
7482     if test x = x"$MPI_LIB"; then
7483     echo "$as_me:$LINENO: checking for MPI_Init in -lmpi" >&5
7484     echo $ECHO_N "checking for MPI_Init in -lmpi... $ECHO_C" >&6
7485     if test "${ac_cv_lib_mpi_MPI_Init+set}" = set; then
7486     echo $ECHO_N "(cached) $ECHO_C" >&6
7487     else
7488     ac_check_lib_save_LIBS=$LIBS
7489     LIBS="-lmpi $LIBS"
7490     cat >conftest.$ac_ext <<_ACEOF
7491     /* confdefs.h. */
7492     _ACEOF
7493     cat confdefs.h >>conftest.$ac_ext
7494     cat >>conftest.$ac_ext <<_ACEOF
7495     /* end confdefs.h. */
7496    
7497     /* Override any gcc2 internal prototype to avoid an error. */
7498     #ifdef __cplusplus
7499     extern "C"
7500     #endif
7501     /* We use char because int might match the return type of a gcc2
7502     builtin and then its argument prototype would still apply. */
7503     char MPI_Init ();
7504     int
7505     main ()
7506     {
7507     MPI_Init ();
7508     ;
7509     return 0;
7510     }
7511     _ACEOF
7512     rm -f conftest.$ac_objext conftest$ac_exeext
7513     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7514     (eval $ac_link) 2>conftest.er1
7515     ac_status=$?
7516     grep -v '^ *+' conftest.er1 >conftest.err
7517     rm -f conftest.er1
7518     cat conftest.err >&5
7519     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7520     (exit $ac_status); } &&
7521     { ac_try='test -z "$ac_c_werror_flag"
7522     || test ! -s conftest.err'
7523     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7524     (eval $ac_try) 2>&5
7525     ac_status=$?
7526     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7527     (exit $ac_status); }; } &&
7528     { ac_try='test -s conftest$ac_exeext'
7529     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7530     (eval $ac_try) 2>&5
7531     ac_status=$?
7532     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7533     (exit $ac_status); }; }; then
7534     ac_cv_lib_mpi_MPI_Init=yes
7535     else
7536     echo "$as_me: failed program was:" >&5
7537     sed 's/^/| /' conftest.$ac_ext >&5
7538    
7539     ac_cv_lib_mpi_MPI_Init=no
7540     fi
7541     rm -f conftest.err conftest.$ac_objext \
7542     conftest$ac_exeext conftest.$ac_ext
7543     LIBS=$ac_check_lib_save_LIBS
7544     fi
7545     echo "$as_me:$LINENO: result: $ac_cv_lib_mpi_MPI_Init" >&5
7546     echo "${ECHO_T}$ac_cv_lib_mpi_MPI_Init" >&6
7547     if test $ac_cv_lib_mpi_MPI_Init = yes; then
7548     MPI_LIB="-lmpi"
7549     fi
7550    
7551     fi
7552     $as_unset ac_cv_lib_mpi_MPI_Init
7553     if test x = x"$MPI_LIB"; then
7554     echo "$as_me:$LINENO: checking for MPI_Init in -lmpi" >&5
7555     echo $ECHO_N "checking for MPI_Init in -lmpi... $ECHO_C" >&6
7556     if test "${ac_cv_lib_mpi_MPI_Init+set}" = set; then
7557     echo $ECHO_N "(cached) $ECHO_C" >&6
7558     else
7559     ac_check_lib_save_LIBS=$LIBS
7560     LIBS="-lmpi "-llam" $LIBS"
7561     cat >conftest.$ac_ext <<_ACEOF
7562     /* confdefs.h. */
7563     _ACEOF
7564     cat confdefs.h >>conftest.$ac_ext
7565     cat >>conftest.$ac_ext <<_ACEOF
7566     /* end confdefs.h. */
7567    
7568     /* Override any gcc2 internal prototype to avoid an error. */
7569     #ifdef __cplusplus
7570     extern "C"
7571     #endif
7572     /* We use char because int might match the return type of a gcc2
7573     builtin and then its argument prototype would still apply. */
7574     char MPI_Init ();
7575     int
7576     main ()
7577     {
7578     MPI_Init ();
7579     ;
7580     return 0;
7581     }
7582     _ACEOF
7583     rm -f conftest.$ac_objext conftest$ac_exeext
7584     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7585     (eval $ac_link) 2>conftest.er1
7586     ac_status=$?
7587     grep -v '^ *+' conftest.er1 >conftest.err
7588     rm -f conftest.er1
7589     cat conftest.err >&5
7590     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7591     (exit $ac_status); } &&
7592     { ac_try='test -z "$ac_c_werror_flag"
7593     || test ! -s conftest.err'
7594     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7595     (eval $ac_try) 2>&5
7596     ac_status=$?
7597     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7598     (exit $ac_status); }; } &&
7599     { ac_try='test -s conftest$ac_exeext'
7600     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7601     (eval $ac_try) 2>&5
7602     ac_status=$?
7603     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7604     (exit $ac_status); }; }; then
7605     ac_cv_lib_mpi_MPI_Init=yes
7606     else
7607     echo "$as_me: failed program was:" >&5
7608     sed 's/^/| /' conftest.$ac_ext >&5
7609    
7610     ac_cv_lib_mpi_MPI_Init=no
7611     fi
7612     rm -f conftest.err conftest.$ac_objext \
7613     conftest$ac_exeext conftest.$ac_ext
7614     LIBS=$ac_check_lib_save_LIBS
7615     fi
7616     echo "$as_me:$LINENO: result: $ac_cv_lib_mpi_MPI_Init" >&5
7617     echo "${ECHO_T}$ac_cv_lib_mpi_MPI_Init" >&6
7618     if test $ac_cv_lib_mpi_MPI_Init = yes; then
7619     MPI_LIB="-lmpi -llam"
7620     fi
7621    
7622     fi
7623 chuckv 1619 $as_unset ac_cv_lib_mpich_MPI_Init
7624     if test x = x"$MPI_LIB"; then
7625     echo "$as_me:$LINENO: checking for MPI_Init in -lmpich" >&5
7626     echo $ECHO_N "checking for MPI_Init in -lmpich... $ECHO_C" >&6
7627     if test "${ac_cv_lib_mpich_MPI_Init+set}" = set; then
7628     echo $ECHO_N "(cached) $ECHO_C" >&6
7629     else
7630     ac_check_lib_save_LIBS=$LIBS
7631     LIBS="-lmpich "-lpmpich" $LIBS"
7632     cat >conftest.$ac_ext <<_ACEOF
7633     /* confdefs.h. */
7634     _ACEOF
7635     cat confdefs.h >>conftest.$ac_ext
7636     cat >>conftest.$ac_ext <<_ACEOF
7637     /* end confdefs.h. */
7638 gezelter 1490
7639 chuckv 1619 /* Override any gcc2 internal prototype to avoid an error. */
7640     #ifdef __cplusplus
7641     extern "C"
7642     #endif
7643     /* We use char because int might match the return type of a gcc2
7644     builtin and then its argument prototype would still apply. */
7645     char MPI_Init ();
7646     int
7647     main ()
7648     {
7649     MPI_Init ();
7650     ;
7651     return 0;
7652     }
7653     _ACEOF
7654     rm -f conftest.$ac_objext conftest$ac_exeext
7655     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7656     (eval $ac_link) 2>conftest.er1
7657     ac_status=$?
7658     grep -v '^ *+' conftest.er1 >conftest.err
7659     rm -f conftest.er1
7660     cat conftest.err >&5
7661     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7662     (exit $ac_status); } &&
7663     { ac_try='test -z "$ac_c_werror_flag"
7664     || test ! -s conftest.err'
7665     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7666     (eval $ac_try) 2>&5
7667     ac_status=$?
7668     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7669     (exit $ac_status); }; } &&
7670     { ac_try='test -s conftest$ac_exeext'
7671     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7672     (eval $ac_try) 2>&5
7673     ac_status=$?
7674     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7675     (exit $ac_status); }; }; then
7676     ac_cv_lib_mpich_MPI_Init=yes
7677     else
7678     echo "$as_me: failed program was:" >&5
7679     sed 's/^/| /' conftest.$ac_ext >&5
7680    
7681     ac_cv_lib_mpich_MPI_Init=no
7682     fi
7683     rm -f conftest.err conftest.$ac_objext \
7684     conftest$ac_exeext conftest.$ac_ext
7685     LIBS=$ac_check_lib_save_LIBS
7686     fi
7687     echo "$as_me:$LINENO: result: $ac_cv_lib_mpich_MPI_Init" >&5
7688     echo "${ECHO_T}$ac_cv_lib_mpich_MPI_Init" >&6
7689     if test $ac_cv_lib_mpich_MPI_Init = yes; then
7690     MPI_LIB="-lmpich -lpmpich"
7691     fi
7692    
7693     fi
7694    
7695 gezelter 1490 $as_unset ac_cv_lib_mpi_MPI_Init
7696     if test x = x"$MPI_LIB"; then
7697     echo "$as_me:$LINENO: checking for MPI_Init in -lmpi" >&5
7698     echo $ECHO_N "checking for MPI_Init in -lmpi... $ECHO_C" >&6
7699     if test "${ac_cv_lib_mpi_MPI_Init+set}" = set; then
7700     echo $ECHO_N "(cached) $ECHO_C" >&6
7701     else
7702     ac_check_lib_save_LIBS=$LIBS
7703     LIBS="-lmpi -llam -lpthread $LIBS"
7704     cat >conftest.$ac_ext <<_ACEOF
7705     /* confdefs.h. */
7706     _ACEOF
7707     cat confdefs.h >>conftest.$ac_ext
7708     cat >>conftest.$ac_ext <<_ACEOF
7709     /* end confdefs.h. */
7710    
7711     /* Override any gcc2 internal prototype to avoid an error. */
7712     #ifdef __cplusplus
7713     extern "C"
7714     #endif
7715     /* We use char because int might match the return type of a gcc2
7716     builtin and then its argument prototype would still apply. */
7717     char MPI_Init ();
7718     int
7719     main ()
7720     {
7721     MPI_Init ();
7722     ;
7723     return 0;
7724     }
7725     _ACEOF
7726     rm -f conftest.$ac_objext conftest$ac_exeext
7727     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7728     (eval $ac_link) 2>conftest.er1
7729     ac_status=$?
7730     grep -v '^ *+' conftest.er1 >conftest.err
7731     rm -f conftest.er1
7732     cat conftest.err >&5
7733     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7734     (exit $ac_status); } &&
7735     { ac_try='test -z "$ac_c_werror_flag"
7736     || test ! -s conftest.err'
7737     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7738     (eval $ac_try) 2>&5
7739     ac_status=$?
7740     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7741     (exit $ac_status); }; } &&
7742     { ac_try='test -s conftest$ac_exeext'
7743     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7744     (eval $ac_try) 2>&5
7745     ac_status=$?
7746     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7747     (exit $ac_status); }; }; then
7748     ac_cv_lib_mpi_MPI_Init=yes
7749     else
7750     echo "$as_me: failed program was:" >&5
7751     sed 's/^/| /' conftest.$ac_ext >&5
7752    
7753     ac_cv_lib_mpi_MPI_Init=no
7754     fi
7755     rm -f conftest.err conftest.$ac_objext \
7756     conftest$ac_exeext conftest.$ac_ext
7757     LIBS=$ac_check_lib_save_LIBS
7758     fi
7759     echo "$as_me:$LINENO: result: $ac_cv_lib_mpi_MPI_Init" >&5
7760     echo "${ECHO_T}$ac_cv_lib_mpi_MPI_Init" >&6
7761     if test $ac_cv_lib_mpi_MPI_Init = yes; then
7762     MPI_LIB="-lmpi -llam -lpthread"
7763     else
7764    
7765     { { echo "$as_me:$LINENO: error: Didn't find liblam, libmpi, or libmpich; check path for MPI package first..." >&5
7766     echo "$as_me: error: Didn't find liblam, libmpi, or libmpich; check path for MPI package first..." >&2;}
7767     { (exit 1); exit 1; }; }
7768     USE_MPI="no"
7769    
7770     fi
7771    
7772     fi
7773    
7774    
7775    
7776     echo "$as_me:$LINENO: checking for MPI Fortran library" >&5
7777     echo $ECHO_N "checking for MPI Fortran library... $ECHO_C" >&6
7778     MPI_F90_LIB=""
7779     if test -f "$MPI_LIB_DIR/libfmpich.a" ; then
7780     MPI_F90_LIB="-lfmpich"
7781     elif test -f "$MPI_LIB_DIR/liblamf77mpi.a" ; then
7782     MPI_F90_LIB="-llamf77mpi"
7783     else
7784     MPI_F90_LIB=" "
7785     fi
7786     echo "$as_me:$LINENO: result: found $MPI_F90_LIB" >&5
7787     echo "${ECHO_T}found $MPI_F90_LIB" >&6
7788    
7789    
7790     fi
7791    
7792    
7793    
7794     # Check whether --with-sprng or --without-sprng was given.
7795     if test "${with_sprng+set}" = set; then
7796     withval="$with_sprng"
7797     with_sprng=$withval
7798     else
7799     with_sprng="/usr/local"
7800     fi;
7801    
7802     case "x$with_sprng" in
7803     xyes | "x") USE_SPRNG=yes;;
7804     xno) USE_SPRNG=no ;;
7805     *) SPRNG="$with_sprng"; USE_SPRNG=yes ;;
7806     esac
7807     if test "$USE_SPRNG" = "yes" -a -z "$with_sprng"; then
7808     SPRNG="/usr/local"
7809     fi
7810     if test "$USE_SPRNG" = "yes"; then
7811    
7812    
7813     # Set variables...
7814     SPRNG_LIB_DIR="$SPRNG/lib"
7815     SPRNG_INC_DIR="$SPRNG/include"
7816    
7817    
7818    
7819     echo "$as_me:$LINENO: checking for sprng.h" >&5
7820     echo $ECHO_N "checking for sprng.h... $ECHO_C" >&6
7821     have_sprng_h=0
7822     echo '#include <sprng.h>' > conftest.cc
7823     if test -z "`${CXX} -I${SPRNG_INC_DIR} -c conftest.cc 2>&1`"; then
7824     echo "$as_me:$LINENO: result: yes" >&5
7825     echo "${ECHO_T}yes" >&6
7826     have_sprng_h=1
7827     else
7828     echo "$as_me:$LINENO: result: no! Check SPRNG include path!" >&5
7829     echo "${ECHO_T}no! Check SPRNG include path!" >&6
7830     USE_SPRNG="no"
7831     fi
7832     rm -f conftest*
7833     if test "$have_sprng_h" = 1; then
7834    
7835     cat >>confdefs.h <<\_ACEOF
7836     #define HAVE_SPRNG_H 1
7837     _ACEOF
7838    
7839     fi
7840    
7841     ac_ext=c
7842     ac_cpp='$CPP $CPPFLAGS'
7843     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7844     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7845     ac_compiler_gnu=$ac_cv_c_compiler_gnu
7846    
7847     ac_save_LDFLAGS=$LDFLAGS
7848     LDFLAGS="${LDFLAGS} -L${SPRNG_LIB_DIR} "
7849    
7850     echo "$as_me:$LINENO: checking for init_rng in -lsprng" >&5
7851     echo $ECHO_N "checking for init_rng in -lsprng... $ECHO_C" >&6
7852     if test "${ac_cv_lib_sprng_init_rng+set}" = set; then
7853     echo $ECHO_N "(cached) $ECHO_C" >&6
7854     else
7855     ac_check_lib_save_LIBS=$LIBS
7856     LIBS="-lsprng $LIBS"
7857     cat >conftest.$ac_ext <<_ACEOF
7858     /* confdefs.h. */
7859     _ACEOF
7860     cat confdefs.h >>conftest.$ac_ext
7861     cat >>conftest.$ac_ext <<_ACEOF
7862     /* end confdefs.h. */
7863    
7864     /* Override any gcc2 internal prototype to avoid an error. */
7865     #ifdef __cplusplus
7866     extern "C"
7867     #endif
7868     /* We use char because int might match the return type of a gcc2
7869     builtin and then its argument prototype would still apply. */
7870     char init_rng ();
7871     int
7872     main ()
7873     {
7874     init_rng ();
7875     ;
7876     return 0;
7877     }
7878     _ACEOF
7879     rm -f conftest.$ac_objext conftest$ac_exeext
7880     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7881     (eval $ac_link) 2>conftest.er1
7882     ac_status=$?
7883     grep -v '^ *+' conftest.er1 >conftest.err
7884     rm -f conftest.er1
7885     cat conftest.err >&5
7886     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7887     (exit $ac_status); } &&
7888     { ac_try='test -z "$ac_c_werror_flag"
7889     || test ! -s conftest.err'
7890     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7891     (eval $ac_try) 2>&5
7892     ac_status=$?
7893     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7894     (exit $ac_status); }; } &&
7895     { ac_try='test -s conftest$ac_exeext'
7896     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7897     (eval $ac_try) 2>&5
7898     ac_status=$?
7899     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7900     (exit $ac_status); }; }; then
7901     ac_cv_lib_sprng_init_rng=yes
7902     else
7903     echo "$as_me: failed program was:" >&5
7904     sed 's/^/| /' conftest.$ac_ext >&5
7905    
7906     ac_cv_lib_sprng_init_rng=no
7907     fi
7908     rm -f conftest.err conftest.$ac_objext \
7909     conftest$ac_exeext conftest.$ac_ext
7910     LIBS=$ac_check_lib_save_LIBS
7911     fi
7912     echo "$as_me:$LINENO: result: $ac_cv_lib_sprng_init_rng" >&5
7913     echo "${ECHO_T}$ac_cv_lib_sprng_init_rng" >&6
7914     if test $ac_cv_lib_sprng_init_rng = yes; then
7915     SPRNG_LIB="-lsprng"
7916     else
7917    
7918     { { echo "$as_me:$LINENO: error: Didn't find libsprng; check path for SPRNG package first..." >&5
7919     echo "$as_me: error: Didn't find libsprng; check path for SPRNG package first..." >&2;}
7920     { (exit 1); exit 1; }; }
7921     USE_SPRNG="no"
7922    
7923     fi
7924    
7925    
7926     if test "$USE_SPRNG" = "no"; then
7927     { { echo "$as_me:$LINENO: error: No working SPRNG library found" >&5
7928     echo "$as_me: error: No working SPRNG library found" >&2;}
7929     { (exit 1); exit 1; }; }
7930     fi
7931    
7932    
7933     fi
7934    
7935    
7936    
7937     echo "$as_me:$LINENO: checking if MKL is wanted" >&5
7938     echo $ECHO_N "checking if MKL is wanted... $ECHO_C" >&6
7939    
7940     # Check whether --with-mkl or --without-mkl was given.
7941     if test "${with_mkl+set}" = set; then
7942     withval="$with_mkl"
7943     echo "$as_me:$LINENO: result: yes" >&5
7944     echo "${ECHO_T}yes" >&6
7945     for dir in $withval /usr/local/intel/mkl61 /opt/intel/mkl61; do
7946     mkldir="$dir"
7947     if test -f "$dir/include/mkl.h"; then
7948     found_mkl="yes";
7949     break;
7950     fi
7951     done
7952     if test x_$found_mkl != x_yes; then
7953     { { echo "$as_me:$LINENO: error: Cannot find MKL includes" >&5
7954     echo "$as_me: error: Cannot find MKL includes" >&2;}
7955     { (exit 1); exit 1; }; }
7956     else
7957     printf "MKL includes found in $mkldir/include\n";
7958     fi
7959    
7960    
7961    
7962     ac_ext=c
7963     ac_cpp='$CPP $CPPFLAGS'
7964     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7965     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7966     ac_compiler_gnu=$ac_cv_c_compiler_gnu
7967    
7968     ac_save_CPPFLAGS=$CPPFLAGS
7969     CPPFLAGS="${CPPFLAGS} -I${mkldir}/include"
7970     ac_save_LDFLAGS=$LDFLAGS
7971     LDFLAGS="${LDFLAGS} -L${mkldir}/lib/32 -lmkl -lvml -lguide"
7972     if test "${ac_cv_header_mkl_h+set}" = set; then
7973     echo "$as_me:$LINENO: checking for mkl.h" >&5
7974     echo $ECHO_N "checking for mkl.h... $ECHO_C" >&6
7975     if test "${ac_cv_header_mkl_h+set}" = set; then
7976     echo $ECHO_N "(cached) $ECHO_C" >&6
7977     fi
7978     echo "$as_me:$LINENO: result: $ac_cv_header_mkl_h" >&5
7979     echo "${ECHO_T}$ac_cv_header_mkl_h" >&6
7980     else
7981     # Is the header compilable?
7982     echo "$as_me:$LINENO: checking mkl.h usability" >&5
7983     echo $ECHO_N "checking mkl.h usability... $ECHO_C" >&6
7984     cat >conftest.$ac_ext <<_ACEOF
7985     /* confdefs.h. */
7986     _ACEOF
7987     cat confdefs.h >>conftest.$ac_ext
7988     cat >>conftest.$ac_ext <<_ACEOF
7989     /* end confdefs.h. */
7990     $ac_includes_default
7991     #include <mkl.h>
7992     _ACEOF
7993     rm -f conftest.$ac_objext
7994     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7995     (eval $ac_compile) 2>conftest.er1
7996     ac_status=$?
7997     grep -v '^ *+' conftest.er1 >conftest.err
7998     rm -f conftest.er1
7999     cat conftest.err >&5
8000     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8001     (exit $ac_status); } &&
8002     { ac_try='test -z "$ac_c_werror_flag"
8003     || test ! -s conftest.err'
8004     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8005     (eval $ac_try) 2>&5
8006     ac_status=$?
8007     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8008     (exit $ac_status); }; } &&
8009     { ac_try='test -s conftest.$ac_objext'
8010     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8011     (eval $ac_try) 2>&5
8012     ac_status=$?
8013     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8014     (exit $ac_status); }; }; then
8015     ac_header_compiler=yes
8016     else
8017     echo "$as_me: failed program was:" >&5
8018     sed 's/^/| /' conftest.$ac_ext >&5
8019    
8020     ac_header_compiler=no
8021     fi
8022     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8023     echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8024     echo "${ECHO_T}$ac_header_compiler" >&6
8025    
8026     # Is the header present?
8027     echo "$as_me:$LINENO: checking mkl.h presence" >&5
8028     echo $ECHO_N "checking mkl.h presence... $ECHO_C" >&6
8029     cat >conftest.$ac_ext <<_ACEOF
8030     /* confdefs.h. */
8031     _ACEOF
8032     cat confdefs.h >>conftest.$ac_ext
8033     cat >>conftest.$ac_ext <<_ACEOF
8034     /* end confdefs.h. */
8035     #include <mkl.h>
8036     _ACEOF
8037     if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8038     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8039     ac_status=$?
8040     grep -v '^ *+' conftest.er1 >conftest.err
8041     rm -f conftest.er1
8042     cat conftest.err >&5
8043     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8044     (exit $ac_status); } >/dev/null; then
8045     if test -s conftest.err; then
8046     ac_cpp_err=$ac_c_preproc_warn_flag
8047     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8048     else
8049     ac_cpp_err=
8050     fi
8051     else
8052     ac_cpp_err=yes
8053     fi
8054     if test -z "$ac_cpp_err"; then
8055     ac_header_preproc=yes
8056     else
8057     echo "$as_me: failed program was:" >&5
8058     sed 's/^/| /' conftest.$ac_ext >&5
8059    
8060     ac_header_preproc=no
8061     fi
8062     rm -f conftest.err conftest.$ac_ext
8063     echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8064     echo "${ECHO_T}$ac_header_preproc" >&6
8065    
8066     # So? What about this header?
8067     case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8068     yes:no: )
8069     { echo "$as_me:$LINENO: WARNING: mkl.h: accepted by the compiler, rejected by the preprocessor!" >&5
8070     echo "$as_me: WARNING: mkl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8071     { echo "$as_me:$LINENO: WARNING: mkl.h: proceeding with the compiler's result" >&5
8072     echo "$as_me: WARNING: mkl.h: proceeding with the compiler's result" >&2;}
8073     ac_header_preproc=yes
8074     ;;
8075     no:yes:* )
8076     { echo "$as_me:$LINENO: WARNING: mkl.h: present but cannot be compiled" >&5
8077     echo "$as_me: WARNING: mkl.h: present but cannot be compiled" >&2;}
8078     { echo "$as_me:$LINENO: WARNING: mkl.h: check for missing prerequisite headers?" >&5
8079     echo "$as_me: WARNING: mkl.h: check for missing prerequisite headers?" >&2;}
8080     { echo "$as_me:$LINENO: WARNING: mkl.h: see the Autoconf documentation" >&5
8081     echo "$as_me: WARNING: mkl.h: see the Autoconf documentation" >&2;}
8082     { echo "$as_me:$LINENO: WARNING: mkl.h: section \"Present But Cannot Be Compiled\"" >&5
8083     echo "$as_me: WARNING: mkl.h: section \"Present But Cannot Be Compiled\"" >&2;}
8084     { echo "$as_me:$LINENO: WARNING: mkl.h: proceeding with the preprocessor's result" >&5
8085     echo "$as_me: WARNING: mkl.h: proceeding with the preprocessor's result" >&2;}
8086     { echo "$as_me:$LINENO: WARNING: mkl.h: in the future, the compiler will take precedence" >&5
8087     echo "$as_me: WARNING: mkl.h: in the future, the compiler will take precedence" >&2;}
8088     (
8089     cat <<\_ASBOX
8090     ## ------------------------------ ##
8091     ## Report this to gezelter@nd.edu ##
8092     ## ------------------------------ ##
8093     _ASBOX
8094     ) |
8095     sed "s/^/$as_me: WARNING: /" >&2
8096     ;;
8097     esac
8098     echo "$as_me:$LINENO: checking for mkl.h" >&5
8099     echo $ECHO_N "checking for mkl.h... $ECHO_C" >&6
8100     if test "${ac_cv_header_mkl_h+set}" = set; then
8101     echo $ECHO_N "(cached) $ECHO_C" >&6
8102     else
8103     ac_cv_header_mkl_h=$ac_header_preproc
8104     fi
8105     echo "$as_me:$LINENO: result: $ac_cv_header_mkl_h" >&5
8106     echo "${ECHO_T}$ac_cv_header_mkl_h" >&6
8107    
8108     fi
8109     if test $ac_cv_header_mkl_h = yes; then
8110    
8111     echo "$as_me:$LINENO: checking for vslNewStream in -lmkl" >&5
8112     echo $ECHO_N "checking for vslNewStream in -lmkl... $ECHO_C" >&6
8113     if test "${ac_cv_lib_mkl_vslNewStream+set}" = set; then
8114     echo $ECHO_N "(cached) $ECHO_C" >&6
8115     else
8116     ac_check_lib_save_LIBS=$LIBS
8117     LIBS="-lmkl $LIBS"
8118     cat >conftest.$ac_ext <<_ACEOF
8119     /* confdefs.h. */
8120     _ACEOF
8121     cat confdefs.h >>conftest.$ac_ext
8122     cat >>conftest.$ac_ext <<_ACEOF
8123     /* end confdefs.h. */
8124    
8125     /* Override any gcc2 internal prototype to avoid an error. */
8126     #ifdef __cplusplus
8127     extern "C"
8128     #endif
8129     /* We use char because int might match the return type of a gcc2
8130     builtin and then its argument prototype would still apply. */
8131     char vslNewStream ();
8132     int
8133     main ()
8134     {
8135     vslNewStream ();
8136     ;
8137     return 0;
8138     }
8139     _ACEOF
8140     rm -f conftest.$ac_objext conftest$ac_exeext
8141     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8142     (eval $ac_link) 2>conftest.er1
8143     ac_status=$?
8144     grep -v '^ *+' conftest.er1 >conftest.err
8145     rm -f conftest.er1
8146     cat conftest.err >&5
8147     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8148     (exit $ac_status); } &&
8149     { ac_try='test -z "$ac_c_werror_flag"
8150     || test ! -s conftest.err'
8151     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8152     (eval $ac_try) 2>&5
8153     ac_status=$?
8154     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8155     (exit $ac_status); }; } &&
8156     { ac_try='test -s conftest$ac_exeext'
8157     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8158     (eval $ac_try) 2>&5
8159     ac_status=$?
8160     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8161     (exit $ac_status); }; }; then
8162     ac_cv_lib_mkl_vslNewStream=yes
8163     else
8164     echo "$as_me: failed program was:" >&5
8165     sed 's/^/| /' conftest.$ac_ext >&5
8166    
8167     ac_cv_lib_mkl_vslNewStream=no
8168     fi
8169     rm -f conftest.err conftest.$ac_objext \
8170     conftest$ac_exeext conftest.$ac_ext
8171     LIBS=$ac_check_lib_save_LIBS
8172     fi
8173     echo "$as_me:$LINENO: result: $ac_cv_lib_mkl_vslNewStream" >&5
8174     echo "${ECHO_T}$ac_cv_lib_mkl_vslNewStream" >&6
8175     if test $ac_cv_lib_mkl_vslNewStream = yes; then
8176     MKL_LIBDIR="${mkldir}/lib/32",
8177     MKL_LIB="-lmkl -lvml -lguide",
8178     HAVE_MKL="yes"
8179     fi
8180    
8181    
8182     else
8183     MKL_INC="-I${mkldir}/include"
8184     fi
8185    
8186    
8187     CPPFLAGS=$ac_save_CPPFLAGS
8188     LDFLAGS=$ac_save_LDFLAGS
8189     ac_ext=c
8190     ac_cpp='$CPP $CPPFLAGS'
8191     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8192     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8193     ac_compiler_gnu=$ac_cv_c_compiler_gnu
8194    
8195    
8196     if test x_$HAVE_MKL != x_yes; then
8197     { { echo "$as_me:$LINENO: error: Can't build with MKL" >&5
8198     echo "$as_me: error: Can't build with MKL" >&2;}
8199     { (exit 1); exit 1; }; }
8200     fi
8201    
8202    
8203    
8204    
8205    
8206     else
8207    
8208     echo "$as_me:$LINENO: result: no" >&5
8209     echo "${ECHO_T}no" >&6
8210    
8211     fi;
8212    
8213    
8214    
8215 gezelter 1540 # Check whether --enable-doxygen or --disable-doxygen was given.
8216     if test "${enable_doxygen+set}" = set; then
8217     enableval="$enable_doxygen"
8218 gezelter 1490
8219 gezelter 1540 fi;
8220     # Check whether --enable-dot or --disable-dot was given.
8221     if test "${enable_dot+set}" = set; then
8222     enableval="$enable_dot"
8223 gezelter 1490
8224 gezelter 1540 fi;
8225     # Check whether --enable-html-docs or --disable-html-docs was given.
8226     if test "${enable_html_docs+set}" = set; then
8227     enableval="$enable_html_docs"
8228    
8229     else
8230     enable_html_docs=yes
8231     fi;
8232     # Check whether --enable-latex-docs or --disable-latex-docs was given.
8233     if test "${enable_latex_docs+set}" = set; then
8234     enableval="$enable_latex_docs"
8235    
8236     else
8237     enable_latex_docs=no
8238     fi;
8239     if test "x$enable_doxygen" = xno; then
8240     enable_doc=no
8241     else
8242     # Extract the first word of "doxygen", so it can be a program name with args.
8243     set dummy doxygen; ac_word=$2
8244     echo "$as_me:$LINENO: checking for $ac_word" >&5
8245     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8246     if test "${ac_cv_path_DOXYGEN+set}" = set; then
8247     echo $ECHO_N "(cached) $ECHO_C" >&6
8248     else
8249     case $DOXYGEN in
8250     [\\/]* | ?:[\\/]*)
8251     ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
8252     ;;
8253     *)
8254     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8255     for as_dir in $PATH
8256     do
8257     IFS=$as_save_IFS
8258     test -z "$as_dir" && as_dir=.
8259     for ac_exec_ext in '' $ac_executable_extensions; do
8260     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8261     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
8262     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8263     break 2
8264     fi
8265     done
8266     done
8267    
8268     ;;
8269     esac
8270     fi
8271     DOXYGEN=$ac_cv_path_DOXYGEN
8272    
8273     if test -n "$DOXYGEN"; then
8274     echo "$as_me:$LINENO: result: $DOXYGEN" >&5
8275     echo "${ECHO_T}$DOXYGEN" >&6
8276     else
8277     echo "$as_me:$LINENO: result: no" >&5
8278     echo "${ECHO_T}no" >&6
8279     fi
8280    
8281     if test "x$DOXYGEN" = x; then
8282     if test "x$enable_doxygen" = xyes; then
8283     { { echo "$as_me:$LINENO: error: could not find doxygen" >&5
8284     echo "$as_me: error: could not find doxygen" >&2;}
8285     { (exit 1); exit 1; }; }
8286     fi
8287     enable_doc=no
8288     else
8289     enable_doc=yes
8290     # Extract the first word of "dot", so it can be a program name with args.
8291     set dummy dot; ac_word=$2
8292     echo "$as_me:$LINENO: checking for $ac_word" >&5
8293     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8294     if test "${ac_cv_path_DOT+set}" = set; then
8295     echo $ECHO_N "(cached) $ECHO_C" >&6
8296     else
8297     case $DOT in
8298     [\\/]* | ?:[\\/]*)
8299     ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
8300     ;;
8301     *)
8302     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8303     for as_dir in $PATH
8304     do
8305     IFS=$as_save_IFS
8306     test -z "$as_dir" && as_dir=.
8307     for ac_exec_ext in '' $ac_executable_extensions; do
8308     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8309     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
8310     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8311     break 2
8312     fi
8313     done
8314     done
8315    
8316     ;;
8317     esac
8318     fi
8319     DOT=$ac_cv_path_DOT
8320    
8321     if test -n "$DOT"; then
8322     echo "$as_me:$LINENO: result: $DOT" >&5
8323     echo "${ECHO_T}$DOT" >&6
8324     else
8325     echo "$as_me:$LINENO: result: no" >&5
8326     echo "${ECHO_T}no" >&6
8327     fi
8328    
8329     fi
8330     fi
8331    
8332     if test "x$enable_doc" = xyes; then
8333     DOC=1
8334     else
8335     DOC=0
8336     fi
8337    
8338    
8339     if test x$DOT = x; then
8340     if test "x$enable_dot" = xyes; then
8341     { { echo "$as_me:$LINENO: error: could not find dot" >&5
8342     echo "$as_me: error: could not find dot" >&2;}
8343     { (exit 1); exit 1; }; }
8344     fi
8345     enable_dot=no
8346     else
8347     enable_dot=yes
8348     fi
8349    
8350    
8351    
8352    
8353    
8354    
8355    
8356 gezelter 1490 OBJEXT=".$OBJEXT"
8357    
8358     OOPSE=oopse
8359    
8360     if test "x${prefix}" = "xNONE"
8361     then
8362     OOPSE_HOME=${ac_default_prefix}/oopse
8363     else
8364     OOPSE_HOME=${prefix}/oopse
8365     fi
8366     # Check whether --enable-oopse-home or --disable-oopse-home was given.
8367     if test "${enable_oopse_home+set}" = set; then
8368     enableval="$enable_oopse_home"
8369     OOPSE_HOME="${enableval}"
8370     fi;
8371    
8372     case "x$INSTALL" in
8373     x/*) ;;
8374     *) INSTALL=`pwd`/ac-tools/"shtool install -c" ;
8375     esac
8376    
8377     MKINSTALLDIRS=`pwd`/ac-tools/"shtool mkdir -p -f"
8378    
8379     CFLAGS=${CFLAGS-""}
8380     CXXFLAGS=${CXXFLAGS-""}
8381     CPPFLAGS=${CPPFLAGS-""}
8382     FFLAGS=${FFLAGS-""}
8383     F90FLAGS=${F90FLAGS-""}
8384     LDFLAGS=${LDFLAGS-""}
8385     DEBUG=${DEBUG-"-g"}
8386    
8387     case $debug in
8388     1)
8389     FFLAGS="$DEBUG $FFLAGS"
8390     F90FLAGS="$DEBUG $F90FLAGS"
8391     ;;
8392     *)
8393     ;;
8394     esac
8395    
8396    
8397    
8398    
8399    
8400    
8401    
8402    
8403    
8404    
8405    
8406    
8407    
8408    
8409    
8410    
8411    
8412 gezelter 1535
8413 gezelter 1499 ac_config_headers="$ac_config_headers src/config.h"
8414 gezelter 1490
8415 gezelter 1946 ac_config_files="$ac_config_files make/Makefile src/utils/Makefile"
8416 gezelter 1490
8417    
8418     cat >confcache <<\_ACEOF
8419     # This file is a shell script that caches the results of configure
8420     # tests run on this system so they can be shared between configure
8421     # scripts and configure runs, see configure's option --config-cache.
8422     # It is not useful on other systems. If it contains results you don't
8423     # want to keep, you may remove or edit it.
8424     #
8425     # config.status only pays attention to the cache file if you give it
8426     # the --recheck option to rerun configure.
8427     #
8428     # `ac_cv_env_foo' variables (set or unset) will be overridden when
8429     # loading this file, other *unset* `ac_cv_foo' will be assigned the
8430     # following values.
8431    
8432     _ACEOF
8433    
8434     # The following way of writing the cache mishandles newlines in values,
8435     # but we know of no workaround that is simple, portable, and efficient.
8436     # So, don't put newlines in cache variables' values.
8437     # Ultrix sh set writes to stderr and can't be redirected directly,
8438     # and sets the high bit in the cache file unless we assign to the vars.
8439     {
8440     (set) 2>&1 |
8441     case `(ac_space=' '; set | grep ac_space) 2>&1` in
8442     *ac_space=\ *)
8443     # `set' does not quote correctly, so add quotes (double-quote
8444     # substitution turns \\\\ into \\, and sed turns \\ into \).
8445     sed -n \
8446     "s/'/'\\\\''/g;
8447     s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8448     ;;
8449     *)
8450     # `set' quotes correctly as required by POSIX, so do not add quotes.
8451     sed -n \
8452     "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
8453     ;;
8454     esac;
8455     } |
8456     sed '
8457     t clear
8458     : clear
8459     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8460     t end
8461     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8462     : end' >>confcache
8463     if diff $cache_file confcache >/dev/null 2>&1; then :; else
8464     if test -w $cache_file; then
8465     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
8466     cat confcache >$cache_file
8467     else
8468     echo "not updating unwritable cache $cache_file"
8469     fi
8470     fi
8471     rm -f confcache
8472    
8473     test "x$prefix" = xNONE && prefix=$ac_default_prefix
8474     # Let make expand exec_prefix.
8475     test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8476    
8477     # VPATH may cause trouble with some makes, so we remove $(srcdir),
8478     # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8479     # trailing colons and then remove the whole line if VPATH becomes empty
8480     # (actually we leave an empty line to preserve line numbers).
8481     if test "x$srcdir" = x.; then
8482     ac_vpsub='/^[ ]*VPATH[ ]*=/{
8483     s/:*\$(srcdir):*/:/;
8484     s/:*\${srcdir}:*/:/;
8485     s/:*@srcdir@:*/:/;
8486     s/^\([^=]*=[ ]*\):*/\1/;
8487     s/:*$//;
8488     s/^[^=]*=[ ]*$//;
8489     }'
8490     fi
8491    
8492     DEFS=-DHAVE_CONFIG_H
8493    
8494     ac_libobjs=
8495     ac_ltlibobjs=
8496     for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8497     # 1. Remove the extension, and $U if already installed.
8498     ac_i=`echo "$ac_i" |
8499     sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
8500     # 2. Add them.
8501     ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
8502     ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
8503     done
8504     LIBOBJS=$ac_libobjs
8505    
8506     LTLIBOBJS=$ac_ltlibobjs
8507    
8508    
8509    
8510     : ${CONFIG_STATUS=./config.status}
8511     ac_clean_files_save=$ac_clean_files
8512     ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8513     { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
8514     echo "$as_me: creating $CONFIG_STATUS" >&6;}
8515     cat >$CONFIG_STATUS <<_ACEOF
8516     #! $SHELL
8517     # Generated by $as_me.
8518     # Run this file to recreate the current configuration.
8519     # Compiler output produced by configure, useful for debugging
8520     # configure, is in config.log if it exists.
8521    
8522     debug=false
8523     ac_cs_recheck=false
8524     ac_cs_silent=false
8525     SHELL=\${CONFIG_SHELL-$SHELL}
8526     _ACEOF
8527    
8528     cat >>$CONFIG_STATUS <<\_ACEOF
8529     ## --------------------- ##
8530     ## M4sh Initialization. ##
8531     ## --------------------- ##
8532    
8533     # Be Bourne compatible
8534     if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
8535     emulate sh
8536     NULLCMD=:
8537     # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
8538     # is contrary to our usage. Disable this feature.
8539     alias -g '${1+"$@"}'='"$@"'
8540     elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
8541     set -o posix
8542     fi
8543     DUALCASE=1; export DUALCASE # for MKS sh
8544    
8545     # Support unset when possible.
8546     if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8547     as_unset=unset
8548     else
8549     as_unset=false
8550     fi
8551    
8552    
8553     # Work around bugs in pre-3.0 UWIN ksh.
8554     $as_unset ENV MAIL MAILPATH
8555     PS1='$ '
8556     PS2='> '
8557     PS4='+ '
8558    
8559     # NLS nuisances.
8560     for as_var in \
8561     LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
8562     LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
8563     LC_TELEPHONE LC_TIME
8564     do
8565     if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
8566     eval $as_var=C; export $as_var
8567     else
8568     $as_unset $as_var
8569     fi
8570     done
8571    
8572     # Required to use basename.
8573     if expr a : '\(a\)' >/dev/null 2>&1; then
8574     as_expr=expr
8575     else
8576     as_expr=false
8577     fi
8578    
8579     if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
8580     as_basename=basename
8581     else
8582     as_basename=false
8583     fi
8584    
8585    
8586     # Name of the executable.
8587     as_me=`$as_basename "$0" ||
8588     $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8589     X"$0" : 'X\(//\)$' \| \
8590     X"$0" : 'X\(/\)$' \| \
8591     . : '\(.\)' 2>/dev/null ||
8592     echo X/"$0" |
8593     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
8594     /^X\/\(\/\/\)$/{ s//\1/; q; }
8595     /^X\/\(\/\).*/{ s//\1/; q; }
8596     s/.*/./; q'`
8597    
8598    
8599     # PATH needs CR, and LINENO needs CR and PATH.
8600     # Avoid depending upon Character Ranges.
8601     as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8602     as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8603     as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8604     as_cr_digits='0123456789'
8605     as_cr_alnum=$as_cr_Letters$as_cr_digits
8606    
8607     # The user is always right.
8608     if test "${PATH_SEPARATOR+set}" != set; then
8609     echo "#! /bin/sh" >conf$$.sh
8610     echo "exit 0" >>conf$$.sh
8611     chmod +x conf$$.sh
8612     if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8613     PATH_SEPARATOR=';'
8614     else
8615     PATH_SEPARATOR=:
8616     fi
8617     rm -f conf$$.sh
8618     fi
8619    
8620    
8621     as_lineno_1=$LINENO
8622     as_lineno_2=$LINENO
8623     as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
8624     test "x$as_lineno_1" != "x$as_lineno_2" &&
8625     test "x$as_lineno_3" = "x$as_lineno_2" || {
8626     # Find who we are. Look in the path if we contain no path at all
8627     # relative or not.
8628     case $0 in
8629     *[\\/]* ) as_myself=$0 ;;
8630     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8631     for as_dir in $PATH
8632     do
8633     IFS=$as_save_IFS
8634     test -z "$as_dir" && as_dir=.
8635     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8636     done
8637    
8638     ;;
8639     esac
8640     # We did not find ourselves, most probably we were run as `sh COMMAND'
8641     # in which case we are not to be found in the path.
8642     if test "x$as_myself" = x; then
8643     as_myself=$0
8644     fi
8645     if test ! -f "$as_myself"; then
8646     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
8647     echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
8648     { (exit 1); exit 1; }; }
8649     fi
8650     case $CONFIG_SHELL in
8651     '')
8652     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8653     for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
8654     do
8655     IFS=$as_save_IFS
8656     test -z "$as_dir" && as_dir=.
8657     for as_base in sh bash ksh sh5; do
8658     case $as_dir in
8659     /*)
8660     if ("$as_dir/$as_base" -c '
8661     as_lineno_1=$LINENO
8662     as_lineno_2=$LINENO
8663     as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
8664     test "x$as_lineno_1" != "x$as_lineno_2" &&
8665     test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
8666     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
8667     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
8668     CONFIG_SHELL=$as_dir/$as_base
8669     export CONFIG_SHELL
8670     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
8671     fi;;
8672     esac
8673     done
8674     done
8675     ;;
8676     esac
8677    
8678     # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
8679     # uniformly replaced by the line number. The first 'sed' inserts a
8680     # line-number line before each line; the second 'sed' does the real
8681     # work. The second script uses 'N' to pair each line-number line
8682     # with the numbered line, and appends trailing '-' during
8683     # substitution so that $LINENO is not a special case at line end.
8684     # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
8685     # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
8686     sed '=' <$as_myself |
8687     sed '
8688     N
8689     s,$,-,
8690     : loop
8691     s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
8692     t loop
8693     s,-$,,
8694     s,^['$as_cr_digits']*\n,,
8695     ' >$as_me.lineno &&
8696     chmod +x $as_me.lineno ||
8697     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
8698     echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
8699     { (exit 1); exit 1; }; }
8700    
8701     # Don't try to exec as it changes $[0], causing all sort of problems
8702     # (the dirname of $[0] is not the place where we might find the
8703     # original and so on. Autoconf is especially sensible to this).
8704     . ./$as_me.lineno
8705     # Exit status is that of the last command.
8706     exit
8707     }
8708    
8709    
8710     case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
8711     *c*,-n*) ECHO_N= ECHO_C='
8712     ' ECHO_T=' ' ;;
8713     *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
8714     *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
8715     esac
8716    
8717     if expr a : '\(a\)' >/dev/null 2>&1; then
8718     as_expr=expr
8719     else
8720     as_expr=false
8721     fi
8722    
8723     rm -f conf$$ conf$$.exe conf$$.file
8724     echo >conf$$.file
8725     if ln -s conf$$.file conf$$ 2>/dev/null; then
8726     # We could just check for DJGPP; but this test a) works b) is more generic
8727     # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
8728     if test -f conf$$.exe; then
8729     # Don't use ln at all; we don't have any links
8730     as_ln_s='cp -p'
8731     else
8732     as_ln_s='ln -s'
8733     fi
8734     elif ln conf$$.file conf$$ 2>/dev/null; then
8735     as_ln_s=ln
8736     else
8737     as_ln_s='cp -p'
8738     fi
8739     rm -f conf$$ conf$$.exe conf$$.file
8740    
8741     if mkdir -p . 2>/dev/null; then
8742     as_mkdir_p=:
8743     else
8744     test -d ./-p && rmdir ./-p
8745     as_mkdir_p=false
8746     fi
8747    
8748     as_executable_p="test -f"
8749    
8750     # Sed expression to map a string onto a valid CPP name.
8751     as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8752    
8753     # Sed expression to map a string onto a valid variable name.
8754     as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8755    
8756    
8757     # IFS
8758     # We need space, tab and new line, in precisely that order.
8759     as_nl='
8760     '
8761     IFS=" $as_nl"
8762    
8763     # CDPATH.
8764     $as_unset CDPATH
8765    
8766     exec 6>&1
8767    
8768     # Open the log real soon, to keep \$[0] and so on meaningful, and to
8769     # report actual input values of CONFIG_FILES etc. instead of their
8770     # values after options handling. Logging --version etc. is OK.
8771     exec 5>>config.log
8772     {
8773     echo
8774     sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8775     ## Running $as_me. ##
8776     _ASBOX
8777     } >&5
8778     cat >&5 <<_CSEOF
8779    
8780 gezelter 1499 This file was extended by OOPSE $as_me 2.0, which was
8781 gezelter 1490 generated by GNU Autoconf 2.59. Invocation command line was
8782    
8783     CONFIG_FILES = $CONFIG_FILES
8784     CONFIG_HEADERS = $CONFIG_HEADERS
8785     CONFIG_LINKS = $CONFIG_LINKS
8786     CONFIG_COMMANDS = $CONFIG_COMMANDS
8787     $ $0 $@
8788    
8789     _CSEOF
8790     echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
8791     echo >&5
8792     _ACEOF
8793    
8794     # Files that config.status was made for.
8795     if test -n "$ac_config_files"; then
8796     echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
8797     fi
8798    
8799     if test -n "$ac_config_headers"; then
8800     echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
8801     fi
8802    
8803     if test -n "$ac_config_links"; then
8804     echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
8805     fi
8806    
8807     if test -n "$ac_config_commands"; then
8808     echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
8809     fi
8810    
8811     cat >>$CONFIG_STATUS <<\_ACEOF
8812    
8813     ac_cs_usage="\
8814     \`$as_me' instantiates files from templates according to the
8815     current configuration.
8816    
8817     Usage: $0 [OPTIONS] [FILE]...
8818    
8819     -h, --help print this help, then exit
8820     -V, --version print version number, then exit
8821     -q, --quiet do not print progress messages
8822     -d, --debug don't remove temporary files
8823     --recheck update $as_me by reconfiguring in the same conditions
8824     --file=FILE[:TEMPLATE]
8825     instantiate the configuration file FILE
8826     --header=FILE[:TEMPLATE]
8827     instantiate the configuration header FILE
8828    
8829     Configuration files:
8830     $config_files
8831    
8832     Configuration headers:
8833     $config_headers
8834    
8835     Configuration links:
8836     $config_links
8837    
8838     Report bugs to <bug-autoconf@gnu.org>."
8839     _ACEOF
8840    
8841     cat >>$CONFIG_STATUS <<_ACEOF
8842     ac_cs_version="\\
8843 gezelter 1499 OOPSE config.status 2.0
8844 gezelter 1490 configured by $0, generated by GNU Autoconf 2.59,
8845     with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
8846    
8847     Copyright (C) 2003 Free Software Foundation, Inc.
8848     This config.status script is free software; the Free Software Foundation
8849     gives unlimited permission to copy, distribute and modify it."
8850     srcdir=$srcdir
8851     INSTALL="$INSTALL"
8852     _ACEOF
8853    
8854     cat >>$CONFIG_STATUS <<\_ACEOF
8855     # If no file are specified by the user, then we need to provide default
8856     # value. By we need to know if files were specified by the user.
8857     ac_need_defaults=:
8858     while test $# != 0
8859     do
8860     case $1 in
8861     --*=*)
8862     ac_option=`expr "x$1" : 'x\([^=]*\)='`
8863     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
8864     ac_shift=:
8865     ;;
8866     -*)
8867     ac_option=$1
8868     ac_optarg=$2
8869     ac_shift=shift
8870     ;;
8871     *) # This is not an option, so the user has probably given explicit
8872     # arguments.
8873     ac_option=$1
8874     ac_need_defaults=false;;
8875     esac
8876    
8877     case $ac_option in
8878     # Handling of the options.
8879     _ACEOF
8880     cat >>$CONFIG_STATUS <<\_ACEOF
8881     -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8882     ac_cs_recheck=: ;;
8883     --version | --vers* | -V )
8884     echo "$ac_cs_version"; exit 0 ;;
8885     --he | --h)
8886     # Conflict between --help and --header
8887     { { echo "$as_me:$LINENO: error: ambiguous option: $1
8888     Try \`$0 --help' for more information." >&5
8889     echo "$as_me: error: ambiguous option: $1
8890     Try \`$0 --help' for more information." >&2;}
8891     { (exit 1); exit 1; }; };;
8892     --help | --hel | -h )
8893     echo "$ac_cs_usage"; exit 0 ;;
8894     --debug | --d* | -d )
8895     debug=: ;;
8896     --file | --fil | --fi | --f )
8897     $ac_shift
8898     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
8899     ac_need_defaults=false;;
8900     --header | --heade | --head | --hea )
8901     $ac_shift
8902     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
8903     ac_need_defaults=false;;
8904     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8905     | -silent | --silent | --silen | --sile | --sil | --si | --s)
8906     ac_cs_silent=: ;;
8907    
8908     # This is an error.
8909     -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
8910     Try \`$0 --help' for more information." >&5
8911     echo "$as_me: error: unrecognized option: $1
8912     Try \`$0 --help' for more information." >&2;}
8913     { (exit 1); exit 1; }; } ;;
8914    
8915     *) ac_config_targets="$ac_config_targets $1" ;;
8916    
8917     esac
8918     shift
8919     done
8920    
8921     ac_configure_extra_args=
8922    
8923     if $ac_cs_silent; then
8924     exec 6>/dev/null
8925     ac_configure_extra_args="$ac_configure_extra_args --silent"
8926     fi
8927    
8928     _ACEOF
8929     cat >>$CONFIG_STATUS <<_ACEOF
8930     if \$ac_cs_recheck; then
8931     echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
8932     exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8933     fi
8934    
8935     _ACEOF
8936    
8937    
8938    
8939    
8940    
8941     cat >>$CONFIG_STATUS <<\_ACEOF
8942     for ac_config_target in $ac_config_targets
8943     do
8944     case "$ac_config_target" in
8945     # Handling of arguments.
8946 gezelter 1509 "make/Makefile" ) CONFIG_FILES="$CONFIG_FILES make/Makefile" ;;
8947 gezelter 1946 "src/utils/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/Makefile" ;;
8948 gezelter 1947 "src/getopt.h" ) CONFIG_LINKS="$CONFIG_LINKS src/getopt.h:src/utils/gnugetopt.h" ;;
8949 gezelter 1499 "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
8950 gezelter 1490 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
8951     echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
8952     { (exit 1); exit 1; }; };;
8953     esac
8954     done
8955    
8956     # If the user did not use the arguments to specify the items to instantiate,
8957     # then the envvar interface is used. Set only those that are not.
8958     # We use the long form for the default assignment because of an extremely
8959     # bizarre bug on SunOS 4.1.3.
8960     if $ac_need_defaults; then
8961     test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8962     test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8963     test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
8964     fi
8965    
8966     # Have a temporary directory for convenience. Make it in the build tree
8967     # simply because there is no reason to put it here, and in addition,
8968     # creating and moving files from /tmp can sometimes cause problems.
8969     # Create a temporary directory, and hook for its removal unless debugging.
8970     $debug ||
8971     {
8972     trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
8973     trap '{ (exit 1); exit 1; }' 1 2 13 15
8974     }
8975    
8976     # Create a (secure) tmp directory for tmp files.
8977    
8978     {
8979     tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
8980     test -n "$tmp" && test -d "$tmp"
8981     } ||
8982     {
8983     tmp=./confstat$$-$RANDOM
8984     (umask 077 && mkdir $tmp)
8985     } ||
8986     {
8987     echo "$me: cannot create a temporary directory in ." >&2
8988     { (exit 1); exit 1; }
8989     }
8990    
8991     _ACEOF
8992    
8993     cat >>$CONFIG_STATUS <<_ACEOF
8994    
8995     #
8996     # CONFIG_FILES section.
8997     #
8998    
8999     # No need to generate the scripts if there are no CONFIG_FILES.
9000     # This happens for instance when ./config.status config.h
9001     if test -n "\$CONFIG_FILES"; then
9002     # Protect against being on the right side of a sed subst in config.status.
9003     sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
9004     s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
9005     s,@SHELL@,$SHELL,;t t
9006     s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
9007     s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
9008     s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
9009     s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
9010     s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
9011     s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
9012     s,@exec_prefix@,$exec_prefix,;t t
9013     s,@prefix@,$prefix,;t t
9014     s,@program_transform_name@,$program_transform_name,;t t
9015     s,@bindir@,$bindir,;t t
9016     s,@sbindir@,$sbindir,;t t
9017     s,@libexecdir@,$libexecdir,;t t
9018     s,@datadir@,$datadir,;t t
9019     s,@sysconfdir@,$sysconfdir,;t t
9020     s,@sharedstatedir@,$sharedstatedir,;t t
9021     s,@localstatedir@,$localstatedir,;t t
9022     s,@libdir@,$libdir,;t t
9023     s,@includedir@,$includedir,;t t
9024     s,@oldincludedir@,$oldincludedir,;t t
9025     s,@infodir@,$infodir,;t t
9026     s,@mandir@,$mandir,;t t
9027     s,@build_alias@,$build_alias,;t t
9028     s,@host_alias@,$host_alias,;t t
9029     s,@target_alias@,$target_alias,;t t
9030     s,@DEFS@,$DEFS,;t t
9031     s,@ECHO_C@,$ECHO_C,;t t
9032     s,@ECHO_N@,$ECHO_N,;t t
9033     s,@ECHO_T@,$ECHO_T,;t t
9034     s,@LIBS@,$LIBS,;t t
9035     s,@PROGNAME@,$PROGNAME,;t t
9036     s,@debug@,$debug,;t t
9037     s,@build@,$build,;t t
9038     s,@build_cpu@,$build_cpu,;t t
9039     s,@build_vendor@,$build_vendor,;t t
9040     s,@build_os@,$build_os,;t t
9041     s,@host@,$host,;t t
9042     s,@host_cpu@,$host_cpu,;t t
9043     s,@host_vendor@,$host_vendor,;t t
9044     s,@host_os@,$host_os,;t t
9045     s,@CC@,$CC,;t t
9046     s,@CFLAGS@,$CFLAGS,;t t
9047     s,@LDFLAGS@,$LDFLAGS,;t t
9048     s,@CPPFLAGS@,$CPPFLAGS,;t t
9049     s,@ac_ct_CC@,$ac_ct_CC,;t t
9050     s,@EXEEXT@,$EXEEXT,;t t
9051     s,@OBJEXT@,$OBJEXT,;t t
9052     s,@CXX@,$CXX,;t t
9053     s,@CXXFLAGS@,$CXXFLAGS,;t t
9054     s,@ac_ct_CXX@,$ac_ct_CXX,;t t
9055     s,@OOPSE_TEMPLATE_FLAGS@,$OOPSE_TEMPLATE_FLAGS,;t t
9056     s,@EXTRA_CC_FLAG@,$EXTRA_CC_FLAG,;t t
9057     s,@F90@,$F90,;t t
9058     s,@F90FLAGS@,$F90FLAGS,;t t
9059     s,@ac_ct_F90@,$ac_ct_F90,;t t
9060     s,@PREPFLAG@,$PREPFLAG,;t t
9061     s,@PREPDEFFLAG@,$PREPDEFFLAG,;t t
9062     s,@F90LIBS@,$F90LIBS,;t t
9063     s,@F90_FUNC@,$F90_FUNC,;t t
9064     s,@F90_FUNC_@,$F90_FUNC_,;t t
9065     s,@MOD@,$MOD,;t t
9066     s,@F90_WORK_FILES_ARG@,$F90_WORK_FILES_ARG,;t t
9067     s,@MODDIRFLAG@,$MODDIRFLAG,;t t
9068     s,@F90MODINCSPEC@,$F90MODINCSPEC,;t t
9069 gezelter 1535 s,@F90_MODULE_NAMES@,$F90_MODULE_NAMES,;t t
9070 gezelter 1490 s,@CPP@,$CPP,;t t
9071     s,@EGREP@,$EGREP,;t t
9072     s,@LIBOBJS@,$LIBOBJS,;t t
9073     s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
9074     s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
9075     s,@INSTALL_DATA@,$INSTALL_DATA,;t t
9076     s,@LN_S@,$LN_S,;t t
9077     s,@SET_MAKE@,$SET_MAKE,;t t
9078     s,@RANLIB@,$RANLIB,;t t
9079     s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
9080     s,@YACC@,$YACC,;t t
9081     s,@LEX@,$LEX,;t t
9082     s,@LEXLIB@,$LEXLIB,;t t
9083     s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
9084     s,@AR@,$AR,;t t
9085 gezelter 2023 s,@PS@,$PS,;t t
9086     s,@PSTYPE@,$PSTYPE,;t t
9087 gezelter 1490 s,@MPI_LIB_DIR@,$MPI_LIB_DIR,;t t
9088     s,@MPI_INC_DIR@,$MPI_INC_DIR,;t t
9089     s,@MPI_F90_INC@,$MPI_F90_INC,;t t
9090     s,@MPI_LIB@,$MPI_LIB,;t t
9091     s,@MPI_F90_LIB@,$MPI_F90_LIB,;t t
9092     s,@USE_MPI@,$USE_MPI,;t t
9093     s,@SPRNG_LIB_DIR@,$SPRNG_LIB_DIR,;t t
9094     s,@SPRNG_INC_DIR@,$SPRNG_INC_DIR,;t t
9095     s,@SPRNG_LIB@,$SPRNG_LIB,;t t
9096     s,@USE_SPRNG@,$USE_SPRNG,;t t
9097     s,@MKL_LIBDIR@,$MKL_LIBDIR,;t t
9098     s,@MKL_LIB@,$MKL_LIB,;t t
9099     s,@MKL_INC@,$MKL_INC,;t t
9100     s,@HAVE_MKL@,$HAVE_MKL,;t t
9101 gezelter 1540 s,@DOXYGEN@,$DOXYGEN,;t t
9102     s,@DOT@,$DOT,;t t
9103     s,@DOC@,$DOC,;t t
9104     s,@enable_dot@,$enable_dot,;t t
9105     s,@enable_html_docs@,$enable_html_docs,;t t
9106     s,@enable_latex_docs@,$enable_latex_docs,;t t
9107 gezelter 1490 s,@BATEXT@,$BATEXT,;t t
9108     s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
9109     s,@OOPSE@,$OOPSE,;t t
9110     s,@OOPSE_HOME@,$OOPSE_HOME,;t t
9111     s,@SUBDIRS@,$SUBDIRS,;t t
9112     s,@FFLAGS@,$FFLAGS,;t t
9113     s,@LTLIBOBJS@,$LTLIBOBJS,;t t
9114     CEOF
9115    
9116     _ACEOF
9117    
9118     cat >>$CONFIG_STATUS <<\_ACEOF
9119     # Split the substitutions into bite-sized pieces for seds with
9120     # small command number limits, like on Digital OSF/1 and HP-UX.
9121     ac_max_sed_lines=48
9122     ac_sed_frag=1 # Number of current file.
9123     ac_beg=1 # First line for current file.
9124     ac_end=$ac_max_sed_lines # Line after last line for current file.
9125     ac_more_lines=:
9126     ac_sed_cmds=
9127     while $ac_more_lines; do
9128     if test $ac_beg -gt 1; then
9129     sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9130     else
9131     sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9132     fi
9133     if test ! -s $tmp/subs.frag; then
9134     ac_more_lines=false
9135     else
9136     # The purpose of the label and of the branching condition is to
9137     # speed up the sed processing (if there are no `@' at all, there
9138     # is no need to browse any of the substitutions).
9139     # These are the two extra sed commands mentioned above.
9140     (echo ':t
9141     /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
9142     if test -z "$ac_sed_cmds"; then
9143     ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
9144     else
9145     ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
9146     fi
9147     ac_sed_frag=`expr $ac_sed_frag + 1`
9148     ac_beg=$ac_end
9149     ac_end=`expr $ac_end + $ac_max_sed_lines`
9150     fi
9151     done
9152     if test -z "$ac_sed_cmds"; then
9153     ac_sed_cmds=cat
9154     fi
9155     fi # test -n "$CONFIG_FILES"
9156    
9157     _ACEOF
9158     cat >>$CONFIG_STATUS <<\_ACEOF
9159     for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
9160     # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9161     case $ac_file in
9162     - | *:- | *:-:* ) # input from stdin
9163     cat >$tmp/stdin
9164     ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9165     ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9166     *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9167     ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9168     * ) ac_file_in=$ac_file.in ;;
9169     esac
9170    
9171     # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
9172     ac_dir=`(dirname "$ac_file") 2>/dev/null ||
9173     $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9174     X"$ac_file" : 'X\(//\)[^/]' \| \
9175     X"$ac_file" : 'X\(//\)$' \| \
9176     X"$ac_file" : 'X\(/\)' \| \
9177     . : '\(.\)' 2>/dev/null ||
9178     echo X"$ac_file" |
9179     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9180     /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9181     /^X\(\/\/\)$/{ s//\1/; q; }
9182     /^X\(\/\).*/{ s//\1/; q; }
9183     s/.*/./; q'`
9184     { if $as_mkdir_p; then
9185     mkdir -p "$ac_dir"
9186     else
9187     as_dir="$ac_dir"
9188     as_dirs=
9189     while test ! -d "$as_dir"; do
9190     as_dirs="$as_dir $as_dirs"
9191     as_dir=`(dirname "$as_dir") 2>/dev/null ||
9192     $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9193     X"$as_dir" : 'X\(//\)[^/]' \| \
9194     X"$as_dir" : 'X\(//\)$' \| \
9195     X"$as_dir" : 'X\(/\)' \| \
9196     . : '\(.\)' 2>/dev/null ||
9197     echo X"$as_dir" |
9198     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9199     /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9200     /^X\(\/\/\)$/{ s//\1/; q; }
9201     /^X\(\/\).*/{ s//\1/; q; }
9202     s/.*/./; q'`
9203     done
9204     test ! -n "$as_dirs" || mkdir $as_dirs
9205     fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9206     echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9207     { (exit 1); exit 1; }; }; }
9208    
9209     ac_builddir=.
9210    
9211     if test "$ac_dir" != .; then
9212     ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9213     # A "../" for each directory in $ac_dir_suffix.
9214     ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9215     else
9216     ac_dir_suffix= ac_top_builddir=
9217     fi
9218    
9219     case $srcdir in
9220     .) # No --srcdir option. We are building in place.
9221     ac_srcdir=.
9222     if test -z "$ac_top_builddir"; then
9223     ac_top_srcdir=.
9224     else
9225     ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9226     fi ;;
9227     [\\/]* | ?:[\\/]* ) # Absolute path.
9228     ac_srcdir=$srcdir$ac_dir_suffix;
9229     ac_top_srcdir=$srcdir ;;
9230     *) # Relative path.
9231     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9232     ac_top_srcdir=$ac_top_builddir$srcdir ;;
9233     esac
9234    
9235     # Do not use `cd foo && pwd` to compute absolute paths, because
9236     # the directories may not exist.
9237     case `pwd` in
9238     .) ac_abs_builddir="$ac_dir";;
9239     *)
9240     case "$ac_dir" in
9241     .) ac_abs_builddir=`pwd`;;
9242     [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
9243     *) ac_abs_builddir=`pwd`/"$ac_dir";;
9244     esac;;
9245     esac
9246     case $ac_abs_builddir in
9247     .) ac_abs_top_builddir=${ac_top_builddir}.;;
9248     *)
9249     case ${ac_top_builddir}. in
9250     .) ac_abs_top_builddir=$ac_abs_builddir;;
9251     [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
9252     *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
9253     esac;;
9254     esac
9255     case $ac_abs_builddir in
9256     .) ac_abs_srcdir=$ac_srcdir;;
9257     *)
9258     case $ac_srcdir in
9259     .) ac_abs_srcdir=$ac_abs_builddir;;
9260     [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
9261     *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
9262     esac;;
9263     esac
9264     case $ac_abs_builddir in
9265     .) ac_abs_top_srcdir=$ac_top_srcdir;;
9266     *)
9267     case $ac_top_srcdir in
9268     .) ac_abs_top_srcdir=$ac_abs_builddir;;
9269     [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
9270     *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
9271     esac;;
9272     esac
9273    
9274    
9275     case $INSTALL in
9276     [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9277     *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
9278     esac
9279    
9280     if test x"$ac_file" != x-; then
9281     { echo "$as_me:$LINENO: creating $ac_file" >&5
9282     echo "$as_me: creating $ac_file" >&6;}
9283     rm -f "$ac_file"
9284     fi
9285     # Let's still pretend it is `configure' which instantiates (i.e., don't
9286     # use $as_me), people would be surprised to read:
9287     # /* config.h. Generated by config.status. */
9288     if test x"$ac_file" = x-; then
9289     configure_input=
9290     else
9291     configure_input="$ac_file. "
9292     fi
9293     configure_input=$configure_input"Generated from `echo $ac_file_in |
9294     sed 's,.*/,,'` by configure."
9295    
9296     # First look for the input files in the build tree, otherwise in the
9297     # src tree.
9298     ac_file_inputs=`IFS=:
9299     for f in $ac_file_in; do
9300     case $f in
9301     -) echo $tmp/stdin ;;
9302     [\\/$]*)
9303     # Absolute (can't be DOS-style, as IFS=:)
9304     test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9305     echo "$as_me: error: cannot find input file: $f" >&2;}
9306     { (exit 1); exit 1; }; }
9307     echo "$f";;
9308     *) # Relative
9309     if test -f "$f"; then
9310     # Build tree
9311     echo "$f"
9312     elif test -f "$srcdir/$f"; then
9313     # Source tree
9314     echo "$srcdir/$f"
9315     else
9316     # /dev/null tree
9317     { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9318     echo "$as_me: error: cannot find input file: $f" >&2;}
9319     { (exit 1); exit 1; }; }
9320     fi;;
9321     esac
9322     done` || { (exit 1); exit 1; }
9323     _ACEOF
9324     cat >>$CONFIG_STATUS <<_ACEOF
9325     sed "$ac_vpsub
9326     $extrasub
9327     _ACEOF
9328     cat >>$CONFIG_STATUS <<\_ACEOF
9329     :t
9330     /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9331     s,@configure_input@,$configure_input,;t t
9332     s,@srcdir@,$ac_srcdir,;t t
9333     s,@abs_srcdir@,$ac_abs_srcdir,;t t
9334     s,@top_srcdir@,$ac_top_srcdir,;t t
9335     s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
9336     s,@builddir@,$ac_builddir,;t t
9337     s,@abs_builddir@,$ac_abs_builddir,;t t
9338     s,@top_builddir@,$ac_top_builddir,;t t
9339     s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
9340     s,@INSTALL@,$ac_INSTALL,;t t
9341     " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
9342     rm -f $tmp/stdin
9343     if test x"$ac_file" != x-; then
9344     mv $tmp/out $ac_file
9345     else
9346     cat $tmp/out
9347     rm -f $tmp/out
9348     fi
9349    
9350     done
9351     _ACEOF
9352     cat >>$CONFIG_STATUS <<\_ACEOF
9353    
9354     #
9355     # CONFIG_HEADER section.
9356     #
9357    
9358     # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9359     # NAME is the cpp macro being defined and VALUE is the value it is being given.
9360     #
9361     # ac_d sets the value in "#define NAME VALUE" lines.
9362     ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9363     ac_dB='[ ].*$,\1#\2'
9364     ac_dC=' '
9365     ac_dD=',;t'
9366     # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9367     ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9368     ac_uB='$,\1#\2define\3'
9369     ac_uC=' '
9370     ac_uD=',;t'
9371    
9372     for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
9373     # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9374     case $ac_file in
9375     - | *:- | *:-:* ) # input from stdin
9376     cat >$tmp/stdin
9377     ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9378     ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9379     *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9380     ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9381     * ) ac_file_in=$ac_file.in ;;
9382     esac
9383    
9384     test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
9385     echo "$as_me: creating $ac_file" >&6;}
9386    
9387     # First look for the input files in the build tree, otherwise in the
9388     # src tree.
9389     ac_file_inputs=`IFS=:
9390     for f in $ac_file_in; do
9391     case $f in
9392     -) echo $tmp/stdin ;;
9393     [\\/$]*)
9394     # Absolute (can't be DOS-style, as IFS=:)
9395     test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9396     echo "$as_me: error: cannot find input file: $f" >&2;}
9397     { (exit 1); exit 1; }; }
9398     # Do quote $f, to prevent DOS paths from being IFS'd.
9399     echo "$f";;
9400     *) # Relative
9401     if test -f "$f"; then
9402     # Build tree
9403     echo "$f"
9404     elif test -f "$srcdir/$f"; then
9405     # Source tree
9406     echo "$srcdir/$f"
9407     else
9408     # /dev/null tree
9409     { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9410     echo "$as_me: error: cannot find input file: $f" >&2;}
9411     { (exit 1); exit 1; }; }
9412     fi;;
9413     esac
9414     done` || { (exit 1); exit 1; }
9415     # Remove the trailing spaces.
9416     sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
9417    
9418     _ACEOF
9419    
9420     # Transform confdefs.h into two sed scripts, `conftest.defines' and
9421     # `conftest.undefs', that substitutes the proper values into
9422     # config.h.in to produce config.h. The first handles `#define'
9423     # templates, and the second `#undef' templates.
9424     # And first: Protect against being on the right side of a sed subst in
9425     # config.status. Protect against being in an unquoted here document
9426     # in config.status.
9427     rm -f conftest.defines conftest.undefs
9428     # Using a here document instead of a string reduces the quoting nightmare.
9429     # Putting comments in sed scripts is not portable.
9430     #
9431     # `end' is used to avoid that the second main sed command (meant for
9432     # 0-ary CPP macros) applies to n-ary macro definitions.
9433     # See the Autoconf documentation for `clear'.
9434     cat >confdef2sed.sed <<\_ACEOF
9435     s/[\\&,]/\\&/g
9436     s,[\\$`],\\&,g
9437     t clear
9438     : clear
9439     s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
9440     t end
9441     s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
9442     : end
9443     _ACEOF
9444     # If some macros were called several times there might be several times
9445     # the same #defines, which is useless. Nevertheless, we may not want to
9446     # sort them, since we want the *last* AC-DEFINE to be honored.
9447     uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
9448     sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
9449     rm -f confdef2sed.sed
9450    
9451     # This sed command replaces #undef with comments. This is necessary, for
9452     # example, in the case of _POSIX_SOURCE, which is predefined and required
9453     # on some systems where configure will not decide to define it.
9454     cat >>conftest.undefs <<\_ACEOF
9455     s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
9456     _ACEOF
9457    
9458     # Break up conftest.defines because some shells have a limit on the size
9459     # of here documents, and old seds have small limits too (100 cmds).
9460     echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
9461     echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
9462     echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
9463     echo ' :' >>$CONFIG_STATUS
9464     rm -f conftest.tail
9465     while grep . conftest.defines >/dev/null
9466     do
9467     # Write a limited-size here document to $tmp/defines.sed.
9468     echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
9469     # Speed up: don't consider the non `#define' lines.
9470     echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
9471     # Work around the forget-to-reset-the-flag bug.
9472     echo 't clr' >>$CONFIG_STATUS
9473     echo ': clr' >>$CONFIG_STATUS
9474     sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
9475     echo 'CEOF
9476     sed -f $tmp/defines.sed $tmp/in >$tmp/out
9477     rm -f $tmp/in
9478     mv $tmp/out $tmp/in
9479     ' >>$CONFIG_STATUS
9480     sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
9481     rm -f conftest.defines
9482     mv conftest.tail conftest.defines
9483     done
9484     rm -f conftest.defines
9485     echo ' fi # grep' >>$CONFIG_STATUS
9486     echo >>$CONFIG_STATUS
9487    
9488     # Break up conftest.undefs because some shells have a limit on the size
9489     # of here documents, and old seds have small limits too (100 cmds).
9490     echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
9491     rm -f conftest.tail
9492     while grep . conftest.undefs >/dev/null
9493     do
9494     # Write a limited-size here document to $tmp/undefs.sed.
9495     echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
9496     # Speed up: don't consider the non `#undef'
9497     echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
9498     # Work around the forget-to-reset-the-flag bug.
9499     echo 't clr' >>$CONFIG_STATUS
9500     echo ': clr' >>$CONFIG_STATUS
9501     sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
9502     echo 'CEOF
9503     sed -f $tmp/undefs.sed $tmp/in >$tmp/out
9504     rm -f $tmp/in
9505     mv $tmp/out $tmp/in
9506     ' >>$CONFIG_STATUS
9507     sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
9508     rm -f conftest.undefs
9509     mv conftest.tail conftest.undefs
9510     done
9511     rm -f conftest.undefs
9512    
9513     cat >>$CONFIG_STATUS <<\_ACEOF
9514     # Let's still pretend it is `configure' which instantiates (i.e., don't
9515     # use $as_me), people would be surprised to read:
9516     # /* config.h. Generated by config.status. */
9517     if test x"$ac_file" = x-; then
9518     echo "/* Generated by configure. */" >$tmp/config.h
9519     else
9520     echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
9521     fi
9522     cat $tmp/in >>$tmp/config.h
9523     rm -f $tmp/in
9524     if test x"$ac_file" != x-; then
9525     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
9526     { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
9527     echo "$as_me: $ac_file is unchanged" >&6;}
9528     else
9529     ac_dir=`(dirname "$ac_file") 2>/dev/null ||
9530     $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9531     X"$ac_file" : 'X\(//\)[^/]' \| \
9532     X"$ac_file" : 'X\(//\)$' \| \
9533     X"$ac_file" : 'X\(/\)' \| \
9534     . : '\(.\)' 2>/dev/null ||
9535     echo X"$ac_file" |
9536     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9537     /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9538     /^X\(\/\/\)$/{ s//\1/; q; }
9539     /^X\(\/\).*/{ s//\1/; q; }
9540     s/.*/./; q'`
9541     { if $as_mkdir_p; then
9542     mkdir -p "$ac_dir"
9543     else
9544     as_dir="$ac_dir"
9545     as_dirs=
9546     while test ! -d "$as_dir"; do
9547     as_dirs="$as_dir $as_dirs"
9548     as_dir=`(dirname "$as_dir") 2>/dev/null ||
9549     $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9550     X"$as_dir" : 'X\(//\)[^/]' \| \
9551     X"$as_dir" : 'X\(//\)$' \| \
9552     X"$as_dir" : 'X\(/\)' \| \
9553     . : '\(.\)' 2>/dev/null ||
9554     echo X"$as_dir" |
9555     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9556     /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9557     /^X\(\/\/\)$/{ s//\1/; q; }
9558     /^X\(\/\).*/{ s//\1/; q; }
9559     s/.*/./; q'`
9560     done
9561     test ! -n "$as_dirs" || mkdir $as_dirs
9562     fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9563     echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9564     { (exit 1); exit 1; }; }; }
9565    
9566     rm -f $ac_file
9567     mv $tmp/config.h $ac_file
9568     fi
9569     else
9570     cat $tmp/config.h
9571     rm -f $tmp/config.h
9572     fi
9573     done
9574     _ACEOF
9575     cat >>$CONFIG_STATUS <<\_ACEOF
9576    
9577     #
9578     # CONFIG_LINKS section.
9579     #
9580    
9581     for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
9582     ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
9583     ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
9584    
9585     { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
9586     echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
9587    
9588     if test ! -r $srcdir/$ac_source; then
9589     { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
9590     echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
9591     { (exit 1); exit 1; }; }
9592     fi
9593     rm -f $ac_dest
9594    
9595     # Make relative symlinks.
9596     ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
9597     $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9598     X"$ac_dest" : 'X\(//\)[^/]' \| \
9599     X"$ac_dest" : 'X\(//\)$' \| \
9600     X"$ac_dest" : 'X\(/\)' \| \
9601     . : '\(.\)' 2>/dev/null ||
9602     echo X"$ac_dest" |
9603     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9604     /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9605     /^X\(\/\/\)$/{ s//\1/; q; }
9606     /^X\(\/\).*/{ s//\1/; q; }
9607     s/.*/./; q'`
9608     { if $as_mkdir_p; then
9609     mkdir -p "$ac_dest_dir"
9610     else
9611     as_dir="$ac_dest_dir"
9612     as_dirs=
9613     while test ! -d "$as_dir"; do
9614     as_dirs="$as_dir $as_dirs"
9615     as_dir=`(dirname "$as_dir") 2>/dev/null ||
9616     $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9617     X"$as_dir" : 'X\(//\)[^/]' \| \
9618     X"$as_dir" : 'X\(//\)$' \| \
9619     X"$as_dir" : 'X\(/\)' \| \
9620     . : '\(.\)' 2>/dev/null ||
9621     echo X"$as_dir" |
9622     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9623     /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9624     /^X\(\/\/\)$/{ s//\1/; q; }
9625     /^X\(\/\).*/{ s//\1/; q; }
9626     s/.*/./; q'`
9627     done
9628     test ! -n "$as_dirs" || mkdir $as_dirs
9629     fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
9630     echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
9631     { (exit 1); exit 1; }; }; }
9632    
9633     ac_builddir=.
9634    
9635     if test "$ac_dest_dir" != .; then
9636     ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
9637     # A "../" for each directory in $ac_dir_suffix.
9638     ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9639     else
9640     ac_dir_suffix= ac_top_builddir=
9641     fi
9642    
9643     case $srcdir in
9644     .) # No --srcdir option. We are building in place.
9645     ac_srcdir=.
9646     if test -z "$ac_top_builddir"; then
9647     ac_top_srcdir=.
9648     else
9649     ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9650     fi ;;
9651     [\\/]* | ?:[\\/]* ) # Absolute path.
9652     ac_srcdir=$srcdir$ac_dir_suffix;
9653     ac_top_srcdir=$srcdir ;;
9654     *) # Relative path.
9655     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9656     ac_top_srcdir=$ac_top_builddir$srcdir ;;
9657     esac
9658    
9659     # Do not use `cd foo && pwd` to compute absolute paths, because
9660     # the directories may not exist.
9661     case `pwd` in
9662     .) ac_abs_builddir="$ac_dest_dir";;
9663     *)
9664     case "$ac_dest_dir" in
9665     .) ac_abs_builddir=`pwd`;;
9666     [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
9667     *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
9668     esac;;
9669     esac
9670     case $ac_abs_builddir in
9671     .) ac_abs_top_builddir=${ac_top_builddir}.;;
9672     *)
9673     case ${ac_top_builddir}. in
9674     .) ac_abs_top_builddir=$ac_abs_builddir;;
9675     [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
9676     *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
9677     esac;;
9678     esac
9679     case $ac_abs_builddir in
9680     .) ac_abs_srcdir=$ac_srcdir;;
9681     *)
9682     case $ac_srcdir in
9683     .) ac_abs_srcdir=$ac_abs_builddir;;
9684     [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
9685     *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
9686     esac;;
9687     esac
9688     case $ac_abs_builddir in
9689     .) ac_abs_top_srcdir=$ac_top_srcdir;;
9690     *)
9691     case $ac_top_srcdir in
9692     .) ac_abs_top_srcdir=$ac_abs_builddir;;
9693     [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
9694     *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
9695     esac;;
9696     esac
9697    
9698    
9699     case $srcdir in
9700     [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
9701     *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
9702     esac
9703    
9704     # Try a symlink, then a hard link, then a copy.
9705     ln -s $ac_rel_source $ac_dest 2>/dev/null ||
9706     ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
9707     cp -p $srcdir/$ac_source $ac_dest ||
9708     { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
9709     echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
9710     { (exit 1); exit 1; }; }
9711     done
9712     _ACEOF
9713    
9714     cat >>$CONFIG_STATUS <<\_ACEOF
9715    
9716     { (exit 0); exit 0; }
9717     _ACEOF
9718     chmod +x $CONFIG_STATUS
9719     ac_clean_files=$ac_clean_files_save
9720    
9721    
9722     # configure is writing to config.log, and then calls config.status.
9723     # config.status does its own redirection, appending to config.log.
9724     # Unfortunately, on DOS this fails, as config.log is still kept open
9725     # by configure, so config.status won't be able to write to it; its
9726     # output is simply discarded. So we exec the FD to /dev/null,
9727     # effectively closing config.log, so it can be properly (re)opened and
9728     # appended to by config.status. When coming back to configure, we
9729     # need to make the FD available again.
9730     if test "$no_create" != yes; then
9731     ac_cs_success=:
9732     ac_config_status_args=
9733     test "$silent" = yes &&
9734     ac_config_status_args="$ac_config_status_args --quiet"
9735     exec 5>/dev/null
9736     $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9737     exec 5>>config.log
9738     # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9739     # would make configure fail if this is the last instruction.
9740     $ac_cs_success || { (exit 1); exit 1; }
9741     fi
9742    

Properties

Name Value
svn:executable *