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