ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/OOPSE-2.0/configure
Revision: 2505
Committed: Fri Dec 9 17:11:12 2005 UTC (18 years, 6 months ago) by gezelter
File size: 349965 byte(s)
Log Message:
added some checks for pathscale compiler

File Contents

# User Rev Content
1 gezelter 1490 #! /bin/sh
2     # Guess values for system-dependent variables and create Makefiles.
3 gezelter 2081 # Generated by GNU Autoconf 2.59 for OOPSE 2.0.
4 gezelter 1490 #
5     # Report bugs to <gezelter@nd.edu>.
6     #
7 gezelter 2081 # Copyright (C) 2003 Free Software Foundation, Inc.
8 gezelter 1490 # This configure script is free software; the Free Software Foundation
9     # gives unlimited permission to copy, distribute and modify it.
10 gezelter 2081 ## --------------------- ##
11     ## M4sh Initialization. ##
12     ## --------------------- ##
13 gezelter 1490
14     # Be Bourne compatible
15     if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16     emulate sh
17     NULLCMD=:
18 gezelter 2081 # 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 gezelter 1490 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22     set -o posix
23     fi
24 gezelter 2081 DUALCASE=1; export DUALCASE # for MKS sh
25 gezelter 1490
26 gezelter 2081 # 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 gezelter 1490 # Name of the executable.
68 gezelter 2081 as_me=`$as_basename "$0" ||
69     $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70     X"$0" : 'X\(//\)$' \| \
71     X"$0" : 'X\(/\)$' \| \
72     . : '\(.\)' 2>/dev/null ||
73     echo X/"$0" |
74     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75     /^X\/\(\/\/\)$/{ s//\1/; q; }
76     /^X\/\(\/\).*/{ s//\1/; q; }
77     s/.*/./; q'`
78 gezelter 1490
79 gezelter 2081
80     # PATH needs CR, and LINENO needs CR and PATH.
81     # Avoid depending upon Character Ranges.
82     as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83     as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84     as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85     as_cr_digits='0123456789'
86     as_cr_alnum=$as_cr_Letters$as_cr_digits
87    
88     # The user is always right.
89     if test "${PATH_SEPARATOR+set}" != set; then
90     echo "#! /bin/sh" >conf$$.sh
91     echo "exit 0" >>conf$$.sh
92     chmod +x conf$$.sh
93     if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94     PATH_SEPARATOR=';'
95     else
96     PATH_SEPARATOR=:
97     fi
98     rm -f conf$$.sh
99     fi
100    
101    
102     as_lineno_1=$LINENO
103     as_lineno_2=$LINENO
104     as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105     test "x$as_lineno_1" != "x$as_lineno_2" &&
106     test "x$as_lineno_3" = "x$as_lineno_2" || {
107     # Find who we are. Look in the path if we contain no path at all
108     # relative or not.
109     case $0 in
110     *[\\/]* ) as_myself=$0 ;;
111     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112     for as_dir in $PATH
113     do
114     IFS=$as_save_IFS
115     test -z "$as_dir" && as_dir=.
116     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117     done
118    
119     ;;
120     esac
121     # We did not find ourselves, most probably we were run as `sh COMMAND'
122     # in which case we are not to be found in the path.
123     if test "x$as_myself" = x; then
124     as_myself=$0
125     fi
126     if test ! -f "$as_myself"; then
127     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128     { (exit 1); exit 1; }; }
129     fi
130     case $CONFIG_SHELL in
131     '')
132     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133     for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134     do
135     IFS=$as_save_IFS
136     test -z "$as_dir" && as_dir=.
137     for as_base in sh bash ksh sh5; do
138     case $as_dir in
139     /*)
140     if ("$as_dir/$as_base" -c '
141     as_lineno_1=$LINENO
142     as_lineno_2=$LINENO
143     as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144     test "x$as_lineno_1" != "x$as_lineno_2" &&
145     test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
146     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148     CONFIG_SHELL=$as_dir/$as_base
149     export CONFIG_SHELL
150     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151     fi;;
152     esac
153     done
154     done
155     ;;
156     esac
157    
158     # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159     # uniformly replaced by the line number. The first 'sed' inserts a
160     # line-number line before each line; the second 'sed' does the real
161     # work. The second script uses 'N' to pair each line-number line
162     # with the numbered line, and appends trailing '-' during
163     # substitution so that $LINENO is not a special case at line end.
164     # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165     # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
166     sed '=' <$as_myself |
167     sed '
168     N
169     s,$,-,
170     : loop
171     s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172     t loop
173     s,-$,,
174     s,^['$as_cr_digits']*\n,,
175     ' >$as_me.lineno &&
176     chmod +x $as_me.lineno ||
177     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178     { (exit 1); exit 1; }; }
179    
180     # Don't try to exec as it changes $[0], causing all sort of problems
181     # (the dirname of $[0] is not the place where we might find the
182     # original and so on. Autoconf is especially sensible to this).
183     . ./$as_me.lineno
184     # Exit status is that of the last command.
185     exit
186     }
187    
188    
189     case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190     *c*,-n*) ECHO_N= ECHO_C='
191     ' ECHO_T=' ' ;;
192     *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193     *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194     esac
195    
196 gezelter 1490 if expr a : '\(a\)' >/dev/null 2>&1; then
197     as_expr=expr
198     else
199     as_expr=false
200     fi
201    
202     rm -f conf$$ conf$$.exe conf$$.file
203     echo >conf$$.file
204     if ln -s conf$$.file conf$$ 2>/dev/null; then
205     # We could just check for DJGPP; but this test a) works b) is more generic
206     # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207     if test -f conf$$.exe; then
208     # Don't use ln at all; we don't have any links
209     as_ln_s='cp -p'
210     else
211     as_ln_s='ln -s'
212     fi
213     elif ln conf$$.file conf$$ 2>/dev/null; then
214     as_ln_s=ln
215     else
216     as_ln_s='cp -p'
217     fi
218     rm -f conf$$ conf$$.exe conf$$.file
219    
220 gezelter 2081 if mkdir -p . 2>/dev/null; then
221     as_mkdir_p=:
222 gezelter 1490 else
223 gezelter 2081 test -d ./-p && rmdir ./-p
224     as_mkdir_p=false
225 gezelter 1490 fi
226    
227 gezelter 2081 as_executable_p="test -f"
228 gezelter 1490
229 gezelter 2081 # 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 gezelter 1490 # 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 gezelter 2081 $as_unset CDPATH
244 gezelter 1490
245 gezelter 2081
246 gezelter 1490 # 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 gezelter 2081 ac_config_libobj_dir=.
258 gezelter 1490 cross_compiling=no
259     subdirs=
260 gezelter 2081 MFLAGS=
261     MAKEFLAGS=
262 gezelter 1490 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 gezelter 2081 # Identity of this package.
270     PACKAGE_NAME='OOPSE'
271     PACKAGE_TARNAME='oopse'
272     PACKAGE_VERSION='2.0'
273     PACKAGE_STRING='OOPSE 2.0'
274     PACKAGE_BUGREPORT='gezelter@nd.edu'
275 gezelter 1490
276 gezelter 1509 ac_unique_file="src/applications/oopse/oopse.cpp"
277 gezelter 1490 ac_default_prefix="/usr/local"
278 gezelter 2081 # 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 gezelter 1490
315 gezelter 2473 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 CPP EGREP OOPSE_TEMPLATE_FLAGS EXTRA_CC_FLAG F90 F90FLAGS ac_ct_F90 PREPFLAG PREPDEFFLAG F90LIBS F90_FUNC F90_FUNC_ MOD F90_WORK_FILES_ARG MODDIRFLAG F90MODINCSPEC F90_MODULE_NAMES CXXCPP LIBOBJS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S SET_MAKE RANLIB ac_ct_RANLIB YACC LEX LEXLIB LEX_OUTPUT_ROOT PERLINTERP PERL_SHEBANG AR PS MPI_LIB_DIR MPI_INC_DIR MPI_F90_INC MPI_LIB MPI_F90_LIB USE_MPI USE_CGAL CGAL_INC_DIR CGAL_LIB_DIR CGAL_RLIB_DIR CGAL_DEFINES CGAL_CXXFLAGS CGAL_LIBS DOXYGEN DOT DOC enable_dot enable_html_docs enable_latex_docs BATEXT MKINSTALLDIRS OOPSE OOPSE_HOME SUBDIRS FFLAGS LTLIBOBJS'
316 gezelter 2081 ac_subst_files=''
317    
318 gezelter 1490 # 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 gezelter 2081 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
402 gezelter 1490 { 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 gezelter 2081 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
411 gezelter 1490 { 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 gezelter 2081 | --no-cr | --no-c | -n)
489 gezelter 1490 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 gezelter 2081 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
593 gezelter 1490 { 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 gezelter 2081 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
606 gezelter 1490 { 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 gezelter 2081 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
638 gezelter 1490 { 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 gezelter 2081 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
648 gezelter 1490 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 gezelter 2081 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 gezelter 1490 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
674 gezelter 2081 localstatedir libdir includedir oldincludedir infodir mandir
675 gezelter 1490 do
676     eval ac_val=$`echo $ac_var`
677     case $ac_val in
678     [\\/$]* | ?:[\\/]* ) ;;
679 gezelter 2081 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
680 gezelter 1490 { (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 gezelter 2081 # FIXME: To remove some day.
687 gezelter 1490 build=$build_alias
688     host=$host_alias
689     target=$target_alias
690    
691 gezelter 2081 # FIXME: To remove some day.
692 gezelter 1490 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 gezelter 2081
708 gezelter 1490 # 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 gezelter 2081 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 gezelter 1490 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 gezelter 2081 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
734 gezelter 1490 { (exit 1); exit 1; }; }
735     else
736 gezelter 2081 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
737 gezelter 1490 { (exit 1); exit 1; }; }
738     fi
739     fi
740 gezelter 2081 (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 gezelter 1490 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 gezelter 2473 ac_env_CPP_set=${CPP+set}
781     ac_env_CPP_value=$CPP
782     ac_cv_env_CPP_set=${CPP+set}
783     ac_cv_env_CPP_value=$CPP
784 gezelter 1490 ac_env_F90_set=${F90+set}
785     ac_env_F90_value=$F90
786     ac_cv_env_F90_set=${F90+set}
787     ac_cv_env_F90_value=$F90
788     ac_env_F90FLAGS_set=${F90FLAGS+set}
789     ac_env_F90FLAGS_value=$F90FLAGS
790     ac_cv_env_F90FLAGS_set=${F90FLAGS+set}
791     ac_cv_env_F90FLAGS_value=$F90FLAGS
792 gezelter 2190 ac_env_CXXCPP_set=${CXXCPP+set}
793     ac_env_CXXCPP_value=$CXXCPP
794     ac_cv_env_CXXCPP_set=${CXXCPP+set}
795     ac_cv_env_CXXCPP_value=$CXXCPP
796 gezelter 1490
797     #
798     # Report the --help message.
799     #
800     if test "$ac_init_help" = "long"; then
801     # Omit some internal or obsolete options to make the list less imposing.
802     # This message is too long to be a string in the A/UX 3.1 sh.
803 gezelter 2081 cat <<_ACEOF
804 gezelter 1499 \`configure' configures OOPSE 2.0 to adapt to many kinds of systems.
805 gezelter 1490
806     Usage: $0 [OPTION]... [VAR=VALUE]...
807    
808     To assign environment variables (e.g., CC, CFLAGS...), specify them as
809     VAR=VALUE. See below for descriptions of some of the useful variables.
810    
811     Defaults for the options are specified in brackets.
812    
813     Configuration:
814     -h, --help display this help and exit
815     --help=short display options specific to this package
816     --help=recursive display the short help of all the included packages
817     -V, --version display version information and exit
818     -q, --quiet, --silent do not print \`checking...' messages
819     --cache-file=FILE cache test results in FILE [disabled]
820     -C, --config-cache alias for \`--cache-file=config.cache'
821     -n, --no-create do not create output files
822     --srcdir=DIR find the sources in DIR [configure dir or \`..']
823    
824 gezelter 2081 _ACEOF
825 gezelter 1490
826 gezelter 2081 cat <<_ACEOF
827 gezelter 1490 Installation directories:
828     --prefix=PREFIX install architecture-independent files in PREFIX
829 gezelter 2081 [$ac_default_prefix]
830 gezelter 1490 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
831 gezelter 2081 [PREFIX]
832 gezelter 1490
833     By default, \`make install' will install all the files in
834     \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
835     an installation prefix other than \`$ac_default_prefix' using \`--prefix',
836     for instance \`--prefix=\$HOME'.
837    
838     For better control, use the options below.
839    
840     Fine tuning of the installation directories:
841     --bindir=DIR user executables [EPREFIX/bin]
842     --sbindir=DIR system admin executables [EPREFIX/sbin]
843     --libexecdir=DIR program executables [EPREFIX/libexec]
844     --datadir=DIR read-only architecture-independent data [PREFIX/share]
845     --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
846     --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
847     --localstatedir=DIR modifiable single-machine data [PREFIX/var]
848     --libdir=DIR object code libraries [EPREFIX/lib]
849     --includedir=DIR C header files [PREFIX/include]
850     --oldincludedir=DIR C header files for non-gcc [/usr/include]
851     --infodir=DIR info documentation [PREFIX/info]
852     --mandir=DIR man documentation [PREFIX/man]
853 gezelter 2081 _ACEOF
854 gezelter 1490
855 gezelter 2081 cat <<\_ACEOF
856 gezelter 1490
857     System types:
858     --build=BUILD configure for building on BUILD [guessed]
859 gezelter 2081 --host=HOST cross-compile to build programs to run on HOST [BUILD]
860     _ACEOF
861 gezelter 1490 fi
862    
863     if test -n "$ac_init_help"; then
864     case $ac_init_help in
865 gezelter 1499 short | recursive ) echo "Configuration of OOPSE 2.0:";;
866 gezelter 1490 esac
867 gezelter 2081 cat <<\_ACEOF
868 gezelter 1490
869     Optional Features:
870     --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
871     --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
872     --enable-debug Compile OOPSE in debug mode
873 gezelter 1540 --enable-doxygen enable documentation generation with doxygen (auto)
874     --enable-dot use 'dot' to generate graphs in doxygen (auto)
875     --enable-html-docs enable HTML generation with doxygen (yes)
876     --enable-latex-docs enable LaTeX documentation generation with doxygen (no)
877 gezelter 1490 --enable-oopse-home=DIR define oopse home dir PREFIX/oopse
878    
879     Optional Packages:
880     --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
881     --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
882 gezelter 2315 --with-zlib=DIR root directory path of zlib installation defaults to
883     /usr/local or /usr if not found in /usr/local
884     --without-zlib to disable zlib usage completely
885 gezelter 2199 --with-perl-shebang override what perl thinks is the way for the kernel
886     to start it (seldom needed)
887 gezelter 1490 --with-mpi=<prefix> compile with MPI installed in <prefix> [default=no]
888 gezelter 2190 --with-cgal-makefile=FILE CGAL makefile that should be used
889 gezelter 1490
890     Some influential environment variables:
891     CC C compiler command
892     CFLAGS C compiler flags
893     LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
894     nonstandard directory <lib dir>
895     CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
896     headers in a nonstandard directory <include dir>
897     CXX C++ compiler command
898     CXXFLAGS C++ compiler flags
899 gezelter 2473 CPP C preprocessor
900 gezelter 1490 F90 Fortran 90 compiler command
901     F90FLAGS Fortran 90 compiler flags
902 gezelter 2190 CXXCPP C++ preprocessor
903 gezelter 1490
904     Use these variables to override the choices made by `configure' or to help
905     it to find libraries and programs with nonstandard names/locations.
906    
907     Report bugs to <gezelter@nd.edu>.
908 gezelter 2081 _ACEOF
909 gezelter 1490 fi
910    
911     if test "$ac_init_help" = "recursive"; then
912     # If there are subdirs, report their specific --help.
913     ac_popdir=`pwd`
914 gezelter 2081 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
915     test -d $ac_dir || continue
916     ac_builddir=.
917 gezelter 1490
918 gezelter 2081 if test "$ac_dir" != .; then
919     ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
920     # A "../" for each directory in $ac_dir_suffix.
921     ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
922     else
923     ac_dir_suffix= ac_top_builddir=
924     fi
925 gezelter 1490
926 gezelter 2081 case $srcdir in
927     .) # No --srcdir option. We are building in place.
928     ac_srcdir=.
929     if test -z "$ac_top_builddir"; then
930     ac_top_srcdir=.
931     else
932     ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
933     fi ;;
934     [\\/]* | ?:[\\/]* ) # Absolute path.
935     ac_srcdir=$srcdir$ac_dir_suffix;
936     ac_top_srcdir=$srcdir ;;
937     *) # Relative path.
938     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
939     ac_top_srcdir=$ac_top_builddir$srcdir ;;
940     esac
941    
942     # Do not use `cd foo && pwd` to compute absolute paths, because
943     # the directories may not exist.
944     case `pwd` in
945     .) ac_abs_builddir="$ac_dir";;
946     *)
947     case "$ac_dir" in
948     .) ac_abs_builddir=`pwd`;;
949     [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
950     *) ac_abs_builddir=`pwd`/"$ac_dir";;
951     esac;;
952     esac
953     case $ac_abs_builddir in
954     .) ac_abs_top_builddir=${ac_top_builddir}.;;
955     *)
956     case ${ac_top_builddir}. in
957     .) ac_abs_top_builddir=$ac_abs_builddir;;
958     [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
959     *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
960     esac;;
961     esac
962     case $ac_abs_builddir in
963     .) ac_abs_srcdir=$ac_srcdir;;
964     *)
965     case $ac_srcdir in
966     .) ac_abs_srcdir=$ac_abs_builddir;;
967     [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
968     *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
969     esac;;
970     esac
971     case $ac_abs_builddir in
972     .) ac_abs_top_srcdir=$ac_top_srcdir;;
973     *)
974     case $ac_top_srcdir in
975     .) ac_abs_top_srcdir=$ac_abs_builddir;;
976     [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
977     *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
978     esac;;
979     esac
980    
981     cd $ac_dir
982 gezelter 1490 # Check for guested configure; otherwise get Cygnus style configure.
983 gezelter 2081 if test -f $ac_srcdir/configure.gnu; then
984 gezelter 1490 echo
985 gezelter 2081 $SHELL $ac_srcdir/configure.gnu --help=recursive
986     elif test -f $ac_srcdir/configure; then
987 gezelter 1490 echo
988 gezelter 2081 $SHELL $ac_srcdir/configure --help=recursive
989     elif test -f $ac_srcdir/configure.ac ||
990     test -f $ac_srcdir/configure.in; then
991 gezelter 1490 echo
992     $ac_configure --help
993     else
994 gezelter 2081 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
995 gezelter 1490 fi
996 gezelter 2473 cd $ac_popdir
997 gezelter 1490 done
998     fi
999    
1000     test -n "$ac_init_help" && exit 0
1001     if $ac_init_version; then
1002 gezelter 2081 cat <<\_ACEOF
1003 gezelter 1499 OOPSE configure 2.0
1004 gezelter 2081 generated by GNU Autoconf 2.59
1005 gezelter 1490
1006 gezelter 2081 Copyright (C) 2003 Free Software Foundation, Inc.
1007 gezelter 1490 This configure script is free software; the Free Software Foundation
1008     gives unlimited permission to copy, distribute and modify it.
1009 gezelter 2081 _ACEOF
1010 gezelter 1490 exit 0
1011     fi
1012     exec 5>config.log
1013 gezelter 2081 cat >&5 <<_ACEOF
1014 gezelter 1490 This file contains any messages produced by compilers while
1015     running configure, to aid debugging if configure makes a mistake.
1016    
1017 gezelter 1499 It was created by OOPSE $as_me 2.0, which was
1018 gezelter 2081 generated by GNU Autoconf 2.59. Invocation command line was
1019 gezelter 1490
1020     $ $0 $@
1021    
1022 gezelter 2081 _ACEOF
1023 gezelter 1490 {
1024     cat <<_ASUNAME
1025 gezelter 2081 ## --------- ##
1026     ## Platform. ##
1027     ## --------- ##
1028 gezelter 1490
1029     hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1030     uname -m = `(uname -m) 2>/dev/null || echo unknown`
1031     uname -r = `(uname -r) 2>/dev/null || echo unknown`
1032     uname -s = `(uname -s) 2>/dev/null || echo unknown`
1033     uname -v = `(uname -v) 2>/dev/null || echo unknown`
1034    
1035     /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1036     /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1037    
1038     /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1039     /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1040     /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1041     hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1042     /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1043     /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1044     /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1045    
1046 gezelter 2081 _ASUNAME
1047 gezelter 2029
1048 gezelter 2081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1049     for as_dir in $PATH
1050     do
1051     IFS=$as_save_IFS
1052     test -z "$as_dir" && as_dir=.
1053     echo "PATH: $as_dir"
1054     done
1055    
1056 gezelter 1490 } >&5
1057    
1058 gezelter 2081 cat >&5 <<_ACEOF
1059 gezelter 1490
1060    
1061 gezelter 2081 ## ----------- ##
1062     ## Core tests. ##
1063     ## ----------- ##
1064    
1065     _ACEOF
1066    
1067    
1068 gezelter 1490 # Keep a trace of the command line.
1069     # Strip out --no-create and --no-recursion so they do not pile up.
1070 gezelter 2081 # Strip out --silent because we don't want to record it for future runs.
1071 gezelter 1490 # Also quote any args containing shell meta-characters.
1072 gezelter 2081 # Make two passes to allow for proper duplicate-argument suppression.
1073 gezelter 1490 ac_configure_args=
1074 gezelter 2081 ac_configure_args0=
1075     ac_configure_args1=
1076 gezelter 1490 ac_sep=
1077 gezelter 2081 ac_must_keep_next=false
1078     for ac_pass in 1 2
1079 gezelter 1490 do
1080 gezelter 2081 for ac_arg
1081     do
1082     case $ac_arg in
1083     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1084     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1085     | -silent | --silent | --silen | --sile | --sil)
1086     continue ;;
1087     *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1088     ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1089     esac
1090     case $ac_pass in
1091     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1092     2)
1093     ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1094     if test $ac_must_keep_next = true; then
1095     ac_must_keep_next=false # Got value, back to normal.
1096     else
1097     case $ac_arg in
1098     *=* | --config-cache | -C | -disable-* | --disable-* \
1099     | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1100     | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1101     | -with-* | --with-* | -without-* | --without-* | --x)
1102     case "$ac_configure_args0 " in
1103     "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1104     esac
1105     ;;
1106     -* ) ac_must_keep_next=true ;;
1107     esac
1108     fi
1109     ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1110     # Get rid of the leading space.
1111     ac_sep=" "
1112     ;;
1113     esac
1114     done
1115 gezelter 1490 done
1116 gezelter 2081 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1117     $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1118 gezelter 1490
1119     # When interrupted or exit'd, cleanup temporary files, and complete
1120     # config.log. We remove comments because anyway the quotes in there
1121     # would cause problems or look ugly.
1122 gezelter 2081 # WARNING: Be sure not to use single quotes in there, as some shells,
1123     # such as our DU 5.0 friend, will then `close' the trap.
1124 gezelter 1490 trap 'exit_status=$?
1125     # Save into config.log some information that might help in debugging.
1126 gezelter 2081 {
1127     echo
1128    
1129     cat <<\_ASBOX
1130     ## ---------------- ##
1131     ## Cache variables. ##
1132     ## ---------------- ##
1133     _ASBOX
1134     echo
1135     # The following way of writing the cache mishandles newlines in values,
1136 gezelter 1490 {
1137     (set) 2>&1 |
1138     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1139     *ac_space=\ *)
1140     sed -n \
1141 gezelter 2081 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1142     s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1143 gezelter 1490 ;;
1144     *)
1145     sed -n \
1146 gezelter 2081 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1147 gezelter 1490 ;;
1148     esac;
1149 gezelter 2081 }
1150     echo
1151    
1152     cat <<\_ASBOX
1153     ## ----------------- ##
1154     ## Output variables. ##
1155     ## ----------------- ##
1156     _ASBOX
1157     echo
1158     for ac_var in $ac_subst_vars
1159     do
1160     eval ac_val=$`echo $ac_var`
1161     echo "$ac_var='"'"'$ac_val'"'"'"
1162     done | sort
1163     echo
1164    
1165     if test -n "$ac_subst_files"; then
1166     cat <<\_ASBOX
1167     ## ------------- ##
1168     ## Output files. ##
1169     ## ------------- ##
1170     _ASBOX
1171     echo
1172     for ac_var in $ac_subst_files
1173     do
1174     eval ac_val=$`echo $ac_var`
1175     echo "$ac_var='"'"'$ac_val'"'"'"
1176     done | sort
1177     echo
1178     fi
1179    
1180     if test -s confdefs.h; then
1181     cat <<\_ASBOX
1182     ## ----------- ##
1183     ## confdefs.h. ##
1184     ## ----------- ##
1185     _ASBOX
1186     echo
1187     sed "/^$/d" confdefs.h | sort
1188     echo
1189     fi
1190     test "$ac_signal" != 0 &&
1191     echo "$as_me: caught signal $ac_signal"
1192     echo "$as_me: exit $exit_status"
1193     } >&5
1194     rm -f core *.core &&
1195     rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1196 gezelter 1490 exit $exit_status
1197     ' 0
1198     for ac_signal in 1 2 13 15; do
1199 gezelter 2081 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1200 gezelter 1490 done
1201     ac_signal=0
1202    
1203     # confdefs.h avoids OS command line length limits that DEFS can exceed.
1204     rm -rf conftest* confdefs.h
1205     # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1206     echo >confdefs.h
1207    
1208 gezelter 2081 # Predefined preprocessor variables.
1209    
1210     cat >>confdefs.h <<_ACEOF
1211     #define PACKAGE_NAME "$PACKAGE_NAME"
1212     _ACEOF
1213    
1214    
1215     cat >>confdefs.h <<_ACEOF
1216     #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1217     _ACEOF
1218    
1219    
1220     cat >>confdefs.h <<_ACEOF
1221     #define PACKAGE_VERSION "$PACKAGE_VERSION"
1222     _ACEOF
1223    
1224    
1225     cat >>confdefs.h <<_ACEOF
1226     #define PACKAGE_STRING "$PACKAGE_STRING"
1227     _ACEOF
1228    
1229    
1230     cat >>confdefs.h <<_ACEOF
1231     #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1232     _ACEOF
1233    
1234    
1235 gezelter 1490 # Let the site file select an alternate cache file if it wants to.
1236     # Prefer explicitly selected file to automatically selected ones.
1237     if test -z "$CONFIG_SITE"; then
1238     if test "x$prefix" != xNONE; then
1239     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1240     else
1241     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1242     fi
1243     fi
1244     for ac_site_file in $CONFIG_SITE; do
1245     if test -r "$ac_site_file"; then
1246 gezelter 2081 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1247 gezelter 1490 echo "$as_me: loading site script $ac_site_file" >&6;}
1248 gezelter 2081 sed 's/^/| /' "$ac_site_file" >&5
1249 gezelter 1490 . "$ac_site_file"
1250     fi
1251     done
1252    
1253     if test -r "$cache_file"; then
1254     # Some versions of bash will fail to source /dev/null (special
1255     # files actually), so we avoid doing that.
1256     if test -f "$cache_file"; then
1257 gezelter 2081 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1258 gezelter 1490 echo "$as_me: loading cache $cache_file" >&6;}
1259     case $cache_file in
1260     [\\/]* | ?:[\\/]* ) . $cache_file;;
1261     *) . ./$cache_file;;
1262     esac
1263     fi
1264     else
1265 gezelter 2081 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1266 gezelter 1490 echo "$as_me: creating cache $cache_file" >&6;}
1267     >$cache_file
1268     fi
1269    
1270     # Check that the precious variables saved in the cache have kept the same
1271     # value.
1272 gezelter 2081 ac_cache_corrupted=false
1273 gezelter 1490 for ac_var in `(set) 2>&1 |
1274 gezelter 2081 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1275 gezelter 1490 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1276     eval ac_new_set=\$ac_env_${ac_var}_set
1277     eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1278     eval ac_new_val="\$ac_env_${ac_var}_value"
1279     case $ac_old_set,$ac_new_set in
1280     set,)
1281 gezelter 2081 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1282     echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1283     ac_cache_corrupted=: ;;
1284 gezelter 1490 ,set)
1285 gezelter 2081 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1286     echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1287     ac_cache_corrupted=: ;;
1288 gezelter 1490 ,);;
1289     *)
1290     if test "x$ac_old_val" != "x$ac_new_val"; then
1291 gezelter 2081 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1292     echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1293     { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1294     echo "$as_me: former value: $ac_old_val" >&2;}
1295     { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1296     echo "$as_me: current value: $ac_new_val" >&2;}
1297     ac_cache_corrupted=:
1298 gezelter 1490 fi;;
1299     esac
1300 gezelter 2081 # Pass precious variables to config.status.
1301     if test "$ac_new_set" = set; then
1302     case $ac_new_val in
1303     *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1304     ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1305     *) ac_arg=$ac_var=$ac_new_val ;;
1306     esac
1307     case " $ac_configure_args " in
1308     *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1309     *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1310     esac
1311     fi
1312 gezelter 1490 done
1313 gezelter 2081 if $ac_cache_corrupted; then
1314     { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1315     echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1316     { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1317     echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1318     { (exit 1); exit 1; }; }
1319 gezelter 1490 fi
1320    
1321     ac_ext=c
1322     ac_cpp='$CPP $CPPFLAGS'
1323     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1324     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1325     ac_compiler_gnu=$ac_cv_c_compiler_gnu
1326    
1327    
1328 gezelter 2081
1329    
1330    
1331    
1332    
1333    
1334    
1335    
1336    
1337    
1338    
1339    
1340    
1341    
1342    
1343    
1344    
1345    
1346    
1347    
1348    
1349    
1350    
1351    
1352    
1353 gezelter 1490 ac_aux_dir=
1354     for ac_dir in ac-tools $srcdir/ac-tools; do
1355     if test -f $ac_dir/install-sh; then
1356     ac_aux_dir=$ac_dir
1357     ac_install_sh="$ac_aux_dir/install-sh -c"
1358     break
1359     elif test -f $ac_dir/install.sh; then
1360     ac_aux_dir=$ac_dir
1361     ac_install_sh="$ac_aux_dir/install.sh -c"
1362     break
1363     elif test -f $ac_dir/shtool; then
1364     ac_aux_dir=$ac_dir
1365     ac_install_sh="$ac_aux_dir/shtool install -c"
1366     break
1367     fi
1368     done
1369     if test -z "$ac_aux_dir"; then
1370 gezelter 2081 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ac-tools $srcdir/ac-tools" >&5
1371 gezelter 1490 echo "$as_me: error: cannot find install-sh or install.sh in ac-tools $srcdir/ac-tools" >&2;}
1372     { (exit 1); exit 1; }; }
1373     fi
1374     ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1375     ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1376     ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1377    
1378 gezelter 2081
1379 gezelter 1490 # This file is part of Autoconf. -*- Autoconf -*-
1380     # Programming languages support.
1381     # Copyright 2000, 2001
1382     # Free Software Foundation, Inc.
1383     #
1384     # This program is free software; you can redistribute it and/or modify
1385     # it under the terms of the GNU General Public License as published by
1386     # the Free Software Foundation; either version 2, or (at your option)
1387     # any later version.
1388     #
1389     # This program is distributed in the hope that it will be useful,
1390     # but WITHOUT ANY WARRANTY; without even the implied warranty of
1391     # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1392     # GNU General Public License for more details.
1393     #
1394     # You should have received a copy of the GNU General Public License
1395     # along with this program; if not, write to the Free Software
1396     # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
1397     # 02111-1307, USA.
1398     #
1399     # As a special exception, the Free Software Foundation gives unlimited
1400     # permission to copy, distribute and modify the configure scripts that
1401     # are the output of Autoconf. You need not follow the terms of the GNU
1402     # General Public License when using or distributing such scripts, even
1403     # though portions of the text of Autoconf appear in them. The GNU
1404     # General Public License (GPL) does govern all other use of the material
1405     # that constitutes the Autoconf program.
1406     #
1407     # Certain portions of the Autoconf source text are designed to be copied
1408     # (in certain cases, depending on the input) into the output of
1409     # Autoconf. We call these the "data" portions. The rest of the Autoconf
1410     # source text consists of comments plus executable code that decides which
1411     # of the data portions to output in any given case. We call these
1412     # comments and executable code the "non-data" portions. Autoconf never
1413     # copies any of the non-data portions into its output.
1414     #
1415     # This special exception to the GPL applies to versions of Autoconf
1416     # released by the Free Software Foundation. When you make and
1417     # distribute a modified version of Autoconf, you may extend this special
1418     # exception to the GPL to apply to your modified version as well, *unless*
1419     # your modified version has the potential to copy into its output some
1420     # of the text that was the non-data portion of the version that you started
1421     # with. (In other words, unless your change moves or copies text from
1422     # the non-data portions to the data portions.) If your modification has
1423     # such potential, you must delete any notice of this special exception
1424     # to the GPL from your modified version.
1425     #
1426     # Written by Akim Demaille, Christian Marquardt, Martin Wilks (and probably
1427     # many others).
1428    
1429 gezelter 2081
1430 gezelter 1490 # Table of Contents:
1431     #
1432     # 1. Language selection
1433     # and routines to produce programs in a given language.
1434     # a. Fortran 77 (to be moved from aclang.m4)
1435     # b. Fortran 90
1436     # c. Fortran 95
1437     #
1438     # 2. Producing programs in a given language.
1439     # a. Fortran 77 (to be moved from aclang.m4)
1440     # b. Fortran 90
1441     # c. Fortran 95
1442     #
1443     # 3. Looking for a compiler
1444     # And possibly the associated preprocessor.
1445     # a. Fortran 77 (to be moved from aclang.m4)
1446     # b. Fortran 90
1447     # c. Fortran 95
1448     #
1449     # 4. Compilers' characteristics.
1450     # a. Fortran 77 (to be moved from aclang.m4)
1451     # b. Fortran 90
1452     # c. Fortran 95
1453    
1454     # _AC_LIST_MEMBER_IF(ELEMENT, LIST, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
1455     # ---------------------------------------------------------------------------
1456     #
1457     # Processing the elements of a list is tedious in shell programming,
1458     # as lists tend to be implemented as space delimited strings.
1459     #
1460     # This macro searches LIST for ELEMENT, and executes ACTION-IF-FOUND
1461     # if ELEMENT is a member of LIST, otherwise it executes
1462     # ACTION-IF-NOT-FOUND.
1463     # _AC_LIST_MEMBER_IF
1464    
1465 gezelter 2081
1466    
1467 gezelter 1490 # _AC_LINKER_OPTION(LINKER-OPTIONS, SHELL-VARIABLE)
1468     # -------------------------------------------------
1469     #
1470     # Specifying options to the compiler (whether it be the C, C++ or
1471     # Fortran 77 compiler) that are meant for the linker is compiler
1472     # dependent. This macro lets you give options to the compiler that
1473     # are meant for the linker in a portable, compiler-independent way.
1474     #
1475     # This macro take two arguments, a list of linker options that the
1476     # compiler should pass to the linker (LINKER-OPTIONS) and the name of
1477     # a shell variable (SHELL-VARIABLE). The list of linker options are
1478     # appended to the shell variable in a compiler-dependent way.
1479     #
1480     # For example, if the selected language is C, then this:
1481     #
1482     # _AC_LINKER_OPTION([-R /usr/local/lib/foo], foo_LDFLAGS)
1483     #
1484     # will expand into this if the selected C compiler is gcc:
1485     #
1486     # foo_LDFLAGS="-Xlinker -R -Xlinker /usr/local/lib/foo"
1487     #
1488     # otherwise, it will expand into this:
1489     #
1490     # foo_LDFLAGS"-R /usr/local/lib/foo"
1491     #
1492     # You are encouraged to add support for compilers that this macro
1493     # doesn't currently support.
1494     # FIXME: Get rid of this macro.
1495     # _AC_LINKER_OPTION
1496    
1497 gezelter 2081
1498    
1499 gezelter 1490 ## ----------------------- ##
1500     ## 1. Language selection. ##
1501     ## ----------------------- ##
1502    
1503     # ----------------------------- #
1504     # 1b. The Fortran 90 language. #
1505     # ----------------------------- #
1506    
1507     # AC_LANG(Fortran 90)
1508     # -------------------
1509    
1510 gezelter 2081
1511    
1512 gezelter 1490 # _AC_LANG_ABBREV(Fortran 90)
1513     # ---------------------------
1514    
1515 gezelter 2081
1516    
1517 gezelter 1490 # ----------------------------- #
1518     # 1c. The Fortran 95 language. #
1519     # ----------------------------- #
1520    
1521     # AC_LANG(Fortran 95)
1522     # -------------------
1523    
1524 gezelter 2081
1525    
1526 gezelter 1490 # _AC_LANG_ABBREV(Fortran 95)
1527     # ---------------------------
1528    
1529 gezelter 2081
1530    
1531 gezelter 1490 ## ---------------------- ##
1532     ## 2.Producing programs. ##
1533     ## ---------------------- ##
1534    
1535     # ------------------------ #
1536     # 2b. Fortran 90 sources. #
1537     # ------------------------ #
1538    
1539     # AC_LANG_SOURCE(Fortran 90)(BODY)
1540     # --------------------------------
1541    
1542 gezelter 2081
1543    
1544 gezelter 1490 # AC_LANG_PROGRAM(Fortran 90)([PROLOGUE], [BODY])
1545     # -----------------------------------------------
1546    
1547 gezelter 2081
1548 gezelter 1490 # AC_LANG_CALL(Fortran 90)(PROLOGUE, FUNCTION)
1549     # --------------------------------------------
1550    
1551 gezelter 2081
1552    
1553 gezelter 1490 # ------------------------ #
1554     # 2c. Fortran 95 sources. #
1555     # ------------------------ #
1556    
1557     # AC_LANG_SOURCE(Fortran 95)(BODY)
1558     # --------------------------------
1559    
1560 gezelter 2081
1561 gezelter 1490 # AC_LANG_PROGRAM(Fortran 95)([PROLOGUE], [BODY])
1562     # -----------------------------------------------
1563    
1564 gezelter 2081
1565 gezelter 1490 # AC_LANG_CALL(Fortran 95)(PROLOGUE, FUNCTION)
1566     # --------------------------------------------
1567    
1568 gezelter 2081
1569    
1570 gezelter 1490 ## -------------------------------------------- ##
1571     ## 3. Looking for Compilers and Preprocessors. ##
1572     ## -------------------------------------------- ##
1573    
1574     # ----------------------------- #
1575     # 3b. The Fortran 90 compiler. #
1576     # ----------------------------- #
1577    
1578 gezelter 2081
1579 gezelter 1490 # AC_LANG_PREPROC(Fortran 90)
1580     # ---------------------------
1581     # Find the Fortran 90 preprocessor. Must be AC_DEFUN'd to be AC_REQUIRE'able.
1582    
1583 gezelter 2081
1584    
1585 gezelter 1490 # AC_LANG_COMPILER(Fortran 90)
1586     # ----------------------------
1587     # Find the Fortran 90 compiler. Must be AC_DEFUN'd to be
1588     # AC_REQUIRE'able.
1589    
1590 gezelter 2081
1591    
1592 gezelter 1490 # AC_PROG_F90([COMPILERS...])
1593     # ---------------------------
1594     # COMPILERS is a space separated list of Fortran 90 compilers to search
1595     # for.
1596     #
1597     # Compilers are ordered by
1598     # 1. F90, F95
1599     # 2. Good/tested native compilers, bad/untested native compilers
1600     #
1601     # pgf90 is the Portland Group F90 compilers.
1602     # xlf90/xlf95 are IBM (AIX) F90/F95 compilers.
1603     # lf95 is the Lahey-Fujitsu compiler.
1604     # epcf90 is the "Edinburgh Portable Compiler" F90.
1605     # fort is the Compaq Fortran 90 (now 95) compiler for Tru64 and Linux/Alpha.
1606     # AC_PROG_F90
1607    
1608 gezelter 2081
1609 gezelter 1490 # ----------------------------- #
1610     # 3c. The Fortran 95 compiler. #
1611     # ----------------------------- #
1612    
1613 gezelter 2081
1614 gezelter 1490 # AC_LANG_PREPROC(Fortran 95)
1615     # ---------------------------
1616     # Find the Fortran 95 preprocessor. Must be AC_DEFUN'd to be AC_REQUIRE'able.
1617    
1618 gezelter 2081
1619    
1620 gezelter 1490 # AC_LANG_COMPILER(Fortran 95)
1621     # ----------------------------
1622     # Find the Fortran 95 compiler. Must be AC_DEFUN'd to be
1623     # AC_REQUIRE'able.
1624    
1625 gezelter 2081
1626    
1627 gezelter 1490 # AC_PROG_F95([COMPILERS...])
1628     # ---------------------------
1629     # COMPILERS is a space separated list of Fortran 95 compilers to search
1630     # for.
1631     #
1632     # Compilers are ordered by
1633     # 1. Good/tested native compilers, bad/untested native compilers
1634     #
1635     # xlf95 is the IBM (AIX) F95 compiler.
1636     # lf95 is the Lahey-Fujitsu compiler.
1637     # fort is the Compaq Fortran 90 (now 95) compiler for Tru64 and Linux/Alpha.
1638     # AC_PROG_F95
1639    
1640 gezelter 2081
1641 gezelter 1490 ## ------------------------------- ##
1642     ## 4. Compilers' characteristics. ##
1643     ## ------------------------------- ##
1644    
1645 gezelter 2081
1646 gezelter 1490 # ---------------------------------------- #
1647     # 4b. Fortan 90 compiler characteristics. #
1648     # ---------------------------------------- #
1649    
1650 gezelter 2081
1651 gezelter 1490 # _AC_PROG_F90_V_OUTPUT([FLAG = $ac_cv_prog_f90_v])
1652     # -------------------------------------------------
1653     # Link a trivial Fortran program, compiling with a verbose output FLAG
1654     # (which default value, $ac_cv_prog_f90_v, is computed by
1655     # _AC_PROG_F90_V), and return the output in $ac_f90_v_output. This
1656     # output is processed in the way expected by AC_F90_LIBRARY_LDFLAGS,
1657     # so that any link flags that are echoed by the compiler appear as
1658     # space-separated items.
1659     # _AC_PROG_F90_V_OUTPUT
1660    
1661 gezelter 2081
1662 gezelter 1490 # _AC_PROG_F90_V
1663     # --------------
1664     #
1665     # Determine the flag that causes the Fortran 90 compiler to print
1666     # information of library and object files (normally -v)
1667     # Needed for AC_F90_LIBRARY_FLAGS
1668     # Some compilers don't accept -v (Lahey: -verbose, xlf: -V, Fujitsu: -###)
1669     # _AC_PROG_F90_V
1670    
1671 gezelter 2081
1672 gezelter 1490 # AC_F90_LIBRARY_LDFLAGS
1673     # ----------------------
1674     #
1675     # Determine the linker flags (e.g. "-L" and "-l") for the Fortran 90
1676     # intrinsic and run-time libraries that are required to successfully
1677     # link a Fortran 90 program or shared library. The output variable
1678     # F90LIBS is set to these flags.
1679     #
1680     # This macro is intended to be used in those situations when it is
1681     # necessary to mix, e.g. C++ and Fortran 90, source code into a single
1682     # program or shared library.
1683     #
1684     # For example, if object files from a C++ and Fortran 90 compiler must
1685     # be linked together, then the C++ compiler/linker must be used for
1686     # linking (since special C++-ish things need to happen at link time
1687     # like calling global constructors, instantiating templates, enabling
1688     # exception support, etc.).
1689     #
1690     # However, the Fortran 90 intrinsic and run-time libraries must be
1691     # linked in as well, but the C++ compiler/linker doesn't know how to
1692     # add these Fortran 90 libraries. Hence, the macro
1693     # "AC_F90_LIBRARY_LDFLAGS" was created to determine these Fortran 90
1694     # libraries.
1695     #
1696     # This macro was copied from the Fortran 77 version by Matthew D. Langston.
1697     # AC_F90_LIBRARY_LDFLAGS
1698    
1699 gezelter 2081
1700 gezelter 1490 # _AC_F90_NAME_MANGLING
1701     # ---------------------
1702     # Test for the name mangling scheme used by the Fortran 90 compiler.
1703     #
1704     # Sets ac_cv_f90_mangling. The value contains three fields, separated
1705     # by commas:
1706     #
1707     # lower case / upper case:
1708     # case translation of the Fortan 90 symbols
1709     # underscore / no underscore:
1710     # whether the compiler appends "_" to symbol names
1711     # extra underscore / no extra underscore:
1712     # whether the compiler appends an extra "_" to symbol names already
1713     # containing at least one underscore
1714     #
1715     # _AC_F90_NAME_MANGLING
1716    
1717     # The replacement is empty.
1718    
1719 gezelter 2081
1720    
1721 gezelter 1490 # AC_F90_WRAPPERS
1722     # ---------------
1723     # Defines C macros F90_FUNC(name,NAME) and F90_FUNC_(name,NAME) to
1724     # properly mangle the names of C identifiers, and C identifiers with
1725     # underscores, respectively, so that they match the name mangling
1726     # scheme used by the Fortran 90 compiler.
1727     # AC_F90_WRAPPERS
1728    
1729 gezelter 2081
1730 gezelter 1490 # AC_F90_FUNC(NAME, [SHELLVAR = NAME])
1731     # ------------------------------------
1732     # For a Fortran subroutine of given NAME, define a shell variable
1733     # $SHELLVAR to the Fortran 90 mangled name. If the SHELLVAR
1734     # argument is not supplied, it defaults to NAME.
1735     # AC_F90_FUNC
1736    
1737 gezelter 2081
1738 gezelter 1490 # ---------------------------------------- #
1739     # 4c. Fortan 95 compiler characteristics. #
1740     # ---------------------------------------- #
1741    
1742 gezelter 2081
1743 gezelter 1490 # _AC_PROG_F95_V_OUTPUT([FLAG = $ac_cv_prog_f95_v])
1744     # -------------------------------------------------
1745     # Link a trivial Fortran program, compiling with a verbose output FLAG
1746     # (which default value, $ac_cv_prog_f95_v, is computed by
1747     # _AC_PROG_F95_V), and return the output in $ac_f95_v_output. This
1748     # output is processed in the way expected by AC_F95_LIBRARY_LDFLAGS,
1749     # so that any link flags that are echoed by the compiler appear as
1750     # space-separated items.
1751     # _AC_PROG_F95_V_OUTPUT
1752    
1753 gezelter 2081
1754 gezelter 1490 # _AC_PROG_F95_V
1755     # --------------
1756     #
1757     # Determine the flag that causes the Fortran 95 compiler to print
1758     # information of library and object files (normally -v)
1759     # Needed for AC_F95_LIBRARY_FLAGS
1760     # Some compilers don't accept -v (Lahey: -verbose, xlf: -V, Fujitsu: -###)
1761     # _AC_PROG_F95_V
1762    
1763 gezelter 2081
1764 gezelter 1490 # AC_F95_LIBRARY_LDFLAGS
1765     # ----------------------
1766     #
1767     # Determine the linker flags (e.g. "-L" and "-l") for the Fortran 95
1768     # intrinsic and run-time libraries that are required to successfully
1769     # link a Fortran 95 program or shared library. The output variable
1770     # F95LIBS is set to these flags.
1771     #
1772     # This macro is intended to be used in those situations when it is
1773     # necessary to mix, e.g. C++ and Fortran 95, source code into a single
1774     # program or shared library.
1775     #
1776     # For example, if object files from a C++ and Fortran 95 compiler must
1777     # be linked together, then the C++ compiler/linker must be used for
1778     # linking (since special C++-ish things need to happen at link time
1779     # like calling global constructors, instantiating templates, enabling
1780     # exception support, etc.).
1781     #
1782     # However, the Fortran 95 intrinsic and run-time libraries must be
1783     # linked in as well, but the C++ compiler/linker doesn't know how to
1784     # add these Fortran 95 libraries. Hence, the macro
1785     # "AC_F95_LIBRARY_LDFLAGS" was created to determine these Fortran 95
1786     # libraries.
1787     #
1788     # This macro was copied from the Fortran 77 version by Matthew D. Langston.
1789     # AC_F95_LIBRARY_LDFLAGS
1790    
1791 gezelter 2081
1792 gezelter 1490 # _AC_F95_NAME_MANGLING
1793     # ---------------------
1794     # Test for the name mangling scheme used by the Fortran 95 compiler.
1795     #
1796     # Sets ac_cv_f95_mangling. The value contains three fields, separated
1797     # by commas:
1798     #
1799     # lower case / upper case:
1800     # case translation of the Fortan 95 symbols
1801     # underscore / no underscore:
1802     # whether the compiler appends "_" to symbol names
1803     # extra underscore / no extra underscore:
1804     # whether the compiler appends an extra "_" to symbol names already
1805     # containing at least one underscore
1806     #
1807     # _AC_F95_NAME_MANGLING
1808    
1809     # The replacement is empty.
1810    
1811 gezelter 2081
1812    
1813 gezelter 1490 # AC_F95_WRAPPERS
1814     # ---------------
1815     # Defines C macros F95_FUNC(name,NAME) and F95_FUNC_(name,NAME) to
1816     # properly mangle the names of C identifiers, and C identifiers with
1817     # underscores, respectively, so that they match the name mangling
1818     # scheme used by the Fortran 95 compiler.
1819     # AC_F95_WRAPPERS
1820    
1821 gezelter 2081
1822 gezelter 1490 # AC_F95_FUNC(NAME, [SHELLVAR = NAME])
1823     # ------------------------------------
1824     # For a Fortran subroutine of given NAME, define a shell variable
1825     # $SHELLVAR to the Fortran 95 mangled name. If the SHELLVAR
1826     # argument is not supplied, it defaults to NAME.
1827     # AC_F95_FUNC
1828    
1829 gezelter 1535 # AC_F90_MODULE_NAMES
1830     # -------------------
1831     #
1832     # Figure out how the Fortran 90 compiler constructs module file names
1833     #
1834     # AC_F90_MODULE_NAMES
1835 gezelter 1490
1836 gezelter 2081
1837    
1838    
1839    
1840    
1841    
1842    
1843    
1844    
1845    
1846    
1847    
1848    
1849    
1850    
1851    
1852    
1853    
1854    
1855    
1856    
1857    
1858    
1859    
1860    
1861    
1862    
1863    
1864    
1865    
1866    
1867    
1868    
1869    
1870    
1871    
1872    
1873    
1874    
1875    
1876    
1877    
1878    
1879    
1880    
1881    
1882    
1883    
1884    
1885    
1886    
1887    
1888 gezelter 2199 #
1889     #
1890     #
1891 gezelter 2081
1892    
1893    
1894    
1895    
1896    
1897 gezelter 2315
1898    
1899 gezelter 1490 # set program name
1900     PROGNAME="oopse"
1901    
1902 gezelter 2081
1903 gezelter 1490 # there are two ways to do debugging. One with the --enable-debug flag
1904     # and one using the DEBUG environment variable
1905    
1906     debug=0
1907     # Check whether --enable-debug or --disable-debug was given.
1908     if test "${enable_debug+set}" = set; then
1909     enableval="$enable_debug"
1910     debug=1
1911     fi;
1912     if test "${DEBUG}"; then
1913    
1914 gezelter 2081 cat >>confdefs.h <<\_ACEOF
1915 gezelter 1490 #define debug 1
1916 gezelter 2081 _ACEOF
1917 gezelter 1490
1918     msg="$msg, debug mode"
1919     fi
1920    
1921 gezelter 2081
1922 gezelter 1490 # who am i
1923     # Make sure we can run config.sub.
1924     $ac_config_sub sun4 >/dev/null 2>&1 ||
1925 gezelter 2081 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1926 gezelter 1490 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1927     { (exit 1); exit 1; }; }
1928    
1929 gezelter 2081 echo "$as_me:$LINENO: checking build system type" >&5
1930 gezelter 1490 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1931     if test "${ac_cv_build+set}" = set; then
1932     echo $ECHO_N "(cached) $ECHO_C" >&6
1933     else
1934     ac_cv_build_alias=$build_alias
1935     test -z "$ac_cv_build_alias" &&
1936     ac_cv_build_alias=`$ac_config_guess`
1937     test -z "$ac_cv_build_alias" &&
1938 gezelter 2081 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1939 gezelter 1490 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1940     { (exit 1); exit 1; }; }
1941     ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1942 gezelter 2081 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1943     echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1944 gezelter 1490 { (exit 1); exit 1; }; }
1945    
1946     fi
1947 gezelter 2081 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1948 gezelter 1490 echo "${ECHO_T}$ac_cv_build" >&6
1949     build=$ac_cv_build
1950     build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1951     build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1952     build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1953    
1954 gezelter 2081
1955     echo "$as_me:$LINENO: checking host system type" >&5
1956 gezelter 1490 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1957     if test "${ac_cv_host+set}" = set; then
1958     echo $ECHO_N "(cached) $ECHO_C" >&6
1959     else
1960     ac_cv_host_alias=$host_alias
1961     test -z "$ac_cv_host_alias" &&
1962     ac_cv_host_alias=$ac_cv_build_alias
1963     ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1964 gezelter 2081 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1965 gezelter 1490 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1966     { (exit 1); exit 1; }; }
1967    
1968     fi
1969 gezelter 2081 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1970 gezelter 1490 echo "${ECHO_T}$ac_cv_host" >&6
1971     host=$ac_cv_host
1972     host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1973     host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1974     host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1975    
1976 gezelter 2081
1977    
1978    
1979    
1980 gezelter 1490 ac_ext=c
1981     ac_cpp='$CPP $CPPFLAGS'
1982     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1983     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1984     ac_compiler_gnu=$ac_cv_c_compiler_gnu
1985     if test -n "$ac_tool_prefix"; then
1986 gezelter 2502 for ac_prog in pathcc icc xlc gcc cc
1987 gezelter 1490 do
1988     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1989     set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1990 gezelter 2081 echo "$as_me:$LINENO: checking for $ac_word" >&5
1991 gezelter 1490 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1992     if test "${ac_cv_prog_CC+set}" = set; then
1993     echo $ECHO_N "(cached) $ECHO_C" >&6
1994     else
1995     if test -n "$CC"; then
1996     ac_cv_prog_CC="$CC" # Let the user override the test.
1997     else
1998 gezelter 2081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1999     for as_dir in $PATH
2000     do
2001     IFS=$as_save_IFS
2002     test -z "$as_dir" && as_dir=.
2003     for ac_exec_ext in '' $ac_executable_extensions; do
2004     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2005     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2006     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2007     break 2
2008     fi
2009 gezelter 1490 done
2010 gezelter 2081 done
2011 gezelter 1490
2012     fi
2013     fi
2014     CC=$ac_cv_prog_CC
2015     if test -n "$CC"; then
2016 gezelter 2081 echo "$as_me:$LINENO: result: $CC" >&5
2017 gezelter 1490 echo "${ECHO_T}$CC" >&6
2018     else
2019 gezelter 2081 echo "$as_me:$LINENO: result: no" >&5
2020 gezelter 1490 echo "${ECHO_T}no" >&6
2021     fi
2022    
2023     test -n "$CC" && break
2024     done
2025     fi
2026     if test -z "$CC"; then
2027     ac_ct_CC=$CC
2028 gezelter 2502 for ac_prog in pathcc icc xlc gcc cc
2029 gezelter 1490 do
2030     # Extract the first word of "$ac_prog", so it can be a program name with args.
2031     set dummy $ac_prog; ac_word=$2
2032 gezelter 2081 echo "$as_me:$LINENO: checking for $ac_word" >&5
2033 gezelter 1490 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2034     if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2035     echo $ECHO_N "(cached) $ECHO_C" >&6
2036     else
2037     if test -n "$ac_ct_CC"; then
2038     ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2039     else
2040 gezelter 2081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2041     for as_dir in $PATH
2042     do
2043     IFS=$as_save_IFS
2044     test -z "$as_dir" && as_dir=.
2045     for ac_exec_ext in '' $ac_executable_extensions; do
2046     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2047     ac_cv_prog_ac_ct_CC="$ac_prog"
2048     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2049     break 2
2050     fi
2051 gezelter 1490 done
2052 gezelter 2081 done
2053 gezelter 1490
2054     fi
2055     fi
2056     ac_ct_CC=$ac_cv_prog_ac_ct_CC
2057     if test -n "$ac_ct_CC"; then
2058 gezelter 2081 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2059 gezelter 1490 echo "${ECHO_T}$ac_ct_CC" >&6
2060     else
2061 gezelter 2081 echo "$as_me:$LINENO: result: no" >&5
2062 gezelter 1490 echo "${ECHO_T}no" >&6
2063     fi
2064    
2065     test -n "$ac_ct_CC" && break
2066     done
2067    
2068     CC=$ac_ct_CC
2069     fi
2070    
2071 gezelter 2081
2072     test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2073     See \`config.log' for more details." >&5
2074     echo "$as_me: error: no acceptable C compiler found in \$PATH
2075     See \`config.log' for more details." >&2;}
2076 gezelter 1490 { (exit 1); exit 1; }; }
2077    
2078 gezelter 2081 # Provide some information about the compiler.
2079     echo "$as_me:$LINENO:" \
2080     "checking for C compiler version" >&5
2081     ac_compiler=`set X $ac_compile; echo $2`
2082     { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2083     (eval $ac_compiler --version </dev/null >&5) 2>&5
2084     ac_status=$?
2085     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2086     (exit $ac_status); }
2087     { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2088     (eval $ac_compiler -v </dev/null >&5) 2>&5
2089     ac_status=$?
2090     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2091     (exit $ac_status); }
2092     { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2093     (eval $ac_compiler -V </dev/null >&5) 2>&5
2094     ac_status=$?
2095     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2096     (exit $ac_status); }
2097    
2098 gezelter 1490 cat >conftest.$ac_ext <<_ACEOF
2099 gezelter 2081 /* confdefs.h. */
2100     _ACEOF
2101     cat confdefs.h >>conftest.$ac_ext
2102     cat >>conftest.$ac_ext <<_ACEOF
2103     /* end confdefs.h. */
2104 gezelter 1490
2105     int
2106     main ()
2107     {
2108    
2109     ;
2110     return 0;
2111     }
2112     _ACEOF
2113     ac_clean_files_save=$ac_clean_files
2114 gezelter 2081 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2115 gezelter 1490 # Try to create an executable without -o first, disregard a.out.
2116 gezelter 2081 # It will help us diagnose broken compilers, and finding out an intuition
2117 gezelter 1490 # of exeext.
2118 gezelter 2081 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2119     echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2120 gezelter 1490 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2121 gezelter 2081 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2122 gezelter 1490 (eval $ac_link_default) 2>&5
2123     ac_status=$?
2124 gezelter 2081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2125 gezelter 1490 (exit $ac_status); }; then
2126 gezelter 2081 # Find the output, starting from the most likely. This scheme is
2127     # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2128     # resort.
2129    
2130     # Be careful to initialize this variable, since it used to be cached.
2131     # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2132     ac_cv_exeext=
2133     # b.out is created by i960 compilers.
2134     for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2135     do
2136     test -f "$ac_file" || continue
2137 gezelter 1490 case $ac_file in
2138 gezelter 2081 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2139     ;;
2140     conftest.$ac_ext )
2141     # This is the source file.
2142     ;;
2143     [ab].out )
2144     # We found the default executable, but exeext='' is most
2145     # certainly right.
2146     break;;
2147     *.* )
2148     ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2149     # FIXME: I believe we export ac_cv_exeext for Libtool,
2150     # but it would be cool to find out if it's true. Does anybody
2151     # maintain Libtool? --akim.
2152     export ac_cv_exeext
2153     break;;
2154     * )
2155     break;;
2156 gezelter 1490 esac
2157     done
2158     else
2159     echo "$as_me: failed program was:" >&5
2160 gezelter 2081 sed 's/^/| /' conftest.$ac_ext >&5
2161    
2162     { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2163     See \`config.log' for more details." >&5
2164     echo "$as_me: error: C compiler cannot create executables
2165     See \`config.log' for more details." >&2;}
2166 gezelter 1490 { (exit 77); exit 77; }; }
2167     fi
2168    
2169     ac_exeext=$ac_cv_exeext
2170 gezelter 2081 echo "$as_me:$LINENO: result: $ac_file" >&5
2171 gezelter 1490 echo "${ECHO_T}$ac_file" >&6
2172    
2173     # Check the compiler produces executables we can run. If not, either
2174     # the compiler is broken, or we cross compile.
2175 gezelter 2081 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2176 gezelter 1490 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2177     # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2178     # If not cross compiling, check that we can run a simple program.
2179     if test "$cross_compiling" != yes; then
2180     if { ac_try='./$ac_file'
2181 gezelter 2081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2182 gezelter 1490 (eval $ac_try) 2>&5
2183     ac_status=$?
2184 gezelter 2081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2185 gezelter 1490 (exit $ac_status); }; }; then
2186     cross_compiling=no
2187     else
2188     if test "$cross_compiling" = maybe; then
2189     cross_compiling=yes
2190     else
2191 gezelter 2081 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2192     If you meant to cross compile, use \`--host'.
2193     See \`config.log' for more details." >&5
2194 gezelter 1490 echo "$as_me: error: cannot run C compiled programs.
2195 gezelter 2081 If you meant to cross compile, use \`--host'.
2196     See \`config.log' for more details." >&2;}
2197 gezelter 1490 { (exit 1); exit 1; }; }
2198     fi
2199     fi
2200     fi
2201 gezelter 2081 echo "$as_me:$LINENO: result: yes" >&5
2202 gezelter 1490 echo "${ECHO_T}yes" >&6
2203    
2204 gezelter 2081 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2205 gezelter 1490 ac_clean_files=$ac_clean_files_save
2206     # Check the compiler produces executables we can run. If not, either
2207     # the compiler is broken, or we cross compile.
2208 gezelter 2081 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2209 gezelter 1490 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2210 gezelter 2081 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2211 gezelter 1490 echo "${ECHO_T}$cross_compiling" >&6
2212    
2213 gezelter 2081 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2214     echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2215     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2216 gezelter 1490 (eval $ac_link) 2>&5
2217     ac_status=$?
2218 gezelter 2081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2219 gezelter 1490 (exit $ac_status); }; then
2220     # If both `conftest.exe' and `conftest' are `present' (well, observable)
2221     # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2222     # work properly (i.e., refer to `conftest.exe'), while it won't with
2223     # `rm'.
2224 gezelter 2081 for ac_file in conftest.exe conftest conftest.*; do
2225     test -f "$ac_file" || continue
2226 gezelter 1490 case $ac_file in
2227 gezelter 2081 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2228 gezelter 1490 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2229 gezelter 2081 export ac_cv_exeext
2230     break;;
2231 gezelter 1490 * ) break;;
2232     esac
2233     done
2234     else
2235 gezelter 2081 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2236     See \`config.log' for more details." >&5
2237     echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2238     See \`config.log' for more details." >&2;}
2239 gezelter 1490 { (exit 1); exit 1; }; }
2240     fi
2241    
2242     rm -f conftest$ac_cv_exeext
2243 gezelter 2081 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2244 gezelter 1490 echo "${ECHO_T}$ac_cv_exeext" >&6
2245    
2246     rm -f conftest.$ac_ext
2247     EXEEXT=$ac_cv_exeext
2248     ac_exeext=$EXEEXT
2249 gezelter 2081 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2250     echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2251 gezelter 1490 if test "${ac_cv_objext+set}" = set; then
2252     echo $ECHO_N "(cached) $ECHO_C" >&6
2253     else
2254     cat >conftest.$ac_ext <<_ACEOF
2255 gezelter 2081 /* confdefs.h. */
2256     _ACEOF
2257     cat confdefs.h >>conftest.$ac_ext
2258     cat >>conftest.$ac_ext <<_ACEOF
2259     /* end confdefs.h. */
2260 gezelter 1490
2261     int
2262     main ()
2263     {
2264    
2265     ;
2266     return 0;
2267     }
2268     _ACEOF
2269     rm -f conftest.o conftest.obj
2270 gezelter 2081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2271 gezelter 1490 (eval $ac_compile) 2>&5
2272     ac_status=$?
2273 gezelter 2081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2274 gezelter 1490 (exit $ac_status); }; then
2275     for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2276     case $ac_file in
2277 gezelter 2081 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2278 gezelter 1490 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2279     break;;
2280     esac
2281     done
2282     else
2283     echo "$as_me: failed program was:" >&5
2284 gezelter 2081 sed 's/^/| /' conftest.$ac_ext >&5
2285    
2286     { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2287     See \`config.log' for more details." >&5
2288     echo "$as_me: error: cannot compute suffix of object files: cannot compile
2289     See \`config.log' for more details." >&2;}
2290 gezelter 1490 { (exit 1); exit 1; }; }
2291     fi
2292    
2293     rm -f conftest.$ac_cv_objext conftest.$ac_ext
2294     fi
2295 gezelter 2081 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2296 gezelter 1490 echo "${ECHO_T}$ac_cv_objext" >&6
2297     OBJEXT=$ac_cv_objext
2298     ac_objext=$OBJEXT
2299 gezelter 2081 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2300 gezelter 1490 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2301     if test "${ac_cv_c_compiler_gnu+set}" = set; then
2302     echo $ECHO_N "(cached) $ECHO_C" >&6
2303     else
2304     cat >conftest.$ac_ext <<_ACEOF
2305 gezelter 2081 /* confdefs.h. */
2306     _ACEOF
2307     cat confdefs.h >>conftest.$ac_ext
2308     cat >>conftest.$ac_ext <<_ACEOF
2309     /* end confdefs.h. */
2310 gezelter 1490
2311     int
2312     main ()
2313     {
2314     #ifndef __GNUC__
2315     choke me
2316     #endif
2317    
2318     ;
2319     return 0;
2320     }
2321     _ACEOF
2322     rm -f conftest.$ac_objext
2323 gezelter 2081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2324     (eval $ac_compile) 2>conftest.er1
2325 gezelter 1490 ac_status=$?
2326 gezelter 2081 grep -v '^ *+' conftest.er1 >conftest.err
2327     rm -f conftest.er1
2328     cat conftest.err >&5
2329     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2330 gezelter 1490 (exit $ac_status); } &&
2331 gezelter 2473 { ac_try='test -z "$ac_c_werror_flag"
2332     || test ! -s conftest.err'
2333 gezelter 2081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2334 gezelter 1490 (eval $ac_try) 2>&5
2335     ac_status=$?
2336 gezelter 2081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2337     (exit $ac_status); }; } &&
2338     { ac_try='test -s conftest.$ac_objext'
2339     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2340     (eval $ac_try) 2>&5
2341     ac_status=$?
2342     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2343 gezelter 1490 (exit $ac_status); }; }; then
2344     ac_compiler_gnu=yes
2345     else
2346     echo "$as_me: failed program was:" >&5
2347 gezelter 2081 sed 's/^/| /' conftest.$ac_ext >&5
2348    
2349 gezelter 1490 ac_compiler_gnu=no
2350     fi
2351 gezelter 2081 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2352 gezelter 1490 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2353    
2354     fi
2355 gezelter 2081 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2356 gezelter 1490 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2357     GCC=`test $ac_compiler_gnu = yes && echo yes`
2358     ac_test_CFLAGS=${CFLAGS+set}
2359     ac_save_CFLAGS=$CFLAGS
2360     CFLAGS="-g"
2361 gezelter 2081 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2362 gezelter 1490 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2363     if test "${ac_cv_prog_cc_g+set}" = set; then
2364     echo $ECHO_N "(cached) $ECHO_C" >&6
2365     else
2366     cat >conftest.$ac_ext <<_ACEOF
2367 gezelter 2081 /* confdefs.h. */
2368     _ACEOF
2369     cat confdefs.h >>conftest.$ac_ext
2370     cat >>conftest.$ac_ext <<_ACEOF
2371     /* end confdefs.h. */
2372 gezelter 1490
2373     int
2374     main ()
2375     {
2376    
2377     ;
2378     return 0;
2379     }
2380     _ACEOF
2381     rm -f conftest.$ac_objext
2382 gezelter 2081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2383     (eval $ac_compile) 2>conftest.er1
2384 gezelter 1490 ac_status=$?
2385 gezelter 2081 grep -v '^ *+' conftest.er1 >conftest.err
2386     rm -f conftest.er1
2387     cat conftest.err >&5
2388     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2389 gezelter 1490 (exit $ac_status); } &&
2390 gezelter 2473 { ac_try='test -z "$ac_c_werror_flag"
2391     || test ! -s conftest.err'
2392 gezelter 2081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2393 gezelter 1490 (eval $ac_try) 2>&5
2394     ac_status=$?
2395 gezelter 2081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2396     (exit $ac_status); }; } &&
2397     { ac_try='test -s conftest.$ac_objext'
2398     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2399     (eval $ac_try) 2>&5
2400     ac_status=$?
2401     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2402 gezelter 1490 (exit $ac_status); }; }; then
2403     ac_cv_prog_cc_g=yes
2404     else
2405     echo "$as_me: failed program was:" >&5
2406 gezelter 2081 sed 's/^/| /' conftest.$ac_ext >&5
2407    
2408 gezelter 1490 ac_cv_prog_cc_g=no
2409     fi
2410 gezelter 2081 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2411 gezelter 1490 fi
2412 gezelter 2081 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2413 gezelter 1490 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2414     if test "$ac_test_CFLAGS" = set; then
2415     CFLAGS=$ac_save_CFLAGS
2416     elif test $ac_cv_prog_cc_g = yes; then
2417     if test "$GCC" = yes; then
2418     CFLAGS="-g -O2"
2419     else
2420     CFLAGS="-g"
2421     fi
2422     else
2423     if test "$GCC" = yes; then
2424     CFLAGS="-O2"
2425     else
2426     CFLAGS=
2427     fi
2428     fi
2429 gezelter 2081 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2430     echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2431     if test "${ac_cv_prog_cc_stdc+set}" = set; then
2432     echo $ECHO_N "(cached) $ECHO_C" >&6
2433     else
2434     ac_cv_prog_cc_stdc=no
2435     ac_save_CC=$CC
2436     cat >conftest.$ac_ext <<_ACEOF
2437     /* confdefs.h. */
2438     _ACEOF
2439     cat confdefs.h >>conftest.$ac_ext
2440     cat >>conftest.$ac_ext <<_ACEOF
2441     /* end confdefs.h. */
2442     #include <stdarg.h>
2443     #include <stdio.h>
2444     #include <sys/types.h>
2445     #include <sys/stat.h>
2446     /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2447     struct buf { int x; };
2448     FILE * (*rcsopen) (struct buf *, struct stat *, int);
2449     static char *e (p, i)
2450     char **p;
2451     int i;
2452     {
2453     return p[i];
2454     }
2455     static char *f (char * (*g) (char **, int), char **p, ...)
2456     {
2457     char *s;
2458     va_list v;
2459     va_start (v,p);
2460     s = g (p, va_arg (v,int));
2461     va_end (v);
2462     return s;
2463     }
2464    
2465     /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2466     function prototypes and stuff, but not '\xHH' hex character constants.
2467     These don't provoke an error unfortunately, instead are silently treated
2468     as 'x'. The following induces an error, until -std1 is added to get
2469     proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2470     array size at least. It's necessary to write '\x00'==0 to get something
2471     that's true only with -std1. */
2472     int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2473    
2474     int test (int i, double x);
2475     struct s1 {int (*f) (int a);};
2476     struct s2 {int (*f) (double a);};
2477     int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2478     int argc;
2479     char **argv;
2480     int
2481     main ()
2482     {
2483     return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2484     ;
2485     return 0;
2486     }
2487     _ACEOF
2488     # Don't try gcc -ansi; that turns off useful extensions and
2489     # breaks some systems' header files.
2490     # AIX -qlanglvl=ansi
2491     # Ultrix and OSF/1 -std1
2492     # HP-UX 10.20 and later -Ae
2493     # HP-UX older versions -Aa -D_HPUX_SOURCE
2494     # SVR4 -Xc -D__EXTENSIONS__
2495     for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2496     do
2497     CC="$ac_save_CC $ac_arg"
2498     rm -f conftest.$ac_objext
2499     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2500     (eval $ac_compile) 2>conftest.er1
2501     ac_status=$?
2502     grep -v '^ *+' conftest.er1 >conftest.err
2503     rm -f conftest.er1
2504     cat conftest.err >&5
2505     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2506     (exit $ac_status); } &&
2507 gezelter 2473 { ac_try='test -z "$ac_c_werror_flag"
2508     || test ! -s conftest.err'
2509 gezelter 2081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2510     (eval $ac_try) 2>&5
2511     ac_status=$?
2512     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2513     (exit $ac_status); }; } &&
2514     { ac_try='test -s conftest.$ac_objext'
2515     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2516     (eval $ac_try) 2>&5
2517     ac_status=$?
2518     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2519     (exit $ac_status); }; }; then
2520     ac_cv_prog_cc_stdc=$ac_arg
2521     break
2522     else
2523     echo "$as_me: failed program was:" >&5
2524     sed 's/^/| /' conftest.$ac_ext >&5
2525    
2526     fi
2527     rm -f conftest.err conftest.$ac_objext
2528     done
2529     rm -f conftest.$ac_ext conftest.$ac_objext
2530     CC=$ac_save_CC
2531    
2532     fi
2533    
2534     case "x$ac_cv_prog_cc_stdc" in
2535     x|xno)
2536     echo "$as_me:$LINENO: result: none needed" >&5
2537     echo "${ECHO_T}none needed" >&6 ;;
2538     *)
2539     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2540     echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2541     CC="$CC $ac_cv_prog_cc_stdc" ;;
2542     esac
2543    
2544 gezelter 1490 # Some people use a C++ compiler to compile C. Since we use `exit',
2545     # in C++ we need to declare it. In case someone uses the same compiler
2546     # for both compiling C and C++ we need to have the C++ compiler decide
2547     # the declaration of exit, since it's the most demanding environment.
2548     cat >conftest.$ac_ext <<_ACEOF
2549     #ifndef __cplusplus
2550     choke me
2551     #endif
2552     _ACEOF
2553     rm -f conftest.$ac_objext
2554 gezelter 2081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2555     (eval $ac_compile) 2>conftest.er1
2556 gezelter 1490 ac_status=$?
2557 gezelter 2081 grep -v '^ *+' conftest.er1 >conftest.err
2558     rm -f conftest.er1
2559     cat conftest.err >&5
2560     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2561 gezelter 1490 (exit $ac_status); } &&
2562 gezelter 2473 { ac_try='test -z "$ac_c_werror_flag"
2563     || test ! -s conftest.err'
2564 gezelter 2081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2565 gezelter 1490 (eval $ac_try) 2>&5
2566     ac_status=$?
2567 gezelter 2081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2568     (exit $ac_status); }; } &&
2569     { ac_try='test -s conftest.$ac_objext'
2570     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2571     (eval $ac_try) 2>&5
2572     ac_status=$?
2573     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2574 gezelter 1490 (exit $ac_status); }; }; then
2575     for ac_declaration in \
2576 gezelter 2081 '' \
2577 gezelter 1490 'extern "C" void std::exit (int) throw (); using std::exit;' \
2578     'extern "C" void std::exit (int); using std::exit;' \
2579     'extern "C" void exit (int) throw ();' \
2580     'extern "C" void exit (int);' \
2581     'void exit (int);'
2582     do
2583     cat >conftest.$ac_ext <<_ACEOF
2584 gezelter 2081 /* confdefs.h. */
2585     _ACEOF
2586     cat confdefs.h >>conftest.$ac_ext
2587     cat >>conftest.$ac_ext <<_ACEOF
2588     /* end confdefs.h. */
2589     $ac_declaration
2590 gezelter 2029 #include <stdlib.h>
2591 gezelter 1490 int
2592     main ()
2593     {
2594     exit (42);
2595     ;
2596     return 0;
2597     }
2598     _ACEOF
2599     rm -f conftest.$ac_objext
2600 gezelter 2081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2601     (eval $ac_compile) 2>conftest.er1
2602 gezelter 1490 ac_status=$?
2603 gezelter 2081 grep -v '^ *+' conftest.er1 >conftest.err
2604     rm -f conftest.er1
2605     cat conftest.err >&5
2606     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2607 gezelter 1490 (exit $ac_status); } &&
2608 gezelter 2473 { ac_try='test -z "$ac_c_werror_flag"
2609     || test ! -s conftest.err'
2610 gezelter 2081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2611 gezelter 1490 (eval $ac_try) 2>&5
2612     ac_status=$?
2613 gezelter 2081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2614     (exit $ac_status); }; } &&
2615     { ac_try='test -s conftest.$ac_objext'
2616     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2617     (eval $ac_try) 2>&5
2618     ac_status=$?
2619     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2620 gezelter 1490 (exit $ac_status); }; }; then
2621     :
2622     else
2623     echo "$as_me: failed program was:" >&5
2624 gezelter 2081 sed 's/^/| /' conftest.$ac_ext >&5
2625    
2626 gezelter 1490 continue
2627     fi
2628 gezelter 2081 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2629 gezelter 1490 cat >conftest.$ac_ext <<_ACEOF
2630 gezelter 2081 /* confdefs.h. */
2631     _ACEOF
2632     cat confdefs.h >>conftest.$ac_ext
2633     cat >>conftest.$ac_ext <<_ACEOF
2634     /* end confdefs.h. */
2635 gezelter 1490 $ac_declaration
2636     int
2637     main ()
2638     {
2639     exit (42);
2640     ;
2641     return 0;
2642     }
2643     _ACEOF
2644     rm -f conftest.$ac_objext
2645 gezelter 2081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2646     (eval $ac_compile) 2>conftest.er1
2647 gezelter 1490 ac_status=$?
2648 gezelter 2081 grep -v '^ *+' conftest.er1 >conftest.err
2649     rm -f conftest.er1
2650     cat conftest.err >&5
2651     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2652 gezelter 1490 (exit $ac_status); } &&
2653 gezelter 2473 { ac_try='test -z "$ac_c_werror_flag"
2654     || test ! -s conftest.err'
2655 gezelter 2081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2656 gezelter 1490 (eval $ac_try) 2>&5
2657     ac_status=$?
2658 gezelter 2081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2659     (exit $ac_status); }; } &&
2660     { ac_try='test -s conftest.$ac_objext'
2661     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2662     (eval $ac_try) 2>&5
2663     ac_status=$?
2664     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2665 gezelter 1490 (exit $ac_status); }; }; then
2666     break
2667     else
2668     echo "$as_me: failed program was:" >&5
2669 gezelter 2081 sed 's/^/| /' conftest.$ac_ext >&5
2670    
2671 gezelter 1490 fi
2672 gezelter 2081 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2673 gezelter 1490 done
2674 gezelter 2081 rm -f conftest*
2675     if test -n "$ac_declaration"; then
2676     echo '#ifdef __cplusplus' >>confdefs.h
2677     echo $ac_declaration >>confdefs.h
2678     echo '#endif' >>confdefs.h
2679     fi
2680 gezelter 1490
2681     else
2682     echo "$as_me: failed program was:" >&5
2683 gezelter 2081 sed 's/^/| /' conftest.$ac_ext >&5
2684    
2685 gezelter 1490 fi
2686 gezelter 2081 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2687 gezelter 1490 ac_ext=c
2688     ac_cpp='$CPP $CPPFLAGS'
2689     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2690     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2691     ac_compiler_gnu=$ac_cv_c_compiler_gnu
2692    
2693 gezelter 2081
2694 gezelter 1490 ac_ext=cc
2695     ac_cpp='$CXXCPP $CPPFLAGS'
2696     ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2697     ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2698     ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2699     if test -n "$ac_tool_prefix"; then
2700 gezelter 2502 for ac_prog in $CCC pathCC icpc icc xlc++ xlC CC g++ c++
2701 gezelter 1490 do
2702     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2703     set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2704 gezelter 2081 echo "$as_me:$LINENO: checking for $ac_word" >&5
2705 gezelter 1490 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2706     if test "${ac_cv_prog_CXX+set}" = set; then
2707     echo $ECHO_N "(cached) $ECHO_C" >&6
2708     else
2709     if test -n "$CXX"; then
2710     ac_cv_prog_CXX="$CXX" # Let the user override the test.
2711     else
2712 gezelter 2081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2713     for as_dir in $PATH
2714     do
2715     IFS=$as_save_IFS
2716     test -z "$as_dir" && as_dir=.
2717     for ac_exec_ext in '' $ac_executable_extensions; do
2718     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2719     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2720     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2721     break 2
2722     fi
2723 gezelter 1490 done
2724 gezelter 2081 done
2725 gezelter 1490
2726     fi
2727     fi
2728     CXX=$ac_cv_prog_CXX
2729     if test -n "$CXX"; then
2730 gezelter 2081 echo "$as_me:$LINENO: result: $CXX" >&5
2731 gezelter 1490 echo "${ECHO_T}$CXX" >&6
2732     else
2733 gezelter 2081 echo "$as_me:$LINENO: result: no" >&5
2734 gezelter 1490 echo "${ECHO_T}no" >&6
2735     fi
2736    
2737     test -n "$CXX" && break
2738     done
2739     fi
2740     if test -z "$CXX"; then
2741     ac_ct_CXX=$CXX
2742 gezelter 2502 for ac_prog in $CCC pathCC icpc icc xlc++ xlC CC g++ c++
2743 gezelter 1490 do
2744     # Extract the first word of "$ac_prog", so it can be a program name with args.
2745     set dummy $ac_prog; ac_word=$2
2746 gezelter 2081 echo "$as_me:$LINENO: checking for $ac_word" >&5
2747 gezelter 1490 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2748     if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2749     echo $ECHO_N "(cached) $ECHO_C" >&6
2750     else
2751     if test -n "$ac_ct_CXX"; then
2752     ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2753     else
2754 gezelter 2081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2755     for as_dir in $PATH
2756     do
2757     IFS=$as_save_IFS
2758     test -z "$as_dir" && as_dir=.
2759     for ac_exec_ext in '' $ac_executable_extensions; do
2760     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2761     ac_cv_prog_ac_ct_CXX="$ac_prog"
2762     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2763     break 2
2764     fi
2765 gezelter 1490 done
2766 gezelter 2081 done
2767 gezelter 1490
2768     fi
2769     fi
2770     ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2771     if test -n "$ac_ct_CXX"; then
2772 gezelter 2081 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2773 gezelter 1490 echo "${ECHO_T}$ac_ct_CXX" >&6
2774     else
2775 gezelter 2081 echo "$as_me:$LINENO: result: no" >&5
2776 gezelter 1490 echo "${ECHO_T}no" >&6
2777     fi
2778    
2779     test -n "$ac_ct_CXX" && break
2780     done
2781     test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2782    
2783     CXX=$ac_ct_CXX
2784     fi
2785    
2786 gezelter 2081
2787     # Provide some information about the compiler.
2788     echo "$as_me:$LINENO:" \
2789     "checking for C++ compiler version" >&5
2790     ac_compiler=`set X $ac_compile; echo $2`
2791     { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2792     (eval $ac_compiler --version </dev/null >&5) 2>&5
2793     ac_status=$?
2794     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2795     (exit $ac_status); }
2796     { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2797     (eval $ac_compiler -v </dev/null >&5) 2>&5
2798     ac_status=$?
2799     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2800     (exit $ac_status); }
2801     { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2802     (eval $ac_compiler -V </dev/null >&5) 2>&5
2803     ac_status=$?
2804     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2805     (exit $ac_status); }
2806    
2807     echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2808 gezelter 1490 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2809     if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2810     echo $ECHO_N "(cached) $ECHO_C" >&6
2811     else
2812     cat >conftest.$ac_ext <<_ACEOF
2813 gezelter 2081 /* confdefs.h. */
2814     _ACEOF
2815     cat confdefs.h >>conftest.$ac_ext
2816     cat >>conftest.$ac_ext <<_ACEOF
2817     /* end confdefs.h. */
2818 gezelter 1490
2819     int
2820     main ()
2821     {
2822     #ifndef __GNUC__
2823     choke me
2824     #endif
2825    
2826     ;
2827     return 0;
2828     }
2829     _ACEOF
2830     rm -f conftest.$ac_objext
2831 gezelter 2081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2832     (eval $ac_compile) 2>conftest.er1
2833 gezelter 1490 ac_status=$?
2834 gezelter 2081 grep -v '^ *+' conftest.er1 >conftest.err
2835     rm -f conftest.er1
2836     cat conftest.err >&5
2837     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2838 gezelter 1490 (exit $ac_status); } &&
2839 gezelter 2473 { ac_try='test -z "$ac_cxx_werror_flag"
2840     || test ! -s conftest.err'
2841 gezelter 2081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2842 gezelter 1490 (eval $ac_try) 2>&5
2843     ac_status=$?
2844 gezelter 2081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2845     (exit $ac_status); }; } &&
2846     { ac_try='test -s conftest.$ac_objext'
2847     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2848     (eval $ac_try) 2>&5
2849     ac_status=$?
2850     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2851 gezelter 1490 (exit $ac_status); }; }; then
2852     ac_compiler_gnu=yes
2853     else
2854     echo "$as_me: failed program was:" >&5
2855 gezelter 2081 sed 's/^/| /' conftest.$ac_ext >&5
2856    
2857 gezelter 1490 ac_compiler_gnu=no
2858     fi
2859 gezelter 2081 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2860 gezelter 1490 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2861    
2862     fi
2863 gezelter 2081 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2864 gezelter 1490 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2865     GXX=`test $ac_compiler_gnu = yes && echo yes`
2866     ac_test_CXXFLAGS=${CXXFLAGS+set}
2867     ac_save_CXXFLAGS=$CXXFLAGS
2868     CXXFLAGS="-g"
2869 gezelter 2081 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2870 gezelter 1490 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2871     if test "${ac_cv_prog_cxx_g+set}" = set; then
2872     echo $ECHO_N "(cached) $ECHO_C" >&6
2873     else
2874     cat >conftest.$ac_ext <<_ACEOF
2875 gezelter 2081 /* confdefs.h. */
2876     _ACEOF
2877     cat confdefs.h >>conftest.$ac_ext
2878     cat >>conftest.$ac_ext <<_ACEOF
2879     /* end confdefs.h. */
2880 gezelter 1490
2881     int
2882     main ()
2883     {
2884    
2885     ;
2886     return 0;
2887     }
2888     _ACEOF
2889     rm -f conftest.$ac_objext
2890 gezelter 2081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2891     (eval $ac_compile) 2>conftest.er1
2892 gezelter 1490 ac_status=$?
2893 gezelter 2081 grep -v '^ *+' conftest.er1 >conftest.err
2894     rm -f conftest.er1
2895     cat conftest.err >&5
2896     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2897 gezelter 1490 (exit $ac_status); } &&
2898 gezelter 2473 { ac_try='test -z "$ac_cxx_werror_flag"
2899     || test ! -s conftest.err'
2900 gezelter 2081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2901 gezelter 1490 (eval $ac_try) 2>&5
2902     ac_status=$?
2903 gezelter 2081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2904     (exit $ac_status); }; } &&
2905     { ac_try='test -s conftest.$ac_objext'
2906     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2907     (eval $ac_try) 2>&5
2908     ac_status=$?
2909     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2910 gezelter 1490 (exit $ac_status); }; }; then
2911     ac_cv_prog_cxx_g=yes
2912     else
2913     echo "$as_me: failed program was:" >&5
2914 gezelter 2081 sed 's/^/| /' conftest.$ac_ext >&5
2915    
2916 gezelter 1490 ac_cv_prog_cxx_g=no
2917     fi
2918 gezelter 2081 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2919 gezelter 1490 fi
2920 gezelter 2081 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2921 gezelter 1490 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2922     if test "$ac_test_CXXFLAGS" = set; then
2923     CXXFLAGS=$ac_save_CXXFLAGS
2924     elif test $ac_cv_prog_cxx_g = yes; then
2925     if test "$GXX" = yes; then
2926     CXXFLAGS="-g -O2"
2927     else
2928     CXXFLAGS="-g"
2929     fi
2930     else
2931     if test "$GXX" = yes; then
2932     CXXFLAGS="-O2"
2933     else
2934     CXXFLAGS=
2935     fi
2936     fi
2937     for ac_declaration in \
2938 gezelter 2081 '' \
2939 gezelter 1490 'extern "C" void std::exit (int) throw (); using std::exit;' \
2940     'extern "C" void std::exit (int); using std::exit;' \
2941     'extern "C" void exit (int) throw ();' \
2942     'extern "C" void exit (int);' \
2943     'void exit (int);'
2944     do
2945     cat >conftest.$ac_ext <<_ACEOF
2946 gezelter 2081 /* confdefs.h. */
2947     _ACEOF
2948     cat confdefs.h >>conftest.$ac_ext
2949     cat >>conftest.$ac_ext <<_ACEOF
2950     /* end confdefs.h. */
2951     $ac_declaration
2952 gezelter 2029 #include <stdlib.h>
2953 gezelter 1490 int
2954     main ()
2955     {
2956     exit (42);
2957     ;
2958     return 0;
2959     }
2960     _ACEOF
2961     rm -f conftest.$ac_objext
2962 gezelter 2081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2963     (eval $ac_compile) 2>conftest.er1
2964 gezelter 1490 ac_status=$?
2965 gezelter 2081 grep -v '^ *+' conftest.er1 >conftest.err
2966     rm -f conftest.er1
2967     cat conftest.err >&5
2968     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2969 gezelter 1490 (exit $ac_status); } &&
2970 gezelter 2473 { ac_try='test -z "$ac_cxx_werror_flag"
2971     || test ! -s conftest.err'
2972 gezelter 2081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2973 gezelter 1490 (eval $ac_try) 2>&5
2974     ac_status=$?
2975 gezelter 2081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2976     (exit $ac_status); }; } &&
2977     { ac_try='test -s conftest.$ac_objext'
2978     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2979     (eval $ac_try) 2>&5
2980     ac_status=$?
2981     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2982 gezelter 1490 (exit $ac_status); }; }; then
2983     :
2984     else
2985     echo "$as_me: failed program was:" >&5
2986 gezelter 2081 sed 's/^/| /' conftest.$ac_ext >&5
2987    
2988 gezelter 1490 continue
2989     fi
2990 gezelter 2081 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2991 gezelter 1490 cat >conftest.$ac_ext <<_ACEOF
2992 gezelter 2081 /* confdefs.h. */
2993     _ACEOF
2994     cat confdefs.h >>conftest.$ac_ext
2995     cat >>conftest.$ac_ext <<_ACEOF
2996     /* end confdefs.h. */
2997 gezelter 1490 $ac_declaration
2998     int
2999     main ()
3000     {
3001     exit (42);
3002     ;
3003     return 0;
3004     }
3005     _ACEOF
3006     rm -f conftest.$ac_objext
3007 gezelter 2081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3008     (eval $ac_compile) 2>conftest.er1
3009 gezelter 1490 ac_status=$?
3010 gezelter 2081 grep -v '^ *+' conftest.er1 >conftest.err
3011     rm -f conftest.er1
3012     cat conftest.err >&5
3013     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3014 gezelter 1490 (exit $ac_status); } &&
3015 gezelter 2473 { ac_try='test -z "$ac_cxx_werror_flag"
3016     || test ! -s conftest.err'
3017 gezelter 2081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3018 gezelter 1490 (eval $ac_try) 2>&5
3019     ac_status=$?
3020 gezelter 2081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3021     (exit $ac_status); }; } &&
3022     { ac_try='test -s conftest.$ac_objext'
3023     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3024     (eval $ac_try) 2>&5
3025     ac_status=$?
3026     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3027 gezelter 1490 (exit $ac_status); }; }; then
3028     break
3029     else
3030     echo "$as_me: failed program was:" >&5
3031 gezelter 2081 sed 's/^/| /' conftest.$ac_ext >&5
3032    
3033 gezelter 1490 fi
3034 gezelter 2081 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3035 gezelter 1490 done
3036 gezelter 2081 rm -f conftest*
3037     if test -n "$ac_declaration"; then
3038     echo '#ifdef __cplusplus' >>confdefs.h
3039     echo $ac_declaration >>confdefs.h
3040     echo '#endif' >>confdefs.h
3041     fi
3042 gezelter 1490
3043     ac_ext=c
3044     ac_cpp='$CPP $CPPFLAGS'
3045     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3046     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3047     ac_compiler_gnu=$ac_cv_c_compiler_gnu
3048    
3049 gezelter 2081
3050 gezelter 2473 ac_ext=c
3051     ac_cpp='$CPP $CPPFLAGS'
3052     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3053     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3054     ac_compiler_gnu=$ac_cv_c_compiler_gnu
3055     echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3056     echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3057     # On Suns, sometimes $CPP names a directory.
3058     if test -n "$CPP" && test -d "$CPP"; then
3059     CPP=
3060     fi
3061     if test -z "$CPP"; then
3062     if test "${ac_cv_prog_CPP+set}" = set; then
3063     echo $ECHO_N "(cached) $ECHO_C" >&6
3064     else
3065     # Double quotes because CPP needs to be expanded
3066     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3067     do
3068     ac_preproc_ok=false
3069     for ac_c_preproc_warn_flag in '' yes
3070     do
3071     # Use a header file that comes with gcc, so configuring glibc
3072     # with a fresh cross-compiler works.
3073     # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3074     # <limits.h> exists even on freestanding compilers.
3075     # On the NeXT, cc -E runs the code through the compiler's parser,
3076     # not just through cpp. "Syntax error" is here to catch this case.
3077     cat >conftest.$ac_ext <<_ACEOF
3078     /* confdefs.h. */
3079     _ACEOF
3080     cat confdefs.h >>conftest.$ac_ext
3081     cat >>conftest.$ac_ext <<_ACEOF
3082     /* end confdefs.h. */
3083     #ifdef __STDC__
3084     # include <limits.h>
3085     #else
3086     # include <assert.h>
3087     #endif
3088     Syntax error
3089     _ACEOF
3090     if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3091     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3092     ac_status=$?
3093     grep -v '^ *+' conftest.er1 >conftest.err
3094     rm -f conftest.er1
3095     cat conftest.err >&5
3096     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3097     (exit $ac_status); } >/dev/null; then
3098     if test -s conftest.err; then
3099     ac_cpp_err=$ac_c_preproc_warn_flag
3100     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3101     else
3102     ac_cpp_err=
3103     fi
3104     else
3105     ac_cpp_err=yes
3106     fi
3107     if test -z "$ac_cpp_err"; then
3108     :
3109     else
3110     echo "$as_me: failed program was:" >&5
3111     sed 's/^/| /' conftest.$ac_ext >&5
3112    
3113     # Broken: fails on valid input.
3114     continue
3115     fi
3116     rm -f conftest.err conftest.$ac_ext
3117    
3118     # OK, works on sane cases. Now check whether non-existent headers
3119     # can be detected and how.
3120     cat >conftest.$ac_ext <<_ACEOF
3121     /* confdefs.h. */
3122     _ACEOF
3123     cat confdefs.h >>conftest.$ac_ext
3124     cat >>conftest.$ac_ext <<_ACEOF
3125     /* end confdefs.h. */
3126     #include <ac_nonexistent.h>
3127     _ACEOF
3128     if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3129     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3130     ac_status=$?
3131     grep -v '^ *+' conftest.er1 >conftest.err
3132     rm -f conftest.er1
3133     cat conftest.err >&5
3134     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3135     (exit $ac_status); } >/dev/null; then
3136     if test -s conftest.err; then
3137     ac_cpp_err=$ac_c_preproc_warn_flag
3138     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3139     else
3140     ac_cpp_err=
3141     fi
3142     else
3143     ac_cpp_err=yes
3144     fi
3145     if test -z "$ac_cpp_err"; then
3146     # Broken: success on invalid input.
3147     continue
3148     else
3149     echo "$as_me: failed program was:" >&5
3150     sed 's/^/| /' conftest.$ac_ext >&5
3151    
3152     # Passes both tests.
3153     ac_preproc_ok=:
3154     break
3155     fi
3156     rm -f conftest.err conftest.$ac_ext
3157    
3158     done
3159     # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3160     rm -f conftest.err conftest.$ac_ext
3161     if $ac_preproc_ok; then
3162     break
3163     fi
3164    
3165     done
3166     ac_cv_prog_CPP=$CPP
3167    
3168     fi
3169     CPP=$ac_cv_prog_CPP
3170     else
3171     ac_cv_prog_CPP=$CPP
3172     fi
3173     echo "$as_me:$LINENO: result: $CPP" >&5
3174     echo "${ECHO_T}$CPP" >&6
3175     ac_preproc_ok=false
3176     for ac_c_preproc_warn_flag in '' yes
3177     do
3178     # Use a header file that comes with gcc, so configuring glibc
3179     # with a fresh cross-compiler works.
3180     # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3181     # <limits.h> exists even on freestanding compilers.
3182     # On the NeXT, cc -E runs the code through the compiler's parser,
3183     # not just through cpp. "Syntax error" is here to catch this case.
3184     cat >conftest.$ac_ext <<_ACEOF
3185     /* confdefs.h. */
3186     _ACEOF
3187     cat confdefs.h >>conftest.$ac_ext
3188     cat >>conftest.$ac_ext <<_ACEOF
3189     /* end confdefs.h. */
3190     #ifdef __STDC__
3191     # include <limits.h>
3192     #else
3193     # include <assert.h>
3194     #endif
3195     Syntax error
3196     _ACEOF
3197     if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3198     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3199     ac_status=$?
3200     grep -v '^ *+' conftest.er1 >conftest.err
3201     rm -f conftest.er1
3202     cat conftest.err >&5
3203     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3204     (exit $ac_status); } >/dev/null; then
3205     if test -s conftest.err; then
3206     ac_cpp_err=$ac_c_preproc_warn_flag
3207     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3208     else
3209     ac_cpp_err=
3210     fi
3211     else
3212     ac_cpp_err=yes
3213     fi
3214     if test -z "$ac_cpp_err"; then
3215     :
3216     else
3217     echo "$as_me: failed program was:" >&5
3218     sed 's/^/| /' conftest.$ac_ext >&5
3219    
3220     # Broken: fails on valid input.
3221     continue
3222     fi
3223     rm -f conftest.err conftest.$ac_ext
3224    
3225     # OK, works on sane cases. Now check whether non-existent headers
3226     # can be detected and how.
3227     cat >conftest.$ac_ext <<_ACEOF
3228     /* confdefs.h. */
3229     _ACEOF
3230     cat confdefs.h >>conftest.$ac_ext
3231     cat >>conftest.$ac_ext <<_ACEOF
3232     /* end confdefs.h. */
3233     #include <ac_nonexistent.h>
3234     _ACEOF
3235     if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3236     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3237     ac_status=$?
3238     grep -v '^ *+' conftest.er1 >conftest.err
3239     rm -f conftest.er1
3240     cat conftest.err >&5
3241     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3242     (exit $ac_status); } >/dev/null; then
3243     if test -s conftest.err; then
3244     ac_cpp_err=$ac_c_preproc_warn_flag
3245     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3246     else
3247     ac_cpp_err=
3248     fi
3249     else
3250     ac_cpp_err=yes
3251     fi
3252     if test -z "$ac_cpp_err"; then
3253     # Broken: success on invalid input.
3254     continue
3255     else
3256     echo "$as_me: failed program was:" >&5
3257     sed 's/^/| /' conftest.$ac_ext >&5
3258    
3259     # Passes both tests.
3260     ac_preproc_ok=:
3261     break
3262     fi
3263     rm -f conftest.err conftest.$ac_ext
3264    
3265     done
3266     # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3267     rm -f conftest.err conftest.$ac_ext
3268     if $ac_preproc_ok; then
3269     :
3270     else
3271     { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3272     See \`config.log' for more details." >&5
3273     echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3274     See \`config.log' for more details." >&2;}
3275     { (exit 1); exit 1; }; }
3276     fi
3277    
3278     ac_ext=c
3279     ac_cpp='$CPP $CPPFLAGS'
3280     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3281     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3282     ac_compiler_gnu=$ac_cv_c_compiler_gnu
3283    
3284    
3285     echo "$as_me:$LINENO: checking for egrep" >&5
3286     echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3287     if test "${ac_cv_prog_egrep+set}" = set; then
3288     echo $ECHO_N "(cached) $ECHO_C" >&6
3289     else
3290     if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3291     then ac_cv_prog_egrep='grep -E'
3292     else ac_cv_prog_egrep='egrep'
3293     fi
3294     fi
3295     echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3296     echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3297     EGREP=$ac_cv_prog_egrep
3298    
3299    
3300    
3301 gezelter 1490 OOPSE_TEMPLATE_FLAGS=""
3302     if test $ac_cv_cxx_compiler_gnu = no; then
3303 gezelter 2081 echo "$as_me:$LINENO: checking checking whether ${CXX} accepts -ptused -no_prelink" >&5
3304 gezelter 1490 echo $ECHO_N "checking checking whether ${CXX} accepts -ptused -no_prelink... $ECHO_C" >&6
3305     echo 'void f(){}' > conftest.cc
3306     if test -z "`${CXX} -ptused -no_prelink -c conftest.cc 2>&1`"; then
3307 gezelter 2081 echo "$as_me:$LINENO: result: yes" >&5
3308 gezelter 1490 echo "${ECHO_T}yes" >&6
3309     OOPSE_TEMPLATE_FLAGS="-ptused -no_prelink"
3310     else
3311 gezelter 2081 echo "$as_me:$LINENO: result: no" >&5
3312 gezelter 1490 echo "${ECHO_T}no" >&6
3313     fi
3314     rm -f conftest*
3315 gezelter 2081 echo "$as_me:$LINENO: checking checking whether ${CXX} accepts -instances=static" >&5
3316 gezelter 1490 echo $ECHO_N "checking checking whether ${CXX} accepts -instances=static... $ECHO_C" >&6
3317     echo 'void f(){}' > conftest.cc
3318     if test -z "`${CXX} -instances=static -c conftest.cc 2>&1`"; then
3319 gezelter 2081 echo "$as_me:$LINENO: result: yes" >&5
3320 gezelter 1490 echo "${ECHO_T}yes" >&6
3321     OOPSE_TEMPLATE_FLAGS="-instances=static"
3322     else
3323 gezelter 2081 echo "$as_me:$LINENO: result: no" >&5
3324 gezelter 1490 echo "${ECHO_T}no" >&6
3325     fi
3326     rm -f conftest*
3327 gezelter 2081 echo "$as_me:$LINENO: checking checking whether ${CXX} accepts -pto" >&5
3328 gezelter 1490 echo $ECHO_N "checking checking whether ${CXX} accepts -pto... $ECHO_C" >&6
3329     echo 'void f(){}' > conftest.cc
3330     if test -z "`${CXX} -pto -c conftest.cc 2>&1`"; then
3331 gezelter 2081 echo "$as_me:$LINENO: result: yes" >&5
3332 gezelter 1490 echo "${ECHO_T}yes" >&6
3333     OOPSE_TEMPLATE_FLAGS="-pto"
3334     else
3335 gezelter 2081 echo "$as_me:$LINENO: result: no" >&5
3336 gezelter 1490 echo "${ECHO_T}no" >&6
3337     fi
3338     rm -f conftest*
3339 gezelter 2081 echo "$as_me:$LINENO: checking checking whether ${CXX} accepts -LANG:std" >&5
3340 gezelter 1490 echo $ECHO_N "checking checking whether ${CXX} accepts -LANG:std... $ECHO_C" >&6
3341     echo 'void f(){}' > conftest.cc
3342     if test -z "`${CXX} -LANG:std -c conftest.cc 2>&1`"; then
3343 gezelter 2081 echo "$as_me:$LINENO: result: yes" >&5
3344 gezelter 1490 echo "${ECHO_T}yes" >&6
3345    
3346 gezelter 2081
3347 gezelter 1490 EXTRA_CC_FLAG=${EXTRA_CC_FLAG}" -LANG:std"
3348     else
3349 gezelter 2081 echo "$as_me:$LINENO: result: no" >&5
3350 gezelter 1490 echo "${ECHO_T}no" >&6
3351     fi
3352     fi
3353    
3354 gezelter 2081
3355    
3356    
3357 gezelter 1490 ac_ext=f90
3358     ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3359     ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3360     ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3361     if test -n "$ac_tool_prefix"; then
3362 gezelter 2502 for ac_prog in pathf95 ifort ifc f90 xlf90 pgf90 epcf90 f95 xlf95 lf95 fort g95
3363 gezelter 1490 do
3364     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3365     set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3366 gezelter 2081 echo "$as_me:$LINENO: checking for $ac_word" >&5
3367 gezelter 1490 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3368     if test "${ac_cv_prog_F90+set}" = set; then
3369     echo $ECHO_N "(cached) $ECHO_C" >&6
3370     else
3371     if test -n "$F90"; then
3372     ac_cv_prog_F90="$F90" # Let the user override the test.
3373     else
3374 gezelter 2081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3375     for as_dir in $PATH
3376     do
3377     IFS=$as_save_IFS
3378     test -z "$as_dir" && as_dir=.
3379     for ac_exec_ext in '' $ac_executable_extensions; do
3380     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3381     ac_cv_prog_F90="$ac_tool_prefix$ac_prog"
3382     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3383     break 2
3384     fi
3385 gezelter 1490 done
3386 gezelter 2081 done
3387 gezelter 1490
3388     fi
3389     fi
3390     F90=$ac_cv_prog_F90
3391     if test -n "$F90"; then
3392 gezelter 2081 echo "$as_me:$LINENO: result: $F90" >&5
3393 gezelter 1490 echo "${ECHO_T}$F90" >&6
3394     else
3395 gezelter 2081 echo "$as_me:$LINENO: result: no" >&5
3396 gezelter 1490 echo "${ECHO_T}no" >&6
3397     fi
3398    
3399     test -n "$F90" && break
3400     done
3401     fi
3402     if test -z "$F90"; then
3403     ac_ct_F90=$F90
3404 gezelter 2502 for ac_prog in pathf95 ifort ifc f90 xlf90 pgf90 epcf90 f95 xlf95 lf95 fort g95
3405 gezelter 1490 do
3406     # Extract the first word of "$ac_prog", so it can be a program name with args.
3407     set dummy $ac_prog; ac_word=$2
3408 gezelter 2081 echo "$as_me:$LINENO: checking for $ac_word" >&5
3409 gezelter 1490 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3410     if test "${ac_cv_prog_ac_ct_F90+set}" = set; then
3411     echo $ECHO_N "(cached) $ECHO_C" >&6
3412     else
3413     if test -n "$ac_ct_F90"; then
3414     ac_cv_prog_ac_ct_F90="$ac_ct_F90" # Let the user override the test.
3415     else
3416 gezelter 2081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3417     for as_dir in $PATH
3418     do
3419     IFS=$as_save_IFS
3420     test -z "$as_dir" && as_dir=.
3421     for ac_exec_ext in '' $ac_executable_extensions; do
3422     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3423     ac_cv_prog_ac_ct_F90="$ac_prog"
3424     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3425     break 2
3426     fi
3427 gezelter 1490 done
3428 gezelter 2081 done
3429 gezelter 1490
3430     fi
3431     fi
3432     ac_ct_F90=$ac_cv_prog_ac_ct_F90
3433     if test -n "$ac_ct_F90"; then
3434 gezelter 2081 echo "$as_me:$LINENO: result: $ac_ct_F90" >&5
3435 gezelter 1490 echo "${ECHO_T}$ac_ct_F90" >&6
3436     else
3437 gezelter 2081 echo "$as_me:$LINENO: result: no" >&5
3438 gezelter 1490 echo "${ECHO_T}no" >&6
3439     fi
3440    
3441     test -n "$ac_ct_F90" && break
3442     done
3443    
3444     F90=$ac_ct_F90
3445     fi
3446    
3447 gezelter 2081
3448 gezelter 1490 # If we don't use `.F90' as extension, the preprocessor is not run on the
3449     # input file.
3450     ac_save_ext=$ac_ext
3451     ac_ext=F90
3452 gezelter 2081 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 90 compiler" >&5
3453 gezelter 1490 echo $ECHO_N "checking whether we are using the GNU Fortran 90 compiler... $ECHO_C" >&6
3454     if test "${ac_cv_f90_compiler_gnu+set}" = set; then
3455     echo $ECHO_N "(cached) $ECHO_C" >&6
3456     else
3457     cat >conftest.$ac_ext <<_ACEOF
3458    
3459     program main
3460    
3461     #ifndef __GNUC__
3462     choke me
3463     #endif
3464    
3465     end program main
3466    
3467     _ACEOF
3468     rm -f conftest.$ac_objext
3469 gezelter 2081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3470     (eval $ac_compile) 2>conftest.er1
3471 gezelter 1490 ac_status=$?
3472 gezelter 2081 grep -v '^ *+' conftest.er1 >conftest.err
3473     rm -f conftest.er1
3474     cat conftest.err >&5
3475     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3476 gezelter 1490 (exit $ac_status); } &&
3477 gezelter 2473 { ac_try='test -z "$ac_f90_werror_flag"
3478     || test ! -s conftest.err'
3479 gezelter 2081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3480 gezelter 1490 (eval $ac_try) 2>&5
3481     ac_status=$?
3482 gezelter 2081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3483     (exit $ac_status); }; } &&
3484     { ac_try='test -s conftest.$ac_objext'
3485     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3486     (eval $ac_try) 2>&5
3487     ac_status=$?
3488     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3489 gezelter 1490 (exit $ac_status); }; }; then
3490     ac_compiler_gnu=yes
3491     else
3492     echo "$as_me: failed program was:" >&5
3493 gezelter 2081 sed 's/^/| /' conftest.$ac_ext >&5
3494    
3495 gezelter 1490 ac_compiler_gnu=no
3496     fi
3497 gezelter 2081 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3498 gezelter 1490 ac_cv_f90_compiler_gnu=$ac_compiler_gnu
3499    
3500     fi
3501 gezelter 2081 echo "$as_me:$LINENO: result: $ac_cv_f90_compiler_gnu" >&5
3502 gezelter 1490 echo "${ECHO_T}$ac_cv_f90_compiler_gnu" >&6
3503     ac_ext=$ac_save_ext
3504     G95=`test $ac_compiler_gnu = yes && echo yes`
3505     ac_ext=c
3506     ac_cpp='$CPP $CPPFLAGS'
3507     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3508     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3509     ac_compiler_gnu=$ac_cv_c_compiler_gnu
3510    
3511 gezelter 2081
3512    
3513    
3514    
3515 gezelter 1490 # Try to determine native compiler flags that allow us to use F90 suffix
3516     # for preprocessed f90 source.
3517    
3518     if test "$ac_test_PREPFLAG" != "set"; then
3519     PREPFLAG=""
3520     case "${host_cpu}-${host_os}" in
3521    
3522     *linux*) if test "$F90" = ifc -o "$F90" = ifort; then
3523     PREPFLAG="-fpp1 "
3524     fi;;
3525     *aix*) if test "$F90" = xlf90 -o "$F90" = f90; then
3526     PREPFLAG="-qsuffix=cpp=F90 "
3527     fi;;
3528     *darwin*)
3529     if test "$F90" = f90 -o "$F90" = xlf90; then
3530     PREPFLAG="-qsuffix=cpp=F90 "
3531     fi;;
3532     esac
3533    
3534     if test -z "$PREPFLAG"; then
3535 gezelter 2081 { echo "$as_me:$LINENO: WARNING: \"Using empty PREPFLAG\"" >&5
3536 gezelter 1490 echo "$as_me: WARNING: \"Using empty PREPFLAG\"" >&2;}
3537     PREPFLAG=""
3538     fi
3539    
3540 gezelter 2081 echo "$as_me:$LINENO: checking to make sure F90 preprocessor flag works" >&5
3541 gezelter 1490 echo $ECHO_N "checking to make sure F90 preprocessor flag works... $ECHO_C" >&6
3542    
3543 gezelter 2081
3544 gezelter 1490 ac_ext=f90
3545     ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3546     ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3547     ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3548    
3549     ac_save_ext=$ac_ext
3550     ac_ext=F90
3551     ac_save_F90FLAGS=$F90FLAGS
3552    
3553     if test "$PREPFLAG"; then
3554     F90FLAGS="${F90FLAGS} ${PREPFLAG}-DTEST"
3555     fi
3556    
3557     cat >conftest.$ac_ext <<_ACEOF
3558    
3559 gezelter 2081
3560 gezelter 1490 program main
3561    
3562     integer :: i
3563     i = 1
3564    
3565 gezelter 2081
3566 gezelter 1490 end program main
3567    
3568     _ACEOF
3569     rm -f conftest.$ac_objext
3570 gezelter 2081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3571     (eval $ac_compile) 2>conftest.er1
3572 gezelter 1490 ac_status=$?
3573 gezelter 2081 grep -v '^ *+' conftest.er1 >conftest.err
3574     rm -f conftest.er1
3575     cat conftest.err >&5
3576     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3577 gezelter 1490 (exit $ac_status); } &&
3578 gezelter 2473 { ac_try='test -z "$ac_f90_werror_flag"
3579     || test ! -s conftest.err'
3580 gezelter 2081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3581 gezelter 1490 (eval $ac_try) 2>&5
3582     ac_status=$?
3583 gezelter 2081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3584     (exit $ac_status); }; } &&
3585     { ac_try='test -s conftest.$ac_objext'
3586     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3587     (eval $ac_try) 2>&5
3588     ac_status=$?
3589     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3590 gezelter 1490 (exit $ac_status); }; }; then
3591     prepflagworks=1
3592     else
3593     echo "$as_me: failed program was:" >&5
3594 gezelter 2081 sed 's/^/| /' conftest.$ac_ext >&5
3595    
3596 gezelter 1490 prepflagworks=0
3597     fi
3598 gezelter 2081 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3599 gezelter 1490
3600     F90FLAGS=$ac_save_F90FLAGS
3601     ac_ext=$ac_save_ext
3602     ac_ext=c
3603     ac_cpp='$CPP $CPPFLAGS'
3604     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3605     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3606     ac_compiler_gnu=$ac_cv_c_compiler_gnu
3607    
3608 gezelter 2081
3609 gezelter 1490 if test "$prepflagworks" = 1; then
3610 gezelter 2081 echo "$as_me:$LINENO: result: yes" >&5
3611 gezelter 1490 echo "${ECHO_T}yes" >&6
3612    
3613     else
3614 gezelter 2081 echo "$as_me:$LINENO: result: no" >&5
3615 gezelter 1490 echo "${ECHO_T}no" >&6
3616 gezelter 2081 { { echo "$as_me:$LINENO: error: Can't figure out working Fortran90 preprocessor flag" >&5
3617 gezelter 1490 echo "$as_me: error: Can't figure out working Fortran90 preprocessor flag" >&2;}
3618     { (exit 1); exit 1; }; }
3619     fi
3620     fi
3621    
3622 gezelter 2081
3623    
3624    
3625    
3626 gezelter 1490 # Try to determine native compiler flags that allow us to use F90 suffix
3627     # for preprocessed f90 source with -D type defines
3628    
3629     if test "$ac_test_PREPDEFFLAG" != "set"; then
3630     PREPDEFFLAG=""
3631     case "${host_cpu}-${host_os}" in
3632    
3633     *linux*) if test "$F90" = ifc -o "$F90" = ifort; then
3634     PREPDEFFLAG=" "
3635     fi;;
3636     *aix*) if test "$F90" = xlf90 -o "$F90" = f90; then
3637     PREPDEFFLAG="-WF,"
3638     fi;;
3639     *darwin*)
3640     if test "$F90" = f90 -o "$F90" = xlf90; then
3641     PREPDEFFLAG="-WF,"
3642     fi;;
3643     esac
3644    
3645     if test -z "$PREPDEFFLAG"; then
3646 gezelter 2081 { echo "$as_me:$LINENO: WARNING: \"Using empty PREPDEFFLAG\"" >&5
3647 gezelter 1490 echo "$as_me: WARNING: \"Using empty PREPDEFFLAG\"" >&2;}
3648     PREPDEFFLAG=" "
3649     fi
3650    
3651 gezelter 2081 echo "$as_me:$LINENO: checking to make sure F90 preprocessor define flag works" >&5
3652 gezelter 1490 echo $ECHO_N "checking to make sure F90 preprocessor define flag works... $ECHO_C" >&6
3653    
3654 gezelter 2081
3655 gezelter 1490 ac_ext=f90
3656     ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3657     ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3658     ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3659    
3660     ac_save_ext=$ac_ext
3661     ac_ext=F90
3662     ac_save_F90FLAGS=$F90FLAGS
3663    
3664     if test "$PREPDEFFLAG"; then
3665     F90FLAGS="${F90FLAGS} ${PREPFLAG} ${PREPDEFFLAG}-DTEST"
3666     fi
3667    
3668     cat >conftest.$ac_ext <<_ACEOF
3669    
3670 gezelter 2081
3671 gezelter 1490 program main
3672    
3673     integer :: i
3674     #ifdef TEST
3675     i = 1
3676     #else
3677     choke me
3678     #endif
3679    
3680 gezelter 2081
3681 gezelter 1490 end program main
3682    
3683     _ACEOF
3684     rm -f conftest.$ac_objext
3685 gezelter 2081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3686     (eval $ac_compile) 2>conftest.er1
3687 gezelter 1490 ac_status=$?
3688 gezelter 2081 grep -v '^ *+' conftest.er1 >conftest.err
3689     rm -f conftest.er1
3690     cat conftest.err >&5
3691     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3692 gezelter 1490 (exit $ac_status); } &&
3693 gezelter 2473 { ac_try='test -z "$ac_f90_werror_flag"
3694     || test ! -s conftest.err'
3695 gezelter 2081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3696 gezelter 1490 (eval $ac_try) 2>&5
3697     ac_status=$?
3698 gezelter 2081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3699     (exit $ac_status); }; } &&
3700     { ac_try='test -s conftest.$ac_objext'
3701     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3702     (eval $ac_try) 2>&5
3703     ac_status=$?
3704     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3705 gezelter 1490 (exit $ac_status); }; }; then
3706     prepdefflagworks=1
3707     else
3708     echo "$as_me: failed program was:" >&5
3709 gezelter 2081 sed 's/^/| /' conftest.$ac_ext >&5
3710    
3711 gezelter 1490 prepdefflagworks=0
3712     fi
3713 gezelter 2081 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3714 gezelter 1490
3715     F90FLAGS=$ac_save_F90FLAGS
3716     ac_ext=$ac_save_ext
3717     ac_ext=c
3718     ac_cpp='$CPP $CPPFLAGS'
3719     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3720     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3721     ac_compiler_gnu=$ac_cv_c_compiler_gnu
3722    
3723 gezelter 2081
3724    
3725 gezelter 1490 if test "$prepdefflagworks" = 1; then
3726 gezelter 2081 echo "$as_me:$LINENO: result: yes" >&5
3727 gezelter 1490 echo "${ECHO_T}yes" >&6
3728    
3729     else
3730 gezelter 2081 echo "$as_me:$LINENO: result: no" >&5
3731 gezelter 1490 echo "${ECHO_T}no" >&6
3732 gezelter 2081 { { echo "$as_me:$LINENO: error: Can't figure out working Fortran90 preprocessor define flag" >&5
3733 gezelter 1490 echo "$as_me: error: Can't figure out working Fortran90 preprocessor define flag" >&2;}
3734     { (exit 1); exit 1; }; }
3735     fi
3736     fi
3737    
3738     ac_ext=f90
3739     ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3740     ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3741     ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3742    
3743 gezelter 2081
3744    
3745 gezelter 1490 ac_ext=f90
3746     ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3747     ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3748     ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3749 gezelter 2081 echo "$as_me:$LINENO: checking how to get verbose linking output from $F90" >&5
3750 gezelter 1490 echo $ECHO_N "checking how to get verbose linking output from $F90... $ECHO_C" >&6
3751     if test "${ac_cv_prog_f90_v+set}" = set; then
3752     echo $ECHO_N "(cached) $ECHO_C" >&6
3753     else
3754    
3755     cat >conftest.$ac_ext <<_ACEOF
3756    
3757     program main
3758    
3759 gezelter 2081
3760 gezelter 1490 end program main
3761    
3762     _ACEOF
3763     rm -f conftest.$ac_objext
3764 gezelter 2081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3765     (eval $ac_compile) 2>conftest.er1
3766 gezelter 1490 ac_status=$?
3767 gezelter 2081 grep -v '^ *+' conftest.er1 >conftest.err
3768     rm -f conftest.er1
3769     cat conftest.err >&5
3770     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3771 gezelter 1490 (exit $ac_status); } &&
3772 gezelter 2473 { ac_try='test -z "$ac_f90_werror_flag"
3773     || test ! -s conftest.err'
3774 gezelter 2081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3775 gezelter 1490 (eval $ac_try) 2>&5
3776     ac_status=$?
3777 gezelter 2081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3778     (exit $ac_status); }; } &&
3779     { ac_try='test -s conftest.$ac_objext'
3780     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3781     (eval $ac_try) 2>&5
3782     ac_status=$?
3783     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3784 gezelter 1490 (exit $ac_status); }; }; then
3785     ac_cv_prog_f90_v=
3786     # Try some options frequently used verbose output
3787     for ac_verb in -v -verbose --verbose -V -\#\#\#; do
3788     ac_ext=f90
3789     ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3790     ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3791     ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3792    
3793     cat >conftest.$ac_ext <<_ACEOF
3794    
3795     program main
3796    
3797 gezelter 2081
3798 gezelter 1490 end program main
3799    
3800     _ACEOF
3801    
3802     # Compile and link our simple test program by passing a flag (argument
3803     # 1 to this macro) to the Fortran 90 compiler in order to get
3804     # "verbose" output that we can then parse for the Fortran 90 linker
3805     # flags.
3806     ac_save_F90FLAGS=$F90FLAGS
3807     F90FLAGS="$F90FLAGS $ac_verb"
3808    
3809 gezelter 2473 (eval echo $as_me:3809: \"$ac_link\") >&5
3810 gezelter 1490 ac_f90_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
3811     echo "$ac_f90_v_output" >&5
3812     F90FLAGS=$ac_save_F90FLAGS
3813    
3814     rm -f conftest.*
3815     ac_ext=f90
3816     ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3817     ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3818     ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3819    
3820     # If we are using xlf then replace all the commas with spaces.
3821     if echo $ac_f90_v_output | grep xlfentry >/dev/null 2>&1; then
3822     ac_f90_v_output=`echo $ac_f90_v_output | sed 's/,/ /g'`
3823     fi
3824    
3825     # If we are using Cray Fortran then delete quotes.
3826     # Use "\"" instead of '"' for font-lock-mode.
3827     # FIXME: a more general fix for quoted arguments with spaces?
3828     if echo $ac_f90_v_output | grep cft90 >/dev/null 2>&1; then
3829     ac_f90_v_output=`echo $ac_f90_v_output | sed "s/\"//g"`
3830     fi
3831     # look for -l* and *.a constructs in the output
3832     for ac_arg in $ac_f90_v_output; do
3833     case $ac_arg in
3834     [\\/]*.a | ?:[\\/]*.a | -[lLRu]*)
3835     ac_cv_prog_f90_v=$ac_verb
3836     break 2 ;;
3837     esac
3838     done
3839     done
3840     if test -z "$ac_cv_prog_f90_v"; then
3841 gezelter 2081 { echo "$as_me:$LINENO: WARNING: cannot determine how to obtain linking information from $F90" >&5
3842 gezelter 1490 echo "$as_me: WARNING: cannot determine how to obtain linking information from $F90" >&2;}
3843     fi
3844     else
3845     echo "$as_me: failed program was:" >&5
3846 gezelter 2081 sed 's/^/| /' conftest.$ac_ext >&5
3847    
3848     { echo "$as_me:$LINENO: WARNING: compilation failed" >&5
3849 gezelter 1490 echo "$as_me: WARNING: compilation failed" >&2;}
3850     fi
3851 gezelter 2081 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3852 gezelter 1490
3853     fi
3854 gezelter 2081 echo "$as_me:$LINENO: result: $ac_cv_prog_f90_v" >&5
3855 gezelter 1490 echo "${ECHO_T}$ac_cv_prog_f90_v" >&6
3856 gezelter 2081 echo "$as_me:$LINENO: checking for Fortran 90 libraries" >&5
3857 gezelter 1490 echo $ECHO_N "checking for Fortran 90 libraries... $ECHO_C" >&6
3858     if test "${ac_cv_flibs+set}" = set; then
3859     echo $ECHO_N "(cached) $ECHO_C" >&6
3860     else
3861     if test "x$F90LIBS" != "x"; then
3862     ac_cv_f90libs="$F90LIBS" # Let the user override the test.
3863     else
3864    
3865     ac_ext=f90
3866     ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3867     ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3868     ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3869    
3870     cat >conftest.$ac_ext <<_ACEOF
3871    
3872     program main
3873    
3874 gezelter 2081
3875 gezelter 1490 end program main
3876    
3877     _ACEOF
3878    
3879     # Compile and link our simple test program by passing a flag (argument
3880     # 1 to this macro) to the Fortran 90 compiler in order to get
3881     # "verbose" output that we can then parse for the Fortran 90 linker
3882     # flags.
3883     ac_save_F90FLAGS=$F90FLAGS
3884     F90FLAGS="$F90FLAGS $ac_cv_prog_f90_v"
3885    
3886 gezelter 2473 (eval echo $as_me:3886: \"$ac_link\") >&5
3887 gezelter 1490 ac_f90_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
3888     echo "$ac_f90_v_output" >&5
3889     F90FLAGS=$ac_save_F90FLAGS
3890    
3891     rm -f conftest.*
3892     ac_ext=f90
3893     ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3894     ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3895     ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3896    
3897     # If we are using xlf then replace all the commas with spaces.
3898     if echo $ac_f90_v_output | grep xlfentry >/dev/null 2>&1; then
3899     ac_f90_v_output=`echo $ac_f90_v_output | sed 's/,/ /g'`
3900     fi
3901    
3902     # If we are using Cray Fortran then delete quotes.
3903     # Use "\"" instead of '"' for font-lock-mode.
3904     # FIXME: a more general fix for quoted arguments with spaces?
3905     if echo $ac_f90_v_output | grep cft90 >/dev/null 2>&1; then
3906     ac_f90_v_output=`echo $ac_f90_v_output | sed "s/\"//g"`
3907     fi
3908    
3909     ac_cv_f90libs=
3910    
3911     # Save positional arguments (if any)
3912     ac_save_positional="$@"
3913    
3914     set X $ac_f90_v_output
3915     while test $# != 1; do
3916     shift
3917     ac_arg=$1
3918     case $ac_arg in
3919     [\\/]*.a | ?:[\\/]*.a)
3920     ac_exists=false
3921     for ac_i in $ac_cv_f90libs; do
3922     if test x"$ac_arg" = x"$ac_i"; then
3923     ac_exists=true
3924     break
3925     fi
3926     done
3927    
3928     if test x"$ac_exists" = xtrue; then
3929     :
3930     else
3931     ac_cv_f90libs="$ac_cv_f90libs $ac_arg"
3932     fi
3933    
3934     ;;
3935     -bI:*)
3936     ac_exists=false
3937     for ac_i in $ac_cv_f90libs; do
3938     if test x"$ac_arg" = x"$ac_i"; then
3939     ac_exists=true
3940     break
3941     fi
3942     done
3943    
3944     if test x"$ac_exists" = xtrue; then
3945     :
3946     else
3947     if test "$ac_compiler_gnu" = yes; then
3948     for ac_link_opt in $ac_arg; do
3949     ac_cv_f90libs="$ac_cv_f90libs -Xlinker $ac_link_opt"
3950     done
3951     else
3952     ac_cv_f90libs="$ac_cv_f90libs $ac_arg"
3953     fi
3954     fi
3955    
3956     ;;
3957     # Ignore these flags.
3958     -lang* | -lcrt[012].o | -lc | -lgcc | -LANG:=*)
3959     ;;
3960     -lkernel32)
3961     test x"$CYGWIN" != xyes && ac_cv_f90libs="$ac_cv_f90libs $ac_arg"
3962     ;;
3963     -[LRuY])
3964     # These flags, when seen by themselves, take an argument.
3965     # We remove the space between option and argument and re-iterate
3966     # unless we find an empty arg or a new option (starting with -)
3967     case $2 in
3968     "" | -*);;
3969     *)
3970     ac_arg="$ac_arg$2"
3971    
3972     shift; shift
3973     set X $ac_arg "$@"
3974     ;;
3975     esac
3976     ;;
3977     -YP,*)
3978     for ac_j in `echo $ac_arg | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do
3979     ac_exists=false
3980     for ac_i in $ac_cv_f90libs; do
3981     if test x"$ac_j" = x"$ac_i"; then
3982     ac_exists=true
3983     break
3984     fi
3985     done
3986    
3987     if test x"$ac_exists" = xtrue; then
3988     :
3989     else
3990     ac_arg="$ac_arg $ac_j"
3991     ac_cv_f90libs="$ac_cv_f90libs $ac_j"
3992     fi
3993    
3994     done
3995     ;;
3996     -[lLR]*)
3997     ac_exists=false
3998     for ac_i in $ac_cv_f90libs; do
3999     if test x"$ac_arg" = x"$ac_i"; then
4000     ac_exists=true
4001     break
4002     fi
4003     done
4004    
4005     if test x"$ac_exists" = xtrue; then
4006     :
4007     else
4008     ac_cv_f90libs="$ac_cv_f90libs $ac_arg"
4009     fi
4010    
4011     ;;
4012     # Ignore everything else.
4013     esac
4014     done
4015     # restore positional arguments
4016     set X $ac_save_positional; shift
4017    
4018     # We only consider "LD_RUN_PATH" on Solaris systems. If this is seen,
4019     # then we insist that the "run path" must be an absolute path (i.e. it
4020     # must begin with a "/").
4021     case `(uname -sr) 2>/dev/null` in
4022     "SunOS 5"*)
4023     ac_ld_run_path=`echo $ac_f90_v_output |
4024     sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'`
4025     test "x$ac_ld_run_path" != x &&
4026    
4027     if test "$ac_compiler_gnu" = yes; then
4028     for ac_link_opt in $ac_ld_run_path; do
4029     ac_cv_f90libs="$ac_cv_f90libs -Xlinker $ac_link_opt"
4030     done
4031     else
4032     ac_cv_f90libs="$ac_cv_f90libs $ac_ld_run_path"
4033     fi
4034     ;;
4035     esac
4036     fi # test "x$F90LIBS" = "x"
4037    
4038     fi
4039 gezelter 2081 echo "$as_me:$LINENO: result: $ac_cv_flibs" >&5
4040 gezelter 1490 echo "${ECHO_T}$ac_cv_flibs" >&6
4041     F90LIBS="$ac_cv_f90libs"
4042    
4043     ac_ext=f90
4044     ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
4045     ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4046     ac_compiler_gnu=$ac_cv_f90_compiler_gnu
4047    
4048 gezelter 2081
4049     echo "$as_me:$LINENO: checking for Fortran 90 name-mangling scheme" >&5
4050 gezelter 1490 echo $ECHO_N "checking for Fortran 90 name-mangling scheme... $ECHO_C" >&6
4051     if test "${ac_cv_f90_mangling+set}" = set; then
4052     echo $ECHO_N "(cached) $ECHO_C" >&6
4053     else
4054     ac_ext=f90
4055     ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
4056     ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4057     ac_compiler_gnu=$ac_cv_f90_compiler_gnu
4058     cat >conftest.$ac_ext <<_ACEOF
4059     subroutine foobar()
4060     return
4061     end
4062     subroutine foo_bar()
4063     return
4064     end
4065     _ACEOF
4066     rm -f conftest.$ac_objext
4067 gezelter 2081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4068     (eval $ac_compile) 2>conftest.er1
4069 gezelter 1490 ac_status=$?
4070 gezelter 2081 grep -v '^ *+' conftest.er1 >conftest.err
4071     rm -f conftest.er1
4072     cat conftest.err >&5
4073     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4074 gezelter 1490 (exit $ac_status); } &&
4075 gezelter 2473 { ac_try='test -z "$ac_f90_werror_flag"
4076     || test ! -s conftest.err'
4077 gezelter 2081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4078 gezelter 1490 (eval $ac_try) 2>&5
4079     ac_status=$?
4080 gezelter 2081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4081     (exit $ac_status); }; } &&
4082     { ac_try='test -s conftest.$ac_objext'
4083     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4084     (eval $ac_try) 2>&5
4085     ac_status=$?
4086     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4087 gezelter 1490 (exit $ac_status); }; }; then
4088     mv conftest.$ac_objext cf90_test.$ac_objext
4089    
4090     ac_ext=c
4091     ac_cpp='$CPP $CPPFLAGS'
4092     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4093     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4094     ac_compiler_gnu=$ac_cv_c_compiler_gnu
4095    
4096     ac_save_LIBS=$LIBS
4097     LIBS="cf90_test.$ac_objext $F90LIBS $LIBS"
4098    
4099     ac_success=no
4100     for ac_foobar in foobar FOOBAR; do
4101     for ac_underscore in "" "_"; do
4102     ac_func="$ac_foobar$ac_underscore"
4103     cat >conftest.$ac_ext <<_ACEOF
4104 gezelter 2081 /* confdefs.h. */
4105     _ACEOF
4106     cat confdefs.h >>conftest.$ac_ext
4107     cat >>conftest.$ac_ext <<_ACEOF
4108     /* end confdefs.h. */
4109 gezelter 1490
4110     /* Override any gcc2 internal prototype to avoid an error. */
4111     #ifdef __cplusplus
4112     extern "C"
4113     #endif
4114     /* We use char because int might match the return type of a gcc2
4115     builtin and then its argument prototype would still apply. */
4116     char $ac_func ();
4117     int
4118     main ()
4119     {
4120     $ac_func ();
4121     ;
4122     return 0;
4123     }
4124     _ACEOF
4125     rm -f conftest.$ac_objext conftest$ac_exeext
4126 gezelter 2081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4127     (eval $ac_link) 2>conftest.er1
4128 gezelter 1490 ac_status=$?
4129 gezelter 2081 grep -v '^ *+' conftest.er1 >conftest.err
4130     rm -f conftest.er1
4131     cat conftest.err >&5
4132     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4133 gezelter 1490 (exit $ac_status); } &&
4134 gezelter 2473 { ac_try='test -z "$ac_c_werror_flag"
4135     || test ! -s conftest.err'
4136 gezelter 2081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4137 gezelter 1490 (eval $ac_try) 2>&5
4138     ac_status=$?
4139 gezelter 2081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4140     (exit $ac_status); }; } &&
4141     { ac_try='test -s conftest$ac_exeext'
4142     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4143     (eval $ac_try) 2>&5
4144     ac_status=$?
4145     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4146 gezelter 1490 (exit $ac_status); }; }; then
4147     ac_success=yes; break 2
4148     else
4149     echo "$as_me: failed program was:" >&5
4150 gezelter 2081 sed 's/^/| /' conftest.$ac_ext >&5
4151    
4152 gezelter 1490 fi
4153 gezelter 2081 rm -f conftest.err conftest.$ac_objext \
4154     conftest$ac_exeext conftest.$ac_ext
4155 gezelter 1490 done
4156     done
4157    
4158     if test "$ac_success" = "yes"; then
4159     case $ac_foobar in
4160     foobar)
4161     ac_case=lower
4162     ac_foo_bar=foo_bar
4163     ;;
4164     FOOBAR)
4165     ac_case=upper
4166     ac_foo_bar=FOO_BAR
4167     ;;
4168     esac
4169    
4170     ac_success_extra=no
4171     for ac_extra in "" "_"; do
4172     ac_func="$ac_foo_bar$ac_underscore$ac_extra"
4173    
4174     cat >conftest.$ac_ext <<_ACEOF
4175 gezelter 2081 /* confdefs.h. */
4176     _ACEOF
4177     cat confdefs.h >>conftest.$ac_ext
4178     cat >>conftest.$ac_ext <<_ACEOF
4179     /* end confdefs.h. */
4180 gezelter 1490
4181     /* Override any gcc2 internal prototype to avoid an error. */
4182     #ifdef __cplusplus
4183     extern "C"
4184     #endif
4185     /* We use char because int might match the return type of a gcc2
4186     builtin and then its argument prototype would still apply. */
4187     char $ac_func ();
4188     int
4189     main ()
4190     {
4191     $ac_func ();
4192     ;
4193     return 0;
4194     }
4195     _ACEOF
4196     rm -f conftest.$ac_objext conftest$ac_exeext
4197 gezelter 2081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4198     (eval $ac_link) 2>conftest.er1
4199 gezelter 1490 ac_status=$?
4200 gezelter 2081 grep -v '^ *+' conftest.er1 >conftest.err
4201     rm -f conftest.er1
4202     cat conftest.err >&5
4203     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4204 gezelter 1490 (exit $ac_status); } &&
4205 gezelter 2473 { ac_try='test -z "$ac_c_werror_flag"
4206     || test ! -s conftest.err'
4207 gezelter 2081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4208 gezelter 1490 (eval $ac_try) 2>&5
4209     ac_status=$?
4210 gezelter 2081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4211     (exit $ac_status); }; } &&
4212     { ac_try='test -s conftest$ac_exeext'
4213     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4214     (eval $ac_try) 2>&5
4215     ac_status=$?
4216     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4217 gezelter 1490 (exit $ac_status); }; }; then
4218     ac_success_extra=yes; break
4219     else
4220     echo "$as_me: failed program was:" >&5
4221 gezelter 2081 sed 's/^/| /' conftest.$ac_ext >&5
4222    
4223 gezelter 1490 fi
4224 gezelter 2081 rm -f conftest.err conftest.$ac_objext \
4225     conftest$ac_exeext conftest.$ac_ext
4226 gezelter 1490 done
4227    
4228     if test "$ac_success_extra" = "yes"; then
4229     ac_cv_f90_mangling="$ac_case case"
4230     if test -z "$ac_underscore"; then
4231     ac_cv_f90_mangling="$ac_cv_f90_mangling, no underscore"
4232     else
4233     ac_cv_f90_mangling="$ac_cv_f90_mangling, underscore"
4234    
4235     fi
4236     if test -z "$ac_extra"; then
4237     ac_cv_f90_mangling="$ac_cv_f90_mangling, no extra underscore"
4238     else
4239     ac_cv_f90_mangling="$ac_cv_f90_mangling, extra underscore"
4240     fi
4241     else
4242     ac_cv_f90_mangling="unknown"
4243     fi
4244     else
4245     ac_cv_f90_mangling="unknown"
4246    
4247     fi
4248    
4249     LIBS=$ac_save_LIBS
4250     ac_ext=f90
4251     ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
4252     ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4253     ac_compiler_gnu=$ac_cv_f90_compiler_gnu
4254     rm -f cf90_test* conftest*
4255     else
4256     echo "$as_me: failed program was:" >&5
4257 gezelter 2081 sed 's/^/| /' conftest.$ac_ext >&5
4258    
4259 gezelter 1490 fi
4260 gezelter 2081 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4261 gezelter 1490 ac_ext=f90
4262     ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
4263     ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4264     ac_compiler_gnu=$ac_cv_f90_compiler_gnu
4265    
4266     fi
4267 gezelter 2081 echo "$as_me:$LINENO: result: $ac_cv_f90_mangling" >&5
4268 gezelter 1490 echo "${ECHO_T}$ac_cv_f90_mangling" >&6
4269    
4270 gezelter 2081
4271    
4272 gezelter 1490 case $ac_cv_f90_mangling in
4273     "lower case, no underscore, no extra underscore")
4274 gezelter 2081 cat >>confdefs.h <<\_ACEOF
4275 gezelter 1490 #define F90_FUNC(name,NAME) name
4276 gezelter 2081 _ACEOF
4277 gezelter 1490
4278 gezelter 2081 cat >>confdefs.h <<\_ACEOF
4279 gezelter 1490 #define F90_FUNC_(name,NAME) name
4280 gezelter 2081 _ACEOF
4281 gezelter 1490 ;;
4282     "lower case, no underscore, extra underscore")
4283 gezelter 2081 cat >>confdefs.h <<\_ACEOF
4284 gezelter 1490 #define F90_FUNC(name,NAME) name
4285 gezelter 2081 _ACEOF
4286 gezelter 1490
4287 gezelter 2081 cat >>confdefs.h <<\_ACEOF
4288 gezelter 1490 #define F90_FUNC_(name,NAME) name ## _
4289 gezelter 2081 _ACEOF
4290 gezelter 1490 ;;
4291     "lower case, underscore, no extra underscore")
4292 gezelter 2081 cat >>confdefs.h <<\_ACEOF
4293 gezelter 1490 #define F90_FUNC(name,NAME) name ## _
4294 gezelter 2081 _ACEOF
4295 gezelter 1490
4296 gezelter 2081 cat >>confdefs.h <<\_ACEOF
4297 gezelter 1490 #define F90_FUNC_(name,NAME) name ## _
4298 gezelter 2081 _ACEOF
4299 gezelter 1490 ;;
4300     "lower case, underscore, extra underscore")
4301 gezelter 2081 cat >>confdefs.h <<\_ACEOF
4302 gezelter 1490 #define F90_FUNC(name,NAME) name ## _
4303 gezelter 2081 _ACEOF
4304 gezelter 1490
4305 gezelter 2081 cat >>confdefs.h <<\_ACEOF
4306 gezelter 1490 #define F90_FUNC_(name,NAME) name ## __
4307 gezelter 2081 _ACEOF
4308 gezelter 1490 ;;
4309     "upper case, no underscore, no extra underscore")
4310 gezelter 2081 cat >>confdefs.h <<\_ACEOF
4311 gezelter 1490 #define F90_FUNC(name,NAME) NAME
4312 gezelter 2081 _ACEOF
4313 gezelter 1490
4314 gezelter 2081 cat >>confdefs.h <<\_ACEOF
4315 gezelter 1490 #define F90_FUNC_(name,NAME) NAME
4316 gezelter 2081 _ACEOF
4317 gezelter 1490 ;;
4318     "upper case, no underscore, extra underscore")
4319 gezelter 2081 cat >>confdefs.h <<\_ACEOF
4320 gezelter 1490 #define F90_FUNC(name,NAME) NAME
4321 gezelter 2081 _ACEOF
4322 gezelter 1490
4323 gezelter 2081 cat >>confdefs.h <<\_ACEOF
4324 gezelter 1490 #define F90_FUNC_(name,NAME) NAME ## _
4325 gezelter 2081 _ACEOF
4326 gezelter 1490 ;;
4327     "upper case, underscore, no extra underscore")
4328 gezelter 2081 cat >>confdefs.h <<\_ACEOF
4329 gezelter 1490 #define F90_FUNC(name,NAME) NAME ## _
4330 gezelter 2081 _ACEOF
4331 gezelter 1490
4332 gezelter 2081 cat >>confdefs.h <<\_ACEOF
4333 gezelter 1490 #define F90_FUNC_(name,NAME) NAME ## _
4334 gezelter 2081 _ACEOF
4335 gezelter 1490 ;;
4336     "upper case, underscore, extra underscore")
4337 gezelter 2081 cat >>confdefs.h <<\_ACEOF
4338 gezelter 1490 #define F90_FUNC(name,NAME) NAME ## _
4339 gezelter 2081 _ACEOF
4340 gezelter 1490
4341 gezelter 2081 cat >>confdefs.h <<\_ACEOF
4342 gezelter 1490 #define F90_FUNC_(name,NAME) NAME ## __
4343 gezelter 2081 _ACEOF
4344 gezelter 1490 ;;
4345     *)
4346 gezelter 2081 { echo "$as_me:$LINENO: WARNING: unknown Fortran 90 name-mangling scheme" >&5
4347 gezelter 1490 echo "$as_me: WARNING: unknown Fortran 90 name-mangling scheme" >&2;}
4348     ;;
4349     esac
4350    
4351 gezelter 2081
4352    
4353    
4354    
4355     echo "$as_me:$LINENO: checking for module suffix" >&5
4356 gezelter 1490 echo $ECHO_N "checking for module suffix... $ECHO_C" >&6
4357     rm -f conftest*
4358     # Intel ifc compiler generates files by the name of work.pc and work.pcl (!)
4359     rm -f work*
4360     cat >conftest.f90 <<EOF
4361     module conftest
4362     integer n
4363     parameter (n=1)
4364     end module conftest
4365     EOF
4366     # SGI and absoft compilers generates module name in upper case!
4367     testname="conftest"
4368     modcase="lower"
4369     if $F90 -c conftest.f90 > conftest.out 2>&1 ; then
4370     MOD=`ls conftest* | grep -v conftest.f | grep -v conftest.o`
4371     MOD=`echo "$MOD" | sed -e 's/conftest\.//g'`
4372     if test -z "$MOD" ; then
4373     MOD=`ls CONFTEST* 2>/dev/null \
4374     | grep -v CONFTEST.f | grep -v CONFTEST.o`
4375     MOD=`echo "$MOD" | sed -e 's/CONFTEST\.//g'`
4376     if test -n "$MOD" ; then
4377     testname="CONFTEST"
4378     modcase="upper"
4379     fi
4380     fi
4381     if test -z "$MOD" ; then
4382 gezelter 2081 echo "$as_me:$LINENO: result: unknown" >&5
4383 gezelter 1490 echo "${ECHO_T}unknown" >&6
4384     # Use mod if we can't figure it out
4385     MOD="mod"
4386     else
4387 gezelter 2081 echo "$as_me:$LINENO: result: $MOD" >&5
4388 gezelter 1490 echo "${ECHO_T}$MOD" >&6
4389     fi
4390     if test -s work.pcl ; then
4391 gezelter 2081 { echo "$as_me:$LINENO: WARNING: Compiler generates auxillery files!" >&5
4392 gezelter 1490 echo "$as_me: WARNING: Compiler generates auxillery files!" >&2;}
4393     fi
4394     else
4395 gezelter 2081 echo "$as_me:$LINENO: result: unknown" >&5
4396 gezelter 1490 echo "${ECHO_T}unknown" >&6
4397     fi
4398    
4399 gezelter 2081
4400    
4401    
4402    
4403 gezelter 1490 # Check for module include path (some use -I, some (Solaris) use -M, some
4404     # (absoft) use -p).
4405     # Intel compilers use a wierd system: -cl,filename.pcl . If no file is
4406     # specified, work.pcl and work.pc are created. However, if you specify
4407     # a file, it must contain a the name of a file ending in .pc . Ugh!
4408     # Use the module made above
4409 gezelter 2081 echo "$as_me:$LINENO: checking for module directory path flag" >&5
4410 gezelter 1490 echo $ECHO_N "checking for module directory path flag... $ECHO_C" >&6
4411     rm -f conftest*
4412     # Intel ifc compiler generates files by the name of work.pc and work.pcl (!)
4413     rm -f work*
4414     cat >conftest.f90 <<EOF
4415     module conftest
4416     integer n
4417     parameter (n=1)
4418     end module conftest
4419     EOF
4420     # SGI and absoft compilers generates module name in upper case!
4421     testname="conftest"
4422     if $F90 -c conftest.f90 > conftest.out 2>&1 ; then
4423     mod=`ls CONFTEST* 2>/dev/null | grep -v CONFTEST.f | grep -v CONFTEST.o`
4424     mod=`echo "$mod" | sed -e 's/CONFTEST\.//g'`
4425     if test -n "$mod" ; then
4426     testname="CONFTEST"
4427     fi
4428     madedir=0
4429     if test ! -d conf ; then mkdir conf ; madedir=1; fi
4430     cp $testname.$MOD conf
4431     rm -f conftest* CONFTEST*
4432     cat >conftest1.f90 <<EOF
4433     program main
4434     use conftest
4435     print *, n
4436     end
4437     EOF
4438     F90_WORK_FILES_ARG=""
4439     F90MODINCSPEC=""
4440     if $F90 -c -Iconf conftest1.f90 > conftest.out 2>&1 ; then
4441     MODDIRFLAG="-I"
4442     F90MODINCSPEC="-I<dir>"
4443 gezelter 2081 echo "$as_me:$LINENO: result: -I" >&5
4444 gezelter 1490 echo "${ECHO_T}-I" >&6
4445     elif $F90 -c -Mconf conftest1.f90 >> conftest.out 2>&1 ; then
4446     MODDIRFLAG="-M"
4447     F90MODINCSPEC="-M<dir>"
4448 gezelter 2081 echo "$as_me:$LINENO: result: -M" >&5
4449 gezelter 1490 echo "${ECHO_T}-M" >&6
4450     elif $F90 -c -pconf conftest1.f90 >> conftest.out 2>&1 ; then
4451     MODDIRFLAG="-p"
4452     F90MODINCSPEC="-p<dir>"
4453 gezelter 2081 echo "$as_me:$LINENO: result: -p" >&5
4454 gezelter 1490 echo "${ECHO_T}-p" >&6
4455     elif test -s work.pc ; then
4456     cp work.pc conf/mpimod.pc
4457     echo "mpimod.pc" > conf/mpimod.pcl
4458     echo "`pwd`/conf/mpimod.pc" >> conf/mpimod.pcl
4459     if $F90 -c -cl,conf/mpimod.pcl conftest1.f >>conftest.out 2>&1 ; then
4460     MODDIRFLAG='-cl,mpimod.pcl'
4461 gezelter 2081 echo "$as_me:$LINENO: result: -cl,filename where filename contains a list of files and directories" >&5
4462 gezelter 1490 echo "${ECHO_T}-cl,filename where filename contains a list of files and directories" >&6
4463     F90_WORK_FILES_ARG="-cl,mpimod.pcl"
4464     F90MODINCSPEC="-cl,<dir>/<file>mod.pcl"
4465    
4466     else
4467     # The version of the Intel compiler that I have refuses to let
4468     # you put the "work catalog" list anywhere but the current
4469     # directory. For example, you cannot in
4470     :
4471     fi
4472     fi
4473     if test -z "MODDIRFLAG" ; then
4474 gezelter 2081 echo "$as_me:$LINENO: result: unknown" >&5
4475 gezelter 1490 echo "${ECHO_T}unknown" >&6
4476     fi
4477    
4478 gezelter 2081
4479 gezelter 1490 rm -f conftest* conf/conftest* conf/CONFTEST* CONFTEST* conf/mpimod*
4480     if test $madedir = 1 ; then rmdir conf ; fi
4481     fi
4482    
4483 gezelter 2081
4484     echo "$as_me:$LINENO: checking for Fortran 90 module file names" >&5
4485 gezelter 1535 echo $ECHO_N "checking for Fortran 90 module file names... $ECHO_C" >&6
4486     if test "${ac_cv_f90_module_names+set}" = set; then
4487     echo $ECHO_N "(cached) $ECHO_C" >&6
4488     else
4489     ac_ext=f90
4490     ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
4491     ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4492     ac_compiler_gnu=$ac_cv_f90_compiler_gnu
4493    
4494     # carry out the test in a new directory, so that we don't miss anything
4495     mkdir conftest
4496     cd conftest
4497     cat >conftest.$ac_ext <<_ACEOF
4498     MODULE Bar
4499     END MODULE Bar
4500     _ACEOF
4501     rm -f conftest.$ac_objext
4502 gezelter 2081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4503     (eval $ac_compile) 2>conftest.er1
4504 gezelter 1535 ac_status=$?
4505 gezelter 2081 grep -v '^ *+' conftest.er1 >conftest.err
4506     rm -f conftest.er1
4507     cat conftest.err >&5
4508     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4509 gezelter 1535 (exit $ac_status); } &&
4510 gezelter 2473 { ac_try='test -z "$ac_f90_werror_flag"
4511     || test ! -s conftest.err'
4512 gezelter 2081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4513 gezelter 1535 (eval $ac_try) 2>&5
4514     ac_status=$?
4515 gezelter 2081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4516     (exit $ac_status); }; } &&
4517     { ac_try='test -s conftest.$ac_objext'
4518     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4519     (eval $ac_try) 2>&5
4520     ac_status=$?
4521     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4522 gezelter 1535 (exit $ac_status); }; }; then
4523     ac_cv_f90_module_names=
4524     ac_file_list=*
4525     for ac_file in $ac_file_list; do
4526     case $ac_file in
4527     # don't care for original source and object files
4528     conftest.$ac_ext | conftest.$ac_objext | conftest.err )
4529     :
4530     ;;
4531     # look for new files derived from the file name
4532     *conftest*)
4533     ac_pat=`echo $ac_file | sed s/conftest/%FILE%/`
4534     ac_exists=false
4535     for ac_i in $ac_cv_f90_module_names; do
4536     if test x"$ac_pat" = x"$ac_i"; then
4537     ac_exists=true
4538     break
4539     fi
4540     done
4541    
4542     if test x"$ac_exists" = xtrue; then
4543     :
4544     else
4545     ac_cv_f90_module_names="$ac_cv_f90_module_names $ac_pat"
4546     fi
4547    
4548     ;;
4549     # look for new files derived from the module name,
4550     # with different case translation schemes
4551     *Bar*)
4552     ac_pat=`echo $ac_file | sed s/Bar/%Module%/`
4553     ac_exists=false
4554     for ac_i in $ac_cv_f90_module_names; do
4555     if test x"$ac_pat" = x"$ac_i"; then
4556     ac_exists=true
4557     break
4558     fi
4559     done
4560    
4561     if test x"$ac_exists" = xtrue; then
4562     :
4563     else
4564     ac_cv_f90_module_names="$ac_cv_f90_module_names $ac_pat"
4565     fi
4566    
4567     ;;
4568     *bar*)
4569     ac_pat=`echo $ac_file | sed s/bar/%module%/`
4570     ac_exists=false
4571     for ac_i in $ac_cv_f90_module_names; do
4572     if test x"$ac_pat" = x"$ac_i"; then
4573     ac_exists=true
4574     break
4575     fi
4576     done
4577    
4578     if test x"$ac_exists" = xtrue; then
4579     :
4580     else
4581     ac_cv_f90_module_names="$ac_cv_f90_module_names $ac_pat"
4582     fi
4583    
4584     ;;
4585     *BAR*)
4586     ac_pat=`echo $ac_file | sed s/BAR/%MODULE%/`
4587     ac_exists=false
4588     for ac_i in $ac_cv_f90_module_names; do
4589     if test x"$ac_pat" = x"$ac_i"; then
4590     ac_exists=true
4591     break
4592     fi
4593     done
4594    
4595     if test x"$ac_exists" = xtrue; then
4596     :
4597     else
4598     ac_cv_f90_module_names="$ac_cv_f90_module_names $ac_pat"
4599     fi
4600    
4601     ;;
4602     # Other files - we have no idea how they are generated
4603     *)
4604 gezelter 2081 { echo "$as_me:$LINENO: WARNING: Bogus file found: $ac_file" >&5
4605 gezelter 1535 echo "$as_me: WARNING: Bogus file found: $ac_file" >&2;}
4606     ;;
4607     esac
4608     done
4609     if test "x$ac_cv_f90_module_names" = "x"; then
4610 gezelter 2081 { echo "$as_me:$LINENO: WARNING: Couldn't determine module file names" >&5
4611 gezelter 1535 echo "$as_me: WARNING: Couldn't determine module file names" >&2;}
4612     fi
4613    
4614     else
4615     echo "$as_me: failed program was:" >&5
4616 gezelter 2081 sed 's/^/| /' conftest.$ac_ext >&5
4617    
4618 gezelter 1535 ac_cv_f90_module_names=
4619 gezelter 2081 { echo "$as_me:$LINENO: WARNING: Couldn't determine module file names" >&5
4620 gezelter 1535 echo "$as_me: WARNING: Couldn't determine module file names" >&2;}
4621     fi
4622 gezelter 2081 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4623 gezelter 1535 cd ..
4624     # cleanup
4625     rm -rf conftest
4626     ac_ext=f90
4627     ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
4628     ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4629     ac_compiler_gnu=$ac_cv_f90_compiler_gnu
4630    
4631     fi
4632 gezelter 2081 echo "$as_me:$LINENO: result: $ac_cv_f90_module_names" >&5
4633 gezelter 1535 echo "${ECHO_T}$ac_cv_f90_module_names" >&6 # AC_CACHE_CHECK
4634    
4635     # We now generate a shell script that will help us to figure out the correct
4636     # module file names, using the value of ac_cv_f90_module_names
4637    
4638     echo "Generating shell script modnam"
4639    
4640     cat > scripts/modnam << EOF
4641     #! /bin/sh
4642     # This script is auto-generated by configure
4643     #
4644     usage="\\
4645     Usage: \$0 [FILES]
4646    
4647     [FILES] are Fortran 90 source files.
4648     The output is a list of module file names that the Fortran 90 compiler
4649     generates when compiling [FILES]."
4650    
4651     list=
4652     empty=
4653    
4654     if test \$# -eq 0; then
4655     echo "\$usage"; exit 0
4656     fi
4657    
4658     while test \$# != 0; do
4659    
4660     file=\$1
4661     shift
4662    
4663     # strip suffix
4664     base=\`echo \$file | sed 's/[.][^.]*$//'\`
4665    
4666     test ! -f \$file && continue
4667    
4668     # Look for module definitions and transform them to upper / lower case
4669     mods=\`cat \$file | sed '/^ *[mM][oO][dD][uU][lL][eE]/!d;s/^ *[mM][oO][dD][uU][lL][eE] *\([A-Za-z_][A-Za-z0-9_]*\).*\$/\1/'\`
4670     upper=\`echo \$mods | tr a-z A-Z\`
4671     lower=\`echo \$mods | tr A-Z a-z\`
4672    
4673     # Here, the patterns for generating module file names were inserted by configure
4674     for trans in $ac_cv_f90_module_names; do
4675    
4676     pat=\`echo \$trans | sed 's/.*\(%.*%\).*/\1/'\`
4677     var=empty
4678     case \$pat in
4679     %MODULE%)
4680     var=upper ;;
4681     %Module%)
4682     var=mods ;;
4683     %module%)
4684     var=lower ;;
4685     %FILE%)
4686     test -n "\$mods" && var=base ;;
4687     esac
4688     new=\`eval '(for i in \$'\$var '; do echo \$trans | sed s/\$pat/\$i/; done)'\`
4689     list="\$list \$new"
4690     done
4691     done
4692    
4693     echo \$list
4694     # end of configure-generated script
4695     EOF
4696     chmod 755 scripts/modnam
4697    
4698     pat=`echo $ac_cv_f90_module_names | sed 's/.*\(%.*%\).*/\1/'`
4699     F90_MODULE_NAMES=empty
4700     case $pat in
4701     %MODULE%)
4702     F90_MODULE_NAMES=UPPER ;;
4703     %Module%)
4704     F90_MODULE_NAMES=Mixed ;;
4705     %module%)
4706     F90_MODULE_NAMES=lower ;;
4707     *)
4708     F90_MODULE_NAMES=unknown ;;
4709     esac
4710    
4711 gezelter 1490 ac_ext=c
4712     ac_cpp='$CPP $CPPFLAGS'
4713     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4714     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4715     ac_compiler_gnu=$ac_cv_c_compiler_gnu
4716    
4717 gezelter 2081
4718 gezelter 2453 ac_ext=cc
4719     ac_cpp='$CXXCPP $CPPFLAGS'
4720     ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4721     ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4722     ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4723    
4724    
4725    
4726     echo "$as_me:$LINENO: checking for asin in -lm" >&5
4727     echo $ECHO_N "checking for asin in -lm... $ECHO_C" >&6
4728     if test "${ac_cv_lib_m_asin+set}" = set; then
4729     echo $ECHO_N "(cached) $ECHO_C" >&6
4730     else
4731     ac_check_lib_save_LIBS=$LIBS
4732     LIBS="-lm $LIBS"
4733     cat >conftest.$ac_ext <<_ACEOF
4734     /* confdefs.h. */
4735     _ACEOF
4736     cat confdefs.h >>conftest.$ac_ext
4737     cat >>conftest.$ac_ext <<_ACEOF
4738     /* end confdefs.h. */
4739    
4740     /* Override any gcc2 internal prototype to avoid an error. */
4741     #ifdef __cplusplus
4742     extern "C"
4743     #endif
4744     /* We use char because int might match the return type of a gcc2
4745     builtin and then its argument prototype would still apply. */
4746     char asin ();
4747     int
4748     main ()
4749     {
4750     asin ();
4751     ;
4752     return 0;
4753     }
4754     _ACEOF
4755     rm -f conftest.$ac_objext conftest$ac_exeext
4756     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4757     (eval $ac_link) 2>conftest.er1
4758     ac_status=$?
4759     grep -v '^ *+' conftest.er1 >conftest.err
4760     rm -f conftest.er1
4761     cat conftest.err >&5
4762     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4763     (exit $ac_status); } &&
4764 gezelter 2473 { ac_try='test -z "$ac_cxx_werror_flag"
4765     || test ! -s conftest.err'
4766 gezelter 2453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4767     (eval $ac_try) 2>&5
4768     ac_status=$?
4769     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4770     (exit $ac_status); }; } &&
4771     { ac_try='test -s conftest$ac_exeext'
4772     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4773     (eval $ac_try) 2>&5
4774     ac_status=$?
4775     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4776     (exit $ac_status); }; }; then
4777     ac_cv_lib_m_asin=yes
4778     else
4779     echo "$as_me: failed program was:" >&5
4780     sed 's/^/| /' conftest.$ac_ext >&5
4781    
4782     ac_cv_lib_m_asin=no
4783     fi
4784     rm -f conftest.err conftest.$ac_objext \
4785     conftest$ac_exeext conftest.$ac_ext
4786     LIBS=$ac_check_lib_save_LIBS
4787     fi
4788     echo "$as_me:$LINENO: result: $ac_cv_lib_m_asin" >&5
4789     echo "${ECHO_T}$ac_cv_lib_m_asin" >&6
4790     if test $ac_cv_lib_m_asin = yes; then
4791     cat >>confdefs.h <<_ACEOF
4792     #define HAVE_LIBM 1
4793     _ACEOF
4794    
4795     LIBS="-lm $LIBS"
4796    
4797     else
4798     exit
4799     fi
4800    
4801    
4802 gezelter 1490 ac_ext=c
4803     ac_cpp='$CPP $CPPFLAGS'
4804     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4805     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4806     ac_compiler_gnu=$ac_cv_c_compiler_gnu
4807    
4808 gezelter 2081
4809     echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4810     echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4811     if test "${ac_cv_header_stdc+set}" = set; then
4812     echo $ECHO_N "(cached) $ECHO_C" >&6
4813     else
4814     cat >conftest.$ac_ext <<_ACEOF
4815     /* confdefs.h. */
4816     _ACEOF
4817     cat confdefs.h >>conftest.$ac_ext
4818     cat >>conftest.$ac_ext <<_ACEOF
4819     /* end confdefs.h. */
4820     #include <stdlib.h>
4821     #include <stdarg.h>
4822     #include <string.h>
4823     #include <float.h>
4824    
4825     int
4826     main ()
4827     {
4828    
4829     ;
4830     return 0;
4831     }
4832     _ACEOF
4833     rm -f conftest.$ac_objext
4834     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4835     (eval $ac_compile) 2>conftest.er1
4836     ac_status=$?
4837     grep -v '^ *+' conftest.er1 >conftest.err
4838     rm -f conftest.er1
4839     cat conftest.err >&5
4840     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4841     (exit $ac_status); } &&
4842 gezelter 2473 { ac_try='test -z "$ac_c_werror_flag"
4843     || test ! -s conftest.err'
4844 gezelter 2081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4845     (eval $ac_try) 2>&5
4846     ac_status=$?
4847     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4848     (exit $ac_status); }; } &&
4849     { ac_try='test -s conftest.$ac_objext'
4850     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4851     (eval $ac_try) 2>&5
4852     ac_status=$?
4853     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4854     (exit $ac_status); }; }; then
4855     ac_cv_header_stdc=yes
4856     else
4857     echo "$as_me: failed program was:" >&5
4858     sed 's/^/| /' conftest.$ac_ext >&5
4859    
4860     ac_cv_header_stdc=no
4861     fi
4862     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4863    
4864     if test $ac_cv_header_stdc = yes; then
4865     # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4866     cat >conftest.$ac_ext <<_ACEOF
4867     /* confdefs.h. */
4868     _ACEOF
4869     cat confdefs.h >>conftest.$ac_ext
4870     cat >>conftest.$ac_ext <<_ACEOF
4871     /* end confdefs.h. */
4872     #include <string.h>
4873    
4874     _ACEOF
4875     if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4876     $EGREP "memchr" >/dev/null 2>&1; then
4877     :
4878     else
4879     ac_cv_header_stdc=no
4880     fi
4881     rm -f conftest*
4882    
4883     fi
4884    
4885     if test $ac_cv_header_stdc = yes; then
4886     # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4887     cat >conftest.$ac_ext <<_ACEOF
4888     /* confdefs.h. */
4889     _ACEOF
4890     cat confdefs.h >>conftest.$ac_ext
4891     cat >>conftest.$ac_ext <<_ACEOF
4892     /* end confdefs.h. */
4893     #include <stdlib.h>
4894    
4895     _ACEOF
4896     if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4897     $EGREP "free" >/dev/null 2>&1; then
4898     :
4899     else
4900     ac_cv_header_stdc=no
4901     fi
4902     rm -f conftest*
4903    
4904     fi
4905    
4906     if test $ac_cv_header_stdc = yes; then
4907     # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4908     if test "$cross_compiling" = yes; then
4909     :
4910     else
4911     cat >conftest.$ac_ext <<_ACEOF
4912     /* confdefs.h. */
4913     _ACEOF
4914     cat confdefs.h >>conftest.$ac_ext
4915     cat >>conftest.$ac_ext <<_ACEOF
4916     /* end confdefs.h. */
4917     #include <ctype.h>
4918     #if ((' ' & 0x0FF) == 0x020)
4919     # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4920     # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4921     #else
4922     # define ISLOWER(c) \
4923     (('a' <= (c) && (c) <= 'i') \
4924     || ('j' <= (c) && (c) <= 'r') \
4925     || ('s' <= (c) && (c) <= 'z'))
4926     # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4927     #endif
4928    
4929     #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4930     int
4931     main ()
4932     {
4933     int i;
4934     for (i = 0; i < 256; i++)
4935     if (XOR (islower (i), ISLOWER (i))
4936     || toupper (i) != TOUPPER (i))
4937     exit(2);
4938     exit (0);
4939     }
4940     _ACEOF
4941     rm -f conftest$ac_exeext
4942     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4943     (eval $ac_link) 2>&5
4944     ac_status=$?
4945     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4946     (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4947     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4948     (eval $ac_try) 2>&5
4949     ac_status=$?
4950     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4951     (exit $ac_status); }; }; then
4952     :
4953     else
4954     echo "$as_me: program exited with status $ac_status" >&5
4955     echo "$as_me: failed program was:" >&5
4956     sed 's/^/| /' conftest.$ac_ext >&5
4957    
4958     ( exit $ac_status )
4959     ac_cv_header_stdc=no
4960     fi
4961     rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4962     fi
4963     fi
4964     fi
4965     echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4966     echo "${ECHO_T}$ac_cv_header_stdc" >&6
4967     if test $ac_cv_header_stdc = yes; then
4968    
4969     cat >>confdefs.h <<\_ACEOF
4970     #define STDC_HEADERS 1
4971     _ACEOF
4972    
4973     fi
4974    
4975     # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4976    
4977    
4978    
4979    
4980    
4981    
4982    
4983    
4984    
4985     for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4986     inttypes.h stdint.h unistd.h
4987 gezelter 1490 do
4988 gezelter 2081 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4989     echo "$as_me:$LINENO: checking for $ac_header" >&5
4990 gezelter 1490 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4991 gezelter 2081 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4992 gezelter 1490 echo $ECHO_N "(cached) $ECHO_C" >&6
4993     else
4994     cat >conftest.$ac_ext <<_ACEOF
4995 gezelter 2081 /* confdefs.h. */
4996     _ACEOF
4997     cat confdefs.h >>conftest.$ac_ext
4998     cat >>conftest.$ac_ext <<_ACEOF
4999     /* end confdefs.h. */
5000     $ac_includes_default
5001    
5002 gezelter 1490 #include <$ac_header>
5003     _ACEOF
5004 gezelter 2081 rm -f conftest.$ac_objext
5005     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5006     (eval $ac_compile) 2>conftest.er1
5007     ac_status=$?
5008     grep -v '^ *+' conftest.er1 >conftest.err
5009     rm -f conftest.er1
5010     cat conftest.err >&5
5011     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5012     (exit $ac_status); } &&
5013 gezelter 2473 { ac_try='test -z "$ac_c_werror_flag"
5014     || test ! -s conftest.err'
5015 gezelter 2081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5016     (eval $ac_try) 2>&5
5017     ac_status=$?
5018     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5019     (exit $ac_status); }; } &&
5020     { ac_try='test -s conftest.$ac_objext'
5021     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5022     (eval $ac_try) 2>&5
5023     ac_status=$?
5024     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5025     (exit $ac_status); }; }; then
5026     eval "$as_ac_Header=yes"
5027     else
5028     echo "$as_me: failed program was:" >&5
5029     sed 's/^/| /' conftest.$ac_ext >&5
5030    
5031     eval "$as_ac_Header=no"
5032     fi
5033     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5034     fi
5035     echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5036     echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5037     if test `eval echo '${'$as_ac_Header'}'` = yes; then
5038     cat >>confdefs.h <<_ACEOF
5039     #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5040     _ACEOF
5041    
5042     fi
5043    
5044     done
5045    
5046    
5047 gezelter 2315 #
5048     # Handle user hints
5049     #
5050     echo "$as_me:$LINENO: checking if zlib is wanted" >&5
5051     echo $ECHO_N "checking if zlib is wanted... $ECHO_C" >&6
5052 gezelter 2081
5053 gezelter 2315 # Check whether --with-zlib or --without-zlib was given.
5054     if test "${with_zlib+set}" = set; then
5055     withval="$with_zlib"
5056     if test "$withval" != no ; then
5057     echo "$as_me:$LINENO: result: yes" >&5
5058     echo "${ECHO_T}yes" >&6
5059     if test -d "$withval"
5060     then
5061     ZLIB_HOME="$withval"
5062     else
5063     { echo "$as_me:$LINENO: WARNING: Sorry, $withval does not exist, checking usual places" >&5
5064     echo "$as_me: WARNING: Sorry, $withval does not exist, checking usual places" >&2;}
5065     fi
5066     else
5067     echo "$as_me:$LINENO: result: no" >&5
5068     echo "${ECHO_T}no" >&6
5069     fi
5070     fi;
5071 gezelter 2081
5072 gezelter 2315 ZLIB_HOME=/usr/local
5073     if test ! -f "${ZLIB_HOME}/include/zlib.h"
5074     then
5075     ZLIB_HOME=/usr
5076     fi
5077 gezelter 2081
5078 gezelter 2315 #
5079     # Locate zlib, if wanted
5080     #
5081     if test -n "${ZLIB_HOME}"
5082     then
5083     ZLIB_OLD_LDFLAGS=$LDFLAGS
5084     ZLIB_OLD_CPPFLAGS=$LDFLAGS
5085     LDFLAGS="$LDFLAGS -L${ZLIB_HOME}/lib"
5086     CPPFLAGS="$CPPFLAGS -I${ZLIB_HOME}/include"
5087 gezelter 2081
5088    
5089 gezelter 2315 ac_ext=c
5090     ac_cpp='$CPP $CPPFLAGS'
5091     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5092     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5093     ac_compiler_gnu=$ac_cv_c_compiler_gnu
5094 gezelter 2081
5095 gezelter 2315 echo "$as_me:$LINENO: checking for inflateEnd in -lz" >&5
5096     echo $ECHO_N "checking for inflateEnd in -lz... $ECHO_C" >&6
5097     if test "${ac_cv_lib_z_inflateEnd+set}" = set; then
5098     echo $ECHO_N "(cached) $ECHO_C" >&6
5099     else
5100     ac_check_lib_save_LIBS=$LIBS
5101     LIBS="-lz $LIBS"
5102     cat >conftest.$ac_ext <<_ACEOF
5103     /* confdefs.h. */
5104     _ACEOF
5105     cat confdefs.h >>conftest.$ac_ext
5106     cat >>conftest.$ac_ext <<_ACEOF
5107     /* end confdefs.h. */
5108 gezelter 2081
5109 gezelter 2315 /* Override any gcc2 internal prototype to avoid an error. */
5110     #ifdef __cplusplus
5111     extern "C"
5112     #endif
5113     /* We use char because int might match the return type of a gcc2
5114     builtin and then its argument prototype would still apply. */
5115     char inflateEnd ();
5116     int
5117     main ()
5118     {
5119     inflateEnd ();
5120     ;
5121     return 0;
5122     }
5123     _ACEOF
5124     rm -f conftest.$ac_objext conftest$ac_exeext
5125     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5126     (eval $ac_link) 2>conftest.er1
5127     ac_status=$?
5128     grep -v '^ *+' conftest.er1 >conftest.err
5129     rm -f conftest.er1
5130     cat conftest.err >&5
5131     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5132     (exit $ac_status); } &&
5133 gezelter 2473 { ac_try='test -z "$ac_c_werror_flag"
5134     || test ! -s conftest.err'
5135 gezelter 2315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5136     (eval $ac_try) 2>&5
5137     ac_status=$?
5138     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5139     (exit $ac_status); }; } &&
5140     { ac_try='test -s conftest$ac_exeext'
5141     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5142     (eval $ac_try) 2>&5
5143     ac_status=$?
5144     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5145     (exit $ac_status); }; }; then
5146     ac_cv_lib_z_inflateEnd=yes
5147     else
5148     echo "$as_me: failed program was:" >&5
5149     sed 's/^/| /' conftest.$ac_ext >&5
5150 gezelter 2081
5151 gezelter 2315 ac_cv_lib_z_inflateEnd=no
5152     fi
5153     rm -f conftest.err conftest.$ac_objext \
5154     conftest$ac_exeext conftest.$ac_ext
5155     LIBS=$ac_check_lib_save_LIBS
5156     fi
5157     echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflateEnd" >&5
5158     echo "${ECHO_T}$ac_cv_lib_z_inflateEnd" >&6
5159     if test $ac_cv_lib_z_inflateEnd = yes; then
5160     zlib_cv_libz=yes
5161     else
5162     zlib_cv_libz=no
5163     fi
5164 gezelter 2081
5165 gezelter 2315 if test "${ac_cv_header_zlib_h+set}" = set; then
5166     echo "$as_me:$LINENO: checking for zlib.h" >&5
5167     echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
5168     if test "${ac_cv_header_zlib_h+set}" = set; then
5169     echo $ECHO_N "(cached) $ECHO_C" >&6
5170     fi
5171     echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
5172     echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
5173     else
5174     # Is the header compilable?
5175     echo "$as_me:$LINENO: checking zlib.h usability" >&5
5176     echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
5177     cat >conftest.$ac_ext <<_ACEOF
5178     /* confdefs.h. */
5179     _ACEOF
5180     cat confdefs.h >>conftest.$ac_ext
5181     cat >>conftest.$ac_ext <<_ACEOF
5182     /* end confdefs.h. */
5183     $ac_includes_default
5184     #include <zlib.h>
5185     _ACEOF
5186     rm -f conftest.$ac_objext
5187     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5188     (eval $ac_compile) 2>conftest.er1
5189     ac_status=$?
5190     grep -v '^ *+' conftest.er1 >conftest.err
5191     rm -f conftest.er1
5192     cat conftest.err >&5
5193     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5194     (exit $ac_status); } &&
5195 gezelter 2473 { ac_try='test -z "$ac_c_werror_flag"
5196     || test ! -s conftest.err'
5197 gezelter 2315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5198     (eval $ac_try) 2>&5
5199     ac_status=$?
5200     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5201     (exit $ac_status); }; } &&
5202     { ac_try='test -s conftest.$ac_objext'
5203     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5204     (eval $ac_try) 2>&5
5205     ac_status=$?
5206     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5207     (exit $ac_status); }; }; then
5208     ac_header_compiler=yes
5209     else
5210     echo "$as_me: failed program was:" >&5
5211     sed 's/^/| /' conftest.$ac_ext >&5
5212    
5213     ac_header_compiler=no
5214     fi
5215     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5216     echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5217     echo "${ECHO_T}$ac_header_compiler" >&6
5218    
5219     # Is the header present?
5220     echo "$as_me:$LINENO: checking zlib.h presence" >&5
5221     echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
5222     cat >conftest.$ac_ext <<_ACEOF
5223     /* confdefs.h. */
5224     _ACEOF
5225     cat confdefs.h >>conftest.$ac_ext
5226     cat >>conftest.$ac_ext <<_ACEOF
5227     /* end confdefs.h. */
5228     #include <zlib.h>
5229     _ACEOF
5230     if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5231     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5232     ac_status=$?
5233     grep -v '^ *+' conftest.er1 >conftest.err
5234     rm -f conftest.er1
5235     cat conftest.err >&5
5236     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5237     (exit $ac_status); } >/dev/null; then
5238     if test -s conftest.err; then
5239     ac_cpp_err=$ac_c_preproc_warn_flag
5240     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5241     else
5242     ac_cpp_err=
5243     fi
5244     else
5245     ac_cpp_err=yes
5246     fi
5247     if test -z "$ac_cpp_err"; then
5248     ac_header_preproc=yes
5249     else
5250     echo "$as_me: failed program was:" >&5
5251     sed 's/^/| /' conftest.$ac_ext >&5
5252    
5253     ac_header_preproc=no
5254     fi
5255     rm -f conftest.err conftest.$ac_ext
5256     echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5257     echo "${ECHO_T}$ac_header_preproc" >&6
5258    
5259     # So? What about this header?
5260     case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5261     yes:no: )
5262     { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
5263     echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5264     { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
5265     echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
5266     ac_header_preproc=yes
5267     ;;
5268     no:yes:* )
5269     { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
5270     echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
5271     { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
5272     echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
5273     { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
5274     echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
5275     { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
5276     echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
5277     { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
5278     echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
5279     { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
5280     echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
5281     (
5282     cat <<\_ASBOX
5283     ## ------------------------------ ##
5284     ## Report this to gezelter@nd.edu ##
5285     ## ------------------------------ ##
5286     _ASBOX
5287     ) |
5288     sed "s/^/$as_me: WARNING: /" >&2
5289     ;;
5290     esac
5291     echo "$as_me:$LINENO: checking for zlib.h" >&5
5292     echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
5293     if test "${ac_cv_header_zlib_h+set}" = set; then
5294     echo $ECHO_N "(cached) $ECHO_C" >&6
5295     else
5296     ac_cv_header_zlib_h=$ac_header_preproc
5297     fi
5298     echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
5299     echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
5300    
5301     fi
5302     if test $ac_cv_header_zlib_h = yes; then
5303     zlib_cv_zlib_h=yes
5304     else
5305     zlib_cv_zlib_h=no
5306     fi
5307    
5308    
5309     ac_ext=c
5310     ac_cpp='$CPP $CPPFLAGS'
5311     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5312     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5313     ac_compiler_gnu=$ac_cv_c_compiler_gnu
5314    
5315     if test "$zlib_cv_libz" = "yes" -a "$zlib_cv_zlib_h" = "yes"
5316     then
5317     #
5318     # If both library and header were found, use them
5319     #
5320    
5321     echo "$as_me:$LINENO: checking for inflateEnd in -lz" >&5
5322     echo $ECHO_N "checking for inflateEnd in -lz... $ECHO_C" >&6
5323     if test "${ac_cv_lib_z_inflateEnd+set}" = set; then
5324     echo $ECHO_N "(cached) $ECHO_C" >&6
5325     else
5326     ac_check_lib_save_LIBS=$LIBS
5327     LIBS="-lz $LIBS"
5328     cat >conftest.$ac_ext <<_ACEOF
5329     /* confdefs.h. */
5330     _ACEOF
5331     cat confdefs.h >>conftest.$ac_ext
5332     cat >>conftest.$ac_ext <<_ACEOF
5333     /* end confdefs.h. */
5334    
5335     /* Override any gcc2 internal prototype to avoid an error. */
5336     #ifdef __cplusplus
5337     extern "C"
5338     #endif
5339     /* We use char because int might match the return type of a gcc2
5340     builtin and then its argument prototype would still apply. */
5341     char inflateEnd ();
5342     int
5343     main ()
5344     {
5345     inflateEnd ();
5346     ;
5347     return 0;
5348     }
5349     _ACEOF
5350     rm -f conftest.$ac_objext conftest$ac_exeext
5351     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5352     (eval $ac_link) 2>conftest.er1
5353     ac_status=$?
5354     grep -v '^ *+' conftest.er1 >conftest.err
5355     rm -f conftest.er1
5356     cat conftest.err >&5
5357     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5358     (exit $ac_status); } &&
5359 gezelter 2473 { ac_try='test -z "$ac_c_werror_flag"
5360     || test ! -s conftest.err'
5361 gezelter 2315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5362     (eval $ac_try) 2>&5
5363     ac_status=$?
5364     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5365     (exit $ac_status); }; } &&
5366     { ac_try='test -s conftest$ac_exeext'
5367     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5368     (eval $ac_try) 2>&5
5369     ac_status=$?
5370     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5371     (exit $ac_status); }; }; then
5372     ac_cv_lib_z_inflateEnd=yes
5373     else
5374     echo "$as_me: failed program was:" >&5
5375     sed 's/^/| /' conftest.$ac_ext >&5
5376    
5377     ac_cv_lib_z_inflateEnd=no
5378     fi
5379     rm -f conftest.err conftest.$ac_objext \
5380     conftest$ac_exeext conftest.$ac_ext
5381     LIBS=$ac_check_lib_save_LIBS
5382     fi
5383     echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflateEnd" >&5
5384     echo "${ECHO_T}$ac_cv_lib_z_inflateEnd" >&6
5385     if test $ac_cv_lib_z_inflateEnd = yes; then
5386     cat >>confdefs.h <<_ACEOF
5387     #define HAVE_LIBZ 1
5388     _ACEOF
5389    
5390     LIBS="-lz $LIBS"
5391    
5392     fi
5393    
5394     echo "$as_me:$LINENO: checking zlib in ${ZLIB_HOME}" >&5
5395     echo $ECHO_N "checking zlib in ${ZLIB_HOME}... $ECHO_C" >&6
5396     echo "$as_me:$LINENO: result: ok" >&5
5397     echo "${ECHO_T}ok" >&6
5398     else
5399     #
5400     # If either header or library was not found, revert and bomb
5401     #
5402     echo "$as_me:$LINENO: checking zlib in ${ZLIB_HOME}" >&5
5403     echo $ECHO_N "checking zlib in ${ZLIB_HOME}... $ECHO_C" >&6
5404     LDFLAGS="$ZLIB_OLD_LDFLAGS"
5405     CPPFLAGS="$ZLIB_OLD_CPPFLAGS"
5406     echo "$as_me:$LINENO: result: failed" >&5
5407     echo "${ECHO_T}failed" >&6
5408     { { echo "$as_me:$LINENO: error: either specify a valid zlib installation with --with-zlib=DIR or disable zlib usage with --without-zlib" >&5
5409     echo "$as_me: error: either specify a valid zlib installation with --with-zlib=DIR or disable zlib usage with --without-zlib" >&2;}
5410     { (exit 1); exit 1; }; }
5411     fi
5412     fi
5413    
5414    
5415    
5416    
5417    
5418    
5419    
5420    
5421 gezelter 2453 for ac_header in sys/time.h unistd.h stdlib.h stdio.h conio.h string.h
5422     do
5423     as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5424     if eval "test \"\${$as_ac_Header+set}\" = set"; then
5425     echo "$as_me:$LINENO: checking for $ac_header" >&5
5426     echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5427     if eval "test \"\${$as_ac_Header+set}\" = set"; then
5428     echo $ECHO_N "(cached) $ECHO_C" >&6
5429     fi
5430     echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5431     echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5432     else
5433     # Is the header compilable?
5434     echo "$as_me:$LINENO: checking $ac_header usability" >&5
5435     echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5436     cat >conftest.$ac_ext <<_ACEOF
5437     /* confdefs.h. */
5438     _ACEOF
5439     cat confdefs.h >>conftest.$ac_ext
5440     cat >>conftest.$ac_ext <<_ACEOF
5441     /* end confdefs.h. */
5442     $ac_includes_default
5443     #include <$ac_header>
5444     _ACEOF
5445     rm -f conftest.$ac_objext
5446     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5447     (eval $ac_compile) 2>conftest.er1
5448     ac_status=$?
5449     grep -v '^ *+' conftest.er1 >conftest.err
5450     rm -f conftest.er1
5451     cat conftest.err >&5
5452     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5453     (exit $ac_status); } &&
5454 gezelter 2473 { ac_try='test -z "$ac_c_werror_flag"
5455     || test ! -s conftest.err'
5456 gezelter 2453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5457     (eval $ac_try) 2>&5
5458     ac_status=$?
5459     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5460     (exit $ac_status); }; } &&
5461     { ac_try='test -s conftest.$ac_objext'
5462     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5463     (eval $ac_try) 2>&5
5464     ac_status=$?
5465     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5466     (exit $ac_status); }; }; then
5467     ac_header_compiler=yes
5468     else
5469     echo "$as_me: failed program was:" >&5
5470     sed 's/^/| /' conftest.$ac_ext >&5
5471 gezelter 2315
5472 gezelter 2453 ac_header_compiler=no
5473     fi
5474     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5475     echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5476     echo "${ECHO_T}$ac_header_compiler" >&6
5477 gezelter 2315
5478 gezelter 2453 # Is the header present?
5479     echo "$as_me:$LINENO: checking $ac_header presence" >&5
5480     echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5481     cat >conftest.$ac_ext <<_ACEOF
5482     /* confdefs.h. */
5483     _ACEOF
5484     cat confdefs.h >>conftest.$ac_ext
5485     cat >>conftest.$ac_ext <<_ACEOF
5486     /* end confdefs.h. */
5487     #include <$ac_header>
5488     _ACEOF
5489     if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5490     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5491     ac_status=$?
5492     grep -v '^ *+' conftest.er1 >conftest.err
5493     rm -f conftest.er1
5494     cat conftest.err >&5
5495     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5496     (exit $ac_status); } >/dev/null; then
5497     if test -s conftest.err; then
5498     ac_cpp_err=$ac_c_preproc_warn_flag
5499     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5500     else
5501     ac_cpp_err=
5502     fi
5503     else
5504     ac_cpp_err=yes
5505     fi
5506     if test -z "$ac_cpp_err"; then
5507     ac_header_preproc=yes
5508     else
5509     echo "$as_me: failed program was:" >&5
5510     sed 's/^/| /' conftest.$ac_ext >&5
5511 gezelter 2315
5512 gezelter 2453 ac_header_preproc=no
5513     fi
5514     rm -f conftest.err conftest.$ac_ext
5515     echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5516     echo "${ECHO_T}$ac_header_preproc" >&6
5517    
5518     # So? What about this header?
5519     case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5520     yes:no: )
5521     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5522     echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5523     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5524     echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5525     ac_header_preproc=yes
5526     ;;
5527     no:yes:* )
5528     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5529     echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5530     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5531     echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5532     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5533     echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5534     { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5535     echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5536     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5537     echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5538     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5539     echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5540     (
5541     cat <<\_ASBOX
5542     ## ------------------------------ ##
5543     ## Report this to gezelter@nd.edu ##
5544     ## ------------------------------ ##
5545     _ASBOX
5546     ) |
5547     sed "s/^/$as_me: WARNING: /" >&2
5548     ;;
5549     esac
5550     echo "$as_me:$LINENO: checking for $ac_header" >&5
5551     echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5552     if eval "test \"\${$as_ac_Header+set}\" = set"; then
5553     echo $ECHO_N "(cached) $ECHO_C" >&6
5554     else
5555     eval "$as_ac_Header=\$ac_header_preproc"
5556     fi
5557     echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5558     echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5559    
5560     fi
5561     if test `eval echo '${'$as_ac_Header'}'` = yes; then
5562     cat >>confdefs.h <<_ACEOF
5563     #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5564     _ACEOF
5565    
5566     fi
5567    
5568     done
5569    
5570    
5571    
5572    
5573    
5574    
5575     for ac_header in strstream.h iostream.h fstream.h math.h time.h
5576 gezelter 2081 do
5577     as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5578     if eval "test \"\${$as_ac_Header+set}\" = set"; then
5579     echo "$as_me:$LINENO: checking for $ac_header" >&5
5580     echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5581     if eval "test \"\${$as_ac_Header+set}\" = set"; then
5582     echo $ECHO_N "(cached) $ECHO_C" >&6
5583     fi
5584     echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5585     echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5586     else
5587     # Is the header compilable?
5588     echo "$as_me:$LINENO: checking $ac_header usability" >&5
5589     echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5590     cat >conftest.$ac_ext <<_ACEOF
5591     /* confdefs.h. */
5592     _ACEOF
5593     cat confdefs.h >>conftest.$ac_ext
5594     cat >>conftest.$ac_ext <<_ACEOF
5595     /* end confdefs.h. */
5596     $ac_includes_default
5597     #include <$ac_header>
5598     _ACEOF
5599     rm -f conftest.$ac_objext
5600     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5601     (eval $ac_compile) 2>conftest.er1
5602     ac_status=$?
5603     grep -v '^ *+' conftest.er1 >conftest.err
5604     rm -f conftest.er1
5605     cat conftest.err >&5
5606     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5607     (exit $ac_status); } &&
5608 gezelter 2473 { ac_try='test -z "$ac_c_werror_flag"
5609     || test ! -s conftest.err'
5610 gezelter 2081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5611     (eval $ac_try) 2>&5
5612     ac_status=$?
5613     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5614     (exit $ac_status); }; } &&
5615     { ac_try='test -s conftest.$ac_objext'
5616     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5617     (eval $ac_try) 2>&5
5618     ac_status=$?
5619     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5620     (exit $ac_status); }; }; then
5621     ac_header_compiler=yes
5622     else
5623     echo "$as_me: failed program was:" >&5
5624     sed 's/^/| /' conftest.$ac_ext >&5
5625    
5626     ac_header_compiler=no
5627     fi
5628     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5629     echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5630     echo "${ECHO_T}$ac_header_compiler" >&6
5631    
5632     # Is the header present?
5633     echo "$as_me:$LINENO: checking $ac_header presence" >&5
5634     echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5635     cat >conftest.$ac_ext <<_ACEOF
5636     /* confdefs.h. */
5637     _ACEOF
5638     cat confdefs.h >>conftest.$ac_ext
5639     cat >>conftest.$ac_ext <<_ACEOF
5640     /* end confdefs.h. */
5641     #include <$ac_header>
5642     _ACEOF
5643     if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5644 tim 1998 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5645     ac_status=$?
5646 gezelter 2081 grep -v '^ *+' conftest.er1 >conftest.err
5647 tim 1998 rm -f conftest.er1
5648     cat conftest.err >&5
5649 gezelter 2081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5650 tim 1998 (exit $ac_status); } >/dev/null; then
5651     if test -s conftest.err; then
5652     ac_cpp_err=$ac_c_preproc_warn_flag
5653 gezelter 2081 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5654 tim 1998 else
5655     ac_cpp_err=
5656     fi
5657     else
5658     ac_cpp_err=yes
5659     fi
5660     if test -z "$ac_cpp_err"; then
5661 gezelter 2081 ac_header_preproc=yes
5662 tim 1998 else
5663     echo "$as_me: failed program was:" >&5
5664 gezelter 2081 sed 's/^/| /' conftest.$ac_ext >&5
5665    
5666     ac_header_preproc=no
5667 tim 1998 fi
5668     rm -f conftest.err conftest.$ac_ext
5669 gezelter 2081 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5670     echo "${ECHO_T}$ac_header_preproc" >&6
5671    
5672     # So? What about this header?
5673     case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5674     yes:no: )
5675     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5676     echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5677     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5678     echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5679     ac_header_preproc=yes
5680     ;;
5681     no:yes:* )
5682     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5683     echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5684     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5685     echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5686     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5687     echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5688     { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5689     echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5690     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5691     echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5692     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5693     echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5694     (
5695     cat <<\_ASBOX
5696     ## ------------------------------ ##
5697     ## Report this to gezelter@nd.edu ##
5698     ## ------------------------------ ##
5699     _ASBOX
5700     ) |
5701     sed "s/^/$as_me: WARNING: /" >&2
5702     ;;
5703     esac
5704     echo "$as_me:$LINENO: checking for $ac_header" >&5
5705     echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5706     if eval "test \"\${$as_ac_Header+set}\" = set"; then
5707     echo $ECHO_N "(cached) $ECHO_C" >&6
5708     else
5709     eval "$as_ac_Header=\$ac_header_preproc"
5710 tim 1998 fi
5711 gezelter 2081 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5712     echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5713 tim 1998
5714     fi
5715 gezelter 2081 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5716     cat >>confdefs.h <<_ACEOF
5717     #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5718     _ACEOF
5719    
5720     fi
5721    
5722 tim 1998 done
5723    
5724 gezelter 2453 ac_ext=cc
5725     ac_cpp='$CXXCPP $CPPFLAGS'
5726     ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5727     ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5728     ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5729 gezelter 2081
5730 gezelter 2453 ac_ext=cc
5731     ac_cpp='$CXXCPP $CPPFLAGS'
5732     ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5733     ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5734     ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5735     echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5736     echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5737     if test -z "$CXXCPP"; then
5738     if test "${ac_cv_prog_CXXCPP+set}" = set; then
5739     echo $ECHO_N "(cached) $ECHO_C" >&6
5740     else
5741     # Double quotes because CXXCPP needs to be expanded
5742     for CXXCPP in "$CXX -E" "/lib/cpp"
5743     do
5744     ac_preproc_ok=false
5745     for ac_cxx_preproc_warn_flag in '' yes
5746     do
5747     # Use a header file that comes with gcc, so configuring glibc
5748     # with a fresh cross-compiler works.
5749     # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5750     # <limits.h> exists even on freestanding compilers.
5751     # On the NeXT, cc -E runs the code through the compiler's parser,
5752     # not just through cpp. "Syntax error" is here to catch this case.
5753     cat >conftest.$ac_ext <<_ACEOF
5754     /* confdefs.h. */
5755     _ACEOF
5756     cat confdefs.h >>conftest.$ac_ext
5757     cat >>conftest.$ac_ext <<_ACEOF
5758     /* end confdefs.h. */
5759     #ifdef __STDC__
5760     # include <limits.h>
5761     #else
5762     # include <assert.h>
5763     #endif
5764     Syntax error
5765     _ACEOF
5766     if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5767     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5768     ac_status=$?
5769     grep -v '^ *+' conftest.er1 >conftest.err
5770     rm -f conftest.er1
5771     cat conftest.err >&5
5772     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5773     (exit $ac_status); } >/dev/null; then
5774     if test -s conftest.err; then
5775     ac_cpp_err=$ac_cxx_preproc_warn_flag
5776     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5777     else
5778     ac_cpp_err=
5779     fi
5780     else
5781     ac_cpp_err=yes
5782     fi
5783     if test -z "$ac_cpp_err"; then
5784     :
5785     else
5786     echo "$as_me: failed program was:" >&5
5787     sed 's/^/| /' conftest.$ac_ext >&5
5788 gezelter 2081
5789 gezelter 2453 # Broken: fails on valid input.
5790     continue
5791     fi
5792     rm -f conftest.err conftest.$ac_ext
5793 gezelter 2081
5794 gezelter 2453 # OK, works on sane cases. Now check whether non-existent headers
5795     # can be detected and how.
5796     cat >conftest.$ac_ext <<_ACEOF
5797     /* confdefs.h. */
5798     _ACEOF
5799     cat confdefs.h >>conftest.$ac_ext
5800     cat >>conftest.$ac_ext <<_ACEOF
5801     /* end confdefs.h. */
5802     #include <ac_nonexistent.h>
5803     _ACEOF
5804     if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5805     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5806     ac_status=$?
5807     grep -v '^ *+' conftest.er1 >conftest.err
5808     rm -f conftest.er1
5809     cat conftest.err >&5
5810     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5811     (exit $ac_status); } >/dev/null; then
5812     if test -s conftest.err; then
5813     ac_cpp_err=$ac_cxx_preproc_warn_flag
5814     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5815     else
5816     ac_cpp_err=
5817     fi
5818     else
5819     ac_cpp_err=yes
5820     fi
5821     if test -z "$ac_cpp_err"; then
5822     # Broken: success on invalid input.
5823     continue
5824     else
5825     echo "$as_me: failed program was:" >&5
5826     sed 's/^/| /' conftest.$ac_ext >&5
5827 gezelter 2081
5828 gezelter 2453 # Passes both tests.
5829     ac_preproc_ok=:
5830     break
5831     fi
5832     rm -f conftest.err conftest.$ac_ext
5833 gezelter 2081
5834 gezelter 2453 done
5835     # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5836     rm -f conftest.err conftest.$ac_ext
5837     if $ac_preproc_ok; then
5838     break
5839     fi
5840    
5841     done
5842     ac_cv_prog_CXXCPP=$CXXCPP
5843    
5844     fi
5845     CXXCPP=$ac_cv_prog_CXXCPP
5846     else
5847     ac_cv_prog_CXXCPP=$CXXCPP
5848     fi
5849     echo "$as_me:$LINENO: result: $CXXCPP" >&5
5850     echo "${ECHO_T}$CXXCPP" >&6
5851     ac_preproc_ok=false
5852     for ac_cxx_preproc_warn_flag in '' yes
5853     do
5854     # Use a header file that comes with gcc, so configuring glibc
5855     # with a fresh cross-compiler works.
5856     # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5857     # <limits.h> exists even on freestanding compilers.
5858     # On the NeXT, cc -E runs the code through the compiler's parser,
5859     # not just through cpp. "Syntax error" is here to catch this case.
5860     cat >conftest.$ac_ext <<_ACEOF
5861     /* confdefs.h. */
5862     _ACEOF
5863     cat confdefs.h >>conftest.$ac_ext
5864     cat >>conftest.$ac_ext <<_ACEOF
5865     /* end confdefs.h. */
5866     #ifdef __STDC__
5867     # include <limits.h>
5868     #else
5869     # include <assert.h>
5870     #endif
5871     Syntax error
5872     _ACEOF
5873     if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5874     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5875     ac_status=$?
5876     grep -v '^ *+' conftest.er1 >conftest.err
5877     rm -f conftest.er1
5878     cat conftest.err >&5
5879     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5880     (exit $ac_status); } >/dev/null; then
5881     if test -s conftest.err; then
5882     ac_cpp_err=$ac_cxx_preproc_warn_flag
5883     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5884     else
5885     ac_cpp_err=
5886     fi
5887     else
5888     ac_cpp_err=yes
5889     fi
5890     if test -z "$ac_cpp_err"; then
5891     :
5892     else
5893     echo "$as_me: failed program was:" >&5
5894     sed 's/^/| /' conftest.$ac_ext >&5
5895    
5896     # Broken: fails on valid input.
5897     continue
5898     fi
5899     rm -f conftest.err conftest.$ac_ext
5900    
5901     # OK, works on sane cases. Now check whether non-existent headers
5902     # can be detected and how.
5903     cat >conftest.$ac_ext <<_ACEOF
5904     /* confdefs.h. */
5905     _ACEOF
5906     cat confdefs.h >>conftest.$ac_ext
5907     cat >>conftest.$ac_ext <<_ACEOF
5908     /* end confdefs.h. */
5909     #include <ac_nonexistent.h>
5910     _ACEOF
5911     if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5912     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5913     ac_status=$?
5914     grep -v '^ *+' conftest.er1 >conftest.err
5915     rm -f conftest.er1
5916     cat conftest.err >&5
5917     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5918     (exit $ac_status); } >/dev/null; then
5919     if test -s conftest.err; then
5920     ac_cpp_err=$ac_cxx_preproc_warn_flag
5921     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5922     else
5923     ac_cpp_err=
5924     fi
5925     else
5926     ac_cpp_err=yes
5927     fi
5928     if test -z "$ac_cpp_err"; then
5929     # Broken: success on invalid input.
5930     continue
5931     else
5932     echo "$as_me: failed program was:" >&5
5933     sed 's/^/| /' conftest.$ac_ext >&5
5934    
5935     # Passes both tests.
5936     ac_preproc_ok=:
5937     break
5938     fi
5939     rm -f conftest.err conftest.$ac_ext
5940    
5941     done
5942     # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5943     rm -f conftest.err conftest.$ac_ext
5944     if $ac_preproc_ok; then
5945     :
5946     else
5947     { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5948     See \`config.log' for more details." >&5
5949     echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5950     See \`config.log' for more details." >&2;}
5951     { (exit 1); exit 1; }; }
5952     fi
5953    
5954     ac_ext=cc
5955     ac_cpp='$CXXCPP $CPPFLAGS'
5956     ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5957     ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5958     ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5959    
5960    
5961    
5962    
5963    
5964    
5965    
5966     for ac_header in ctype.h iostream fstream sstream strstream
5967     do
5968     as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5969     if eval "test \"\${$as_ac_Header+set}\" = set"; then
5970     echo "$as_me:$LINENO: checking for $ac_header" >&5
5971     echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5972     if eval "test \"\${$as_ac_Header+set}\" = set"; then
5973     echo $ECHO_N "(cached) $ECHO_C" >&6
5974     fi
5975     echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5976     echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5977     else
5978     # Is the header compilable?
5979     echo "$as_me:$LINENO: checking $ac_header usability" >&5
5980     echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5981     cat >conftest.$ac_ext <<_ACEOF
5982     /* confdefs.h. */
5983     _ACEOF
5984     cat confdefs.h >>conftest.$ac_ext
5985     cat >>conftest.$ac_ext <<_ACEOF
5986     /* end confdefs.h. */
5987     $ac_includes_default
5988     #include <$ac_header>
5989     _ACEOF
5990     rm -f conftest.$ac_objext
5991     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5992     (eval $ac_compile) 2>conftest.er1
5993     ac_status=$?
5994     grep -v '^ *+' conftest.er1 >conftest.err
5995     rm -f conftest.er1
5996     cat conftest.err >&5
5997     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5998     (exit $ac_status); } &&
5999 gezelter 2473 { ac_try='test -z "$ac_cxx_werror_flag"
6000     || test ! -s conftest.err'
6001 gezelter 2453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6002     (eval $ac_try) 2>&5
6003     ac_status=$?
6004     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6005     (exit $ac_status); }; } &&
6006     { ac_try='test -s conftest.$ac_objext'
6007     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6008     (eval $ac_try) 2>&5
6009     ac_status=$?
6010     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6011     (exit $ac_status); }; }; then
6012     ac_header_compiler=yes
6013     else
6014     echo "$as_me: failed program was:" >&5
6015     sed 's/^/| /' conftest.$ac_ext >&5
6016    
6017     ac_header_compiler=no
6018     fi
6019     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6020     echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6021     echo "${ECHO_T}$ac_header_compiler" >&6
6022    
6023     # Is the header present?
6024     echo "$as_me:$LINENO: checking $ac_header presence" >&5
6025     echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6026     cat >conftest.$ac_ext <<_ACEOF
6027     /* confdefs.h. */
6028     _ACEOF
6029     cat confdefs.h >>conftest.$ac_ext
6030     cat >>conftest.$ac_ext <<_ACEOF
6031     /* end confdefs.h. */
6032     #include <$ac_header>
6033     _ACEOF
6034     if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6035     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6036     ac_status=$?
6037     grep -v '^ *+' conftest.er1 >conftest.err
6038     rm -f conftest.er1
6039     cat conftest.err >&5
6040     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6041     (exit $ac_status); } >/dev/null; then
6042     if test -s conftest.err; then
6043     ac_cpp_err=$ac_cxx_preproc_warn_flag
6044     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6045     else
6046     ac_cpp_err=
6047     fi
6048     else
6049     ac_cpp_err=yes
6050     fi
6051     if test -z "$ac_cpp_err"; then
6052     ac_header_preproc=yes
6053     else
6054     echo "$as_me: failed program was:" >&5
6055     sed 's/^/| /' conftest.$ac_ext >&5
6056    
6057     ac_header_preproc=no
6058     fi
6059     rm -f conftest.err conftest.$ac_ext
6060     echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6061     echo "${ECHO_T}$ac_header_preproc" >&6
6062    
6063     # So? What about this header?
6064     case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
6065     yes:no: )
6066     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6067     echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6068     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6069     echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6070     ac_header_preproc=yes
6071     ;;
6072     no:yes:* )
6073     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6074     echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6075     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6076     echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6077     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6078     echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6079     { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6080     echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6081     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6082     echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6083     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6084     echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6085     (
6086     cat <<\_ASBOX
6087     ## ------------------------------ ##
6088     ## Report this to gezelter@nd.edu ##
6089     ## ------------------------------ ##
6090     _ASBOX
6091     ) |
6092     sed "s/^/$as_me: WARNING: /" >&2
6093     ;;
6094     esac
6095     echo "$as_me:$LINENO: checking for $ac_header" >&5
6096     echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6097     if eval "test \"\${$as_ac_Header+set}\" = set"; then
6098     echo $ECHO_N "(cached) $ECHO_C" >&6
6099     else
6100     eval "$as_ac_Header=\$ac_header_preproc"
6101     fi
6102     echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6103     echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6104    
6105     fi
6106     if test `eval echo '${'$as_ac_Header'}'` = yes; then
6107     cat >>confdefs.h <<_ACEOF
6108     #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6109     _ACEOF
6110    
6111     fi
6112    
6113     done
6114    
6115     ac_ext=c
6116     ac_cpp='$CPP $CPPFLAGS'
6117     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6118     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6119     ac_compiler_gnu=$ac_cv_c_compiler_gnu
6120    
6121    
6122    
6123    
6124     for ac_header in sys/pstat.h sys/sysmp.h sys/sysinfo.h
6125     do
6126     as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6127     if eval "test \"\${$as_ac_Header+set}\" = set"; then
6128     echo "$as_me:$LINENO: checking for $ac_header" >&5
6129     echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6130     if eval "test \"\${$as_ac_Header+set}\" = set"; then
6131     echo $ECHO_N "(cached) $ECHO_C" >&6
6132     fi
6133     echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6134     echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6135     else
6136     # Is the header compilable?
6137     echo "$as_me:$LINENO: checking $ac_header usability" >&5
6138     echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6139     cat >conftest.$ac_ext <<_ACEOF
6140     /* confdefs.h. */
6141     _ACEOF
6142     cat confdefs.h >>conftest.$ac_ext
6143     cat >>conftest.$ac_ext <<_ACEOF
6144     /* end confdefs.h. */
6145     $ac_includes_default
6146     #include <$ac_header>
6147     _ACEOF
6148     rm -f conftest.$ac_objext
6149     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6150     (eval $ac_compile) 2>conftest.er1
6151     ac_status=$?
6152     grep -v '^ *+' conftest.er1 >conftest.err
6153     rm -f conftest.er1
6154     cat conftest.err >&5
6155     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6156     (exit $ac_status); } &&
6157 gezelter 2473 { ac_try='test -z "$ac_c_werror_flag"
6158     || test ! -s conftest.err'
6159 gezelter 2453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6160     (eval $ac_try) 2>&5
6161     ac_status=$?
6162     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6163     (exit $ac_status); }; } &&
6164     { ac_try='test -s conftest.$ac_objext'
6165     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6166     (eval $ac_try) 2>&5
6167     ac_status=$?
6168     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6169     (exit $ac_status); }; }; then
6170     ac_header_compiler=yes
6171     else
6172     echo "$as_me: failed program was:" >&5
6173     sed 's/^/| /' conftest.$ac_ext >&5
6174    
6175     ac_header_compiler=no
6176     fi
6177     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6178     echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6179     echo "${ECHO_T}$ac_header_compiler" >&6
6180    
6181     # Is the header present?
6182     echo "$as_me:$LINENO: checking $ac_header presence" >&5
6183     echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6184     cat >conftest.$ac_ext <<_ACEOF
6185     /* confdefs.h. */
6186     _ACEOF
6187     cat confdefs.h >>conftest.$ac_ext
6188     cat >>conftest.$ac_ext <<_ACEOF
6189     /* end confdefs.h. */
6190     #include <$ac_header>
6191     _ACEOF
6192     if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6193     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6194     ac_status=$?
6195     grep -v '^ *+' conftest.er1 >conftest.err
6196     rm -f conftest.er1
6197     cat conftest.err >&5
6198     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6199     (exit $ac_status); } >/dev/null; then
6200     if test -s conftest.err; then
6201     ac_cpp_err=$ac_c_preproc_warn_flag
6202     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6203     else
6204     ac_cpp_err=
6205     fi
6206     else
6207     ac_cpp_err=yes
6208     fi
6209     if test -z "$ac_cpp_err"; then
6210     ac_header_preproc=yes
6211     else
6212     echo "$as_me: failed program was:" >&5
6213     sed 's/^/| /' conftest.$ac_ext >&5
6214    
6215     ac_header_preproc=no
6216     fi
6217     rm -f conftest.err conftest.$ac_ext
6218     echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6219     echo "${ECHO_T}$ac_header_preproc" >&6
6220    
6221     # So? What about this header?
6222     case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6223     yes:no: )
6224     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6225     echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6226     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6227     echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6228     ac_header_preproc=yes
6229     ;;
6230     no:yes:* )
6231     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6232     echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6233     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6234     echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6235     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6236     echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6237     { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6238     echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6239     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6240     echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6241     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6242     echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6243     (
6244     cat <<\_ASBOX
6245     ## ------------------------------ ##
6246     ## Report this to gezelter@nd.edu ##
6247     ## ------------------------------ ##
6248     _ASBOX
6249     ) |
6250     sed "s/^/$as_me: WARNING: /" >&2
6251     ;;
6252     esac
6253     echo "$as_me:$LINENO: checking for $ac_header" >&5
6254     echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6255     if eval "test \"\${$as_ac_Header+set}\" = set"; then
6256     echo $ECHO_N "(cached) $ECHO_C" >&6
6257     else
6258     eval "$as_ac_Header=\$ac_header_preproc"
6259     fi
6260     echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6261     echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6262    
6263     fi
6264     if test `eval echo '${'$as_ac_Header'}'` = yes; then
6265     cat >>confdefs.h <<_ACEOF
6266     #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6267     _ACEOF
6268    
6269     fi
6270    
6271     done
6272    
6273    
6274    
6275    
6276    
6277     for ac_header in sys/table.h sys/param.h sys/sysctl.h sys/sytemcfg.h
6278     do
6279     as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6280     if eval "test \"\${$as_ac_Header+set}\" = set"; then
6281     echo "$as_me:$LINENO: checking for $ac_header" >&5
6282     echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6283     if eval "test \"\${$as_ac_Header+set}\" = set"; then
6284     echo $ECHO_N "(cached) $ECHO_C" >&6
6285     fi
6286     echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6287     echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6288     else
6289     # Is the header compilable?
6290     echo "$as_me:$LINENO: checking $ac_header usability" >&5
6291     echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6292     cat >conftest.$ac_ext <<_ACEOF
6293     /* confdefs.h. */
6294     _ACEOF
6295     cat confdefs.h >>conftest.$ac_ext
6296     cat >>conftest.$ac_ext <<_ACEOF
6297     /* end confdefs.h. */
6298     $ac_includes_default
6299     #include <$ac_header>
6300     _ACEOF
6301     rm -f conftest.$ac_objext
6302     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6303     (eval $ac_compile) 2>conftest.er1
6304     ac_status=$?
6305     grep -v '^ *+' conftest.er1 >conftest.err
6306     rm -f conftest.er1
6307     cat conftest.err >&5
6308     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6309     (exit $ac_status); } &&
6310 gezelter 2473 { ac_try='test -z "$ac_c_werror_flag"
6311     || test ! -s conftest.err'
6312 gezelter 2453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6313     (eval $ac_try) 2>&5
6314     ac_status=$?
6315     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6316     (exit $ac_status); }; } &&
6317     { ac_try='test -s conftest.$ac_objext'
6318     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6319     (eval $ac_try) 2>&5
6320     ac_status=$?
6321     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6322     (exit $ac_status); }; }; then
6323     ac_header_compiler=yes
6324     else
6325     echo "$as_me: failed program was:" >&5
6326     sed 's/^/| /' conftest.$ac_ext >&5
6327    
6328     ac_header_compiler=no
6329     fi
6330     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6331     echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6332     echo "${ECHO_T}$ac_header_compiler" >&6
6333    
6334     # Is the header present?
6335     echo "$as_me:$LINENO: checking $ac_header presence" >&5
6336     echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6337     cat >conftest.$ac_ext <<_ACEOF
6338     /* confdefs.h. */
6339     _ACEOF
6340     cat confdefs.h >>conftest.$ac_ext
6341     cat >>conftest.$ac_ext <<_ACEOF
6342     /* end confdefs.h. */
6343     #include <$ac_header>
6344     _ACEOF
6345     if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6346     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6347     ac_status=$?
6348     grep -v '^ *+' conftest.er1 >conftest.err
6349     rm -f conftest.er1
6350     cat conftest.err >&5
6351     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6352     (exit $ac_status); } >/dev/null; then
6353     if test -s conftest.err; then
6354     ac_cpp_err=$ac_c_preproc_warn_flag
6355     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6356     else
6357     ac_cpp_err=
6358     fi
6359     else
6360     ac_cpp_err=yes
6361     fi
6362     if test -z "$ac_cpp_err"; then
6363     ac_header_preproc=yes
6364     else
6365     echo "$as_me: failed program was:" >&5
6366     sed 's/^/| /' conftest.$ac_ext >&5
6367    
6368     ac_header_preproc=no
6369     fi
6370     rm -f conftest.err conftest.$ac_ext
6371     echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6372     echo "${ECHO_T}$ac_header_preproc" >&6
6373    
6374     # So? What about this header?
6375     case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6376     yes:no: )
6377     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6378     echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6379     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6380     echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6381     ac_header_preproc=yes
6382     ;;
6383     no:yes:* )
6384     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6385     echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6386     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6387     echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6388     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6389     echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6390     { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6391     echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6392     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6393     echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6394     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6395     echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6396     (
6397     cat <<\_ASBOX
6398     ## ------------------------------ ##
6399     ## Report this to gezelter@nd.edu ##
6400     ## ------------------------------ ##
6401     _ASBOX
6402     ) |
6403     sed "s/^/$as_me: WARNING: /" >&2
6404     ;;
6405     esac
6406     echo "$as_me:$LINENO: checking for $ac_header" >&5
6407     echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6408     if eval "test \"\${$as_ac_Header+set}\" = set"; then
6409     echo $ECHO_N "(cached) $ECHO_C" >&6
6410     else
6411     eval "$as_ac_Header=\$ac_header_preproc"
6412     fi
6413     echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6414     echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6415    
6416     fi
6417     if test `eval echo '${'$as_ac_Header'}'` = yes; then
6418     cat >>confdefs.h <<_ACEOF
6419     #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6420     _ACEOF
6421    
6422     fi
6423    
6424     done
6425    
6426    
6427     for ac_header in machine/hal_sysinfo.h
6428     do
6429     as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6430     if eval "test \"\${$as_ac_Header+set}\" = set"; then
6431     echo "$as_me:$LINENO: checking for $ac_header" >&5
6432     echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6433     if eval "test \"\${$as_ac_Header+set}\" = set"; then
6434     echo $ECHO_N "(cached) $ECHO_C" >&6
6435     fi
6436     echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6437     echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6438     else
6439     # Is the header compilable?
6440     echo "$as_me:$LINENO: checking $ac_header usability" >&5
6441     echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6442     cat >conftest.$ac_ext <<_ACEOF
6443     /* confdefs.h. */
6444     _ACEOF
6445     cat confdefs.h >>conftest.$ac_ext
6446     cat >>conftest.$ac_ext <<_ACEOF
6447     /* end confdefs.h. */
6448     $ac_includes_default
6449     #include <$ac_header>
6450     _ACEOF
6451     rm -f conftest.$ac_objext
6452     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6453     (eval $ac_compile) 2>conftest.er1
6454     ac_status=$?
6455     grep -v '^ *+' conftest.er1 >conftest.err
6456     rm -f conftest.er1
6457     cat conftest.err >&5
6458     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6459     (exit $ac_status); } &&
6460 gezelter 2473 { ac_try='test -z "$ac_c_werror_flag"
6461     || test ! -s conftest.err'
6462 gezelter 2453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6463     (eval $ac_try) 2>&5
6464     ac_status=$?
6465     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6466     (exit $ac_status); }; } &&
6467     { ac_try='test -s conftest.$ac_objext'
6468     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6469     (eval $ac_try) 2>&5
6470     ac_status=$?
6471     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6472     (exit $ac_status); }; }; then
6473     ac_header_compiler=yes
6474     else
6475     echo "$as_me: failed program was:" >&5
6476     sed 's/^/| /' conftest.$ac_ext >&5
6477    
6478     ac_header_compiler=no
6479     fi
6480     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6481     echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6482     echo "${ECHO_T}$ac_header_compiler" >&6
6483    
6484     # Is the header present?
6485     echo "$as_me:$LINENO: checking $ac_header presence" >&5
6486     echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6487     cat >conftest.$ac_ext <<_ACEOF
6488     /* confdefs.h. */
6489     _ACEOF
6490     cat confdefs.h >>conftest.$ac_ext
6491     cat >>conftest.$ac_ext <<_ACEOF
6492     /* end confdefs.h. */
6493     #include <$ac_header>
6494     _ACEOF
6495     if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6496     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6497     ac_status=$?
6498     grep -v '^ *+' conftest.er1 >conftest.err
6499     rm -f conftest.er1
6500     cat conftest.err >&5
6501     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6502     (exit $ac_status); } >/dev/null; then
6503     if test -s conftest.err; then
6504     ac_cpp_err=$ac_c_preproc_warn_flag
6505     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6506     else
6507     ac_cpp_err=
6508     fi
6509     else
6510     ac_cpp_err=yes
6511     fi
6512     if test -z "$ac_cpp_err"; then
6513     ac_header_preproc=yes
6514     else
6515     echo "$as_me: failed program was:" >&5
6516     sed 's/^/| /' conftest.$ac_ext >&5
6517    
6518     ac_header_preproc=no
6519     fi
6520     rm -f conftest.err conftest.$ac_ext
6521     echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6522     echo "${ECHO_T}$ac_header_preproc" >&6
6523    
6524     # So? What about this header?
6525     case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6526     yes:no: )
6527     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6528     echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6529     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6530     echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6531     ac_header_preproc=yes
6532     ;;
6533     no:yes:* )
6534     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6535     echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6536     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6537     echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6538     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6539     echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6540     { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6541     echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6542     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6543     echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6544     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6545     echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6546     (
6547     cat <<\_ASBOX
6548     ## ------------------------------ ##
6549     ## Report this to gezelter@nd.edu ##
6550     ## ------------------------------ ##
6551     _ASBOX
6552     ) |
6553     sed "s/^/$as_me: WARNING: /" >&2
6554     ;;
6555     esac
6556     echo "$as_me:$LINENO: checking for $ac_header" >&5
6557     echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6558     if eval "test \"\${$as_ac_Header+set}\" = set"; then
6559     echo $ECHO_N "(cached) $ECHO_C" >&6
6560     else
6561     eval "$as_ac_Header=\$ac_header_preproc"
6562     fi
6563     echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6564     echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6565    
6566     fi
6567     if test `eval echo '${'$as_ac_Header'}'` = yes; then
6568     cat >>confdefs.h <<_ACEOF
6569     #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6570     _ACEOF
6571    
6572     fi
6573    
6574     done
6575    
6576    
6577    
6578    
6579    
6580 chuckv 2467 for ac_func in rint snprintf sranddev strncasecmp
6581     do
6582     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6583     echo "$as_me:$LINENO: checking for $ac_func" >&5
6584     echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6585     if eval "test \"\${$as_ac_var+set}\" = set"; then
6586     echo $ECHO_N "(cached) $ECHO_C" >&6
6587     else
6588     cat >conftest.$ac_ext <<_ACEOF
6589     /* confdefs.h. */
6590     _ACEOF
6591     cat confdefs.h >>conftest.$ac_ext
6592     cat >>conftest.$ac_ext <<_ACEOF
6593     /* end confdefs.h. */
6594     /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6595     For example, HP-UX 11i <limits.h> declares gettimeofday. */
6596     #define $ac_func innocuous_$ac_func
6597 gezelter 2453
6598 chuckv 2467 /* System header to define __stub macros and hopefully few prototypes,
6599     which can conflict with char $ac_func (); below.
6600     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6601     <limits.h> exists even on freestanding compilers. */
6602    
6603     #ifdef __STDC__
6604     # include <limits.h>
6605     #else
6606     # include <assert.h>
6607     #endif
6608    
6609     #undef $ac_func
6610    
6611     /* Override any gcc2 internal prototype to avoid an error. */
6612     #ifdef __cplusplus
6613     extern "C"
6614     {
6615     #endif
6616     /* We use char because int might match the return type of a gcc2
6617     builtin and then its argument prototype would still apply. */
6618     char $ac_func ();
6619     /* The GNU C library defines this for functions which it implements
6620     to always fail with ENOSYS. Some functions are actually named
6621     something starting with __ and the normal name is an alias. */
6622     #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6623     choke me
6624     #else
6625     char (*f) () = $ac_func;
6626     #endif
6627     #ifdef __cplusplus
6628     }
6629     #endif
6630    
6631     int
6632     main ()
6633     {
6634     return f != $ac_func;
6635     ;
6636     return 0;
6637     }
6638     _ACEOF
6639     rm -f conftest.$ac_objext conftest$ac_exeext
6640     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6641     (eval $ac_link) 2>conftest.er1
6642     ac_status=$?
6643     grep -v '^ *+' conftest.er1 >conftest.err
6644     rm -f conftest.er1
6645     cat conftest.err >&5
6646     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6647     (exit $ac_status); } &&
6648 gezelter 2473 { ac_try='test -z "$ac_c_werror_flag"
6649     || test ! -s conftest.err'
6650 chuckv 2467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6651     (eval $ac_try) 2>&5
6652     ac_status=$?
6653     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6654     (exit $ac_status); }; } &&
6655     { ac_try='test -s conftest$ac_exeext'
6656     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6657     (eval $ac_try) 2>&5
6658     ac_status=$?
6659     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6660     (exit $ac_status); }; }; then
6661     eval "$as_ac_var=yes"
6662     else
6663     echo "$as_me: failed program was:" >&5
6664     sed 's/^/| /' conftest.$ac_ext >&5
6665    
6666     eval "$as_ac_var=no"
6667     fi
6668     rm -f conftest.err conftest.$ac_objext \
6669     conftest$ac_exeext conftest.$ac_ext
6670     fi
6671     echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6672     echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6673     if test `eval echo '${'$as_ac_var'}'` = yes; then
6674     cat >>confdefs.h <<_ACEOF
6675     #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6676     _ACEOF
6677    
6678     fi
6679     done
6680    
6681    
6682    
6683    
6684    
6685    
6686 tim 1998 for ac_func in pstat_getstatic sysmp getsysinfo sysctl table
6687     do
6688 gezelter 2081 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6689     echo "$as_me:$LINENO: checking for $ac_func" >&5
6690 tim 1998 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6691 gezelter 2081 if eval "test \"\${$as_ac_var+set}\" = set"; then
6692 tim 1998 echo $ECHO_N "(cached) $ECHO_C" >&6
6693     else
6694     cat >conftest.$ac_ext <<_ACEOF
6695 gezelter 2081 /* confdefs.h. */
6696     _ACEOF
6697     cat confdefs.h >>conftest.$ac_ext
6698     cat >>conftest.$ac_ext <<_ACEOF
6699     /* end confdefs.h. */
6700     /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6701     For example, HP-UX 11i <limits.h> declares gettimeofday. */
6702     #define $ac_func innocuous_$ac_func
6703    
6704 tim 1998 /* System header to define __stub macros and hopefully few prototypes,
6705 gezelter 2081 which can conflict with char $ac_func (); below.
6706     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6707     <limits.h> exists even on freestanding compilers. */
6708    
6709     #ifdef __STDC__
6710     # include <limits.h>
6711     #else
6712     # include <assert.h>
6713     #endif
6714    
6715     #undef $ac_func
6716    
6717 tim 1998 /* Override any gcc2 internal prototype to avoid an error. */
6718     #ifdef __cplusplus
6719     extern "C"
6720 gezelter 2081 {
6721 tim 1998 #endif
6722     /* We use char because int might match the return type of a gcc2
6723     builtin and then its argument prototype would still apply. */
6724     char $ac_func ();
6725     /* The GNU C library defines this for functions which it implements
6726     to always fail with ENOSYS. Some functions are actually named
6727     something starting with __ and the normal name is an alias. */
6728     #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6729     choke me
6730     #else
6731 gezelter 2081 char (*f) () = $ac_func;
6732 tim 1998 #endif
6733 gezelter 2081 #ifdef __cplusplus
6734     }
6735     #endif
6736 tim 1998
6737 gezelter 2081 int
6738     main ()
6739     {
6740     return f != $ac_func;
6741 tim 1998 ;
6742     return 0;
6743     }
6744     _ACEOF
6745     rm -f conftest.$ac_objext conftest$ac_exeext
6746 gezelter 2081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6747     (eval $ac_link) 2>conftest.er1
6748 tim 1998 ac_status=$?
6749 gezelter 2081 grep -v '^ *+' conftest.er1 >conftest.err
6750     rm -f conftest.er1
6751     cat conftest.err >&5
6752     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6753 tim 1998 (exit $ac_status); } &&
6754 gezelter 2473 { ac_try='test -z "$ac_c_werror_flag"
6755     || test ! -s conftest.err'
6756 gezelter 2081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6757 tim 1998 (eval $ac_try) 2>&5
6758     ac_status=$?
6759 gezelter 2081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6760     (exit $ac_status); }; } &&
6761     { ac_try='test -s conftest$ac_exeext'
6762     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6763     (eval $ac_try) 2>&5
6764     ac_status=$?
6765     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6766 tim 1998 (exit $ac_status); }; }; then
6767 gezelter 2081 eval "$as_ac_var=yes"
6768 tim 1998 else
6769     echo "$as_me: failed program was:" >&5
6770 gezelter 2081 sed 's/^/| /' conftest.$ac_ext >&5
6771    
6772     eval "$as_ac_var=no"
6773 tim 1998 fi
6774 gezelter 2081 rm -f conftest.err conftest.$ac_objext \
6775     conftest$ac_exeext conftest.$ac_ext
6776 tim 1998 fi
6777 gezelter 2081 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6778     echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6779     if test `eval echo '${'$as_ac_var'}'` = yes; then
6780     cat >>confdefs.h <<_ACEOF
6781     #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6782     _ACEOF
6783 tim 1998
6784     fi
6785     done
6786    
6787     # special check for _system_configuration because AIX <4.3.2 do not
6788     # contain the `physmem' member.
6789 gezelter 2081 echo "$as_me:$LINENO: checking for external symbol _system_configuration" >&5
6790 tim 1998 echo $ECHO_N "checking for external symbol _system_configuration... $ECHO_C" >&6
6791     cat >conftest.$ac_ext <<_ACEOF
6792 gezelter 2081 /* confdefs.h. */
6793     _ACEOF
6794     cat confdefs.h >>conftest.$ac_ext
6795     cat >>conftest.$ac_ext <<_ACEOF
6796     /* end confdefs.h. */
6797 tim 1998 #include <sys/systemcfg.h>
6798     int
6799     main ()
6800     {
6801     double x = _system_configuration.physmem;
6802     ;
6803     return 0;
6804     }
6805     _ACEOF
6806     rm -f conftest.$ac_objext
6807 gezelter 2081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6808     (eval $ac_compile) 2>conftest.er1
6809 tim 1998 ac_status=$?
6810 gezelter 2081 grep -v '^ *+' conftest.er1 >conftest.err
6811     rm -f conftest.er1
6812     cat conftest.err >&5
6813     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6814 tim 1998 (exit $ac_status); } &&
6815 gezelter 2473 { ac_try='test -z "$ac_c_werror_flag"
6816     || test ! -s conftest.err'
6817 gezelter 2081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6818 tim 1998 (eval $ac_try) 2>&5
6819     ac_status=$?
6820 gezelter 2081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6821     (exit $ac_status); }; } &&
6822     { ac_try='test -s conftest.$ac_objext'
6823     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6824     (eval $ac_try) 2>&5
6825     ac_status=$?
6826     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6827 tim 1998 (exit $ac_status); }; }; then
6828 gezelter 2081 echo "$as_me:$LINENO: result: yes" >&5
6829 tim 1998 echo "${ECHO_T}yes" >&6
6830    
6831 gezelter 2081 cat >>confdefs.h <<\_ACEOF
6832 tim 1998 #define HAVE__SYSTEM_CONFIGURATION 1
6833 gezelter 2081 _ACEOF
6834 tim 1998
6835     else
6836     echo "$as_me: failed program was:" >&5
6837 gezelter 2081 sed 's/^/| /' conftest.$ac_ext >&5
6838    
6839     echo "$as_me:$LINENO: result: no" >&5
6840 tim 1998 echo "${ECHO_T}no" >&6
6841     fi
6842 gezelter 2081 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6843 gezelter 2453 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6844     echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
6845     if test "${ac_cv_header_time+set}" = set; then
6846     echo $ECHO_N "(cached) $ECHO_C" >&6
6847     else
6848     cat >conftest.$ac_ext <<_ACEOF
6849     /* confdefs.h. */
6850     _ACEOF
6851     cat confdefs.h >>conftest.$ac_ext
6852     cat >>conftest.$ac_ext <<_ACEOF
6853     /* end confdefs.h. */
6854     #include <sys/types.h>
6855     #include <sys/time.h>
6856     #include <time.h>
6857 tim 1998
6858 gezelter 2453 int
6859     main ()
6860     {
6861     if ((struct tm *) 0)
6862     return 0;
6863     ;
6864     return 0;
6865     }
6866     _ACEOF
6867     rm -f conftest.$ac_objext
6868     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6869     (eval $ac_compile) 2>conftest.er1
6870     ac_status=$?
6871     grep -v '^ *+' conftest.er1 >conftest.err
6872     rm -f conftest.er1
6873     cat conftest.err >&5
6874     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6875     (exit $ac_status); } &&
6876 gezelter 2473 { ac_try='test -z "$ac_c_werror_flag"
6877     || test ! -s conftest.err'
6878 gezelter 2453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6879     (eval $ac_try) 2>&5
6880     ac_status=$?
6881     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6882     (exit $ac_status); }; } &&
6883     { ac_try='test -s conftest.$ac_objext'
6884     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6885     (eval $ac_try) 2>&5
6886     ac_status=$?
6887     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6888     (exit $ac_status); }; }; then
6889     ac_cv_header_time=yes
6890     else
6891     echo "$as_me: failed program was:" >&5
6892     sed 's/^/| /' conftest.$ac_ext >&5
6893    
6894     ac_cv_header_time=no
6895     fi
6896     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6897     fi
6898     echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6899     echo "${ECHO_T}$ac_cv_header_time" >&6
6900     if test $ac_cv_header_time = yes; then
6901    
6902     cat >>confdefs.h <<\_ACEOF
6903     #define TIME_WITH_SYS_TIME 1
6904     _ACEOF
6905    
6906     fi
6907    
6908    
6909     echo "$as_me:$LINENO: checking for clock_t" >&5
6910     echo $ECHO_N "checking for clock_t... $ECHO_C" >&6
6911     if test "${ac_cv_type_clock_t+set}" = set; then
6912     echo $ECHO_N "(cached) $ECHO_C" >&6
6913     else
6914     cat >conftest.$ac_ext <<_ACEOF
6915     /* confdefs.h. */
6916     _ACEOF
6917     cat confdefs.h >>conftest.$ac_ext
6918     cat >>conftest.$ac_ext <<_ACEOF
6919     /* end confdefs.h. */
6920     $ac_includes_default
6921     int
6922     main ()
6923     {
6924     if ((clock_t *) 0)
6925     return 0;
6926     if (sizeof (clock_t))
6927     return 0;
6928     ;
6929     return 0;
6930     }
6931     _ACEOF
6932     rm -f conftest.$ac_objext
6933     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6934     (eval $ac_compile) 2>conftest.er1
6935     ac_status=$?
6936     grep -v '^ *+' conftest.er1 >conftest.err
6937     rm -f conftest.er1
6938     cat conftest.err >&5
6939     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6940     (exit $ac_status); } &&
6941 gezelter 2473 { ac_try='test -z "$ac_c_werror_flag"
6942     || test ! -s conftest.err'
6943 gezelter 2453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6944     (eval $ac_try) 2>&5
6945     ac_status=$?
6946     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6947     (exit $ac_status); }; } &&
6948     { ac_try='test -s conftest.$ac_objext'
6949     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6950     (eval $ac_try) 2>&5
6951     ac_status=$?
6952     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6953     (exit $ac_status); }; }; then
6954     ac_cv_type_clock_t=yes
6955     else
6956     echo "$as_me: failed program was:" >&5
6957     sed 's/^/| /' conftest.$ac_ext >&5
6958    
6959     ac_cv_type_clock_t=no
6960     fi
6961     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6962     fi
6963     echo "$as_me:$LINENO: result: $ac_cv_type_clock_t" >&5
6964     echo "${ECHO_T}$ac_cv_type_clock_t" >&6
6965     if test $ac_cv_type_clock_t = yes; then
6966    
6967     cat >>confdefs.h <<_ACEOF
6968     #define HAVE_CLOCK_T 1
6969     _ACEOF
6970    
6971    
6972     fi
6973    
6974     echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
6975     echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
6976     if test "${ac_cv_c_const+set}" = set; then
6977     echo $ECHO_N "(cached) $ECHO_C" >&6
6978     else
6979     cat >conftest.$ac_ext <<_ACEOF
6980     /* confdefs.h. */
6981     _ACEOF
6982     cat confdefs.h >>conftest.$ac_ext
6983     cat >>conftest.$ac_ext <<_ACEOF
6984     /* end confdefs.h. */
6985    
6986     int
6987     main ()
6988     {
6989     /* FIXME: Include the comments suggested by Paul. */
6990     #ifndef __cplusplus
6991     /* Ultrix mips cc rejects this. */
6992     typedef int charset[2];
6993     const charset x;
6994     /* SunOS 4.1.1 cc rejects this. */
6995     char const *const *ccp;
6996     char **p;
6997     /* NEC SVR4.0.2 mips cc rejects this. */
6998     struct point {int x, y;};
6999     static struct point const zero = {0,0};
7000     /* AIX XL C 1.02.0.0 rejects this.
7001     It does not let you subtract one const X* pointer from another in
7002     an arm of an if-expression whose if-part is not a constant
7003     expression */
7004     const char *g = "string";
7005     ccp = &g + (g ? g-g : 0);
7006     /* HPUX 7.0 cc rejects these. */
7007     ++ccp;
7008     p = (char**) ccp;
7009     ccp = (char const *const *) p;
7010     { /* SCO 3.2v4 cc rejects this. */
7011     char *t;
7012     char const *s = 0 ? (char *) 0 : (char const *) 0;
7013    
7014     *t++ = 0;
7015     }
7016     { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7017     int x[] = {25, 17};
7018     const int *foo = &x[0];
7019     ++foo;
7020     }
7021     { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7022     typedef const int *iptr;
7023     iptr p = 0;
7024     ++p;
7025     }
7026     { /* AIX XL C 1.02.0.0 rejects this saying
7027     "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7028     struct s { int j; const int *ap[3]; };
7029     struct s *b; b->j = 5;
7030     }
7031     { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7032     const int foo = 10;
7033     }
7034     #endif
7035    
7036     ;
7037     return 0;
7038     }
7039     _ACEOF
7040     rm -f conftest.$ac_objext
7041     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7042     (eval $ac_compile) 2>conftest.er1
7043     ac_status=$?
7044     grep -v '^ *+' conftest.er1 >conftest.err
7045     rm -f conftest.er1
7046     cat conftest.err >&5
7047     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7048     (exit $ac_status); } &&
7049 gezelter 2473 { ac_try='test -z "$ac_c_werror_flag"
7050     || test ! -s conftest.err'
7051 gezelter 2453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7052     (eval $ac_try) 2>&5
7053     ac_status=$?
7054     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7055     (exit $ac_status); }; } &&
7056     { ac_try='test -s conftest.$ac_objext'
7057     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7058     (eval $ac_try) 2>&5
7059     ac_status=$?
7060     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7061     (exit $ac_status); }; }; then
7062     ac_cv_c_const=yes
7063     else
7064     echo "$as_me: failed program was:" >&5
7065     sed 's/^/| /' conftest.$ac_ext >&5
7066    
7067     ac_cv_c_const=no
7068     fi
7069     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7070     fi
7071     echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7072     echo "${ECHO_T}$ac_cv_c_const" >&6
7073     if test $ac_cv_c_const = no; then
7074    
7075     cat >>confdefs.h <<\_ACEOF
7076     #define const
7077     _ACEOF
7078    
7079     fi
7080    
7081     echo "$as_me:$LINENO: checking for inline" >&5
7082     echo $ECHO_N "checking for inline... $ECHO_C" >&6
7083     if test "${ac_cv_c_inline+set}" = set; then
7084     echo $ECHO_N "(cached) $ECHO_C" >&6
7085     else
7086     ac_cv_c_inline=no
7087     for ac_kw in inline __inline__ __inline; do
7088     cat >conftest.$ac_ext <<_ACEOF
7089     /* confdefs.h. */
7090     _ACEOF
7091     cat confdefs.h >>conftest.$ac_ext
7092     cat >>conftest.$ac_ext <<_ACEOF
7093     /* end confdefs.h. */
7094     #ifndef __cplusplus
7095     typedef int foo_t;
7096     static $ac_kw foo_t static_foo () {return 0; }
7097     $ac_kw foo_t foo () {return 0; }
7098     #endif
7099    
7100     _ACEOF
7101     rm -f conftest.$ac_objext
7102     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7103     (eval $ac_compile) 2>conftest.er1
7104     ac_status=$?
7105     grep -v '^ *+' conftest.er1 >conftest.err
7106     rm -f conftest.er1
7107     cat conftest.err >&5
7108     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7109     (exit $ac_status); } &&
7110 gezelter 2473 { ac_try='test -z "$ac_c_werror_flag"
7111     || test ! -s conftest.err'
7112 gezelter 2453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7113     (eval $ac_try) 2>&5
7114     ac_status=$?
7115     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7116     (exit $ac_status); }; } &&
7117     { ac_try='test -s conftest.$ac_objext'
7118     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7119     (eval $ac_try) 2>&5
7120     ac_status=$?
7121     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7122     (exit $ac_status); }; }; then
7123     ac_cv_c_inline=$ac_kw; break
7124     else
7125     echo "$as_me: failed program was:" >&5
7126     sed 's/^/| /' conftest.$ac_ext >&5
7127    
7128     fi
7129     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7130     done
7131    
7132     fi
7133     echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
7134     echo "${ECHO_T}$ac_cv_c_inline" >&6
7135    
7136    
7137     case $ac_cv_c_inline in
7138     inline | yes) ;;
7139     *)
7140     case $ac_cv_c_inline in
7141     no) ac_val=;;
7142     *) ac_val=$ac_cv_c_inline;;
7143     esac
7144     cat >>confdefs.h <<_ACEOF
7145     #ifndef __cplusplus
7146     #define inline $ac_val
7147     #endif
7148     _ACEOF
7149     ;;
7150     esac
7151    
7152    
7153    
7154    
7155     for ac_func in rint sranddev
7156     do
7157     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7158     echo "$as_me:$LINENO: checking for $ac_func" >&5
7159     echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7160     if eval "test \"\${$as_ac_var+set}\" = set"; then
7161     echo $ECHO_N "(cached) $ECHO_C" >&6
7162     else
7163     cat >conftest.$ac_ext <<_ACEOF
7164     /* confdefs.h. */
7165     _ACEOF
7166     cat confdefs.h >>conftest.$ac_ext
7167     cat >>conftest.$ac_ext <<_ACEOF
7168     /* end confdefs.h. */
7169     /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7170     For example, HP-UX 11i <limits.h> declares gettimeofday. */
7171     #define $ac_func innocuous_$ac_func
7172    
7173     /* System header to define __stub macros and hopefully few prototypes,
7174     which can conflict with char $ac_func (); below.
7175     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7176     <limits.h> exists even on freestanding compilers. */
7177    
7178     #ifdef __STDC__
7179     # include <limits.h>
7180     #else
7181     # include <assert.h>
7182     #endif
7183    
7184     #undef $ac_func
7185    
7186     /* Override any gcc2 internal prototype to avoid an error. */
7187     #ifdef __cplusplus
7188     extern "C"
7189     {
7190     #endif
7191     /* We use char because int might match the return type of a gcc2
7192     builtin and then its argument prototype would still apply. */
7193     char $ac_func ();
7194     /* The GNU C library defines this for functions which it implements
7195     to always fail with ENOSYS. Some functions are actually named
7196     something starting with __ and the normal name is an alias. */
7197     #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7198     choke me
7199     #else
7200     char (*f) () = $ac_func;
7201     #endif
7202     #ifdef __cplusplus
7203     }
7204     #endif
7205    
7206     int
7207     main ()
7208     {
7209     return f != $ac_func;
7210     ;
7211     return 0;
7212     }
7213     _ACEOF
7214     rm -f conftest.$ac_objext conftest$ac_exeext
7215     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7216     (eval $ac_link) 2>conftest.er1
7217     ac_status=$?
7218     grep -v '^ *+' conftest.er1 >conftest.err
7219     rm -f conftest.er1
7220     cat conftest.err >&5
7221     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7222     (exit $ac_status); } &&
7223 gezelter 2473 { ac_try='test -z "$ac_c_werror_flag"
7224     || test ! -s conftest.err'
7225 gezelter 2453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7226     (eval $ac_try) 2>&5
7227     ac_status=$?
7228     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7229     (exit $ac_status); }; } &&
7230     { ac_try='test -s conftest$ac_exeext'
7231     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7232     (eval $ac_try) 2>&5
7233     ac_status=$?
7234     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7235     (exit $ac_status); }; }; then
7236     eval "$as_ac_var=yes"
7237     else
7238     echo "$as_me: failed program was:" >&5
7239     sed 's/^/| /' conftest.$ac_ext >&5
7240    
7241     eval "$as_ac_var=no"
7242     fi
7243     rm -f conftest.err conftest.$ac_objext \
7244     conftest$ac_exeext conftest.$ac_ext
7245     fi
7246     echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7247     echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7248     if test `eval echo '${'$as_ac_var'}'` = yes; then
7249     cat >>confdefs.h <<_ACEOF
7250     #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7251     _ACEOF
7252    
7253     fi
7254     done
7255    
7256    
7257 gezelter 1490 # clean out junk possibly left behind by a previous configuration
7258 gezelter 1947 rm -f src/getopt.h
7259 gezelter 1490 # Check for getopt_long support
7260    
7261     for ac_header in getopt.h
7262     do
7263 gezelter 2081 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7264     if eval "test \"\${$as_ac_Header+set}\" = set"; then
7265     echo "$as_me:$LINENO: checking for $ac_header" >&5
7266 gezelter 1490 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7267 gezelter 2081 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7268 gezelter 1490 echo $ECHO_N "(cached) $ECHO_C" >&6
7269 gezelter 2081 fi
7270     echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7271     echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7272 gezelter 1490 else
7273 gezelter 2081 # Is the header compilable?
7274     echo "$as_me:$LINENO: checking $ac_header usability" >&5
7275     echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7276     cat >conftest.$ac_ext <<_ACEOF
7277     /* confdefs.h. */
7278     _ACEOF
7279     cat confdefs.h >>conftest.$ac_ext
7280     cat >>conftest.$ac_ext <<_ACEOF
7281     /* end confdefs.h. */
7282     $ac_includes_default
7283 gezelter 1490 #include <$ac_header>
7284     _ACEOF
7285 gezelter 2081 rm -f conftest.$ac_objext
7286     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7287     (eval $ac_compile) 2>conftest.er1
7288     ac_status=$?
7289     grep -v '^ *+' conftest.er1 >conftest.err
7290     rm -f conftest.er1
7291     cat conftest.err >&5
7292     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7293     (exit $ac_status); } &&
7294 gezelter 2473 { ac_try='test -z "$ac_c_werror_flag"
7295     || test ! -s conftest.err'
7296 gezelter 2081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7297     (eval $ac_try) 2>&5
7298     ac_status=$?
7299     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7300     (exit $ac_status); }; } &&
7301     { ac_try='test -s conftest.$ac_objext'
7302     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7303     (eval $ac_try) 2>&5
7304     ac_status=$?
7305     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7306     (exit $ac_status); }; }; then
7307     ac_header_compiler=yes
7308     else
7309     echo "$as_me: failed program was:" >&5
7310     sed 's/^/| /' conftest.$ac_ext >&5
7311    
7312     ac_header_compiler=no
7313     fi
7314     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7315     echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7316     echo "${ECHO_T}$ac_header_compiler" >&6
7317    
7318     # Is the header present?
7319     echo "$as_me:$LINENO: checking $ac_header presence" >&5
7320     echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7321     cat >conftest.$ac_ext <<_ACEOF
7322     /* confdefs.h. */
7323     _ACEOF
7324     cat confdefs.h >>conftest.$ac_ext
7325     cat >>conftest.$ac_ext <<_ACEOF
7326     /* end confdefs.h. */
7327     #include <$ac_header>
7328     _ACEOF
7329     if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7330 gezelter 1490 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7331     ac_status=$?
7332 gezelter 2081 grep -v '^ *+' conftest.er1 >conftest.err
7333 gezelter 1490 rm -f conftest.er1
7334     cat conftest.err >&5
7335 gezelter 2081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7336 gezelter 1490 (exit $ac_status); } >/dev/null; then
7337     if test -s conftest.err; then
7338     ac_cpp_err=$ac_c_preproc_warn_flag
7339 gezelter 2081 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7340 gezelter 1490 else
7341     ac_cpp_err=
7342     fi
7343     else
7344     ac_cpp_err=yes
7345     fi
7346     if test -z "$ac_cpp_err"; then
7347 gezelter 2081 ac_header_preproc=yes
7348 gezelter 1490 else
7349     echo "$as_me: failed program was:" >&5
7350 gezelter 2081 sed 's/^/| /' conftest.$ac_ext >&5
7351    
7352     ac_header_preproc=no
7353 gezelter 1490 fi
7354     rm -f conftest.err conftest.$ac_ext
7355 gezelter 2081 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7356     echo "${ECHO_T}$ac_header_preproc" >&6
7357    
7358     # So? What about this header?
7359     case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7360     yes:no: )
7361     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7362     echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7363     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7364     echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7365     ac_header_preproc=yes
7366     ;;
7367     no:yes:* )
7368     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7369     echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7370     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7371     echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7372     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7373     echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7374     { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7375     echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7376     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7377     echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7378     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7379     echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7380     (
7381     cat <<\_ASBOX
7382     ## ------------------------------ ##
7383     ## Report this to gezelter@nd.edu ##
7384     ## ------------------------------ ##
7385     _ASBOX
7386     ) |
7387     sed "s/^/$as_me: WARNING: /" >&2
7388     ;;
7389     esac
7390     echo "$as_me:$LINENO: checking for $ac_header" >&5
7391     echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7392     if eval "test \"\${$as_ac_Header+set}\" = set"; then
7393     echo $ECHO_N "(cached) $ECHO_C" >&6
7394     else
7395     eval "$as_ac_Header=\$ac_header_preproc"
7396 gezelter 1490 fi
7397 gezelter 2081 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7398     echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7399 gezelter 1490
7400     fi
7401 gezelter 2081 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7402     cat >>confdefs.h <<_ACEOF
7403     #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7404     _ACEOF
7405    
7406     fi
7407    
7408 gezelter 1490 done
7409    
7410 gezelter 2081
7411 gezelter 1490 for ac_func in getopt_long
7412     do
7413 gezelter 2081 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7414     echo "$as_me:$LINENO: checking for $ac_func" >&5
7415 gezelter 1490 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7416 gezelter 2081 if eval "test \"\${$as_ac_var+set}\" = set"; then
7417 gezelter 1490 echo $ECHO_N "(cached) $ECHO_C" >&6
7418     else
7419     cat >conftest.$ac_ext <<_ACEOF
7420 gezelter 2081 /* confdefs.h. */
7421     _ACEOF
7422     cat confdefs.h >>conftest.$ac_ext
7423     cat >>conftest.$ac_ext <<_ACEOF
7424     /* end confdefs.h. */
7425     /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7426     For example, HP-UX 11i <limits.h> declares gettimeofday. */
7427     #define $ac_func innocuous_$ac_func
7428    
7429 gezelter 1490 /* System header to define __stub macros and hopefully few prototypes,
7430 gezelter 2081 which can conflict with char $ac_func (); below.
7431     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7432     <limits.h> exists even on freestanding compilers. */
7433    
7434     #ifdef __STDC__
7435     # include <limits.h>
7436     #else
7437     # include <assert.h>
7438     #endif
7439    
7440     #undef $ac_func
7441    
7442 gezelter 1490 /* Override any gcc2 internal prototype to avoid an error. */
7443     #ifdef __cplusplus
7444     extern "C"
7445 gezelter 2081 {
7446 gezelter 1490 #endif
7447     /* We use char because int might match the return type of a gcc2
7448     builtin and then its argument prototype would still apply. */
7449     char $ac_func ();
7450     /* The GNU C library defines this for functions which it implements
7451     to always fail with ENOSYS. Some functions are actually named
7452     something starting with __ and the normal name is an alias. */
7453     #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7454     choke me
7455     #else
7456 gezelter 2081 char (*f) () = $ac_func;
7457 gezelter 1490 #endif
7458 gezelter 2081 #ifdef __cplusplus
7459     }
7460     #endif
7461 gezelter 1490
7462 gezelter 2081 int
7463     main ()
7464     {
7465     return f != $ac_func;
7466 gezelter 1490 ;
7467     return 0;
7468     }
7469     _ACEOF
7470     rm -f conftest.$ac_objext conftest$ac_exeext
7471 gezelter 2081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7472     (eval $ac_link) 2>conftest.er1
7473 gezelter 1490 ac_status=$?
7474 gezelter 2081 grep -v '^ *+' conftest.er1 >conftest.err
7475     rm -f conftest.er1
7476     cat conftest.err >&5
7477     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7478 gezelter 1490 (exit $ac_status); } &&
7479 gezelter 2473 { ac_try='test -z "$ac_c_werror_flag"
7480     || test ! -s conftest.err'
7481 gezelter 2081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7482 gezelter 1490 (eval $ac_try) 2>&5
7483     ac_status=$?
7484 gezelter 2081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7485     (exit $ac_status); }; } &&
7486     { ac_try='test -s conftest$ac_exeext'
7487     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7488     (eval $ac_try) 2>&5
7489     ac_status=$?
7490     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7491 gezelter 1490 (exit $ac_status); }; }; then
7492 gezelter 2081 eval "$as_ac_var=yes"
7493 gezelter 1490 else
7494     echo "$as_me: failed program was:" >&5
7495 gezelter 2081 sed 's/^/| /' conftest.$ac_ext >&5
7496    
7497     eval "$as_ac_var=no"
7498 gezelter 1490 fi
7499 gezelter 2081 rm -f conftest.err conftest.$ac_objext \
7500     conftest$ac_exeext conftest.$ac_ext
7501 gezelter 1490 fi
7502 gezelter 2081 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7503     echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7504     if test `eval echo '${'$as_ac_var'}'` = yes; then
7505     cat >>confdefs.h <<_ACEOF
7506     #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7507     _ACEOF
7508 gezelter 1490
7509     else
7510     # FreeBSD has a gnugetopt library for this
7511 gezelter 2081 echo "$as_me:$LINENO: checking for getopt_long in -lgnugetopt" >&5
7512 gezelter 1490 echo $ECHO_N "checking for getopt_long in -lgnugetopt... $ECHO_C" >&6
7513     if test "${ac_cv_lib_gnugetopt_getopt_long+set}" = set; then
7514     echo $ECHO_N "(cached) $ECHO_C" >&6
7515     else
7516     ac_check_lib_save_LIBS=$LIBS
7517     LIBS="-lgnugetopt $LIBS"
7518     cat >conftest.$ac_ext <<_ACEOF
7519 gezelter 2081 /* confdefs.h. */
7520     _ACEOF
7521     cat confdefs.h >>conftest.$ac_ext
7522     cat >>conftest.$ac_ext <<_ACEOF
7523     /* end confdefs.h. */
7524 gezelter 1490
7525     /* Override any gcc2 internal prototype to avoid an error. */
7526     #ifdef __cplusplus
7527     extern "C"
7528     #endif
7529     /* We use char because int might match the return type of a gcc2
7530     builtin and then its argument prototype would still apply. */
7531     char getopt_long ();
7532     int
7533     main ()
7534     {
7535     getopt_long ();
7536     ;
7537     return 0;
7538     }
7539     _ACEOF
7540     rm -f conftest.$ac_objext conftest$ac_exeext
7541 gezelter 2081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7542     (eval $ac_link) 2>conftest.er1
7543 gezelter 1490 ac_status=$?
7544 gezelter 2081 grep -v '^ *+' conftest.er1 >conftest.err
7545     rm -f conftest.er1
7546     cat conftest.err >&5
7547     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7548 gezelter 1490 (exit $ac_status); } &&
7549 gezelter 2473 { ac_try='test -z "$ac_c_werror_flag"
7550     || test ! -s conftest.err'
7551 gezelter 2081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7552 gezelter 1490 (eval $ac_try) 2>&5
7553     ac_status=$?
7554 gezelter 2081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7555     (exit $ac_status); }; } &&
7556     { ac_try='test -s conftest$ac_exeext'
7557     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7558     (eval $ac_try) 2>&5
7559     ac_status=$?
7560     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7561 gezelter 1490 (exit $ac_status); }; }; then
7562     ac_cv_lib_gnugetopt_getopt_long=yes
7563     else
7564     echo "$as_me: failed program was:" >&5
7565 gezelter 2081 sed 's/^/| /' conftest.$ac_ext >&5
7566    
7567 gezelter 1490 ac_cv_lib_gnugetopt_getopt_long=no
7568     fi
7569 gezelter 2081 rm -f conftest.err conftest.$ac_objext \
7570     conftest$ac_exeext conftest.$ac_ext
7571 gezelter 1490 LIBS=$ac_check_lib_save_LIBS
7572     fi
7573 gezelter 2081 echo "$as_me:$LINENO: result: $ac_cv_lib_gnugetopt_getopt_long" >&5
7574 gezelter 1490 echo "${ECHO_T}$ac_cv_lib_gnugetopt_getopt_long" >&6
7575     if test $ac_cv_lib_gnugetopt_getopt_long = yes; then
7576 gezelter 2081 cat >>confdefs.h <<\_ACEOF
7577 gezelter 1490 #define HAVE_GETOPT_LONG 1
7578 gezelter 2081 _ACEOF
7579 gezelter 1490
7580     else
7581     # use the GNU replacement
7582 gezelter 2081 case $LIBOBJS in
7583     "getopt.$ac_objext" | \
7584     *" getopt.$ac_objext" | \
7585     "getopt.$ac_objext "* | \
7586     *" getopt.$ac_objext "* ) ;;
7587     *) LIBOBJS="$LIBOBJS getopt.$ac_objext" ;;
7588     esac
7589 gezelter 2026
7590 gezelter 2081 case $LIBOBJS in
7591     "getopt1.$ac_objext" | \
7592     *" getopt1.$ac_objext" | \
7593     "getopt1.$ac_objext "* | \
7594     *" getopt1.$ac_objext "* ) ;;
7595     *) LIBOBJS="$LIBOBJS getopt1.$ac_objext" ;;
7596     esac
7597    
7598     ac_config_links="$ac_config_links src/getopt.h:src/utils/gnugetopt.h"
7599    
7600 gezelter 1490 fi
7601    
7602     fi
7603     done
7604    
7605 gezelter 2081
7606    
7607 gezelter 1490 case $debug in
7608     1)
7609     ;;
7610     *)
7611    
7612 gezelter 2081
7613    
7614    
7615    
7616    
7617     echo "$as_me:$LINENO: checking whether we are *really* using GNU cc" >&5
7618 gezelter 1490 echo $ECHO_N "checking whether we are *really* using GNU cc... $ECHO_C" >&6
7619     if test "${ac_cv_prog_really_gcc+set}" = set; then
7620     echo $ECHO_N "(cached) $ECHO_C" >&6
7621     else
7622    
7623     cat > conftest.c <<EOF
7624     #ifdef __GNUC__
7625 gezelter 2505 #if defined(__INTEL_COMPILER) || defined(__PATHCC__)
7626     no;
7627     #else
7628 gezelter 1490 yes;
7629     #endif
7630     #endif
7631     EOF
7632     if { ac_try='${CC-cc} -E conftest.c'
7633 gezelter 2081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7634 gezelter 1490 (eval $ac_try) 2>&5
7635     ac_status=$?
7636 gezelter 2081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7637 gezelter 1490 (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then
7638     ac_cv_prog_really_gcc=yes
7639     else
7640     ac_cv_prog_really_gcc=no
7641     fi
7642    
7643     fi
7644 gezelter 2081 echo "$as_me:$LINENO: result: $ac_cv_prog_really_gcc" >&5
7645 gezelter 1490 echo "${ECHO_T}$ac_cv_prog_really_gcc" >&6
7646     if test "$ac_cv_prog_really_gcc" = yes; then
7647     :
7648    
7649     else
7650     :
7651    
7652     fi
7653    
7654 gezelter 2081
7655 gezelter 1490 # Try to determine "good" native compiler flags if none specified on command
7656     # line
7657     if test "$ac_test_CFLAGS" != "set"; then
7658     CFLAGS=""
7659     case "${host_cpu}-${host_os}" in
7660    
7661     *linux*) if test "$CC" = icc; then
7662     CFLAGS="-O"
7663     fi;;
7664     sparc-solaris2*) if test "$CC" = cc; then
7665     CFLAGS="-native -fast -xO5 -dalign"
7666     fi;;
7667    
7668     alpha*-osf*) if test "$CC" = cc; then
7669     CFLAGS="-newc -w0 -O5 -ansi_alias -ansi_args -fp_reorder -tune host -arch host -std1"
7670     fi;;
7671    
7672     hppa*-hpux*) if test "$CC" = cc; then
7673     CFLAGS="-Ae +O3 +Oall"
7674     fi;;
7675    
7676     rs6000*-aix*) if test "$CC" = cc -o "$CC" = xlc; then
7677     CFLAGS="-O3 -qtune=auto -qansialias -w"
7678     fi;;
7679     powerpc*-aix*)
7680     if test "$CC" = cc -o "$CC" = xlc; then
7681     CFLAGS="-O3 -qtune=auto -qansialias -w"
7682     echo "*******************************************************"
7683     echo "* You have AIX on an unknown powerpc system. It is *"
7684     echo "* recommended that you use *"
7685     echo "* *"
7686     echo "* CFLAGS=-O3 -qarch=ppc -qtune=xxx -qansialias -w *"
7687     echo "* ^^^ *"
7688     echo "* where xxx is 601, 603, 604, or whatever kind of *"
7689     echo "* PowerPC CPU you have. For more info, man cc. *"
7690     echo "*******************************************************"
7691     fi;;
7692     *darwin*)
7693     if test "$CC" = xlc -o "$CC" = cc; then
7694 chuckv 1579 CFLAGS="-qthreaded -O -qtune=auto -qarch=auto -qunroll=auto -qaltivec"
7695 gezelter 1490 fi;;
7696     esac
7697    
7698     # use default flags for gcc on all systems
7699     if test $ac_cv_prog_really_gcc = yes; then
7700     CFLAGS="-O6 -fomit-frame-pointer -Wall -W -Wcast-qual -Wpointer-arith -Wcast-align -pedantic"
7701     fi
7702    
7703     # test for gcc-specific flags:
7704     if test $ac_cv_prog_really_gcc = yes; then
7705     # -malign-double for x86 systems
7706    
7707 gezelter 2081
7708     echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -malign-double" >&5
7709 gezelter 1490 echo $ECHO_N "checking whether ${CC-cc} accepts -malign-double... $ECHO_C" >&6
7710     if test "${ac_align_double+set}" = set; then
7711     echo $ECHO_N "(cached) $ECHO_C" >&6
7712     else
7713     echo 'void f(){}' > conftest.c
7714     if test -z "`${CC-cc} -malign-double -c conftest.c 2>&1`"; then
7715     ac_align_double=yes
7716     else
7717     ac_align_double=no
7718     fi
7719     rm -f conftest*
7720    
7721     fi
7722 gezelter 2081 echo "$as_me:$LINENO: result: $ac_align_double" >&5
7723 gezelter 1490 echo "${ECHO_T}$ac_align_double" >&6
7724     if test "$ac_align_double" = yes; then
7725     :
7726     CFLAGS="$CFLAGS -malign-double"
7727     else
7728     :
7729    
7730     fi
7731    
7732     # -fstrict-aliasing for gcc-2.95+
7733    
7734 gezelter 2081
7735     echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -fstrict-aliasing" >&5
7736 gezelter 1490 echo $ECHO_N "checking whether ${CC-cc} accepts -fstrict-aliasing... $ECHO_C" >&6
7737     if test "${ac_fstrict_aliasing+set}" = set; then
7738     echo $ECHO_N "(cached) $ECHO_C" >&6
7739     else
7740     echo 'void f(){}' > conftest.c
7741     if test -z "`${CC-cc} -fstrict-aliasing -c conftest.c 2>&1`"; then
7742     ac_fstrict_aliasing=yes
7743     else
7744     ac_fstrict_aliasing=no
7745     fi
7746     rm -f conftest*
7747    
7748     fi
7749 gezelter 2081 echo "$as_me:$LINENO: result: $ac_fstrict_aliasing" >&5
7750 gezelter 1490 echo "${ECHO_T}$ac_fstrict_aliasing" >&6
7751     if test "$ac_fstrict_aliasing" = yes; then
7752     :
7753     CFLAGS="$CFLAGS -fstrict-aliasing"
7754     else
7755     :
7756    
7757     fi
7758    
7759     fi
7760    
7761     CPU_FLAGS=""
7762     if test $ac_cv_prog_really_gcc = yes; then
7763     case "${host_cpu}" in
7764     i586*)
7765    
7766 gezelter 2081 echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mcpu=pentium" >&5
7767 gezelter 1490 echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=pentium... $ECHO_C" >&6
7768     if test "${ac_cpu_pentium+set}" = set; then
7769     echo $ECHO_N "(cached) $ECHO_C" >&6
7770     else
7771     echo 'void f(){}' > conftest.c
7772     if test -z "`${CC-cc} -mcpu=pentium -c conftest.c 2>&1`"; then
7773     ac_cpu_pentium=yes
7774     else
7775     ac_cpu_pentium=no
7776     fi
7777     rm -f conftest*
7778    
7779     fi
7780 gezelter 2081 echo "$as_me:$LINENO: result: $ac_cpu_pentium" >&5
7781 gezelter 1490 echo "${ECHO_T}$ac_cpu_pentium" >&6
7782     if test "$ac_cpu_pentium" = yes; then
7783     :
7784     CPU_FLAGS=-mcpu=pentium
7785     else
7786     :
7787    
7788 gezelter 2081
7789     echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mpentium" >&5
7790 gezelter 1490 echo $ECHO_N "checking whether ${CC-cc} accepts -mpentium... $ECHO_C" >&6
7791     if test "${ac_pentium+set}" = set; then
7792     echo $ECHO_N "(cached) $ECHO_C" >&6
7793     else
7794     echo 'void f(){}' > conftest.c
7795     if test -z "`${CC-cc} -mpentium -c conftest.c 2>&1`"; then
7796     ac_pentium=yes
7797     else
7798     ac_pentium=no
7799     fi
7800     rm -f conftest*
7801    
7802     fi
7803 gezelter 2081 echo "$as_me:$LINENO: result: $ac_pentium" >&5
7804 gezelter 1490 echo "${ECHO_T}$ac_pentium" >&6
7805     if test "$ac_pentium" = yes; then
7806     :
7807     CPU_FLAGS=-mpentium
7808     else
7809     :
7810    
7811     fi
7812    
7813     fi
7814    
7815     ;;
7816     i686*)
7817    
7818 gezelter 2081 echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mcpu=pentiumpro" >&5
7819 gezelter 1490 echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=pentiumpro... $ECHO_C" >&6
7820     if test "${ac_cpu_pentiumpro+set}" = set; then
7821     echo $ECHO_N "(cached) $ECHO_C" >&6
7822     else
7823     echo 'void f(){}' > conftest.c
7824     if test -z "`${CC-cc} -mcpu=pentiumpro -c conftest.c 2>&1`"; then
7825     ac_cpu_pentiumpro=yes
7826     else
7827     ac_cpu_pentiumpro=no
7828     fi
7829     rm -f conftest*
7830    
7831     fi
7832 gezelter 2081 echo "$as_me:$LINENO: result: $ac_cpu_pentiumpro" >&5
7833 gezelter 1490 echo "${ECHO_T}$ac_cpu_pentiumpro" >&6
7834     if test "$ac_cpu_pentiumpro" = yes; then
7835     :
7836     CPU_FLAGS=-mcpu=pentiumpro
7837     else
7838     :
7839    
7840 gezelter 2081
7841     echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mpentiumpro" >&5
7842 gezelter 1490 echo $ECHO_N "checking whether ${CC-cc} accepts -mpentiumpro... $ECHO_C" >&6
7843     if test "${ac_pentiumpro+set}" = set; then
7844     echo $ECHO_N "(cached) $ECHO_C" >&6
7845     else
7846     echo 'void f(){}' > conftest.c
7847     if test -z "`${CC-cc} -mpentiumpro -c conftest.c 2>&1`"; then
7848     ac_pentiumpro=yes
7849     else
7850     ac_pentiumpro=no
7851     fi
7852     rm -f conftest*
7853    
7854     fi
7855 gezelter 2081 echo "$as_me:$LINENO: result: $ac_pentiumpro" >&5
7856 gezelter 1490 echo "${ECHO_T}$ac_pentiumpro" >&6
7857     if test "$ac_pentiumpro" = yes; then
7858     :
7859     CPU_FLAGS=-mpentiumpro
7860     else
7861     :
7862    
7863     fi
7864    
7865     fi
7866    
7867     ;;
7868     powerpc*)
7869     cputype=`(grep cpu /proc/cpuinfo | head -1 | cut -d: -f2 | sed 's/ //g') 2> /dev/null`
7870     is60x=`echo $cputype | egrep "^600-9e?$"`
7871     if test -n "$is60x"; then
7872    
7873 gezelter 2081
7874     echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mcpu=$cputype" >&5
7875 gezelter 1490 echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=$cputype... $ECHO_C" >&6
7876     if test "${ac_m_cpu_60x+set}" = set; then
7877     echo $ECHO_N "(cached) $ECHO_C" >&6
7878     else
7879     echo 'void f(){}' > conftest.c
7880     if test -z "`${CC-cc} -mcpu=$cputype -c conftest.c 2>&1`"; then
7881     ac_m_cpu_60x=yes
7882     else
7883     ac_m_cpu_60x=no
7884     fi
7885     rm -f conftest*
7886    
7887     fi
7888 gezelter 2081 echo "$as_me:$LINENO: result: $ac_m_cpu_60x" >&5
7889 gezelter 1490 echo "${ECHO_T}$ac_m_cpu_60x" >&6
7890     if test "$ac_m_cpu_60x" = yes; then
7891     :
7892     CPU_FLAGS=-mcpu=$cputype
7893     else
7894     :
7895    
7896     fi
7897    
7898     elif test "$cputype" = 750; then
7899    
7900 gezelter 2081
7901     echo "$as_me:$LINENO: checking whether we are using gcc 2.95 or later" >&5
7902 gezelter 1490 echo $ECHO_N "checking whether we are using gcc 2.95 or later... $ECHO_C" >&6
7903     if test "${ac_cv_prog_gcc_2_95+set}" = set; then
7904     echo $ECHO_N "(cached) $ECHO_C" >&6
7905     else
7906    
7907     cat > conftest.c <<EOF
7908     #ifdef __GNUC__ && !defined (__INTEL_COMPILER)
7909     # if (__GNUC__ > 2) || (__GNUC__ == 2 && __GNUC_MINOR__ >= 95)
7910     yes;
7911     # endif
7912     #endif
7913     EOF
7914     if { ac_try='${CC-cc} -E conftest.c'
7915 gezelter 2081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7916 gezelter 1490 (eval $ac_try) 2>&5
7917     ac_status=$?
7918 gezelter 2081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7919 gezelter 1490 (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then
7920     ac_cv_prog_gcc_2_95=yes
7921     else
7922     ac_cv_prog_gcc_2_95=no
7923     fi
7924    
7925     fi
7926 gezelter 2081 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_2_95" >&5
7927 gezelter 1490 echo "${ECHO_T}$ac_cv_prog_gcc_2_95" >&6
7928     if test "$ac_cv_prog_gcc_2_95" = yes; then
7929     :
7930    
7931 gezelter 2081
7932     echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mcpu=750" >&5
7933 gezelter 1490 echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=750... $ECHO_C" >&6
7934     if test "${ac_m_cpu_750+set}" = set; then
7935     echo $ECHO_N "(cached) $ECHO_C" >&6
7936     else
7937     echo 'void f(){}' > conftest.c
7938     if test -z "`${CC-cc} -mcpu=750 -c conftest.c 2>&1`"; then
7939     ac_m_cpu_750=yes
7940     else
7941     ac_m_cpu_750=no
7942     fi
7943     rm -f conftest*
7944    
7945     fi
7946 gezelter 2081 echo "$as_me:$LINENO: result: $ac_m_cpu_750" >&5
7947 gezelter 1490 echo "${ECHO_T}$ac_m_cpu_750" >&6
7948     if test "$ac_m_cpu_750" = yes; then
7949     :
7950     CPU_FLAGS=-mcpu=750
7951     else
7952     :
7953    
7954     fi
7955    
7956     else
7957     :
7958    
7959     fi
7960    
7961     fi
7962     if test -z "$CPU_FLAGS"; then
7963    
7964 gezelter 2081
7965     echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mcpu=powerpc" >&5
7966 gezelter 1490 echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=powerpc... $ECHO_C" >&6
7967     if test "${ac_m_cpu_powerpc+set}" = set; then
7968     echo $ECHO_N "(cached) $ECHO_C" >&6
7969     else
7970     echo 'void f(){}' > conftest.c
7971     if test -z "`${CC-cc} -mcpu=powerpc -c conftest.c 2>&1`"; then
7972     ac_m_cpu_powerpc=yes
7973     else
7974     ac_m_cpu_powerpc=no
7975     fi
7976     rm -f conftest*
7977    
7978     fi
7979 gezelter 2081 echo "$as_me:$LINENO: result: $ac_m_cpu_powerpc" >&5
7980 gezelter 1490 echo "${ECHO_T}$ac_m_cpu_powerpc" >&6
7981     if test "$ac_m_cpu_powerpc" = yes; then
7982     :
7983     CPU_FLAGS=-mcpu=powerpc
7984     else
7985     :
7986    
7987     fi
7988    
7989     fi
7990     if test -z "$CPU_FLAGS"; then
7991    
7992 gezelter 2081
7993     echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mpowerpc" >&5
7994 gezelter 1490 echo $ECHO_N "checking whether ${CC-cc} accepts -mpowerpc... $ECHO_C" >&6
7995     if test "${ac_m_powerpc+set}" = set; then
7996     echo $ECHO_N "(cached) $ECHO_C" >&6
7997     else
7998     echo 'void f(){}' > conftest.c
7999     if test -z "`${CC-cc} -mpowerpc -c conftest.c 2>&1`"; then
8000     ac_m_powerpc=yes
8001     else
8002     ac_m_powerpc=no
8003     fi
8004     rm -f conftest*
8005    
8006     fi
8007 gezelter 2081 echo "$as_me:$LINENO: result: $ac_m_powerpc" >&5
8008 gezelter 1490 echo "${ECHO_T}$ac_m_powerpc" >&6
8009     if test "$ac_m_powerpc" = yes; then
8010     :
8011     CPU_FLAGS=-mpowerpc
8012     else
8013     :
8014    
8015     fi
8016    
8017     fi
8018     esac
8019     fi
8020    
8021     if test -n "$CPU_FLAGS"; then
8022     CFLAGS="$CFLAGS $CPU_FLAGS"
8023     fi
8024    
8025     if test -z "$CFLAGS"; then
8026     echo ""
8027     echo "********************************************************"
8028     echo "* WARNING: Don't know the best CFLAGS for this system *"
8029     echo "* Use make CFLAGS=..., or edit the top level Makefile *"
8030     echo "* (otherwise, a default of CFLAGS=-O3 will be used) *"
8031     echo "********************************************************"
8032     echo ""
8033     CFLAGS="-O3"
8034     fi
8035    
8036 gezelter 2081
8037    
8038     echo "$as_me:$LINENO: checking whether ${CC-cc} accepts ${CFLAGS}" >&5
8039 gezelter 1490 echo $ECHO_N "checking whether ${CC-cc} accepts ${CFLAGS}... $ECHO_C" >&6
8040     if test "${ac_guessed_cflags+set}" = set; then
8041     echo $ECHO_N "(cached) $ECHO_C" >&6
8042     else
8043     echo 'void f(){}' > conftest.c
8044     if test -z "`${CC-cc} ${CFLAGS} -c conftest.c 2>&1`"; then
8045     ac_guessed_cflags=yes
8046     else
8047     ac_guessed_cflags=no
8048     fi
8049     rm -f conftest*
8050    
8051     fi
8052 gezelter 2081 echo "$as_me:$LINENO: result: $ac_guessed_cflags" >&5
8053 gezelter 1490 echo "${ECHO_T}$ac_guessed_cflags" >&6
8054     if test "$ac_guessed_cflags" = yes; then
8055     :
8056    
8057     else
8058     :
8059    
8060     echo ""
8061     echo "********************************************************"
8062     echo "* WARNING: The guessed CFLAGS don't seem to work with *"
8063     echo "* your compiler. *"
8064     echo "* Use make CFLAGS=..., or edit the top level Makefile *"
8065     echo "********************************************************"
8066     echo ""
8067     CFLAGS=""
8068    
8069     fi
8070    
8071 gezelter 2081
8072 gezelter 1490 fi
8073    
8074 gezelter 2081
8075    
8076    
8077    
8078    
8079    
8080     echo "$as_me:$LINENO: checking whether we are *really* using GNU c++" >&5
8081 gezelter 1490 echo $ECHO_N "checking whether we are *really* using GNU c++... $ECHO_C" >&6
8082     if test "${ac_cv_prog_really_gxx+set}" = set; then
8083     echo $ECHO_N "(cached) $ECHO_C" >&6
8084     else
8085    
8086     cat > conftest.cpp <<EOF
8087     #ifdef __GNUC__
8088 gezelter 2505 #if defined(__INTEL_COMPILER) || defined(__PATHCC__)
8089     no;
8090     #else
8091 gezelter 1490 yes;
8092     #endif
8093     #endif
8094     EOF
8095     if { ac_try='${CXX-c++} -E conftest.cpp'
8096 gezelter 2081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8097 gezelter 1490 (eval $ac_try) 2>&5
8098     ac_status=$?
8099 gezelter 2081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8100 gezelter 1490 (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then
8101     ac_cv_prog_really_gxx=yes
8102     else
8103     ac_cv_prog_really_gxx=no
8104     fi
8105    
8106     fi
8107 gezelter 2081 echo "$as_me:$LINENO: result: $ac_cv_prog_really_gxx" >&5
8108 gezelter 1490 echo "${ECHO_T}$ac_cv_prog_really_gxx" >&6
8109     if test "$ac_cv_prog_really_gxx" = yes; then
8110     :
8111    
8112     else
8113     :
8114    
8115     fi
8116    
8117 gezelter 2081
8118 gezelter 1490 # Try to determine "good" native compiler flags if none specified on command
8119     # line
8120     if test "$ac_test_CXXFLAGS" != "set"; then
8121     CXXFLAGS=""
8122     case "${host_cpu}-${host_os}" in
8123    
8124     *linux*) if test "$CXX" = icc -o "$CXX" = icpc; then
8125     CXXFLAGS="-O"
8126     fi;;
8127     sparc-solaris2*) if test "$CXX" = CC; then
8128     CXXFLAGS="-native -fast -xO5 -dalign"
8129     fi;;
8130     rs6000*-aix*) if test "$CXX" = xlC; then
8131     CXXFLAGS="-O3 -qarch=pwrx -qtune=pwrx -qansialias -w"
8132     fi;;
8133     powerpc*-aix*)
8134     if test "$CXX" = xlC; then
8135     CXXFLAGS="-O3 -qarch=ppc -qansialias -w"
8136     echo "*******************************************************"
8137     echo "* You have AIX on an unknown powerpc system. It is *"
8138     echo "* recommended that you use *"
8139     echo "* *"
8140     echo "* CXXFLAGS=-O3 -qarch=ppc -qtune=xxx -qansialias -w *"
8141     echo "* ^^^ *"
8142     echo "* where xxx is 601, 603, 604, or whatever kind of *"
8143     echo "* PowerPC CPU you have. For more info, man cc. *"
8144     echo "*******************************************************"
8145     fi;;
8146     *darwin*)
8147 gezelter 2022 if test "$CXX" = xlc++ -o "$CXX" = xlC ; then
8148 chuckv 1579 CXXFLAGS="-qthreaded -O -qtune=auto -qarch=auto -qunroll=auto -qaltivec"
8149 gezelter 1490 fi;;
8150     esac
8151    
8152     # use default flags for gcc on all systems
8153     if test $ac_cv_prog_really_gxx = yes; then
8154     CXXFLAGS="-O6 -fomit-frame-pointer -Wall -W -Wcast-qual -Wpointer-arith -Wcast-align -pedantic"
8155     fi
8156    
8157     # test for gcc-specific flags:
8158     if test $ac_cv_prog_really_gxx = yes; then
8159     # -malign-double for x86 systems
8160    
8161 gezelter 2081
8162     echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -malign-double" >&5
8163 gezelter 1490 echo $ECHO_N "checking whether ${CXX-c++} accepts -malign-double... $ECHO_C" >&6
8164     if test "${ac_align_double+set}" = set; then
8165     echo $ECHO_N "(cached) $ECHO_C" >&6
8166     else
8167     echo 'void f(){}' > conftest.cpp
8168     if test -z "`${CXX-c++} -malign-double -c conftest.cpp 2>&1`"; then
8169     ac_align_double=yes
8170     else
8171     ac_align_double=no
8172     fi
8173     rm -f conftest*
8174    
8175     fi
8176 gezelter 2081 echo "$as_me:$LINENO: result: $ac_align_double" >&5
8177 gezelter 1490 echo "${ECHO_T}$ac_align_double" >&6
8178     if test "$ac_align_double" = yes; then
8179     :
8180     CXXFLAGS="$CXXFLAGS -malign-double"
8181     else
8182     :
8183    
8184     fi
8185    
8186     # -fstrict-aliasing for gcc-2.95+
8187    
8188 gezelter 2081
8189     echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -fstrict-aliasing" >&5
8190 gezelter 1490 echo $ECHO_N "checking whether ${CXX-c++} accepts -fstrict-aliasing... $ECHO_C" >&6
8191     if test "${ac_fstrict_aliasing+set}" = set; then
8192     echo $ECHO_N "(cached) $ECHO_C" >&6
8193     else
8194     echo 'void f(){}' > conftest.cpp
8195     if test -z "`${CXX-c++} -fstrict-aliasing -c conftest.cpp 2>&1`"; then
8196     ac_fstrict_aliasing=yes
8197     else
8198     ac_fstrict_aliasing=no
8199     fi
8200     rm -f conftest*
8201    
8202     fi
8203 gezelter 2081 echo "$as_me:$LINENO: result: $ac_fstrict_aliasing" >&5
8204 gezelter 1490 echo "${ECHO_T}$ac_fstrict_aliasing" >&6
8205     if test "$ac_fstrict_aliasing" = yes; then
8206     :
8207     CXXFLAGS="$CXXFLAGS -fstrict-aliasing"
8208     else
8209     :
8210    
8211     fi
8212    
8213     fi
8214    
8215     CPU_FLAGS=""
8216     if test $ac_cv_prog_really_gxx = yes; then
8217     case "${host_cpu}" in
8218     i586*)
8219    
8220 gezelter 2081 echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mcpu=pentium" >&5
8221 gezelter 1490 echo $ECHO_N "checking whether ${CXX-c++} accepts -mcpu=pentium... $ECHO_C" >&6
8222     if test "${ac_cpu_pentium+set}" = set; then
8223     echo $ECHO_N "(cached) $ECHO_C" >&6
8224     else
8225     echo 'void f(){}' > conftest.cpp
8226     if test -z "`${CXX-c++} -mcpu=pentium -c conftest.cpp 2>&1`"; then
8227     ac_cpu_pentium=yes
8228     else
8229     ac_cpu_pentium=no
8230     fi
8231     rm -f conftest*
8232    
8233     fi
8234 gezelter 2081 echo "$as_me:$LINENO: result: $ac_cpu_pentium" >&5
8235 gezelter 1490 echo "${ECHO_T}$ac_cpu_pentium" >&6
8236     if test "$ac_cpu_pentium" = yes; then
8237     :
8238     CPU_FLAGS=-mcpu=pentium
8239     else
8240     :
8241    
8242 gezelter 2081
8243     echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mpentium" >&5
8244 gezelter 1490 echo $ECHO_N "checking whether ${CXX-c++} accepts -mpentium... $ECHO_C" >&6
8245     if test "${ac_pentium+set}" = set; then
8246     echo $ECHO_N "(cached) $ECHO_C" >&6
8247     else
8248     echo 'void f(){}' > conftest.cpp
8249     if test -z "`${CXX-c++} -mpentium -c conftest.cpp 2>&1`"; then
8250     ac_pentium=yes
8251     else
8252     ac_pentium=no
8253     fi
8254     rm -f conftest*
8255    
8256     fi
8257 gezelter 2081 echo "$as_me:$LINENO: result: $ac_pentium" >&5
8258 gezelter 1490 echo "${ECHO_T}$ac_pentium" >&6
8259     if test "$ac_pentium" = yes; then
8260     :
8261     CPU_FLAGS=-mpentium
8262     else
8263     :
8264    
8265     fi
8266    
8267     fi
8268    
8269     ;;
8270     i686*)
8271    
8272 gezelter 2081 echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mcpu=pentiumpro" >&5
8273 gezelter 1490 echo $ECHO_N "checking whether ${CXX-c++} accepts -mcpu=pentiumpro... $ECHO_C" >&6
8274     if test "${ac_cpu_pentiumpro+set}" = set; then
8275     echo $ECHO_N "(cached) $ECHO_C" >&6
8276     else
8277     echo 'void f(){}' > conftest.cpp
8278     if test -z "`${CXX-c++} -mcpu=pentiumpro -c conftest.cpp 2>&1`"; then
8279     ac_cpu_pentiumpro=yes
8280     else
8281     ac_cpu_pentiumpro=no
8282     fi
8283     rm -f conftest*
8284    
8285     fi
8286 gezelter 2081 echo "$as_me:$LINENO: result: $ac_cpu_pentiumpro" >&5
8287 gezelter 1490 echo "${ECHO_T}$ac_cpu_pentiumpro" >&6
8288     if test "$ac_cpu_pentiumpro" = yes; then
8289     :
8290     CPU_FLAGS=-mcpu=pentiumpro
8291     else
8292     :
8293    
8294 gezelter 2081
8295     echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mpentiumpro" >&5
8296 gezelter 1490 echo $ECHO_N "checking whether ${CXX-c++} accepts -mpentiumpro... $ECHO_C" >&6
8297     if test "${ac_pentiumpro+set}" = set; then
8298     echo $ECHO_N "(cached) $ECHO_C" >&6
8299     else
8300     echo 'void f(){}' > conftest.cpp
8301     if test -z "`${CXX-c++} -mpentiumpro -c conftest.cpp 2>&1`"; then
8302     ac_pentiumpro=yes
8303     else
8304     ac_pentiumpro=no
8305     fi
8306     rm -f conftest*
8307    
8308     fi
8309 gezelter 2081 echo "$as_me:$LINENO: result: $ac_pentiumpro" >&5
8310 gezelter 1490 echo "${ECHO_T}$ac_pentiumpro" >&6
8311     if test "$ac_pentiumpro" = yes; then
8312     :
8313     CPU_FLAGS=-mpentiumpro
8314     else
8315     :
8316    
8317     fi
8318    
8319     fi
8320    
8321     ;;
8322     powerpc*)
8323     cputype=`(grep cpu /proc/cpuinfo | head -1 | cut -d: -f2 | sed 's/ //g') 2> /dev/null`
8324     is60x=`echo $cputype | egrep "^600-9e?$"`
8325     if test -n "$is60x"; then
8326    
8327 gezelter 2081
8328     echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mcpu=$cputype" >&5
8329 gezelter 1490 echo $ECHO_N "checking whether ${CXX-c++} accepts -mcpu=$cputype... $ECHO_C" >&6
8330     if test "${ac_m_cpu_60x+set}" = set; then
8331     echo $ECHO_N "(cached) $ECHO_C" >&6
8332     else
8333     echo 'void f(){}' > conftest.cpp
8334     if test -z "`${CXX-c++} -mcpu=$cputype -c conftest.cpp 2>&1`"; then
8335     ac_m_cpu_60x=yes
8336     else
8337     ac_m_cpu_60x=no
8338     fi
8339     rm -f conftest*
8340    
8341     fi
8342 gezelter 2081 echo "$as_me:$LINENO: result: $ac_m_cpu_60x" >&5
8343 gezelter 1490 echo "${ECHO_T}$ac_m_cpu_60x" >&6
8344     if test "$ac_m_cpu_60x" = yes; then
8345     :
8346     CPU_FLAGS=-mcpu=$cputype
8347     else
8348     :
8349    
8350     fi
8351    
8352     elif test "$cputype" = 750; then
8353    
8354 gezelter 2081
8355     echo "$as_me:$LINENO: checking whether we are using g++ 2.95 or later" >&5
8356 gezelter 1490 echo $ECHO_N "checking whether we are using g++ 2.95 or later... $ECHO_C" >&6
8357     if test "${ac_cv_prog_gxx_2_95+set}" = set; then
8358     echo $ECHO_N "(cached) $ECHO_C" >&6
8359     else
8360    
8361     cat > conftest.cpp <<EOF
8362     #ifdef __GNUC__ && !defined (__INTEL_COMPILER)
8363     # if (__GNUC__ > 2) || (__GNUC__ == 2 && __GNUC_MINOR__ >= 95)
8364     yes;
8365     # endif
8366     #endif
8367     EOF
8368     if { ac_try='${CXX-c++} -E conftest.cpp'
8369 gezelter 2081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8370 gezelter 1490 (eval $ac_try) 2>&5
8371     ac_status=$?
8372 gezelter 2081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8373 gezelter 1490 (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then
8374     ac_cv_prog_gxx_2_95=yes
8375     else
8376     ac_cv_prog_gxx_2_95=no
8377     fi
8378    
8379     fi
8380 gezelter 2081 echo "$as_me:$LINENO: result: $ac_cv_prog_gxx_2_95" >&5
8381 gezelter 1490 echo "${ECHO_T}$ac_cv_prog_gxx_2_95" >&6
8382     if test "$ac_cv_prog_gxx_2_95" = yes; then
8383     :
8384    
8385 gezelter 2081
8386     echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mcpu=750" >&5
8387 gezelter 1490 echo $ECHO_N "checking whether ${CXX-c++} accepts -mcpu=750... $ECHO_C" >&6
8388     if test "${ac_m_cpu_750+set}" = set; then
8389     echo $ECHO_N "(cached) $ECHO_C" >&6
8390     else
8391     echo 'void f(){}' > conftest.cpp
8392     if test -z "`${CXX-c++} -mcpu=750 -c conftest.cpp 2>&1`"; then
8393     ac_m_cpu_750=yes
8394     else
8395     ac_m_cpu_750=no
8396     fi
8397     rm -f conftest*
8398    
8399     fi
8400 gezelter 2081 echo "$as_me:$LINENO: result: $ac_m_cpu_750" >&5
8401 gezelter 1490 echo "${ECHO_T}$ac_m_cpu_750" >&6
8402     if test "$ac_m_cpu_750" = yes; then
8403     :
8404     CPU_FLAGS=-mcpu=750
8405     else
8406     :
8407    
8408     fi
8409    
8410     else
8411     :
8412    
8413     fi
8414    
8415     fi
8416     if test -z "$CPU_FLAGS"; then
8417    
8418 gezelter 2081
8419     echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mcpu=powerpc" >&5
8420 gezelter 1490 echo $ECHO_N "checking whether ${CXX-c++} accepts -mcpu=powerpc... $ECHO_C" >&6
8421     if test "${ac_m_cpu_powerpc+set}" = set; then
8422     echo $ECHO_N "(cached) $ECHO_C" >&6
8423     else
8424     echo 'void f(){}' > conftest.cpp
8425     if test -z "`${CXX-c++} -mcpu=powerpc -c conftest.cpp 2>&1`"; then
8426     ac_m_cpu_powerpc=yes
8427     else
8428     ac_m_cpu_powerpc=no
8429     fi
8430     rm -f conftest*
8431    
8432     fi
8433 gezelter 2081 echo "$as_me:$LINENO: result: $ac_m_cpu_powerpc" >&5
8434 gezelter 1490 echo "${ECHO_T}$ac_m_cpu_powerpc" >&6
8435     if test "$ac_m_cpu_powerpc" = yes; then
8436     :
8437     CPU_FLAGS=-mcpu=powerpc
8438     else
8439     :
8440    
8441     fi
8442    
8443     fi
8444     if test -z "$CPU_FLAGS"; then
8445    
8446 gezelter 2081
8447     echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mpowerpc" >&5
8448 gezelter 1490 echo $ECHO_N "checking whether ${CXX-c++} accepts -mpowerpc... $ECHO_C" >&6
8449     if test "${ac_m_powerpc+set}" = set; then
8450     echo $ECHO_N "(cached) $ECHO_C" >&6
8451     else
8452     echo 'void f(){}' > conftest.cpp
8453     if test -z "`${CXX-c++} -mpowerpc -c conftest.cpp 2>&1`"; then
8454     ac_m_powerpc=yes
8455     else
8456     ac_m_powerpc=no
8457     fi
8458     rm -f conftest*
8459    
8460     fi
8461 gezelter 2081 echo "$as_me:$LINENO: result: $ac_m_powerpc" >&5
8462 gezelter 1490 echo "${ECHO_T}$ac_m_powerpc" >&6
8463     if test "$ac_m_powerpc" = yes; then
8464     :
8465     CPU_FLAGS=-mpowerpc
8466     else
8467     :
8468    
8469     fi
8470    
8471     fi
8472     esac
8473     fi
8474    
8475     if test -n "$CPU_FLAGS"; then
8476     CXXFLAGS="$CXXFLAGS $CPU_FLAGS"
8477     fi
8478    
8479     if test -z "$CXXFLAGS"; then
8480     echo ""
8481     echo "**********************************************************"
8482     echo "* WARNING: Don't know the best CXXFLAGS for this system *"
8483     echo "* Use make CXXFLAGS=..., or edit the top level Makefile *"
8484     echo "* (otherwise, a default of CXXFLAGS=-O3 will be used) *"
8485     echo "**********************************************************"
8486     echo ""
8487     CXXFLAGS="-O3"
8488     fi
8489    
8490 gezelter 2081
8491    
8492     echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts ${CXXFLAGS}" >&5
8493 gezelter 1490 echo $ECHO_N "checking whether ${CXX-c++} accepts ${CXXFLAGS}... $ECHO_C" >&6
8494     if test "${ac_guessed_cxxflags+set}" = set; then
8495     echo $ECHO_N "(cached) $ECHO_C" >&6
8496     else
8497     echo 'void f(){}' > conftest.cpp
8498     if test -z "`${CXX-c++} ${CXXFLAGS} -c conftest.cpp 2>&1`"; then
8499     ac_guessed_cxxflags=yes
8500     else
8501     ac_guessed_cxxflags=no
8502     fi
8503     rm -f conftest*
8504    
8505     fi
8506 gezelter 2081 echo "$as_me:$LINENO: result: $ac_guessed_cxxflags" >&5
8507 gezelter 1490 echo "${ECHO_T}$ac_guessed_cxxflags" >&6
8508     if test "$ac_guessed_cxxflags" = yes; then
8509     :
8510    
8511     else
8512     :
8513    
8514     echo ""
8515     echo "**********************************************************"
8516     echo "* WARNING: The guessed CXXFLAGS don't seem to work with *"
8517     echo "* your compiler. *"
8518     echo "* Use make CXXFLAGS=..., or edit the top level Makefile *"
8519     echo "**********************************************************"
8520     echo ""
8521     CXXFLAGS=""
8522    
8523     fi
8524    
8525 gezelter 2081
8526 gezelter 1490 fi
8527    
8528 gezelter 2081
8529    
8530    
8531    
8532 gezelter 1490 # Try to determine "good" native compiler flags if none specified on command
8533     # line
8534    
8535     if test x"$F90FLAGS" = x ; then
8536     F90FLAGS=""
8537     case "${host_cpu}-${host_os}" in
8538    
8539     *linux*) if test "$F90" = ifc -o "$F90" = ifort; then
8540     F90FLAGS="-O"
8541     fi;;
8542     rs6000*-aix*) if test "$F90" = xlf90 -o "$F90" = f90; then
8543     F90FLAGS="-O3 -qarch=pwrx -qtune=pwrx -qansialias -w"
8544     fi;;
8545     powerpc*-aix*)
8546     if test "$F90" = f90 -o "$F90" = xlf90; then
8547     F90FLAGS="-O3 -qarch=ppc -qansialias -w"
8548     echo "*******************************************************"
8549     echo "* You have AIX on an unknown powerpc system. It is *"
8550     echo "* recommended that you use *"
8551     echo "* *"
8552     echo "* F90FLAGS=-O3 -qarch=ppc -qtune=xxx -qansialias -w *"
8553     echo "* ^^^ *"
8554     echo "* where xxx is 601, 603, 604, or whatever kind of *"
8555     echo "* PowerPC CPU you have. For more info, man xlf. *"
8556     echo "*******************************************************"
8557     fi;;
8558     *darwin*)
8559     if test "$F90" = f90 -o "$F90" = xlf90 -o "$F90" = xlf95; then
8560 chuckv 1579 F90FLAGS="-qthreaded -O -qtune=auto -qarch=auto -qunroll=auto"
8561 gezelter 1490 fi;;
8562     esac
8563    
8564     if test -n "$CPU_FLAGS"; then
8565     F90FLAGS="$F90FLAGS $CPU_FLAGS"
8566     fi
8567    
8568     if test -z "$F90FLAGS"; then
8569     echo ""
8570     echo "**********************************************************"
8571     echo "* WARNING: Don't know the best F90FLAGS for this system *"
8572     echo "* Use make F90FLAGS=..., or edit the top level Makefile *"
8573     echo "* (otherwise, a default of F90FLAGS=-O3 will be used) *"
8574     echo "**********************************************************"
8575     echo ""
8576     F90FLAGS="-O3"
8577     fi
8578    
8579 gezelter 2081
8580     echo "$as_me:$LINENO: checking whether ${F90-f90} accepts ${F90FLAGS}" >&5
8581 gezelter 1490 echo $ECHO_N "checking whether ${F90-f90} accepts ${F90FLAGS}... $ECHO_C" >&6
8582     if test "${ac_guessed_f90flags+set}" = set; then
8583     echo $ECHO_N "(cached) $ECHO_C" >&6
8584     else
8585    
8586 gezelter 2081
8587    
8588 gezelter 1490 ac_ext=f90
8589     ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
8590     ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8591     ac_compiler_gnu=$ac_cv_f90_compiler_gnu
8592    
8593     echo 'program main' > conftest.$ac_ext
8594     echo 'end program main' >> conftest.$ac_ext
8595     ac_compile='${F90-f90} -c ${F90FLAGS} $F90FLAGS conftest.$ac_ext 1>&5'
8596 gezelter 2081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8597 gezelter 1490 (eval $ac_compile) 2>&5
8598     ac_status=$?
8599 gezelter 2081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8600 gezelter 1490 (exit $ac_status); }; then
8601     ac_guessed_f90flags=yes
8602     else
8603     ac_guessed_f90flags=no
8604     fi
8605     rm -f conftest*
8606     ac_ext=c
8607     ac_cpp='$CPP $CPPFLAGS'
8608     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8609     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8610     ac_compiler_gnu=$ac_cv_c_compiler_gnu
8611    
8612 gezelter 2081
8613 gezelter 1490 fi
8614 gezelter 2081 echo "$as_me:$LINENO: result: $ac_guessed_f90flags" >&5
8615 gezelter 1490 echo "${ECHO_T}$ac_guessed_f90flags" >&6
8616     if test "$ac_guessed_f90flags" = yes; then
8617     :
8618    
8619     else
8620     :
8621    
8622     echo ""
8623     echo "**********************************************************"
8624     echo "* WARNING: The guessed F90FLAGS don't seem to work with *"
8625     echo "* your compiler. *"
8626     echo "* Use make F90FLAGS=..., or edit the top level Makefile *"
8627     echo "**********************************************************"
8628     echo ""
8629     F90FLAGS=""
8630    
8631     fi
8632    
8633 gezelter 2081
8634 gezelter 1490 fi
8635    
8636     ;;
8637     esac
8638    
8639     # Find a good install program. We prefer a C program (faster),
8640     # so one script is as good as another. But avoid the broken or
8641     # incompatible versions:
8642     # SysV /etc/install, /usr/sbin/install
8643     # SunOS /usr/etc/install
8644     # IRIX /sbin/install
8645     # AIX /bin/install
8646     # AmigaOS /C/install, which installs bootblocks on floppy discs
8647     # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8648     # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8649     # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8650 gezelter 2081 # OS/2's system install, which has a completely different semantic
8651 gezelter 1490 # ./install, which can be erroneously created by make from ./install.sh.
8652 gezelter 2081 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
8653     echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
8654 gezelter 1490 if test -z "$INSTALL"; then
8655     if test "${ac_cv_path_install+set}" = set; then
8656     echo $ECHO_N "(cached) $ECHO_C" >&6
8657     else
8658 gezelter 2081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8659     for as_dir in $PATH
8660     do
8661     IFS=$as_save_IFS
8662     test -z "$as_dir" && as_dir=.
8663     # Account for people who put trailing slashes in PATH elements.
8664     case $as_dir/ in
8665     ./ | .// | /cC/* | \
8666     /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
8667     ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
8668     /usr/ucb/* ) ;;
8669     *)
8670     # OSF1 and SCO ODT 3.0 have their own names for install.
8671     # Don't use installbsd from OSF since it installs stuff as root
8672     # by default.
8673     for ac_prog in ginstall scoinst install; do
8674     for ac_exec_ext in '' $ac_executable_extensions; do
8675     if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
8676 gezelter 2026 if test $ac_prog = install &&
8677 gezelter 2081 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8678 gezelter 2026 # AIX install. It has an incompatible calling convention.
8679     :
8680     elif test $ac_prog = install &&
8681 gezelter 2081 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8682 gezelter 2026 # program-specific install script used by HP pwplus--don't use.
8683     :
8684     else
8685 gezelter 2081 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
8686     break 3
8687 gezelter 2026 fi
8688     fi
8689 gezelter 1490 done
8690 gezelter 2081 done
8691     ;;
8692     esac
8693     done
8694 gezelter 1490
8695 gezelter 2081
8696 gezelter 1490 fi
8697     if test "${ac_cv_path_install+set}" = set; then
8698     INSTALL=$ac_cv_path_install
8699     else
8700     # As a last resort, use the slow shell script. We don't cache a
8701     # path for INSTALL within a source directory, because that will
8702     # break other packages using the cache if that directory is
8703     # removed, or if the path is relative.
8704     INSTALL=$ac_install_sh
8705     fi
8706     fi
8707 gezelter 2081 echo "$as_me:$LINENO: result: $INSTALL" >&5
8708 gezelter 1490 echo "${ECHO_T}$INSTALL" >&6
8709    
8710     # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8711     # It thinks the first close brace ends the variable substitution.
8712     test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8713    
8714     test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
8715    
8716     test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8717    
8718 gezelter 2081 echo "$as_me:$LINENO: checking whether ln -s works" >&5
8719 gezelter 1490 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
8720     LN_S=$as_ln_s
8721     if test "$LN_S" = "ln -s"; then
8722 gezelter 2081 echo "$as_me:$LINENO: result: yes" >&5
8723 gezelter 1490 echo "${ECHO_T}yes" >&6
8724     else
8725 gezelter 2081 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
8726 gezelter 1490 echo "${ECHO_T}no, using $LN_S" >&6
8727     fi
8728    
8729 gezelter 2081 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8730     echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
8731     set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
8732 gezelter 1490 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
8733     echo $ECHO_N "(cached) $ECHO_C" >&6
8734     else
8735 gezelter 2081 cat >conftest.make <<\_ACEOF
8736 gezelter 1490 all:
8737 gezelter 2081 @echo 'ac_maketemp="$(MAKE)"'
8738     _ACEOF
8739 gezelter 1490 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8740     eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
8741     if test -n "$ac_maketemp"; then
8742     eval ac_cv_prog_make_${ac_make}_set=yes
8743     else
8744     eval ac_cv_prog_make_${ac_make}_set=no
8745     fi
8746     rm -f conftest.make
8747     fi
8748     if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
8749 gezelter 2081 echo "$as_me:$LINENO: result: yes" >&5
8750 gezelter 1490 echo "${ECHO_T}yes" >&6
8751     SET_MAKE=
8752     else
8753 gezelter 2081 echo "$as_me:$LINENO: result: no" >&5
8754 gezelter 1490 echo "${ECHO_T}no" >&6
8755     SET_MAKE="MAKE=${MAKE-make}"
8756     fi
8757    
8758     if test -n "$ac_tool_prefix"; then
8759     # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8760     set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8761 gezelter 2081 echo "$as_me:$LINENO: checking for $ac_word" >&5
8762 gezelter 1490 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8763     if test "${ac_cv_prog_RANLIB+set}" = set; then
8764     echo $ECHO_N "(cached) $ECHO_C" >&6
8765     else
8766     if test -n "$RANLIB"; then
8767     ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8768     else
8769 gezelter 2081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8770     for as_dir in $PATH
8771     do
8772     IFS=$as_save_IFS
8773     test -z "$as_dir" && as_dir=.
8774     for ac_exec_ext in '' $ac_executable_extensions; do
8775     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8776     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8777     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8778     break 2
8779     fi
8780 gezelter 1490 done
8781 gezelter 2081 done
8782 gezelter 1490
8783     fi
8784     fi
8785     RANLIB=$ac_cv_prog_RANLIB
8786     if test -n "$RANLIB"; then
8787 gezelter 2081 echo "$as_me:$LINENO: result: $RANLIB" >&5
8788 gezelter 1490 echo "${ECHO_T}$RANLIB" >&6
8789     else
8790 gezelter 2081 echo "$as_me:$LINENO: result: no" >&5
8791 gezelter 1490 echo "${ECHO_T}no" >&6
8792     fi
8793    
8794     fi
8795     if test -z "$ac_cv_prog_RANLIB"; then
8796     ac_ct_RANLIB=$RANLIB
8797     # Extract the first word of "ranlib", so it can be a program name with args.
8798     set dummy ranlib; ac_word=$2
8799 gezelter 2081 echo "$as_me:$LINENO: checking for $ac_word" >&5
8800 gezelter 1490 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8801     if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8802     echo $ECHO_N "(cached) $ECHO_C" >&6
8803     else
8804     if test -n "$ac_ct_RANLIB"; then
8805     ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8806     else
8807 gezelter 2081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8808     for as_dir in $PATH
8809     do
8810     IFS=$as_save_IFS
8811     test -z "$as_dir" && as_dir=.
8812     for ac_exec_ext in '' $ac_executable_extensions; do
8813     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8814     ac_cv_prog_ac_ct_RANLIB="ranlib"
8815     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8816     break 2
8817     fi
8818 gezelter 1490 done
8819 gezelter 2081 done
8820 gezelter 1490
8821     test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
8822     fi
8823     fi
8824     ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8825     if test -n "$ac_ct_RANLIB"; then
8826 gezelter 2081 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8827 gezelter 1490 echo "${ECHO_T}$ac_ct_RANLIB" >&6
8828     else
8829 gezelter 2081 echo "$as_me:$LINENO: result: no" >&5
8830 gezelter 1490 echo "${ECHO_T}no" >&6
8831     fi
8832    
8833     RANLIB=$ac_ct_RANLIB
8834     else
8835     RANLIB="$ac_cv_prog_RANLIB"
8836     fi
8837    
8838     for ac_prog in 'bison -y' byacc
8839     do
8840     # Extract the first word of "$ac_prog", so it can be a program name with args.
8841     set dummy $ac_prog; ac_word=$2
8842 gezelter 2081 echo "$as_me:$LINENO: checking for $ac_word" >&5
8843 gezelter 1490 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8844     if test "${ac_cv_prog_YACC+set}" = set; then
8845     echo $ECHO_N "(cached) $ECHO_C" >&6
8846     else
8847     if test -n "$YACC"; then
8848     ac_cv_prog_YACC="$YACC" # Let the user override the test.
8849     else
8850 gezelter 2081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8851     for as_dir in $PATH
8852     do
8853     IFS=$as_save_IFS
8854     test -z "$as_dir" && as_dir=.
8855     for ac_exec_ext in '' $ac_executable_extensions; do
8856     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8857     ac_cv_prog_YACC="$ac_prog"
8858     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8859     break 2
8860     fi
8861 gezelter 1490 done
8862 gezelter 2081 done
8863 gezelter 1490
8864     fi
8865     fi
8866     YACC=$ac_cv_prog_YACC
8867     if test -n "$YACC"; then
8868 gezelter 2081 echo "$as_me:$LINENO: result: $YACC" >&5
8869 gezelter 1490 echo "${ECHO_T}$YACC" >&6
8870     else
8871 gezelter 2081 echo "$as_me:$LINENO: result: no" >&5
8872 gezelter 1490 echo "${ECHO_T}no" >&6
8873     fi
8874    
8875     test -n "$YACC" && break
8876     done
8877     test -n "$YACC" || YACC="yacc"
8878    
8879     for ac_prog in flex lex
8880     do
8881     # Extract the first word of "$ac_prog", so it can be a program name with args.
8882     set dummy $ac_prog; ac_word=$2
8883 gezelter 2081 echo "$as_me:$LINENO: checking for $ac_word" >&5
8884 gezelter 1490 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8885     if test "${ac_cv_prog_LEX+set}" = set; then
8886     echo $ECHO_N "(cached) $ECHO_C" >&6
8887     else
8888     if test -n "$LEX"; then
8889     ac_cv_prog_LEX="$LEX" # Let the user override the test.
8890     else
8891 gezelter 2081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8892     for as_dir in $PATH
8893     do
8894     IFS=$as_save_IFS
8895     test -z "$as_dir" && as_dir=.
8896     for ac_exec_ext in '' $ac_executable_extensions; do
8897     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8898     ac_cv_prog_LEX="$ac_prog"
8899     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8900     break 2
8901     fi
8902 gezelter 1490 done
8903 gezelter 2081 done
8904 gezelter 1490
8905     fi
8906     fi
8907     LEX=$ac_cv_prog_LEX
8908     if test -n "$LEX"; then
8909 gezelter 2081 echo "$as_me:$LINENO: result: $LEX" >&5
8910 gezelter 1490 echo "${ECHO_T}$LEX" >&6
8911     else
8912 gezelter 2081 echo "$as_me:$LINENO: result: no" >&5
8913 gezelter 1490 echo "${ECHO_T}no" >&6
8914     fi
8915    
8916     test -n "$LEX" && break
8917     done
8918     test -n "$LEX" || LEX=":"
8919    
8920     if test -z "$LEXLIB"
8921     then
8922 gezelter 2081 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
8923 gezelter 1490 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
8924     if test "${ac_cv_lib_fl_yywrap+set}" = set; then
8925     echo $ECHO_N "(cached) $ECHO_C" >&6
8926     else
8927     ac_check_lib_save_LIBS=$LIBS
8928     LIBS="-lfl $LIBS"
8929     cat >conftest.$ac_ext <<_ACEOF
8930 gezelter 2081 /* confdefs.h. */
8931     _ACEOF
8932     cat confdefs.h >>conftest.$ac_ext
8933     cat >>conftest.$ac_ext <<_ACEOF
8934     /* end confdefs.h. */
8935 gezelter 1490
8936     /* Override any gcc2 internal prototype to avoid an error. */
8937     #ifdef __cplusplus
8938     extern "C"
8939     #endif
8940     /* We use char because int might match the return type of a gcc2
8941     builtin and then its argument prototype would still apply. */
8942     char yywrap ();
8943     int
8944     main ()
8945     {
8946     yywrap ();
8947     ;
8948     return 0;
8949     }
8950     _ACEOF
8951     rm -f conftest.$ac_objext conftest$ac_exeext
8952 gezelter 2081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8953     (eval $ac_link) 2>conftest.er1
8954 gezelter 1490 ac_status=$?
8955 gezelter 2081 grep -v '^ *+' conftest.er1 >conftest.err
8956     rm -f conftest.er1
8957     cat conftest.err >&5
8958     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8959 gezelter 1490 (exit $ac_status); } &&
8960 gezelter 2473 { ac_try='test -z "$ac_c_werror_flag"
8961     || test ! -s conftest.err'
8962 gezelter 2081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8963 gezelter 1490 (eval $ac_try) 2>&5
8964     ac_status=$?
8965 gezelter 2081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8966     (exit $ac_status); }; } &&
8967     { ac_try='test -s conftest$ac_exeext'
8968     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8969     (eval $ac_try) 2>&5
8970     ac_status=$?
8971     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8972 gezelter 1490 (exit $ac_status); }; }; then
8973     ac_cv_lib_fl_yywrap=yes
8974     else
8975     echo "$as_me: failed program was:" >&5
8976 gezelter 2081 sed 's/^/| /' conftest.$ac_ext >&5
8977    
8978 gezelter 1490 ac_cv_lib_fl_yywrap=no
8979     fi
8980 gezelter 2081 rm -f conftest.err conftest.$ac_objext \
8981     conftest$ac_exeext conftest.$ac_ext
8982 gezelter 1490 LIBS=$ac_check_lib_save_LIBS
8983     fi
8984 gezelter 2081 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
8985 gezelter 1490 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
8986     if test $ac_cv_lib_fl_yywrap = yes; then
8987     LEXLIB="-lfl"
8988     else
8989 gezelter 2081 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
8990 gezelter 1490 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
8991     if test "${ac_cv_lib_l_yywrap+set}" = set; then
8992     echo $ECHO_N "(cached) $ECHO_C" >&6
8993     else
8994     ac_check_lib_save_LIBS=$LIBS
8995     LIBS="-ll $LIBS"
8996     cat >conftest.$ac_ext <<_ACEOF
8997 gezelter 2081 /* confdefs.h. */
8998     _ACEOF
8999     cat confdefs.h >>conftest.$ac_ext
9000     cat >>conftest.$ac_ext <<_ACEOF
9001     /* end confdefs.h. */
9002 gezelter 1490
9003     /* Override any gcc2 internal prototype to avoid an error. */
9004     #ifdef __cplusplus
9005     extern "C"
9006     #endif
9007     /* We use char because int might match the return type of a gcc2
9008     builtin and then its argument prototype would still apply. */
9009     char yywrap ();
9010     int
9011     main ()
9012     {
9013     yywrap ();
9014     ;
9015     return 0;
9016     }
9017     _ACEOF
9018     rm -f conftest.$ac_objext conftest$ac_exeext
9019 gezelter 2081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9020     (eval $ac_link) 2>conftest.er1
9021 gezelter 1490 ac_status=$?
9022 gezelter 2081 grep -v '^ *+' conftest.er1 >conftest.err
9023     rm -f conftest.er1
9024     cat conftest.err >&5
9025     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9026 gezelter 1490 (exit $ac_status); } &&
9027 gezelter 2473 { ac_try='test -z "$ac_c_werror_flag"
9028     || test ! -s conftest.err'
9029 gezelter 2081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9030 gezelter 1490 (eval $ac_try) 2>&5
9031     ac_status=$?
9032 gezelter 2081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9033     (exit $ac_status); }; } &&
9034     { ac_try='test -s conftest$ac_exeext'
9035     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9036     (eval $ac_try) 2>&5
9037     ac_status=$?
9038     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9039 gezelter 1490 (exit $ac_status); }; }; then
9040     ac_cv_lib_l_yywrap=yes
9041     else
9042     echo "$as_me: failed program was:" >&5
9043 gezelter 2081 sed 's/^/| /' conftest.$ac_ext >&5
9044    
9045 gezelter 1490 ac_cv_lib_l_yywrap=no
9046     fi
9047 gezelter 2081 rm -f conftest.err conftest.$ac_objext \
9048     conftest$ac_exeext conftest.$ac_ext
9049 gezelter 1490 LIBS=$ac_check_lib_save_LIBS
9050     fi
9051 gezelter 2081 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
9052 gezelter 1490 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
9053     if test $ac_cv_lib_l_yywrap = yes; then
9054     LEXLIB="-ll"
9055     fi
9056    
9057     fi
9058    
9059     fi
9060    
9061     if test "x$LEX" != "x:"; then
9062 gezelter 2081 echo "$as_me:$LINENO: checking lex output file root" >&5
9063 gezelter 1490 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
9064     if test "${ac_cv_prog_lex_root+set}" = set; then
9065     echo $ECHO_N "(cached) $ECHO_C" >&6
9066     else
9067     # The minimal lex program is just a single line: %%. But some broken lexes
9068     # (Solaris, I think it was) want two %% lines, so accommodate them.
9069 gezelter 2081 cat >conftest.l <<_ACEOF
9070     %%
9071     %%
9072     _ACEOF
9073     { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
9074     (eval $LEX conftest.l) 2>&5
9075     ac_status=$?
9076     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9077     (exit $ac_status); }
9078 gezelter 1490 if test -f lex.yy.c; then
9079     ac_cv_prog_lex_root=lex.yy
9080     elif test -f lexyy.c; then
9081     ac_cv_prog_lex_root=lexyy
9082     else
9083 gezelter 2081 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
9084 gezelter 1490 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
9085     { (exit 1); exit 1; }; }
9086     fi
9087     fi
9088 gezelter 2081 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
9089 gezelter 1490 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
9090 gezelter 2081 rm -f conftest.l
9091 gezelter 1490 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
9092    
9093 gezelter 2081 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
9094 gezelter 1490 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
9095     if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
9096     echo $ECHO_N "(cached) $ECHO_C" >&6
9097     else
9098     # POSIX says lex can declare yytext either as a pointer or an array; the
9099     # default is implementation-dependent. Figure out which it is, since
9100     # not all implementations provide the %pointer and %array declarations.
9101     ac_cv_prog_lex_yytext_pointer=no
9102     echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
9103     ac_save_LIBS=$LIBS
9104     LIBS="$LIBS $LEXLIB"
9105     cat >conftest.$ac_ext <<_ACEOF
9106     `cat $LEX_OUTPUT_ROOT.c`
9107     _ACEOF
9108     rm -f conftest.$ac_objext conftest$ac_exeext
9109 gezelter 2081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9110     (eval $ac_link) 2>conftest.er1
9111 gezelter 1490 ac_status=$?
9112 gezelter 2081 grep -v '^ *+' conftest.er1 >conftest.err
9113     rm -f conftest.er1
9114     cat conftest.err >&5
9115     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9116 gezelter 1490 (exit $ac_status); } &&
9117 gezelter 2473 { ac_try='test -z "$ac_c_werror_flag"
9118     || test ! -s conftest.err'
9119 gezelter 2081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9120 gezelter 1490 (eval $ac_try) 2>&5
9121     ac_status=$?
9122 gezelter 2081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9123     (exit $ac_status); }; } &&
9124     { ac_try='test -s conftest$ac_exeext'
9125     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9126     (eval $ac_try) 2>&5
9127     ac_status=$?
9128     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9129 gezelter 1490 (exit $ac_status); }; }; then
9130     ac_cv_prog_lex_yytext_pointer=yes
9131     else
9132     echo "$as_me: failed program was:" >&5
9133 gezelter 2081 sed 's/^/| /' conftest.$ac_ext >&5
9134    
9135 gezelter 1490 fi
9136 gezelter 2081 rm -f conftest.err conftest.$ac_objext \
9137     conftest$ac_exeext conftest.$ac_ext
9138 gezelter 1490 LIBS=$ac_save_LIBS
9139     rm -f "${LEX_OUTPUT_ROOT}.c"
9140    
9141     fi
9142 gezelter 2081 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
9143 gezelter 1490 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
9144     if test $ac_cv_prog_lex_yytext_pointer = yes; then
9145    
9146 gezelter 2081 cat >>confdefs.h <<\_ACEOF
9147 gezelter 1490 #define YYTEXT_POINTER 1
9148 gezelter 2081 _ACEOF
9149 gezelter 1490
9150     fi
9151    
9152     fi
9153 gezelter 2199
9154     # Extract the first word of "perl", so it can be a program name with args.
9155     set dummy perl; ac_word=$2
9156     echo "$as_me:$LINENO: checking for $ac_word" >&5
9157     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9158     if test "${ac_cv_path_PERLINTERP+set}" = set; then
9159     echo $ECHO_N "(cached) $ECHO_C" >&6
9160     else
9161     case $PERLINTERP in
9162     [\\/]* | ?:[\\/]*)
9163     ac_cv_path_PERLINTERP="$PERLINTERP" # Let the user override the test with a path.
9164     ;;
9165     *)
9166     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9167     for as_dir in $PATH
9168     do
9169     IFS=$as_save_IFS
9170     test -z "$as_dir" && as_dir=.
9171     for ac_exec_ext in '' $ac_executable_extensions; do
9172     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9173     ac_cv_path_PERLINTERP="$as_dir/$ac_word$ac_exec_ext"
9174     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9175     break 2
9176     fi
9177     done
9178     done
9179    
9180     test -z "$ac_cv_path_PERLINTERP" && ac_cv_path_PERLINTERP="perl"
9181     ;;
9182     esac
9183     fi
9184     PERLINTERP=$ac_cv_path_PERLINTERP
9185    
9186     if test -n "$PERLINTERP"; then
9187     echo "$as_me:$LINENO: result: $PERLINTERP" >&5
9188     echo "${ECHO_T}$PERLINTERP" >&6
9189     else
9190     echo "$as_me:$LINENO: result: no" >&5
9191     echo "${ECHO_T}no" >&6
9192     fi
9193    
9194     ac_cv_path_perlinterp="$PERLINTERP"
9195     _sHpB='#!'
9196    
9197    
9198     # Check whether --with-perl-shebang or --without-perl-shebang was given.
9199     if test "${with_perl_shebang+set}" = set; then
9200     withval="$with_perl_shebang"
9201     opt_perl_shebang="$withval"
9202     else
9203     opt_perl_shebang="not_set"
9204     fi;
9205     echo "$as_me:$LINENO: checking whether explicit instead of detected sharpbang is to be used" >&5
9206     echo $ECHO_N "checking whether explicit instead of detected sharpbang is to be used... $ECHO_C" >&6
9207     if test "${ax_cv_opt_perl_shebang+set}" = set; then
9208     echo $ECHO_N "(cached) $ECHO_C" >&6
9209     else
9210     case "$opt_perl_shebang" in
9211     not_set ) ax_cv_opt_perl_shebang=''
9212     ;;
9213     * )
9214     ax_cv_opt_perl_shebang=`echo "$opt_perl_shebang" | sed -e's|^#!\s*\(.*\)$|\1|'`
9215     esac
9216    
9217     fi
9218     echo "$as_me:$LINENO: result: $ax_cv_opt_perl_shebang" >&5
9219     echo "${ECHO_T}$ax_cv_opt_perl_shebang" >&6
9220     if test "A$ax_cv_opt_perl_shebang" != "A"
9221     then
9222     ac_cv_sys_kernshrpbang_perl="$ax_cv_opt_perl_shebang"
9223     PERL_SHEBANG="$ac_cv_sys_kernshrpbang_perl"
9224     { echo "$as_me:$LINENO: OK - PERL_SHEBANG is $_sHpB$PERL_SHEBANG." >&5
9225     echo "$as_me: OK - PERL_SHEBANG is $_sHpB$PERL_SHEBANG." >&6;}
9226    
9227     # Automatic detection of sharpbang formula starts here
9228     else
9229     _somian_shbangperl=`$PERLINTERP -V:startperl`
9230     negclass="[^']"; # must leave this comment: m4 will remove the outer brackets for us, heheh
9231     echo "$as_me:$LINENO: checking for kernel sharpbang invocation to start perl" >&5
9232     echo $ECHO_N "checking for kernel sharpbang invocation to start perl... $ECHO_C" >&6
9233     if test "${ac_cv_sys_kernshrpbang_perl+set}" = set; then
9234     echo $ECHO_N "(cached) $ECHO_C" >&6
9235     else
9236     _somian_kspb_perl=`echo "$_somian_shbangperl" | sed -ne"s|.*='\($negclass*\)';$|\1|p"`
9237     if test "x$_somian_kspb_perl" == x
9238     then _somian_ksbp_warn_empty='durnit'
9239     else
9240     case "A$_somian_kspb_perl" in
9241     A#!*perl* )
9242     ac_cv_sys_kernshrpbang_perl=`echo "$_somian_kspb_perl" | sed -e's|#!\(.*\)$|\1|'`
9243     ;;
9244     A* ) _somian_ksbp_warn_defau='trouble'
9245     ac_cv_sys_kernshrpbang_perl="$PERLINTERP"
9246     esac
9247     fi
9248    
9249     fi
9250     echo "$as_me:$LINENO: result: $ac_cv_sys_kernshrpbang_perl" >&5
9251     echo "${ECHO_T}$ac_cv_sys_kernshrpbang_perl" >&6
9252     # The above prints Checking ... result message to user.
9253     PERL_SHEBANG="$ac_cv_sys_kernshrpbang_perl"
9254    
9255     if test A${_somian_ksbp_warn_empty+set} == Aset
9256     then { echo "$as_me:$LINENO: WARNING: In last check, doing $PERLINTERP -V:startperl yielded empty result! That should not happen." >&5
9257     echo "$as_me: WARNING: In last check, doing $PERLINTERP -V:startperl yielded empty result! That should not happen." >&2;}
9258     fi
9259     # Inform user after printing result value
9260     if test A${_somian_ksbp_warn_defau+set} == Aset
9261     then { echo "$as_me:$LINENO: Maybe Not good -" >&5
9262     echo "$as_me: Maybe Not good -" >&6;}
9263     { echo "$as_me:$LINENO: WARNING: In last check perl's Config query did not work so we bunted: $_sHpB$PERLINTERP" >&5
9264     echo "$as_me: WARNING: In last check perl's Config query did not work so we bunted: $_sHpB$PERLINTERP" >&2;}
9265     else { echo "$as_me:$LINENO: OK Good result - " >&5
9266     echo "$as_me: OK Good result - " >&6;}
9267     { echo "$as_me:$LINENO: In last check we got a proper-looking answer from perl's Config: $_somian_shbangperl" >&5
9268     echo "$as_me: In last check we got a proper-looking answer from perl's Config: $_somian_shbangperl" >&6;}
9269     fi
9270     fi
9271    
9272 gezelter 1490 # Extract the first word of "ar", so it can be a program name with args.
9273     set dummy ar; ac_word=$2
9274 gezelter 2081 echo "$as_me:$LINENO: checking for $ac_word" >&5
9275 gezelter 1490 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9276     if test "${ac_cv_prog_AR+set}" = set; then
9277     echo $ECHO_N "(cached) $ECHO_C" >&6
9278     else
9279     if test -n "$AR"; then
9280     ac_cv_prog_AR="$AR" # Let the user override the test.
9281     else
9282 gezelter 2081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9283     for as_dir in $PATH
9284     do
9285     IFS=$as_save_IFS
9286     test -z "$as_dir" && as_dir=.
9287     for ac_exec_ext in '' $ac_executable_extensions; do
9288     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9289     ac_cv_prog_AR="ar"
9290     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9291     break 2
9292     fi
9293 gezelter 1490 done
9294 gezelter 2081 done
9295 gezelter 1490
9296     test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="NONE"
9297     fi
9298     fi
9299     AR=$ac_cv_prog_AR
9300     if test -n "$AR"; then
9301 gezelter 2081 echo "$as_me:$LINENO: result: $AR" >&5
9302 gezelter 1490 echo "${ECHO_T}$AR" >&6
9303     else
9304 gezelter 2081 echo "$as_me:$LINENO: result: no" >&5
9305 gezelter 1490 echo "${ECHO_T}no" >&6
9306     fi
9307    
9308     if test "$AR" = "NONE"; then
9309 gezelter 2081 { { echo "$as_me:$LINENO: error: --> Can't find \`ar'!" >&5
9310 gezelter 1490 echo "$as_me: error: --> Can't find \`ar'!" >&2;}
9311     { (exit 1); exit 1; }; }
9312     cat >confcache <<\_ACEOF
9313     # This file is a shell script that caches the results of configure
9314     # tests run on this system so they can be shared between configure
9315     # scripts and configure runs, see configure's option --config-cache.
9316     # It is not useful on other systems. If it contains results you don't
9317     # want to keep, you may remove or edit it.
9318     #
9319     # config.status only pays attention to the cache file if you give it
9320     # the --recheck option to rerun configure.
9321     #
9322 gezelter 2081 # `ac_cv_env_foo' variables (set or unset) will be overridden when
9323 gezelter 1490 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9324     # following values.
9325    
9326     _ACEOF
9327    
9328     # The following way of writing the cache mishandles newlines in values,
9329     # but we know of no workaround that is simple, portable, and efficient.
9330     # So, don't put newlines in cache variables' values.
9331     # Ultrix sh set writes to stderr and can't be redirected directly,
9332     # and sets the high bit in the cache file unless we assign to the vars.
9333     {
9334     (set) 2>&1 |
9335     case `(ac_space=' '; set | grep ac_space) 2>&1` in
9336     *ac_space=\ *)
9337     # `set' does not quote correctly, so add quotes (double-quote
9338     # substitution turns \\\\ into \\, and sed turns \\ into \).
9339     sed -n \
9340 gezelter 2081 "s/'/'\\\\''/g;
9341     s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9342 gezelter 1490 ;;
9343     *)
9344     # `set' quotes correctly as required by POSIX, so do not add quotes.
9345     sed -n \
9346 gezelter 2081 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
9347 gezelter 1490 ;;
9348     esac;
9349     } |
9350     sed '
9351     t clear
9352     : clear
9353     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9354     t end
9355     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9356     : end' >>confcache
9357 gezelter 2081 if diff $cache_file confcache >/dev/null 2>&1; then :; else
9358 gezelter 1490 if test -w $cache_file; then
9359     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
9360     cat confcache >$cache_file
9361     else
9362     echo "not updating unwritable cache $cache_file"
9363     fi
9364     fi
9365     rm -f confcache
9366     exit 1
9367     fi
9368    
9369 gezelter 2022 # Extract the first word of "ps", so it can be a program name with args.
9370     set dummy ps; ac_word=$2
9371 gezelter 2081 echo "$as_me:$LINENO: checking for $ac_word" >&5
9372 gezelter 2022 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9373 gezelter 2023 if test "${ac_cv_path_PS+set}" = set; then
9374 gezelter 2022 echo $ECHO_N "(cached) $ECHO_C" >&6
9375     else
9376 gezelter 2023 case $PS in
9377 gezelter 2022 [\\/]* | ?:[\\/]*)
9378 gezelter 2023 ac_cv_path_PS="$PS" # Let the user override the test with a path.
9379 gezelter 2022 ;;
9380     *)
9381 gezelter 2081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9382     for as_dir in $PATH
9383     do
9384     IFS=$as_save_IFS
9385     test -z "$as_dir" && as_dir=.
9386     for ac_exec_ext in '' $ac_executable_extensions; do
9387     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9388     ac_cv_path_PS="$as_dir/$ac_word$ac_exec_ext"
9389     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9390     break 2
9391     fi
9392 gezelter 2022 done
9393 gezelter 2081 done
9394 gezelter 1490
9395 gezelter 2022 ;;
9396     esac
9397     fi
9398 gezelter 2023 PS=$ac_cv_path_PS
9399 gezelter 1490
9400 gezelter 2023 if test -n "$PS"; then
9401 gezelter 2081 echo "$as_me:$LINENO: result: $PS" >&5
9402 gezelter 2023 echo "${ECHO_T}$PS" >&6
9403 gezelter 2022 else
9404 gezelter 2081 echo "$as_me:$LINENO: result: no" >&5
9405 gezelter 2022 echo "${ECHO_T}no" >&6
9406     fi
9407    
9408 gezelter 2081 echo "$as_me:$LINENO: checking for POSIX or BSD ps syntax" >&5
9409 gezelter 2024 echo $ECHO_N "checking for POSIX or BSD ps syntax... $ECHO_C" >&6
9410     if test "${ac_cv_prog_ps_syntax+set}" = set; then
9411 gezelter 2022 echo $ECHO_N "(cached) $ECHO_C" >&6
9412     else
9413    
9414 gezelter 2026 if $PS ax -o rss > /dev/null 2>&1; then
9415     ac_cv_prog_ps_ax=yes
9416     else
9417     ac_cv_prog_ps_ax=no
9418     fi
9419 gezelter 2024 if $PS -ef -o rss > /dev/null 2>&1; then
9420     ac_cv_prog_ps_ef=yes
9421 gezelter 2022 else
9422 gezelter 2024 ac_cv_prog_ps_ef=no
9423 gezelter 2022 fi
9424 gezelter 2026 if test "$ac_cv_prog_ps_ax" = yes; then
9425     ac_cv_prog_ps_syntax=BSD
9426 gezelter 2024 else
9427 gezelter 2029 if test "$ac_cv_prog_ps_ef" = yes; then
9428 gezelter 2026 ac_cv_prog_ps_syntax=POSIX
9429 gezelter 2024 else
9430 gezelter 2081 { { echo "$as_me:$LINENO: error: Could not determine ps syntax" >&5
9431 gezelter 2024 echo "$as_me: error: Could not determine ps syntax" >&2;}
9432     { (exit 1); exit 1; }; }
9433     fi
9434     fi
9435 gezelter 2022
9436     fi
9437 gezelter 2081 echo "$as_me:$LINENO: result: $ac_cv_prog_ps_syntax" >&5
9438 gezelter 2024 echo "${ECHO_T}$ac_cv_prog_ps_syntax" >&6
9439 gezelter 2022
9440 gezelter 2081
9441     cat >>confdefs.h <<_ACEOF
9442 gezelter 2027 #define PSCOMMAND $PS
9443 gezelter 2081 _ACEOF
9444 gezelter 2022
9445 gezelter 2081
9446 gezelter 2453 cat >>confdefs.h <<\_ACEOF
9447     #define OBAPI
9448     _ACEOF
9449    
9450    
9451    
9452 gezelter 2029 if test "$ac_cv_prog_ps_syntax" = BSD; then
9453 gezelter 2502
9454     cat >>confdefs.h <<\_ACEOF
9455 gezelter 2029 #define PSTYPE_IS_BSD 1
9456 gezelter 2081 _ACEOF
9457 gezelter 2022
9458 gezelter 2029 else
9459     if test "$ac_cv_prog_ps_syntax" = POSIX; then
9460 gezelter 2502
9461     cat >>confdefs.h <<\_ACEOF
9462 gezelter 2029 #define PSTYPE_IS_POSIX 1
9463 gezelter 2081 _ACEOF
9464 gezelter 2022
9465 gezelter 2029 else
9466 gezelter 2081 { { echo "$as_me:$LINENO: error: Unknown ps syntax type!" >&5
9467 gezelter 2029 echo "$as_me: error: Unknown ps syntax type!" >&2;}
9468     { (exit 1); exit 1; }; }
9469     fi
9470     fi
9471 gezelter 2022
9472 gezelter 2081
9473 gezelter 1490 # Check whether --with-mpi or --without-mpi was given.
9474     if test "${with_mpi+set}" = set; then
9475     withval="$with_mpi"
9476     with_mpi=$withval
9477     else
9478     with_mpi="no"
9479     fi;
9480    
9481     case "x$with_mpi" in
9482     xyes | "x") USE_MPI=yes;;
9483     xno) USE_MPI=no ;;
9484     *) MPI="$with_mpi"; USE_MPI=yes ;;
9485     esac
9486     if test "$USE_MPI" = "yes" -a -z "$with_mpi"; then
9487     MPI="/usr/local"
9488     fi
9489     if test "$USE_MPI" = "yes"; then
9490    
9491 gezelter 2081
9492 gezelter 1490 # Set variables...
9493     MPI_LIB_DIR="$MPI/lib"
9494     MPI_INC_DIR="$MPI/include"
9495    
9496 gezelter 2081
9497    
9498     echo "$as_me:$LINENO: checking for mpi.h" >&5
9499 gezelter 1490 echo $ECHO_N "checking for mpi.h... $ECHO_C" >&6
9500     have_mpi_h=0
9501 gezelter 2265 rm -f conftest*
9502 gezelter 1490 echo '#include <mpi.h>' > conftest.cc
9503 gezelter 2265 if ${CXX} -I${MPI_INC_DIR} -c conftest.cc 2>&1 ; then
9504 gezelter 2081 echo "$as_me:$LINENO: result: yes" >&5
9505 gezelter 1490 echo "${ECHO_T}yes" >&6
9506     have_mpi_h=1
9507     else
9508 gezelter 2265 if test -s conftest.out ; then
9509     cat conftest.out >> config.log
9510     fi
9511 gezelter 2081 echo "$as_me:$LINENO: result: no! Check MPI include paths" >&5
9512 gezelter 1490 echo "${ECHO_T}no! Check MPI include paths" >&6
9513     USE_MPI="no"
9514     fi
9515     rm -f conftest*
9516     if test "$have_mpi_h" = 1; then
9517    
9518 gezelter 2081 cat >>confdefs.h <<\_ACEOF
9519 gezelter 1490 #define HAVE_MPI_H 1
9520 gezelter 2081 _ACEOF
9521 gezelter 1490
9522     fi
9523    
9524 gezelter 2081 echo "$as_me:$LINENO: checking whether mpif.h is usable" >&5
9525 gezelter 1490 echo $ECHO_N "checking whether mpif.h is usable... $ECHO_C" >&6
9526     have_mpif_h=0
9527     rm -f conftest*
9528     cat >conftest.f90 <<EOF
9529     program main
9530     include 'mpif.h'
9531     end
9532     EOF
9533     if $F90 -I$MPI_INC_DIR -c conftest.f90 > conftest.out 2>&1 ; then
9534 gezelter 2081 echo "$as_me:$LINENO: result: yes" >&5
9535 gezelter 1490 echo "${ECHO_T}yes" >&6
9536     MPI_F90_INC="$MPI_INC_DIR"
9537     have_mpif_h=1
9538     else
9539     if test -s conftest.out ; then
9540     cat conftest.out >> config.log
9541     fi
9542 gezelter 2081 echo "$as_me:$LINENO: result: no! Check MPI include paths" >&5
9543 gezelter 1490 echo "${ECHO_T}no! Check MPI include paths" >&6
9544     USE_MPI="no"
9545     fi
9546     rm -f conftest*
9547    
9548     if test "$have_mpif_h" = 1; then
9549    
9550 gezelter 2081 cat >>confdefs.h <<\_ACEOF
9551 gezelter 1490 #define HAVE_MPIF_H 1
9552 gezelter 2081 _ACEOF
9553 gezelter 1490
9554     fi
9555    
9556     ac_ext=c
9557     ac_cpp='$CPP $CPPFLAGS'
9558     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9559     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9560     ac_compiler_gnu=$ac_cv_c_compiler_gnu
9561    
9562     ac_save_LDFLAGS=$LDFLAGS
9563     LDFLAGS="${LDFLAGS} -L${MPI_LIB_DIR} "
9564    
9565     if test x = x"$MPI_LIB"; then
9566 gezelter 2081 echo "$as_me:$LINENO: checking for MPI_Init in -lmpich" >&5
9567 gezelter 1490 echo $ECHO_N "checking for MPI_Init in -lmpich... $ECHO_C" >&6
9568     if test "${ac_cv_lib_mpich_MPI_Init+set}" = set; then
9569     echo $ECHO_N "(cached) $ECHO_C" >&6
9570     else
9571     ac_check_lib_save_LIBS=$LIBS
9572     LIBS="-lmpich $LIBS"
9573     cat >conftest.$ac_ext <<_ACEOF
9574 gezelter 2081 /* confdefs.h. */
9575     _ACEOF
9576     cat confdefs.h >>conftest.$ac_ext
9577     cat >>conftest.$ac_ext <<_ACEOF
9578     /* end confdefs.h. */
9579 gezelter 1490
9580     /* Override any gcc2 internal prototype to avoid an error. */
9581     #ifdef __cplusplus
9582     extern "C"
9583     #endif
9584     /* We use char because int might match the return type of a gcc2
9585     builtin and then its argument prototype would still apply. */
9586     char MPI_Init ();
9587     int
9588     main ()
9589     {
9590     MPI_Init ();
9591     ;
9592     return 0;
9593     }
9594     _ACEOF
9595     rm -f conftest.$ac_objext conftest$ac_exeext
9596 gezelter 2081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9597     (eval $ac_link) 2>conftest.er1
9598 gezelter 1490 ac_status=$?
9599 gezelter 2081 grep -v '^ *+' conftest.er1 >conftest.err
9600     rm -f conftest.er1
9601     cat conftest.err >&5
9602     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9603 gezelter 1490 (exit $ac_status); } &&
9604 gezelter 2473 { ac_try='test -z "$ac_c_werror_flag"
9605     || test ! -s conftest.err'
9606 gezelter 2081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9607 gezelter 1490 (eval $ac_try) 2>&5
9608     ac_status=$?
9609 gezelter 2081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9610     (exit $ac_status); }; } &&
9611     { ac_try='test -s conftest$ac_exeext'
9612     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9613     (eval $ac_try) 2>&5
9614     ac_status=$?
9615     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9616 gezelter 1490 (exit $ac_status); }; }; then
9617     ac_cv_lib_mpich_MPI_Init=yes
9618     else
9619     echo "$as_me: failed program was:" >&5
9620 gezelter 2081 sed 's/^/| /' conftest.$ac_ext >&5
9621    
9622 gezelter 1490 ac_cv_lib_mpich_MPI_Init=no
9623     fi
9624 gezelter 2081 rm -f conftest.err conftest.$ac_objext \
9625     conftest$ac_exeext conftest.$ac_ext
9626 gezelter 1490 LIBS=$ac_check_lib_save_LIBS
9627     fi
9628 gezelter 2081 echo "$as_me:$LINENO: result: $ac_cv_lib_mpich_MPI_Init" >&5
9629 gezelter 1490 echo "${ECHO_T}$ac_cv_lib_mpich_MPI_Init" >&6
9630     if test $ac_cv_lib_mpich_MPI_Init = yes; then
9631     MPI_LIB="-lmpich"
9632     fi
9633    
9634     fi
9635     if test x = x"$MPI_LIB"; then
9636 gezelter 2081 echo "$as_me:$LINENO: checking for MPI_Init in -lmpi" >&5
9637 gezelter 1490 echo $ECHO_N "checking for MPI_Init in -lmpi... $ECHO_C" >&6
9638     if test "${ac_cv_lib_mpi_MPI_Init+set}" = set; then
9639     echo $ECHO_N "(cached) $ECHO_C" >&6
9640     else
9641     ac_check_lib_save_LIBS=$LIBS
9642     LIBS="-lmpi $LIBS"
9643     cat >conftest.$ac_ext <<_ACEOF
9644 gezelter 2081 /* confdefs.h. */
9645     _ACEOF
9646     cat confdefs.h >>conftest.$ac_ext
9647     cat >>conftest.$ac_ext <<_ACEOF
9648     /* end confdefs.h. */
9649 gezelter 1490
9650     /* Override any gcc2 internal prototype to avoid an error. */
9651     #ifdef __cplusplus
9652     extern "C"
9653     #endif
9654     /* We use char because int might match the return type of a gcc2
9655     builtin and then its argument prototype would still apply. */
9656     char MPI_Init ();
9657     int
9658     main ()
9659     {
9660     MPI_Init ();
9661     ;
9662     return 0;
9663     }
9664     _ACEOF
9665     rm -f conftest.$ac_objext conftest$ac_exeext
9666 gezelter 2081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9667     (eval $ac_link) 2>conftest.er1
9668 gezelter 1490 ac_status=$?
9669 gezelter 2081 grep -v '^ *+' conftest.er1 >conftest.err
9670     rm -f conftest.er1
9671     cat conftest.err >&5
9672     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9673 gezelter 1490 (exit $ac_status); } &&
9674 gezelter 2473 { ac_try='test -z "$ac_c_werror_flag"
9675     || test ! -s conftest.err'
9676 gezelter 2081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9677 gezelter 1490 (eval $ac_try) 2>&5
9678     ac_status=$?
9679 gezelter 2081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9680     (exit $ac_status); }; } &&
9681     { ac_try='test -s conftest$ac_exeext'
9682     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9683     (eval $ac_try) 2>&5
9684     ac_status=$?
9685     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9686 gezelter 1490 (exit $ac_status); }; }; then
9687     ac_cv_lib_mpi_MPI_Init=yes
9688     else
9689     echo "$as_me: failed program was:" >&5
9690 gezelter 2081 sed 's/^/| /' conftest.$ac_ext >&5
9691    
9692 gezelter 1490 ac_cv_lib_mpi_MPI_Init=no
9693     fi
9694 gezelter 2081 rm -f conftest.err conftest.$ac_objext \
9695     conftest$ac_exeext conftest.$ac_ext
9696 gezelter 1490 LIBS=$ac_check_lib_save_LIBS
9697     fi
9698 gezelter 2081 echo "$as_me:$LINENO: result: $ac_cv_lib_mpi_MPI_Init" >&5
9699 gezelter 1490 echo "${ECHO_T}$ac_cv_lib_mpi_MPI_Init" >&6
9700     if test $ac_cv_lib_mpi_MPI_Init = yes; then
9701     MPI_LIB="-lmpi"
9702     fi
9703    
9704     fi
9705     $as_unset ac_cv_lib_mpi_MPI_Init
9706     if test x = x"$MPI_LIB"; then
9707 gezelter 2081 echo "$as_me:$LINENO: checking for MPI_Init in -lmpi" >&5
9708 gezelter 1490 echo $ECHO_N "checking for MPI_Init in -lmpi... $ECHO_C" >&6
9709     if test "${ac_cv_lib_mpi_MPI_Init+set}" = set; then
9710     echo $ECHO_N "(cached) $ECHO_C" >&6
9711     else
9712     ac_check_lib_save_LIBS=$LIBS
9713     LIBS="-lmpi "-llam" $LIBS"
9714     cat >conftest.$ac_ext <<_ACEOF
9715 gezelter 2081 /* confdefs.h. */
9716     _ACEOF
9717     cat confdefs.h >>conftest.$ac_ext
9718     cat >>conftest.$ac_ext <<_ACEOF
9719     /* end confdefs.h. */
9720 gezelter 1490
9721     /* Override any gcc2 internal prototype to avoid an error. */
9722     #ifdef __cplusplus
9723     extern "C"
9724     #endif
9725     /* We use char because int might match the return type of a gcc2
9726     builtin and then its argument prototype would still apply. */
9727     char MPI_Init ();
9728     int
9729     main ()
9730     {
9731     MPI_Init ();
9732     ;
9733     return 0;
9734     }
9735     _ACEOF
9736     rm -f conftest.$ac_objext conftest$ac_exeext
9737 gezelter 2081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9738     (eval $ac_link) 2>conftest.er1
9739 gezelter 1490 ac_status=$?
9740 gezelter 2081 grep -v '^ *+' conftest.er1 >conftest.err
9741     rm -f conftest.er1
9742     cat conftest.err >&5
9743     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9744 gezelter 1490 (exit $ac_status); } &&
9745 gezelter 2473 { ac_try='test -z "$ac_c_werror_flag"
9746     || test ! -s conftest.err'
9747 gezelter 2081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9748 gezelter 1490 (eval $ac_try) 2>&5
9749     ac_status=$?
9750 gezelter 2081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9751     (exit $ac_status); }; } &&
9752     { ac_try='test -s conftest$ac_exeext'
9753     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9754     (eval $ac_try) 2>&5
9755     ac_status=$?
9756     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9757 gezelter 1490 (exit $ac_status); }; }; then
9758     ac_cv_lib_mpi_MPI_Init=yes
9759     else
9760     echo "$as_me: failed program was:" >&5
9761 gezelter 2081 sed 's/^/| /' conftest.$ac_ext >&5
9762    
9763 gezelter 1490 ac_cv_lib_mpi_MPI_Init=no
9764     fi
9765 gezelter 2081 rm -f conftest.err conftest.$ac_objext \
9766     conftest$ac_exeext conftest.$ac_ext
9767 gezelter 1490 LIBS=$ac_check_lib_save_LIBS
9768     fi
9769 gezelter 2081 echo "$as_me:$LINENO: result: $ac_cv_lib_mpi_MPI_Init" >&5
9770 gezelter 1490 echo "${ECHO_T}$ac_cv_lib_mpi_MPI_Init" >&6
9771     if test $ac_cv_lib_mpi_MPI_Init = yes; then
9772     MPI_LIB="-lmpi -llam"
9773     fi
9774    
9775     fi
9776 chuckv 1619 $as_unset ac_cv_lib_mpich_MPI_Init
9777     if test x = x"$MPI_LIB"; then
9778 gezelter 2081 echo "$as_me:$LINENO: checking for MPI_Init in -lmpich" >&5
9779 chuckv 1619 echo $ECHO_N "checking for MPI_Init in -lmpich... $ECHO_C" >&6
9780     if test "${ac_cv_lib_mpich_MPI_Init+set}" = set; then
9781     echo $ECHO_N "(cached) $ECHO_C" >&6
9782     else
9783     ac_check_lib_save_LIBS=$LIBS
9784     LIBS="-lmpich "-lpmpich" $LIBS"
9785     cat >conftest.$ac_ext <<_ACEOF
9786 gezelter 2081 /* confdefs.h. */
9787     _ACEOF
9788     cat confdefs.h >>conftest.$ac_ext
9789     cat >>conftest.$ac_ext <<_ACEOF
9790     /* end confdefs.h. */
9791 gezelter 1490
9792 chuckv 1619 /* Override any gcc2 internal prototype to avoid an error. */
9793     #ifdef __cplusplus
9794     extern "C"
9795     #endif
9796     /* We use char because int might match the return type of a gcc2
9797     builtin and then its argument prototype would still apply. */
9798     char MPI_Init ();
9799     int
9800     main ()
9801     {
9802     MPI_Init ();
9803     ;
9804     return 0;
9805     }
9806     _ACEOF
9807     rm -f conftest.$ac_objext conftest$ac_exeext
9808 gezelter 2081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9809     (eval $ac_link) 2>conftest.er1
9810 chuckv 1619 ac_status=$?
9811 gezelter 2081 grep -v '^ *+' conftest.er1 >conftest.err
9812     rm -f conftest.er1
9813     cat conftest.err >&5
9814     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9815 chuckv 1619 (exit $ac_status); } &&
9816 gezelter 2473 { ac_try='test -z "$ac_c_werror_flag"
9817     || test ! -s conftest.err'
9818 gezelter 2081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9819 chuckv 1619 (eval $ac_try) 2>&5
9820     ac_status=$?
9821 gezelter 2081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9822     (exit $ac_status); }; } &&
9823     { ac_try='test -s conftest$ac_exeext'
9824     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9825     (eval $ac_try) 2>&5
9826     ac_status=$?
9827     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9828 chuckv 1619 (exit $ac_status); }; }; then
9829     ac_cv_lib_mpich_MPI_Init=yes
9830     else
9831     echo "$as_me: failed program was:" >&5
9832 gezelter 2081 sed 's/^/| /' conftest.$ac_ext >&5
9833    
9834 chuckv 1619 ac_cv_lib_mpich_MPI_Init=no
9835     fi
9836 gezelter 2081 rm -f conftest.err conftest.$ac_objext \
9837     conftest$ac_exeext conftest.$ac_ext
9838 chuckv 1619 LIBS=$ac_check_lib_save_LIBS
9839     fi
9840 gezelter 2081 echo "$as_me:$LINENO: result: $ac_cv_lib_mpich_MPI_Init" >&5
9841 chuckv 1619 echo "${ECHO_T}$ac_cv_lib_mpich_MPI_Init" >&6
9842     if test $ac_cv_lib_mpich_MPI_Init = yes; then
9843     MPI_LIB="-lmpich -lpmpich"
9844     fi
9845    
9846     fi
9847    
9848 gezelter 1490 $as_unset ac_cv_lib_mpi_MPI_Init
9849     if test x = x"$MPI_LIB"; then
9850 gezelter 2081 echo "$as_me:$LINENO: checking for MPI_Init in -lmpi" >&5
9851 gezelter 1490 echo $ECHO_N "checking for MPI_Init in -lmpi... $ECHO_C" >&6
9852     if test "${ac_cv_lib_mpi_MPI_Init+set}" = set; then
9853     echo $ECHO_N "(cached) $ECHO_C" >&6
9854     else
9855     ac_check_lib_save_LIBS=$LIBS
9856     LIBS="-lmpi -llam -lpthread $LIBS"
9857     cat >conftest.$ac_ext <<_ACEOF
9858 gezelter 2081 /* confdefs.h. */
9859     _ACEOF
9860     cat confdefs.h >>conftest.$ac_ext
9861     cat >>conftest.$ac_ext <<_ACEOF
9862     /* end confdefs.h. */
9863 gezelter 1490
9864     /* Override any gcc2 internal prototype to avoid an error. */
9865     #ifdef __cplusplus
9866     extern "C"
9867     #endif
9868     /* We use char because int might match the return type of a gcc2
9869     builtin and then its argument prototype would still apply. */
9870     char MPI_Init ();
9871     int
9872     main ()
9873     {
9874     MPI_Init ();
9875     ;
9876     return 0;
9877     }
9878     _ACEOF
9879     rm -f conftest.$ac_objext conftest$ac_exeext
9880 gezelter 2081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9881     (eval $ac_link) 2>conftest.er1
9882 gezelter 1490 ac_status=$?
9883 gezelter 2081 grep -v '^ *+' conftest.er1 >conftest.err
9884     rm -f conftest.er1
9885     cat conftest.err >&5
9886     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9887 gezelter 1490 (exit $ac_status); } &&
9888 gezelter 2473 { ac_try='test -z "$ac_c_werror_flag"
9889     || test ! -s conftest.err'
9890 gezelter 2081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9891 gezelter 1490 (eval $ac_try) 2>&5
9892     ac_status=$?
9893 gezelter 2081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9894     (exit $ac_status); }; } &&
9895     { ac_try='test -s conftest$ac_exeext'
9896     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9897     (eval $ac_try) 2>&5
9898     ac_status=$?
9899     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9900 gezelter 1490 (exit $ac_status); }; }; then
9901     ac_cv_lib_mpi_MPI_Init=yes
9902     else
9903     echo "$as_me: failed program was:" >&5
9904 gezelter 2081 sed 's/^/| /' conftest.$ac_ext >&5
9905    
9906 gezelter 1490 ac_cv_lib_mpi_MPI_Init=no
9907     fi
9908 gezelter 2081 rm -f conftest.err conftest.$ac_objext \
9909     conftest$ac_exeext conftest.$ac_ext
9910 gezelter 1490 LIBS=$ac_check_lib_save_LIBS
9911     fi
9912 gezelter 2081 echo "$as_me:$LINENO: result: $ac_cv_lib_mpi_MPI_Init" >&5
9913 gezelter 1490 echo "${ECHO_T}$ac_cv_lib_mpi_MPI_Init" >&6
9914     if test $ac_cv_lib_mpi_MPI_Init = yes; then
9915     MPI_LIB="-lmpi -llam -lpthread"
9916     else
9917    
9918 gezelter 2081 { { echo "$as_me:$LINENO: error: Didn't find liblam, libmpi, or libmpich; check path for MPI package first..." >&5
9919 gezelter 1490 echo "$as_me: error: Didn't find liblam, libmpi, or libmpich; check path for MPI package first..." >&2;}
9920     { (exit 1); exit 1; }; }
9921     USE_MPI="no"
9922    
9923     fi
9924    
9925     fi
9926    
9927 gezelter 2081
9928    
9929     echo "$as_me:$LINENO: checking for MPI Fortran library" >&5
9930 gezelter 1490 echo $ECHO_N "checking for MPI Fortran library... $ECHO_C" >&6
9931     MPI_F90_LIB=""
9932     if test -f "$MPI_LIB_DIR/libfmpich.a" ; then
9933     MPI_F90_LIB="-lfmpich"
9934     elif test -f "$MPI_LIB_DIR/liblamf77mpi.a" ; then
9935     MPI_F90_LIB="-llamf77mpi"
9936     else
9937     MPI_F90_LIB=" "
9938     fi
9939 gezelter 2081 echo "$as_me:$LINENO: result: found $MPI_F90_LIB" >&5
9940 gezelter 1490 echo "${ECHO_T}found $MPI_F90_LIB" >&6
9941    
9942    
9943     fi
9944    
9945    
9946    
9947    
9948 gezelter 2190 USE_CGAL=no
9949     cgal_makefile=auto
9950 gezelter 1490
9951 gezelter 2190 # Check whether --with-cgal-makefile or --without-cgal-makefile was given.
9952     if test "${with_cgal_makefile+set}" = set; then
9953     withval="$with_cgal_makefile"
9954     cgal_makefile="$withval"
9955     fi;
9956    
9957     if test "x$cgal_makefile" != xno; then
9958    
9959     if test "x$cgal_makefile" = xauto -a "x$CGAL_MAKEFILE" != x; then
9960     cgal_makefile="$CGAL_MAKEFILE"
9961     fi
9962    
9963 gezelter 2203 echo "$as_me:$LINENO: checking for cgal_makefile: $cgal_makefile" >&5
9964     echo $ECHO_N "checking for cgal_makefile: $cgal_makefile... $ECHO_C" >&6
9965 gezelter 2190
9966     if test -f "$cgal_makefile"; then
9967    
9968     cat >config.tmp.Makefile <<EOF
9969     include $cgal_makefile
9970     default:
9971     @echo CGAL_OS_COMPILER=\"\${CGAL_OS_COMPILER}\" >config.tmp.cgalvariables
9972     @echo CGAL_INCLDIR=\"\${CGAL_INCL_DIR}\" >>config.tmp.cgalvariables
9973     @echo CGAL_INCLCONFDIR=\"\${CGAL_INCL_CONF_DIR}\" >>config.tmp.cgalvariables
9974     @echo CGAL_LIBDIR=\"\${CGAL_LIB_DIR}/\${CGAL_OS_COMPILER}\" >>config.tmp.cgalvariables
9975     @echo CGAL_RLIBDIR=\"\${CGAL_LIB_DIR}/\${CGAL_OS_COMPILER}\" >>config.tmp.cgalvariables
9976     @echo CGAL_CXXFLAGS=\"\${CGAL_CXXFLAGS}\" >>config.tmp.cgalvariables
9977     @echo GMP_INCLDIR=\"\${GMP_INCL_DIR}\" >>config.tmp.cgalvariables
9978     @echo GMP_LIBDIR=\"\${GMP_LIB_DIR}\" >>config.tmp.cgalvariables
9979     @echo GMP_RLIBDIR=\"\${GMP_LIB_DIR}\" >>config.tmp.cgalvariables
9980     @echo LEDA_INCLDIR=\"\${LEDA_INCL_DIR}\" >>config.tmp.cgalvariables
9981     @echo LEDA_LIBDIR=\"\${LEDA_LIB_DIR}\" >>config.tmp.cgalvariables
9982     @echo LEDA_RLIBDIR=\"\${LEDA_LIB_DIR}\" >>config.tmp.cgalvariables
9983     EOF
9984    
9985     make -s -f config.tmp.Makefile
9986     . config.tmp.cgalvariables
9987    
9988     rm -f config.tmp.Makefile config.tmp.cgalvariables
9989    
9990     if test "x$CGAL_INCLDIR" = "x"; then
9991     CGAL_INCLDIR=""
9992     fi
9993    
9994     if test "x$CGAL_LIBDIR" = "x"; then
9995     CGAL_LIBDIR=""
9996     fi
9997    
9998     if test "x$CGAL_RLIBDIR" = "x"; then
9999     CGAL_RLIBDIR=""
10000     fi
10001    
10002     if test "x$LEDA_INCLDIR" = "x"; then
10003     LEDA_INCLDIR=""
10004     fi
10005    
10006     if test "x$LEDA_LIBDIR" = "x"; then
10007     LEDA_LIBDIR=""
10008     fi
10009    
10010     if test "x$LEDA_RLIBDIR" = "x"; then
10011     LEDA_RLIBDIR=""
10012     fi
10013    
10014     if test "x$GMP_INCLDIR" = "x"; then
10015     GMP_INCLDIR=""
10016     fi
10017    
10018     if test "x$GMP_LIBDIR" = "x"; then
10019     GMP_LIBDIR=""
10020     fi
10021    
10022     if test "x$GMP_RLIBDIR" = "x"; then
10023     GMP_RLIBDIR=""
10024     fi
10025    
10026 gezelter 2203 echo "$as_me:$LINENO: result: CGAL_OS_COMPILER= $CGAL_OS_COMPILER" >&5
10027     echo "${ECHO_T}CGAL_OS_COMPILER= $CGAL_OS_COMPILER" >&6
10028     echo "$as_me:$LINENO: result: CGAL_INCLDIR= $CGAL_INCLDIR" >&5
10029     echo "${ECHO_T}CGAL_INCLDIR= $CGAL_INCLDIR" >&6
10030     echo "$as_me:$LINENO: result: CGAL_INCLCONFDIR= $CGAL_INCLCONFDIR" >&5
10031     echo "${ECHO_T}CGAL_INCLCONFDIR= $CGAL_INCLCONFDIR" >&6
10032     echo "$as_me:$LINENO: result: CGAL_LIBDIR= $CGAL_LIBDIR" >&5
10033     echo "${ECHO_T}CGAL_LIBDIR= $CGAL_LIBDIR" >&6
10034     echo "$as_me:$LINENO: result: CGAL_CXXFLAGS= $CGAL_CXXFLAGS" >&5
10035     echo "${ECHO_T}CGAL_CXXFLAGS= $CGAL_CXXFLAGS" >&6
10036     echo "$as_me:$LINENO: result: LEDA_INCLDIR= $LEDA_INCLDIR" >&5
10037     echo "${ECHO_T}LEDA_INCLDIR= $LEDA_INCLDIR" >&6
10038     echo "$as_me:$LINENO: result: LEDA_LIBDIR= $LEDA_LIBDIR" >&5
10039     echo "${ECHO_T}LEDA_LIBDIR= $LEDA_LIBDIR" >&6
10040     echo "$as_me:$LINENO: result: GMP_INCLDIR= $GMP_INCLDIR" >&5
10041     echo "${ECHO_T}GMP_INCLDIR= $GMP_INCLDIR" >&6
10042     echo "$as_me:$LINENO: result: GMP_LIBDIR= $GMP_LIBDIR" >&5
10043     echo "${ECHO_T}GMP_LIBDIR= $GMP_LIBDIR" >&6
10044 gezelter 2190
10045     ac_ext=cc
10046     ac_cpp='$CXXCPP $CPPFLAGS'
10047     ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10048     ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10049     ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10050    
10051     save_CXXFLAGS="$CXXFLAGS"
10052     CXXFLAGS="$CXXFLAGS -I$CGAL_INCLDIR -I$CGAL_INCLCONFDIR"
10053 gezelter 2453 if test "${ac_cv_header_CGAL_Cartesian_h+set}" = set; then
10054 gezelter 2190 echo "$as_me:$LINENO: checking for CGAL/Cartesian.h" >&5
10055     echo $ECHO_N "checking for CGAL/Cartesian.h... $ECHO_C" >&6
10056     if test "${ac_cv_header_CGAL_Cartesian_h+set}" = set; then
10057     echo $ECHO_N "(cached) $ECHO_C" >&6
10058     fi
10059     echo "$as_me:$LINENO: result: $ac_cv_header_CGAL_Cartesian_h" >&5
10060     echo "${ECHO_T}$ac_cv_header_CGAL_Cartesian_h" >&6
10061     else
10062     # Is the header compilable?
10063     echo "$as_me:$LINENO: checking CGAL/Cartesian.h usability" >&5
10064     echo $ECHO_N "checking CGAL/Cartesian.h usability... $ECHO_C" >&6
10065     cat >conftest.$ac_ext <<_ACEOF
10066     /* confdefs.h. */
10067     _ACEOF
10068     cat confdefs.h >>conftest.$ac_ext
10069     cat >>conftest.$ac_ext <<_ACEOF
10070     /* end confdefs.h. */
10071     $ac_includes_default
10072     #include <CGAL/Cartesian.h>
10073     _ACEOF
10074     rm -f conftest.$ac_objext
10075     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10076     (eval $ac_compile) 2>conftest.er1
10077     ac_status=$?
10078     grep -v '^ *+' conftest.er1 >conftest.err
10079     rm -f conftest.er1
10080     cat conftest.err >&5
10081     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10082     (exit $ac_status); } &&
10083 gezelter 2473 { ac_try='test -z "$ac_cxx_werror_flag"
10084     || test ! -s conftest.err'
10085 gezelter 2190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10086     (eval $ac_try) 2>&5
10087     ac_status=$?
10088     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10089     (exit $ac_status); }; } &&
10090     { ac_try='test -s conftest.$ac_objext'
10091     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10092     (eval $ac_try) 2>&5
10093     ac_status=$?
10094     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10095     (exit $ac_status); }; }; then
10096     ac_header_compiler=yes
10097     else
10098     echo "$as_me: failed program was:" >&5
10099     sed 's/^/| /' conftest.$ac_ext >&5
10100    
10101     ac_header_compiler=no
10102     fi
10103     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10104     echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10105     echo "${ECHO_T}$ac_header_compiler" >&6
10106    
10107     # Is the header present?
10108     echo "$as_me:$LINENO: checking CGAL/Cartesian.h presence" >&5
10109     echo $ECHO_N "checking CGAL/Cartesian.h presence... $ECHO_C" >&6
10110     cat >conftest.$ac_ext <<_ACEOF
10111     /* confdefs.h. */
10112     _ACEOF
10113     cat confdefs.h >>conftest.$ac_ext
10114     cat >>conftest.$ac_ext <<_ACEOF
10115     /* end confdefs.h. */
10116     #include <CGAL/Cartesian.h>
10117     _ACEOF
10118     if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10119     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10120     ac_status=$?
10121     grep -v '^ *+' conftest.er1 >conftest.err
10122     rm -f conftest.er1
10123     cat conftest.err >&5
10124     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10125     (exit $ac_status); } >/dev/null; then
10126     if test -s conftest.err; then
10127     ac_cpp_err=$ac_cxx_preproc_warn_flag
10128     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10129     else
10130     ac_cpp_err=
10131     fi
10132     else
10133     ac_cpp_err=yes
10134     fi
10135     if test -z "$ac_cpp_err"; then
10136     ac_header_preproc=yes
10137     else
10138     echo "$as_me: failed program was:" >&5
10139     sed 's/^/| /' conftest.$ac_ext >&5
10140    
10141     ac_header_preproc=no
10142     fi
10143     rm -f conftest.err conftest.$ac_ext
10144     echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10145     echo "${ECHO_T}$ac_header_preproc" >&6
10146    
10147     # So? What about this header?
10148     case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
10149     yes:no: )
10150     { echo "$as_me:$LINENO: WARNING: CGAL/Cartesian.h: accepted by the compiler, rejected by the preprocessor!" >&5
10151     echo "$as_me: WARNING: CGAL/Cartesian.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10152     { echo "$as_me:$LINENO: WARNING: CGAL/Cartesian.h: proceeding with the compiler's result" >&5
10153     echo "$as_me: WARNING: CGAL/Cartesian.h: proceeding with the compiler's result" >&2;}
10154     ac_header_preproc=yes
10155     ;;
10156     no:yes:* )
10157     { echo "$as_me:$LINENO: WARNING: CGAL/Cartesian.h: present but cannot be compiled" >&5
10158     echo "$as_me: WARNING: CGAL/Cartesian.h: present but cannot be compiled" >&2;}
10159     { echo "$as_me:$LINENO: WARNING: CGAL/Cartesian.h: check for missing prerequisite headers?" >&5
10160     echo "$as_me: WARNING: CGAL/Cartesian.h: check for missing prerequisite headers?" >&2;}
10161     { echo "$as_me:$LINENO: WARNING: CGAL/Cartesian.h: see the Autoconf documentation" >&5
10162     echo "$as_me: WARNING: CGAL/Cartesian.h: see the Autoconf documentation" >&2;}
10163     { echo "$as_me:$LINENO: WARNING: CGAL/Cartesian.h: section \"Present But Cannot Be Compiled\"" >&5
10164     echo "$as_me: WARNING: CGAL/Cartesian.h: section \"Present But Cannot Be Compiled\"" >&2;}
10165     { echo "$as_me:$LINENO: WARNING: CGAL/Cartesian.h: proceeding with the preprocessor's result" >&5
10166     echo "$as_me: WARNING: CGAL/Cartesian.h: proceeding with the preprocessor's result" >&2;}
10167     { echo "$as_me:$LINENO: WARNING: CGAL/Cartesian.h: in the future, the compiler will take precedence" >&5
10168     echo "$as_me: WARNING: CGAL/Cartesian.h: in the future, the compiler will take precedence" >&2;}
10169     (
10170     cat <<\_ASBOX
10171     ## ------------------------------ ##
10172     ## Report this to gezelter@nd.edu ##
10173     ## ------------------------------ ##
10174     _ASBOX
10175     ) |
10176     sed "s/^/$as_me: WARNING: /" >&2
10177     ;;
10178     esac
10179     echo "$as_me:$LINENO: checking for CGAL/Cartesian.h" >&5
10180     echo $ECHO_N "checking for CGAL/Cartesian.h... $ECHO_C" >&6
10181     if test "${ac_cv_header_CGAL_Cartesian_h+set}" = set; then
10182     echo $ECHO_N "(cached) $ECHO_C" >&6
10183     else
10184     ac_cv_header_CGAL_Cartesian_h=$ac_header_preproc
10185     fi
10186     echo "$as_me:$LINENO: result: $ac_cv_header_CGAL_Cartesian_h" >&5
10187     echo "${ECHO_T}$ac_cv_header_CGAL_Cartesian_h" >&6
10188    
10189     fi
10190     if test $ac_cv_header_CGAL_Cartesian_h = yes; then
10191     cgal=yes
10192     else
10193     cgal=no
10194     fi
10195    
10196    
10197     CXXFLAGS="$save_CXXFLAGS"
10198    
10199     if test "x$cgal" = xyes; then
10200     echo "$as_me:$LINENO: checking for CGAL version" >&5
10201     echo $ECHO_N "checking for CGAL version... $ECHO_C" >&6
10202     LOCATION=${CGAL_INCLDIR}
10203     LOCATION=${LOCATION:-/usr/include}
10204     if test -f $LOCATION/CGAL/version.h; then
10205     CGAL_VERSION=`grep '#define.*\<CGAL_VERSION\>.*' $LOCATION/CGAL/version.h | sed 's/[^0-9\.]*//g'`
10206     else
10207     CGAL_VERSION=`grep '#define.*\<CGAL_VERSION\>.*' $LOCATION/CGAL/config.h | sed 's/[^0-9\.]*//g'`
10208     fi
10209     if echo $CGAL_VERSION | grep -q "^[3456789]"; then
10210     echo "$as_me:$LINENO: result: ($CGAL_VERSION) yes" >&5
10211     echo "${ECHO_T}($CGAL_VERSION) yes" >&6
10212     else
10213     echo "$as_me:$LINENO: result: ($CGAL_VERSION) no" >&5
10214     echo "${ECHO_T}($CGAL_VERSION) no" >&6
10215     cgal=no
10216     fi
10217     fi
10218    
10219     if test "x$cgal" = xyes; then
10220     CGAL_LIBS="-lCGAL"
10221     echo "$as_me:$LINENO: checking whether CGAL uses LEDA" >&5
10222     echo $ECHO_N "checking whether CGAL uses LEDA... $ECHO_C" >&6
10223     if echo $CGAL_CXXFLAGS | grep -q -- -DCGAL_USE_LEDA; then
10224     CGAL_USES_LEDA=yes
10225     echo "$as_me:$LINENO: result: yes" >&5
10226     echo "${ECHO_T}yes" >&6
10227     CGAL_DEFINES="-DCGAL_USE_LEDA -DLEDA_PREFIX"
10228     else
10229     echo "$as_me:$LINENO: result: no" >&5
10230     echo "${ECHO_T}no" >&6
10231     CGAL_USES_LEDA=no
10232     fi
10233    
10234     echo "$as_me:$LINENO: checking whether CGAL uses GMP" >&5
10235     echo $ECHO_N "checking whether CGAL uses GMP... $ECHO_C" >&6
10236     if echo $CGAL_CXXFLAGS | grep -q -- -DCGAL_USE_GMP; then
10237     CGAL_USES_GMP=yes
10238     echo "$as_me:$LINENO: result: yes" >&5
10239     echo "${ECHO_T}yes" >&6
10240     CGAL_DEFINES="-DCGAL_USE_GMP $CGAL_DEFINES"
10241     else
10242     echo "$as_me:$LINENO: result: no" >&5
10243     echo "${ECHO_T}no" >&6
10244     CGAL_USES_GMP=no
10245     fi
10246    
10247     CGAL_LIBS="$CGAL_LIBS -lm"
10248    
10249     CGAL_CXXFLAGS="-ftemplate-depth-50"
10250    
10251 gezelter 2203 echo "$as_me:$LINENO: result: CGAL_USES_LEDA= $CGAL_USES_LEDA" >&5
10252     echo "${ECHO_T}CGAL_USES_LEDA= $CGAL_USES_LEDA" >&6
10253     echo "$as_me:$LINENO: result: CGAL_USES_GMP = $CGAL_USES_GMP" >&5
10254     echo "${ECHO_T}CGAL_USES_GMP = $CGAL_USES_GMP" >&6
10255     echo "$as_me:$LINENO: result: CGAL_INCLDIR = $CGAL_INCLDIR" >&5
10256     echo "${ECHO_T}CGAL_INCLDIR = $CGAL_INCLDIR" >&6
10257     echo "$as_me:$LINENO: result: CGAL_LIBDIR = $CGAL_LIBDIR" >&5
10258     echo "${ECHO_T}CGAL_LIBDIR = $CGAL_LIBDIR" >&6
10259     echo "$as_me:$LINENO: result: CGAL_DEFINES = $CGAL_DEFINES" >&5
10260     echo "${ECHO_T}CGAL_DEFINES = $CGAL_DEFINES" >&6
10261     echo "$as_me:$LINENO: result: CGAL_CXXFLAGS = $CGAL_CXXFLAGS" >&5
10262     echo "${ECHO_T}CGAL_CXXFLAGS = $CGAL_CXXFLAGS" >&6
10263     echo "$as_me:$LINENO: result: CGAL_LIBS = $CGAL_LIBS" >&5
10264     echo "${ECHO_T}CGAL_LIBS = $CGAL_LIBS" >&6
10265 gezelter 2190 fi
10266    
10267     if test "x$cgal" = xyes; then
10268     save_LIBS="$LIBS"
10269     LIBS="$LIBS -L$CGAL_LIBDIR"
10270     if test "x$CGAL_USES_LEDA" = xyes; then
10271     LIBS="-lL $LIBS -L$LEDA_LIBDIR"
10272     fi
10273     # if test "x$CGAL_USES_GMP" = xyes; then
10274     # LIBS="-lgmp $LIBS $GMP_LIBDIR"
10275     # fi
10276     echo "$as_me:$LINENO: checking for ::CGAL::Cartesian<int>::Point_2 in -lCGAL" >&5
10277     echo $ECHO_N "checking for ::CGAL::Cartesian<int>::Point_2 in -lCGAL... $ECHO_C" >&6
10278     save_CXXFLAGS_CHECK_CXX_LIB="$CXXFLAGS"
10279     CXXFLAGS="$CXXFLAGS -I$CGAL_INCLDIR -I$CGAL_INCLCONFDIR"
10280     save_LIBS_CHECK_CXX_LIB="$LIBS"
10281     LIBS="-lCGAL $LIBS"
10282     cat >conftest.$ac_ext <<_ACEOF
10283     /* confdefs.h. */
10284     _ACEOF
10285     cat confdefs.h >>conftest.$ac_ext
10286     cat >>conftest.$ac_ext <<_ACEOF
10287     /* end confdefs.h. */
10288     #include <CGAL/Cartesian.h>
10289     int
10290     main ()
10291     {
10292     ::CGAL::Cartesian<int>::Point_2 P
10293     ;
10294     return 0;
10295     }
10296     _ACEOF
10297     rm -f conftest.$ac_objext conftest$ac_exeext
10298     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10299     (eval $ac_link) 2>conftest.er1
10300     ac_status=$?
10301     grep -v '^ *+' conftest.er1 >conftest.err
10302     rm -f conftest.er1
10303     cat conftest.err >&5
10304     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10305     (exit $ac_status); } &&
10306 gezelter 2473 { ac_try='test -z "$ac_cxx_werror_flag"
10307     || test ! -s conftest.err'
10308 gezelter 2190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10309     (eval $ac_try) 2>&5
10310     ac_status=$?
10311     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10312     (exit $ac_status); }; } &&
10313     { ac_try='test -s conftest$ac_exeext'
10314     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10315     (eval $ac_try) 2>&5
10316     ac_status=$?
10317     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10318     (exit $ac_status); }; }; then
10319     echo "$as_me:$LINENO: result: yes" >&5
10320     echo "${ECHO_T}yes" >&6
10321     cgal=yes
10322     else
10323     echo "$as_me: failed program was:" >&5
10324     sed 's/^/| /' conftest.$ac_ext >&5
10325    
10326     echo "$as_me:$LINENO: result: no" >&5
10327     echo "${ECHO_T}no" >&6
10328     cgal=no
10329     fi
10330     rm -f conftest.err conftest.$ac_objext \
10331     conftest$ac_exeext conftest.$ac_ext
10332     CXXFLAGS="$save_CXXFLAGS_CHECK_CXX_LIB"
10333     LIBS="$save_LIBS_CHECK_CXX_LIB"
10334     LIBS="$save_LIBS"
10335     fi
10336    
10337     fi
10338     ac_ext=c
10339     ac_cpp='$CPP $CPPFLAGS'
10340     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10341     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10342     ac_compiler_gnu=$ac_cv_c_compiler_gnu
10343    
10344    
10345     fi
10346    
10347     if test "x$cgal" = xyes; then
10348     USE_CGAL=yes
10349    
10350     cat >>confdefs.h <<\_ACEOF
10351     #define HAVE_CGAL 1
10352     _ACEOF
10353    
10354    
10355     cat >>confdefs.h <<_ACEOF
10356     #define CGAL_VERSION $CGAL_VERSION
10357     _ACEOF
10358    
10359     if ! echo $CGAL_VERSION | grep -q "^3.0"; then
10360     { echo "$as_me:$LINENO: WARNING: *****************************************************" >&5
10361     echo "$as_me: WARNING: *****************************************************" >&2;}
10362     { echo "$as_me:$LINENO: WARNING: *** Warning: Your CGAL version is newer than the ***" >&5
10363     echo "$as_me: WARNING: *** Warning: Your CGAL version is newer than the ***" >&2;}
10364     { echo "$as_me:$LINENO: WARNING: *** supported versions. It may still work though. ***" >&5
10365     echo "$as_me: WARNING: *** supported versions. It may still work though. ***" >&2;}
10366     { echo "$as_me:$LINENO: WARNING: *****************************************************" >&5
10367     echo "$as_me: WARNING: *****************************************************" >&2;}
10368     fi
10369     else
10370     if test "x$cgal_makefile" != xno; then
10371 gezelter 2203 echo "$as_me:$LINENO: result: No CGAL support. These are not the droids you want." >&5
10372     echo "${ECHO_T}No CGAL support. These are not the droids you want." >&6
10373 gezelter 2190 fi
10374     CGAL_INCLDIR=
10375     CGAL_LIBDIR=
10376     CGAL_RLIBDIR=
10377     CGAL_DEFINES=
10378     CGAL_CXXFLAGS=
10379     CGAL_LIBS=
10380     fi
10381    
10382    
10383     CGAL_INC_DIR="${CGAL_INCLDIR} ${CGAL_INCLCONFDIR}"
10384    
10385     CGAL_LIB_DIR=${CGAL_LIBDIR}
10386    
10387     CGAL_RLIB_DIR=${CGAL_RLIBDIR}
10388    
10389    
10390    
10391    
10392    
10393    
10394    
10395 gezelter 1540 # Check whether --enable-doxygen or --disable-doxygen was given.
10396     if test "${enable_doxygen+set}" = set; then
10397     enableval="$enable_doxygen"
10398 gezelter 1490
10399 gezelter 1540 fi;
10400     # Check whether --enable-dot or --disable-dot was given.
10401     if test "${enable_dot+set}" = set; then
10402     enableval="$enable_dot"
10403 gezelter 1490
10404 gezelter 1540 fi;
10405     # Check whether --enable-html-docs or --disable-html-docs was given.
10406     if test "${enable_html_docs+set}" = set; then
10407     enableval="$enable_html_docs"
10408    
10409     else
10410     enable_html_docs=yes
10411     fi;
10412     # Check whether --enable-latex-docs or --disable-latex-docs was given.
10413     if test "${enable_latex_docs+set}" = set; then
10414     enableval="$enable_latex_docs"
10415    
10416     else
10417     enable_latex_docs=no
10418     fi;
10419     if test "x$enable_doxygen" = xno; then
10420     enable_doc=no
10421     else
10422     # Extract the first word of "doxygen", so it can be a program name with args.
10423     set dummy doxygen; ac_word=$2
10424 gezelter 2081 echo "$as_me:$LINENO: checking for $ac_word" >&5
10425 gezelter 1540 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10426     if test "${ac_cv_path_DOXYGEN+set}" = set; then
10427     echo $ECHO_N "(cached) $ECHO_C" >&6
10428     else
10429     case $DOXYGEN in
10430     [\\/]* | ?:[\\/]*)
10431     ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
10432     ;;
10433     *)
10434 gezelter 2081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10435     for as_dir in $PATH
10436     do
10437     IFS=$as_save_IFS
10438     test -z "$as_dir" && as_dir=.
10439     for ac_exec_ext in '' $ac_executable_extensions; do
10440     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10441     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
10442     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10443     break 2
10444     fi
10445 gezelter 1540 done
10446 gezelter 2081 done
10447 gezelter 1540
10448     ;;
10449     esac
10450     fi
10451     DOXYGEN=$ac_cv_path_DOXYGEN
10452    
10453     if test -n "$DOXYGEN"; then
10454 gezelter 2081 echo "$as_me:$LINENO: result: $DOXYGEN" >&5
10455 gezelter 1540 echo "${ECHO_T}$DOXYGEN" >&6
10456     else
10457 gezelter 2081 echo "$as_me:$LINENO: result: no" >&5
10458 gezelter 1540 echo "${ECHO_T}no" >&6
10459     fi
10460    
10461     if test "x$DOXYGEN" = x; then
10462     if test "x$enable_doxygen" = xyes; then
10463 gezelter 2081 { { echo "$as_me:$LINENO: error: could not find doxygen" >&5
10464 gezelter 1540 echo "$as_me: error: could not find doxygen" >&2;}
10465     { (exit 1); exit 1; }; }
10466     fi
10467     enable_doc=no
10468     else
10469     enable_doc=yes
10470     # Extract the first word of "dot", so it can be a program name with args.
10471     set dummy dot; ac_word=$2
10472 gezelter 2081 echo "$as_me:$LINENO: checking for $ac_word" >&5
10473 gezelter 1540 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10474     if test "${ac_cv_path_DOT+set}" = set; then
10475     echo $ECHO_N "(cached) $ECHO_C" >&6
10476     else
10477     case $DOT in
10478     [\\/]* | ?:[\\/]*)
10479     ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
10480     ;;
10481     *)
10482 gezelter 2081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10483     for as_dir in $PATH
10484     do
10485     IFS=$as_save_IFS
10486     test -z "$as_dir" && as_dir=.
10487     for ac_exec_ext in '' $ac_executable_extensions; do
10488     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10489     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
10490     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10491     break 2
10492     fi
10493 gezelter 1540 done
10494 gezelter 2081 done
10495 gezelter 1540
10496     ;;
10497     esac
10498     fi
10499     DOT=$ac_cv_path_DOT
10500    
10501     if test -n "$DOT"; then
10502 gezelter 2081 echo "$as_me:$LINENO: result: $DOT" >&5
10503 gezelter 1540 echo "${ECHO_T}$DOT" >&6
10504     else
10505 gezelter 2081 echo "$as_me:$LINENO: result: no" >&5
10506 gezelter 1540 echo "${ECHO_T}no" >&6
10507     fi
10508    
10509     fi
10510     fi
10511    
10512     if test "x$enable_doc" = xyes; then
10513     DOC=1
10514     else
10515     DOC=0
10516     fi
10517    
10518 gezelter 2081
10519 gezelter 1540 if test x$DOT = x; then
10520     if test "x$enable_dot" = xyes; then
10521 gezelter 2081 { { echo "$as_me:$LINENO: error: could not find dot" >&5
10522 gezelter 1540 echo "$as_me: error: could not find dot" >&2;}
10523     { (exit 1); exit 1; }; }
10524     fi
10525     enable_dot=no
10526     else
10527     enable_dot=yes
10528     fi
10529    
10530 gezelter 2081
10531    
10532    
10533    
10534    
10535    
10536 gezelter 1490 OBJEXT=".$OBJEXT"
10537    
10538     OOPSE=oopse
10539    
10540     if test "x${prefix}" = "xNONE"
10541     then
10542     OOPSE_HOME=${ac_default_prefix}/oopse
10543     else
10544     OOPSE_HOME=${prefix}/oopse
10545     fi
10546     # Check whether --enable-oopse-home or --disable-oopse-home was given.
10547     if test "${enable_oopse_home+set}" = set; then
10548     enableval="$enable_oopse_home"
10549     OOPSE_HOME="${enableval}"
10550     fi;
10551    
10552     case "x$INSTALL" in
10553     x/*) ;;
10554     *) INSTALL=`pwd`/ac-tools/"shtool install -c" ;
10555     esac
10556    
10557     MKINSTALLDIRS=`pwd`/ac-tools/"shtool mkdir -p -f"
10558    
10559     CFLAGS=${CFLAGS-""}
10560     CXXFLAGS=${CXXFLAGS-""}
10561     CPPFLAGS=${CPPFLAGS-""}
10562     FFLAGS=${FFLAGS-""}
10563     F90FLAGS=${F90FLAGS-""}
10564     LDFLAGS=${LDFLAGS-""}
10565     DEBUG=${DEBUG-"-g"}
10566    
10567     case $debug in
10568     1)
10569     FFLAGS="$DEBUG $FFLAGS"
10570     F90FLAGS="$DEBUG $F90FLAGS"
10571     ;;
10572     *)
10573     ;;
10574     esac
10575    
10576    
10577    
10578 gezelter 2081
10579    
10580    
10581    
10582    
10583    
10584    
10585    
10586    
10587    
10588    
10589    
10590    
10591    
10592    
10593     ac_config_headers="$ac_config_headers src/config.h"
10594    
10595 gezelter 2199 ac_config_files="$ac_config_files make/Makefile src/utils/Makefile src/applications/nanoRodBuilder/Makefile scripts/filepp"
10596 gezelter 2081
10597    
10598 gezelter 1490 cat >confcache <<\_ACEOF
10599     # This file is a shell script that caches the results of configure
10600     # tests run on this system so they can be shared between configure
10601     # scripts and configure runs, see configure's option --config-cache.
10602     # It is not useful on other systems. If it contains results you don't
10603     # want to keep, you may remove or edit it.
10604     #
10605     # config.status only pays attention to the cache file if you give it
10606     # the --recheck option to rerun configure.
10607     #
10608 gezelter 2081 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10609 gezelter 1490 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10610     # following values.
10611    
10612     _ACEOF
10613    
10614     # The following way of writing the cache mishandles newlines in values,
10615     # but we know of no workaround that is simple, portable, and efficient.
10616     # So, don't put newlines in cache variables' values.
10617     # Ultrix sh set writes to stderr and can't be redirected directly,
10618     # and sets the high bit in the cache file unless we assign to the vars.
10619     {
10620     (set) 2>&1 |
10621     case `(ac_space=' '; set | grep ac_space) 2>&1` in
10622     *ac_space=\ *)
10623     # `set' does not quote correctly, so add quotes (double-quote
10624     # substitution turns \\\\ into \\, and sed turns \\ into \).
10625     sed -n \
10626 gezelter 2081 "s/'/'\\\\''/g;
10627     s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10628 gezelter 1490 ;;
10629     *)
10630     # `set' quotes correctly as required by POSIX, so do not add quotes.
10631     sed -n \
10632 gezelter 2081 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
10633 gezelter 1490 ;;
10634     esac;
10635     } |
10636     sed '
10637     t clear
10638     : clear
10639     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10640     t end
10641     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10642     : end' >>confcache
10643 gezelter 2081 if diff $cache_file confcache >/dev/null 2>&1; then :; else
10644 gezelter 1490 if test -w $cache_file; then
10645     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10646     cat confcache >$cache_file
10647     else
10648     echo "not updating unwritable cache $cache_file"
10649     fi
10650     fi
10651     rm -f confcache
10652    
10653     test "x$prefix" = xNONE && prefix=$ac_default_prefix
10654     # Let make expand exec_prefix.
10655     test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10656    
10657     # VPATH may cause trouble with some makes, so we remove $(srcdir),
10658     # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10659     # trailing colons and then remove the whole line if VPATH becomes empty
10660     # (actually we leave an empty line to preserve line numbers).
10661     if test "x$srcdir" = x.; then
10662 gezelter 2081 ac_vpsub='/^[ ]*VPATH[ ]*=/{
10663 gezelter 1490 s/:*\$(srcdir):*/:/;
10664     s/:*\${srcdir}:*/:/;
10665     s/:*@srcdir@:*/:/;
10666 gezelter 2081 s/^\([^=]*=[ ]*\):*/\1/;
10667 gezelter 1490 s/:*$//;
10668 gezelter 2081 s/^[^=]*=[ ]*$//;
10669 gezelter 1490 }'
10670     fi
10671    
10672     DEFS=-DHAVE_CONFIG_H
10673    
10674 gezelter 2081 ac_libobjs=
10675     ac_ltlibobjs=
10676     for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10677     # 1. Remove the extension, and $U if already installed.
10678     ac_i=`echo "$ac_i" |
10679     sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
10680     # 2. Add them.
10681     ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
10682     ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
10683     done
10684     LIBOBJS=$ac_libobjs
10685    
10686     LTLIBOBJS=$ac_ltlibobjs
10687    
10688    
10689    
10690 gezelter 1490 : ${CONFIG_STATUS=./config.status}
10691     ac_clean_files_save=$ac_clean_files
10692     ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10693 gezelter 2081 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10694 gezelter 1490 echo "$as_me: creating $CONFIG_STATUS" >&6;}
10695     cat >$CONFIG_STATUS <<_ACEOF
10696     #! $SHELL
10697 gezelter 2081 # Generated by $as_me.
10698 gezelter 1490 # Run this file to recreate the current configuration.
10699     # Compiler output produced by configure, useful for debugging
10700     # configure, is in config.log if it exists.
10701    
10702     debug=false
10703 gezelter 2081 ac_cs_recheck=false
10704     ac_cs_silent=false
10705 gezelter 1490 SHELL=\${CONFIG_SHELL-$SHELL}
10706     _ACEOF
10707    
10708     cat >>$CONFIG_STATUS <<\_ACEOF
10709 gezelter 2081 ## --------------------- ##
10710     ## M4sh Initialization. ##
10711     ## --------------------- ##
10712    
10713 gezelter 1490 # Be Bourne compatible
10714     if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10715     emulate sh
10716     NULLCMD=:
10717 gezelter 2081 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
10718     # is contrary to our usage. Disable this feature.
10719     alias -g '${1+"$@"}'='"$@"'
10720 gezelter 1490 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
10721     set -o posix
10722     fi
10723 gezelter 2081 DUALCASE=1; export DUALCASE # for MKS sh
10724 gezelter 1490
10725 gezelter 2081 # Support unset when possible.
10726     if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10727     as_unset=unset
10728     else
10729     as_unset=false
10730     fi
10731    
10732    
10733     # Work around bugs in pre-3.0 UWIN ksh.
10734     $as_unset ENV MAIL MAILPATH
10735     PS1='$ '
10736     PS2='> '
10737     PS4='+ '
10738    
10739     # NLS nuisances.
10740     for as_var in \
10741     LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
10742     LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
10743     LC_TELEPHONE LC_TIME
10744     do
10745     if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
10746     eval $as_var=C; export $as_var
10747     else
10748     $as_unset $as_var
10749     fi
10750     done
10751    
10752     # Required to use basename.
10753     if expr a : '\(a\)' >/dev/null 2>&1; then
10754     as_expr=expr
10755     else
10756     as_expr=false
10757     fi
10758    
10759     if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
10760     as_basename=basename
10761     else
10762     as_basename=false
10763     fi
10764    
10765    
10766 gezelter 1490 # Name of the executable.
10767 gezelter 2081 as_me=`$as_basename "$0" ||
10768     $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10769     X"$0" : 'X\(//\)$' \| \
10770     X"$0" : 'X\(/\)$' \| \
10771     . : '\(.\)' 2>/dev/null ||
10772     echo X/"$0" |
10773     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
10774     /^X\/\(\/\/\)$/{ s//\1/; q; }
10775     /^X\/\(\/\).*/{ s//\1/; q; }
10776     s/.*/./; q'`
10777 gezelter 1490
10778 gezelter 2081
10779     # PATH needs CR, and LINENO needs CR and PATH.
10780     # Avoid depending upon Character Ranges.
10781     as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10782     as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10783     as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10784     as_cr_digits='0123456789'
10785     as_cr_alnum=$as_cr_Letters$as_cr_digits
10786    
10787     # The user is always right.
10788     if test "${PATH_SEPARATOR+set}" != set; then
10789     echo "#! /bin/sh" >conf$$.sh
10790     echo "exit 0" >>conf$$.sh
10791     chmod +x conf$$.sh
10792     if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10793     PATH_SEPARATOR=';'
10794     else
10795     PATH_SEPARATOR=:
10796     fi
10797     rm -f conf$$.sh
10798     fi
10799    
10800    
10801     as_lineno_1=$LINENO
10802     as_lineno_2=$LINENO
10803     as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
10804     test "x$as_lineno_1" != "x$as_lineno_2" &&
10805     test "x$as_lineno_3" = "x$as_lineno_2" || {
10806     # Find who we are. Look in the path if we contain no path at all
10807     # relative or not.
10808     case $0 in
10809     *[\\/]* ) as_myself=$0 ;;
10810     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10811     for as_dir in $PATH
10812     do
10813     IFS=$as_save_IFS
10814     test -z "$as_dir" && as_dir=.
10815     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10816     done
10817    
10818     ;;
10819     esac
10820     # We did not find ourselves, most probably we were run as `sh COMMAND'
10821     # in which case we are not to be found in the path.
10822     if test "x$as_myself" = x; then
10823     as_myself=$0
10824     fi
10825     if test ! -f "$as_myself"; then
10826     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
10827     echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
10828     { (exit 1); exit 1; }; }
10829     fi
10830     case $CONFIG_SHELL in
10831     '')
10832     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10833     for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
10834     do
10835     IFS=$as_save_IFS
10836     test -z "$as_dir" && as_dir=.
10837     for as_base in sh bash ksh sh5; do
10838     case $as_dir in
10839     /*)
10840     if ("$as_dir/$as_base" -c '
10841     as_lineno_1=$LINENO
10842     as_lineno_2=$LINENO
10843     as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
10844     test "x$as_lineno_1" != "x$as_lineno_2" &&
10845     test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
10846     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
10847     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
10848     CONFIG_SHELL=$as_dir/$as_base
10849     export CONFIG_SHELL
10850     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
10851     fi;;
10852     esac
10853     done
10854     done
10855     ;;
10856     esac
10857    
10858     # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
10859     # uniformly replaced by the line number. The first 'sed' inserts a
10860     # line-number line before each line; the second 'sed' does the real
10861     # work. The second script uses 'N' to pair each line-number line
10862     # with the numbered line, and appends trailing '-' during
10863     # substitution so that $LINENO is not a special case at line end.
10864     # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
10865     # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
10866     sed '=' <$as_myself |
10867     sed '
10868     N
10869     s,$,-,
10870     : loop
10871     s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
10872     t loop
10873     s,-$,,
10874     s,^['$as_cr_digits']*\n,,
10875     ' >$as_me.lineno &&
10876     chmod +x $as_me.lineno ||
10877     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
10878     echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
10879     { (exit 1); exit 1; }; }
10880    
10881     # Don't try to exec as it changes $[0], causing all sort of problems
10882     # (the dirname of $[0] is not the place where we might find the
10883     # original and so on. Autoconf is especially sensible to this).
10884     . ./$as_me.lineno
10885     # Exit status is that of the last command.
10886     exit
10887     }
10888    
10889    
10890     case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
10891     *c*,-n*) ECHO_N= ECHO_C='
10892     ' ECHO_T=' ' ;;
10893     *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
10894     *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
10895     esac
10896    
10897 gezelter 1490 if expr a : '\(a\)' >/dev/null 2>&1; then
10898     as_expr=expr
10899     else
10900     as_expr=false
10901     fi
10902    
10903     rm -f conf$$ conf$$.exe conf$$.file
10904     echo >conf$$.file
10905     if ln -s conf$$.file conf$$ 2>/dev/null; then
10906     # We could just check for DJGPP; but this test a) works b) is more generic
10907     # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
10908     if test -f conf$$.exe; then
10909     # Don't use ln at all; we don't have any links
10910     as_ln_s='cp -p'
10911     else
10912     as_ln_s='ln -s'
10913     fi
10914     elif ln conf$$.file conf$$ 2>/dev/null; then
10915     as_ln_s=ln
10916     else
10917     as_ln_s='cp -p'
10918     fi
10919     rm -f conf$$ conf$$.exe conf$$.file
10920    
10921 gezelter 2081 if mkdir -p . 2>/dev/null; then
10922     as_mkdir_p=:
10923 gezelter 1490 else
10924 gezelter 2081 test -d ./-p && rmdir ./-p
10925     as_mkdir_p=false
10926 gezelter 1490 fi
10927    
10928 gezelter 2081 as_executable_p="test -f"
10929 gezelter 1490
10930 gezelter 2081 # Sed expression to map a string onto a valid CPP name.
10931     as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10932    
10933     # Sed expression to map a string onto a valid variable name.
10934     as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10935    
10936    
10937 gezelter 1490 # IFS
10938     # We need space, tab and new line, in precisely that order.
10939     as_nl='
10940     '
10941     IFS=" $as_nl"
10942    
10943     # CDPATH.
10944 gezelter 2081 $as_unset CDPATH
10945 gezelter 1490
10946     exec 6>&1
10947    
10948 gezelter 2081 # Open the log real soon, to keep \$[0] and so on meaningful, and to
10949     # report actual input values of CONFIG_FILES etc. instead of their
10950     # values after options handling. Logging --version etc. is OK.
10951     exec 5>>config.log
10952     {
10953     echo
10954     sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10955     ## Running $as_me. ##
10956     _ASBOX
10957     } >&5
10958     cat >&5 <<_CSEOF
10959    
10960     This file was extended by OOPSE $as_me 2.0, which was
10961     generated by GNU Autoconf 2.59. Invocation command line was
10962    
10963     CONFIG_FILES = $CONFIG_FILES
10964     CONFIG_HEADERS = $CONFIG_HEADERS
10965     CONFIG_LINKS = $CONFIG_LINKS
10966     CONFIG_COMMANDS = $CONFIG_COMMANDS
10967     $ $0 $@
10968    
10969     _CSEOF
10970     echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
10971     echo >&5
10972 gezelter 1490 _ACEOF
10973    
10974     # Files that config.status was made for.
10975     if test -n "$ac_config_files"; then
10976     echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
10977     fi
10978    
10979     if test -n "$ac_config_headers"; then
10980     echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
10981     fi
10982    
10983     if test -n "$ac_config_links"; then
10984     echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
10985     fi
10986    
10987     if test -n "$ac_config_commands"; then
10988     echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
10989     fi
10990    
10991 gezelter 2081 cat >>$CONFIG_STATUS <<\_ACEOF
10992 gezelter 1490
10993     ac_cs_usage="\
10994     \`$as_me' instantiates files from templates according to the
10995     current configuration.
10996    
10997     Usage: $0 [OPTIONS] [FILE]...
10998    
10999     -h, --help print this help, then exit
11000     -V, --version print version number, then exit
11001 gezelter 2081 -q, --quiet do not print progress messages
11002 gezelter 1490 -d, --debug don't remove temporary files
11003     --recheck update $as_me by reconfiguring in the same conditions
11004     --file=FILE[:TEMPLATE]
11005 gezelter 2081 instantiate the configuration file FILE
11006 gezelter 1490 --header=FILE[:TEMPLATE]
11007 gezelter 2081 instantiate the configuration header FILE
11008 gezelter 1490
11009     Configuration files:
11010     $config_files
11011    
11012     Configuration headers:
11013     $config_headers
11014    
11015     Configuration links:
11016     $config_links
11017    
11018     Report bugs to <bug-autoconf@gnu.org>."
11019 gezelter 2081 _ACEOF
11020 gezelter 1490
11021 gezelter 2081 cat >>$CONFIG_STATUS <<_ACEOF
11022 gezelter 1490 ac_cs_version="\\
11023 gezelter 1499 OOPSE config.status 2.0
11024 gezelter 2081 configured by $0, generated by GNU Autoconf 2.59,
11025 gezelter 1490 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
11026    
11027 gezelter 2081 Copyright (C) 2003 Free Software Foundation, Inc.
11028 gezelter 1490 This config.status script is free software; the Free Software Foundation
11029     gives unlimited permission to copy, distribute and modify it."
11030     srcdir=$srcdir
11031     INSTALL="$INSTALL"
11032 gezelter 2081 _ACEOF
11033 gezelter 1490
11034 gezelter 2081 cat >>$CONFIG_STATUS <<\_ACEOF
11035 gezelter 1490 # If no file are specified by the user, then we need to provide default
11036     # value. By we need to know if files were specified by the user.
11037     ac_need_defaults=:
11038     while test $# != 0
11039     do
11040     case $1 in
11041     --*=*)
11042     ac_option=`expr "x$1" : 'x\([^=]*\)='`
11043     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
11044 gezelter 2081 ac_shift=:
11045 gezelter 1490 ;;
11046 gezelter 2081 -*)
11047     ac_option=$1
11048     ac_optarg=$2
11049     ac_shift=shift
11050     ;;
11051 gezelter 1490 *) # This is not an option, so the user has probably given explicit
11052     # arguments.
11053 gezelter 2081 ac_option=$1
11054 gezelter 1490 ac_need_defaults=false;;
11055     esac
11056    
11057 gezelter 2081 case $ac_option in
11058 gezelter 1490 # Handling of the options.
11059 gezelter 2081 _ACEOF
11060     cat >>$CONFIG_STATUS <<\_ACEOF
11061 gezelter 1490 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11062 gezelter 2081 ac_cs_recheck=: ;;
11063 gezelter 1490 --version | --vers* | -V )
11064     echo "$ac_cs_version"; exit 0 ;;
11065     --he | --h)
11066     # Conflict between --help and --header
11067 gezelter 2081 { { echo "$as_me:$LINENO: error: ambiguous option: $1
11068 gezelter 1490 Try \`$0 --help' for more information." >&5
11069     echo "$as_me: error: ambiguous option: $1
11070     Try \`$0 --help' for more information." >&2;}
11071     { (exit 1); exit 1; }; };;
11072     --help | --hel | -h )
11073     echo "$ac_cs_usage"; exit 0 ;;
11074     --debug | --d* | -d )
11075     debug=: ;;
11076     --file | --fil | --fi | --f )
11077 gezelter 2081 $ac_shift
11078     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
11079 gezelter 1490 ac_need_defaults=false;;
11080     --header | --heade | --head | --hea )
11081 gezelter 2081 $ac_shift
11082     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
11083 gezelter 1490 ac_need_defaults=false;;
11084 gezelter 2081 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11085     | -silent | --silent | --silen | --sile | --sil | --si | --s)
11086     ac_cs_silent=: ;;
11087 gezelter 1490
11088     # This is an error.
11089 gezelter 2081 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
11090 gezelter 1490 Try \`$0 --help' for more information." >&5
11091     echo "$as_me: error: unrecognized option: $1
11092     Try \`$0 --help' for more information." >&2;}
11093     { (exit 1); exit 1; }; } ;;
11094 gezelter 2081
11095     *) ac_config_targets="$ac_config_targets $1" ;;
11096    
11097 gezelter 1490 esac
11098     shift
11099     done
11100    
11101 gezelter 2081 ac_configure_extra_args=
11102 gezelter 1490
11103 gezelter 2081 if $ac_cs_silent; then
11104     exec 6>/dev/null
11105     ac_configure_extra_args="$ac_configure_extra_args --silent"
11106     fi
11107 gezelter 1490
11108 gezelter 2081 _ACEOF
11109     cat >>$CONFIG_STATUS <<_ACEOF
11110     if \$ac_cs_recheck; then
11111     echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
11112     exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11113     fi
11114 gezelter 1490
11115     _ACEOF
11116    
11117 gezelter 2081
11118    
11119    
11120    
11121     cat >>$CONFIG_STATUS <<\_ACEOF
11122     for ac_config_target in $ac_config_targets
11123     do
11124     case "$ac_config_target" in
11125     # Handling of arguments.
11126     "make/Makefile" ) CONFIG_FILES="$CONFIG_FILES make/Makefile" ;;
11127     "src/utils/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/Makefile" ;;
11128 gezelter 2190 "src/applications/nanoRodBuilder/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/applications/nanoRodBuilder/Makefile" ;;
11129 gezelter 2199 "scripts/filepp" ) CONFIG_FILES="$CONFIG_FILES scripts/filepp" ;;
11130 gezelter 2081 "src/getopt.h" ) CONFIG_LINKS="$CONFIG_LINKS src/getopt.h:src/utils/gnugetopt.h" ;;
11131     "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
11132     *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
11133     echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
11134     { (exit 1); exit 1; }; };;
11135     esac
11136     done
11137    
11138 gezelter 1490 # If the user did not use the arguments to specify the items to instantiate,
11139     # then the envvar interface is used. Set only those that are not.
11140     # We use the long form for the default assignment because of an extremely
11141     # bizarre bug on SunOS 4.1.3.
11142     if $ac_need_defaults; then
11143     test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11144     test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11145     test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
11146     fi
11147    
11148 gezelter 2081 # Have a temporary directory for convenience. Make it in the build tree
11149     # simply because there is no reason to put it here, and in addition,
11150     # creating and moving files from /tmp can sometimes cause problems.
11151 gezelter 1490 # Create a temporary directory, and hook for its removal unless debugging.
11152     $debug ||
11153     {
11154     trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
11155 gezelter 2081 trap '{ (exit 1); exit 1; }' 1 2 13 15
11156 gezelter 1490 }
11157    
11158     # Create a (secure) tmp directory for tmp files.
11159 gezelter 2081
11160 gezelter 1490 {
11161 gezelter 2081 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
11162 gezelter 1490 test -n "$tmp" && test -d "$tmp"
11163     } ||
11164     {
11165 gezelter 2081 tmp=./confstat$$-$RANDOM
11166 gezelter 1490 (umask 077 && mkdir $tmp)
11167     } ||
11168     {
11169 gezelter 2081 echo "$me: cannot create a temporary directory in ." >&2
11170 gezelter 1490 { (exit 1); exit 1; }
11171     }
11172    
11173 gezelter 2081 _ACEOF
11174 gezelter 1490
11175 gezelter 2081 cat >>$CONFIG_STATUS <<_ACEOF
11176 gezelter 1490
11177     #
11178     # CONFIG_FILES section.
11179     #
11180    
11181     # No need to generate the scripts if there are no CONFIG_FILES.
11182     # This happens for instance when ./config.status config.h
11183     if test -n "\$CONFIG_FILES"; then
11184     # Protect against being on the right side of a sed subst in config.status.
11185     sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
11186     s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
11187     s,@SHELL@,$SHELL,;t t
11188 gezelter 2081 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
11189     s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
11190     s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
11191     s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
11192     s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
11193     s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
11194 gezelter 1490 s,@exec_prefix@,$exec_prefix,;t t
11195     s,@prefix@,$prefix,;t t
11196     s,@program_transform_name@,$program_transform_name,;t t
11197     s,@bindir@,$bindir,;t t
11198     s,@sbindir@,$sbindir,;t t
11199     s,@libexecdir@,$libexecdir,;t t
11200     s,@datadir@,$datadir,;t t
11201     s,@sysconfdir@,$sysconfdir,;t t
11202     s,@sharedstatedir@,$sharedstatedir,;t t
11203     s,@localstatedir@,$localstatedir,;t t
11204     s,@libdir@,$libdir,;t t
11205     s,@includedir@,$includedir,;t t
11206     s,@oldincludedir@,$oldincludedir,;t t
11207     s,@infodir@,$infodir,;t t
11208     s,@mandir@,$mandir,;t t
11209 gezelter 2081 s,@build_alias@,$build_alias,;t t
11210     s,@host_alias@,$host_alias,;t t
11211     s,@target_alias@,$target_alias,;t t
11212     s,@DEFS@,$DEFS,;t t
11213 gezelter 1490 s,@ECHO_C@,$ECHO_C,;t t
11214     s,@ECHO_N@,$ECHO_N,;t t
11215     s,@ECHO_T@,$ECHO_T,;t t
11216     s,@LIBS@,$LIBS,;t t
11217     s,@PROGNAME@,$PROGNAME,;t t
11218     s,@debug@,$debug,;t t
11219     s,@build@,$build,;t t
11220     s,@build_cpu@,$build_cpu,;t t
11221     s,@build_vendor@,$build_vendor,;t t
11222     s,@build_os@,$build_os,;t t
11223     s,@host@,$host,;t t
11224     s,@host_cpu@,$host_cpu,;t t
11225     s,@host_vendor@,$host_vendor,;t t
11226     s,@host_os@,$host_os,;t t
11227     s,@CC@,$CC,;t t
11228     s,@CFLAGS@,$CFLAGS,;t t
11229     s,@LDFLAGS@,$LDFLAGS,;t t
11230     s,@CPPFLAGS@,$CPPFLAGS,;t t
11231     s,@ac_ct_CC@,$ac_ct_CC,;t t
11232     s,@EXEEXT@,$EXEEXT,;t t
11233     s,@OBJEXT@,$OBJEXT,;t t
11234     s,@CXX@,$CXX,;t t
11235     s,@CXXFLAGS@,$CXXFLAGS,;t t
11236     s,@ac_ct_CXX@,$ac_ct_CXX,;t t
11237 gezelter 2473 s,@CPP@,$CPP,;t t
11238     s,@EGREP@,$EGREP,;t t
11239 gezelter 1490 s,@OOPSE_TEMPLATE_FLAGS@,$OOPSE_TEMPLATE_FLAGS,;t t
11240     s,@EXTRA_CC_FLAG@,$EXTRA_CC_FLAG,;t t
11241     s,@F90@,$F90,;t t
11242     s,@F90FLAGS@,$F90FLAGS,;t t
11243     s,@ac_ct_F90@,$ac_ct_F90,;t t
11244     s,@PREPFLAG@,$PREPFLAG,;t t
11245     s,@PREPDEFFLAG@,$PREPDEFFLAG,;t t
11246     s,@F90LIBS@,$F90LIBS,;t t
11247     s,@F90_FUNC@,$F90_FUNC,;t t
11248     s,@F90_FUNC_@,$F90_FUNC_,;t t
11249     s,@MOD@,$MOD,;t t
11250     s,@F90_WORK_FILES_ARG@,$F90_WORK_FILES_ARG,;t t
11251     s,@MODDIRFLAG@,$MODDIRFLAG,;t t
11252     s,@F90MODINCSPEC@,$F90MODINCSPEC,;t t
11253 gezelter 1535 s,@F90_MODULE_NAMES@,$F90_MODULE_NAMES,;t t
11254 gezelter 2453 s,@CXXCPP@,$CXXCPP,;t t
11255 gezelter 1490 s,@LIBOBJS@,$LIBOBJS,;t t
11256     s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
11257     s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
11258     s,@INSTALL_DATA@,$INSTALL_DATA,;t t
11259     s,@LN_S@,$LN_S,;t t
11260     s,@SET_MAKE@,$SET_MAKE,;t t
11261     s,@RANLIB@,$RANLIB,;t t
11262     s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
11263     s,@YACC@,$YACC,;t t
11264     s,@LEX@,$LEX,;t t
11265     s,@LEXLIB@,$LEXLIB,;t t
11266     s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
11267 gezelter 2199 s,@PERLINTERP@,$PERLINTERP,;t t
11268     s,@PERL_SHEBANG@,$PERL_SHEBANG,;t t
11269 gezelter 1490 s,@AR@,$AR,;t t
11270 gezelter 2023 s,@PS@,$PS,;t t
11271 gezelter 1490 s,@MPI_LIB_DIR@,$MPI_LIB_DIR,;t t
11272     s,@MPI_INC_DIR@,$MPI_INC_DIR,;t t
11273     s,@MPI_F90_INC@,$MPI_F90_INC,;t t
11274     s,@MPI_LIB@,$MPI_LIB,;t t
11275     s,@MPI_F90_LIB@,$MPI_F90_LIB,;t t
11276     s,@USE_MPI@,$USE_MPI,;t t
11277 gezelter 2190 s,@USE_CGAL@,$USE_CGAL,;t t
11278     s,@CGAL_INC_DIR@,$CGAL_INC_DIR,;t t
11279     s,@CGAL_LIB_DIR@,$CGAL_LIB_DIR,;t t
11280     s,@CGAL_RLIB_DIR@,$CGAL_RLIB_DIR,;t t
11281     s,@CGAL_DEFINES@,$CGAL_DEFINES,;t t
11282     s,@CGAL_CXXFLAGS@,$CGAL_CXXFLAGS,;t t
11283     s,@CGAL_LIBS@,$CGAL_LIBS,;t t
11284 gezelter 1540 s,@DOXYGEN@,$DOXYGEN,;t t
11285     s,@DOT@,$DOT,;t t
11286     s,@DOC@,$DOC,;t t
11287     s,@enable_dot@,$enable_dot,;t t
11288     s,@enable_html_docs@,$enable_html_docs,;t t
11289     s,@enable_latex_docs@,$enable_latex_docs,;t t
11290 gezelter 1490 s,@BATEXT@,$BATEXT,;t t
11291     s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
11292     s,@OOPSE@,$OOPSE,;t t
11293     s,@OOPSE_HOME@,$OOPSE_HOME,;t t
11294     s,@SUBDIRS@,$SUBDIRS,;t t
11295     s,@FFLAGS@,$FFLAGS,;t t
11296 gezelter 2081 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
11297 gezelter 1490 CEOF
11298    
11299 gezelter 2081 _ACEOF
11300 gezelter 1490
11301 gezelter 2081 cat >>$CONFIG_STATUS <<\_ACEOF
11302 gezelter 1490 # Split the substitutions into bite-sized pieces for seds with
11303     # small command number limits, like on Digital OSF/1 and HP-UX.
11304     ac_max_sed_lines=48
11305     ac_sed_frag=1 # Number of current file.
11306     ac_beg=1 # First line for current file.
11307     ac_end=$ac_max_sed_lines # Line after last line for current file.
11308     ac_more_lines=:
11309     ac_sed_cmds=
11310     while $ac_more_lines; do
11311     if test $ac_beg -gt 1; then
11312     sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11313     else
11314     sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11315     fi
11316     if test ! -s $tmp/subs.frag; then
11317     ac_more_lines=false
11318     else
11319     # The purpose of the label and of the branching condition is to
11320     # speed up the sed processing (if there are no `@' at all, there
11321     # is no need to browse any of the substitutions).
11322     # These are the two extra sed commands mentioned above.
11323     (echo ':t
11324     /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
11325     if test -z "$ac_sed_cmds"; then
11326 gezelter 2081 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
11327 gezelter 1490 else
11328 gezelter 2081 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
11329 gezelter 1490 fi
11330     ac_sed_frag=`expr $ac_sed_frag + 1`
11331     ac_beg=$ac_end
11332     ac_end=`expr $ac_end + $ac_max_sed_lines`
11333     fi
11334     done
11335     if test -z "$ac_sed_cmds"; then
11336     ac_sed_cmds=cat
11337     fi
11338     fi # test -n "$CONFIG_FILES"
11339    
11340 gezelter 2081 _ACEOF
11341     cat >>$CONFIG_STATUS <<\_ACEOF
11342 gezelter 1490 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
11343     # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11344     case $ac_file in
11345     - | *:- | *:-:* ) # input from stdin
11346 gezelter 2081 cat >$tmp/stdin
11347     ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11348     ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11349 gezelter 1490 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11350 gezelter 2081 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11351 gezelter 1490 * ) ac_file_in=$ac_file.in ;;
11352     esac
11353    
11354     # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
11355 gezelter 2081 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11356     $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11357     X"$ac_file" : 'X\(//\)[^/]' \| \
11358     X"$ac_file" : 'X\(//\)$' \| \
11359     X"$ac_file" : 'X\(/\)' \| \
11360     . : '\(.\)' 2>/dev/null ||
11361 gezelter 1490 echo X"$ac_file" |
11362     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11363     /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11364     /^X\(\/\/\)$/{ s//\1/; q; }
11365     /^X\(\/\).*/{ s//\1/; q; }
11366     s/.*/./; q'`
11367 gezelter 2081 { if $as_mkdir_p; then
11368     mkdir -p "$ac_dir"
11369 gezelter 1490 else
11370 gezelter 2081 as_dir="$ac_dir"
11371     as_dirs=
11372     while test ! -d "$as_dir"; do
11373     as_dirs="$as_dir $as_dirs"
11374     as_dir=`(dirname "$as_dir") 2>/dev/null ||
11375     $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11376     X"$as_dir" : 'X\(//\)[^/]' \| \
11377     X"$as_dir" : 'X\(//\)$' \| \
11378     X"$as_dir" : 'X\(/\)' \| \
11379     . : '\(.\)' 2>/dev/null ||
11380     echo X"$as_dir" |
11381     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11382     /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11383     /^X\(\/\/\)$/{ s//\1/; q; }
11384     /^X\(\/\).*/{ s//\1/; q; }
11385     s/.*/./; q'`
11386     done
11387     test ! -n "$as_dirs" || mkdir $as_dirs
11388     fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11389     echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11390     { (exit 1); exit 1; }; }; }
11391 gezelter 1490
11392 gezelter 2081 ac_builddir=.
11393    
11394     if test "$ac_dir" != .; then
11395     ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11396     # A "../" for each directory in $ac_dir_suffix.
11397     ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11398     else
11399     ac_dir_suffix= ac_top_builddir=
11400     fi
11401    
11402     case $srcdir in
11403     .) # No --srcdir option. We are building in place.
11404     ac_srcdir=.
11405     if test -z "$ac_top_builddir"; then
11406     ac_top_srcdir=.
11407     else
11408     ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11409     fi ;;
11410     [\\/]* | ?:[\\/]* ) # Absolute path.
11411     ac_srcdir=$srcdir$ac_dir_suffix;
11412     ac_top_srcdir=$srcdir ;;
11413 gezelter 1490 *) # Relative path.
11414 gezelter 2081 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11415     ac_top_srcdir=$ac_top_builddir$srcdir ;;
11416     esac
11417 gezelter 1490
11418 gezelter 2081 # Do not use `cd foo && pwd` to compute absolute paths, because
11419     # the directories may not exist.
11420     case `pwd` in
11421     .) ac_abs_builddir="$ac_dir";;
11422     *)
11423     case "$ac_dir" in
11424     .) ac_abs_builddir=`pwd`;;
11425     [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
11426     *) ac_abs_builddir=`pwd`/"$ac_dir";;
11427     esac;;
11428     esac
11429     case $ac_abs_builddir in
11430     .) ac_abs_top_builddir=${ac_top_builddir}.;;
11431     *)
11432     case ${ac_top_builddir}. in
11433     .) ac_abs_top_builddir=$ac_abs_builddir;;
11434     [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
11435     *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
11436     esac;;
11437     esac
11438     case $ac_abs_builddir in
11439     .) ac_abs_srcdir=$ac_srcdir;;
11440     *)
11441     case $ac_srcdir in
11442     .) ac_abs_srcdir=$ac_abs_builddir;;
11443     [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
11444     *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
11445     esac;;
11446     esac
11447     case $ac_abs_builddir in
11448     .) ac_abs_top_srcdir=$ac_top_srcdir;;
11449     *)
11450     case $ac_top_srcdir in
11451     .) ac_abs_top_srcdir=$ac_abs_builddir;;
11452     [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
11453     *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
11454     esac;;
11455     esac
11456    
11457    
11458 gezelter 1490 case $INSTALL in
11459     [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11460 gezelter 2081 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
11461 gezelter 1490 esac
11462    
11463 gezelter 2473 if test x"$ac_file" != x-; then
11464     { echo "$as_me:$LINENO: creating $ac_file" >&5
11465     echo "$as_me: creating $ac_file" >&6;}
11466     rm -f "$ac_file"
11467     fi
11468 gezelter 1490 # Let's still pretend it is `configure' which instantiates (i.e., don't
11469     # use $as_me), people would be surprised to read:
11470 gezelter 2081 # /* config.h. Generated by config.status. */
11471     if test x"$ac_file" = x-; then
11472     configure_input=
11473     else
11474     configure_input="$ac_file. "
11475     fi
11476     configure_input=$configure_input"Generated from `echo $ac_file_in |
11477     sed 's,.*/,,'` by configure."
11478 gezelter 1490
11479     # First look for the input files in the build tree, otherwise in the
11480     # src tree.
11481     ac_file_inputs=`IFS=:
11482     for f in $ac_file_in; do
11483     case $f in
11484     -) echo $tmp/stdin ;;
11485     [\\/$]*)
11486 gezelter 2081 # Absolute (can't be DOS-style, as IFS=:)
11487     test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11488 gezelter 1490 echo "$as_me: error: cannot find input file: $f" >&2;}
11489     { (exit 1); exit 1; }; }
11490 gezelter 2081 echo "$f";;
11491 gezelter 1490 *) # Relative
11492 gezelter 2081 if test -f "$f"; then
11493     # Build tree
11494     echo "$f"
11495     elif test -f "$srcdir/$f"; then
11496     # Source tree
11497     echo "$srcdir/$f"
11498     else
11499     # /dev/null tree
11500     { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11501 gezelter 1490 echo "$as_me: error: cannot find input file: $f" >&2;}
11502     { (exit 1); exit 1; }; }
11503 gezelter 2081 fi;;
11504 gezelter 1490 esac
11505     done` || { (exit 1); exit 1; }
11506 gezelter 2081 _ACEOF
11507     cat >>$CONFIG_STATUS <<_ACEOF
11508 gezelter 1490 sed "$ac_vpsub
11509     $extrasub
11510 gezelter 2081 _ACEOF
11511     cat >>$CONFIG_STATUS <<\_ACEOF
11512 gezelter 1490 :t
11513     /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11514     s,@configure_input@,$configure_input,;t t
11515     s,@srcdir@,$ac_srcdir,;t t
11516 gezelter 2081 s,@abs_srcdir@,$ac_abs_srcdir,;t t
11517 gezelter 1490 s,@top_srcdir@,$ac_top_srcdir,;t t
11518 gezelter 2081 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
11519     s,@builddir@,$ac_builddir,;t t
11520     s,@abs_builddir@,$ac_abs_builddir,;t t
11521     s,@top_builddir@,$ac_top_builddir,;t t
11522     s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
11523 gezelter 1490 s,@INSTALL@,$ac_INSTALL,;t t
11524     " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
11525     rm -f $tmp/stdin
11526     if test x"$ac_file" != x-; then
11527     mv $tmp/out $ac_file
11528     else
11529     cat $tmp/out
11530     rm -f $tmp/out
11531     fi
11532    
11533 gezelter 2199 # Run the commands associated with the file.
11534     case $ac_file in
11535     make/Makefile ) chmod 0755 scripts/* ;;
11536     src/utils/Makefile ) chmod 0755 scripts/* ;;
11537     src/applications/nanoRodBuilder/Makefile ) chmod 0755 scripts/* ;;
11538     scripts/filepp ) chmod 0755 scripts/* ;;
11539     esac
11540 gezelter 1490 done
11541 gezelter 2081 _ACEOF
11542     cat >>$CONFIG_STATUS <<\_ACEOF
11543 gezelter 1490
11544     #
11545     # CONFIG_HEADER section.
11546     #
11547    
11548     # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
11549     # NAME is the cpp macro being defined and VALUE is the value it is being given.
11550     #
11551     # ac_d sets the value in "#define NAME VALUE" lines.
11552 gezelter 2081 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
11553     ac_dB='[ ].*$,\1#\2'
11554 gezelter 1490 ac_dC=' '
11555     ac_dD=',;t'
11556     # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
11557 gezelter 2081 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
11558 gezelter 1490 ac_uB='$,\1#\2define\3'
11559     ac_uC=' '
11560     ac_uD=',;t'
11561    
11562     for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
11563     # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11564     case $ac_file in
11565     - | *:- | *:-:* ) # input from stdin
11566 gezelter 2081 cat >$tmp/stdin
11567     ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11568     ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11569 gezelter 1490 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11570 gezelter 2081 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11571 gezelter 1490 * ) ac_file_in=$ac_file.in ;;
11572     esac
11573    
11574 gezelter 2081 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
11575 gezelter 1490 echo "$as_me: creating $ac_file" >&6;}
11576    
11577     # First look for the input files in the build tree, otherwise in the
11578     # src tree.
11579     ac_file_inputs=`IFS=:
11580     for f in $ac_file_in; do
11581     case $f in
11582     -) echo $tmp/stdin ;;
11583     [\\/$]*)
11584 gezelter 2081 # Absolute (can't be DOS-style, as IFS=:)
11585     test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11586 gezelter 1490 echo "$as_me: error: cannot find input file: $f" >&2;}
11587     { (exit 1); exit 1; }; }
11588 gezelter 2081 # Do quote $f, to prevent DOS paths from being IFS'd.
11589     echo "$f";;
11590 gezelter 1490 *) # Relative
11591 gezelter 2081 if test -f "$f"; then
11592     # Build tree
11593     echo "$f"
11594     elif test -f "$srcdir/$f"; then
11595     # Source tree
11596     echo "$srcdir/$f"
11597     else
11598     # /dev/null tree
11599     { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11600 gezelter 1490 echo "$as_me: error: cannot find input file: $f" >&2;}
11601     { (exit 1); exit 1; }; }
11602 gezelter 2081 fi;;
11603 gezelter 1490 esac
11604     done` || { (exit 1); exit 1; }
11605     # Remove the trailing spaces.
11606 gezelter 2081 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
11607 gezelter 1490
11608 gezelter 2081 _ACEOF
11609 gezelter 1490
11610     # Transform confdefs.h into two sed scripts, `conftest.defines' and
11611     # `conftest.undefs', that substitutes the proper values into
11612     # config.h.in to produce config.h. The first handles `#define'
11613     # templates, and the second `#undef' templates.
11614     # And first: Protect against being on the right side of a sed subst in
11615     # config.status. Protect against being in an unquoted here document
11616     # in config.status.
11617     rm -f conftest.defines conftest.undefs
11618     # Using a here document instead of a string reduces the quoting nightmare.
11619     # Putting comments in sed scripts is not portable.
11620     #
11621     # `end' is used to avoid that the second main sed command (meant for
11622     # 0-ary CPP macros) applies to n-ary macro definitions.
11623     # See the Autoconf documentation for `clear'.
11624 gezelter 2081 cat >confdef2sed.sed <<\_ACEOF
11625 gezelter 1490 s/[\\&,]/\\&/g
11626     s,[\\$`],\\&,g
11627     t clear
11628     : clear
11629 gezelter 2081 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
11630 gezelter 1490 t end
11631 gezelter 2081 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
11632 gezelter 1490 : end
11633 gezelter 2081 _ACEOF
11634 gezelter 1490 # If some macros were called several times there might be several times
11635     # the same #defines, which is useless. Nevertheless, we may not want to
11636     # sort them, since we want the *last* AC-DEFINE to be honored.
11637     uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
11638     sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
11639     rm -f confdef2sed.sed
11640    
11641     # This sed command replaces #undef with comments. This is necessary, for
11642     # example, in the case of _POSIX_SOURCE, which is predefined and required
11643     # on some systems where configure will not decide to define it.
11644 gezelter 2081 cat >>conftest.undefs <<\_ACEOF
11645     s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
11646     _ACEOF
11647 gezelter 1490
11648     # Break up conftest.defines because some shells have a limit on the size
11649     # of here documents, and old seds have small limits too (100 cmds).
11650     echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
11651 gezelter 2081 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
11652 gezelter 1490 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
11653     echo ' :' >>$CONFIG_STATUS
11654     rm -f conftest.tail
11655     while grep . conftest.defines >/dev/null
11656     do
11657     # Write a limited-size here document to $tmp/defines.sed.
11658     echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
11659     # Speed up: don't consider the non `#define' lines.
11660 gezelter 2081 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
11661 gezelter 1490 # Work around the forget-to-reset-the-flag bug.
11662     echo 't clr' >>$CONFIG_STATUS
11663     echo ': clr' >>$CONFIG_STATUS
11664     sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
11665     echo 'CEOF
11666     sed -f $tmp/defines.sed $tmp/in >$tmp/out
11667     rm -f $tmp/in
11668     mv $tmp/out $tmp/in
11669     ' >>$CONFIG_STATUS
11670     sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
11671     rm -f conftest.defines
11672     mv conftest.tail conftest.defines
11673     done
11674     rm -f conftest.defines
11675 gezelter 2081 echo ' fi # grep' >>$CONFIG_STATUS
11676 gezelter 1490 echo >>$CONFIG_STATUS
11677    
11678     # Break up conftest.undefs because some shells have a limit on the size
11679     # of here documents, and old seds have small limits too (100 cmds).
11680     echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
11681     rm -f conftest.tail
11682     while grep . conftest.undefs >/dev/null
11683     do
11684     # Write a limited-size here document to $tmp/undefs.sed.
11685     echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
11686     # Speed up: don't consider the non `#undef'
11687 gezelter 2081 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
11688 gezelter 1490 # Work around the forget-to-reset-the-flag bug.
11689     echo 't clr' >>$CONFIG_STATUS
11690     echo ': clr' >>$CONFIG_STATUS
11691     sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
11692     echo 'CEOF
11693     sed -f $tmp/undefs.sed $tmp/in >$tmp/out
11694     rm -f $tmp/in
11695     mv $tmp/out $tmp/in
11696     ' >>$CONFIG_STATUS
11697     sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
11698     rm -f conftest.undefs
11699     mv conftest.tail conftest.undefs
11700     done
11701     rm -f conftest.undefs
11702    
11703 gezelter 2081 cat >>$CONFIG_STATUS <<\_ACEOF
11704 gezelter 1490 # Let's still pretend it is `configure' which instantiates (i.e., don't
11705     # use $as_me), people would be surprised to read:
11706 gezelter 2081 # /* config.h. Generated by config.status. */
11707 gezelter 1490 if test x"$ac_file" = x-; then
11708 gezelter 2081 echo "/* Generated by configure. */" >$tmp/config.h
11709 gezelter 1490 else
11710 gezelter 2081 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
11711 gezelter 1490 fi
11712     cat $tmp/in >>$tmp/config.h
11713     rm -f $tmp/in
11714     if test x"$ac_file" != x-; then
11715 gezelter 2081 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
11716     { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
11717 gezelter 1490 echo "$as_me: $ac_file is unchanged" >&6;}
11718     else
11719 gezelter 2081 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11720     $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11721     X"$ac_file" : 'X\(//\)[^/]' \| \
11722     X"$ac_file" : 'X\(//\)$' \| \
11723     X"$ac_file" : 'X\(/\)' \| \
11724     . : '\(.\)' 2>/dev/null ||
11725 gezelter 1490 echo X"$ac_file" |
11726     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11727     /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11728     /^X\(\/\/\)$/{ s//\1/; q; }
11729     /^X\(\/\).*/{ s//\1/; q; }
11730     s/.*/./; q'`
11731 gezelter 2081 { if $as_mkdir_p; then
11732     mkdir -p "$ac_dir"
11733     else
11734     as_dir="$ac_dir"
11735     as_dirs=
11736     while test ! -d "$as_dir"; do
11737     as_dirs="$as_dir $as_dirs"
11738     as_dir=`(dirname "$as_dir") 2>/dev/null ||
11739     $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11740     X"$as_dir" : 'X\(//\)[^/]' \| \
11741     X"$as_dir" : 'X\(//\)$' \| \
11742     X"$as_dir" : 'X\(/\)' \| \
11743     . : '\(.\)' 2>/dev/null ||
11744     echo X"$as_dir" |
11745     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11746     /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11747     /^X\(\/\/\)$/{ s//\1/; q; }
11748     /^X\(\/\).*/{ s//\1/; q; }
11749     s/.*/./; q'`
11750     done
11751     test ! -n "$as_dirs" || mkdir $as_dirs
11752     fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11753     echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11754     { (exit 1); exit 1; }; }; }
11755 gezelter 1490
11756     rm -f $ac_file
11757     mv $tmp/config.h $ac_file
11758     fi
11759     else
11760     cat $tmp/config.h
11761     rm -f $tmp/config.h
11762     fi
11763     done
11764 gezelter 2081 _ACEOF
11765     cat >>$CONFIG_STATUS <<\_ACEOF
11766 gezelter 1490
11767     #
11768     # CONFIG_LINKS section.
11769     #
11770    
11771     for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
11772     ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
11773     ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
11774    
11775 gezelter 2081 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
11776 gezelter 1490 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
11777    
11778     if test ! -r $srcdir/$ac_source; then
11779 gezelter 2081 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
11780     echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
11781 gezelter 1490 { (exit 1); exit 1; }; }
11782     fi
11783     rm -f $ac_dest
11784    
11785     # Make relative symlinks.
11786 gezelter 2081 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
11787     $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11788     X"$ac_dest" : 'X\(//\)[^/]' \| \
11789     X"$ac_dest" : 'X\(//\)$' \| \
11790     X"$ac_dest" : 'X\(/\)' \| \
11791     . : '\(.\)' 2>/dev/null ||
11792 gezelter 1490 echo X"$ac_dest" |
11793     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11794     /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11795     /^X\(\/\/\)$/{ s//\1/; q; }
11796     /^X\(\/\).*/{ s//\1/; q; }
11797     s/.*/./; q'`
11798 gezelter 2081 { if $as_mkdir_p; then
11799     mkdir -p "$ac_dest_dir"
11800     else
11801     as_dir="$ac_dest_dir"
11802     as_dirs=
11803     while test ! -d "$as_dir"; do
11804     as_dirs="$as_dir $as_dirs"
11805     as_dir=`(dirname "$as_dir") 2>/dev/null ||
11806     $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11807     X"$as_dir" : 'X\(//\)[^/]' \| \
11808     X"$as_dir" : 'X\(//\)$' \| \
11809     X"$as_dir" : 'X\(/\)' \| \
11810     . : '\(.\)' 2>/dev/null ||
11811     echo X"$as_dir" |
11812     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11813     /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11814     /^X\(\/\/\)$/{ s//\1/; q; }
11815     /^X\(\/\).*/{ s//\1/; q; }
11816     s/.*/./; q'`
11817     done
11818     test ! -n "$as_dirs" || mkdir $as_dirs
11819     fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
11820     echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
11821     { (exit 1); exit 1; }; }; }
11822    
11823     ac_builddir=.
11824    
11825     if test "$ac_dest_dir" != .; then
11826     ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
11827     # A "../" for each directory in $ac_dir_suffix.
11828     ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11829     else
11830     ac_dir_suffix= ac_top_builddir=
11831     fi
11832    
11833     case $srcdir in
11834     .) # No --srcdir option. We are building in place.
11835     ac_srcdir=.
11836     if test -z "$ac_top_builddir"; then
11837     ac_top_srcdir=.
11838     else
11839     ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11840     fi ;;
11841     [\\/]* | ?:[\\/]* ) # Absolute path.
11842     ac_srcdir=$srcdir$ac_dir_suffix;
11843     ac_top_srcdir=$srcdir ;;
11844     *) # Relative path.
11845     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11846     ac_top_srcdir=$ac_top_builddir$srcdir ;;
11847 gezelter 1490 esac
11848    
11849 gezelter 2081 # Do not use `cd foo && pwd` to compute absolute paths, because
11850     # the directories may not exist.
11851     case `pwd` in
11852     .) ac_abs_builddir="$ac_dest_dir";;
11853     *)
11854     case "$ac_dest_dir" in
11855     .) ac_abs_builddir=`pwd`;;
11856     [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
11857     *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
11858     esac;;
11859     esac
11860     case $ac_abs_builddir in
11861     .) ac_abs_top_builddir=${ac_top_builddir}.;;
11862     *)
11863     case ${ac_top_builddir}. in
11864     .) ac_abs_top_builddir=$ac_abs_builddir;;
11865     [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
11866     *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
11867     esac;;
11868     esac
11869     case $ac_abs_builddir in
11870     .) ac_abs_srcdir=$ac_srcdir;;
11871     *)
11872     case $ac_srcdir in
11873     .) ac_abs_srcdir=$ac_abs_builddir;;
11874     [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
11875     *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
11876     esac;;
11877     esac
11878     case $ac_abs_builddir in
11879     .) ac_abs_top_srcdir=$ac_top_srcdir;;
11880     *)
11881     case $ac_top_srcdir in
11882     .) ac_abs_top_srcdir=$ac_abs_builddir;;
11883     [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
11884     *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
11885     esac;;
11886     esac
11887 gezelter 1490
11888 gezelter 2081
11889 gezelter 1490 case $srcdir in
11890     [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
11891 gezelter 2081 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
11892 gezelter 1490 esac
11893    
11894 gezelter 2081 # Try a symlink, then a hard link, then a copy.
11895 gezelter 1490 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
11896 gezelter 2081 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
11897     cp -p $srcdir/$ac_source $ac_dest ||
11898     { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
11899     echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
11900 gezelter 1490 { (exit 1); exit 1; }; }
11901     done
11902 gezelter 2081 _ACEOF
11903 gezelter 1490
11904 gezelter 2081 cat >>$CONFIG_STATUS <<\_ACEOF
11905 gezelter 1490
11906     { (exit 0); exit 0; }
11907 gezelter 2081 _ACEOF
11908 gezelter 1490 chmod +x $CONFIG_STATUS
11909     ac_clean_files=$ac_clean_files_save
11910    
11911 gezelter 2081
11912 gezelter 1490 # configure is writing to config.log, and then calls config.status.
11913     # config.status does its own redirection, appending to config.log.
11914     # Unfortunately, on DOS this fails, as config.log is still kept open
11915     # by configure, so config.status won't be able to write to it; its
11916     # output is simply discarded. So we exec the FD to /dev/null,
11917     # effectively closing config.log, so it can be properly (re)opened and
11918     # appended to by config.status. When coming back to configure, we
11919     # need to make the FD available again.
11920     if test "$no_create" != yes; then
11921     ac_cs_success=:
11922 gezelter 2081 ac_config_status_args=
11923     test "$silent" = yes &&
11924     ac_config_status_args="$ac_config_status_args --quiet"
11925 gezelter 1490 exec 5>/dev/null
11926 gezelter 2081 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11927 gezelter 1490 exec 5>>config.log
11928     # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11929     # would make configure fail if this is the last instruction.
11930     $ac_cs_success || { (exit 1); exit 1; }
11931     fi
11932    

Properties

Name Value
svn:executable *