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