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