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