Added math.c for missing isnan isinf, INLINE must be defined empty
[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.53 for libfirm 0.3.0.
5 #
6 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
7 # Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10
11 if expr a : '\(a\)' >/dev/null 2>&1; then
12   as_expr=expr
13 else
14   as_expr=false
15 fi
16
17
18 ## --------------------- ##
19 ## M4sh Initialization.  ##
20 ## --------------------- ##
21
22 # Be Bourne compatible
23 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24   emulate sh
25   NULLCMD=:
26 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
27   set -o posix
28 fi
29
30 # NLS nuisances.
31 # Support unset when possible.
32 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
33   as_unset=unset
34 else
35   as_unset=false
36 fi
37
38 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
39     { $as_unset LANG || test "${LANG+set}" != set; } ||
40       { LANG=C; export LANG; }
41 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
42     { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
43       { LC_ALL=C; export LC_ALL; }
44 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
45     { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
46       { LC_TIME=C; export LC_TIME; }
47 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
48     { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
49       { LC_CTYPE=C; export LC_CTYPE; }
50 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
51     { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
52       { LANGUAGE=C; export LANGUAGE; }
53 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
54     { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
55       { LC_COLLATE=C; export LC_COLLATE; }
56 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
57     { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
58       { LC_NUMERIC=C; export LC_NUMERIC; }
59 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
60     { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
61       { LC_MESSAGES=C; export LC_MESSAGES; }
62
63
64 # Name of the executable.
65 as_me=`(basename "$0") 2>/dev/null ||
66 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
67          X"$0" : 'X\(//\)$' \| \
68          X"$0" : 'X\(/\)$' \| \
69          .     : '\(.\)' 2>/dev/null ||
70 echo X/"$0" |
71     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
72           /^X\/\(\/\/\)$/{ s//\1/; q; }
73           /^X\/\(\/\).*/{ s//\1/; q; }
74           s/.*/./; q'`
75
76 # PATH needs CR, and LINENO needs CR and PATH.
77 # Avoid depending upon Character Ranges.
78 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
79 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
80 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
81 as_cr_digits='0123456789'
82 as_cr_alnum=$as_cr_Letters$as_cr_digits
83
84 # The user is always right.
85 if test "${PATH_SEPARATOR+set}" != set; then
86   echo "#! /bin/sh" >conftest.sh
87   echo  "exit 0"   >>conftest.sh
88   chmod +x conftest.sh
89   if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
90     PATH_SEPARATOR=';'
91   else
92     PATH_SEPARATOR=:
93   fi
94   rm -f conftest.sh
95 fi
96
97
98   as_lineno_1=$LINENO
99   as_lineno_2=$LINENO
100   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
101   test "x$as_lineno_1" != "x$as_lineno_2" &&
102   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
103   # Find who we are.  Look in the path if we contain no path at all
104   # relative or not.
105   case $0 in
106     *[\\/]* ) as_myself=$0 ;;
107     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
108 for as_dir in $PATH
109 do
110   IFS=$as_save_IFS
111   test -z "$as_dir" && as_dir=.
112   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
113 done
114
115        ;;
116   esac
117   # We did not find ourselves, most probably we were run as `sh COMMAND'
118   # in which case we are not to be found in the path.
119   if test "x$as_myself" = x; then
120     as_myself=$0
121   fi
122   if test ! -f "$as_myself"; then
123     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
124    { (exit 1); exit 1; }; }
125   fi
126   case $CONFIG_SHELL in
127   '')
128     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
129 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
130 do
131   IFS=$as_save_IFS
132   test -z "$as_dir" && as_dir=.
133   for as_base in sh bash ksh sh5; do
134          case $as_dir in
135          /*)
136            if ("$as_dir/$as_base" -c '
137   as_lineno_1=$LINENO
138   as_lineno_2=$LINENO
139   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
140   test "x$as_lineno_1" != "x$as_lineno_2" &&
141   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
142              CONFIG_SHELL=$as_dir/$as_base
143              export CONFIG_SHELL
144              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
145            fi;;
146          esac
147        done
148 done
149 ;;
150   esac
151
152   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
153   # uniformly replaced by the line number.  The first 'sed' inserts a
154   # line-number line before each line; the second 'sed' does the real
155   # work.  The second script uses 'N' to pair each line-number line
156   # with the numbered line, and appends trailing '-' during
157   # substitution so that $LINENO is not a special case at line end.
158   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
159   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
160   sed '=' <$as_myself |
161     sed '
162       N
163       s,$,-,
164       : loop
165       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
166       t loop
167       s,-$,,
168       s,^['$as_cr_digits']*\n,,
169     ' >$as_me.lineno &&
170   chmod +x $as_me.lineno ||
171     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
172    { (exit 1); exit 1; }; }
173
174   # Don't try to exec as it changes $[0], causing all sort of problems
175   # (the dirname of $[0] is not the place where we might find the
176   # original and so on.  Autoconf is especially sensible to this).
177   . ./$as_me.lineno
178   # Exit status is that of the last command.
179   exit
180 }
181
182
183 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
184   *c*,-n*) ECHO_N= ECHO_C='
185 ' ECHO_T='      ' ;;
186   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
187   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
188 esac
189
190 if expr a : '\(a\)' >/dev/null 2>&1; then
191   as_expr=expr
192 else
193   as_expr=false
194 fi
195
196 rm -f conf$$ conf$$.exe conf$$.file
197 echo >conf$$.file
198 if ln -s conf$$.file conf$$ 2>/dev/null; then
199   # We could just check for DJGPP; but this test a) works b) is more generic
200   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
201   if test -f conf$$.exe; then
202     # Don't use ln at all; we don't have any links
203     as_ln_s='cp -p'
204   else
205     as_ln_s='ln -s'
206   fi
207 elif ln conf$$.file conf$$ 2>/dev/null; then
208   as_ln_s=ln
209 else
210   as_ln_s='cp -p'
211 fi
212 rm -f conf$$ conf$$.exe conf$$.file
213
214 as_executable_p="test -f"
215
216 # Sed expression to map a string onto a valid CPP name.
217 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
218
219 # Sed expression to map a string onto a valid variable name.
220 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
221
222
223 # IFS
224 # We need space, tab and new line, in precisely that order.
225 as_nl='
226 '
227 IFS="   $as_nl"
228
229 # CDPATH.
230 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
231
232
233 # Name of the host.
234 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
235 # so uname gets run too.
236 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
237
238 exec 6>&1
239
240 #
241 # Initializations.
242 #
243 ac_default_prefix=/usr/local
244 cross_compiling=no
245 subdirs=
246 MFLAGS=
247 MAKEFLAGS=
248 SHELL=${CONFIG_SHELL-/bin/sh}
249
250 # Maximum number of lines to put in a shell here document.
251 # This variable seems obsolete.  It should probably be removed, and
252 # only ac_max_sed_lines should be used.
253 : ${ac_max_here_lines=38}
254
255 # Identity of this package.
256 PACKAGE_NAME='libfirm'
257 PACKAGE_TARNAME='libfirm'
258 PACKAGE_VERSION='0.3.0'
259 PACKAGE_STRING='libfirm 0.3.0'
260 PACKAGE_BUGREPORT=''
261
262 # Factoring default headers for most tests.
263 ac_includes_default="\
264 #include <stdio.h>
265 #if HAVE_SYS_TYPES_H
266 # include <sys/types.h>
267 #endif
268 #if HAVE_SYS_STAT_H
269 # include <sys/stat.h>
270 #endif
271 #if STDC_HEADERS
272 # include <stdlib.h>
273 # include <stddef.h>
274 #else
275 # if HAVE_STDLIB_H
276 #  include <stdlib.h>
277 # endif
278 #endif
279 #if HAVE_STRING_H
280 # if !STDC_HEADERS && HAVE_MEMORY_H
281 #  include <memory.h>
282 # endif
283 # include <string.h>
284 #endif
285 #if HAVE_STRINGS_H
286 # include <strings.h>
287 #endif
288 #if HAVE_INTTYPES_H
289 # include <inttypes.h>
290 #else
291 # if HAVE_STDINT_H
292 #  include <stdint.h>
293 # endif
294 #endif
295 #if HAVE_UNISTD_H
296 # include <unistd.h>
297 #endif"
298
299
300 # Initialize some variables set by options.
301 ac_init_help=
302 ac_init_version=false
303 # The variables have the same names as the options, with
304 # dashes changed to underlines.
305 cache_file=/dev/null
306 exec_prefix=NONE
307 no_create=
308 no_recursion=
309 prefix=NONE
310 program_prefix=NONE
311 program_suffix=NONE
312 program_transform_name=s,x,x,
313 silent=
314 site=
315 srcdir=
316 verbose=
317 x_includes=NONE
318 x_libraries=NONE
319
320 # Installation directory options.
321 # These are left unexpanded so users can "make install exec_prefix=/foo"
322 # and all the variables that are supposed to be based on exec_prefix
323 # by default will actually change.
324 # Use braces instead of parens because sh, perl, etc. also accept them.
325 bindir='${exec_prefix}/bin'
326 sbindir='${exec_prefix}/sbin'
327 libexecdir='${exec_prefix}/libexec'
328 datadir='${prefix}/share'
329 sysconfdir='${prefix}/etc'
330 sharedstatedir='${prefix}/com'
331 localstatedir='${prefix}/var'
332 libdir='${exec_prefix}/lib'
333 includedir='${prefix}/include'
334 oldincludedir='/usr/include'
335 infodir='${prefix}/info'
336 mandir='${prefix}/man'
337
338 ac_prev=
339 for ac_option
340 do
341   # If the previous option needs an argument, assign it.
342   if test -n "$ac_prev"; then
343     eval "$ac_prev=\$ac_option"
344     ac_prev=
345     continue
346   fi
347
348   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
349
350   # Accept the important Cygnus configure options, so we can diagnose typos.
351
352   case $ac_option in
353
354   -bindir | --bindir | --bindi | --bind | --bin | --bi)
355     ac_prev=bindir ;;
356   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
357     bindir=$ac_optarg ;;
358
359   -build | --build | --buil | --bui | --bu)
360     ac_prev=build_alias ;;
361   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
362     build_alias=$ac_optarg ;;
363
364   -cache-file | --cache-file | --cache-fil | --cache-fi \
365   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
366     ac_prev=cache_file ;;
367   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
368   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
369     cache_file=$ac_optarg ;;
370
371   --config-cache | -C)
372     cache_file=config.cache ;;
373
374   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
375     ac_prev=datadir ;;
376   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
377   | --da=*)
378     datadir=$ac_optarg ;;
379
380   -disable-* | --disable-*)
381     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
382     # Reject names that are not valid shell variable names.
383     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
384       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
385    { (exit 1); exit 1; }; }
386     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
387     eval "enable_$ac_feature=no" ;;
388
389   -enable-* | --enable-*)
390     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
391     # Reject names that are not valid shell variable names.
392     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
393       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
394    { (exit 1); exit 1; }; }
395     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
396     case $ac_option in
397       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
398       *) ac_optarg=yes ;;
399     esac
400     eval "enable_$ac_feature='$ac_optarg'" ;;
401
402   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
403   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
404   | --exec | --exe | --ex)
405     ac_prev=exec_prefix ;;
406   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
407   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
408   | --exec=* | --exe=* | --ex=*)
409     exec_prefix=$ac_optarg ;;
410
411   -gas | --gas | --ga | --g)
412     # Obsolete; use --with-gas.
413     with_gas=yes ;;
414
415   -help | --help | --hel | --he | -h)
416     ac_init_help=long ;;
417   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
418     ac_init_help=recursive ;;
419   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
420     ac_init_help=short ;;
421
422   -host | --host | --hos | --ho)
423     ac_prev=host_alias ;;
424   -host=* | --host=* | --hos=* | --ho=*)
425     host_alias=$ac_optarg ;;
426
427   -includedir | --includedir | --includedi | --included | --include \
428   | --includ | --inclu | --incl | --inc)
429     ac_prev=includedir ;;
430   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
431   | --includ=* | --inclu=* | --incl=* | --inc=*)
432     includedir=$ac_optarg ;;
433
434   -infodir | --infodir | --infodi | --infod | --info | --inf)
435     ac_prev=infodir ;;
436   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
437     infodir=$ac_optarg ;;
438
439   -libdir | --libdir | --libdi | --libd)
440     ac_prev=libdir ;;
441   -libdir=* | --libdir=* | --libdi=* | --libd=*)
442     libdir=$ac_optarg ;;
443
444   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
445   | --libexe | --libex | --libe)
446     ac_prev=libexecdir ;;
447   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
448   | --libexe=* | --libex=* | --libe=*)
449     libexecdir=$ac_optarg ;;
450
451   -localstatedir | --localstatedir | --localstatedi | --localstated \
452   | --localstate | --localstat | --localsta | --localst \
453   | --locals | --local | --loca | --loc | --lo)
454     ac_prev=localstatedir ;;
455   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
456   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
457   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
458     localstatedir=$ac_optarg ;;
459
460   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
461     ac_prev=mandir ;;
462   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
463     mandir=$ac_optarg ;;
464
465   -nfp | --nfp | --nf)
466     # Obsolete; use --without-fp.
467     with_fp=no ;;
468
469   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
470   | --no-cr | --no-c | -n)
471     no_create=yes ;;
472
473   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
474   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
475     no_recursion=yes ;;
476
477   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
478   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
479   | --oldin | --oldi | --old | --ol | --o)
480     ac_prev=oldincludedir ;;
481   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
482   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
483   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
484     oldincludedir=$ac_optarg ;;
485
486   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
487     ac_prev=prefix ;;
488   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
489     prefix=$ac_optarg ;;
490
491   -program-prefix | --program-prefix | --program-prefi | --program-pref \
492   | --program-pre | --program-pr | --program-p)
493     ac_prev=program_prefix ;;
494   -program-prefix=* | --program-prefix=* | --program-prefi=* \
495   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
496     program_prefix=$ac_optarg ;;
497
498   -program-suffix | --program-suffix | --program-suffi | --program-suff \
499   | --program-suf | --program-su | --program-s)
500     ac_prev=program_suffix ;;
501   -program-suffix=* | --program-suffix=* | --program-suffi=* \
502   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
503     program_suffix=$ac_optarg ;;
504
505   -program-transform-name | --program-transform-name \
506   | --program-transform-nam | --program-transform-na \
507   | --program-transform-n | --program-transform- \
508   | --program-transform | --program-transfor \
509   | --program-transfo | --program-transf \
510   | --program-trans | --program-tran \
511   | --progr-tra | --program-tr | --program-t)
512     ac_prev=program_transform_name ;;
513   -program-transform-name=* | --program-transform-name=* \
514   | --program-transform-nam=* | --program-transform-na=* \
515   | --program-transform-n=* | --program-transform-=* \
516   | --program-transform=* | --program-transfor=* \
517   | --program-transfo=* | --program-transf=* \
518   | --program-trans=* | --program-tran=* \
519   | --progr-tra=* | --program-tr=* | --program-t=*)
520     program_transform_name=$ac_optarg ;;
521
522   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
523   | -silent | --silent | --silen | --sile | --sil)
524     silent=yes ;;
525
526   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
527     ac_prev=sbindir ;;
528   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
529   | --sbi=* | --sb=*)
530     sbindir=$ac_optarg ;;
531
532   -sharedstatedir | --sharedstatedir | --sharedstatedi \
533   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
534   | --sharedst | --shareds | --shared | --share | --shar \
535   | --sha | --sh)
536     ac_prev=sharedstatedir ;;
537   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
538   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
539   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
540   | --sha=* | --sh=*)
541     sharedstatedir=$ac_optarg ;;
542
543   -site | --site | --sit)
544     ac_prev=site ;;
545   -site=* | --site=* | --sit=*)
546     site=$ac_optarg ;;
547
548   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
549     ac_prev=srcdir ;;
550   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
551     srcdir=$ac_optarg ;;
552
553   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
554   | --syscon | --sysco | --sysc | --sys | --sy)
555     ac_prev=sysconfdir ;;
556   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
557   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
558     sysconfdir=$ac_optarg ;;
559
560   -target | --target | --targe | --targ | --tar | --ta | --t)
561     ac_prev=target_alias ;;
562   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
563     target_alias=$ac_optarg ;;
564
565   -v | -verbose | --verbose | --verbos | --verbo | --verb)
566     verbose=yes ;;
567
568   -version | --version | --versio | --versi | --vers | -V)
569     ac_init_version=: ;;
570
571   -with-* | --with-*)
572     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
573     # Reject names that are not valid shell variable names.
574     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
575       { echo "$as_me: error: invalid package name: $ac_package" >&2
576    { (exit 1); exit 1; }; }
577     ac_package=`echo $ac_package| sed 's/-/_/g'`
578     case $ac_option in
579       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
580       *) ac_optarg=yes ;;
581     esac
582     eval "with_$ac_package='$ac_optarg'" ;;
583
584   -without-* | --without-*)
585     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
586     # Reject names that are not valid shell variable names.
587     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
588       { echo "$as_me: error: invalid package name: $ac_package" >&2
589    { (exit 1); exit 1; }; }
590     ac_package=`echo $ac_package | sed 's/-/_/g'`
591     eval "with_$ac_package=no" ;;
592
593   --x)
594     # Obsolete; use --with-x.
595     with_x=yes ;;
596
597   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
598   | --x-incl | --x-inc | --x-in | --x-i)
599     ac_prev=x_includes ;;
600   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
601   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
602     x_includes=$ac_optarg ;;
603
604   -x-libraries | --x-libraries | --x-librarie | --x-librari \
605   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
606     ac_prev=x_libraries ;;
607   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
608   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
609     x_libraries=$ac_optarg ;;
610
611   -*) { echo "$as_me: error: unrecognized option: $ac_option
612 Try \`$0 --help' for more information." >&2
613    { (exit 1); exit 1; }; }
614     ;;
615
616   *=*)
617     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
618     # Reject names that are not valid shell variable names.
619     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
620       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
621    { (exit 1); exit 1; }; }
622     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
623     eval "$ac_envvar='$ac_optarg'"
624     export $ac_envvar ;;
625
626   *)
627     # FIXME: should be removed in autoconf 3.0.
628     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
629     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
630       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
631     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
632     ;;
633
634   esac
635 done
636
637 if test -n "$ac_prev"; then
638   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
639   { echo "$as_me: error: missing argument to $ac_option" >&2
640    { (exit 1); exit 1; }; }
641 fi
642
643 # Be sure to have absolute paths.
644 for ac_var in exec_prefix prefix
645 do
646   eval ac_val=$`echo $ac_var`
647   case $ac_val in
648     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
649     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
650    { (exit 1); exit 1; }; };;
651   esac
652 done
653
654 # Be sure to have absolute paths.
655 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
656               localstatedir libdir includedir oldincludedir infodir mandir
657 do
658   eval ac_val=$`echo $ac_var`
659   case $ac_val in
660     [\\/$]* | ?:[\\/]* ) ;;
661     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
662    { (exit 1); exit 1; }; };;
663   esac
664 done
665
666 # There might be people who depend on the old broken behavior: `$host'
667 # used to hold the argument of --host etc.
668 # FIXME: To remove some day.
669 build=$build_alias
670 host=$host_alias
671 target=$target_alias
672
673 # FIXME: To remove some day.
674 if test "x$host_alias" != x; then
675   if test "x$build_alias" = x; then
676     cross_compiling=maybe
677     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
678     If a cross compiler is detected then cross compile mode will be used." >&2
679   elif test "x$build_alias" != "x$host_alias"; then
680     cross_compiling=yes
681   fi
682 fi
683
684 ac_tool_prefix=
685 test -n "$host_alias" && ac_tool_prefix=$host_alias-
686
687 test "$silent" = yes && exec 6>/dev/null
688
689
690 # Find the source files, if location was not specified.
691 if test -z "$srcdir"; then
692   ac_srcdir_defaulted=yes
693   # Try the directory containing this script, then its parent.
694   ac_confdir=`(dirname "$0") 2>/dev/null ||
695 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
696          X"$0" : 'X\(//\)[^/]' \| \
697          X"$0" : 'X\(//\)$' \| \
698          X"$0" : 'X\(/\)' \| \
699          .     : '\(.\)' 2>/dev/null ||
700 echo X"$0" |
701     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
702           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
703           /^X\(\/\/\)$/{ s//\1/; q; }
704           /^X\(\/\).*/{ s//\1/; q; }
705           s/.*/./; q'`
706   srcdir=$ac_confdir
707   if test ! -r $srcdir/$ac_unique_file; then
708     srcdir=..
709   fi
710 else
711   ac_srcdir_defaulted=no
712 fi
713 if test ! -r $srcdir/$ac_unique_file; then
714   if test "$ac_srcdir_defaulted" = yes; then
715     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
716    { (exit 1); exit 1; }; }
717   else
718     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
719    { (exit 1); exit 1; }; }
720   fi
721 fi
722 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
723 ac_env_build_alias_set=${build_alias+set}
724 ac_env_build_alias_value=$build_alias
725 ac_cv_env_build_alias_set=${build_alias+set}
726 ac_cv_env_build_alias_value=$build_alias
727 ac_env_host_alias_set=${host_alias+set}
728 ac_env_host_alias_value=$host_alias
729 ac_cv_env_host_alias_set=${host_alias+set}
730 ac_cv_env_host_alias_value=$host_alias
731 ac_env_target_alias_set=${target_alias+set}
732 ac_env_target_alias_value=$target_alias
733 ac_cv_env_target_alias_set=${target_alias+set}
734 ac_cv_env_target_alias_value=$target_alias
735 ac_env_CC_set=${CC+set}
736 ac_env_CC_value=$CC
737 ac_cv_env_CC_set=${CC+set}
738 ac_cv_env_CC_value=$CC
739 ac_env_CFLAGS_set=${CFLAGS+set}
740 ac_env_CFLAGS_value=$CFLAGS
741 ac_cv_env_CFLAGS_set=${CFLAGS+set}
742 ac_cv_env_CFLAGS_value=$CFLAGS
743 ac_env_LDFLAGS_set=${LDFLAGS+set}
744 ac_env_LDFLAGS_value=$LDFLAGS
745 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
746 ac_cv_env_LDFLAGS_value=$LDFLAGS
747 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
748 ac_env_CPPFLAGS_value=$CPPFLAGS
749 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
750 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
751 ac_env_CPP_set=${CPP+set}
752 ac_env_CPP_value=$CPP
753 ac_cv_env_CPP_set=${CPP+set}
754 ac_cv_env_CPP_value=$CPP
755
756 #
757 # Report the --help message.
758 #
759 if test "$ac_init_help" = "long"; then
760   # Omit some internal or obsolete options to make the list less imposing.
761   # This message is too long to be a string in the A/UX 3.1 sh.
762   cat <<_ACEOF
763 \`configure' configures libfirm 0.3.0 to adapt to many kinds of systems.
764
765 Usage: $0 [OPTION]... [VAR=VALUE]...
766
767 To assign environment variables (e.g., CC, CFLAGS...), specify them as
768 VAR=VALUE.  See below for descriptions of some of the useful variables.
769
770 Defaults for the options are specified in brackets.
771
772 Configuration:
773   -h, --help              display this help and exit
774       --help=short        display options specific to this package
775       --help=recursive    display the short help of all the included packages
776   -V, --version           display version information and exit
777   -q, --quiet, --silent   do not print \`checking...' messages
778       --cache-file=FILE   cache test results in FILE [disabled]
779   -C, --config-cache      alias for \`--cache-file=config.cache'
780   -n, --no-create         do not create output files
781       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
782
783 _ACEOF
784
785   cat <<_ACEOF
786 Installation directories:
787   --prefix=PREFIX         install architecture-independent files in PREFIX
788                           [$ac_default_prefix]
789   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
790                           [PREFIX]
791
792 By default, \`make install' will install all the files in
793 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
794 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
795 for instance \`--prefix=\$HOME'.
796
797 For better control, use the options below.
798
799 Fine tuning of the installation directories:
800   --bindir=DIR           user executables [EPREFIX/bin]
801   --sbindir=DIR          system admin executables [EPREFIX/sbin]
802   --libexecdir=DIR       program executables [EPREFIX/libexec]
803   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
804   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
805   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
806   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
807   --libdir=DIR           object code libraries [EPREFIX/lib]
808   --includedir=DIR       C header files [PREFIX/include]
809   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
810   --infodir=DIR          info documentation [PREFIX/info]
811   --mandir=DIR           man documentation [PREFIX/man]
812 _ACEOF
813
814   cat <<\_ACEOF
815 _ACEOF
816 fi
817
818 if test -n "$ac_init_help"; then
819   case $ac_init_help in
820      short | recursive ) echo "Configuration of libfirm 0.3.0:";;
821    esac
822   cat <<\_ACEOF
823
824 Optional Features:
825   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
826   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
827   --enable-debug          enable assertions and additional debugging routines
828   --enable-gcc_inline     enable gcc inline C-extension
829   --enable-profile        enable profiling
830   --enable-autodoc        enable auto documentation
831   --enable-firmjni        check for tools necesarry to construct a java native interface for Firm
832   --disable-libiberty        disable own libiberty parts
833
834 Optional Packages:
835   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
836   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
837   --with-includedir=add colon seperated list of directories to include search path
838   --with-libdir=add colon seperated list of directories to linker search path
839
840 Some influential environment variables:
841   CC          C compiler command
842   CFLAGS      C compiler flags
843   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
844               nonstandard directory <lib dir>
845   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
846               headers in a nonstandard directory <include dir>
847   CPP         C preprocessor
848
849 Use these variables to override the choices made by `configure' or to help
850 it to find libraries and programs with nonstandard names/locations.
851
852 _ACEOF
853 fi
854
855 if test "$ac_init_help" = "recursive"; then
856   # If there are subdirs, report their specific --help.
857   ac_popdir=`pwd`
858   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
859     test -d $ac_dir || continue
860     ac_builddir=.
861
862 if test "$ac_dir" != .; then
863   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
864   # A "../" for each directory in $ac_dir_suffix.
865   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
866 else
867   ac_dir_suffix= ac_top_builddir=
868 fi
869
870 case $srcdir in
871   .)  # No --srcdir option.  We are building in place.
872     ac_srcdir=.
873     if test -z "$ac_top_builddir"; then
874        ac_top_srcdir=.
875     else
876        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
877     fi ;;
878   [\\/]* | ?:[\\/]* )  # Absolute path.
879     ac_srcdir=$srcdir$ac_dir_suffix;
880     ac_top_srcdir=$srcdir ;;
881   *) # Relative path.
882     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
883     ac_top_srcdir=$ac_top_builddir$srcdir ;;
884 esac
885 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
886 # absolute.
887 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
888 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
889 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
890 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
891
892     cd $ac_dir
893     # Check for guested configure; otherwise get Cygnus style configure.
894     if test -f $ac_srcdir/configure.gnu; then
895       echo
896       $SHELL $ac_srcdir/configure.gnu  --help=recursive
897     elif test -f $ac_srcdir/configure; then
898       echo
899       $SHELL $ac_srcdir/configure  --help=recursive
900     elif test -f $ac_srcdir/configure.ac ||
901            test -f $ac_srcdir/configure.in; then
902       echo
903       $ac_configure --help
904     else
905       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
906     fi
907     cd $ac_popdir
908   done
909 fi
910
911 test -n "$ac_init_help" && exit 0
912 if $ac_init_version; then
913   cat <<\_ACEOF
914 libfirm configure 0.3.0
915 generated by GNU Autoconf 2.53
916
917 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
918 Free Software Foundation, Inc.
919 This configure script is free software; the Free Software Foundation
920 gives unlimited permission to copy, distribute and modify it.
921 _ACEOF
922   exit 0
923 fi
924 exec 5>config.log
925 cat >&5 <<_ACEOF
926 This file contains any messages produced by compilers while
927 running configure, to aid debugging if configure makes a mistake.
928
929 It was created by libfirm $as_me 0.3.0, which was
930 generated by GNU Autoconf 2.53.  Invocation command line was
931
932   $ $0 $@
933
934 _ACEOF
935 {
936 cat <<_ASUNAME
937 ## --------- ##
938 ## Platform. ##
939 ## --------- ##
940
941 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
942 uname -m = `(uname -m) 2>/dev/null || echo unknown`
943 uname -r = `(uname -r) 2>/dev/null || echo unknown`
944 uname -s = `(uname -s) 2>/dev/null || echo unknown`
945 uname -v = `(uname -v) 2>/dev/null || echo unknown`
946
947 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
948 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
949
950 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
951 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
952 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
953 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
954 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
955 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
956 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
957
958 _ASUNAME
959
960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
961 for as_dir in $PATH
962 do
963   IFS=$as_save_IFS
964   test -z "$as_dir" && as_dir=.
965   echo "PATH: $as_dir"
966 done
967
968 } >&5
969
970 cat >&5 <<_ACEOF
971
972
973 ## ----------- ##
974 ## Core tests. ##
975 ## ----------- ##
976
977 _ACEOF
978
979
980 # Keep a trace of the command line.
981 # Strip out --no-create and --no-recursion so they do not pile up.
982 # Also quote any args containing shell meta-characters.
983 ac_configure_args=
984 ac_sep=
985 for ac_arg
986 do
987   case $ac_arg in
988   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
989   | --no-cr | --no-c | -n ) continue ;;
990   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
991   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
992     continue ;;
993   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
994     ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
995   esac
996   case " $ac_configure_args " in
997     *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
998     *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
999        ac_sep=" " ;;
1000   esac
1001   # Get rid of the leading space.
1002 done
1003
1004 # When interrupted or exit'd, cleanup temporary files, and complete
1005 # config.log.  We remove comments because anyway the quotes in there
1006 # would cause problems or look ugly.
1007 # WARNING: Be sure not to use single quotes in there, as some shells,
1008 # such as our DU 5.0 friend, will then `close' the trap.
1009 trap 'exit_status=$?
1010   # Save into config.log some information that might help in debugging.
1011   {
1012     echo
1013     cat <<\_ASBOX
1014 ## ---------------- ##
1015 ## Cache variables. ##
1016 ## ---------------- ##
1017 _ASBOX
1018     echo
1019     # The following way of writing the cache mishandles newlines in values,
1020 {
1021   (set) 2>&1 |
1022     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1023     *ac_space=\ *)
1024       sed -n \
1025         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1026           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1027       ;;
1028     *)
1029       sed -n \
1030         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1031       ;;
1032     esac;
1033 }
1034     echo
1035     if test -s confdefs.h; then
1036       cat <<\_ASBOX
1037 ## ----------- ##
1038 ## confdefs.h. ##
1039 ## ----------- ##
1040 _ASBOX
1041       echo
1042       sed "/^$/d" confdefs.h
1043       echo
1044     fi
1045     test "$ac_signal" != 0 &&
1046       echo "$as_me: caught signal $ac_signal"
1047     echo "$as_me: exit $exit_status"
1048   } >&5
1049   rm -f core core.* *.core &&
1050   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1051     exit $exit_status
1052      ' 0
1053 for ac_signal in 1 2 13 15; do
1054   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1055 done
1056 ac_signal=0
1057
1058 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1059 rm -rf conftest* confdefs.h
1060 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1061 echo >confdefs.h
1062
1063 # Predefined preprocessor variables.
1064
1065 cat >>confdefs.h <<_ACEOF
1066 #define PACKAGE_NAME "$PACKAGE_NAME"
1067 _ACEOF
1068
1069
1070 cat >>confdefs.h <<_ACEOF
1071 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1072 _ACEOF
1073
1074
1075 cat >>confdefs.h <<_ACEOF
1076 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1077 _ACEOF
1078
1079
1080 cat >>confdefs.h <<_ACEOF
1081 #define PACKAGE_STRING "$PACKAGE_STRING"
1082 _ACEOF
1083
1084
1085 cat >>confdefs.h <<_ACEOF
1086 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1087 _ACEOF
1088
1089
1090 # Let the site file select an alternate cache file if it wants to.
1091 # Prefer explicitly selected file to automatically selected ones.
1092 if test -z "$CONFIG_SITE"; then
1093   if test "x$prefix" != xNONE; then
1094     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1095   else
1096     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1097   fi
1098 fi
1099 for ac_site_file in $CONFIG_SITE; do
1100   if test -r "$ac_site_file"; then
1101     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1102 echo "$as_me: loading site script $ac_site_file" >&6;}
1103     sed 's/^/| /' "$ac_site_file" >&5
1104     . "$ac_site_file"
1105   fi
1106 done
1107
1108 if test -r "$cache_file"; then
1109   # Some versions of bash will fail to source /dev/null (special
1110   # files actually), so we avoid doing that.
1111   if test -f "$cache_file"; then
1112     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1113 echo "$as_me: loading cache $cache_file" >&6;}
1114     case $cache_file in
1115       [\\/]* | ?:[\\/]* ) . $cache_file;;
1116       *)                      . ./$cache_file;;
1117     esac
1118   fi
1119 else
1120   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1121 echo "$as_me: creating cache $cache_file" >&6;}
1122   >$cache_file
1123 fi
1124
1125 # Check that the precious variables saved in the cache have kept the same
1126 # value.
1127 ac_cache_corrupted=false
1128 for ac_var in `(set) 2>&1 |
1129                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1130   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1131   eval ac_new_set=\$ac_env_${ac_var}_set
1132   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1133   eval ac_new_val="\$ac_env_${ac_var}_value"
1134   case $ac_old_set,$ac_new_set in
1135     set,)
1136       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1137 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1138       ac_cache_corrupted=: ;;
1139     ,set)
1140       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1141 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1142       ac_cache_corrupted=: ;;
1143     ,);;
1144     *)
1145       if test "x$ac_old_val" != "x$ac_new_val"; then
1146         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1147 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1148         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1149 echo "$as_me:   former value:  $ac_old_val" >&2;}
1150         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1151 echo "$as_me:   current value: $ac_new_val" >&2;}
1152         ac_cache_corrupted=:
1153       fi;;
1154   esac
1155   # Pass precious variables to config.status.
1156   if test "$ac_new_set" = set; then
1157     case $ac_new_val in
1158     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1159       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1160     *) ac_arg=$ac_var=$ac_new_val ;;
1161     esac
1162     case " $ac_configure_args " in
1163       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1164       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1165     esac
1166   fi
1167 done
1168 if $ac_cache_corrupted; then
1169   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1170 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1171   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1172 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1173    { (exit 1); exit 1; }; }
1174 fi
1175
1176 ac_ext=c
1177 ac_cpp='$CPP $CPPFLAGS'
1178 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1179 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1180 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208 ac_output_file="Makefile MakeRules ir/Makefile ir/adt/Makefile ir/debug/Makefile \
1209                 ir/tv/Makefile ir/common/Makefile ir/ident/Makefile ir/ir/Makefile \
1210                 ir/ana/Makefile ir/tr/Makefile ir/st/Makefile testprograms/Makefile \
1211                 firmjni/Makefile firmjni/testprograms/Makefile libfirm.doxygen"
1212
1213 ac_config_headers="$ac_config_headers config.h"
1214
1215
1216 libfirm_conf_env="${CC+CC='$CC'} ${CFLAGS+CFLAGS='$CFLAGS'} ${CPP+CPP='$CPP'} ${CPPFLAGS+CPPFLAGS='$CPPFLAGS'} ${LDFLAGS+LDFLAGS='$LDFLAGS'} ${LIBS+LIBS='$LIBS'}"
1217
1218
1219
1220 # Check whether --with-includedir or --without-includedir was given.
1221 if test "${with_includedir+set}" = set; then
1222   withval="$with_includedir"
1223   CPPFLAGS=$CPPFLAGS" -I"`echo $withval|sed 's;\:; -I;g'`
1224 else
1225   T_FLAG=""
1226 fi;
1227
1228
1229 # Check whether --with-libdir or --without-libdir was given.
1230 if test "${with_libdir+set}" = set; then
1231   withval="$with_libdir"
1232   LDFLAGS=$LDFLAGS" -L"`echo $withval|sed 's;\:; -L;g'`
1233 else
1234   T_FLAG=""
1235 fi;
1236
1237
1238
1239 # Check whether --enable-debug or --disable-debug was given.
1240 if test "${enable_debug+set}" = set; then
1241   enableval="$enable_debug"
1242   if test "$enableval" = yes; then
1243   cat >>confdefs.h <<\_ACEOF
1244 #define DEBUG_libfirm 1
1245 _ACEOF
1246
1247 else
1248   cat >>confdefs.h <<\_ACEOF
1249 #define NDEBUG 1
1250 _ACEOF
1251
1252 fi
1253 fi;
1254
1255
1256 # Check whether --enable-gcc_inline or --disable-gcc_inline was given.
1257 if test "${enable_gcc_inline+set}" = set; then
1258   enableval="$enable_gcc_inline"
1259   if test "$enableval" = yes; then
1260   cat >>confdefs.h <<\_ACEOF
1261 #define USE_GCC_INLINE 1
1262 _ACEOF
1263
1264 fi
1265 fi;
1266
1267
1268
1269 # Check whether --enable-profile or --disable-profile was given.
1270 if test "${enable_profile+set}" = set; then
1271   enableval="$enable_profile"
1272   if test "$enableval"=yes; then
1273   enable_profile_libfirm=yes
1274 fi
1275 else
1276   enable_profile_libfirm=no
1277 fi;
1278
1279
1280 # Check whether --enable-autodoc or --disable-autodoc was given.
1281 if test "${enable_autodoc+set}" = set; then
1282   enableval="$enable_autodoc"
1283   if test "$enableval"=yes; then
1284   enable_auto_documentation=yes
1285 fi
1286 else
1287   enable_auto_documentation=no
1288 fi;
1289
1290
1291
1292 # Check whether --enable-firmjni or --disable-firmjni was given.
1293 if test "${enable_firmjni+set}" = set; then
1294   enableval="$enable_firmjni"
1295   if test "$enableval"=yes; then
1296   enable_firm_jni=yes
1297 fi
1298 else
1299   enable_firm_jni=no
1300 fi;
1301
1302
1303 # Check whether --enable-libiberty or --disable-libiberty was given.
1304 if test "${enable_libiberty+set}" = set; then
1305   enableval="$enable_libiberty"
1306   if test "$enableval"=yes; then
1307   disable_libiberty_=yes
1308 fi
1309 else
1310   disable_libiberty=no
1311 fi;
1312
1313
1314
1315
1316 ac_ext=c
1317 ac_cpp='$CPP $CPPFLAGS'
1318 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1319 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1320 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1321 if test -n "$ac_tool_prefix"; then
1322   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1323 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1324 echo "$as_me:$LINENO: checking for $ac_word" >&5
1325 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1326 if test "${ac_cv_prog_CC+set}" = set; then
1327   echo $ECHO_N "(cached) $ECHO_C" >&6
1328 else
1329   if test -n "$CC"; then
1330   ac_cv_prog_CC="$CC" # Let the user override the test.
1331 else
1332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1333 for as_dir in $PATH
1334 do
1335   IFS=$as_save_IFS
1336   test -z "$as_dir" && as_dir=.
1337   for ac_exec_ext in '' $ac_executable_extensions; do
1338   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1339     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1340     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1341     break 2
1342   fi
1343 done
1344 done
1345
1346 fi
1347 fi
1348 CC=$ac_cv_prog_CC
1349 if test -n "$CC"; then
1350   echo "$as_me:$LINENO: result: $CC" >&5
1351 echo "${ECHO_T}$CC" >&6
1352 else
1353   echo "$as_me:$LINENO: result: no" >&5
1354 echo "${ECHO_T}no" >&6
1355 fi
1356
1357 fi
1358 if test -z "$ac_cv_prog_CC"; then
1359   ac_ct_CC=$CC
1360   # Extract the first word of "gcc", so it can be a program name with args.
1361 set dummy gcc; ac_word=$2
1362 echo "$as_me:$LINENO: checking for $ac_word" >&5
1363 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1364 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1365   echo $ECHO_N "(cached) $ECHO_C" >&6
1366 else
1367   if test -n "$ac_ct_CC"; then
1368   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1369 else
1370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1371 for as_dir in $PATH
1372 do
1373   IFS=$as_save_IFS
1374   test -z "$as_dir" && as_dir=.
1375   for ac_exec_ext in '' $ac_executable_extensions; do
1376   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1377     ac_cv_prog_ac_ct_CC="gcc"
1378     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1379     break 2
1380   fi
1381 done
1382 done
1383
1384 fi
1385 fi
1386 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1387 if test -n "$ac_ct_CC"; then
1388   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1389 echo "${ECHO_T}$ac_ct_CC" >&6
1390 else
1391   echo "$as_me:$LINENO: result: no" >&5
1392 echo "${ECHO_T}no" >&6
1393 fi
1394
1395   CC=$ac_ct_CC
1396 else
1397   CC="$ac_cv_prog_CC"
1398 fi
1399
1400 if test -z "$CC"; then
1401   if test -n "$ac_tool_prefix"; then
1402   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1403 set dummy ${ac_tool_prefix}cc; ac_word=$2
1404 echo "$as_me:$LINENO: checking for $ac_word" >&5
1405 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1406 if test "${ac_cv_prog_CC+set}" = set; then
1407   echo $ECHO_N "(cached) $ECHO_C" >&6
1408 else
1409   if test -n "$CC"; then
1410   ac_cv_prog_CC="$CC" # Let the user override the test.
1411 else
1412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1413 for as_dir in $PATH
1414 do
1415   IFS=$as_save_IFS
1416   test -z "$as_dir" && as_dir=.
1417   for ac_exec_ext in '' $ac_executable_extensions; do
1418   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1419     ac_cv_prog_CC="${ac_tool_prefix}cc"
1420     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1421     break 2
1422   fi
1423 done
1424 done
1425
1426 fi
1427 fi
1428 CC=$ac_cv_prog_CC
1429 if test -n "$CC"; then
1430   echo "$as_me:$LINENO: result: $CC" >&5
1431 echo "${ECHO_T}$CC" >&6
1432 else
1433   echo "$as_me:$LINENO: result: no" >&5
1434 echo "${ECHO_T}no" >&6
1435 fi
1436
1437 fi
1438 if test -z "$ac_cv_prog_CC"; then
1439   ac_ct_CC=$CC
1440   # Extract the first word of "cc", so it can be a program name with args.
1441 set dummy cc; ac_word=$2
1442 echo "$as_me:$LINENO: checking for $ac_word" >&5
1443 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1444 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1445   echo $ECHO_N "(cached) $ECHO_C" >&6
1446 else
1447   if test -n "$ac_ct_CC"; then
1448   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1449 else
1450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1451 for as_dir in $PATH
1452 do
1453   IFS=$as_save_IFS
1454   test -z "$as_dir" && as_dir=.
1455   for ac_exec_ext in '' $ac_executable_extensions; do
1456   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1457     ac_cv_prog_ac_ct_CC="cc"
1458     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1459     break 2
1460   fi
1461 done
1462 done
1463
1464 fi
1465 fi
1466 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1467 if test -n "$ac_ct_CC"; then
1468   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1469 echo "${ECHO_T}$ac_ct_CC" >&6
1470 else
1471   echo "$as_me:$LINENO: result: no" >&5
1472 echo "${ECHO_T}no" >&6
1473 fi
1474
1475   CC=$ac_ct_CC
1476 else
1477   CC="$ac_cv_prog_CC"
1478 fi
1479
1480 fi
1481 if test -z "$CC"; then
1482   # Extract the first word of "cc", so it can be a program name with args.
1483 set dummy cc; ac_word=$2
1484 echo "$as_me:$LINENO: checking for $ac_word" >&5
1485 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1486 if test "${ac_cv_prog_CC+set}" = set; then
1487   echo $ECHO_N "(cached) $ECHO_C" >&6
1488 else
1489   if test -n "$CC"; then
1490   ac_cv_prog_CC="$CC" # Let the user override the test.
1491 else
1492   ac_prog_rejected=no
1493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1494 for as_dir in $PATH
1495 do
1496   IFS=$as_save_IFS
1497   test -z "$as_dir" && as_dir=.
1498   for ac_exec_ext in '' $ac_executable_extensions; do
1499   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1500     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1501        ac_prog_rejected=yes
1502        continue
1503      fi
1504     ac_cv_prog_CC="cc"
1505     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1506     break 2
1507   fi
1508 done
1509 done
1510
1511 if test $ac_prog_rejected = yes; then
1512   # We found a bogon in the path, so make sure we never use it.
1513   set dummy $ac_cv_prog_CC
1514   shift
1515   if test $# != 0; then
1516     # We chose a different compiler from the bogus one.
1517     # However, it has the same basename, so the bogon will be chosen
1518     # first if we set CC to just the basename; use the full file name.
1519     shift
1520     set dummy "$as_dir/$ac_word" ${1+"$@"}
1521     shift
1522     ac_cv_prog_CC="$@"
1523   fi
1524 fi
1525 fi
1526 fi
1527 CC=$ac_cv_prog_CC
1528 if test -n "$CC"; then
1529   echo "$as_me:$LINENO: result: $CC" >&5
1530 echo "${ECHO_T}$CC" >&6
1531 else
1532   echo "$as_me:$LINENO: result: no" >&5
1533 echo "${ECHO_T}no" >&6
1534 fi
1535
1536 fi
1537 if test -z "$CC"; then
1538   if test -n "$ac_tool_prefix"; then
1539   for ac_prog in cl
1540   do
1541     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1542 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1543 echo "$as_me:$LINENO: checking for $ac_word" >&5
1544 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1545 if test "${ac_cv_prog_CC+set}" = set; then
1546   echo $ECHO_N "(cached) $ECHO_C" >&6
1547 else
1548   if test -n "$CC"; then
1549   ac_cv_prog_CC="$CC" # Let the user override the test.
1550 else
1551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1552 for as_dir in $PATH
1553 do
1554   IFS=$as_save_IFS
1555   test -z "$as_dir" && as_dir=.
1556   for ac_exec_ext in '' $ac_executable_extensions; do
1557   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1558     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1559     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1560     break 2
1561   fi
1562 done
1563 done
1564
1565 fi
1566 fi
1567 CC=$ac_cv_prog_CC
1568 if test -n "$CC"; then
1569   echo "$as_me:$LINENO: result: $CC" >&5
1570 echo "${ECHO_T}$CC" >&6
1571 else
1572   echo "$as_me:$LINENO: result: no" >&5
1573 echo "${ECHO_T}no" >&6
1574 fi
1575
1576     test -n "$CC" && break
1577   done
1578 fi
1579 if test -z "$CC"; then
1580   ac_ct_CC=$CC
1581   for ac_prog in cl
1582 do
1583   # Extract the first word of "$ac_prog", so it can be a program name with args.
1584 set dummy $ac_prog; ac_word=$2
1585 echo "$as_me:$LINENO: checking for $ac_word" >&5
1586 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1587 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1588   echo $ECHO_N "(cached) $ECHO_C" >&6
1589 else
1590   if test -n "$ac_ct_CC"; then
1591   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1592 else
1593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1594 for as_dir in $PATH
1595 do
1596   IFS=$as_save_IFS
1597   test -z "$as_dir" && as_dir=.
1598   for ac_exec_ext in '' $ac_executable_extensions; do
1599   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1600     ac_cv_prog_ac_ct_CC="$ac_prog"
1601     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1602     break 2
1603   fi
1604 done
1605 done
1606
1607 fi
1608 fi
1609 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1610 if test -n "$ac_ct_CC"; then
1611   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1612 echo "${ECHO_T}$ac_ct_CC" >&6
1613 else
1614   echo "$as_me:$LINENO: result: no" >&5
1615 echo "${ECHO_T}no" >&6
1616 fi
1617
1618   test -n "$ac_ct_CC" && break
1619 done
1620
1621   CC=$ac_ct_CC
1622 fi
1623
1624 fi
1625
1626
1627 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
1628 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
1629    { (exit 1); exit 1; }; }
1630
1631 # Provide some information about the compiler.
1632 echo "$as_me:$LINENO:" \
1633      "checking for C compiler version" >&5
1634 ac_compiler=`set X $ac_compile; echo $2`
1635 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1636   (eval $ac_compiler --version </dev/null >&5) 2>&5
1637   ac_status=$?
1638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1639   (exit $ac_status); }
1640 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1641   (eval $ac_compiler -v </dev/null >&5) 2>&5
1642   ac_status=$?
1643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1644   (exit $ac_status); }
1645 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1646   (eval $ac_compiler -V </dev/null >&5) 2>&5
1647   ac_status=$?
1648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1649   (exit $ac_status); }
1650
1651 cat >conftest.$ac_ext <<_ACEOF
1652 #line $LINENO "configure"
1653 #include "confdefs.h"
1654
1655 #ifdef F77_DUMMY_MAIN
1656 #  ifdef __cplusplus
1657      extern "C"
1658 #  endif
1659    int F77_DUMMY_MAIN() { return 1; }
1660 #endif
1661 int
1662 main ()
1663 {
1664
1665   ;
1666   return 0;
1667 }
1668 _ACEOF
1669 ac_clean_files_save=$ac_clean_files
1670 ac_clean_files="$ac_clean_files a.out a.exe"
1671 # Try to create an executable without -o first, disregard a.out.
1672 # It will help us diagnose broken compilers, and finding out an intuition
1673 # of exeext.
1674 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1675 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1676 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1677 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1678   (eval $ac_link_default) 2>&5
1679   ac_status=$?
1680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1681   (exit $ac_status); }; then
1682   # Find the output, starting from the most likely.  This scheme is
1683 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1684 # resort.
1685
1686 # Be careful to initialize this variable, since it used to be cached.
1687 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1688 ac_cv_exeext=
1689 for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
1690                 ls a.out conftest 2>/dev/null;
1691                 ls a.* conftest.* 2>/dev/null`; do
1692   case $ac_file in
1693     *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
1694     a.out ) # We found the default executable, but exeext='' is most
1695             # certainly right.
1696             break;;
1697     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1698           # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1699           export ac_cv_exeext
1700           break;;
1701     * ) break;;
1702   esac
1703 done
1704 else
1705   echo "$as_me: failed program was:" >&5
1706 cat conftest.$ac_ext >&5
1707 { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
1708 echo "$as_me: error: C compiler cannot create executables" >&2;}
1709    { (exit 77); exit 77; }; }
1710 fi
1711
1712 ac_exeext=$ac_cv_exeext
1713 echo "$as_me:$LINENO: result: $ac_file" >&5
1714 echo "${ECHO_T}$ac_file" >&6
1715
1716 # Check the compiler produces executables we can run.  If not, either
1717 # the compiler is broken, or we cross compile.
1718 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1719 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1720 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1721 # If not cross compiling, check that we can run a simple program.
1722 if test "$cross_compiling" != yes; then
1723   if { ac_try='./$ac_file'
1724   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1725   (eval $ac_try) 2>&5
1726   ac_status=$?
1727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1728   (exit $ac_status); }; }; then
1729     cross_compiling=no
1730   else
1731     if test "$cross_compiling" = maybe; then
1732         cross_compiling=yes
1733     else
1734         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1735 If you meant to cross compile, use \`--host'." >&5
1736 echo "$as_me: error: cannot run C compiled programs.
1737 If you meant to cross compile, use \`--host'." >&2;}
1738    { (exit 1); exit 1; }; }
1739     fi
1740   fi
1741 fi
1742 echo "$as_me:$LINENO: result: yes" >&5
1743 echo "${ECHO_T}yes" >&6
1744
1745 rm -f a.out a.exe conftest$ac_cv_exeext
1746 ac_clean_files=$ac_clean_files_save
1747 # Check the compiler produces executables we can run.  If not, either
1748 # the compiler is broken, or we cross compile.
1749 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1750 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1751 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1752 echo "${ECHO_T}$cross_compiling" >&6
1753
1754 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1755 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1756 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1757   (eval $ac_link) 2>&5
1758   ac_status=$?
1759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1760   (exit $ac_status); }; then
1761   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1762 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1763 # work properly (i.e., refer to `conftest.exe'), while it won't with
1764 # `rm'.
1765 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1766   case $ac_file in
1767     *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1768     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1769           export ac_cv_exeext
1770           break;;
1771     * ) break;;
1772   esac
1773 done
1774 else
1775   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
1776 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
1777    { (exit 1); exit 1; }; }
1778 fi
1779
1780 rm -f conftest$ac_cv_exeext
1781 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1782 echo "${ECHO_T}$ac_cv_exeext" >&6
1783
1784 rm -f conftest.$ac_ext
1785 EXEEXT=$ac_cv_exeext
1786 ac_exeext=$EXEEXT
1787 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1788 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1789 if test "${ac_cv_objext+set}" = set; then
1790   echo $ECHO_N "(cached) $ECHO_C" >&6
1791 else
1792   cat >conftest.$ac_ext <<_ACEOF
1793 #line $LINENO "configure"
1794 #include "confdefs.h"
1795
1796 #ifdef F77_DUMMY_MAIN
1797 #  ifdef __cplusplus
1798      extern "C"
1799 #  endif
1800    int F77_DUMMY_MAIN() { return 1; }
1801 #endif
1802 int
1803 main ()
1804 {
1805
1806   ;
1807   return 0;
1808 }
1809 _ACEOF
1810 rm -f conftest.o conftest.obj
1811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1812   (eval $ac_compile) 2>&5
1813   ac_status=$?
1814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1815   (exit $ac_status); }; then
1816   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1817   case $ac_file in
1818     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
1819     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1820        break;;
1821   esac
1822 done
1823 else
1824   echo "$as_me: failed program was:" >&5
1825 cat conftest.$ac_ext >&5
1826 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
1827 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
1828    { (exit 1); exit 1; }; }
1829 fi
1830
1831 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1832 fi
1833 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1834 echo "${ECHO_T}$ac_cv_objext" >&6
1835 OBJEXT=$ac_cv_objext
1836 ac_objext=$OBJEXT
1837 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1838 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1839 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1840   echo $ECHO_N "(cached) $ECHO_C" >&6
1841 else
1842   cat >conftest.$ac_ext <<_ACEOF
1843 #line $LINENO "configure"
1844 #include "confdefs.h"
1845
1846 #ifdef F77_DUMMY_MAIN
1847 #  ifdef __cplusplus
1848      extern "C"
1849 #  endif
1850    int F77_DUMMY_MAIN() { return 1; }
1851 #endif
1852 int
1853 main ()
1854 {
1855 #ifndef __GNUC__
1856        choke me
1857 #endif
1858
1859   ;
1860   return 0;
1861 }
1862 _ACEOF
1863 rm -f conftest.$ac_objext
1864 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1865   (eval $ac_compile) 2>&5
1866   ac_status=$?
1867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1868   (exit $ac_status); } &&
1869          { ac_try='test -s conftest.$ac_objext'
1870   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1871   (eval $ac_try) 2>&5
1872   ac_status=$?
1873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1874   (exit $ac_status); }; }; then
1875   ac_compiler_gnu=yes
1876 else
1877   echo "$as_me: failed program was:" >&5
1878 cat conftest.$ac_ext >&5
1879 ac_compiler_gnu=no
1880 fi
1881 rm -f conftest.$ac_objext conftest.$ac_ext
1882 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1883
1884 fi
1885 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1886 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1887 GCC=`test $ac_compiler_gnu = yes && echo yes`
1888 ac_test_CFLAGS=${CFLAGS+set}
1889 ac_save_CFLAGS=$CFLAGS
1890 CFLAGS="-g"
1891 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1892 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1893 if test "${ac_cv_prog_cc_g+set}" = set; then
1894   echo $ECHO_N "(cached) $ECHO_C" >&6
1895 else
1896   cat >conftest.$ac_ext <<_ACEOF
1897 #line $LINENO "configure"
1898 #include "confdefs.h"
1899
1900 #ifdef F77_DUMMY_MAIN
1901 #  ifdef __cplusplus
1902      extern "C"
1903 #  endif
1904    int F77_DUMMY_MAIN() { return 1; }
1905 #endif
1906 int
1907 main ()
1908 {
1909
1910   ;
1911   return 0;
1912 }
1913 _ACEOF
1914 rm -f conftest.$ac_objext
1915 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1916   (eval $ac_compile) 2>&5
1917   ac_status=$?
1918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1919   (exit $ac_status); } &&
1920          { ac_try='test -s conftest.$ac_objext'
1921   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1922   (eval $ac_try) 2>&5
1923   ac_status=$?
1924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1925   (exit $ac_status); }; }; then
1926   ac_cv_prog_cc_g=yes
1927 else
1928   echo "$as_me: failed program was:" >&5
1929 cat conftest.$ac_ext >&5
1930 ac_cv_prog_cc_g=no
1931 fi
1932 rm -f conftest.$ac_objext conftest.$ac_ext
1933 fi
1934 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1935 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1936 if test "$ac_test_CFLAGS" = set; then
1937   CFLAGS=$ac_save_CFLAGS
1938 elif test $ac_cv_prog_cc_g = yes; then
1939   if test "$GCC" = yes; then
1940     CFLAGS="-g -O2"
1941   else
1942     CFLAGS="-g"
1943   fi
1944 else
1945   if test "$GCC" = yes; then
1946     CFLAGS="-O2"
1947   else
1948     CFLAGS=
1949   fi
1950 fi
1951 # Some people use a C++ compiler to compile C.  Since we use `exit',
1952 # in C++ we need to declare it.  In case someone uses the same compiler
1953 # for both compiling C and C++ we need to have the C++ compiler decide
1954 # the declaration of exit, since it's the most demanding environment.
1955 cat >conftest.$ac_ext <<_ACEOF
1956 #ifndef __cplusplus
1957   choke me
1958 #endif
1959 _ACEOF
1960 rm -f conftest.$ac_objext
1961 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1962   (eval $ac_compile) 2>&5
1963   ac_status=$?
1964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1965   (exit $ac_status); } &&
1966          { ac_try='test -s conftest.$ac_objext'
1967   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1968   (eval $ac_try) 2>&5
1969   ac_status=$?
1970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1971   (exit $ac_status); }; }; then
1972   for ac_declaration in \
1973    ''\
1974    '#include <stdlib.h>' \
1975    'extern "C" void std::exit (int) throw (); using std::exit;' \
1976    'extern "C" void std::exit (int); using std::exit;' \
1977    'extern "C" void exit (int) throw ();' \
1978    'extern "C" void exit (int);' \
1979    'void exit (int);'
1980 do
1981   cat >conftest.$ac_ext <<_ACEOF
1982 #line $LINENO "configure"
1983 #include "confdefs.h"
1984 #include <stdlib.h>
1985 $ac_declaration
1986 #ifdef F77_DUMMY_MAIN
1987 #  ifdef __cplusplus
1988      extern "C"
1989 #  endif
1990    int F77_DUMMY_MAIN() { return 1; }
1991 #endif
1992 int
1993 main ()
1994 {
1995 exit (42);
1996   ;
1997   return 0;
1998 }
1999 _ACEOF
2000 rm -f conftest.$ac_objext
2001 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2002   (eval $ac_compile) 2>&5
2003   ac_status=$?
2004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2005   (exit $ac_status); } &&
2006          { ac_try='test -s conftest.$ac_objext'
2007   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2008   (eval $ac_try) 2>&5
2009   ac_status=$?
2010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2011   (exit $ac_status); }; }; then
2012   :
2013 else
2014   echo "$as_me: failed program was:" >&5
2015 cat conftest.$ac_ext >&5
2016 continue
2017 fi
2018 rm -f conftest.$ac_objext conftest.$ac_ext
2019   cat >conftest.$ac_ext <<_ACEOF
2020 #line $LINENO "configure"
2021 #include "confdefs.h"
2022 $ac_declaration
2023 #ifdef F77_DUMMY_MAIN
2024 #  ifdef __cplusplus
2025      extern "C"
2026 #  endif
2027    int F77_DUMMY_MAIN() { return 1; }
2028 #endif
2029 int
2030 main ()
2031 {
2032 exit (42);
2033   ;
2034   return 0;
2035 }
2036 _ACEOF
2037 rm -f conftest.$ac_objext
2038 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2039   (eval $ac_compile) 2>&5
2040   ac_status=$?
2041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2042   (exit $ac_status); } &&
2043          { ac_try='test -s conftest.$ac_objext'
2044   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2045   (eval $ac_try) 2>&5
2046   ac_status=$?
2047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2048   (exit $ac_status); }; }; then
2049   break
2050 else
2051   echo "$as_me: failed program was:" >&5
2052 cat conftest.$ac_ext >&5
2053 fi
2054 rm -f conftest.$ac_objext conftest.$ac_ext
2055 done
2056 rm -f conftest*
2057 if test -n "$ac_declaration"; then
2058   echo '#ifdef __cplusplus' >>confdefs.h
2059   echo $ac_declaration      >>confdefs.h
2060   echo '#endif'             >>confdefs.h
2061 fi
2062
2063 else
2064   echo "$as_me: failed program was:" >&5
2065 cat conftest.$ac_ext >&5
2066 fi
2067 rm -f conftest.$ac_objext conftest.$ac_ext
2068 ac_ext=c
2069 ac_cpp='$CPP $CPPFLAGS'
2070 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2071 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2072 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2073
2074
2075
2076 if test -z "$LD"; then
2077   if test -n "$ac_tool_prefix"; then
2078   # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
2079 set dummy ${ac_tool_prefix}ld; ac_word=$2
2080 echo "$as_me:$LINENO: checking for $ac_word" >&5
2081 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2082 if test "${ac_cv_prog_LD+set}" = set; then
2083   echo $ECHO_N "(cached) $ECHO_C" >&6
2084 else
2085   if test -n "$LD"; then
2086   ac_cv_prog_LD="$LD" # Let the user override the test.
2087 else
2088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2089 for as_dir in $PATH
2090 do
2091   IFS=$as_save_IFS
2092   test -z "$as_dir" && as_dir=.
2093   for ac_exec_ext in '' $ac_executable_extensions; do
2094   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2095     ac_cv_prog_LD="${ac_tool_prefix}ld"
2096     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2097     break 2
2098   fi
2099 done
2100 done
2101
2102 fi
2103 fi
2104 LD=$ac_cv_prog_LD
2105 if test -n "$LD"; then
2106   echo "$as_me:$LINENO: result: $LD" >&5
2107 echo "${ECHO_T}$LD" >&6
2108 else
2109   echo "$as_me:$LINENO: result: no" >&5
2110 echo "${ECHO_T}no" >&6
2111 fi
2112
2113 fi
2114 if test -z "$ac_cv_prog_LD"; then
2115   ac_ct_LD=$LD
2116   # Extract the first word of "ld", so it can be a program name with args.
2117 set dummy ld; ac_word=$2
2118 echo "$as_me:$LINENO: checking for $ac_word" >&5
2119 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2120 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
2121   echo $ECHO_N "(cached) $ECHO_C" >&6
2122 else
2123   if test -n "$ac_ct_LD"; then
2124   ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
2125 else
2126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2127 for as_dir in $PATH
2128 do
2129   IFS=$as_save_IFS
2130   test -z "$as_dir" && as_dir=.
2131   for ac_exec_ext in '' $ac_executable_extensions; do
2132   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2133     ac_cv_prog_ac_ct_LD="ld"
2134     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2135     break 2
2136   fi
2137 done
2138 done
2139
2140 fi
2141 fi
2142 ac_ct_LD=$ac_cv_prog_ac_ct_LD
2143 if test -n "$ac_ct_LD"; then
2144   echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
2145 echo "${ECHO_T}$ac_ct_LD" >&6
2146 else
2147   echo "$as_me:$LINENO: result: no" >&5
2148 echo "${ECHO_T}no" >&6
2149 fi
2150
2151   LD=$ac_ct_LD
2152 else
2153   LD="$ac_cv_prog_LD"
2154 fi
2155
2156 fi
2157
2158 echo "$as_me:$LINENO: checking whether $LD accepts -r" >&5
2159 echo $ECHO_N "checking whether $LD accepts -r... $ECHO_C" >&6
2160 if test "${libfirm_cv_prog_ld_r+set}" = set; then
2161   echo $ECHO_N "(cached) $ECHO_C" >&6
2162 else
2163
2164 libfirm_cv_prog_ld_r=no
2165 if test "$LD"; then
2166   cat > conftest.$ac_ext <<EOF
2167 int foo() { return 0; }
2168 EOF
2169   if eval $ac_compile && mv conftest.o conftest2.o; then
2170     cat > conftest.$ac_ext <<EOF
2171 extern int foo();
2172 int main() { return foo(); }
2173 EOF
2174     if eval $ac_compile; then
2175       if $LD -r -o conftest conftest.o conftest2.o; then
2176         libfirm_cv_prog_ld_r=yes
2177       fi
2178     fi
2179   fi
2180 fi
2181 rm -f conftest*
2182 fi
2183 echo "$as_me:$LINENO: result: $libfirm_cv_prog_ld_r" >&5
2184 echo "${ECHO_T}$libfirm_cv_prog_ld_r" >&6
2185
2186
2187 if test "$libfirm_cv_prog_ld_r" != "yes"; then
2188   { { echo "$as_me:$LINENO: error: need a prelinkcapable linker" >&5
2189 echo "$as_me: error: need a prelinkcapable linker" >&2;}
2190    { (exit 1); exit 1; }; }
2191 fi
2192
2193 # Extract the first word of "ar", so it can be a program name with args.
2194 set dummy ar; ac_word=$2
2195 echo "$as_me:$LINENO: checking for $ac_word" >&5
2196 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2197 if test "${ac_cv_prog_AR+set}" = set; then
2198   echo $ECHO_N "(cached) $ECHO_C" >&6
2199 else
2200   if test -n "$AR"; then
2201   ac_cv_prog_AR="$AR" # Let the user override the test.
2202 else
2203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2204 for as_dir in $PATH
2205 do
2206   IFS=$as_save_IFS
2207   test -z "$as_dir" && as_dir=.
2208   for ac_exec_ext in '' $ac_executable_extensions; do
2209   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2210     ac_cv_prog_AR=""ar""
2211     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2212     break 2
2213   fi
2214 done
2215 done
2216
2217   test -z "$ac_cv_prog_AR" && ac_cv_prog_AR=""""
2218 fi
2219 fi
2220 AR=$ac_cv_prog_AR
2221 if test -n "$AR"; then
2222   echo "$as_me:$LINENO: result: $AR" >&5
2223 echo "${ECHO_T}$AR" >&6
2224 else
2225   echo "$as_me:$LINENO: result: no" >&5
2226 echo "${ECHO_T}no" >&6
2227 fi
2228
2229 if test "$AR" != "ar"; then
2230   { { echo "$as_me:$LINENO: error: need ar for creating archives" >&5
2231 echo "$as_me: error: need ar for creating archives" >&2;}
2232    { (exit 1); exit 1; }; }
2233 fi
2234
2235 # Extract the first word of "tar", so it can be a program name with args.
2236 set dummy tar; ac_word=$2
2237 echo "$as_me:$LINENO: checking for $ac_word" >&5
2238 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2239 if test "${ac_cv_prog_TAR+set}" = set; then
2240   echo $ECHO_N "(cached) $ECHO_C" >&6
2241 else
2242   if test -n "$TAR"; then
2243   ac_cv_prog_TAR="$TAR" # Let the user override the test.
2244 else
2245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2246 for as_dir in $PATH
2247 do
2248   IFS=$as_save_IFS
2249   test -z "$as_dir" && as_dir=.
2250   for ac_exec_ext in '' $ac_executable_extensions; do
2251   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2252     ac_cv_prog_TAR=""tar""
2253     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2254     break 2
2255   fi
2256 done
2257 done
2258
2259   test -z "$ac_cv_prog_TAR" && ac_cv_prog_TAR=""""
2260 fi
2261 fi
2262 TAR=$ac_cv_prog_TAR
2263 if test -n "$TAR"; then
2264   echo "$as_me:$LINENO: result: $TAR" >&5
2265 echo "${ECHO_T}$TAR" >&6
2266 else
2267   echo "$as_me:$LINENO: result: no" >&5
2268 echo "${ECHO_T}no" >&6
2269 fi
2270
2271 if test "$TAR" != "tar"; then
2272   { { echo "$as_me:$LINENO: error: need tar for creating archives in distribution" >&5
2273 echo "$as_me: error: need tar for creating archives in distribution" >&2;}
2274    { (exit 1); exit 1; }; }
2275 fi
2276
2277
2278 if test -n "$ac_tool_prefix"; then
2279   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2280 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2281 echo "$as_me:$LINENO: checking for $ac_word" >&5
2282 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2283 if test "${ac_cv_prog_RANLIB+set}" = set; then
2284   echo $ECHO_N "(cached) $ECHO_C" >&6
2285 else
2286   if test -n "$RANLIB"; then
2287   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2288 else
2289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2290 for as_dir in $PATH
2291 do
2292   IFS=$as_save_IFS
2293   test -z "$as_dir" && as_dir=.
2294   for ac_exec_ext in '' $ac_executable_extensions; do
2295   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2296     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2297     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2298     break 2
2299   fi
2300 done
2301 done
2302
2303 fi
2304 fi
2305 RANLIB=$ac_cv_prog_RANLIB
2306 if test -n "$RANLIB"; then
2307   echo "$as_me:$LINENO: result: $RANLIB" >&5
2308 echo "${ECHO_T}$RANLIB" >&6
2309 else
2310   echo "$as_me:$LINENO: result: no" >&5
2311 echo "${ECHO_T}no" >&6
2312 fi
2313
2314 fi
2315 if test -z "$ac_cv_prog_RANLIB"; then
2316   ac_ct_RANLIB=$RANLIB
2317   # Extract the first word of "ranlib", so it can be a program name with args.
2318 set dummy ranlib; ac_word=$2
2319 echo "$as_me:$LINENO: checking for $ac_word" >&5
2320 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2321 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2322   echo $ECHO_N "(cached) $ECHO_C" >&6
2323 else
2324   if test -n "$ac_ct_RANLIB"; then
2325   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2326 else
2327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2328 for as_dir in $PATH
2329 do
2330   IFS=$as_save_IFS
2331   test -z "$as_dir" && as_dir=.
2332   for ac_exec_ext in '' $ac_executable_extensions; do
2333   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2334     ac_cv_prog_ac_ct_RANLIB="ranlib"
2335     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2336     break 2
2337   fi
2338 done
2339 done
2340
2341   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2342 fi
2343 fi
2344 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2345 if test -n "$ac_ct_RANLIB"; then
2346   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2347 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2348 else
2349   echo "$as_me:$LINENO: result: no" >&5
2350 echo "${ECHO_T}no" >&6
2351 fi
2352
2353   RANLIB=$ac_ct_RANLIB
2354 else
2355   RANLIB="$ac_cv_prog_RANLIB"
2356 fi
2357
2358
2359 ac_aux_dir=
2360 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
2361   if test -f $ac_dir/install-sh; then
2362     ac_aux_dir=$ac_dir
2363     ac_install_sh="$ac_aux_dir/install-sh -c"
2364     break
2365   elif test -f $ac_dir/install.sh; then
2366     ac_aux_dir=$ac_dir
2367     ac_install_sh="$ac_aux_dir/install.sh -c"
2368     break
2369   elif test -f $ac_dir/shtool; then
2370     ac_aux_dir=$ac_dir
2371     ac_install_sh="$ac_aux_dir/shtool install -c"
2372     break
2373   fi
2374 done
2375 if test -z "$ac_aux_dir"; then
2376   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
2377 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
2378    { (exit 1); exit 1; }; }
2379 fi
2380 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
2381 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
2382 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
2383
2384 # Find a good install program.  We prefer a C program (faster),
2385 # so one script is as good as another.  But avoid the broken or
2386 # incompatible versions:
2387 # SysV /etc/install, /usr/sbin/install
2388 # SunOS /usr/etc/install
2389 # IRIX /sbin/install
2390 # AIX /bin/install
2391 # AmigaOS /C/install, which installs bootblocks on floppy discs
2392 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2393 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2394 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2395 # ./install, which can be erroneously created by make from ./install.sh.
2396 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2397 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2398 if test -z "$INSTALL"; then
2399 if test "${ac_cv_path_install+set}" = set; then
2400   echo $ECHO_N "(cached) $ECHO_C" >&6
2401 else
2402   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2403 for as_dir in $PATH
2404 do
2405   IFS=$as_save_IFS
2406   test -z "$as_dir" && as_dir=.
2407   # Account for people who put trailing slashes in PATH elements.
2408 case $as_dir/ in
2409   ./ | .// | /cC/* | \
2410   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2411   /usr/ucb/* ) ;;
2412   *)
2413     # OSF1 and SCO ODT 3.0 have their own names for install.
2414     # Don't use installbsd from OSF since it installs stuff as root
2415     # by default.
2416     for ac_prog in ginstall scoinst install; do
2417       for ac_exec_ext in '' $ac_executable_extensions; do
2418         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2419           if test $ac_prog = install &&
2420             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2421             # AIX install.  It has an incompatible calling convention.
2422             :
2423           elif test $ac_prog = install &&
2424             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2425             # program-specific install script used by HP pwplus--don't use.
2426             :
2427           else
2428             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2429             break 3
2430           fi
2431         fi
2432       done
2433     done
2434     ;;
2435 esac
2436 done
2437
2438
2439 fi
2440   if test "${ac_cv_path_install+set}" = set; then
2441     INSTALL=$ac_cv_path_install
2442   else
2443     # As a last resort, use the slow shell script.  We don't cache a
2444     # path for INSTALL within a source directory, because that will
2445     # break other packages using the cache if that directory is
2446     # removed, or if the path is relative.
2447     INSTALL=$ac_install_sh
2448   fi
2449 fi
2450 echo "$as_me:$LINENO: result: $INSTALL" >&5
2451 echo "${ECHO_T}$INSTALL" >&6
2452
2453 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2454 # It thinks the first close brace ends the variable substitution.
2455 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2456
2457 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2458
2459 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2460
2461
2462 touch tmp-install.a tmp-install.b
2463 if eval "$INSTALL -C tmp-install.a tmp-install.b" ; then
2464     INSTALL="$INSTALL -C"
2465 fi
2466 rm tmp-install.a tmp-install.b
2467
2468
2469 echo "$as_me:$LINENO: checking whether ln -s works" >&5
2470 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2471 LN_S=$as_ln_s
2472 if test "$LN_S" = "ln -s"; then
2473   echo "$as_me:$LINENO: result: yes" >&5
2474 echo "${ECHO_T}yes" >&6
2475 else
2476   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
2477 echo "${ECHO_T}no, using $LN_S" >&6
2478 fi
2479
2480
2481 if test "$enable_auto_documentation" = yes; then
2482   # Extract the first word of "doxygen", so it can be a program name with args.
2483 set dummy doxygen; ac_word=$2
2484 echo "$as_me:$LINENO: checking for $ac_word" >&5
2485 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2486 if test "${ac_cv_prog_DOXYGEN+set}" = set; then
2487   echo $ECHO_N "(cached) $ECHO_C" >&6
2488 else
2489   if test -n "$DOXYGEN"; then
2490   ac_cv_prog_DOXYGEN="$DOXYGEN" # Let the user override the test.
2491 else
2492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2493 for as_dir in $PATH
2494 do
2495   IFS=$as_save_IFS
2496   test -z "$as_dir" && as_dir=.
2497   for ac_exec_ext in '' $ac_executable_extensions; do
2498   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2499     ac_cv_prog_DOXYGEN=""doxygen""
2500     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2501     break 2
2502   fi
2503 done
2504 done
2505
2506   test -z "$ac_cv_prog_DOXYGEN" && ac_cv_prog_DOXYGEN=""""
2507 fi
2508 fi
2509 DOXYGEN=$ac_cv_prog_DOXYGEN
2510 if test -n "$DOXYGEN"; then
2511   echo "$as_me:$LINENO: result: $DOXYGEN" >&5
2512 echo "${ECHO_T}$DOXYGEN" >&6
2513 else
2514   echo "$as_me:$LINENO: result: no" >&5
2515 echo "${ECHO_T}no" >&6
2516 fi
2517
2518   if test "$DOXYGEN" != "doxygen"; then
2519     { { echo "$as_me:$LINENO: error: need doxygen for auto documentation" >&5
2520 echo "$as_me: error: need doxygen for auto documentation" >&2;}
2521    { (exit 1); exit 1; }; }
2522   fi
2523   # Extract the first word of "dot", so it can be a program name with args.
2524 set dummy dot; ac_word=$2
2525 echo "$as_me:$LINENO: checking for $ac_word" >&5
2526 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2527 if test "${ac_cv_prog_DOT+set}" = set; then
2528   echo $ECHO_N "(cached) $ECHO_C" >&6
2529 else
2530   if test -n "$DOT"; then
2531   ac_cv_prog_DOT="$DOT" # Let the user override the test.
2532 else
2533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2534 for as_dir in $PATH
2535 do
2536   IFS=$as_save_IFS
2537   test -z "$as_dir" && as_dir=.
2538   for ac_exec_ext in '' $ac_executable_extensions; do
2539   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2540     ac_cv_prog_DOT=""dot""
2541     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2542     break 2
2543   fi
2544 done
2545 done
2546
2547   test -z "$ac_cv_prog_DOT" && ac_cv_prog_DOT=""""
2548 fi
2549 fi
2550 DOT=$ac_cv_prog_DOT
2551 if test -n "$DOT"; then
2552   echo "$as_me:$LINENO: result: $DOT" >&5
2553 echo "${ECHO_T}$DOT" >&6
2554 else
2555   echo "$as_me:$LINENO: result: no" >&5
2556 echo "${ECHO_T}no" >&6
2557 fi
2558
2559   if test "$DOT" != "dot"; then
2560     { { echo "$as_me:$LINENO: error: need dot for doxygen documentation (for class graphs) (IPD: module add Graphviz)" >&5
2561 echo "$as_me: error: need dot for doxygen documentation (for class graphs) (IPD: module add Graphviz)" >&2;}
2562    { (exit 1); exit 1; }; }
2563   fi
2564 fi
2565
2566 if test "$enable_firm_jni" = yes; then
2567   # Extract the first word of "javac", so it can be a program name with args.
2568 set dummy javac; 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_JAVAC+set}" = set; then
2572   echo $ECHO_N "(cached) $ECHO_C" >&6
2573 else
2574   if test -n "$JAVAC"; then
2575   ac_cv_prog_JAVAC="$JAVAC" # 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_JAVAC=""javac""
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   test -z "$ac_cv_prog_JAVAC" && ac_cv_prog_JAVAC=""""
2592 fi
2593 fi
2594 JAVAC=$ac_cv_prog_JAVAC
2595 if test -n "$JAVAC"; then
2596   echo "$as_me:$LINENO: result: $JAVAC" >&5
2597 echo "${ECHO_T}$JAVAC" >&6
2598 else
2599   echo "$as_me:$LINENO: result: no" >&5
2600 echo "${ECHO_T}no" >&6
2601 fi
2602
2603   if test "$JAVAC" != "javac"; then
2604     { { echo "$as_me:$LINENO: error: need java compiler javac to generate jni (IPD: module add jdk-1.3.1-sun)" >&5
2605 echo "$as_me: error: need java compiler javac to generate jni (IPD: module add jdk-1.3.1-sun)" >&2;}
2606    { (exit 1); exit 1; }; }
2607   fi
2608   # Extract the first word of "javah", so it can be a program name with args.
2609 set dummy javah; ac_word=$2
2610 echo "$as_me:$LINENO: checking for $ac_word" >&5
2611 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2612 if test "${ac_cv_prog_JAVAH+set}" = set; then
2613   echo $ECHO_N "(cached) $ECHO_C" >&6
2614 else
2615   if test -n "$JAVAH"; then
2616   ac_cv_prog_JAVAH="$JAVAH" # Let the user override the test.
2617 else
2618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2619 for as_dir in $PATH
2620 do
2621   IFS=$as_save_IFS
2622   test -z "$as_dir" && as_dir=.
2623   for ac_exec_ext in '' $ac_executable_extensions; do
2624   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2625     ac_cv_prog_JAVAH=""javah""
2626     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2627     break 2
2628   fi
2629 done
2630 done
2631
2632   test -z "$ac_cv_prog_JAVAH" && ac_cv_prog_JAVAH=""""
2633 fi
2634 fi
2635 JAVAH=$ac_cv_prog_JAVAH
2636 if test -n "$JAVAH"; then
2637   echo "$as_me:$LINENO: result: $JAVAH" >&5
2638 echo "${ECHO_T}$JAVAH" >&6
2639 else
2640   echo "$as_me:$LINENO: result: no" >&5
2641 echo "${ECHO_T}no" >&6
2642 fi
2643
2644   if test "$JAVAH" != "javah"; then
2645     { { echo "$as_me:$LINENO: error: need javah to generate jni headers (IPD: module add jdk-1.3.1-sun)" >&5
2646 echo "$as_me: error: need javah to generate jni headers (IPD: module add jdk-1.3.1-sun)" >&2;}
2647    { (exit 1); exit 1; }; }
2648   fi
2649 fi
2650
2651
2652
2653
2654 ac_ext=c
2655 ac_cpp='$CPP $CPPFLAGS'
2656 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2657 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2658 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2659 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2660 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2661 # On Suns, sometimes $CPP names a directory.
2662 if test -n "$CPP" && test -d "$CPP"; then
2663   CPP=
2664 fi
2665 if test -z "$CPP"; then
2666   if test "${ac_cv_prog_CPP+set}" = set; then
2667   echo $ECHO_N "(cached) $ECHO_C" >&6
2668 else
2669       # Double quotes because CPP needs to be expanded
2670     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2671     do
2672       ac_preproc_ok=false
2673 for ac_c_preproc_warn_flag in '' yes
2674 do
2675   # Use a header file that comes with gcc, so configuring glibc
2676   # with a fresh cross-compiler works.
2677   # On the NeXT, cc -E runs the code through the compiler's parser,
2678   # not just through cpp. "Syntax error" is here to catch this case.
2679   cat >conftest.$ac_ext <<_ACEOF
2680 #line $LINENO "configure"
2681 #include "confdefs.h"
2682 #include <assert.h>
2683                      Syntax error
2684 _ACEOF
2685 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2686   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2687   ac_status=$?
2688   egrep -v '^ *\+' conftest.er1 >conftest.err
2689   rm -f conftest.er1
2690   cat conftest.err >&5
2691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2692   (exit $ac_status); } >/dev/null; then
2693   if test -s conftest.err; then
2694     ac_cpp_err=$ac_c_preproc_warn_flag
2695   else
2696     ac_cpp_err=
2697   fi
2698 else
2699   ac_cpp_err=yes
2700 fi
2701 if test -z "$ac_cpp_err"; then
2702   :
2703 else
2704   echo "$as_me: failed program was:" >&5
2705   cat conftest.$ac_ext >&5
2706   # Broken: fails on valid input.
2707 continue
2708 fi
2709 rm -f conftest.err conftest.$ac_ext
2710
2711   # OK, works on sane cases.  Now check whether non-existent headers
2712   # can be detected and how.
2713   cat >conftest.$ac_ext <<_ACEOF
2714 #line $LINENO "configure"
2715 #include "confdefs.h"
2716 #include <ac_nonexistent.h>
2717 _ACEOF
2718 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2719   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2720   ac_status=$?
2721   egrep -v '^ *\+' conftest.er1 >conftest.err
2722   rm -f conftest.er1
2723   cat conftest.err >&5
2724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2725   (exit $ac_status); } >/dev/null; then
2726   if test -s conftest.err; then
2727     ac_cpp_err=$ac_c_preproc_warn_flag
2728   else
2729     ac_cpp_err=
2730   fi
2731 else
2732   ac_cpp_err=yes
2733 fi
2734 if test -z "$ac_cpp_err"; then
2735   # Broken: success on invalid input.
2736 continue
2737 else
2738   echo "$as_me: failed program was:" >&5
2739   cat conftest.$ac_ext >&5
2740   # Passes both tests.
2741 ac_preproc_ok=:
2742 break
2743 fi
2744 rm -f conftest.err conftest.$ac_ext
2745
2746 done
2747 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2748 rm -f conftest.err conftest.$ac_ext
2749 if $ac_preproc_ok; then
2750   break
2751 fi
2752
2753     done
2754     ac_cv_prog_CPP=$CPP
2755
2756 fi
2757   CPP=$ac_cv_prog_CPP
2758 else
2759   ac_cv_prog_CPP=$CPP
2760 fi
2761 echo "$as_me:$LINENO: result: $CPP" >&5
2762 echo "${ECHO_T}$CPP" >&6
2763 ac_preproc_ok=false
2764 for ac_c_preproc_warn_flag in '' yes
2765 do
2766   # Use a header file that comes with gcc, so configuring glibc
2767   # with a fresh cross-compiler works.
2768   # On the NeXT, cc -E runs the code through the compiler's parser,
2769   # not just through cpp. "Syntax error" is here to catch this case.
2770   cat >conftest.$ac_ext <<_ACEOF
2771 #line $LINENO "configure"
2772 #include "confdefs.h"
2773 #include <assert.h>
2774                      Syntax error
2775 _ACEOF
2776 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2777   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2778   ac_status=$?
2779   egrep -v '^ *\+' conftest.er1 >conftest.err
2780   rm -f conftest.er1
2781   cat conftest.err >&5
2782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2783   (exit $ac_status); } >/dev/null; then
2784   if test -s conftest.err; then
2785     ac_cpp_err=$ac_c_preproc_warn_flag
2786   else
2787     ac_cpp_err=
2788   fi
2789 else
2790   ac_cpp_err=yes
2791 fi
2792 if test -z "$ac_cpp_err"; then
2793   :
2794 else
2795   echo "$as_me: failed program was:" >&5
2796   cat conftest.$ac_ext >&5
2797   # Broken: fails on valid input.
2798 continue
2799 fi
2800 rm -f conftest.err conftest.$ac_ext
2801
2802   # OK, works on sane cases.  Now check whether non-existent headers
2803   # can be detected and how.
2804   cat >conftest.$ac_ext <<_ACEOF
2805 #line $LINENO "configure"
2806 #include "confdefs.h"
2807 #include <ac_nonexistent.h>
2808 _ACEOF
2809 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2810   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2811   ac_status=$?
2812   egrep -v '^ *\+' conftest.er1 >conftest.err
2813   rm -f conftest.er1
2814   cat conftest.err >&5
2815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2816   (exit $ac_status); } >/dev/null; then
2817   if test -s conftest.err; then
2818     ac_cpp_err=$ac_c_preproc_warn_flag
2819   else
2820     ac_cpp_err=
2821   fi
2822 else
2823   ac_cpp_err=yes
2824 fi
2825 if test -z "$ac_cpp_err"; then
2826   # Broken: success on invalid input.
2827 continue
2828 else
2829   echo "$as_me: failed program was:" >&5
2830   cat conftest.$ac_ext >&5
2831   # Passes both tests.
2832 ac_preproc_ok=:
2833 break
2834 fi
2835 rm -f conftest.err conftest.$ac_ext
2836
2837 done
2838 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2839 rm -f conftest.err conftest.$ac_ext
2840 if $ac_preproc_ok; then
2841   :
2842 else
2843   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2844 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2845    { (exit 1); exit 1; }; }
2846 fi
2847
2848 ac_ext=c
2849 ac_cpp='$CPP $CPPFLAGS'
2850 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2851 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2852 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2853
2854
2855 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2856 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2857 if test "${ac_cv_header_stdc+set}" = set; then
2858   echo $ECHO_N "(cached) $ECHO_C" >&6
2859 else
2860   cat >conftest.$ac_ext <<_ACEOF
2861 #line $LINENO "configure"
2862 #include "confdefs.h"
2863 #include <stdlib.h>
2864 #include <stdarg.h>
2865 #include <string.h>
2866 #include <float.h>
2867
2868 _ACEOF
2869 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2870   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2871   ac_status=$?
2872   egrep -v '^ *\+' conftest.er1 >conftest.err
2873   rm -f conftest.er1
2874   cat conftest.err >&5
2875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2876   (exit $ac_status); } >/dev/null; then
2877   if test -s conftest.err; then
2878     ac_cpp_err=$ac_c_preproc_warn_flag
2879   else
2880     ac_cpp_err=
2881   fi
2882 else
2883   ac_cpp_err=yes
2884 fi
2885 if test -z "$ac_cpp_err"; then
2886   ac_cv_header_stdc=yes
2887 else
2888   echo "$as_me: failed program was:" >&5
2889   cat conftest.$ac_ext >&5
2890   ac_cv_header_stdc=no
2891 fi
2892 rm -f conftest.err conftest.$ac_ext
2893
2894 if test $ac_cv_header_stdc = yes; then
2895   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2896   cat >conftest.$ac_ext <<_ACEOF
2897 #line $LINENO "configure"
2898 #include "confdefs.h"
2899 #include <string.h>
2900
2901 _ACEOF
2902 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2903   egrep "memchr" >/dev/null 2>&1; then
2904   :
2905 else
2906   ac_cv_header_stdc=no
2907 fi
2908 rm -f conftest*
2909
2910 fi
2911
2912 if test $ac_cv_header_stdc = yes; then
2913   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2914   cat >conftest.$ac_ext <<_ACEOF
2915 #line $LINENO "configure"
2916 #include "confdefs.h"
2917 #include <stdlib.h>
2918
2919 _ACEOF
2920 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2921   egrep "free" >/dev/null 2>&1; then
2922   :
2923 else
2924   ac_cv_header_stdc=no
2925 fi
2926 rm -f conftest*
2927
2928 fi
2929
2930 if test $ac_cv_header_stdc = yes; then
2931   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2932   if test "$cross_compiling" = yes; then
2933   :
2934 else
2935   cat >conftest.$ac_ext <<_ACEOF
2936 #line $LINENO "configure"
2937 #include "confdefs.h"
2938 #include <ctype.h>
2939 #if ((' ' & 0x0FF) == 0x020)
2940 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2941 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2942 #else
2943 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
2944                      || ('j' <= (c) && (c) <= 'r') \
2945                      || ('s' <= (c) && (c) <= 'z'))
2946 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2947 #endif
2948
2949 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2950 int
2951 main ()
2952 {
2953   int i;
2954   for (i = 0; i < 256; i++)
2955     if (XOR (islower (i), ISLOWER (i))
2956         || toupper (i) != TOUPPER (i))
2957       exit(2);
2958   exit (0);
2959 }
2960 _ACEOF
2961 rm -f conftest$ac_exeext
2962 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2963   (eval $ac_link) 2>&5
2964   ac_status=$?
2965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2966   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2967   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2968   (eval $ac_try) 2>&5
2969   ac_status=$?
2970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2971   (exit $ac_status); }; }; then
2972   :
2973 else
2974   echo "$as_me: program exited with status $ac_status" >&5
2975 echo "$as_me: failed program was:" >&5
2976 cat conftest.$ac_ext >&5
2977 ( exit $ac_status )
2978 ac_cv_header_stdc=no
2979 fi
2980 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2981 fi
2982 fi
2983 fi
2984 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
2985 echo "${ECHO_T}$ac_cv_header_stdc" >&6
2986 if test $ac_cv_header_stdc = yes; then
2987
2988 cat >>confdefs.h <<\_ACEOF
2989 #define STDC_HEADERS 1
2990 _ACEOF
2991
2992 fi
2993
2994
2995
2996 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3007                   inttypes.h stdint.h unistd.h
3008 do
3009 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3010 echo "$as_me:$LINENO: checking for $ac_header" >&5
3011 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3012 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3013   echo $ECHO_N "(cached) $ECHO_C" >&6
3014 else
3015   cat >conftest.$ac_ext <<_ACEOF
3016 #line $LINENO "configure"
3017 #include "confdefs.h"
3018 $ac_includes_default
3019
3020 #include <$ac_header>
3021 _ACEOF
3022 rm -f conftest.$ac_objext
3023 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3024   (eval $ac_compile) 2>&5
3025   ac_status=$?
3026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3027   (exit $ac_status); } &&
3028          { ac_try='test -s conftest.$ac_objext'
3029   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3030   (eval $ac_try) 2>&5
3031   ac_status=$?
3032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3033   (exit $ac_status); }; }; then
3034   eval "$as_ac_Header=yes"
3035 else
3036   echo "$as_me: failed program was:" >&5
3037 cat conftest.$ac_ext >&5
3038 eval "$as_ac_Header=no"
3039 fi
3040 rm -f conftest.$ac_objext conftest.$ac_ext
3041 fi
3042 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3043 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3044 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3045   cat >>confdefs.h <<_ACEOF
3046 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3047 _ACEOF
3048
3049 fi
3050
3051 done
3052
3053
3054
3055 for ac_header in math.h
3056 do
3057 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3058 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3059   echo "$as_me:$LINENO: checking for $ac_header" >&5
3060 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3061 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3062   echo $ECHO_N "(cached) $ECHO_C" >&6
3063 fi
3064 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3065 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3066 else
3067   # Is the header compilable?
3068 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3069 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3070 cat >conftest.$ac_ext <<_ACEOF
3071 #line $LINENO "configure"
3072 #include "confdefs.h"
3073 $ac_includes_default
3074 #include <$ac_header>
3075 _ACEOF
3076 rm -f conftest.$ac_objext
3077 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3078   (eval $ac_compile) 2>&5
3079   ac_status=$?
3080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3081   (exit $ac_status); } &&
3082          { ac_try='test -s conftest.$ac_objext'
3083   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3084   (eval $ac_try) 2>&5
3085   ac_status=$?
3086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3087   (exit $ac_status); }; }; then
3088   ac_header_compiler=yes
3089 else
3090   echo "$as_me: failed program was:" >&5
3091 cat conftest.$ac_ext >&5
3092 ac_header_compiler=no
3093 fi
3094 rm -f conftest.$ac_objext conftest.$ac_ext
3095 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3096 echo "${ECHO_T}$ac_header_compiler" >&6
3097
3098 # Is the header present?
3099 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3100 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3101 cat >conftest.$ac_ext <<_ACEOF
3102 #line $LINENO "configure"
3103 #include "confdefs.h"
3104 #include <$ac_header>
3105 _ACEOF
3106 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3107   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3108   ac_status=$?
3109   egrep -v '^ *\+' conftest.er1 >conftest.err
3110   rm -f conftest.er1
3111   cat conftest.err >&5
3112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3113   (exit $ac_status); } >/dev/null; then
3114   if test -s conftest.err; then
3115     ac_cpp_err=$ac_c_preproc_warn_flag
3116   else
3117     ac_cpp_err=
3118   fi
3119 else
3120   ac_cpp_err=yes
3121 fi
3122 if test -z "$ac_cpp_err"; then
3123   ac_header_preproc=yes
3124 else
3125   echo "$as_me: failed program was:" >&5
3126   cat conftest.$ac_ext >&5
3127   ac_header_preproc=no
3128 fi
3129 rm -f conftest.err conftest.$ac_ext
3130 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3131 echo "${ECHO_T}$ac_header_preproc" >&6
3132
3133 # So?  What about this header?
3134 case $ac_header_compiler:$ac_header_preproc in
3135   yes:no )
3136     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3137 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3138     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3139 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3140   no:yes )
3141     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3142 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3143     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3144 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3145     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3146 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3147 esac
3148 echo "$as_me:$LINENO: checking for $ac_header" >&5
3149 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3150 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3151   echo $ECHO_N "(cached) $ECHO_C" >&6
3152 else
3153   eval "$as_ac_Header=$ac_header_preproc"
3154 fi
3155 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3156 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3157
3158 fi
3159 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3160   cat >>confdefs.h <<_ACEOF
3161 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3162 _ACEOF
3163  ac_math_headers="yes"
3164 else
3165   ac_math_headers="no"
3166 fi
3167
3168 done
3169
3170 if test "$ac_math_headers" != yes; then
3171     { { echo "$as_me:$LINENO: error: \"math header file not found\"" >&5
3172 echo "$as_me: error: \"math header file not found\"" >&2;}
3173    { (exit 1); exit 1; }; }
3174 fi
3175
3176
3177 #dnl check for the gnu multiprecission (gmp) header file
3178
3179 #AC_CHECK_HEADERS(gmp.h, ac_gmp_headers="yes", ac_gmp_headers="no")
3180 #if test "$ac_gmp_headers" != yes; then
3181 #  dnl gmp header not found.
3182 #  AC_MSG_ERROR("GNU multiprecission gmp header file not found")
3183 #fi
3184
3185
3186 #AC_FUNC_OBSTACK
3187
3188
3189 for ac_header in obstack.h
3190 do
3191 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3192 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3193   echo "$as_me:$LINENO: checking for $ac_header" >&5
3194 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3195 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3196   echo $ECHO_N "(cached) $ECHO_C" >&6
3197 fi
3198 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3199 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3200 else
3201   # Is the header compilable?
3202 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3203 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3204 cat >conftest.$ac_ext <<_ACEOF
3205 #line $LINENO "configure"
3206 #include "confdefs.h"
3207 $ac_includes_default
3208 #include <$ac_header>
3209 _ACEOF
3210 rm -f conftest.$ac_objext
3211 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3212   (eval $ac_compile) 2>&5
3213   ac_status=$?
3214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3215   (exit $ac_status); } &&
3216          { ac_try='test -s conftest.$ac_objext'
3217   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3218   (eval $ac_try) 2>&5
3219   ac_status=$?
3220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3221   (exit $ac_status); }; }; then
3222   ac_header_compiler=yes
3223 else
3224   echo "$as_me: failed program was:" >&5
3225 cat conftest.$ac_ext >&5
3226 ac_header_compiler=no
3227 fi
3228 rm -f conftest.$ac_objext conftest.$ac_ext
3229 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3230 echo "${ECHO_T}$ac_header_compiler" >&6
3231
3232 # Is the header present?
3233 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3234 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3235 cat >conftest.$ac_ext <<_ACEOF
3236 #line $LINENO "configure"
3237 #include "confdefs.h"
3238 #include <$ac_header>
3239 _ACEOF
3240 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3241   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3242   ac_status=$?
3243   egrep -v '^ *\+' conftest.er1 >conftest.err
3244   rm -f conftest.er1
3245   cat conftest.err >&5
3246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3247   (exit $ac_status); } >/dev/null; then
3248   if test -s conftest.err; then
3249     ac_cpp_err=$ac_c_preproc_warn_flag
3250   else
3251     ac_cpp_err=
3252   fi
3253 else
3254   ac_cpp_err=yes
3255 fi
3256 if test -z "$ac_cpp_err"; then
3257   ac_header_preproc=yes
3258 else
3259   echo "$as_me: failed program was:" >&5
3260   cat conftest.$ac_ext >&5
3261   ac_header_preproc=no
3262 fi
3263 rm -f conftest.err conftest.$ac_ext
3264 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3265 echo "${ECHO_T}$ac_header_preproc" >&6
3266
3267 # So?  What about this header?
3268 case $ac_header_compiler:$ac_header_preproc in
3269   yes:no )
3270     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3271 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3272     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3273 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3274   no:yes )
3275     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3276 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3277     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3278 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3279     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3280 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3281 esac
3282 echo "$as_me:$LINENO: checking for $ac_header" >&5
3283 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3284 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3285   echo $ECHO_N "(cached) $ECHO_C" >&6
3286 else
3287   eval "$as_ac_Header=$ac_header_preproc"
3288 fi
3289 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3290 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3291
3292 fi
3293 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3294   cat >>confdefs.h <<_ACEOF
3295 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3296 _ACEOF
3297  ac_obstack_headers="yes"
3298 else
3299   ac_obstack_headers="no"
3300 fi
3301
3302 done
3303
3304 if test "$ac_obstack_headers" != yes; then
3305     { { echo "$as_me:$LINENO: error: \"obstack.h not found\"" >&5
3306 echo "$as_me: error: \"obstack.h not found\"" >&2;}
3307    { (exit 1); exit 1; }; }
3308 fi
3309
3310
3311
3312 for ac_header in alloca.h
3313 do
3314 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3315 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3316   echo "$as_me:$LINENO: checking for $ac_header" >&5
3317 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3318 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3319   echo $ECHO_N "(cached) $ECHO_C" >&6
3320 fi
3321 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3322 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3323 else
3324   # Is the header compilable?
3325 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3326 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3327 cat >conftest.$ac_ext <<_ACEOF
3328 #line $LINENO "configure"
3329 #include "confdefs.h"
3330 $ac_includes_default
3331 #include <$ac_header>
3332 _ACEOF
3333 rm -f conftest.$ac_objext
3334 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3335   (eval $ac_compile) 2>&5
3336   ac_status=$?
3337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3338   (exit $ac_status); } &&
3339          { ac_try='test -s conftest.$ac_objext'
3340   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3341   (eval $ac_try) 2>&5
3342   ac_status=$?
3343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3344   (exit $ac_status); }; }; then
3345   ac_header_compiler=yes
3346 else
3347   echo "$as_me: failed program was:" >&5
3348 cat conftest.$ac_ext >&5
3349 ac_header_compiler=no
3350 fi
3351 rm -f conftest.$ac_objext conftest.$ac_ext
3352 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3353 echo "${ECHO_T}$ac_header_compiler" >&6
3354
3355 # Is the header present?
3356 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3357 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3358 cat >conftest.$ac_ext <<_ACEOF
3359 #line $LINENO "configure"
3360 #include "confdefs.h"
3361 #include <$ac_header>
3362 _ACEOF
3363 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3364   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3365   ac_status=$?
3366   egrep -v '^ *\+' conftest.er1 >conftest.err
3367   rm -f conftest.er1
3368   cat conftest.err >&5
3369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3370   (exit $ac_status); } >/dev/null; then
3371   if test -s conftest.err; then
3372     ac_cpp_err=$ac_c_preproc_warn_flag
3373   else
3374     ac_cpp_err=
3375   fi
3376 else
3377   ac_cpp_err=yes
3378 fi
3379 if test -z "$ac_cpp_err"; then
3380   ac_header_preproc=yes
3381 else
3382   echo "$as_me: failed program was:" >&5
3383   cat conftest.$ac_ext >&5
3384   ac_header_preproc=no
3385 fi
3386 rm -f conftest.err conftest.$ac_ext
3387 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3388 echo "${ECHO_T}$ac_header_preproc" >&6
3389
3390 # So?  What about this header?
3391 case $ac_header_compiler:$ac_header_preproc in
3392   yes:no )
3393     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3394 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3395     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3396 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3397   no:yes )
3398     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3399 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3400     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3401 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3402     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3403 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3404 esac
3405 echo "$as_me:$LINENO: checking for $ac_header" >&5
3406 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3407 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3408   echo $ECHO_N "(cached) $ECHO_C" >&6
3409 else
3410   eval "$as_ac_Header=$ac_header_preproc"
3411 fi
3412 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3413 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3414
3415 fi
3416 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3417   cat >>confdefs.h <<_ACEOF
3418 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3419 _ACEOF
3420  ac_alloca_headers="yes"
3421 else
3422   ac_alloca_headers="no"
3423 fi
3424
3425 done
3426
3427 if test "$ac_alloca_headers" != yes; then
3428   if test "$ac_cv_header_stdc" == no; then
3429     { { echo "$as_me:$LINENO: error: \"alloca.h and stdlib.h not found\"" >&5
3430 echo "$as_me: error: \"alloca.h and stdlib.h not found\"" >&2;}
3431    { (exit 1); exit 1; }; }
3432   else
3433     cat >>confdefs.h <<\_ACEOF
3434 #define HAVE_ALLOCA_H 1
3435 _ACEOF
3436
3437   fi
3438 fi
3439
3440
3441
3442 if test "$enable_firm_jni" = yes; then
3443
3444 for ac_header in jni.h
3445 do
3446 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3447 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3448   echo "$as_me:$LINENO: checking for $ac_header" >&5
3449 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3450 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3451   echo $ECHO_N "(cached) $ECHO_C" >&6
3452 fi
3453 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3454 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3455 else
3456   # Is the header compilable?
3457 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3458 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3459 cat >conftest.$ac_ext <<_ACEOF
3460 #line $LINENO "configure"
3461 #include "confdefs.h"
3462 $ac_includes_default
3463 #include <$ac_header>
3464 _ACEOF
3465 rm -f conftest.$ac_objext
3466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3467   (eval $ac_compile) 2>&5
3468   ac_status=$?
3469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3470   (exit $ac_status); } &&
3471          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
3477   ac_header_compiler=yes
3478 else
3479   echo "$as_me: failed program was:" >&5
3480 cat conftest.$ac_ext >&5
3481 ac_header_compiler=no
3482 fi
3483 rm -f conftest.$ac_objext conftest.$ac_ext
3484 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3485 echo "${ECHO_T}$ac_header_compiler" >&6
3486
3487 # Is the header present?
3488 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3489 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3490 cat >conftest.$ac_ext <<_ACEOF
3491 #line $LINENO "configure"
3492 #include "confdefs.h"
3493 #include <$ac_header>
3494 _ACEOF
3495 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3496   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3497   ac_status=$?
3498   egrep -v '^ *\+' conftest.er1 >conftest.err
3499   rm -f conftest.er1
3500   cat conftest.err >&5
3501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3502   (exit $ac_status); } >/dev/null; then
3503   if test -s conftest.err; then
3504     ac_cpp_err=$ac_c_preproc_warn_flag
3505   else
3506     ac_cpp_err=
3507   fi
3508 else
3509   ac_cpp_err=yes
3510 fi
3511 if test -z "$ac_cpp_err"; then
3512   ac_header_preproc=yes
3513 else
3514   echo "$as_me: failed program was:" >&5
3515   cat conftest.$ac_ext >&5
3516   ac_header_preproc=no
3517 fi
3518 rm -f conftest.err conftest.$ac_ext
3519 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3520 echo "${ECHO_T}$ac_header_preproc" >&6
3521
3522 # So?  What about this header?
3523 case $ac_header_compiler:$ac_header_preproc in
3524   yes:no )
3525     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3526 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3527     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3528 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3529   no:yes )
3530     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3531 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3532     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3533 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3534     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3535 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3536 esac
3537 echo "$as_me:$LINENO: checking for $ac_header" >&5
3538 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3539 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3540   echo $ECHO_N "(cached) $ECHO_C" >&6
3541 else
3542   eval "$as_ac_Header=$ac_header_preproc"
3543 fi
3544 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3545 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3546
3547 fi
3548 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3549   cat >>confdefs.h <<_ACEOF
3550 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3551 _ACEOF
3552  ac_jni_headers="yes"
3553 else
3554   ac_jni_headers="no"
3555 fi
3556
3557 done
3558
3559   if test "$ac_jni_headers" != yes; then
3560     { { 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
3561 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;}
3562    { (exit 1); exit 1; }; }
3563   fi
3564 fi
3565
3566
3567
3568 #dnl check for the gnu multiprecission (gmp) library
3569
3570 #AC_CHECK_LIB(gmp, main, ac_gmp_library="yes", ac_gmp_library="no")
3571 #if test "$ac_gmp_library" != yes; then
3572 #  dnl gmp library not found.
3573 #  AC_MSG_ERROR("GNU multiprecission gmp library not found")
3574 #fi
3575
3576
3577 echo "$as_me:$LINENO: checking for main in -lm" >&5
3578 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
3579 if test "${ac_cv_lib_m_main+set}" = set; then
3580   echo $ECHO_N "(cached) $ECHO_C" >&6
3581 else
3582   ac_check_lib_save_LIBS=$LIBS
3583 LIBS="-lm  $LIBS"
3584 cat >conftest.$ac_ext <<_ACEOF
3585 #line $LINENO "configure"
3586 #include "confdefs.h"
3587
3588
3589 #ifdef F77_DUMMY_MAIN
3590 #  ifdef __cplusplus
3591      extern "C"
3592 #  endif
3593    int F77_DUMMY_MAIN() { return 1; }
3594 #endif
3595 int
3596 main ()
3597 {
3598 main ();
3599   ;
3600   return 0;
3601 }
3602 _ACEOF
3603 rm -f conftest.$ac_objext conftest$ac_exeext
3604 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3605   (eval $ac_link) 2>&5
3606   ac_status=$?
3607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3608   (exit $ac_status); } &&
3609          { ac_try='test -s conftest$ac_exeext'
3610   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3611   (eval $ac_try) 2>&5
3612   ac_status=$?
3613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3614   (exit $ac_status); }; }; then
3615   ac_cv_lib_m_main=yes
3616 else
3617   echo "$as_me: failed program was:" >&5
3618 cat conftest.$ac_ext >&5
3619 ac_cv_lib_m_main=no
3620 fi
3621 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3622 LIBS=$ac_check_lib_save_LIBS
3623 fi
3624 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
3625 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
3626 if test $ac_cv_lib_m_main = yes; then
3627   ac_m_library="yes"
3628 else
3629   ac_m_library="no"
3630 fi
3631
3632 if test "$ac_m_library" != yes; then
3633     { { echo "$as_me:$LINENO: error: \"standard math library not found\"" >&5
3634 echo "$as_me: error: \"standard math library not found\"" >&2;}
3635    { (exit 1); exit 1; }; }
3636 fi
3637
3638
3639 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
3640 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
3641 if test "${ac_cv_c_bigendian+set}" = set; then
3642   echo $ECHO_N "(cached) $ECHO_C" >&6
3643 else
3644   # See if sys/param.h defines the BYTE_ORDER macro.
3645 cat >conftest.$ac_ext <<_ACEOF
3646 #line $LINENO "configure"
3647 #include "confdefs.h"
3648 #include <sys/types.h>
3649 #include <sys/param.h>
3650
3651 #ifdef F77_DUMMY_MAIN
3652 #  ifdef __cplusplus
3653      extern "C"
3654 #  endif
3655    int F77_DUMMY_MAIN() { return 1; }
3656 #endif
3657 int
3658 main ()
3659 {
3660 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3661  bogus endian macros
3662 #endif
3663
3664   ;
3665   return 0;
3666 }
3667 _ACEOF
3668 rm -f conftest.$ac_objext
3669 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3670   (eval $ac_compile) 2>&5
3671   ac_status=$?
3672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3673   (exit $ac_status); } &&
3674          { ac_try='test -s conftest.$ac_objext'
3675   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3676   (eval $ac_try) 2>&5
3677   ac_status=$?
3678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3679   (exit $ac_status); }; }; then
3680   # It does; now see whether it defined to BIG_ENDIAN or not.
3681 cat >conftest.$ac_ext <<_ACEOF
3682 #line $LINENO "configure"
3683 #include "confdefs.h"
3684 #include <sys/types.h>
3685 #include <sys/param.h>
3686
3687 #ifdef F77_DUMMY_MAIN
3688 #  ifdef __cplusplus
3689      extern "C"
3690 #  endif
3691    int F77_DUMMY_MAIN() { return 1; }
3692 #endif
3693 int
3694 main ()
3695 {
3696 #if BYTE_ORDER != BIG_ENDIAN
3697  not big endian
3698 #endif
3699
3700   ;
3701   return 0;
3702 }
3703 _ACEOF
3704 rm -f conftest.$ac_objext
3705 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3706   (eval $ac_compile) 2>&5
3707   ac_status=$?
3708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3709   (exit $ac_status); } &&
3710          { ac_try='test -s conftest.$ac_objext'
3711   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3712   (eval $ac_try) 2>&5
3713   ac_status=$?
3714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3715   (exit $ac_status); }; }; then
3716   ac_cv_c_bigendian=yes
3717 else
3718   echo "$as_me: failed program was:" >&5
3719 cat conftest.$ac_ext >&5
3720 ac_cv_c_bigendian=no
3721 fi
3722 rm -f conftest.$ac_objext conftest.$ac_ext
3723 else
3724   echo "$as_me: failed program was:" >&5
3725 cat conftest.$ac_ext >&5
3726 # It does not; compile a test program.
3727 if test "$cross_compiling" = yes; then
3728   # try to guess the endianess by grep'ing values into an object file
3729   ac_cv_c_bigendian=unknown
3730   cat >conftest.$ac_ext <<_ACEOF
3731 #line $LINENO "configure"
3732 #include "confdefs.h"
3733 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
3734 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
3735 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
3736 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
3737 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
3738 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
3739 #ifdef F77_DUMMY_MAIN
3740 #  ifdef __cplusplus
3741      extern "C"
3742 #  endif
3743    int F77_DUMMY_MAIN() { return 1; }
3744 #endif
3745 int
3746 main ()
3747 {
3748  _ascii (); _ebcdic ();
3749   ;
3750   return 0;
3751 }
3752 _ACEOF
3753 rm -f conftest.$ac_objext
3754 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3755   (eval $ac_compile) 2>&5
3756   ac_status=$?
3757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3758   (exit $ac_status); } &&
3759          { ac_try='test -s conftest.$ac_objext'
3760   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3761   (eval $ac_try) 2>&5
3762   ac_status=$?
3763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3764   (exit $ac_status); }; }; then
3765   if fgrep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
3766   ac_cv_c_bigendian=yes
3767 fi
3768 if fgrep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
3769   if test "$ac_cv_c_bigendian" = unknown; then
3770     ac_cv_c_bigendian=no
3771   else
3772     # finding both strings is unlikely to happen, but who knows?
3773     ac_cv_c_bigendian=unknown
3774   fi
3775 fi
3776 else
3777   echo "$as_me: failed program was:" >&5
3778 cat conftest.$ac_ext >&5
3779 fi
3780 rm -f conftest.$ac_objext conftest.$ac_ext
3781 else
3782   cat >conftest.$ac_ext <<_ACEOF
3783 #line $LINENO "configure"
3784 #include "confdefs.h"
3785 int
3786 main ()
3787 {
3788   /* Are we little or big endian?  From Harbison&Steele.  */
3789   union
3790   {
3791     long l;
3792     char c[sizeof (long)];
3793   } u;
3794   u.l = 1;
3795   exit (u.c[sizeof (long) - 1] == 1);
3796 }
3797 _ACEOF
3798 rm -f conftest$ac_exeext
3799 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3800   (eval $ac_link) 2>&5
3801   ac_status=$?
3802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3803   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3804   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3805   (eval $ac_try) 2>&5
3806   ac_status=$?
3807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3808   (exit $ac_status); }; }; then
3809   ac_cv_c_bigendian=no
3810 else
3811   echo "$as_me: program exited with status $ac_status" >&5
3812 echo "$as_me: failed program was:" >&5
3813 cat conftest.$ac_ext >&5
3814 ( exit $ac_status )
3815 ac_cv_c_bigendian=yes
3816 fi
3817 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3818 fi
3819 fi
3820 rm -f conftest.$ac_objext conftest.$ac_ext
3821 fi
3822 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
3823 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
3824 case $ac_cv_c_bigendian in
3825   yes)
3826
3827 cat >>confdefs.h <<\_ACEOF
3828 #define WORDS_BIGENDIAN 1
3829 _ACEOF
3830  ;;
3831   no)
3832      ;;
3833   *)
3834     { { echo "$as_me:$LINENO: error: unknown endianess
3835 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
3836 echo "$as_me: error: unknown endianess
3837 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
3838    { (exit 1); exit 1; }; } ;;
3839 esac
3840
3841 echo "$as_me:$LINENO: checking for working long double with more range or precision than double" >&5
3842 echo $ECHO_N "checking for working long double with more range or precision than double... $ECHO_C" >&6
3843 if test "${ac_cv_c_long_double+set}" = set; then
3844   echo $ECHO_N "(cached) $ECHO_C" >&6
3845 else
3846   cat >conftest.$ac_ext <<_ACEOF
3847 #line $LINENO "configure"
3848 #include "confdefs.h"
3849 #include <float.h>
3850           long double foo = 0.0;
3851 #ifdef F77_DUMMY_MAIN
3852 #  ifdef __cplusplus
3853      extern "C"
3854 #  endif
3855    int F77_DUMMY_MAIN() { return 1; }
3856 #endif
3857 int
3858 main ()
3859 {
3860 static int test_array [1 - 2 * !(/* Using '|' rather than '||' catches a GCC 2.95.2 x86 bug.  */
3861           (DBL_MAX < LDBL_MAX) | (LDBL_EPSILON < DBL_EPSILON)
3862           | (DBL_MAX_EXP < LDBL_MAX_EXP) | (DBL_MANT_DIG < LDBL_MANT_DIG))];
3863 test_array [0] = 0
3864
3865   ;
3866   return 0;
3867 }
3868 _ACEOF
3869 rm -f conftest.$ac_objext
3870 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3871   (eval $ac_compile) 2>&5
3872   ac_status=$?
3873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3874   (exit $ac_status); } &&
3875          { ac_try='test -s conftest.$ac_objext'
3876   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3877   (eval $ac_try) 2>&5
3878   ac_status=$?
3879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3880   (exit $ac_status); }; }; then
3881   ac_cv_c_long_double=yes
3882 else
3883   echo "$as_me: failed program was:" >&5
3884 cat conftest.$ac_ext >&5
3885 ac_cv_c_long_double=no
3886 fi
3887 rm -f conftest.$ac_objext conftest.$ac_ext
3888 fi
3889 echo "$as_me:$LINENO: result: $ac_cv_c_long_double" >&5
3890 echo "${ECHO_T}$ac_cv_c_long_double" >&6
3891 if test $ac_cv_c_long_double = yes; then
3892
3893 cat >>confdefs.h <<\_ACEOF
3894 #define HAVE_LONG_DOUBLE 1
3895 _ACEOF
3896
3897 fi
3898
3899
3900
3901
3902 echo "$as_me:$LINENO: checking for strerror" >&5
3903 echo $ECHO_N "checking for strerror... $ECHO_C" >&6
3904 if test "${ac_cv_func_strerror+set}" = set; then
3905   echo $ECHO_N "(cached) $ECHO_C" >&6
3906 else
3907   cat >conftest.$ac_ext <<_ACEOF
3908 #line $LINENO "configure"
3909 #include "confdefs.h"
3910 /* System header to define __stub macros and hopefully few prototypes,
3911     which can conflict with char strerror (); below.  */
3912 #include <assert.h>
3913 /* Override any gcc2 internal prototype to avoid an error.  */
3914 #ifdef __cplusplus
3915 extern "C"
3916 #endif
3917 /* We use char because int might match the return type of a gcc2
3918    builtin and then its argument prototype would still apply.  */
3919 char strerror ();
3920 char (*f) ();
3921
3922 #ifdef F77_DUMMY_MAIN
3923 #  ifdef __cplusplus
3924      extern "C"
3925 #  endif
3926    int F77_DUMMY_MAIN() { return 1; }
3927 #endif
3928 int
3929 main ()
3930 {
3931 /* The GNU C library defines this for functions which it implements
3932     to always fail with ENOSYS.  Some functions are actually named
3933     something starting with __ and the normal name is an alias.  */
3934 #if defined (__stub_strerror) || defined (__stub___strerror)
3935 choke me
3936 #else
3937 f = strerror;
3938 #endif
3939
3940   ;
3941   return 0;
3942 }
3943 _ACEOF
3944 rm -f conftest.$ac_objext conftest$ac_exeext
3945 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3946   (eval $ac_link) 2>&5
3947   ac_status=$?
3948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3949   (exit $ac_status); } &&
3950          { ac_try='test -s conftest$ac_exeext'
3951   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3952   (eval $ac_try) 2>&5
3953   ac_status=$?
3954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3955   (exit $ac_status); }; }; then
3956   ac_cv_func_strerror=yes
3957 else
3958   echo "$as_me: failed program was:" >&5
3959 cat conftest.$ac_ext >&5
3960 ac_cv_func_strerror=no
3961 fi
3962 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3963 fi
3964 echo "$as_me:$LINENO: result: $ac_cv_func_strerror" >&5
3965 echo "${ECHO_T}$ac_cv_func_strerror" >&6
3966 if test $ac_cv_func_strerror = yes; then
3967   :
3968 else
3969   { { echo "$as_me:$LINENO: error: \"need strerror function\"" >&5
3970 echo "$as_me: error: \"need strerror function\"" >&2;}
3971    { (exit 1); exit 1; }; }
3972
3973 fi
3974
3975
3976
3977
3978
3979 ac_config_files="$ac_config_files $ac_output_file"
3980 ac_config_commands="$ac_config_commands default"
3981 cat >confcache <<\_ACEOF
3982 # This file is a shell script that caches the results of configure
3983 # tests run on this system so they can be shared between configure
3984 # scripts and configure runs, see configure's option --config-cache.
3985 # It is not useful on other systems.  If it contains results you don't
3986 # want to keep, you may remove or edit it.
3987 #
3988 # config.status only pays attention to the cache file if you give it
3989 # the --recheck option to rerun configure.
3990 #
3991 # `ac_cv_env_foo' variables (set or unset) will be overriden when
3992 # loading this file, other *unset* `ac_cv_foo' will be assigned the
3993 # following values.
3994
3995 _ACEOF
3996
3997 # The following way of writing the cache mishandles newlines in values,
3998 # but we know of no workaround that is simple, portable, and efficient.
3999 # So, don't put newlines in cache variables' values.
4000 # Ultrix sh set writes to stderr and can't be redirected directly,
4001 # and sets the high bit in the cache file unless we assign to the vars.
4002 {
4003   (set) 2>&1 |
4004     case `(ac_space=' '; set | grep ac_space) 2>&1` in
4005     *ac_space=\ *)
4006       # `set' does not quote correctly, so add quotes (double-quote
4007       # substitution turns \\\\ into \\, and sed turns \\ into \).
4008       sed -n \
4009         "s/'/'\\\\''/g;
4010           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4011       ;;
4012     *)
4013       # `set' quotes correctly as required by POSIX, so do not add quotes.
4014       sed -n \
4015         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4016       ;;
4017     esac;
4018 } |
4019   sed '
4020      t clear
4021      : clear
4022      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4023      t end
4024      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4025      : end' >>confcache
4026 if cmp -s $cache_file confcache; then :; else
4027   if test -w $cache_file; then
4028     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4029     cat confcache >$cache_file
4030   else
4031     echo "not updating unwritable cache $cache_file"
4032   fi
4033 fi
4034 rm -f confcache
4035
4036 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4037 # Let make expand exec_prefix.
4038 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4039
4040 # VPATH may cause trouble with some makes, so we remove $(srcdir),
4041 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
4042 # trailing colons and then remove the whole line if VPATH becomes empty
4043 # (actually we leave an empty line to preserve line numbers).
4044 if test "x$srcdir" = x.; then
4045   ac_vpsub='/^[         ]*VPATH[        ]*=/{
4046 s/:*\$(srcdir):*/:/;
4047 s/:*\${srcdir}:*/:/;
4048 s/:*@srcdir@:*/:/;
4049 s/^\([^=]*=[    ]*\):*/\1/;
4050 s/:*$//;
4051 s/^[^=]*=[      ]*$//;
4052 }'
4053 fi
4054
4055 DEFS=-DHAVE_CONFIG_H
4056
4057
4058 : ${CONFIG_STATUS=./config.status}
4059 ac_clean_files_save=$ac_clean_files
4060 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4061 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
4062 echo "$as_me: creating $CONFIG_STATUS" >&6;}
4063 cat >$CONFIG_STATUS <<_ACEOF
4064 #! $SHELL
4065 # Generated by $as_me.
4066 # Run this file to recreate the current configuration.
4067 # Compiler output produced by configure, useful for debugging
4068 # configure, is in config.log if it exists.
4069
4070 debug=false
4071 SHELL=\${CONFIG_SHELL-$SHELL}
4072 _ACEOF
4073
4074 cat >>$CONFIG_STATUS <<\_ACEOF
4075
4076 ## --------------------- ##
4077 ## M4sh Initialization.  ##
4078 ## --------------------- ##
4079
4080 # Be Bourne compatible
4081 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
4082   emulate sh
4083   NULLCMD=:
4084 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
4085   set -o posix
4086 fi
4087
4088 # NLS nuisances.
4089 # Support unset when possible.
4090 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
4091   as_unset=unset
4092 else
4093   as_unset=false
4094 fi
4095
4096 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
4097     { $as_unset LANG || test "${LANG+set}" != set; } ||
4098       { LANG=C; export LANG; }
4099 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
4100     { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
4101       { LC_ALL=C; export LC_ALL; }
4102 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
4103     { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
4104       { LC_TIME=C; export LC_TIME; }
4105 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
4106     { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
4107       { LC_CTYPE=C; export LC_CTYPE; }
4108 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
4109     { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
4110       { LANGUAGE=C; export LANGUAGE; }
4111 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
4112     { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
4113       { LC_COLLATE=C; export LC_COLLATE; }
4114 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
4115     { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
4116       { LC_NUMERIC=C; export LC_NUMERIC; }
4117 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
4118     { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
4119       { LC_MESSAGES=C; export LC_MESSAGES; }
4120
4121
4122 # Name of the executable.
4123 as_me=`(basename "$0") 2>/dev/null ||
4124 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4125          X"$0" : 'X\(//\)$' \| \
4126          X"$0" : 'X\(/\)$' \| \
4127          .     : '\(.\)' 2>/dev/null ||
4128 echo X/"$0" |
4129     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
4130           /^X\/\(\/\/\)$/{ s//\1/; q; }
4131           /^X\/\(\/\).*/{ s//\1/; q; }
4132           s/.*/./; q'`
4133
4134 # PATH needs CR, and LINENO needs CR and PATH.
4135 # Avoid depending upon Character Ranges.
4136 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
4137 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4138 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
4139 as_cr_digits='0123456789'
4140 as_cr_alnum=$as_cr_Letters$as_cr_digits
4141
4142 # The user is always right.
4143 if test "${PATH_SEPARATOR+set}" != set; then
4144   echo "#! /bin/sh" >conftest.sh
4145   echo  "exit 0"   >>conftest.sh
4146   chmod +x conftest.sh
4147   if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
4148     PATH_SEPARATOR=';'
4149   else
4150     PATH_SEPARATOR=:
4151   fi
4152   rm -f conftest.sh
4153 fi
4154
4155
4156   as_lineno_1=$LINENO
4157   as_lineno_2=$LINENO
4158   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4159   test "x$as_lineno_1" != "x$as_lineno_2" &&
4160   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
4161   # Find who we are.  Look in the path if we contain no path at all
4162   # relative or not.
4163   case $0 in
4164     *[\\/]* ) as_myself=$0 ;;
4165     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4166 for as_dir in $PATH
4167 do
4168   IFS=$as_save_IFS
4169   test -z "$as_dir" && as_dir=.
4170   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4171 done
4172
4173        ;;
4174   esac
4175   # We did not find ourselves, most probably we were run as `sh COMMAND'
4176   # in which case we are not to be found in the path.
4177   if test "x$as_myself" = x; then
4178     as_myself=$0
4179   fi
4180   if test ! -f "$as_myself"; then
4181     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
4182 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
4183    { (exit 1); exit 1; }; }
4184   fi
4185   case $CONFIG_SHELL in
4186   '')
4187     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4188 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
4189 do
4190   IFS=$as_save_IFS
4191   test -z "$as_dir" && as_dir=.
4192   for as_base in sh bash ksh sh5; do
4193          case $as_dir in
4194          /*)
4195            if ("$as_dir/$as_base" -c '
4196   as_lineno_1=$LINENO
4197   as_lineno_2=$LINENO
4198   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4199   test "x$as_lineno_1" != "x$as_lineno_2" &&
4200   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
4201              CONFIG_SHELL=$as_dir/$as_base
4202              export CONFIG_SHELL
4203              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
4204            fi;;
4205          esac
4206        done
4207 done
4208 ;;
4209   esac
4210
4211   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
4212   # uniformly replaced by the line number.  The first 'sed' inserts a
4213   # line-number line before each line; the second 'sed' does the real
4214   # work.  The second script uses 'N' to pair each line-number line
4215   # with the numbered line, and appends trailing '-' during
4216   # substitution so that $LINENO is not a special case at line end.
4217   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
4218   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
4219   sed '=' <$as_myself |
4220     sed '
4221       N
4222       s,$,-,
4223       : loop
4224       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
4225       t loop
4226       s,-$,,
4227       s,^['$as_cr_digits']*\n,,
4228     ' >$as_me.lineno &&
4229   chmod +x $as_me.lineno ||
4230     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
4231 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
4232    { (exit 1); exit 1; }; }
4233
4234   # Don't try to exec as it changes $[0], causing all sort of problems
4235   # (the dirname of $[0] is not the place where we might find the
4236   # original and so on.  Autoconf is especially sensible to this).
4237   . ./$as_me.lineno
4238   # Exit status is that of the last command.
4239   exit
4240 }
4241
4242
4243 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
4244   *c*,-n*) ECHO_N= ECHO_C='
4245 ' ECHO_T='      ' ;;
4246   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
4247   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
4248 esac
4249
4250 if expr a : '\(a\)' >/dev/null 2>&1; then
4251   as_expr=expr
4252 else
4253   as_expr=false
4254 fi
4255
4256 rm -f conf$$ conf$$.exe conf$$.file
4257 echo >conf$$.file
4258 if ln -s conf$$.file conf$$ 2>/dev/null; then
4259   # We could just check for DJGPP; but this test a) works b) is more generic
4260   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
4261   if test -f conf$$.exe; then
4262     # Don't use ln at all; we don't have any links
4263     as_ln_s='cp -p'
4264   else
4265     as_ln_s='ln -s'
4266   fi
4267 elif ln conf$$.file conf$$ 2>/dev/null; then
4268   as_ln_s=ln
4269 else
4270   as_ln_s='cp -p'
4271 fi
4272 rm -f conf$$ conf$$.exe conf$$.file
4273
4274 as_executable_p="test -f"
4275
4276 # Sed expression to map a string onto a valid CPP name.
4277 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
4278
4279 # Sed expression to map a string onto a valid variable name.
4280 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
4281
4282
4283 # IFS
4284 # We need space, tab and new line, in precisely that order.
4285 as_nl='
4286 '
4287 IFS="   $as_nl"
4288
4289 # CDPATH.
4290 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
4291
4292 exec 6>&1
4293
4294 # Open the log real soon, to keep \$[0] and so on meaningful, and to
4295 # report actual input values of CONFIG_FILES etc. instead of their
4296 # values after options handling.  Logging --version etc. is OK.
4297 exec 5>>config.log
4298 {
4299   echo
4300   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4301 ## Running $as_me. ##
4302 _ASBOX
4303 } >&5
4304 cat >&5 <<_CSEOF
4305
4306 This file was extended by libfirm $as_me 0.3.0, which was
4307 generated by GNU Autoconf 2.53.  Invocation command line was
4308
4309   CONFIG_FILES    = $CONFIG_FILES
4310   CONFIG_HEADERS  = $CONFIG_HEADERS
4311   CONFIG_LINKS    = $CONFIG_LINKS
4312   CONFIG_COMMANDS = $CONFIG_COMMANDS
4313   $ $0 $@
4314
4315 _CSEOF
4316 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
4317 echo >&5
4318 _ACEOF
4319
4320 # Files that config.status was made for.
4321 if test -n "$ac_config_files"; then
4322   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
4323 fi
4324
4325 if test -n "$ac_config_headers"; then
4326   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
4327 fi
4328
4329 if test -n "$ac_config_links"; then
4330   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
4331 fi
4332
4333 if test -n "$ac_config_commands"; then
4334   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
4335 fi
4336
4337 cat >>$CONFIG_STATUS <<\_ACEOF
4338
4339 ac_cs_usage="\
4340 \`$as_me' instantiates files from templates according to the
4341 current configuration.
4342
4343 Usage: $0 [OPTIONS] [FILE]...
4344
4345   -h, --help       print this help, then exit
4346   -V, --version    print version number, then exit
4347   -d, --debug      don't remove temporary files
4348       --recheck    update $as_me by reconfiguring in the same conditions
4349   --file=FILE[:TEMPLATE]
4350                    instantiate the configuration file FILE
4351   --header=FILE[:TEMPLATE]
4352                    instantiate the configuration header FILE
4353
4354 Configuration files:
4355 $config_files
4356
4357 Configuration headers:
4358 $config_headers
4359
4360 Configuration commands:
4361 $config_commands
4362
4363 Report bugs to <bug-autoconf@gnu.org>."
4364 _ACEOF
4365
4366 cat >>$CONFIG_STATUS <<_ACEOF
4367 ac_cs_version="\\
4368 libfirm config.status 0.3.0
4369 configured by $0, generated by GNU Autoconf 2.53,
4370   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
4371
4372 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
4373 Free Software Foundation, Inc.
4374 This config.status script is free software; the Free Software Foundation
4375 gives unlimited permission to copy, distribute and modify it."
4376 srcdir=$srcdir
4377 INSTALL="$INSTALL"
4378 _ACEOF
4379
4380 cat >>$CONFIG_STATUS <<\_ACEOF
4381 # If no file are specified by the user, then we need to provide default
4382 # value.  By we need to know if files were specified by the user.
4383 ac_need_defaults=:
4384 while test $# != 0
4385 do
4386   case $1 in
4387   --*=*)
4388     ac_option=`expr "x$1" : 'x\([^=]*\)='`
4389     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
4390     shift
4391     set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
4392     shift
4393     ;;
4394   -*);;
4395   *) # This is not an option, so the user has probably given explicit
4396      # arguments.
4397      ac_need_defaults=false;;
4398   esac
4399
4400   case $1 in
4401   # Handling of the options.
4402 _ACEOF
4403 cat >>$CONFIG_STATUS <<_ACEOF
4404   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4405     echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
4406     exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
4407 _ACEOF
4408 cat >>$CONFIG_STATUS <<\_ACEOF
4409   --version | --vers* | -V )
4410     echo "$ac_cs_version"; exit 0 ;;
4411   --he | --h)
4412     # Conflict between --help and --header
4413     { { echo "$as_me:$LINENO: error: ambiguous option: $1
4414 Try \`$0 --help' for more information." >&5
4415 echo "$as_me: error: ambiguous option: $1
4416 Try \`$0 --help' for more information." >&2;}
4417    { (exit 1); exit 1; }; };;
4418   --help | --hel | -h )
4419     echo "$ac_cs_usage"; exit 0 ;;
4420   --debug | --d* | -d )
4421     debug=: ;;
4422   --file | --fil | --fi | --f )
4423     shift
4424     CONFIG_FILES="$CONFIG_FILES $1"
4425     ac_need_defaults=false;;
4426   --header | --heade | --head | --hea )
4427     shift
4428     CONFIG_HEADERS="$CONFIG_HEADERS $1"
4429     ac_need_defaults=false;;
4430
4431   # This is an error.
4432   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
4433 Try \`$0 --help' for more information." >&5
4434 echo "$as_me: error: unrecognized option: $1
4435 Try \`$0 --help' for more information." >&2;}
4436    { (exit 1); exit 1; }; } ;;
4437
4438   *) ac_config_targets="$ac_config_targets $1" ;;
4439
4440   esac
4441   shift
4442 done
4443
4444 _ACEOF
4445
4446
4447
4448
4449
4450 cat >>$CONFIG_STATUS <<\_ACEOF
4451 for ac_config_target in $ac_config_targets
4452 do
4453   case "$ac_config_target" in
4454   # Handling of arguments.
4455   "$ac_output_file" ) CONFIG_FILES="$CONFIG_FILES $ac_output_file" ;;
4456   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
4457   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
4458   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
4459 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
4460    { (exit 1); exit 1; }; };;
4461   esac
4462 done
4463
4464 # If the user did not use the arguments to specify the items to instantiate,
4465 # then the envvar interface is used.  Set only those that are not.
4466 # We use the long form for the default assignment because of an extremely
4467 # bizarre bug on SunOS 4.1.3.
4468 if $ac_need_defaults; then
4469   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
4470   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
4471   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
4472 fi
4473
4474 # Create a temporary directory, and hook for its removal unless debugging.
4475 $debug ||
4476 {
4477   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
4478   trap '{ (exit 1); exit 1; }' 1 2 13 15
4479 }
4480
4481 # Create a (secure) tmp directory for tmp files.
4482 : ${TMPDIR=/tmp}
4483 {
4484   tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
4485   test -n "$tmp" && test -d "$tmp"
4486 }  ||
4487 {
4488   tmp=$TMPDIR/cs$$-$RANDOM
4489   (umask 077 && mkdir $tmp)
4490 } ||
4491 {
4492    echo "$me: cannot create a temporary directory in $TMPDIR" >&2
4493    { (exit 1); exit 1; }
4494 }
4495
4496 _ACEOF
4497
4498 cat >>$CONFIG_STATUS <<_ACEOF
4499
4500 #
4501 # CONFIG_FILES section.
4502 #
4503
4504 # No need to generate the scripts if there are no CONFIG_FILES.
4505 # This happens for instance when ./config.status config.h
4506 if test -n "\$CONFIG_FILES"; then
4507   # Protect against being on the right side of a sed subst in config.status.
4508   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
4509    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
4510 s,@SHELL@,$SHELL,;t t
4511 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
4512 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
4513 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
4514 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
4515 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
4516 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
4517 s,@exec_prefix@,$exec_prefix,;t t
4518 s,@prefix@,$prefix,;t t
4519 s,@program_transform_name@,$program_transform_name,;t t
4520 s,@bindir@,$bindir,;t t
4521 s,@sbindir@,$sbindir,;t t
4522 s,@libexecdir@,$libexecdir,;t t
4523 s,@datadir@,$datadir,;t t
4524 s,@sysconfdir@,$sysconfdir,;t t
4525 s,@sharedstatedir@,$sharedstatedir,;t t
4526 s,@localstatedir@,$localstatedir,;t t
4527 s,@libdir@,$libdir,;t t
4528 s,@includedir@,$includedir,;t t
4529 s,@oldincludedir@,$oldincludedir,;t t
4530 s,@infodir@,$infodir,;t t
4531 s,@mandir@,$mandir,;t t
4532 s,@build_alias@,$build_alias,;t t
4533 s,@host_alias@,$host_alias,;t t
4534 s,@target_alias@,$target_alias,;t t
4535 s,@DEFS@,$DEFS,;t t
4536 s,@ECHO_C@,$ECHO_C,;t t
4537 s,@ECHO_N@,$ECHO_N,;t t
4538 s,@ECHO_T@,$ECHO_T,;t t
4539 s,@LIBS@,$LIBS,;t t
4540 s,@libfirm_conf_env@,$libfirm_conf_env,;t t
4541 s,@enable_debug_libfirm@,$enable_debug_libfirm,;t t
4542 s,@enable_gcc_inline@,$enable_gcc_inline,;t t
4543 s,@enable_profile_libfirm@,$enable_profile_libfirm,;t t
4544 s,@enable_auto_documentation@,$enable_auto_documentation,;t t
4545 s,@enable_firm_jni@,$enable_firm_jni,;t t
4546 s,@disable_libiberty@,$disable_libiberty,;t t
4547 s,@CC@,$CC,;t t
4548 s,@CFLAGS@,$CFLAGS,;t t
4549 s,@LDFLAGS@,$LDFLAGS,;t t
4550 s,@CPPFLAGS@,$CPPFLAGS,;t t
4551 s,@ac_ct_CC@,$ac_ct_CC,;t t
4552 s,@EXEEXT@,$EXEEXT,;t t
4553 s,@OBJEXT@,$OBJEXT,;t t
4554 s,@LD@,$LD,;t t
4555 s,@ac_ct_LD@,$ac_ct_LD,;t t
4556 s,@libfirm_cv_prog_ld_r@,$libfirm_cv_prog_ld_r,;t t
4557 s,@AR@,$AR,;t t
4558 s,@TAR@,$TAR,;t t
4559 s,@RANLIB@,$RANLIB,;t t
4560 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
4561 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
4562 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
4563 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
4564 s,@LN_S@,$LN_S,;t t
4565 s,@DOXYGEN@,$DOXYGEN,;t t
4566 s,@DOT@,$DOT,;t t
4567 s,@JAVAC@,$JAVAC,;t t
4568 s,@JAVAH@,$JAVAH,;t t
4569 s,@CPP@,$CPP,;t t
4570 CEOF
4571
4572 _ACEOF
4573
4574   cat >>$CONFIG_STATUS <<\_ACEOF
4575   # Split the substitutions into bite-sized pieces for seds with
4576   # small command number limits, like on Digital OSF/1 and HP-UX.
4577   ac_max_sed_lines=48
4578   ac_sed_frag=1 # Number of current file.
4579   ac_beg=1 # First line for current file.
4580   ac_end=$ac_max_sed_lines # Line after last line for current file.
4581   ac_more_lines=:
4582   ac_sed_cmds=
4583   while $ac_more_lines; do
4584     if test $ac_beg -gt 1; then
4585       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4586     else
4587       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4588     fi
4589     if test ! -s $tmp/subs.frag; then
4590       ac_more_lines=false
4591     else
4592       # The purpose of the label and of the branching condition is to
4593       # speed up the sed processing (if there are no `@' at all, there
4594       # is no need to browse any of the substitutions).
4595       # These are the two extra sed commands mentioned above.
4596       (echo ':t
4597   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
4598       if test -z "$ac_sed_cmds"; then
4599         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
4600       else
4601         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
4602       fi
4603       ac_sed_frag=`expr $ac_sed_frag + 1`
4604       ac_beg=$ac_end
4605       ac_end=`expr $ac_end + $ac_max_sed_lines`
4606     fi
4607   done
4608   if test -z "$ac_sed_cmds"; then
4609     ac_sed_cmds=cat
4610   fi
4611 fi # test -n "$CONFIG_FILES"
4612
4613 _ACEOF
4614 cat >>$CONFIG_STATUS <<\_ACEOF
4615 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
4616   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4617   case $ac_file in
4618   - | *:- | *:-:* ) # input from stdin
4619         cat >$tmp/stdin
4620         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4621         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4622   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4623         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4624   * )   ac_file_in=$ac_file.in ;;
4625   esac
4626
4627   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
4628   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
4629 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4630          X"$ac_file" : 'X\(//\)[^/]' \| \
4631          X"$ac_file" : 'X\(//\)$' \| \
4632          X"$ac_file" : 'X\(/\)' \| \
4633          .     : '\(.\)' 2>/dev/null ||
4634 echo X"$ac_file" |
4635     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4636           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4637           /^X\(\/\/\)$/{ s//\1/; q; }
4638           /^X\(\/\).*/{ s//\1/; q; }
4639           s/.*/./; q'`
4640   { case "$ac_dir" in
4641   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
4642   *)                      as_incr_dir=.;;
4643 esac
4644 as_dummy="$ac_dir"
4645 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
4646   case $as_mkdir_dir in
4647     # Skip DOS drivespec
4648     ?:) as_incr_dir=$as_mkdir_dir ;;
4649     *)
4650       as_incr_dir=$as_incr_dir/$as_mkdir_dir
4651       test -d "$as_incr_dir" ||
4652         mkdir "$as_incr_dir" ||
4653         { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
4654 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
4655    { (exit 1); exit 1; }; }
4656     ;;
4657   esac
4658 done; }
4659
4660   ac_builddir=.
4661
4662 if test "$ac_dir" != .; then
4663   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
4664   # A "../" for each directory in $ac_dir_suffix.
4665   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
4666 else
4667   ac_dir_suffix= ac_top_builddir=
4668 fi
4669
4670 case $srcdir in
4671   .)  # No --srcdir option.  We are building in place.
4672     ac_srcdir=.
4673     if test -z "$ac_top_builddir"; then
4674        ac_top_srcdir=.
4675     else
4676        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
4677     fi ;;
4678   [\\/]* | ?:[\\/]* )  # Absolute path.
4679     ac_srcdir=$srcdir$ac_dir_suffix;
4680     ac_top_srcdir=$srcdir ;;
4681   *) # Relative path.
4682     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
4683     ac_top_srcdir=$ac_top_builddir$srcdir ;;
4684 esac
4685 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
4686 # absolute.
4687 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
4688 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
4689 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
4690 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
4691
4692
4693   case $INSTALL in
4694   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
4695   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
4696   esac
4697
4698   if test x"$ac_file" != x-; then
4699     { echo "$as_me:$LINENO: creating $ac_file" >&5
4700 echo "$as_me: creating $ac_file" >&6;}
4701     rm -f "$ac_file"
4702   fi
4703   # Let's still pretend it is `configure' which instantiates (i.e., don't
4704   # use $as_me), people would be surprised to read:
4705   #    /* config.h.  Generated by config.status.  */
4706   if test x"$ac_file" = x-; then
4707     configure_input=
4708   else
4709     configure_input="$ac_file.  "
4710   fi
4711   configure_input=$configure_input"Generated from `echo $ac_file_in |
4712                                      sed 's,.*/,,'` by configure."
4713
4714   # First look for the input files in the build tree, otherwise in the
4715   # src tree.
4716   ac_file_inputs=`IFS=:
4717     for f in $ac_file_in; do
4718       case $f in
4719       -) echo $tmp/stdin ;;
4720       [\\/$]*)
4721          # Absolute (can't be DOS-style, as IFS=:)
4722          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4723 echo "$as_me: error: cannot find input file: $f" >&2;}
4724    { (exit 1); exit 1; }; }
4725          echo $f;;
4726       *) # Relative
4727          if test -f "$f"; then
4728            # Build tree
4729            echo $f
4730          elif test -f "$srcdir/$f"; then
4731            # Source tree
4732            echo $srcdir/$f
4733          else
4734            # /dev/null tree
4735            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4736 echo "$as_me: error: cannot find input file: $f" >&2;}
4737    { (exit 1); exit 1; }; }
4738          fi;;
4739       esac
4740     done` || { (exit 1); exit 1; }
4741 _ACEOF
4742 cat >>$CONFIG_STATUS <<_ACEOF
4743   sed "$ac_vpsub
4744 $extrasub
4745 _ACEOF
4746 cat >>$CONFIG_STATUS <<\_ACEOF
4747 :t
4748 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
4749 s,@configure_input@,$configure_input,;t t
4750 s,@srcdir@,$ac_srcdir,;t t
4751 s,@abs_srcdir@,$ac_abs_srcdir,;t t
4752 s,@top_srcdir@,$ac_top_srcdir,;t t
4753 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
4754 s,@builddir@,$ac_builddir,;t t
4755 s,@abs_builddir@,$ac_abs_builddir,;t t
4756 s,@top_builddir@,$ac_top_builddir,;t t
4757 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
4758 s,@INSTALL@,$ac_INSTALL,;t t
4759 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
4760   rm -f $tmp/stdin
4761   if test x"$ac_file" != x-; then
4762     mv $tmp/out $ac_file
4763   else
4764     cat $tmp/out
4765     rm -f $tmp/out
4766   fi
4767
4768 done
4769 _ACEOF
4770 cat >>$CONFIG_STATUS <<\_ACEOF
4771
4772 #
4773 # CONFIG_HEADER section.
4774 #
4775
4776 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4777 # NAME is the cpp macro being defined and VALUE is the value it is being given.
4778 #
4779 # ac_d sets the value in "#define NAME VALUE" lines.
4780 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
4781 ac_dB='[        ].*$,\1#\2'
4782 ac_dC=' '
4783 ac_dD=',;t'
4784 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4785 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
4786 ac_uB='$,\1#\2define\3'
4787 ac_uC=' '
4788 ac_uD=',;t'
4789
4790 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
4791   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4792   case $ac_file in
4793   - | *:- | *:-:* ) # input from stdin
4794         cat >$tmp/stdin
4795         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4796         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4797   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4798         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4799   * )   ac_file_in=$ac_file.in ;;
4800   esac
4801
4802   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
4803 echo "$as_me: creating $ac_file" >&6;}
4804
4805   # First look for the input files in the build tree, otherwise in the
4806   # src tree.
4807   ac_file_inputs=`IFS=:
4808     for f in $ac_file_in; do
4809       case $f in
4810       -) echo $tmp/stdin ;;
4811       [\\/$]*)
4812          # Absolute (can't be DOS-style, as IFS=:)
4813          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4814 echo "$as_me: error: cannot find input file: $f" >&2;}
4815    { (exit 1); exit 1; }; }
4816          echo $f;;
4817       *) # Relative
4818          if test -f "$f"; then
4819            # Build tree
4820            echo $f
4821          elif test -f "$srcdir/$f"; then
4822            # Source tree
4823            echo $srcdir/$f
4824          else
4825            # /dev/null tree
4826            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4827 echo "$as_me: error: cannot find input file: $f" >&2;}
4828    { (exit 1); exit 1; }; }
4829          fi;;
4830       esac
4831     done` || { (exit 1); exit 1; }
4832   # Remove the trailing spaces.
4833   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
4834
4835 _ACEOF
4836
4837 # Transform confdefs.h into two sed scripts, `conftest.defines' and
4838 # `conftest.undefs', that substitutes the proper values into
4839 # config.h.in to produce config.h.  The first handles `#define'
4840 # templates, and the second `#undef' templates.
4841 # And first: Protect against being on the right side of a sed subst in
4842 # config.status.  Protect against being in an unquoted here document
4843 # in config.status.
4844 rm -f conftest.defines conftest.undefs
4845 # Using a here document instead of a string reduces the quoting nightmare.
4846 # Putting comments in sed scripts is not portable.
4847 #
4848 # `end' is used to avoid that the second main sed command (meant for
4849 # 0-ary CPP macros) applies to n-ary macro definitions.
4850 # See the Autoconf documentation for `clear'.
4851 cat >confdef2sed.sed <<\_ACEOF
4852 s/[\\&,]/\\&/g
4853 s,[\\$`],\\&,g
4854 t clear
4855 : clear
4856 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
4857 t end
4858 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
4859 : end
4860 _ACEOF
4861 # If some macros were called several times there might be several times
4862 # the same #defines, which is useless.  Nevertheless, we may not want to
4863 # sort them, since we want the *last* AC-DEFINE to be honored.
4864 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
4865 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
4866 rm -f confdef2sed.sed
4867
4868 # This sed command replaces #undef with comments.  This is necessary, for
4869 # example, in the case of _POSIX_SOURCE, which is predefined and required
4870 # on some systems where configure will not decide to define it.
4871 cat >>conftest.undefs <<\_ACEOF
4872 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
4873 _ACEOF
4874
4875 # Break up conftest.defines because some shells have a limit on the size
4876 # of here documents, and old seds have small limits too (100 cmds).
4877 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
4878 echo '  if egrep "^[    ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
4879 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
4880 echo '  :' >>$CONFIG_STATUS
4881 rm -f conftest.tail
4882 while grep . conftest.defines >/dev/null
4883 do
4884   # Write a limited-size here document to $tmp/defines.sed.
4885   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
4886   # Speed up: don't consider the non `#define' lines.
4887   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
4888   # Work around the forget-to-reset-the-flag bug.
4889   echo 't clr' >>$CONFIG_STATUS
4890   echo ': clr' >>$CONFIG_STATUS
4891   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
4892   echo 'CEOF
4893   sed -f $tmp/defines.sed $tmp/in >$tmp/out
4894   rm -f $tmp/in
4895   mv $tmp/out $tmp/in
4896 ' >>$CONFIG_STATUS
4897   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
4898   rm -f conftest.defines
4899   mv conftest.tail conftest.defines
4900 done
4901 rm -f conftest.defines
4902 echo '  fi # egrep' >>$CONFIG_STATUS
4903 echo >>$CONFIG_STATUS
4904
4905 # Break up conftest.undefs because some shells have a limit on the size
4906 # of here documents, and old seds have small limits too (100 cmds).
4907 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
4908 rm -f conftest.tail
4909 while grep . conftest.undefs >/dev/null
4910 do
4911   # Write a limited-size here document to $tmp/undefs.sed.
4912   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
4913   # Speed up: don't consider the non `#undef'
4914   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
4915   # Work around the forget-to-reset-the-flag bug.
4916   echo 't clr' >>$CONFIG_STATUS
4917   echo ': clr' >>$CONFIG_STATUS
4918   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
4919   echo 'CEOF
4920   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
4921   rm -f $tmp/in
4922   mv $tmp/out $tmp/in
4923 ' >>$CONFIG_STATUS
4924   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
4925   rm -f conftest.undefs
4926   mv conftest.tail conftest.undefs
4927 done
4928 rm -f conftest.undefs
4929
4930 cat >>$CONFIG_STATUS <<\_ACEOF
4931   # Let's still pretend it is `configure' which instantiates (i.e., don't
4932   # use $as_me), people would be surprised to read:
4933   #    /* config.h.  Generated by config.status.  */
4934   if test x"$ac_file" = x-; then
4935     echo "/* Generated by configure.  */" >$tmp/config.h
4936   else
4937     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
4938   fi
4939   cat $tmp/in >>$tmp/config.h
4940   rm -f $tmp/in
4941   if test x"$ac_file" != x-; then
4942     if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
4943       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
4944 echo "$as_me: $ac_file is unchanged" >&6;}
4945     else
4946       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
4947 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4948          X"$ac_file" : 'X\(//\)[^/]' \| \
4949          X"$ac_file" : 'X\(//\)$' \| \
4950          X"$ac_file" : 'X\(/\)' \| \
4951          .     : '\(.\)' 2>/dev/null ||
4952 echo X"$ac_file" |
4953     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4954           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4955           /^X\(\/\/\)$/{ s//\1/; q; }
4956           /^X\(\/\).*/{ s//\1/; q; }
4957           s/.*/./; q'`
4958       { case "$ac_dir" in
4959   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
4960   *)                      as_incr_dir=.;;
4961 esac
4962 as_dummy="$ac_dir"
4963 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
4964   case $as_mkdir_dir in
4965     # Skip DOS drivespec
4966     ?:) as_incr_dir=$as_mkdir_dir ;;
4967     *)
4968       as_incr_dir=$as_incr_dir/$as_mkdir_dir
4969       test -d "$as_incr_dir" ||
4970         mkdir "$as_incr_dir" ||
4971         { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
4972 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
4973    { (exit 1); exit 1; }; }
4974     ;;
4975   esac
4976 done; }
4977
4978       rm -f $ac_file
4979       mv $tmp/config.h $ac_file
4980     fi
4981   else
4982     cat $tmp/config.h
4983     rm -f $tmp/config.h
4984   fi
4985 done
4986 _ACEOF
4987 cat >>$CONFIG_STATUS <<\_ACEOF
4988
4989 #
4990 # CONFIG_COMMANDS section.
4991 #
4992 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
4993   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
4994   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
4995   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
4996 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4997          X"$ac_dest" : 'X\(//\)[^/]' \| \
4998          X"$ac_dest" : 'X\(//\)$' \| \
4999          X"$ac_dest" : 'X\(/\)' \| \
5000          .     : '\(.\)' 2>/dev/null ||
5001 echo X"$ac_dest" |
5002     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5003           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5004           /^X\(\/\/\)$/{ s//\1/; q; }
5005           /^X\(\/\).*/{ s//\1/; q; }
5006           s/.*/./; q'`
5007   ac_builddir=.
5008
5009 if test "$ac_dir" != .; then
5010   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5011   # A "../" for each directory in $ac_dir_suffix.
5012   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
5013 else
5014   ac_dir_suffix= ac_top_builddir=
5015 fi
5016
5017 case $srcdir in
5018   .)  # No --srcdir option.  We are building in place.
5019     ac_srcdir=.
5020     if test -z "$ac_top_builddir"; then
5021        ac_top_srcdir=.
5022     else
5023        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
5024     fi ;;
5025   [\\/]* | ?:[\\/]* )  # Absolute path.
5026     ac_srcdir=$srcdir$ac_dir_suffix;
5027     ac_top_srcdir=$srcdir ;;
5028   *) # Relative path.
5029     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
5030     ac_top_srcdir=$ac_top_builddir$srcdir ;;
5031 esac
5032 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
5033 # absolute.
5034 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
5035 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
5036 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
5037 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
5038
5039
5040   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
5041 echo "$as_me: executing $ac_dest commands" >&6;}
5042   case $ac_dest in
5043     default )  touch stamp-h  ;;
5044   esac
5045 done
5046 _ACEOF
5047
5048 cat >>$CONFIG_STATUS <<\_ACEOF
5049
5050 { (exit 0); exit 0; }
5051 _ACEOF
5052 chmod +x $CONFIG_STATUS
5053 ac_clean_files=$ac_clean_files_save
5054
5055
5056 # configure is writing to config.log, and then calls config.status.
5057 # config.status does its own redirection, appending to config.log.
5058 # Unfortunately, on DOS this fails, as config.log is still kept open
5059 # by configure, so config.status won't be able to write to it; its
5060 # output is simply discarded.  So we exec the FD to /dev/null,
5061 # effectively closing config.log, so it can be properly (re)opened and
5062 # appended to by config.status.  When coming back to configure, we
5063 # need to make the FD available again.
5064 if test "$no_create" != yes; then
5065   ac_cs_success=:
5066   exec 5>/dev/null
5067   $SHELL $CONFIG_STATUS || ac_cs_success=false
5068   exec 5>>config.log
5069   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5070   # would make configure fail if this is the last instruction.
5071   $ac_cs_success || { (exit 1); exit 1; }
5072 fi