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 --enable-gcc_inline enable gcc inline C-extension
829 --enable-profile enable profiling
830 --enable-autodoc enable auto documentation
831 --enable-firmjni check for tools necesarry to construct a java native interface for Firm
832 --disable-libiberty disable own libiberty parts
833 --enable-statistics enable Firm statistics
836 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
837 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
838 --with-includedir=add colon seperated list of directories to include search path
839 --with-libdir=add colon seperated list of directories to linker search path
841 Some influential environment variables:
842 CC C compiler command
843 CFLAGS C compiler flags
844 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
845 nonstandard directory <lib dir>
846 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
847 headers in a nonstandard directory <include dir>
850 Use these variables to override the choices made by `configure' or to help
851 it to find libraries and programs with nonstandard names/locations.
856 if test "$ac_init_help" = "recursive"; then
857 # If there are subdirs, report their specific --help.
859 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
860 test -d $ac_dir || continue
863 if test "$ac_dir" != .; then
864 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
865 # A "../" for each directory in $ac_dir_suffix.
866 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
868 ac_dir_suffix= ac_top_builddir=
872 .) # No --srcdir option. We are building in place.
874 if test -z "$ac_top_builddir"; then
877 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
879 [\\/]* | ?:[\\/]* ) # Absolute path.
880 ac_srcdir=$srcdir$ac_dir_suffix;
881 ac_top_srcdir=$srcdir ;;
883 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
884 ac_top_srcdir=$ac_top_builddir$srcdir ;;
886 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
888 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
889 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
890 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
891 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
894 # Check for guested configure; otherwise get Cygnus style configure.
895 if test -f $ac_srcdir/configure.gnu; then
897 $SHELL $ac_srcdir/configure.gnu --help=recursive
898 elif test -f $ac_srcdir/configure; then
900 $SHELL $ac_srcdir/configure --help=recursive
901 elif test -f $ac_srcdir/configure.ac ||
902 test -f $ac_srcdir/configure.in; then
906 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
912 test -n "$ac_init_help" && exit 0
913 if $ac_init_version; then
915 libfirm configure 0.3.0
916 generated by GNU Autoconf 2.53
918 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
919 Free Software Foundation, Inc.
920 This configure script is free software; the Free Software Foundation
921 gives unlimited permission to copy, distribute and modify it.
927 This file contains any messages produced by compilers while
928 running configure, to aid debugging if configure makes a mistake.
930 It was created by libfirm $as_me 0.3.0, which was
931 generated by GNU Autoconf 2.53. Invocation command line was
942 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
943 uname -m = `(uname -m) 2>/dev/null || echo unknown`
944 uname -r = `(uname -r) 2>/dev/null || echo unknown`
945 uname -s = `(uname -s) 2>/dev/null || echo unknown`
946 uname -v = `(uname -v) 2>/dev/null || echo unknown`
948 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
949 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
951 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
952 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
953 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
954 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
955 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
956 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
957 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
965 test -z "$as_dir" && as_dir=.
981 # Keep a trace of the command line.
982 # Strip out --no-create and --no-recursion so they do not pile up.
983 # Also quote any args containing shell meta-characters.
989 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
990 | --no-cr | --no-c | -n ) continue ;;
991 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
992 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
994 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
995 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
997 case " $ac_configure_args " in
998 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
999 *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1002 # Get rid of the leading space.
1005 # When interrupted or exit'd, cleanup temporary files, and complete
1006 # config.log. We remove comments because anyway the quotes in there
1007 # would cause problems or look ugly.
1008 # WARNING: Be sure not to use single quotes in there, as some shells,
1009 # such as our DU 5.0 friend, will then `close' the trap.
1010 trap 'exit_status=$?
1011 # Save into config.log some information that might help in debugging.
1015 ## ---------------- ##
1016 ## Cache variables. ##
1017 ## ---------------- ##
1020 # The following way of writing the cache mishandles newlines in values,
1023 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1026 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1027 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1031 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1036 if test -s confdefs.h; then
1043 sed "/^$/d" confdefs.h
1046 test "$ac_signal" != 0 &&
1047 echo "$as_me: caught signal $ac_signal"
1048 echo "$as_me: exit $exit_status"
1050 rm -f core core.* *.core &&
1051 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1054 for ac_signal in 1 2 13 15; do
1055 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1059 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1060 rm -rf conftest* confdefs.h
1061 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1064 # Predefined preprocessor variables.
1066 cat >>confdefs.h <<_ACEOF
1067 #define PACKAGE_NAME "$PACKAGE_NAME"
1071 cat >>confdefs.h <<_ACEOF
1072 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1076 cat >>confdefs.h <<_ACEOF
1077 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1081 cat >>confdefs.h <<_ACEOF
1082 #define PACKAGE_STRING "$PACKAGE_STRING"
1086 cat >>confdefs.h <<_ACEOF
1087 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1091 # Let the site file select an alternate cache file if it wants to.
1092 # Prefer explicitly selected file to automatically selected ones.
1093 if test -z "$CONFIG_SITE"; then
1094 if test "x$prefix" != xNONE; then
1095 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1097 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1100 for ac_site_file in $CONFIG_SITE; do
1101 if test -r "$ac_site_file"; then
1102 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1103 echo "$as_me: loading site script $ac_site_file" >&6;}
1104 sed 's/^/| /' "$ac_site_file" >&5
1109 if test -r "$cache_file"; then
1110 # Some versions of bash will fail to source /dev/null (special
1111 # files actually), so we avoid doing that.
1112 if test -f "$cache_file"; then
1113 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1114 echo "$as_me: loading cache $cache_file" >&6;}
1116 [\\/]* | ?:[\\/]* ) . $cache_file;;
1117 *) . ./$cache_file;;
1121 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1122 echo "$as_me: creating cache $cache_file" >&6;}
1126 # Check that the precious variables saved in the cache have kept the same
1128 ac_cache_corrupted=false
1129 for ac_var in `(set) 2>&1 |
1130 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1131 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1132 eval ac_new_set=\$ac_env_${ac_var}_set
1133 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1134 eval ac_new_val="\$ac_env_${ac_var}_value"
1135 case $ac_old_set,$ac_new_set in
1137 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1138 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1139 ac_cache_corrupted=: ;;
1141 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1142 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1143 ac_cache_corrupted=: ;;
1146 if test "x$ac_old_val" != "x$ac_new_val"; then
1147 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1148 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1149 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1150 echo "$as_me: former value: $ac_old_val" >&2;}
1151 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1152 echo "$as_me: current value: $ac_new_val" >&2;}
1153 ac_cache_corrupted=:
1156 # Pass precious variables to config.status.
1157 if test "$ac_new_set" = set; then
1159 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1160 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1161 *) ac_arg=$ac_var=$ac_new_val ;;
1163 case " $ac_configure_args " in
1164 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1165 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1169 if $ac_cache_corrupted; then
1170 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1171 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1172 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1173 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1174 { (exit 1); exit 1; }; }
1178 ac_cpp='$CPP $CPPFLAGS'
1179 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1180 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1181 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1209 ac_output_file="Makefile MakeRules ir/Makefile ir/adt/Makefile ir/debug/Makefile \
1210 ir/tv/Makefile ir/common/Makefile ir/ident/Makefile ir/ir/Makefile \
1211 ir/ana/Makefile ir/tr/Makefile ir/st/Makefile ir/stat/Makefile \
1212 testprograms/Makefile firmjni/Makefile firmjni/testprograms/Makefile \
1215 ac_config_headers="$ac_config_headers config.h"
1218 libfirm_conf_env="${CC+CC='$CC'} ${CFLAGS+CFLAGS='$CFLAGS'} ${CPP+CPP='$CPP'} ${CPPFLAGS+CPPFLAGS='$CPPFLAGS'} ${LDFLAGS+LDFLAGS='$LDFLAGS'} ${LIBS+LIBS='$LIBS'}"
1222 # Check whether --with-includedir or --without-includedir was given.
1223 if test "${with_includedir+set}" = set; then
1224 withval="$with_includedir"
1225 CPPFLAGS=$CPPFLAGS" -I"`echo $withval|sed 's;\:; -I;g'`
1231 # Check whether --with-libdir or --without-libdir was given.
1232 if test "${with_libdir+set}" = set; then
1233 withval="$with_libdir"
1234 LDFLAGS=$LDFLAGS" -L"`echo $withval|sed 's;\:; -L;g'`
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-gcc_inline or --disable-gcc_inline was given.
1259 if test "${enable_gcc_inline+set}" = set; then
1260 enableval="$enable_gcc_inline"
1261 if test "$enableval" = yes; then
1262 cat >>confdefs.h <<\_ACEOF
1263 #define USE_GCC_INLINE 1
1271 # Check whether --enable-profile or --disable-profile was given.
1272 if test "${enable_profile+set}" = set; then
1273 enableval="$enable_profile"
1274 if test "$enableval"=yes; then
1275 enable_profile_libfirm=yes
1278 enable_profile_libfirm=no
1282 # Check whether --enable-autodoc or --disable-autodoc was given.
1283 if test "${enable_autodoc+set}" = set; then
1284 enableval="$enable_autodoc"
1285 if test "$enableval"=yes; then
1286 enable_auto_documentation=yes
1289 enable_auto_documentation=no
1294 # Check whether --enable-firmjni or --disable-firmjni was given.
1295 if test "${enable_firmjni+set}" = set; then
1296 enableval="$enable_firmjni"
1297 if test "$enableval"=yes; then
1305 # Check whether --enable-libiberty or --disable-libiberty was given.
1306 if test "${enable_libiberty+set}" = set; then
1307 enableval="$enable_libiberty"
1308 if test "$enableval"=yes; then
1309 disable_libiberty_=yes
1312 disable_libiberty=no
1316 # Check whether --enable-statistics or --disable-statistics was given.
1317 if test "${enable_statistics+set}" = set; then
1318 enableval="$enable_statistics"
1319 if test "$enableval"=yes; then
1320 cat >>confdefs.h <<\_ACEOF
1321 #define FIRM_STATISTICS 1
1330 ac_cpp='$CPP $CPPFLAGS'
1331 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1332 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1333 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1334 if test -n "$ac_tool_prefix"; then
1335 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1336 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1337 echo "$as_me:$LINENO: checking for $ac_word" >&5
1338 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1339 if test "${ac_cv_prog_CC+set}" = set; then
1340 echo $ECHO_N "(cached) $ECHO_C" >&6
1342 if test -n "$CC"; then
1343 ac_cv_prog_CC="$CC" # Let the user override the test.
1345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1349 test -z "$as_dir" && as_dir=.
1350 for ac_exec_ext in '' $ac_executable_extensions; do
1351 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1352 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1353 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1362 if test -n "$CC"; then
1363 echo "$as_me:$LINENO: result: $CC" >&5
1364 echo "${ECHO_T}$CC" >&6
1366 echo "$as_me:$LINENO: result: no" >&5
1367 echo "${ECHO_T}no" >&6
1371 if test -z "$ac_cv_prog_CC"; then
1373 # Extract the first word of "gcc", so it can be a program name with args.
1374 set dummy gcc; ac_word=$2
1375 echo "$as_me:$LINENO: checking for $ac_word" >&5
1376 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1377 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1378 echo $ECHO_N "(cached) $ECHO_C" >&6
1380 if test -n "$ac_ct_CC"; then
1381 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1387 test -z "$as_dir" && as_dir=.
1388 for ac_exec_ext in '' $ac_executable_extensions; do
1389 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1390 ac_cv_prog_ac_ct_CC="gcc"
1391 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1399 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1400 if test -n "$ac_ct_CC"; then
1401 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1402 echo "${ECHO_T}$ac_ct_CC" >&6
1404 echo "$as_me:$LINENO: result: no" >&5
1405 echo "${ECHO_T}no" >&6
1413 if test -z "$CC"; then
1414 if test -n "$ac_tool_prefix"; then
1415 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1416 set dummy ${ac_tool_prefix}cc; ac_word=$2
1417 echo "$as_me:$LINENO: checking for $ac_word" >&5
1418 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1419 if test "${ac_cv_prog_CC+set}" = set; then
1420 echo $ECHO_N "(cached) $ECHO_C" >&6
1422 if test -n "$CC"; then
1423 ac_cv_prog_CC="$CC" # Let the user override the test.
1425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1429 test -z "$as_dir" && as_dir=.
1430 for ac_exec_ext in '' $ac_executable_extensions; do
1431 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1432 ac_cv_prog_CC="${ac_tool_prefix}cc"
1433 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1442 if test -n "$CC"; then
1443 echo "$as_me:$LINENO: result: $CC" >&5
1444 echo "${ECHO_T}$CC" >&6
1446 echo "$as_me:$LINENO: result: no" >&5
1447 echo "${ECHO_T}no" >&6
1451 if test -z "$ac_cv_prog_CC"; then
1453 # Extract the first word of "cc", so it can be a program name with args.
1454 set dummy cc; ac_word=$2
1455 echo "$as_me:$LINENO: checking for $ac_word" >&5
1456 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1457 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1458 echo $ECHO_N "(cached) $ECHO_C" >&6
1460 if test -n "$ac_ct_CC"; then
1461 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1467 test -z "$as_dir" && as_dir=.
1468 for ac_exec_ext in '' $ac_executable_extensions; do
1469 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1470 ac_cv_prog_ac_ct_CC="cc"
1471 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1479 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1480 if test -n "$ac_ct_CC"; then
1481 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1482 echo "${ECHO_T}$ac_ct_CC" >&6
1484 echo "$as_me:$LINENO: result: no" >&5
1485 echo "${ECHO_T}no" >&6
1494 if test -z "$CC"; then
1495 # Extract the first word of "cc", so it can be a program name with args.
1496 set dummy cc; ac_word=$2
1497 echo "$as_me:$LINENO: checking for $ac_word" >&5
1498 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1499 if test "${ac_cv_prog_CC+set}" = set; then
1500 echo $ECHO_N "(cached) $ECHO_C" >&6
1502 if test -n "$CC"; then
1503 ac_cv_prog_CC="$CC" # Let the user override the test.
1506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1510 test -z "$as_dir" && as_dir=.
1511 for ac_exec_ext in '' $ac_executable_extensions; do
1512 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1513 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1514 ac_prog_rejected=yes
1518 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1524 if test $ac_prog_rejected = yes; then
1525 # We found a bogon in the path, so make sure we never use it.
1526 set dummy $ac_cv_prog_CC
1528 if test $# != 0; then
1529 # We chose a different compiler from the bogus one.
1530 # However, it has the same basename, so the bogon will be chosen
1531 # first if we set CC to just the basename; use the full file name.
1533 set dummy "$as_dir/$ac_word" ${1+"$@"}
1541 if test -n "$CC"; then
1542 echo "$as_me:$LINENO: result: $CC" >&5
1543 echo "${ECHO_T}$CC" >&6
1545 echo "$as_me:$LINENO: result: no" >&5
1546 echo "${ECHO_T}no" >&6
1550 if test -z "$CC"; then
1551 if test -n "$ac_tool_prefix"; then
1554 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1555 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1556 echo "$as_me:$LINENO: checking for $ac_word" >&5
1557 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1558 if test "${ac_cv_prog_CC+set}" = set; then
1559 echo $ECHO_N "(cached) $ECHO_C" >&6
1561 if test -n "$CC"; then
1562 ac_cv_prog_CC="$CC" # Let the user override the test.
1564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1568 test -z "$as_dir" && as_dir=.
1569 for ac_exec_ext in '' $ac_executable_extensions; do
1570 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1571 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1572 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1581 if test -n "$CC"; then
1582 echo "$as_me:$LINENO: result: $CC" >&5
1583 echo "${ECHO_T}$CC" >&6
1585 echo "$as_me:$LINENO: result: no" >&5
1586 echo "${ECHO_T}no" >&6
1589 test -n "$CC" && break
1592 if test -z "$CC"; then
1596 # Extract the first word of "$ac_prog", so it can be a program name with args.
1597 set dummy $ac_prog; ac_word=$2
1598 echo "$as_me:$LINENO: checking for $ac_word" >&5
1599 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1600 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1601 echo $ECHO_N "(cached) $ECHO_C" >&6
1603 if test -n "$ac_ct_CC"; then
1604 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1610 test -z "$as_dir" && as_dir=.
1611 for ac_exec_ext in '' $ac_executable_extensions; do
1612 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1613 ac_cv_prog_ac_ct_CC="$ac_prog"
1614 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1622 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1623 if test -n "$ac_ct_CC"; then
1624 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1625 echo "${ECHO_T}$ac_ct_CC" >&6
1627 echo "$as_me:$LINENO: result: no" >&5
1628 echo "${ECHO_T}no" >&6
1631 test -n "$ac_ct_CC" && break
1640 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
1641 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
1642 { (exit 1); exit 1; }; }
1644 # Provide some information about the compiler.
1645 echo "$as_me:$LINENO:" \
1646 "checking for C compiler version" >&5
1647 ac_compiler=`set X $ac_compile; echo $2`
1648 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1649 (eval $ac_compiler --version </dev/null >&5) 2>&5
1651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1652 (exit $ac_status); }
1653 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1654 (eval $ac_compiler -v </dev/null >&5) 2>&5
1656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1657 (exit $ac_status); }
1658 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1659 (eval $ac_compiler -V </dev/null >&5) 2>&5
1661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1662 (exit $ac_status); }
1664 cat >conftest.$ac_ext <<_ACEOF
1665 #line $LINENO "configure"
1666 #include "confdefs.h"
1668 #ifdef F77_DUMMY_MAIN
1672 int F77_DUMMY_MAIN() { return 1; }
1682 ac_clean_files_save=$ac_clean_files
1683 ac_clean_files="$ac_clean_files a.out a.exe"
1684 # Try to create an executable without -o first, disregard a.out.
1685 # It will help us diagnose broken compilers, and finding out an intuition
1687 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1688 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1689 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1690 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1691 (eval $ac_link_default) 2>&5
1693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1694 (exit $ac_status); }; then
1695 # Find the output, starting from the most likely. This scheme is
1696 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1699 # Be careful to initialize this variable, since it used to be cached.
1700 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1702 for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
1703 ls a.out conftest 2>/dev/null;
1704 ls a.* conftest.* 2>/dev/null`; do
1706 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
1707 a.out ) # We found the default executable, but exeext='' is most
1710 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1711 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1718 echo "$as_me: failed program was:" >&5
1719 cat conftest.$ac_ext >&5
1720 { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
1721 echo "$as_me: error: C compiler cannot create executables" >&2;}
1722 { (exit 77); exit 77; }; }
1725 ac_exeext=$ac_cv_exeext
1726 echo "$as_me:$LINENO: result: $ac_file" >&5
1727 echo "${ECHO_T}$ac_file" >&6
1729 # Check the compiler produces executables we can run. If not, either
1730 # the compiler is broken, or we cross compile.
1731 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1732 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1733 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1734 # If not cross compiling, check that we can run a simple program.
1735 if test "$cross_compiling" != yes; then
1736 if { ac_try='./$ac_file'
1737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1741 (exit $ac_status); }; }; then
1744 if test "$cross_compiling" = maybe; then
1747 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1748 If you meant to cross compile, use \`--host'." >&5
1749 echo "$as_me: error: cannot run C compiled programs.
1750 If you meant to cross compile, use \`--host'." >&2;}
1751 { (exit 1); exit 1; }; }
1755 echo "$as_me:$LINENO: result: yes" >&5
1756 echo "${ECHO_T}yes" >&6
1758 rm -f a.out a.exe conftest$ac_cv_exeext
1759 ac_clean_files=$ac_clean_files_save
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 we are cross compiling" >&5
1763 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1764 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1765 echo "${ECHO_T}$cross_compiling" >&6
1767 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1768 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1769 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1770 (eval $ac_link) 2>&5
1772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1773 (exit $ac_status); }; then
1774 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1775 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1776 # work properly (i.e., refer to `conftest.exe'), while it won't with
1778 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1780 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1781 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1788 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
1789 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
1790 { (exit 1); exit 1; }; }
1793 rm -f conftest$ac_cv_exeext
1794 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1795 echo "${ECHO_T}$ac_cv_exeext" >&6
1797 rm -f conftest.$ac_ext
1798 EXEEXT=$ac_cv_exeext
1800 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1801 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1802 if test "${ac_cv_objext+set}" = set; then
1803 echo $ECHO_N "(cached) $ECHO_C" >&6
1805 cat >conftest.$ac_ext <<_ACEOF
1806 #line $LINENO "configure"
1807 #include "confdefs.h"
1809 #ifdef F77_DUMMY_MAIN
1813 int F77_DUMMY_MAIN() { return 1; }
1823 rm -f conftest.o conftest.obj
1824 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1825 (eval $ac_compile) 2>&5
1827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1828 (exit $ac_status); }; then
1829 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1831 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
1832 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1837 echo "$as_me: failed program was:" >&5
1838 cat conftest.$ac_ext >&5
1839 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
1840 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
1841 { (exit 1); exit 1; }; }
1844 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1846 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1847 echo "${ECHO_T}$ac_cv_objext" >&6
1848 OBJEXT=$ac_cv_objext
1850 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1851 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1852 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1853 echo $ECHO_N "(cached) $ECHO_C" >&6
1855 cat >conftest.$ac_ext <<_ACEOF
1856 #line $LINENO "configure"
1857 #include "confdefs.h"
1859 #ifdef F77_DUMMY_MAIN
1863 int F77_DUMMY_MAIN() { return 1; }
1876 rm -f conftest.$ac_objext
1877 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1878 (eval $ac_compile) 2>&5
1880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1881 (exit $ac_status); } &&
1882 { ac_try='test -s conftest.$ac_objext'
1883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1887 (exit $ac_status); }; }; then
1890 echo "$as_me: failed program was:" >&5
1891 cat conftest.$ac_ext >&5
1894 rm -f conftest.$ac_objext conftest.$ac_ext
1895 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1898 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1899 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1900 GCC=`test $ac_compiler_gnu = yes && echo yes`
1901 ac_test_CFLAGS=${CFLAGS+set}
1902 ac_save_CFLAGS=$CFLAGS
1904 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1905 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1906 if test "${ac_cv_prog_cc_g+set}" = set; then
1907 echo $ECHO_N "(cached) $ECHO_C" >&6
1909 cat >conftest.$ac_ext <<_ACEOF
1910 #line $LINENO "configure"
1911 #include "confdefs.h"
1913 #ifdef F77_DUMMY_MAIN
1917 int F77_DUMMY_MAIN() { return 1; }
1927 rm -f conftest.$ac_objext
1928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1929 (eval $ac_compile) 2>&5
1931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1932 (exit $ac_status); } &&
1933 { ac_try='test -s conftest.$ac_objext'
1934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1938 (exit $ac_status); }; }; then
1941 echo "$as_me: failed program was:" >&5
1942 cat conftest.$ac_ext >&5
1945 rm -f conftest.$ac_objext conftest.$ac_ext
1947 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1948 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1949 if test "$ac_test_CFLAGS" = set; then
1950 CFLAGS=$ac_save_CFLAGS
1951 elif test $ac_cv_prog_cc_g = yes; then
1952 if test "$GCC" = yes; then
1958 if test "$GCC" = yes; then
1964 # Some people use a C++ compiler to compile C. Since we use `exit',
1965 # in C++ we need to declare it. In case someone uses the same compiler
1966 # for both compiling C and C++ we need to have the C++ compiler decide
1967 # the declaration of exit, since it's the most demanding environment.
1968 cat >conftest.$ac_ext <<_ACEOF
1973 rm -f conftest.$ac_objext
1974 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1975 (eval $ac_compile) 2>&5
1977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1978 (exit $ac_status); } &&
1979 { ac_try='test -s conftest.$ac_objext'
1980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1984 (exit $ac_status); }; }; then
1985 for ac_declaration in \
1987 '#include <stdlib.h>' \
1988 'extern "C" void std::exit (int) throw (); using std::exit;' \
1989 'extern "C" void std::exit (int); using std::exit;' \
1990 'extern "C" void exit (int) throw ();' \
1991 'extern "C" void exit (int);' \
1994 cat >conftest.$ac_ext <<_ACEOF
1995 #line $LINENO "configure"
1996 #include "confdefs.h"
1999 #ifdef F77_DUMMY_MAIN
2003 int F77_DUMMY_MAIN() { return 1; }
2013 rm -f conftest.$ac_objext
2014 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2015 (eval $ac_compile) 2>&5
2017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2018 (exit $ac_status); } &&
2019 { ac_try='test -s conftest.$ac_objext'
2020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2024 (exit $ac_status); }; }; then
2027 echo "$as_me: failed program was:" >&5
2028 cat conftest.$ac_ext >&5
2031 rm -f conftest.$ac_objext conftest.$ac_ext
2032 cat >conftest.$ac_ext <<_ACEOF
2033 #line $LINENO "configure"
2034 #include "confdefs.h"
2036 #ifdef F77_DUMMY_MAIN
2040 int F77_DUMMY_MAIN() { return 1; }
2050 rm -f conftest.$ac_objext
2051 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2052 (eval $ac_compile) 2>&5
2054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2055 (exit $ac_status); } &&
2056 { ac_try='test -s conftest.$ac_objext'
2057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2061 (exit $ac_status); }; }; then
2064 echo "$as_me: failed program was:" >&5
2065 cat conftest.$ac_ext >&5
2067 rm -f conftest.$ac_objext conftest.$ac_ext
2070 if test -n "$ac_declaration"; then
2071 echo '#ifdef __cplusplus' >>confdefs.h
2072 echo $ac_declaration >>confdefs.h
2073 echo '#endif' >>confdefs.h
2077 echo "$as_me: failed program was:" >&5
2078 cat conftest.$ac_ext >&5
2080 rm -f conftest.$ac_objext conftest.$ac_ext
2082 ac_cpp='$CPP $CPPFLAGS'
2083 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2084 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2085 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2089 if test -z "$LD"; then
2090 if test -n "$ac_tool_prefix"; then
2091 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
2092 set dummy ${ac_tool_prefix}ld; ac_word=$2
2093 echo "$as_me:$LINENO: checking for $ac_word" >&5
2094 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2095 if test "${ac_cv_prog_LD+set}" = set; then
2096 echo $ECHO_N "(cached) $ECHO_C" >&6
2098 if test -n "$LD"; then
2099 ac_cv_prog_LD="$LD" # Let the user override the test.
2101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2105 test -z "$as_dir" && as_dir=.
2106 for ac_exec_ext in '' $ac_executable_extensions; do
2107 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2108 ac_cv_prog_LD="${ac_tool_prefix}ld"
2109 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2118 if test -n "$LD"; then
2119 echo "$as_me:$LINENO: result: $LD" >&5
2120 echo "${ECHO_T}$LD" >&6
2122 echo "$as_me:$LINENO: result: no" >&5
2123 echo "${ECHO_T}no" >&6
2127 if test -z "$ac_cv_prog_LD"; then
2129 # Extract the first word of "ld", so it can be a program name with args.
2130 set dummy ld; ac_word=$2
2131 echo "$as_me:$LINENO: checking for $ac_word" >&5
2132 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2133 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
2134 echo $ECHO_N "(cached) $ECHO_C" >&6
2136 if test -n "$ac_ct_LD"; then
2137 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
2139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2143 test -z "$as_dir" && as_dir=.
2144 for ac_exec_ext in '' $ac_executable_extensions; do
2145 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2146 ac_cv_prog_ac_ct_LD="ld"
2147 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2155 ac_ct_LD=$ac_cv_prog_ac_ct_LD
2156 if test -n "$ac_ct_LD"; then
2157 echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
2158 echo "${ECHO_T}$ac_ct_LD" >&6
2160 echo "$as_me:$LINENO: result: no" >&5
2161 echo "${ECHO_T}no" >&6
2171 echo "$as_me:$LINENO: checking whether $LD accepts -r" >&5
2172 echo $ECHO_N "checking whether $LD accepts -r... $ECHO_C" >&6
2173 if test "${libfirm_cv_prog_ld_r+set}" = set; then
2174 echo $ECHO_N "(cached) $ECHO_C" >&6
2177 libfirm_cv_prog_ld_r=no
2179 cat > conftest.$ac_ext <<EOF
2180 int foo() { return 0; }
2182 if eval $ac_compile && mv conftest.o conftest2.o; then
2183 cat > conftest.$ac_ext <<EOF
2185 int main() { return foo(); }
2187 if eval $ac_compile; then
2188 if $LD -r -o conftest conftest.o conftest2.o; then
2189 libfirm_cv_prog_ld_r=yes
2196 echo "$as_me:$LINENO: result: $libfirm_cv_prog_ld_r" >&5
2197 echo "${ECHO_T}$libfirm_cv_prog_ld_r" >&6
2200 if test "$libfirm_cv_prog_ld_r" != "yes"; then
2201 { { echo "$as_me:$LINENO: error: need a prelinkcapable linker" >&5
2202 echo "$as_me: error: need a prelinkcapable linker" >&2;}
2203 { (exit 1); exit 1; }; }
2206 # Extract the first word of "ar", so it can be a program name with args.
2207 set dummy ar; ac_word=$2
2208 echo "$as_me:$LINENO: checking for $ac_word" >&5
2209 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2210 if test "${ac_cv_prog_AR+set}" = set; then
2211 echo $ECHO_N "(cached) $ECHO_C" >&6
2213 if test -n "$AR"; then
2214 ac_cv_prog_AR="$AR" # Let the user override the test.
2216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2220 test -z "$as_dir" && as_dir=.
2221 for ac_exec_ext in '' $ac_executable_extensions; do
2222 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2223 ac_cv_prog_AR=""ar""
2224 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2230 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR=""""
2234 if test -n "$AR"; then
2235 echo "$as_me:$LINENO: result: $AR" >&5
2236 echo "${ECHO_T}$AR" >&6
2238 echo "$as_me:$LINENO: result: no" >&5
2239 echo "${ECHO_T}no" >&6
2242 if test "$AR" != "ar"; then
2243 { { echo "$as_me:$LINENO: error: need ar for creating archives" >&5
2244 echo "$as_me: error: need ar for creating archives" >&2;}
2245 { (exit 1); exit 1; }; }
2248 # Extract the first word of "tar", so it can be a program name with args.
2249 set dummy tar; ac_word=$2
2250 echo "$as_me:$LINENO: checking for $ac_word" >&5
2251 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2252 if test "${ac_cv_prog_TAR+set}" = set; then
2253 echo $ECHO_N "(cached) $ECHO_C" >&6
2255 if test -n "$TAR"; then
2256 ac_cv_prog_TAR="$TAR" # Let the user override the test.
2258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2262 test -z "$as_dir" && as_dir=.
2263 for ac_exec_ext in '' $ac_executable_extensions; do
2264 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2265 ac_cv_prog_TAR=""tar""
2266 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2272 test -z "$ac_cv_prog_TAR" && ac_cv_prog_TAR=""""
2276 if test -n "$TAR"; then
2277 echo "$as_me:$LINENO: result: $TAR" >&5
2278 echo "${ECHO_T}$TAR" >&6
2280 echo "$as_me:$LINENO: result: no" >&5
2281 echo "${ECHO_T}no" >&6
2284 if test "$TAR" != "tar"; then
2285 { { echo "$as_me:$LINENO: error: need tar for creating archives in distribution" >&5
2286 echo "$as_me: error: need tar for creating archives in distribution" >&2;}
2287 { (exit 1); exit 1; }; }
2291 if test -n "$ac_tool_prefix"; then
2292 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2293 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2294 echo "$as_me:$LINENO: checking for $ac_word" >&5
2295 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2296 if test "${ac_cv_prog_RANLIB+set}" = set; then
2297 echo $ECHO_N "(cached) $ECHO_C" >&6
2299 if test -n "$RANLIB"; then
2300 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2306 test -z "$as_dir" && as_dir=.
2307 for ac_exec_ext in '' $ac_executable_extensions; do
2308 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2309 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2310 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2318 RANLIB=$ac_cv_prog_RANLIB
2319 if test -n "$RANLIB"; then
2320 echo "$as_me:$LINENO: result: $RANLIB" >&5
2321 echo "${ECHO_T}$RANLIB" >&6
2323 echo "$as_me:$LINENO: result: no" >&5
2324 echo "${ECHO_T}no" >&6
2328 if test -z "$ac_cv_prog_RANLIB"; then
2329 ac_ct_RANLIB=$RANLIB
2330 # Extract the first word of "ranlib", so it can be a program name with args.
2331 set dummy ranlib; ac_word=$2
2332 echo "$as_me:$LINENO: checking for $ac_word" >&5
2333 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2334 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2335 echo $ECHO_N "(cached) $ECHO_C" >&6
2337 if test -n "$ac_ct_RANLIB"; then
2338 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2344 test -z "$as_dir" && as_dir=.
2345 for ac_exec_ext in '' $ac_executable_extensions; do
2346 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2347 ac_cv_prog_ac_ct_RANLIB="ranlib"
2348 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2354 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2357 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2358 if test -n "$ac_ct_RANLIB"; then
2359 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2360 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2362 echo "$as_me:$LINENO: result: no" >&5
2363 echo "${ECHO_T}no" >&6
2366 RANLIB=$ac_ct_RANLIB
2368 RANLIB="$ac_cv_prog_RANLIB"
2373 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
2374 if test -f $ac_dir/install-sh; then
2376 ac_install_sh="$ac_aux_dir/install-sh -c"
2378 elif test -f $ac_dir/install.sh; then
2380 ac_install_sh="$ac_aux_dir/install.sh -c"
2382 elif test -f $ac_dir/shtool; then
2384 ac_install_sh="$ac_aux_dir/shtool install -c"
2388 if test -z "$ac_aux_dir"; then
2389 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
2390 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
2391 { (exit 1); exit 1; }; }
2393 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
2394 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
2395 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
2397 # Find a good install program. We prefer a C program (faster),
2398 # so one script is as good as another. But avoid the broken or
2399 # incompatible versions:
2400 # SysV /etc/install, /usr/sbin/install
2401 # SunOS /usr/etc/install
2402 # IRIX /sbin/install
2404 # AmigaOS /C/install, which installs bootblocks on floppy discs
2405 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2406 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2407 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2408 # ./install, which can be erroneously created by make from ./install.sh.
2409 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2410 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2411 if test -z "$INSTALL"; then
2412 if test "${ac_cv_path_install+set}" = set; then
2413 echo $ECHO_N "(cached) $ECHO_C" >&6
2415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2419 test -z "$as_dir" && as_dir=.
2420 # Account for people who put trailing slashes in PATH elements.
2422 ./ | .// | /cC/* | \
2423 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2426 # OSF1 and SCO ODT 3.0 have their own names for install.
2427 # Don't use installbsd from OSF since it installs stuff as root
2429 for ac_prog in ginstall scoinst install; do
2430 for ac_exec_ext in '' $ac_executable_extensions; do
2431 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2432 if test $ac_prog = install &&
2433 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2434 # AIX install. It has an incompatible calling convention.
2436 elif test $ac_prog = install &&
2437 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2438 # program-specific install script used by HP pwplus--don't use.
2441 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2453 if test "${ac_cv_path_install+set}" = set; then
2454 INSTALL=$ac_cv_path_install
2456 # As a last resort, use the slow shell script. We don't cache a
2457 # path for INSTALL within a source directory, because that will
2458 # break other packages using the cache if that directory is
2459 # removed, or if the path is relative.
2460 INSTALL=$ac_install_sh
2463 echo "$as_me:$LINENO: result: $INSTALL" >&5
2464 echo "${ECHO_T}$INSTALL" >&6
2466 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2467 # It thinks the first close brace ends the variable substitution.
2468 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2470 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2472 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2475 touch tmp-install.a tmp-install.b
2476 if eval "$INSTALL -C tmp-install.a tmp-install.b" ; then
2477 INSTALL="$INSTALL -C"
2479 rm tmp-install.a tmp-install.b
2482 echo "$as_me:$LINENO: checking whether ln -s works" >&5
2483 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2485 if test "$LN_S" = "ln -s"; then
2486 echo "$as_me:$LINENO: result: yes" >&5
2487 echo "${ECHO_T}yes" >&6
2489 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
2490 echo "${ECHO_T}no, using $LN_S" >&6
2494 if test "$enable_auto_documentation" = yes; then
2495 # Extract the first word of "doxygen", so it can be a program name with args.
2496 set dummy doxygen; ac_word=$2
2497 echo "$as_me:$LINENO: checking for $ac_word" >&5
2498 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2499 if test "${ac_cv_prog_DOXYGEN+set}" = set; then
2500 echo $ECHO_N "(cached) $ECHO_C" >&6
2502 if test -n "$DOXYGEN"; then
2503 ac_cv_prog_DOXYGEN="$DOXYGEN" # Let the user override the test.
2505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2509 test -z "$as_dir" && as_dir=.
2510 for ac_exec_ext in '' $ac_executable_extensions; do
2511 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2512 ac_cv_prog_DOXYGEN=""doxygen""
2513 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2519 test -z "$ac_cv_prog_DOXYGEN" && ac_cv_prog_DOXYGEN=""""
2522 DOXYGEN=$ac_cv_prog_DOXYGEN
2523 if test -n "$DOXYGEN"; then
2524 echo "$as_me:$LINENO: result: $DOXYGEN" >&5
2525 echo "${ECHO_T}$DOXYGEN" >&6
2527 echo "$as_me:$LINENO: result: no" >&5
2528 echo "${ECHO_T}no" >&6
2531 if test "$DOXYGEN" != "doxygen"; then
2532 { { echo "$as_me:$LINENO: error: need doxygen for auto documentation" >&5
2533 echo "$as_me: error: need doxygen for auto documentation" >&2;}
2534 { (exit 1); exit 1; }; }
2536 # Extract the first word of "dot", so it can be a program name with args.
2537 set dummy dot; ac_word=$2
2538 echo "$as_me:$LINENO: checking for $ac_word" >&5
2539 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2540 if test "${ac_cv_prog_DOT+set}" = set; then
2541 echo $ECHO_N "(cached) $ECHO_C" >&6
2543 if test -n "$DOT"; then
2544 ac_cv_prog_DOT="$DOT" # Let the user override the test.
2546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2550 test -z "$as_dir" && as_dir=.
2551 for ac_exec_ext in '' $ac_executable_extensions; do
2552 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2553 ac_cv_prog_DOT=""dot""
2554 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2560 test -z "$ac_cv_prog_DOT" && ac_cv_prog_DOT=""""
2564 if test -n "$DOT"; then
2565 echo "$as_me:$LINENO: result: $DOT" >&5
2566 echo "${ECHO_T}$DOT" >&6
2568 echo "$as_me:$LINENO: result: no" >&5
2569 echo "${ECHO_T}no" >&6
2572 if test "$DOT" != "dot"; then
2573 { { echo "$as_me:$LINENO: error: need dot for doxygen documentation (for class graphs) (IPD: module add Graphviz)" >&5
2574 echo "$as_me: error: need dot for doxygen documentation (for class graphs) (IPD: module add Graphviz)" >&2;}
2575 { (exit 1); exit 1; }; }
2579 if test "$enable_firm_jni" = yes; then
2580 # Extract the first word of "javac", so it can be a program name with args.
2581 set dummy javac; ac_word=$2
2582 echo "$as_me:$LINENO: checking for $ac_word" >&5
2583 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2584 if test "${ac_cv_prog_JAVAC+set}" = set; then
2585 echo $ECHO_N "(cached) $ECHO_C" >&6
2587 if test -n "$JAVAC"; then
2588 ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test.
2590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2594 test -z "$as_dir" && as_dir=.
2595 for ac_exec_ext in '' $ac_executable_extensions; do
2596 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2597 ac_cv_prog_JAVAC=""javac""
2598 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2604 test -z "$ac_cv_prog_JAVAC" && ac_cv_prog_JAVAC=""""
2607 JAVAC=$ac_cv_prog_JAVAC
2608 if test -n "$JAVAC"; then
2609 echo "$as_me:$LINENO: result: $JAVAC" >&5
2610 echo "${ECHO_T}$JAVAC" >&6
2612 echo "$as_me:$LINENO: result: no" >&5
2613 echo "${ECHO_T}no" >&6
2616 if test "$JAVAC" != "javac"; then
2617 { { echo "$as_me:$LINENO: error: need java compiler javac to generate jni (IPD: module add jdk-1.3.1-sun)" >&5
2618 echo "$as_me: error: need java compiler javac to generate jni (IPD: module add jdk-1.3.1-sun)" >&2;}
2619 { (exit 1); exit 1; }; }
2621 # Extract the first word of "javah", so it can be a program name with args.
2622 set dummy javah; ac_word=$2
2623 echo "$as_me:$LINENO: checking for $ac_word" >&5
2624 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2625 if test "${ac_cv_prog_JAVAH+set}" = set; then
2626 echo $ECHO_N "(cached) $ECHO_C" >&6
2628 if test -n "$JAVAH"; then
2629 ac_cv_prog_JAVAH="$JAVAH" # Let the user override the test.
2631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2635 test -z "$as_dir" && as_dir=.
2636 for ac_exec_ext in '' $ac_executable_extensions; do
2637 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2638 ac_cv_prog_JAVAH=""javah""
2639 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2645 test -z "$ac_cv_prog_JAVAH" && ac_cv_prog_JAVAH=""""
2648 JAVAH=$ac_cv_prog_JAVAH
2649 if test -n "$JAVAH"; then
2650 echo "$as_me:$LINENO: result: $JAVAH" >&5
2651 echo "${ECHO_T}$JAVAH" >&6
2653 echo "$as_me:$LINENO: result: no" >&5
2654 echo "${ECHO_T}no" >&6
2657 if test "$JAVAH" != "javah"; then
2658 { { echo "$as_me:$LINENO: error: need javah to generate jni headers (IPD: module add jdk-1.3.1-sun)" >&5
2659 echo "$as_me: error: need javah to generate jni headers (IPD: module add jdk-1.3.1-sun)" >&2;}
2660 { (exit 1); exit 1; }; }
2668 ac_cpp='$CPP $CPPFLAGS'
2669 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2670 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2671 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2672 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2673 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2674 # On Suns, sometimes $CPP names a directory.
2675 if test -n "$CPP" && test -d "$CPP"; then
2678 if test -z "$CPP"; then
2679 if test "${ac_cv_prog_CPP+set}" = set; then
2680 echo $ECHO_N "(cached) $ECHO_C" >&6
2682 # Double quotes because CPP needs to be expanded
2683 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2686 for ac_c_preproc_warn_flag in '' yes
2688 # Use a header file that comes with gcc, so configuring glibc
2689 # with a fresh cross-compiler works.
2690 # On the NeXT, cc -E runs the code through the compiler's parser,
2691 # not just through cpp. "Syntax error" is here to catch this case.
2692 cat >conftest.$ac_ext <<_ACEOF
2693 #line $LINENO "configure"
2694 #include "confdefs.h"
2698 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2699 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2701 egrep -v '^ *\+' conftest.er1 >conftest.err
2703 cat conftest.err >&5
2704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2705 (exit $ac_status); } >/dev/null; then
2706 if test -s conftest.err; then
2707 ac_cpp_err=$ac_c_preproc_warn_flag
2714 if test -z "$ac_cpp_err"; then
2717 echo "$as_me: failed program was:" >&5
2718 cat conftest.$ac_ext >&5
2719 # Broken: fails on valid input.
2722 rm -f conftest.err conftest.$ac_ext
2724 # OK, works on sane cases. Now check whether non-existent headers
2725 # can be detected and how.
2726 cat >conftest.$ac_ext <<_ACEOF
2727 #line $LINENO "configure"
2728 #include "confdefs.h"
2729 #include <ac_nonexistent.h>
2731 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2732 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2734 egrep -v '^ *\+' conftest.er1 >conftest.err
2736 cat conftest.err >&5
2737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2738 (exit $ac_status); } >/dev/null; then
2739 if test -s conftest.err; then
2740 ac_cpp_err=$ac_c_preproc_warn_flag
2747 if test -z "$ac_cpp_err"; then
2748 # Broken: success on invalid input.
2751 echo "$as_me: failed program was:" >&5
2752 cat conftest.$ac_ext >&5
2753 # Passes both tests.
2757 rm -f conftest.err conftest.$ac_ext
2760 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2761 rm -f conftest.err conftest.$ac_ext
2762 if $ac_preproc_ok; then
2774 echo "$as_me:$LINENO: result: $CPP" >&5
2775 echo "${ECHO_T}$CPP" >&6
2777 for ac_c_preproc_warn_flag in '' yes
2779 # Use a header file that comes with gcc, so configuring glibc
2780 # with a fresh cross-compiler works.
2781 # On the NeXT, cc -E runs the code through the compiler's parser,
2782 # not just through cpp. "Syntax error" is here to catch this case.
2783 cat >conftest.$ac_ext <<_ACEOF
2784 #line $LINENO "configure"
2785 #include "confdefs.h"
2789 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2790 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2792 egrep -v '^ *\+' conftest.er1 >conftest.err
2794 cat conftest.err >&5
2795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2796 (exit $ac_status); } >/dev/null; then
2797 if test -s conftest.err; then
2798 ac_cpp_err=$ac_c_preproc_warn_flag
2805 if test -z "$ac_cpp_err"; then
2808 echo "$as_me: failed program was:" >&5
2809 cat conftest.$ac_ext >&5
2810 # Broken: fails on valid input.
2813 rm -f conftest.err conftest.$ac_ext
2815 # OK, works on sane cases. Now check whether non-existent headers
2816 # can be detected and how.
2817 cat >conftest.$ac_ext <<_ACEOF
2818 #line $LINENO "configure"
2819 #include "confdefs.h"
2820 #include <ac_nonexistent.h>
2822 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2823 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2825 egrep -v '^ *\+' conftest.er1 >conftest.err
2827 cat conftest.err >&5
2828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2829 (exit $ac_status); } >/dev/null; then
2830 if test -s conftest.err; then
2831 ac_cpp_err=$ac_c_preproc_warn_flag
2838 if test -z "$ac_cpp_err"; then
2839 # Broken: success on invalid input.
2842 echo "$as_me: failed program was:" >&5
2843 cat conftest.$ac_ext >&5
2844 # Passes both tests.
2848 rm -f conftest.err conftest.$ac_ext
2851 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2852 rm -f conftest.err conftest.$ac_ext
2853 if $ac_preproc_ok; then
2856 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2857 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2858 { (exit 1); exit 1; }; }
2862 ac_cpp='$CPP $CPPFLAGS'
2863 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2864 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2865 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2868 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2869 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2870 if test "${ac_cv_header_stdc+set}" = set; then
2871 echo $ECHO_N "(cached) $ECHO_C" >&6
2873 cat >conftest.$ac_ext <<_ACEOF
2874 #line $LINENO "configure"
2875 #include "confdefs.h"
2882 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2883 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2885 egrep -v '^ *\+' conftest.er1 >conftest.err
2887 cat conftest.err >&5
2888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2889 (exit $ac_status); } >/dev/null; then
2890 if test -s conftest.err; then
2891 ac_cpp_err=$ac_c_preproc_warn_flag
2898 if test -z "$ac_cpp_err"; then
2899 ac_cv_header_stdc=yes
2901 echo "$as_me: failed program was:" >&5
2902 cat conftest.$ac_ext >&5
2903 ac_cv_header_stdc=no
2905 rm -f conftest.err conftest.$ac_ext
2907 if test $ac_cv_header_stdc = yes; then
2908 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2909 cat >conftest.$ac_ext <<_ACEOF
2910 #line $LINENO "configure"
2911 #include "confdefs.h"
2915 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2916 egrep "memchr" >/dev/null 2>&1; then
2919 ac_cv_header_stdc=no
2925 if test $ac_cv_header_stdc = yes; then
2926 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2927 cat >conftest.$ac_ext <<_ACEOF
2928 #line $LINENO "configure"
2929 #include "confdefs.h"
2933 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2934 egrep "free" >/dev/null 2>&1; then
2937 ac_cv_header_stdc=no
2943 if test $ac_cv_header_stdc = yes; then
2944 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2945 if test "$cross_compiling" = yes; then
2948 cat >conftest.$ac_ext <<_ACEOF
2949 #line $LINENO "configure"
2950 #include "confdefs.h"
2952 #if ((' ' & 0x0FF) == 0x020)
2953 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2954 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2956 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
2957 || ('j' <= (c) && (c) <= 'r') \
2958 || ('s' <= (c) && (c) <= 'z'))
2959 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2962 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2967 for (i = 0; i < 256; i++)
2968 if (XOR (islower (i), ISLOWER (i))
2969 || toupper (i) != TOUPPER (i))
2974 rm -f conftest$ac_exeext
2975 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2976 (eval $ac_link) 2>&5
2978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2979 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2984 (exit $ac_status); }; }; then
2987 echo "$as_me: program exited with status $ac_status" >&5
2988 echo "$as_me: failed program was:" >&5
2989 cat conftest.$ac_ext >&5
2991 ac_cv_header_stdc=no
2993 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2997 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
2998 echo "${ECHO_T}$ac_cv_header_stdc" >&6
2999 if test $ac_cv_header_stdc = yes; then
3001 cat >>confdefs.h <<\_ACEOF
3002 #define STDC_HEADERS 1
3009 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3019 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3020 inttypes.h stdint.h unistd.h
3022 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3023 echo "$as_me:$LINENO: checking for $ac_header" >&5
3024 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3025 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3026 echo $ECHO_N "(cached) $ECHO_C" >&6
3028 cat >conftest.$ac_ext <<_ACEOF
3029 #line $LINENO "configure"
3030 #include "confdefs.h"
3031 $ac_includes_default
3033 #include <$ac_header>
3035 rm -f conftest.$ac_objext
3036 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3037 (eval $ac_compile) 2>&5
3039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3040 (exit $ac_status); } &&
3041 { ac_try='test -s conftest.$ac_objext'
3042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3046 (exit $ac_status); }; }; then
3047 eval "$as_ac_Header=yes"
3049 echo "$as_me: failed program was:" >&5
3050 cat conftest.$ac_ext >&5
3051 eval "$as_ac_Header=no"
3053 rm -f conftest.$ac_objext conftest.$ac_ext
3055 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3056 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3057 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3058 cat >>confdefs.h <<_ACEOF
3059 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3068 for ac_header in math.h
3070 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3071 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3072 echo "$as_me:$LINENO: checking for $ac_header" >&5
3073 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3074 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3075 echo $ECHO_N "(cached) $ECHO_C" >&6
3077 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3078 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3080 # Is the header compilable?
3081 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3082 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3083 cat >conftest.$ac_ext <<_ACEOF
3084 #line $LINENO "configure"
3085 #include "confdefs.h"
3086 $ac_includes_default
3087 #include <$ac_header>
3089 rm -f conftest.$ac_objext
3090 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3091 (eval $ac_compile) 2>&5
3093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3094 (exit $ac_status); } &&
3095 { ac_try='test -s conftest.$ac_objext'
3096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3100 (exit $ac_status); }; }; then
3101 ac_header_compiler=yes
3103 echo "$as_me: failed program was:" >&5
3104 cat conftest.$ac_ext >&5
3105 ac_header_compiler=no
3107 rm -f conftest.$ac_objext conftest.$ac_ext
3108 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3109 echo "${ECHO_T}$ac_header_compiler" >&6
3111 # Is the header present?
3112 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3113 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3114 cat >conftest.$ac_ext <<_ACEOF
3115 #line $LINENO "configure"
3116 #include "confdefs.h"
3117 #include <$ac_header>
3119 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3120 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3122 egrep -v '^ *\+' conftest.er1 >conftest.err
3124 cat conftest.err >&5
3125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3126 (exit $ac_status); } >/dev/null; then
3127 if test -s conftest.err; then
3128 ac_cpp_err=$ac_c_preproc_warn_flag
3135 if test -z "$ac_cpp_err"; then
3136 ac_header_preproc=yes
3138 echo "$as_me: failed program was:" >&5
3139 cat conftest.$ac_ext >&5
3140 ac_header_preproc=no
3142 rm -f conftest.err conftest.$ac_ext
3143 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3144 echo "${ECHO_T}$ac_header_preproc" >&6
3146 # So? What about this header?
3147 case $ac_header_compiler:$ac_header_preproc in
3149 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3150 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3151 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3152 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3154 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3155 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3156 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3157 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3158 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3159 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3161 echo "$as_me:$LINENO: checking for $ac_header" >&5
3162 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3163 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3164 echo $ECHO_N "(cached) $ECHO_C" >&6
3166 eval "$as_ac_Header=$ac_header_preproc"
3168 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3169 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3172 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3173 cat >>confdefs.h <<_ACEOF
3174 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3176 ac_math_headers="yes"
3178 ac_math_headers="no"
3183 if test "$ac_math_headers" != yes; then
3184 { { echo "$as_me:$LINENO: error: \"math header file not found\"" >&5
3185 echo "$as_me: error: \"math header file not found\"" >&2;}
3186 { (exit 1); exit 1; }; }
3190 #dnl check for the gnu multiprecission (gmp) header file
3192 #AC_CHECK_HEADERS(gmp.h, ac_gmp_headers="yes", ac_gmp_headers="no")
3193 #if test "$ac_gmp_headers" != yes; then
3194 # dnl gmp header not found.
3195 # AC_MSG_ERROR("GNU multiprecission gmp header file not found")
3202 for ac_header in obstack.h
3204 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3205 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3206 echo "$as_me:$LINENO: checking for $ac_header" >&5
3207 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3208 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3209 echo $ECHO_N "(cached) $ECHO_C" >&6
3211 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3212 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3214 # Is the header compilable?
3215 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3216 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3217 cat >conftest.$ac_ext <<_ACEOF
3218 #line $LINENO "configure"
3219 #include "confdefs.h"
3220 $ac_includes_default
3221 #include <$ac_header>
3223 rm -f conftest.$ac_objext
3224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3225 (eval $ac_compile) 2>&5
3227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3228 (exit $ac_status); } &&
3229 { ac_try='test -s conftest.$ac_objext'
3230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3234 (exit $ac_status); }; }; then
3235 ac_header_compiler=yes
3237 echo "$as_me: failed program was:" >&5
3238 cat conftest.$ac_ext >&5
3239 ac_header_compiler=no
3241 rm -f conftest.$ac_objext conftest.$ac_ext
3242 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3243 echo "${ECHO_T}$ac_header_compiler" >&6
3245 # Is the header present?
3246 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3247 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3248 cat >conftest.$ac_ext <<_ACEOF
3249 #line $LINENO "configure"
3250 #include "confdefs.h"
3251 #include <$ac_header>
3253 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3254 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3256 egrep -v '^ *\+' conftest.er1 >conftest.err
3258 cat conftest.err >&5
3259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3260 (exit $ac_status); } >/dev/null; then
3261 if test -s conftest.err; then
3262 ac_cpp_err=$ac_c_preproc_warn_flag
3269 if test -z "$ac_cpp_err"; then
3270 ac_header_preproc=yes
3272 echo "$as_me: failed program was:" >&5
3273 cat conftest.$ac_ext >&5
3274 ac_header_preproc=no
3276 rm -f conftest.err conftest.$ac_ext
3277 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3278 echo "${ECHO_T}$ac_header_preproc" >&6
3280 # So? What about this header?
3281 case $ac_header_compiler:$ac_header_preproc in
3283 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3284 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3285 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3286 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3288 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3289 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3290 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3291 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3292 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3293 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3295 echo "$as_me:$LINENO: checking for $ac_header" >&5
3296 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3297 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3298 echo $ECHO_N "(cached) $ECHO_C" >&6
3300 eval "$as_ac_Header=$ac_header_preproc"
3302 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3303 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3306 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3307 cat >>confdefs.h <<_ACEOF
3308 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3310 ac_obstack_headers="yes"
3312 ac_obstack_headers="no"
3317 if test "$ac_obstack_headers" != yes; then
3318 { { echo "$as_me:$LINENO: error: \"obstack.h not found\"" >&5
3319 echo "$as_me: error: \"obstack.h not found\"" >&2;}
3320 { (exit 1); exit 1; }; }
3325 for ac_header in alloca.h
3327 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3328 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3329 echo "$as_me:$LINENO: checking for $ac_header" >&5
3330 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3331 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3332 echo $ECHO_N "(cached) $ECHO_C" >&6
3334 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3335 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3337 # Is the header compilable?
3338 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3339 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3340 cat >conftest.$ac_ext <<_ACEOF
3341 #line $LINENO "configure"
3342 #include "confdefs.h"
3343 $ac_includes_default
3344 #include <$ac_header>
3346 rm -f conftest.$ac_objext
3347 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3348 (eval $ac_compile) 2>&5
3350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3351 (exit $ac_status); } &&
3352 { ac_try='test -s conftest.$ac_objext'
3353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3357 (exit $ac_status); }; }; then
3358 ac_header_compiler=yes
3360 echo "$as_me: failed program was:" >&5
3361 cat conftest.$ac_ext >&5
3362 ac_header_compiler=no
3364 rm -f conftest.$ac_objext conftest.$ac_ext
3365 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3366 echo "${ECHO_T}$ac_header_compiler" >&6
3368 # Is the header present?
3369 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3370 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3371 cat >conftest.$ac_ext <<_ACEOF
3372 #line $LINENO "configure"
3373 #include "confdefs.h"
3374 #include <$ac_header>
3376 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3377 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3379 egrep -v '^ *\+' conftest.er1 >conftest.err
3381 cat conftest.err >&5
3382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3383 (exit $ac_status); } >/dev/null; then
3384 if test -s conftest.err; then
3385 ac_cpp_err=$ac_c_preproc_warn_flag
3392 if test -z "$ac_cpp_err"; then
3393 ac_header_preproc=yes
3395 echo "$as_me: failed program was:" >&5
3396 cat conftest.$ac_ext >&5
3397 ac_header_preproc=no
3399 rm -f conftest.err conftest.$ac_ext
3400 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3401 echo "${ECHO_T}$ac_header_preproc" >&6
3403 # So? What about this header?
3404 case $ac_header_compiler:$ac_header_preproc in
3406 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3407 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3408 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3409 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3411 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3412 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3413 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3414 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3415 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3416 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3418 echo "$as_me:$LINENO: checking for $ac_header" >&5
3419 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3420 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3421 echo $ECHO_N "(cached) $ECHO_C" >&6
3423 eval "$as_ac_Header=$ac_header_preproc"
3425 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3426 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3429 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3430 cat >>confdefs.h <<_ACEOF
3431 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3433 ac_alloca_headers="yes"
3435 ac_alloca_headers="no"
3440 if test "$ac_alloca_headers" = "yes"; then
3441 cat >>confdefs.h <<\_ACEOF
3442 #define HAVE_ALLOCA_H 1
3446 if test "$ac_cv_header_stdc" = "no"; then
3447 { { echo "$as_me:$LINENO: error: \"alloca.h and stdlib.h not found\"" >&5
3448 echo "$as_me: error: \"alloca.h and stdlib.h not found\"" >&2;}
3449 { (exit 1); exit 1; }; }
3455 if test "$enable_firm_jni" = yes; then
3457 for ac_header in jni.h
3459 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3460 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3461 echo "$as_me:$LINENO: checking for $ac_header" >&5
3462 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3463 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3464 echo $ECHO_N "(cached) $ECHO_C" >&6
3466 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3467 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3469 # Is the header compilable?
3470 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3471 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3472 cat >conftest.$ac_ext <<_ACEOF
3473 #line $LINENO "configure"
3474 #include "confdefs.h"
3475 $ac_includes_default
3476 #include <$ac_header>
3478 rm -f conftest.$ac_objext
3479 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3480 (eval $ac_compile) 2>&5
3482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3483 (exit $ac_status); } &&
3484 { ac_try='test -s conftest.$ac_objext'
3485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3489 (exit $ac_status); }; }; then
3490 ac_header_compiler=yes
3492 echo "$as_me: failed program was:" >&5
3493 cat conftest.$ac_ext >&5
3494 ac_header_compiler=no
3496 rm -f conftest.$ac_objext conftest.$ac_ext
3497 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3498 echo "${ECHO_T}$ac_header_compiler" >&6
3500 # Is the header present?
3501 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3502 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3503 cat >conftest.$ac_ext <<_ACEOF
3504 #line $LINENO "configure"
3505 #include "confdefs.h"
3506 #include <$ac_header>
3508 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3509 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3511 egrep -v '^ *\+' conftest.er1 >conftest.err
3513 cat conftest.err >&5
3514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3515 (exit $ac_status); } >/dev/null; then
3516 if test -s conftest.err; then
3517 ac_cpp_err=$ac_c_preproc_warn_flag
3524 if test -z "$ac_cpp_err"; then
3525 ac_header_preproc=yes
3527 echo "$as_me: failed program was:" >&5
3528 cat conftest.$ac_ext >&5
3529 ac_header_preproc=no
3531 rm -f conftest.err conftest.$ac_ext
3532 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3533 echo "${ECHO_T}$ac_header_preproc" >&6
3535 # So? What about this header?
3536 case $ac_header_compiler:$ac_header_preproc in
3538 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3539 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3540 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3541 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3543 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3544 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3545 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3546 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3547 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3548 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3550 echo "$as_me:$LINENO: checking for $ac_header" >&5
3551 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3552 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3553 echo $ECHO_N "(cached) $ECHO_C" >&6
3555 eval "$as_ac_Header=$ac_header_preproc"
3557 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3558 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3561 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3562 cat >>confdefs.h <<_ACEOF
3563 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3565 ac_jni_headers="yes"
3572 if test "$ac_jni_headers" != yes; then
3573 { { 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
3574 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;}
3575 { (exit 1); exit 1; }; }
3581 #dnl check for the gnu multiprecission (gmp) library
3583 #AC_CHECK_LIB(gmp, main, ac_gmp_library="yes", ac_gmp_library="no")
3584 #if test "$ac_gmp_library" != yes; then
3585 # dnl gmp library not found.
3586 # AC_MSG_ERROR("GNU multiprecission gmp library not found")
3590 echo "$as_me:$LINENO: checking for main in -lm" >&5
3591 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
3592 if test "${ac_cv_lib_m_main+set}" = set; then
3593 echo $ECHO_N "(cached) $ECHO_C" >&6
3595 ac_check_lib_save_LIBS=$LIBS
3597 cat >conftest.$ac_ext <<_ACEOF
3598 #line $LINENO "configure"
3599 #include "confdefs.h"
3602 #ifdef F77_DUMMY_MAIN
3606 int F77_DUMMY_MAIN() { return 1; }
3616 rm -f conftest.$ac_objext conftest$ac_exeext
3617 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3618 (eval $ac_link) 2>&5
3620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3621 (exit $ac_status); } &&
3622 { ac_try='test -s conftest$ac_exeext'
3623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3627 (exit $ac_status); }; }; then
3628 ac_cv_lib_m_main=yes
3630 echo "$as_me: failed program was:" >&5
3631 cat conftest.$ac_ext >&5
3634 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3635 LIBS=$ac_check_lib_save_LIBS
3637 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
3638 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
3639 if test $ac_cv_lib_m_main = yes; then
3645 if test "$ac_m_library" != yes; then
3646 { { echo "$as_me:$LINENO: error: \"standard math library not found\"" >&5
3647 echo "$as_me: error: \"standard math library not found\"" >&2;}
3648 { (exit 1); exit 1; }; }
3652 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
3653 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
3654 if test "${ac_cv_c_bigendian+set}" = set; then
3655 echo $ECHO_N "(cached) $ECHO_C" >&6
3657 # See if sys/param.h defines the BYTE_ORDER macro.
3658 cat >conftest.$ac_ext <<_ACEOF
3659 #line $LINENO "configure"
3660 #include "confdefs.h"
3661 #include <sys/types.h>
3662 #include <sys/param.h>
3664 #ifdef F77_DUMMY_MAIN
3668 int F77_DUMMY_MAIN() { return 1; }
3673 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3681 rm -f conftest.$ac_objext
3682 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3683 (eval $ac_compile) 2>&5
3685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3686 (exit $ac_status); } &&
3687 { ac_try='test -s conftest.$ac_objext'
3688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3692 (exit $ac_status); }; }; then
3693 # It does; now see whether it defined to BIG_ENDIAN or not.
3694 cat >conftest.$ac_ext <<_ACEOF
3695 #line $LINENO "configure"
3696 #include "confdefs.h"
3697 #include <sys/types.h>
3698 #include <sys/param.h>
3700 #ifdef F77_DUMMY_MAIN
3704 int F77_DUMMY_MAIN() { return 1; }
3709 #if BYTE_ORDER != BIG_ENDIAN
3717 rm -f conftest.$ac_objext
3718 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3719 (eval $ac_compile) 2>&5
3721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3722 (exit $ac_status); } &&
3723 { ac_try='test -s conftest.$ac_objext'
3724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3728 (exit $ac_status); }; }; then
3729 ac_cv_c_bigendian=yes
3731 echo "$as_me: failed program was:" >&5
3732 cat conftest.$ac_ext >&5
3733 ac_cv_c_bigendian=no
3735 rm -f conftest.$ac_objext conftest.$ac_ext
3737 echo "$as_me: failed program was:" >&5
3738 cat conftest.$ac_ext >&5
3739 # It does not; compile a test program.
3740 if test "$cross_compiling" = yes; then
3741 # try to guess the endianess by grep'ing values into an object file
3742 ac_cv_c_bigendian=unknown
3743 cat >conftest.$ac_ext <<_ACEOF
3744 #line $LINENO "configure"
3745 #include "confdefs.h"
3746 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
3747 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
3748 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
3749 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
3750 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
3751 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
3752 #ifdef F77_DUMMY_MAIN
3756 int F77_DUMMY_MAIN() { return 1; }
3761 _ascii (); _ebcdic ();
3766 rm -f conftest.$ac_objext
3767 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3768 (eval $ac_compile) 2>&5
3770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3771 (exit $ac_status); } &&
3772 { ac_try='test -s conftest.$ac_objext'
3773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3777 (exit $ac_status); }; }; then
3778 if fgrep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
3779 ac_cv_c_bigendian=yes
3781 if fgrep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
3782 if test "$ac_cv_c_bigendian" = unknown; then
3783 ac_cv_c_bigendian=no
3785 # finding both strings is unlikely to happen, but who knows?
3786 ac_cv_c_bigendian=unknown
3790 echo "$as_me: failed program was:" >&5
3791 cat conftest.$ac_ext >&5
3793 rm -f conftest.$ac_objext conftest.$ac_ext
3795 cat >conftest.$ac_ext <<_ACEOF
3796 #line $LINENO "configure"
3797 #include "confdefs.h"
3801 /* Are we little or big endian? From Harbison&Steele. */
3805 char c[sizeof (long)];
3808 exit (u.c[sizeof (long) - 1] == 1);
3811 rm -f conftest$ac_exeext
3812 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3813 (eval $ac_link) 2>&5
3815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3816 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3821 (exit $ac_status); }; }; then
3822 ac_cv_c_bigendian=no
3824 echo "$as_me: program exited with status $ac_status" >&5
3825 echo "$as_me: failed program was:" >&5
3826 cat conftest.$ac_ext >&5
3828 ac_cv_c_bigendian=yes
3830 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3833 rm -f conftest.$ac_objext conftest.$ac_ext
3835 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
3836 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
3837 case $ac_cv_c_bigendian in
3840 cat >>confdefs.h <<\_ACEOF
3841 #define WORDS_BIGENDIAN 1
3847 { { echo "$as_me:$LINENO: error: unknown endianess
3848 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
3849 echo "$as_me: error: unknown endianess
3850 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
3851 { (exit 1); exit 1; }; } ;;
3854 echo "$as_me:$LINENO: checking for working long double with more range or precision than double" >&5
3855 echo $ECHO_N "checking for working long double with more range or precision than double... $ECHO_C" >&6
3856 if test "${ac_cv_c_long_double+set}" = set; then
3857 echo $ECHO_N "(cached) $ECHO_C" >&6
3859 cat >conftest.$ac_ext <<_ACEOF
3860 #line $LINENO "configure"
3861 #include "confdefs.h"
3863 long double foo = 0.0;
3864 #ifdef F77_DUMMY_MAIN
3868 int F77_DUMMY_MAIN() { return 1; }
3873 static int test_array [1 - 2 * !(/* Using '|' rather than '||' catches a GCC 2.95.2 x86 bug. */
3874 (DBL_MAX < LDBL_MAX) | (LDBL_EPSILON < DBL_EPSILON)
3875 | (DBL_MAX_EXP < LDBL_MAX_EXP) | (DBL_MANT_DIG < LDBL_MANT_DIG))];
3882 rm -f conftest.$ac_objext
3883 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3884 (eval $ac_compile) 2>&5
3886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3887 (exit $ac_status); } &&
3888 { ac_try='test -s conftest.$ac_objext'
3889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3893 (exit $ac_status); }; }; then
3894 ac_cv_c_long_double=yes
3896 echo "$as_me: failed program was:" >&5
3897 cat conftest.$ac_ext >&5
3898 ac_cv_c_long_double=no
3900 rm -f conftest.$ac_objext conftest.$ac_ext
3902 echo "$as_me:$LINENO: result: $ac_cv_c_long_double" >&5
3903 echo "${ECHO_T}$ac_cv_c_long_double" >&6
3904 if test $ac_cv_c_long_double = yes; then
3906 cat >>confdefs.h <<\_ACEOF
3907 #define HAVE_LONG_DOUBLE 1
3915 echo "$as_me:$LINENO: checking for strerror" >&5
3916 echo $ECHO_N "checking for strerror... $ECHO_C" >&6
3917 if test "${ac_cv_func_strerror+set}" = set; then
3918 echo $ECHO_N "(cached) $ECHO_C" >&6
3920 cat >conftest.$ac_ext <<_ACEOF
3921 #line $LINENO "configure"
3922 #include "confdefs.h"
3923 /* System header to define __stub macros and hopefully few prototypes,
3924 which can conflict with char strerror (); below. */
3926 /* Override any gcc2 internal prototype to avoid an error. */
3930 /* We use char because int might match the return type of a gcc2
3931 builtin and then its argument prototype would still apply. */
3935 #ifdef F77_DUMMY_MAIN
3939 int F77_DUMMY_MAIN() { return 1; }
3944 /* The GNU C library defines this for functions which it implements
3945 to always fail with ENOSYS. Some functions are actually named
3946 something starting with __ and the normal name is an alias. */
3947 #if defined (__stub_strerror) || defined (__stub___strerror)
3957 rm -f conftest.$ac_objext conftest$ac_exeext
3958 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3959 (eval $ac_link) 2>&5
3961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3962 (exit $ac_status); } &&
3963 { ac_try='test -s conftest$ac_exeext'
3964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3968 (exit $ac_status); }; }; then
3969 ac_cv_func_strerror=yes
3971 echo "$as_me: failed program was:" >&5
3972 cat conftest.$ac_ext >&5
3973 ac_cv_func_strerror=no
3975 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3977 echo "$as_me:$LINENO: result: $ac_cv_func_strerror" >&5
3978 echo "${ECHO_T}$ac_cv_func_strerror" >&6
3979 if test $ac_cv_func_strerror = yes; then
3982 { { echo "$as_me:$LINENO: error: \"need strerror function\"" >&5
3983 echo "$as_me: error: \"need strerror function\"" >&2;}
3984 { (exit 1); exit 1; }; }
3992 ac_config_files="$ac_config_files $ac_output_file"
3993 ac_config_commands="$ac_config_commands default"
3994 cat >confcache <<\_ACEOF
3995 # This file is a shell script that caches the results of configure
3996 # tests run on this system so they can be shared between configure
3997 # scripts and configure runs, see configure's option --config-cache.
3998 # It is not useful on other systems. If it contains results you don't
3999 # want to keep, you may remove or edit it.
4001 # config.status only pays attention to the cache file if you give it
4002 # the --recheck option to rerun configure.
4004 # `ac_cv_env_foo' variables (set or unset) will be overriden when
4005 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4010 # The following way of writing the cache mishandles newlines in values,
4011 # but we know of no workaround that is simple, portable, and efficient.
4012 # So, don't put newlines in cache variables' values.
4013 # Ultrix sh set writes to stderr and can't be redirected directly,
4014 # and sets the high bit in the cache file unless we assign to the vars.
4017 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4019 # `set' does not quote correctly, so add quotes (double-quote
4020 # substitution turns \\\\ into \\, and sed turns \\ into \).
4023 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4026 # `set' quotes correctly as required by POSIX, so do not add quotes.
4028 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4035 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4037 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4039 if cmp -s $cache_file confcache; then :; else
4040 if test -w $cache_file; then
4041 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4042 cat confcache >$cache_file
4044 echo "not updating unwritable cache $cache_file"
4049 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4050 # Let make expand exec_prefix.
4051 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4053 # VPATH may cause trouble with some makes, so we remove $(srcdir),
4054 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
4055 # trailing colons and then remove the whole line if VPATH becomes empty
4056 # (actually we leave an empty line to preserve line numbers).
4057 if test "x$srcdir" = x.; then
4058 ac_vpsub='/^[ ]*VPATH[ ]*=/{
4059 s/:*\$(srcdir):*/:/;
4060 s/:*\${srcdir}:*/:/;
4062 s/^\([^=]*=[ ]*\):*/\1/;
4068 DEFS=-DHAVE_CONFIG_H
4071 : ${CONFIG_STATUS=./config.status}
4072 ac_clean_files_save=$ac_clean_files
4073 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4074 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
4075 echo "$as_me: creating $CONFIG_STATUS" >&6;}
4076 cat >$CONFIG_STATUS <<_ACEOF
4078 # Generated by $as_me.
4079 # Run this file to recreate the current configuration.
4080 # Compiler output produced by configure, useful for debugging
4081 # configure, is in config.log if it exists.
4084 SHELL=\${CONFIG_SHELL-$SHELL}
4087 cat >>$CONFIG_STATUS <<\_ACEOF
4089 ## --------------------- ##
4090 ## M4sh Initialization. ##
4091 ## --------------------- ##
4093 # Be Bourne compatible
4094 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
4097 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
4102 # Support unset when possible.
4103 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
4109 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
4110 { $as_unset LANG || test "${LANG+set}" != set; } ||
4111 { LANG=C; export LANG; }
4112 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
4113 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
4114 { LC_ALL=C; export LC_ALL; }
4115 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
4116 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
4117 { LC_TIME=C; export LC_TIME; }
4118 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
4119 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
4120 { LC_CTYPE=C; export LC_CTYPE; }
4121 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
4122 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
4123 { LANGUAGE=C; export LANGUAGE; }
4124 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
4125 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
4126 { LC_COLLATE=C; export LC_COLLATE; }
4127 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
4128 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
4129 { LC_NUMERIC=C; export LC_NUMERIC; }
4130 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
4131 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
4132 { LC_MESSAGES=C; export LC_MESSAGES; }
4135 # Name of the executable.
4136 as_me=`(basename "$0") 2>/dev/null ||
4137 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4138 X"$0" : 'X\(//\)$' \| \
4139 X"$0" : 'X\(/\)$' \| \
4140 . : '\(.\)' 2>/dev/null ||
4142 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
4143 /^X\/\(\/\/\)$/{ s//\1/; q; }
4144 /^X\/\(\/\).*/{ s//\1/; q; }
4147 # PATH needs CR, and LINENO needs CR and PATH.
4148 # Avoid depending upon Character Ranges.
4149 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
4150 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4151 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
4152 as_cr_digits='0123456789'
4153 as_cr_alnum=$as_cr_Letters$as_cr_digits
4155 # The user is always right.
4156 if test "${PATH_SEPARATOR+set}" != set; then
4157 echo "#! /bin/sh" >conftest.sh
4158 echo "exit 0" >>conftest.sh
4159 chmod +x conftest.sh
4160 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
4171 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4172 test "x$as_lineno_1" != "x$as_lineno_2" &&
4173 test "x$as_lineno_3" = "x$as_lineno_2" || {
4174 # Find who we are. Look in the path if we contain no path at all
4177 *[\\/]* ) as_myself=$0 ;;
4178 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4182 test -z "$as_dir" && as_dir=.
4183 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4188 # We did not find ourselves, most probably we were run as `sh COMMAND'
4189 # in which case we are not to be found in the path.
4190 if test "x$as_myself" = x; then
4193 if test ! -f "$as_myself"; then
4194 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
4195 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
4196 { (exit 1); exit 1; }; }
4198 case $CONFIG_SHELL in
4200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4201 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
4204 test -z "$as_dir" && as_dir=.
4205 for as_base in sh bash ksh sh5; do
4208 if ("$as_dir/$as_base" -c '
4211 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4212 test "x$as_lineno_1" != "x$as_lineno_2" &&
4213 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
4214 CONFIG_SHELL=$as_dir/$as_base
4216 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
4224 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
4225 # uniformly replaced by the line number. The first 'sed' inserts a
4226 # line-number line before each line; the second 'sed' does the real
4227 # work. The second script uses 'N' to pair each line-number line
4228 # with the numbered line, and appends trailing '-' during
4229 # substitution so that $LINENO is not a special case at line end.
4230 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
4231 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
4232 sed '=' <$as_myself |
4237 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
4240 s,^['$as_cr_digits']*\n,,
4242 chmod +x $as_me.lineno ||
4243 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
4244 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
4245 { (exit 1); exit 1; }; }
4247 # Don't try to exec as it changes $[0], causing all sort of problems
4248 # (the dirname of $[0] is not the place where we might find the
4249 # original and so on. Autoconf is especially sensible to this).
4251 # Exit status is that of the last command.
4256 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
4257 *c*,-n*) ECHO_N= ECHO_C='
4259 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
4260 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
4263 if expr a : '\(a\)' >/dev/null 2>&1; then
4269 rm -f conf$$ conf$$.exe conf$$.file
4271 if ln -s conf$$.file conf$$ 2>/dev/null; then
4272 # We could just check for DJGPP; but this test a) works b) is more generic
4273 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
4274 if test -f conf$$.exe; then
4275 # Don't use ln at all; we don't have any links
4280 elif ln conf$$.file conf$$ 2>/dev/null; then
4285 rm -f conf$$ conf$$.exe conf$$.file
4287 as_executable_p="test -f"
4289 # Sed expression to map a string onto a valid CPP name.
4290 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
4292 # Sed expression to map a string onto a valid variable name.
4293 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
4297 # We need space, tab and new line, in precisely that order.
4303 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
4307 # Open the log real soon, to keep \$[0] and so on meaningful, and to
4308 # report actual input values of CONFIG_FILES etc. instead of their
4309 # values after options handling. Logging --version etc. is OK.
4313 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4314 ## Running $as_me. ##
4319 This file was extended by libfirm $as_me 0.3.0, which was
4320 generated by GNU Autoconf 2.53. Invocation command line was
4322 CONFIG_FILES = $CONFIG_FILES
4323 CONFIG_HEADERS = $CONFIG_HEADERS
4324 CONFIG_LINKS = $CONFIG_LINKS
4325 CONFIG_COMMANDS = $CONFIG_COMMANDS
4329 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
4333 # Files that config.status was made for.
4334 if test -n "$ac_config_files"; then
4335 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
4338 if test -n "$ac_config_headers"; then
4339 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
4342 if test -n "$ac_config_links"; then
4343 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
4346 if test -n "$ac_config_commands"; then
4347 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
4350 cat >>$CONFIG_STATUS <<\_ACEOF
4353 \`$as_me' instantiates files from templates according to the
4354 current configuration.
4356 Usage: $0 [OPTIONS] [FILE]...
4358 -h, --help print this help, then exit
4359 -V, --version print version number, then exit
4360 -d, --debug don't remove temporary files
4361 --recheck update $as_me by reconfiguring in the same conditions
4362 --file=FILE[:TEMPLATE]
4363 instantiate the configuration file FILE
4364 --header=FILE[:TEMPLATE]
4365 instantiate the configuration header FILE
4367 Configuration files:
4370 Configuration headers:
4373 Configuration commands:
4376 Report bugs to <bug-autoconf@gnu.org>."
4379 cat >>$CONFIG_STATUS <<_ACEOF
4381 libfirm config.status 0.3.0
4382 configured by $0, generated by GNU Autoconf 2.53,
4383 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
4385 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
4386 Free Software Foundation, Inc.
4387 This config.status script is free software; the Free Software Foundation
4388 gives unlimited permission to copy, distribute and modify it."
4393 cat >>$CONFIG_STATUS <<\_ACEOF
4394 # If no file are specified by the user, then we need to provide default
4395 # value. By we need to know if files were specified by the user.
4401 ac_option=`expr "x$1" : 'x\([^=]*\)='`
4402 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
4404 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
4408 *) # This is not an option, so the user has probably given explicit
4410 ac_need_defaults=false;;
4414 # Handling of the options.
4416 cat >>$CONFIG_STATUS <<_ACEOF
4417 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4418 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
4419 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
4421 cat >>$CONFIG_STATUS <<\_ACEOF
4422 --version | --vers* | -V )
4423 echo "$ac_cs_version"; exit 0 ;;
4425 # Conflict between --help and --header
4426 { { echo "$as_me:$LINENO: error: ambiguous option: $1
4427 Try \`$0 --help' for more information." >&5
4428 echo "$as_me: error: ambiguous option: $1
4429 Try \`$0 --help' for more information." >&2;}
4430 { (exit 1); exit 1; }; };;
4431 --help | --hel | -h )
4432 echo "$ac_cs_usage"; exit 0 ;;
4433 --debug | --d* | -d )
4435 --file | --fil | --fi | --f )
4437 CONFIG_FILES="$CONFIG_FILES $1"
4438 ac_need_defaults=false;;
4439 --header | --heade | --head | --hea )
4441 CONFIG_HEADERS="$CONFIG_HEADERS $1"
4442 ac_need_defaults=false;;
4445 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
4446 Try \`$0 --help' for more information." >&5
4447 echo "$as_me: error: unrecognized option: $1
4448 Try \`$0 --help' for more information." >&2;}
4449 { (exit 1); exit 1; }; } ;;
4451 *) ac_config_targets="$ac_config_targets $1" ;;
4463 cat >>$CONFIG_STATUS <<\_ACEOF
4464 for ac_config_target in $ac_config_targets
4466 case "$ac_config_target" in
4467 # Handling of arguments.
4468 "$ac_output_file" ) CONFIG_FILES="$CONFIG_FILES $ac_output_file" ;;
4469 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
4470 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
4471 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
4472 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
4473 { (exit 1); exit 1; }; };;
4477 # If the user did not use the arguments to specify the items to instantiate,
4478 # then the envvar interface is used. Set only those that are not.
4479 # We use the long form for the default assignment because of an extremely
4480 # bizarre bug on SunOS 4.1.3.
4481 if $ac_need_defaults; then
4482 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
4483 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
4484 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
4487 # Create a temporary directory, and hook for its removal unless debugging.
4490 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
4491 trap '{ (exit 1); exit 1; }' 1 2 13 15
4494 # Create a (secure) tmp directory for tmp files.
4497 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
4498 test -n "$tmp" && test -d "$tmp"
4501 tmp=$TMPDIR/cs$$-$RANDOM
4502 (umask 077 && mkdir $tmp)
4505 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
4506 { (exit 1); exit 1; }
4511 cat >>$CONFIG_STATUS <<_ACEOF
4514 # CONFIG_FILES section.
4517 # No need to generate the scripts if there are no CONFIG_FILES.
4518 # This happens for instance when ./config.status config.h
4519 if test -n "\$CONFIG_FILES"; then
4520 # Protect against being on the right side of a sed subst in config.status.
4521 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
4522 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
4523 s,@SHELL@,$SHELL,;t t
4524 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
4525 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
4526 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
4527 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
4528 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
4529 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
4530 s,@exec_prefix@,$exec_prefix,;t t
4531 s,@prefix@,$prefix,;t t
4532 s,@program_transform_name@,$program_transform_name,;t t
4533 s,@bindir@,$bindir,;t t
4534 s,@sbindir@,$sbindir,;t t
4535 s,@libexecdir@,$libexecdir,;t t
4536 s,@datadir@,$datadir,;t t
4537 s,@sysconfdir@,$sysconfdir,;t t
4538 s,@sharedstatedir@,$sharedstatedir,;t t
4539 s,@localstatedir@,$localstatedir,;t t
4540 s,@libdir@,$libdir,;t t
4541 s,@includedir@,$includedir,;t t
4542 s,@oldincludedir@,$oldincludedir,;t t
4543 s,@infodir@,$infodir,;t t
4544 s,@mandir@,$mandir,;t t
4545 s,@build_alias@,$build_alias,;t t
4546 s,@host_alias@,$host_alias,;t t
4547 s,@target_alias@,$target_alias,;t t
4549 s,@ECHO_C@,$ECHO_C,;t t
4550 s,@ECHO_N@,$ECHO_N,;t t
4551 s,@ECHO_T@,$ECHO_T,;t t
4553 s,@libfirm_conf_env@,$libfirm_conf_env,;t t
4554 s,@enable_debug_libfirm@,$enable_debug_libfirm,;t t
4555 s,@enable_gcc_inline@,$enable_gcc_inline,;t t
4556 s,@enable_profile_libfirm@,$enable_profile_libfirm,;t t
4557 s,@enable_auto_documentation@,$enable_auto_documentation,;t t
4558 s,@enable_firm_jni@,$enable_firm_jni,;t t
4559 s,@disable_libiberty@,$disable_libiberty,;t t
4560 s,@enable_statistics@,$enable_statistics,;t t
4562 s,@CFLAGS@,$CFLAGS,;t t
4563 s,@LDFLAGS@,$LDFLAGS,;t t
4564 s,@CPPFLAGS@,$CPPFLAGS,;t t
4565 s,@ac_ct_CC@,$ac_ct_CC,;t t
4566 s,@EXEEXT@,$EXEEXT,;t t
4567 s,@OBJEXT@,$OBJEXT,;t t
4569 s,@ac_ct_LD@,$ac_ct_LD,;t t
4570 s,@libfirm_cv_prog_ld_r@,$libfirm_cv_prog_ld_r,;t t
4573 s,@RANLIB@,$RANLIB,;t t
4574 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
4575 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
4576 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
4577 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
4579 s,@DOXYGEN@,$DOXYGEN,;t t
4581 s,@JAVAC@,$JAVAC,;t t
4582 s,@JAVAH@,$JAVAH,;t t
4588 cat >>$CONFIG_STATUS <<\_ACEOF
4589 # Split the substitutions into bite-sized pieces for seds with
4590 # small command number limits, like on Digital OSF/1 and HP-UX.
4592 ac_sed_frag=1 # Number of current file.
4593 ac_beg=1 # First line for current file.
4594 ac_end=$ac_max_sed_lines # Line after last line for current file.
4597 while $ac_more_lines; do
4598 if test $ac_beg -gt 1; then
4599 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4601 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4603 if test ! -s $tmp/subs.frag; then
4606 # The purpose of the label and of the branching condition is to
4607 # speed up the sed processing (if there are no `@' at all, there
4608 # is no need to browse any of the substitutions).
4609 # These are the two extra sed commands mentioned above.
4611 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
4612 if test -z "$ac_sed_cmds"; then
4613 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
4615 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
4617 ac_sed_frag=`expr $ac_sed_frag + 1`
4619 ac_end=`expr $ac_end + $ac_max_sed_lines`
4622 if test -z "$ac_sed_cmds"; then
4625 fi # test -n "$CONFIG_FILES"
4628 cat >>$CONFIG_STATUS <<\_ACEOF
4629 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
4630 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4632 - | *:- | *:-:* ) # input from stdin
4634 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4635 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4636 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4637 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4638 * ) ac_file_in=$ac_file.in ;;
4641 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
4642 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
4643 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4644 X"$ac_file" : 'X\(//\)[^/]' \| \
4645 X"$ac_file" : 'X\(//\)$' \| \
4646 X"$ac_file" : 'X\(/\)' \| \
4647 . : '\(.\)' 2>/dev/null ||
4649 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4650 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4651 /^X\(\/\/\)$/{ s//\1/; q; }
4652 /^X\(\/\).*/{ s//\1/; q; }
4655 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
4659 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
4660 case $as_mkdir_dir in
4661 # Skip DOS drivespec
4662 ?:) as_incr_dir=$as_mkdir_dir ;;
4664 as_incr_dir=$as_incr_dir/$as_mkdir_dir
4665 test -d "$as_incr_dir" ||
4666 mkdir "$as_incr_dir" ||
4667 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
4668 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
4669 { (exit 1); exit 1; }; }
4676 if test "$ac_dir" != .; then
4677 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
4678 # A "../" for each directory in $ac_dir_suffix.
4679 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
4681 ac_dir_suffix= ac_top_builddir=
4685 .) # No --srcdir option. We are building in place.
4687 if test -z "$ac_top_builddir"; then
4690 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
4692 [\\/]* | ?:[\\/]* ) # Absolute path.
4693 ac_srcdir=$srcdir$ac_dir_suffix;
4694 ac_top_srcdir=$srcdir ;;
4696 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
4697 ac_top_srcdir=$ac_top_builddir$srcdir ;;
4699 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
4701 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
4702 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
4703 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
4704 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
4708 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
4709 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
4712 if test x"$ac_file" != x-; then
4713 { echo "$as_me:$LINENO: creating $ac_file" >&5
4714 echo "$as_me: creating $ac_file" >&6;}
4717 # Let's still pretend it is `configure' which instantiates (i.e., don't
4718 # use $as_me), people would be surprised to read:
4719 # /* config.h. Generated by config.status. */
4720 if test x"$ac_file" = x-; then
4723 configure_input="$ac_file. "
4725 configure_input=$configure_input"Generated from `echo $ac_file_in |
4726 sed 's,.*/,,'` by configure."
4728 # First look for the input files in the build tree, otherwise in the
4730 ac_file_inputs=`IFS=:
4731 for f in $ac_file_in; do
4733 -) echo $tmp/stdin ;;
4735 # Absolute (can't be DOS-style, as IFS=:)
4736 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4737 echo "$as_me: error: cannot find input file: $f" >&2;}
4738 { (exit 1); exit 1; }; }
4741 if test -f "$f"; then
4744 elif test -f "$srcdir/$f"; then
4749 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4750 echo "$as_me: error: cannot find input file: $f" >&2;}
4751 { (exit 1); exit 1; }; }
4754 done` || { (exit 1); exit 1; }
4756 cat >>$CONFIG_STATUS <<_ACEOF
4760 cat >>$CONFIG_STATUS <<\_ACEOF
4762 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
4763 s,@configure_input@,$configure_input,;t t
4764 s,@srcdir@,$ac_srcdir,;t t
4765 s,@abs_srcdir@,$ac_abs_srcdir,;t t
4766 s,@top_srcdir@,$ac_top_srcdir,;t t
4767 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
4768 s,@builddir@,$ac_builddir,;t t
4769 s,@abs_builddir@,$ac_abs_builddir,;t t
4770 s,@top_builddir@,$ac_top_builddir,;t t
4771 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
4772 s,@INSTALL@,$ac_INSTALL,;t t
4773 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
4775 if test x"$ac_file" != x-; then
4776 mv $tmp/out $ac_file
4784 cat >>$CONFIG_STATUS <<\_ACEOF
4787 # CONFIG_HEADER section.
4790 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4791 # NAME is the cpp macro being defined and VALUE is the value it is being given.
4793 # ac_d sets the value in "#define NAME VALUE" lines.
4794 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
4795 ac_dB='[ ].*$,\1#\2'
4798 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4799 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4800 ac_uB='$,\1#\2define\3'
4804 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
4805 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4807 - | *:- | *:-:* ) # input from stdin
4809 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4810 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4811 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4812 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4813 * ) ac_file_in=$ac_file.in ;;
4816 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
4817 echo "$as_me: creating $ac_file" >&6;}
4819 # First look for the input files in the build tree, otherwise in the
4821 ac_file_inputs=`IFS=:
4822 for f in $ac_file_in; do
4824 -) echo $tmp/stdin ;;
4826 # Absolute (can't be DOS-style, as IFS=:)
4827 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4828 echo "$as_me: error: cannot find input file: $f" >&2;}
4829 { (exit 1); exit 1; }; }
4832 if test -f "$f"; then
4835 elif test -f "$srcdir/$f"; then
4840 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4841 echo "$as_me: error: cannot find input file: $f" >&2;}
4842 { (exit 1); exit 1; }; }
4845 done` || { (exit 1); exit 1; }
4846 # Remove the trailing spaces.
4847 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
4851 # Transform confdefs.h into two sed scripts, `conftest.defines' and
4852 # `conftest.undefs', that substitutes the proper values into
4853 # config.h.in to produce config.h. The first handles `#define'
4854 # templates, and the second `#undef' templates.
4855 # And first: Protect against being on the right side of a sed subst in
4856 # config.status. Protect against being in an unquoted here document
4858 rm -f conftest.defines conftest.undefs
4859 # Using a here document instead of a string reduces the quoting nightmare.
4860 # Putting comments in sed scripts is not portable.
4862 # `end' is used to avoid that the second main sed command (meant for
4863 # 0-ary CPP macros) applies to n-ary macro definitions.
4864 # See the Autoconf documentation for `clear'.
4865 cat >confdef2sed.sed <<\_ACEOF
4870 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
4872 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
4875 # If some macros were called several times there might be several times
4876 # the same #defines, which is useless. Nevertheless, we may not want to
4877 # sort them, since we want the *last* AC-DEFINE to be honored.
4878 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
4879 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
4880 rm -f confdef2sed.sed
4882 # This sed command replaces #undef with comments. This is necessary, for
4883 # example, in the case of _POSIX_SOURCE, which is predefined and required
4884 # on some systems where configure will not decide to define it.
4885 cat >>conftest.undefs <<\_ACEOF
4886 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
4889 # Break up conftest.defines because some shells have a limit on the size
4890 # of here documents, and old seds have small limits too (100 cmds).
4891 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
4892 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
4893 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
4894 echo ' :' >>$CONFIG_STATUS
4896 while grep . conftest.defines >/dev/null
4898 # Write a limited-size here document to $tmp/defines.sed.
4899 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
4900 # Speed up: don't consider the non `#define' lines.
4901 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
4902 # Work around the forget-to-reset-the-flag bug.
4903 echo 't clr' >>$CONFIG_STATUS
4904 echo ': clr' >>$CONFIG_STATUS
4905 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
4907 sed -f $tmp/defines.sed $tmp/in >$tmp/out
4911 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
4912 rm -f conftest.defines
4913 mv conftest.tail conftest.defines
4915 rm -f conftest.defines
4916 echo ' fi # egrep' >>$CONFIG_STATUS
4917 echo >>$CONFIG_STATUS
4919 # Break up conftest.undefs because some shells have a limit on the size
4920 # of here documents, and old seds have small limits too (100 cmds).
4921 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
4923 while grep . conftest.undefs >/dev/null
4925 # Write a limited-size here document to $tmp/undefs.sed.
4926 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
4927 # Speed up: don't consider the non `#undef'
4928 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
4929 # Work around the forget-to-reset-the-flag bug.
4930 echo 't clr' >>$CONFIG_STATUS
4931 echo ': clr' >>$CONFIG_STATUS
4932 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
4934 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
4938 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
4939 rm -f conftest.undefs
4940 mv conftest.tail conftest.undefs
4942 rm -f conftest.undefs
4944 cat >>$CONFIG_STATUS <<\_ACEOF
4945 # Let's still pretend it is `configure' which instantiates (i.e., don't
4946 # use $as_me), people would be surprised to read:
4947 # /* config.h. Generated by config.status. */
4948 if test x"$ac_file" = x-; then
4949 echo "/* Generated by configure. */" >$tmp/config.h
4951 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
4953 cat $tmp/in >>$tmp/config.h
4955 if test x"$ac_file" != x-; then
4956 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
4957 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
4958 echo "$as_me: $ac_file is unchanged" >&6;}
4960 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
4961 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4962 X"$ac_file" : 'X\(//\)[^/]' \| \
4963 X"$ac_file" : 'X\(//\)$' \| \
4964 X"$ac_file" : 'X\(/\)' \| \
4965 . : '\(.\)' 2>/dev/null ||
4967 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4968 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4969 /^X\(\/\/\)$/{ s//\1/; q; }
4970 /^X\(\/\).*/{ s//\1/; q; }
4973 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
4977 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
4978 case $as_mkdir_dir in
4979 # Skip DOS drivespec
4980 ?:) as_incr_dir=$as_mkdir_dir ;;
4982 as_incr_dir=$as_incr_dir/$as_mkdir_dir
4983 test -d "$as_incr_dir" ||
4984 mkdir "$as_incr_dir" ||
4985 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
4986 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
4987 { (exit 1); exit 1; }; }
4993 mv $tmp/config.h $ac_file
5001 cat >>$CONFIG_STATUS <<\_ACEOF
5004 # CONFIG_COMMANDS section.
5006 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
5007 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
5008 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
5009 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
5010 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5011 X"$ac_dest" : 'X\(//\)[^/]' \| \
5012 X"$ac_dest" : 'X\(//\)$' \| \
5013 X"$ac_dest" : 'X\(/\)' \| \
5014 . : '\(.\)' 2>/dev/null ||
5016 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5017 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5018 /^X\(\/\/\)$/{ s//\1/; q; }
5019 /^X\(\/\).*/{ s//\1/; q; }
5023 if test "$ac_dir" != .; then
5024 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5025 # A "../" for each directory in $ac_dir_suffix.
5026 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
5028 ac_dir_suffix= ac_top_builddir=
5032 .) # No --srcdir option. We are building in place.
5034 if test -z "$ac_top_builddir"; then
5037 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
5039 [\\/]* | ?:[\\/]* ) # Absolute path.
5040 ac_srcdir=$srcdir$ac_dir_suffix;
5041 ac_top_srcdir=$srcdir ;;
5043 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
5044 ac_top_srcdir=$ac_top_builddir$srcdir ;;
5046 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
5048 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
5049 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
5050 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
5051 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
5054 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
5055 echo "$as_me: executing $ac_dest commands" >&6;}
5057 default ) touch stamp-h ;;
5062 cat >>$CONFIG_STATUS <<\_ACEOF
5064 { (exit 0); exit 0; }
5066 chmod +x $CONFIG_STATUS
5067 ac_clean_files=$ac_clean_files_save
5070 # configure is writing to config.log, and then calls config.status.
5071 # config.status does its own redirection, appending to config.log.
5072 # Unfortunately, on DOS this fails, as config.log is still kept open
5073 # by configure, so config.status won't be able to write to it; its
5074 # output is simply discarded. So we exec the FD to /dev/null,
5075 # effectively closing config.log, so it can be properly (re)opened and
5076 # appended to by config.status. When coming back to configure, we
5077 # need to make the FD available again.
5078 if test "$no_create" != yes; then
5081 $SHELL $CONFIG_STATUS || ac_cs_success=false
5083 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5084 # would make configure fail if this is the last instruction.
5085 $ac_cs_success || { (exit 1); exit 1; }