ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/OOPSE-3.0/configure
Revision: 1509
Committed: Wed Sep 29 17:57:47 2004 UTC (19 years, 9 months ago) by gezelter
File size: 256629 byte(s)
Log Message:
updates

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

Properties

Name Value
svn:executable *