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