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