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