added configure support for heap analyses
[libfirm] / configure
1 #! /bin/sh
2 # From configure.in Id: configure.in.
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.53 for libfirm 0.3.0.
5 #
6 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
7 # Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10
11 if expr a : '\(a\)' >/dev/null 2>&1; then
12   as_expr=expr
13 else
14   as_expr=false
15 fi
16
17
18 ## --------------------- ##
19 ## M4sh Initialization.  ##
20 ## --------------------- ##
21
22 # Be Bourne compatible
23 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24   emulate sh
25   NULLCMD=:
26 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
27   set -o posix
28 fi
29
30 # NLS nuisances.
31 # Support unset when possible.
32 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
33   as_unset=unset
34 else
35   as_unset=false
36 fi
37
38 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
39     { $as_unset LANG || test "${LANG+set}" != set; } ||
40       { LANG=C; export LANG; }
41 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
42     { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
43       { LC_ALL=C; export LC_ALL; }
44 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
45     { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
46       { LC_TIME=C; export LC_TIME; }
47 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
48     { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
49       { LC_CTYPE=C; export LC_CTYPE; }
50 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
51     { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
52       { LANGUAGE=C; export LANGUAGE; }
53 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
54     { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
55       { LC_COLLATE=C; export LC_COLLATE; }
56 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
57     { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
58       { LC_NUMERIC=C; export LC_NUMERIC; }
59 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
60     { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
61       { LC_MESSAGES=C; export LC_MESSAGES; }
62
63
64 # Name of the executable.
65 as_me=`(basename "$0") 2>/dev/null ||
66 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
67          X"$0" : 'X\(//\)$' \| \
68          X"$0" : 'X\(/\)$' \| \
69          .     : '\(.\)' 2>/dev/null ||
70 echo X/"$0" |
71     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
72           /^X\/\(\/\/\)$/{ s//\1/; q; }
73           /^X\/\(\/\).*/{ s//\1/; q; }
74           s/.*/./; q'`
75
76 # PATH needs CR, and LINENO needs CR and PATH.
77 # Avoid depending upon Character Ranges.
78 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
79 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
80 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
81 as_cr_digits='0123456789'
82 as_cr_alnum=$as_cr_Letters$as_cr_digits
83
84 # The user is always right.
85 if test "${PATH_SEPARATOR+set}" != set; then
86   echo "#! /bin/sh" >conftest.sh
87   echo  "exit 0"   >>conftest.sh
88   chmod +x conftest.sh
89   if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
90     PATH_SEPARATOR=';'
91   else
92     PATH_SEPARATOR=:
93   fi
94   rm -f conftest.sh
95 fi
96
97
98   as_lineno_1=$LINENO
99   as_lineno_2=$LINENO
100   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
101   test "x$as_lineno_1" != "x$as_lineno_2" &&
102   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
103   # Find who we are.  Look in the path if we contain no path at all
104   # relative or not.
105   case $0 in
106     *[\\/]* ) as_myself=$0 ;;
107     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
108 for as_dir in $PATH
109 do
110   IFS=$as_save_IFS
111   test -z "$as_dir" && as_dir=.
112   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
113 done
114
115        ;;
116   esac
117   # We did not find ourselves, most probably we were run as `sh COMMAND'
118   # in which case we are not to be found in the path.
119   if test "x$as_myself" = x; then
120     as_myself=$0
121   fi
122   if test ! -f "$as_myself"; then
123     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
124    { (exit 1); exit 1; }; }
125   fi
126   case $CONFIG_SHELL in
127   '')
128     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
129 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
130 do
131   IFS=$as_save_IFS
132   test -z "$as_dir" && as_dir=.
133   for as_base in sh bash ksh sh5; do
134          case $as_dir in
135          /*)
136            if ("$as_dir/$as_base" -c '
137   as_lineno_1=$LINENO
138   as_lineno_2=$LINENO
139   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
140   test "x$as_lineno_1" != "x$as_lineno_2" &&
141   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
142              CONFIG_SHELL=$as_dir/$as_base
143              export CONFIG_SHELL
144              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
145            fi;;
146          esac
147        done
148 done
149 ;;
150   esac
151
152   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
153   # uniformly replaced by the line number.  The first 'sed' inserts a
154   # line-number line before each line; the second 'sed' does the real
155   # work.  The second script uses 'N' to pair each line-number line
156   # with the numbered line, and appends trailing '-' during
157   # substitution so that $LINENO is not a special case at line end.
158   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
159   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
160   sed '=' <$as_myself |
161     sed '
162       N
163       s,$,-,
164       : loop
165       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
166       t loop
167       s,-$,,
168       s,^['$as_cr_digits']*\n,,
169     ' >$as_me.lineno &&
170   chmod +x $as_me.lineno ||
171     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
172    { (exit 1); exit 1; }; }
173
174   # Don't try to exec as it changes $[0], causing all sort of problems
175   # (the dirname of $[0] is not the place where we might find the
176   # original and so on.  Autoconf is especially sensible to this).
177   . ./$as_me.lineno
178   # Exit status is that of the last command.
179   exit
180 }
181
182
183 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
184   *c*,-n*) ECHO_N= ECHO_C='
185 ' ECHO_T='      ' ;;
186   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
187   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
188 esac
189
190 if expr a : '\(a\)' >/dev/null 2>&1; then
191   as_expr=expr
192 else
193   as_expr=false
194 fi
195
196 rm -f conf$$ conf$$.exe conf$$.file
197 echo >conf$$.file
198 if ln -s conf$$.file conf$$ 2>/dev/null; then
199   # We could just check for DJGPP; but this test a) works b) is more generic
200   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
201   if test -f conf$$.exe; then
202     # Don't use ln at all; we don't have any links
203     as_ln_s='cp -p'
204   else
205     as_ln_s='ln -s'
206   fi
207 elif ln conf$$.file conf$$ 2>/dev/null; then
208   as_ln_s=ln
209 else
210   as_ln_s='cp -p'
211 fi
212 rm -f conf$$ conf$$.exe conf$$.file
213
214 as_executable_p="test -f"
215
216 # Sed expression to map a string onto a valid CPP name.
217 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
218
219 # Sed expression to map a string onto a valid variable name.
220 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
221
222
223 # IFS
224 # We need space, tab and new line, in precisely that order.
225 as_nl='
226 '
227 IFS="   $as_nl"
228
229 # CDPATH.
230 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
231
232
233 # Name of the host.
234 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
235 # so uname gets run too.
236 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
237
238 exec 6>&1
239
240 #
241 # Initializations.
242 #
243 ac_default_prefix=/usr/local
244 cross_compiling=no
245 subdirs=
246 MFLAGS=
247 MAKEFLAGS=
248 SHELL=${CONFIG_SHELL-/bin/sh}
249
250 # Maximum number of lines to put in a shell here document.
251 # This variable seems obsolete.  It should probably be removed, and
252 # only ac_max_sed_lines should be used.
253 : ${ac_max_here_lines=38}
254
255 # Identity of this package.
256 PACKAGE_NAME='libfirm'
257 PACKAGE_TARNAME='libfirm'
258 PACKAGE_VERSION='0.3.0'
259 PACKAGE_STRING='libfirm 0.3.0'
260 PACKAGE_BUGREPORT=''
261
262 # Factoring default headers for most tests.
263 ac_includes_default="\
264 #include <stdio.h>
265 #if HAVE_SYS_TYPES_H
266 # include <sys/types.h>
267 #endif
268 #if HAVE_SYS_STAT_H
269 # include <sys/stat.h>
270 #endif
271 #if STDC_HEADERS
272 # include <stdlib.h>
273 # include <stddef.h>
274 #else
275 # if HAVE_STDLIB_H
276 #  include <stdlib.h>
277 # endif
278 #endif
279 #if HAVE_STRING_H
280 # if !STDC_HEADERS && HAVE_MEMORY_H
281 #  include <memory.h>
282 # endif
283 # include <string.h>
284 #endif
285 #if HAVE_STRINGS_H
286 # include <strings.h>
287 #endif
288 #if HAVE_INTTYPES_H
289 # include <inttypes.h>
290 #else
291 # if HAVE_STDINT_H
292 #  include <stdint.h>
293 # endif
294 #endif
295 #if HAVE_UNISTD_H
296 # include <unistd.h>
297 #endif"
298
299
300 # Initialize some variables set by options.
301 ac_init_help=
302 ac_init_version=false
303 # The variables have the same names as the options, with
304 # dashes changed to underlines.
305 cache_file=/dev/null
306 exec_prefix=NONE
307 no_create=
308 no_recursion=
309 prefix=NONE
310 program_prefix=NONE
311 program_suffix=NONE
312 program_transform_name=s,x,x,
313 silent=
314 site=
315 srcdir=
316 verbose=
317 x_includes=NONE
318 x_libraries=NONE
319
320 # Installation directory options.
321 # These are left unexpanded so users can "make install exec_prefix=/foo"
322 # and all the variables that are supposed to be based on exec_prefix
323 # by default will actually change.
324 # Use braces instead of parens because sh, perl, etc. also accept them.
325 bindir='${exec_prefix}/bin'
326 sbindir='${exec_prefix}/sbin'
327 libexecdir='${exec_prefix}/libexec'
328 datadir='${prefix}/share'
329 sysconfdir='${prefix}/etc'
330 sharedstatedir='${prefix}/com'
331 localstatedir='${prefix}/var'
332 libdir='${exec_prefix}/lib'
333 includedir='${prefix}/include'
334 oldincludedir='/usr/include'
335 infodir='${prefix}/info'
336 mandir='${prefix}/man'
337
338 ac_prev=
339 for ac_option
340 do
341   # If the previous option needs an argument, assign it.
342   if test -n "$ac_prev"; then
343     eval "$ac_prev=\$ac_option"
344     ac_prev=
345     continue
346   fi
347
348   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
349
350   # Accept the important Cygnus configure options, so we can diagnose typos.
351
352   case $ac_option in
353
354   -bindir | --bindir | --bindi | --bind | --bin | --bi)
355     ac_prev=bindir ;;
356   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
357     bindir=$ac_optarg ;;
358
359   -build | --build | --buil | --bui | --bu)
360     ac_prev=build_alias ;;
361   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
362     build_alias=$ac_optarg ;;
363
364   -cache-file | --cache-file | --cache-fil | --cache-fi \
365   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
366     ac_prev=cache_file ;;
367   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
368   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
369     cache_file=$ac_optarg ;;
370
371   --config-cache | -C)
372     cache_file=config.cache ;;
373
374   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
375     ac_prev=datadir ;;
376   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
377   | --da=*)
378     datadir=$ac_optarg ;;
379
380   -disable-* | --disable-*)
381     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
382     # Reject names that are not valid shell variable names.
383     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
384       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
385    { (exit 1); exit 1; }; }
386     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
387     eval "enable_$ac_feature=no" ;;
388
389   -enable-* | --enable-*)
390     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
391     # Reject names that are not valid shell variable names.
392     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
393       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
394    { (exit 1); exit 1; }; }
395     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
396     case $ac_option in
397       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
398       *) ac_optarg=yes ;;
399     esac
400     eval "enable_$ac_feature='$ac_optarg'" ;;
401
402   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
403   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
404   | --exec | --exe | --ex)
405     ac_prev=exec_prefix ;;
406   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
407   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
408   | --exec=* | --exe=* | --ex=*)
409     exec_prefix=$ac_optarg ;;
410
411   -gas | --gas | --ga | --g)
412     # Obsolete; use --with-gas.
413     with_gas=yes ;;
414
415   -help | --help | --hel | --he | -h)
416     ac_init_help=long ;;
417   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
418     ac_init_help=recursive ;;
419   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
420     ac_init_help=short ;;
421
422   -host | --host | --hos | --ho)
423     ac_prev=host_alias ;;
424   -host=* | --host=* | --hos=* | --ho=*)
425     host_alias=$ac_optarg ;;
426
427   -includedir | --includedir | --includedi | --included | --include \
428   | --includ | --inclu | --incl | --inc)
429     ac_prev=includedir ;;
430   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
431   | --includ=* | --inclu=* | --incl=* | --inc=*)
432     includedir=$ac_optarg ;;
433
434   -infodir | --infodir | --infodi | --infod | --info | --inf)
435     ac_prev=infodir ;;
436   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
437     infodir=$ac_optarg ;;
438
439   -libdir | --libdir | --libdi | --libd)
440     ac_prev=libdir ;;
441   -libdir=* | --libdir=* | --libdi=* | --libd=*)
442     libdir=$ac_optarg ;;
443
444   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
445   | --libexe | --libex | --libe)
446     ac_prev=libexecdir ;;
447   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
448   | --libexe=* | --libex=* | --libe=*)
449     libexecdir=$ac_optarg ;;
450
451   -localstatedir | --localstatedir | --localstatedi | --localstated \
452   | --localstate | --localstat | --localsta | --localst \
453   | --locals | --local | --loca | --loc | --lo)
454     ac_prev=localstatedir ;;
455   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
456   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
457   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
458     localstatedir=$ac_optarg ;;
459
460   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
461     ac_prev=mandir ;;
462   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
463     mandir=$ac_optarg ;;
464
465   -nfp | --nfp | --nf)
466     # Obsolete; use --without-fp.
467     with_fp=no ;;
468
469   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
470   | --no-cr | --no-c | -n)
471     no_create=yes ;;
472
473   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
474   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
475     no_recursion=yes ;;
476
477   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
478   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
479   | --oldin | --oldi | --old | --ol | --o)
480     ac_prev=oldincludedir ;;
481   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
482   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
483   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
484     oldincludedir=$ac_optarg ;;
485
486   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
487     ac_prev=prefix ;;
488   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
489     prefix=$ac_optarg ;;
490
491   -program-prefix | --program-prefix | --program-prefi | --program-pref \
492   | --program-pre | --program-pr | --program-p)
493     ac_prev=program_prefix ;;
494   -program-prefix=* | --program-prefix=* | --program-prefi=* \
495   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
496     program_prefix=$ac_optarg ;;
497
498   -program-suffix | --program-suffix | --program-suffi | --program-suff \
499   | --program-suf | --program-su | --program-s)
500     ac_prev=program_suffix ;;
501   -program-suffix=* | --program-suffix=* | --program-suffi=* \
502   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
503     program_suffix=$ac_optarg ;;
504
505   -program-transform-name | --program-transform-name \
506   | --program-transform-nam | --program-transform-na \
507   | --program-transform-n | --program-transform- \
508   | --program-transform | --program-transfor \
509   | --program-transfo | --program-transf \
510   | --program-trans | --program-tran \
511   | --progr-tra | --program-tr | --program-t)
512     ac_prev=program_transform_name ;;
513   -program-transform-name=* | --program-transform-name=* \
514   | --program-transform-nam=* | --program-transform-na=* \
515   | --program-transform-n=* | --program-transform-=* \
516   | --program-transform=* | --program-transfor=* \
517   | --program-transfo=* | --program-transf=* \
518   | --program-trans=* | --program-tran=* \
519   | --progr-tra=* | --program-tr=* | --program-t=*)
520     program_transform_name=$ac_optarg ;;
521
522   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
523   | -silent | --silent | --silen | --sile | --sil)
524     silent=yes ;;
525
526   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
527     ac_prev=sbindir ;;
528   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
529   | --sbi=* | --sb=*)
530     sbindir=$ac_optarg ;;
531
532   -sharedstatedir | --sharedstatedir | --sharedstatedi \
533   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
534   | --sharedst | --shareds | --shared | --share | --shar \
535   | --sha | --sh)
536     ac_prev=sharedstatedir ;;
537   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
538   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
539   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
540   | --sha=* | --sh=*)
541     sharedstatedir=$ac_optarg ;;
542
543   -site | --site | --sit)
544     ac_prev=site ;;
545   -site=* | --site=* | --sit=*)
546     site=$ac_optarg ;;
547
548   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
549     ac_prev=srcdir ;;
550   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
551     srcdir=$ac_optarg ;;
552
553   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
554   | --syscon | --sysco | --sysc | --sys | --sy)
555     ac_prev=sysconfdir ;;
556   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
557   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
558     sysconfdir=$ac_optarg ;;
559
560   -target | --target | --targe | --targ | --tar | --ta | --t)
561     ac_prev=target_alias ;;
562   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
563     target_alias=$ac_optarg ;;
564
565   -v | -verbose | --verbose | --verbos | --verbo | --verb)
566     verbose=yes ;;
567
568   -version | --version | --versio | --versi | --vers | -V)
569     ac_init_version=: ;;
570
571   -with-* | --with-*)
572     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
573     # Reject names that are not valid shell variable names.
574     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
575       { echo "$as_me: error: invalid package name: $ac_package" >&2
576    { (exit 1); exit 1; }; }
577     ac_package=`echo $ac_package| sed 's/-/_/g'`
578     case $ac_option in
579       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
580       *) ac_optarg=yes ;;
581     esac
582     eval "with_$ac_package='$ac_optarg'" ;;
583
584   -without-* | --without-*)
585     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
586     # Reject names that are not valid shell variable names.
587     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
588       { echo "$as_me: error: invalid package name: $ac_package" >&2
589    { (exit 1); exit 1; }; }
590     ac_package=`echo $ac_package | sed 's/-/_/g'`
591     eval "with_$ac_package=no" ;;
592
593   --x)
594     # Obsolete; use --with-x.
595     with_x=yes ;;
596
597   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
598   | --x-incl | --x-inc | --x-in | --x-i)
599     ac_prev=x_includes ;;
600   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
601   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
602     x_includes=$ac_optarg ;;
603
604   -x-libraries | --x-libraries | --x-librarie | --x-librari \
605   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
606     ac_prev=x_libraries ;;
607   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
608   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
609     x_libraries=$ac_optarg ;;
610
611   -*) { echo "$as_me: error: unrecognized option: $ac_option
612 Try \`$0 --help' for more information." >&2
613    { (exit 1); exit 1; }; }
614     ;;
615
616   *=*)
617     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
618     # Reject names that are not valid shell variable names.
619     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
620       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
621    { (exit 1); exit 1; }; }
622     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
623     eval "$ac_envvar='$ac_optarg'"
624     export $ac_envvar ;;
625
626   *)
627     # FIXME: should be removed in autoconf 3.0.
628     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
629     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
630       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
631     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
632     ;;
633
634   esac
635 done
636
637 if test -n "$ac_prev"; then
638   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
639   { echo "$as_me: error: missing argument to $ac_option" >&2
640    { (exit 1); exit 1; }; }
641 fi
642
643 # Be sure to have absolute paths.
644 for ac_var in exec_prefix prefix
645 do
646   eval ac_val=$`echo $ac_var`
647   case $ac_val in
648     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
649     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
650    { (exit 1); exit 1; }; };;
651   esac
652 done
653
654 # Be sure to have absolute paths.
655 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
656               localstatedir libdir includedir oldincludedir infodir mandir
657 do
658   eval ac_val=$`echo $ac_var`
659   case $ac_val in
660     [\\/$]* | ?:[\\/]* ) ;;
661     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
662    { (exit 1); exit 1; }; };;
663   esac
664 done
665
666 # There might be people who depend on the old broken behavior: `$host'
667 # used to hold the argument of --host etc.
668 # FIXME: To remove some day.
669 build=$build_alias
670 host=$host_alias
671 target=$target_alias
672
673 # FIXME: To remove some day.
674 if test "x$host_alias" != x; then
675   if test "x$build_alias" = x; then
676     cross_compiling=maybe
677     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
678     If a cross compiler is detected then cross compile mode will be used." >&2
679   elif test "x$build_alias" != "x$host_alias"; then
680     cross_compiling=yes
681   fi
682 fi
683
684 ac_tool_prefix=
685 test -n "$host_alias" && ac_tool_prefix=$host_alias-
686
687 test "$silent" = yes && exec 6>/dev/null
688
689
690 # Find the source files, if location was not specified.
691 if test -z "$srcdir"; then
692   ac_srcdir_defaulted=yes
693   # Try the directory containing this script, then its parent.
694   ac_confdir=`(dirname "$0") 2>/dev/null ||
695 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
696          X"$0" : 'X\(//\)[^/]' \| \
697          X"$0" : 'X\(//\)$' \| \
698          X"$0" : 'X\(/\)' \| \
699          .     : '\(.\)' 2>/dev/null ||
700 echo X"$0" |
701     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
702           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
703           /^X\(\/\/\)$/{ s//\1/; q; }
704           /^X\(\/\).*/{ s//\1/; q; }
705           s/.*/./; q'`
706   srcdir=$ac_confdir
707   if test ! -r $srcdir/$ac_unique_file; then
708     srcdir=..
709   fi
710 else
711   ac_srcdir_defaulted=no
712 fi
713 if test ! -r $srcdir/$ac_unique_file; then
714   if test "$ac_srcdir_defaulted" = yes; then
715     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
716    { (exit 1); exit 1; }; }
717   else
718     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
719    { (exit 1); exit 1; }; }
720   fi
721 fi
722 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
723 ac_env_build_alias_set=${build_alias+set}
724 ac_env_build_alias_value=$build_alias
725 ac_cv_env_build_alias_set=${build_alias+set}
726 ac_cv_env_build_alias_value=$build_alias
727 ac_env_host_alias_set=${host_alias+set}
728 ac_env_host_alias_value=$host_alias
729 ac_cv_env_host_alias_set=${host_alias+set}
730 ac_cv_env_host_alias_value=$host_alias
731 ac_env_target_alias_set=${target_alias+set}
732 ac_env_target_alias_value=$target_alias
733 ac_cv_env_target_alias_set=${target_alias+set}
734 ac_cv_env_target_alias_value=$target_alias
735 ac_env_CC_set=${CC+set}
736 ac_env_CC_value=$CC
737 ac_cv_env_CC_set=${CC+set}
738 ac_cv_env_CC_value=$CC
739 ac_env_CFLAGS_set=${CFLAGS+set}
740 ac_env_CFLAGS_value=$CFLAGS
741 ac_cv_env_CFLAGS_set=${CFLAGS+set}
742 ac_cv_env_CFLAGS_value=$CFLAGS
743 ac_env_LDFLAGS_set=${LDFLAGS+set}
744 ac_env_LDFLAGS_value=$LDFLAGS
745 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
746 ac_cv_env_LDFLAGS_value=$LDFLAGS
747 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
748 ac_env_CPPFLAGS_value=$CPPFLAGS
749 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
750 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
751 ac_env_CPP_set=${CPP+set}
752 ac_env_CPP_value=$CPP
753 ac_cv_env_CPP_set=${CPP+set}
754 ac_cv_env_CPP_value=$CPP
755
756 #
757 # Report the --help message.
758 #
759 if test "$ac_init_help" = "long"; then
760   # Omit some internal or obsolete options to make the list less imposing.
761   # This message is too long to be a string in the A/UX 3.1 sh.
762   cat <<_ACEOF
763 \`configure' configures libfirm 0.3.0 to adapt to many kinds of systems.
764
765 Usage: $0 [OPTION]... [VAR=VALUE]...
766
767 To assign environment variables (e.g., CC, CFLAGS...), specify them as
768 VAR=VALUE.  See below for descriptions of some of the useful variables.
769
770 Defaults for the options are specified in brackets.
771
772 Configuration:
773   -h, --help              display this help and exit
774       --help=short        display options specific to this package
775       --help=recursive    display the short help of all the included packages
776   -V, --version           display version information and exit
777   -q, --quiet, --silent   do not print \`checking...' messages
778       --cache-file=FILE   cache test results in FILE [disabled]
779   -C, --config-cache      alias for \`--cache-file=config.cache'
780   -n, --no-create         do not create output files
781       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
782
783 _ACEOF
784
785   cat <<_ACEOF
786 Installation directories:
787   --prefix=PREFIX         install architecture-independent files in PREFIX
788                           [$ac_default_prefix]
789   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
790                           [PREFIX]
791
792 By default, \`make install' will install all the files in
793 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
794 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
795 for instance \`--prefix=\$HOME'.
796
797 For better control, use the options below.
798
799 Fine tuning of the installation directories:
800   --bindir=DIR           user executables [EPREFIX/bin]
801   --sbindir=DIR          system admin executables [EPREFIX/sbin]
802   --libexecdir=DIR       program executables [EPREFIX/libexec]
803   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
804   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
805   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
806   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
807   --libdir=DIR           object code libraries [EPREFIX/lib]
808   --includedir=DIR       C header files [PREFIX/include]
809   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
810   --infodir=DIR          info documentation [PREFIX/info]
811   --mandir=DIR           man documentation [PREFIX/man]
812 _ACEOF
813
814   cat <<\_ACEOF
815 _ACEOF
816 fi
817
818 if test -n "$ac_init_help"; then
819   case $ac_init_help in
820      short | recursive ) echo "Configuration of libfirm 0.3.0:";;
821    esac
822   cat <<\_ACEOF
823
824 Optional Features:
825   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
826   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
827   --enable-debug          enable assertions and additional debugging routines
828   --disable-inlining      disable inline C-extension
829   --enable-profile        enable profiling
830   --enable-autodoc        enable auto documentation
831   --enable-firmjni        check for tools necesarry to construct a java native interface for Firm
832   --enable-heapanalysis       Compile with heap analysis.
833   --disable-libiberty     disable own libiberty parts
834   --enable-statistics     enable Firm statistics
835
836 Optional Packages:
837   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
838   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
839   --with-includedir=add colon seperated list of directories to include search path
840   --with-libdir=add colon seperated list of directories to linker search path
841
842 Some influential environment variables:
843   CC          C compiler command
844   CFLAGS      C compiler flags
845   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
846               nonstandard directory <lib dir>
847   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
848               headers in a nonstandard directory <include dir>
849   CPP         C preprocessor
850
851 Use these variables to override the choices made by `configure' or to help
852 it to find libraries and programs with nonstandard names/locations.
853
854 _ACEOF
855 fi
856
857 if test "$ac_init_help" = "recursive"; then
858   # If there are subdirs, report their specific --help.
859   ac_popdir=`pwd`
860   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
861     test -d $ac_dir || continue
862     ac_builddir=.
863
864 if test "$ac_dir" != .; then
865   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
866   # A "../" for each directory in $ac_dir_suffix.
867   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
868 else
869   ac_dir_suffix= ac_top_builddir=
870 fi
871
872 case $srcdir in
873   .)  # No --srcdir option.  We are building in place.
874     ac_srcdir=.
875     if test -z "$ac_top_builddir"; then
876        ac_top_srcdir=.
877     else
878        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
879     fi ;;
880   [\\/]* | ?:[\\/]* )  # Absolute path.
881     ac_srcdir=$srcdir$ac_dir_suffix;
882     ac_top_srcdir=$srcdir ;;
883   *) # Relative path.
884     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
885     ac_top_srcdir=$ac_top_builddir$srcdir ;;
886 esac
887 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
888 # absolute.
889 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
890 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
891 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
892 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
893
894     cd $ac_dir
895     # Check for guested configure; otherwise get Cygnus style configure.
896     if test -f $ac_srcdir/configure.gnu; then
897       echo
898       $SHELL $ac_srcdir/configure.gnu  --help=recursive
899     elif test -f $ac_srcdir/configure; then
900       echo
901       $SHELL $ac_srcdir/configure  --help=recursive
902     elif test -f $ac_srcdir/configure.ac ||
903            test -f $ac_srcdir/configure.in; then
904       echo
905       $ac_configure --help
906     else
907       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
908     fi
909     cd $ac_popdir
910   done
911 fi
912
913 test -n "$ac_init_help" && exit 0
914 if $ac_init_version; then
915   cat <<\_ACEOF
916 libfirm configure 0.3.0
917 generated by GNU Autoconf 2.53
918
919 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
920 Free Software Foundation, Inc.
921 This configure script is free software; the Free Software Foundation
922 gives unlimited permission to copy, distribute and modify it.
923 _ACEOF
924   exit 0
925 fi
926 exec 5>config.log
927 cat >&5 <<_ACEOF
928 This file contains any messages produced by compilers while
929 running configure, to aid debugging if configure makes a mistake.
930
931 It was created by libfirm $as_me 0.3.0, which was
932 generated by GNU Autoconf 2.53.  Invocation command line was
933
934   $ $0 $@
935
936 _ACEOF
937 {
938 cat <<_ASUNAME
939 ## --------- ##
940 ## Platform. ##
941 ## --------- ##
942
943 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
944 uname -m = `(uname -m) 2>/dev/null || echo unknown`
945 uname -r = `(uname -r) 2>/dev/null || echo unknown`
946 uname -s = `(uname -s) 2>/dev/null || echo unknown`
947 uname -v = `(uname -v) 2>/dev/null || echo unknown`
948
949 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
950 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
951
952 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
953 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
954 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
955 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
956 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
957 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
958 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
959
960 _ASUNAME
961
962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
963 for as_dir in $PATH
964 do
965   IFS=$as_save_IFS
966   test -z "$as_dir" && as_dir=.
967   echo "PATH: $as_dir"
968 done
969
970 } >&5
971
972 cat >&5 <<_ACEOF
973
974
975 ## ----------- ##
976 ## Core tests. ##
977 ## ----------- ##
978
979 _ACEOF
980
981
982 # Keep a trace of the command line.
983 # Strip out --no-create and --no-recursion so they do not pile up.
984 # Also quote any args containing shell meta-characters.
985 ac_configure_args=
986 ac_sep=
987 for ac_arg
988 do
989   case $ac_arg in
990   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
991   | --no-cr | --no-c | -n ) continue ;;
992   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
993   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
994     continue ;;
995   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
996     ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
997   esac
998   case " $ac_configure_args " in
999     *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1000     *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1001        ac_sep=" " ;;
1002   esac
1003   # Get rid of the leading space.
1004 done
1005
1006 # When interrupted or exit'd, cleanup temporary files, and complete
1007 # config.log.  We remove comments because anyway the quotes in there
1008 # would cause problems or look ugly.
1009 # WARNING: Be sure not to use single quotes in there, as some shells,
1010 # such as our DU 5.0 friend, will then `close' the trap.
1011 trap 'exit_status=$?
1012   # Save into config.log some information that might help in debugging.
1013   {
1014     echo
1015     cat <<\_ASBOX
1016 ## ---------------- ##
1017 ## Cache variables. ##
1018 ## ---------------- ##
1019 _ASBOX
1020     echo
1021     # The following way of writing the cache mishandles newlines in values,
1022 {
1023   (set) 2>&1 |
1024     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1025     *ac_space=\ *)
1026       sed -n \
1027         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1028           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1029       ;;
1030     *)
1031       sed -n \
1032         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1033       ;;
1034     esac;
1035 }
1036     echo
1037     if test -s confdefs.h; then
1038       cat <<\_ASBOX
1039 ## ----------- ##
1040 ## confdefs.h. ##
1041 ## ----------- ##
1042 _ASBOX
1043       echo
1044       sed "/^$/d" confdefs.h
1045       echo
1046     fi
1047     test "$ac_signal" != 0 &&
1048       echo "$as_me: caught signal $ac_signal"
1049     echo "$as_me: exit $exit_status"
1050   } >&5
1051   rm -f core core.* *.core &&
1052   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1053     exit $exit_status
1054      ' 0
1055 for ac_signal in 1 2 13 15; do
1056   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1057 done
1058 ac_signal=0
1059
1060 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1061 rm -rf conftest* confdefs.h
1062 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1063 echo >confdefs.h
1064
1065 # Predefined preprocessor variables.
1066
1067 cat >>confdefs.h <<_ACEOF
1068 #define PACKAGE_NAME "$PACKAGE_NAME"
1069 _ACEOF
1070
1071
1072 cat >>confdefs.h <<_ACEOF
1073 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1074 _ACEOF
1075
1076
1077 cat >>confdefs.h <<_ACEOF
1078 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1079 _ACEOF
1080
1081
1082 cat >>confdefs.h <<_ACEOF
1083 #define PACKAGE_STRING "$PACKAGE_STRING"
1084 _ACEOF
1085
1086
1087 cat >>confdefs.h <<_ACEOF
1088 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1089 _ACEOF
1090
1091
1092 # Let the site file select an alternate cache file if it wants to.
1093 # Prefer explicitly selected file to automatically selected ones.
1094 if test -z "$CONFIG_SITE"; then
1095   if test "x$prefix" != xNONE; then
1096     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1097   else
1098     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1099   fi
1100 fi
1101 for ac_site_file in $CONFIG_SITE; do
1102   if test -r "$ac_site_file"; then
1103     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1104 echo "$as_me: loading site script $ac_site_file" >&6;}
1105     sed 's/^/| /' "$ac_site_file" >&5
1106     . "$ac_site_file"
1107   fi
1108 done
1109
1110 if test -r "$cache_file"; then
1111   # Some versions of bash will fail to source /dev/null (special
1112   # files actually), so we avoid doing that.
1113   if test -f "$cache_file"; then
1114     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1115 echo "$as_me: loading cache $cache_file" >&6;}
1116     case $cache_file in
1117       [\\/]* | ?:[\\/]* ) . $cache_file;;
1118       *)                      . ./$cache_file;;
1119     esac
1120   fi
1121 else
1122   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1123 echo "$as_me: creating cache $cache_file" >&6;}
1124   >$cache_file
1125 fi
1126
1127 # Check that the precious variables saved in the cache have kept the same
1128 # value.
1129 ac_cache_corrupted=false
1130 for ac_var in `(set) 2>&1 |
1131                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1132   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1133   eval ac_new_set=\$ac_env_${ac_var}_set
1134   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1135   eval ac_new_val="\$ac_env_${ac_var}_value"
1136   case $ac_old_set,$ac_new_set in
1137     set,)
1138       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1139 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1140       ac_cache_corrupted=: ;;
1141     ,set)
1142       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1143 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1144       ac_cache_corrupted=: ;;
1145     ,);;
1146     *)
1147       if test "x$ac_old_val" != "x$ac_new_val"; then
1148         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1149 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1150         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1151 echo "$as_me:   former value:  $ac_old_val" >&2;}
1152         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1153 echo "$as_me:   current value: $ac_new_val" >&2;}
1154         ac_cache_corrupted=:
1155       fi;;
1156   esac
1157   # Pass precious variables to config.status.
1158   if test "$ac_new_set" = set; then
1159     case $ac_new_val in
1160     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1161       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1162     *) ac_arg=$ac_var=$ac_new_val ;;
1163     esac
1164     case " $ac_configure_args " in
1165       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1166       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1167     esac
1168   fi
1169 done
1170 if $ac_cache_corrupted; then
1171   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1172 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1173   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1174 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1175    { (exit 1); exit 1; }; }
1176 fi
1177
1178 ac_ext=c
1179 ac_cpp='$CPP $CPPFLAGS'
1180 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1181 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1182 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210 ac_output_file="Makefile MakeRules ir/Makefile ir/adt/Makefile ir/debug/Makefile \
1211                 ir/tv/Makefile ir/common/Makefile ir/ident/Makefile ir/ir/Makefile \
1212                 ir/ana/Makefile ir/tr/Makefile ir/st/Makefile ir/stat/Makefile \
1213                 testprograms/Makefile firmjni/Makefile firmjni/testprograms/Makefile \
1214                 libfirm.doxygen"
1215
1216 ac_config_headers="$ac_config_headers config.h"
1217
1218
1219 libfirm_conf_env="${CC+CC='$CC'} ${CFLAGS+CFLAGS='$CFLAGS'} ${CPP+CPP='$CPP'} ${CPPFLAGS+CPPFLAGS='$CPPFLAGS'} ${LDFLAGS+LDFLAGS='$LDFLAGS'} ${LIBS+LIBS='$LIBS'}"
1220
1221
1222
1223 # Check whether --with-includedir or --without-includedir was given.
1224 if test "${with_includedir+set}" = set; then
1225   withval="$with_includedir"
1226   CPPFLAGS=$CPPFLAGS" -I"`echo $withval|sed 's;\:; -I;g'`
1227 else
1228   T_FLAG=""
1229 fi;
1230
1231
1232 # Check whether --with-libdir or --without-libdir was given.
1233 if test "${with_libdir+set}" = set; then
1234   withval="$with_libdir"
1235   LDFLAGS=$LDFLAGS" -L"`echo $withval|sed 's;\:; -L;g'`
1236 else
1237   T_FLAG=""
1238 fi;
1239
1240
1241 # Check whether --enable-debug or --disable-debug was given.
1242 if test "${enable_debug+set}" = set; then
1243   enableval="$enable_debug"
1244   if test "$enableval" = yes; then
1245   cat >>confdefs.h <<\_ACEOF
1246 #define DEBUG_libfirm 1
1247 _ACEOF
1248
1249 else
1250   cat >>confdefs.h <<\_ACEOF
1251 #define NDEBUG 1
1252 _ACEOF
1253
1254 fi
1255 fi;
1256
1257
1258 # Check whether --enable-inlining or --disable-inlining was given.
1259 if test "${enable_inlining+set}" = set; then
1260   enableval="$enable_inlining"
1261   if test "$enableval" = yes; then
1262   cat >>confdefs.h <<\_ACEOF
1263 #define USE_INLINING 1
1264 _ACEOF
1265
1266 fi
1267 else
1268   cat >>confdefs.h <<\_ACEOF
1269 #define USE_INLINING 1
1270 _ACEOF
1271
1272
1273 fi;
1274
1275 # Check whether --enable-profile or --disable-profile was given.
1276 if test "${enable_profile+set}" = set; then
1277   enableval="$enable_profile"
1278   if test "$enableval"=yes; then
1279   enable_profile_libfirm=yes
1280 fi
1281 else
1282   enable_profile_libfirm=no
1283 fi;
1284
1285
1286 # Check whether --enable-autodoc or --disable-autodoc was given.
1287 if test "${enable_autodoc+set}" = set; then
1288   enableval="$enable_autodoc"
1289   if test "$enableval"=yes; then
1290   enable_auto_documentation=yes
1291 fi
1292 else
1293   enable_auto_documentation=no
1294 fi;
1295
1296
1297
1298 # Check whether --enable-firmjni or --disable-firmjni was given.
1299 if test "${enable_firmjni+set}" = set; then
1300   enableval="$enable_firmjni"
1301   if test "$enableval"=yes; then
1302   enable_firm_jni=yes
1303 fi
1304 else
1305   enable_firm_jni=no
1306 fi;
1307
1308
1309 # Check whether --enable-heapanalysis or --disable-heapanalysis was given.
1310 if test "${enable_heapanalysis+set}" = set; then
1311   enableval="$enable_heapanalysis"
1312   enable_heapanalysis=$enableval
1313 else
1314   enable_heapanalysis="no"
1315 fi;
1316 if test "$enable_heapanalysis" = "no"; then
1317
1318 cat >>confdefs.h <<\_ACEOF
1319 #define DO_HEAPANALYSIS 0
1320 _ACEOF
1321
1322   echo "$as_me:$LINENO: result: heapanalysis disabled" >&5
1323 echo "${ECHO_T}heapanalysis disabled" >&6
1324 else
1325
1326 cat >>confdefs.h <<\_ACEOF
1327 #define DO_HEAPANALYSIS 1
1328 _ACEOF
1329
1330   echo "$as_me:$LINENO: result: heapanalysis enabled" >&5
1331 echo "${ECHO_T}heapanalysis enabled" >&6
1332 fi
1333
1334
1335
1336 # Check whether --enable-libiberty or --disable-libiberty was given.
1337 if test "${enable_libiberty+set}" = set; then
1338   enableval="$enable_libiberty"
1339   if test "$enableval"=yes; then
1340   disable_libiberty_=yes
1341 fi
1342 else
1343   disable_libiberty=no
1344 fi;
1345
1346
1347 # Check whether --enable-statistics or --disable-statistics was given.
1348 if test "${enable_statistics+set}" = set; then
1349   enableval="$enable_statistics"
1350   if test "$enableval"=yes; then
1351   cat >>confdefs.h <<\_ACEOF
1352 #define FIRM_STATISTICS 1
1353 _ACEOF
1354
1355 fi
1356 fi;
1357
1358
1359
1360 ac_ext=c
1361 ac_cpp='$CPP $CPPFLAGS'
1362 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1363 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1364 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1365 if test -n "$ac_tool_prefix"; then
1366   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1367 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1368 echo "$as_me:$LINENO: checking for $ac_word" >&5
1369 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1370 if test "${ac_cv_prog_CC+set}" = set; then
1371   echo $ECHO_N "(cached) $ECHO_C" >&6
1372 else
1373   if test -n "$CC"; then
1374   ac_cv_prog_CC="$CC" # Let the user override the test.
1375 else
1376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1377 for as_dir in $PATH
1378 do
1379   IFS=$as_save_IFS
1380   test -z "$as_dir" && as_dir=.
1381   for ac_exec_ext in '' $ac_executable_extensions; do
1382   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1383     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1384     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1385     break 2
1386   fi
1387 done
1388 done
1389
1390 fi
1391 fi
1392 CC=$ac_cv_prog_CC
1393 if test -n "$CC"; then
1394   echo "$as_me:$LINENO: result: $CC" >&5
1395 echo "${ECHO_T}$CC" >&6
1396 else
1397   echo "$as_me:$LINENO: result: no" >&5
1398 echo "${ECHO_T}no" >&6
1399 fi
1400
1401 fi
1402 if test -z "$ac_cv_prog_CC"; then
1403   ac_ct_CC=$CC
1404   # Extract the first word of "gcc", so it can be a program name with args.
1405 set dummy gcc; ac_word=$2
1406 echo "$as_me:$LINENO: checking for $ac_word" >&5
1407 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1408 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1409   echo $ECHO_N "(cached) $ECHO_C" >&6
1410 else
1411   if test -n "$ac_ct_CC"; then
1412   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1413 else
1414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1415 for as_dir in $PATH
1416 do
1417   IFS=$as_save_IFS
1418   test -z "$as_dir" && as_dir=.
1419   for ac_exec_ext in '' $ac_executable_extensions; do
1420   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1421     ac_cv_prog_ac_ct_CC="gcc"
1422     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1423     break 2
1424   fi
1425 done
1426 done
1427
1428 fi
1429 fi
1430 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1431 if test -n "$ac_ct_CC"; then
1432   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1433 echo "${ECHO_T}$ac_ct_CC" >&6
1434 else
1435   echo "$as_me:$LINENO: result: no" >&5
1436 echo "${ECHO_T}no" >&6
1437 fi
1438
1439   CC=$ac_ct_CC
1440 else
1441   CC="$ac_cv_prog_CC"
1442 fi
1443
1444 if test -z "$CC"; then
1445   if test -n "$ac_tool_prefix"; then
1446   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1447 set dummy ${ac_tool_prefix}cc; ac_word=$2
1448 echo "$as_me:$LINENO: checking for $ac_word" >&5
1449 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1450 if test "${ac_cv_prog_CC+set}" = set; then
1451   echo $ECHO_N "(cached) $ECHO_C" >&6
1452 else
1453   if test -n "$CC"; then
1454   ac_cv_prog_CC="$CC" # Let the user override the test.
1455 else
1456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1457 for as_dir in $PATH
1458 do
1459   IFS=$as_save_IFS
1460   test -z "$as_dir" && as_dir=.
1461   for ac_exec_ext in '' $ac_executable_extensions; do
1462   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1463     ac_cv_prog_CC="${ac_tool_prefix}cc"
1464     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1465     break 2
1466   fi
1467 done
1468 done
1469
1470 fi
1471 fi
1472 CC=$ac_cv_prog_CC
1473 if test -n "$CC"; then
1474   echo "$as_me:$LINENO: result: $CC" >&5
1475 echo "${ECHO_T}$CC" >&6
1476 else
1477   echo "$as_me:$LINENO: result: no" >&5
1478 echo "${ECHO_T}no" >&6
1479 fi
1480
1481 fi
1482 if test -z "$ac_cv_prog_CC"; then
1483   ac_ct_CC=$CC
1484   # Extract the first word of "cc", so it can be a program name with args.
1485 set dummy cc; ac_word=$2
1486 echo "$as_me:$LINENO: checking for $ac_word" >&5
1487 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1488 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1489   echo $ECHO_N "(cached) $ECHO_C" >&6
1490 else
1491   if test -n "$ac_ct_CC"; then
1492   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1493 else
1494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1495 for as_dir in $PATH
1496 do
1497   IFS=$as_save_IFS
1498   test -z "$as_dir" && as_dir=.
1499   for ac_exec_ext in '' $ac_executable_extensions; do
1500   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1501     ac_cv_prog_ac_ct_CC="cc"
1502     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1503     break 2
1504   fi
1505 done
1506 done
1507
1508 fi
1509 fi
1510 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1511 if test -n "$ac_ct_CC"; then
1512   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1513 echo "${ECHO_T}$ac_ct_CC" >&6
1514 else
1515   echo "$as_me:$LINENO: result: no" >&5
1516 echo "${ECHO_T}no" >&6
1517 fi
1518
1519   CC=$ac_ct_CC
1520 else
1521   CC="$ac_cv_prog_CC"
1522 fi
1523
1524 fi
1525 if test -z "$CC"; then
1526   # Extract the first word of "cc", so it can be a program name with args.
1527 set dummy cc; ac_word=$2
1528 echo "$as_me:$LINENO: checking for $ac_word" >&5
1529 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1530 if test "${ac_cv_prog_CC+set}" = set; then
1531   echo $ECHO_N "(cached) $ECHO_C" >&6
1532 else
1533   if test -n "$CC"; then
1534   ac_cv_prog_CC="$CC" # Let the user override the test.
1535 else
1536   ac_prog_rejected=no
1537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1538 for as_dir in $PATH
1539 do
1540   IFS=$as_save_IFS
1541   test -z "$as_dir" && as_dir=.
1542   for ac_exec_ext in '' $ac_executable_extensions; do
1543   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1544     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1545        ac_prog_rejected=yes
1546        continue
1547      fi
1548     ac_cv_prog_CC="cc"
1549     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1550     break 2
1551   fi
1552 done
1553 done
1554
1555 if test $ac_prog_rejected = yes; then
1556   # We found a bogon in the path, so make sure we never use it.
1557   set dummy $ac_cv_prog_CC
1558   shift
1559   if test $# != 0; then
1560     # We chose a different compiler from the bogus one.
1561     # However, it has the same basename, so the bogon will be chosen
1562     # first if we set CC to just the basename; use the full file name.
1563     shift
1564     set dummy "$as_dir/$ac_word" ${1+"$@"}
1565     shift
1566     ac_cv_prog_CC="$@"
1567   fi
1568 fi
1569 fi
1570 fi
1571 CC=$ac_cv_prog_CC
1572 if test -n "$CC"; then
1573   echo "$as_me:$LINENO: result: $CC" >&5
1574 echo "${ECHO_T}$CC" >&6
1575 else
1576   echo "$as_me:$LINENO: result: no" >&5
1577 echo "${ECHO_T}no" >&6
1578 fi
1579
1580 fi
1581 if test -z "$CC"; then
1582   if test -n "$ac_tool_prefix"; then
1583   for ac_prog in cl
1584   do
1585     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1586 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1587 echo "$as_me:$LINENO: checking for $ac_word" >&5
1588 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1589 if test "${ac_cv_prog_CC+set}" = set; then
1590   echo $ECHO_N "(cached) $ECHO_C" >&6
1591 else
1592   if test -n "$CC"; then
1593   ac_cv_prog_CC="$CC" # Let the user override the test.
1594 else
1595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1596 for as_dir in $PATH
1597 do
1598   IFS=$as_save_IFS
1599   test -z "$as_dir" && as_dir=.
1600   for ac_exec_ext in '' $ac_executable_extensions; do
1601   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1602     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1603     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1604     break 2
1605   fi
1606 done
1607 done
1608
1609 fi
1610 fi
1611 CC=$ac_cv_prog_CC
1612 if test -n "$CC"; then
1613   echo "$as_me:$LINENO: result: $CC" >&5
1614 echo "${ECHO_T}$CC" >&6
1615 else
1616   echo "$as_me:$LINENO: result: no" >&5
1617 echo "${ECHO_T}no" >&6
1618 fi
1619
1620     test -n "$CC" && break
1621   done
1622 fi
1623 if test -z "$CC"; then
1624   ac_ct_CC=$CC
1625   for ac_prog in cl
1626 do
1627   # Extract the first word of "$ac_prog", so it can be a program name with args.
1628 set dummy $ac_prog; ac_word=$2
1629 echo "$as_me:$LINENO: checking for $ac_word" >&5
1630 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1631 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1632   echo $ECHO_N "(cached) $ECHO_C" >&6
1633 else
1634   if test -n "$ac_ct_CC"; then
1635   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1636 else
1637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1638 for as_dir in $PATH
1639 do
1640   IFS=$as_save_IFS
1641   test -z "$as_dir" && as_dir=.
1642   for ac_exec_ext in '' $ac_executable_extensions; do
1643   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1644     ac_cv_prog_ac_ct_CC="$ac_prog"
1645     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1646     break 2
1647   fi
1648 done
1649 done
1650
1651 fi
1652 fi
1653 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1654 if test -n "$ac_ct_CC"; then
1655   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1656 echo "${ECHO_T}$ac_ct_CC" >&6
1657 else
1658   echo "$as_me:$LINENO: result: no" >&5
1659 echo "${ECHO_T}no" >&6
1660 fi
1661
1662   test -n "$ac_ct_CC" && break
1663 done
1664
1665   CC=$ac_ct_CC
1666 fi
1667
1668 fi
1669
1670
1671 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
1672 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
1673    { (exit 1); exit 1; }; }
1674
1675 # Provide some information about the compiler.
1676 echo "$as_me:$LINENO:" \
1677      "checking for C compiler version" >&5
1678 ac_compiler=`set X $ac_compile; echo $2`
1679 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1680   (eval $ac_compiler --version </dev/null >&5) 2>&5
1681   ac_status=$?
1682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1683   (exit $ac_status); }
1684 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1685   (eval $ac_compiler -v </dev/null >&5) 2>&5
1686   ac_status=$?
1687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1688   (exit $ac_status); }
1689 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1690   (eval $ac_compiler -V </dev/null >&5) 2>&5
1691   ac_status=$?
1692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1693   (exit $ac_status); }
1694
1695 cat >conftest.$ac_ext <<_ACEOF
1696 #line $LINENO "configure"
1697 #include "confdefs.h"
1698
1699 #ifdef F77_DUMMY_MAIN
1700 #  ifdef __cplusplus
1701      extern "C"
1702 #  endif
1703    int F77_DUMMY_MAIN() { return 1; }
1704 #endif
1705 int
1706 main ()
1707 {
1708
1709   ;
1710   return 0;
1711 }
1712 _ACEOF
1713 ac_clean_files_save=$ac_clean_files
1714 ac_clean_files="$ac_clean_files a.out a.exe"
1715 # Try to create an executable without -o first, disregard a.out.
1716 # It will help us diagnose broken compilers, and finding out an intuition
1717 # of exeext.
1718 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1719 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1720 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1721 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1722   (eval $ac_link_default) 2>&5
1723   ac_status=$?
1724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1725   (exit $ac_status); }; then
1726   # Find the output, starting from the most likely.  This scheme is
1727 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1728 # resort.
1729
1730 # Be careful to initialize this variable, since it used to be cached.
1731 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1732 ac_cv_exeext=
1733 for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
1734                 ls a.out conftest 2>/dev/null;
1735                 ls a.* conftest.* 2>/dev/null`; do
1736   case $ac_file in
1737     *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
1738     a.out ) # We found the default executable, but exeext='' is most
1739             # certainly right.
1740             break;;
1741     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1742           # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1743           export ac_cv_exeext
1744           break;;
1745     * ) break;;
1746   esac
1747 done
1748 else
1749   echo "$as_me: failed program was:" >&5
1750 cat conftest.$ac_ext >&5
1751 { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
1752 echo "$as_me: error: C compiler cannot create executables" >&2;}
1753    { (exit 77); exit 77; }; }
1754 fi
1755
1756 ac_exeext=$ac_cv_exeext
1757 echo "$as_me:$LINENO: result: $ac_file" >&5
1758 echo "${ECHO_T}$ac_file" >&6
1759
1760 # Check the compiler produces executables we can run.  If not, either
1761 # the compiler is broken, or we cross compile.
1762 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1763 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1764 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1765 # If not cross compiling, check that we can run a simple program.
1766 if test "$cross_compiling" != yes; then
1767   if { ac_try='./$ac_file'
1768   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1769   (eval $ac_try) 2>&5
1770   ac_status=$?
1771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1772   (exit $ac_status); }; }; then
1773     cross_compiling=no
1774   else
1775     if test "$cross_compiling" = maybe; then
1776         cross_compiling=yes
1777     else
1778         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1779 If you meant to cross compile, use \`--host'." >&5
1780 echo "$as_me: error: cannot run C compiled programs.
1781 If you meant to cross compile, use \`--host'." >&2;}
1782    { (exit 1); exit 1; }; }
1783     fi
1784   fi
1785 fi
1786 echo "$as_me:$LINENO: result: yes" >&5
1787 echo "${ECHO_T}yes" >&6
1788
1789 rm -f a.out a.exe conftest$ac_cv_exeext
1790 ac_clean_files=$ac_clean_files_save
1791 # Check the compiler produces executables we can run.  If not, either
1792 # the compiler is broken, or we cross compile.
1793 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1794 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1795 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1796 echo "${ECHO_T}$cross_compiling" >&6
1797
1798 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1799 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1800 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1801   (eval $ac_link) 2>&5
1802   ac_status=$?
1803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1804   (exit $ac_status); }; then
1805   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1806 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1807 # work properly (i.e., refer to `conftest.exe'), while it won't with
1808 # `rm'.
1809 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1810   case $ac_file in
1811     *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1812     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1813           export ac_cv_exeext
1814           break;;
1815     * ) break;;
1816   esac
1817 done
1818 else
1819   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
1820 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
1821    { (exit 1); exit 1; }; }
1822 fi
1823
1824 rm -f conftest$ac_cv_exeext
1825 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1826 echo "${ECHO_T}$ac_cv_exeext" >&6
1827
1828 rm -f conftest.$ac_ext
1829 EXEEXT=$ac_cv_exeext
1830 ac_exeext=$EXEEXT
1831 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1832 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1833 if test "${ac_cv_objext+set}" = set; then
1834   echo $ECHO_N "(cached) $ECHO_C" >&6
1835 else
1836   cat >conftest.$ac_ext <<_ACEOF
1837 #line $LINENO "configure"
1838 #include "confdefs.h"
1839
1840 #ifdef F77_DUMMY_MAIN
1841 #  ifdef __cplusplus
1842      extern "C"
1843 #  endif
1844    int F77_DUMMY_MAIN() { return 1; }
1845 #endif
1846 int
1847 main ()
1848 {
1849
1850   ;
1851   return 0;
1852 }
1853 _ACEOF
1854 rm -f conftest.o conftest.obj
1855 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1856   (eval $ac_compile) 2>&5
1857   ac_status=$?
1858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1859   (exit $ac_status); }; then
1860   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1861   case $ac_file in
1862     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
1863     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1864        break;;
1865   esac
1866 done
1867 else
1868   echo "$as_me: failed program was:" >&5
1869 cat conftest.$ac_ext >&5
1870 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
1871 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
1872    { (exit 1); exit 1; }; }
1873 fi
1874
1875 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1876 fi
1877 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1878 echo "${ECHO_T}$ac_cv_objext" >&6
1879 OBJEXT=$ac_cv_objext
1880 ac_objext=$OBJEXT
1881 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1882 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1883 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1884   echo $ECHO_N "(cached) $ECHO_C" >&6
1885 else
1886   cat >conftest.$ac_ext <<_ACEOF
1887 #line $LINENO "configure"
1888 #include "confdefs.h"
1889
1890 #ifdef F77_DUMMY_MAIN
1891 #  ifdef __cplusplus
1892      extern "C"
1893 #  endif
1894    int F77_DUMMY_MAIN() { return 1; }
1895 #endif
1896 int
1897 main ()
1898 {
1899 #ifndef __GNUC__
1900        choke me
1901 #endif
1902
1903   ;
1904   return 0;
1905 }
1906 _ACEOF
1907 rm -f conftest.$ac_objext
1908 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1909   (eval $ac_compile) 2>&5
1910   ac_status=$?
1911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1912   (exit $ac_status); } &&
1913          { ac_try='test -s conftest.$ac_objext'
1914   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1915   (eval $ac_try) 2>&5
1916   ac_status=$?
1917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1918   (exit $ac_status); }; }; then
1919   ac_compiler_gnu=yes
1920 else
1921   echo "$as_me: failed program was:" >&5
1922 cat conftest.$ac_ext >&5
1923 ac_compiler_gnu=no
1924 fi
1925 rm -f conftest.$ac_objext conftest.$ac_ext
1926 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1927
1928 fi
1929 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1930 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1931 GCC=`test $ac_compiler_gnu = yes && echo yes`
1932 ac_test_CFLAGS=${CFLAGS+set}
1933 ac_save_CFLAGS=$CFLAGS
1934 CFLAGS="-g"
1935 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1936 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1937 if test "${ac_cv_prog_cc_g+set}" = set; then
1938   echo $ECHO_N "(cached) $ECHO_C" >&6
1939 else
1940   cat >conftest.$ac_ext <<_ACEOF
1941 #line $LINENO "configure"
1942 #include "confdefs.h"
1943
1944 #ifdef F77_DUMMY_MAIN
1945 #  ifdef __cplusplus
1946      extern "C"
1947 #  endif
1948    int F77_DUMMY_MAIN() { return 1; }
1949 #endif
1950 int
1951 main ()
1952 {
1953
1954   ;
1955   return 0;
1956 }
1957 _ACEOF
1958 rm -f conftest.$ac_objext
1959 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1960   (eval $ac_compile) 2>&5
1961   ac_status=$?
1962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1963   (exit $ac_status); } &&
1964          { ac_try='test -s conftest.$ac_objext'
1965   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1966   (eval $ac_try) 2>&5
1967   ac_status=$?
1968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1969   (exit $ac_status); }; }; then
1970   ac_cv_prog_cc_g=yes
1971 else
1972   echo "$as_me: failed program was:" >&5
1973 cat conftest.$ac_ext >&5
1974 ac_cv_prog_cc_g=no
1975 fi
1976 rm -f conftest.$ac_objext conftest.$ac_ext
1977 fi
1978 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1979 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1980 if test "$ac_test_CFLAGS" = set; then
1981   CFLAGS=$ac_save_CFLAGS
1982 elif test $ac_cv_prog_cc_g = yes; then
1983   if test "$GCC" = yes; then
1984     CFLAGS="-g -O2"
1985   else
1986     CFLAGS="-g"
1987   fi
1988 else
1989   if test "$GCC" = yes; then
1990     CFLAGS="-O2"
1991   else
1992     CFLAGS=
1993   fi
1994 fi
1995 # Some people use a C++ compiler to compile C.  Since we use `exit',
1996 # in C++ we need to declare it.  In case someone uses the same compiler
1997 # for both compiling C and C++ we need to have the C++ compiler decide
1998 # the declaration of exit, since it's the most demanding environment.
1999 cat >conftest.$ac_ext <<_ACEOF
2000 #ifndef __cplusplus
2001   choke me
2002 #endif
2003 _ACEOF
2004 rm -f conftest.$ac_objext
2005 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2006   (eval $ac_compile) 2>&5
2007   ac_status=$?
2008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2009   (exit $ac_status); } &&
2010          { ac_try='test -s conftest.$ac_objext'
2011   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2012   (eval $ac_try) 2>&5
2013   ac_status=$?
2014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2015   (exit $ac_status); }; }; then
2016   for ac_declaration in \
2017    ''\
2018    '#include <stdlib.h>' \
2019    'extern "C" void std::exit (int) throw (); using std::exit;' \
2020    'extern "C" void std::exit (int); using std::exit;' \
2021    'extern "C" void exit (int) throw ();' \
2022    'extern "C" void exit (int);' \
2023    'void exit (int);'
2024 do
2025   cat >conftest.$ac_ext <<_ACEOF
2026 #line $LINENO "configure"
2027 #include "confdefs.h"
2028 #include <stdlib.h>
2029 $ac_declaration
2030 #ifdef F77_DUMMY_MAIN
2031 #  ifdef __cplusplus
2032      extern "C"
2033 #  endif
2034    int F77_DUMMY_MAIN() { return 1; }
2035 #endif
2036 int
2037 main ()
2038 {
2039 exit (42);
2040   ;
2041   return 0;
2042 }
2043 _ACEOF
2044 rm -f conftest.$ac_objext
2045 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2046   (eval $ac_compile) 2>&5
2047   ac_status=$?
2048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2049   (exit $ac_status); } &&
2050          { ac_try='test -s conftest.$ac_objext'
2051   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2052   (eval $ac_try) 2>&5
2053   ac_status=$?
2054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2055   (exit $ac_status); }; }; then
2056   :
2057 else
2058   echo "$as_me: failed program was:" >&5
2059 cat conftest.$ac_ext >&5
2060 continue
2061 fi
2062 rm -f conftest.$ac_objext conftest.$ac_ext
2063   cat >conftest.$ac_ext <<_ACEOF
2064 #line $LINENO "configure"
2065 #include "confdefs.h"
2066 $ac_declaration
2067 #ifdef F77_DUMMY_MAIN
2068 #  ifdef __cplusplus
2069      extern "C"
2070 #  endif
2071    int F77_DUMMY_MAIN() { return 1; }
2072 #endif
2073 int
2074 main ()
2075 {
2076 exit (42);
2077   ;
2078   return 0;
2079 }
2080 _ACEOF
2081 rm -f conftest.$ac_objext
2082 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2083   (eval $ac_compile) 2>&5
2084   ac_status=$?
2085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2086   (exit $ac_status); } &&
2087          { ac_try='test -s conftest.$ac_objext'
2088   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2089   (eval $ac_try) 2>&5
2090   ac_status=$?
2091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2092   (exit $ac_status); }; }; then
2093   break
2094 else
2095   echo "$as_me: failed program was:" >&5
2096 cat conftest.$ac_ext >&5
2097 fi
2098 rm -f conftest.$ac_objext conftest.$ac_ext
2099 done
2100 rm -f conftest*
2101 if test -n "$ac_declaration"; then
2102   echo '#ifdef __cplusplus' >>confdefs.h
2103   echo $ac_declaration      >>confdefs.h
2104   echo '#endif'             >>confdefs.h
2105 fi
2106
2107 else
2108   echo "$as_me: failed program was:" >&5
2109 cat conftest.$ac_ext >&5
2110 fi
2111 rm -f conftest.$ac_objext conftest.$ac_ext
2112 ac_ext=c
2113 ac_cpp='$CPP $CPPFLAGS'
2114 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2115 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2116 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2117
2118
2119
2120 if test -z "$LD"; then
2121   if test -n "$ac_tool_prefix"; then
2122   # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
2123 set dummy ${ac_tool_prefix}ld; ac_word=$2
2124 echo "$as_me:$LINENO: checking for $ac_word" >&5
2125 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2126 if test "${ac_cv_prog_LD+set}" = set; then
2127   echo $ECHO_N "(cached) $ECHO_C" >&6
2128 else
2129   if test -n "$LD"; then
2130   ac_cv_prog_LD="$LD" # Let the user override the test.
2131 else
2132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2133 for as_dir in $PATH
2134 do
2135   IFS=$as_save_IFS
2136   test -z "$as_dir" && as_dir=.
2137   for ac_exec_ext in '' $ac_executable_extensions; do
2138   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2139     ac_cv_prog_LD="${ac_tool_prefix}ld"
2140     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2141     break 2
2142   fi
2143 done
2144 done
2145
2146 fi
2147 fi
2148 LD=$ac_cv_prog_LD
2149 if test -n "$LD"; then
2150   echo "$as_me:$LINENO: result: $LD" >&5
2151 echo "${ECHO_T}$LD" >&6
2152 else
2153   echo "$as_me:$LINENO: result: no" >&5
2154 echo "${ECHO_T}no" >&6
2155 fi
2156
2157 fi
2158 if test -z "$ac_cv_prog_LD"; then
2159   ac_ct_LD=$LD
2160   # Extract the first word of "ld", so it can be a program name with args.
2161 set dummy ld; ac_word=$2
2162 echo "$as_me:$LINENO: checking for $ac_word" >&5
2163 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2164 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
2165   echo $ECHO_N "(cached) $ECHO_C" >&6
2166 else
2167   if test -n "$ac_ct_LD"; then
2168   ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
2169 else
2170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2171 for as_dir in $PATH
2172 do
2173   IFS=$as_save_IFS
2174   test -z "$as_dir" && as_dir=.
2175   for ac_exec_ext in '' $ac_executable_extensions; do
2176   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2177     ac_cv_prog_ac_ct_LD="ld"
2178     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2179     break 2
2180   fi
2181 done
2182 done
2183
2184 fi
2185 fi
2186 ac_ct_LD=$ac_cv_prog_ac_ct_LD
2187 if test -n "$ac_ct_LD"; then
2188   echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
2189 echo "${ECHO_T}$ac_ct_LD" >&6
2190 else
2191   echo "$as_me:$LINENO: result: no" >&5
2192 echo "${ECHO_T}no" >&6
2193 fi
2194
2195   LD=$ac_ct_LD
2196 else
2197   LD="$ac_cv_prog_LD"
2198 fi
2199
2200 fi
2201
2202 echo "$as_me:$LINENO: checking whether $LD accepts -r" >&5
2203 echo $ECHO_N "checking whether $LD accepts -r... $ECHO_C" >&6
2204 if test "${libfirm_cv_prog_ld_r+set}" = set; then
2205   echo $ECHO_N "(cached) $ECHO_C" >&6
2206 else
2207
2208 libfirm_cv_prog_ld_r=no
2209 if test "$LD"; then
2210   cat > conftest.$ac_ext <<EOF
2211 int foo() { return 0; }
2212 EOF
2213   if eval $ac_compile && mv conftest.o conftest2.o; then
2214     cat > conftest.$ac_ext <<EOF
2215 extern int foo();
2216 int main() { return foo(); }
2217 EOF
2218     if eval $ac_compile; then
2219       if $LD -r -o conftest conftest.o conftest2.o; then
2220         libfirm_cv_prog_ld_r=yes
2221       fi
2222     fi
2223   fi
2224 fi
2225 rm -f conftest*
2226 fi
2227 echo "$as_me:$LINENO: result: $libfirm_cv_prog_ld_r" >&5
2228 echo "${ECHO_T}$libfirm_cv_prog_ld_r" >&6
2229
2230
2231 if test "$libfirm_cv_prog_ld_r" != "yes"; then
2232   { { echo "$as_me:$LINENO: error: need a prelinkcapable linker" >&5
2233 echo "$as_me: error: need a prelinkcapable linker" >&2;}
2234    { (exit 1); exit 1; }; }
2235 fi
2236
2237 # Extract the first word of "ar", so it can be a program name with args.
2238 set dummy ar; ac_word=$2
2239 echo "$as_me:$LINENO: checking for $ac_word" >&5
2240 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2241 if test "${ac_cv_prog_AR+set}" = set; then
2242   echo $ECHO_N "(cached) $ECHO_C" >&6
2243 else
2244   if test -n "$AR"; then
2245   ac_cv_prog_AR="$AR" # Let the user override the test.
2246 else
2247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2248 for as_dir in $PATH
2249 do
2250   IFS=$as_save_IFS
2251   test -z "$as_dir" && as_dir=.
2252   for ac_exec_ext in '' $ac_executable_extensions; do
2253   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2254     ac_cv_prog_AR=""ar""
2255     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2256     break 2
2257   fi
2258 done
2259 done
2260
2261   test -z "$ac_cv_prog_AR" && ac_cv_prog_AR=""""
2262 fi
2263 fi
2264 AR=$ac_cv_prog_AR
2265 if test -n "$AR"; then
2266   echo "$as_me:$LINENO: result: $AR" >&5
2267 echo "${ECHO_T}$AR" >&6
2268 else
2269   echo "$as_me:$LINENO: result: no" >&5
2270 echo "${ECHO_T}no" >&6
2271 fi
2272
2273 if test "$AR" != "ar"; then
2274   { { echo "$as_me:$LINENO: error: need ar for creating archives" >&5
2275 echo "$as_me: error: need ar for creating archives" >&2;}
2276    { (exit 1); exit 1; }; }
2277 fi
2278
2279 # Extract the first word of "tar", so it can be a program name with args.
2280 set dummy tar; ac_word=$2
2281 echo "$as_me:$LINENO: checking for $ac_word" >&5
2282 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2283 if test "${ac_cv_prog_TAR+set}" = set; then
2284   echo $ECHO_N "(cached) $ECHO_C" >&6
2285 else
2286   if test -n "$TAR"; then
2287   ac_cv_prog_TAR="$TAR" # Let the user override the test.
2288 else
2289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2290 for as_dir in $PATH
2291 do
2292   IFS=$as_save_IFS
2293   test -z "$as_dir" && as_dir=.
2294   for ac_exec_ext in '' $ac_executable_extensions; do
2295   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2296     ac_cv_prog_TAR=""tar""
2297     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2298     break 2
2299   fi
2300 done
2301 done
2302
2303   test -z "$ac_cv_prog_TAR" && ac_cv_prog_TAR=""""
2304 fi
2305 fi
2306 TAR=$ac_cv_prog_TAR
2307 if test -n "$TAR"; then
2308   echo "$as_me:$LINENO: result: $TAR" >&5
2309 echo "${ECHO_T}$TAR" >&6
2310 else
2311   echo "$as_me:$LINENO: result: no" >&5
2312 echo "${ECHO_T}no" >&6
2313 fi
2314
2315 if test "$TAR" != "tar"; then
2316   { { echo "$as_me:$LINENO: error: need tar for creating archives in distribution" >&5
2317 echo "$as_me: error: need tar for creating archives in distribution" >&2;}
2318    { (exit 1); exit 1; }; }
2319 fi
2320
2321
2322 if test -n "$ac_tool_prefix"; then
2323   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2324 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2325 echo "$as_me:$LINENO: checking for $ac_word" >&5
2326 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2327 if test "${ac_cv_prog_RANLIB+set}" = set; then
2328   echo $ECHO_N "(cached) $ECHO_C" >&6
2329 else
2330   if test -n "$RANLIB"; then
2331   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2332 else
2333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2334 for as_dir in $PATH
2335 do
2336   IFS=$as_save_IFS
2337   test -z "$as_dir" && as_dir=.
2338   for ac_exec_ext in '' $ac_executable_extensions; do
2339   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2340     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2341     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2342     break 2
2343   fi
2344 done
2345 done
2346
2347 fi
2348 fi
2349 RANLIB=$ac_cv_prog_RANLIB
2350 if test -n "$RANLIB"; then
2351   echo "$as_me:$LINENO: result: $RANLIB" >&5
2352 echo "${ECHO_T}$RANLIB" >&6
2353 else
2354   echo "$as_me:$LINENO: result: no" >&5
2355 echo "${ECHO_T}no" >&6
2356 fi
2357
2358 fi
2359 if test -z "$ac_cv_prog_RANLIB"; then
2360   ac_ct_RANLIB=$RANLIB
2361   # Extract the first word of "ranlib", so it can be a program name with args.
2362 set dummy ranlib; ac_word=$2
2363 echo "$as_me:$LINENO: checking for $ac_word" >&5
2364 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2365 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2366   echo $ECHO_N "(cached) $ECHO_C" >&6
2367 else
2368   if test -n "$ac_ct_RANLIB"; then
2369   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2370 else
2371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2372 for as_dir in $PATH
2373 do
2374   IFS=$as_save_IFS
2375   test -z "$as_dir" && as_dir=.
2376   for ac_exec_ext in '' $ac_executable_extensions; do
2377   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2378     ac_cv_prog_ac_ct_RANLIB="ranlib"
2379     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2380     break 2
2381   fi
2382 done
2383 done
2384
2385   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2386 fi
2387 fi
2388 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2389 if test -n "$ac_ct_RANLIB"; then
2390   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2391 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2392 else
2393   echo "$as_me:$LINENO: result: no" >&5
2394 echo "${ECHO_T}no" >&6
2395 fi
2396
2397   RANLIB=$ac_ct_RANLIB
2398 else
2399   RANLIB="$ac_cv_prog_RANLIB"
2400 fi
2401
2402
2403 ac_aux_dir=
2404 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
2405   if test -f $ac_dir/install-sh; then
2406     ac_aux_dir=$ac_dir
2407     ac_install_sh="$ac_aux_dir/install-sh -c"
2408     break
2409   elif test -f $ac_dir/install.sh; then
2410     ac_aux_dir=$ac_dir
2411     ac_install_sh="$ac_aux_dir/install.sh -c"
2412     break
2413   elif test -f $ac_dir/shtool; then
2414     ac_aux_dir=$ac_dir
2415     ac_install_sh="$ac_aux_dir/shtool install -c"
2416     break
2417   fi
2418 done
2419 if test -z "$ac_aux_dir"; then
2420   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
2421 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
2422    { (exit 1); exit 1; }; }
2423 fi
2424 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
2425 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
2426 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
2427
2428 # Find a good install program.  We prefer a C program (faster),
2429 # so one script is as good as another.  But avoid the broken or
2430 # incompatible versions:
2431 # SysV /etc/install, /usr/sbin/install
2432 # SunOS /usr/etc/install
2433 # IRIX /sbin/install
2434 # AIX /bin/install
2435 # AmigaOS /C/install, which installs bootblocks on floppy discs
2436 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2437 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2438 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2439 # ./install, which can be erroneously created by make from ./install.sh.
2440 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2441 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2442 if test -z "$INSTALL"; then
2443 if test "${ac_cv_path_install+set}" = set; then
2444   echo $ECHO_N "(cached) $ECHO_C" >&6
2445 else
2446   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2447 for as_dir in $PATH
2448 do
2449   IFS=$as_save_IFS
2450   test -z "$as_dir" && as_dir=.
2451   # Account for people who put trailing slashes in PATH elements.
2452 case $as_dir/ in
2453   ./ | .// | /cC/* | \
2454   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2455   /usr/ucb/* ) ;;
2456   *)
2457     # OSF1 and SCO ODT 3.0 have their own names for install.
2458     # Don't use installbsd from OSF since it installs stuff as root
2459     # by default.
2460     for ac_prog in ginstall scoinst install; do
2461       for ac_exec_ext in '' $ac_executable_extensions; do
2462         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2463           if test $ac_prog = install &&
2464             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2465             # AIX install.  It has an incompatible calling convention.
2466             :
2467           elif test $ac_prog = install &&
2468             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2469             # program-specific install script used by HP pwplus--don't use.
2470             :
2471           else
2472             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2473             break 3
2474           fi
2475         fi
2476       done
2477     done
2478     ;;
2479 esac
2480 done
2481
2482
2483 fi
2484   if test "${ac_cv_path_install+set}" = set; then
2485     INSTALL=$ac_cv_path_install
2486   else
2487     # As a last resort, use the slow shell script.  We don't cache a
2488     # path for INSTALL within a source directory, because that will
2489     # break other packages using the cache if that directory is
2490     # removed, or if the path is relative.
2491     INSTALL=$ac_install_sh
2492   fi
2493 fi
2494 echo "$as_me:$LINENO: result: $INSTALL" >&5
2495 echo "${ECHO_T}$INSTALL" >&6
2496
2497 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2498 # It thinks the first close brace ends the variable substitution.
2499 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2500
2501 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2502
2503 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2504
2505
2506 touch tmp-install.a tmp-install.b
2507 if eval "$INSTALL -C tmp-install.a tmp-install.b" ; then
2508     INSTALL="$INSTALL -C"
2509 fi
2510 rm tmp-install.a tmp-install.b
2511
2512
2513 echo "$as_me:$LINENO: checking whether ln -s works" >&5
2514 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2515 LN_S=$as_ln_s
2516 if test "$LN_S" = "ln -s"; then
2517   echo "$as_me:$LINENO: result: yes" >&5
2518 echo "${ECHO_T}yes" >&6
2519 else
2520   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
2521 echo "${ECHO_T}no, using $LN_S" >&6
2522 fi
2523
2524
2525 if test "$enable_auto_documentation" = yes; then
2526   # Extract the first word of "doxygen", so it can be a program name with args.
2527 set dummy doxygen; ac_word=$2
2528 echo "$as_me:$LINENO: checking for $ac_word" >&5
2529 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2530 if test "${ac_cv_prog_DOXYGEN+set}" = set; then
2531   echo $ECHO_N "(cached) $ECHO_C" >&6
2532 else
2533   if test -n "$DOXYGEN"; then
2534   ac_cv_prog_DOXYGEN="$DOXYGEN" # Let the user override the test.
2535 else
2536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2537 for as_dir in $PATH
2538 do
2539   IFS=$as_save_IFS
2540   test -z "$as_dir" && as_dir=.
2541   for ac_exec_ext in '' $ac_executable_extensions; do
2542   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2543     ac_cv_prog_DOXYGEN=""doxygen""
2544     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2545     break 2
2546   fi
2547 done
2548 done
2549
2550   test -z "$ac_cv_prog_DOXYGEN" && ac_cv_prog_DOXYGEN=""""
2551 fi
2552 fi
2553 DOXYGEN=$ac_cv_prog_DOXYGEN
2554 if test -n "$DOXYGEN"; then
2555   echo "$as_me:$LINENO: result: $DOXYGEN" >&5
2556 echo "${ECHO_T}$DOXYGEN" >&6
2557 else
2558   echo "$as_me:$LINENO: result: no" >&5
2559 echo "${ECHO_T}no" >&6
2560 fi
2561
2562   if test "$DOXYGEN" != "doxygen"; then
2563     { { echo "$as_me:$LINENO: error: need doxygen for auto documentation" >&5
2564 echo "$as_me: error: need doxygen for auto documentation" >&2;}
2565    { (exit 1); exit 1; }; }
2566   fi
2567   # Extract the first word of "dot", so it can be a program name with args.
2568 set dummy dot; ac_word=$2
2569 echo "$as_me:$LINENO: checking for $ac_word" >&5
2570 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2571 if test "${ac_cv_prog_DOT+set}" = set; then
2572   echo $ECHO_N "(cached) $ECHO_C" >&6
2573 else
2574   if test -n "$DOT"; then
2575   ac_cv_prog_DOT="$DOT" # Let the user override the test.
2576 else
2577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2578 for as_dir in $PATH
2579 do
2580   IFS=$as_save_IFS
2581   test -z "$as_dir" && as_dir=.
2582   for ac_exec_ext in '' $ac_executable_extensions; do
2583   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2584     ac_cv_prog_DOT=""dot""
2585     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2586     break 2
2587   fi
2588 done
2589 done
2590
2591   test -z "$ac_cv_prog_DOT" && ac_cv_prog_DOT=""""
2592 fi
2593 fi
2594 DOT=$ac_cv_prog_DOT
2595 if test -n "$DOT"; then
2596   echo "$as_me:$LINENO: result: $DOT" >&5
2597 echo "${ECHO_T}$DOT" >&6
2598 else
2599   echo "$as_me:$LINENO: result: no" >&5
2600 echo "${ECHO_T}no" >&6
2601 fi
2602
2603   if test "$DOT" != "dot"; then
2604     { { echo "$as_me:$LINENO: error: need dot for doxygen documentation (for class graphs) (IPD: module add Graphviz)" >&5
2605 echo "$as_me: error: need dot for doxygen documentation (for class graphs) (IPD: module add Graphviz)" >&2;}
2606    { (exit 1); exit 1; }; }
2607   fi
2608 fi
2609
2610 if test "$enable_firm_jni" = yes; then
2611   # Extract the first word of "javac", so it can be a program name with args.
2612 set dummy javac; ac_word=$2
2613 echo "$as_me:$LINENO: checking for $ac_word" >&5
2614 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2615 if test "${ac_cv_prog_JAVAC+set}" = set; then
2616   echo $ECHO_N "(cached) $ECHO_C" >&6
2617 else
2618   if test -n "$JAVAC"; then
2619   ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test.
2620 else
2621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2622 for as_dir in $PATH
2623 do
2624   IFS=$as_save_IFS
2625   test -z "$as_dir" && as_dir=.
2626   for ac_exec_ext in '' $ac_executable_extensions; do
2627   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2628     ac_cv_prog_JAVAC=""javac""
2629     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2630     break 2
2631   fi
2632 done
2633 done
2634
2635   test -z "$ac_cv_prog_JAVAC" && ac_cv_prog_JAVAC=""""
2636 fi
2637 fi
2638 JAVAC=$ac_cv_prog_JAVAC
2639 if test -n "$JAVAC"; then
2640   echo "$as_me:$LINENO: result: $JAVAC" >&5
2641 echo "${ECHO_T}$JAVAC" >&6
2642 else
2643   echo "$as_me:$LINENO: result: no" >&5
2644 echo "${ECHO_T}no" >&6
2645 fi
2646
2647   if test "$JAVAC" != "javac"; then
2648     { { echo "$as_me:$LINENO: error: need java compiler javac to generate jni (IPD: module add jdk-1.3.1-sun)" >&5
2649 echo "$as_me: error: need java compiler javac to generate jni (IPD: module add jdk-1.3.1-sun)" >&2;}
2650    { (exit 1); exit 1; }; }
2651   fi
2652   # Extract the first word of "javah", so it can be a program name with args.
2653 set dummy javah; ac_word=$2
2654 echo "$as_me:$LINENO: checking for $ac_word" >&5
2655 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2656 if test "${ac_cv_prog_JAVAH+set}" = set; then
2657   echo $ECHO_N "(cached) $ECHO_C" >&6
2658 else
2659   if test -n "$JAVAH"; then
2660   ac_cv_prog_JAVAH="$JAVAH" # Let the user override the test.
2661 else
2662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2663 for as_dir in $PATH
2664 do
2665   IFS=$as_save_IFS
2666   test -z "$as_dir" && as_dir=.
2667   for ac_exec_ext in '' $ac_executable_extensions; do
2668   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2669     ac_cv_prog_JAVAH=""javah""
2670     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2671     break 2
2672   fi
2673 done
2674 done
2675
2676   test -z "$ac_cv_prog_JAVAH" && ac_cv_prog_JAVAH=""""
2677 fi
2678 fi
2679 JAVAH=$ac_cv_prog_JAVAH
2680 if test -n "$JAVAH"; then
2681   echo "$as_me:$LINENO: result: $JAVAH" >&5
2682 echo "${ECHO_T}$JAVAH" >&6
2683 else
2684   echo "$as_me:$LINENO: result: no" >&5
2685 echo "${ECHO_T}no" >&6
2686 fi
2687
2688   if test "$JAVAH" != "javah"; then
2689     { { echo "$as_me:$LINENO: error: need javah to generate jni headers (IPD: module add jdk-1.3.1-sun)" >&5
2690 echo "$as_me: error: need javah to generate jni headers (IPD: module add jdk-1.3.1-sun)" >&2;}
2691    { (exit 1); exit 1; }; }
2692   fi
2693 fi
2694
2695
2696
2697
2698 ac_ext=c
2699 ac_cpp='$CPP $CPPFLAGS'
2700 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2701 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2702 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2703 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2704 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2705 # On Suns, sometimes $CPP names a directory.
2706 if test -n "$CPP" && test -d "$CPP"; then
2707   CPP=
2708 fi
2709 if test -z "$CPP"; then
2710   if test "${ac_cv_prog_CPP+set}" = set; then
2711   echo $ECHO_N "(cached) $ECHO_C" >&6
2712 else
2713       # Double quotes because CPP needs to be expanded
2714     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2715     do
2716       ac_preproc_ok=false
2717 for ac_c_preproc_warn_flag in '' yes
2718 do
2719   # Use a header file that comes with gcc, so configuring glibc
2720   # with a fresh cross-compiler works.
2721   # On the NeXT, cc -E runs the code through the compiler's parser,
2722   # not just through cpp. "Syntax error" is here to catch this case.
2723   cat >conftest.$ac_ext <<_ACEOF
2724 #line $LINENO "configure"
2725 #include "confdefs.h"
2726 #include <assert.h>
2727                      Syntax error
2728 _ACEOF
2729 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2730   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2731   ac_status=$?
2732   egrep -v '^ *\+' conftest.er1 >conftest.err
2733   rm -f conftest.er1
2734   cat conftest.err >&5
2735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2736   (exit $ac_status); } >/dev/null; then
2737   if test -s conftest.err; then
2738     ac_cpp_err=$ac_c_preproc_warn_flag
2739   else
2740     ac_cpp_err=
2741   fi
2742 else
2743   ac_cpp_err=yes
2744 fi
2745 if test -z "$ac_cpp_err"; then
2746   :
2747 else
2748   echo "$as_me: failed program was:" >&5
2749   cat conftest.$ac_ext >&5
2750   # Broken: fails on valid input.
2751 continue
2752 fi
2753 rm -f conftest.err conftest.$ac_ext
2754
2755   # OK, works on sane cases.  Now check whether non-existent headers
2756   # can be detected and how.
2757   cat >conftest.$ac_ext <<_ACEOF
2758 #line $LINENO "configure"
2759 #include "confdefs.h"
2760 #include <ac_nonexistent.h>
2761 _ACEOF
2762 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2763   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2764   ac_status=$?
2765   egrep -v '^ *\+' conftest.er1 >conftest.err
2766   rm -f conftest.er1
2767   cat conftest.err >&5
2768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2769   (exit $ac_status); } >/dev/null; then
2770   if test -s conftest.err; then
2771     ac_cpp_err=$ac_c_preproc_warn_flag
2772   else
2773     ac_cpp_err=
2774   fi
2775 else
2776   ac_cpp_err=yes
2777 fi
2778 if test -z "$ac_cpp_err"; then
2779   # Broken: success on invalid input.
2780 continue
2781 else
2782   echo "$as_me: failed program was:" >&5
2783   cat conftest.$ac_ext >&5
2784   # Passes both tests.
2785 ac_preproc_ok=:
2786 break
2787 fi
2788 rm -f conftest.err conftest.$ac_ext
2789
2790 done
2791 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2792 rm -f conftest.err conftest.$ac_ext
2793 if $ac_preproc_ok; then
2794   break
2795 fi
2796
2797     done
2798     ac_cv_prog_CPP=$CPP
2799
2800 fi
2801   CPP=$ac_cv_prog_CPP
2802 else
2803   ac_cv_prog_CPP=$CPP
2804 fi
2805 echo "$as_me:$LINENO: result: $CPP" >&5
2806 echo "${ECHO_T}$CPP" >&6
2807 ac_preproc_ok=false
2808 for ac_c_preproc_warn_flag in '' yes
2809 do
2810   # Use a header file that comes with gcc, so configuring glibc
2811   # with a fresh cross-compiler works.
2812   # On the NeXT, cc -E runs the code through the compiler's parser,
2813   # not just through cpp. "Syntax error" is here to catch this case.
2814   cat >conftest.$ac_ext <<_ACEOF
2815 #line $LINENO "configure"
2816 #include "confdefs.h"
2817 #include <assert.h>
2818                      Syntax error
2819 _ACEOF
2820 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2821   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2822   ac_status=$?
2823   egrep -v '^ *\+' conftest.er1 >conftest.err
2824   rm -f conftest.er1
2825   cat conftest.err >&5
2826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2827   (exit $ac_status); } >/dev/null; then
2828   if test -s conftest.err; then
2829     ac_cpp_err=$ac_c_preproc_warn_flag
2830   else
2831     ac_cpp_err=
2832   fi
2833 else
2834   ac_cpp_err=yes
2835 fi
2836 if test -z "$ac_cpp_err"; then
2837   :
2838 else
2839   echo "$as_me: failed program was:" >&5
2840   cat conftest.$ac_ext >&5
2841   # Broken: fails on valid input.
2842 continue
2843 fi
2844 rm -f conftest.err conftest.$ac_ext
2845
2846   # OK, works on sane cases.  Now check whether non-existent headers
2847   # can be detected and how.
2848   cat >conftest.$ac_ext <<_ACEOF
2849 #line $LINENO "configure"
2850 #include "confdefs.h"
2851 #include <ac_nonexistent.h>
2852 _ACEOF
2853 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2854   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2855   ac_status=$?
2856   egrep -v '^ *\+' conftest.er1 >conftest.err
2857   rm -f conftest.er1
2858   cat conftest.err >&5
2859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2860   (exit $ac_status); } >/dev/null; then
2861   if test -s conftest.err; then
2862     ac_cpp_err=$ac_c_preproc_warn_flag
2863   else
2864     ac_cpp_err=
2865   fi
2866 else
2867   ac_cpp_err=yes
2868 fi
2869 if test -z "$ac_cpp_err"; then
2870   # Broken: success on invalid input.
2871 continue
2872 else
2873   echo "$as_me: failed program was:" >&5
2874   cat conftest.$ac_ext >&5
2875   # Passes both tests.
2876 ac_preproc_ok=:
2877 break
2878 fi
2879 rm -f conftest.err conftest.$ac_ext
2880
2881 done
2882 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2883 rm -f conftest.err conftest.$ac_ext
2884 if $ac_preproc_ok; then
2885   :
2886 else
2887   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2888 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2889    { (exit 1); exit 1; }; }
2890 fi
2891
2892 ac_ext=c
2893 ac_cpp='$CPP $CPPFLAGS'
2894 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2895 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2896 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2897
2898
2899 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2900 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2901 if test "${ac_cv_header_stdc+set}" = set; then
2902   echo $ECHO_N "(cached) $ECHO_C" >&6
2903 else
2904   cat >conftest.$ac_ext <<_ACEOF
2905 #line $LINENO "configure"
2906 #include "confdefs.h"
2907 #include <stdlib.h>
2908 #include <stdarg.h>
2909 #include <string.h>
2910 #include <float.h>
2911
2912 _ACEOF
2913 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2914   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2915   ac_status=$?
2916   egrep -v '^ *\+' conftest.er1 >conftest.err
2917   rm -f conftest.er1
2918   cat conftest.err >&5
2919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2920   (exit $ac_status); } >/dev/null; then
2921   if test -s conftest.err; then
2922     ac_cpp_err=$ac_c_preproc_warn_flag
2923   else
2924     ac_cpp_err=
2925   fi
2926 else
2927   ac_cpp_err=yes
2928 fi
2929 if test -z "$ac_cpp_err"; then
2930   ac_cv_header_stdc=yes
2931 else
2932   echo "$as_me: failed program was:" >&5
2933   cat conftest.$ac_ext >&5
2934   ac_cv_header_stdc=no
2935 fi
2936 rm -f conftest.err conftest.$ac_ext
2937
2938 if test $ac_cv_header_stdc = yes; then
2939   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2940   cat >conftest.$ac_ext <<_ACEOF
2941 #line $LINENO "configure"
2942 #include "confdefs.h"
2943 #include <string.h>
2944
2945 _ACEOF
2946 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2947   egrep "memchr" >/dev/null 2>&1; then
2948   :
2949 else
2950   ac_cv_header_stdc=no
2951 fi
2952 rm -f conftest*
2953
2954 fi
2955
2956 if test $ac_cv_header_stdc = yes; then
2957   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2958   cat >conftest.$ac_ext <<_ACEOF
2959 #line $LINENO "configure"
2960 #include "confdefs.h"
2961 #include <stdlib.h>
2962
2963 _ACEOF
2964 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2965   egrep "free" >/dev/null 2>&1; then
2966   :
2967 else
2968   ac_cv_header_stdc=no
2969 fi
2970 rm -f conftest*
2971
2972 fi
2973
2974 if test $ac_cv_header_stdc = yes; then
2975   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2976   if test "$cross_compiling" = yes; then
2977   :
2978 else
2979   cat >conftest.$ac_ext <<_ACEOF
2980 #line $LINENO "configure"
2981 #include "confdefs.h"
2982 #include <ctype.h>
2983 #if ((' ' & 0x0FF) == 0x020)
2984 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2985 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2986 #else
2987 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
2988                      || ('j' <= (c) && (c) <= 'r') \
2989                      || ('s' <= (c) && (c) <= 'z'))
2990 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2991 #endif
2992
2993 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2994 int
2995 main ()
2996 {
2997   int i;
2998   for (i = 0; i < 256; i++)
2999     if (XOR (islower (i), ISLOWER (i))
3000         || toupper (i) != TOUPPER (i))
3001       exit(2);
3002   exit (0);
3003 }
3004 _ACEOF
3005 rm -f conftest$ac_exeext
3006 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3007   (eval $ac_link) 2>&5
3008   ac_status=$?
3009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3010   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3011   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3012   (eval $ac_try) 2>&5
3013   ac_status=$?
3014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3015   (exit $ac_status); }; }; then
3016   :
3017 else
3018   echo "$as_me: program exited with status $ac_status" >&5
3019 echo "$as_me: failed program was:" >&5
3020 cat conftest.$ac_ext >&5
3021 ( exit $ac_status )
3022 ac_cv_header_stdc=no
3023 fi
3024 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3025 fi
3026 fi
3027 fi
3028 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3029 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3030 if test $ac_cv_header_stdc = yes; then
3031
3032 cat >>confdefs.h <<\_ACEOF
3033 #define STDC_HEADERS 1
3034 _ACEOF
3035
3036 fi
3037
3038
3039
3040 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3051                   inttypes.h stdint.h unistd.h
3052 do
3053 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3054 echo "$as_me:$LINENO: checking for $ac_header" >&5
3055 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3056 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3057   echo $ECHO_N "(cached) $ECHO_C" >&6
3058 else
3059   cat >conftest.$ac_ext <<_ACEOF
3060 #line $LINENO "configure"
3061 #include "confdefs.h"
3062 $ac_includes_default
3063
3064 #include <$ac_header>
3065 _ACEOF
3066 rm -f conftest.$ac_objext
3067 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3068   (eval $ac_compile) 2>&5
3069   ac_status=$?
3070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3071   (exit $ac_status); } &&
3072          { ac_try='test -s conftest.$ac_objext'
3073   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3074   (eval $ac_try) 2>&5
3075   ac_status=$?
3076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3077   (exit $ac_status); }; }; then
3078   eval "$as_ac_Header=yes"
3079 else
3080   echo "$as_me: failed program was:" >&5
3081 cat conftest.$ac_ext >&5
3082 eval "$as_ac_Header=no"
3083 fi
3084 rm -f conftest.$ac_objext conftest.$ac_ext
3085 fi
3086 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3087 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3088 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3089   cat >>confdefs.h <<_ACEOF
3090 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3091 _ACEOF
3092
3093 fi
3094
3095 done
3096
3097
3098
3099 for ac_header in math.h
3100 do
3101 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3102 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3103   echo "$as_me:$LINENO: checking for $ac_header" >&5
3104 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3105 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3106   echo $ECHO_N "(cached) $ECHO_C" >&6
3107 fi
3108 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3109 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3110 else
3111   # Is the header compilable?
3112 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3113 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3114 cat >conftest.$ac_ext <<_ACEOF
3115 #line $LINENO "configure"
3116 #include "confdefs.h"
3117 $ac_includes_default
3118 #include <$ac_header>
3119 _ACEOF
3120 rm -f conftest.$ac_objext
3121 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3122   (eval $ac_compile) 2>&5
3123   ac_status=$?
3124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3125   (exit $ac_status); } &&
3126          { ac_try='test -s conftest.$ac_objext'
3127   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3128   (eval $ac_try) 2>&5
3129   ac_status=$?
3130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3131   (exit $ac_status); }; }; then
3132   ac_header_compiler=yes
3133 else
3134   echo "$as_me: failed program was:" >&5
3135 cat conftest.$ac_ext >&5
3136 ac_header_compiler=no
3137 fi
3138 rm -f conftest.$ac_objext conftest.$ac_ext
3139 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3140 echo "${ECHO_T}$ac_header_compiler" >&6
3141
3142 # Is the header present?
3143 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3144 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3145 cat >conftest.$ac_ext <<_ACEOF
3146 #line $LINENO "configure"
3147 #include "confdefs.h"
3148 #include <$ac_header>
3149 _ACEOF
3150 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3151   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3152   ac_status=$?
3153   egrep -v '^ *\+' conftest.er1 >conftest.err
3154   rm -f conftest.er1
3155   cat conftest.err >&5
3156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3157   (exit $ac_status); } >/dev/null; then
3158   if test -s conftest.err; then
3159     ac_cpp_err=$ac_c_preproc_warn_flag
3160   else
3161     ac_cpp_err=
3162   fi
3163 else
3164   ac_cpp_err=yes
3165 fi
3166 if test -z "$ac_cpp_err"; then
3167   ac_header_preproc=yes
3168 else
3169   echo "$as_me: failed program was:" >&5
3170   cat conftest.$ac_ext >&5
3171   ac_header_preproc=no
3172 fi
3173 rm -f conftest.err conftest.$ac_ext
3174 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3175 echo "${ECHO_T}$ac_header_preproc" >&6
3176
3177 # So?  What about this header?
3178 case $ac_header_compiler:$ac_header_preproc in
3179   yes:no )
3180     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3181 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3182     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3183 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3184   no:yes )
3185     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3186 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3187     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3188 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3189     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3190 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3191 esac
3192 echo "$as_me:$LINENO: checking for $ac_header" >&5
3193 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3194 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3195   echo $ECHO_N "(cached) $ECHO_C" >&6
3196 else
3197   eval "$as_ac_Header=$ac_header_preproc"
3198 fi
3199 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3200 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3201
3202 fi
3203 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3204   cat >>confdefs.h <<_ACEOF
3205 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3206 _ACEOF
3207  ac_math_headers="yes"
3208 else
3209   ac_math_headers="no"
3210 fi
3211
3212 done
3213
3214 if test "$ac_math_headers" != yes; then
3215     { { echo "$as_me:$LINENO: error: \"math header file not found\"" >&5
3216 echo "$as_me: error: \"math header file not found\"" >&2;}
3217    { (exit 1); exit 1; }; }
3218 fi
3219
3220
3221 #dnl check for the gnu multiprecission (gmp) header file
3222
3223 #AC_CHECK_HEADERS(gmp.h, ac_gmp_headers="yes", ac_gmp_headers="no")
3224 #if test "$ac_gmp_headers" != yes; then
3225 #  dnl gmp header not found.
3226 #  AC_MSG_ERROR("GNU multiprecission gmp header file not found")
3227 #fi
3228
3229
3230 #AC_FUNC_OBSTACK
3231
3232
3233 for ac_header in obstack.h
3234 do
3235 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3236 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3237   echo "$as_me:$LINENO: checking for $ac_header" >&5
3238 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3239 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3240   echo $ECHO_N "(cached) $ECHO_C" >&6
3241 fi
3242 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3243 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3244 else
3245   # Is the header compilable?
3246 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3247 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3248 cat >conftest.$ac_ext <<_ACEOF
3249 #line $LINENO "configure"
3250 #include "confdefs.h"
3251 $ac_includes_default
3252 #include <$ac_header>
3253 _ACEOF
3254 rm -f conftest.$ac_objext
3255 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3256   (eval $ac_compile) 2>&5
3257   ac_status=$?
3258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3259   (exit $ac_status); } &&
3260          { ac_try='test -s conftest.$ac_objext'
3261   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3262   (eval $ac_try) 2>&5
3263   ac_status=$?
3264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3265   (exit $ac_status); }; }; then
3266   ac_header_compiler=yes
3267 else
3268   echo "$as_me: failed program was:" >&5
3269 cat conftest.$ac_ext >&5
3270 ac_header_compiler=no
3271 fi
3272 rm -f conftest.$ac_objext conftest.$ac_ext
3273 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3274 echo "${ECHO_T}$ac_header_compiler" >&6
3275
3276 # Is the header present?
3277 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3278 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3279 cat >conftest.$ac_ext <<_ACEOF
3280 #line $LINENO "configure"
3281 #include "confdefs.h"
3282 #include <$ac_header>
3283 _ACEOF
3284 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3285   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3286   ac_status=$?
3287   egrep -v '^ *\+' conftest.er1 >conftest.err
3288   rm -f conftest.er1
3289   cat conftest.err >&5
3290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3291   (exit $ac_status); } >/dev/null; then
3292   if test -s conftest.err; then
3293     ac_cpp_err=$ac_c_preproc_warn_flag
3294   else
3295     ac_cpp_err=
3296   fi
3297 else
3298   ac_cpp_err=yes
3299 fi
3300 if test -z "$ac_cpp_err"; then
3301   ac_header_preproc=yes
3302 else
3303   echo "$as_me: failed program was:" >&5
3304   cat conftest.$ac_ext >&5
3305   ac_header_preproc=no
3306 fi
3307 rm -f conftest.err conftest.$ac_ext
3308 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3309 echo "${ECHO_T}$ac_header_preproc" >&6
3310
3311 # So?  What about this header?
3312 case $ac_header_compiler:$ac_header_preproc in
3313   yes:no )
3314     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3315 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3316     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3317 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3318   no:yes )
3319     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3320 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3321     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3322 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3323     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3324 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3325 esac
3326 echo "$as_me:$LINENO: checking for $ac_header" >&5
3327 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3328 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3329   echo $ECHO_N "(cached) $ECHO_C" >&6
3330 else
3331   eval "$as_ac_Header=$ac_header_preproc"
3332 fi
3333 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3334 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3335
3336 fi
3337 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3338   cat >>confdefs.h <<_ACEOF
3339 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3340 _ACEOF
3341  ac_obstack_headers="yes"
3342 else
3343   ac_obstack_headers="no"
3344 fi
3345
3346 done
3347
3348 if test "$ac_obstack_headers" != yes; then
3349     { { echo "$as_me:$LINENO: error: \"obstack.h not found\"" >&5
3350 echo "$as_me: error: \"obstack.h not found\"" >&2;}
3351    { (exit 1); exit 1; }; }
3352 fi
3353
3354
3355
3356 for ac_header in alloca.h
3357 do
3358 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3359 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3360   echo "$as_me:$LINENO: checking for $ac_header" >&5
3361 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3362 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3363   echo $ECHO_N "(cached) $ECHO_C" >&6
3364 fi
3365 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3366 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3367 else
3368   # Is the header compilable?
3369 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3370 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3371 cat >conftest.$ac_ext <<_ACEOF
3372 #line $LINENO "configure"
3373 #include "confdefs.h"
3374 $ac_includes_default
3375 #include <$ac_header>
3376 _ACEOF
3377 rm -f conftest.$ac_objext
3378 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3379   (eval $ac_compile) 2>&5
3380   ac_status=$?
3381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3382   (exit $ac_status); } &&
3383          { ac_try='test -s conftest.$ac_objext'
3384   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3385   (eval $ac_try) 2>&5
3386   ac_status=$?
3387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3388   (exit $ac_status); }; }; then
3389   ac_header_compiler=yes
3390 else
3391   echo "$as_me: failed program was:" >&5
3392 cat conftest.$ac_ext >&5
3393 ac_header_compiler=no
3394 fi
3395 rm -f conftest.$ac_objext conftest.$ac_ext
3396 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3397 echo "${ECHO_T}$ac_header_compiler" >&6
3398
3399 # Is the header present?
3400 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3401 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3402 cat >conftest.$ac_ext <<_ACEOF
3403 #line $LINENO "configure"
3404 #include "confdefs.h"
3405 #include <$ac_header>
3406 _ACEOF
3407 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3408   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3409   ac_status=$?
3410   egrep -v '^ *\+' conftest.er1 >conftest.err
3411   rm -f conftest.er1
3412   cat conftest.err >&5
3413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3414   (exit $ac_status); } >/dev/null; then
3415   if test -s conftest.err; then
3416     ac_cpp_err=$ac_c_preproc_warn_flag
3417   else
3418     ac_cpp_err=
3419   fi
3420 else
3421   ac_cpp_err=yes
3422 fi
3423 if test -z "$ac_cpp_err"; then
3424   ac_header_preproc=yes
3425 else
3426   echo "$as_me: failed program was:" >&5
3427   cat conftest.$ac_ext >&5
3428   ac_header_preproc=no
3429 fi
3430 rm -f conftest.err conftest.$ac_ext
3431 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3432 echo "${ECHO_T}$ac_header_preproc" >&6
3433
3434 # So?  What about this header?
3435 case $ac_header_compiler:$ac_header_preproc in
3436   yes:no )
3437     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3438 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3439     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3440 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3441   no:yes )
3442     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3443 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3444     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3445 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3446     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3447 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3448 esac
3449 echo "$as_me:$LINENO: checking for $ac_header" >&5
3450 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3451 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3452   echo $ECHO_N "(cached) $ECHO_C" >&6
3453 else
3454   eval "$as_ac_Header=$ac_header_preproc"
3455 fi
3456 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3457 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3458
3459 fi
3460 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3461   cat >>confdefs.h <<_ACEOF
3462 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3463 _ACEOF
3464  ac_alloca_headers="yes"
3465 else
3466   ac_alloca_headers="no"
3467 fi
3468
3469 done
3470
3471 if test "$ac_alloca_headers" = "yes"; then
3472     cat >>confdefs.h <<\_ACEOF
3473 #define HAVE_ALLOCA_H 1
3474 _ACEOF
3475
3476 else
3477   if test "$ac_cv_header_stdc" = "no"; then
3478     { { echo "$as_me:$LINENO: error: \"alloca.h and stdlib.h not found\"" >&5
3479 echo "$as_me: error: \"alloca.h and stdlib.h not found\"" >&2;}
3480    { (exit 1); exit 1; }; }
3481   fi
3482 fi
3483
3484
3485
3486 if test "$enable_firm_jni" = yes; then
3487
3488 for ac_header in jni.h
3489 do
3490 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3491 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3492   echo "$as_me:$LINENO: checking for $ac_header" >&5
3493 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3494 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3495   echo $ECHO_N "(cached) $ECHO_C" >&6
3496 fi
3497 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3498 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3499 else
3500   # Is the header compilable?
3501 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3502 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3503 cat >conftest.$ac_ext <<_ACEOF
3504 #line $LINENO "configure"
3505 #include "confdefs.h"
3506 $ac_includes_default
3507 #include <$ac_header>
3508 _ACEOF
3509 rm -f conftest.$ac_objext
3510 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3511   (eval $ac_compile) 2>&5
3512   ac_status=$?
3513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3514   (exit $ac_status); } &&
3515          { ac_try='test -s conftest.$ac_objext'
3516   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3517   (eval $ac_try) 2>&5
3518   ac_status=$?
3519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3520   (exit $ac_status); }; }; then
3521   ac_header_compiler=yes
3522 else
3523   echo "$as_me: failed program was:" >&5
3524 cat conftest.$ac_ext >&5
3525 ac_header_compiler=no
3526 fi
3527 rm -f conftest.$ac_objext conftest.$ac_ext
3528 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3529 echo "${ECHO_T}$ac_header_compiler" >&6
3530
3531 # Is the header present?
3532 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3533 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3534 cat >conftest.$ac_ext <<_ACEOF
3535 #line $LINENO "configure"
3536 #include "confdefs.h"
3537 #include <$ac_header>
3538 _ACEOF
3539 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3540   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3541   ac_status=$?
3542   egrep -v '^ *\+' conftest.er1 >conftest.err
3543   rm -f conftest.er1
3544   cat conftest.err >&5
3545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3546   (exit $ac_status); } >/dev/null; then
3547   if test -s conftest.err; then
3548     ac_cpp_err=$ac_c_preproc_warn_flag
3549   else
3550     ac_cpp_err=
3551   fi
3552 else
3553   ac_cpp_err=yes
3554 fi
3555 if test -z "$ac_cpp_err"; then
3556   ac_header_preproc=yes
3557 else
3558   echo "$as_me: failed program was:" >&5
3559   cat conftest.$ac_ext >&5
3560   ac_header_preproc=no
3561 fi
3562 rm -f conftest.err conftest.$ac_ext
3563 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3564 echo "${ECHO_T}$ac_header_preproc" >&6
3565
3566 # So?  What about this header?
3567 case $ac_header_compiler:$ac_header_preproc in
3568   yes:no )
3569     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3570 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3571     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3572 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3573   no:yes )
3574     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3575 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3576     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3577 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3578     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3579 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3580 esac
3581 echo "$as_me:$LINENO: checking for $ac_header" >&5
3582 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3583 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3584   echo $ECHO_N "(cached) $ECHO_C" >&6
3585 else
3586   eval "$as_ac_Header=$ac_header_preproc"
3587 fi
3588 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3589 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3590
3591 fi
3592 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3593   cat >>confdefs.h <<_ACEOF
3594 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3595 _ACEOF
3596  ac_jni_headers="yes"
3597 else
3598   ac_jni_headers="no"
3599 fi
3600
3601 done
3602
3603   if test "$ac_jni_headers" != yes; then
3604     { { echo "$as_me:$LINENO: error: jni header file not found. (IPD: add --with-includedir=/usr/public2/java/jdk1.3.1-sun/include/:/usr/public2/java/jdk1.3.1-sun/include/linux/ to configure flags)" >&5
3605 echo "$as_me: error: jni header file not found. (IPD: add --with-includedir=/usr/public2/java/jdk1.3.1-sun/include/:/usr/public2/java/jdk1.3.1-sun/include/linux/ to configure flags)" >&2;}
3606    { (exit 1); exit 1; }; }
3607   fi
3608 fi
3609
3610
3611
3612 #dnl check for the gnu multiprecission (gmp) library
3613
3614 #AC_CHECK_LIB(gmp, main, ac_gmp_library="yes", ac_gmp_library="no")
3615 #if test "$ac_gmp_library" != yes; then
3616 #  dnl gmp library not found.
3617 #  AC_MSG_ERROR("GNU multiprecission gmp library not found")
3618 #fi
3619
3620
3621 echo "$as_me:$LINENO: checking for main in -lm" >&5
3622 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
3623 if test "${ac_cv_lib_m_main+set}" = set; then
3624   echo $ECHO_N "(cached) $ECHO_C" >&6
3625 else
3626   ac_check_lib_save_LIBS=$LIBS
3627 LIBS="-lm  $LIBS"
3628 cat >conftest.$ac_ext <<_ACEOF
3629 #line $LINENO "configure"
3630 #include "confdefs.h"
3631
3632
3633 #ifdef F77_DUMMY_MAIN
3634 #  ifdef __cplusplus
3635      extern "C"
3636 #  endif
3637    int F77_DUMMY_MAIN() { return 1; }
3638 #endif
3639 int
3640 main ()
3641 {
3642 main ();
3643   ;
3644   return 0;
3645 }
3646 _ACEOF
3647 rm -f conftest.$ac_objext conftest$ac_exeext
3648 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3649   (eval $ac_link) 2>&5
3650   ac_status=$?
3651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3652   (exit $ac_status); } &&
3653          { ac_try='test -s conftest$ac_exeext'
3654   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3655   (eval $ac_try) 2>&5
3656   ac_status=$?
3657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3658   (exit $ac_status); }; }; then
3659   ac_cv_lib_m_main=yes
3660 else
3661   echo "$as_me: failed program was:" >&5
3662 cat conftest.$ac_ext >&5
3663 ac_cv_lib_m_main=no
3664 fi
3665 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3666 LIBS=$ac_check_lib_save_LIBS
3667 fi
3668 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
3669 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
3670 if test $ac_cv_lib_m_main = yes; then
3671   ac_m_library="yes"
3672 else
3673   ac_m_library="no"
3674 fi
3675
3676 if test "$ac_m_library" != yes; then
3677     { { echo "$as_me:$LINENO: error: \"standard math library not found\"" >&5
3678 echo "$as_me: error: \"standard math library not found\"" >&2;}
3679    { (exit 1); exit 1; }; }
3680 fi
3681
3682
3683 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3684 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3685 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3686   echo $ECHO_N "(cached) $ECHO_C" >&6
3687 else
3688   ac_cv_prog_cc_stdc=no
3689 ac_save_CC=$CC
3690 cat >conftest.$ac_ext <<_ACEOF
3691 #line $LINENO "configure"
3692 #include "confdefs.h"
3693 #include <stdarg.h>
3694 #include <stdio.h>
3695 #include <sys/types.h>
3696 #include <sys/stat.h>
3697 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3698 struct buf { int x; };
3699 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3700 static char *e (p, i)
3701      char **p;
3702      int i;
3703 {
3704   return p[i];
3705 }
3706 static char *f (char * (*g) (char **, int), char **p, ...)
3707 {
3708   char *s;
3709   va_list v;
3710   va_start (v,p);
3711   s = g (p, va_arg (v,int));
3712   va_end (v);
3713   return s;
3714 }
3715 int test (int i, double x);
3716 struct s1 {int (*f) (int a);};
3717 struct s2 {int (*f) (double a);};
3718 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3719 int argc;
3720 char **argv;
3721 #ifdef F77_DUMMY_MAIN
3722 #  ifdef __cplusplus
3723      extern "C"
3724 #  endif
3725    int F77_DUMMY_MAIN() { return 1; }
3726 #endif
3727 int
3728 main ()
3729 {
3730 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3731   ;
3732   return 0;
3733 }
3734 _ACEOF
3735 # Don't try gcc -ansi; that turns off useful extensions and
3736 # breaks some systems' header files.
3737 # AIX                   -qlanglvl=ansi
3738 # Ultrix and OSF/1      -std1
3739 # HP-UX 10.20 and later -Ae
3740 # HP-UX older versions  -Aa -D_HPUX_SOURCE
3741 # SVR4                  -Xc -D__EXTENSIONS__
3742 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3743 do
3744   CC="$ac_save_CC $ac_arg"
3745   rm -f conftest.$ac_objext
3746 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3747   (eval $ac_compile) 2>&5
3748   ac_status=$?
3749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3750   (exit $ac_status); } &&
3751          { ac_try='test -s conftest.$ac_objext'
3752   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3753   (eval $ac_try) 2>&5
3754   ac_status=$?
3755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3756   (exit $ac_status); }; }; then
3757   ac_cv_prog_cc_stdc=$ac_arg
3758 break
3759 else
3760   echo "$as_me: failed program was:" >&5
3761 cat conftest.$ac_ext >&5
3762 fi
3763 rm -f conftest.$ac_objext
3764 done
3765 rm -f conftest.$ac_ext conftest.$ac_objext
3766 CC=$ac_save_CC
3767
3768 fi
3769
3770 case "x$ac_cv_prog_cc_stdc" in
3771   x|xno)
3772     echo "$as_me:$LINENO: result: none needed" >&5
3773 echo "${ECHO_T}none needed" >&6 ;;
3774   *)
3775     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3776 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3777     CC="$CC $ac_cv_prog_cc_stdc" ;;
3778 esac
3779
3780 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3781 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3782 if test "${ac_cv_c_const+set}" = set; then
3783   echo $ECHO_N "(cached) $ECHO_C" >&6
3784 else
3785   cat >conftest.$ac_ext <<_ACEOF
3786 #line $LINENO "configure"
3787 #include "confdefs.h"
3788
3789 #ifdef F77_DUMMY_MAIN
3790 #  ifdef __cplusplus
3791      extern "C"
3792 #  endif
3793    int F77_DUMMY_MAIN() { return 1; }
3794 #endif
3795 int
3796 main ()
3797 {
3798 /* FIXME: Include the comments suggested by Paul. */
3799 #ifndef __cplusplus
3800   /* Ultrix mips cc rejects this.  */
3801   typedef int charset[2];
3802   const charset x;
3803   /* SunOS 4.1.1 cc rejects this.  */
3804   char const *const *ccp;
3805   char **p;
3806   /* NEC SVR4.0.2 mips cc rejects this.  */
3807   struct point {int x, y;};
3808   static struct point const zero = {0,0};
3809   /* AIX XL C 1.02.0.0 rejects this.
3810      It does not let you subtract one const X* pointer from another in
3811      an arm of an if-expression whose if-part is not a constant
3812      expression */
3813   const char *g = "string";
3814   ccp = &g + (g ? g-g : 0);
3815   /* HPUX 7.0 cc rejects these. */
3816   ++ccp;
3817   p = (char**) ccp;
3818   ccp = (char const *const *) p;
3819   { /* SCO 3.2v4 cc rejects this.  */
3820     char *t;
3821     char const *s = 0 ? (char *) 0 : (char const *) 0;
3822
3823     *t++ = 0;
3824   }
3825   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
3826     int x[] = {25, 17};
3827     const int *foo = &x[0];
3828     ++foo;
3829   }
3830   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3831     typedef const int *iptr;
3832     iptr p = 0;
3833     ++p;
3834   }
3835   { /* AIX XL C 1.02.0.0 rejects this saying
3836        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3837     struct s { int j; const int *ap[3]; };
3838     struct s *b; b->j = 5;
3839   }
3840   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3841     const int foo = 10;
3842   }
3843 #endif
3844
3845   ;
3846   return 0;
3847 }
3848 _ACEOF
3849 rm -f conftest.$ac_objext
3850 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3851   (eval $ac_compile) 2>&5
3852   ac_status=$?
3853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3854   (exit $ac_status); } &&
3855          { ac_try='test -s conftest.$ac_objext'
3856   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3857   (eval $ac_try) 2>&5
3858   ac_status=$?
3859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3860   (exit $ac_status); }; }; then
3861   ac_cv_c_const=yes
3862 else
3863   echo "$as_me: failed program was:" >&5
3864 cat conftest.$ac_ext >&5
3865 ac_cv_c_const=no
3866 fi
3867 rm -f conftest.$ac_objext conftest.$ac_ext
3868 fi
3869 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3870 echo "${ECHO_T}$ac_cv_c_const" >&6
3871 if test $ac_cv_c_const = no; then
3872
3873 cat >>confdefs.h <<\_ACEOF
3874 #define const
3875 _ACEOF
3876
3877 fi
3878
3879 echo "$as_me:$LINENO: checking for working volatile" >&5
3880 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
3881 if test "${ac_cv_c_volatile+set}" = set; then
3882   echo $ECHO_N "(cached) $ECHO_C" >&6
3883 else
3884   cat >conftest.$ac_ext <<_ACEOF
3885 #line $LINENO "configure"
3886 #include "confdefs.h"
3887
3888 #ifdef F77_DUMMY_MAIN
3889 #  ifdef __cplusplus
3890      extern "C"
3891 #  endif
3892    int F77_DUMMY_MAIN() { return 1; }
3893 #endif
3894 int
3895 main ()
3896 {
3897
3898 volatile int x;
3899 int * volatile y;
3900   ;
3901   return 0;
3902 }
3903 _ACEOF
3904 rm -f conftest.$ac_objext
3905 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3906   (eval $ac_compile) 2>&5
3907   ac_status=$?
3908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3909   (exit $ac_status); } &&
3910          { ac_try='test -s conftest.$ac_objext'
3911   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3912   (eval $ac_try) 2>&5
3913   ac_status=$?
3914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3915   (exit $ac_status); }; }; then
3916   ac_cv_c_volatile=yes
3917 else
3918   echo "$as_me: failed program was:" >&5
3919 cat conftest.$ac_ext >&5
3920 ac_cv_c_volatile=no
3921 fi
3922 rm -f conftest.$ac_objext conftest.$ac_ext
3923 fi
3924 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
3925 echo "${ECHO_T}$ac_cv_c_volatile" >&6
3926 if test $ac_cv_c_volatile = no; then
3927
3928 cat >>confdefs.h <<\_ACEOF
3929 #define volatile
3930 _ACEOF
3931
3932 fi
3933
3934 echo "$as_me:$LINENO: checking for inline" >&5
3935 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3936 if test "${ac_cv_c_inline+set}" = set; then
3937   echo $ECHO_N "(cached) $ECHO_C" >&6
3938 else
3939   ac_cv_c_inline=no
3940 for ac_kw in inline __inline__ __inline; do
3941   cat >conftest.$ac_ext <<_ACEOF
3942 #line $LINENO "configure"
3943 #include "confdefs.h"
3944 #ifndef __cplusplus
3945 static $ac_kw int static_foo () {return 0; }
3946 $ac_kw int foo () {return 0; }
3947 #endif
3948
3949 _ACEOF
3950 rm -f conftest.$ac_objext
3951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3952   (eval $ac_compile) 2>&5
3953   ac_status=$?
3954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3955   (exit $ac_status); } &&
3956          { ac_try='test -s conftest.$ac_objext'
3957   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3958   (eval $ac_try) 2>&5
3959   ac_status=$?
3960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3961   (exit $ac_status); }; }; then
3962   ac_cv_c_inline=$ac_kw; break
3963 else
3964   echo "$as_me: failed program was:" >&5
3965 cat conftest.$ac_ext >&5
3966 fi
3967 rm -f conftest.$ac_objext conftest.$ac_ext
3968 done
3969
3970 fi
3971 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3972 echo "${ECHO_T}$ac_cv_c_inline" >&6
3973 case $ac_cv_c_inline in
3974   inline | yes) ;;
3975   no)
3976 cat >>confdefs.h <<\_ACEOF
3977 #define inline
3978 _ACEOF
3979  ;;
3980   *)  cat >>confdefs.h <<_ACEOF
3981 #define inline $ac_cv_c_inline
3982 _ACEOF
3983  ;;
3984 esac
3985
3986 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
3987 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
3988 if test "${ac_cv_c_bigendian+set}" = set; then
3989   echo $ECHO_N "(cached) $ECHO_C" >&6
3990 else
3991   # See if sys/param.h defines the BYTE_ORDER macro.
3992 cat >conftest.$ac_ext <<_ACEOF
3993 #line $LINENO "configure"
3994 #include "confdefs.h"
3995 #include <sys/types.h>
3996 #include <sys/param.h>
3997
3998 #ifdef F77_DUMMY_MAIN
3999 #  ifdef __cplusplus
4000      extern "C"
4001 #  endif
4002    int F77_DUMMY_MAIN() { return 1; }
4003 #endif
4004 int
4005 main ()
4006 {
4007 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4008  bogus endian macros
4009 #endif
4010
4011   ;
4012   return 0;
4013 }
4014 _ACEOF
4015 rm -f conftest.$ac_objext
4016 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4017   (eval $ac_compile) 2>&5
4018   ac_status=$?
4019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4020   (exit $ac_status); } &&
4021          { ac_try='test -s conftest.$ac_objext'
4022   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4023   (eval $ac_try) 2>&5
4024   ac_status=$?
4025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4026   (exit $ac_status); }; }; then
4027   # It does; now see whether it defined to BIG_ENDIAN or not.
4028 cat >conftest.$ac_ext <<_ACEOF
4029 #line $LINENO "configure"
4030 #include "confdefs.h"
4031 #include <sys/types.h>
4032 #include <sys/param.h>
4033
4034 #ifdef F77_DUMMY_MAIN
4035 #  ifdef __cplusplus
4036      extern "C"
4037 #  endif
4038    int F77_DUMMY_MAIN() { return 1; }
4039 #endif
4040 int
4041 main ()
4042 {
4043 #if BYTE_ORDER != BIG_ENDIAN
4044  not big endian
4045 #endif
4046
4047   ;
4048   return 0;
4049 }
4050 _ACEOF
4051 rm -f conftest.$ac_objext
4052 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4053   (eval $ac_compile) 2>&5
4054   ac_status=$?
4055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4056   (exit $ac_status); } &&
4057          { ac_try='test -s conftest.$ac_objext'
4058   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4059   (eval $ac_try) 2>&5
4060   ac_status=$?
4061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4062   (exit $ac_status); }; }; then
4063   ac_cv_c_bigendian=yes
4064 else
4065   echo "$as_me: failed program was:" >&5
4066 cat conftest.$ac_ext >&5
4067 ac_cv_c_bigendian=no
4068 fi
4069 rm -f conftest.$ac_objext conftest.$ac_ext
4070 else
4071   echo "$as_me: failed program was:" >&5
4072 cat conftest.$ac_ext >&5
4073 # It does not; compile a test program.
4074 if test "$cross_compiling" = yes; then
4075   # try to guess the endianess by grep'ing values into an object file
4076   ac_cv_c_bigendian=unknown
4077   cat >conftest.$ac_ext <<_ACEOF
4078 #line $LINENO "configure"
4079 #include "confdefs.h"
4080 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4081 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4082 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4083 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4084 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4085 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4086 #ifdef F77_DUMMY_MAIN
4087 #  ifdef __cplusplus
4088      extern "C"
4089 #  endif
4090    int F77_DUMMY_MAIN() { return 1; }
4091 #endif
4092 int
4093 main ()
4094 {
4095  _ascii (); _ebcdic ();
4096   ;
4097   return 0;
4098 }
4099 _ACEOF
4100 rm -f conftest.$ac_objext
4101 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4102   (eval $ac_compile) 2>&5
4103   ac_status=$?
4104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4105   (exit $ac_status); } &&
4106          { ac_try='test -s conftest.$ac_objext'
4107   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4108   (eval $ac_try) 2>&5
4109   ac_status=$?
4110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4111   (exit $ac_status); }; }; then
4112   if fgrep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4113   ac_cv_c_bigendian=yes
4114 fi
4115 if fgrep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4116   if test "$ac_cv_c_bigendian" = unknown; then
4117     ac_cv_c_bigendian=no
4118   else
4119     # finding both strings is unlikely to happen, but who knows?
4120     ac_cv_c_bigendian=unknown
4121   fi
4122 fi
4123 else
4124   echo "$as_me: failed program was:" >&5
4125 cat conftest.$ac_ext >&5
4126 fi
4127 rm -f conftest.$ac_objext conftest.$ac_ext
4128 else
4129   cat >conftest.$ac_ext <<_ACEOF
4130 #line $LINENO "configure"
4131 #include "confdefs.h"
4132 int
4133 main ()
4134 {
4135   /* Are we little or big endian?  From Harbison&Steele.  */
4136   union
4137   {
4138     long l;
4139     char c[sizeof (long)];
4140   } u;
4141   u.l = 1;
4142   exit (u.c[sizeof (long) - 1] == 1);
4143 }
4144 _ACEOF
4145 rm -f conftest$ac_exeext
4146 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4147   (eval $ac_link) 2>&5
4148   ac_status=$?
4149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4150   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4151   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4152   (eval $ac_try) 2>&5
4153   ac_status=$?
4154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4155   (exit $ac_status); }; }; then
4156   ac_cv_c_bigendian=no
4157 else
4158   echo "$as_me: program exited with status $ac_status" >&5
4159 echo "$as_me: failed program was:" >&5
4160 cat conftest.$ac_ext >&5
4161 ( exit $ac_status )
4162 ac_cv_c_bigendian=yes
4163 fi
4164 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4165 fi
4166 fi
4167 rm -f conftest.$ac_objext conftest.$ac_ext
4168 fi
4169 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4170 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
4171 case $ac_cv_c_bigendian in
4172   yes)
4173
4174 cat >>confdefs.h <<\_ACEOF
4175 #define WORDS_BIGENDIAN 1
4176 _ACEOF
4177  ;;
4178   no)
4179      ;;
4180   *)
4181     { { echo "$as_me:$LINENO: error: unknown endianess
4182 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4183 echo "$as_me: error: unknown endianess
4184 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4185    { (exit 1); exit 1; }; } ;;
4186 esac
4187
4188 echo "$as_me:$LINENO: checking for working long double with more range or precision than double" >&5
4189 echo $ECHO_N "checking for working long double with more range or precision than double... $ECHO_C" >&6
4190 if test "${ac_cv_c_long_double+set}" = set; then
4191   echo $ECHO_N "(cached) $ECHO_C" >&6
4192 else
4193   cat >conftest.$ac_ext <<_ACEOF
4194 #line $LINENO "configure"
4195 #include "confdefs.h"
4196 #include <float.h>
4197           long double foo = 0.0;
4198 #ifdef F77_DUMMY_MAIN
4199 #  ifdef __cplusplus
4200      extern "C"
4201 #  endif
4202    int F77_DUMMY_MAIN() { return 1; }
4203 #endif
4204 int
4205 main ()
4206 {
4207 static int test_array [1 - 2 * !(/* Using '|' rather than '||' catches a GCC 2.95.2 x86 bug.  */
4208           (DBL_MAX < LDBL_MAX) | (LDBL_EPSILON < DBL_EPSILON)
4209           | (DBL_MAX_EXP < LDBL_MAX_EXP) | (DBL_MANT_DIG < LDBL_MANT_DIG))];
4210 test_array [0] = 0
4211
4212   ;
4213   return 0;
4214 }
4215 _ACEOF
4216 rm -f conftest.$ac_objext
4217 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4218   (eval $ac_compile) 2>&5
4219   ac_status=$?
4220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4221   (exit $ac_status); } &&
4222          { ac_try='test -s conftest.$ac_objext'
4223   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4224   (eval $ac_try) 2>&5
4225   ac_status=$?
4226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4227   (exit $ac_status); }; }; then
4228   ac_cv_c_long_double=yes
4229 else
4230   echo "$as_me: failed program was:" >&5
4231 cat conftest.$ac_ext >&5
4232 ac_cv_c_long_double=no
4233 fi
4234 rm -f conftest.$ac_objext conftest.$ac_ext
4235 fi
4236 echo "$as_me:$LINENO: result: $ac_cv_c_long_double" >&5
4237 echo "${ECHO_T}$ac_cv_c_long_double" >&6
4238 if test $ac_cv_c_long_double = yes; then
4239
4240 cat >>confdefs.h <<\_ACEOF
4241 #define HAVE_LONG_DOUBLE 1
4242 _ACEOF
4243
4244 fi
4245
4246
4247
4248
4249 echo "$as_me:$LINENO: checking for strerror" >&5
4250 echo $ECHO_N "checking for strerror... $ECHO_C" >&6
4251 if test "${ac_cv_func_strerror+set}" = set; then
4252   echo $ECHO_N "(cached) $ECHO_C" >&6
4253 else
4254   cat >conftest.$ac_ext <<_ACEOF
4255 #line $LINENO "configure"
4256 #include "confdefs.h"
4257 /* System header to define __stub macros and hopefully few prototypes,
4258     which can conflict with char strerror (); below.  */
4259 #include <assert.h>
4260 /* Override any gcc2 internal prototype to avoid an error.  */
4261 #ifdef __cplusplus
4262 extern "C"
4263 #endif
4264 /* We use char because int might match the return type of a gcc2
4265    builtin and then its argument prototype would still apply.  */
4266 char strerror ();
4267 char (*f) ();
4268
4269 #ifdef F77_DUMMY_MAIN
4270 #  ifdef __cplusplus
4271      extern "C"
4272 #  endif
4273    int F77_DUMMY_MAIN() { return 1; }
4274 #endif
4275 int
4276 main ()
4277 {
4278 /* The GNU C library defines this for functions which it implements
4279     to always fail with ENOSYS.  Some functions are actually named
4280     something starting with __ and the normal name is an alias.  */
4281 #if defined (__stub_strerror) || defined (__stub___strerror)
4282 choke me
4283 #else
4284 f = strerror;
4285 #endif
4286
4287   ;
4288   return 0;
4289 }
4290 _ACEOF
4291 rm -f conftest.$ac_objext conftest$ac_exeext
4292 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4293   (eval $ac_link) 2>&5
4294   ac_status=$?
4295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4296   (exit $ac_status); } &&
4297          { ac_try='test -s conftest$ac_exeext'
4298   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4299   (eval $ac_try) 2>&5
4300   ac_status=$?
4301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4302   (exit $ac_status); }; }; then
4303   ac_cv_func_strerror=yes
4304 else
4305   echo "$as_me: failed program was:" >&5
4306 cat conftest.$ac_ext >&5
4307 ac_cv_func_strerror=no
4308 fi
4309 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4310 fi
4311 echo "$as_me:$LINENO: result: $ac_cv_func_strerror" >&5
4312 echo "${ECHO_T}$ac_cv_func_strerror" >&6
4313 if test $ac_cv_func_strerror = yes; then
4314   :
4315 else
4316   { { echo "$as_me:$LINENO: error: \"need strerror function\"" >&5
4317 echo "$as_me: error: \"need strerror function\"" >&2;}
4318    { (exit 1); exit 1; }; }
4319
4320 fi
4321
4322
4323
4324
4325
4326 ac_config_files="$ac_config_files $ac_output_file"
4327 ac_config_commands="$ac_config_commands default"
4328 cat >confcache <<\_ACEOF
4329 # This file is a shell script that caches the results of configure
4330 # tests run on this system so they can be shared between configure
4331 # scripts and configure runs, see configure's option --config-cache.
4332 # It is not useful on other systems.  If it contains results you don't
4333 # want to keep, you may remove or edit it.
4334 #
4335 # config.status only pays attention to the cache file if you give it
4336 # the --recheck option to rerun configure.
4337 #
4338 # `ac_cv_env_foo' variables (set or unset) will be overriden when
4339 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4340 # following values.
4341
4342 _ACEOF
4343
4344 # The following way of writing the cache mishandles newlines in values,
4345 # but we know of no workaround that is simple, portable, and efficient.
4346 # So, don't put newlines in cache variables' values.
4347 # Ultrix sh set writes to stderr and can't be redirected directly,
4348 # and sets the high bit in the cache file unless we assign to the vars.
4349 {
4350   (set) 2>&1 |
4351     case `(ac_space=' '; set | grep ac_space) 2>&1` in
4352     *ac_space=\ *)
4353       # `set' does not quote correctly, so add quotes (double-quote
4354       # substitution turns \\\\ into \\, and sed turns \\ into \).
4355       sed -n \
4356         "s/'/'\\\\''/g;
4357           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4358       ;;
4359     *)
4360       # `set' quotes correctly as required by POSIX, so do not add quotes.
4361       sed -n \
4362         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4363       ;;
4364     esac;
4365 } |
4366   sed '
4367      t clear
4368      : clear
4369      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4370      t end
4371      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4372      : end' >>confcache
4373 if cmp -s $cache_file confcache; then :; else
4374   if test -w $cache_file; then
4375     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4376     cat confcache >$cache_file
4377   else
4378     echo "not updating unwritable cache $cache_file"
4379   fi
4380 fi
4381 rm -f confcache
4382
4383 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4384 # Let make expand exec_prefix.
4385 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4386
4387 # VPATH may cause trouble with some makes, so we remove $(srcdir),
4388 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
4389 # trailing colons and then remove the whole line if VPATH becomes empty
4390 # (actually we leave an empty line to preserve line numbers).
4391 if test "x$srcdir" = x.; then
4392   ac_vpsub='/^[         ]*VPATH[        ]*=/{
4393 s/:*\$(srcdir):*/:/;
4394 s/:*\${srcdir}:*/:/;
4395 s/:*@srcdir@:*/:/;
4396 s/^\([^=]*=[    ]*\):*/\1/;
4397 s/:*$//;
4398 s/^[^=]*=[      ]*$//;
4399 }'
4400 fi
4401
4402 DEFS=-DHAVE_CONFIG_H
4403
4404
4405 : ${CONFIG_STATUS=./config.status}
4406 ac_clean_files_save=$ac_clean_files
4407 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4408 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
4409 echo "$as_me: creating $CONFIG_STATUS" >&6;}
4410 cat >$CONFIG_STATUS <<_ACEOF
4411 #! $SHELL
4412 # Generated by $as_me.
4413 # Run this file to recreate the current configuration.
4414 # Compiler output produced by configure, useful for debugging
4415 # configure, is in config.log if it exists.
4416
4417 debug=false
4418 SHELL=\${CONFIG_SHELL-$SHELL}
4419 _ACEOF
4420
4421 cat >>$CONFIG_STATUS <<\_ACEOF
4422
4423 ## --------------------- ##
4424 ## M4sh Initialization.  ##
4425 ## --------------------- ##
4426
4427 # Be Bourne compatible
4428 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
4429   emulate sh
4430   NULLCMD=:
4431 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
4432   set -o posix
4433 fi
4434
4435 # NLS nuisances.
4436 # Support unset when possible.
4437 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
4438   as_unset=unset
4439 else
4440   as_unset=false
4441 fi
4442
4443 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
4444     { $as_unset LANG || test "${LANG+set}" != set; } ||
4445       { LANG=C; export LANG; }
4446 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
4447     { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
4448       { LC_ALL=C; export LC_ALL; }
4449 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
4450     { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
4451       { LC_TIME=C; export LC_TIME; }
4452 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
4453     { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
4454       { LC_CTYPE=C; export LC_CTYPE; }
4455 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
4456     { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
4457       { LANGUAGE=C; export LANGUAGE; }
4458 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
4459     { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
4460       { LC_COLLATE=C; export LC_COLLATE; }
4461 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
4462     { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
4463       { LC_NUMERIC=C; export LC_NUMERIC; }
4464 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
4465     { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
4466       { LC_MESSAGES=C; export LC_MESSAGES; }
4467
4468
4469 # Name of the executable.
4470 as_me=`(basename "$0") 2>/dev/null ||
4471 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4472          X"$0" : 'X\(//\)$' \| \
4473          X"$0" : 'X\(/\)$' \| \
4474          .     : '\(.\)' 2>/dev/null ||
4475 echo X/"$0" |
4476     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
4477           /^X\/\(\/\/\)$/{ s//\1/; q; }
4478           /^X\/\(\/\).*/{ s//\1/; q; }
4479           s/.*/./; q'`
4480
4481 # PATH needs CR, and LINENO needs CR and PATH.
4482 # Avoid depending upon Character Ranges.
4483 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
4484 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4485 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
4486 as_cr_digits='0123456789'
4487 as_cr_alnum=$as_cr_Letters$as_cr_digits
4488
4489 # The user is always right.
4490 if test "${PATH_SEPARATOR+set}" != set; then
4491   echo "#! /bin/sh" >conftest.sh
4492   echo  "exit 0"   >>conftest.sh
4493   chmod +x conftest.sh
4494   if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
4495     PATH_SEPARATOR=';'
4496   else
4497     PATH_SEPARATOR=:
4498   fi
4499   rm -f conftest.sh
4500 fi
4501
4502
4503   as_lineno_1=$LINENO
4504   as_lineno_2=$LINENO
4505   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4506   test "x$as_lineno_1" != "x$as_lineno_2" &&
4507   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
4508   # Find who we are.  Look in the path if we contain no path at all
4509   # relative or not.
4510   case $0 in
4511     *[\\/]* ) as_myself=$0 ;;
4512     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4513 for as_dir in $PATH
4514 do
4515   IFS=$as_save_IFS
4516   test -z "$as_dir" && as_dir=.
4517   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4518 done
4519
4520        ;;
4521   esac
4522   # We did not find ourselves, most probably we were run as `sh COMMAND'
4523   # in which case we are not to be found in the path.
4524   if test "x$as_myself" = x; then
4525     as_myself=$0
4526   fi
4527   if test ! -f "$as_myself"; then
4528     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
4529 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
4530    { (exit 1); exit 1; }; }
4531   fi
4532   case $CONFIG_SHELL in
4533   '')
4534     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4535 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
4536 do
4537   IFS=$as_save_IFS
4538   test -z "$as_dir" && as_dir=.
4539   for as_base in sh bash ksh sh5; do
4540          case $as_dir in
4541          /*)
4542            if ("$as_dir/$as_base" -c '
4543   as_lineno_1=$LINENO
4544   as_lineno_2=$LINENO
4545   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4546   test "x$as_lineno_1" != "x$as_lineno_2" &&
4547   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
4548              CONFIG_SHELL=$as_dir/$as_base
4549              export CONFIG_SHELL
4550              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
4551            fi;;
4552          esac
4553        done
4554 done
4555 ;;
4556   esac
4557
4558   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
4559   # uniformly replaced by the line number.  The first 'sed' inserts a
4560   # line-number line before each line; the second 'sed' does the real
4561   # work.  The second script uses 'N' to pair each line-number line
4562   # with the numbered line, and appends trailing '-' during
4563   # substitution so that $LINENO is not a special case at line end.
4564   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
4565   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
4566   sed '=' <$as_myself |
4567     sed '
4568       N
4569       s,$,-,
4570       : loop
4571       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
4572       t loop
4573       s,-$,,
4574       s,^['$as_cr_digits']*\n,,
4575     ' >$as_me.lineno &&
4576   chmod +x $as_me.lineno ||
4577     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
4578 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
4579    { (exit 1); exit 1; }; }
4580
4581   # Don't try to exec as it changes $[0], causing all sort of problems
4582   # (the dirname of $[0] is not the place where we might find the
4583   # original and so on.  Autoconf is especially sensible to this).
4584   . ./$as_me.lineno
4585   # Exit status is that of the last command.
4586   exit
4587 }
4588
4589
4590 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
4591   *c*,-n*) ECHO_N= ECHO_C='
4592 ' ECHO_T='      ' ;;
4593   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
4594   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
4595 esac
4596
4597 if expr a : '\(a\)' >/dev/null 2>&1; then
4598   as_expr=expr
4599 else
4600   as_expr=false
4601 fi
4602
4603 rm -f conf$$ conf$$.exe conf$$.file
4604 echo >conf$$.file
4605 if ln -s conf$$.file conf$$ 2>/dev/null; then
4606   # We could just check for DJGPP; but this test a) works b) is more generic
4607   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
4608   if test -f conf$$.exe; then
4609     # Don't use ln at all; we don't have any links
4610     as_ln_s='cp -p'
4611   else
4612     as_ln_s='ln -s'
4613   fi
4614 elif ln conf$$.file conf$$ 2>/dev/null; then
4615   as_ln_s=ln
4616 else
4617   as_ln_s='cp -p'
4618 fi
4619 rm -f conf$$ conf$$.exe conf$$.file
4620
4621 as_executable_p="test -f"
4622
4623 # Sed expression to map a string onto a valid CPP name.
4624 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
4625
4626 # Sed expression to map a string onto a valid variable name.
4627 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
4628
4629
4630 # IFS
4631 # We need space, tab and new line, in precisely that order.
4632 as_nl='
4633 '
4634 IFS="   $as_nl"
4635
4636 # CDPATH.
4637 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
4638
4639 exec 6>&1
4640
4641 # Open the log real soon, to keep \$[0] and so on meaningful, and to
4642 # report actual input values of CONFIG_FILES etc. instead of their
4643 # values after options handling.  Logging --version etc. is OK.
4644 exec 5>>config.log
4645 {
4646   echo
4647   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4648 ## Running $as_me. ##
4649 _ASBOX
4650 } >&5
4651 cat >&5 <<_CSEOF
4652
4653 This file was extended by libfirm $as_me 0.3.0, which was
4654 generated by GNU Autoconf 2.53.  Invocation command line was
4655
4656   CONFIG_FILES    = $CONFIG_FILES
4657   CONFIG_HEADERS  = $CONFIG_HEADERS
4658   CONFIG_LINKS    = $CONFIG_LINKS
4659   CONFIG_COMMANDS = $CONFIG_COMMANDS
4660   $ $0 $@
4661
4662 _CSEOF
4663 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
4664 echo >&5
4665 _ACEOF
4666
4667 # Files that config.status was made for.
4668 if test -n "$ac_config_files"; then
4669   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
4670 fi
4671
4672 if test -n "$ac_config_headers"; then
4673   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
4674 fi
4675
4676 if test -n "$ac_config_links"; then
4677   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
4678 fi
4679
4680 if test -n "$ac_config_commands"; then
4681   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
4682 fi
4683
4684 cat >>$CONFIG_STATUS <<\_ACEOF
4685
4686 ac_cs_usage="\
4687 \`$as_me' instantiates files from templates according to the
4688 current configuration.
4689
4690 Usage: $0 [OPTIONS] [FILE]...
4691
4692   -h, --help       print this help, then exit
4693   -V, --version    print version number, then exit
4694   -d, --debug      don't remove temporary files
4695       --recheck    update $as_me by reconfiguring in the same conditions
4696   --file=FILE[:TEMPLATE]
4697                    instantiate the configuration file FILE
4698   --header=FILE[:TEMPLATE]
4699                    instantiate the configuration header FILE
4700
4701 Configuration files:
4702 $config_files
4703
4704 Configuration headers:
4705 $config_headers
4706
4707 Configuration commands:
4708 $config_commands
4709
4710 Report bugs to <bug-autoconf@gnu.org>."
4711 _ACEOF
4712
4713 cat >>$CONFIG_STATUS <<_ACEOF
4714 ac_cs_version="\\
4715 libfirm config.status 0.3.0
4716 configured by $0, generated by GNU Autoconf 2.53,
4717   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
4718
4719 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
4720 Free Software Foundation, Inc.
4721 This config.status script is free software; the Free Software Foundation
4722 gives unlimited permission to copy, distribute and modify it."
4723 srcdir=$srcdir
4724 INSTALL="$INSTALL"
4725 _ACEOF
4726
4727 cat >>$CONFIG_STATUS <<\_ACEOF
4728 # If no file are specified by the user, then we need to provide default
4729 # value.  By we need to know if files were specified by the user.
4730 ac_need_defaults=:
4731 while test $# != 0
4732 do
4733   case $1 in
4734   --*=*)
4735     ac_option=`expr "x$1" : 'x\([^=]*\)='`
4736     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
4737     shift
4738     set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
4739     shift
4740     ;;
4741   -*);;
4742   *) # This is not an option, so the user has probably given explicit
4743      # arguments.
4744      ac_need_defaults=false;;
4745   esac
4746
4747   case $1 in
4748   # Handling of the options.
4749 _ACEOF
4750 cat >>$CONFIG_STATUS <<_ACEOF
4751   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4752     echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
4753     exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
4754 _ACEOF
4755 cat >>$CONFIG_STATUS <<\_ACEOF
4756   --version | --vers* | -V )
4757     echo "$ac_cs_version"; exit 0 ;;
4758   --he | --h)
4759     # Conflict between --help and --header
4760     { { echo "$as_me:$LINENO: error: ambiguous option: $1
4761 Try \`$0 --help' for more information." >&5
4762 echo "$as_me: error: ambiguous option: $1
4763 Try \`$0 --help' for more information." >&2;}
4764    { (exit 1); exit 1; }; };;
4765   --help | --hel | -h )
4766     echo "$ac_cs_usage"; exit 0 ;;
4767   --debug | --d* | -d )
4768     debug=: ;;
4769   --file | --fil | --fi | --f )
4770     shift
4771     CONFIG_FILES="$CONFIG_FILES $1"
4772     ac_need_defaults=false;;
4773   --header | --heade | --head | --hea )
4774     shift
4775     CONFIG_HEADERS="$CONFIG_HEADERS $1"
4776     ac_need_defaults=false;;
4777
4778   # This is an error.
4779   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
4780 Try \`$0 --help' for more information." >&5
4781 echo "$as_me: error: unrecognized option: $1
4782 Try \`$0 --help' for more information." >&2;}
4783    { (exit 1); exit 1; }; } ;;
4784
4785   *) ac_config_targets="$ac_config_targets $1" ;;
4786
4787   esac
4788   shift
4789 done
4790
4791 _ACEOF
4792
4793
4794
4795
4796
4797 cat >>$CONFIG_STATUS <<\_ACEOF
4798 for ac_config_target in $ac_config_targets
4799 do
4800   case "$ac_config_target" in
4801   # Handling of arguments.
4802   "$ac_output_file" ) CONFIG_FILES="$CONFIG_FILES $ac_output_file" ;;
4803   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
4804   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
4805   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
4806 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
4807    { (exit 1); exit 1; }; };;
4808   esac
4809 done
4810
4811 # If the user did not use the arguments to specify the items to instantiate,
4812 # then the envvar interface is used.  Set only those that are not.
4813 # We use the long form for the default assignment because of an extremely
4814 # bizarre bug on SunOS 4.1.3.
4815 if $ac_need_defaults; then
4816   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
4817   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
4818   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
4819 fi
4820
4821 # Create a temporary directory, and hook for its removal unless debugging.
4822 $debug ||
4823 {
4824   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
4825   trap '{ (exit 1); exit 1; }' 1 2 13 15
4826 }
4827
4828 # Create a (secure) tmp directory for tmp files.
4829 : ${TMPDIR=/tmp}
4830 {
4831   tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
4832   test -n "$tmp" && test -d "$tmp"
4833 }  ||
4834 {
4835   tmp=$TMPDIR/cs$$-$RANDOM
4836   (umask 077 && mkdir $tmp)
4837 } ||
4838 {
4839    echo "$me: cannot create a temporary directory in $TMPDIR" >&2
4840    { (exit 1); exit 1; }
4841 }
4842
4843 _ACEOF
4844
4845 cat >>$CONFIG_STATUS <<_ACEOF
4846
4847 #
4848 # CONFIG_FILES section.
4849 #
4850
4851 # No need to generate the scripts if there are no CONFIG_FILES.
4852 # This happens for instance when ./config.status config.h
4853 if test -n "\$CONFIG_FILES"; then
4854   # Protect against being on the right side of a sed subst in config.status.
4855   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
4856    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
4857 s,@SHELL@,$SHELL,;t t
4858 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
4859 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
4860 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
4861 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
4862 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
4863 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
4864 s,@exec_prefix@,$exec_prefix,;t t
4865 s,@prefix@,$prefix,;t t
4866 s,@program_transform_name@,$program_transform_name,;t t
4867 s,@bindir@,$bindir,;t t
4868 s,@sbindir@,$sbindir,;t t
4869 s,@libexecdir@,$libexecdir,;t t
4870 s,@datadir@,$datadir,;t t
4871 s,@sysconfdir@,$sysconfdir,;t t
4872 s,@sharedstatedir@,$sharedstatedir,;t t
4873 s,@localstatedir@,$localstatedir,;t t
4874 s,@libdir@,$libdir,;t t
4875 s,@includedir@,$includedir,;t t
4876 s,@oldincludedir@,$oldincludedir,;t t
4877 s,@infodir@,$infodir,;t t
4878 s,@mandir@,$mandir,;t t
4879 s,@build_alias@,$build_alias,;t t
4880 s,@host_alias@,$host_alias,;t t
4881 s,@target_alias@,$target_alias,;t t
4882 s,@DEFS@,$DEFS,;t t
4883 s,@ECHO_C@,$ECHO_C,;t t
4884 s,@ECHO_N@,$ECHO_N,;t t
4885 s,@ECHO_T@,$ECHO_T,;t t
4886 s,@LIBS@,$LIBS,;t t
4887 s,@libfirm_conf_env@,$libfirm_conf_env,;t t
4888 s,@enable_debug_libfirm@,$enable_debug_libfirm,;t t
4889 s,@enable_profile_libfirm@,$enable_profile_libfirm,;t t
4890 s,@enable_auto_documentation@,$enable_auto_documentation,;t t
4891 s,@enable_firm_jni@,$enable_firm_jni,;t t
4892 s,@enable_heapanalysis@,$enable_heapanalysis,;t t
4893 s,@disable_libiberty@,$disable_libiberty,;t t
4894 s,@enable_statistics@,$enable_statistics,;t t
4895 s,@CC@,$CC,;t t
4896 s,@CFLAGS@,$CFLAGS,;t t
4897 s,@LDFLAGS@,$LDFLAGS,;t t
4898 s,@CPPFLAGS@,$CPPFLAGS,;t t
4899 s,@ac_ct_CC@,$ac_ct_CC,;t t
4900 s,@EXEEXT@,$EXEEXT,;t t
4901 s,@OBJEXT@,$OBJEXT,;t t
4902 s,@LD@,$LD,;t t
4903 s,@ac_ct_LD@,$ac_ct_LD,;t t
4904 s,@libfirm_cv_prog_ld_r@,$libfirm_cv_prog_ld_r,;t t
4905 s,@AR@,$AR,;t t
4906 s,@TAR@,$TAR,;t t
4907 s,@RANLIB@,$RANLIB,;t t
4908 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
4909 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
4910 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
4911 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
4912 s,@LN_S@,$LN_S,;t t
4913 s,@DOXYGEN@,$DOXYGEN,;t t
4914 s,@DOT@,$DOT,;t t
4915 s,@JAVAC@,$JAVAC,;t t
4916 s,@JAVAH@,$JAVAH,;t t
4917 s,@CPP@,$CPP,;t t
4918 CEOF
4919
4920 _ACEOF
4921
4922   cat >>$CONFIG_STATUS <<\_ACEOF
4923   # Split the substitutions into bite-sized pieces for seds with
4924   # small command number limits, like on Digital OSF/1 and HP-UX.
4925   ac_max_sed_lines=48
4926   ac_sed_frag=1 # Number of current file.
4927   ac_beg=1 # First line for current file.
4928   ac_end=$ac_max_sed_lines # Line after last line for current file.
4929   ac_more_lines=:
4930   ac_sed_cmds=
4931   while $ac_more_lines; do
4932     if test $ac_beg -gt 1; then
4933       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4934     else
4935       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4936     fi
4937     if test ! -s $tmp/subs.frag; then
4938       ac_more_lines=false
4939     else
4940       # The purpose of the label and of the branching condition is to
4941       # speed up the sed processing (if there are no `@' at all, there
4942       # is no need to browse any of the substitutions).
4943       # These are the two extra sed commands mentioned above.
4944       (echo ':t
4945   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
4946       if test -z "$ac_sed_cmds"; then
4947         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
4948       else
4949         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
4950       fi
4951       ac_sed_frag=`expr $ac_sed_frag + 1`
4952       ac_beg=$ac_end
4953       ac_end=`expr $ac_end + $ac_max_sed_lines`
4954     fi
4955   done
4956   if test -z "$ac_sed_cmds"; then
4957     ac_sed_cmds=cat
4958   fi
4959 fi # test -n "$CONFIG_FILES"
4960
4961 _ACEOF
4962 cat >>$CONFIG_STATUS <<\_ACEOF
4963 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
4964   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4965   case $ac_file in
4966   - | *:- | *:-:* ) # input from stdin
4967         cat >$tmp/stdin
4968         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4969         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4970   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4971         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4972   * )   ac_file_in=$ac_file.in ;;
4973   esac
4974
4975   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
4976   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
4977 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4978          X"$ac_file" : 'X\(//\)[^/]' \| \
4979          X"$ac_file" : 'X\(//\)$' \| \
4980          X"$ac_file" : 'X\(/\)' \| \
4981          .     : '\(.\)' 2>/dev/null ||
4982 echo X"$ac_file" |
4983     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4984           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4985           /^X\(\/\/\)$/{ s//\1/; q; }
4986           /^X\(\/\).*/{ s//\1/; q; }
4987           s/.*/./; q'`
4988   { case "$ac_dir" in
4989   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
4990   *)                      as_incr_dir=.;;
4991 esac
4992 as_dummy="$ac_dir"
4993 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
4994   case $as_mkdir_dir in
4995     # Skip DOS drivespec
4996     ?:) as_incr_dir=$as_mkdir_dir ;;
4997     *)
4998       as_incr_dir=$as_incr_dir/$as_mkdir_dir
4999       test -d "$as_incr_dir" ||
5000         mkdir "$as_incr_dir" ||
5001         { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
5002 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
5003    { (exit 1); exit 1; }; }
5004     ;;
5005   esac
5006 done; }
5007
5008   ac_builddir=.
5009
5010 if test "$ac_dir" != .; then
5011   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5012   # A "../" for each directory in $ac_dir_suffix.
5013   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
5014 else
5015   ac_dir_suffix= ac_top_builddir=
5016 fi
5017
5018 case $srcdir in
5019   .)  # No --srcdir option.  We are building in place.
5020     ac_srcdir=.
5021     if test -z "$ac_top_builddir"; then
5022        ac_top_srcdir=.
5023     else
5024        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
5025     fi ;;
5026   [\\/]* | ?:[\\/]* )  # Absolute path.
5027     ac_srcdir=$srcdir$ac_dir_suffix;
5028     ac_top_srcdir=$srcdir ;;
5029   *) # Relative path.
5030     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
5031     ac_top_srcdir=$ac_top_builddir$srcdir ;;
5032 esac
5033 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
5034 # absolute.
5035 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
5036 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
5037 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
5038 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
5039
5040
5041   case $INSTALL in
5042   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5043   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
5044   esac
5045
5046   if test x"$ac_file" != x-; then
5047     { echo "$as_me:$LINENO: creating $ac_file" >&5
5048 echo "$as_me: creating $ac_file" >&6;}
5049     rm -f "$ac_file"
5050   fi
5051   # Let's still pretend it is `configure' which instantiates (i.e., don't
5052   # use $as_me), people would be surprised to read:
5053   #    /* config.h.  Generated by config.status.  */
5054   if test x"$ac_file" = x-; then
5055     configure_input=
5056   else
5057     configure_input="$ac_file.  "
5058   fi
5059   configure_input=$configure_input"Generated from `echo $ac_file_in |
5060                                      sed 's,.*/,,'` by configure."
5061
5062   # First look for the input files in the build tree, otherwise in the
5063   # src tree.
5064   ac_file_inputs=`IFS=:
5065     for f in $ac_file_in; do
5066       case $f in
5067       -) echo $tmp/stdin ;;
5068       [\\/$]*)
5069          # Absolute (can't be DOS-style, as IFS=:)
5070          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5071 echo "$as_me: error: cannot find input file: $f" >&2;}
5072    { (exit 1); exit 1; }; }
5073          echo $f;;
5074       *) # Relative
5075          if test -f "$f"; then
5076            # Build tree
5077            echo $f
5078          elif test -f "$srcdir/$f"; then
5079            # Source tree
5080            echo $srcdir/$f
5081          else
5082            # /dev/null tree
5083            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5084 echo "$as_me: error: cannot find input file: $f" >&2;}
5085    { (exit 1); exit 1; }; }
5086          fi;;
5087       esac
5088     done` || { (exit 1); exit 1; }
5089 _ACEOF
5090 cat >>$CONFIG_STATUS <<_ACEOF
5091   sed "$ac_vpsub
5092 $extrasub
5093 _ACEOF
5094 cat >>$CONFIG_STATUS <<\_ACEOF
5095 :t
5096 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5097 s,@configure_input@,$configure_input,;t t
5098 s,@srcdir@,$ac_srcdir,;t t
5099 s,@abs_srcdir@,$ac_abs_srcdir,;t t
5100 s,@top_srcdir@,$ac_top_srcdir,;t t
5101 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
5102 s,@builddir@,$ac_builddir,;t t
5103 s,@abs_builddir@,$ac_abs_builddir,;t t
5104 s,@top_builddir@,$ac_top_builddir,;t t
5105 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
5106 s,@INSTALL@,$ac_INSTALL,;t t
5107 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
5108   rm -f $tmp/stdin
5109   if test x"$ac_file" != x-; then
5110     mv $tmp/out $ac_file
5111   else
5112     cat $tmp/out
5113     rm -f $tmp/out
5114   fi
5115
5116 done
5117 _ACEOF
5118 cat >>$CONFIG_STATUS <<\_ACEOF
5119
5120 #
5121 # CONFIG_HEADER section.
5122 #
5123
5124 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5125 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5126 #
5127 # ac_d sets the value in "#define NAME VALUE" lines.
5128 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
5129 ac_dB='[        ].*$,\1#\2'
5130 ac_dC=' '
5131 ac_dD=',;t'
5132 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5133 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
5134 ac_uB='$,\1#\2define\3'
5135 ac_uC=' '
5136 ac_uD=',;t'
5137
5138 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
5139   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5140   case $ac_file in
5141   - | *:- | *:-:* ) # input from stdin
5142         cat >$tmp/stdin
5143         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5144         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5145   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5146         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5147   * )   ac_file_in=$ac_file.in ;;
5148   esac
5149
5150   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
5151 echo "$as_me: creating $ac_file" >&6;}
5152
5153   # First look for the input files in the build tree, otherwise in the
5154   # src tree.
5155   ac_file_inputs=`IFS=:
5156     for f in $ac_file_in; do
5157       case $f in
5158       -) echo $tmp/stdin ;;
5159       [\\/$]*)
5160          # Absolute (can't be DOS-style, as IFS=:)
5161          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5162 echo "$as_me: error: cannot find input file: $f" >&2;}
5163    { (exit 1); exit 1; }; }
5164          echo $f;;
5165       *) # Relative
5166          if test -f "$f"; then
5167            # Build tree
5168            echo $f
5169          elif test -f "$srcdir/$f"; then
5170            # Source tree
5171            echo $srcdir/$f
5172          else
5173            # /dev/null tree
5174            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5175 echo "$as_me: error: cannot find input file: $f" >&2;}
5176    { (exit 1); exit 1; }; }
5177          fi;;
5178       esac
5179     done` || { (exit 1); exit 1; }
5180   # Remove the trailing spaces.
5181   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
5182
5183 _ACEOF
5184
5185 # Transform confdefs.h into two sed scripts, `conftest.defines' and
5186 # `conftest.undefs', that substitutes the proper values into
5187 # config.h.in to produce config.h.  The first handles `#define'
5188 # templates, and the second `#undef' templates.
5189 # And first: Protect against being on the right side of a sed subst in
5190 # config.status.  Protect against being in an unquoted here document
5191 # in config.status.
5192 rm -f conftest.defines conftest.undefs
5193 # Using a here document instead of a string reduces the quoting nightmare.
5194 # Putting comments in sed scripts is not portable.
5195 #
5196 # `end' is used to avoid that the second main sed command (meant for
5197 # 0-ary CPP macros) applies to n-ary macro definitions.
5198 # See the Autoconf documentation for `clear'.
5199 cat >confdef2sed.sed <<\_ACEOF
5200 s/[\\&,]/\\&/g
5201 s,[\\$`],\\&,g
5202 t clear
5203 : clear
5204 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
5205 t end
5206 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
5207 : end
5208 _ACEOF
5209 # If some macros were called several times there might be several times
5210 # the same #defines, which is useless.  Nevertheless, we may not want to
5211 # sort them, since we want the *last* AC-DEFINE to be honored.
5212 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
5213 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
5214 rm -f confdef2sed.sed
5215
5216 # This sed command replaces #undef with comments.  This is necessary, for
5217 # example, in the case of _POSIX_SOURCE, which is predefined and required
5218 # on some systems where configure will not decide to define it.
5219 cat >>conftest.undefs <<\_ACEOF
5220 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
5221 _ACEOF
5222
5223 # Break up conftest.defines because some shells have a limit on the size
5224 # of here documents, and old seds have small limits too (100 cmds).
5225 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
5226 echo '  if egrep "^[    ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
5227 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
5228 echo '  :' >>$CONFIG_STATUS
5229 rm -f conftest.tail
5230 while grep . conftest.defines >/dev/null
5231 do
5232   # Write a limited-size here document to $tmp/defines.sed.
5233   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
5234   # Speed up: don't consider the non `#define' lines.
5235   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
5236   # Work around the forget-to-reset-the-flag bug.
5237   echo 't clr' >>$CONFIG_STATUS
5238   echo ': clr' >>$CONFIG_STATUS
5239   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
5240   echo 'CEOF
5241   sed -f $tmp/defines.sed $tmp/in >$tmp/out
5242   rm -f $tmp/in
5243   mv $tmp/out $tmp/in
5244 ' >>$CONFIG_STATUS
5245   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
5246   rm -f conftest.defines
5247   mv conftest.tail conftest.defines
5248 done
5249 rm -f conftest.defines
5250 echo '  fi # egrep' >>$CONFIG_STATUS
5251 echo >>$CONFIG_STATUS
5252
5253 # Break up conftest.undefs because some shells have a limit on the size
5254 # of here documents, and old seds have small limits too (100 cmds).
5255 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
5256 rm -f conftest.tail
5257 while grep . conftest.undefs >/dev/null
5258 do
5259   # Write a limited-size here document to $tmp/undefs.sed.
5260   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
5261   # Speed up: don't consider the non `#undef'
5262   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
5263   # Work around the forget-to-reset-the-flag bug.
5264   echo 't clr' >>$CONFIG_STATUS
5265   echo ': clr' >>$CONFIG_STATUS
5266   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
5267   echo 'CEOF
5268   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
5269   rm -f $tmp/in
5270   mv $tmp/out $tmp/in
5271 ' >>$CONFIG_STATUS
5272   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
5273   rm -f conftest.undefs
5274   mv conftest.tail conftest.undefs
5275 done
5276 rm -f conftest.undefs
5277
5278 cat >>$CONFIG_STATUS <<\_ACEOF
5279   # Let's still pretend it is `configure' which instantiates (i.e., don't
5280   # use $as_me), people would be surprised to read:
5281   #    /* config.h.  Generated by config.status.  */
5282   if test x"$ac_file" = x-; then
5283     echo "/* Generated by configure.  */" >$tmp/config.h
5284   else
5285     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
5286   fi
5287   cat $tmp/in >>$tmp/config.h
5288   rm -f $tmp/in
5289   if test x"$ac_file" != x-; then
5290     if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
5291       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
5292 echo "$as_me: $ac_file is unchanged" >&6;}
5293     else
5294       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
5295 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5296          X"$ac_file" : 'X\(//\)[^/]' \| \
5297          X"$ac_file" : 'X\(//\)$' \| \
5298          X"$ac_file" : 'X\(/\)' \| \
5299          .     : '\(.\)' 2>/dev/null ||
5300 echo X"$ac_file" |
5301     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5302           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5303           /^X\(\/\/\)$/{ s//\1/; q; }
5304           /^X\(\/\).*/{ s//\1/; q; }
5305           s/.*/./; q'`
5306       { case "$ac_dir" in
5307   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
5308   *)                      as_incr_dir=.;;
5309 esac
5310 as_dummy="$ac_dir"
5311 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
5312   case $as_mkdir_dir in
5313     # Skip DOS drivespec
5314     ?:) as_incr_dir=$as_mkdir_dir ;;
5315     *)
5316       as_incr_dir=$as_incr_dir/$as_mkdir_dir
5317       test -d "$as_incr_dir" ||
5318         mkdir "$as_incr_dir" ||
5319         { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
5320 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
5321    { (exit 1); exit 1; }; }
5322     ;;
5323   esac
5324 done; }
5325
5326       rm -f $ac_file
5327       mv $tmp/config.h $ac_file
5328     fi
5329   else
5330     cat $tmp/config.h
5331     rm -f $tmp/config.h
5332   fi
5333 done
5334 _ACEOF
5335 cat >>$CONFIG_STATUS <<\_ACEOF
5336
5337 #
5338 # CONFIG_COMMANDS section.
5339 #
5340 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
5341   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
5342   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
5343   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
5344 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5345          X"$ac_dest" : 'X\(//\)[^/]' \| \
5346          X"$ac_dest" : 'X\(//\)$' \| \
5347          X"$ac_dest" : 'X\(/\)' \| \
5348          .     : '\(.\)' 2>/dev/null ||
5349 echo X"$ac_dest" |
5350     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5351           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5352           /^X\(\/\/\)$/{ s//\1/; q; }
5353           /^X\(\/\).*/{ s//\1/; q; }
5354           s/.*/./; q'`
5355   ac_builddir=.
5356
5357 if test "$ac_dir" != .; then
5358   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5359   # A "../" for each directory in $ac_dir_suffix.
5360   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
5361 else
5362   ac_dir_suffix= ac_top_builddir=
5363 fi
5364
5365 case $srcdir in
5366   .)  # No --srcdir option.  We are building in place.
5367     ac_srcdir=.
5368     if test -z "$ac_top_builddir"; then
5369        ac_top_srcdir=.
5370     else
5371        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
5372     fi ;;
5373   [\\/]* | ?:[\\/]* )  # Absolute path.
5374     ac_srcdir=$srcdir$ac_dir_suffix;
5375     ac_top_srcdir=$srcdir ;;
5376   *) # Relative path.
5377     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
5378     ac_top_srcdir=$ac_top_builddir$srcdir ;;
5379 esac
5380 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
5381 # absolute.
5382 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
5383 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
5384 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
5385 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
5386
5387
5388   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
5389 echo "$as_me: executing $ac_dest commands" >&6;}
5390   case $ac_dest in
5391     default )  touch stamp-h  ;;
5392   esac
5393 done
5394 _ACEOF
5395
5396 cat >>$CONFIG_STATUS <<\_ACEOF
5397
5398 { (exit 0); exit 0; }
5399 _ACEOF
5400 chmod +x $CONFIG_STATUS
5401 ac_clean_files=$ac_clean_files_save
5402
5403
5404 # configure is writing to config.log, and then calls config.status.
5405 # config.status does its own redirection, appending to config.log.
5406 # Unfortunately, on DOS this fails, as config.log is still kept open
5407 # by configure, so config.status won't be able to write to it; its
5408 # output is simply discarded.  So we exec the FD to /dev/null,
5409 # effectively closing config.log, so it can be properly (re)opened and
5410 # appended to by config.status.  When coming back to configure, we
5411 # need to make the FD available again.
5412 if test "$no_create" != yes; then
5413   ac_cs_success=:
5414   exec 5>/dev/null
5415   $SHELL $CONFIG_STATUS || ac_cs_success=false
5416   exec 5>>config.log
5417   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5418   # would make configure fail if this is the last instruction.
5419   $ac_cs_success || { (exit 1); exit 1; }
5420 fi