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