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.
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.
11 if expr a : '\(a\)' >/dev/null 2>&1; then
18 ## --------------------- ##
19 ## M4sh Initialization. ##
20 ## --------------------- ##
22 # Be Bourne compatible
23 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
26 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
31 # Support unset when possible.
32 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
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; }
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 ||
71 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
72 /^X\/\(\/\/\)$/{ s//\1/; q; }
73 /^X\/\(\/\).*/{ s//\1/; q; }
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
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
89 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
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
106 *[\\/]* ) as_myself=$0 ;;
107 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
111 test -z "$as_dir" && as_dir=.
112 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
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
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; }; }
126 case $CONFIG_SHELL in
128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
129 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 test -z "$as_dir" && as_dir=.
133 for as_base in sh bash ksh sh5; do
136 if ("$as_dir/$as_base" -c '
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
144 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
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 |
165 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
168 s,^['$as_cr_digits']*\n,,
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; }; }
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).
178 # Exit status is that of the last command.
183 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
184 *c*,-n*) ECHO_N= ECHO_C='
186 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
187 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
190 if expr a : '\(a\)' >/dev/null 2>&1; then
196 rm -f conf$$ conf$$.exe 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
207 elif ln conf$$.file conf$$ 2>/dev/null; then
212 rm -f conf$$ conf$$.exe conf$$.file
214 as_executable_p="test -f"
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"
219 # Sed expression to map a string onto a valid variable name.
220 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
224 # We need space, tab and new line, in precisely that order.
230 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
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`
243 ac_default_prefix=/usr/local
248 SHELL=${CONFIG_SHELL-/bin/sh}
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}
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'
262 # Factoring default headers for most tests.
263 ac_includes_default="\
266 # include <sys/types.h>
269 # include <sys/stat.h>
280 # if !STDC_HEADERS && HAVE_MEMORY_H
286 # include <strings.h>
289 # include <inttypes.h>
300 # Initialize some variables set by options.
302 ac_init_version=false
303 # The variables have the same names as the options, with
304 # dashes changed to underlines.
312 program_transform_name=s,x,x,
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'
341 # If the previous option needs an argument, assign it.
342 if test -n "$ac_prev"; then
343 eval "$ac_prev=\$ac_option"
348 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
350 # Accept the important Cygnus configure options, so we can diagnose typos.
354 -bindir | --bindir | --bindi | --bind | --bin | --bi)
356 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
359 -build | --build | --buil | --bui | --bu)
360 ac_prev=build_alias ;;
361 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
362 build_alias=$ac_optarg ;;
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 ;;
372 cache_file=config.cache ;;
374 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
376 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
378 datadir=$ac_optarg ;;
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" ;;
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'`
397 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
400 eval "enable_$ac_feature='$ac_optarg'" ;;
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 ;;
411 -gas | --gas | --ga | --g)
412 # Obsolete; use --with-gas.
415 -help | --help | --hel | --he | -h)
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 ;;
422 -host | --host | --hos | --ho)
423 ac_prev=host_alias ;;
424 -host=* | --host=* | --hos=* | --ho=*)
425 host_alias=$ac_optarg ;;
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 ;;
434 -infodir | --infodir | --infodi | --infod | --info | --inf)
436 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
437 infodir=$ac_optarg ;;
439 -libdir | --libdir | --libdi | --libd)
441 -libdir=* | --libdir=* | --libdi=* | --libd=*)
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 ;;
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 ;;
460 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
462 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
466 # Obsolete; use --without-fp.
469 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
470 | --no-cr | --no-c | -n)
473 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
474 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
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 ;;
486 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
488 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
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 ;;
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 ;;
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 ;;
522 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
523 | -silent | --silent | --silen | --sile | --sil)
526 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
528 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
530 sbindir=$ac_optarg ;;
532 -sharedstatedir | --sharedstatedir | --sharedstatedi \
533 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
534 | --sharedst | --shareds | --shared | --share | --shar \
536 ac_prev=sharedstatedir ;;
537 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
538 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
539 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
541 sharedstatedir=$ac_optarg ;;
543 -site | --site | --sit)
545 -site=* | --site=* | --sit=*)
548 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
550 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
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 ;;
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 ;;
565 -v | -verbose | --verbose | --verbos | --verbo | --verb)
568 -version | --version | --versio | --versi | --vers | -V)
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'`
579 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
582 eval "with_$ac_package='$ac_optarg'" ;;
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" ;;
594 # Obsolete; use --with-x.
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 ;;
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 ;;
611 -*) { echo "$as_me: error: unrecognized option: $ac_option
612 Try \`$0 --help' for more information." >&2
613 { (exit 1); exit 1; }; }
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'"
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}
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; }; }
643 # Be sure to have absolute paths.
644 for ac_var in exec_prefix prefix
646 eval ac_val=$`echo $ac_var`
648 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
649 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
650 { (exit 1); exit 1; }; };;
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
658 eval ac_val=$`echo $ac_var`
660 [\\/$]* | ?:[\\/]* ) ;;
661 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
662 { (exit 1); exit 1; }; };;
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.
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
685 test -n "$host_alias" && ac_tool_prefix=$host_alias-
687 test "$silent" = yes && exec 6>/dev/null
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 ||
701 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
702 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
703 /^X\(\/\/\)$/{ s//\1/; q; }
704 /^X\(\/\).*/{ s//\1/; q; }
707 if test ! -r $srcdir/$ac_unique_file; then
711 ac_srcdir_defaulted=no
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; }; }
718 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
719 { (exit 1); exit 1; }; }
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}
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
757 # Report the --help message.
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.
763 \`configure' configures libfirm 0.3.0 to adapt to many kinds of systems.
765 Usage: $0 [OPTION]... [VAR=VALUE]...
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.
770 Defaults for the options are specified in brackets.
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 \`..']
786 Installation directories:
787 --prefix=PREFIX install architecture-independent files in PREFIX
789 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
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'.
797 For better control, use the options below.
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]
818 if test -n "$ac_init_help"; then
819 case $ac_init_help in
820 short | recursive ) echo "Configuration of libfirm 0.3.0:";;
825 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
826 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
827 --enable-debug enable assertions and additional debugging routines
828 --disable-inlining disable inline C-extension
829 --enable-profile enable profiling
830 --enable-autodoc enable auto documentation
831 --enable-firmjni check for tools necesarry to construct a java native interface for Firm
832 --enable-heapanalysis Compile with heap analysis.
833 --disable-libiberty disable own libiberty parts
834 --enable-statistics enable Firm statistics
837 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
838 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
839 --with-includedir=add colon seperated list of directories to include search path
840 --with-libdir=add colon seperated list of directories to linker search path
842 Some influential environment variables:
843 CC C compiler command
844 CFLAGS C compiler flags
845 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
846 nonstandard directory <lib dir>
847 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
848 headers in a nonstandard directory <include dir>
851 Use these variables to override the choices made by `configure' or to help
852 it to find libraries and programs with nonstandard names/locations.
857 if test "$ac_init_help" = "recursive"; then
858 # If there are subdirs, report their specific --help.
860 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
861 test -d $ac_dir || continue
864 if test "$ac_dir" != .; then
865 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
866 # A "../" for each directory in $ac_dir_suffix.
867 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
869 ac_dir_suffix= ac_top_builddir=
873 .) # No --srcdir option. We are building in place.
875 if test -z "$ac_top_builddir"; then
878 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
880 [\\/]* | ?:[\\/]* ) # Absolute path.
881 ac_srcdir=$srcdir$ac_dir_suffix;
882 ac_top_srcdir=$srcdir ;;
884 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
885 ac_top_srcdir=$ac_top_builddir$srcdir ;;
887 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
889 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
890 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
891 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
892 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
895 # Check for guested configure; otherwise get Cygnus style configure.
896 if test -f $ac_srcdir/configure.gnu; then
898 $SHELL $ac_srcdir/configure.gnu --help=recursive
899 elif test -f $ac_srcdir/configure; then
901 $SHELL $ac_srcdir/configure --help=recursive
902 elif test -f $ac_srcdir/configure.ac ||
903 test -f $ac_srcdir/configure.in; then
907 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
913 test -n "$ac_init_help" && exit 0
914 if $ac_init_version; then
916 libfirm configure 0.3.0
917 generated by GNU Autoconf 2.53
919 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
920 Free Software Foundation, Inc.
921 This configure script is free software; the Free Software Foundation
922 gives unlimited permission to copy, distribute and modify it.
928 This file contains any messages produced by compilers while
929 running configure, to aid debugging if configure makes a mistake.
931 It was created by libfirm $as_me 0.3.0, which was
932 generated by GNU Autoconf 2.53. Invocation command line was
943 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
944 uname -m = `(uname -m) 2>/dev/null || echo unknown`
945 uname -r = `(uname -r) 2>/dev/null || echo unknown`
946 uname -s = `(uname -s) 2>/dev/null || echo unknown`
947 uname -v = `(uname -v) 2>/dev/null || echo unknown`
949 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
950 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
952 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
953 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
954 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
955 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
956 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
957 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
958 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
966 test -z "$as_dir" && as_dir=.
982 # Keep a trace of the command line.
983 # Strip out --no-create and --no-recursion so they do not pile up.
984 # Also quote any args containing shell meta-characters.
990 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
991 | --no-cr | --no-c | -n ) continue ;;
992 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
993 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
995 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
996 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
998 case " $ac_configure_args " in
999 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1000 *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1003 # Get rid of the leading space.
1006 # When interrupted or exit'd, cleanup temporary files, and complete
1007 # config.log. We remove comments because anyway the quotes in there
1008 # would cause problems or look ugly.
1009 # WARNING: Be sure not to use single quotes in there, as some shells,
1010 # such as our DU 5.0 friend, will then `close' the trap.
1011 trap 'exit_status=$?
1012 # Save into config.log some information that might help in debugging.
1016 ## ---------------- ##
1017 ## Cache variables. ##
1018 ## ---------------- ##
1021 # The following way of writing the cache mishandles newlines in values,
1024 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1027 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1028 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1032 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1037 if test -s confdefs.h; then
1044 sed "/^$/d" confdefs.h
1047 test "$ac_signal" != 0 &&
1048 echo "$as_me: caught signal $ac_signal"
1049 echo "$as_me: exit $exit_status"
1051 rm -f core core.* *.core &&
1052 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1055 for ac_signal in 1 2 13 15; do
1056 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1060 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1061 rm -rf conftest* confdefs.h
1062 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1065 # Predefined preprocessor variables.
1067 cat >>confdefs.h <<_ACEOF
1068 #define PACKAGE_NAME "$PACKAGE_NAME"
1072 cat >>confdefs.h <<_ACEOF
1073 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1077 cat >>confdefs.h <<_ACEOF
1078 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1082 cat >>confdefs.h <<_ACEOF
1083 #define PACKAGE_STRING "$PACKAGE_STRING"
1087 cat >>confdefs.h <<_ACEOF
1088 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1092 # Let the site file select an alternate cache file if it wants to.
1093 # Prefer explicitly selected file to automatically selected ones.
1094 if test -z "$CONFIG_SITE"; then
1095 if test "x$prefix" != xNONE; then
1096 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1098 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1101 for ac_site_file in $CONFIG_SITE; do
1102 if test -r "$ac_site_file"; then
1103 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1104 echo "$as_me: loading site script $ac_site_file" >&6;}
1105 sed 's/^/| /' "$ac_site_file" >&5
1110 if test -r "$cache_file"; then
1111 # Some versions of bash will fail to source /dev/null (special
1112 # files actually), so we avoid doing that.
1113 if test -f "$cache_file"; then
1114 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1115 echo "$as_me: loading cache $cache_file" >&6;}
1117 [\\/]* | ?:[\\/]* ) . $cache_file;;
1118 *) . ./$cache_file;;
1122 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1123 echo "$as_me: creating cache $cache_file" >&6;}
1127 # Check that the precious variables saved in the cache have kept the same
1129 ac_cache_corrupted=false
1130 for ac_var in `(set) 2>&1 |
1131 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1132 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1133 eval ac_new_set=\$ac_env_${ac_var}_set
1134 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1135 eval ac_new_val="\$ac_env_${ac_var}_value"
1136 case $ac_old_set,$ac_new_set in
1138 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1139 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1140 ac_cache_corrupted=: ;;
1142 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1143 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1144 ac_cache_corrupted=: ;;
1147 if test "x$ac_old_val" != "x$ac_new_val"; then
1148 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1149 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1150 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1151 echo "$as_me: former value: $ac_old_val" >&2;}
1152 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1153 echo "$as_me: current value: $ac_new_val" >&2;}
1154 ac_cache_corrupted=:
1157 # Pass precious variables to config.status.
1158 if test "$ac_new_set" = set; then
1160 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1161 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1162 *) ac_arg=$ac_var=$ac_new_val ;;
1164 case " $ac_configure_args " in
1165 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1166 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1170 if $ac_cache_corrupted; then
1171 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1172 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1173 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1174 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1175 { (exit 1); exit 1; }; }
1179 ac_cpp='$CPP $CPPFLAGS'
1180 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1181 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1182 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1210 ac_output_file="Makefile MakeRules ir/Makefile ir/adt/Makefile ir/debug/Makefile \
1211 ir/tv/Makefile ir/common/Makefile ir/ident/Makefile ir/ir/Makefile \
1212 ir/ana/Makefile ir/tr/Makefile ir/st/Makefile ir/stat/Makefile \
1213 testprograms/Makefile firmjni/Makefile firmjni/testprograms/Makefile \
1216 ac_config_headers="$ac_config_headers config.h"
1219 libfirm_conf_env="${CC+CC='$CC'} ${CFLAGS+CFLAGS='$CFLAGS'} ${CPP+CPP='$CPP'} ${CPPFLAGS+CPPFLAGS='$CPPFLAGS'} ${LDFLAGS+LDFLAGS='$LDFLAGS'} ${LIBS+LIBS='$LIBS'}"
1223 # Check whether --with-includedir or --without-includedir was given.
1224 if test "${with_includedir+set}" = set; then
1225 withval="$with_includedir"
1226 CPPFLAGS=$CPPFLAGS" -I"`echo $withval|sed 's;\:; -I;g'`
1232 # Check whether --with-libdir or --without-libdir was given.
1233 if test "${with_libdir+set}" = set; then
1234 withval="$with_libdir"
1235 LDFLAGS=$LDFLAGS" -L"`echo $withval|sed 's;\:; -L;g'`
1241 # Check whether --enable-debug or --disable-debug was given.
1242 if test "${enable_debug+set}" = set; then
1243 enableval="$enable_debug"
1244 if test "$enableval" = yes; then
1245 cat >>confdefs.h <<\_ACEOF
1246 #define DEBUG_libfirm 1
1250 cat >>confdefs.h <<\_ACEOF
1258 # Check whether --enable-inlining or --disable-inlining was given.
1259 if test "${enable_inlining+set}" = set; then
1260 enableval="$enable_inlining"
1261 if test "$enableval" = yes; then
1262 cat >>confdefs.h <<\_ACEOF
1263 #define USE_INLINING 1
1268 cat >>confdefs.h <<\_ACEOF
1269 #define USE_INLINING 1
1275 # Check whether --enable-profile or --disable-profile was given.
1276 if test "${enable_profile+set}" = set; then
1277 enableval="$enable_profile"
1278 if test "$enableval"=yes; then
1279 enable_profile_libfirm=yes
1282 enable_profile_libfirm=no
1286 # Check whether --enable-autodoc or --disable-autodoc was given.
1287 if test "${enable_autodoc+set}" = set; then
1288 enableval="$enable_autodoc"
1289 if test "$enableval"=yes; then
1290 enable_auto_documentation=yes
1293 enable_auto_documentation=no
1298 # Check whether --enable-firmjni or --disable-firmjni was given.
1299 if test "${enable_firmjni+set}" = set; then
1300 enableval="$enable_firmjni"
1301 if test "$enableval"=yes; then
1309 # Check whether --enable-heapanalysis or --disable-heapanalysis was given.
1310 if test "${enable_heapanalysis+set}" = set; then
1311 enableval="$enable_heapanalysis"
1312 enable_heapanalysis=$enableval
1314 enable_heapanalysis="no"
1316 if test "$enable_heapanalysis" = "no"; then
1318 cat >>confdefs.h <<\_ACEOF
1319 #define DO_HEAPANALYSIS 0
1322 echo "$as_me:$LINENO: result: heapanalysis disabled" >&5
1323 echo "${ECHO_T}heapanalysis disabled" >&6
1326 cat >>confdefs.h <<\_ACEOF
1327 #define DO_HEAPANALYSIS 1
1330 echo "$as_me:$LINENO: result: heapanalysis enabled" >&5
1331 echo "${ECHO_T}heapanalysis enabled" >&6
1336 # Check whether --enable-libiberty or --disable-libiberty was given.
1337 if test "${enable_libiberty+set}" = set; then
1338 enableval="$enable_libiberty"
1339 if test "$enableval"=yes; then
1340 disable_libiberty_=yes
1343 disable_libiberty=no
1347 # Check whether --enable-statistics or --disable-statistics was given.
1348 if test "${enable_statistics+set}" = set; then
1349 enableval="$enable_statistics"
1350 if test "$enableval"=yes; then
1351 cat >>confdefs.h <<\_ACEOF
1352 #define FIRM_STATISTICS 1
1361 ac_cpp='$CPP $CPPFLAGS'
1362 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1363 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1364 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1365 if test -n "$ac_tool_prefix"; then
1366 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1367 set dummy ${ac_tool_prefix}gcc; 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
1373 if test -n "$CC"; then
1374 ac_cv_prog_CC="$CC" # Let the user override the test.
1376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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}gcc"
1384 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1393 if test -n "$CC"; then
1394 echo "$as_me:$LINENO: result: $CC" >&5
1395 echo "${ECHO_T}$CC" >&6
1397 echo "$as_me:$LINENO: result: no" >&5
1398 echo "${ECHO_T}no" >&6
1402 if test -z "$ac_cv_prog_CC"; then
1404 # Extract the first word of "gcc", so it can be a program name with args.
1405 set dummy gcc; 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
1411 if test -n "$ac_ct_CC"; then
1412 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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="gcc"
1422 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
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
1435 echo "$as_me:$LINENO: result: no" >&5
1436 echo "${ECHO_T}no" >&6
1444 if test -z "$CC"; then
1445 if test -n "$ac_tool_prefix"; then
1446 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1447 set dummy ${ac_tool_prefix}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
1453 if test -n "$CC"; then
1454 ac_cv_prog_CC="$CC" # Let the user override the test.
1456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1460 test -z "$as_dir" && as_dir=.
1461 for ac_exec_ext in '' $ac_executable_extensions; do
1462 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1463 ac_cv_prog_CC="${ac_tool_prefix}cc"
1464 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1473 if test -n "$CC"; then
1474 echo "$as_me:$LINENO: result: $CC" >&5
1475 echo "${ECHO_T}$CC" >&6
1477 echo "$as_me:$LINENO: result: no" >&5
1478 echo "${ECHO_T}no" >&6
1482 if test -z "$ac_cv_prog_CC"; then
1484 # Extract the first word of "cc", so it can be a program name with args.
1485 set dummy cc; ac_word=$2
1486 echo "$as_me:$LINENO: checking for $ac_word" >&5
1487 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1488 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1489 echo $ECHO_N "(cached) $ECHO_C" >&6
1491 if test -n "$ac_ct_CC"; then
1492 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1498 test -z "$as_dir" && as_dir=.
1499 for ac_exec_ext in '' $ac_executable_extensions; do
1500 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1501 ac_cv_prog_ac_ct_CC="cc"
1502 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1510 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1511 if test -n "$ac_ct_CC"; then
1512 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1513 echo "${ECHO_T}$ac_ct_CC" >&6
1515 echo "$as_me:$LINENO: result: no" >&5
1516 echo "${ECHO_T}no" >&6
1525 if test -z "$CC"; then
1526 # Extract the first word of "cc", so it can be a program name with args.
1527 set dummy cc; ac_word=$2
1528 echo "$as_me:$LINENO: checking for $ac_word" >&5
1529 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1530 if test "${ac_cv_prog_CC+set}" = set; then
1531 echo $ECHO_N "(cached) $ECHO_C" >&6
1533 if test -n "$CC"; then
1534 ac_cv_prog_CC="$CC" # Let the user override the test.
1537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1541 test -z "$as_dir" && as_dir=.
1542 for ac_exec_ext in '' $ac_executable_extensions; do
1543 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1544 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1545 ac_prog_rejected=yes
1549 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1555 if test $ac_prog_rejected = yes; then
1556 # We found a bogon in the path, so make sure we never use it.
1557 set dummy $ac_cv_prog_CC
1559 if test $# != 0; then
1560 # We chose a different compiler from the bogus one.
1561 # However, it has the same basename, so the bogon will be chosen
1562 # first if we set CC to just the basename; use the full file name.
1564 set dummy "$as_dir/$ac_word" ${1+"$@"}
1572 if test -n "$CC"; then
1573 echo "$as_me:$LINENO: result: $CC" >&5
1574 echo "${ECHO_T}$CC" >&6
1576 echo "$as_me:$LINENO: result: no" >&5
1577 echo "${ECHO_T}no" >&6
1581 if test -z "$CC"; then
1582 if test -n "$ac_tool_prefix"; then
1585 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1586 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1587 echo "$as_me:$LINENO: checking for $ac_word" >&5
1588 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1589 if test "${ac_cv_prog_CC+set}" = set; then
1590 echo $ECHO_N "(cached) $ECHO_C" >&6
1592 if test -n "$CC"; then
1593 ac_cv_prog_CC="$CC" # Let the user override the test.
1595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1599 test -z "$as_dir" && as_dir=.
1600 for ac_exec_ext in '' $ac_executable_extensions; do
1601 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1602 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1603 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1612 if test -n "$CC"; then
1613 echo "$as_me:$LINENO: result: $CC" >&5
1614 echo "${ECHO_T}$CC" >&6
1616 echo "$as_me:$LINENO: result: no" >&5
1617 echo "${ECHO_T}no" >&6
1620 test -n "$CC" && break
1623 if test -z "$CC"; then
1627 # Extract the first word of "$ac_prog", so it can be a program name with args.
1628 set dummy $ac_prog; ac_word=$2
1629 echo "$as_me:$LINENO: checking for $ac_word" >&5
1630 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1631 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1632 echo $ECHO_N "(cached) $ECHO_C" >&6
1634 if test -n "$ac_ct_CC"; then
1635 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1641 test -z "$as_dir" && as_dir=.
1642 for ac_exec_ext in '' $ac_executable_extensions; do
1643 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1644 ac_cv_prog_ac_ct_CC="$ac_prog"
1645 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1653 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1654 if test -n "$ac_ct_CC"; then
1655 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1656 echo "${ECHO_T}$ac_ct_CC" >&6
1658 echo "$as_me:$LINENO: result: no" >&5
1659 echo "${ECHO_T}no" >&6
1662 test -n "$ac_ct_CC" && break
1671 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
1672 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
1673 { (exit 1); exit 1; }; }
1675 # Provide some information about the compiler.
1676 echo "$as_me:$LINENO:" \
1677 "checking for C compiler version" >&5
1678 ac_compiler=`set X $ac_compile; echo $2`
1679 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1680 (eval $ac_compiler --version </dev/null >&5) 2>&5
1682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1683 (exit $ac_status); }
1684 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1685 (eval $ac_compiler -v </dev/null >&5) 2>&5
1687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1688 (exit $ac_status); }
1689 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1690 (eval $ac_compiler -V </dev/null >&5) 2>&5
1692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1693 (exit $ac_status); }
1695 cat >conftest.$ac_ext <<_ACEOF
1696 #line $LINENO "configure"
1697 #include "confdefs.h"
1699 #ifdef F77_DUMMY_MAIN
1703 int F77_DUMMY_MAIN() { return 1; }
1713 ac_clean_files_save=$ac_clean_files
1714 ac_clean_files="$ac_clean_files a.out a.exe"
1715 # Try to create an executable without -o first, disregard a.out.
1716 # It will help us diagnose broken compilers, and finding out an intuition
1718 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1719 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1720 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1721 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1722 (eval $ac_link_default) 2>&5
1724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1725 (exit $ac_status); }; then
1726 # Find the output, starting from the most likely. This scheme is
1727 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1730 # Be careful to initialize this variable, since it used to be cached.
1731 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1733 for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
1734 ls a.out conftest 2>/dev/null;
1735 ls a.* conftest.* 2>/dev/null`; do
1737 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
1738 a.out ) # We found the default executable, but exeext='' is most
1741 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1742 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1749 echo "$as_me: failed program was:" >&5
1750 cat conftest.$ac_ext >&5
1751 { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
1752 echo "$as_me: error: C compiler cannot create executables" >&2;}
1753 { (exit 77); exit 77; }; }
1756 ac_exeext=$ac_cv_exeext
1757 echo "$as_me:$LINENO: result: $ac_file" >&5
1758 echo "${ECHO_T}$ac_file" >&6
1760 # Check the compiler produces executables we can run. If not, either
1761 # the compiler is broken, or we cross compile.
1762 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1763 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1764 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1765 # If not cross compiling, check that we can run a simple program.
1766 if test "$cross_compiling" != yes; then
1767 if { ac_try='./$ac_file'
1768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1772 (exit $ac_status); }; }; then
1775 if test "$cross_compiling" = maybe; then
1778 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1779 If you meant to cross compile, use \`--host'." >&5
1780 echo "$as_me: error: cannot run C compiled programs.
1781 If you meant to cross compile, use \`--host'." >&2;}
1782 { (exit 1); exit 1; }; }
1786 echo "$as_me:$LINENO: result: yes" >&5
1787 echo "${ECHO_T}yes" >&6
1789 rm -f a.out a.exe conftest$ac_cv_exeext
1790 ac_clean_files=$ac_clean_files_save
1791 # Check the compiler produces executables we can run. If not, either
1792 # the compiler is broken, or we cross compile.
1793 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1794 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1795 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1796 echo "${ECHO_T}$cross_compiling" >&6
1798 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1799 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1800 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1801 (eval $ac_link) 2>&5
1803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1804 (exit $ac_status); }; then
1805 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1806 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1807 # work properly (i.e., refer to `conftest.exe'), while it won't with
1809 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1811 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1812 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1819 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
1820 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
1821 { (exit 1); exit 1; }; }
1824 rm -f conftest$ac_cv_exeext
1825 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1826 echo "${ECHO_T}$ac_cv_exeext" >&6
1828 rm -f conftest.$ac_ext
1829 EXEEXT=$ac_cv_exeext
1831 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1832 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1833 if test "${ac_cv_objext+set}" = set; then
1834 echo $ECHO_N "(cached) $ECHO_C" >&6
1836 cat >conftest.$ac_ext <<_ACEOF
1837 #line $LINENO "configure"
1838 #include "confdefs.h"
1840 #ifdef F77_DUMMY_MAIN
1844 int F77_DUMMY_MAIN() { return 1; }
1854 rm -f conftest.o conftest.obj
1855 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1856 (eval $ac_compile) 2>&5
1858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1859 (exit $ac_status); }; then
1860 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1862 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
1863 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1868 echo "$as_me: failed program was:" >&5
1869 cat conftest.$ac_ext >&5
1870 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
1871 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
1872 { (exit 1); exit 1; }; }
1875 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1877 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1878 echo "${ECHO_T}$ac_cv_objext" >&6
1879 OBJEXT=$ac_cv_objext
1881 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1882 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1883 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1884 echo $ECHO_N "(cached) $ECHO_C" >&6
1886 cat >conftest.$ac_ext <<_ACEOF
1887 #line $LINENO "configure"
1888 #include "confdefs.h"
1890 #ifdef F77_DUMMY_MAIN
1894 int F77_DUMMY_MAIN() { return 1; }
1907 rm -f conftest.$ac_objext
1908 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1909 (eval $ac_compile) 2>&5
1911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1912 (exit $ac_status); } &&
1913 { ac_try='test -s conftest.$ac_objext'
1914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1918 (exit $ac_status); }; }; then
1921 echo "$as_me: failed program was:" >&5
1922 cat conftest.$ac_ext >&5
1925 rm -f conftest.$ac_objext conftest.$ac_ext
1926 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1929 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1930 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1931 GCC=`test $ac_compiler_gnu = yes && echo yes`
1932 ac_test_CFLAGS=${CFLAGS+set}
1933 ac_save_CFLAGS=$CFLAGS
1935 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1936 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1937 if test "${ac_cv_prog_cc_g+set}" = set; then
1938 echo $ECHO_N "(cached) $ECHO_C" >&6
1940 cat >conftest.$ac_ext <<_ACEOF
1941 #line $LINENO "configure"
1942 #include "confdefs.h"
1944 #ifdef F77_DUMMY_MAIN
1948 int F77_DUMMY_MAIN() { return 1; }
1958 rm -f conftest.$ac_objext
1959 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1960 (eval $ac_compile) 2>&5
1962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1963 (exit $ac_status); } &&
1964 { ac_try='test -s conftest.$ac_objext'
1965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1969 (exit $ac_status); }; }; then
1972 echo "$as_me: failed program was:" >&5
1973 cat conftest.$ac_ext >&5
1976 rm -f conftest.$ac_objext conftest.$ac_ext
1978 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1979 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1980 if test "$ac_test_CFLAGS" = set; then
1981 CFLAGS=$ac_save_CFLAGS
1982 elif test $ac_cv_prog_cc_g = yes; then
1983 if test "$GCC" = yes; then
1989 if test "$GCC" = yes; then
1995 # Some people use a C++ compiler to compile C. Since we use `exit',
1996 # in C++ we need to declare it. In case someone uses the same compiler
1997 # for both compiling C and C++ we need to have the C++ compiler decide
1998 # the declaration of exit, since it's the most demanding environment.
1999 cat >conftest.$ac_ext <<_ACEOF
2004 rm -f conftest.$ac_objext
2005 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2006 (eval $ac_compile) 2>&5
2008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2009 (exit $ac_status); } &&
2010 { ac_try='test -s conftest.$ac_objext'
2011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2015 (exit $ac_status); }; }; then
2016 for ac_declaration in \
2018 '#include <stdlib.h>' \
2019 'extern "C" void std::exit (int) throw (); using std::exit;' \
2020 'extern "C" void std::exit (int); using std::exit;' \
2021 'extern "C" void exit (int) throw ();' \
2022 'extern "C" void exit (int);' \
2025 cat >conftest.$ac_ext <<_ACEOF
2026 #line $LINENO "configure"
2027 #include "confdefs.h"
2030 #ifdef F77_DUMMY_MAIN
2034 int F77_DUMMY_MAIN() { return 1; }
2044 rm -f conftest.$ac_objext
2045 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2046 (eval $ac_compile) 2>&5
2048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2049 (exit $ac_status); } &&
2050 { ac_try='test -s conftest.$ac_objext'
2051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2055 (exit $ac_status); }; }; then
2058 echo "$as_me: failed program was:" >&5
2059 cat conftest.$ac_ext >&5
2062 rm -f conftest.$ac_objext conftest.$ac_ext
2063 cat >conftest.$ac_ext <<_ACEOF
2064 #line $LINENO "configure"
2065 #include "confdefs.h"
2067 #ifdef F77_DUMMY_MAIN
2071 int F77_DUMMY_MAIN() { return 1; }
2081 rm -f conftest.$ac_objext
2082 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2083 (eval $ac_compile) 2>&5
2085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2086 (exit $ac_status); } &&
2087 { ac_try='test -s conftest.$ac_objext'
2088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2092 (exit $ac_status); }; }; then
2095 echo "$as_me: failed program was:" >&5
2096 cat conftest.$ac_ext >&5
2098 rm -f conftest.$ac_objext conftest.$ac_ext
2101 if test -n "$ac_declaration"; then
2102 echo '#ifdef __cplusplus' >>confdefs.h
2103 echo $ac_declaration >>confdefs.h
2104 echo '#endif' >>confdefs.h
2108 echo "$as_me: failed program was:" >&5
2109 cat conftest.$ac_ext >&5
2111 rm -f conftest.$ac_objext conftest.$ac_ext
2113 ac_cpp='$CPP $CPPFLAGS'
2114 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2115 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2116 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2120 if test -z "$LD"; then
2121 if test -n "$ac_tool_prefix"; then
2122 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
2123 set dummy ${ac_tool_prefix}ld; ac_word=$2
2124 echo "$as_me:$LINENO: checking for $ac_word" >&5
2125 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2126 if test "${ac_cv_prog_LD+set}" = set; then
2127 echo $ECHO_N "(cached) $ECHO_C" >&6
2129 if test -n "$LD"; then
2130 ac_cv_prog_LD="$LD" # Let the user override the test.
2132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2136 test -z "$as_dir" && as_dir=.
2137 for ac_exec_ext in '' $ac_executable_extensions; do
2138 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2139 ac_cv_prog_LD="${ac_tool_prefix}ld"
2140 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2149 if test -n "$LD"; then
2150 echo "$as_me:$LINENO: result: $LD" >&5
2151 echo "${ECHO_T}$LD" >&6
2153 echo "$as_me:$LINENO: result: no" >&5
2154 echo "${ECHO_T}no" >&6
2158 if test -z "$ac_cv_prog_LD"; then
2160 # Extract the first word of "ld", so it can be a program name with args.
2161 set dummy ld; ac_word=$2
2162 echo "$as_me:$LINENO: checking for $ac_word" >&5
2163 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2164 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
2165 echo $ECHO_N "(cached) $ECHO_C" >&6
2167 if test -n "$ac_ct_LD"; then
2168 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
2170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2174 test -z "$as_dir" && as_dir=.
2175 for ac_exec_ext in '' $ac_executable_extensions; do
2176 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2177 ac_cv_prog_ac_ct_LD="ld"
2178 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2186 ac_ct_LD=$ac_cv_prog_ac_ct_LD
2187 if test -n "$ac_ct_LD"; then
2188 echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
2189 echo "${ECHO_T}$ac_ct_LD" >&6
2191 echo "$as_me:$LINENO: result: no" >&5
2192 echo "${ECHO_T}no" >&6
2202 echo "$as_me:$LINENO: checking whether $LD accepts -r" >&5
2203 echo $ECHO_N "checking whether $LD accepts -r... $ECHO_C" >&6
2204 if test "${libfirm_cv_prog_ld_r+set}" = set; then
2205 echo $ECHO_N "(cached) $ECHO_C" >&6
2208 libfirm_cv_prog_ld_r=no
2210 cat > conftest.$ac_ext <<EOF
2211 int foo() { return 0; }
2213 if eval $ac_compile && mv conftest.o conftest2.o; then
2214 cat > conftest.$ac_ext <<EOF
2216 int main() { return foo(); }
2218 if eval $ac_compile; then
2219 if $LD -r -o conftest conftest.o conftest2.o; then
2220 libfirm_cv_prog_ld_r=yes
2227 echo "$as_me:$LINENO: result: $libfirm_cv_prog_ld_r" >&5
2228 echo "${ECHO_T}$libfirm_cv_prog_ld_r" >&6
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; }; }
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
2244 if test -n "$AR"; then
2245 ac_cv_prog_AR="$AR" # Let the user override the test.
2247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
2261 test -z "$ac_cv_prog_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
2269 echo "$as_me:$LINENO: result: no" >&5
2270 echo "${ECHO_T}no" >&6
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; }; }
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
2286 if test -n "$TAR"; then
2287 ac_cv_prog_TAR="$TAR" # Let the user override the test.
2289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
2303 test -z "$ac_cv_prog_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
2311 echo "$as_me:$LINENO: result: no" >&5
2312 echo "${ECHO_T}no" >&6
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; }; }
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
2330 if test -n "$RANLIB"; then
2331 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
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
2354 echo "$as_me:$LINENO: result: no" >&5
2355 echo "${ECHO_T}no" >&6
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
2368 if test -n "$ac_ct_RANLIB"; then
2369 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
2385 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
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
2393 echo "$as_me:$LINENO: result: no" >&5
2394 echo "${ECHO_T}no" >&6
2397 RANLIB=$ac_ct_RANLIB
2399 RANLIB="$ac_cv_prog_RANLIB"
2404 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
2405 if test -f $ac_dir/install-sh; then
2407 ac_install_sh="$ac_aux_dir/install-sh -c"
2409 elif test -f $ac_dir/install.sh; then
2411 ac_install_sh="$ac_aux_dir/install.sh -c"
2413 elif test -f $ac_dir/shtool; then
2415 ac_install_sh="$ac_aux_dir/shtool install -c"
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; }; }
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.
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
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
2446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2450 test -z "$as_dir" && as_dir=.
2451 # Account for people who put trailing slashes in PATH elements.
2453 ./ | .// | /cC/* | \
2454 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
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
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.
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.
2472 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2484 if test "${ac_cv_path_install+set}" = set; then
2485 INSTALL=$ac_cv_path_install
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
2494 echo "$as_me:$LINENO: result: $INSTALL" >&5
2495 echo "${ECHO_T}$INSTALL" >&6
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}'
2501 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2503 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2506 touch tmp-install.a tmp-install.b
2507 if eval "$INSTALL -C tmp-install.a tmp-install.b" ; then
2508 INSTALL="$INSTALL -C"
2510 rm tmp-install.a tmp-install.b
2513 echo "$as_me:$LINENO: checking whether ln -s works" >&5
2514 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2516 if test "$LN_S" = "ln -s"; then
2517 echo "$as_me:$LINENO: result: yes" >&5
2518 echo "${ECHO_T}yes" >&6
2520 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
2521 echo "${ECHO_T}no, using $LN_S" >&6
2525 if test "$enable_auto_documentation" = yes; then
2526 # Extract the first word of "doxygen", so it can be a program name with args.
2527 set dummy doxygen; ac_word=$2
2528 echo "$as_me:$LINENO: checking for $ac_word" >&5
2529 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2530 if test "${ac_cv_prog_DOXYGEN+set}" = set; then
2531 echo $ECHO_N "(cached) $ECHO_C" >&6
2533 if test -n "$DOXYGEN"; then
2534 ac_cv_prog_DOXYGEN="$DOXYGEN" # Let the user override the test.
2536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2540 test -z "$as_dir" && as_dir=.
2541 for ac_exec_ext in '' $ac_executable_extensions; do
2542 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2543 ac_cv_prog_DOXYGEN=""doxygen""
2544 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2550 test -z "$ac_cv_prog_DOXYGEN" && ac_cv_prog_DOXYGEN=""""
2553 DOXYGEN=$ac_cv_prog_DOXYGEN
2554 if test -n "$DOXYGEN"; then
2555 echo "$as_me:$LINENO: result: $DOXYGEN" >&5
2556 echo "${ECHO_T}$DOXYGEN" >&6
2558 echo "$as_me:$LINENO: result: no" >&5
2559 echo "${ECHO_T}no" >&6
2562 if test "$DOXYGEN" != "doxygen"; then
2563 { { echo "$as_me:$LINENO: error: need doxygen for auto documentation" >&5
2564 echo "$as_me: error: need doxygen for auto documentation" >&2;}
2565 { (exit 1); exit 1; }; }
2567 # Extract the first word of "dot", so it can be a program name with args.
2568 set dummy dot; ac_word=$2
2569 echo "$as_me:$LINENO: checking for $ac_word" >&5
2570 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2571 if test "${ac_cv_prog_DOT+set}" = set; then
2572 echo $ECHO_N "(cached) $ECHO_C" >&6
2574 if test -n "$DOT"; then
2575 ac_cv_prog_DOT="$DOT" # Let the user override the test.
2577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2581 test -z "$as_dir" && as_dir=.
2582 for ac_exec_ext in '' $ac_executable_extensions; do
2583 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2584 ac_cv_prog_DOT=""dot""
2585 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2591 test -z "$ac_cv_prog_DOT" && ac_cv_prog_DOT=""""
2595 if test -n "$DOT"; then
2596 echo "$as_me:$LINENO: result: $DOT" >&5
2597 echo "${ECHO_T}$DOT" >&6
2599 echo "$as_me:$LINENO: result: no" >&5
2600 echo "${ECHO_T}no" >&6
2603 if test "$DOT" != "dot"; then
2604 { { echo "$as_me:$LINENO: error: need dot for doxygen documentation (for class graphs) (IPD: module add Graphviz)" >&5
2605 echo "$as_me: error: need dot for doxygen documentation (for class graphs) (IPD: module add Graphviz)" >&2;}
2606 { (exit 1); exit 1; }; }
2610 if test "$enable_firm_jni" = yes; then
2611 # Extract the first word of "javac", so it can be a program name with args.
2612 set dummy javac; ac_word=$2
2613 echo "$as_me:$LINENO: checking for $ac_word" >&5
2614 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2615 if test "${ac_cv_prog_JAVAC+set}" = set; then
2616 echo $ECHO_N "(cached) $ECHO_C" >&6
2618 if test -n "$JAVAC"; then
2619 ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test.
2621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2625 test -z "$as_dir" && as_dir=.
2626 for ac_exec_ext in '' $ac_executable_extensions; do
2627 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2628 ac_cv_prog_JAVAC=""javac""
2629 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2635 test -z "$ac_cv_prog_JAVAC" && ac_cv_prog_JAVAC=""""
2638 JAVAC=$ac_cv_prog_JAVAC
2639 if test -n "$JAVAC"; then
2640 echo "$as_me:$LINENO: result: $JAVAC" >&5
2641 echo "${ECHO_T}$JAVAC" >&6
2643 echo "$as_me:$LINENO: result: no" >&5
2644 echo "${ECHO_T}no" >&6
2647 if test "$JAVAC" != "javac"; then
2648 { { echo "$as_me:$LINENO: error: need java compiler javac to generate jni (IPD: module add jdk-1.3.1-sun)" >&5
2649 echo "$as_me: error: need java compiler javac to generate jni (IPD: module add jdk-1.3.1-sun)" >&2;}
2650 { (exit 1); exit 1; }; }
2652 # Extract the first word of "javah", so it can be a program name with args.
2653 set dummy javah; ac_word=$2
2654 echo "$as_me:$LINENO: checking for $ac_word" >&5
2655 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2656 if test "${ac_cv_prog_JAVAH+set}" = set; then
2657 echo $ECHO_N "(cached) $ECHO_C" >&6
2659 if test -n "$JAVAH"; then
2660 ac_cv_prog_JAVAH="$JAVAH" # Let the user override the test.
2662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2666 test -z "$as_dir" && as_dir=.
2667 for ac_exec_ext in '' $ac_executable_extensions; do
2668 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2669 ac_cv_prog_JAVAH=""javah""
2670 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2676 test -z "$ac_cv_prog_JAVAH" && ac_cv_prog_JAVAH=""""
2679 JAVAH=$ac_cv_prog_JAVAH
2680 if test -n "$JAVAH"; then
2681 echo "$as_me:$LINENO: result: $JAVAH" >&5
2682 echo "${ECHO_T}$JAVAH" >&6
2684 echo "$as_me:$LINENO: result: no" >&5
2685 echo "${ECHO_T}no" >&6
2688 if test "$JAVAH" != "javah"; then
2689 { { echo "$as_me:$LINENO: error: need javah to generate jni headers (IPD: module add jdk-1.3.1-sun)" >&5
2690 echo "$as_me: error: need javah to generate jni headers (IPD: module add jdk-1.3.1-sun)" >&2;}
2691 { (exit 1); exit 1; }; }
2699 ac_cpp='$CPP $CPPFLAGS'
2700 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2701 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2702 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2703 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2704 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2705 # On Suns, sometimes $CPP names a directory.
2706 if test -n "$CPP" && test -d "$CPP"; then
2709 if test -z "$CPP"; then
2710 if test "${ac_cv_prog_CPP+set}" = set; then
2711 echo $ECHO_N "(cached) $ECHO_C" >&6
2713 # Double quotes because CPP needs to be expanded
2714 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2717 for ac_c_preproc_warn_flag in '' yes
2719 # Use a header file that comes with gcc, so configuring glibc
2720 # with a fresh cross-compiler works.
2721 # On the NeXT, cc -E runs the code through the compiler's parser,
2722 # not just through cpp. "Syntax error" is here to catch this case.
2723 cat >conftest.$ac_ext <<_ACEOF
2724 #line $LINENO "configure"
2725 #include "confdefs.h"
2729 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2730 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2732 egrep -v '^ *\+' conftest.er1 >conftest.err
2734 cat conftest.err >&5
2735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2736 (exit $ac_status); } >/dev/null; then
2737 if test -s conftest.err; then
2738 ac_cpp_err=$ac_c_preproc_warn_flag
2745 if test -z "$ac_cpp_err"; then
2748 echo "$as_me: failed program was:" >&5
2749 cat conftest.$ac_ext >&5
2750 # Broken: fails on valid input.
2753 rm -f conftest.err conftest.$ac_ext
2755 # OK, works on sane cases. Now check whether non-existent headers
2756 # can be detected and how.
2757 cat >conftest.$ac_ext <<_ACEOF
2758 #line $LINENO "configure"
2759 #include "confdefs.h"
2760 #include <ac_nonexistent.h>
2762 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2763 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2765 egrep -v '^ *\+' conftest.er1 >conftest.err
2767 cat conftest.err >&5
2768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2769 (exit $ac_status); } >/dev/null; then
2770 if test -s conftest.err; then
2771 ac_cpp_err=$ac_c_preproc_warn_flag
2778 if test -z "$ac_cpp_err"; then
2779 # Broken: success on invalid input.
2782 echo "$as_me: failed program was:" >&5
2783 cat conftest.$ac_ext >&5
2784 # Passes both tests.
2788 rm -f conftest.err conftest.$ac_ext
2791 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2792 rm -f conftest.err conftest.$ac_ext
2793 if $ac_preproc_ok; then
2805 echo "$as_me:$LINENO: result: $CPP" >&5
2806 echo "${ECHO_T}$CPP" >&6
2808 for ac_c_preproc_warn_flag in '' yes
2810 # Use a header file that comes with gcc, so configuring glibc
2811 # with a fresh cross-compiler works.
2812 # On the NeXT, cc -E runs the code through the compiler's parser,
2813 # not just through cpp. "Syntax error" is here to catch this case.
2814 cat >conftest.$ac_ext <<_ACEOF
2815 #line $LINENO "configure"
2816 #include "confdefs.h"
2820 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2821 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2823 egrep -v '^ *\+' conftest.er1 >conftest.err
2825 cat conftest.err >&5
2826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2827 (exit $ac_status); } >/dev/null; then
2828 if test -s conftest.err; then
2829 ac_cpp_err=$ac_c_preproc_warn_flag
2836 if test -z "$ac_cpp_err"; then
2839 echo "$as_me: failed program was:" >&5
2840 cat conftest.$ac_ext >&5
2841 # Broken: fails on valid input.
2844 rm -f conftest.err conftest.$ac_ext
2846 # OK, works on sane cases. Now check whether non-existent headers
2847 # can be detected and how.
2848 cat >conftest.$ac_ext <<_ACEOF
2849 #line $LINENO "configure"
2850 #include "confdefs.h"
2851 #include <ac_nonexistent.h>
2853 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2854 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2856 egrep -v '^ *\+' conftest.er1 >conftest.err
2858 cat conftest.err >&5
2859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2860 (exit $ac_status); } >/dev/null; then
2861 if test -s conftest.err; then
2862 ac_cpp_err=$ac_c_preproc_warn_flag
2869 if test -z "$ac_cpp_err"; then
2870 # Broken: success on invalid input.
2873 echo "$as_me: failed program was:" >&5
2874 cat conftest.$ac_ext >&5
2875 # Passes both tests.
2879 rm -f conftest.err conftest.$ac_ext
2882 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2883 rm -f conftest.err conftest.$ac_ext
2884 if $ac_preproc_ok; then
2887 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2888 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2889 { (exit 1); exit 1; }; }
2893 ac_cpp='$CPP $CPPFLAGS'
2894 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2895 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2896 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2899 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2900 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2901 if test "${ac_cv_header_stdc+set}" = set; then
2902 echo $ECHO_N "(cached) $ECHO_C" >&6
2904 cat >conftest.$ac_ext <<_ACEOF
2905 #line $LINENO "configure"
2906 #include "confdefs.h"
2913 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2914 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2916 egrep -v '^ *\+' conftest.er1 >conftest.err
2918 cat conftest.err >&5
2919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2920 (exit $ac_status); } >/dev/null; then
2921 if test -s conftest.err; then
2922 ac_cpp_err=$ac_c_preproc_warn_flag
2929 if test -z "$ac_cpp_err"; then
2930 ac_cv_header_stdc=yes
2932 echo "$as_me: failed program was:" >&5
2933 cat conftest.$ac_ext >&5
2934 ac_cv_header_stdc=no
2936 rm -f conftest.err conftest.$ac_ext
2938 if test $ac_cv_header_stdc = yes; then
2939 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2940 cat >conftest.$ac_ext <<_ACEOF
2941 #line $LINENO "configure"
2942 #include "confdefs.h"
2946 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2947 egrep "memchr" >/dev/null 2>&1; then
2950 ac_cv_header_stdc=no
2956 if test $ac_cv_header_stdc = yes; then
2957 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2958 cat >conftest.$ac_ext <<_ACEOF
2959 #line $LINENO "configure"
2960 #include "confdefs.h"
2964 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2965 egrep "free" >/dev/null 2>&1; then
2968 ac_cv_header_stdc=no
2974 if test $ac_cv_header_stdc = yes; then
2975 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2976 if test "$cross_compiling" = yes; then
2979 cat >conftest.$ac_ext <<_ACEOF
2980 #line $LINENO "configure"
2981 #include "confdefs.h"
2983 #if ((' ' & 0x0FF) == 0x020)
2984 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2985 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2987 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
2988 || ('j' <= (c) && (c) <= 'r') \
2989 || ('s' <= (c) && (c) <= 'z'))
2990 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2993 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2998 for (i = 0; i < 256; i++)
2999 if (XOR (islower (i), ISLOWER (i))
3000 || toupper (i) != TOUPPER (i))
3005 rm -f conftest$ac_exeext
3006 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3007 (eval $ac_link) 2>&5
3009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3010 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3015 (exit $ac_status); }; }; then
3018 echo "$as_me: program exited with status $ac_status" >&5
3019 echo "$as_me: failed program was:" >&5
3020 cat conftest.$ac_ext >&5
3022 ac_cv_header_stdc=no
3024 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3028 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3029 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3030 if test $ac_cv_header_stdc = yes; then
3032 cat >>confdefs.h <<\_ACEOF
3033 #define STDC_HEADERS 1
3040 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3050 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3051 inttypes.h stdint.h unistd.h
3053 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3054 echo "$as_me:$LINENO: checking for $ac_header" >&5
3055 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3056 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3057 echo $ECHO_N "(cached) $ECHO_C" >&6
3059 cat >conftest.$ac_ext <<_ACEOF
3060 #line $LINENO "configure"
3061 #include "confdefs.h"
3062 $ac_includes_default
3064 #include <$ac_header>
3066 rm -f conftest.$ac_objext
3067 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3068 (eval $ac_compile) 2>&5
3070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3071 (exit $ac_status); } &&
3072 { ac_try='test -s conftest.$ac_objext'
3073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3077 (exit $ac_status); }; }; then
3078 eval "$as_ac_Header=yes"
3080 echo "$as_me: failed program was:" >&5
3081 cat conftest.$ac_ext >&5
3082 eval "$as_ac_Header=no"
3084 rm -f conftest.$ac_objext conftest.$ac_ext
3086 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3087 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3088 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3089 cat >>confdefs.h <<_ACEOF
3090 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3099 for ac_header in math.h
3101 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3102 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3103 echo "$as_me:$LINENO: checking for $ac_header" >&5
3104 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3105 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3106 echo $ECHO_N "(cached) $ECHO_C" >&6
3108 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3109 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3111 # Is the header compilable?
3112 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3113 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3114 cat >conftest.$ac_ext <<_ACEOF
3115 #line $LINENO "configure"
3116 #include "confdefs.h"
3117 $ac_includes_default
3118 #include <$ac_header>
3120 rm -f conftest.$ac_objext
3121 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3122 (eval $ac_compile) 2>&5
3124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3125 (exit $ac_status); } &&
3126 { ac_try='test -s conftest.$ac_objext'
3127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3131 (exit $ac_status); }; }; then
3132 ac_header_compiler=yes
3134 echo "$as_me: failed program was:" >&5
3135 cat conftest.$ac_ext >&5
3136 ac_header_compiler=no
3138 rm -f conftest.$ac_objext conftest.$ac_ext
3139 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3140 echo "${ECHO_T}$ac_header_compiler" >&6
3142 # Is the header present?
3143 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3144 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3145 cat >conftest.$ac_ext <<_ACEOF
3146 #line $LINENO "configure"
3147 #include "confdefs.h"
3148 #include <$ac_header>
3150 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3151 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3153 egrep -v '^ *\+' conftest.er1 >conftest.err
3155 cat conftest.err >&5
3156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3157 (exit $ac_status); } >/dev/null; then
3158 if test -s conftest.err; then
3159 ac_cpp_err=$ac_c_preproc_warn_flag
3166 if test -z "$ac_cpp_err"; then
3167 ac_header_preproc=yes
3169 echo "$as_me: failed program was:" >&5
3170 cat conftest.$ac_ext >&5
3171 ac_header_preproc=no
3173 rm -f conftest.err conftest.$ac_ext
3174 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3175 echo "${ECHO_T}$ac_header_preproc" >&6
3177 # So? What about this header?
3178 case $ac_header_compiler:$ac_header_preproc in
3180 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3181 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3182 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3183 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3185 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3186 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3187 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3188 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3189 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3190 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3192 echo "$as_me:$LINENO: checking for $ac_header" >&5
3193 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3194 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3195 echo $ECHO_N "(cached) $ECHO_C" >&6
3197 eval "$as_ac_Header=$ac_header_preproc"
3199 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3200 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3203 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3204 cat >>confdefs.h <<_ACEOF
3205 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3207 ac_math_headers="yes"
3209 ac_math_headers="no"
3214 if test "$ac_math_headers" != yes; then
3215 { { echo "$as_me:$LINENO: error: \"math header file not found\"" >&5
3216 echo "$as_me: error: \"math header file not found\"" >&2;}
3217 { (exit 1); exit 1; }; }
3221 #dnl check for the gnu multiprecission (gmp) header file
3223 #AC_CHECK_HEADERS(gmp.h, ac_gmp_headers="yes", ac_gmp_headers="no")
3224 #if test "$ac_gmp_headers" != yes; then
3225 # dnl gmp header not found.
3226 # AC_MSG_ERROR("GNU multiprecission gmp header file not found")
3233 for ac_header in obstack.h
3235 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3236 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3237 echo "$as_me:$LINENO: checking for $ac_header" >&5
3238 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3239 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3240 echo $ECHO_N "(cached) $ECHO_C" >&6
3242 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3243 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3245 # Is the header compilable?
3246 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3247 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3248 cat >conftest.$ac_ext <<_ACEOF
3249 #line $LINENO "configure"
3250 #include "confdefs.h"
3251 $ac_includes_default
3252 #include <$ac_header>
3254 rm -f conftest.$ac_objext
3255 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3256 (eval $ac_compile) 2>&5
3258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3259 (exit $ac_status); } &&
3260 { ac_try='test -s conftest.$ac_objext'
3261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3265 (exit $ac_status); }; }; then
3266 ac_header_compiler=yes
3268 echo "$as_me: failed program was:" >&5
3269 cat conftest.$ac_ext >&5
3270 ac_header_compiler=no
3272 rm -f conftest.$ac_objext conftest.$ac_ext
3273 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3274 echo "${ECHO_T}$ac_header_compiler" >&6
3276 # Is the header present?
3277 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3278 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3279 cat >conftest.$ac_ext <<_ACEOF
3280 #line $LINENO "configure"
3281 #include "confdefs.h"
3282 #include <$ac_header>
3284 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3285 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3287 egrep -v '^ *\+' conftest.er1 >conftest.err
3289 cat conftest.err >&5
3290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3291 (exit $ac_status); } >/dev/null; then
3292 if test -s conftest.err; then
3293 ac_cpp_err=$ac_c_preproc_warn_flag
3300 if test -z "$ac_cpp_err"; then
3301 ac_header_preproc=yes
3303 echo "$as_me: failed program was:" >&5
3304 cat conftest.$ac_ext >&5
3305 ac_header_preproc=no
3307 rm -f conftest.err conftest.$ac_ext
3308 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3309 echo "${ECHO_T}$ac_header_preproc" >&6
3311 # So? What about this header?
3312 case $ac_header_compiler:$ac_header_preproc in
3314 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3315 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3316 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3317 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3319 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3320 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3321 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3322 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3323 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3324 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3326 echo "$as_me:$LINENO: checking for $ac_header" >&5
3327 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3328 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3329 echo $ECHO_N "(cached) $ECHO_C" >&6
3331 eval "$as_ac_Header=$ac_header_preproc"
3333 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3334 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3337 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3338 cat >>confdefs.h <<_ACEOF
3339 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3341 ac_obstack_headers="yes"
3343 ac_obstack_headers="no"
3348 if test "$ac_obstack_headers" != yes; then
3349 { { echo "$as_me:$LINENO: error: \"obstack.h not found\"" >&5
3350 echo "$as_me: error: \"obstack.h not found\"" >&2;}
3351 { (exit 1); exit 1; }; }
3356 for ac_header in alloca.h
3358 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3359 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3360 echo "$as_me:$LINENO: checking for $ac_header" >&5
3361 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3362 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3363 echo $ECHO_N "(cached) $ECHO_C" >&6
3365 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3366 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3368 # Is the header compilable?
3369 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3370 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3371 cat >conftest.$ac_ext <<_ACEOF
3372 #line $LINENO "configure"
3373 #include "confdefs.h"
3374 $ac_includes_default
3375 #include <$ac_header>
3377 rm -f conftest.$ac_objext
3378 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3379 (eval $ac_compile) 2>&5
3381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3382 (exit $ac_status); } &&
3383 { ac_try='test -s conftest.$ac_objext'
3384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3388 (exit $ac_status); }; }; then
3389 ac_header_compiler=yes
3391 echo "$as_me: failed program was:" >&5
3392 cat conftest.$ac_ext >&5
3393 ac_header_compiler=no
3395 rm -f conftest.$ac_objext conftest.$ac_ext
3396 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3397 echo "${ECHO_T}$ac_header_compiler" >&6
3399 # Is the header present?
3400 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3401 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3402 cat >conftest.$ac_ext <<_ACEOF
3403 #line $LINENO "configure"
3404 #include "confdefs.h"
3405 #include <$ac_header>
3407 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3408 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3410 egrep -v '^ *\+' conftest.er1 >conftest.err
3412 cat conftest.err >&5
3413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3414 (exit $ac_status); } >/dev/null; then
3415 if test -s conftest.err; then
3416 ac_cpp_err=$ac_c_preproc_warn_flag
3423 if test -z "$ac_cpp_err"; then
3424 ac_header_preproc=yes
3426 echo "$as_me: failed program was:" >&5
3427 cat conftest.$ac_ext >&5
3428 ac_header_preproc=no
3430 rm -f conftest.err conftest.$ac_ext
3431 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3432 echo "${ECHO_T}$ac_header_preproc" >&6
3434 # So? What about this header?
3435 case $ac_header_compiler:$ac_header_preproc in
3437 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3438 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3439 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3440 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3442 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3443 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3444 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3445 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3446 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3447 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3449 echo "$as_me:$LINENO: checking for $ac_header" >&5
3450 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3451 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3452 echo $ECHO_N "(cached) $ECHO_C" >&6
3454 eval "$as_ac_Header=$ac_header_preproc"
3456 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3457 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3460 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3461 cat >>confdefs.h <<_ACEOF
3462 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3464 ac_alloca_headers="yes"
3466 ac_alloca_headers="no"
3471 if test "$ac_alloca_headers" = "yes"; then
3472 cat >>confdefs.h <<\_ACEOF
3473 #define HAVE_ALLOCA_H 1
3477 if test "$ac_cv_header_stdc" = "no"; then
3478 { { echo "$as_me:$LINENO: error: \"alloca.h and stdlib.h not found\"" >&5
3479 echo "$as_me: error: \"alloca.h and stdlib.h not found\"" >&2;}
3480 { (exit 1); exit 1; }; }
3486 if test "$enable_firm_jni" = yes; then
3488 for ac_header in jni.h
3490 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3491 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3492 echo "$as_me:$LINENO: checking for $ac_header" >&5
3493 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3494 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3495 echo $ECHO_N "(cached) $ECHO_C" >&6
3497 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3498 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3500 # Is the header compilable?
3501 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3502 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3503 cat >conftest.$ac_ext <<_ACEOF
3504 #line $LINENO "configure"
3505 #include "confdefs.h"
3506 $ac_includes_default
3507 #include <$ac_header>
3509 rm -f conftest.$ac_objext
3510 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3511 (eval $ac_compile) 2>&5
3513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3514 (exit $ac_status); } &&
3515 { ac_try='test -s conftest.$ac_objext'
3516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3520 (exit $ac_status); }; }; then
3521 ac_header_compiler=yes
3523 echo "$as_me: failed program was:" >&5
3524 cat conftest.$ac_ext >&5
3525 ac_header_compiler=no
3527 rm -f conftest.$ac_objext conftest.$ac_ext
3528 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3529 echo "${ECHO_T}$ac_header_compiler" >&6
3531 # Is the header present?
3532 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3533 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3534 cat >conftest.$ac_ext <<_ACEOF
3535 #line $LINENO "configure"
3536 #include "confdefs.h"
3537 #include <$ac_header>
3539 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3540 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3542 egrep -v '^ *\+' conftest.er1 >conftest.err
3544 cat conftest.err >&5
3545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3546 (exit $ac_status); } >/dev/null; then
3547 if test -s conftest.err; then
3548 ac_cpp_err=$ac_c_preproc_warn_flag
3555 if test -z "$ac_cpp_err"; then
3556 ac_header_preproc=yes
3558 echo "$as_me: failed program was:" >&5
3559 cat conftest.$ac_ext >&5
3560 ac_header_preproc=no
3562 rm -f conftest.err conftest.$ac_ext
3563 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3564 echo "${ECHO_T}$ac_header_preproc" >&6
3566 # So? What about this header?
3567 case $ac_header_compiler:$ac_header_preproc in
3569 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3570 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3571 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3572 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3574 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3575 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3576 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3577 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3578 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3579 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3581 echo "$as_me:$LINENO: checking for $ac_header" >&5
3582 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3583 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3584 echo $ECHO_N "(cached) $ECHO_C" >&6
3586 eval "$as_ac_Header=$ac_header_preproc"
3588 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3589 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3592 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3593 cat >>confdefs.h <<_ACEOF
3594 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3596 ac_jni_headers="yes"
3603 if test "$ac_jni_headers" != yes; then
3604 { { echo "$as_me:$LINENO: error: jni header file not found. (IPD: add --with-includedir=/usr/public2/java/jdk1.3.1-sun/include/:/usr/public2/java/jdk1.3.1-sun/include/linux/ to configure flags)" >&5
3605 echo "$as_me: error: jni header file not found. (IPD: add --with-includedir=/usr/public2/java/jdk1.3.1-sun/include/:/usr/public2/java/jdk1.3.1-sun/include/linux/ to configure flags)" >&2;}
3606 { (exit 1); exit 1; }; }
3612 #dnl check for the gnu multiprecission (gmp) library
3614 #AC_CHECK_LIB(gmp, main, ac_gmp_library="yes", ac_gmp_library="no")
3615 #if test "$ac_gmp_library" != yes; then
3616 # dnl gmp library not found.
3617 # AC_MSG_ERROR("GNU multiprecission gmp library not found")
3621 echo "$as_me:$LINENO: checking for main in -lm" >&5
3622 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
3623 if test "${ac_cv_lib_m_main+set}" = set; then
3624 echo $ECHO_N "(cached) $ECHO_C" >&6
3626 ac_check_lib_save_LIBS=$LIBS
3628 cat >conftest.$ac_ext <<_ACEOF
3629 #line $LINENO "configure"
3630 #include "confdefs.h"
3633 #ifdef F77_DUMMY_MAIN
3637 int F77_DUMMY_MAIN() { return 1; }
3647 rm -f conftest.$ac_objext conftest$ac_exeext
3648 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3649 (eval $ac_link) 2>&5
3651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3652 (exit $ac_status); } &&
3653 { ac_try='test -s conftest$ac_exeext'
3654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3658 (exit $ac_status); }; }; then
3659 ac_cv_lib_m_main=yes
3661 echo "$as_me: failed program was:" >&5
3662 cat conftest.$ac_ext >&5
3665 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3666 LIBS=$ac_check_lib_save_LIBS
3668 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
3669 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
3670 if test $ac_cv_lib_m_main = yes; then
3676 if test "$ac_m_library" != yes; then
3677 { { echo "$as_me:$LINENO: error: \"standard math library not found\"" >&5
3678 echo "$as_me: error: \"standard math library not found\"" >&2;}
3679 { (exit 1); exit 1; }; }
3683 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3684 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3685 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3686 echo $ECHO_N "(cached) $ECHO_C" >&6
3688 ac_cv_prog_cc_stdc=no
3690 cat >conftest.$ac_ext <<_ACEOF
3691 #line $LINENO "configure"
3692 #include "confdefs.h"
3695 #include <sys/types.h>
3696 #include <sys/stat.h>
3697 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3698 struct buf { int x; };
3699 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3700 static char *e (p, i)
3706 static char *f (char * (*g) (char **, int), char **p, ...)
3711 s = g (p, va_arg (v,int));
3715 int test (int i, double x);
3716 struct s1 {int (*f) (int a);};
3717 struct s2 {int (*f) (double a);};
3718 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3721 #ifdef F77_DUMMY_MAIN
3725 int F77_DUMMY_MAIN() { return 1; }
3730 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3735 # Don't try gcc -ansi; that turns off useful extensions and
3736 # breaks some systems' header files.
3737 # AIX -qlanglvl=ansi
3738 # Ultrix and OSF/1 -std1
3739 # HP-UX 10.20 and later -Ae
3740 # HP-UX older versions -Aa -D_HPUX_SOURCE
3741 # SVR4 -Xc -D__EXTENSIONS__
3742 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3744 CC="$ac_save_CC $ac_arg"
3745 rm -f conftest.$ac_objext
3746 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3747 (eval $ac_compile) 2>&5
3749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3750 (exit $ac_status); } &&
3751 { ac_try='test -s conftest.$ac_objext'
3752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3756 (exit $ac_status); }; }; then
3757 ac_cv_prog_cc_stdc=$ac_arg
3760 echo "$as_me: failed program was:" >&5
3761 cat conftest.$ac_ext >&5
3763 rm -f conftest.$ac_objext
3765 rm -f conftest.$ac_ext conftest.$ac_objext
3770 case "x$ac_cv_prog_cc_stdc" in
3772 echo "$as_me:$LINENO: result: none needed" >&5
3773 echo "${ECHO_T}none needed" >&6 ;;
3775 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3776 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3777 CC="$CC $ac_cv_prog_cc_stdc" ;;
3780 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3781 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3782 if test "${ac_cv_c_const+set}" = set; then
3783 echo $ECHO_N "(cached) $ECHO_C" >&6
3785 cat >conftest.$ac_ext <<_ACEOF
3786 #line $LINENO "configure"
3787 #include "confdefs.h"
3789 #ifdef F77_DUMMY_MAIN
3793 int F77_DUMMY_MAIN() { return 1; }
3798 /* FIXME: Include the comments suggested by Paul. */
3800 /* Ultrix mips cc rejects this. */
3801 typedef int charset[2];
3803 /* SunOS 4.1.1 cc rejects this. */
3804 char const *const *ccp;
3806 /* NEC SVR4.0.2 mips cc rejects this. */
3807 struct point {int x, y;};
3808 static struct point const zero = {0,0};
3809 /* AIX XL C 1.02.0.0 rejects this.
3810 It does not let you subtract one const X* pointer from another in
3811 an arm of an if-expression whose if-part is not a constant
3813 const char *g = "string";
3814 ccp = &g + (g ? g-g : 0);
3815 /* HPUX 7.0 cc rejects these. */
3818 ccp = (char const *const *) p;
3819 { /* SCO 3.2v4 cc rejects this. */
3821 char const *s = 0 ? (char *) 0 : (char const *) 0;
3825 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3827 const int *foo = &x[0];
3830 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3831 typedef const int *iptr;
3835 { /* AIX XL C 1.02.0.0 rejects this saying
3836 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3837 struct s { int j; const int *ap[3]; };
3838 struct s *b; b->j = 5;
3840 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3849 rm -f conftest.$ac_objext
3850 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3851 (eval $ac_compile) 2>&5
3853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3854 (exit $ac_status); } &&
3855 { ac_try='test -s conftest.$ac_objext'
3856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3860 (exit $ac_status); }; }; then
3863 echo "$as_me: failed program was:" >&5
3864 cat conftest.$ac_ext >&5
3867 rm -f conftest.$ac_objext conftest.$ac_ext
3869 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3870 echo "${ECHO_T}$ac_cv_c_const" >&6
3871 if test $ac_cv_c_const = no; then
3873 cat >>confdefs.h <<\_ACEOF
3879 echo "$as_me:$LINENO: checking for working volatile" >&5
3880 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
3881 if test "${ac_cv_c_volatile+set}" = set; then
3882 echo $ECHO_N "(cached) $ECHO_C" >&6
3884 cat >conftest.$ac_ext <<_ACEOF
3885 #line $LINENO "configure"
3886 #include "confdefs.h"
3888 #ifdef F77_DUMMY_MAIN
3892 int F77_DUMMY_MAIN() { return 1; }
3904 rm -f conftest.$ac_objext
3905 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3906 (eval $ac_compile) 2>&5
3908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3909 (exit $ac_status); } &&
3910 { ac_try='test -s conftest.$ac_objext'
3911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3915 (exit $ac_status); }; }; then
3916 ac_cv_c_volatile=yes
3918 echo "$as_me: failed program was:" >&5
3919 cat conftest.$ac_ext >&5
3922 rm -f conftest.$ac_objext conftest.$ac_ext
3924 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
3925 echo "${ECHO_T}$ac_cv_c_volatile" >&6
3926 if test $ac_cv_c_volatile = no; then
3928 cat >>confdefs.h <<\_ACEOF
3934 echo "$as_me:$LINENO: checking for inline" >&5
3935 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3936 if test "${ac_cv_c_inline+set}" = set; then
3937 echo $ECHO_N "(cached) $ECHO_C" >&6
3940 for ac_kw in inline __inline__ __inline; do
3941 cat >conftest.$ac_ext <<_ACEOF
3942 #line $LINENO "configure"
3943 #include "confdefs.h"
3945 static $ac_kw int static_foo () {return 0; }
3946 $ac_kw int foo () {return 0; }
3950 rm -f conftest.$ac_objext
3951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3952 (eval $ac_compile) 2>&5
3954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3955 (exit $ac_status); } &&
3956 { ac_try='test -s conftest.$ac_objext'
3957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3961 (exit $ac_status); }; }; then
3962 ac_cv_c_inline=$ac_kw; break
3964 echo "$as_me: failed program was:" >&5
3965 cat conftest.$ac_ext >&5
3967 rm -f conftest.$ac_objext conftest.$ac_ext
3971 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3972 echo "${ECHO_T}$ac_cv_c_inline" >&6
3973 case $ac_cv_c_inline in
3976 cat >>confdefs.h <<\_ACEOF
3980 *) cat >>confdefs.h <<_ACEOF
3981 #define inline $ac_cv_c_inline
3986 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
3987 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
3988 if test "${ac_cv_c_bigendian+set}" = set; then
3989 echo $ECHO_N "(cached) $ECHO_C" >&6
3991 # See if sys/param.h defines the BYTE_ORDER macro.
3992 cat >conftest.$ac_ext <<_ACEOF
3993 #line $LINENO "configure"
3994 #include "confdefs.h"
3995 #include <sys/types.h>
3996 #include <sys/param.h>
3998 #ifdef F77_DUMMY_MAIN
4002 int F77_DUMMY_MAIN() { return 1; }
4007 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4015 rm -f conftest.$ac_objext
4016 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4017 (eval $ac_compile) 2>&5
4019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4020 (exit $ac_status); } &&
4021 { ac_try='test -s conftest.$ac_objext'
4022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4026 (exit $ac_status); }; }; then
4027 # It does; now see whether it defined to BIG_ENDIAN or not.
4028 cat >conftest.$ac_ext <<_ACEOF
4029 #line $LINENO "configure"
4030 #include "confdefs.h"
4031 #include <sys/types.h>
4032 #include <sys/param.h>
4034 #ifdef F77_DUMMY_MAIN
4038 int F77_DUMMY_MAIN() { return 1; }
4043 #if BYTE_ORDER != BIG_ENDIAN
4051 rm -f conftest.$ac_objext
4052 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4053 (eval $ac_compile) 2>&5
4055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4056 (exit $ac_status); } &&
4057 { ac_try='test -s conftest.$ac_objext'
4058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4062 (exit $ac_status); }; }; then
4063 ac_cv_c_bigendian=yes
4065 echo "$as_me: failed program was:" >&5
4066 cat conftest.$ac_ext >&5
4067 ac_cv_c_bigendian=no
4069 rm -f conftest.$ac_objext conftest.$ac_ext
4071 echo "$as_me: failed program was:" >&5
4072 cat conftest.$ac_ext >&5
4073 # It does not; compile a test program.
4074 if test "$cross_compiling" = yes; then
4075 # try to guess the endianess by grep'ing values into an object file
4076 ac_cv_c_bigendian=unknown
4077 cat >conftest.$ac_ext <<_ACEOF
4078 #line $LINENO "configure"
4079 #include "confdefs.h"
4080 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4081 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4082 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4083 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4084 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4085 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4086 #ifdef F77_DUMMY_MAIN
4090 int F77_DUMMY_MAIN() { return 1; }
4095 _ascii (); _ebcdic ();
4100 rm -f conftest.$ac_objext
4101 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4102 (eval $ac_compile) 2>&5
4104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4105 (exit $ac_status); } &&
4106 { ac_try='test -s conftest.$ac_objext'
4107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4111 (exit $ac_status); }; }; then
4112 if fgrep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4113 ac_cv_c_bigendian=yes
4115 if fgrep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4116 if test "$ac_cv_c_bigendian" = unknown; then
4117 ac_cv_c_bigendian=no
4119 # finding both strings is unlikely to happen, but who knows?
4120 ac_cv_c_bigendian=unknown
4124 echo "$as_me: failed program was:" >&5
4125 cat conftest.$ac_ext >&5
4127 rm -f conftest.$ac_objext conftest.$ac_ext
4129 cat >conftest.$ac_ext <<_ACEOF
4130 #line $LINENO "configure"
4131 #include "confdefs.h"
4135 /* Are we little or big endian? From Harbison&Steele. */
4139 char c[sizeof (long)];
4142 exit (u.c[sizeof (long) - 1] == 1);
4145 rm -f conftest$ac_exeext
4146 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4147 (eval $ac_link) 2>&5
4149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4150 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4155 (exit $ac_status); }; }; then
4156 ac_cv_c_bigendian=no
4158 echo "$as_me: program exited with status $ac_status" >&5
4159 echo "$as_me: failed program was:" >&5
4160 cat conftest.$ac_ext >&5
4162 ac_cv_c_bigendian=yes
4164 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4167 rm -f conftest.$ac_objext conftest.$ac_ext
4169 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4170 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
4171 case $ac_cv_c_bigendian in
4174 cat >>confdefs.h <<\_ACEOF
4175 #define WORDS_BIGENDIAN 1
4181 { { echo "$as_me:$LINENO: error: unknown endianess
4182 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4183 echo "$as_me: error: unknown endianess
4184 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4185 { (exit 1); exit 1; }; } ;;
4188 echo "$as_me:$LINENO: checking for working long double with more range or precision than double" >&5
4189 echo $ECHO_N "checking for working long double with more range or precision than double... $ECHO_C" >&6
4190 if test "${ac_cv_c_long_double+set}" = set; then
4191 echo $ECHO_N "(cached) $ECHO_C" >&6
4193 cat >conftest.$ac_ext <<_ACEOF
4194 #line $LINENO "configure"
4195 #include "confdefs.h"
4197 long double foo = 0.0;
4198 #ifdef F77_DUMMY_MAIN
4202 int F77_DUMMY_MAIN() { return 1; }
4207 static int test_array [1 - 2 * !(/* Using '|' rather than '||' catches a GCC 2.95.2 x86 bug. */
4208 (DBL_MAX < LDBL_MAX) | (LDBL_EPSILON < DBL_EPSILON)
4209 | (DBL_MAX_EXP < LDBL_MAX_EXP) | (DBL_MANT_DIG < LDBL_MANT_DIG))];
4216 rm -f conftest.$ac_objext
4217 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4218 (eval $ac_compile) 2>&5
4220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4221 (exit $ac_status); } &&
4222 { ac_try='test -s conftest.$ac_objext'
4223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4227 (exit $ac_status); }; }; then
4228 ac_cv_c_long_double=yes
4230 echo "$as_me: failed program was:" >&5
4231 cat conftest.$ac_ext >&5
4232 ac_cv_c_long_double=no
4234 rm -f conftest.$ac_objext conftest.$ac_ext
4236 echo "$as_me:$LINENO: result: $ac_cv_c_long_double" >&5
4237 echo "${ECHO_T}$ac_cv_c_long_double" >&6
4238 if test $ac_cv_c_long_double = yes; then
4240 cat >>confdefs.h <<\_ACEOF
4241 #define HAVE_LONG_DOUBLE 1
4249 echo "$as_me:$LINENO: checking for strerror" >&5
4250 echo $ECHO_N "checking for strerror... $ECHO_C" >&6
4251 if test "${ac_cv_func_strerror+set}" = set; then
4252 echo $ECHO_N "(cached) $ECHO_C" >&6
4254 cat >conftest.$ac_ext <<_ACEOF
4255 #line $LINENO "configure"
4256 #include "confdefs.h"
4257 /* System header to define __stub macros and hopefully few prototypes,
4258 which can conflict with char strerror (); below. */
4260 /* Override any gcc2 internal prototype to avoid an error. */
4264 /* We use char because int might match the return type of a gcc2
4265 builtin and then its argument prototype would still apply. */
4269 #ifdef F77_DUMMY_MAIN
4273 int F77_DUMMY_MAIN() { return 1; }
4278 /* The GNU C library defines this for functions which it implements
4279 to always fail with ENOSYS. Some functions are actually named
4280 something starting with __ and the normal name is an alias. */
4281 #if defined (__stub_strerror) || defined (__stub___strerror)
4291 rm -f conftest.$ac_objext conftest$ac_exeext
4292 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4293 (eval $ac_link) 2>&5
4295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4296 (exit $ac_status); } &&
4297 { ac_try='test -s conftest$ac_exeext'
4298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4302 (exit $ac_status); }; }; then
4303 ac_cv_func_strerror=yes
4305 echo "$as_me: failed program was:" >&5
4306 cat conftest.$ac_ext >&5
4307 ac_cv_func_strerror=no
4309 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4311 echo "$as_me:$LINENO: result: $ac_cv_func_strerror" >&5
4312 echo "${ECHO_T}$ac_cv_func_strerror" >&6
4313 if test $ac_cv_func_strerror = yes; then
4316 { { echo "$as_me:$LINENO: error: \"need strerror function\"" >&5
4317 echo "$as_me: error: \"need strerror function\"" >&2;}
4318 { (exit 1); exit 1; }; }
4326 ac_config_files="$ac_config_files $ac_output_file"
4327 ac_config_commands="$ac_config_commands default"
4328 cat >confcache <<\_ACEOF
4329 # This file is a shell script that caches the results of configure
4330 # tests run on this system so they can be shared between configure
4331 # scripts and configure runs, see configure's option --config-cache.
4332 # It is not useful on other systems. If it contains results you don't
4333 # want to keep, you may remove or edit it.
4335 # config.status only pays attention to the cache file if you give it
4336 # the --recheck option to rerun configure.
4338 # `ac_cv_env_foo' variables (set or unset) will be overriden when
4339 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4344 # The following way of writing the cache mishandles newlines in values,
4345 # but we know of no workaround that is simple, portable, and efficient.
4346 # So, don't put newlines in cache variables' values.
4347 # Ultrix sh set writes to stderr and can't be redirected directly,
4348 # and sets the high bit in the cache file unless we assign to the vars.
4351 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4353 # `set' does not quote correctly, so add quotes (double-quote
4354 # substitution turns \\\\ into \\, and sed turns \\ into \).
4357 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4360 # `set' quotes correctly as required by POSIX, so do not add quotes.
4362 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4369 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4371 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4373 if cmp -s $cache_file confcache; then :; else
4374 if test -w $cache_file; then
4375 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4376 cat confcache >$cache_file
4378 echo "not updating unwritable cache $cache_file"
4383 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4384 # Let make expand exec_prefix.
4385 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4387 # VPATH may cause trouble with some makes, so we remove $(srcdir),
4388 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
4389 # trailing colons and then remove the whole line if VPATH becomes empty
4390 # (actually we leave an empty line to preserve line numbers).
4391 if test "x$srcdir" = x.; then
4392 ac_vpsub='/^[ ]*VPATH[ ]*=/{
4393 s/:*\$(srcdir):*/:/;
4394 s/:*\${srcdir}:*/:/;
4396 s/^\([^=]*=[ ]*\):*/\1/;
4402 DEFS=-DHAVE_CONFIG_H
4405 : ${CONFIG_STATUS=./config.status}
4406 ac_clean_files_save=$ac_clean_files
4407 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4408 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
4409 echo "$as_me: creating $CONFIG_STATUS" >&6;}
4410 cat >$CONFIG_STATUS <<_ACEOF
4412 # Generated by $as_me.
4413 # Run this file to recreate the current configuration.
4414 # Compiler output produced by configure, useful for debugging
4415 # configure, is in config.log if it exists.
4418 SHELL=\${CONFIG_SHELL-$SHELL}
4421 cat >>$CONFIG_STATUS <<\_ACEOF
4423 ## --------------------- ##
4424 ## M4sh Initialization. ##
4425 ## --------------------- ##
4427 # Be Bourne compatible
4428 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
4431 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
4436 # Support unset when possible.
4437 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
4443 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
4444 { $as_unset LANG || test "${LANG+set}" != set; } ||
4445 { LANG=C; export LANG; }
4446 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
4447 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
4448 { LC_ALL=C; export LC_ALL; }
4449 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
4450 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
4451 { LC_TIME=C; export LC_TIME; }
4452 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
4453 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
4454 { LC_CTYPE=C; export LC_CTYPE; }
4455 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
4456 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
4457 { LANGUAGE=C; export LANGUAGE; }
4458 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
4459 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
4460 { LC_COLLATE=C; export LC_COLLATE; }
4461 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
4462 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
4463 { LC_NUMERIC=C; export LC_NUMERIC; }
4464 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
4465 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
4466 { LC_MESSAGES=C; export LC_MESSAGES; }
4469 # Name of the executable.
4470 as_me=`(basename "$0") 2>/dev/null ||
4471 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4472 X"$0" : 'X\(//\)$' \| \
4473 X"$0" : 'X\(/\)$' \| \
4474 . : '\(.\)' 2>/dev/null ||
4476 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
4477 /^X\/\(\/\/\)$/{ s//\1/; q; }
4478 /^X\/\(\/\).*/{ s//\1/; q; }
4481 # PATH needs CR, and LINENO needs CR and PATH.
4482 # Avoid depending upon Character Ranges.
4483 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
4484 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4485 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
4486 as_cr_digits='0123456789'
4487 as_cr_alnum=$as_cr_Letters$as_cr_digits
4489 # The user is always right.
4490 if test "${PATH_SEPARATOR+set}" != set; then
4491 echo "#! /bin/sh" >conftest.sh
4492 echo "exit 0" >>conftest.sh
4493 chmod +x conftest.sh
4494 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
4505 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4506 test "x$as_lineno_1" != "x$as_lineno_2" &&
4507 test "x$as_lineno_3" = "x$as_lineno_2" || {
4508 # Find who we are. Look in the path if we contain no path at all
4511 *[\\/]* ) as_myself=$0 ;;
4512 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4516 test -z "$as_dir" && as_dir=.
4517 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4522 # We did not find ourselves, most probably we were run as `sh COMMAND'
4523 # in which case we are not to be found in the path.
4524 if test "x$as_myself" = x; then
4527 if test ! -f "$as_myself"; then
4528 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
4529 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
4530 { (exit 1); exit 1; }; }
4532 case $CONFIG_SHELL in
4534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4535 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
4538 test -z "$as_dir" && as_dir=.
4539 for as_base in sh bash ksh sh5; do
4542 if ("$as_dir/$as_base" -c '
4545 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4546 test "x$as_lineno_1" != "x$as_lineno_2" &&
4547 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
4548 CONFIG_SHELL=$as_dir/$as_base
4550 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
4558 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
4559 # uniformly replaced by the line number. The first 'sed' inserts a
4560 # line-number line before each line; the second 'sed' does the real
4561 # work. The second script uses 'N' to pair each line-number line
4562 # with the numbered line, and appends trailing '-' during
4563 # substitution so that $LINENO is not a special case at line end.
4564 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
4565 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
4566 sed '=' <$as_myself |
4571 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
4574 s,^['$as_cr_digits']*\n,,
4576 chmod +x $as_me.lineno ||
4577 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
4578 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
4579 { (exit 1); exit 1; }; }
4581 # Don't try to exec as it changes $[0], causing all sort of problems
4582 # (the dirname of $[0] is not the place where we might find the
4583 # original and so on. Autoconf is especially sensible to this).
4585 # Exit status is that of the last command.
4590 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
4591 *c*,-n*) ECHO_N= ECHO_C='
4593 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
4594 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
4597 if expr a : '\(a\)' >/dev/null 2>&1; then
4603 rm -f conf$$ conf$$.exe conf$$.file
4605 if ln -s conf$$.file conf$$ 2>/dev/null; then
4606 # We could just check for DJGPP; but this test a) works b) is more generic
4607 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
4608 if test -f conf$$.exe; then
4609 # Don't use ln at all; we don't have any links
4614 elif ln conf$$.file conf$$ 2>/dev/null; then
4619 rm -f conf$$ conf$$.exe conf$$.file
4621 as_executable_p="test -f"
4623 # Sed expression to map a string onto a valid CPP name.
4624 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
4626 # Sed expression to map a string onto a valid variable name.
4627 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
4631 # We need space, tab and new line, in precisely that order.
4637 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
4641 # Open the log real soon, to keep \$[0] and so on meaningful, and to
4642 # report actual input values of CONFIG_FILES etc. instead of their
4643 # values after options handling. Logging --version etc. is OK.
4647 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4648 ## Running $as_me. ##
4653 This file was extended by libfirm $as_me 0.3.0, which was
4654 generated by GNU Autoconf 2.53. Invocation command line was
4656 CONFIG_FILES = $CONFIG_FILES
4657 CONFIG_HEADERS = $CONFIG_HEADERS
4658 CONFIG_LINKS = $CONFIG_LINKS
4659 CONFIG_COMMANDS = $CONFIG_COMMANDS
4663 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
4667 # Files that config.status was made for.
4668 if test -n "$ac_config_files"; then
4669 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
4672 if test -n "$ac_config_headers"; then
4673 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
4676 if test -n "$ac_config_links"; then
4677 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
4680 if test -n "$ac_config_commands"; then
4681 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
4684 cat >>$CONFIG_STATUS <<\_ACEOF
4687 \`$as_me' instantiates files from templates according to the
4688 current configuration.
4690 Usage: $0 [OPTIONS] [FILE]...
4692 -h, --help print this help, then exit
4693 -V, --version print version number, then exit
4694 -d, --debug don't remove temporary files
4695 --recheck update $as_me by reconfiguring in the same conditions
4696 --file=FILE[:TEMPLATE]
4697 instantiate the configuration file FILE
4698 --header=FILE[:TEMPLATE]
4699 instantiate the configuration header FILE
4701 Configuration files:
4704 Configuration headers:
4707 Configuration commands:
4710 Report bugs to <bug-autoconf@gnu.org>."
4713 cat >>$CONFIG_STATUS <<_ACEOF
4715 libfirm config.status 0.3.0
4716 configured by $0, generated by GNU Autoconf 2.53,
4717 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
4719 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
4720 Free Software Foundation, Inc.
4721 This config.status script is free software; the Free Software Foundation
4722 gives unlimited permission to copy, distribute and modify it."
4727 cat >>$CONFIG_STATUS <<\_ACEOF
4728 # If no file are specified by the user, then we need to provide default
4729 # value. By we need to know if files were specified by the user.
4735 ac_option=`expr "x$1" : 'x\([^=]*\)='`
4736 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
4738 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
4742 *) # This is not an option, so the user has probably given explicit
4744 ac_need_defaults=false;;
4748 # Handling of the options.
4750 cat >>$CONFIG_STATUS <<_ACEOF
4751 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4752 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
4753 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
4755 cat >>$CONFIG_STATUS <<\_ACEOF
4756 --version | --vers* | -V )
4757 echo "$ac_cs_version"; exit 0 ;;
4759 # Conflict between --help and --header
4760 { { echo "$as_me:$LINENO: error: ambiguous option: $1
4761 Try \`$0 --help' for more information." >&5
4762 echo "$as_me: error: ambiguous option: $1
4763 Try \`$0 --help' for more information." >&2;}
4764 { (exit 1); exit 1; }; };;
4765 --help | --hel | -h )
4766 echo "$ac_cs_usage"; exit 0 ;;
4767 --debug | --d* | -d )
4769 --file | --fil | --fi | --f )
4771 CONFIG_FILES="$CONFIG_FILES $1"
4772 ac_need_defaults=false;;
4773 --header | --heade | --head | --hea )
4775 CONFIG_HEADERS="$CONFIG_HEADERS $1"
4776 ac_need_defaults=false;;
4779 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
4780 Try \`$0 --help' for more information." >&5
4781 echo "$as_me: error: unrecognized option: $1
4782 Try \`$0 --help' for more information." >&2;}
4783 { (exit 1); exit 1; }; } ;;
4785 *) ac_config_targets="$ac_config_targets $1" ;;
4797 cat >>$CONFIG_STATUS <<\_ACEOF
4798 for ac_config_target in $ac_config_targets
4800 case "$ac_config_target" in
4801 # Handling of arguments.
4802 "$ac_output_file" ) CONFIG_FILES="$CONFIG_FILES $ac_output_file" ;;
4803 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
4804 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
4805 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
4806 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
4807 { (exit 1); exit 1; }; };;
4811 # If the user did not use the arguments to specify the items to instantiate,
4812 # then the envvar interface is used. Set only those that are not.
4813 # We use the long form for the default assignment because of an extremely
4814 # bizarre bug on SunOS 4.1.3.
4815 if $ac_need_defaults; then
4816 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
4817 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
4818 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
4821 # Create a temporary directory, and hook for its removal unless debugging.
4824 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
4825 trap '{ (exit 1); exit 1; }' 1 2 13 15
4828 # Create a (secure) tmp directory for tmp files.
4831 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
4832 test -n "$tmp" && test -d "$tmp"
4835 tmp=$TMPDIR/cs$$-$RANDOM
4836 (umask 077 && mkdir $tmp)
4839 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
4840 { (exit 1); exit 1; }
4845 cat >>$CONFIG_STATUS <<_ACEOF
4848 # CONFIG_FILES section.
4851 # No need to generate the scripts if there are no CONFIG_FILES.
4852 # This happens for instance when ./config.status config.h
4853 if test -n "\$CONFIG_FILES"; then
4854 # Protect against being on the right side of a sed subst in config.status.
4855 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
4856 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
4857 s,@SHELL@,$SHELL,;t t
4858 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
4859 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
4860 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
4861 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
4862 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
4863 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
4864 s,@exec_prefix@,$exec_prefix,;t t
4865 s,@prefix@,$prefix,;t t
4866 s,@program_transform_name@,$program_transform_name,;t t
4867 s,@bindir@,$bindir,;t t
4868 s,@sbindir@,$sbindir,;t t
4869 s,@libexecdir@,$libexecdir,;t t
4870 s,@datadir@,$datadir,;t t
4871 s,@sysconfdir@,$sysconfdir,;t t
4872 s,@sharedstatedir@,$sharedstatedir,;t t
4873 s,@localstatedir@,$localstatedir,;t t
4874 s,@libdir@,$libdir,;t t
4875 s,@includedir@,$includedir,;t t
4876 s,@oldincludedir@,$oldincludedir,;t t
4877 s,@infodir@,$infodir,;t t
4878 s,@mandir@,$mandir,;t t
4879 s,@build_alias@,$build_alias,;t t
4880 s,@host_alias@,$host_alias,;t t
4881 s,@target_alias@,$target_alias,;t t
4883 s,@ECHO_C@,$ECHO_C,;t t
4884 s,@ECHO_N@,$ECHO_N,;t t
4885 s,@ECHO_T@,$ECHO_T,;t t
4887 s,@libfirm_conf_env@,$libfirm_conf_env,;t t
4888 s,@enable_debug_libfirm@,$enable_debug_libfirm,;t t
4889 s,@enable_profile_libfirm@,$enable_profile_libfirm,;t t
4890 s,@enable_auto_documentation@,$enable_auto_documentation,;t t
4891 s,@enable_firm_jni@,$enable_firm_jni,;t t
4892 s,@enable_heapanalysis@,$enable_heapanalysis,;t t
4893 s,@disable_libiberty@,$disable_libiberty,;t t
4894 s,@enable_statistics@,$enable_statistics,;t t
4896 s,@CFLAGS@,$CFLAGS,;t t
4897 s,@LDFLAGS@,$LDFLAGS,;t t
4898 s,@CPPFLAGS@,$CPPFLAGS,;t t
4899 s,@ac_ct_CC@,$ac_ct_CC,;t t
4900 s,@EXEEXT@,$EXEEXT,;t t
4901 s,@OBJEXT@,$OBJEXT,;t t
4903 s,@ac_ct_LD@,$ac_ct_LD,;t t
4904 s,@libfirm_cv_prog_ld_r@,$libfirm_cv_prog_ld_r,;t t
4907 s,@RANLIB@,$RANLIB,;t t
4908 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
4909 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
4910 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
4911 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
4913 s,@DOXYGEN@,$DOXYGEN,;t t
4915 s,@JAVAC@,$JAVAC,;t t
4916 s,@JAVAH@,$JAVAH,;t t
4922 cat >>$CONFIG_STATUS <<\_ACEOF
4923 # Split the substitutions into bite-sized pieces for seds with
4924 # small command number limits, like on Digital OSF/1 and HP-UX.
4926 ac_sed_frag=1 # Number of current file.
4927 ac_beg=1 # First line for current file.
4928 ac_end=$ac_max_sed_lines # Line after last line for current file.
4931 while $ac_more_lines; do
4932 if test $ac_beg -gt 1; then
4933 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4935 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4937 if test ! -s $tmp/subs.frag; then
4940 # The purpose of the label and of the branching condition is to
4941 # speed up the sed processing (if there are no `@' at all, there
4942 # is no need to browse any of the substitutions).
4943 # These are the two extra sed commands mentioned above.
4945 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
4946 if test -z "$ac_sed_cmds"; then
4947 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
4949 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
4951 ac_sed_frag=`expr $ac_sed_frag + 1`
4953 ac_end=`expr $ac_end + $ac_max_sed_lines`
4956 if test -z "$ac_sed_cmds"; then
4959 fi # test -n "$CONFIG_FILES"
4962 cat >>$CONFIG_STATUS <<\_ACEOF
4963 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
4964 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4966 - | *:- | *:-:* ) # input from stdin
4968 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4969 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4970 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4971 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4972 * ) ac_file_in=$ac_file.in ;;
4975 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
4976 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
4977 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4978 X"$ac_file" : 'X\(//\)[^/]' \| \
4979 X"$ac_file" : 'X\(//\)$' \| \
4980 X"$ac_file" : 'X\(/\)' \| \
4981 . : '\(.\)' 2>/dev/null ||
4983 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4984 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4985 /^X\(\/\/\)$/{ s//\1/; q; }
4986 /^X\(\/\).*/{ s//\1/; q; }
4989 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
4993 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
4994 case $as_mkdir_dir in
4995 # Skip DOS drivespec
4996 ?:) as_incr_dir=$as_mkdir_dir ;;
4998 as_incr_dir=$as_incr_dir/$as_mkdir_dir
4999 test -d "$as_incr_dir" ||
5000 mkdir "$as_incr_dir" ||
5001 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
5002 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
5003 { (exit 1); exit 1; }; }
5010 if test "$ac_dir" != .; then
5011 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5012 # A "../" for each directory in $ac_dir_suffix.
5013 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
5015 ac_dir_suffix= ac_top_builddir=
5019 .) # No --srcdir option. We are building in place.
5021 if test -z "$ac_top_builddir"; then
5024 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
5026 [\\/]* | ?:[\\/]* ) # Absolute path.
5027 ac_srcdir=$srcdir$ac_dir_suffix;
5028 ac_top_srcdir=$srcdir ;;
5030 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
5031 ac_top_srcdir=$ac_top_builddir$srcdir ;;
5033 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
5035 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
5036 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
5037 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
5038 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
5042 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5043 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
5046 if test x"$ac_file" != x-; then
5047 { echo "$as_me:$LINENO: creating $ac_file" >&5
5048 echo "$as_me: creating $ac_file" >&6;}
5051 # Let's still pretend it is `configure' which instantiates (i.e., don't
5052 # use $as_me), people would be surprised to read:
5053 # /* config.h. Generated by config.status. */
5054 if test x"$ac_file" = x-; then
5057 configure_input="$ac_file. "
5059 configure_input=$configure_input"Generated from `echo $ac_file_in |
5060 sed 's,.*/,,'` by configure."
5062 # First look for the input files in the build tree, otherwise in the
5064 ac_file_inputs=`IFS=:
5065 for f in $ac_file_in; do
5067 -) echo $tmp/stdin ;;
5069 # Absolute (can't be DOS-style, as IFS=:)
5070 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5071 echo "$as_me: error: cannot find input file: $f" >&2;}
5072 { (exit 1); exit 1; }; }
5075 if test -f "$f"; then
5078 elif test -f "$srcdir/$f"; then
5083 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5084 echo "$as_me: error: cannot find input file: $f" >&2;}
5085 { (exit 1); exit 1; }; }
5088 done` || { (exit 1); exit 1; }
5090 cat >>$CONFIG_STATUS <<_ACEOF
5094 cat >>$CONFIG_STATUS <<\_ACEOF
5096 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5097 s,@configure_input@,$configure_input,;t t
5098 s,@srcdir@,$ac_srcdir,;t t
5099 s,@abs_srcdir@,$ac_abs_srcdir,;t t
5100 s,@top_srcdir@,$ac_top_srcdir,;t t
5101 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
5102 s,@builddir@,$ac_builddir,;t t
5103 s,@abs_builddir@,$ac_abs_builddir,;t t
5104 s,@top_builddir@,$ac_top_builddir,;t t
5105 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
5106 s,@INSTALL@,$ac_INSTALL,;t t
5107 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
5109 if test x"$ac_file" != x-; then
5110 mv $tmp/out $ac_file
5118 cat >>$CONFIG_STATUS <<\_ACEOF
5121 # CONFIG_HEADER section.
5124 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5125 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5127 # ac_d sets the value in "#define NAME VALUE" lines.
5128 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5129 ac_dB='[ ].*$,\1#\2'
5132 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5133 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5134 ac_uB='$,\1#\2define\3'
5138 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
5139 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5141 - | *:- | *:-:* ) # input from stdin
5143 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5144 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5145 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5146 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5147 * ) ac_file_in=$ac_file.in ;;
5150 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
5151 echo "$as_me: creating $ac_file" >&6;}
5153 # First look for the input files in the build tree, otherwise in the
5155 ac_file_inputs=`IFS=:
5156 for f in $ac_file_in; do
5158 -) echo $tmp/stdin ;;
5160 # Absolute (can't be DOS-style, as IFS=:)
5161 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5162 echo "$as_me: error: cannot find input file: $f" >&2;}
5163 { (exit 1); exit 1; }; }
5166 if test -f "$f"; then
5169 elif test -f "$srcdir/$f"; then
5174 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5175 echo "$as_me: error: cannot find input file: $f" >&2;}
5176 { (exit 1); exit 1; }; }
5179 done` || { (exit 1); exit 1; }
5180 # Remove the trailing spaces.
5181 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
5185 # Transform confdefs.h into two sed scripts, `conftest.defines' and
5186 # `conftest.undefs', that substitutes the proper values into
5187 # config.h.in to produce config.h. The first handles `#define'
5188 # templates, and the second `#undef' templates.
5189 # And first: Protect against being on the right side of a sed subst in
5190 # config.status. Protect against being in an unquoted here document
5192 rm -f conftest.defines conftest.undefs
5193 # Using a here document instead of a string reduces the quoting nightmare.
5194 # Putting comments in sed scripts is not portable.
5196 # `end' is used to avoid that the second main sed command (meant for
5197 # 0-ary CPP macros) applies to n-ary macro definitions.
5198 # See the Autoconf documentation for `clear'.
5199 cat >confdef2sed.sed <<\_ACEOF
5204 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
5206 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
5209 # If some macros were called several times there might be several times
5210 # the same #defines, which is useless. Nevertheless, we may not want to
5211 # sort them, since we want the *last* AC-DEFINE to be honored.
5212 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
5213 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
5214 rm -f confdef2sed.sed
5216 # This sed command replaces #undef with comments. This is necessary, for
5217 # example, in the case of _POSIX_SOURCE, which is predefined and required
5218 # on some systems where configure will not decide to define it.
5219 cat >>conftest.undefs <<\_ACEOF
5220 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
5223 # Break up conftest.defines because some shells have a limit on the size
5224 # of here documents, and old seds have small limits too (100 cmds).
5225 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
5226 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
5227 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
5228 echo ' :' >>$CONFIG_STATUS
5230 while grep . conftest.defines >/dev/null
5232 # Write a limited-size here document to $tmp/defines.sed.
5233 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
5234 # Speed up: don't consider the non `#define' lines.
5235 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
5236 # Work around the forget-to-reset-the-flag bug.
5237 echo 't clr' >>$CONFIG_STATUS
5238 echo ': clr' >>$CONFIG_STATUS
5239 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
5241 sed -f $tmp/defines.sed $tmp/in >$tmp/out
5245 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
5246 rm -f conftest.defines
5247 mv conftest.tail conftest.defines
5249 rm -f conftest.defines
5250 echo ' fi # egrep' >>$CONFIG_STATUS
5251 echo >>$CONFIG_STATUS
5253 # Break up conftest.undefs because some shells have a limit on the size
5254 # of here documents, and old seds have small limits too (100 cmds).
5255 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
5257 while grep . conftest.undefs >/dev/null
5259 # Write a limited-size here document to $tmp/undefs.sed.
5260 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
5261 # Speed up: don't consider the non `#undef'
5262 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
5263 # Work around the forget-to-reset-the-flag bug.
5264 echo 't clr' >>$CONFIG_STATUS
5265 echo ': clr' >>$CONFIG_STATUS
5266 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
5268 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
5272 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
5273 rm -f conftest.undefs
5274 mv conftest.tail conftest.undefs
5276 rm -f conftest.undefs
5278 cat >>$CONFIG_STATUS <<\_ACEOF
5279 # Let's still pretend it is `configure' which instantiates (i.e., don't
5280 # use $as_me), people would be surprised to read:
5281 # /* config.h. Generated by config.status. */
5282 if test x"$ac_file" = x-; then
5283 echo "/* Generated by configure. */" >$tmp/config.h
5285 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
5287 cat $tmp/in >>$tmp/config.h
5289 if test x"$ac_file" != x-; then
5290 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
5291 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
5292 echo "$as_me: $ac_file is unchanged" >&6;}
5294 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
5295 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5296 X"$ac_file" : 'X\(//\)[^/]' \| \
5297 X"$ac_file" : 'X\(//\)$' \| \
5298 X"$ac_file" : 'X\(/\)' \| \
5299 . : '\(.\)' 2>/dev/null ||
5301 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5302 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5303 /^X\(\/\/\)$/{ s//\1/; q; }
5304 /^X\(\/\).*/{ s//\1/; q; }
5307 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
5311 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
5312 case $as_mkdir_dir in
5313 # Skip DOS drivespec
5314 ?:) as_incr_dir=$as_mkdir_dir ;;
5316 as_incr_dir=$as_incr_dir/$as_mkdir_dir
5317 test -d "$as_incr_dir" ||
5318 mkdir "$as_incr_dir" ||
5319 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
5320 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
5321 { (exit 1); exit 1; }; }
5327 mv $tmp/config.h $ac_file
5335 cat >>$CONFIG_STATUS <<\_ACEOF
5338 # CONFIG_COMMANDS section.
5340 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
5341 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
5342 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
5343 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
5344 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5345 X"$ac_dest" : 'X\(//\)[^/]' \| \
5346 X"$ac_dest" : 'X\(//\)$' \| \
5347 X"$ac_dest" : 'X\(/\)' \| \
5348 . : '\(.\)' 2>/dev/null ||
5350 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5351 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5352 /^X\(\/\/\)$/{ s//\1/; q; }
5353 /^X\(\/\).*/{ s//\1/; q; }
5357 if test "$ac_dir" != .; then
5358 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5359 # A "../" for each directory in $ac_dir_suffix.
5360 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
5362 ac_dir_suffix= ac_top_builddir=
5366 .) # No --srcdir option. We are building in place.
5368 if test -z "$ac_top_builddir"; then
5371 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
5373 [\\/]* | ?:[\\/]* ) # Absolute path.
5374 ac_srcdir=$srcdir$ac_dir_suffix;
5375 ac_top_srcdir=$srcdir ;;
5377 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
5378 ac_top_srcdir=$ac_top_builddir$srcdir ;;
5380 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
5382 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
5383 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
5384 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
5385 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
5388 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
5389 echo "$as_me: executing $ac_dest commands" >&6;}
5391 default ) touch stamp-h ;;
5396 cat >>$CONFIG_STATUS <<\_ACEOF
5398 { (exit 0); exit 0; }
5400 chmod +x $CONFIG_STATUS
5401 ac_clean_files=$ac_clean_files_save
5404 # configure is writing to config.log, and then calls config.status.
5405 # config.status does its own redirection, appending to config.log.
5406 # Unfortunately, on DOS this fails, as config.log is still kept open
5407 # by configure, so config.status won't be able to write to it; its
5408 # output is simply discarded. So we exec the FD to /dev/null,
5409 # effectively closing config.log, so it can be properly (re)opened and
5410 # appended to by config.status. When coming back to configure, we
5411 # need to make the FD available again.
5412 if test "$no_create" != yes; then
5415 $SHELL $CONFIG_STATUS || ac_cs_success=false
5417 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5418 # would make configure fail if this is the last instruction.
5419 $ac_cs_success || { (exit 1); exit 1; }