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