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