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