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