ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/OOPSE-4/configure
Revision: 2315
Committed: Tue Sep 20 22:03:35 2005 UTC (18 years, 9 months ago) by gezelter
File size: 307357 byte(s)
Log Message:
added check for zlib in configure

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 2199 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS PROGNAME debug build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX OOPSE_TEMPLATE_FLAGS EXTRA_CC_FLAG F90 F90FLAGS ac_ct_F90 PREPFLAG PREPDEFFLAG F90LIBS F90_FUNC F90_FUNC_ MOD F90_WORK_FILES_ARG MODDIRFLAG F90MODINCSPEC F90_MODULE_NAMES CPP EGREP LIBOBJS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S SET_MAKE RANLIB ac_ct_RANLIB YACC LEX LEXLIB LEX_OUTPUT_ROOT PERLINTERP PERL_SHEBANG AR PS MPI_LIB_DIR MPI_INC_DIR MPI_F90_INC MPI_LIB MPI_F90_LIB USE_MPI CXXCPP 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     ac_env_F90_set=${F90+set}
781     ac_env_F90_value=$F90
782     ac_cv_env_F90_set=${F90+set}
783     ac_cv_env_F90_value=$F90
784     ac_env_F90FLAGS_set=${F90FLAGS+set}
785     ac_env_F90FLAGS_value=$F90FLAGS
786     ac_cv_env_F90FLAGS_set=${F90FLAGS+set}
787     ac_cv_env_F90FLAGS_value=$F90FLAGS
788     ac_env_CPP_set=${CPP+set}
789     ac_env_CPP_value=$CPP
790     ac_cv_env_CPP_set=${CPP+set}
791     ac_cv_env_CPP_value=$CPP
792 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     F90 Fortran 90 compiler command
900     F90FLAGS Fortran 90 compiler flags
901     CPP C preprocessor
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     cd $ac_popdir
997     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     for ac_prog in icc xlc gcc cc
1987     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     for ac_prog in icc xlc gcc cc
2029     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 2081 { ac_try='test -z "$ac_c_werror_flag"
2332     || test ! -s conftest.err'
2333     { (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 2081 { ac_try='test -z "$ac_c_werror_flag"
2391     || test ! -s conftest.err'
2392     { (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     { ac_try='test -z "$ac_c_werror_flag"
2508     || test ! -s conftest.err'
2509     { (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 2081 { ac_try='test -z "$ac_c_werror_flag"
2563     || test ! -s conftest.err'
2564     { (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 2081 { ac_try='test -z "$ac_c_werror_flag"
2609     || test ! -s conftest.err'
2610     { (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 2081 { ac_try='test -z "$ac_c_werror_flag"
2654     || test ! -s conftest.err'
2655     { (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     for ac_prog in $CCC icpc icc xlc++ xlC CC g++ c++
2701     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     for ac_prog in $CCC icpc icc xlc++ xlC CC g++ c++
2743     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 2081 { ac_try='test -z "$ac_cxx_werror_flag"
2840     || test ! -s conftest.err'
2841     { (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 2081 { ac_try='test -z "$ac_cxx_werror_flag"
2899     || test ! -s conftest.err'
2900     { (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 2081 { ac_try='test -z "$ac_cxx_werror_flag"
2971     || test ! -s conftest.err'
2972     { (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 2081 { ac_try='test -z "$ac_cxx_werror_flag"
3016     || test ! -s conftest.err'
3017     { (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 1490 OOPSE_TEMPLATE_FLAGS=""
3051     if test $ac_cv_cxx_compiler_gnu = no; then
3052 gezelter 2081 echo "$as_me:$LINENO: checking checking whether ${CXX} accepts -ptused -no_prelink" >&5
3053 gezelter 1490 echo $ECHO_N "checking checking whether ${CXX} accepts -ptused -no_prelink... $ECHO_C" >&6
3054     echo 'void f(){}' > conftest.cc
3055     if test -z "`${CXX} -ptused -no_prelink -c conftest.cc 2>&1`"; then
3056 gezelter 2081 echo "$as_me:$LINENO: result: yes" >&5
3057 gezelter 1490 echo "${ECHO_T}yes" >&6
3058     OOPSE_TEMPLATE_FLAGS="-ptused -no_prelink"
3059     else
3060 gezelter 2081 echo "$as_me:$LINENO: result: no" >&5
3061 gezelter 1490 echo "${ECHO_T}no" >&6
3062     fi
3063     rm -f conftest*
3064 gezelter 2081 echo "$as_me:$LINENO: checking checking whether ${CXX} accepts -instances=static" >&5
3065 gezelter 1490 echo $ECHO_N "checking checking whether ${CXX} accepts -instances=static... $ECHO_C" >&6
3066     echo 'void f(){}' > conftest.cc
3067     if test -z "`${CXX} -instances=static -c conftest.cc 2>&1`"; then
3068 gezelter 2081 echo "$as_me:$LINENO: result: yes" >&5
3069 gezelter 1490 echo "${ECHO_T}yes" >&6
3070     OOPSE_TEMPLATE_FLAGS="-instances=static"
3071     else
3072 gezelter 2081 echo "$as_me:$LINENO: result: no" >&5
3073 gezelter 1490 echo "${ECHO_T}no" >&6
3074     fi
3075     rm -f conftest*
3076 gezelter 2081 echo "$as_me:$LINENO: checking checking whether ${CXX} accepts -pto" >&5
3077 gezelter 1490 echo $ECHO_N "checking checking whether ${CXX} accepts -pto... $ECHO_C" >&6
3078     echo 'void f(){}' > conftest.cc
3079     if test -z "`${CXX} -pto -c conftest.cc 2>&1`"; then
3080 gezelter 2081 echo "$as_me:$LINENO: result: yes" >&5
3081 gezelter 1490 echo "${ECHO_T}yes" >&6
3082     OOPSE_TEMPLATE_FLAGS="-pto"
3083     else
3084 gezelter 2081 echo "$as_me:$LINENO: result: no" >&5
3085 gezelter 1490 echo "${ECHO_T}no" >&6
3086     fi
3087     rm -f conftest*
3088 gezelter 2081 echo "$as_me:$LINENO: checking checking whether ${CXX} accepts -LANG:std" >&5
3089 gezelter 1490 echo $ECHO_N "checking checking whether ${CXX} accepts -LANG:std... $ECHO_C" >&6
3090     echo 'void f(){}' > conftest.cc
3091     if test -z "`${CXX} -LANG:std -c conftest.cc 2>&1`"; then
3092 gezelter 2081 echo "$as_me:$LINENO: result: yes" >&5
3093 gezelter 1490 echo "${ECHO_T}yes" >&6
3094    
3095 gezelter 2081
3096 gezelter 1490 EXTRA_CC_FLAG=${EXTRA_CC_FLAG}" -LANG:std"
3097     else
3098 gezelter 2081 echo "$as_me:$LINENO: result: no" >&5
3099 gezelter 1490 echo "${ECHO_T}no" >&6
3100     fi
3101     fi
3102    
3103 gezelter 2081
3104    
3105    
3106 gezelter 1490 ac_ext=f90
3107     ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3108     ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3109     ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3110     if test -n "$ac_tool_prefix"; then
3111     for ac_prog in ifort ifc f90 xlf90 pgf90 epcf90 f95 xlf95 lf95 fort g95
3112     do
3113     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3114     set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3115 gezelter 2081 echo "$as_me:$LINENO: checking for $ac_word" >&5
3116 gezelter 1490 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3117     if test "${ac_cv_prog_F90+set}" = set; then
3118     echo $ECHO_N "(cached) $ECHO_C" >&6
3119     else
3120     if test -n "$F90"; then
3121     ac_cv_prog_F90="$F90" # Let the user override the test.
3122     else
3123 gezelter 2081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3124     for as_dir in $PATH
3125     do
3126     IFS=$as_save_IFS
3127     test -z "$as_dir" && as_dir=.
3128     for ac_exec_ext in '' $ac_executable_extensions; do
3129     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3130     ac_cv_prog_F90="$ac_tool_prefix$ac_prog"
3131     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3132     break 2
3133     fi
3134 gezelter 1490 done
3135 gezelter 2081 done
3136 gezelter 1490
3137     fi
3138     fi
3139     F90=$ac_cv_prog_F90
3140     if test -n "$F90"; then
3141 gezelter 2081 echo "$as_me:$LINENO: result: $F90" >&5
3142 gezelter 1490 echo "${ECHO_T}$F90" >&6
3143     else
3144 gezelter 2081 echo "$as_me:$LINENO: result: no" >&5
3145 gezelter 1490 echo "${ECHO_T}no" >&6
3146     fi
3147    
3148     test -n "$F90" && break
3149     done
3150     fi
3151     if test -z "$F90"; then
3152     ac_ct_F90=$F90
3153     for ac_prog in ifort ifc f90 xlf90 pgf90 epcf90 f95 xlf95 lf95 fort g95
3154     do
3155     # Extract the first word of "$ac_prog", so it can be a program name with args.
3156     set dummy $ac_prog; ac_word=$2
3157 gezelter 2081 echo "$as_me:$LINENO: checking for $ac_word" >&5
3158 gezelter 1490 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3159     if test "${ac_cv_prog_ac_ct_F90+set}" = set; then
3160     echo $ECHO_N "(cached) $ECHO_C" >&6
3161     else
3162     if test -n "$ac_ct_F90"; then
3163     ac_cv_prog_ac_ct_F90="$ac_ct_F90" # Let the user override the test.
3164     else
3165 gezelter 2081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3166     for as_dir in $PATH
3167     do
3168     IFS=$as_save_IFS
3169     test -z "$as_dir" && as_dir=.
3170     for ac_exec_ext in '' $ac_executable_extensions; do
3171     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3172     ac_cv_prog_ac_ct_F90="$ac_prog"
3173     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3174     break 2
3175     fi
3176 gezelter 1490 done
3177 gezelter 2081 done
3178 gezelter 1490
3179     fi
3180     fi
3181     ac_ct_F90=$ac_cv_prog_ac_ct_F90
3182     if test -n "$ac_ct_F90"; then
3183 gezelter 2081 echo "$as_me:$LINENO: result: $ac_ct_F90" >&5
3184 gezelter 1490 echo "${ECHO_T}$ac_ct_F90" >&6
3185     else
3186 gezelter 2081 echo "$as_me:$LINENO: result: no" >&5
3187 gezelter 1490 echo "${ECHO_T}no" >&6
3188     fi
3189    
3190     test -n "$ac_ct_F90" && break
3191     done
3192    
3193     F90=$ac_ct_F90
3194     fi
3195    
3196 gezelter 2081
3197 gezelter 1490 # If we don't use `.F90' as extension, the preprocessor is not run on the
3198     # input file.
3199     ac_save_ext=$ac_ext
3200     ac_ext=F90
3201 gezelter 2081 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 90 compiler" >&5
3202 gezelter 1490 echo $ECHO_N "checking whether we are using the GNU Fortran 90 compiler... $ECHO_C" >&6
3203     if test "${ac_cv_f90_compiler_gnu+set}" = set; then
3204     echo $ECHO_N "(cached) $ECHO_C" >&6
3205     else
3206     cat >conftest.$ac_ext <<_ACEOF
3207    
3208     program main
3209    
3210     #ifndef __GNUC__
3211     choke me
3212     #endif
3213    
3214     end program main
3215    
3216     _ACEOF
3217     rm -f conftest.$ac_objext
3218 gezelter 2081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3219     (eval $ac_compile) 2>conftest.er1
3220 gezelter 1490 ac_status=$?
3221 gezelter 2081 grep -v '^ *+' conftest.er1 >conftest.err
3222     rm -f conftest.er1
3223     cat conftest.err >&5
3224     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3225 gezelter 1490 (exit $ac_status); } &&
3226 gezelter 2081 { ac_try='test -z "$ac_f90_werror_flag"
3227     || test ! -s conftest.err'
3228     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3229 gezelter 1490 (eval $ac_try) 2>&5
3230     ac_status=$?
3231 gezelter 2081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3232     (exit $ac_status); }; } &&
3233     { ac_try='test -s conftest.$ac_objext'
3234     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3235     (eval $ac_try) 2>&5
3236     ac_status=$?
3237     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3238 gezelter 1490 (exit $ac_status); }; }; then
3239     ac_compiler_gnu=yes
3240     else
3241     echo "$as_me: failed program was:" >&5
3242 gezelter 2081 sed 's/^/| /' conftest.$ac_ext >&5
3243    
3244 gezelter 1490 ac_compiler_gnu=no
3245     fi
3246 gezelter 2081 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3247 gezelter 1490 ac_cv_f90_compiler_gnu=$ac_compiler_gnu
3248    
3249     fi
3250 gezelter 2081 echo "$as_me:$LINENO: result: $ac_cv_f90_compiler_gnu" >&5
3251 gezelter 1490 echo "${ECHO_T}$ac_cv_f90_compiler_gnu" >&6
3252     ac_ext=$ac_save_ext
3253     G95=`test $ac_compiler_gnu = yes && echo yes`
3254     ac_ext=c
3255     ac_cpp='$CPP $CPPFLAGS'
3256     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3257     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3258     ac_compiler_gnu=$ac_cv_c_compiler_gnu
3259    
3260 gezelter 2081
3261    
3262    
3263    
3264 gezelter 1490 # Try to determine native compiler flags that allow us to use F90 suffix
3265     # for preprocessed f90 source.
3266    
3267     if test "$ac_test_PREPFLAG" != "set"; then
3268     PREPFLAG=""
3269     case "${host_cpu}-${host_os}" in
3270    
3271     *linux*) if test "$F90" = ifc -o "$F90" = ifort; then
3272     PREPFLAG="-fpp1 "
3273     fi;;
3274     *aix*) if test "$F90" = xlf90 -o "$F90" = f90; then
3275     PREPFLAG="-qsuffix=cpp=F90 "
3276     fi;;
3277     *darwin*)
3278     if test "$F90" = f90 -o "$F90" = xlf90; then
3279     PREPFLAG="-qsuffix=cpp=F90 "
3280     fi;;
3281     esac
3282    
3283     if test -z "$PREPFLAG"; then
3284 gezelter 2081 { echo "$as_me:$LINENO: WARNING: \"Using empty PREPFLAG\"" >&5
3285 gezelter 1490 echo "$as_me: WARNING: \"Using empty PREPFLAG\"" >&2;}
3286     PREPFLAG=""
3287     fi
3288    
3289 gezelter 2081 echo "$as_me:$LINENO: checking to make sure F90 preprocessor flag works" >&5
3290 gezelter 1490 echo $ECHO_N "checking to make sure F90 preprocessor flag works... $ECHO_C" >&6
3291    
3292 gezelter 2081
3293 gezelter 1490 ac_ext=f90
3294     ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3295     ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3296     ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3297    
3298     ac_save_ext=$ac_ext
3299     ac_ext=F90
3300     ac_save_F90FLAGS=$F90FLAGS
3301    
3302     if test "$PREPFLAG"; then
3303     F90FLAGS="${F90FLAGS} ${PREPFLAG}-DTEST"
3304     fi
3305    
3306     cat >conftest.$ac_ext <<_ACEOF
3307    
3308 gezelter 2081
3309 gezelter 1490 program main
3310    
3311     integer :: i
3312     i = 1
3313    
3314 gezelter 2081
3315 gezelter 1490 end program main
3316    
3317     _ACEOF
3318     rm -f conftest.$ac_objext
3319 gezelter 2081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3320     (eval $ac_compile) 2>conftest.er1
3321 gezelter 1490 ac_status=$?
3322 gezelter 2081 grep -v '^ *+' conftest.er1 >conftest.err
3323     rm -f conftest.er1
3324     cat conftest.err >&5
3325     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3326 gezelter 1490 (exit $ac_status); } &&
3327 gezelter 2081 { ac_try='test -z "$ac_f90_werror_flag"
3328     || test ! -s conftest.err'
3329     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3330 gezelter 1490 (eval $ac_try) 2>&5
3331     ac_status=$?
3332 gezelter 2081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3333     (exit $ac_status); }; } &&
3334     { ac_try='test -s conftest.$ac_objext'
3335     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3336     (eval $ac_try) 2>&5
3337     ac_status=$?
3338     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3339 gezelter 1490 (exit $ac_status); }; }; then
3340     prepflagworks=1
3341     else
3342     echo "$as_me: failed program was:" >&5
3343 gezelter 2081 sed 's/^/| /' conftest.$ac_ext >&5
3344    
3345 gezelter 1490 prepflagworks=0
3346     fi
3347 gezelter 2081 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3348 gezelter 1490
3349     F90FLAGS=$ac_save_F90FLAGS
3350     ac_ext=$ac_save_ext
3351     ac_ext=c
3352     ac_cpp='$CPP $CPPFLAGS'
3353     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3354     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3355     ac_compiler_gnu=$ac_cv_c_compiler_gnu
3356    
3357 gezelter 2081
3358 gezelter 1490 if test "$prepflagworks" = 1; then
3359 gezelter 2081 echo "$as_me:$LINENO: result: yes" >&5
3360 gezelter 1490 echo "${ECHO_T}yes" >&6
3361    
3362     else
3363 gezelter 2081 echo "$as_me:$LINENO: result: no" >&5
3364 gezelter 1490 echo "${ECHO_T}no" >&6
3365 gezelter 2081 { { echo "$as_me:$LINENO: error: Can't figure out working Fortran90 preprocessor flag" >&5
3366 gezelter 1490 echo "$as_me: error: Can't figure out working Fortran90 preprocessor flag" >&2;}
3367     { (exit 1); exit 1; }; }
3368     fi
3369     fi
3370    
3371 gezelter 2081
3372    
3373    
3374    
3375 gezelter 1490 # Try to determine native compiler flags that allow us to use F90 suffix
3376     # for preprocessed f90 source with -D type defines
3377    
3378     if test "$ac_test_PREPDEFFLAG" != "set"; then
3379     PREPDEFFLAG=""
3380     case "${host_cpu}-${host_os}" in
3381    
3382     *linux*) if test "$F90" = ifc -o "$F90" = ifort; then
3383     PREPDEFFLAG=" "
3384     fi;;
3385     *aix*) if test "$F90" = xlf90 -o "$F90" = f90; then
3386     PREPDEFFLAG="-WF,"
3387     fi;;
3388     *darwin*)
3389     if test "$F90" = f90 -o "$F90" = xlf90; then
3390     PREPDEFFLAG="-WF,"
3391     fi;;
3392     esac
3393    
3394     if test -z "$PREPDEFFLAG"; then
3395 gezelter 2081 { echo "$as_me:$LINENO: WARNING: \"Using empty PREPDEFFLAG\"" >&5
3396 gezelter 1490 echo "$as_me: WARNING: \"Using empty PREPDEFFLAG\"" >&2;}
3397     PREPDEFFLAG=" "
3398     fi
3399    
3400 gezelter 2081 echo "$as_me:$LINENO: checking to make sure F90 preprocessor define flag works" >&5
3401 gezelter 1490 echo $ECHO_N "checking to make sure F90 preprocessor define flag works... $ECHO_C" >&6
3402    
3403 gezelter 2081
3404 gezelter 1490 ac_ext=f90
3405     ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3406     ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3407     ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3408    
3409     ac_save_ext=$ac_ext
3410     ac_ext=F90
3411     ac_save_F90FLAGS=$F90FLAGS
3412    
3413     if test "$PREPDEFFLAG"; then
3414     F90FLAGS="${F90FLAGS} ${PREPFLAG} ${PREPDEFFLAG}-DTEST"
3415     fi
3416    
3417     cat >conftest.$ac_ext <<_ACEOF
3418    
3419 gezelter 2081
3420 gezelter 1490 program main
3421    
3422     integer :: i
3423     #ifdef TEST
3424     i = 1
3425     #else
3426     choke me
3427     #endif
3428    
3429 gezelter 2081
3430 gezelter 1490 end program main
3431    
3432     _ACEOF
3433     rm -f conftest.$ac_objext
3434 gezelter 2081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3435     (eval $ac_compile) 2>conftest.er1
3436 gezelter 1490 ac_status=$?
3437 gezelter 2081 grep -v '^ *+' conftest.er1 >conftest.err
3438     rm -f conftest.er1
3439     cat conftest.err >&5
3440     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3441 gezelter 1490 (exit $ac_status); } &&
3442 gezelter 2081 { ac_try='test -z "$ac_f90_werror_flag"
3443     || test ! -s conftest.err'
3444     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3445 gezelter 1490 (eval $ac_try) 2>&5
3446     ac_status=$?
3447 gezelter 2081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3448     (exit $ac_status); }; } &&
3449     { ac_try='test -s conftest.$ac_objext'
3450     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3451     (eval $ac_try) 2>&5
3452     ac_status=$?
3453     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3454 gezelter 1490 (exit $ac_status); }; }; then
3455     prepdefflagworks=1
3456     else
3457     echo "$as_me: failed program was:" >&5
3458 gezelter 2081 sed 's/^/| /' conftest.$ac_ext >&5
3459    
3460 gezelter 1490 prepdefflagworks=0
3461     fi
3462 gezelter 2081 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3463 gezelter 1490
3464     F90FLAGS=$ac_save_F90FLAGS
3465     ac_ext=$ac_save_ext
3466     ac_ext=c
3467     ac_cpp='$CPP $CPPFLAGS'
3468     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3469     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3470     ac_compiler_gnu=$ac_cv_c_compiler_gnu
3471    
3472 gezelter 2081
3473    
3474 gezelter 1490 if test "$prepdefflagworks" = 1; then
3475 gezelter 2081 echo "$as_me:$LINENO: result: yes" >&5
3476 gezelter 1490 echo "${ECHO_T}yes" >&6
3477    
3478     else
3479 gezelter 2081 echo "$as_me:$LINENO: result: no" >&5
3480 gezelter 1490 echo "${ECHO_T}no" >&6
3481 gezelter 2081 { { echo "$as_me:$LINENO: error: Can't figure out working Fortran90 preprocessor define flag" >&5
3482 gezelter 1490 echo "$as_me: error: Can't figure out working Fortran90 preprocessor define flag" >&2;}
3483     { (exit 1); exit 1; }; }
3484     fi
3485     fi
3486    
3487     ac_ext=f90
3488     ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3489     ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3490     ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3491    
3492 gezelter 2081
3493    
3494 gezelter 1490 ac_ext=f90
3495     ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3496     ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3497     ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3498 gezelter 2081 echo "$as_me:$LINENO: checking how to get verbose linking output from $F90" >&5
3499 gezelter 1490 echo $ECHO_N "checking how to get verbose linking output from $F90... $ECHO_C" >&6
3500     if test "${ac_cv_prog_f90_v+set}" = set; then
3501     echo $ECHO_N "(cached) $ECHO_C" >&6
3502     else
3503    
3504     cat >conftest.$ac_ext <<_ACEOF
3505    
3506     program main
3507    
3508 gezelter 2081
3509 gezelter 1490 end program main
3510    
3511     _ACEOF
3512     rm -f conftest.$ac_objext
3513 gezelter 2081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3514     (eval $ac_compile) 2>conftest.er1
3515 gezelter 1490 ac_status=$?
3516 gezelter 2081 grep -v '^ *+' conftest.er1 >conftest.err
3517     rm -f conftest.er1
3518     cat conftest.err >&5
3519     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3520 gezelter 1490 (exit $ac_status); } &&
3521 gezelter 2081 { ac_try='test -z "$ac_f90_werror_flag"
3522     || test ! -s conftest.err'
3523     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3524 gezelter 1490 (eval $ac_try) 2>&5
3525     ac_status=$?
3526 gezelter 2081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3527     (exit $ac_status); }; } &&
3528     { ac_try='test -s conftest.$ac_objext'
3529     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3530     (eval $ac_try) 2>&5
3531     ac_status=$?
3532     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3533 gezelter 1490 (exit $ac_status); }; }; then
3534     ac_cv_prog_f90_v=
3535     # Try some options frequently used verbose output
3536     for ac_verb in -v -verbose --verbose -V -\#\#\#; do
3537     ac_ext=f90
3538     ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3539     ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3540     ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3541    
3542     cat >conftest.$ac_ext <<_ACEOF
3543    
3544     program main
3545    
3546 gezelter 2081
3547 gezelter 1490 end program main
3548    
3549     _ACEOF
3550    
3551     # Compile and link our simple test program by passing a flag (argument
3552     # 1 to this macro) to the Fortran 90 compiler in order to get
3553     # "verbose" output that we can then parse for the Fortran 90 linker
3554     # flags.
3555     ac_save_F90FLAGS=$F90FLAGS
3556     F90FLAGS="$F90FLAGS $ac_verb"
3557    
3558 gezelter 2315 (eval echo $as_me:3558: \"$ac_link\") >&5
3559 gezelter 1490 ac_f90_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
3560     echo "$ac_f90_v_output" >&5
3561     F90FLAGS=$ac_save_F90FLAGS
3562    
3563     rm -f conftest.*
3564     ac_ext=f90
3565     ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3566     ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3567     ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3568    
3569     # If we are using xlf then replace all the commas with spaces.
3570     if echo $ac_f90_v_output | grep xlfentry >/dev/null 2>&1; then
3571     ac_f90_v_output=`echo $ac_f90_v_output | sed 's/,/ /g'`
3572     fi
3573    
3574     # If we are using Cray Fortran then delete quotes.
3575     # Use "\"" instead of '"' for font-lock-mode.
3576     # FIXME: a more general fix for quoted arguments with spaces?
3577     if echo $ac_f90_v_output | grep cft90 >/dev/null 2>&1; then
3578     ac_f90_v_output=`echo $ac_f90_v_output | sed "s/\"//g"`
3579     fi
3580     # look for -l* and *.a constructs in the output
3581     for ac_arg in $ac_f90_v_output; do
3582     case $ac_arg in
3583     [\\/]*.a | ?:[\\/]*.a | -[lLRu]*)
3584     ac_cv_prog_f90_v=$ac_verb
3585     break 2 ;;
3586     esac
3587     done
3588     done
3589     if test -z "$ac_cv_prog_f90_v"; then
3590 gezelter 2081 { echo "$as_me:$LINENO: WARNING: cannot determine how to obtain linking information from $F90" >&5
3591 gezelter 1490 echo "$as_me: WARNING: cannot determine how to obtain linking information from $F90" >&2;}
3592     fi
3593     else
3594     echo "$as_me: failed program was:" >&5
3595 gezelter 2081 sed 's/^/| /' conftest.$ac_ext >&5
3596    
3597     { echo "$as_me:$LINENO: WARNING: compilation failed" >&5
3598 gezelter 1490 echo "$as_me: WARNING: compilation failed" >&2;}
3599     fi
3600 gezelter 2081 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3601 gezelter 1490
3602     fi
3603 gezelter 2081 echo "$as_me:$LINENO: result: $ac_cv_prog_f90_v" >&5
3604 gezelter 1490 echo "${ECHO_T}$ac_cv_prog_f90_v" >&6
3605 gezelter 2081 echo "$as_me:$LINENO: checking for Fortran 90 libraries" >&5
3606 gezelter 1490 echo $ECHO_N "checking for Fortran 90 libraries... $ECHO_C" >&6
3607     if test "${ac_cv_flibs+set}" = set; then
3608     echo $ECHO_N "(cached) $ECHO_C" >&6
3609     else
3610     if test "x$F90LIBS" != "x"; then
3611     ac_cv_f90libs="$F90LIBS" # Let the user override the test.
3612     else
3613    
3614     ac_ext=f90
3615     ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3616     ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3617     ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3618    
3619     cat >conftest.$ac_ext <<_ACEOF
3620    
3621     program main
3622    
3623 gezelter 2081
3624 gezelter 1490 end program main
3625    
3626     _ACEOF
3627    
3628     # Compile and link our simple test program by passing a flag (argument
3629     # 1 to this macro) to the Fortran 90 compiler in order to get
3630     # "verbose" output that we can then parse for the Fortran 90 linker
3631     # flags.
3632     ac_save_F90FLAGS=$F90FLAGS
3633     F90FLAGS="$F90FLAGS $ac_cv_prog_f90_v"
3634    
3635 gezelter 2315 (eval echo $as_me:3635: \"$ac_link\") >&5
3636 gezelter 1490 ac_f90_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
3637     echo "$ac_f90_v_output" >&5
3638     F90FLAGS=$ac_save_F90FLAGS
3639    
3640     rm -f conftest.*
3641     ac_ext=f90
3642     ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3643     ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3644     ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3645    
3646     # If we are using xlf then replace all the commas with spaces.
3647     if echo $ac_f90_v_output | grep xlfentry >/dev/null 2>&1; then
3648     ac_f90_v_output=`echo $ac_f90_v_output | sed 's/,/ /g'`
3649     fi
3650    
3651     # If we are using Cray Fortran then delete quotes.
3652     # Use "\"" instead of '"' for font-lock-mode.
3653     # FIXME: a more general fix for quoted arguments with spaces?
3654     if echo $ac_f90_v_output | grep cft90 >/dev/null 2>&1; then
3655     ac_f90_v_output=`echo $ac_f90_v_output | sed "s/\"//g"`
3656     fi
3657    
3658     ac_cv_f90libs=
3659    
3660     # Save positional arguments (if any)
3661     ac_save_positional="$@"
3662    
3663     set X $ac_f90_v_output
3664     while test $# != 1; do
3665     shift
3666     ac_arg=$1
3667     case $ac_arg in
3668     [\\/]*.a | ?:[\\/]*.a)
3669     ac_exists=false
3670     for ac_i in $ac_cv_f90libs; do
3671     if test x"$ac_arg" = x"$ac_i"; then
3672     ac_exists=true
3673     break
3674     fi
3675     done
3676    
3677     if test x"$ac_exists" = xtrue; then
3678     :
3679     else
3680     ac_cv_f90libs="$ac_cv_f90libs $ac_arg"
3681     fi
3682    
3683     ;;
3684     -bI:*)
3685     ac_exists=false
3686     for ac_i in $ac_cv_f90libs; do
3687     if test x"$ac_arg" = x"$ac_i"; then
3688     ac_exists=true
3689     break
3690     fi
3691     done
3692    
3693     if test x"$ac_exists" = xtrue; then
3694     :
3695     else
3696     if test "$ac_compiler_gnu" = yes; then
3697     for ac_link_opt in $ac_arg; do
3698     ac_cv_f90libs="$ac_cv_f90libs -Xlinker $ac_link_opt"
3699     done
3700     else
3701     ac_cv_f90libs="$ac_cv_f90libs $ac_arg"
3702     fi
3703     fi
3704    
3705     ;;
3706     # Ignore these flags.
3707     -lang* | -lcrt[012].o | -lc | -lgcc | -LANG:=*)
3708     ;;
3709     -lkernel32)
3710     test x"$CYGWIN" != xyes && ac_cv_f90libs="$ac_cv_f90libs $ac_arg"
3711     ;;
3712     -[LRuY])
3713     # These flags, when seen by themselves, take an argument.
3714     # We remove the space between option and argument and re-iterate
3715     # unless we find an empty arg or a new option (starting with -)
3716     case $2 in
3717     "" | -*);;
3718     *)
3719     ac_arg="$ac_arg$2"
3720    
3721     shift; shift
3722     set X $ac_arg "$@"
3723     ;;
3724     esac
3725     ;;
3726     -YP,*)
3727     for ac_j in `echo $ac_arg | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do
3728     ac_exists=false
3729     for ac_i in $ac_cv_f90libs; do
3730     if test x"$ac_j" = x"$ac_i"; then
3731     ac_exists=true
3732     break
3733     fi
3734     done
3735    
3736     if test x"$ac_exists" = xtrue; then
3737     :
3738     else
3739     ac_arg="$ac_arg $ac_j"
3740     ac_cv_f90libs="$ac_cv_f90libs $ac_j"
3741     fi
3742    
3743     done
3744     ;;
3745     -[lLR]*)
3746     ac_exists=false
3747     for ac_i in $ac_cv_f90libs; do
3748     if test x"$ac_arg" = x"$ac_i"; then
3749     ac_exists=true
3750     break
3751     fi
3752     done
3753    
3754     if test x"$ac_exists" = xtrue; then
3755     :
3756     else
3757     ac_cv_f90libs="$ac_cv_f90libs $ac_arg"
3758     fi
3759    
3760     ;;
3761     # Ignore everything else.
3762     esac
3763     done
3764     # restore positional arguments
3765     set X $ac_save_positional; shift
3766    
3767     # We only consider "LD_RUN_PATH" on Solaris systems. If this is seen,
3768     # then we insist that the "run path" must be an absolute path (i.e. it
3769     # must begin with a "/").
3770     case `(uname -sr) 2>/dev/null` in
3771     "SunOS 5"*)
3772     ac_ld_run_path=`echo $ac_f90_v_output |
3773     sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'`
3774     test "x$ac_ld_run_path" != x &&
3775    
3776     if test "$ac_compiler_gnu" = yes; then
3777     for ac_link_opt in $ac_ld_run_path; do
3778     ac_cv_f90libs="$ac_cv_f90libs -Xlinker $ac_link_opt"
3779     done
3780     else
3781     ac_cv_f90libs="$ac_cv_f90libs $ac_ld_run_path"
3782     fi
3783     ;;
3784     esac
3785     fi # test "x$F90LIBS" = "x"
3786    
3787     fi
3788 gezelter 2081 echo "$as_me:$LINENO: result: $ac_cv_flibs" >&5
3789 gezelter 1490 echo "${ECHO_T}$ac_cv_flibs" >&6
3790     F90LIBS="$ac_cv_f90libs"
3791    
3792     ac_ext=f90
3793     ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3794     ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3795     ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3796    
3797 gezelter 2081
3798     echo "$as_me:$LINENO: checking for Fortran 90 name-mangling scheme" >&5
3799 gezelter 1490 echo $ECHO_N "checking for Fortran 90 name-mangling scheme... $ECHO_C" >&6
3800     if test "${ac_cv_f90_mangling+set}" = set; then
3801     echo $ECHO_N "(cached) $ECHO_C" >&6
3802     else
3803     ac_ext=f90
3804     ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3805     ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3806     ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3807     cat >conftest.$ac_ext <<_ACEOF
3808     subroutine foobar()
3809     return
3810     end
3811     subroutine foo_bar()
3812     return
3813     end
3814     _ACEOF
3815     rm -f conftest.$ac_objext
3816 gezelter 2081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3817     (eval $ac_compile) 2>conftest.er1
3818 gezelter 1490 ac_status=$?
3819 gezelter 2081 grep -v '^ *+' conftest.er1 >conftest.err
3820     rm -f conftest.er1
3821     cat conftest.err >&5
3822     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3823 gezelter 1490 (exit $ac_status); } &&
3824 gezelter 2081 { ac_try='test -z "$ac_f90_werror_flag"
3825     || test ! -s conftest.err'
3826     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3827 gezelter 1490 (eval $ac_try) 2>&5
3828     ac_status=$?
3829 gezelter 2081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3830     (exit $ac_status); }; } &&
3831     { ac_try='test -s conftest.$ac_objext'
3832     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3833     (eval $ac_try) 2>&5
3834     ac_status=$?
3835     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3836 gezelter 1490 (exit $ac_status); }; }; then
3837     mv conftest.$ac_objext cf90_test.$ac_objext
3838    
3839     ac_ext=c
3840     ac_cpp='$CPP $CPPFLAGS'
3841     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3842     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3843     ac_compiler_gnu=$ac_cv_c_compiler_gnu
3844    
3845     ac_save_LIBS=$LIBS
3846     LIBS="cf90_test.$ac_objext $F90LIBS $LIBS"
3847    
3848     ac_success=no
3849     for ac_foobar in foobar FOOBAR; do
3850     for ac_underscore in "" "_"; do
3851     ac_func="$ac_foobar$ac_underscore"
3852     cat >conftest.$ac_ext <<_ACEOF
3853 gezelter 2081 /* confdefs.h. */
3854     _ACEOF
3855     cat confdefs.h >>conftest.$ac_ext
3856     cat >>conftest.$ac_ext <<_ACEOF
3857     /* end confdefs.h. */
3858 gezelter 1490
3859     /* Override any gcc2 internal prototype to avoid an error. */
3860     #ifdef __cplusplus
3861     extern "C"
3862     #endif
3863     /* We use char because int might match the return type of a gcc2
3864     builtin and then its argument prototype would still apply. */
3865     char $ac_func ();
3866     int
3867     main ()
3868     {
3869     $ac_func ();
3870     ;
3871     return 0;
3872     }
3873     _ACEOF
3874     rm -f conftest.$ac_objext conftest$ac_exeext
3875 gezelter 2081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3876     (eval $ac_link) 2>conftest.er1
3877 gezelter 1490 ac_status=$?
3878 gezelter 2081 grep -v '^ *+' conftest.er1 >conftest.err
3879     rm -f conftest.er1
3880     cat conftest.err >&5
3881     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3882 gezelter 1490 (exit $ac_status); } &&
3883 gezelter 2081 { ac_try='test -z "$ac_c_werror_flag"
3884     || test ! -s conftest.err'
3885     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3886 gezelter 1490 (eval $ac_try) 2>&5
3887     ac_status=$?
3888 gezelter 2081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3889     (exit $ac_status); }; } &&
3890     { ac_try='test -s conftest$ac_exeext'
3891     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3892     (eval $ac_try) 2>&5
3893     ac_status=$?
3894     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3895 gezelter 1490 (exit $ac_status); }; }; then
3896     ac_success=yes; break 2
3897     else
3898     echo "$as_me: failed program was:" >&5
3899 gezelter 2081 sed 's/^/| /' conftest.$ac_ext >&5
3900    
3901 gezelter 1490 fi
3902 gezelter 2081 rm -f conftest.err conftest.$ac_objext \
3903     conftest$ac_exeext conftest.$ac_ext
3904 gezelter 1490 done
3905     done
3906    
3907     if test "$ac_success" = "yes"; then
3908     case $ac_foobar in
3909     foobar)
3910     ac_case=lower
3911     ac_foo_bar=foo_bar
3912     ;;
3913     FOOBAR)
3914     ac_case=upper
3915     ac_foo_bar=FOO_BAR
3916     ;;
3917     esac
3918    
3919     ac_success_extra=no
3920     for ac_extra in "" "_"; do
3921     ac_func="$ac_foo_bar$ac_underscore$ac_extra"
3922    
3923     cat >conftest.$ac_ext <<_ACEOF
3924 gezelter 2081 /* confdefs.h. */
3925     _ACEOF
3926     cat confdefs.h >>conftest.$ac_ext
3927     cat >>conftest.$ac_ext <<_ACEOF
3928     /* end confdefs.h. */
3929 gezelter 1490
3930     /* Override any gcc2 internal prototype to avoid an error. */
3931     #ifdef __cplusplus
3932     extern "C"
3933     #endif
3934     /* We use char because int might match the return type of a gcc2
3935     builtin and then its argument prototype would still apply. */
3936     char $ac_func ();
3937     int
3938     main ()
3939     {
3940     $ac_func ();
3941     ;
3942     return 0;
3943     }
3944     _ACEOF
3945     rm -f conftest.$ac_objext conftest$ac_exeext
3946 gezelter 2081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3947     (eval $ac_link) 2>conftest.er1
3948 gezelter 1490 ac_status=$?
3949 gezelter 2081 grep -v '^ *+' conftest.er1 >conftest.err
3950     rm -f conftest.er1
3951     cat conftest.err >&5
3952     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3953 gezelter 1490 (exit $ac_status); } &&
3954 gezelter 2081 { ac_try='test -z "$ac_c_werror_flag"
3955     || test ! -s conftest.err'
3956     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3957 gezelter 1490 (eval $ac_try) 2>&5
3958     ac_status=$?
3959 gezelter 2081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3960     (exit $ac_status); }; } &&
3961     { ac_try='test -s conftest$ac_exeext'
3962     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3963     (eval $ac_try) 2>&5
3964     ac_status=$?
3965     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3966 gezelter 1490 (exit $ac_status); }; }; then
3967     ac_success_extra=yes; break
3968     else
3969     echo "$as_me: failed program was:" >&5
3970 gezelter 2081 sed 's/^/| /' conftest.$ac_ext >&5
3971    
3972 gezelter 1490 fi
3973 gezelter 2081 rm -f conftest.err conftest.$ac_objext \
3974     conftest$ac_exeext conftest.$ac_ext
3975 gezelter 1490 done
3976    
3977     if test "$ac_success_extra" = "yes"; then
3978     ac_cv_f90_mangling="$ac_case case"
3979     if test -z "$ac_underscore"; then
3980     ac_cv_f90_mangling="$ac_cv_f90_mangling, no underscore"
3981     else
3982     ac_cv_f90_mangling="$ac_cv_f90_mangling, underscore"
3983    
3984     fi
3985     if test -z "$ac_extra"; then
3986     ac_cv_f90_mangling="$ac_cv_f90_mangling, no extra underscore"
3987     else
3988     ac_cv_f90_mangling="$ac_cv_f90_mangling, extra underscore"
3989     fi
3990     else
3991     ac_cv_f90_mangling="unknown"
3992     fi
3993     else
3994     ac_cv_f90_mangling="unknown"
3995    
3996     fi
3997    
3998     LIBS=$ac_save_LIBS
3999     ac_ext=f90
4000     ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
4001     ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4002     ac_compiler_gnu=$ac_cv_f90_compiler_gnu
4003     rm -f cf90_test* conftest*
4004     else
4005     echo "$as_me: failed program was:" >&5
4006 gezelter 2081 sed 's/^/| /' conftest.$ac_ext >&5
4007    
4008 gezelter 1490 fi
4009 gezelter 2081 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4010 gezelter 1490 ac_ext=f90
4011     ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
4012     ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4013     ac_compiler_gnu=$ac_cv_f90_compiler_gnu
4014    
4015     fi
4016 gezelter 2081 echo "$as_me:$LINENO: result: $ac_cv_f90_mangling" >&5
4017 gezelter 1490 echo "${ECHO_T}$ac_cv_f90_mangling" >&6
4018    
4019 gezelter 2081
4020    
4021 gezelter 1490 case $ac_cv_f90_mangling in
4022     "lower case, no underscore, no extra underscore")
4023 gezelter 2081 cat >>confdefs.h <<\_ACEOF
4024 gezelter 1490 #define F90_FUNC(name,NAME) name
4025 gezelter 2081 _ACEOF
4026 gezelter 1490
4027 gezelter 2081 cat >>confdefs.h <<\_ACEOF
4028 gezelter 1490 #define F90_FUNC_(name,NAME) name
4029 gezelter 2081 _ACEOF
4030 gezelter 1490 ;;
4031     "lower case, no underscore, extra underscore")
4032 gezelter 2081 cat >>confdefs.h <<\_ACEOF
4033 gezelter 1490 #define F90_FUNC(name,NAME) name
4034 gezelter 2081 _ACEOF
4035 gezelter 1490
4036 gezelter 2081 cat >>confdefs.h <<\_ACEOF
4037 gezelter 1490 #define F90_FUNC_(name,NAME) name ## _
4038 gezelter 2081 _ACEOF
4039 gezelter 1490 ;;
4040     "lower case, underscore, no extra underscore")
4041 gezelter 2081 cat >>confdefs.h <<\_ACEOF
4042 gezelter 1490 #define F90_FUNC(name,NAME) name ## _
4043 gezelter 2081 _ACEOF
4044 gezelter 1490
4045 gezelter 2081 cat >>confdefs.h <<\_ACEOF
4046 gezelter 1490 #define F90_FUNC_(name,NAME) name ## _
4047 gezelter 2081 _ACEOF
4048 gezelter 1490 ;;
4049     "lower case, underscore, extra underscore")
4050 gezelter 2081 cat >>confdefs.h <<\_ACEOF
4051 gezelter 1490 #define F90_FUNC(name,NAME) name ## _
4052 gezelter 2081 _ACEOF
4053 gezelter 1490
4054 gezelter 2081 cat >>confdefs.h <<\_ACEOF
4055 gezelter 1490 #define F90_FUNC_(name,NAME) name ## __
4056 gezelter 2081 _ACEOF
4057 gezelter 1490 ;;
4058     "upper case, no underscore, no extra underscore")
4059 gezelter 2081 cat >>confdefs.h <<\_ACEOF
4060 gezelter 1490 #define F90_FUNC(name,NAME) NAME
4061 gezelter 2081 _ACEOF
4062 gezelter 1490
4063 gezelter 2081 cat >>confdefs.h <<\_ACEOF
4064 gezelter 1490 #define F90_FUNC_(name,NAME) NAME
4065 gezelter 2081 _ACEOF
4066 gezelter 1490 ;;
4067     "upper case, no underscore, extra underscore")
4068 gezelter 2081 cat >>confdefs.h <<\_ACEOF
4069 gezelter 1490 #define F90_FUNC(name,NAME) NAME
4070 gezelter 2081 _ACEOF
4071 gezelter 1490
4072 gezelter 2081 cat >>confdefs.h <<\_ACEOF
4073 gezelter 1490 #define F90_FUNC_(name,NAME) NAME ## _
4074 gezelter 2081 _ACEOF
4075 gezelter 1490 ;;
4076     "upper case, underscore, no extra underscore")
4077 gezelter 2081 cat >>confdefs.h <<\_ACEOF
4078 gezelter 1490 #define F90_FUNC(name,NAME) NAME ## _
4079 gezelter 2081 _ACEOF
4080 gezelter 1490
4081 gezelter 2081 cat >>confdefs.h <<\_ACEOF
4082 gezelter 1490 #define F90_FUNC_(name,NAME) NAME ## _
4083 gezelter 2081 _ACEOF
4084 gezelter 1490 ;;
4085     "upper case, underscore, extra underscore")
4086 gezelter 2081 cat >>confdefs.h <<\_ACEOF
4087 gezelter 1490 #define F90_FUNC(name,NAME) NAME ## _
4088 gezelter 2081 _ACEOF
4089 gezelter 1490
4090 gezelter 2081 cat >>confdefs.h <<\_ACEOF
4091 gezelter 1490 #define F90_FUNC_(name,NAME) NAME ## __
4092 gezelter 2081 _ACEOF
4093 gezelter 1490 ;;
4094     *)
4095 gezelter 2081 { echo "$as_me:$LINENO: WARNING: unknown Fortran 90 name-mangling scheme" >&5
4096 gezelter 1490 echo "$as_me: WARNING: unknown Fortran 90 name-mangling scheme" >&2;}
4097     ;;
4098     esac
4099    
4100 gezelter 2081
4101    
4102    
4103    
4104     echo "$as_me:$LINENO: checking for module suffix" >&5
4105 gezelter 1490 echo $ECHO_N "checking for module suffix... $ECHO_C" >&6
4106     rm -f conftest*
4107     # Intel ifc compiler generates files by the name of work.pc and work.pcl (!)
4108     rm -f work*
4109     cat >conftest.f90 <<EOF
4110     module conftest
4111     integer n
4112     parameter (n=1)
4113     end module conftest
4114     EOF
4115     # SGI and absoft compilers generates module name in upper case!
4116     testname="conftest"
4117     modcase="lower"
4118     if $F90 -c conftest.f90 > conftest.out 2>&1 ; then
4119     MOD=`ls conftest* | grep -v conftest.f | grep -v conftest.o`
4120     MOD=`echo "$MOD" | sed -e 's/conftest\.//g'`
4121     if test -z "$MOD" ; then
4122     MOD=`ls CONFTEST* 2>/dev/null \
4123     | grep -v CONFTEST.f | grep -v CONFTEST.o`
4124     MOD=`echo "$MOD" | sed -e 's/CONFTEST\.//g'`
4125     if test -n "$MOD" ; then
4126     testname="CONFTEST"
4127     modcase="upper"
4128     fi
4129     fi
4130     if test -z "$MOD" ; then
4131 gezelter 2081 echo "$as_me:$LINENO: result: unknown" >&5
4132 gezelter 1490 echo "${ECHO_T}unknown" >&6
4133     # Use mod if we can't figure it out
4134     MOD="mod"
4135     else
4136 gezelter 2081 echo "$as_me:$LINENO: result: $MOD" >&5
4137 gezelter 1490 echo "${ECHO_T}$MOD" >&6
4138     fi
4139     if test -s work.pcl ; then
4140 gezelter 2081 { echo "$as_me:$LINENO: WARNING: Compiler generates auxillery files!" >&5
4141 gezelter 1490 echo "$as_me: WARNING: Compiler generates auxillery files!" >&2;}
4142     fi
4143     else
4144 gezelter 2081 echo "$as_me:$LINENO: result: unknown" >&5
4145 gezelter 1490 echo "${ECHO_T}unknown" >&6
4146     fi
4147    
4148 gezelter 2081
4149    
4150    
4151    
4152 gezelter 1490 # Check for module include path (some use -I, some (Solaris) use -M, some
4153     # (absoft) use -p).
4154     # Intel compilers use a wierd system: -cl,filename.pcl . If no file is
4155     # specified, work.pcl and work.pc are created. However, if you specify
4156     # a file, it must contain a the name of a file ending in .pc . Ugh!
4157     # Use the module made above
4158 gezelter 2081 echo "$as_me:$LINENO: checking for module directory path flag" >&5
4159 gezelter 1490 echo $ECHO_N "checking for module directory path flag... $ECHO_C" >&6
4160     rm -f conftest*
4161     # Intel ifc compiler generates files by the name of work.pc and work.pcl (!)
4162     rm -f work*
4163     cat >conftest.f90 <<EOF
4164     module conftest
4165     integer n
4166     parameter (n=1)
4167     end module conftest
4168     EOF
4169     # SGI and absoft compilers generates module name in upper case!
4170     testname="conftest"
4171     if $F90 -c conftest.f90 > conftest.out 2>&1 ; then
4172     mod=`ls CONFTEST* 2>/dev/null | grep -v CONFTEST.f | grep -v CONFTEST.o`
4173     mod=`echo "$mod" | sed -e 's/CONFTEST\.//g'`
4174     if test -n "$mod" ; then
4175     testname="CONFTEST"
4176     fi
4177     madedir=0
4178     if test ! -d conf ; then mkdir conf ; madedir=1; fi
4179     cp $testname.$MOD conf
4180     rm -f conftest* CONFTEST*
4181     cat >conftest1.f90 <<EOF
4182     program main
4183     use conftest
4184     print *, n
4185     end
4186     EOF
4187     F90_WORK_FILES_ARG=""
4188     F90MODINCSPEC=""
4189     if $F90 -c -Iconf conftest1.f90 > conftest.out 2>&1 ; then
4190     MODDIRFLAG="-I"
4191     F90MODINCSPEC="-I<dir>"
4192 gezelter 2081 echo "$as_me:$LINENO: result: -I" >&5
4193 gezelter 1490 echo "${ECHO_T}-I" >&6
4194     elif $F90 -c -Mconf conftest1.f90 >> conftest.out 2>&1 ; then
4195     MODDIRFLAG="-M"
4196     F90MODINCSPEC="-M<dir>"
4197 gezelter 2081 echo "$as_me:$LINENO: result: -M" >&5
4198 gezelter 1490 echo "${ECHO_T}-M" >&6
4199     elif $F90 -c -pconf conftest1.f90 >> conftest.out 2>&1 ; then
4200     MODDIRFLAG="-p"
4201     F90MODINCSPEC="-p<dir>"
4202 gezelter 2081 echo "$as_me:$LINENO: result: -p" >&5
4203 gezelter 1490 echo "${ECHO_T}-p" >&6
4204     elif test -s work.pc ; then
4205     cp work.pc conf/mpimod.pc
4206     echo "mpimod.pc" > conf/mpimod.pcl
4207     echo "`pwd`/conf/mpimod.pc" >> conf/mpimod.pcl
4208     if $F90 -c -cl,conf/mpimod.pcl conftest1.f >>conftest.out 2>&1 ; then
4209     MODDIRFLAG='-cl,mpimod.pcl'
4210 gezelter 2081 echo "$as_me:$LINENO: result: -cl,filename where filename contains a list of files and directories" >&5
4211 gezelter 1490 echo "${ECHO_T}-cl,filename where filename contains a list of files and directories" >&6
4212     F90_WORK_FILES_ARG="-cl,mpimod.pcl"
4213     F90MODINCSPEC="-cl,<dir>/<file>mod.pcl"
4214    
4215     else
4216     # The version of the Intel compiler that I have refuses to let
4217     # you put the "work catalog" list anywhere but the current
4218     # directory. For example, you cannot in
4219     :
4220     fi
4221     fi
4222     if test -z "MODDIRFLAG" ; then
4223 gezelter 2081 echo "$as_me:$LINENO: result: unknown" >&5
4224 gezelter 1490 echo "${ECHO_T}unknown" >&6
4225     fi
4226    
4227 gezelter 2081
4228 gezelter 1490 rm -f conftest* conf/conftest* conf/CONFTEST* CONFTEST* conf/mpimod*
4229     if test $madedir = 1 ; then rmdir conf ; fi
4230     fi
4231    
4232 gezelter 2081
4233     echo "$as_me:$LINENO: checking for Fortran 90 module file names" >&5
4234 gezelter 1535 echo $ECHO_N "checking for Fortran 90 module file names... $ECHO_C" >&6
4235     if test "${ac_cv_f90_module_names+set}" = set; then
4236     echo $ECHO_N "(cached) $ECHO_C" >&6
4237     else
4238     ac_ext=f90
4239     ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
4240     ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4241     ac_compiler_gnu=$ac_cv_f90_compiler_gnu
4242    
4243     # carry out the test in a new directory, so that we don't miss anything
4244     mkdir conftest
4245     cd conftest
4246     cat >conftest.$ac_ext <<_ACEOF
4247     MODULE Bar
4248     END MODULE Bar
4249     _ACEOF
4250     rm -f conftest.$ac_objext
4251 gezelter 2081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4252     (eval $ac_compile) 2>conftest.er1
4253 gezelter 1535 ac_status=$?
4254 gezelter 2081 grep -v '^ *+' conftest.er1 >conftest.err
4255     rm -f conftest.er1
4256     cat conftest.err >&5
4257     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4258 gezelter 1535 (exit $ac_status); } &&
4259 gezelter 2081 { ac_try='test -z "$ac_f90_werror_flag"
4260     || test ! -s conftest.err'
4261     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4262 gezelter 1535 (eval $ac_try) 2>&5
4263     ac_status=$?
4264 gezelter 2081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4265     (exit $ac_status); }; } &&
4266     { ac_try='test -s conftest.$ac_objext'
4267     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4268     (eval $ac_try) 2>&5
4269     ac_status=$?
4270     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4271 gezelter 1535 (exit $ac_status); }; }; then
4272     ac_cv_f90_module_names=
4273     ac_file_list=*
4274     for ac_file in $ac_file_list; do
4275     case $ac_file in
4276     # don't care for original source and object files
4277     conftest.$ac_ext | conftest.$ac_objext | conftest.err )
4278     :
4279     ;;
4280     # look for new files derived from the file name
4281     *conftest*)
4282     ac_pat=`echo $ac_file | sed s/conftest/%FILE%/`
4283     ac_exists=false
4284     for ac_i in $ac_cv_f90_module_names; do
4285     if test x"$ac_pat" = x"$ac_i"; then
4286     ac_exists=true
4287     break
4288     fi
4289     done
4290    
4291     if test x"$ac_exists" = xtrue; then
4292     :
4293     else
4294     ac_cv_f90_module_names="$ac_cv_f90_module_names $ac_pat"
4295     fi
4296    
4297     ;;
4298     # look for new files derived from the module name,
4299     # with different case translation schemes
4300     *Bar*)
4301     ac_pat=`echo $ac_file | sed s/Bar/%Module%/`
4302     ac_exists=false
4303     for ac_i in $ac_cv_f90_module_names; do
4304     if test x"$ac_pat" = x"$ac_i"; then
4305     ac_exists=true
4306     break
4307     fi
4308     done
4309    
4310     if test x"$ac_exists" = xtrue; then
4311     :
4312     else
4313     ac_cv_f90_module_names="$ac_cv_f90_module_names $ac_pat"
4314     fi
4315    
4316     ;;
4317     *bar*)
4318     ac_pat=`echo $ac_file | sed s/bar/%module%/`
4319     ac_exists=false
4320     for ac_i in $ac_cv_f90_module_names; do
4321     if test x"$ac_pat" = x"$ac_i"; then
4322     ac_exists=true
4323     break
4324     fi
4325     done
4326    
4327     if test x"$ac_exists" = xtrue; then
4328     :
4329     else
4330     ac_cv_f90_module_names="$ac_cv_f90_module_names $ac_pat"
4331     fi
4332    
4333     ;;
4334     *BAR*)
4335     ac_pat=`echo $ac_file | sed s/BAR/%MODULE%/`
4336     ac_exists=false
4337     for ac_i in $ac_cv_f90_module_names; do
4338     if test x"$ac_pat" = x"$ac_i"; then
4339     ac_exists=true
4340     break
4341     fi
4342     done
4343    
4344     if test x"$ac_exists" = xtrue; then
4345     :
4346     else
4347     ac_cv_f90_module_names="$ac_cv_f90_module_names $ac_pat"
4348     fi
4349    
4350     ;;
4351     # Other files - we have no idea how they are generated
4352     *)
4353 gezelter 2081 { echo "$as_me:$LINENO: WARNING: Bogus file found: $ac_file" >&5
4354 gezelter 1535 echo "$as_me: WARNING: Bogus file found: $ac_file" >&2;}
4355     ;;
4356     esac
4357     done
4358     if test "x$ac_cv_f90_module_names" = "x"; then
4359 gezelter 2081 { echo "$as_me:$LINENO: WARNING: Couldn't determine module file names" >&5
4360 gezelter 1535 echo "$as_me: WARNING: Couldn't determine module file names" >&2;}
4361     fi
4362    
4363     else
4364     echo "$as_me: failed program was:" >&5
4365 gezelter 2081 sed 's/^/| /' conftest.$ac_ext >&5
4366    
4367 gezelter 1535 ac_cv_f90_module_names=
4368 gezelter 2081 { echo "$as_me:$LINENO: WARNING: Couldn't determine module file names" >&5
4369 gezelter 1535 echo "$as_me: WARNING: Couldn't determine module file names" >&2;}
4370     fi
4371 gezelter 2081 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4372 gezelter 1535 cd ..
4373     # cleanup
4374     rm -rf conftest
4375     ac_ext=f90
4376     ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
4377     ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4378     ac_compiler_gnu=$ac_cv_f90_compiler_gnu
4379    
4380     fi
4381 gezelter 2081 echo "$as_me:$LINENO: result: $ac_cv_f90_module_names" >&5
4382 gezelter 1535 echo "${ECHO_T}$ac_cv_f90_module_names" >&6 # AC_CACHE_CHECK
4383    
4384     # We now generate a shell script that will help us to figure out the correct
4385     # module file names, using the value of ac_cv_f90_module_names
4386    
4387     echo "Generating shell script modnam"
4388    
4389     cat > scripts/modnam << EOF
4390     #! /bin/sh
4391     # This script is auto-generated by configure
4392     #
4393     usage="\\
4394     Usage: \$0 [FILES]
4395    
4396     [FILES] are Fortran 90 source files.
4397     The output is a list of module file names that the Fortran 90 compiler
4398     generates when compiling [FILES]."
4399    
4400     list=
4401     empty=
4402    
4403     if test \$# -eq 0; then
4404     echo "\$usage"; exit 0
4405     fi
4406    
4407     while test \$# != 0; do
4408    
4409     file=\$1
4410     shift
4411    
4412     # strip suffix
4413     base=\`echo \$file | sed 's/[.][^.]*$//'\`
4414    
4415     test ! -f \$file && continue
4416    
4417     # Look for module definitions and transform them to upper / lower case
4418     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/'\`
4419     upper=\`echo \$mods | tr a-z A-Z\`
4420     lower=\`echo \$mods | tr A-Z a-z\`
4421    
4422     # Here, the patterns for generating module file names were inserted by configure
4423     for trans in $ac_cv_f90_module_names; do
4424    
4425     pat=\`echo \$trans | sed 's/.*\(%.*%\).*/\1/'\`
4426     var=empty
4427     case \$pat in
4428     %MODULE%)
4429     var=upper ;;
4430     %Module%)
4431     var=mods ;;
4432     %module%)
4433     var=lower ;;
4434     %FILE%)
4435     test -n "\$mods" && var=base ;;
4436     esac
4437     new=\`eval '(for i in \$'\$var '; do echo \$trans | sed s/\$pat/\$i/; done)'\`
4438     list="\$list \$new"
4439     done
4440     done
4441    
4442     echo \$list
4443     # end of configure-generated script
4444     EOF
4445     chmod 755 scripts/modnam
4446    
4447     pat=`echo $ac_cv_f90_module_names | sed 's/.*\(%.*%\).*/\1/'`
4448     F90_MODULE_NAMES=empty
4449     case $pat in
4450     %MODULE%)
4451     F90_MODULE_NAMES=UPPER ;;
4452     %Module%)
4453     F90_MODULE_NAMES=Mixed ;;
4454     %module%)
4455     F90_MODULE_NAMES=lower ;;
4456     *)
4457     F90_MODULE_NAMES=unknown ;;
4458     esac
4459    
4460 gezelter 1490 ac_ext=c
4461     ac_cpp='$CPP $CPPFLAGS'
4462     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4463     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4464     ac_compiler_gnu=$ac_cv_c_compiler_gnu
4465    
4466 gezelter 2081
4467 gezelter 1490 ac_ext=c
4468     ac_cpp='$CPP $CPPFLAGS'
4469     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4470     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4471     ac_compiler_gnu=$ac_cv_c_compiler_gnu
4472    
4473     ac_ext=c
4474     ac_cpp='$CPP $CPPFLAGS'
4475     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4476     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4477     ac_compiler_gnu=$ac_cv_c_compiler_gnu
4478 gezelter 2081 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4479 gezelter 1490 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4480     # On Suns, sometimes $CPP names a directory.
4481     if test -n "$CPP" && test -d "$CPP"; then
4482     CPP=
4483     fi
4484     if test -z "$CPP"; then
4485     if test "${ac_cv_prog_CPP+set}" = set; then
4486     echo $ECHO_N "(cached) $ECHO_C" >&6
4487     else
4488     # Double quotes because CPP needs to be expanded
4489     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4490     do
4491     ac_preproc_ok=false
4492     for ac_c_preproc_warn_flag in '' yes
4493     do
4494     # Use a header file that comes with gcc, so configuring glibc
4495     # with a fresh cross-compiler works.
4496 gezelter 2081 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4497     # <limits.h> exists even on freestanding compilers.
4498 gezelter 1490 # On the NeXT, cc -E runs the code through the compiler's parser,
4499     # not just through cpp. "Syntax error" is here to catch this case.
4500     cat >conftest.$ac_ext <<_ACEOF
4501 gezelter 2081 /* confdefs.h. */
4502 gezelter 1490 _ACEOF
4503 gezelter 2081 cat confdefs.h >>conftest.$ac_ext
4504     cat >>conftest.$ac_ext <<_ACEOF
4505     /* end confdefs.h. */
4506     #ifdef __STDC__
4507     # include <limits.h>
4508     #else
4509     # include <assert.h>
4510     #endif
4511     Syntax error
4512     _ACEOF
4513     if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4514 gezelter 1490 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4515     ac_status=$?
4516 gezelter 2081 grep -v '^ *+' conftest.er1 >conftest.err
4517 gezelter 1490 rm -f conftest.er1
4518     cat conftest.err >&5
4519 gezelter 2081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4520 gezelter 1490 (exit $ac_status); } >/dev/null; then
4521     if test -s conftest.err; then
4522     ac_cpp_err=$ac_c_preproc_warn_flag
4523 gezelter 2081 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4524 gezelter 1490 else
4525     ac_cpp_err=
4526     fi
4527     else
4528     ac_cpp_err=yes
4529     fi
4530     if test -z "$ac_cpp_err"; then
4531     :
4532     else
4533     echo "$as_me: failed program was:" >&5
4534 gezelter 2081 sed 's/^/| /' conftest.$ac_ext >&5
4535    
4536 gezelter 1490 # Broken: fails on valid input.
4537     continue
4538     fi
4539     rm -f conftest.err conftest.$ac_ext
4540    
4541     # OK, works on sane cases. Now check whether non-existent headers
4542     # can be detected and how.
4543     cat >conftest.$ac_ext <<_ACEOF
4544 gezelter 2081 /* confdefs.h. */
4545     _ACEOF
4546     cat confdefs.h >>conftest.$ac_ext
4547     cat >>conftest.$ac_ext <<_ACEOF
4548     /* end confdefs.h. */
4549 gezelter 1490 #include <ac_nonexistent.h>
4550     _ACEOF
4551 gezelter 2081 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4552 gezelter 1490 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4553     ac_status=$?
4554 gezelter 2081 grep -v '^ *+' conftest.er1 >conftest.err
4555 gezelter 1490 rm -f conftest.er1
4556     cat conftest.err >&5
4557 gezelter 2081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4558 gezelter 1490 (exit $ac_status); } >/dev/null; then
4559     if test -s conftest.err; then
4560     ac_cpp_err=$ac_c_preproc_warn_flag
4561 gezelter 2081 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4562 gezelter 1490 else
4563     ac_cpp_err=
4564     fi
4565     else
4566     ac_cpp_err=yes
4567     fi
4568     if test -z "$ac_cpp_err"; then
4569     # Broken: success on invalid input.
4570     continue
4571     else
4572     echo "$as_me: failed program was:" >&5
4573 gezelter 2081 sed 's/^/| /' conftest.$ac_ext >&5
4574    
4575 gezelter 1490 # Passes both tests.
4576     ac_preproc_ok=:
4577     break
4578     fi
4579     rm -f conftest.err conftest.$ac_ext
4580    
4581     done
4582     # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4583     rm -f conftest.err conftest.$ac_ext
4584     if $ac_preproc_ok; then
4585 gezelter 2081 break
4586 gezelter 1490 fi
4587    
4588     done
4589     ac_cv_prog_CPP=$CPP
4590    
4591     fi
4592     CPP=$ac_cv_prog_CPP
4593     else
4594     ac_cv_prog_CPP=$CPP
4595     fi
4596 gezelter 2081 echo "$as_me:$LINENO: result: $CPP" >&5
4597 gezelter 1490 echo "${ECHO_T}$CPP" >&6
4598     ac_preproc_ok=false
4599     for ac_c_preproc_warn_flag in '' yes
4600     do
4601     # Use a header file that comes with gcc, so configuring glibc
4602     # with a fresh cross-compiler works.
4603 gezelter 2081 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4604     # <limits.h> exists even on freestanding compilers.
4605 gezelter 1490 # On the NeXT, cc -E runs the code through the compiler's parser,
4606     # not just through cpp. "Syntax error" is here to catch this case.
4607     cat >conftest.$ac_ext <<_ACEOF
4608 gezelter 2081 /* confdefs.h. */
4609 gezelter 1490 _ACEOF
4610 gezelter 2081 cat confdefs.h >>conftest.$ac_ext
4611     cat >>conftest.$ac_ext <<_ACEOF
4612     /* end confdefs.h. */
4613     #ifdef __STDC__
4614     # include <limits.h>
4615     #else
4616     # include <assert.h>
4617     #endif
4618     Syntax error
4619     _ACEOF
4620     if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4621 gezelter 1490 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4622     ac_status=$?
4623 gezelter 2081 grep -v '^ *+' conftest.er1 >conftest.err
4624 gezelter 1490 rm -f conftest.er1
4625     cat conftest.err >&5
4626 gezelter 2081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4627 gezelter 1490 (exit $ac_status); } >/dev/null; then
4628     if test -s conftest.err; then
4629     ac_cpp_err=$ac_c_preproc_warn_flag
4630 gezelter 2081 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4631 gezelter 1490 else
4632     ac_cpp_err=
4633     fi
4634     else
4635     ac_cpp_err=yes
4636     fi
4637     if test -z "$ac_cpp_err"; then
4638     :
4639     else
4640     echo "$as_me: failed program was:" >&5
4641 gezelter 2081 sed 's/^/| /' conftest.$ac_ext >&5
4642    
4643 gezelter 1490 # Broken: fails on valid input.
4644     continue
4645     fi
4646     rm -f conftest.err conftest.$ac_ext
4647    
4648     # OK, works on sane cases. Now check whether non-existent headers
4649     # can be detected and how.
4650     cat >conftest.$ac_ext <<_ACEOF
4651 gezelter 2081 /* confdefs.h. */
4652     _ACEOF
4653     cat confdefs.h >>conftest.$ac_ext
4654     cat >>conftest.$ac_ext <<_ACEOF
4655     /* end confdefs.h. */
4656 gezelter 1490 #include <ac_nonexistent.h>
4657     _ACEOF
4658 gezelter 2081 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4659 gezelter 1490 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4660     ac_status=$?
4661 gezelter 2081 grep -v '^ *+' conftest.er1 >conftest.err
4662 gezelter 1490 rm -f conftest.er1
4663     cat conftest.err >&5
4664 gezelter 2081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4665 gezelter 1490 (exit $ac_status); } >/dev/null; then
4666     if test -s conftest.err; then
4667     ac_cpp_err=$ac_c_preproc_warn_flag
4668 gezelter 2081 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4669 gezelter 1490 else
4670     ac_cpp_err=
4671     fi
4672     else
4673     ac_cpp_err=yes
4674     fi
4675     if test -z "$ac_cpp_err"; then
4676     # Broken: success on invalid input.
4677     continue
4678     else
4679     echo "$as_me: failed program was:" >&5
4680 gezelter 2081 sed 's/^/| /' conftest.$ac_ext >&5
4681    
4682 gezelter 1490 # Passes both tests.
4683     ac_preproc_ok=:
4684     break
4685     fi
4686     rm -f conftest.err conftest.$ac_ext
4687    
4688     done
4689     # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4690     rm -f conftest.err conftest.$ac_ext
4691     if $ac_preproc_ok; then
4692     :
4693     else
4694 gezelter 2081 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4695     See \`config.log' for more details." >&5
4696     echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4697     See \`config.log' for more details." >&2;}
4698 gezelter 1490 { (exit 1); exit 1; }; }
4699     fi
4700    
4701     ac_ext=c
4702     ac_cpp='$CPP $CPPFLAGS'
4703     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4704     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4705     ac_compiler_gnu=$ac_cv_c_compiler_gnu
4706    
4707 gezelter 2081
4708     echo "$as_me:$LINENO: checking for egrep" >&5
4709     echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4710     if test "${ac_cv_prog_egrep+set}" = set; then
4711     echo $ECHO_N "(cached) $ECHO_C" >&6
4712     else
4713     if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4714     then ac_cv_prog_egrep='grep -E'
4715     else ac_cv_prog_egrep='egrep'
4716     fi
4717     fi
4718     echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4719     echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4720     EGREP=$ac_cv_prog_egrep
4721    
4722    
4723     echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4724     echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4725     if test "${ac_cv_header_stdc+set}" = set; then
4726     echo $ECHO_N "(cached) $ECHO_C" >&6
4727     else
4728     cat >conftest.$ac_ext <<_ACEOF
4729     /* confdefs.h. */
4730     _ACEOF
4731     cat confdefs.h >>conftest.$ac_ext
4732     cat >>conftest.$ac_ext <<_ACEOF
4733     /* end confdefs.h. */
4734     #include <stdlib.h>
4735     #include <stdarg.h>
4736     #include <string.h>
4737     #include <float.h>
4738    
4739     int
4740     main ()
4741     {
4742    
4743     ;
4744     return 0;
4745     }
4746     _ACEOF
4747     rm -f conftest.$ac_objext
4748     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4749     (eval $ac_compile) 2>conftest.er1
4750     ac_status=$?
4751     grep -v '^ *+' conftest.er1 >conftest.err
4752     rm -f conftest.er1
4753     cat conftest.err >&5
4754     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4755     (exit $ac_status); } &&
4756     { ac_try='test -z "$ac_c_werror_flag"
4757     || test ! -s conftest.err'
4758     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4759     (eval $ac_try) 2>&5
4760     ac_status=$?
4761     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4762     (exit $ac_status); }; } &&
4763     { ac_try='test -s conftest.$ac_objext'
4764     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4765     (eval $ac_try) 2>&5
4766     ac_status=$?
4767     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4768     (exit $ac_status); }; }; then
4769     ac_cv_header_stdc=yes
4770     else
4771     echo "$as_me: failed program was:" >&5
4772     sed 's/^/| /' conftest.$ac_ext >&5
4773    
4774     ac_cv_header_stdc=no
4775     fi
4776     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4777    
4778     if test $ac_cv_header_stdc = yes; then
4779     # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4780     cat >conftest.$ac_ext <<_ACEOF
4781     /* confdefs.h. */
4782     _ACEOF
4783     cat confdefs.h >>conftest.$ac_ext
4784     cat >>conftest.$ac_ext <<_ACEOF
4785     /* end confdefs.h. */
4786     #include <string.h>
4787    
4788     _ACEOF
4789     if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4790     $EGREP "memchr" >/dev/null 2>&1; then
4791     :
4792     else
4793     ac_cv_header_stdc=no
4794     fi
4795     rm -f conftest*
4796    
4797     fi
4798    
4799     if test $ac_cv_header_stdc = yes; then
4800     # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4801     cat >conftest.$ac_ext <<_ACEOF
4802     /* confdefs.h. */
4803     _ACEOF
4804     cat confdefs.h >>conftest.$ac_ext
4805     cat >>conftest.$ac_ext <<_ACEOF
4806     /* end confdefs.h. */
4807     #include <stdlib.h>
4808    
4809     _ACEOF
4810     if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4811     $EGREP "free" >/dev/null 2>&1; then
4812     :
4813     else
4814     ac_cv_header_stdc=no
4815     fi
4816     rm -f conftest*
4817    
4818     fi
4819    
4820     if test $ac_cv_header_stdc = yes; then
4821     # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4822     if test "$cross_compiling" = yes; then
4823     :
4824     else
4825     cat >conftest.$ac_ext <<_ACEOF
4826     /* confdefs.h. */
4827     _ACEOF
4828     cat confdefs.h >>conftest.$ac_ext
4829     cat >>conftest.$ac_ext <<_ACEOF
4830     /* end confdefs.h. */
4831     #include <ctype.h>
4832     #if ((' ' & 0x0FF) == 0x020)
4833     # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4834     # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4835     #else
4836     # define ISLOWER(c) \
4837     (('a' <= (c) && (c) <= 'i') \
4838     || ('j' <= (c) && (c) <= 'r') \
4839     || ('s' <= (c) && (c) <= 'z'))
4840     # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4841     #endif
4842    
4843     #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4844     int
4845     main ()
4846     {
4847     int i;
4848     for (i = 0; i < 256; i++)
4849     if (XOR (islower (i), ISLOWER (i))
4850     || toupper (i) != TOUPPER (i))
4851     exit(2);
4852     exit (0);
4853     }
4854     _ACEOF
4855     rm -f conftest$ac_exeext
4856     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4857     (eval $ac_link) 2>&5
4858     ac_status=$?
4859     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4860     (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4861     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4862     (eval $ac_try) 2>&5
4863     ac_status=$?
4864     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4865     (exit $ac_status); }; }; then
4866     :
4867     else
4868     echo "$as_me: program exited with status $ac_status" >&5
4869     echo "$as_me: failed program was:" >&5
4870     sed 's/^/| /' conftest.$ac_ext >&5
4871    
4872     ( exit $ac_status )
4873     ac_cv_header_stdc=no
4874     fi
4875     rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4876     fi
4877     fi
4878     fi
4879     echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4880     echo "${ECHO_T}$ac_cv_header_stdc" >&6
4881     if test $ac_cv_header_stdc = yes; then
4882    
4883     cat >>confdefs.h <<\_ACEOF
4884     #define STDC_HEADERS 1
4885     _ACEOF
4886    
4887     fi
4888    
4889     # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4890    
4891    
4892    
4893    
4894    
4895    
4896    
4897    
4898    
4899     for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4900     inttypes.h stdint.h unistd.h
4901 gezelter 1490 do
4902 gezelter 2081 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4903     echo "$as_me:$LINENO: checking for $ac_header" >&5
4904 gezelter 1490 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4905 gezelter 2081 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4906 gezelter 1490 echo $ECHO_N "(cached) $ECHO_C" >&6
4907     else
4908     cat >conftest.$ac_ext <<_ACEOF
4909 gezelter 2081 /* confdefs.h. */
4910     _ACEOF
4911     cat confdefs.h >>conftest.$ac_ext
4912     cat >>conftest.$ac_ext <<_ACEOF
4913     /* end confdefs.h. */
4914     $ac_includes_default
4915    
4916 gezelter 1490 #include <$ac_header>
4917     _ACEOF
4918 gezelter 2081 rm -f conftest.$ac_objext
4919     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4920     (eval $ac_compile) 2>conftest.er1
4921     ac_status=$?
4922     grep -v '^ *+' conftest.er1 >conftest.err
4923     rm -f conftest.er1
4924     cat conftest.err >&5
4925     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4926     (exit $ac_status); } &&
4927     { ac_try='test -z "$ac_c_werror_flag"
4928     || test ! -s conftest.err'
4929     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4930     (eval $ac_try) 2>&5
4931     ac_status=$?
4932     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4933     (exit $ac_status); }; } &&
4934     { ac_try='test -s conftest.$ac_objext'
4935     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4936     (eval $ac_try) 2>&5
4937     ac_status=$?
4938     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4939     (exit $ac_status); }; }; then
4940     eval "$as_ac_Header=yes"
4941     else
4942     echo "$as_me: failed program was:" >&5
4943     sed 's/^/| /' conftest.$ac_ext >&5
4944    
4945     eval "$as_ac_Header=no"
4946     fi
4947     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4948     fi
4949     echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4950     echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4951     if test `eval echo '${'$as_ac_Header'}'` = yes; then
4952     cat >>confdefs.h <<_ACEOF
4953     #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4954     _ACEOF
4955    
4956     fi
4957    
4958     done
4959    
4960    
4961 gezelter 2315 #
4962     # Handle user hints
4963     #
4964     echo "$as_me:$LINENO: checking if zlib is wanted" >&5
4965     echo $ECHO_N "checking if zlib is wanted... $ECHO_C" >&6
4966 gezelter 2081
4967 gezelter 2315 # Check whether --with-zlib or --without-zlib was given.
4968     if test "${with_zlib+set}" = set; then
4969     withval="$with_zlib"
4970     if test "$withval" != no ; then
4971     echo "$as_me:$LINENO: result: yes" >&5
4972     echo "${ECHO_T}yes" >&6
4973     if test -d "$withval"
4974     then
4975     ZLIB_HOME="$withval"
4976     else
4977     { echo "$as_me:$LINENO: WARNING: Sorry, $withval does not exist, checking usual places" >&5
4978     echo "$as_me: WARNING: Sorry, $withval does not exist, checking usual places" >&2;}
4979     fi
4980     else
4981     echo "$as_me:$LINENO: result: no" >&5
4982     echo "${ECHO_T}no" >&6
4983     fi
4984     fi;
4985 gezelter 2081
4986 gezelter 2315 ZLIB_HOME=/usr/local
4987     if test ! -f "${ZLIB_HOME}/include/zlib.h"
4988     then
4989     ZLIB_HOME=/usr
4990     fi
4991 gezelter 2081
4992 gezelter 2315 #
4993     # Locate zlib, if wanted
4994     #
4995     if test -n "${ZLIB_HOME}"
4996     then
4997     ZLIB_OLD_LDFLAGS=$LDFLAGS
4998     ZLIB_OLD_CPPFLAGS=$LDFLAGS
4999     LDFLAGS="$LDFLAGS -L${ZLIB_HOME}/lib"
5000     CPPFLAGS="$CPPFLAGS -I${ZLIB_HOME}/include"
5001 gezelter 2081
5002    
5003 gezelter 2315 ac_ext=c
5004     ac_cpp='$CPP $CPPFLAGS'
5005     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5006     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5007     ac_compiler_gnu=$ac_cv_c_compiler_gnu
5008 gezelter 2081
5009 gezelter 2315 echo "$as_me:$LINENO: checking for inflateEnd in -lz" >&5
5010     echo $ECHO_N "checking for inflateEnd in -lz... $ECHO_C" >&6
5011     if test "${ac_cv_lib_z_inflateEnd+set}" = set; then
5012     echo $ECHO_N "(cached) $ECHO_C" >&6
5013     else
5014     ac_check_lib_save_LIBS=$LIBS
5015     LIBS="-lz $LIBS"
5016     cat >conftest.$ac_ext <<_ACEOF
5017     /* confdefs.h. */
5018     _ACEOF
5019     cat confdefs.h >>conftest.$ac_ext
5020     cat >>conftest.$ac_ext <<_ACEOF
5021     /* end confdefs.h. */
5022 gezelter 2081
5023 gezelter 2315 /* Override any gcc2 internal prototype to avoid an error. */
5024     #ifdef __cplusplus
5025     extern "C"
5026     #endif
5027     /* We use char because int might match the return type of a gcc2
5028     builtin and then its argument prototype would still apply. */
5029     char inflateEnd ();
5030     int
5031     main ()
5032     {
5033     inflateEnd ();
5034     ;
5035     return 0;
5036     }
5037     _ACEOF
5038     rm -f conftest.$ac_objext conftest$ac_exeext
5039     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5040     (eval $ac_link) 2>conftest.er1
5041     ac_status=$?
5042     grep -v '^ *+' conftest.er1 >conftest.err
5043     rm -f conftest.er1
5044     cat conftest.err >&5
5045     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5046     (exit $ac_status); } &&
5047     { ac_try='test -z "$ac_c_werror_flag"
5048     || test ! -s conftest.err'
5049     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5050     (eval $ac_try) 2>&5
5051     ac_status=$?
5052     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5053     (exit $ac_status); }; } &&
5054     { ac_try='test -s conftest$ac_exeext'
5055     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5056     (eval $ac_try) 2>&5
5057     ac_status=$?
5058     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5059     (exit $ac_status); }; }; then
5060     ac_cv_lib_z_inflateEnd=yes
5061     else
5062     echo "$as_me: failed program was:" >&5
5063     sed 's/^/| /' conftest.$ac_ext >&5
5064 gezelter 2081
5065 gezelter 2315 ac_cv_lib_z_inflateEnd=no
5066     fi
5067     rm -f conftest.err conftest.$ac_objext \
5068     conftest$ac_exeext conftest.$ac_ext
5069     LIBS=$ac_check_lib_save_LIBS
5070     fi
5071     echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflateEnd" >&5
5072     echo "${ECHO_T}$ac_cv_lib_z_inflateEnd" >&6
5073     if test $ac_cv_lib_z_inflateEnd = yes; then
5074     zlib_cv_libz=yes
5075     else
5076     zlib_cv_libz=no
5077     fi
5078 gezelter 2081
5079 gezelter 2315 if test "${ac_cv_header_zlib_h+set}" = set; then
5080     echo "$as_me:$LINENO: checking for zlib.h" >&5
5081     echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
5082     if test "${ac_cv_header_zlib_h+set}" = set; then
5083     echo $ECHO_N "(cached) $ECHO_C" >&6
5084     fi
5085     echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
5086     echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
5087     else
5088     # Is the header compilable?
5089     echo "$as_me:$LINENO: checking zlib.h usability" >&5
5090     echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
5091     cat >conftest.$ac_ext <<_ACEOF
5092     /* confdefs.h. */
5093     _ACEOF
5094     cat confdefs.h >>conftest.$ac_ext
5095     cat >>conftest.$ac_ext <<_ACEOF
5096     /* end confdefs.h. */
5097     $ac_includes_default
5098     #include <zlib.h>
5099     _ACEOF
5100     rm -f conftest.$ac_objext
5101     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5102     (eval $ac_compile) 2>conftest.er1
5103     ac_status=$?
5104     grep -v '^ *+' conftest.er1 >conftest.err
5105     rm -f conftest.er1
5106     cat conftest.err >&5
5107     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5108     (exit $ac_status); } &&
5109     { ac_try='test -z "$ac_c_werror_flag"
5110     || test ! -s conftest.err'
5111     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5112     (eval $ac_try) 2>&5
5113     ac_status=$?
5114     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5115     (exit $ac_status); }; } &&
5116     { ac_try='test -s conftest.$ac_objext'
5117     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5118     (eval $ac_try) 2>&5
5119     ac_status=$?
5120     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5121     (exit $ac_status); }; }; then
5122     ac_header_compiler=yes
5123     else
5124     echo "$as_me: failed program was:" >&5
5125     sed 's/^/| /' conftest.$ac_ext >&5
5126    
5127     ac_header_compiler=no
5128     fi
5129     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5130     echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5131     echo "${ECHO_T}$ac_header_compiler" >&6
5132    
5133     # Is the header present?
5134     echo "$as_me:$LINENO: checking zlib.h presence" >&5
5135     echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
5136     cat >conftest.$ac_ext <<_ACEOF
5137     /* confdefs.h. */
5138     _ACEOF
5139     cat confdefs.h >>conftest.$ac_ext
5140     cat >>conftest.$ac_ext <<_ACEOF
5141     /* end confdefs.h. */
5142     #include <zlib.h>
5143     _ACEOF
5144     if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5145     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5146     ac_status=$?
5147     grep -v '^ *+' conftest.er1 >conftest.err
5148     rm -f conftest.er1
5149     cat conftest.err >&5
5150     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5151     (exit $ac_status); } >/dev/null; then
5152     if test -s conftest.err; then
5153     ac_cpp_err=$ac_c_preproc_warn_flag
5154     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5155     else
5156     ac_cpp_err=
5157     fi
5158     else
5159     ac_cpp_err=yes
5160     fi
5161     if test -z "$ac_cpp_err"; then
5162     ac_header_preproc=yes
5163     else
5164     echo "$as_me: failed program was:" >&5
5165     sed 's/^/| /' conftest.$ac_ext >&5
5166    
5167     ac_header_preproc=no
5168     fi
5169     rm -f conftest.err conftest.$ac_ext
5170     echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5171     echo "${ECHO_T}$ac_header_preproc" >&6
5172    
5173     # So? What about this header?
5174     case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5175     yes:no: )
5176     { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
5177     echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5178     { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
5179     echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
5180     ac_header_preproc=yes
5181     ;;
5182     no:yes:* )
5183     { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
5184     echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
5185     { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
5186     echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
5187     { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
5188     echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
5189     { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
5190     echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
5191     { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
5192     echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
5193     { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
5194     echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
5195     (
5196     cat <<\_ASBOX
5197     ## ------------------------------ ##
5198     ## Report this to gezelter@nd.edu ##
5199     ## ------------------------------ ##
5200     _ASBOX
5201     ) |
5202     sed "s/^/$as_me: WARNING: /" >&2
5203     ;;
5204     esac
5205     echo "$as_me:$LINENO: checking for zlib.h" >&5
5206     echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
5207     if test "${ac_cv_header_zlib_h+set}" = set; then
5208     echo $ECHO_N "(cached) $ECHO_C" >&6
5209     else
5210     ac_cv_header_zlib_h=$ac_header_preproc
5211     fi
5212     echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
5213     echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
5214    
5215     fi
5216     if test $ac_cv_header_zlib_h = yes; then
5217     zlib_cv_zlib_h=yes
5218     else
5219     zlib_cv_zlib_h=no
5220     fi
5221    
5222    
5223     ac_ext=c
5224     ac_cpp='$CPP $CPPFLAGS'
5225     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5226     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5227     ac_compiler_gnu=$ac_cv_c_compiler_gnu
5228    
5229     if test "$zlib_cv_libz" = "yes" -a "$zlib_cv_zlib_h" = "yes"
5230     then
5231     #
5232     # If both library and header were found, use them
5233     #
5234    
5235     echo "$as_me:$LINENO: checking for inflateEnd in -lz" >&5
5236     echo $ECHO_N "checking for inflateEnd in -lz... $ECHO_C" >&6
5237     if test "${ac_cv_lib_z_inflateEnd+set}" = set; then
5238     echo $ECHO_N "(cached) $ECHO_C" >&6
5239     else
5240     ac_check_lib_save_LIBS=$LIBS
5241     LIBS="-lz $LIBS"
5242     cat >conftest.$ac_ext <<_ACEOF
5243     /* confdefs.h. */
5244     _ACEOF
5245     cat confdefs.h >>conftest.$ac_ext
5246     cat >>conftest.$ac_ext <<_ACEOF
5247     /* end confdefs.h. */
5248    
5249     /* Override any gcc2 internal prototype to avoid an error. */
5250     #ifdef __cplusplus
5251     extern "C"
5252     #endif
5253     /* We use char because int might match the return type of a gcc2
5254     builtin and then its argument prototype would still apply. */
5255     char inflateEnd ();
5256     int
5257     main ()
5258     {
5259     inflateEnd ();
5260     ;
5261     return 0;
5262     }
5263     _ACEOF
5264     rm -f conftest.$ac_objext conftest$ac_exeext
5265     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5266     (eval $ac_link) 2>conftest.er1
5267     ac_status=$?
5268     grep -v '^ *+' conftest.er1 >conftest.err
5269     rm -f conftest.er1
5270     cat conftest.err >&5
5271     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5272     (exit $ac_status); } &&
5273     { ac_try='test -z "$ac_c_werror_flag"
5274     || test ! -s conftest.err'
5275     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5276     (eval $ac_try) 2>&5
5277     ac_status=$?
5278     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5279     (exit $ac_status); }; } &&
5280     { ac_try='test -s conftest$ac_exeext'
5281     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5282     (eval $ac_try) 2>&5
5283     ac_status=$?
5284     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5285     (exit $ac_status); }; }; then
5286     ac_cv_lib_z_inflateEnd=yes
5287     else
5288     echo "$as_me: failed program was:" >&5
5289     sed 's/^/| /' conftest.$ac_ext >&5
5290    
5291     ac_cv_lib_z_inflateEnd=no
5292     fi
5293     rm -f conftest.err conftest.$ac_objext \
5294     conftest$ac_exeext conftest.$ac_ext
5295     LIBS=$ac_check_lib_save_LIBS
5296     fi
5297     echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflateEnd" >&5
5298     echo "${ECHO_T}$ac_cv_lib_z_inflateEnd" >&6
5299     if test $ac_cv_lib_z_inflateEnd = yes; then
5300     cat >>confdefs.h <<_ACEOF
5301     #define HAVE_LIBZ 1
5302     _ACEOF
5303    
5304     LIBS="-lz $LIBS"
5305    
5306     fi
5307    
5308     echo "$as_me:$LINENO: checking zlib in ${ZLIB_HOME}" >&5
5309     echo $ECHO_N "checking zlib in ${ZLIB_HOME}... $ECHO_C" >&6
5310     echo "$as_me:$LINENO: result: ok" >&5
5311     echo "${ECHO_T}ok" >&6
5312     else
5313     #
5314     # If either header or library was not found, revert and bomb
5315     #
5316     echo "$as_me:$LINENO: checking zlib in ${ZLIB_HOME}" >&5
5317     echo $ECHO_N "checking zlib in ${ZLIB_HOME}... $ECHO_C" >&6
5318     LDFLAGS="$ZLIB_OLD_LDFLAGS"
5319     CPPFLAGS="$ZLIB_OLD_CPPFLAGS"
5320     echo "$as_me:$LINENO: result: failed" >&5
5321     echo "${ECHO_T}failed" >&6
5322     { { echo "$as_me:$LINENO: error: either specify a valid zlib installation with --with-zlib=DIR or disable zlib usage with --without-zlib" >&5
5323     echo "$as_me: error: either specify a valid zlib installation with --with-zlib=DIR or disable zlib usage with --without-zlib" >&2;}
5324     { (exit 1); exit 1; }; }
5325     fi
5326     fi
5327    
5328    
5329    
5330    
5331    
5332    
5333    
5334    
5335    
5336    
5337    
5338 gezelter 2081 for ac_header in unistd.h sys/pstat.h sys/sysmp.h sys/sysinfo.h sys/table.h sys/param.h sys/sysctl.h sys/sytemcfg.h machine/hal_sysinfo.h
5339     do
5340     as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5341     if eval "test \"\${$as_ac_Header+set}\" = set"; then
5342     echo "$as_me:$LINENO: checking for $ac_header" >&5
5343     echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5344     if eval "test \"\${$as_ac_Header+set}\" = set"; then
5345     echo $ECHO_N "(cached) $ECHO_C" >&6
5346     fi
5347     echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5348     echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5349     else
5350     # Is the header compilable?
5351     echo "$as_me:$LINENO: checking $ac_header usability" >&5
5352     echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5353     cat >conftest.$ac_ext <<_ACEOF
5354     /* confdefs.h. */
5355     _ACEOF
5356     cat confdefs.h >>conftest.$ac_ext
5357     cat >>conftest.$ac_ext <<_ACEOF
5358     /* end confdefs.h. */
5359     $ac_includes_default
5360     #include <$ac_header>
5361     _ACEOF
5362     rm -f conftest.$ac_objext
5363     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5364     (eval $ac_compile) 2>conftest.er1
5365     ac_status=$?
5366     grep -v '^ *+' conftest.er1 >conftest.err
5367     rm -f conftest.er1
5368     cat conftest.err >&5
5369     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5370     (exit $ac_status); } &&
5371     { ac_try='test -z "$ac_c_werror_flag"
5372     || test ! -s conftest.err'
5373     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5374     (eval $ac_try) 2>&5
5375     ac_status=$?
5376     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5377     (exit $ac_status); }; } &&
5378     { ac_try='test -s conftest.$ac_objext'
5379     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5380     (eval $ac_try) 2>&5
5381     ac_status=$?
5382     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5383     (exit $ac_status); }; }; then
5384     ac_header_compiler=yes
5385     else
5386     echo "$as_me: failed program was:" >&5
5387     sed 's/^/| /' conftest.$ac_ext >&5
5388    
5389     ac_header_compiler=no
5390     fi
5391     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5392     echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5393     echo "${ECHO_T}$ac_header_compiler" >&6
5394    
5395     # Is the header present?
5396     echo "$as_me:$LINENO: checking $ac_header presence" >&5
5397     echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5398     cat >conftest.$ac_ext <<_ACEOF
5399     /* confdefs.h. */
5400     _ACEOF
5401     cat confdefs.h >>conftest.$ac_ext
5402     cat >>conftest.$ac_ext <<_ACEOF
5403     /* end confdefs.h. */
5404     #include <$ac_header>
5405     _ACEOF
5406     if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5407 tim 1998 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5408     ac_status=$?
5409 gezelter 2081 grep -v '^ *+' conftest.er1 >conftest.err
5410 tim 1998 rm -f conftest.er1
5411     cat conftest.err >&5
5412 gezelter 2081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5413 tim 1998 (exit $ac_status); } >/dev/null; then
5414     if test -s conftest.err; then
5415     ac_cpp_err=$ac_c_preproc_warn_flag
5416 gezelter 2081 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5417 tim 1998 else
5418     ac_cpp_err=
5419     fi
5420     else
5421     ac_cpp_err=yes
5422     fi
5423     if test -z "$ac_cpp_err"; then
5424 gezelter 2081 ac_header_preproc=yes
5425 tim 1998 else
5426     echo "$as_me: failed program was:" >&5
5427 gezelter 2081 sed 's/^/| /' conftest.$ac_ext >&5
5428    
5429     ac_header_preproc=no
5430 tim 1998 fi
5431     rm -f conftest.err conftest.$ac_ext
5432 gezelter 2081 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5433     echo "${ECHO_T}$ac_header_preproc" >&6
5434    
5435     # So? What about this header?
5436     case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5437     yes:no: )
5438     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5439     echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5440     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5441     echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5442     ac_header_preproc=yes
5443     ;;
5444     no:yes:* )
5445     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5446     echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5447     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5448     echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5449     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5450     echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5451     { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5452     echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5453     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5454     echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5455     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5456     echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5457     (
5458     cat <<\_ASBOX
5459     ## ------------------------------ ##
5460     ## Report this to gezelter@nd.edu ##
5461     ## ------------------------------ ##
5462     _ASBOX
5463     ) |
5464     sed "s/^/$as_me: WARNING: /" >&2
5465     ;;
5466     esac
5467     echo "$as_me:$LINENO: checking for $ac_header" >&5
5468     echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5469     if eval "test \"\${$as_ac_Header+set}\" = set"; then
5470     echo $ECHO_N "(cached) $ECHO_C" >&6
5471     else
5472     eval "$as_ac_Header=\$ac_header_preproc"
5473 tim 1998 fi
5474 gezelter 2081 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5475     echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5476 tim 1998
5477     fi
5478 gezelter 2081 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5479     cat >>confdefs.h <<_ACEOF
5480     #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5481     _ACEOF
5482    
5483     fi
5484    
5485 tim 1998 done
5486    
5487 gezelter 2081
5488    
5489    
5490    
5491    
5492 tim 1998 for ac_func in pstat_getstatic sysmp getsysinfo sysctl table
5493     do
5494 gezelter 2081 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5495     echo "$as_me:$LINENO: checking for $ac_func" >&5
5496 tim 1998 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5497 gezelter 2081 if eval "test \"\${$as_ac_var+set}\" = set"; then
5498 tim 1998 echo $ECHO_N "(cached) $ECHO_C" >&6
5499     else
5500     cat >conftest.$ac_ext <<_ACEOF
5501 gezelter 2081 /* confdefs.h. */
5502     _ACEOF
5503     cat confdefs.h >>conftest.$ac_ext
5504     cat >>conftest.$ac_ext <<_ACEOF
5505     /* end confdefs.h. */
5506     /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5507     For example, HP-UX 11i <limits.h> declares gettimeofday. */
5508     #define $ac_func innocuous_$ac_func
5509    
5510 tim 1998 /* System header to define __stub macros and hopefully few prototypes,
5511 gezelter 2081 which can conflict with char $ac_func (); below.
5512     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5513     <limits.h> exists even on freestanding compilers. */
5514    
5515     #ifdef __STDC__
5516     # include <limits.h>
5517     #else
5518     # include <assert.h>
5519     #endif
5520    
5521     #undef $ac_func
5522    
5523 tim 1998 /* Override any gcc2 internal prototype to avoid an error. */
5524     #ifdef __cplusplus
5525     extern "C"
5526 gezelter 2081 {
5527 tim 1998 #endif
5528     /* We use char because int might match the return type of a gcc2
5529     builtin and then its argument prototype would still apply. */
5530     char $ac_func ();
5531     /* The GNU C library defines this for functions which it implements
5532     to always fail with ENOSYS. Some functions are actually named
5533     something starting with __ and the normal name is an alias. */
5534     #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5535     choke me
5536     #else
5537 gezelter 2081 char (*f) () = $ac_func;
5538 tim 1998 #endif
5539 gezelter 2081 #ifdef __cplusplus
5540     }
5541     #endif
5542 tim 1998
5543 gezelter 2081 int
5544     main ()
5545     {
5546     return f != $ac_func;
5547 tim 1998 ;
5548     return 0;
5549     }
5550     _ACEOF
5551     rm -f conftest.$ac_objext conftest$ac_exeext
5552 gezelter 2081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5553     (eval $ac_link) 2>conftest.er1
5554 tim 1998 ac_status=$?
5555 gezelter 2081 grep -v '^ *+' conftest.er1 >conftest.err
5556     rm -f conftest.er1
5557     cat conftest.err >&5
5558     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5559 tim 1998 (exit $ac_status); } &&
5560 gezelter 2081 { ac_try='test -z "$ac_c_werror_flag"
5561     || test ! -s conftest.err'
5562     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5563 tim 1998 (eval $ac_try) 2>&5
5564     ac_status=$?
5565 gezelter 2081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5566     (exit $ac_status); }; } &&
5567     { ac_try='test -s conftest$ac_exeext'
5568     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5569     (eval $ac_try) 2>&5
5570     ac_status=$?
5571     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5572 tim 1998 (exit $ac_status); }; }; then
5573 gezelter 2081 eval "$as_ac_var=yes"
5574 tim 1998 else
5575     echo "$as_me: failed program was:" >&5
5576 gezelter 2081 sed 's/^/| /' conftest.$ac_ext >&5
5577    
5578     eval "$as_ac_var=no"
5579 tim 1998 fi
5580 gezelter 2081 rm -f conftest.err conftest.$ac_objext \
5581     conftest$ac_exeext conftest.$ac_ext
5582 tim 1998 fi
5583 gezelter 2081 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5584     echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5585     if test `eval echo '${'$as_ac_var'}'` = yes; then
5586     cat >>confdefs.h <<_ACEOF
5587     #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5588     _ACEOF
5589 tim 1998
5590     fi
5591     done
5592    
5593     # special check for _system_configuration because AIX <4.3.2 do not
5594     # contain the `physmem' member.
5595 gezelter 2081 echo "$as_me:$LINENO: checking for external symbol _system_configuration" >&5
5596 tim 1998 echo $ECHO_N "checking for external symbol _system_configuration... $ECHO_C" >&6
5597     cat >conftest.$ac_ext <<_ACEOF
5598 gezelter 2081 /* confdefs.h. */
5599     _ACEOF
5600     cat confdefs.h >>conftest.$ac_ext
5601     cat >>conftest.$ac_ext <<_ACEOF
5602     /* end confdefs.h. */
5603 tim 1998 #include <sys/systemcfg.h>
5604     int
5605     main ()
5606     {
5607     double x = _system_configuration.physmem;
5608     ;
5609     return 0;
5610     }
5611     _ACEOF
5612     rm -f conftest.$ac_objext
5613 gezelter 2081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5614     (eval $ac_compile) 2>conftest.er1
5615 tim 1998 ac_status=$?
5616 gezelter 2081 grep -v '^ *+' conftest.er1 >conftest.err
5617     rm -f conftest.er1
5618     cat conftest.err >&5
5619     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5620 tim 1998 (exit $ac_status); } &&
5621 gezelter 2081 { ac_try='test -z "$ac_c_werror_flag"
5622     || test ! -s conftest.err'
5623     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5624 tim 1998 (eval $ac_try) 2>&5
5625     ac_status=$?
5626 gezelter 2081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5627     (exit $ac_status); }; } &&
5628     { ac_try='test -s conftest.$ac_objext'
5629     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5630     (eval $ac_try) 2>&5
5631     ac_status=$?
5632     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5633 tim 1998 (exit $ac_status); }; }; then
5634 gezelter 2081 echo "$as_me:$LINENO: result: yes" >&5
5635 tim 1998 echo "${ECHO_T}yes" >&6
5636    
5637 gezelter 2081 cat >>confdefs.h <<\_ACEOF
5638 tim 1998 #define HAVE__SYSTEM_CONFIGURATION 1
5639 gezelter 2081 _ACEOF
5640 tim 1998
5641     else
5642     echo "$as_me: failed program was:" >&5
5643 gezelter 2081 sed 's/^/| /' conftest.$ac_ext >&5
5644    
5645     echo "$as_me:$LINENO: result: no" >&5
5646 tim 1998 echo "${ECHO_T}no" >&6
5647     fi
5648 gezelter 2081 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5649 tim 1998
5650 gezelter 1490 # clean out junk possibly left behind by a previous configuration
5651 gezelter 1947 rm -f src/getopt.h
5652 gezelter 1490 # Check for getopt_long support
5653    
5654     for ac_header in getopt.h
5655     do
5656 gezelter 2081 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5657     if eval "test \"\${$as_ac_Header+set}\" = set"; then
5658     echo "$as_me:$LINENO: checking for $ac_header" >&5
5659 gezelter 1490 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5660 gezelter 2081 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5661 gezelter 1490 echo $ECHO_N "(cached) $ECHO_C" >&6
5662 gezelter 2081 fi
5663     echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5664     echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5665 gezelter 1490 else
5666 gezelter 2081 # Is the header compilable?
5667     echo "$as_me:$LINENO: checking $ac_header usability" >&5
5668     echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5669     cat >conftest.$ac_ext <<_ACEOF
5670     /* confdefs.h. */
5671     _ACEOF
5672     cat confdefs.h >>conftest.$ac_ext
5673     cat >>conftest.$ac_ext <<_ACEOF
5674     /* end confdefs.h. */
5675     $ac_includes_default
5676 gezelter 1490 #include <$ac_header>
5677     _ACEOF
5678 gezelter 2081 rm -f conftest.$ac_objext
5679     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5680     (eval $ac_compile) 2>conftest.er1
5681     ac_status=$?
5682     grep -v '^ *+' conftest.er1 >conftest.err
5683     rm -f conftest.er1
5684     cat conftest.err >&5
5685     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5686     (exit $ac_status); } &&
5687     { ac_try='test -z "$ac_c_werror_flag"
5688     || test ! -s conftest.err'
5689     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5690     (eval $ac_try) 2>&5
5691     ac_status=$?
5692     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5693     (exit $ac_status); }; } &&
5694     { ac_try='test -s conftest.$ac_objext'
5695     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5696     (eval $ac_try) 2>&5
5697     ac_status=$?
5698     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5699     (exit $ac_status); }; }; then
5700     ac_header_compiler=yes
5701     else
5702     echo "$as_me: failed program was:" >&5
5703     sed 's/^/| /' conftest.$ac_ext >&5
5704    
5705     ac_header_compiler=no
5706     fi
5707     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5708     echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5709     echo "${ECHO_T}$ac_header_compiler" >&6
5710    
5711     # Is the header present?
5712     echo "$as_me:$LINENO: checking $ac_header presence" >&5
5713     echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5714     cat >conftest.$ac_ext <<_ACEOF
5715     /* confdefs.h. */
5716     _ACEOF
5717     cat confdefs.h >>conftest.$ac_ext
5718     cat >>conftest.$ac_ext <<_ACEOF
5719     /* end confdefs.h. */
5720     #include <$ac_header>
5721     _ACEOF
5722     if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5723 gezelter 1490 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5724     ac_status=$?
5725 gezelter 2081 grep -v '^ *+' conftest.er1 >conftest.err
5726 gezelter 1490 rm -f conftest.er1
5727     cat conftest.err >&5
5728 gezelter 2081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5729 gezelter 1490 (exit $ac_status); } >/dev/null; then
5730     if test -s conftest.err; then
5731     ac_cpp_err=$ac_c_preproc_warn_flag
5732 gezelter 2081 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5733 gezelter 1490 else
5734     ac_cpp_err=
5735     fi
5736     else
5737     ac_cpp_err=yes
5738     fi
5739     if test -z "$ac_cpp_err"; then
5740 gezelter 2081 ac_header_preproc=yes
5741 gezelter 1490 else
5742     echo "$as_me: failed program was:" >&5
5743 gezelter 2081 sed 's/^/| /' conftest.$ac_ext >&5
5744    
5745     ac_header_preproc=no
5746 gezelter 1490 fi
5747     rm -f conftest.err conftest.$ac_ext
5748 gezelter 2081 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5749     echo "${ECHO_T}$ac_header_preproc" >&6
5750    
5751     # So? What about this header?
5752     case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5753     yes:no: )
5754     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5755     echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5756     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5757     echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5758     ac_header_preproc=yes
5759     ;;
5760     no:yes:* )
5761     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5762     echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5763     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5764     echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5765     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5766     echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5767     { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5768     echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5769     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5770     echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5771     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5772     echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5773     (
5774     cat <<\_ASBOX
5775     ## ------------------------------ ##
5776     ## Report this to gezelter@nd.edu ##
5777     ## ------------------------------ ##
5778     _ASBOX
5779     ) |
5780     sed "s/^/$as_me: WARNING: /" >&2
5781     ;;
5782     esac
5783     echo "$as_me:$LINENO: checking for $ac_header" >&5
5784     echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5785     if eval "test \"\${$as_ac_Header+set}\" = set"; then
5786     echo $ECHO_N "(cached) $ECHO_C" >&6
5787     else
5788     eval "$as_ac_Header=\$ac_header_preproc"
5789 gezelter 1490 fi
5790 gezelter 2081 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5791     echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5792 gezelter 1490
5793     fi
5794 gezelter 2081 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5795     cat >>confdefs.h <<_ACEOF
5796     #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5797     _ACEOF
5798    
5799     fi
5800    
5801 gezelter 1490 done
5802    
5803 gezelter 2081
5804 gezelter 1490 for ac_func in getopt_long
5805     do
5806 gezelter 2081 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5807     echo "$as_me:$LINENO: checking for $ac_func" >&5
5808 gezelter 1490 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5809 gezelter 2081 if eval "test \"\${$as_ac_var+set}\" = set"; then
5810 gezelter 1490 echo $ECHO_N "(cached) $ECHO_C" >&6
5811     else
5812     cat >conftest.$ac_ext <<_ACEOF
5813 gezelter 2081 /* confdefs.h. */
5814     _ACEOF
5815     cat confdefs.h >>conftest.$ac_ext
5816     cat >>conftest.$ac_ext <<_ACEOF
5817     /* end confdefs.h. */
5818     /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5819     For example, HP-UX 11i <limits.h> declares gettimeofday. */
5820     #define $ac_func innocuous_$ac_func
5821    
5822 gezelter 1490 /* System header to define __stub macros and hopefully few prototypes,
5823 gezelter 2081 which can conflict with char $ac_func (); below.
5824     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5825     <limits.h> exists even on freestanding compilers. */
5826    
5827     #ifdef __STDC__
5828     # include <limits.h>
5829     #else
5830     # include <assert.h>
5831     #endif
5832    
5833     #undef $ac_func
5834    
5835 gezelter 1490 /* Override any gcc2 internal prototype to avoid an error. */
5836     #ifdef __cplusplus
5837     extern "C"
5838 gezelter 2081 {
5839 gezelter 1490 #endif
5840     /* We use char because int might match the return type of a gcc2
5841     builtin and then its argument prototype would still apply. */
5842     char $ac_func ();
5843     /* The GNU C library defines this for functions which it implements
5844     to always fail with ENOSYS. Some functions are actually named
5845     something starting with __ and the normal name is an alias. */
5846     #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5847     choke me
5848     #else
5849 gezelter 2081 char (*f) () = $ac_func;
5850 gezelter 1490 #endif
5851 gezelter 2081 #ifdef __cplusplus
5852     }
5853     #endif
5854 gezelter 1490
5855 gezelter 2081 int
5856     main ()
5857     {
5858     return f != $ac_func;
5859 gezelter 1490 ;
5860     return 0;
5861     }
5862     _ACEOF
5863     rm -f conftest.$ac_objext conftest$ac_exeext
5864 gezelter 2081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5865     (eval $ac_link) 2>conftest.er1
5866 gezelter 1490 ac_status=$?
5867 gezelter 2081 grep -v '^ *+' conftest.er1 >conftest.err
5868     rm -f conftest.er1
5869     cat conftest.err >&5
5870     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5871 gezelter 1490 (exit $ac_status); } &&
5872 gezelter 2081 { ac_try='test -z "$ac_c_werror_flag"
5873     || test ! -s conftest.err'
5874     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5875 gezelter 1490 (eval $ac_try) 2>&5
5876     ac_status=$?
5877 gezelter 2081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5878     (exit $ac_status); }; } &&
5879     { ac_try='test -s conftest$ac_exeext'
5880     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5881     (eval $ac_try) 2>&5
5882     ac_status=$?
5883     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5884 gezelter 1490 (exit $ac_status); }; }; then
5885 gezelter 2081 eval "$as_ac_var=yes"
5886 gezelter 1490 else
5887     echo "$as_me: failed program was:" >&5
5888 gezelter 2081 sed 's/^/| /' conftest.$ac_ext >&5
5889    
5890     eval "$as_ac_var=no"
5891 gezelter 1490 fi
5892 gezelter 2081 rm -f conftest.err conftest.$ac_objext \
5893     conftest$ac_exeext conftest.$ac_ext
5894 gezelter 1490 fi
5895 gezelter 2081 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5896     echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5897     if test `eval echo '${'$as_ac_var'}'` = yes; then
5898     cat >>confdefs.h <<_ACEOF
5899     #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5900     _ACEOF
5901 gezelter 1490
5902     else
5903     # FreeBSD has a gnugetopt library for this
5904 gezelter 2081 echo "$as_me:$LINENO: checking for getopt_long in -lgnugetopt" >&5
5905 gezelter 1490 echo $ECHO_N "checking for getopt_long in -lgnugetopt... $ECHO_C" >&6
5906     if test "${ac_cv_lib_gnugetopt_getopt_long+set}" = set; then
5907     echo $ECHO_N "(cached) $ECHO_C" >&6
5908     else
5909     ac_check_lib_save_LIBS=$LIBS
5910     LIBS="-lgnugetopt $LIBS"
5911     cat >conftest.$ac_ext <<_ACEOF
5912 gezelter 2081 /* confdefs.h. */
5913     _ACEOF
5914     cat confdefs.h >>conftest.$ac_ext
5915     cat >>conftest.$ac_ext <<_ACEOF
5916     /* end confdefs.h. */
5917 gezelter 1490
5918     /* Override any gcc2 internal prototype to avoid an error. */
5919     #ifdef __cplusplus
5920     extern "C"
5921     #endif
5922     /* We use char because int might match the return type of a gcc2
5923     builtin and then its argument prototype would still apply. */
5924     char getopt_long ();
5925     int
5926     main ()
5927     {
5928     getopt_long ();
5929     ;
5930     return 0;
5931     }
5932     _ACEOF
5933     rm -f conftest.$ac_objext conftest$ac_exeext
5934 gezelter 2081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5935     (eval $ac_link) 2>conftest.er1
5936 gezelter 1490 ac_status=$?
5937 gezelter 2081 grep -v '^ *+' conftest.er1 >conftest.err
5938     rm -f conftest.er1
5939     cat conftest.err >&5
5940     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5941 gezelter 1490 (exit $ac_status); } &&
5942 gezelter 2081 { ac_try='test -z "$ac_c_werror_flag"
5943     || test ! -s conftest.err'
5944     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5945 gezelter 1490 (eval $ac_try) 2>&5
5946     ac_status=$?
5947 gezelter 2081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5948     (exit $ac_status); }; } &&
5949     { ac_try='test -s conftest$ac_exeext'
5950     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5951     (eval $ac_try) 2>&5
5952     ac_status=$?
5953     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5954 gezelter 1490 (exit $ac_status); }; }; then
5955     ac_cv_lib_gnugetopt_getopt_long=yes
5956     else
5957     echo "$as_me: failed program was:" >&5
5958 gezelter 2081 sed 's/^/| /' conftest.$ac_ext >&5
5959    
5960 gezelter 1490 ac_cv_lib_gnugetopt_getopt_long=no
5961     fi
5962 gezelter 2081 rm -f conftest.err conftest.$ac_objext \
5963     conftest$ac_exeext conftest.$ac_ext
5964 gezelter 1490 LIBS=$ac_check_lib_save_LIBS
5965     fi
5966 gezelter 2081 echo "$as_me:$LINENO: result: $ac_cv_lib_gnugetopt_getopt_long" >&5
5967 gezelter 1490 echo "${ECHO_T}$ac_cv_lib_gnugetopt_getopt_long" >&6
5968     if test $ac_cv_lib_gnugetopt_getopt_long = yes; then
5969 gezelter 2081 cat >>confdefs.h <<\_ACEOF
5970 gezelter 1490 #define HAVE_GETOPT_LONG 1
5971 gezelter 2081 _ACEOF
5972 gezelter 1490
5973     else
5974     # use the GNU replacement
5975 gezelter 2081 case $LIBOBJS in
5976     "getopt.$ac_objext" | \
5977     *" getopt.$ac_objext" | \
5978     "getopt.$ac_objext "* | \
5979     *" getopt.$ac_objext "* ) ;;
5980     *) LIBOBJS="$LIBOBJS getopt.$ac_objext" ;;
5981     esac
5982 gezelter 2026
5983 gezelter 2081 case $LIBOBJS in
5984     "getopt1.$ac_objext" | \
5985     *" getopt1.$ac_objext" | \
5986     "getopt1.$ac_objext "* | \
5987     *" getopt1.$ac_objext "* ) ;;
5988     *) LIBOBJS="$LIBOBJS getopt1.$ac_objext" ;;
5989     esac
5990    
5991     ac_config_links="$ac_config_links src/getopt.h:src/utils/gnugetopt.h"
5992    
5993 gezelter 1490 fi
5994    
5995     fi
5996     done
5997    
5998 gezelter 2081
5999    
6000 gezelter 1490 case $debug in
6001     1)
6002     ;;
6003     *)
6004    
6005 gezelter 2081
6006    
6007    
6008    
6009    
6010     echo "$as_me:$LINENO: checking whether we are *really* using GNU cc" >&5
6011 gezelter 1490 echo $ECHO_N "checking whether we are *really* using GNU cc... $ECHO_C" >&6
6012     if test "${ac_cv_prog_really_gcc+set}" = set; then
6013     echo $ECHO_N "(cached) $ECHO_C" >&6
6014     else
6015    
6016     cat > conftest.c <<EOF
6017     #ifdef __GNUC__
6018     #ifndef __INTEL_COMPILER
6019     yes;
6020     #endif
6021     #endif
6022     EOF
6023     if { ac_try='${CC-cc} -E conftest.c'
6024 gezelter 2081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6025 gezelter 1490 (eval $ac_try) 2>&5
6026     ac_status=$?
6027 gezelter 2081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6028 gezelter 1490 (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then
6029     ac_cv_prog_really_gcc=yes
6030     else
6031     ac_cv_prog_really_gcc=no
6032     fi
6033    
6034     fi
6035 gezelter 2081 echo "$as_me:$LINENO: result: $ac_cv_prog_really_gcc" >&5
6036 gezelter 1490 echo "${ECHO_T}$ac_cv_prog_really_gcc" >&6
6037     if test "$ac_cv_prog_really_gcc" = yes; then
6038     :
6039    
6040     else
6041     :
6042    
6043     fi
6044    
6045 gezelter 2081
6046 gezelter 1490 # Try to determine "good" native compiler flags if none specified on command
6047     # line
6048     if test "$ac_test_CFLAGS" != "set"; then
6049     CFLAGS=""
6050     case "${host_cpu}-${host_os}" in
6051    
6052     *linux*) if test "$CC" = icc; then
6053     CFLAGS="-O"
6054     fi;;
6055     sparc-solaris2*) if test "$CC" = cc; then
6056     CFLAGS="-native -fast -xO5 -dalign"
6057     fi;;
6058    
6059     alpha*-osf*) if test "$CC" = cc; then
6060     CFLAGS="-newc -w0 -O5 -ansi_alias -ansi_args -fp_reorder -tune host -arch host -std1"
6061     fi;;
6062    
6063     hppa*-hpux*) if test "$CC" = cc; then
6064     CFLAGS="-Ae +O3 +Oall"
6065     fi;;
6066    
6067     rs6000*-aix*) if test "$CC" = cc -o "$CC" = xlc; then
6068     CFLAGS="-O3 -qtune=auto -qansialias -w"
6069     fi;;
6070     powerpc*-aix*)
6071     if test "$CC" = cc -o "$CC" = xlc; then
6072     CFLAGS="-O3 -qtune=auto -qansialias -w"
6073     echo "*******************************************************"
6074     echo "* You have AIX on an unknown powerpc system. It is *"
6075     echo "* recommended that you use *"
6076     echo "* *"
6077     echo "* CFLAGS=-O3 -qarch=ppc -qtune=xxx -qansialias -w *"
6078     echo "* ^^^ *"
6079     echo "* where xxx is 601, 603, 604, or whatever kind of *"
6080     echo "* PowerPC CPU you have. For more info, man cc. *"
6081     echo "*******************************************************"
6082     fi;;
6083     *darwin*)
6084     if test "$CC" = xlc -o "$CC" = cc; then
6085 chuckv 1579 CFLAGS="-qthreaded -O -qtune=auto -qarch=auto -qunroll=auto -qaltivec"
6086 gezelter 1490 fi;;
6087     esac
6088    
6089     # use default flags for gcc on all systems
6090     if test $ac_cv_prog_really_gcc = yes; then
6091     CFLAGS="-O6 -fomit-frame-pointer -Wall -W -Wcast-qual -Wpointer-arith -Wcast-align -pedantic"
6092     fi
6093    
6094     # test for gcc-specific flags:
6095     if test $ac_cv_prog_really_gcc = yes; then
6096     # -malign-double for x86 systems
6097    
6098 gezelter 2081
6099     echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -malign-double" >&5
6100 gezelter 1490 echo $ECHO_N "checking whether ${CC-cc} accepts -malign-double... $ECHO_C" >&6
6101     if test "${ac_align_double+set}" = set; then
6102     echo $ECHO_N "(cached) $ECHO_C" >&6
6103     else
6104     echo 'void f(){}' > conftest.c
6105     if test -z "`${CC-cc} -malign-double -c conftest.c 2>&1`"; then
6106     ac_align_double=yes
6107     else
6108     ac_align_double=no
6109     fi
6110     rm -f conftest*
6111    
6112     fi
6113 gezelter 2081 echo "$as_me:$LINENO: result: $ac_align_double" >&5
6114 gezelter 1490 echo "${ECHO_T}$ac_align_double" >&6
6115     if test "$ac_align_double" = yes; then
6116     :
6117     CFLAGS="$CFLAGS -malign-double"
6118     else
6119     :
6120    
6121     fi
6122    
6123     # -fstrict-aliasing for gcc-2.95+
6124    
6125 gezelter 2081
6126     echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -fstrict-aliasing" >&5
6127 gezelter 1490 echo $ECHO_N "checking whether ${CC-cc} accepts -fstrict-aliasing... $ECHO_C" >&6
6128     if test "${ac_fstrict_aliasing+set}" = set; then
6129     echo $ECHO_N "(cached) $ECHO_C" >&6
6130     else
6131     echo 'void f(){}' > conftest.c
6132     if test -z "`${CC-cc} -fstrict-aliasing -c conftest.c 2>&1`"; then
6133     ac_fstrict_aliasing=yes
6134     else
6135     ac_fstrict_aliasing=no
6136     fi
6137     rm -f conftest*
6138    
6139     fi
6140 gezelter 2081 echo "$as_me:$LINENO: result: $ac_fstrict_aliasing" >&5
6141 gezelter 1490 echo "${ECHO_T}$ac_fstrict_aliasing" >&6
6142     if test "$ac_fstrict_aliasing" = yes; then
6143     :
6144     CFLAGS="$CFLAGS -fstrict-aliasing"
6145     else
6146     :
6147    
6148     fi
6149    
6150     fi
6151    
6152     CPU_FLAGS=""
6153     if test $ac_cv_prog_really_gcc = yes; then
6154     case "${host_cpu}" in
6155     i586*)
6156    
6157 gezelter 2081 echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mcpu=pentium" >&5
6158 gezelter 1490 echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=pentium... $ECHO_C" >&6
6159     if test "${ac_cpu_pentium+set}" = set; then
6160     echo $ECHO_N "(cached) $ECHO_C" >&6
6161     else
6162     echo 'void f(){}' > conftest.c
6163     if test -z "`${CC-cc} -mcpu=pentium -c conftest.c 2>&1`"; then
6164     ac_cpu_pentium=yes
6165     else
6166     ac_cpu_pentium=no
6167     fi
6168     rm -f conftest*
6169    
6170     fi
6171 gezelter 2081 echo "$as_me:$LINENO: result: $ac_cpu_pentium" >&5
6172 gezelter 1490 echo "${ECHO_T}$ac_cpu_pentium" >&6
6173     if test "$ac_cpu_pentium" = yes; then
6174     :
6175     CPU_FLAGS=-mcpu=pentium
6176     else
6177     :
6178    
6179 gezelter 2081
6180     echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mpentium" >&5
6181 gezelter 1490 echo $ECHO_N "checking whether ${CC-cc} accepts -mpentium... $ECHO_C" >&6
6182     if test "${ac_pentium+set}" = set; then
6183     echo $ECHO_N "(cached) $ECHO_C" >&6
6184     else
6185     echo 'void f(){}' > conftest.c
6186     if test -z "`${CC-cc} -mpentium -c conftest.c 2>&1`"; then
6187     ac_pentium=yes
6188     else
6189     ac_pentium=no
6190     fi
6191     rm -f conftest*
6192    
6193     fi
6194 gezelter 2081 echo "$as_me:$LINENO: result: $ac_pentium" >&5
6195 gezelter 1490 echo "${ECHO_T}$ac_pentium" >&6
6196     if test "$ac_pentium" = yes; then
6197     :
6198     CPU_FLAGS=-mpentium
6199     else
6200     :
6201    
6202     fi
6203    
6204     fi
6205    
6206     ;;
6207     i686*)
6208    
6209 gezelter 2081 echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mcpu=pentiumpro" >&5
6210 gezelter 1490 echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=pentiumpro... $ECHO_C" >&6
6211     if test "${ac_cpu_pentiumpro+set}" = set; then
6212     echo $ECHO_N "(cached) $ECHO_C" >&6
6213     else
6214     echo 'void f(){}' > conftest.c
6215     if test -z "`${CC-cc} -mcpu=pentiumpro -c conftest.c 2>&1`"; then
6216     ac_cpu_pentiumpro=yes
6217     else
6218     ac_cpu_pentiumpro=no
6219     fi
6220     rm -f conftest*
6221    
6222     fi
6223 gezelter 2081 echo "$as_me:$LINENO: result: $ac_cpu_pentiumpro" >&5
6224 gezelter 1490 echo "${ECHO_T}$ac_cpu_pentiumpro" >&6
6225     if test "$ac_cpu_pentiumpro" = yes; then
6226     :
6227     CPU_FLAGS=-mcpu=pentiumpro
6228     else
6229     :
6230    
6231 gezelter 2081
6232     echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mpentiumpro" >&5
6233 gezelter 1490 echo $ECHO_N "checking whether ${CC-cc} accepts -mpentiumpro... $ECHO_C" >&6
6234     if test "${ac_pentiumpro+set}" = set; then
6235     echo $ECHO_N "(cached) $ECHO_C" >&6
6236     else
6237     echo 'void f(){}' > conftest.c
6238     if test -z "`${CC-cc} -mpentiumpro -c conftest.c 2>&1`"; then
6239     ac_pentiumpro=yes
6240     else
6241     ac_pentiumpro=no
6242     fi
6243     rm -f conftest*
6244    
6245     fi
6246 gezelter 2081 echo "$as_me:$LINENO: result: $ac_pentiumpro" >&5
6247 gezelter 1490 echo "${ECHO_T}$ac_pentiumpro" >&6
6248     if test "$ac_pentiumpro" = yes; then
6249     :
6250     CPU_FLAGS=-mpentiumpro
6251     else
6252     :
6253    
6254     fi
6255    
6256     fi
6257    
6258     ;;
6259     powerpc*)
6260     cputype=`(grep cpu /proc/cpuinfo | head -1 | cut -d: -f2 | sed 's/ //g') 2> /dev/null`
6261     is60x=`echo $cputype | egrep "^600-9e?$"`
6262     if test -n "$is60x"; then
6263    
6264 gezelter 2081
6265     echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mcpu=$cputype" >&5
6266 gezelter 1490 echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=$cputype... $ECHO_C" >&6
6267     if test "${ac_m_cpu_60x+set}" = set; then
6268     echo $ECHO_N "(cached) $ECHO_C" >&6
6269     else
6270     echo 'void f(){}' > conftest.c
6271     if test -z "`${CC-cc} -mcpu=$cputype -c conftest.c 2>&1`"; then
6272     ac_m_cpu_60x=yes
6273     else
6274     ac_m_cpu_60x=no
6275     fi
6276     rm -f conftest*
6277    
6278     fi
6279 gezelter 2081 echo "$as_me:$LINENO: result: $ac_m_cpu_60x" >&5
6280 gezelter 1490 echo "${ECHO_T}$ac_m_cpu_60x" >&6
6281     if test "$ac_m_cpu_60x" = yes; then
6282     :
6283     CPU_FLAGS=-mcpu=$cputype
6284     else
6285     :
6286    
6287     fi
6288    
6289     elif test "$cputype" = 750; then
6290    
6291 gezelter 2081
6292     echo "$as_me:$LINENO: checking whether we are using gcc 2.95 or later" >&5
6293 gezelter 1490 echo $ECHO_N "checking whether we are using gcc 2.95 or later... $ECHO_C" >&6
6294     if test "${ac_cv_prog_gcc_2_95+set}" = set; then
6295     echo $ECHO_N "(cached) $ECHO_C" >&6
6296     else
6297    
6298     cat > conftest.c <<EOF
6299     #ifdef __GNUC__ && !defined (__INTEL_COMPILER)
6300     # if (__GNUC__ > 2) || (__GNUC__ == 2 && __GNUC_MINOR__ >= 95)
6301     yes;
6302     # endif
6303     #endif
6304     EOF
6305     if { ac_try='${CC-cc} -E conftest.c'
6306 gezelter 2081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6307 gezelter 1490 (eval $ac_try) 2>&5
6308     ac_status=$?
6309 gezelter 2081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6310 gezelter 1490 (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then
6311     ac_cv_prog_gcc_2_95=yes
6312     else
6313     ac_cv_prog_gcc_2_95=no
6314     fi
6315    
6316     fi
6317 gezelter 2081 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_2_95" >&5
6318 gezelter 1490 echo "${ECHO_T}$ac_cv_prog_gcc_2_95" >&6
6319     if test "$ac_cv_prog_gcc_2_95" = yes; then
6320     :
6321    
6322 gezelter 2081
6323     echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mcpu=750" >&5
6324 gezelter 1490 echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=750... $ECHO_C" >&6
6325     if test "${ac_m_cpu_750+set}" = set; then
6326     echo $ECHO_N "(cached) $ECHO_C" >&6
6327     else
6328     echo 'void f(){}' > conftest.c
6329     if test -z "`${CC-cc} -mcpu=750 -c conftest.c 2>&1`"; then
6330     ac_m_cpu_750=yes
6331     else
6332     ac_m_cpu_750=no
6333     fi
6334     rm -f conftest*
6335    
6336     fi
6337 gezelter 2081 echo "$as_me:$LINENO: result: $ac_m_cpu_750" >&5
6338 gezelter 1490 echo "${ECHO_T}$ac_m_cpu_750" >&6
6339     if test "$ac_m_cpu_750" = yes; then
6340     :
6341     CPU_FLAGS=-mcpu=750
6342     else
6343     :
6344    
6345     fi
6346    
6347     else
6348     :
6349    
6350     fi
6351    
6352     fi
6353     if test -z "$CPU_FLAGS"; then
6354    
6355 gezelter 2081
6356     echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mcpu=powerpc" >&5
6357 gezelter 1490 echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=powerpc... $ECHO_C" >&6
6358     if test "${ac_m_cpu_powerpc+set}" = set; then
6359     echo $ECHO_N "(cached) $ECHO_C" >&6
6360     else
6361     echo 'void f(){}' > conftest.c
6362     if test -z "`${CC-cc} -mcpu=powerpc -c conftest.c 2>&1`"; then
6363     ac_m_cpu_powerpc=yes
6364     else
6365     ac_m_cpu_powerpc=no
6366     fi
6367     rm -f conftest*
6368    
6369     fi
6370 gezelter 2081 echo "$as_me:$LINENO: result: $ac_m_cpu_powerpc" >&5
6371 gezelter 1490 echo "${ECHO_T}$ac_m_cpu_powerpc" >&6
6372     if test "$ac_m_cpu_powerpc" = yes; then
6373     :
6374     CPU_FLAGS=-mcpu=powerpc
6375     else
6376     :
6377    
6378     fi
6379    
6380     fi
6381     if test -z "$CPU_FLAGS"; then
6382    
6383 gezelter 2081
6384     echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mpowerpc" >&5
6385 gezelter 1490 echo $ECHO_N "checking whether ${CC-cc} accepts -mpowerpc... $ECHO_C" >&6
6386     if test "${ac_m_powerpc+set}" = set; then
6387     echo $ECHO_N "(cached) $ECHO_C" >&6
6388     else
6389     echo 'void f(){}' > conftest.c
6390     if test -z "`${CC-cc} -mpowerpc -c conftest.c 2>&1`"; then
6391     ac_m_powerpc=yes
6392     else
6393     ac_m_powerpc=no
6394     fi
6395     rm -f conftest*
6396    
6397     fi
6398 gezelter 2081 echo "$as_me:$LINENO: result: $ac_m_powerpc" >&5
6399 gezelter 1490 echo "${ECHO_T}$ac_m_powerpc" >&6
6400     if test "$ac_m_powerpc" = yes; then
6401     :
6402     CPU_FLAGS=-mpowerpc
6403     else
6404     :
6405    
6406     fi
6407    
6408     fi
6409     esac
6410     fi
6411    
6412     if test -n "$CPU_FLAGS"; then
6413     CFLAGS="$CFLAGS $CPU_FLAGS"
6414     fi
6415    
6416     if test -z "$CFLAGS"; then
6417     echo ""
6418     echo "********************************************************"
6419     echo "* WARNING: Don't know the best CFLAGS for this system *"
6420     echo "* Use make CFLAGS=..., or edit the top level Makefile *"
6421     echo "* (otherwise, a default of CFLAGS=-O3 will be used) *"
6422     echo "********************************************************"
6423     echo ""
6424     CFLAGS="-O3"
6425     fi
6426    
6427 gezelter 2081
6428    
6429     echo "$as_me:$LINENO: checking whether ${CC-cc} accepts ${CFLAGS}" >&5
6430 gezelter 1490 echo $ECHO_N "checking whether ${CC-cc} accepts ${CFLAGS}... $ECHO_C" >&6
6431     if test "${ac_guessed_cflags+set}" = set; then
6432     echo $ECHO_N "(cached) $ECHO_C" >&6
6433     else
6434     echo 'void f(){}' > conftest.c
6435     if test -z "`${CC-cc} ${CFLAGS} -c conftest.c 2>&1`"; then
6436     ac_guessed_cflags=yes
6437     else
6438     ac_guessed_cflags=no
6439     fi
6440     rm -f conftest*
6441    
6442     fi
6443 gezelter 2081 echo "$as_me:$LINENO: result: $ac_guessed_cflags" >&5
6444 gezelter 1490 echo "${ECHO_T}$ac_guessed_cflags" >&6
6445     if test "$ac_guessed_cflags" = yes; then
6446     :
6447    
6448     else
6449     :
6450    
6451     echo ""
6452     echo "********************************************************"
6453     echo "* WARNING: The guessed CFLAGS don't seem to work with *"
6454     echo "* your compiler. *"
6455     echo "* Use make CFLAGS=..., or edit the top level Makefile *"
6456     echo "********************************************************"
6457     echo ""
6458     CFLAGS=""
6459    
6460     fi
6461    
6462 gezelter 2081
6463 gezelter 1490 fi
6464    
6465 gezelter 2081
6466    
6467    
6468    
6469    
6470    
6471     echo "$as_me:$LINENO: checking whether we are *really* using GNU c++" >&5
6472 gezelter 1490 echo $ECHO_N "checking whether we are *really* using GNU c++... $ECHO_C" >&6
6473     if test "${ac_cv_prog_really_gxx+set}" = set; then
6474     echo $ECHO_N "(cached) $ECHO_C" >&6
6475     else
6476    
6477     cat > conftest.cpp <<EOF
6478     #ifdef __GNUC__
6479     #ifndef __INTEL_COMPILER
6480     yes;
6481     #endif
6482     #endif
6483     EOF
6484     if { ac_try='${CXX-c++} -E conftest.cpp'
6485 gezelter 2081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6486 gezelter 1490 (eval $ac_try) 2>&5
6487     ac_status=$?
6488 gezelter 2081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6489 gezelter 1490 (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then
6490     ac_cv_prog_really_gxx=yes
6491     else
6492     ac_cv_prog_really_gxx=no
6493     fi
6494    
6495     fi
6496 gezelter 2081 echo "$as_me:$LINENO: result: $ac_cv_prog_really_gxx" >&5
6497 gezelter 1490 echo "${ECHO_T}$ac_cv_prog_really_gxx" >&6
6498     if test "$ac_cv_prog_really_gxx" = yes; then
6499     :
6500    
6501     else
6502     :
6503    
6504     fi
6505    
6506 gezelter 2081
6507 gezelter 1490 # Try to determine "good" native compiler flags if none specified on command
6508     # line
6509     if test "$ac_test_CXXFLAGS" != "set"; then
6510     CXXFLAGS=""
6511     case "${host_cpu}-${host_os}" in
6512    
6513     *linux*) if test "$CXX" = icc -o "$CXX" = icpc; then
6514     CXXFLAGS="-O"
6515     fi;;
6516     sparc-solaris2*) if test "$CXX" = CC; then
6517     CXXFLAGS="-native -fast -xO5 -dalign"
6518     fi;;
6519     rs6000*-aix*) if test "$CXX" = xlC; then
6520     CXXFLAGS="-O3 -qarch=pwrx -qtune=pwrx -qansialias -w"
6521     fi;;
6522     powerpc*-aix*)
6523     if test "$CXX" = xlC; then
6524     CXXFLAGS="-O3 -qarch=ppc -qansialias -w"
6525     echo "*******************************************************"
6526     echo "* You have AIX on an unknown powerpc system. It is *"
6527     echo "* recommended that you use *"
6528     echo "* *"
6529     echo "* CXXFLAGS=-O3 -qarch=ppc -qtune=xxx -qansialias -w *"
6530     echo "* ^^^ *"
6531     echo "* where xxx is 601, 603, 604, or whatever kind of *"
6532     echo "* PowerPC CPU you have. For more info, man cc. *"
6533     echo "*******************************************************"
6534     fi;;
6535     *darwin*)
6536 gezelter 2022 if test "$CXX" = xlc++ -o "$CXX" = xlC ; then
6537 chuckv 1579 CXXFLAGS="-qthreaded -O -qtune=auto -qarch=auto -qunroll=auto -qaltivec"
6538 gezelter 1490 fi;;
6539     esac
6540    
6541     # use default flags for gcc on all systems
6542     if test $ac_cv_prog_really_gxx = yes; then
6543     CXXFLAGS="-O6 -fomit-frame-pointer -Wall -W -Wcast-qual -Wpointer-arith -Wcast-align -pedantic"
6544     fi
6545    
6546     # test for gcc-specific flags:
6547     if test $ac_cv_prog_really_gxx = yes; then
6548     # -malign-double for x86 systems
6549    
6550 gezelter 2081
6551     echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -malign-double" >&5
6552 gezelter 1490 echo $ECHO_N "checking whether ${CXX-c++} accepts -malign-double... $ECHO_C" >&6
6553     if test "${ac_align_double+set}" = set; then
6554     echo $ECHO_N "(cached) $ECHO_C" >&6
6555     else
6556     echo 'void f(){}' > conftest.cpp
6557     if test -z "`${CXX-c++} -malign-double -c conftest.cpp 2>&1`"; then
6558     ac_align_double=yes
6559     else
6560     ac_align_double=no
6561     fi
6562     rm -f conftest*
6563    
6564     fi
6565 gezelter 2081 echo "$as_me:$LINENO: result: $ac_align_double" >&5
6566 gezelter 1490 echo "${ECHO_T}$ac_align_double" >&6
6567     if test "$ac_align_double" = yes; then
6568     :
6569     CXXFLAGS="$CXXFLAGS -malign-double"
6570     else
6571     :
6572    
6573     fi
6574    
6575     # -fstrict-aliasing for gcc-2.95+
6576    
6577 gezelter 2081
6578     echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -fstrict-aliasing" >&5
6579 gezelter 1490 echo $ECHO_N "checking whether ${CXX-c++} accepts -fstrict-aliasing... $ECHO_C" >&6
6580     if test "${ac_fstrict_aliasing+set}" = set; then
6581     echo $ECHO_N "(cached) $ECHO_C" >&6
6582     else
6583     echo 'void f(){}' > conftest.cpp
6584     if test -z "`${CXX-c++} -fstrict-aliasing -c conftest.cpp 2>&1`"; then
6585     ac_fstrict_aliasing=yes
6586     else
6587     ac_fstrict_aliasing=no
6588     fi
6589     rm -f conftest*
6590    
6591     fi
6592 gezelter 2081 echo "$as_me:$LINENO: result: $ac_fstrict_aliasing" >&5
6593 gezelter 1490 echo "${ECHO_T}$ac_fstrict_aliasing" >&6
6594     if test "$ac_fstrict_aliasing" = yes; then
6595     :
6596     CXXFLAGS="$CXXFLAGS -fstrict-aliasing"
6597     else
6598     :
6599    
6600     fi
6601    
6602     fi
6603    
6604     CPU_FLAGS=""
6605     if test $ac_cv_prog_really_gxx = yes; then
6606     case "${host_cpu}" in
6607     i586*)
6608    
6609 gezelter 2081 echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mcpu=pentium" >&5
6610 gezelter 1490 echo $ECHO_N "checking whether ${CXX-c++} accepts -mcpu=pentium... $ECHO_C" >&6
6611     if test "${ac_cpu_pentium+set}" = set; then
6612     echo $ECHO_N "(cached) $ECHO_C" >&6
6613     else
6614     echo 'void f(){}' > conftest.cpp
6615     if test -z "`${CXX-c++} -mcpu=pentium -c conftest.cpp 2>&1`"; then
6616     ac_cpu_pentium=yes
6617     else
6618     ac_cpu_pentium=no
6619     fi
6620     rm -f conftest*
6621    
6622     fi
6623 gezelter 2081 echo "$as_me:$LINENO: result: $ac_cpu_pentium" >&5
6624 gezelter 1490 echo "${ECHO_T}$ac_cpu_pentium" >&6
6625     if test "$ac_cpu_pentium" = yes; then
6626     :
6627     CPU_FLAGS=-mcpu=pentium
6628     else
6629     :
6630    
6631 gezelter 2081
6632     echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mpentium" >&5
6633 gezelter 1490 echo $ECHO_N "checking whether ${CXX-c++} accepts -mpentium... $ECHO_C" >&6
6634     if test "${ac_pentium+set}" = set; then
6635     echo $ECHO_N "(cached) $ECHO_C" >&6
6636     else
6637     echo 'void f(){}' > conftest.cpp
6638     if test -z "`${CXX-c++} -mpentium -c conftest.cpp 2>&1`"; then
6639     ac_pentium=yes
6640     else
6641     ac_pentium=no
6642     fi
6643     rm -f conftest*
6644    
6645     fi
6646 gezelter 2081 echo "$as_me:$LINENO: result: $ac_pentium" >&5
6647 gezelter 1490 echo "${ECHO_T}$ac_pentium" >&6
6648     if test "$ac_pentium" = yes; then
6649     :
6650     CPU_FLAGS=-mpentium
6651     else
6652     :
6653    
6654     fi
6655    
6656     fi
6657    
6658     ;;
6659     i686*)
6660    
6661 gezelter 2081 echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mcpu=pentiumpro" >&5
6662 gezelter 1490 echo $ECHO_N "checking whether ${CXX-c++} accepts -mcpu=pentiumpro... $ECHO_C" >&6
6663     if test "${ac_cpu_pentiumpro+set}" = set; then
6664     echo $ECHO_N "(cached) $ECHO_C" >&6
6665     else
6666     echo 'void f(){}' > conftest.cpp
6667     if test -z "`${CXX-c++} -mcpu=pentiumpro -c conftest.cpp 2>&1`"; then
6668     ac_cpu_pentiumpro=yes
6669     else
6670     ac_cpu_pentiumpro=no
6671     fi
6672     rm -f conftest*
6673    
6674     fi
6675 gezelter 2081 echo "$as_me:$LINENO: result: $ac_cpu_pentiumpro" >&5
6676 gezelter 1490 echo "${ECHO_T}$ac_cpu_pentiumpro" >&6
6677     if test "$ac_cpu_pentiumpro" = yes; then
6678     :
6679     CPU_FLAGS=-mcpu=pentiumpro
6680     else
6681     :
6682    
6683 gezelter 2081
6684     echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mpentiumpro" >&5
6685 gezelter 1490 echo $ECHO_N "checking whether ${CXX-c++} accepts -mpentiumpro... $ECHO_C" >&6
6686     if test "${ac_pentiumpro+set}" = set; then
6687     echo $ECHO_N "(cached) $ECHO_C" >&6
6688     else
6689     echo 'void f(){}' > conftest.cpp
6690     if test -z "`${CXX-c++} -mpentiumpro -c conftest.cpp 2>&1`"; then
6691     ac_pentiumpro=yes
6692     else
6693     ac_pentiumpro=no
6694     fi
6695     rm -f conftest*
6696    
6697     fi
6698 gezelter 2081 echo "$as_me:$LINENO: result: $ac_pentiumpro" >&5
6699 gezelter 1490 echo "${ECHO_T}$ac_pentiumpro" >&6
6700     if test "$ac_pentiumpro" = yes; then
6701     :
6702     CPU_FLAGS=-mpentiumpro
6703     else
6704     :
6705    
6706     fi
6707    
6708     fi
6709    
6710     ;;
6711     powerpc*)
6712     cputype=`(grep cpu /proc/cpuinfo | head -1 | cut -d: -f2 | sed 's/ //g') 2> /dev/null`
6713     is60x=`echo $cputype | egrep "^600-9e?$"`
6714     if test -n "$is60x"; then
6715    
6716 gezelter 2081
6717     echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mcpu=$cputype" >&5
6718 gezelter 1490 echo $ECHO_N "checking whether ${CXX-c++} accepts -mcpu=$cputype... $ECHO_C" >&6
6719     if test "${ac_m_cpu_60x+set}" = set; then
6720     echo $ECHO_N "(cached) $ECHO_C" >&6
6721     else
6722     echo 'void f(){}' > conftest.cpp
6723     if test -z "`${CXX-c++} -mcpu=$cputype -c conftest.cpp 2>&1`"; then
6724     ac_m_cpu_60x=yes
6725     else
6726     ac_m_cpu_60x=no
6727     fi
6728     rm -f conftest*
6729    
6730     fi
6731 gezelter 2081 echo "$as_me:$LINENO: result: $ac_m_cpu_60x" >&5
6732 gezelter 1490 echo "${ECHO_T}$ac_m_cpu_60x" >&6
6733     if test "$ac_m_cpu_60x" = yes; then
6734     :
6735     CPU_FLAGS=-mcpu=$cputype
6736     else
6737     :
6738    
6739     fi
6740    
6741     elif test "$cputype" = 750; then
6742    
6743 gezelter 2081
6744     echo "$as_me:$LINENO: checking whether we are using g++ 2.95 or later" >&5
6745 gezelter 1490 echo $ECHO_N "checking whether we are using g++ 2.95 or later... $ECHO_C" >&6
6746     if test "${ac_cv_prog_gxx_2_95+set}" = set; then
6747     echo $ECHO_N "(cached) $ECHO_C" >&6
6748     else
6749    
6750     cat > conftest.cpp <<EOF
6751     #ifdef __GNUC__ && !defined (__INTEL_COMPILER)
6752     # if (__GNUC__ > 2) || (__GNUC__ == 2 && __GNUC_MINOR__ >= 95)
6753     yes;
6754     # endif
6755     #endif
6756     EOF
6757     if { ac_try='${CXX-c++} -E conftest.cpp'
6758 gezelter 2081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6759 gezelter 1490 (eval $ac_try) 2>&5
6760     ac_status=$?
6761 gezelter 2081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6762 gezelter 1490 (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then
6763     ac_cv_prog_gxx_2_95=yes
6764     else
6765     ac_cv_prog_gxx_2_95=no
6766     fi
6767    
6768     fi
6769 gezelter 2081 echo "$as_me:$LINENO: result: $ac_cv_prog_gxx_2_95" >&5
6770 gezelter 1490 echo "${ECHO_T}$ac_cv_prog_gxx_2_95" >&6
6771     if test "$ac_cv_prog_gxx_2_95" = yes; then
6772     :
6773    
6774 gezelter 2081
6775     echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mcpu=750" >&5
6776 gezelter 1490 echo $ECHO_N "checking whether ${CXX-c++} accepts -mcpu=750... $ECHO_C" >&6
6777     if test "${ac_m_cpu_750+set}" = set; then
6778     echo $ECHO_N "(cached) $ECHO_C" >&6
6779     else
6780     echo 'void f(){}' > conftest.cpp
6781     if test -z "`${CXX-c++} -mcpu=750 -c conftest.cpp 2>&1`"; then
6782     ac_m_cpu_750=yes
6783     else
6784     ac_m_cpu_750=no
6785     fi
6786     rm -f conftest*
6787    
6788     fi
6789 gezelter 2081 echo "$as_me:$LINENO: result: $ac_m_cpu_750" >&5
6790 gezelter 1490 echo "${ECHO_T}$ac_m_cpu_750" >&6
6791     if test "$ac_m_cpu_750" = yes; then
6792     :
6793     CPU_FLAGS=-mcpu=750
6794     else
6795     :
6796    
6797     fi
6798    
6799     else
6800     :
6801    
6802     fi
6803    
6804     fi
6805     if test -z "$CPU_FLAGS"; then
6806    
6807 gezelter 2081
6808     echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mcpu=powerpc" >&5
6809 gezelter 1490 echo $ECHO_N "checking whether ${CXX-c++} accepts -mcpu=powerpc... $ECHO_C" >&6
6810     if test "${ac_m_cpu_powerpc+set}" = set; then
6811     echo $ECHO_N "(cached) $ECHO_C" >&6
6812     else
6813     echo 'void f(){}' > conftest.cpp
6814     if test -z "`${CXX-c++} -mcpu=powerpc -c conftest.cpp 2>&1`"; then
6815     ac_m_cpu_powerpc=yes
6816     else
6817     ac_m_cpu_powerpc=no
6818     fi
6819     rm -f conftest*
6820    
6821     fi
6822 gezelter 2081 echo "$as_me:$LINENO: result: $ac_m_cpu_powerpc" >&5
6823 gezelter 1490 echo "${ECHO_T}$ac_m_cpu_powerpc" >&6
6824     if test "$ac_m_cpu_powerpc" = yes; then
6825     :
6826     CPU_FLAGS=-mcpu=powerpc
6827     else
6828     :
6829    
6830     fi
6831    
6832     fi
6833     if test -z "$CPU_FLAGS"; then
6834    
6835 gezelter 2081
6836     echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mpowerpc" >&5
6837 gezelter 1490 echo $ECHO_N "checking whether ${CXX-c++} accepts -mpowerpc... $ECHO_C" >&6
6838     if test "${ac_m_powerpc+set}" = set; then
6839     echo $ECHO_N "(cached) $ECHO_C" >&6
6840     else
6841     echo 'void f(){}' > conftest.cpp
6842     if test -z "`${CXX-c++} -mpowerpc -c conftest.cpp 2>&1`"; then
6843     ac_m_powerpc=yes
6844     else
6845     ac_m_powerpc=no
6846     fi
6847     rm -f conftest*
6848    
6849     fi
6850 gezelter 2081 echo "$as_me:$LINENO: result: $ac_m_powerpc" >&5
6851 gezelter 1490 echo "${ECHO_T}$ac_m_powerpc" >&6
6852     if test "$ac_m_powerpc" = yes; then
6853     :
6854     CPU_FLAGS=-mpowerpc
6855     else
6856     :
6857    
6858     fi
6859    
6860     fi
6861     esac
6862     fi
6863    
6864     if test -n "$CPU_FLAGS"; then
6865     CXXFLAGS="$CXXFLAGS $CPU_FLAGS"
6866     fi
6867    
6868     if test -z "$CXXFLAGS"; then
6869     echo ""
6870     echo "**********************************************************"
6871     echo "* WARNING: Don't know the best CXXFLAGS for this system *"
6872     echo "* Use make CXXFLAGS=..., or edit the top level Makefile *"
6873     echo "* (otherwise, a default of CXXFLAGS=-O3 will be used) *"
6874     echo "**********************************************************"
6875     echo ""
6876     CXXFLAGS="-O3"
6877     fi
6878    
6879 gezelter 2081
6880    
6881     echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts ${CXXFLAGS}" >&5
6882 gezelter 1490 echo $ECHO_N "checking whether ${CXX-c++} accepts ${CXXFLAGS}... $ECHO_C" >&6
6883     if test "${ac_guessed_cxxflags+set}" = set; then
6884     echo $ECHO_N "(cached) $ECHO_C" >&6
6885     else
6886     echo 'void f(){}' > conftest.cpp
6887     if test -z "`${CXX-c++} ${CXXFLAGS} -c conftest.cpp 2>&1`"; then
6888     ac_guessed_cxxflags=yes
6889     else
6890     ac_guessed_cxxflags=no
6891     fi
6892     rm -f conftest*
6893    
6894     fi
6895 gezelter 2081 echo "$as_me:$LINENO: result: $ac_guessed_cxxflags" >&5
6896 gezelter 1490 echo "${ECHO_T}$ac_guessed_cxxflags" >&6
6897     if test "$ac_guessed_cxxflags" = yes; then
6898     :
6899    
6900     else
6901     :
6902    
6903     echo ""
6904     echo "**********************************************************"
6905     echo "* WARNING: The guessed CXXFLAGS don't seem to work with *"
6906     echo "* your compiler. *"
6907     echo "* Use make CXXFLAGS=..., or edit the top level Makefile *"
6908     echo "**********************************************************"
6909     echo ""
6910     CXXFLAGS=""
6911    
6912     fi
6913    
6914 gezelter 2081
6915 gezelter 1490 fi
6916    
6917 gezelter 2081
6918    
6919    
6920    
6921 gezelter 1490 # Try to determine "good" native compiler flags if none specified on command
6922     # line
6923    
6924     if test x"$F90FLAGS" = x ; then
6925     F90FLAGS=""
6926     case "${host_cpu}-${host_os}" in
6927    
6928     *linux*) if test "$F90" = ifc -o "$F90" = ifort; then
6929     F90FLAGS="-O"
6930     fi;;
6931     rs6000*-aix*) if test "$F90" = xlf90 -o "$F90" = f90; then
6932     F90FLAGS="-O3 -qarch=pwrx -qtune=pwrx -qansialias -w"
6933     fi;;
6934     powerpc*-aix*)
6935     if test "$F90" = f90 -o "$F90" = xlf90; then
6936     F90FLAGS="-O3 -qarch=ppc -qansialias -w"
6937     echo "*******************************************************"
6938     echo "* You have AIX on an unknown powerpc system. It is *"
6939     echo "* recommended that you use *"
6940     echo "* *"
6941     echo "* F90FLAGS=-O3 -qarch=ppc -qtune=xxx -qansialias -w *"
6942     echo "* ^^^ *"
6943     echo "* where xxx is 601, 603, 604, or whatever kind of *"
6944     echo "* PowerPC CPU you have. For more info, man xlf. *"
6945     echo "*******************************************************"
6946     fi;;
6947     *darwin*)
6948     if test "$F90" = f90 -o "$F90" = xlf90 -o "$F90" = xlf95; then
6949 chuckv 1579 F90FLAGS="-qthreaded -O -qtune=auto -qarch=auto -qunroll=auto"
6950 gezelter 1490 fi;;
6951     esac
6952    
6953     if test -n "$CPU_FLAGS"; then
6954     F90FLAGS="$F90FLAGS $CPU_FLAGS"
6955     fi
6956    
6957     if test -z "$F90FLAGS"; then
6958     echo ""
6959     echo "**********************************************************"
6960     echo "* WARNING: Don't know the best F90FLAGS for this system *"
6961     echo "* Use make F90FLAGS=..., or edit the top level Makefile *"
6962     echo "* (otherwise, a default of F90FLAGS=-O3 will be used) *"
6963     echo "**********************************************************"
6964     echo ""
6965     F90FLAGS="-O3"
6966     fi
6967    
6968 gezelter 2081
6969     echo "$as_me:$LINENO: checking whether ${F90-f90} accepts ${F90FLAGS}" >&5
6970 gezelter 1490 echo $ECHO_N "checking whether ${F90-f90} accepts ${F90FLAGS}... $ECHO_C" >&6
6971     if test "${ac_guessed_f90flags+set}" = set; then
6972     echo $ECHO_N "(cached) $ECHO_C" >&6
6973     else
6974    
6975 gezelter 2081
6976    
6977 gezelter 1490 ac_ext=f90
6978     ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
6979     ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6980     ac_compiler_gnu=$ac_cv_f90_compiler_gnu
6981    
6982     echo 'program main' > conftest.$ac_ext
6983     echo 'end program main' >> conftest.$ac_ext
6984     ac_compile='${F90-f90} -c ${F90FLAGS} $F90FLAGS conftest.$ac_ext 1>&5'
6985 gezelter 2081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6986 gezelter 1490 (eval $ac_compile) 2>&5
6987     ac_status=$?
6988 gezelter 2081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6989 gezelter 1490 (exit $ac_status); }; then
6990     ac_guessed_f90flags=yes
6991     else
6992     ac_guessed_f90flags=no
6993     fi
6994     rm -f conftest*
6995     ac_ext=c
6996     ac_cpp='$CPP $CPPFLAGS'
6997     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6998     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6999     ac_compiler_gnu=$ac_cv_c_compiler_gnu
7000    
7001 gezelter 2081
7002 gezelter 1490 fi
7003 gezelter 2081 echo "$as_me:$LINENO: result: $ac_guessed_f90flags" >&5
7004 gezelter 1490 echo "${ECHO_T}$ac_guessed_f90flags" >&6
7005     if test "$ac_guessed_f90flags" = yes; then
7006     :
7007    
7008     else
7009     :
7010    
7011     echo ""
7012     echo "**********************************************************"
7013     echo "* WARNING: The guessed F90FLAGS don't seem to work with *"
7014     echo "* your compiler. *"
7015     echo "* Use make F90FLAGS=..., or edit the top level Makefile *"
7016     echo "**********************************************************"
7017     echo ""
7018     F90FLAGS=""
7019    
7020     fi
7021    
7022 gezelter 2081
7023 gezelter 1490 fi
7024    
7025     ;;
7026     esac
7027    
7028     # Find a good install program. We prefer a C program (faster),
7029     # so one script is as good as another. But avoid the broken or
7030     # incompatible versions:
7031     # SysV /etc/install, /usr/sbin/install
7032     # SunOS /usr/etc/install
7033     # IRIX /sbin/install
7034     # AIX /bin/install
7035     # AmigaOS /C/install, which installs bootblocks on floppy discs
7036     # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7037     # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7038     # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7039 gezelter 2081 # OS/2's system install, which has a completely different semantic
7040 gezelter 1490 # ./install, which can be erroneously created by make from ./install.sh.
7041 gezelter 2081 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7042     echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
7043 gezelter 1490 if test -z "$INSTALL"; then
7044     if test "${ac_cv_path_install+set}" = set; then
7045     echo $ECHO_N "(cached) $ECHO_C" >&6
7046     else
7047 gezelter 2081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7048     for as_dir in $PATH
7049     do
7050     IFS=$as_save_IFS
7051     test -z "$as_dir" && as_dir=.
7052     # Account for people who put trailing slashes in PATH elements.
7053     case $as_dir/ in
7054     ./ | .// | /cC/* | \
7055     /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7056     ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7057     /usr/ucb/* ) ;;
7058     *)
7059     # OSF1 and SCO ODT 3.0 have their own names for install.
7060     # Don't use installbsd from OSF since it installs stuff as root
7061     # by default.
7062     for ac_prog in ginstall scoinst install; do
7063     for ac_exec_ext in '' $ac_executable_extensions; do
7064     if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
7065 gezelter 2026 if test $ac_prog = install &&
7066 gezelter 2081 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7067 gezelter 2026 # AIX install. It has an incompatible calling convention.
7068     :
7069     elif test $ac_prog = install &&
7070 gezelter 2081 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7071 gezelter 2026 # program-specific install script used by HP pwplus--don't use.
7072     :
7073     else
7074 gezelter 2081 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7075     break 3
7076 gezelter 2026 fi
7077     fi
7078 gezelter 1490 done
7079 gezelter 2081 done
7080     ;;
7081     esac
7082     done
7083 gezelter 1490
7084 gezelter 2081
7085 gezelter 1490 fi
7086     if test "${ac_cv_path_install+set}" = set; then
7087     INSTALL=$ac_cv_path_install
7088     else
7089     # As a last resort, use the slow shell script. We don't cache a
7090     # path for INSTALL within a source directory, because that will
7091     # break other packages using the cache if that directory is
7092     # removed, or if the path is relative.
7093     INSTALL=$ac_install_sh
7094     fi
7095     fi
7096 gezelter 2081 echo "$as_me:$LINENO: result: $INSTALL" >&5
7097 gezelter 1490 echo "${ECHO_T}$INSTALL" >&6
7098    
7099     # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7100     # It thinks the first close brace ends the variable substitution.
7101     test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7102    
7103     test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7104    
7105     test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7106    
7107 gezelter 2081 echo "$as_me:$LINENO: checking whether ln -s works" >&5
7108 gezelter 1490 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
7109     LN_S=$as_ln_s
7110     if test "$LN_S" = "ln -s"; then
7111 gezelter 2081 echo "$as_me:$LINENO: result: yes" >&5
7112 gezelter 1490 echo "${ECHO_T}yes" >&6
7113     else
7114 gezelter 2081 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
7115 gezelter 1490 echo "${ECHO_T}no, using $LN_S" >&6
7116     fi
7117    
7118 gezelter 2081 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7119     echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
7120     set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
7121 gezelter 1490 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
7122     echo $ECHO_N "(cached) $ECHO_C" >&6
7123     else
7124 gezelter 2081 cat >conftest.make <<\_ACEOF
7125 gezelter 1490 all:
7126 gezelter 2081 @echo 'ac_maketemp="$(MAKE)"'
7127     _ACEOF
7128 gezelter 1490 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7129     eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
7130     if test -n "$ac_maketemp"; then
7131     eval ac_cv_prog_make_${ac_make}_set=yes
7132     else
7133     eval ac_cv_prog_make_${ac_make}_set=no
7134     fi
7135     rm -f conftest.make
7136     fi
7137     if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
7138 gezelter 2081 echo "$as_me:$LINENO: result: yes" >&5
7139 gezelter 1490 echo "${ECHO_T}yes" >&6
7140     SET_MAKE=
7141     else
7142 gezelter 2081 echo "$as_me:$LINENO: result: no" >&5
7143 gezelter 1490 echo "${ECHO_T}no" >&6
7144     SET_MAKE="MAKE=${MAKE-make}"
7145     fi
7146    
7147     if test -n "$ac_tool_prefix"; then
7148     # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7149     set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7150 gezelter 2081 echo "$as_me:$LINENO: checking for $ac_word" >&5
7151 gezelter 1490 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7152     if test "${ac_cv_prog_RANLIB+set}" = set; then
7153     echo $ECHO_N "(cached) $ECHO_C" >&6
7154     else
7155     if test -n "$RANLIB"; then
7156     ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7157     else
7158 gezelter 2081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7159     for as_dir in $PATH
7160     do
7161     IFS=$as_save_IFS
7162     test -z "$as_dir" && as_dir=.
7163     for ac_exec_ext in '' $ac_executable_extensions; do
7164     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7165     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7166     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7167     break 2
7168     fi
7169 gezelter 1490 done
7170 gezelter 2081 done
7171 gezelter 1490
7172     fi
7173     fi
7174     RANLIB=$ac_cv_prog_RANLIB
7175     if test -n "$RANLIB"; then
7176 gezelter 2081 echo "$as_me:$LINENO: result: $RANLIB" >&5
7177 gezelter 1490 echo "${ECHO_T}$RANLIB" >&6
7178     else
7179 gezelter 2081 echo "$as_me:$LINENO: result: no" >&5
7180 gezelter 1490 echo "${ECHO_T}no" >&6
7181     fi
7182    
7183     fi
7184     if test -z "$ac_cv_prog_RANLIB"; then
7185     ac_ct_RANLIB=$RANLIB
7186     # Extract the first word of "ranlib", so it can be a program name with args.
7187     set dummy ranlib; ac_word=$2
7188 gezelter 2081 echo "$as_me:$LINENO: checking for $ac_word" >&5
7189 gezelter 1490 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7190     if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7191     echo $ECHO_N "(cached) $ECHO_C" >&6
7192     else
7193     if test -n "$ac_ct_RANLIB"; then
7194     ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7195     else
7196 gezelter 2081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7197     for as_dir in $PATH
7198     do
7199     IFS=$as_save_IFS
7200     test -z "$as_dir" && as_dir=.
7201     for ac_exec_ext in '' $ac_executable_extensions; do
7202     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7203     ac_cv_prog_ac_ct_RANLIB="ranlib"
7204     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7205     break 2
7206     fi
7207 gezelter 1490 done
7208 gezelter 2081 done
7209 gezelter 1490
7210     test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7211     fi
7212     fi
7213     ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7214     if test -n "$ac_ct_RANLIB"; then
7215 gezelter 2081 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7216 gezelter 1490 echo "${ECHO_T}$ac_ct_RANLIB" >&6
7217     else
7218 gezelter 2081 echo "$as_me:$LINENO: result: no" >&5
7219 gezelter 1490 echo "${ECHO_T}no" >&6
7220     fi
7221    
7222     RANLIB=$ac_ct_RANLIB
7223     else
7224     RANLIB="$ac_cv_prog_RANLIB"
7225     fi
7226    
7227     for ac_prog in 'bison -y' byacc
7228     do
7229     # Extract the first word of "$ac_prog", so it can be a program name with args.
7230     set dummy $ac_prog; ac_word=$2
7231 gezelter 2081 echo "$as_me:$LINENO: checking for $ac_word" >&5
7232 gezelter 1490 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7233     if test "${ac_cv_prog_YACC+set}" = set; then
7234     echo $ECHO_N "(cached) $ECHO_C" >&6
7235     else
7236     if test -n "$YACC"; then
7237     ac_cv_prog_YACC="$YACC" # Let the user override the test.
7238     else
7239 gezelter 2081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7240     for as_dir in $PATH
7241     do
7242     IFS=$as_save_IFS
7243     test -z "$as_dir" && as_dir=.
7244     for ac_exec_ext in '' $ac_executable_extensions; do
7245     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7246     ac_cv_prog_YACC="$ac_prog"
7247     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7248     break 2
7249     fi
7250 gezelter 1490 done
7251 gezelter 2081 done
7252 gezelter 1490
7253     fi
7254     fi
7255     YACC=$ac_cv_prog_YACC
7256     if test -n "$YACC"; then
7257 gezelter 2081 echo "$as_me:$LINENO: result: $YACC" >&5
7258 gezelter 1490 echo "${ECHO_T}$YACC" >&6
7259     else
7260 gezelter 2081 echo "$as_me:$LINENO: result: no" >&5
7261 gezelter 1490 echo "${ECHO_T}no" >&6
7262     fi
7263    
7264     test -n "$YACC" && break
7265     done
7266     test -n "$YACC" || YACC="yacc"
7267    
7268     for ac_prog in flex lex
7269     do
7270     # Extract the first word of "$ac_prog", so it can be a program name with args.
7271     set dummy $ac_prog; ac_word=$2
7272 gezelter 2081 echo "$as_me:$LINENO: checking for $ac_word" >&5
7273 gezelter 1490 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7274     if test "${ac_cv_prog_LEX+set}" = set; then
7275     echo $ECHO_N "(cached) $ECHO_C" >&6
7276     else
7277     if test -n "$LEX"; then
7278     ac_cv_prog_LEX="$LEX" # Let the user override the test.
7279     else
7280 gezelter 2081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7281     for as_dir in $PATH
7282     do
7283     IFS=$as_save_IFS
7284     test -z "$as_dir" && as_dir=.
7285     for ac_exec_ext in '' $ac_executable_extensions; do
7286     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7287     ac_cv_prog_LEX="$ac_prog"
7288     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7289     break 2
7290     fi
7291 gezelter 1490 done
7292 gezelter 2081 done
7293 gezelter 1490
7294     fi
7295     fi
7296     LEX=$ac_cv_prog_LEX
7297     if test -n "$LEX"; then
7298 gezelter 2081 echo "$as_me:$LINENO: result: $LEX" >&5
7299 gezelter 1490 echo "${ECHO_T}$LEX" >&6
7300     else
7301 gezelter 2081 echo "$as_me:$LINENO: result: no" >&5
7302 gezelter 1490 echo "${ECHO_T}no" >&6
7303     fi
7304    
7305     test -n "$LEX" && break
7306     done
7307     test -n "$LEX" || LEX=":"
7308    
7309     if test -z "$LEXLIB"
7310     then
7311 gezelter 2081 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
7312 gezelter 1490 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
7313     if test "${ac_cv_lib_fl_yywrap+set}" = set; then
7314     echo $ECHO_N "(cached) $ECHO_C" >&6
7315     else
7316     ac_check_lib_save_LIBS=$LIBS
7317     LIBS="-lfl $LIBS"
7318     cat >conftest.$ac_ext <<_ACEOF
7319 gezelter 2081 /* confdefs.h. */
7320     _ACEOF
7321     cat confdefs.h >>conftest.$ac_ext
7322     cat >>conftest.$ac_ext <<_ACEOF
7323     /* end confdefs.h. */
7324 gezelter 1490
7325     /* Override any gcc2 internal prototype to avoid an error. */
7326     #ifdef __cplusplus
7327     extern "C"
7328     #endif
7329     /* We use char because int might match the return type of a gcc2
7330     builtin and then its argument prototype would still apply. */
7331     char yywrap ();
7332     int
7333     main ()
7334     {
7335     yywrap ();
7336     ;
7337     return 0;
7338     }
7339     _ACEOF
7340     rm -f conftest.$ac_objext conftest$ac_exeext
7341 gezelter 2081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7342     (eval $ac_link) 2>conftest.er1
7343 gezelter 1490 ac_status=$?
7344 gezelter 2081 grep -v '^ *+' conftest.er1 >conftest.err
7345     rm -f conftest.er1
7346     cat conftest.err >&5
7347     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7348 gezelter 1490 (exit $ac_status); } &&
7349 gezelter 2081 { ac_try='test -z "$ac_c_werror_flag"
7350     || test ! -s conftest.err'
7351     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7352 gezelter 1490 (eval $ac_try) 2>&5
7353     ac_status=$?
7354 gezelter 2081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7355     (exit $ac_status); }; } &&
7356     { ac_try='test -s conftest$ac_exeext'
7357     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7358     (eval $ac_try) 2>&5
7359     ac_status=$?
7360     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7361 gezelter 1490 (exit $ac_status); }; }; then
7362     ac_cv_lib_fl_yywrap=yes
7363     else
7364     echo "$as_me: failed program was:" >&5
7365 gezelter 2081 sed 's/^/| /' conftest.$ac_ext >&5
7366    
7367 gezelter 1490 ac_cv_lib_fl_yywrap=no
7368     fi
7369 gezelter 2081 rm -f conftest.err conftest.$ac_objext \
7370     conftest$ac_exeext conftest.$ac_ext
7371 gezelter 1490 LIBS=$ac_check_lib_save_LIBS
7372     fi
7373 gezelter 2081 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
7374 gezelter 1490 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
7375     if test $ac_cv_lib_fl_yywrap = yes; then
7376     LEXLIB="-lfl"
7377     else
7378 gezelter 2081 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
7379 gezelter 1490 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
7380     if test "${ac_cv_lib_l_yywrap+set}" = set; then
7381     echo $ECHO_N "(cached) $ECHO_C" >&6
7382     else
7383     ac_check_lib_save_LIBS=$LIBS
7384     LIBS="-ll $LIBS"
7385     cat >conftest.$ac_ext <<_ACEOF
7386 gezelter 2081 /* confdefs.h. */
7387     _ACEOF
7388     cat confdefs.h >>conftest.$ac_ext
7389     cat >>conftest.$ac_ext <<_ACEOF
7390     /* end confdefs.h. */
7391 gezelter 1490
7392     /* Override any gcc2 internal prototype to avoid an error. */
7393     #ifdef __cplusplus
7394     extern "C"
7395     #endif
7396     /* We use char because int might match the return type of a gcc2
7397     builtin and then its argument prototype would still apply. */
7398     char yywrap ();
7399     int
7400     main ()
7401     {
7402     yywrap ();
7403     ;
7404     return 0;
7405     }
7406     _ACEOF
7407     rm -f conftest.$ac_objext conftest$ac_exeext
7408 gezelter 2081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7409     (eval $ac_link) 2>conftest.er1
7410 gezelter 1490 ac_status=$?
7411 gezelter 2081 grep -v '^ *+' conftest.er1 >conftest.err
7412     rm -f conftest.er1
7413     cat conftest.err >&5
7414     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7415 gezelter 1490 (exit $ac_status); } &&
7416 gezelter 2081 { ac_try='test -z "$ac_c_werror_flag"
7417     || test ! -s conftest.err'
7418     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7419 gezelter 1490 (eval $ac_try) 2>&5
7420     ac_status=$?
7421 gezelter 2081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7422     (exit $ac_status); }; } &&
7423     { ac_try='test -s conftest$ac_exeext'
7424     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7425     (eval $ac_try) 2>&5
7426     ac_status=$?
7427     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7428 gezelter 1490 (exit $ac_status); }; }; then
7429     ac_cv_lib_l_yywrap=yes
7430     else
7431     echo "$as_me: failed program was:" >&5
7432 gezelter 2081 sed 's/^/| /' conftest.$ac_ext >&5
7433    
7434 gezelter 1490 ac_cv_lib_l_yywrap=no
7435     fi
7436 gezelter 2081 rm -f conftest.err conftest.$ac_objext \
7437     conftest$ac_exeext conftest.$ac_ext
7438 gezelter 1490 LIBS=$ac_check_lib_save_LIBS
7439     fi
7440 gezelter 2081 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
7441 gezelter 1490 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
7442     if test $ac_cv_lib_l_yywrap = yes; then
7443     LEXLIB="-ll"
7444     fi
7445    
7446     fi
7447    
7448     fi
7449    
7450     if test "x$LEX" != "x:"; then
7451 gezelter 2081 echo "$as_me:$LINENO: checking lex output file root" >&5
7452 gezelter 1490 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
7453     if test "${ac_cv_prog_lex_root+set}" = set; then
7454     echo $ECHO_N "(cached) $ECHO_C" >&6
7455     else
7456     # The minimal lex program is just a single line: %%. But some broken lexes
7457     # (Solaris, I think it was) want two %% lines, so accommodate them.
7458 gezelter 2081 cat >conftest.l <<_ACEOF
7459     %%
7460     %%
7461     _ACEOF
7462     { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
7463     (eval $LEX conftest.l) 2>&5
7464     ac_status=$?
7465     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7466     (exit $ac_status); }
7467 gezelter 1490 if test -f lex.yy.c; then
7468     ac_cv_prog_lex_root=lex.yy
7469     elif test -f lexyy.c; then
7470     ac_cv_prog_lex_root=lexyy
7471     else
7472 gezelter 2081 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
7473 gezelter 1490 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
7474     { (exit 1); exit 1; }; }
7475     fi
7476     fi
7477 gezelter 2081 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
7478 gezelter 1490 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
7479 gezelter 2081 rm -f conftest.l
7480 gezelter 1490 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
7481    
7482 gezelter 2081 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
7483 gezelter 1490 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
7484     if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
7485     echo $ECHO_N "(cached) $ECHO_C" >&6
7486     else
7487     # POSIX says lex can declare yytext either as a pointer or an array; the
7488     # default is implementation-dependent. Figure out which it is, since
7489     # not all implementations provide the %pointer and %array declarations.
7490     ac_cv_prog_lex_yytext_pointer=no
7491     echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
7492     ac_save_LIBS=$LIBS
7493     LIBS="$LIBS $LEXLIB"
7494     cat >conftest.$ac_ext <<_ACEOF
7495     `cat $LEX_OUTPUT_ROOT.c`
7496     _ACEOF
7497     rm -f conftest.$ac_objext conftest$ac_exeext
7498 gezelter 2081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7499     (eval $ac_link) 2>conftest.er1
7500 gezelter 1490 ac_status=$?
7501 gezelter 2081 grep -v '^ *+' conftest.er1 >conftest.err
7502     rm -f conftest.er1
7503     cat conftest.err >&5
7504     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7505 gezelter 1490 (exit $ac_status); } &&
7506 gezelter 2081 { ac_try='test -z "$ac_c_werror_flag"
7507     || test ! -s conftest.err'
7508     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7509 gezelter 1490 (eval $ac_try) 2>&5
7510     ac_status=$?
7511 gezelter 2081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7512     (exit $ac_status); }; } &&
7513     { ac_try='test -s conftest$ac_exeext'
7514     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7515     (eval $ac_try) 2>&5
7516     ac_status=$?
7517     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7518 gezelter 1490 (exit $ac_status); }; }; then
7519     ac_cv_prog_lex_yytext_pointer=yes
7520     else
7521     echo "$as_me: failed program was:" >&5
7522 gezelter 2081 sed 's/^/| /' conftest.$ac_ext >&5
7523    
7524 gezelter 1490 fi
7525 gezelter 2081 rm -f conftest.err conftest.$ac_objext \
7526     conftest$ac_exeext conftest.$ac_ext
7527 gezelter 1490 LIBS=$ac_save_LIBS
7528     rm -f "${LEX_OUTPUT_ROOT}.c"
7529    
7530     fi
7531 gezelter 2081 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
7532 gezelter 1490 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
7533     if test $ac_cv_prog_lex_yytext_pointer = yes; then
7534    
7535 gezelter 2081 cat >>confdefs.h <<\_ACEOF
7536 gezelter 1490 #define YYTEXT_POINTER 1
7537 gezelter 2081 _ACEOF
7538 gezelter 1490
7539     fi
7540    
7541     fi
7542 gezelter 2199
7543     # Extract the first word of "perl", so it can be a program name with args.
7544     set dummy perl; ac_word=$2
7545     echo "$as_me:$LINENO: checking for $ac_word" >&5
7546     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7547     if test "${ac_cv_path_PERLINTERP+set}" = set; then
7548     echo $ECHO_N "(cached) $ECHO_C" >&6
7549     else
7550     case $PERLINTERP in
7551     [\\/]* | ?:[\\/]*)
7552     ac_cv_path_PERLINTERP="$PERLINTERP" # Let the user override the test with a path.
7553     ;;
7554     *)
7555     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7556     for as_dir in $PATH
7557     do
7558     IFS=$as_save_IFS
7559     test -z "$as_dir" && as_dir=.
7560     for ac_exec_ext in '' $ac_executable_extensions; do
7561     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7562     ac_cv_path_PERLINTERP="$as_dir/$ac_word$ac_exec_ext"
7563     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7564     break 2
7565     fi
7566     done
7567     done
7568    
7569     test -z "$ac_cv_path_PERLINTERP" && ac_cv_path_PERLINTERP="perl"
7570     ;;
7571     esac
7572     fi
7573     PERLINTERP=$ac_cv_path_PERLINTERP
7574    
7575     if test -n "$PERLINTERP"; then
7576     echo "$as_me:$LINENO: result: $PERLINTERP" >&5
7577     echo "${ECHO_T}$PERLINTERP" >&6
7578     else
7579     echo "$as_me:$LINENO: result: no" >&5
7580     echo "${ECHO_T}no" >&6
7581     fi
7582    
7583     ac_cv_path_perlinterp="$PERLINTERP"
7584     _sHpB='#!'
7585    
7586    
7587     # Check whether --with-perl-shebang or --without-perl-shebang was given.
7588     if test "${with_perl_shebang+set}" = set; then
7589     withval="$with_perl_shebang"
7590     opt_perl_shebang="$withval"
7591     else
7592     opt_perl_shebang="not_set"
7593     fi;
7594     echo "$as_me:$LINENO: checking whether explicit instead of detected sharpbang is to be used" >&5
7595     echo $ECHO_N "checking whether explicit instead of detected sharpbang is to be used... $ECHO_C" >&6
7596     if test "${ax_cv_opt_perl_shebang+set}" = set; then
7597     echo $ECHO_N "(cached) $ECHO_C" >&6
7598     else
7599     case "$opt_perl_shebang" in
7600     not_set ) ax_cv_opt_perl_shebang=''
7601     ;;
7602     * )
7603     ax_cv_opt_perl_shebang=`echo "$opt_perl_shebang" | sed -e's|^#!\s*\(.*\)$|\1|'`
7604     esac
7605    
7606     fi
7607     echo "$as_me:$LINENO: result: $ax_cv_opt_perl_shebang" >&5
7608     echo "${ECHO_T}$ax_cv_opt_perl_shebang" >&6
7609     if test "A$ax_cv_opt_perl_shebang" != "A"
7610     then
7611     ac_cv_sys_kernshrpbang_perl="$ax_cv_opt_perl_shebang"
7612     PERL_SHEBANG="$ac_cv_sys_kernshrpbang_perl"
7613     { echo "$as_me:$LINENO: OK - PERL_SHEBANG is $_sHpB$PERL_SHEBANG." >&5
7614     echo "$as_me: OK - PERL_SHEBANG is $_sHpB$PERL_SHEBANG." >&6;}
7615    
7616     # Automatic detection of sharpbang formula starts here
7617     else
7618     _somian_shbangperl=`$PERLINTERP -V:startperl`
7619     negclass="[^']"; # must leave this comment: m4 will remove the outer brackets for us, heheh
7620     echo "$as_me:$LINENO: checking for kernel sharpbang invocation to start perl" >&5
7621     echo $ECHO_N "checking for kernel sharpbang invocation to start perl... $ECHO_C" >&6
7622     if test "${ac_cv_sys_kernshrpbang_perl+set}" = set; then
7623     echo $ECHO_N "(cached) $ECHO_C" >&6
7624     else
7625     _somian_kspb_perl=`echo "$_somian_shbangperl" | sed -ne"s|.*='\($negclass*\)';$|\1|p"`
7626     if test "x$_somian_kspb_perl" == x
7627     then _somian_ksbp_warn_empty='durnit'
7628     else
7629     case "A$_somian_kspb_perl" in
7630     A#!*perl* )
7631     ac_cv_sys_kernshrpbang_perl=`echo "$_somian_kspb_perl" | sed -e's|#!\(.*\)$|\1|'`
7632     ;;
7633     A* ) _somian_ksbp_warn_defau='trouble'
7634     ac_cv_sys_kernshrpbang_perl="$PERLINTERP"
7635     esac
7636     fi
7637    
7638     fi
7639     echo "$as_me:$LINENO: result: $ac_cv_sys_kernshrpbang_perl" >&5
7640     echo "${ECHO_T}$ac_cv_sys_kernshrpbang_perl" >&6
7641     # The above prints Checking ... result message to user.
7642     PERL_SHEBANG="$ac_cv_sys_kernshrpbang_perl"
7643    
7644     if test A${_somian_ksbp_warn_empty+set} == Aset
7645     then { echo "$as_me:$LINENO: WARNING: In last check, doing $PERLINTERP -V:startperl yielded empty result! That should not happen." >&5
7646     echo "$as_me: WARNING: In last check, doing $PERLINTERP -V:startperl yielded empty result! That should not happen." >&2;}
7647     fi
7648     # Inform user after printing result value
7649     if test A${_somian_ksbp_warn_defau+set} == Aset
7650     then { echo "$as_me:$LINENO: Maybe Not good -" >&5
7651     echo "$as_me: Maybe Not good -" >&6;}
7652     { echo "$as_me:$LINENO: WARNING: In last check perl's Config query did not work so we bunted: $_sHpB$PERLINTERP" >&5
7653     echo "$as_me: WARNING: In last check perl's Config query did not work so we bunted: $_sHpB$PERLINTERP" >&2;}
7654     else { echo "$as_me:$LINENO: OK Good result - " >&5
7655     echo "$as_me: OK Good result - " >&6;}
7656     { echo "$as_me:$LINENO: In last check we got a proper-looking answer from perl's Config: $_somian_shbangperl" >&5
7657     echo "$as_me: In last check we got a proper-looking answer from perl's Config: $_somian_shbangperl" >&6;}
7658     fi
7659     fi
7660    
7661 gezelter 1490 # Extract the first word of "ar", so it can be a program name with args.
7662     set dummy ar; ac_word=$2
7663 gezelter 2081 echo "$as_me:$LINENO: checking for $ac_word" >&5
7664 gezelter 1490 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7665     if test "${ac_cv_prog_AR+set}" = set; then
7666     echo $ECHO_N "(cached) $ECHO_C" >&6
7667     else
7668     if test -n "$AR"; then
7669     ac_cv_prog_AR="$AR" # Let the user override the test.
7670     else
7671 gezelter 2081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7672     for as_dir in $PATH
7673     do
7674     IFS=$as_save_IFS
7675     test -z "$as_dir" && as_dir=.
7676     for ac_exec_ext in '' $ac_executable_extensions; do
7677     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7678     ac_cv_prog_AR="ar"
7679     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7680     break 2
7681     fi
7682 gezelter 1490 done
7683 gezelter 2081 done
7684 gezelter 1490
7685     test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="NONE"
7686     fi
7687     fi
7688     AR=$ac_cv_prog_AR
7689     if test -n "$AR"; then
7690 gezelter 2081 echo "$as_me:$LINENO: result: $AR" >&5
7691 gezelter 1490 echo "${ECHO_T}$AR" >&6
7692     else
7693 gezelter 2081 echo "$as_me:$LINENO: result: no" >&5
7694 gezelter 1490 echo "${ECHO_T}no" >&6
7695     fi
7696    
7697     if test "$AR" = "NONE"; then
7698 gezelter 2081 { { echo "$as_me:$LINENO: error: --> Can't find \`ar'!" >&5
7699 gezelter 1490 echo "$as_me: error: --> Can't find \`ar'!" >&2;}
7700     { (exit 1); exit 1; }; }
7701     cat >confcache <<\_ACEOF
7702     # This file is a shell script that caches the results of configure
7703     # tests run on this system so they can be shared between configure
7704     # scripts and configure runs, see configure's option --config-cache.
7705     # It is not useful on other systems. If it contains results you don't
7706     # want to keep, you may remove or edit it.
7707     #
7708     # config.status only pays attention to the cache file if you give it
7709     # the --recheck option to rerun configure.
7710     #
7711 gezelter 2081 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7712 gezelter 1490 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7713     # following values.
7714    
7715     _ACEOF
7716    
7717     # The following way of writing the cache mishandles newlines in values,
7718     # but we know of no workaround that is simple, portable, and efficient.
7719     # So, don't put newlines in cache variables' values.
7720     # Ultrix sh set writes to stderr and can't be redirected directly,
7721     # and sets the high bit in the cache file unless we assign to the vars.
7722     {
7723     (set) 2>&1 |
7724     case `(ac_space=' '; set | grep ac_space) 2>&1` in
7725     *ac_space=\ *)
7726     # `set' does not quote correctly, so add quotes (double-quote
7727     # substitution turns \\\\ into \\, and sed turns \\ into \).
7728     sed -n \
7729 gezelter 2081 "s/'/'\\\\''/g;
7730     s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7731 gezelter 1490 ;;
7732     *)
7733     # `set' quotes correctly as required by POSIX, so do not add quotes.
7734     sed -n \
7735 gezelter 2081 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
7736 gezelter 1490 ;;
7737     esac;
7738     } |
7739     sed '
7740     t clear
7741     : clear
7742     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7743     t end
7744     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7745     : end' >>confcache
7746 gezelter 2081 if diff $cache_file confcache >/dev/null 2>&1; then :; else
7747 gezelter 1490 if test -w $cache_file; then
7748     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
7749     cat confcache >$cache_file
7750     else
7751     echo "not updating unwritable cache $cache_file"
7752     fi
7753     fi
7754     rm -f confcache
7755     exit 1
7756     fi
7757    
7758 gezelter 2022 # Extract the first word of "ps", so it can be a program name with args.
7759     set dummy ps; ac_word=$2
7760 gezelter 2081 echo "$as_me:$LINENO: checking for $ac_word" >&5
7761 gezelter 2022 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7762 gezelter 2023 if test "${ac_cv_path_PS+set}" = set; then
7763 gezelter 2022 echo $ECHO_N "(cached) $ECHO_C" >&6
7764     else
7765 gezelter 2023 case $PS in
7766 gezelter 2022 [\\/]* | ?:[\\/]*)
7767 gezelter 2023 ac_cv_path_PS="$PS" # Let the user override the test with a path.
7768 gezelter 2022 ;;
7769     *)
7770 gezelter 2081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7771     for as_dir in $PATH
7772     do
7773     IFS=$as_save_IFS
7774     test -z "$as_dir" && as_dir=.
7775     for ac_exec_ext in '' $ac_executable_extensions; do
7776     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7777     ac_cv_path_PS="$as_dir/$ac_word$ac_exec_ext"
7778     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7779     break 2
7780     fi
7781 gezelter 2022 done
7782 gezelter 2081 done
7783 gezelter 1490
7784 gezelter 2022 ;;
7785     esac
7786     fi
7787 gezelter 2023 PS=$ac_cv_path_PS
7788 gezelter 1490
7789 gezelter 2023 if test -n "$PS"; then
7790 gezelter 2081 echo "$as_me:$LINENO: result: $PS" >&5
7791 gezelter 2023 echo "${ECHO_T}$PS" >&6
7792 gezelter 2022 else
7793 gezelter 2081 echo "$as_me:$LINENO: result: no" >&5
7794 gezelter 2022 echo "${ECHO_T}no" >&6
7795     fi
7796    
7797 gezelter 2081 echo "$as_me:$LINENO: checking for POSIX or BSD ps syntax" >&5
7798 gezelter 2024 echo $ECHO_N "checking for POSIX or BSD ps syntax... $ECHO_C" >&6
7799     if test "${ac_cv_prog_ps_syntax+set}" = set; then
7800 gezelter 2022 echo $ECHO_N "(cached) $ECHO_C" >&6
7801     else
7802    
7803 gezelter 2026 if $PS ax -o rss > /dev/null 2>&1; then
7804     ac_cv_prog_ps_ax=yes
7805     else
7806     ac_cv_prog_ps_ax=no
7807     fi
7808 gezelter 2024 if $PS -ef -o rss > /dev/null 2>&1; then
7809     ac_cv_prog_ps_ef=yes
7810 gezelter 2022 else
7811 gezelter 2024 ac_cv_prog_ps_ef=no
7812 gezelter 2022 fi
7813 gezelter 2026 if test "$ac_cv_prog_ps_ax" = yes; then
7814     ac_cv_prog_ps_syntax=BSD
7815 gezelter 2024 else
7816 gezelter 2029 if test "$ac_cv_prog_ps_ef" = yes; then
7817 gezelter 2026 ac_cv_prog_ps_syntax=POSIX
7818 gezelter 2024 else
7819 gezelter 2081 { { echo "$as_me:$LINENO: error: Could not determine ps syntax" >&5
7820 gezelter 2024 echo "$as_me: error: Could not determine ps syntax" >&2;}
7821     { (exit 1); exit 1; }; }
7822     fi
7823     fi
7824 gezelter 2022
7825     fi
7826 gezelter 2081 echo "$as_me:$LINENO: result: $ac_cv_prog_ps_syntax" >&5
7827 gezelter 2024 echo "${ECHO_T}$ac_cv_prog_ps_syntax" >&6
7828 gezelter 2022
7829 gezelter 2081
7830     cat >>confdefs.h <<_ACEOF
7831 gezelter 2027 #define PSCOMMAND $PS
7832 gezelter 2081 _ACEOF
7833 gezelter 2022
7834 gezelter 2081
7835 gezelter 2029 if test "$ac_cv_prog_ps_syntax" = BSD; then
7836 gezelter 2081 cat >>confdefs.h <<\_ACEOF
7837 gezelter 2029 #define PSTYPE_IS_BSD 1
7838 gezelter 2081 _ACEOF
7839 gezelter 2022
7840 gezelter 2029 else
7841     if test "$ac_cv_prog_ps_syntax" = POSIX; then
7842 gezelter 2081 cat >>confdefs.h <<\_ACEOF
7843 gezelter 2029 #define PSTYPE_IS_POSIX 1
7844 gezelter 2081 _ACEOF
7845 gezelter 2022
7846 gezelter 2029 else
7847 gezelter 2081 { { echo "$as_me:$LINENO: error: Unknown ps syntax type!" >&5
7848 gezelter 2029 echo "$as_me: error: Unknown ps syntax type!" >&2;}
7849     { (exit 1); exit 1; }; }
7850     fi
7851     fi
7852 gezelter 2022
7853 gezelter 2081
7854 gezelter 1490 # Check whether --with-mpi or --without-mpi was given.
7855     if test "${with_mpi+set}" = set; then
7856     withval="$with_mpi"
7857     with_mpi=$withval
7858     else
7859     with_mpi="no"
7860     fi;
7861    
7862     case "x$with_mpi" in
7863     xyes | "x") USE_MPI=yes;;
7864     xno) USE_MPI=no ;;
7865     *) MPI="$with_mpi"; USE_MPI=yes ;;
7866     esac
7867     if test "$USE_MPI" = "yes" -a -z "$with_mpi"; then
7868     MPI="/usr/local"
7869     fi
7870     if test "$USE_MPI" = "yes"; then
7871    
7872 gezelter 2081
7873 gezelter 1490 # Set variables...
7874     MPI_LIB_DIR="$MPI/lib"
7875     MPI_INC_DIR="$MPI/include"
7876    
7877 gezelter 2081
7878    
7879     echo "$as_me:$LINENO: checking for mpi.h" >&5
7880 gezelter 1490 echo $ECHO_N "checking for mpi.h... $ECHO_C" >&6
7881     have_mpi_h=0
7882 gezelter 2265 rm -f conftest*
7883 gezelter 1490 echo '#include <mpi.h>' > conftest.cc
7884 gezelter 2265 if ${CXX} -I${MPI_INC_DIR} -c conftest.cc 2>&1 ; then
7885 gezelter 2081 echo "$as_me:$LINENO: result: yes" >&5
7886 gezelter 1490 echo "${ECHO_T}yes" >&6
7887     have_mpi_h=1
7888     else
7889 gezelter 2265 if test -s conftest.out ; then
7890     cat conftest.out >> config.log
7891     fi
7892 gezelter 2081 echo "$as_me:$LINENO: result: no! Check MPI include paths" >&5
7893 gezelter 1490 echo "${ECHO_T}no! Check MPI include paths" >&6
7894     USE_MPI="no"
7895     fi
7896     rm -f conftest*
7897     if test "$have_mpi_h" = 1; then
7898    
7899 gezelter 2081 cat >>confdefs.h <<\_ACEOF
7900 gezelter 1490 #define HAVE_MPI_H 1
7901 gezelter 2081 _ACEOF
7902 gezelter 1490
7903     fi
7904    
7905 gezelter 2081 echo "$as_me:$LINENO: checking whether mpif.h is usable" >&5
7906 gezelter 1490 echo $ECHO_N "checking whether mpif.h is usable... $ECHO_C" >&6
7907     have_mpif_h=0
7908     rm -f conftest*
7909     cat >conftest.f90 <<EOF
7910     program main
7911     include 'mpif.h'
7912     end
7913     EOF
7914     if $F90 -I$MPI_INC_DIR -c conftest.f90 > conftest.out 2>&1 ; then
7915 gezelter 2081 echo "$as_me:$LINENO: result: yes" >&5
7916 gezelter 1490 echo "${ECHO_T}yes" >&6
7917     MPI_F90_INC="$MPI_INC_DIR"
7918     have_mpif_h=1
7919     else
7920     if test -s conftest.out ; then
7921     cat conftest.out >> config.log
7922     fi
7923 gezelter 2081 echo "$as_me:$LINENO: result: no! Check MPI include paths" >&5
7924 gezelter 1490 echo "${ECHO_T}no! Check MPI include paths" >&6
7925     USE_MPI="no"
7926     fi
7927     rm -f conftest*
7928    
7929     if test "$have_mpif_h" = 1; then
7930    
7931 gezelter 2081 cat >>confdefs.h <<\_ACEOF
7932 gezelter 1490 #define HAVE_MPIF_H 1
7933 gezelter 2081 _ACEOF
7934 gezelter 1490
7935     fi
7936    
7937     ac_ext=c
7938     ac_cpp='$CPP $CPPFLAGS'
7939     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7940     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7941     ac_compiler_gnu=$ac_cv_c_compiler_gnu
7942    
7943     ac_save_LDFLAGS=$LDFLAGS
7944     LDFLAGS="${LDFLAGS} -L${MPI_LIB_DIR} "
7945    
7946     if test x = x"$MPI_LIB"; then
7947 gezelter 2081 echo "$as_me:$LINENO: checking for MPI_Init in -lmpich" >&5
7948 gezelter 1490 echo $ECHO_N "checking for MPI_Init in -lmpich... $ECHO_C" >&6
7949     if test "${ac_cv_lib_mpich_MPI_Init+set}" = set; then
7950     echo $ECHO_N "(cached) $ECHO_C" >&6
7951     else
7952     ac_check_lib_save_LIBS=$LIBS
7953     LIBS="-lmpich $LIBS"
7954     cat >conftest.$ac_ext <<_ACEOF
7955 gezelter 2081 /* confdefs.h. */
7956     _ACEOF
7957     cat confdefs.h >>conftest.$ac_ext
7958     cat >>conftest.$ac_ext <<_ACEOF
7959     /* end confdefs.h. */
7960 gezelter 1490
7961     /* Override any gcc2 internal prototype to avoid an error. */
7962     #ifdef __cplusplus
7963     extern "C"
7964     #endif
7965     /* We use char because int might match the return type of a gcc2
7966     builtin and then its argument prototype would still apply. */
7967     char MPI_Init ();
7968     int
7969     main ()
7970     {
7971     MPI_Init ();
7972     ;
7973     return 0;
7974     }
7975     _ACEOF
7976     rm -f conftest.$ac_objext conftest$ac_exeext
7977 gezelter 2081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7978     (eval $ac_link) 2>conftest.er1
7979 gezelter 1490 ac_status=$?
7980 gezelter 2081 grep -v '^ *+' conftest.er1 >conftest.err
7981     rm -f conftest.er1
7982     cat conftest.err >&5
7983     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7984 gezelter 1490 (exit $ac_status); } &&
7985 gezelter 2081 { ac_try='test -z "$ac_c_werror_flag"
7986     || test ! -s conftest.err'
7987     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7988 gezelter 1490 (eval $ac_try) 2>&5
7989     ac_status=$?
7990 gezelter 2081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7991     (exit $ac_status); }; } &&
7992     { ac_try='test -s conftest$ac_exeext'
7993     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7994     (eval $ac_try) 2>&5
7995     ac_status=$?
7996     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7997 gezelter 1490 (exit $ac_status); }; }; then
7998     ac_cv_lib_mpich_MPI_Init=yes
7999     else
8000     echo "$as_me: failed program was:" >&5
8001 gezelter 2081 sed 's/^/| /' conftest.$ac_ext >&5
8002    
8003 gezelter 1490 ac_cv_lib_mpich_MPI_Init=no
8004     fi
8005 gezelter 2081 rm -f conftest.err conftest.$ac_objext \
8006     conftest$ac_exeext conftest.$ac_ext
8007 gezelter 1490 LIBS=$ac_check_lib_save_LIBS
8008     fi
8009 gezelter 2081 echo "$as_me:$LINENO: result: $ac_cv_lib_mpich_MPI_Init" >&5
8010 gezelter 1490 echo "${ECHO_T}$ac_cv_lib_mpich_MPI_Init" >&6
8011     if test $ac_cv_lib_mpich_MPI_Init = yes; then
8012     MPI_LIB="-lmpich"
8013     fi
8014    
8015     fi
8016     if test x = x"$MPI_LIB"; then
8017 gezelter 2081 echo "$as_me:$LINENO: checking for MPI_Init in -lmpi" >&5
8018 gezelter 1490 echo $ECHO_N "checking for MPI_Init in -lmpi... $ECHO_C" >&6
8019     if test "${ac_cv_lib_mpi_MPI_Init+set}" = set; then
8020     echo $ECHO_N "(cached) $ECHO_C" >&6
8021     else
8022     ac_check_lib_save_LIBS=$LIBS
8023     LIBS="-lmpi $LIBS"
8024     cat >conftest.$ac_ext <<_ACEOF
8025 gezelter 2081 /* confdefs.h. */
8026     _ACEOF
8027     cat confdefs.h >>conftest.$ac_ext
8028     cat >>conftest.$ac_ext <<_ACEOF
8029     /* end confdefs.h. */
8030 gezelter 1490
8031     /* Override any gcc2 internal prototype to avoid an error. */
8032     #ifdef __cplusplus
8033     extern "C"
8034     #endif
8035     /* We use char because int might match the return type of a gcc2
8036     builtin and then its argument prototype would still apply. */
8037     char MPI_Init ();
8038     int
8039     main ()
8040     {
8041     MPI_Init ();
8042     ;
8043     return 0;
8044     }
8045     _ACEOF
8046     rm -f conftest.$ac_objext conftest$ac_exeext
8047 gezelter 2081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8048     (eval $ac_link) 2>conftest.er1
8049 gezelter 1490 ac_status=$?
8050 gezelter 2081 grep -v '^ *+' conftest.er1 >conftest.err
8051     rm -f conftest.er1
8052     cat conftest.err >&5
8053     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8054 gezelter 1490 (exit $ac_status); } &&
8055 gezelter 2081 { ac_try='test -z "$ac_c_werror_flag"
8056     || test ! -s conftest.err'
8057     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8058 gezelter 1490 (eval $ac_try) 2>&5
8059     ac_status=$?
8060 gezelter 2081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8061     (exit $ac_status); }; } &&
8062     { ac_try='test -s conftest$ac_exeext'
8063     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8064     (eval $ac_try) 2>&5
8065     ac_status=$?
8066     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8067 gezelter 1490 (exit $ac_status); }; }; then
8068     ac_cv_lib_mpi_MPI_Init=yes
8069     else
8070     echo "$as_me: failed program was:" >&5
8071 gezelter 2081 sed 's/^/| /' conftest.$ac_ext >&5
8072    
8073 gezelter 1490 ac_cv_lib_mpi_MPI_Init=no
8074     fi
8075 gezelter 2081 rm -f conftest.err conftest.$ac_objext \
8076     conftest$ac_exeext conftest.$ac_ext
8077 gezelter 1490 LIBS=$ac_check_lib_save_LIBS
8078     fi
8079 gezelter 2081 echo "$as_me:$LINENO: result: $ac_cv_lib_mpi_MPI_Init" >&5
8080 gezelter 1490 echo "${ECHO_T}$ac_cv_lib_mpi_MPI_Init" >&6
8081     if test $ac_cv_lib_mpi_MPI_Init = yes; then
8082     MPI_LIB="-lmpi"
8083     fi
8084    
8085     fi
8086     $as_unset ac_cv_lib_mpi_MPI_Init
8087     if test x = x"$MPI_LIB"; then
8088 gezelter 2081 echo "$as_me:$LINENO: checking for MPI_Init in -lmpi" >&5
8089 gezelter 1490 echo $ECHO_N "checking for MPI_Init in -lmpi... $ECHO_C" >&6
8090     if test "${ac_cv_lib_mpi_MPI_Init+set}" = set; then
8091     echo $ECHO_N "(cached) $ECHO_C" >&6
8092     else
8093     ac_check_lib_save_LIBS=$LIBS
8094     LIBS="-lmpi "-llam" $LIBS"
8095     cat >conftest.$ac_ext <<_ACEOF
8096 gezelter 2081 /* confdefs.h. */
8097     _ACEOF
8098     cat confdefs.h >>conftest.$ac_ext
8099     cat >>conftest.$ac_ext <<_ACEOF
8100     /* end confdefs.h. */
8101 gezelter 1490
8102     /* Override any gcc2 internal prototype to avoid an error. */
8103     #ifdef __cplusplus
8104     extern "C"
8105     #endif
8106     /* We use char because int might match the return type of a gcc2
8107     builtin and then its argument prototype would still apply. */
8108     char MPI_Init ();
8109     int
8110     main ()
8111     {
8112     MPI_Init ();
8113     ;
8114     return 0;
8115     }
8116     _ACEOF
8117     rm -f conftest.$ac_objext conftest$ac_exeext
8118 gezelter 2081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8119     (eval $ac_link) 2>conftest.er1
8120 gezelter 1490 ac_status=$?
8121 gezelter 2081 grep -v '^ *+' conftest.er1 >conftest.err
8122     rm -f conftest.er1
8123     cat conftest.err >&5
8124     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8125 gezelter 1490 (exit $ac_status); } &&
8126 gezelter 2081 { ac_try='test -z "$ac_c_werror_flag"
8127     || test ! -s conftest.err'
8128     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8129 gezelter 1490 (eval $ac_try) 2>&5
8130     ac_status=$?
8131 gezelter 2081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8132     (exit $ac_status); }; } &&
8133     { ac_try='test -s conftest$ac_exeext'
8134     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8135     (eval $ac_try) 2>&5
8136     ac_status=$?
8137     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8138 gezelter 1490 (exit $ac_status); }; }; then
8139     ac_cv_lib_mpi_MPI_Init=yes
8140     else
8141     echo "$as_me: failed program was:" >&5
8142 gezelter 2081 sed 's/^/| /' conftest.$ac_ext >&5
8143    
8144 gezelter 1490 ac_cv_lib_mpi_MPI_Init=no
8145     fi
8146 gezelter 2081 rm -f conftest.err conftest.$ac_objext \
8147     conftest$ac_exeext conftest.$ac_ext
8148 gezelter 1490 LIBS=$ac_check_lib_save_LIBS
8149     fi
8150 gezelter 2081 echo "$as_me:$LINENO: result: $ac_cv_lib_mpi_MPI_Init" >&5
8151 gezelter 1490 echo "${ECHO_T}$ac_cv_lib_mpi_MPI_Init" >&6
8152     if test $ac_cv_lib_mpi_MPI_Init = yes; then
8153     MPI_LIB="-lmpi -llam"
8154     fi
8155    
8156     fi
8157 chuckv 1619 $as_unset ac_cv_lib_mpich_MPI_Init
8158     if test x = x"$MPI_LIB"; then
8159 gezelter 2081 echo "$as_me:$LINENO: checking for MPI_Init in -lmpich" >&5
8160 chuckv 1619 echo $ECHO_N "checking for MPI_Init in -lmpich... $ECHO_C" >&6
8161     if test "${ac_cv_lib_mpich_MPI_Init+set}" = set; then
8162     echo $ECHO_N "(cached) $ECHO_C" >&6
8163     else
8164     ac_check_lib_save_LIBS=$LIBS
8165     LIBS="-lmpich "-lpmpich" $LIBS"
8166     cat >conftest.$ac_ext <<_ACEOF
8167 gezelter 2081 /* confdefs.h. */
8168     _ACEOF
8169     cat confdefs.h >>conftest.$ac_ext
8170     cat >>conftest.$ac_ext <<_ACEOF
8171     /* end confdefs.h. */
8172 gezelter 1490
8173 chuckv 1619 /* Override any gcc2 internal prototype to avoid an error. */
8174     #ifdef __cplusplus
8175     extern "C"
8176     #endif
8177     /* We use char because int might match the return type of a gcc2
8178     builtin and then its argument prototype would still apply. */
8179     char MPI_Init ();
8180     int
8181     main ()
8182     {
8183     MPI_Init ();
8184     ;
8185     return 0;
8186     }
8187     _ACEOF
8188     rm -f conftest.$ac_objext conftest$ac_exeext
8189 gezelter 2081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8190     (eval $ac_link) 2>conftest.er1
8191 chuckv 1619 ac_status=$?
8192 gezelter 2081 grep -v '^ *+' conftest.er1 >conftest.err
8193     rm -f conftest.er1
8194     cat conftest.err >&5
8195     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8196 chuckv 1619 (exit $ac_status); } &&
8197 gezelter 2081 { ac_try='test -z "$ac_c_werror_flag"
8198     || test ! -s conftest.err'
8199     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8200 chuckv 1619 (eval $ac_try) 2>&5
8201     ac_status=$?
8202 gezelter 2081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8203     (exit $ac_status); }; } &&
8204     { ac_try='test -s conftest$ac_exeext'
8205     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8206     (eval $ac_try) 2>&5
8207     ac_status=$?
8208     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8209 chuckv 1619 (exit $ac_status); }; }; then
8210     ac_cv_lib_mpich_MPI_Init=yes
8211     else
8212     echo "$as_me: failed program was:" >&5
8213 gezelter 2081 sed 's/^/| /' conftest.$ac_ext >&5
8214    
8215 chuckv 1619 ac_cv_lib_mpich_MPI_Init=no
8216     fi
8217 gezelter 2081 rm -f conftest.err conftest.$ac_objext \
8218     conftest$ac_exeext conftest.$ac_ext
8219 chuckv 1619 LIBS=$ac_check_lib_save_LIBS
8220     fi
8221 gezelter 2081 echo "$as_me:$LINENO: result: $ac_cv_lib_mpich_MPI_Init" >&5
8222 chuckv 1619 echo "${ECHO_T}$ac_cv_lib_mpich_MPI_Init" >&6
8223     if test $ac_cv_lib_mpich_MPI_Init = yes; then
8224     MPI_LIB="-lmpich -lpmpich"
8225     fi
8226    
8227     fi
8228    
8229 gezelter 1490 $as_unset ac_cv_lib_mpi_MPI_Init
8230     if test x = x"$MPI_LIB"; then
8231 gezelter 2081 echo "$as_me:$LINENO: checking for MPI_Init in -lmpi" >&5
8232 gezelter 1490 echo $ECHO_N "checking for MPI_Init in -lmpi... $ECHO_C" >&6
8233     if test "${ac_cv_lib_mpi_MPI_Init+set}" = set; then
8234     echo $ECHO_N "(cached) $ECHO_C" >&6
8235     else
8236     ac_check_lib_save_LIBS=$LIBS
8237     LIBS="-lmpi -llam -lpthread $LIBS"
8238     cat >conftest.$ac_ext <<_ACEOF
8239 gezelter 2081 /* confdefs.h. */
8240     _ACEOF
8241     cat confdefs.h >>conftest.$ac_ext
8242     cat >>conftest.$ac_ext <<_ACEOF
8243     /* end confdefs.h. */
8244 gezelter 1490
8245     /* Override any gcc2 internal prototype to avoid an error. */
8246     #ifdef __cplusplus
8247     extern "C"
8248     #endif
8249     /* We use char because int might match the return type of a gcc2
8250     builtin and then its argument prototype would still apply. */
8251     char MPI_Init ();
8252     int
8253     main ()
8254     {
8255     MPI_Init ();
8256     ;
8257     return 0;
8258     }
8259     _ACEOF
8260     rm -f conftest.$ac_objext conftest$ac_exeext
8261 gezelter 2081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8262     (eval $ac_link) 2>conftest.er1
8263 gezelter 1490 ac_status=$?
8264 gezelter 2081 grep -v '^ *+' conftest.er1 >conftest.err
8265     rm -f conftest.er1
8266     cat conftest.err >&5
8267     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8268 gezelter 1490 (exit $ac_status); } &&
8269 gezelter 2081 { ac_try='test -z "$ac_c_werror_flag"
8270     || test ! -s conftest.err'
8271     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8272 gezelter 1490 (eval $ac_try) 2>&5
8273     ac_status=$?
8274 gezelter 2081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8275     (exit $ac_status); }; } &&
8276     { ac_try='test -s conftest$ac_exeext'
8277     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8278     (eval $ac_try) 2>&5
8279     ac_status=$?
8280     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8281 gezelter 1490 (exit $ac_status); }; }; then
8282     ac_cv_lib_mpi_MPI_Init=yes
8283     else
8284     echo "$as_me: failed program was:" >&5
8285 gezelter 2081 sed 's/^/| /' conftest.$ac_ext >&5
8286    
8287 gezelter 1490 ac_cv_lib_mpi_MPI_Init=no
8288     fi
8289 gezelter 2081 rm -f conftest.err conftest.$ac_objext \
8290     conftest$ac_exeext conftest.$ac_ext
8291 gezelter 1490 LIBS=$ac_check_lib_save_LIBS
8292     fi
8293 gezelter 2081 echo "$as_me:$LINENO: result: $ac_cv_lib_mpi_MPI_Init" >&5
8294 gezelter 1490 echo "${ECHO_T}$ac_cv_lib_mpi_MPI_Init" >&6
8295     if test $ac_cv_lib_mpi_MPI_Init = yes; then
8296     MPI_LIB="-lmpi -llam -lpthread"
8297     else
8298    
8299 gezelter 2081 { { echo "$as_me:$LINENO: error: Didn't find liblam, libmpi, or libmpich; check path for MPI package first..." >&5
8300 gezelter 1490 echo "$as_me: error: Didn't find liblam, libmpi, or libmpich; check path for MPI package first..." >&2;}
8301     { (exit 1); exit 1; }; }
8302     USE_MPI="no"
8303    
8304     fi
8305    
8306     fi
8307    
8308 gezelter 2081
8309    
8310     echo "$as_me:$LINENO: checking for MPI Fortran library" >&5
8311 gezelter 1490 echo $ECHO_N "checking for MPI Fortran library... $ECHO_C" >&6
8312     MPI_F90_LIB=""
8313     if test -f "$MPI_LIB_DIR/libfmpich.a" ; then
8314     MPI_F90_LIB="-lfmpich"
8315     elif test -f "$MPI_LIB_DIR/liblamf77mpi.a" ; then
8316     MPI_F90_LIB="-llamf77mpi"
8317     else
8318     MPI_F90_LIB=" "
8319     fi
8320 gezelter 2081 echo "$as_me:$LINENO: result: found $MPI_F90_LIB" >&5
8321 gezelter 1490 echo "${ECHO_T}found $MPI_F90_LIB" >&6
8322    
8323    
8324     fi
8325    
8326    
8327    
8328    
8329 gezelter 2190 USE_CGAL=no
8330     cgal_makefile=auto
8331 gezelter 1490
8332 gezelter 2190 # Check whether --with-cgal-makefile or --without-cgal-makefile was given.
8333     if test "${with_cgal_makefile+set}" = set; then
8334     withval="$with_cgal_makefile"
8335     cgal_makefile="$withval"
8336     fi;
8337    
8338     if test "x$cgal_makefile" != xno; then
8339    
8340     if test "x$cgal_makefile" = xauto -a "x$CGAL_MAKEFILE" != x; then
8341     cgal_makefile="$CGAL_MAKEFILE"
8342     fi
8343    
8344 gezelter 2203 echo "$as_me:$LINENO: checking for cgal_makefile: $cgal_makefile" >&5
8345     echo $ECHO_N "checking for cgal_makefile: $cgal_makefile... $ECHO_C" >&6
8346 gezelter 2190
8347     if test -f "$cgal_makefile"; then
8348    
8349     cat >config.tmp.Makefile <<EOF
8350     include $cgal_makefile
8351     default:
8352     @echo CGAL_OS_COMPILER=\"\${CGAL_OS_COMPILER}\" >config.tmp.cgalvariables
8353     @echo CGAL_INCLDIR=\"\${CGAL_INCL_DIR}\" >>config.tmp.cgalvariables
8354     @echo CGAL_INCLCONFDIR=\"\${CGAL_INCL_CONF_DIR}\" >>config.tmp.cgalvariables
8355     @echo CGAL_LIBDIR=\"\${CGAL_LIB_DIR}/\${CGAL_OS_COMPILER}\" >>config.tmp.cgalvariables
8356     @echo CGAL_RLIBDIR=\"\${CGAL_LIB_DIR}/\${CGAL_OS_COMPILER}\" >>config.tmp.cgalvariables
8357     @echo CGAL_CXXFLAGS=\"\${CGAL_CXXFLAGS}\" >>config.tmp.cgalvariables
8358     @echo GMP_INCLDIR=\"\${GMP_INCL_DIR}\" >>config.tmp.cgalvariables
8359     @echo GMP_LIBDIR=\"\${GMP_LIB_DIR}\" >>config.tmp.cgalvariables
8360     @echo GMP_RLIBDIR=\"\${GMP_LIB_DIR}\" >>config.tmp.cgalvariables
8361     @echo LEDA_INCLDIR=\"\${LEDA_INCL_DIR}\" >>config.tmp.cgalvariables
8362     @echo LEDA_LIBDIR=\"\${LEDA_LIB_DIR}\" >>config.tmp.cgalvariables
8363     @echo LEDA_RLIBDIR=\"\${LEDA_LIB_DIR}\" >>config.tmp.cgalvariables
8364     EOF
8365    
8366     make -s -f config.tmp.Makefile
8367     . config.tmp.cgalvariables
8368    
8369     rm -f config.tmp.Makefile config.tmp.cgalvariables
8370    
8371     if test "x$CGAL_INCLDIR" = "x"; then
8372     CGAL_INCLDIR=""
8373     fi
8374    
8375     if test "x$CGAL_LIBDIR" = "x"; then
8376     CGAL_LIBDIR=""
8377     fi
8378    
8379     if test "x$CGAL_RLIBDIR" = "x"; then
8380     CGAL_RLIBDIR=""
8381     fi
8382    
8383     if test "x$LEDA_INCLDIR" = "x"; then
8384     LEDA_INCLDIR=""
8385     fi
8386    
8387     if test "x$LEDA_LIBDIR" = "x"; then
8388     LEDA_LIBDIR=""
8389     fi
8390    
8391     if test "x$LEDA_RLIBDIR" = "x"; then
8392     LEDA_RLIBDIR=""
8393     fi
8394    
8395     if test "x$GMP_INCLDIR" = "x"; then
8396     GMP_INCLDIR=""
8397     fi
8398    
8399     if test "x$GMP_LIBDIR" = "x"; then
8400     GMP_LIBDIR=""
8401     fi
8402    
8403     if test "x$GMP_RLIBDIR" = "x"; then
8404     GMP_RLIBDIR=""
8405     fi
8406    
8407 gezelter 2203 echo "$as_me:$LINENO: result: CGAL_OS_COMPILER= $CGAL_OS_COMPILER" >&5
8408     echo "${ECHO_T}CGAL_OS_COMPILER= $CGAL_OS_COMPILER" >&6
8409     echo "$as_me:$LINENO: result: CGAL_INCLDIR= $CGAL_INCLDIR" >&5
8410     echo "${ECHO_T}CGAL_INCLDIR= $CGAL_INCLDIR" >&6
8411     echo "$as_me:$LINENO: result: CGAL_INCLCONFDIR= $CGAL_INCLCONFDIR" >&5
8412     echo "${ECHO_T}CGAL_INCLCONFDIR= $CGAL_INCLCONFDIR" >&6
8413     echo "$as_me:$LINENO: result: CGAL_LIBDIR= $CGAL_LIBDIR" >&5
8414     echo "${ECHO_T}CGAL_LIBDIR= $CGAL_LIBDIR" >&6
8415     echo "$as_me:$LINENO: result: CGAL_CXXFLAGS= $CGAL_CXXFLAGS" >&5
8416     echo "${ECHO_T}CGAL_CXXFLAGS= $CGAL_CXXFLAGS" >&6
8417     echo "$as_me:$LINENO: result: LEDA_INCLDIR= $LEDA_INCLDIR" >&5
8418     echo "${ECHO_T}LEDA_INCLDIR= $LEDA_INCLDIR" >&6
8419     echo "$as_me:$LINENO: result: LEDA_LIBDIR= $LEDA_LIBDIR" >&5
8420     echo "${ECHO_T}LEDA_LIBDIR= $LEDA_LIBDIR" >&6
8421     echo "$as_me:$LINENO: result: GMP_INCLDIR= $GMP_INCLDIR" >&5
8422     echo "${ECHO_T}GMP_INCLDIR= $GMP_INCLDIR" >&6
8423     echo "$as_me:$LINENO: result: GMP_LIBDIR= $GMP_LIBDIR" >&5
8424     echo "${ECHO_T}GMP_LIBDIR= $GMP_LIBDIR" >&6
8425 gezelter 2190
8426     ac_ext=cc
8427     ac_cpp='$CXXCPP $CPPFLAGS'
8428     ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8429     ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8430     ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8431    
8432     save_CXXFLAGS="$CXXFLAGS"
8433     CXXFLAGS="$CXXFLAGS -I$CGAL_INCLDIR -I$CGAL_INCLCONFDIR"
8434    
8435     ac_ext=cc
8436     ac_cpp='$CXXCPP $CPPFLAGS'
8437     ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8438     ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8439     ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8440     echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
8441     echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
8442     if test -z "$CXXCPP"; then
8443     if test "${ac_cv_prog_CXXCPP+set}" = set; then
8444     echo $ECHO_N "(cached) $ECHO_C" >&6
8445     else
8446     # Double quotes because CXXCPP needs to be expanded
8447     for CXXCPP in "$CXX -E" "/lib/cpp"
8448     do
8449     ac_preproc_ok=false
8450     for ac_cxx_preproc_warn_flag in '' yes
8451     do
8452     # Use a header file that comes with gcc, so configuring glibc
8453     # with a fresh cross-compiler works.
8454     # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8455     # <limits.h> exists even on freestanding compilers.
8456     # On the NeXT, cc -E runs the code through the compiler's parser,
8457     # not just through cpp. "Syntax error" is here to catch this case.
8458     cat >conftest.$ac_ext <<_ACEOF
8459     /* confdefs.h. */
8460     _ACEOF
8461     cat confdefs.h >>conftest.$ac_ext
8462     cat >>conftest.$ac_ext <<_ACEOF
8463     /* end confdefs.h. */
8464     #ifdef __STDC__
8465     # include <limits.h>
8466     #else
8467     # include <assert.h>
8468     #endif
8469     Syntax error
8470     _ACEOF
8471     if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8472     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8473     ac_status=$?
8474     grep -v '^ *+' conftest.er1 >conftest.err
8475     rm -f conftest.er1
8476     cat conftest.err >&5
8477     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8478     (exit $ac_status); } >/dev/null; then
8479     if test -s conftest.err; then
8480     ac_cpp_err=$ac_cxx_preproc_warn_flag
8481     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8482     else
8483     ac_cpp_err=
8484     fi
8485     else
8486     ac_cpp_err=yes
8487     fi
8488     if test -z "$ac_cpp_err"; then
8489     :
8490     else
8491     echo "$as_me: failed program was:" >&5
8492     sed 's/^/| /' conftest.$ac_ext >&5
8493    
8494     # Broken: fails on valid input.
8495     continue
8496     fi
8497     rm -f conftest.err conftest.$ac_ext
8498    
8499     # OK, works on sane cases. Now check whether non-existent headers
8500     # can be detected and how.
8501     cat >conftest.$ac_ext <<_ACEOF
8502     /* confdefs.h. */
8503     _ACEOF
8504     cat confdefs.h >>conftest.$ac_ext
8505     cat >>conftest.$ac_ext <<_ACEOF
8506     /* end confdefs.h. */
8507     #include <ac_nonexistent.h>
8508     _ACEOF
8509     if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8510     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8511     ac_status=$?
8512     grep -v '^ *+' conftest.er1 >conftest.err
8513     rm -f conftest.er1
8514     cat conftest.err >&5
8515     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8516     (exit $ac_status); } >/dev/null; then
8517     if test -s conftest.err; then
8518     ac_cpp_err=$ac_cxx_preproc_warn_flag
8519     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8520     else
8521     ac_cpp_err=
8522     fi
8523     else
8524     ac_cpp_err=yes
8525     fi
8526     if test -z "$ac_cpp_err"; then
8527     # Broken: success on invalid input.
8528     continue
8529     else
8530     echo "$as_me: failed program was:" >&5
8531     sed 's/^/| /' conftest.$ac_ext >&5
8532    
8533     # Passes both tests.
8534     ac_preproc_ok=:
8535     break
8536     fi
8537     rm -f conftest.err conftest.$ac_ext
8538    
8539     done
8540     # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8541     rm -f conftest.err conftest.$ac_ext
8542     if $ac_preproc_ok; then
8543     break
8544     fi
8545    
8546     done
8547     ac_cv_prog_CXXCPP=$CXXCPP
8548    
8549     fi
8550     CXXCPP=$ac_cv_prog_CXXCPP
8551     else
8552     ac_cv_prog_CXXCPP=$CXXCPP
8553     fi
8554     echo "$as_me:$LINENO: result: $CXXCPP" >&5
8555     echo "${ECHO_T}$CXXCPP" >&6
8556     ac_preproc_ok=false
8557     for ac_cxx_preproc_warn_flag in '' yes
8558     do
8559     # Use a header file that comes with gcc, so configuring glibc
8560     # with a fresh cross-compiler works.
8561     # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8562     # <limits.h> exists even on freestanding compilers.
8563     # On the NeXT, cc -E runs the code through the compiler's parser,
8564     # not just through cpp. "Syntax error" is here to catch this case.
8565     cat >conftest.$ac_ext <<_ACEOF
8566     /* confdefs.h. */
8567     _ACEOF
8568     cat confdefs.h >>conftest.$ac_ext
8569     cat >>conftest.$ac_ext <<_ACEOF
8570     /* end confdefs.h. */
8571     #ifdef __STDC__
8572     # include <limits.h>
8573     #else
8574     # include <assert.h>
8575     #endif
8576     Syntax error
8577     _ACEOF
8578     if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8579     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8580     ac_status=$?
8581     grep -v '^ *+' conftest.er1 >conftest.err
8582     rm -f conftest.er1
8583     cat conftest.err >&5
8584     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8585     (exit $ac_status); } >/dev/null; then
8586     if test -s conftest.err; then
8587     ac_cpp_err=$ac_cxx_preproc_warn_flag
8588     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8589     else
8590     ac_cpp_err=
8591     fi
8592     else
8593     ac_cpp_err=yes
8594     fi
8595     if test -z "$ac_cpp_err"; then
8596     :
8597     else
8598     echo "$as_me: failed program was:" >&5
8599     sed 's/^/| /' conftest.$ac_ext >&5
8600    
8601     # Broken: fails on valid input.
8602     continue
8603     fi
8604     rm -f conftest.err conftest.$ac_ext
8605    
8606     # OK, works on sane cases. Now check whether non-existent headers
8607     # can be detected and how.
8608     cat >conftest.$ac_ext <<_ACEOF
8609     /* confdefs.h. */
8610     _ACEOF
8611     cat confdefs.h >>conftest.$ac_ext
8612     cat >>conftest.$ac_ext <<_ACEOF
8613     /* end confdefs.h. */
8614     #include <ac_nonexistent.h>
8615     _ACEOF
8616     if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8617     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8618     ac_status=$?
8619     grep -v '^ *+' conftest.er1 >conftest.err
8620     rm -f conftest.er1
8621     cat conftest.err >&5
8622     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8623     (exit $ac_status); } >/dev/null; then
8624     if test -s conftest.err; then
8625     ac_cpp_err=$ac_cxx_preproc_warn_flag
8626     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8627     else
8628     ac_cpp_err=
8629     fi
8630     else
8631     ac_cpp_err=yes
8632     fi
8633     if test -z "$ac_cpp_err"; then
8634     # Broken: success on invalid input.
8635     continue
8636     else
8637     echo "$as_me: failed program was:" >&5
8638     sed 's/^/| /' conftest.$ac_ext >&5
8639    
8640     # Passes both tests.
8641     ac_preproc_ok=:
8642     break
8643     fi
8644     rm -f conftest.err conftest.$ac_ext
8645    
8646     done
8647     # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8648     rm -f conftest.err conftest.$ac_ext
8649     if $ac_preproc_ok; then
8650     :
8651     else
8652     { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
8653     See \`config.log' for more details." >&5
8654     echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
8655     See \`config.log' for more details." >&2;}
8656     { (exit 1); exit 1; }; }
8657     fi
8658    
8659     ac_ext=cc
8660     ac_cpp='$CXXCPP $CPPFLAGS'
8661     ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8662     ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8663     ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8664    
8665    
8666     if test "${ac_cv_header_CGAL_Cartesian_h+set}" = set; then
8667     echo "$as_me:$LINENO: checking for CGAL/Cartesian.h" >&5
8668     echo $ECHO_N "checking for CGAL/Cartesian.h... $ECHO_C" >&6
8669     if test "${ac_cv_header_CGAL_Cartesian_h+set}" = set; then
8670     echo $ECHO_N "(cached) $ECHO_C" >&6
8671     fi
8672     echo "$as_me:$LINENO: result: $ac_cv_header_CGAL_Cartesian_h" >&5
8673     echo "${ECHO_T}$ac_cv_header_CGAL_Cartesian_h" >&6
8674     else
8675     # Is the header compilable?
8676     echo "$as_me:$LINENO: checking CGAL/Cartesian.h usability" >&5
8677     echo $ECHO_N "checking CGAL/Cartesian.h usability... $ECHO_C" >&6
8678     cat >conftest.$ac_ext <<_ACEOF
8679     /* confdefs.h. */
8680     _ACEOF
8681     cat confdefs.h >>conftest.$ac_ext
8682     cat >>conftest.$ac_ext <<_ACEOF
8683     /* end confdefs.h. */
8684     $ac_includes_default
8685     #include <CGAL/Cartesian.h>
8686     _ACEOF
8687     rm -f conftest.$ac_objext
8688     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8689     (eval $ac_compile) 2>conftest.er1
8690     ac_status=$?
8691     grep -v '^ *+' conftest.er1 >conftest.err
8692     rm -f conftest.er1
8693     cat conftest.err >&5
8694     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8695     (exit $ac_status); } &&
8696     { ac_try='test -z "$ac_cxx_werror_flag"
8697     || test ! -s conftest.err'
8698     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8699     (eval $ac_try) 2>&5
8700     ac_status=$?
8701     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8702     (exit $ac_status); }; } &&
8703     { ac_try='test -s conftest.$ac_objext'
8704     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8705     (eval $ac_try) 2>&5
8706     ac_status=$?
8707     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8708     (exit $ac_status); }; }; then
8709     ac_header_compiler=yes
8710     else
8711     echo "$as_me: failed program was:" >&5
8712     sed 's/^/| /' conftest.$ac_ext >&5
8713    
8714     ac_header_compiler=no
8715     fi
8716     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8717     echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8718     echo "${ECHO_T}$ac_header_compiler" >&6
8719    
8720     # Is the header present?
8721     echo "$as_me:$LINENO: checking CGAL/Cartesian.h presence" >&5
8722     echo $ECHO_N "checking CGAL/Cartesian.h presence... $ECHO_C" >&6
8723     cat >conftest.$ac_ext <<_ACEOF
8724     /* confdefs.h. */
8725     _ACEOF
8726     cat confdefs.h >>conftest.$ac_ext
8727     cat >>conftest.$ac_ext <<_ACEOF
8728     /* end confdefs.h. */
8729     #include <CGAL/Cartesian.h>
8730     _ACEOF
8731     if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8732     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8733     ac_status=$?
8734     grep -v '^ *+' conftest.er1 >conftest.err
8735     rm -f conftest.er1
8736     cat conftest.err >&5
8737     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8738     (exit $ac_status); } >/dev/null; then
8739     if test -s conftest.err; then
8740     ac_cpp_err=$ac_cxx_preproc_warn_flag
8741     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8742     else
8743     ac_cpp_err=
8744     fi
8745     else
8746     ac_cpp_err=yes
8747     fi
8748     if test -z "$ac_cpp_err"; then
8749     ac_header_preproc=yes
8750     else
8751     echo "$as_me: failed program was:" >&5
8752     sed 's/^/| /' conftest.$ac_ext >&5
8753    
8754     ac_header_preproc=no
8755     fi
8756     rm -f conftest.err conftest.$ac_ext
8757     echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8758     echo "${ECHO_T}$ac_header_preproc" >&6
8759    
8760     # So? What about this header?
8761     case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
8762     yes:no: )
8763     { echo "$as_me:$LINENO: WARNING: CGAL/Cartesian.h: accepted by the compiler, rejected by the preprocessor!" >&5
8764     echo "$as_me: WARNING: CGAL/Cartesian.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8765     { echo "$as_me:$LINENO: WARNING: CGAL/Cartesian.h: proceeding with the compiler's result" >&5
8766     echo "$as_me: WARNING: CGAL/Cartesian.h: proceeding with the compiler's result" >&2;}
8767     ac_header_preproc=yes
8768     ;;
8769     no:yes:* )
8770     { echo "$as_me:$LINENO: WARNING: CGAL/Cartesian.h: present but cannot be compiled" >&5
8771     echo "$as_me: WARNING: CGAL/Cartesian.h: present but cannot be compiled" >&2;}
8772     { echo "$as_me:$LINENO: WARNING: CGAL/Cartesian.h: check for missing prerequisite headers?" >&5
8773     echo "$as_me: WARNING: CGAL/Cartesian.h: check for missing prerequisite headers?" >&2;}
8774     { echo "$as_me:$LINENO: WARNING: CGAL/Cartesian.h: see the Autoconf documentation" >&5
8775     echo "$as_me: WARNING: CGAL/Cartesian.h: see the Autoconf documentation" >&2;}
8776     { echo "$as_me:$LINENO: WARNING: CGAL/Cartesian.h: section \"Present But Cannot Be Compiled\"" >&5
8777     echo "$as_me: WARNING: CGAL/Cartesian.h: section \"Present But Cannot Be Compiled\"" >&2;}
8778     { echo "$as_me:$LINENO: WARNING: CGAL/Cartesian.h: proceeding with the preprocessor's result" >&5
8779     echo "$as_me: WARNING: CGAL/Cartesian.h: proceeding with the preprocessor's result" >&2;}
8780     { echo "$as_me:$LINENO: WARNING: CGAL/Cartesian.h: in the future, the compiler will take precedence" >&5
8781     echo "$as_me: WARNING: CGAL/Cartesian.h: in the future, the compiler will take precedence" >&2;}
8782     (
8783     cat <<\_ASBOX
8784     ## ------------------------------ ##
8785     ## Report this to gezelter@nd.edu ##
8786     ## ------------------------------ ##
8787     _ASBOX
8788     ) |
8789     sed "s/^/$as_me: WARNING: /" >&2
8790     ;;
8791     esac
8792     echo "$as_me:$LINENO: checking for CGAL/Cartesian.h" >&5
8793     echo $ECHO_N "checking for CGAL/Cartesian.h... $ECHO_C" >&6
8794     if test "${ac_cv_header_CGAL_Cartesian_h+set}" = set; then
8795     echo $ECHO_N "(cached) $ECHO_C" >&6
8796     else
8797     ac_cv_header_CGAL_Cartesian_h=$ac_header_preproc
8798     fi
8799     echo "$as_me:$LINENO: result: $ac_cv_header_CGAL_Cartesian_h" >&5
8800     echo "${ECHO_T}$ac_cv_header_CGAL_Cartesian_h" >&6
8801    
8802     fi
8803     if test $ac_cv_header_CGAL_Cartesian_h = yes; then
8804     cgal=yes
8805     else
8806     cgal=no
8807     fi
8808    
8809    
8810     CXXFLAGS="$save_CXXFLAGS"
8811    
8812     if test "x$cgal" = xyes; then
8813     echo "$as_me:$LINENO: checking for CGAL version" >&5
8814     echo $ECHO_N "checking for CGAL version... $ECHO_C" >&6
8815     LOCATION=${CGAL_INCLDIR}
8816     LOCATION=${LOCATION:-/usr/include}
8817     if test -f $LOCATION/CGAL/version.h; then
8818     CGAL_VERSION=`grep '#define.*\<CGAL_VERSION\>.*' $LOCATION/CGAL/version.h | sed 's/[^0-9\.]*//g'`
8819     else
8820     CGAL_VERSION=`grep '#define.*\<CGAL_VERSION\>.*' $LOCATION/CGAL/config.h | sed 's/[^0-9\.]*//g'`
8821     fi
8822     if echo $CGAL_VERSION | grep -q "^[3456789]"; then
8823     echo "$as_me:$LINENO: result: ($CGAL_VERSION) yes" >&5
8824     echo "${ECHO_T}($CGAL_VERSION) yes" >&6
8825     else
8826     echo "$as_me:$LINENO: result: ($CGAL_VERSION) no" >&5
8827     echo "${ECHO_T}($CGAL_VERSION) no" >&6
8828     cgal=no
8829     fi
8830     fi
8831    
8832     if test "x$cgal" = xyes; then
8833     CGAL_LIBS="-lCGAL"
8834     echo "$as_me:$LINENO: checking whether CGAL uses LEDA" >&5
8835     echo $ECHO_N "checking whether CGAL uses LEDA... $ECHO_C" >&6
8836     if echo $CGAL_CXXFLAGS | grep -q -- -DCGAL_USE_LEDA; then
8837     CGAL_USES_LEDA=yes
8838     echo "$as_me:$LINENO: result: yes" >&5
8839     echo "${ECHO_T}yes" >&6
8840     CGAL_DEFINES="-DCGAL_USE_LEDA -DLEDA_PREFIX"
8841     else
8842     echo "$as_me:$LINENO: result: no" >&5
8843     echo "${ECHO_T}no" >&6
8844     CGAL_USES_LEDA=no
8845     fi
8846    
8847     echo "$as_me:$LINENO: checking whether CGAL uses GMP" >&5
8848     echo $ECHO_N "checking whether CGAL uses GMP... $ECHO_C" >&6
8849     if echo $CGAL_CXXFLAGS | grep -q -- -DCGAL_USE_GMP; then
8850     CGAL_USES_GMP=yes
8851     echo "$as_me:$LINENO: result: yes" >&5
8852     echo "${ECHO_T}yes" >&6
8853     CGAL_DEFINES="-DCGAL_USE_GMP $CGAL_DEFINES"
8854     else
8855     echo "$as_me:$LINENO: result: no" >&5
8856     echo "${ECHO_T}no" >&6
8857     CGAL_USES_GMP=no
8858     fi
8859    
8860     CGAL_LIBS="$CGAL_LIBS -lm"
8861    
8862     CGAL_CXXFLAGS="-ftemplate-depth-50"
8863    
8864 gezelter 2203 echo "$as_me:$LINENO: result: CGAL_USES_LEDA= $CGAL_USES_LEDA" >&5
8865     echo "${ECHO_T}CGAL_USES_LEDA= $CGAL_USES_LEDA" >&6
8866     echo "$as_me:$LINENO: result: CGAL_USES_GMP = $CGAL_USES_GMP" >&5
8867     echo "${ECHO_T}CGAL_USES_GMP = $CGAL_USES_GMP" >&6
8868     echo "$as_me:$LINENO: result: CGAL_INCLDIR = $CGAL_INCLDIR" >&5
8869     echo "${ECHO_T}CGAL_INCLDIR = $CGAL_INCLDIR" >&6
8870     echo "$as_me:$LINENO: result: CGAL_LIBDIR = $CGAL_LIBDIR" >&5
8871     echo "${ECHO_T}CGAL_LIBDIR = $CGAL_LIBDIR" >&6
8872     echo "$as_me:$LINENO: result: CGAL_DEFINES = $CGAL_DEFINES" >&5
8873     echo "${ECHO_T}CGAL_DEFINES = $CGAL_DEFINES" >&6
8874     echo "$as_me:$LINENO: result: CGAL_CXXFLAGS = $CGAL_CXXFLAGS" >&5
8875     echo "${ECHO_T}CGAL_CXXFLAGS = $CGAL_CXXFLAGS" >&6
8876     echo "$as_me:$LINENO: result: CGAL_LIBS = $CGAL_LIBS" >&5
8877     echo "${ECHO_T}CGAL_LIBS = $CGAL_LIBS" >&6
8878 gezelter 2190 fi
8879    
8880     if test "x$cgal" = xyes; then
8881     save_LIBS="$LIBS"
8882     LIBS="$LIBS -L$CGAL_LIBDIR"
8883     if test "x$CGAL_USES_LEDA" = xyes; then
8884     LIBS="-lL $LIBS -L$LEDA_LIBDIR"
8885     fi
8886     # if test "x$CGAL_USES_GMP" = xyes; then
8887     # LIBS="-lgmp $LIBS $GMP_LIBDIR"
8888     # fi
8889     echo "$as_me:$LINENO: checking for ::CGAL::Cartesian<int>::Point_2 in -lCGAL" >&5
8890     echo $ECHO_N "checking for ::CGAL::Cartesian<int>::Point_2 in -lCGAL... $ECHO_C" >&6
8891     save_CXXFLAGS_CHECK_CXX_LIB="$CXXFLAGS"
8892     CXXFLAGS="$CXXFLAGS -I$CGAL_INCLDIR -I$CGAL_INCLCONFDIR"
8893     save_LIBS_CHECK_CXX_LIB="$LIBS"
8894     LIBS="-lCGAL $LIBS"
8895     cat >conftest.$ac_ext <<_ACEOF
8896     /* confdefs.h. */
8897     _ACEOF
8898     cat confdefs.h >>conftest.$ac_ext
8899     cat >>conftest.$ac_ext <<_ACEOF
8900     /* end confdefs.h. */
8901     #include <CGAL/Cartesian.h>
8902     int
8903     main ()
8904     {
8905     ::CGAL::Cartesian<int>::Point_2 P
8906     ;
8907     return 0;
8908     }
8909     _ACEOF
8910     rm -f conftest.$ac_objext conftest$ac_exeext
8911     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8912     (eval $ac_link) 2>conftest.er1
8913     ac_status=$?
8914     grep -v '^ *+' conftest.er1 >conftest.err
8915     rm -f conftest.er1
8916     cat conftest.err >&5
8917     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8918     (exit $ac_status); } &&
8919     { ac_try='test -z "$ac_cxx_werror_flag"
8920     || test ! -s conftest.err'
8921     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8922     (eval $ac_try) 2>&5
8923     ac_status=$?
8924     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8925     (exit $ac_status); }; } &&
8926     { ac_try='test -s conftest$ac_exeext'
8927     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8928     (eval $ac_try) 2>&5
8929     ac_status=$?
8930     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8931     (exit $ac_status); }; }; then
8932     echo "$as_me:$LINENO: result: yes" >&5
8933     echo "${ECHO_T}yes" >&6
8934     cgal=yes
8935     else
8936     echo "$as_me: failed program was:" >&5
8937     sed 's/^/| /' conftest.$ac_ext >&5
8938    
8939     echo "$as_me:$LINENO: result: no" >&5
8940     echo "${ECHO_T}no" >&6
8941     cgal=no
8942     fi
8943     rm -f conftest.err conftest.$ac_objext \
8944     conftest$ac_exeext conftest.$ac_ext
8945     CXXFLAGS="$save_CXXFLAGS_CHECK_CXX_LIB"
8946     LIBS="$save_LIBS_CHECK_CXX_LIB"
8947     LIBS="$save_LIBS"
8948     fi
8949    
8950     fi
8951     ac_ext=c
8952     ac_cpp='$CPP $CPPFLAGS'
8953     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8954     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8955     ac_compiler_gnu=$ac_cv_c_compiler_gnu
8956    
8957    
8958     fi
8959    
8960     if test "x$cgal" = xyes; then
8961     USE_CGAL=yes
8962    
8963     cat >>confdefs.h <<\_ACEOF
8964     #define HAVE_CGAL 1
8965     _ACEOF
8966    
8967    
8968     cat >>confdefs.h <<_ACEOF
8969     #define CGAL_VERSION $CGAL_VERSION
8970     _ACEOF
8971    
8972     if ! echo $CGAL_VERSION | grep -q "^3.0"; then
8973     { echo "$as_me:$LINENO: WARNING: *****************************************************" >&5
8974     echo "$as_me: WARNING: *****************************************************" >&2;}
8975     { echo "$as_me:$LINENO: WARNING: *** Warning: Your CGAL version is newer than the ***" >&5
8976     echo "$as_me: WARNING: *** Warning: Your CGAL version is newer than the ***" >&2;}
8977     { echo "$as_me:$LINENO: WARNING: *** supported versions. It may still work though. ***" >&5
8978     echo "$as_me: WARNING: *** supported versions. It may still work though. ***" >&2;}
8979     { echo "$as_me:$LINENO: WARNING: *****************************************************" >&5
8980     echo "$as_me: WARNING: *****************************************************" >&2;}
8981     fi
8982     else
8983     if test "x$cgal_makefile" != xno; then
8984 gezelter 2203 echo "$as_me:$LINENO: result: No CGAL support. These are not the droids you want." >&5
8985     echo "${ECHO_T}No CGAL support. These are not the droids you want." >&6
8986 gezelter 2190 fi
8987     CGAL_INCLDIR=
8988     CGAL_LIBDIR=
8989     CGAL_RLIBDIR=
8990     CGAL_DEFINES=
8991     CGAL_CXXFLAGS=
8992     CGAL_LIBS=
8993     fi
8994    
8995    
8996     CGAL_INC_DIR="${CGAL_INCLDIR} ${CGAL_INCLCONFDIR}"
8997    
8998     CGAL_LIB_DIR=${CGAL_LIBDIR}
8999    
9000     CGAL_RLIB_DIR=${CGAL_RLIBDIR}
9001    
9002    
9003    
9004    
9005    
9006    
9007    
9008 gezelter 1540 # Check whether --enable-doxygen or --disable-doxygen was given.
9009     if test "${enable_doxygen+set}" = set; then
9010     enableval="$enable_doxygen"
9011 gezelter 1490
9012 gezelter 1540 fi;
9013     # Check whether --enable-dot or --disable-dot was given.
9014     if test "${enable_dot+set}" = set; then
9015     enableval="$enable_dot"
9016 gezelter 1490
9017 gezelter 1540 fi;
9018     # Check whether --enable-html-docs or --disable-html-docs was given.
9019     if test "${enable_html_docs+set}" = set; then
9020     enableval="$enable_html_docs"
9021    
9022     else
9023     enable_html_docs=yes
9024     fi;
9025     # Check whether --enable-latex-docs or --disable-latex-docs was given.
9026     if test "${enable_latex_docs+set}" = set; then
9027     enableval="$enable_latex_docs"
9028    
9029     else
9030     enable_latex_docs=no
9031     fi;
9032     if test "x$enable_doxygen" = xno; then
9033     enable_doc=no
9034     else
9035     # Extract the first word of "doxygen", so it can be a program name with args.
9036     set dummy doxygen; ac_word=$2
9037 gezelter 2081 echo "$as_me:$LINENO: checking for $ac_word" >&5
9038 gezelter 1540 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9039     if test "${ac_cv_path_DOXYGEN+set}" = set; then
9040     echo $ECHO_N "(cached) $ECHO_C" >&6
9041     else
9042     case $DOXYGEN in
9043     [\\/]* | ?:[\\/]*)
9044     ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
9045     ;;
9046     *)
9047 gezelter 2081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9048     for as_dir in $PATH
9049     do
9050     IFS=$as_save_IFS
9051     test -z "$as_dir" && as_dir=.
9052     for ac_exec_ext in '' $ac_executable_extensions; do
9053     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9054     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
9055     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9056     break 2
9057     fi
9058 gezelter 1540 done
9059 gezelter 2081 done
9060 gezelter 1540
9061     ;;
9062     esac
9063     fi
9064     DOXYGEN=$ac_cv_path_DOXYGEN
9065    
9066     if test -n "$DOXYGEN"; then
9067 gezelter 2081 echo "$as_me:$LINENO: result: $DOXYGEN" >&5
9068 gezelter 1540 echo "${ECHO_T}$DOXYGEN" >&6
9069     else
9070 gezelter 2081 echo "$as_me:$LINENO: result: no" >&5
9071 gezelter 1540 echo "${ECHO_T}no" >&6
9072     fi
9073    
9074     if test "x$DOXYGEN" = x; then
9075     if test "x$enable_doxygen" = xyes; then
9076 gezelter 2081 { { echo "$as_me:$LINENO: error: could not find doxygen" >&5
9077 gezelter 1540 echo "$as_me: error: could not find doxygen" >&2;}
9078     { (exit 1); exit 1; }; }
9079     fi
9080     enable_doc=no
9081     else
9082     enable_doc=yes
9083     # Extract the first word of "dot", so it can be a program name with args.
9084     set dummy dot; ac_word=$2
9085 gezelter 2081 echo "$as_me:$LINENO: checking for $ac_word" >&5
9086 gezelter 1540 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9087     if test "${ac_cv_path_DOT+set}" = set; then
9088     echo $ECHO_N "(cached) $ECHO_C" >&6
9089     else
9090     case $DOT in
9091     [\\/]* | ?:[\\/]*)
9092     ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
9093     ;;
9094     *)
9095 gezelter 2081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9096     for as_dir in $PATH
9097     do
9098     IFS=$as_save_IFS
9099     test -z "$as_dir" && as_dir=.
9100     for ac_exec_ext in '' $ac_executable_extensions; do
9101     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9102     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
9103     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9104     break 2
9105     fi
9106 gezelter 1540 done
9107 gezelter 2081 done
9108 gezelter 1540
9109     ;;
9110     esac
9111     fi
9112     DOT=$ac_cv_path_DOT
9113    
9114     if test -n "$DOT"; then
9115 gezelter 2081 echo "$as_me:$LINENO: result: $DOT" >&5
9116 gezelter 1540 echo "${ECHO_T}$DOT" >&6
9117     else
9118 gezelter 2081 echo "$as_me:$LINENO: result: no" >&5
9119 gezelter 1540 echo "${ECHO_T}no" >&6
9120     fi
9121    
9122     fi
9123     fi
9124    
9125     if test "x$enable_doc" = xyes; then
9126     DOC=1
9127     else
9128     DOC=0
9129     fi
9130    
9131 gezelter 2081
9132 gezelter 1540 if test x$DOT = x; then
9133     if test "x$enable_dot" = xyes; then
9134 gezelter 2081 { { echo "$as_me:$LINENO: error: could not find dot" >&5
9135 gezelter 1540 echo "$as_me: error: could not find dot" >&2;}
9136     { (exit 1); exit 1; }; }
9137     fi
9138     enable_dot=no
9139     else
9140     enable_dot=yes
9141     fi
9142    
9143 gezelter 2081
9144    
9145    
9146    
9147    
9148    
9149 gezelter 1490 OBJEXT=".$OBJEXT"
9150    
9151     OOPSE=oopse
9152    
9153     if test "x${prefix}" = "xNONE"
9154     then
9155     OOPSE_HOME=${ac_default_prefix}/oopse
9156     else
9157     OOPSE_HOME=${prefix}/oopse
9158     fi
9159     # Check whether --enable-oopse-home or --disable-oopse-home was given.
9160     if test "${enable_oopse_home+set}" = set; then
9161     enableval="$enable_oopse_home"
9162     OOPSE_HOME="${enableval}"
9163     fi;
9164    
9165     case "x$INSTALL" in
9166     x/*) ;;
9167     *) INSTALL=`pwd`/ac-tools/"shtool install -c" ;
9168     esac
9169    
9170     MKINSTALLDIRS=`pwd`/ac-tools/"shtool mkdir -p -f"
9171    
9172     CFLAGS=${CFLAGS-""}
9173     CXXFLAGS=${CXXFLAGS-""}
9174     CPPFLAGS=${CPPFLAGS-""}
9175     FFLAGS=${FFLAGS-""}
9176     F90FLAGS=${F90FLAGS-""}
9177     LDFLAGS=${LDFLAGS-""}
9178     DEBUG=${DEBUG-"-g"}
9179    
9180     case $debug in
9181     1)
9182     FFLAGS="$DEBUG $FFLAGS"
9183     F90FLAGS="$DEBUG $F90FLAGS"
9184     ;;
9185     *)
9186     ;;
9187     esac
9188    
9189    
9190    
9191 gezelter 2081
9192    
9193    
9194    
9195    
9196    
9197    
9198    
9199    
9200    
9201    
9202    
9203    
9204    
9205    
9206     ac_config_headers="$ac_config_headers src/config.h"
9207    
9208 gezelter 2199 ac_config_files="$ac_config_files make/Makefile src/utils/Makefile src/applications/nanoRodBuilder/Makefile scripts/filepp"
9209 gezelter 2081
9210    
9211 gezelter 1490 cat >confcache <<\_ACEOF
9212     # This file is a shell script that caches the results of configure
9213     # tests run on this system so they can be shared between configure
9214     # scripts and configure runs, see configure's option --config-cache.
9215     # It is not useful on other systems. If it contains results you don't
9216     # want to keep, you may remove or edit it.
9217     #
9218     # config.status only pays attention to the cache file if you give it
9219     # the --recheck option to rerun configure.
9220     #
9221 gezelter 2081 # `ac_cv_env_foo' variables (set or unset) will be overridden when
9222 gezelter 1490 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9223     # following values.
9224    
9225     _ACEOF
9226    
9227     # The following way of writing the cache mishandles newlines in values,
9228     # but we know of no workaround that is simple, portable, and efficient.
9229     # So, don't put newlines in cache variables' values.
9230     # Ultrix sh set writes to stderr and can't be redirected directly,
9231     # and sets the high bit in the cache file unless we assign to the vars.
9232     {
9233     (set) 2>&1 |
9234     case `(ac_space=' '; set | grep ac_space) 2>&1` in
9235     *ac_space=\ *)
9236     # `set' does not quote correctly, so add quotes (double-quote
9237     # substitution turns \\\\ into \\, and sed turns \\ into \).
9238     sed -n \
9239 gezelter 2081 "s/'/'\\\\''/g;
9240     s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9241 gezelter 1490 ;;
9242     *)
9243     # `set' quotes correctly as required by POSIX, so do not add quotes.
9244     sed -n \
9245 gezelter 2081 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
9246 gezelter 1490 ;;
9247     esac;
9248     } |
9249     sed '
9250     t clear
9251     : clear
9252     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9253     t end
9254     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9255     : end' >>confcache
9256 gezelter 2081 if diff $cache_file confcache >/dev/null 2>&1; then :; else
9257 gezelter 1490 if test -w $cache_file; then
9258     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
9259     cat confcache >$cache_file
9260     else
9261     echo "not updating unwritable cache $cache_file"
9262     fi
9263     fi
9264     rm -f confcache
9265    
9266     test "x$prefix" = xNONE && prefix=$ac_default_prefix
9267     # Let make expand exec_prefix.
9268     test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9269    
9270     # VPATH may cause trouble with some makes, so we remove $(srcdir),
9271     # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
9272     # trailing colons and then remove the whole line if VPATH becomes empty
9273     # (actually we leave an empty line to preserve line numbers).
9274     if test "x$srcdir" = x.; then
9275 gezelter 2081 ac_vpsub='/^[ ]*VPATH[ ]*=/{
9276 gezelter 1490 s/:*\$(srcdir):*/:/;
9277     s/:*\${srcdir}:*/:/;
9278     s/:*@srcdir@:*/:/;
9279 gezelter 2081 s/^\([^=]*=[ ]*\):*/\1/;
9280 gezelter 1490 s/:*$//;
9281 gezelter 2081 s/^[^=]*=[ ]*$//;
9282 gezelter 1490 }'
9283     fi
9284    
9285     DEFS=-DHAVE_CONFIG_H
9286    
9287 gezelter 2081 ac_libobjs=
9288     ac_ltlibobjs=
9289     for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9290     # 1. Remove the extension, and $U if already installed.
9291     ac_i=`echo "$ac_i" |
9292     sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
9293     # 2. Add them.
9294     ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
9295     ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
9296     done
9297     LIBOBJS=$ac_libobjs
9298    
9299     LTLIBOBJS=$ac_ltlibobjs
9300    
9301    
9302    
9303 gezelter 1490 : ${CONFIG_STATUS=./config.status}
9304     ac_clean_files_save=$ac_clean_files
9305     ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9306 gezelter 2081 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
9307 gezelter 1490 echo "$as_me: creating $CONFIG_STATUS" >&6;}
9308     cat >$CONFIG_STATUS <<_ACEOF
9309     #! $SHELL
9310 gezelter 2081 # Generated by $as_me.
9311 gezelter 1490 # Run this file to recreate the current configuration.
9312     # Compiler output produced by configure, useful for debugging
9313     # configure, is in config.log if it exists.
9314    
9315     debug=false
9316 gezelter 2081 ac_cs_recheck=false
9317     ac_cs_silent=false
9318 gezelter 1490 SHELL=\${CONFIG_SHELL-$SHELL}
9319     _ACEOF
9320    
9321     cat >>$CONFIG_STATUS <<\_ACEOF
9322 gezelter 2081 ## --------------------- ##
9323     ## M4sh Initialization. ##
9324     ## --------------------- ##
9325    
9326 gezelter 1490 # Be Bourne compatible
9327     if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
9328     emulate sh
9329     NULLCMD=:
9330 gezelter 2081 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
9331     # is contrary to our usage. Disable this feature.
9332     alias -g '${1+"$@"}'='"$@"'
9333 gezelter 1490 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
9334     set -o posix
9335     fi
9336 gezelter 2081 DUALCASE=1; export DUALCASE # for MKS sh
9337 gezelter 1490
9338 gezelter 2081 # Support unset when possible.
9339     if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9340     as_unset=unset
9341     else
9342     as_unset=false
9343     fi
9344    
9345    
9346     # Work around bugs in pre-3.0 UWIN ksh.
9347     $as_unset ENV MAIL MAILPATH
9348     PS1='$ '
9349     PS2='> '
9350     PS4='+ '
9351    
9352     # NLS nuisances.
9353     for as_var in \
9354     LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
9355     LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
9356     LC_TELEPHONE LC_TIME
9357     do
9358     if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
9359     eval $as_var=C; export $as_var
9360     else
9361     $as_unset $as_var
9362     fi
9363     done
9364    
9365     # Required to use basename.
9366     if expr a : '\(a\)' >/dev/null 2>&1; then
9367     as_expr=expr
9368     else
9369     as_expr=false
9370     fi
9371    
9372     if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
9373     as_basename=basename
9374     else
9375     as_basename=false
9376     fi
9377    
9378    
9379 gezelter 1490 # Name of the executable.
9380 gezelter 2081 as_me=`$as_basename "$0" ||
9381     $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9382     X"$0" : 'X\(//\)$' \| \
9383     X"$0" : 'X\(/\)$' \| \
9384     . : '\(.\)' 2>/dev/null ||
9385     echo X/"$0" |
9386     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
9387     /^X\/\(\/\/\)$/{ s//\1/; q; }
9388     /^X\/\(\/\).*/{ s//\1/; q; }
9389     s/.*/./; q'`
9390 gezelter 1490
9391 gezelter 2081
9392     # PATH needs CR, and LINENO needs CR and PATH.
9393     # Avoid depending upon Character Ranges.
9394     as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9395     as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9396     as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9397     as_cr_digits='0123456789'
9398     as_cr_alnum=$as_cr_Letters$as_cr_digits
9399    
9400     # The user is always right.
9401     if test "${PATH_SEPARATOR+set}" != set; then
9402     echo "#! /bin/sh" >conf$$.sh
9403     echo "exit 0" >>conf$$.sh
9404     chmod +x conf$$.sh
9405     if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9406     PATH_SEPARATOR=';'
9407     else
9408     PATH_SEPARATOR=:
9409     fi
9410     rm -f conf$$.sh
9411     fi
9412    
9413    
9414     as_lineno_1=$LINENO
9415     as_lineno_2=$LINENO
9416     as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9417     test "x$as_lineno_1" != "x$as_lineno_2" &&
9418     test "x$as_lineno_3" = "x$as_lineno_2" || {
9419     # Find who we are. Look in the path if we contain no path at all
9420     # relative or not.
9421     case $0 in
9422     *[\\/]* ) as_myself=$0 ;;
9423     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9424     for as_dir in $PATH
9425     do
9426     IFS=$as_save_IFS
9427     test -z "$as_dir" && as_dir=.
9428     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9429     done
9430    
9431     ;;
9432     esac
9433     # We did not find ourselves, most probably we were run as `sh COMMAND'
9434     # in which case we are not to be found in the path.
9435     if test "x$as_myself" = x; then
9436     as_myself=$0
9437     fi
9438     if test ! -f "$as_myself"; then
9439     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
9440     echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
9441     { (exit 1); exit 1; }; }
9442     fi
9443     case $CONFIG_SHELL in
9444     '')
9445     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9446     for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
9447     do
9448     IFS=$as_save_IFS
9449     test -z "$as_dir" && as_dir=.
9450     for as_base in sh bash ksh sh5; do
9451     case $as_dir in
9452     /*)
9453     if ("$as_dir/$as_base" -c '
9454     as_lineno_1=$LINENO
9455     as_lineno_2=$LINENO
9456     as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9457     test "x$as_lineno_1" != "x$as_lineno_2" &&
9458     test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
9459     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
9460     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
9461     CONFIG_SHELL=$as_dir/$as_base
9462     export CONFIG_SHELL
9463     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
9464     fi;;
9465     esac
9466     done
9467     done
9468     ;;
9469     esac
9470    
9471     # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
9472     # uniformly replaced by the line number. The first 'sed' inserts a
9473     # line-number line before each line; the second 'sed' does the real
9474     # work. The second script uses 'N' to pair each line-number line
9475     # with the numbered line, and appends trailing '-' during
9476     # substitution so that $LINENO is not a special case at line end.
9477     # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
9478     # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
9479     sed '=' <$as_myself |
9480     sed '
9481     N
9482     s,$,-,
9483     : loop
9484     s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
9485     t loop
9486     s,-$,,
9487     s,^['$as_cr_digits']*\n,,
9488     ' >$as_me.lineno &&
9489     chmod +x $as_me.lineno ||
9490     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
9491     echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
9492     { (exit 1); exit 1; }; }
9493    
9494     # Don't try to exec as it changes $[0], causing all sort of problems
9495     # (the dirname of $[0] is not the place where we might find the
9496     # original and so on. Autoconf is especially sensible to this).
9497     . ./$as_me.lineno
9498     # Exit status is that of the last command.
9499     exit
9500     }
9501    
9502    
9503     case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
9504     *c*,-n*) ECHO_N= ECHO_C='
9505     ' ECHO_T=' ' ;;
9506     *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
9507     *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
9508     esac
9509    
9510 gezelter 1490 if expr a : '\(a\)' >/dev/null 2>&1; then
9511     as_expr=expr
9512     else
9513     as_expr=false
9514     fi
9515    
9516     rm -f conf$$ conf$$.exe conf$$.file
9517     echo >conf$$.file
9518     if ln -s conf$$.file conf$$ 2>/dev/null; then
9519     # We could just check for DJGPP; but this test a) works b) is more generic
9520     # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
9521     if test -f conf$$.exe; then
9522     # Don't use ln at all; we don't have any links
9523     as_ln_s='cp -p'
9524     else
9525     as_ln_s='ln -s'
9526     fi
9527     elif ln conf$$.file conf$$ 2>/dev/null; then
9528     as_ln_s=ln
9529     else
9530     as_ln_s='cp -p'
9531     fi
9532     rm -f conf$$ conf$$.exe conf$$.file
9533    
9534 gezelter 2081 if mkdir -p . 2>/dev/null; then
9535     as_mkdir_p=:
9536 gezelter 1490 else
9537 gezelter 2081 test -d ./-p && rmdir ./-p
9538     as_mkdir_p=false
9539 gezelter 1490 fi
9540    
9541 gezelter 2081 as_executable_p="test -f"
9542 gezelter 1490
9543 gezelter 2081 # Sed expression to map a string onto a valid CPP name.
9544     as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9545    
9546     # Sed expression to map a string onto a valid variable name.
9547     as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9548    
9549    
9550 gezelter 1490 # IFS
9551     # We need space, tab and new line, in precisely that order.
9552     as_nl='
9553     '
9554     IFS=" $as_nl"
9555    
9556     # CDPATH.
9557 gezelter 2081 $as_unset CDPATH
9558 gezelter 1490
9559     exec 6>&1
9560    
9561 gezelter 2081 # Open the log real soon, to keep \$[0] and so on meaningful, and to
9562     # report actual input values of CONFIG_FILES etc. instead of their
9563     # values after options handling. Logging --version etc. is OK.
9564     exec 5>>config.log
9565     {
9566     echo
9567     sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9568     ## Running $as_me. ##
9569     _ASBOX
9570     } >&5
9571     cat >&5 <<_CSEOF
9572    
9573     This file was extended by OOPSE $as_me 2.0, which was
9574     generated by GNU Autoconf 2.59. Invocation command line was
9575    
9576     CONFIG_FILES = $CONFIG_FILES
9577     CONFIG_HEADERS = $CONFIG_HEADERS
9578     CONFIG_LINKS = $CONFIG_LINKS
9579     CONFIG_COMMANDS = $CONFIG_COMMANDS
9580     $ $0 $@
9581    
9582     _CSEOF
9583     echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
9584     echo >&5
9585 gezelter 1490 _ACEOF
9586    
9587     # Files that config.status was made for.
9588     if test -n "$ac_config_files"; then
9589     echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
9590     fi
9591    
9592     if test -n "$ac_config_headers"; then
9593     echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
9594     fi
9595    
9596     if test -n "$ac_config_links"; then
9597     echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
9598     fi
9599    
9600     if test -n "$ac_config_commands"; then
9601     echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
9602     fi
9603    
9604 gezelter 2081 cat >>$CONFIG_STATUS <<\_ACEOF
9605 gezelter 1490
9606     ac_cs_usage="\
9607     \`$as_me' instantiates files from templates according to the
9608     current configuration.
9609    
9610     Usage: $0 [OPTIONS] [FILE]...
9611    
9612     -h, --help print this help, then exit
9613     -V, --version print version number, then exit
9614 gezelter 2081 -q, --quiet do not print progress messages
9615 gezelter 1490 -d, --debug don't remove temporary files
9616     --recheck update $as_me by reconfiguring in the same conditions
9617     --file=FILE[:TEMPLATE]
9618 gezelter 2081 instantiate the configuration file FILE
9619 gezelter 1490 --header=FILE[:TEMPLATE]
9620 gezelter 2081 instantiate the configuration header FILE
9621 gezelter 1490
9622     Configuration files:
9623     $config_files
9624    
9625     Configuration headers:
9626     $config_headers
9627    
9628     Configuration links:
9629     $config_links
9630    
9631     Report bugs to <bug-autoconf@gnu.org>."
9632 gezelter 2081 _ACEOF
9633 gezelter 1490
9634 gezelter 2081 cat >>$CONFIG_STATUS <<_ACEOF
9635 gezelter 1490 ac_cs_version="\\
9636 gezelter 1499 OOPSE config.status 2.0
9637 gezelter 2081 configured by $0, generated by GNU Autoconf 2.59,
9638 gezelter 1490 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
9639    
9640 gezelter 2081 Copyright (C) 2003 Free Software Foundation, Inc.
9641 gezelter 1490 This config.status script is free software; the Free Software Foundation
9642     gives unlimited permission to copy, distribute and modify it."
9643     srcdir=$srcdir
9644     INSTALL="$INSTALL"
9645 gezelter 2081 _ACEOF
9646 gezelter 1490
9647 gezelter 2081 cat >>$CONFIG_STATUS <<\_ACEOF
9648 gezelter 1490 # If no file are specified by the user, then we need to provide default
9649     # value. By we need to know if files were specified by the user.
9650     ac_need_defaults=:
9651     while test $# != 0
9652     do
9653     case $1 in
9654     --*=*)
9655     ac_option=`expr "x$1" : 'x\([^=]*\)='`
9656     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
9657 gezelter 2081 ac_shift=:
9658 gezelter 1490 ;;
9659 gezelter 2081 -*)
9660     ac_option=$1
9661     ac_optarg=$2
9662     ac_shift=shift
9663     ;;
9664 gezelter 1490 *) # This is not an option, so the user has probably given explicit
9665     # arguments.
9666 gezelter 2081 ac_option=$1
9667 gezelter 1490 ac_need_defaults=false;;
9668     esac
9669    
9670 gezelter 2081 case $ac_option in
9671 gezelter 1490 # Handling of the options.
9672 gezelter 2081 _ACEOF
9673     cat >>$CONFIG_STATUS <<\_ACEOF
9674 gezelter 1490 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9675 gezelter 2081 ac_cs_recheck=: ;;
9676 gezelter 1490 --version | --vers* | -V )
9677     echo "$ac_cs_version"; exit 0 ;;
9678     --he | --h)
9679     # Conflict between --help and --header
9680 gezelter 2081 { { echo "$as_me:$LINENO: error: ambiguous option: $1
9681 gezelter 1490 Try \`$0 --help' for more information." >&5
9682     echo "$as_me: error: ambiguous option: $1
9683     Try \`$0 --help' for more information." >&2;}
9684     { (exit 1); exit 1; }; };;
9685     --help | --hel | -h )
9686     echo "$ac_cs_usage"; exit 0 ;;
9687     --debug | --d* | -d )
9688     debug=: ;;
9689     --file | --fil | --fi | --f )
9690 gezelter 2081 $ac_shift
9691     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
9692 gezelter 1490 ac_need_defaults=false;;
9693     --header | --heade | --head | --hea )
9694 gezelter 2081 $ac_shift
9695     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
9696 gezelter 1490 ac_need_defaults=false;;
9697 gezelter 2081 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9698     | -silent | --silent | --silen | --sile | --sil | --si | --s)
9699     ac_cs_silent=: ;;
9700 gezelter 1490
9701     # This is an error.
9702 gezelter 2081 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
9703 gezelter 1490 Try \`$0 --help' for more information." >&5
9704     echo "$as_me: error: unrecognized option: $1
9705     Try \`$0 --help' for more information." >&2;}
9706     { (exit 1); exit 1; }; } ;;
9707 gezelter 2081
9708     *) ac_config_targets="$ac_config_targets $1" ;;
9709    
9710 gezelter 1490 esac
9711     shift
9712     done
9713    
9714 gezelter 2081 ac_configure_extra_args=
9715 gezelter 1490
9716 gezelter 2081 if $ac_cs_silent; then
9717     exec 6>/dev/null
9718     ac_configure_extra_args="$ac_configure_extra_args --silent"
9719     fi
9720 gezelter 1490
9721 gezelter 2081 _ACEOF
9722     cat >>$CONFIG_STATUS <<_ACEOF
9723     if \$ac_cs_recheck; then
9724     echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
9725     exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9726     fi
9727 gezelter 1490
9728     _ACEOF
9729    
9730 gezelter 2081
9731    
9732    
9733    
9734     cat >>$CONFIG_STATUS <<\_ACEOF
9735     for ac_config_target in $ac_config_targets
9736     do
9737     case "$ac_config_target" in
9738     # Handling of arguments.
9739     "make/Makefile" ) CONFIG_FILES="$CONFIG_FILES make/Makefile" ;;
9740     "src/utils/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/Makefile" ;;
9741 gezelter 2190 "src/applications/nanoRodBuilder/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/applications/nanoRodBuilder/Makefile" ;;
9742 gezelter 2199 "scripts/filepp" ) CONFIG_FILES="$CONFIG_FILES scripts/filepp" ;;
9743 gezelter 2081 "src/getopt.h" ) CONFIG_LINKS="$CONFIG_LINKS src/getopt.h:src/utils/gnugetopt.h" ;;
9744     "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
9745     *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
9746     echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
9747     { (exit 1); exit 1; }; };;
9748     esac
9749     done
9750    
9751 gezelter 1490 # If the user did not use the arguments to specify the items to instantiate,
9752     # then the envvar interface is used. Set only those that are not.
9753     # We use the long form for the default assignment because of an extremely
9754     # bizarre bug on SunOS 4.1.3.
9755     if $ac_need_defaults; then
9756     test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9757     test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9758     test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
9759     fi
9760    
9761 gezelter 2081 # Have a temporary directory for convenience. Make it in the build tree
9762     # simply because there is no reason to put it here, and in addition,
9763     # creating and moving files from /tmp can sometimes cause problems.
9764 gezelter 1490 # Create a temporary directory, and hook for its removal unless debugging.
9765     $debug ||
9766     {
9767     trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
9768 gezelter 2081 trap '{ (exit 1); exit 1; }' 1 2 13 15
9769 gezelter 1490 }
9770    
9771     # Create a (secure) tmp directory for tmp files.
9772 gezelter 2081
9773 gezelter 1490 {
9774 gezelter 2081 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
9775 gezelter 1490 test -n "$tmp" && test -d "$tmp"
9776     } ||
9777     {
9778 gezelter 2081 tmp=./confstat$$-$RANDOM
9779 gezelter 1490 (umask 077 && mkdir $tmp)
9780     } ||
9781     {
9782 gezelter 2081 echo "$me: cannot create a temporary directory in ." >&2
9783 gezelter 1490 { (exit 1); exit 1; }
9784     }
9785    
9786 gezelter 2081 _ACEOF
9787 gezelter 1490
9788 gezelter 2081 cat >>$CONFIG_STATUS <<_ACEOF
9789 gezelter 1490
9790     #
9791     # CONFIG_FILES section.
9792     #
9793    
9794     # No need to generate the scripts if there are no CONFIG_FILES.
9795     # This happens for instance when ./config.status config.h
9796     if test -n "\$CONFIG_FILES"; then
9797     # Protect against being on the right side of a sed subst in config.status.
9798     sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
9799     s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
9800     s,@SHELL@,$SHELL,;t t
9801 gezelter 2081 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
9802     s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
9803     s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
9804     s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
9805     s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
9806     s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
9807 gezelter 1490 s,@exec_prefix@,$exec_prefix,;t t
9808     s,@prefix@,$prefix,;t t
9809     s,@program_transform_name@,$program_transform_name,;t t
9810     s,@bindir@,$bindir,;t t
9811     s,@sbindir@,$sbindir,;t t
9812     s,@libexecdir@,$libexecdir,;t t
9813     s,@datadir@,$datadir,;t t
9814     s,@sysconfdir@,$sysconfdir,;t t
9815     s,@sharedstatedir@,$sharedstatedir,;t t
9816     s,@localstatedir@,$localstatedir,;t t
9817     s,@libdir@,$libdir,;t t
9818     s,@includedir@,$includedir,;t t
9819     s,@oldincludedir@,$oldincludedir,;t t
9820     s,@infodir@,$infodir,;t t
9821     s,@mandir@,$mandir,;t t
9822 gezelter 2081 s,@build_alias@,$build_alias,;t t
9823     s,@host_alias@,$host_alias,;t t
9824     s,@target_alias@,$target_alias,;t t
9825     s,@DEFS@,$DEFS,;t t
9826 gezelter 1490 s,@ECHO_C@,$ECHO_C,;t t
9827     s,@ECHO_N@,$ECHO_N,;t t
9828     s,@ECHO_T@,$ECHO_T,;t t
9829     s,@LIBS@,$LIBS,;t t
9830     s,@PROGNAME@,$PROGNAME,;t t
9831     s,@debug@,$debug,;t t
9832     s,@build@,$build,;t t
9833     s,@build_cpu@,$build_cpu,;t t
9834     s,@build_vendor@,$build_vendor,;t t
9835     s,@build_os@,$build_os,;t t
9836     s,@host@,$host,;t t
9837     s,@host_cpu@,$host_cpu,;t t
9838     s,@host_vendor@,$host_vendor,;t t
9839     s,@host_os@,$host_os,;t t
9840     s,@CC@,$CC,;t t
9841     s,@CFLAGS@,$CFLAGS,;t t
9842     s,@LDFLAGS@,$LDFLAGS,;t t
9843     s,@CPPFLAGS@,$CPPFLAGS,;t t
9844     s,@ac_ct_CC@,$ac_ct_CC,;t t
9845     s,@EXEEXT@,$EXEEXT,;t t
9846     s,@OBJEXT@,$OBJEXT,;t t
9847     s,@CXX@,$CXX,;t t
9848     s,@CXXFLAGS@,$CXXFLAGS,;t t
9849     s,@ac_ct_CXX@,$ac_ct_CXX,;t t
9850     s,@OOPSE_TEMPLATE_FLAGS@,$OOPSE_TEMPLATE_FLAGS,;t t
9851     s,@EXTRA_CC_FLAG@,$EXTRA_CC_FLAG,;t t
9852     s,@F90@,$F90,;t t
9853     s,@F90FLAGS@,$F90FLAGS,;t t
9854     s,@ac_ct_F90@,$ac_ct_F90,;t t
9855     s,@PREPFLAG@,$PREPFLAG,;t t
9856     s,@PREPDEFFLAG@,$PREPDEFFLAG,;t t
9857     s,@F90LIBS@,$F90LIBS,;t t
9858     s,@F90_FUNC@,$F90_FUNC,;t t
9859     s,@F90_FUNC_@,$F90_FUNC_,;t t
9860     s,@MOD@,$MOD,;t t
9861     s,@F90_WORK_FILES_ARG@,$F90_WORK_FILES_ARG,;t t
9862     s,@MODDIRFLAG@,$MODDIRFLAG,;t t
9863     s,@F90MODINCSPEC@,$F90MODINCSPEC,;t t
9864 gezelter 1535 s,@F90_MODULE_NAMES@,$F90_MODULE_NAMES,;t t
9865 gezelter 1490 s,@CPP@,$CPP,;t t
9866 gezelter 2081 s,@EGREP@,$EGREP,;t t
9867 gezelter 1490 s,@LIBOBJS@,$LIBOBJS,;t t
9868     s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
9869     s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
9870     s,@INSTALL_DATA@,$INSTALL_DATA,;t t
9871     s,@LN_S@,$LN_S,;t t
9872     s,@SET_MAKE@,$SET_MAKE,;t t
9873     s,@RANLIB@,$RANLIB,;t t
9874     s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
9875     s,@YACC@,$YACC,;t t
9876     s,@LEX@,$LEX,;t t
9877     s,@LEXLIB@,$LEXLIB,;t t
9878     s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
9879 gezelter 2199 s,@PERLINTERP@,$PERLINTERP,;t t
9880     s,@PERL_SHEBANG@,$PERL_SHEBANG,;t t
9881 gezelter 1490 s,@AR@,$AR,;t t
9882 gezelter 2023 s,@PS@,$PS,;t t
9883 gezelter 1490 s,@MPI_LIB_DIR@,$MPI_LIB_DIR,;t t
9884     s,@MPI_INC_DIR@,$MPI_INC_DIR,;t t
9885     s,@MPI_F90_INC@,$MPI_F90_INC,;t t
9886     s,@MPI_LIB@,$MPI_LIB,;t t
9887     s,@MPI_F90_LIB@,$MPI_F90_LIB,;t t
9888     s,@USE_MPI@,$USE_MPI,;t t
9889 gezelter 2190 s,@CXXCPP@,$CXXCPP,;t t
9890     s,@USE_CGAL@,$USE_CGAL,;t t
9891     s,@CGAL_INC_DIR@,$CGAL_INC_DIR,;t t
9892     s,@CGAL_LIB_DIR@,$CGAL_LIB_DIR,;t t
9893     s,@CGAL_RLIB_DIR@,$CGAL_RLIB_DIR,;t t
9894     s,@CGAL_DEFINES@,$CGAL_DEFINES,;t t
9895     s,@CGAL_CXXFLAGS@,$CGAL_CXXFLAGS,;t t
9896     s,@CGAL_LIBS@,$CGAL_LIBS,;t t
9897 gezelter 1540 s,@DOXYGEN@,$DOXYGEN,;t t
9898     s,@DOT@,$DOT,;t t
9899     s,@DOC@,$DOC,;t t
9900     s,@enable_dot@,$enable_dot,;t t
9901     s,@enable_html_docs@,$enable_html_docs,;t t
9902     s,@enable_latex_docs@,$enable_latex_docs,;t t
9903 gezelter 1490 s,@BATEXT@,$BATEXT,;t t
9904     s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
9905     s,@OOPSE@,$OOPSE,;t t
9906     s,@OOPSE_HOME@,$OOPSE_HOME,;t t
9907     s,@SUBDIRS@,$SUBDIRS,;t t
9908     s,@FFLAGS@,$FFLAGS,;t t
9909 gezelter 2081 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
9910 gezelter 1490 CEOF
9911    
9912 gezelter 2081 _ACEOF
9913 gezelter 1490
9914 gezelter 2081 cat >>$CONFIG_STATUS <<\_ACEOF
9915 gezelter 1490 # Split the substitutions into bite-sized pieces for seds with
9916     # small command number limits, like on Digital OSF/1 and HP-UX.
9917     ac_max_sed_lines=48
9918     ac_sed_frag=1 # Number of current file.
9919     ac_beg=1 # First line for current file.
9920     ac_end=$ac_max_sed_lines # Line after last line for current file.
9921     ac_more_lines=:
9922     ac_sed_cmds=
9923     while $ac_more_lines; do
9924     if test $ac_beg -gt 1; then
9925     sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9926     else
9927     sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9928     fi
9929     if test ! -s $tmp/subs.frag; then
9930     ac_more_lines=false
9931     else
9932     # The purpose of the label and of the branching condition is to
9933     # speed up the sed processing (if there are no `@' at all, there
9934     # is no need to browse any of the substitutions).
9935     # These are the two extra sed commands mentioned above.
9936     (echo ':t
9937     /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
9938     if test -z "$ac_sed_cmds"; then
9939 gezelter 2081 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
9940 gezelter 1490 else
9941 gezelter 2081 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
9942 gezelter 1490 fi
9943     ac_sed_frag=`expr $ac_sed_frag + 1`
9944     ac_beg=$ac_end
9945     ac_end=`expr $ac_end + $ac_max_sed_lines`
9946     fi
9947     done
9948     if test -z "$ac_sed_cmds"; then
9949     ac_sed_cmds=cat
9950     fi
9951     fi # test -n "$CONFIG_FILES"
9952    
9953 gezelter 2081 _ACEOF
9954     cat >>$CONFIG_STATUS <<\_ACEOF
9955 gezelter 1490 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
9956     # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9957     case $ac_file in
9958     - | *:- | *:-:* ) # input from stdin
9959 gezelter 2081 cat >$tmp/stdin
9960     ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9961     ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9962 gezelter 1490 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9963 gezelter 2081 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9964 gezelter 1490 * ) ac_file_in=$ac_file.in ;;
9965     esac
9966    
9967     # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
9968 gezelter 2081 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
9969     $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9970     X"$ac_file" : 'X\(//\)[^/]' \| \
9971     X"$ac_file" : 'X\(//\)$' \| \
9972     X"$ac_file" : 'X\(/\)' \| \
9973     . : '\(.\)' 2>/dev/null ||
9974 gezelter 1490 echo X"$ac_file" |
9975     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9976     /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9977     /^X\(\/\/\)$/{ s//\1/; q; }
9978     /^X\(\/\).*/{ s//\1/; q; }
9979     s/.*/./; q'`
9980 gezelter 2081 { if $as_mkdir_p; then
9981     mkdir -p "$ac_dir"
9982 gezelter 1490 else
9983 gezelter 2081 as_dir="$ac_dir"
9984     as_dirs=
9985     while test ! -d "$as_dir"; do
9986     as_dirs="$as_dir $as_dirs"
9987     as_dir=`(dirname "$as_dir") 2>/dev/null ||
9988     $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9989     X"$as_dir" : 'X\(//\)[^/]' \| \
9990     X"$as_dir" : 'X\(//\)$' \| \
9991     X"$as_dir" : 'X\(/\)' \| \
9992     . : '\(.\)' 2>/dev/null ||
9993     echo X"$as_dir" |
9994     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9995     /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9996     /^X\(\/\/\)$/{ s//\1/; q; }
9997     /^X\(\/\).*/{ s//\1/; q; }
9998     s/.*/./; q'`
9999     done
10000     test ! -n "$as_dirs" || mkdir $as_dirs
10001     fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10002     echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10003     { (exit 1); exit 1; }; }; }
10004 gezelter 1490
10005 gezelter 2081 ac_builddir=.
10006    
10007     if test "$ac_dir" != .; then
10008     ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10009     # A "../" for each directory in $ac_dir_suffix.
10010     ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10011     else
10012     ac_dir_suffix= ac_top_builddir=
10013     fi
10014    
10015     case $srcdir in
10016     .) # No --srcdir option. We are building in place.
10017     ac_srcdir=.
10018     if test -z "$ac_top_builddir"; then
10019     ac_top_srcdir=.
10020     else
10021     ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10022     fi ;;
10023     [\\/]* | ?:[\\/]* ) # Absolute path.
10024     ac_srcdir=$srcdir$ac_dir_suffix;
10025     ac_top_srcdir=$srcdir ;;
10026 gezelter 1490 *) # Relative path.
10027 gezelter 2081 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10028     ac_top_srcdir=$ac_top_builddir$srcdir ;;
10029     esac
10030 gezelter 1490
10031 gezelter 2081 # Do not use `cd foo && pwd` to compute absolute paths, because
10032     # the directories may not exist.
10033     case `pwd` in
10034     .) ac_abs_builddir="$ac_dir";;
10035     *)
10036     case "$ac_dir" in
10037     .) ac_abs_builddir=`pwd`;;
10038     [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
10039     *) ac_abs_builddir=`pwd`/"$ac_dir";;
10040     esac;;
10041     esac
10042     case $ac_abs_builddir in
10043     .) ac_abs_top_builddir=${ac_top_builddir}.;;
10044     *)
10045     case ${ac_top_builddir}. in
10046     .) ac_abs_top_builddir=$ac_abs_builddir;;
10047     [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
10048     *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
10049     esac;;
10050     esac
10051     case $ac_abs_builddir in
10052     .) ac_abs_srcdir=$ac_srcdir;;
10053     *)
10054     case $ac_srcdir in
10055     .) ac_abs_srcdir=$ac_abs_builddir;;
10056     [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
10057     *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
10058     esac;;
10059     esac
10060     case $ac_abs_builddir in
10061     .) ac_abs_top_srcdir=$ac_top_srcdir;;
10062     *)
10063     case $ac_top_srcdir in
10064     .) ac_abs_top_srcdir=$ac_abs_builddir;;
10065     [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
10066     *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
10067     esac;;
10068     esac
10069    
10070    
10071 gezelter 1490 case $INSTALL in
10072     [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
10073 gezelter 2081 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
10074 gezelter 1490 esac
10075    
10076     if test x"$ac_file" != x-; then
10077 gezelter 2081 { echo "$as_me:$LINENO: creating $ac_file" >&5
10078 gezelter 1490 echo "$as_me: creating $ac_file" >&6;}
10079     rm -f "$ac_file"
10080     fi
10081     # Let's still pretend it is `configure' which instantiates (i.e., don't
10082     # use $as_me), people would be surprised to read:
10083 gezelter 2081 # /* config.h. Generated by config.status. */
10084     if test x"$ac_file" = x-; then
10085     configure_input=
10086     else
10087     configure_input="$ac_file. "
10088     fi
10089     configure_input=$configure_input"Generated from `echo $ac_file_in |
10090     sed 's,.*/,,'` by configure."
10091 gezelter 1490
10092     # First look for the input files in the build tree, otherwise in the
10093     # src tree.
10094     ac_file_inputs=`IFS=:
10095     for f in $ac_file_in; do
10096     case $f in
10097     -) echo $tmp/stdin ;;
10098     [\\/$]*)
10099 gezelter 2081 # Absolute (can't be DOS-style, as IFS=:)
10100     test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10101 gezelter 1490 echo "$as_me: error: cannot find input file: $f" >&2;}
10102     { (exit 1); exit 1; }; }
10103 gezelter 2081 echo "$f";;
10104 gezelter 1490 *) # Relative
10105 gezelter 2081 if test -f "$f"; then
10106     # Build tree
10107     echo "$f"
10108     elif test -f "$srcdir/$f"; then
10109     # Source tree
10110     echo "$srcdir/$f"
10111     else
10112     # /dev/null tree
10113     { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10114 gezelter 1490 echo "$as_me: error: cannot find input file: $f" >&2;}
10115     { (exit 1); exit 1; }; }
10116 gezelter 2081 fi;;
10117 gezelter 1490 esac
10118     done` || { (exit 1); exit 1; }
10119 gezelter 2081 _ACEOF
10120     cat >>$CONFIG_STATUS <<_ACEOF
10121 gezelter 1490 sed "$ac_vpsub
10122     $extrasub
10123 gezelter 2081 _ACEOF
10124     cat >>$CONFIG_STATUS <<\_ACEOF
10125 gezelter 1490 :t
10126     /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10127     s,@configure_input@,$configure_input,;t t
10128     s,@srcdir@,$ac_srcdir,;t t
10129 gezelter 2081 s,@abs_srcdir@,$ac_abs_srcdir,;t t
10130 gezelter 1490 s,@top_srcdir@,$ac_top_srcdir,;t t
10131 gezelter 2081 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
10132     s,@builddir@,$ac_builddir,;t t
10133     s,@abs_builddir@,$ac_abs_builddir,;t t
10134     s,@top_builddir@,$ac_top_builddir,;t t
10135     s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
10136 gezelter 1490 s,@INSTALL@,$ac_INSTALL,;t t
10137     " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
10138     rm -f $tmp/stdin
10139     if test x"$ac_file" != x-; then
10140     mv $tmp/out $ac_file
10141     else
10142     cat $tmp/out
10143     rm -f $tmp/out
10144     fi
10145    
10146 gezelter 2199 # Run the commands associated with the file.
10147     case $ac_file in
10148     make/Makefile ) chmod 0755 scripts/* ;;
10149     src/utils/Makefile ) chmod 0755 scripts/* ;;
10150     src/applications/nanoRodBuilder/Makefile ) chmod 0755 scripts/* ;;
10151     scripts/filepp ) chmod 0755 scripts/* ;;
10152     esac
10153 gezelter 1490 done
10154 gezelter 2081 _ACEOF
10155     cat >>$CONFIG_STATUS <<\_ACEOF
10156 gezelter 1490
10157     #
10158     # CONFIG_HEADER section.
10159     #
10160    
10161     # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
10162     # NAME is the cpp macro being defined and VALUE is the value it is being given.
10163     #
10164     # ac_d sets the value in "#define NAME VALUE" lines.
10165 gezelter 2081 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
10166     ac_dB='[ ].*$,\1#\2'
10167 gezelter 1490 ac_dC=' '
10168     ac_dD=',;t'
10169     # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
10170 gezelter 2081 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
10171 gezelter 1490 ac_uB='$,\1#\2define\3'
10172     ac_uC=' '
10173     ac_uD=',;t'
10174    
10175     for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
10176     # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10177     case $ac_file in
10178     - | *:- | *:-:* ) # input from stdin
10179 gezelter 2081 cat >$tmp/stdin
10180     ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10181     ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10182 gezelter 1490 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10183 gezelter 2081 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10184 gezelter 1490 * ) ac_file_in=$ac_file.in ;;
10185     esac
10186    
10187 gezelter 2081 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
10188 gezelter 1490 echo "$as_me: creating $ac_file" >&6;}
10189    
10190     # First look for the input files in the build tree, otherwise in the
10191     # src tree.
10192     ac_file_inputs=`IFS=:
10193     for f in $ac_file_in; do
10194     case $f in
10195     -) echo $tmp/stdin ;;
10196     [\\/$]*)
10197 gezelter 2081 # Absolute (can't be DOS-style, as IFS=:)
10198     test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10199 gezelter 1490 echo "$as_me: error: cannot find input file: $f" >&2;}
10200     { (exit 1); exit 1; }; }
10201 gezelter 2081 # Do quote $f, to prevent DOS paths from being IFS'd.
10202     echo "$f";;
10203 gezelter 1490 *) # Relative
10204 gezelter 2081 if test -f "$f"; then
10205     # Build tree
10206     echo "$f"
10207     elif test -f "$srcdir/$f"; then
10208     # Source tree
10209     echo "$srcdir/$f"
10210     else
10211     # /dev/null tree
10212     { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10213 gezelter 1490 echo "$as_me: error: cannot find input file: $f" >&2;}
10214     { (exit 1); exit 1; }; }
10215 gezelter 2081 fi;;
10216 gezelter 1490 esac
10217     done` || { (exit 1); exit 1; }
10218     # Remove the trailing spaces.
10219 gezelter 2081 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
10220 gezelter 1490
10221 gezelter 2081 _ACEOF
10222 gezelter 1490
10223     # Transform confdefs.h into two sed scripts, `conftest.defines' and
10224     # `conftest.undefs', that substitutes the proper values into
10225     # config.h.in to produce config.h. The first handles `#define'
10226     # templates, and the second `#undef' templates.
10227     # And first: Protect against being on the right side of a sed subst in
10228     # config.status. Protect against being in an unquoted here document
10229     # in config.status.
10230     rm -f conftest.defines conftest.undefs
10231     # Using a here document instead of a string reduces the quoting nightmare.
10232     # Putting comments in sed scripts is not portable.
10233     #
10234     # `end' is used to avoid that the second main sed command (meant for
10235     # 0-ary CPP macros) applies to n-ary macro definitions.
10236     # See the Autoconf documentation for `clear'.
10237 gezelter 2081 cat >confdef2sed.sed <<\_ACEOF
10238 gezelter 1490 s/[\\&,]/\\&/g
10239     s,[\\$`],\\&,g
10240     t clear
10241     : clear
10242 gezelter 2081 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
10243 gezelter 1490 t end
10244 gezelter 2081 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
10245 gezelter 1490 : end
10246 gezelter 2081 _ACEOF
10247 gezelter 1490 # If some macros were called several times there might be several times
10248     # the same #defines, which is useless. Nevertheless, we may not want to
10249     # sort them, since we want the *last* AC-DEFINE to be honored.
10250     uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
10251     sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
10252     rm -f confdef2sed.sed
10253    
10254     # This sed command replaces #undef with comments. This is necessary, for
10255     # example, in the case of _POSIX_SOURCE, which is predefined and required
10256     # on some systems where configure will not decide to define it.
10257 gezelter 2081 cat >>conftest.undefs <<\_ACEOF
10258     s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
10259     _ACEOF
10260 gezelter 1490
10261     # Break up conftest.defines because some shells have a limit on the size
10262     # of here documents, and old seds have small limits too (100 cmds).
10263     echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
10264 gezelter 2081 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
10265 gezelter 1490 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
10266     echo ' :' >>$CONFIG_STATUS
10267     rm -f conftest.tail
10268     while grep . conftest.defines >/dev/null
10269     do
10270     # Write a limited-size here document to $tmp/defines.sed.
10271     echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
10272     # Speed up: don't consider the non `#define' lines.
10273 gezelter 2081 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
10274 gezelter 1490 # Work around the forget-to-reset-the-flag bug.
10275     echo 't clr' >>$CONFIG_STATUS
10276     echo ': clr' >>$CONFIG_STATUS
10277     sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
10278     echo 'CEOF
10279     sed -f $tmp/defines.sed $tmp/in >$tmp/out
10280     rm -f $tmp/in
10281     mv $tmp/out $tmp/in
10282     ' >>$CONFIG_STATUS
10283     sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
10284     rm -f conftest.defines
10285     mv conftest.tail conftest.defines
10286     done
10287     rm -f conftest.defines
10288 gezelter 2081 echo ' fi # grep' >>$CONFIG_STATUS
10289 gezelter 1490 echo >>$CONFIG_STATUS
10290    
10291     # Break up conftest.undefs because some shells have a limit on the size
10292     # of here documents, and old seds have small limits too (100 cmds).
10293     echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
10294     rm -f conftest.tail
10295     while grep . conftest.undefs >/dev/null
10296     do
10297     # Write a limited-size here document to $tmp/undefs.sed.
10298     echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
10299     # Speed up: don't consider the non `#undef'
10300 gezelter 2081 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
10301 gezelter 1490 # Work around the forget-to-reset-the-flag bug.
10302     echo 't clr' >>$CONFIG_STATUS
10303     echo ': clr' >>$CONFIG_STATUS
10304     sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
10305     echo 'CEOF
10306     sed -f $tmp/undefs.sed $tmp/in >$tmp/out
10307     rm -f $tmp/in
10308     mv $tmp/out $tmp/in
10309     ' >>$CONFIG_STATUS
10310     sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
10311     rm -f conftest.undefs
10312     mv conftest.tail conftest.undefs
10313     done
10314     rm -f conftest.undefs
10315    
10316 gezelter 2081 cat >>$CONFIG_STATUS <<\_ACEOF
10317 gezelter 1490 # Let's still pretend it is `configure' which instantiates (i.e., don't
10318     # use $as_me), people would be surprised to read:
10319 gezelter 2081 # /* config.h. Generated by config.status. */
10320 gezelter 1490 if test x"$ac_file" = x-; then
10321 gezelter 2081 echo "/* Generated by configure. */" >$tmp/config.h
10322 gezelter 1490 else
10323 gezelter 2081 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
10324 gezelter 1490 fi
10325     cat $tmp/in >>$tmp/config.h
10326     rm -f $tmp/in
10327     if test x"$ac_file" != x-; then
10328 gezelter 2081 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
10329     { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
10330 gezelter 1490 echo "$as_me: $ac_file is unchanged" >&6;}
10331     else
10332 gezelter 2081 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10333     $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10334     X"$ac_file" : 'X\(//\)[^/]' \| \
10335     X"$ac_file" : 'X\(//\)$' \| \
10336     X"$ac_file" : 'X\(/\)' \| \
10337     . : '\(.\)' 2>/dev/null ||
10338 gezelter 1490 echo X"$ac_file" |
10339     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10340     /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10341     /^X\(\/\/\)$/{ s//\1/; q; }
10342     /^X\(\/\).*/{ s//\1/; q; }
10343     s/.*/./; q'`
10344 gezelter 2081 { if $as_mkdir_p; then
10345     mkdir -p "$ac_dir"
10346     else
10347     as_dir="$ac_dir"
10348     as_dirs=
10349     while test ! -d "$as_dir"; do
10350     as_dirs="$as_dir $as_dirs"
10351     as_dir=`(dirname "$as_dir") 2>/dev/null ||
10352     $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10353     X"$as_dir" : 'X\(//\)[^/]' \| \
10354     X"$as_dir" : 'X\(//\)$' \| \
10355     X"$as_dir" : 'X\(/\)' \| \
10356     . : '\(.\)' 2>/dev/null ||
10357     echo X"$as_dir" |
10358     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10359     /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10360     /^X\(\/\/\)$/{ s//\1/; q; }
10361     /^X\(\/\).*/{ s//\1/; q; }
10362     s/.*/./; q'`
10363     done
10364     test ! -n "$as_dirs" || mkdir $as_dirs
10365     fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10366     echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10367     { (exit 1); exit 1; }; }; }
10368 gezelter 1490
10369     rm -f $ac_file
10370     mv $tmp/config.h $ac_file
10371     fi
10372     else
10373     cat $tmp/config.h
10374     rm -f $tmp/config.h
10375     fi
10376     done
10377 gezelter 2081 _ACEOF
10378     cat >>$CONFIG_STATUS <<\_ACEOF
10379 gezelter 1490
10380     #
10381     # CONFIG_LINKS section.
10382     #
10383    
10384     for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
10385     ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
10386     ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
10387    
10388 gezelter 2081 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
10389 gezelter 1490 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
10390    
10391     if test ! -r $srcdir/$ac_source; then
10392 gezelter 2081 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
10393     echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
10394 gezelter 1490 { (exit 1); exit 1; }; }
10395     fi
10396     rm -f $ac_dest
10397    
10398     # Make relative symlinks.
10399 gezelter 2081 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
10400     $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10401     X"$ac_dest" : 'X\(//\)[^/]' \| \
10402     X"$ac_dest" : 'X\(//\)$' \| \
10403     X"$ac_dest" : 'X\(/\)' \| \
10404     . : '\(.\)' 2>/dev/null ||
10405 gezelter 1490 echo X"$ac_dest" |
10406     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10407     /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10408     /^X\(\/\/\)$/{ s//\1/; q; }
10409     /^X\(\/\).*/{ s//\1/; q; }
10410     s/.*/./; q'`
10411 gezelter 2081 { if $as_mkdir_p; then
10412     mkdir -p "$ac_dest_dir"
10413     else
10414     as_dir="$ac_dest_dir"
10415     as_dirs=
10416     while test ! -d "$as_dir"; do
10417     as_dirs="$as_dir $as_dirs"
10418     as_dir=`(dirname "$as_dir") 2>/dev/null ||
10419     $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10420     X"$as_dir" : 'X\(//\)[^/]' \| \
10421     X"$as_dir" : 'X\(//\)$' \| \
10422     X"$as_dir" : 'X\(/\)' \| \
10423     . : '\(.\)' 2>/dev/null ||
10424     echo X"$as_dir" |
10425     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10426     /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10427     /^X\(\/\/\)$/{ s//\1/; q; }
10428     /^X\(\/\).*/{ s//\1/; q; }
10429     s/.*/./; q'`
10430     done
10431     test ! -n "$as_dirs" || mkdir $as_dirs
10432     fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
10433     echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
10434     { (exit 1); exit 1; }; }; }
10435    
10436     ac_builddir=.
10437    
10438     if test "$ac_dest_dir" != .; then
10439     ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
10440     # A "../" for each directory in $ac_dir_suffix.
10441     ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10442     else
10443     ac_dir_suffix= ac_top_builddir=
10444     fi
10445    
10446     case $srcdir in
10447     .) # No --srcdir option. We are building in place.
10448     ac_srcdir=.
10449     if test -z "$ac_top_builddir"; then
10450     ac_top_srcdir=.
10451     else
10452     ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10453     fi ;;
10454     [\\/]* | ?:[\\/]* ) # Absolute path.
10455     ac_srcdir=$srcdir$ac_dir_suffix;
10456     ac_top_srcdir=$srcdir ;;
10457     *) # Relative path.
10458     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10459     ac_top_srcdir=$ac_top_builddir$srcdir ;;
10460 gezelter 1490 esac
10461    
10462 gezelter 2081 # Do not use `cd foo && pwd` to compute absolute paths, because
10463     # the directories may not exist.
10464     case `pwd` in
10465     .) ac_abs_builddir="$ac_dest_dir";;
10466     *)
10467     case "$ac_dest_dir" in
10468     .) ac_abs_builddir=`pwd`;;
10469     [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
10470     *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
10471     esac;;
10472     esac
10473     case $ac_abs_builddir in
10474     .) ac_abs_top_builddir=${ac_top_builddir}.;;
10475     *)
10476     case ${ac_top_builddir}. in
10477     .) ac_abs_top_builddir=$ac_abs_builddir;;
10478     [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
10479     *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
10480     esac;;
10481     esac
10482     case $ac_abs_builddir in
10483     .) ac_abs_srcdir=$ac_srcdir;;
10484     *)
10485     case $ac_srcdir in
10486     .) ac_abs_srcdir=$ac_abs_builddir;;
10487     [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
10488     *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
10489     esac;;
10490     esac
10491     case $ac_abs_builddir in
10492     .) ac_abs_top_srcdir=$ac_top_srcdir;;
10493     *)
10494     case $ac_top_srcdir in
10495     .) ac_abs_top_srcdir=$ac_abs_builddir;;
10496     [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
10497     *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
10498     esac;;
10499     esac
10500 gezelter 1490
10501 gezelter 2081
10502 gezelter 1490 case $srcdir in
10503     [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
10504 gezelter 2081 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
10505 gezelter 1490 esac
10506    
10507 gezelter 2081 # Try a symlink, then a hard link, then a copy.
10508 gezelter 1490 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
10509 gezelter 2081 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
10510     cp -p $srcdir/$ac_source $ac_dest ||
10511     { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
10512     echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
10513 gezelter 1490 { (exit 1); exit 1; }; }
10514     done
10515 gezelter 2081 _ACEOF
10516 gezelter 1490
10517 gezelter 2081 cat >>$CONFIG_STATUS <<\_ACEOF
10518 gezelter 1490
10519     { (exit 0); exit 0; }
10520 gezelter 2081 _ACEOF
10521 gezelter 1490 chmod +x $CONFIG_STATUS
10522     ac_clean_files=$ac_clean_files_save
10523    
10524 gezelter 2081
10525 gezelter 1490 # configure is writing to config.log, and then calls config.status.
10526     # config.status does its own redirection, appending to config.log.
10527     # Unfortunately, on DOS this fails, as config.log is still kept open
10528     # by configure, so config.status won't be able to write to it; its
10529     # output is simply discarded. So we exec the FD to /dev/null,
10530     # effectively closing config.log, so it can be properly (re)opened and
10531     # appended to by config.status. When coming back to configure, we
10532     # need to make the FD available again.
10533     if test "$no_create" != yes; then
10534     ac_cs_success=:
10535 gezelter 2081 ac_config_status_args=
10536     test "$silent" = yes &&
10537     ac_config_status_args="$ac_config_status_args --quiet"
10538 gezelter 1490 exec 5>/dev/null
10539 gezelter 2081 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10540 gezelter 1490 exec 5>>config.log
10541     # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10542     # would make configure fail if this is the last instruction.
10543     $ac_cs_success || { (exit 1); exit 1; }
10544     fi
10545    

Properties

Name Value
svn:executable *