2 # From configure.in Id: configure.in.
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.53 for libfirm 0.3.0.
6 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
7 # Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
11 if expr a : '\(a\)' >/dev/null 2>&1; then
18 ## --------------------- ##
19 ## M4sh Initialization. ##
20 ## --------------------- ##
22 # Be Bourne compatible
23 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
26 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
31 # Support unset when possible.
32 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
38 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
39 { $as_unset LANG || test "${LANG+set}" != set; } ||
40 { LANG=C; export LANG; }
41 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
42 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
43 { LC_ALL=C; export LC_ALL; }
44 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
45 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
46 { LC_TIME=C; export LC_TIME; }
47 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
48 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
49 { LC_CTYPE=C; export LC_CTYPE; }
50 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
51 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
52 { LANGUAGE=C; export LANGUAGE; }
53 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
54 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
55 { LC_COLLATE=C; export LC_COLLATE; }
56 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
57 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
58 { LC_NUMERIC=C; export LC_NUMERIC; }
59 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
60 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
61 { LC_MESSAGES=C; export LC_MESSAGES; }
64 # Name of the executable.
65 as_me=`(basename "$0") 2>/dev/null ||
66 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
67 X"$0" : 'X\(//\)$' \| \
68 X"$0" : 'X\(/\)$' \| \
69 . : '\(.\)' 2>/dev/null ||
71 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
72 /^X\/\(\/\/\)$/{ s//\1/; q; }
73 /^X\/\(\/\).*/{ s//\1/; q; }
76 # PATH needs CR, and LINENO needs CR and PATH.
77 # Avoid depending upon Character Ranges.
78 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
79 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
80 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
81 as_cr_digits='0123456789'
82 as_cr_alnum=$as_cr_Letters$as_cr_digits
84 # The user is always right.
85 if test "${PATH_SEPARATOR+set}" != set; then
86 echo "#! /bin/sh" >conftest.sh
87 echo "exit 0" >>conftest.sh
89 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
100 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
101 test "x$as_lineno_1" != "x$as_lineno_2" &&
102 test "x$as_lineno_3" = "x$as_lineno_2" || {
103 # Find who we are. Look in the path if we contain no path at all
106 *[\\/]* ) as_myself=$0 ;;
107 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
111 test -z "$as_dir" && as_dir=.
112 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117 # We did not find ourselves, most probably we were run as `sh COMMAND'
118 # in which case we are not to be found in the path.
119 if test "x$as_myself" = x; then
122 if test ! -f "$as_myself"; then
123 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
124 { (exit 1); exit 1; }; }
126 case $CONFIG_SHELL in
128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
129 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 test -z "$as_dir" && as_dir=.
133 for as_base in sh bash ksh sh5; do
136 if ("$as_dir/$as_base" -c '
139 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
140 test "x$as_lineno_1" != "x$as_lineno_2" &&
141 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
142 CONFIG_SHELL=$as_dir/$as_base
144 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
152 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
153 # uniformly replaced by the line number. The first 'sed' inserts a
154 # line-number line before each line; the second 'sed' does the real
155 # work. The second script uses 'N' to pair each line-number line
156 # with the numbered line, and appends trailing '-' during
157 # substitution so that $LINENO is not a special case at line end.
158 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
159 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
160 sed '=' <$as_myself |
165 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
168 s,^['$as_cr_digits']*\n,,
170 chmod +x $as_me.lineno ||
171 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
172 { (exit 1); exit 1; }; }
174 # Don't try to exec as it changes $[0], causing all sort of problems
175 # (the dirname of $[0] is not the place where we might find the
176 # original and so on. Autoconf is especially sensible to this).
178 # Exit status is that of the last command.
183 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
184 *c*,-n*) ECHO_N= ECHO_C='
186 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
187 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
190 if expr a : '\(a\)' >/dev/null 2>&1; then
196 rm -f conf$$ conf$$.exe conf$$.file
198 if ln -s conf$$.file conf$$ 2>/dev/null; then
199 # We could just check for DJGPP; but this test a) works b) is more generic
200 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
201 if test -f conf$$.exe; then
202 # Don't use ln at all; we don't have any links
207 elif ln conf$$.file conf$$ 2>/dev/null; then
212 rm -f conf$$ conf$$.exe conf$$.file
214 as_executable_p="test -f"
216 # Sed expression to map a string onto a valid CPP name.
217 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
219 # Sed expression to map a string onto a valid variable name.
220 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
224 # We need space, tab and new line, in precisely that order.
230 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
234 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
235 # so uname gets run too.
236 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
243 ac_default_prefix=/usr/local
248 SHELL=${CONFIG_SHELL-/bin/sh}
250 # Maximum number of lines to put in a shell here document.
251 # This variable seems obsolete. It should probably be removed, and
252 # only ac_max_sed_lines should be used.
253 : ${ac_max_here_lines=38}
255 # Identity of this package.
256 PACKAGE_NAME='libfirm'
257 PACKAGE_TARNAME='libfirm'
258 PACKAGE_VERSION='0.3.0'
259 PACKAGE_STRING='libfirm 0.3.0'
262 # Factoring default headers for most tests.
263 ac_includes_default="\
266 # include <sys/types.h>
269 # include <sys/stat.h>
280 # if !STDC_HEADERS && HAVE_MEMORY_H
286 # include <strings.h>
289 # include <inttypes.h>
300 # Initialize some variables set by options.
302 ac_init_version=false
303 # The variables have the same names as the options, with
304 # dashes changed to underlines.
312 program_transform_name=s,x,x,
320 # Installation directory options.
321 # These are left unexpanded so users can "make install exec_prefix=/foo"
322 # and all the variables that are supposed to be based on exec_prefix
323 # by default will actually change.
324 # Use braces instead of parens because sh, perl, etc. also accept them.
325 bindir='${exec_prefix}/bin'
326 sbindir='${exec_prefix}/sbin'
327 libexecdir='${exec_prefix}/libexec'
328 datadir='${prefix}/share'
329 sysconfdir='${prefix}/etc'
330 sharedstatedir='${prefix}/com'
331 localstatedir='${prefix}/var'
332 libdir='${exec_prefix}/lib'
333 includedir='${prefix}/include'
334 oldincludedir='/usr/include'
335 infodir='${prefix}/info'
336 mandir='${prefix}/man'
341 # If the previous option needs an argument, assign it.
342 if test -n "$ac_prev"; then
343 eval "$ac_prev=\$ac_option"
348 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
350 # Accept the important Cygnus configure options, so we can diagnose typos.
354 -bindir | --bindir | --bindi | --bind | --bin | --bi)
356 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
359 -build | --build | --buil | --bui | --bu)
360 ac_prev=build_alias ;;
361 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
362 build_alias=$ac_optarg ;;
364 -cache-file | --cache-file | --cache-fil | --cache-fi \
365 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
366 ac_prev=cache_file ;;
367 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
368 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
369 cache_file=$ac_optarg ;;
372 cache_file=config.cache ;;
374 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
376 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
378 datadir=$ac_optarg ;;
380 -disable-* | --disable-*)
381 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
382 # Reject names that are not valid shell variable names.
383 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
384 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
385 { (exit 1); exit 1; }; }
386 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
387 eval "enable_$ac_feature=no" ;;
389 -enable-* | --enable-*)
390 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
391 # Reject names that are not valid shell variable names.
392 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
393 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
394 { (exit 1); exit 1; }; }
395 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
397 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
400 eval "enable_$ac_feature='$ac_optarg'" ;;
402 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
403 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
404 | --exec | --exe | --ex)
405 ac_prev=exec_prefix ;;
406 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
407 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
408 | --exec=* | --exe=* | --ex=*)
409 exec_prefix=$ac_optarg ;;
411 -gas | --gas | --ga | --g)
412 # Obsolete; use --with-gas.
415 -help | --help | --hel | --he | -h)
417 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
418 ac_init_help=recursive ;;
419 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
420 ac_init_help=short ;;
422 -host | --host | --hos | --ho)
423 ac_prev=host_alias ;;
424 -host=* | --host=* | --hos=* | --ho=*)
425 host_alias=$ac_optarg ;;
427 -includedir | --includedir | --includedi | --included | --include \
428 | --includ | --inclu | --incl | --inc)
429 ac_prev=includedir ;;
430 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
431 | --includ=* | --inclu=* | --incl=* | --inc=*)
432 includedir=$ac_optarg ;;
434 -infodir | --infodir | --infodi | --infod | --info | --inf)
436 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
437 infodir=$ac_optarg ;;
439 -libdir | --libdir | --libdi | --libd)
441 -libdir=* | --libdir=* | --libdi=* | --libd=*)
444 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
445 | --libexe | --libex | --libe)
446 ac_prev=libexecdir ;;
447 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
448 | --libexe=* | --libex=* | --libe=*)
449 libexecdir=$ac_optarg ;;
451 -localstatedir | --localstatedir | --localstatedi | --localstated \
452 | --localstate | --localstat | --localsta | --localst \
453 | --locals | --local | --loca | --loc | --lo)
454 ac_prev=localstatedir ;;
455 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
456 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
457 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
458 localstatedir=$ac_optarg ;;
460 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
462 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
466 # Obsolete; use --without-fp.
469 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
470 | --no-cr | --no-c | -n)
473 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
474 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
477 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
478 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
479 | --oldin | --oldi | --old | --ol | --o)
480 ac_prev=oldincludedir ;;
481 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
482 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
483 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
484 oldincludedir=$ac_optarg ;;
486 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
488 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
491 -program-prefix | --program-prefix | --program-prefi | --program-pref \
492 | --program-pre | --program-pr | --program-p)
493 ac_prev=program_prefix ;;
494 -program-prefix=* | --program-prefix=* | --program-prefi=* \
495 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
496 program_prefix=$ac_optarg ;;
498 -program-suffix | --program-suffix | --program-suffi | --program-suff \
499 | --program-suf | --program-su | --program-s)
500 ac_prev=program_suffix ;;
501 -program-suffix=* | --program-suffix=* | --program-suffi=* \
502 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
503 program_suffix=$ac_optarg ;;
505 -program-transform-name | --program-transform-name \
506 | --program-transform-nam | --program-transform-na \
507 | --program-transform-n | --program-transform- \
508 | --program-transform | --program-transfor \
509 | --program-transfo | --program-transf \
510 | --program-trans | --program-tran \
511 | --progr-tra | --program-tr | --program-t)
512 ac_prev=program_transform_name ;;
513 -program-transform-name=* | --program-transform-name=* \
514 | --program-transform-nam=* | --program-transform-na=* \
515 | --program-transform-n=* | --program-transform-=* \
516 | --program-transform=* | --program-transfor=* \
517 | --program-transfo=* | --program-transf=* \
518 | --program-trans=* | --program-tran=* \
519 | --progr-tra=* | --program-tr=* | --program-t=*)
520 program_transform_name=$ac_optarg ;;
522 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
523 | -silent | --silent | --silen | --sile | --sil)
526 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
528 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
530 sbindir=$ac_optarg ;;
532 -sharedstatedir | --sharedstatedir | --sharedstatedi \
533 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
534 | --sharedst | --shareds | --shared | --share | --shar \
536 ac_prev=sharedstatedir ;;
537 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
538 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
539 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
541 sharedstatedir=$ac_optarg ;;
543 -site | --site | --sit)
545 -site=* | --site=* | --sit=*)
548 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
550 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
553 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
554 | --syscon | --sysco | --sysc | --sys | --sy)
555 ac_prev=sysconfdir ;;
556 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
557 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
558 sysconfdir=$ac_optarg ;;
560 -target | --target | --targe | --targ | --tar | --ta | --t)
561 ac_prev=target_alias ;;
562 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
563 target_alias=$ac_optarg ;;
565 -v | -verbose | --verbose | --verbos | --verbo | --verb)
568 -version | --version | --versio | --versi | --vers | -V)
572 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
573 # Reject names that are not valid shell variable names.
574 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
575 { echo "$as_me: error: invalid package name: $ac_package" >&2
576 { (exit 1); exit 1; }; }
577 ac_package=`echo $ac_package| sed 's/-/_/g'`
579 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
582 eval "with_$ac_package='$ac_optarg'" ;;
584 -without-* | --without-*)
585 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
586 # Reject names that are not valid shell variable names.
587 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
588 { echo "$as_me: error: invalid package name: $ac_package" >&2
589 { (exit 1); exit 1; }; }
590 ac_package=`echo $ac_package | sed 's/-/_/g'`
591 eval "with_$ac_package=no" ;;
594 # Obsolete; use --with-x.
597 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
598 | --x-incl | --x-inc | --x-in | --x-i)
599 ac_prev=x_includes ;;
600 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
601 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
602 x_includes=$ac_optarg ;;
604 -x-libraries | --x-libraries | --x-librarie | --x-librari \
605 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
606 ac_prev=x_libraries ;;
607 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
608 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
609 x_libraries=$ac_optarg ;;
611 -*) { echo "$as_me: error: unrecognized option: $ac_option
612 Try \`$0 --help' for more information." >&2
613 { (exit 1); exit 1; }; }
617 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
618 # Reject names that are not valid shell variable names.
619 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
620 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
621 { (exit 1); exit 1; }; }
622 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
623 eval "$ac_envvar='$ac_optarg'"
627 # FIXME: should be removed in autoconf 3.0.
628 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
629 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
630 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
631 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
637 if test -n "$ac_prev"; then
638 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
639 { echo "$as_me: error: missing argument to $ac_option" >&2
640 { (exit 1); exit 1; }; }
643 # Be sure to have absolute paths.
644 for ac_var in exec_prefix prefix
646 eval ac_val=$`echo $ac_var`
648 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
649 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
650 { (exit 1); exit 1; }; };;
654 # Be sure to have absolute paths.
655 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
656 localstatedir libdir includedir oldincludedir infodir mandir
658 eval ac_val=$`echo $ac_var`
660 [\\/$]* | ?:[\\/]* ) ;;
661 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
662 { (exit 1); exit 1; }; };;
666 # There might be people who depend on the old broken behavior: `$host'
667 # used to hold the argument of --host etc.
668 # FIXME: To remove some day.
673 # FIXME: To remove some day.
674 if test "x$host_alias" != x; then
675 if test "x$build_alias" = x; then
676 cross_compiling=maybe
677 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
678 If a cross compiler is detected then cross compile mode will be used." >&2
679 elif test "x$build_alias" != "x$host_alias"; then
685 test -n "$host_alias" && ac_tool_prefix=$host_alias-
687 test "$silent" = yes && exec 6>/dev/null
690 # Find the source files, if location was not specified.
691 if test -z "$srcdir"; then
692 ac_srcdir_defaulted=yes
693 # Try the directory containing this script, then its parent.
694 ac_confdir=`(dirname "$0") 2>/dev/null ||
695 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
696 X"$0" : 'X\(//\)[^/]' \| \
697 X"$0" : 'X\(//\)$' \| \
698 X"$0" : 'X\(/\)' \| \
699 . : '\(.\)' 2>/dev/null ||
701 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
702 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
703 /^X\(\/\/\)$/{ s//\1/; q; }
704 /^X\(\/\).*/{ s//\1/; q; }
707 if test ! -r $srcdir/$ac_unique_file; then
711 ac_srcdir_defaulted=no
713 if test ! -r $srcdir/$ac_unique_file; then
714 if test "$ac_srcdir_defaulted" = yes; then
715 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
716 { (exit 1); exit 1; }; }
718 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
719 { (exit 1); exit 1; }; }
722 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
723 ac_env_build_alias_set=${build_alias+set}
724 ac_env_build_alias_value=$build_alias
725 ac_cv_env_build_alias_set=${build_alias+set}
726 ac_cv_env_build_alias_value=$build_alias
727 ac_env_host_alias_set=${host_alias+set}
728 ac_env_host_alias_value=$host_alias
729 ac_cv_env_host_alias_set=${host_alias+set}
730 ac_cv_env_host_alias_value=$host_alias
731 ac_env_target_alias_set=${target_alias+set}
732 ac_env_target_alias_value=$target_alias
733 ac_cv_env_target_alias_set=${target_alias+set}
734 ac_cv_env_target_alias_value=$target_alias
735 ac_env_CC_set=${CC+set}
737 ac_cv_env_CC_set=${CC+set}
738 ac_cv_env_CC_value=$CC
739 ac_env_CFLAGS_set=${CFLAGS+set}
740 ac_env_CFLAGS_value=$CFLAGS
741 ac_cv_env_CFLAGS_set=${CFLAGS+set}
742 ac_cv_env_CFLAGS_value=$CFLAGS
743 ac_env_LDFLAGS_set=${LDFLAGS+set}
744 ac_env_LDFLAGS_value=$LDFLAGS
745 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
746 ac_cv_env_LDFLAGS_value=$LDFLAGS
747 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
748 ac_env_CPPFLAGS_value=$CPPFLAGS
749 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
750 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
751 ac_env_CPP_set=${CPP+set}
752 ac_env_CPP_value=$CPP
753 ac_cv_env_CPP_set=${CPP+set}
754 ac_cv_env_CPP_value=$CPP
757 # Report the --help message.
759 if test "$ac_init_help" = "long"; then
760 # Omit some internal or obsolete options to make the list less imposing.
761 # This message is too long to be a string in the A/UX 3.1 sh.
763 \`configure' configures libfirm 0.3.0 to adapt to many kinds of systems.
765 Usage: $0 [OPTION]... [VAR=VALUE]...
767 To assign environment variables (e.g., CC, CFLAGS...), specify them as
768 VAR=VALUE. See below for descriptions of some of the useful variables.
770 Defaults for the options are specified in brackets.
773 -h, --help display this help and exit
774 --help=short display options specific to this package
775 --help=recursive display the short help of all the included packages
776 -V, --version display version information and exit
777 -q, --quiet, --silent do not print \`checking...' messages
778 --cache-file=FILE cache test results in FILE [disabled]
779 -C, --config-cache alias for \`--cache-file=config.cache'
780 -n, --no-create do not create output files
781 --srcdir=DIR find the sources in DIR [configure dir or \`..']
786 Installation directories:
787 --prefix=PREFIX install architecture-independent files in PREFIX
789 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
792 By default, \`make install' will install all the files in
793 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
794 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
795 for instance \`--prefix=\$HOME'.
797 For better control, use the options below.
799 Fine tuning of the installation directories:
800 --bindir=DIR user executables [EPREFIX/bin]
801 --sbindir=DIR system admin executables [EPREFIX/sbin]
802 --libexecdir=DIR program executables [EPREFIX/libexec]
803 --datadir=DIR read-only architecture-independent data [PREFIX/share]
804 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
805 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
806 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
807 --libdir=DIR object code libraries [EPREFIX/lib]
808 --includedir=DIR C header files [PREFIX/include]
809 --oldincludedir=DIR C header files for non-gcc [/usr/include]
810 --infodir=DIR info documentation [PREFIX/info]
811 --mandir=DIR man documentation [PREFIX/man]
818 if test -n "$ac_init_help"; then
819 case $ac_init_help in
820 short | recursive ) echo "Configuration of libfirm 0.3.0:";;
825 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
826 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
827 --enable-debug enable assertions and additional debugging routines
828 --disable-inlining disable inline C-extension
829 --enable-profile enable profiling
830 --enable-autodoc enable auto documentation
831 --enable-firmjni check for tools necesarry to construct a java native interface for Firm
832 --enable-heapanalysis Compile with heap analysis.
833 --enable-backend Compile with backend facility.
834 --disable-libiberty disable own libiberty parts
835 --disable-hooks disable Firm hooks
836 --enable-statistics enable Firm statistics
837 --enable-libcore enable libcore debugging
838 --disable-external-effects disable descriptions of external effects in XML
841 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
842 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
843 --with-includedir=add colon seperated list of directories to include search path
844 --with-libdir=add colon seperated list of directories to linker search path
845 --with-libxml2=installation prefix of libxml2 (IPD: --with-libxml2=/usr/public/libxml2)
847 Some influential environment variables:
848 CC C compiler command
849 CFLAGS C compiler flags
850 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
851 nonstandard directory <lib dir>
852 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
853 headers in a nonstandard directory <include dir>
856 Use these variables to override the choices made by `configure' or to help
857 it to find libraries and programs with nonstandard names/locations.
862 if test "$ac_init_help" = "recursive"; then
863 # If there are subdirs, report their specific --help.
865 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
866 test -d $ac_dir || continue
869 if test "$ac_dir" != .; then
870 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
871 # A "../" for each directory in $ac_dir_suffix.
872 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
874 ac_dir_suffix= ac_top_builddir=
878 .) # No --srcdir option. We are building in place.
880 if test -z "$ac_top_builddir"; then
883 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
885 [\\/]* | ?:[\\/]* ) # Absolute path.
886 ac_srcdir=$srcdir$ac_dir_suffix;
887 ac_top_srcdir=$srcdir ;;
889 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
890 ac_top_srcdir=$ac_top_builddir$srcdir ;;
892 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
894 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
895 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
896 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
897 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
900 # Check for guested configure; otherwise get Cygnus style configure.
901 if test -f $ac_srcdir/configure.gnu; then
903 $SHELL $ac_srcdir/configure.gnu --help=recursive
904 elif test -f $ac_srcdir/configure; then
906 $SHELL $ac_srcdir/configure --help=recursive
907 elif test -f $ac_srcdir/configure.ac ||
908 test -f $ac_srcdir/configure.in; then
912 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
918 test -n "$ac_init_help" && exit 0
919 if $ac_init_version; then
921 libfirm configure 0.3.0
922 generated by GNU Autoconf 2.53
924 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
925 Free Software Foundation, Inc.
926 This configure script is free software; the Free Software Foundation
927 gives unlimited permission to copy, distribute and modify it.
933 This file contains any messages produced by compilers while
934 running configure, to aid debugging if configure makes a mistake.
936 It was created by libfirm $as_me 0.3.0, which was
937 generated by GNU Autoconf 2.53. Invocation command line was
948 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
949 uname -m = `(uname -m) 2>/dev/null || echo unknown`
950 uname -r = `(uname -r) 2>/dev/null || echo unknown`
951 uname -s = `(uname -s) 2>/dev/null || echo unknown`
952 uname -v = `(uname -v) 2>/dev/null || echo unknown`
954 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
955 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
957 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
958 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
959 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
960 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
961 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
962 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
963 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
971 test -z "$as_dir" && as_dir=.
987 # Keep a trace of the command line.
988 # Strip out --no-create and --no-recursion so they do not pile up.
989 # Also quote any args containing shell meta-characters.
995 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
996 | --no-cr | --no-c | -n ) continue ;;
997 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
998 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1000 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1001 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1003 case " $ac_configure_args " in
1004 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1005 *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1008 # Get rid of the leading space.
1011 # When interrupted or exit'd, cleanup temporary files, and complete
1012 # config.log. We remove comments because anyway the quotes in there
1013 # would cause problems or look ugly.
1014 # WARNING: Be sure not to use single quotes in there, as some shells,
1015 # such as our DU 5.0 friend, will then `close' the trap.
1016 trap 'exit_status=$?
1017 # Save into config.log some information that might help in debugging.
1021 ## ---------------- ##
1022 ## Cache variables. ##
1023 ## ---------------- ##
1026 # The following way of writing the cache mishandles newlines in values,
1029 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1032 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1033 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1037 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1042 if test -s confdefs.h; then
1049 sed "/^$/d" confdefs.h
1052 test "$ac_signal" != 0 &&
1053 echo "$as_me: caught signal $ac_signal"
1054 echo "$as_me: exit $exit_status"
1056 rm -f core core.* *.core &&
1057 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1060 for ac_signal in 1 2 13 15; do
1061 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1065 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1066 rm -rf conftest* confdefs.h
1067 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1070 # Predefined preprocessor variables.
1072 cat >>confdefs.h <<_ACEOF
1073 #define PACKAGE_NAME "$PACKAGE_NAME"
1077 cat >>confdefs.h <<_ACEOF
1078 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1082 cat >>confdefs.h <<_ACEOF
1083 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1087 cat >>confdefs.h <<_ACEOF
1088 #define PACKAGE_STRING "$PACKAGE_STRING"
1092 cat >>confdefs.h <<_ACEOF
1093 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1097 # Let the site file select an alternate cache file if it wants to.
1098 # Prefer explicitly selected file to automatically selected ones.
1099 if test -z "$CONFIG_SITE"; then
1100 if test "x$prefix" != xNONE; then
1101 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1103 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1106 for ac_site_file in $CONFIG_SITE; do
1107 if test -r "$ac_site_file"; then
1108 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1109 echo "$as_me: loading site script $ac_site_file" >&6;}
1110 sed 's/^/| /' "$ac_site_file" >&5
1115 if test -r "$cache_file"; then
1116 # Some versions of bash will fail to source /dev/null (special
1117 # files actually), so we avoid doing that.
1118 if test -f "$cache_file"; then
1119 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1120 echo "$as_me: loading cache $cache_file" >&6;}
1122 [\\/]* | ?:[\\/]* ) . $cache_file;;
1123 *) . ./$cache_file;;
1127 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1128 echo "$as_me: creating cache $cache_file" >&6;}
1132 # Check that the precious variables saved in the cache have kept the same
1134 ac_cache_corrupted=false
1135 for ac_var in `(set) 2>&1 |
1136 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1137 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1138 eval ac_new_set=\$ac_env_${ac_var}_set
1139 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1140 eval ac_new_val="\$ac_env_${ac_var}_value"
1141 case $ac_old_set,$ac_new_set in
1143 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1144 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1145 ac_cache_corrupted=: ;;
1147 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1148 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1149 ac_cache_corrupted=: ;;
1152 if test "x$ac_old_val" != "x$ac_new_val"; then
1153 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1154 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1155 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1156 echo "$as_me: former value: $ac_old_val" >&2;}
1157 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1158 echo "$as_me: current value: $ac_new_val" >&2;}
1159 ac_cache_corrupted=:
1162 # Pass precious variables to config.status.
1163 if test "$ac_new_set" = set; then
1165 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1166 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1167 *) ac_arg=$ac_var=$ac_new_val ;;
1169 case " $ac_configure_args " in
1170 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1171 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1175 if $ac_cache_corrupted; then
1176 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1177 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1178 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1179 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1180 { (exit 1); exit 1; }; }
1184 ac_cpp='$CPP $CPPFLAGS'
1185 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1186 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1187 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1215 ac_output_file="Makefile MakeRules ir/Makefile ir/adt/Makefile ir/debug/Makefile \
1216 ir/tv/Makefile ir/common/Makefile ir/ident/Makefile ir/ir/Makefile \
1217 ir/ana/Makefile ir/tr/Makefile ir/ana2/Makefile ir/stat/Makefile \
1218 ir/opt/Makefile ir/external/Makefile ir/config/Makefile \
1219 testprograms/Makefile firmjni/Makefile firmjni/testprograms/Makefile \
1223 ac_config_headers="$ac_config_headers config.h"
1226 libfirm_conf_env="${CC+CC='$CC'} ${CFLAGS+CFLAGS='$CFLAGS'} ${CPP+CPP='$CPP'} ${CPPFLAGS+CPPFLAGS='$CPPFLAGS'} ${LDFLAGS+LDFLAGS='$LDFLAGS'} ${LIBS+LIBS='$LIBS'}"
1229 CONF_DIR_NAME=`dirname $0`
1232 # Check whether --with-includedir or --without-includedir was given.
1233 if test "${with_includedir+set}" = set; then
1234 withval="$with_includedir"
1235 CPPFLAGS=$CPPFLAGS" -I"`echo $withval|sed 's;\:; -I;g'`
1239 # Check whether --with-libdir or --without-libdir was given.
1240 if test "${with_libdir+set}" = set; then
1241 withval="$with_libdir"
1242 LDFLAGS=$LDFLAGS" -L"`echo $withval|sed 's;\:; -L;g'`
1246 # Check whether --with-libxml2 or --without-libxml2 was given.
1247 if test "${with_libxml2+set}" = set; then
1248 withval="$with_libxml2"
1249 LDFLAGS=$LDFLAGS" -L"$withval"/lib";
1250 CPPFLAGS=$CPPFLAGS" -I"$withval"/include/libxml2"
1254 # Check whether --enable-debug or --disable-debug was given.
1255 if test "${enable_debug+set}" = set; then
1256 enableval="$enable_debug"
1257 if test "$enableval" = yes; then
1258 cat >>confdefs.h <<\_ACEOF
1259 #define DEBUG_libfirm 1
1263 cat >>confdefs.h <<\_ACEOF
1271 # Check whether --enable-inlining or --disable-inlining was given.
1272 if test "${enable_inlining+set}" = set; then
1273 enableval="$enable_inlining"
1274 if test "$enableval" = yes; then
1275 cat >>confdefs.h <<\_ACEOF
1276 #define USE_INLINING 1
1281 cat >>confdefs.h <<\_ACEOF
1282 #define USE_INLINING 1
1288 # Check whether --enable-profile or --disable-profile was given.
1289 if test "${enable_profile+set}" = set; then
1290 enableval="$enable_profile"
1291 if test "$enableval"=yes; then
1292 enable_profile_libfirm=yes
1295 enable_profile_libfirm=no
1299 # Check whether --enable-autodoc or --disable-autodoc was given.
1300 if test "${enable_autodoc+set}" = set; then
1301 enableval="$enable_autodoc"
1302 if test "$enableval"=yes; then
1303 enable_auto_documentation=yes
1306 enable_auto_documentation=no
1311 # Check whether --enable-firmjni or --disable-firmjni was given.
1312 if test "${enable_firmjni+set}" = set; then
1313 enableval="$enable_firmjni"
1314 if test "$enableval"=yes; then
1322 echo "$as_me:$LINENO: checking for heapanalysis" >&5
1323 echo $ECHO_N "checking for heapanalysis... $ECHO_C" >&6
1324 # Check whether --enable-heapanalysis or --disable-heapanalysis was given.
1325 if test "${enable_heapanalysis+set}" = set; then
1326 enableval="$enable_heapanalysis"
1327 enable_heapanalysis=$enableval
1329 enable_heapanalysis="no"
1331 if test "$enable_heapanalysis" = "no"; then
1332 echo "$as_me:$LINENO: result: disabled" >&5
1333 echo "${ECHO_T}disabled" >&6
1335 cat >>confdefs.h <<\_ACEOF
1336 #define DO_HEAPANALYSIS 1
1339 echo "$as_me:$LINENO: result: enabled" >&5
1340 echo "${ECHO_T}enabled" >&6
1344 # Check whether --enable-backend or --disable-backend was given.
1345 if test "${enable_backend+set}" = set; then
1346 enableval="$enable_backend"
1347 if test "$enableval" = "yes"; then
1348 cat >>confdefs.h <<\_ACEOF
1349 #define FIRM_BACKEND 1
1354 enable_backend="yes"
1358 # Check whether --enable-libiberty or --disable-libiberty was given.
1359 if test "${enable_libiberty+set}" = set; then
1360 enableval="$enable_libiberty"
1361 if test "$enableval"=yes; then
1362 disable_libiberty=yes
1365 disable_libiberty=no
1369 # Check whether --enable-hooks or --disable-hooks was given.
1370 if test "${enable_hooks+set}" = set; then
1371 enableval="$enable_hooks"
1372 if test "$enableval" = yes; then
1373 cat >>confdefs.h <<\_ACEOF
1374 #define FIRM_ENABLE_HOOKS 1
1379 cat >>confdefs.h <<\_ACEOF
1380 #define FIRM_ENABLE_HOOKS 1
1386 # Check whether --enable-statistics or --disable-statistics was given.
1387 if test "${enable_statistics+set}" = set; then
1388 enableval="$enable_statistics"
1389 if test "$enableval"=yes; then
1390 cat >>confdefs.h <<\_ACEOF
1391 #define FIRM_STATISTICS 1
1398 # Check whether --enable-libcore or --disable-libcore was given.
1399 if test "${enable_libcore+set}" = set; then
1400 enableval="$enable_libcore"
1401 if test "$enableval"=yes; then
1402 cat >>confdefs.h <<\_ACEOF
1403 #define WITH_LIBCORE 1
1410 echo "$as_me:$LINENO: checking for using external effects in xml2" >&5
1411 echo $ECHO_N "checking for using external effects in xml2... $ECHO_C" >&6
1412 # Check whether --enable-external-effects or --disable-external-effects was given.
1413 if test "${enable_external_effects+set}" = set; then
1414 enableval="$enable_external_effects"
1415 if test "$enableval"="no"; then
1416 enable_external_effects=no
1419 enable_external_effects=yes
1422 if test "$enable_external_effects" == no; then
1423 echo "$as_me:$LINENO: result: disabled" >&5
1424 echo "${ECHO_T}disabled" >&6
1426 echo "$as_me:$LINENO: result: enabled" >&5
1427 echo "${ECHO_T}enabled" >&6
1432 ac_cpp='$CPP $CPPFLAGS'
1433 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1434 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1435 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1436 if test -n "$ac_tool_prefix"; then
1437 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1438 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1439 echo "$as_me:$LINENO: checking for $ac_word" >&5
1440 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1441 if test "${ac_cv_prog_CC+set}" = set; then
1442 echo $ECHO_N "(cached) $ECHO_C" >&6
1444 if test -n "$CC"; then
1445 ac_cv_prog_CC="$CC" # Let the user override the test.
1447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1451 test -z "$as_dir" && as_dir=.
1452 for ac_exec_ext in '' $ac_executable_extensions; do
1453 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1454 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1455 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1464 if test -n "$CC"; then
1465 echo "$as_me:$LINENO: result: $CC" >&5
1466 echo "${ECHO_T}$CC" >&6
1468 echo "$as_me:$LINENO: result: no" >&5
1469 echo "${ECHO_T}no" >&6
1473 if test -z "$ac_cv_prog_CC"; then
1475 # Extract the first word of "gcc", so it can be a program name with args.
1476 set dummy gcc; ac_word=$2
1477 echo "$as_me:$LINENO: checking for $ac_word" >&5
1478 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1479 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1480 echo $ECHO_N "(cached) $ECHO_C" >&6
1482 if test -n "$ac_ct_CC"; then
1483 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1489 test -z "$as_dir" && as_dir=.
1490 for ac_exec_ext in '' $ac_executable_extensions; do
1491 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1492 ac_cv_prog_ac_ct_CC="gcc"
1493 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1501 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1502 if test -n "$ac_ct_CC"; then
1503 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1504 echo "${ECHO_T}$ac_ct_CC" >&6
1506 echo "$as_me:$LINENO: result: no" >&5
1507 echo "${ECHO_T}no" >&6
1515 if test -z "$CC"; then
1516 if test -n "$ac_tool_prefix"; then
1517 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1518 set dummy ${ac_tool_prefix}cc; ac_word=$2
1519 echo "$as_me:$LINENO: checking for $ac_word" >&5
1520 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1521 if test "${ac_cv_prog_CC+set}" = set; then
1522 echo $ECHO_N "(cached) $ECHO_C" >&6
1524 if test -n "$CC"; then
1525 ac_cv_prog_CC="$CC" # Let the user override the test.
1527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1531 test -z "$as_dir" && as_dir=.
1532 for ac_exec_ext in '' $ac_executable_extensions; do
1533 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1534 ac_cv_prog_CC="${ac_tool_prefix}cc"
1535 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1544 if test -n "$CC"; then
1545 echo "$as_me:$LINENO: result: $CC" >&5
1546 echo "${ECHO_T}$CC" >&6
1548 echo "$as_me:$LINENO: result: no" >&5
1549 echo "${ECHO_T}no" >&6
1553 if test -z "$ac_cv_prog_CC"; then
1555 # Extract the first word of "cc", so it can be a program name with args.
1556 set dummy cc; ac_word=$2
1557 echo "$as_me:$LINENO: checking for $ac_word" >&5
1558 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1559 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1560 echo $ECHO_N "(cached) $ECHO_C" >&6
1562 if test -n "$ac_ct_CC"; then
1563 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1569 test -z "$as_dir" && as_dir=.
1570 for ac_exec_ext in '' $ac_executable_extensions; do
1571 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1572 ac_cv_prog_ac_ct_CC="cc"
1573 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1581 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1582 if test -n "$ac_ct_CC"; then
1583 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1584 echo "${ECHO_T}$ac_ct_CC" >&6
1586 echo "$as_me:$LINENO: result: no" >&5
1587 echo "${ECHO_T}no" >&6
1596 if test -z "$CC"; then
1597 # Extract the first word of "cc", so it can be a program name with args.
1598 set dummy cc; ac_word=$2
1599 echo "$as_me:$LINENO: checking for $ac_word" >&5
1600 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1601 if test "${ac_cv_prog_CC+set}" = set; then
1602 echo $ECHO_N "(cached) $ECHO_C" >&6
1604 if test -n "$CC"; then
1605 ac_cv_prog_CC="$CC" # Let the user override the test.
1608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1612 test -z "$as_dir" && as_dir=.
1613 for ac_exec_ext in '' $ac_executable_extensions; do
1614 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1615 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1616 ac_prog_rejected=yes
1620 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1626 if test $ac_prog_rejected = yes; then
1627 # We found a bogon in the path, so make sure we never use it.
1628 set dummy $ac_cv_prog_CC
1630 if test $# != 0; then
1631 # We chose a different compiler from the bogus one.
1632 # However, it has the same basename, so the bogon will be chosen
1633 # first if we set CC to just the basename; use the full file name.
1635 set dummy "$as_dir/$ac_word" ${1+"$@"}
1643 if test -n "$CC"; then
1644 echo "$as_me:$LINENO: result: $CC" >&5
1645 echo "${ECHO_T}$CC" >&6
1647 echo "$as_me:$LINENO: result: no" >&5
1648 echo "${ECHO_T}no" >&6
1652 if test -z "$CC"; then
1653 if test -n "$ac_tool_prefix"; then
1656 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1657 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1658 echo "$as_me:$LINENO: checking for $ac_word" >&5
1659 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1660 if test "${ac_cv_prog_CC+set}" = set; then
1661 echo $ECHO_N "(cached) $ECHO_C" >&6
1663 if test -n "$CC"; then
1664 ac_cv_prog_CC="$CC" # Let the user override the test.
1666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1670 test -z "$as_dir" && as_dir=.
1671 for ac_exec_ext in '' $ac_executable_extensions; do
1672 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1673 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1674 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1683 if test -n "$CC"; then
1684 echo "$as_me:$LINENO: result: $CC" >&5
1685 echo "${ECHO_T}$CC" >&6
1687 echo "$as_me:$LINENO: result: no" >&5
1688 echo "${ECHO_T}no" >&6
1691 test -n "$CC" && break
1694 if test -z "$CC"; then
1698 # Extract the first word of "$ac_prog", so it can be a program name with args.
1699 set dummy $ac_prog; ac_word=$2
1700 echo "$as_me:$LINENO: checking for $ac_word" >&5
1701 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1702 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1703 echo $ECHO_N "(cached) $ECHO_C" >&6
1705 if test -n "$ac_ct_CC"; then
1706 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1712 test -z "$as_dir" && as_dir=.
1713 for ac_exec_ext in '' $ac_executable_extensions; do
1714 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1715 ac_cv_prog_ac_ct_CC="$ac_prog"
1716 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1724 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1725 if test -n "$ac_ct_CC"; then
1726 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1727 echo "${ECHO_T}$ac_ct_CC" >&6
1729 echo "$as_me:$LINENO: result: no" >&5
1730 echo "${ECHO_T}no" >&6
1733 test -n "$ac_ct_CC" && break
1742 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
1743 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
1744 { (exit 1); exit 1; }; }
1746 # Provide some information about the compiler.
1747 echo "$as_me:$LINENO:" \
1748 "checking for C compiler version" >&5
1749 ac_compiler=`set X $ac_compile; echo $2`
1750 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1751 (eval $ac_compiler --version </dev/null >&5) 2>&5
1753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1754 (exit $ac_status); }
1755 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1756 (eval $ac_compiler -v </dev/null >&5) 2>&5
1758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1759 (exit $ac_status); }
1760 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1761 (eval $ac_compiler -V </dev/null >&5) 2>&5
1763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1764 (exit $ac_status); }
1766 cat >conftest.$ac_ext <<_ACEOF
1767 #line $LINENO "configure"
1768 #include "confdefs.h"
1770 #ifdef F77_DUMMY_MAIN
1774 int F77_DUMMY_MAIN() { return 1; }
1784 ac_clean_files_save=$ac_clean_files
1785 ac_clean_files="$ac_clean_files a.out a.exe"
1786 # Try to create an executable without -o first, disregard a.out.
1787 # It will help us diagnose broken compilers, and finding out an intuition
1789 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1790 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1791 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1792 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1793 (eval $ac_link_default) 2>&5
1795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1796 (exit $ac_status); }; then
1797 # Find the output, starting from the most likely. This scheme is
1798 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1801 # Be careful to initialize this variable, since it used to be cached.
1802 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1804 for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
1805 ls a.out conftest 2>/dev/null;
1806 ls a.* conftest.* 2>/dev/null`; do
1808 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
1809 a.out ) # We found the default executable, but exeext='' is most
1812 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1813 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1820 echo "$as_me: failed program was:" >&5
1821 cat conftest.$ac_ext >&5
1822 { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
1823 echo "$as_me: error: C compiler cannot create executables" >&2;}
1824 { (exit 77); exit 77; }; }
1827 ac_exeext=$ac_cv_exeext
1828 echo "$as_me:$LINENO: result: $ac_file" >&5
1829 echo "${ECHO_T}$ac_file" >&6
1831 # Check the compiler produces executables we can run. If not, either
1832 # the compiler is broken, or we cross compile.
1833 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1834 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1835 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1836 # If not cross compiling, check that we can run a simple program.
1837 if test "$cross_compiling" != yes; then
1838 if { ac_try='./$ac_file'
1839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1843 (exit $ac_status); }; }; then
1846 if test "$cross_compiling" = maybe; then
1849 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1850 If you meant to cross compile, use \`--host'." >&5
1851 echo "$as_me: error: cannot run C compiled programs.
1852 If you meant to cross compile, use \`--host'." >&2;}
1853 { (exit 1); exit 1; }; }
1857 echo "$as_me:$LINENO: result: yes" >&5
1858 echo "${ECHO_T}yes" >&6
1860 rm -f a.out a.exe conftest$ac_cv_exeext
1861 ac_clean_files=$ac_clean_files_save
1862 # Check the compiler produces executables we can run. If not, either
1863 # the compiler is broken, or we cross compile.
1864 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1865 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1866 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1867 echo "${ECHO_T}$cross_compiling" >&6
1869 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1870 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1871 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1872 (eval $ac_link) 2>&5
1874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1875 (exit $ac_status); }; then
1876 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1877 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1878 # work properly (i.e., refer to `conftest.exe'), while it won't with
1880 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1882 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1883 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1890 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
1891 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
1892 { (exit 1); exit 1; }; }
1895 rm -f conftest$ac_cv_exeext
1896 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1897 echo "${ECHO_T}$ac_cv_exeext" >&6
1899 rm -f conftest.$ac_ext
1900 EXEEXT=$ac_cv_exeext
1902 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1903 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1904 if test "${ac_cv_objext+set}" = set; then
1905 echo $ECHO_N "(cached) $ECHO_C" >&6
1907 cat >conftest.$ac_ext <<_ACEOF
1908 #line $LINENO "configure"
1909 #include "confdefs.h"
1911 #ifdef F77_DUMMY_MAIN
1915 int F77_DUMMY_MAIN() { return 1; }
1925 rm -f conftest.o conftest.obj
1926 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1927 (eval $ac_compile) 2>&5
1929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1930 (exit $ac_status); }; then
1931 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1933 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
1934 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1939 echo "$as_me: failed program was:" >&5
1940 cat conftest.$ac_ext >&5
1941 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
1942 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
1943 { (exit 1); exit 1; }; }
1946 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1948 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1949 echo "${ECHO_T}$ac_cv_objext" >&6
1950 OBJEXT=$ac_cv_objext
1952 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1953 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1954 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1955 echo $ECHO_N "(cached) $ECHO_C" >&6
1957 cat >conftest.$ac_ext <<_ACEOF
1958 #line $LINENO "configure"
1959 #include "confdefs.h"
1961 #ifdef F77_DUMMY_MAIN
1965 int F77_DUMMY_MAIN() { return 1; }
1978 rm -f conftest.$ac_objext
1979 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1980 (eval $ac_compile) 2>&5
1982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1983 (exit $ac_status); } &&
1984 { ac_try='test -s conftest.$ac_objext'
1985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1989 (exit $ac_status); }; }; then
1992 echo "$as_me: failed program was:" >&5
1993 cat conftest.$ac_ext >&5
1996 rm -f conftest.$ac_objext conftest.$ac_ext
1997 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2000 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2001 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2002 GCC=`test $ac_compiler_gnu = yes && echo yes`
2003 ac_test_CFLAGS=${CFLAGS+set}
2004 ac_save_CFLAGS=$CFLAGS
2006 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2007 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2008 if test "${ac_cv_prog_cc_g+set}" = set; then
2009 echo $ECHO_N "(cached) $ECHO_C" >&6
2011 cat >conftest.$ac_ext <<_ACEOF
2012 #line $LINENO "configure"
2013 #include "confdefs.h"
2015 #ifdef F77_DUMMY_MAIN
2019 int F77_DUMMY_MAIN() { return 1; }
2029 rm -f conftest.$ac_objext
2030 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2031 (eval $ac_compile) 2>&5
2033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2034 (exit $ac_status); } &&
2035 { ac_try='test -s conftest.$ac_objext'
2036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2040 (exit $ac_status); }; }; then
2043 echo "$as_me: failed program was:" >&5
2044 cat conftest.$ac_ext >&5
2047 rm -f conftest.$ac_objext conftest.$ac_ext
2049 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2050 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2051 if test "$ac_test_CFLAGS" = set; then
2052 CFLAGS=$ac_save_CFLAGS
2053 elif test $ac_cv_prog_cc_g = yes; then
2054 if test "$GCC" = yes; then
2060 if test "$GCC" = yes; then
2066 # Some people use a C++ compiler to compile C. Since we use `exit',
2067 # in C++ we need to declare it. In case someone uses the same compiler
2068 # for both compiling C and C++ we need to have the C++ compiler decide
2069 # the declaration of exit, since it's the most demanding environment.
2070 cat >conftest.$ac_ext <<_ACEOF
2075 rm -f conftest.$ac_objext
2076 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2077 (eval $ac_compile) 2>&5
2079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2080 (exit $ac_status); } &&
2081 { ac_try='test -s conftest.$ac_objext'
2082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2086 (exit $ac_status); }; }; then
2087 for ac_declaration in \
2089 '#include <stdlib.h>' \
2090 'extern "C" void std::exit (int) throw (); using std::exit;' \
2091 'extern "C" void std::exit (int); using std::exit;' \
2092 'extern "C" void exit (int) throw ();' \
2093 'extern "C" void exit (int);' \
2096 cat >conftest.$ac_ext <<_ACEOF
2097 #line $LINENO "configure"
2098 #include "confdefs.h"
2101 #ifdef F77_DUMMY_MAIN
2105 int F77_DUMMY_MAIN() { return 1; }
2115 rm -f conftest.$ac_objext
2116 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2117 (eval $ac_compile) 2>&5
2119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2120 (exit $ac_status); } &&
2121 { ac_try='test -s conftest.$ac_objext'
2122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2126 (exit $ac_status); }; }; then
2129 echo "$as_me: failed program was:" >&5
2130 cat conftest.$ac_ext >&5
2133 rm -f conftest.$ac_objext conftest.$ac_ext
2134 cat >conftest.$ac_ext <<_ACEOF
2135 #line $LINENO "configure"
2136 #include "confdefs.h"
2138 #ifdef F77_DUMMY_MAIN
2142 int F77_DUMMY_MAIN() { return 1; }
2152 rm -f conftest.$ac_objext
2153 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2154 (eval $ac_compile) 2>&5
2156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2157 (exit $ac_status); } &&
2158 { ac_try='test -s conftest.$ac_objext'
2159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2163 (exit $ac_status); }; }; then
2166 echo "$as_me: failed program was:" >&5
2167 cat conftest.$ac_ext >&5
2169 rm -f conftest.$ac_objext conftest.$ac_ext
2172 if test -n "$ac_declaration"; then
2173 echo '#ifdef __cplusplus' >>confdefs.h
2174 echo $ac_declaration >>confdefs.h
2175 echo '#endif' >>confdefs.h
2179 echo "$as_me: failed program was:" >&5
2180 cat conftest.$ac_ext >&5
2182 rm -f conftest.$ac_objext conftest.$ac_ext
2184 ac_cpp='$CPP $CPPFLAGS'
2185 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2186 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2187 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2191 if test -z "$LD"; then
2192 if test -n "$ac_tool_prefix"; then
2193 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
2194 set dummy ${ac_tool_prefix}ld; ac_word=$2
2195 echo "$as_me:$LINENO: checking for $ac_word" >&5
2196 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2197 if test "${ac_cv_prog_LD+set}" = set; then
2198 echo $ECHO_N "(cached) $ECHO_C" >&6
2200 if test -n "$LD"; then
2201 ac_cv_prog_LD="$LD" # Let the user override the test.
2203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2207 test -z "$as_dir" && as_dir=.
2208 for ac_exec_ext in '' $ac_executable_extensions; do
2209 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2210 ac_cv_prog_LD="${ac_tool_prefix}ld"
2211 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2220 if test -n "$LD"; then
2221 echo "$as_me:$LINENO: result: $LD" >&5
2222 echo "${ECHO_T}$LD" >&6
2224 echo "$as_me:$LINENO: result: no" >&5
2225 echo "${ECHO_T}no" >&6
2229 if test -z "$ac_cv_prog_LD"; then
2231 # Extract the first word of "ld", so it can be a program name with args.
2232 set dummy ld; ac_word=$2
2233 echo "$as_me:$LINENO: checking for $ac_word" >&5
2234 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2235 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
2236 echo $ECHO_N "(cached) $ECHO_C" >&6
2238 if test -n "$ac_ct_LD"; then
2239 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
2241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2245 test -z "$as_dir" && as_dir=.
2246 for ac_exec_ext in '' $ac_executable_extensions; do
2247 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2248 ac_cv_prog_ac_ct_LD="ld"
2249 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2257 ac_ct_LD=$ac_cv_prog_ac_ct_LD
2258 if test -n "$ac_ct_LD"; then
2259 echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
2260 echo "${ECHO_T}$ac_ct_LD" >&6
2262 echo "$as_me:$LINENO: result: no" >&5
2263 echo "${ECHO_T}no" >&6
2273 echo "$as_me:$LINENO: checking whether $LD accepts -r" >&5
2274 echo $ECHO_N "checking whether $LD accepts -r... $ECHO_C" >&6
2275 if test "${libfirm_cv_prog_ld_r+set}" = set; then
2276 echo $ECHO_N "(cached) $ECHO_C" >&6
2279 libfirm_cv_prog_ld_r=no
2281 cat > conftest.$ac_ext <<EOF
2282 int foo() { return 0; }
2284 if eval $ac_compile && mv conftest.o conftest2.o; then
2285 cat > conftest.$ac_ext <<EOF
2287 int main() { return foo(); }
2289 if eval $ac_compile; then
2290 if $LD -r -o conftest conftest.o conftest2.o; then
2291 libfirm_cv_prog_ld_r=yes
2298 echo "$as_me:$LINENO: result: $libfirm_cv_prog_ld_r" >&5
2299 echo "${ECHO_T}$libfirm_cv_prog_ld_r" >&6
2302 if test "$libfirm_cv_prog_ld_r" != "yes"; then
2303 { { echo "$as_me:$LINENO: error: need a prelinkcapable linker" >&5
2304 echo "$as_me: error: need a prelinkcapable linker" >&2;}
2305 { (exit 1); exit 1; }; }
2308 # Extract the first word of "ar", so it can be a program name with args.
2309 set dummy ar; ac_word=$2
2310 echo "$as_me:$LINENO: checking for $ac_word" >&5
2311 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2312 if test "${ac_cv_prog_AR+set}" = set; then
2313 echo $ECHO_N "(cached) $ECHO_C" >&6
2315 if test -n "$AR"; then
2316 ac_cv_prog_AR="$AR" # Let the user override the test.
2318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2322 test -z "$as_dir" && as_dir=.
2323 for ac_exec_ext in '' $ac_executable_extensions; do
2324 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2325 ac_cv_prog_AR=""ar""
2326 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2332 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR=""""
2336 if test -n "$AR"; then
2337 echo "$as_me:$LINENO: result: $AR" >&5
2338 echo "${ECHO_T}$AR" >&6
2340 echo "$as_me:$LINENO: result: no" >&5
2341 echo "${ECHO_T}no" >&6
2344 if test "$AR" != "ar"; then
2345 { { echo "$as_me:$LINENO: error: need ar for creating archives" >&5
2346 echo "$as_me: error: need ar for creating archives" >&2;}
2347 { (exit 1); exit 1; }; }
2350 # Extract the first word of "tar", so it can be a program name with args.
2351 set dummy tar; ac_word=$2
2352 echo "$as_me:$LINENO: checking for $ac_word" >&5
2353 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2354 if test "${ac_cv_prog_TAR+set}" = set; then
2355 echo $ECHO_N "(cached) $ECHO_C" >&6
2357 if test -n "$TAR"; then
2358 ac_cv_prog_TAR="$TAR" # Let the user override the test.
2360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2364 test -z "$as_dir" && as_dir=.
2365 for ac_exec_ext in '' $ac_executable_extensions; do
2366 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2367 ac_cv_prog_TAR=""tar""
2368 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2374 test -z "$ac_cv_prog_TAR" && ac_cv_prog_TAR=""""
2378 if test -n "$TAR"; then
2379 echo "$as_me:$LINENO: result: $TAR" >&5
2380 echo "${ECHO_T}$TAR" >&6
2382 echo "$as_me:$LINENO: result: no" >&5
2383 echo "${ECHO_T}no" >&6
2386 if test "$TAR" != "tar"; then
2387 { { echo "$as_me:$LINENO: error: need tar for creating archives in distribution" >&5
2388 echo "$as_me: error: need tar for creating archives in distribution" >&2;}
2389 { (exit 1); exit 1; }; }
2393 if test -n "$ac_tool_prefix"; then
2394 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2395 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2396 echo "$as_me:$LINENO: checking for $ac_word" >&5
2397 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2398 if test "${ac_cv_prog_RANLIB+set}" = set; then
2399 echo $ECHO_N "(cached) $ECHO_C" >&6
2401 if test -n "$RANLIB"; then
2402 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2408 test -z "$as_dir" && as_dir=.
2409 for ac_exec_ext in '' $ac_executable_extensions; do
2410 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2411 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2412 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2420 RANLIB=$ac_cv_prog_RANLIB
2421 if test -n "$RANLIB"; then
2422 echo "$as_me:$LINENO: result: $RANLIB" >&5
2423 echo "${ECHO_T}$RANLIB" >&6
2425 echo "$as_me:$LINENO: result: no" >&5
2426 echo "${ECHO_T}no" >&6
2430 if test -z "$ac_cv_prog_RANLIB"; then
2431 ac_ct_RANLIB=$RANLIB
2432 # Extract the first word of "ranlib", so it can be a program name with args.
2433 set dummy ranlib; ac_word=$2
2434 echo "$as_me:$LINENO: checking for $ac_word" >&5
2435 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2436 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2437 echo $ECHO_N "(cached) $ECHO_C" >&6
2439 if test -n "$ac_ct_RANLIB"; then
2440 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2446 test -z "$as_dir" && as_dir=.
2447 for ac_exec_ext in '' $ac_executable_extensions; do
2448 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2449 ac_cv_prog_ac_ct_RANLIB="ranlib"
2450 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2456 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2459 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2460 if test -n "$ac_ct_RANLIB"; then
2461 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2462 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2464 echo "$as_me:$LINENO: result: no" >&5
2465 echo "${ECHO_T}no" >&6
2468 RANLIB=$ac_ct_RANLIB
2470 RANLIB="$ac_cv_prog_RANLIB"
2475 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
2476 if test -f $ac_dir/install-sh; then
2478 ac_install_sh="$ac_aux_dir/install-sh -c"
2480 elif test -f $ac_dir/install.sh; then
2482 ac_install_sh="$ac_aux_dir/install.sh -c"
2484 elif test -f $ac_dir/shtool; then
2486 ac_install_sh="$ac_aux_dir/shtool install -c"
2490 if test -z "$ac_aux_dir"; then
2491 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
2492 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
2493 { (exit 1); exit 1; }; }
2495 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
2496 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
2497 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
2499 # Find a good install program. We prefer a C program (faster),
2500 # so one script is as good as another. But avoid the broken or
2501 # incompatible versions:
2502 # SysV /etc/install, /usr/sbin/install
2503 # SunOS /usr/etc/install
2504 # IRIX /sbin/install
2506 # AmigaOS /C/install, which installs bootblocks on floppy discs
2507 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2508 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2509 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2510 # ./install, which can be erroneously created by make from ./install.sh.
2511 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2512 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2513 if test -z "$INSTALL"; then
2514 if test "${ac_cv_path_install+set}" = set; then
2515 echo $ECHO_N "(cached) $ECHO_C" >&6
2517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2521 test -z "$as_dir" && as_dir=.
2522 # Account for people who put trailing slashes in PATH elements.
2524 ./ | .// | /cC/* | \
2525 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2528 # OSF1 and SCO ODT 3.0 have their own names for install.
2529 # Don't use installbsd from OSF since it installs stuff as root
2531 for ac_prog in ginstall scoinst install; do
2532 for ac_exec_ext in '' $ac_executable_extensions; do
2533 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2534 if test $ac_prog = install &&
2535 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2536 # AIX install. It has an incompatible calling convention.
2538 elif test $ac_prog = install &&
2539 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2540 # program-specific install script used by HP pwplus--don't use.
2543 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2555 if test "${ac_cv_path_install+set}" = set; then
2556 INSTALL=$ac_cv_path_install
2558 # As a last resort, use the slow shell script. We don't cache a
2559 # path for INSTALL within a source directory, because that will
2560 # break other packages using the cache if that directory is
2561 # removed, or if the path is relative.
2562 INSTALL=$ac_install_sh
2565 echo "$as_me:$LINENO: result: $INSTALL" >&5
2566 echo "${ECHO_T}$INSTALL" >&6
2568 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2569 # It thinks the first close brace ends the variable substitution.
2570 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2572 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2574 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2577 touch tmp-install.a tmp-install.b
2578 if eval "$INSTALL tmp-install.a tmp-install.b" ; then
2581 rm tmp-install.a tmp-install.b
2584 echo "$as_me:$LINENO: checking whether ln -s works" >&5
2585 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2587 if test "$LN_S" = "ln -s"; then
2588 echo "$as_me:$LINENO: result: yes" >&5
2589 echo "${ECHO_T}yes" >&6
2591 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
2592 echo "${ECHO_T}no, using $LN_S" >&6
2596 if test "$enable_auto_documentation" = yes; then
2597 # Extract the first word of "doxygen", so it can be a program name with args.
2598 set dummy doxygen; ac_word=$2
2599 echo "$as_me:$LINENO: checking for $ac_word" >&5
2600 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2601 if test "${ac_cv_prog_DOXYGEN+set}" = set; then
2602 echo $ECHO_N "(cached) $ECHO_C" >&6
2604 if test -n "$DOXYGEN"; then
2605 ac_cv_prog_DOXYGEN="$DOXYGEN" # Let the user override the test.
2607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2611 test -z "$as_dir" && as_dir=.
2612 for ac_exec_ext in '' $ac_executable_extensions; do
2613 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2614 ac_cv_prog_DOXYGEN=""doxygen""
2615 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2621 test -z "$ac_cv_prog_DOXYGEN" && ac_cv_prog_DOXYGEN=""""
2624 DOXYGEN=$ac_cv_prog_DOXYGEN
2625 if test -n "$DOXYGEN"; then
2626 echo "$as_me:$LINENO: result: $DOXYGEN" >&5
2627 echo "${ECHO_T}$DOXYGEN" >&6
2629 echo "$as_me:$LINENO: result: no" >&5
2630 echo "${ECHO_T}no" >&6
2633 if test "$DOXYGEN" != "doxygen"; then
2634 { { echo "$as_me:$LINENO: error: need doxygen for auto documentation" >&5
2635 echo "$as_me: error: need doxygen for auto documentation" >&2;}
2636 { (exit 1); exit 1; }; }
2638 # Extract the first word of "dot", so it can be a program name with args.
2639 set dummy dot; ac_word=$2
2640 echo "$as_me:$LINENO: checking for $ac_word" >&5
2641 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2642 if test "${ac_cv_prog_DOT+set}" = set; then
2643 echo $ECHO_N "(cached) $ECHO_C" >&6
2645 if test -n "$DOT"; then
2646 ac_cv_prog_DOT="$DOT" # Let the user override the test.
2648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2652 test -z "$as_dir" && as_dir=.
2653 for ac_exec_ext in '' $ac_executable_extensions; do
2654 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2655 ac_cv_prog_DOT=""dot""
2656 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2662 test -z "$ac_cv_prog_DOT" && ac_cv_prog_DOT=""""
2666 if test -n "$DOT"; then
2667 echo "$as_me:$LINENO: result: $DOT" >&5
2668 echo "${ECHO_T}$DOT" >&6
2670 echo "$as_me:$LINENO: result: no" >&5
2671 echo "${ECHO_T}no" >&6
2674 if test "$DOT" != "dot"; then
2675 { { echo "$as_me:$LINENO: error: need dot for doxygen documentation (for class graphs) (IPD: module add Graphviz)" >&5
2676 echo "$as_me: error: need dot for doxygen documentation (for class graphs) (IPD: module add Graphviz)" >&2;}
2677 { (exit 1); exit 1; }; }
2681 if test "$enable_firm_jni" = yes; then
2682 # Extract the first word of "javac", so it can be a program name with args.
2683 set dummy javac; ac_word=$2
2684 echo "$as_me:$LINENO: checking for $ac_word" >&5
2685 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2686 if test "${ac_cv_prog_JAVAC+set}" = set; then
2687 echo $ECHO_N "(cached) $ECHO_C" >&6
2689 if test -n "$JAVAC"; then
2690 ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test.
2692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2696 test -z "$as_dir" && as_dir=.
2697 for ac_exec_ext in '' $ac_executable_extensions; do
2698 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2699 ac_cv_prog_JAVAC=""javac""
2700 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2706 test -z "$ac_cv_prog_JAVAC" && ac_cv_prog_JAVAC=""""
2709 JAVAC=$ac_cv_prog_JAVAC
2710 if test -n "$JAVAC"; then
2711 echo "$as_me:$LINENO: result: $JAVAC" >&5
2712 echo "${ECHO_T}$JAVAC" >&6
2714 echo "$as_me:$LINENO: result: no" >&5
2715 echo "${ECHO_T}no" >&6
2718 if test "$JAVAC" != "javac"; then
2719 { { echo "$as_me:$LINENO: error: need java compiler javac to generate jni (IPD: module add jdk-1.3.1-sun)" >&5
2720 echo "$as_me: error: need java compiler javac to generate jni (IPD: module add jdk-1.3.1-sun)" >&2;}
2721 { (exit 1); exit 1; }; }
2723 # Extract the first word of "javah", so it can be a program name with args.
2724 set dummy javah; ac_word=$2
2725 echo "$as_me:$LINENO: checking for $ac_word" >&5
2726 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2727 if test "${ac_cv_prog_JAVAH+set}" = set; then
2728 echo $ECHO_N "(cached) $ECHO_C" >&6
2730 if test -n "$JAVAH"; then
2731 ac_cv_prog_JAVAH="$JAVAH" # Let the user override the test.
2733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2737 test -z "$as_dir" && as_dir=.
2738 for ac_exec_ext in '' $ac_executable_extensions; do
2739 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2740 ac_cv_prog_JAVAH=""javah""
2741 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2747 test -z "$ac_cv_prog_JAVAH" && ac_cv_prog_JAVAH=""""
2750 JAVAH=$ac_cv_prog_JAVAH
2751 if test -n "$JAVAH"; then
2752 echo "$as_me:$LINENO: result: $JAVAH" >&5
2753 echo "${ECHO_T}$JAVAH" >&6
2755 echo "$as_me:$LINENO: result: no" >&5
2756 echo "${ECHO_T}no" >&6
2759 if test "$JAVAH" != "javah"; then
2760 { { echo "$as_me:$LINENO: error: need javah to generate jni headers (IPD: module add jdk-1.3.1-sun)" >&5
2761 echo "$as_me: error: need javah to generate jni headers (IPD: module add jdk-1.3.1-sun)" >&2;}
2762 { (exit 1); exit 1; }; }
2770 ac_cpp='$CPP $CPPFLAGS'
2771 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2772 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2773 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2774 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2775 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2776 # On Suns, sometimes $CPP names a directory.
2777 if test -n "$CPP" && test -d "$CPP"; then
2780 if test -z "$CPP"; then
2781 if test "${ac_cv_prog_CPP+set}" = set; then
2782 echo $ECHO_N "(cached) $ECHO_C" >&6
2784 # Double quotes because CPP needs to be expanded
2785 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2788 for ac_c_preproc_warn_flag in '' yes
2790 # Use a header file that comes with gcc, so configuring glibc
2791 # with a fresh cross-compiler works.
2792 # On the NeXT, cc -E runs the code through the compiler's parser,
2793 # not just through cpp. "Syntax error" is here to catch this case.
2794 cat >conftest.$ac_ext <<_ACEOF
2795 #line $LINENO "configure"
2796 #include "confdefs.h"
2800 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2801 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2803 egrep -v '^ *\+' conftest.er1 >conftest.err
2805 cat conftest.err >&5
2806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2807 (exit $ac_status); } >/dev/null; then
2808 if test -s conftest.err; then
2809 ac_cpp_err=$ac_c_preproc_warn_flag
2816 if test -z "$ac_cpp_err"; then
2819 echo "$as_me: failed program was:" >&5
2820 cat conftest.$ac_ext >&5
2821 # Broken: fails on valid input.
2824 rm -f conftest.err conftest.$ac_ext
2826 # OK, works on sane cases. Now check whether non-existent headers
2827 # can be detected and how.
2828 cat >conftest.$ac_ext <<_ACEOF
2829 #line $LINENO "configure"
2830 #include "confdefs.h"
2831 #include <ac_nonexistent.h>
2833 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2834 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2836 egrep -v '^ *\+' conftest.er1 >conftest.err
2838 cat conftest.err >&5
2839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2840 (exit $ac_status); } >/dev/null; then
2841 if test -s conftest.err; then
2842 ac_cpp_err=$ac_c_preproc_warn_flag
2849 if test -z "$ac_cpp_err"; then
2850 # Broken: success on invalid input.
2853 echo "$as_me: failed program was:" >&5
2854 cat conftest.$ac_ext >&5
2855 # Passes both tests.
2859 rm -f conftest.err conftest.$ac_ext
2862 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2863 rm -f conftest.err conftest.$ac_ext
2864 if $ac_preproc_ok; then
2876 echo "$as_me:$LINENO: result: $CPP" >&5
2877 echo "${ECHO_T}$CPP" >&6
2879 for ac_c_preproc_warn_flag in '' yes
2881 # Use a header file that comes with gcc, so configuring glibc
2882 # with a fresh cross-compiler works.
2883 # On the NeXT, cc -E runs the code through the compiler's parser,
2884 # not just through cpp. "Syntax error" is here to catch this case.
2885 cat >conftest.$ac_ext <<_ACEOF
2886 #line $LINENO "configure"
2887 #include "confdefs.h"
2891 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2892 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2894 egrep -v '^ *\+' conftest.er1 >conftest.err
2896 cat conftest.err >&5
2897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2898 (exit $ac_status); } >/dev/null; then
2899 if test -s conftest.err; then
2900 ac_cpp_err=$ac_c_preproc_warn_flag
2907 if test -z "$ac_cpp_err"; then
2910 echo "$as_me: failed program was:" >&5
2911 cat conftest.$ac_ext >&5
2912 # Broken: fails on valid input.
2915 rm -f conftest.err conftest.$ac_ext
2917 # OK, works on sane cases. Now check whether non-existent headers
2918 # can be detected and how.
2919 cat >conftest.$ac_ext <<_ACEOF
2920 #line $LINENO "configure"
2921 #include "confdefs.h"
2922 #include <ac_nonexistent.h>
2924 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2925 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2927 egrep -v '^ *\+' conftest.er1 >conftest.err
2929 cat conftest.err >&5
2930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2931 (exit $ac_status); } >/dev/null; then
2932 if test -s conftest.err; then
2933 ac_cpp_err=$ac_c_preproc_warn_flag
2940 if test -z "$ac_cpp_err"; then
2941 # Broken: success on invalid input.
2944 echo "$as_me: failed program was:" >&5
2945 cat conftest.$ac_ext >&5
2946 # Passes both tests.
2950 rm -f conftest.err conftest.$ac_ext
2953 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2954 rm -f conftest.err conftest.$ac_ext
2955 if $ac_preproc_ok; then
2958 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2959 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2960 { (exit 1); exit 1; }; }
2964 ac_cpp='$CPP $CPPFLAGS'
2965 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2966 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2967 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2970 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2971 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2972 if test "${ac_cv_header_stdc+set}" = set; then
2973 echo $ECHO_N "(cached) $ECHO_C" >&6
2975 cat >conftest.$ac_ext <<_ACEOF
2976 #line $LINENO "configure"
2977 #include "confdefs.h"
2984 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2985 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2987 egrep -v '^ *\+' conftest.er1 >conftest.err
2989 cat conftest.err >&5
2990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2991 (exit $ac_status); } >/dev/null; then
2992 if test -s conftest.err; then
2993 ac_cpp_err=$ac_c_preproc_warn_flag
3000 if test -z "$ac_cpp_err"; then
3001 ac_cv_header_stdc=yes
3003 echo "$as_me: failed program was:" >&5
3004 cat conftest.$ac_ext >&5
3005 ac_cv_header_stdc=no
3007 rm -f conftest.err conftest.$ac_ext
3009 if test $ac_cv_header_stdc = yes; then
3010 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3011 cat >conftest.$ac_ext <<_ACEOF
3012 #line $LINENO "configure"
3013 #include "confdefs.h"
3017 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3018 egrep "memchr" >/dev/null 2>&1; then
3021 ac_cv_header_stdc=no
3027 if test $ac_cv_header_stdc = yes; then
3028 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3029 cat >conftest.$ac_ext <<_ACEOF
3030 #line $LINENO "configure"
3031 #include "confdefs.h"
3035 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3036 egrep "free" >/dev/null 2>&1; then
3039 ac_cv_header_stdc=no
3045 if test $ac_cv_header_stdc = yes; then
3046 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3047 if test "$cross_compiling" = yes; then
3050 cat >conftest.$ac_ext <<_ACEOF
3051 #line $LINENO "configure"
3052 #include "confdefs.h"
3054 #if ((' ' & 0x0FF) == 0x020)
3055 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3056 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3058 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
3059 || ('j' <= (c) && (c) <= 'r') \
3060 || ('s' <= (c) && (c) <= 'z'))
3061 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3064 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3069 for (i = 0; i < 256; i++)
3070 if (XOR (islower (i), ISLOWER (i))
3071 || toupper (i) != TOUPPER (i))
3076 rm -f conftest$ac_exeext
3077 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3078 (eval $ac_link) 2>&5
3080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3081 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3086 (exit $ac_status); }; }; then
3089 echo "$as_me: program exited with status $ac_status" >&5
3090 echo "$as_me: failed program was:" >&5
3091 cat conftest.$ac_ext >&5
3093 ac_cv_header_stdc=no
3095 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3099 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3100 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3101 if test $ac_cv_header_stdc = yes; then
3103 cat >>confdefs.h <<\_ACEOF
3104 #define STDC_HEADERS 1
3111 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3121 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3122 inttypes.h stdint.h unistd.h
3124 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3125 echo "$as_me:$LINENO: checking for $ac_header" >&5
3126 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3127 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3128 echo $ECHO_N "(cached) $ECHO_C" >&6
3130 cat >conftest.$ac_ext <<_ACEOF
3131 #line $LINENO "configure"
3132 #include "confdefs.h"
3133 $ac_includes_default
3135 #include <$ac_header>
3137 rm -f conftest.$ac_objext
3138 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3139 (eval $ac_compile) 2>&5
3141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3142 (exit $ac_status); } &&
3143 { ac_try='test -s conftest.$ac_objext'
3144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3148 (exit $ac_status); }; }; then
3149 eval "$as_ac_Header=yes"
3151 echo "$as_me: failed program was:" >&5
3152 cat conftest.$ac_ext >&5
3153 eval "$as_ac_Header=no"
3155 rm -f conftest.$ac_objext conftest.$ac_ext
3157 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3158 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3159 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3160 cat >>confdefs.h <<_ACEOF
3161 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3170 for ac_header in math.h
3172 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3173 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3174 echo "$as_me:$LINENO: checking for $ac_header" >&5
3175 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3176 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3177 echo $ECHO_N "(cached) $ECHO_C" >&6
3179 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3180 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3182 # Is the header compilable?
3183 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3184 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3185 cat >conftest.$ac_ext <<_ACEOF
3186 #line $LINENO "configure"
3187 #include "confdefs.h"
3188 $ac_includes_default
3189 #include <$ac_header>
3191 rm -f conftest.$ac_objext
3192 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3193 (eval $ac_compile) 2>&5
3195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3196 (exit $ac_status); } &&
3197 { ac_try='test -s conftest.$ac_objext'
3198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3202 (exit $ac_status); }; }; then
3203 ac_header_compiler=yes
3205 echo "$as_me: failed program was:" >&5
3206 cat conftest.$ac_ext >&5
3207 ac_header_compiler=no
3209 rm -f conftest.$ac_objext conftest.$ac_ext
3210 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3211 echo "${ECHO_T}$ac_header_compiler" >&6
3213 # Is the header present?
3214 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3215 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3216 cat >conftest.$ac_ext <<_ACEOF
3217 #line $LINENO "configure"
3218 #include "confdefs.h"
3219 #include <$ac_header>
3221 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3222 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3224 egrep -v '^ *\+' conftest.er1 >conftest.err
3226 cat conftest.err >&5
3227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3228 (exit $ac_status); } >/dev/null; then
3229 if test -s conftest.err; then
3230 ac_cpp_err=$ac_c_preproc_warn_flag
3237 if test -z "$ac_cpp_err"; then
3238 ac_header_preproc=yes
3240 echo "$as_me: failed program was:" >&5
3241 cat conftest.$ac_ext >&5
3242 ac_header_preproc=no
3244 rm -f conftest.err conftest.$ac_ext
3245 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3246 echo "${ECHO_T}$ac_header_preproc" >&6
3248 # So? What about this header?
3249 case $ac_header_compiler:$ac_header_preproc in
3251 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3252 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3253 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3254 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3256 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3257 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3258 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3259 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3260 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3261 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3263 echo "$as_me:$LINENO: checking for $ac_header" >&5
3264 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3265 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3266 echo $ECHO_N "(cached) $ECHO_C" >&6
3268 eval "$as_ac_Header=$ac_header_preproc"
3270 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3271 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3274 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3275 cat >>confdefs.h <<_ACEOF
3276 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3278 ac_math_headers="yes"
3280 ac_math_headers="no"
3285 if test "$ac_math_headers" != yes; then
3286 { { echo "$as_me:$LINENO: error: \"math header file not found\"" >&5
3287 echo "$as_me: error: \"math header file not found\"" >&2;}
3288 { (exit 1); exit 1; }; }
3292 #dnl check for the gnu multiprecission (gmp) header file
3294 #AC_CHECK_HEADERS(gmp.h, ac_gmp_headers="yes", ac_gmp_headers="no")
3295 #if test "$ac_gmp_headers" != yes; then
3296 # dnl gmp header not found.
3297 # AC_MSG_ERROR("GNU multiprecission gmp header file not found")
3304 for ac_header in obstack.h
3306 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3307 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3308 echo "$as_me:$LINENO: checking for $ac_header" >&5
3309 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3310 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3311 echo $ECHO_N "(cached) $ECHO_C" >&6
3313 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3314 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3316 # Is the header compilable?
3317 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3318 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3319 cat >conftest.$ac_ext <<_ACEOF
3320 #line $LINENO "configure"
3321 #include "confdefs.h"
3322 $ac_includes_default
3323 #include <$ac_header>
3325 rm -f conftest.$ac_objext
3326 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3327 (eval $ac_compile) 2>&5
3329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3330 (exit $ac_status); } &&
3331 { ac_try='test -s conftest.$ac_objext'
3332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3336 (exit $ac_status); }; }; then
3337 ac_header_compiler=yes
3339 echo "$as_me: failed program was:" >&5
3340 cat conftest.$ac_ext >&5
3341 ac_header_compiler=no
3343 rm -f conftest.$ac_objext conftest.$ac_ext
3344 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3345 echo "${ECHO_T}$ac_header_compiler" >&6
3347 # Is the header present?
3348 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3349 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3350 cat >conftest.$ac_ext <<_ACEOF
3351 #line $LINENO "configure"
3352 #include "confdefs.h"
3353 #include <$ac_header>
3355 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3356 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3358 egrep -v '^ *\+' conftest.er1 >conftest.err
3360 cat conftest.err >&5
3361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3362 (exit $ac_status); } >/dev/null; then
3363 if test -s conftest.err; then
3364 ac_cpp_err=$ac_c_preproc_warn_flag
3371 if test -z "$ac_cpp_err"; then
3372 ac_header_preproc=yes
3374 echo "$as_me: failed program was:" >&5
3375 cat conftest.$ac_ext >&5
3376 ac_header_preproc=no
3378 rm -f conftest.err conftest.$ac_ext
3379 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3380 echo "${ECHO_T}$ac_header_preproc" >&6
3382 # So? What about this header?
3383 case $ac_header_compiler:$ac_header_preproc in
3385 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3386 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3387 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3388 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3390 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3391 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3392 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3393 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3394 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3395 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3397 echo "$as_me:$LINENO: checking for $ac_header" >&5
3398 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3399 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3400 echo $ECHO_N "(cached) $ECHO_C" >&6
3402 eval "$as_ac_Header=$ac_header_preproc"
3404 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3405 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3408 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3409 cat >>confdefs.h <<_ACEOF
3410 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3412 ac_obstack_headers="yes"
3414 ac_obstack_headers="no"
3419 if test "$ac_obstack_headers" != yes; then
3420 { { echo "$as_me:$LINENO: error: \"obstack.h not found\"" >&5
3421 echo "$as_me: error: \"obstack.h not found\"" >&2;}
3422 { (exit 1); exit 1; }; }
3427 for ac_header in alloca.h
3429 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3430 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3431 echo "$as_me:$LINENO: checking for $ac_header" >&5
3432 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3433 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3434 echo $ECHO_N "(cached) $ECHO_C" >&6
3436 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3437 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3439 # Is the header compilable?
3440 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3441 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3442 cat >conftest.$ac_ext <<_ACEOF
3443 #line $LINENO "configure"
3444 #include "confdefs.h"
3445 $ac_includes_default
3446 #include <$ac_header>
3448 rm -f conftest.$ac_objext
3449 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3450 (eval $ac_compile) 2>&5
3452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3453 (exit $ac_status); } &&
3454 { ac_try='test -s conftest.$ac_objext'
3455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3459 (exit $ac_status); }; }; then
3460 ac_header_compiler=yes
3462 echo "$as_me: failed program was:" >&5
3463 cat conftest.$ac_ext >&5
3464 ac_header_compiler=no
3466 rm -f conftest.$ac_objext conftest.$ac_ext
3467 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3468 echo "${ECHO_T}$ac_header_compiler" >&6
3470 # Is the header present?
3471 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3472 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3473 cat >conftest.$ac_ext <<_ACEOF
3474 #line $LINENO "configure"
3475 #include "confdefs.h"
3476 #include <$ac_header>
3478 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3479 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3481 egrep -v '^ *\+' conftest.er1 >conftest.err
3483 cat conftest.err >&5
3484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3485 (exit $ac_status); } >/dev/null; then
3486 if test -s conftest.err; then
3487 ac_cpp_err=$ac_c_preproc_warn_flag
3494 if test -z "$ac_cpp_err"; then
3495 ac_header_preproc=yes
3497 echo "$as_me: failed program was:" >&5
3498 cat conftest.$ac_ext >&5
3499 ac_header_preproc=no
3501 rm -f conftest.err conftest.$ac_ext
3502 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3503 echo "${ECHO_T}$ac_header_preproc" >&6
3505 # So? What about this header?
3506 case $ac_header_compiler:$ac_header_preproc in
3508 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3509 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3510 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3511 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3513 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3514 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3515 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3516 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3517 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3518 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3520 echo "$as_me:$LINENO: checking for $ac_header" >&5
3521 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3522 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3523 echo $ECHO_N "(cached) $ECHO_C" >&6
3525 eval "$as_ac_Header=$ac_header_preproc"
3527 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3528 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3531 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3532 cat >>confdefs.h <<_ACEOF
3533 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3535 ac_alloca_headers="yes"
3537 ac_alloca_headers="no"
3542 if test "$ac_alloca_headers" = "yes"; then
3543 cat >>confdefs.h <<\_ACEOF
3544 #define HAVE_ALLOCA_H 1
3548 if test "$ac_cv_header_stdc" = "no"; then
3549 { { echo "$as_me:$LINENO: error: \"alloca.h and stdlib.h not found\"" >&5
3550 echo "$as_me: error: \"alloca.h and stdlib.h not found\"" >&2;}
3551 { (exit 1); exit 1; }; }
3557 if test "$enable_firm_jni" = yes; then
3559 for ac_header in jni.h
3561 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3562 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3563 echo "$as_me:$LINENO: checking for $ac_header" >&5
3564 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3565 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3566 echo $ECHO_N "(cached) $ECHO_C" >&6
3568 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3569 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3571 # Is the header compilable?
3572 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3573 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3574 cat >conftest.$ac_ext <<_ACEOF
3575 #line $LINENO "configure"
3576 #include "confdefs.h"
3577 $ac_includes_default
3578 #include <$ac_header>
3580 rm -f conftest.$ac_objext
3581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3582 (eval $ac_compile) 2>&5
3584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3585 (exit $ac_status); } &&
3586 { ac_try='test -s conftest.$ac_objext'
3587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3591 (exit $ac_status); }; }; then
3592 ac_header_compiler=yes
3594 echo "$as_me: failed program was:" >&5
3595 cat conftest.$ac_ext >&5
3596 ac_header_compiler=no
3598 rm -f conftest.$ac_objext conftest.$ac_ext
3599 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3600 echo "${ECHO_T}$ac_header_compiler" >&6
3602 # Is the header present?
3603 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3604 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3605 cat >conftest.$ac_ext <<_ACEOF
3606 #line $LINENO "configure"
3607 #include "confdefs.h"
3608 #include <$ac_header>
3610 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3611 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3613 egrep -v '^ *\+' conftest.er1 >conftest.err
3615 cat conftest.err >&5
3616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3617 (exit $ac_status); } >/dev/null; then
3618 if test -s conftest.err; then
3619 ac_cpp_err=$ac_c_preproc_warn_flag
3626 if test -z "$ac_cpp_err"; then
3627 ac_header_preproc=yes
3629 echo "$as_me: failed program was:" >&5
3630 cat conftest.$ac_ext >&5
3631 ac_header_preproc=no
3633 rm -f conftest.err conftest.$ac_ext
3634 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3635 echo "${ECHO_T}$ac_header_preproc" >&6
3637 # So? What about this header?
3638 case $ac_header_compiler:$ac_header_preproc in
3640 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3641 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3642 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3643 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3645 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3646 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3647 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3648 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3649 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3650 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3652 echo "$as_me:$LINENO: checking for $ac_header" >&5
3653 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3654 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3655 echo $ECHO_N "(cached) $ECHO_C" >&6
3657 eval "$as_ac_Header=$ac_header_preproc"
3659 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3660 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3663 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3664 cat >>confdefs.h <<_ACEOF
3665 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3667 ac_jni_headers="yes"
3674 if test "$ac_jni_headers" != yes; then
3675 { { 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
3676 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;}
3677 { (exit 1); exit 1; }; }
3682 if test "$enable_external_effects" == "yes"; then
3684 for ac_header in libxml/parser.h
3686 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3687 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3688 echo "$as_me:$LINENO: checking for $ac_header" >&5
3689 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3690 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3691 echo $ECHO_N "(cached) $ECHO_C" >&6
3693 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3694 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3696 # Is the header compilable?
3697 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3698 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3699 cat >conftest.$ac_ext <<_ACEOF
3700 #line $LINENO "configure"
3701 #include "confdefs.h"
3702 $ac_includes_default
3703 #include <$ac_header>
3705 rm -f conftest.$ac_objext
3706 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3707 (eval $ac_compile) 2>&5
3709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3710 (exit $ac_status); } &&
3711 { ac_try='test -s conftest.$ac_objext'
3712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3716 (exit $ac_status); }; }; then
3717 ac_header_compiler=yes
3719 echo "$as_me: failed program was:" >&5
3720 cat conftest.$ac_ext >&5
3721 ac_header_compiler=no
3723 rm -f conftest.$ac_objext conftest.$ac_ext
3724 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3725 echo "${ECHO_T}$ac_header_compiler" >&6
3727 # Is the header present?
3728 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3729 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3730 cat >conftest.$ac_ext <<_ACEOF
3731 #line $LINENO "configure"
3732 #include "confdefs.h"
3733 #include <$ac_header>
3735 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3736 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3738 egrep -v '^ *\+' conftest.er1 >conftest.err
3740 cat conftest.err >&5
3741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3742 (exit $ac_status); } >/dev/null; then
3743 if test -s conftest.err; then
3744 ac_cpp_err=$ac_c_preproc_warn_flag
3751 if test -z "$ac_cpp_err"; then
3752 ac_header_preproc=yes
3754 echo "$as_me: failed program was:" >&5
3755 cat conftest.$ac_ext >&5
3756 ac_header_preproc=no
3758 rm -f conftest.err conftest.$ac_ext
3759 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3760 echo "${ECHO_T}$ac_header_preproc" >&6
3762 # So? What about this header?
3763 case $ac_header_compiler:$ac_header_preproc in
3765 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3766 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3767 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3768 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3770 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3771 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3772 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3773 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3774 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3775 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3777 echo "$as_me:$LINENO: checking for $ac_header" >&5
3778 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3779 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3780 echo $ECHO_N "(cached) $ECHO_C" >&6
3782 eval "$as_ac_Header=$ac_header_preproc"
3784 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3785 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3788 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3789 cat >>confdefs.h <<_ACEOF
3790 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3792 ac_xml_headers="yes"
3799 if test "$ac_xml_headers" != yes; then
3800 { { echo "$as_me:$LINENO: error: xml header files not found. (IPD: add --with-includedir=/usr/public/libxml2/include/libxml2/ to configure flags)" >&5
3801 echo "$as_me: error: xml header files not found. (IPD: add --with-includedir=/usr/public/libxml2/include/libxml2/ to configure flags)" >&2;}
3802 { (exit 1); exit 1; }; }
3807 #dnl check for the gnu multiprecission (gmp) library
3809 #AC_CHECK_LIB(gmp, main, ac_gmp_library="yes", ac_gmp_library="no")
3810 #if test "$ac_gmp_library" != yes; then
3811 # dnl gmp library not found.
3812 # AC_MSG_ERROR("GNU multiprecission gmp library not found")
3816 echo "$as_me:$LINENO: checking for main in -lm" >&5
3817 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
3818 if test "${ac_cv_lib_m_main+set}" = set; then
3819 echo $ECHO_N "(cached) $ECHO_C" >&6
3821 ac_check_lib_save_LIBS=$LIBS
3823 cat >conftest.$ac_ext <<_ACEOF
3824 #line $LINENO "configure"
3825 #include "confdefs.h"
3828 #ifdef F77_DUMMY_MAIN
3832 int F77_DUMMY_MAIN() { return 1; }
3842 rm -f conftest.$ac_objext conftest$ac_exeext
3843 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3844 (eval $ac_link) 2>&5
3846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3847 (exit $ac_status); } &&
3848 { ac_try='test -s conftest$ac_exeext'
3849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3853 (exit $ac_status); }; }; then
3854 ac_cv_lib_m_main=yes
3856 echo "$as_me: failed program was:" >&5
3857 cat conftest.$ac_ext >&5
3860 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3861 LIBS=$ac_check_lib_save_LIBS
3863 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
3864 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
3865 if test $ac_cv_lib_m_main = yes; then
3871 if test "$ac_m_library" != yes; then
3872 { { echo "$as_me:$LINENO: error: \"standard math library not found\"" >&5
3873 echo "$as_me: error: \"standard math library not found\"" >&2;}
3874 { (exit 1); exit 1; }; }
3878 if test "$enable_external_effects" == "yes"; then
3879 echo "$as_me:$LINENO: checking for xmlParseFile in -lxml2" >&5
3880 echo $ECHO_N "checking for xmlParseFile in -lxml2... $ECHO_C" >&6
3881 if test "${ac_cv_lib_xml2_xmlParseFile+set}" = set; then
3882 echo $ECHO_N "(cached) $ECHO_C" >&6
3884 ac_check_lib_save_LIBS=$LIBS
3886 cat >conftest.$ac_ext <<_ACEOF
3887 #line $LINENO "configure"
3888 #include "confdefs.h"
3890 /* Override any gcc2 internal prototype to avoid an error. */
3894 /* We use char because int might match the return type of a gcc2
3895 builtin and then its argument prototype would still apply. */
3896 char xmlParseFile ();
3897 #ifdef F77_DUMMY_MAIN
3901 int F77_DUMMY_MAIN() { return 1; }
3911 rm -f conftest.$ac_objext conftest$ac_exeext
3912 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3913 (eval $ac_link) 2>&5
3915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3916 (exit $ac_status); } &&
3917 { ac_try='test -s conftest$ac_exeext'
3918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3922 (exit $ac_status); }; }; then
3923 ac_cv_lib_xml2_xmlParseFile=yes
3925 echo "$as_me: failed program was:" >&5
3926 cat conftest.$ac_ext >&5
3927 ac_cv_lib_xml2_xmlParseFile=no
3929 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3930 LIBS=$ac_check_lib_save_LIBS
3932 echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlParseFile" >&5
3933 echo "${ECHO_T}$ac_cv_lib_xml2_xmlParseFile" >&6
3934 if test $ac_cv_lib_xml2_xmlParseFile = yes; then
3935 ac_xml_library="yes"
3940 if test "$ac_m_library" != yes; then
3941 { { echo "$as_me:$LINENO: error: \"xml2 library not found (IPD: add --with-libdir=/usr/public/libxml2/lib/ to configure flags)\"" >&5
3942 echo "$as_me: error: \"xml2 library not found (IPD: add --with-libdir=/usr/public/libxml2/lib/ to configure flags)\"" >&2;}
3943 { (exit 1); exit 1; }; }
3949 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3950 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3951 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3952 echo $ECHO_N "(cached) $ECHO_C" >&6
3954 ac_cv_prog_cc_stdc=no
3956 cat >conftest.$ac_ext <<_ACEOF
3957 #line $LINENO "configure"
3958 #include "confdefs.h"
3961 #include <sys/types.h>
3962 #include <sys/stat.h>
3963 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3964 struct buf { int x; };
3965 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3966 static char *e (p, i)
3972 static char *f (char * (*g) (char **, int), char **p, ...)
3977 s = g (p, va_arg (v,int));
3981 int test (int i, double x);
3982 struct s1 {int (*f) (int a);};
3983 struct s2 {int (*f) (double a);};
3984 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3987 #ifdef F77_DUMMY_MAIN
3991 int F77_DUMMY_MAIN() { return 1; }
3996 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4001 # Don't try gcc -ansi; that turns off useful extensions and
4002 # breaks some systems' header files.
4003 # AIX -qlanglvl=ansi
4004 # Ultrix and OSF/1 -std1
4005 # HP-UX 10.20 and later -Ae
4006 # HP-UX older versions -Aa -D_HPUX_SOURCE
4007 # SVR4 -Xc -D__EXTENSIONS__
4008 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4010 CC="$ac_save_CC $ac_arg"
4011 rm -f conftest.$ac_objext
4012 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4013 (eval $ac_compile) 2>&5
4015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4016 (exit $ac_status); } &&
4017 { ac_try='test -s conftest.$ac_objext'
4018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4022 (exit $ac_status); }; }; then
4023 ac_cv_prog_cc_stdc=$ac_arg
4026 echo "$as_me: failed program was:" >&5
4027 cat conftest.$ac_ext >&5
4029 rm -f conftest.$ac_objext
4031 rm -f conftest.$ac_ext conftest.$ac_objext
4036 case "x$ac_cv_prog_cc_stdc" in
4038 echo "$as_me:$LINENO: result: none needed" >&5
4039 echo "${ECHO_T}none needed" >&6 ;;
4041 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4042 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4043 CC="$CC $ac_cv_prog_cc_stdc" ;;
4046 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4047 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
4048 if test "${ac_cv_c_const+set}" = set; then
4049 echo $ECHO_N "(cached) $ECHO_C" >&6
4051 cat >conftest.$ac_ext <<_ACEOF
4052 #line $LINENO "configure"
4053 #include "confdefs.h"
4055 #ifdef F77_DUMMY_MAIN
4059 int F77_DUMMY_MAIN() { return 1; }
4064 /* FIXME: Include the comments suggested by Paul. */
4066 /* Ultrix mips cc rejects this. */
4067 typedef int charset[2];
4069 /* SunOS 4.1.1 cc rejects this. */
4070 char const *const *ccp;
4072 /* NEC SVR4.0.2 mips cc rejects this. */
4073 struct point {int x, y;};
4074 static struct point const zero = {0,0};
4075 /* AIX XL C 1.02.0.0 rejects this.
4076 It does not let you subtract one const X* pointer from another in
4077 an arm of an if-expression whose if-part is not a constant
4079 const char *g = "string";
4080 ccp = &g + (g ? g-g : 0);
4081 /* HPUX 7.0 cc rejects these. */
4084 ccp = (char const *const *) p;
4085 { /* SCO 3.2v4 cc rejects this. */
4087 char const *s = 0 ? (char *) 0 : (char const *) 0;
4091 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4093 const int *foo = &x[0];
4096 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4097 typedef const int *iptr;
4101 { /* AIX XL C 1.02.0.0 rejects this saying
4102 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4103 struct s { int j; const int *ap[3]; };
4104 struct s *b; b->j = 5;
4106 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4115 rm -f conftest.$ac_objext
4116 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4117 (eval $ac_compile) 2>&5
4119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4120 (exit $ac_status); } &&
4121 { ac_try='test -s conftest.$ac_objext'
4122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4126 (exit $ac_status); }; }; then
4129 echo "$as_me: failed program was:" >&5
4130 cat conftest.$ac_ext >&5
4133 rm -f conftest.$ac_objext conftest.$ac_ext
4135 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4136 echo "${ECHO_T}$ac_cv_c_const" >&6
4137 if test $ac_cv_c_const = no; then
4139 cat >>confdefs.h <<\_ACEOF
4145 echo "$as_me:$LINENO: checking for working volatile" >&5
4146 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
4147 if test "${ac_cv_c_volatile+set}" = set; then
4148 echo $ECHO_N "(cached) $ECHO_C" >&6
4150 cat >conftest.$ac_ext <<_ACEOF
4151 #line $LINENO "configure"
4152 #include "confdefs.h"
4154 #ifdef F77_DUMMY_MAIN
4158 int F77_DUMMY_MAIN() { return 1; }
4170 rm -f conftest.$ac_objext
4171 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4172 (eval $ac_compile) 2>&5
4174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4175 (exit $ac_status); } &&
4176 { ac_try='test -s conftest.$ac_objext'
4177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4181 (exit $ac_status); }; }; then
4182 ac_cv_c_volatile=yes
4184 echo "$as_me: failed program was:" >&5
4185 cat conftest.$ac_ext >&5
4188 rm -f conftest.$ac_objext conftest.$ac_ext
4190 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
4191 echo "${ECHO_T}$ac_cv_c_volatile" >&6
4192 if test $ac_cv_c_volatile = no; then
4194 cat >>confdefs.h <<\_ACEOF
4200 echo "$as_me:$LINENO: checking for inline" >&5
4201 echo $ECHO_N "checking for inline... $ECHO_C" >&6
4202 if test "${ac_cv_c_inline+set}" = set; then
4203 echo $ECHO_N "(cached) $ECHO_C" >&6
4206 for ac_kw in inline __inline__ __inline; do
4207 cat >conftest.$ac_ext <<_ACEOF
4208 #line $LINENO "configure"
4209 #include "confdefs.h"
4211 static $ac_kw int static_foo () {return 0; }
4212 $ac_kw int foo () {return 0; }
4216 rm -f conftest.$ac_objext
4217 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4218 (eval $ac_compile) 2>&5
4220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4221 (exit $ac_status); } &&
4222 { ac_try='test -s conftest.$ac_objext'
4223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4227 (exit $ac_status); }; }; then
4228 ac_cv_c_inline=$ac_kw; break
4230 echo "$as_me: failed program was:" >&5
4231 cat conftest.$ac_ext >&5
4233 rm -f conftest.$ac_objext conftest.$ac_ext
4237 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4238 echo "${ECHO_T}$ac_cv_c_inline" >&6
4239 case $ac_cv_c_inline in
4242 cat >>confdefs.h <<\_ACEOF
4246 *) cat >>confdefs.h <<_ACEOF
4247 #define inline $ac_cv_c_inline
4252 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4253 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
4254 if test "${ac_cv_c_bigendian+set}" = set; then
4255 echo $ECHO_N "(cached) $ECHO_C" >&6
4257 # See if sys/param.h defines the BYTE_ORDER macro.
4258 cat >conftest.$ac_ext <<_ACEOF
4259 #line $LINENO "configure"
4260 #include "confdefs.h"
4261 #include <sys/types.h>
4262 #include <sys/param.h>
4264 #ifdef F77_DUMMY_MAIN
4268 int F77_DUMMY_MAIN() { return 1; }
4273 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4281 rm -f conftest.$ac_objext
4282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4283 (eval $ac_compile) 2>&5
4285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4286 (exit $ac_status); } &&
4287 { ac_try='test -s conftest.$ac_objext'
4288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4292 (exit $ac_status); }; }; then
4293 # It does; now see whether it defined to BIG_ENDIAN or not.
4294 cat >conftest.$ac_ext <<_ACEOF
4295 #line $LINENO "configure"
4296 #include "confdefs.h"
4297 #include <sys/types.h>
4298 #include <sys/param.h>
4300 #ifdef F77_DUMMY_MAIN
4304 int F77_DUMMY_MAIN() { return 1; }
4309 #if BYTE_ORDER != BIG_ENDIAN
4317 rm -f conftest.$ac_objext
4318 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4319 (eval $ac_compile) 2>&5
4321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4322 (exit $ac_status); } &&
4323 { ac_try='test -s conftest.$ac_objext'
4324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4328 (exit $ac_status); }; }; then
4329 ac_cv_c_bigendian=yes
4331 echo "$as_me: failed program was:" >&5
4332 cat conftest.$ac_ext >&5
4333 ac_cv_c_bigendian=no
4335 rm -f conftest.$ac_objext conftest.$ac_ext
4337 echo "$as_me: failed program was:" >&5
4338 cat conftest.$ac_ext >&5
4339 # It does not; compile a test program.
4340 if test "$cross_compiling" = yes; then
4341 # try to guess the endianess by grep'ing values into an object file
4342 ac_cv_c_bigendian=unknown
4343 cat >conftest.$ac_ext <<_ACEOF
4344 #line $LINENO "configure"
4345 #include "confdefs.h"
4346 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4347 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4348 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4349 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4350 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4351 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4352 #ifdef F77_DUMMY_MAIN
4356 int F77_DUMMY_MAIN() { return 1; }
4361 _ascii (); _ebcdic ();
4366 rm -f conftest.$ac_objext
4367 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4368 (eval $ac_compile) 2>&5
4370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4371 (exit $ac_status); } &&
4372 { ac_try='test -s conftest.$ac_objext'
4373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4377 (exit $ac_status); }; }; then
4378 if fgrep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4379 ac_cv_c_bigendian=yes
4381 if fgrep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4382 if test "$ac_cv_c_bigendian" = unknown; then
4383 ac_cv_c_bigendian=no
4385 # finding both strings is unlikely to happen, but who knows?
4386 ac_cv_c_bigendian=unknown
4390 echo "$as_me: failed program was:" >&5
4391 cat conftest.$ac_ext >&5
4393 rm -f conftest.$ac_objext conftest.$ac_ext
4395 cat >conftest.$ac_ext <<_ACEOF
4396 #line $LINENO "configure"
4397 #include "confdefs.h"
4401 /* Are we little or big endian? From Harbison&Steele. */
4405 char c[sizeof (long)];
4408 exit (u.c[sizeof (long) - 1] == 1);
4411 rm -f conftest$ac_exeext
4412 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4413 (eval $ac_link) 2>&5
4415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4416 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4421 (exit $ac_status); }; }; then
4422 ac_cv_c_bigendian=no
4424 echo "$as_me: program exited with status $ac_status" >&5
4425 echo "$as_me: failed program was:" >&5
4426 cat conftest.$ac_ext >&5
4428 ac_cv_c_bigendian=yes
4430 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4433 rm -f conftest.$ac_objext conftest.$ac_ext
4435 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4436 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
4437 case $ac_cv_c_bigendian in
4440 cat >>confdefs.h <<\_ACEOF
4441 #define WORDS_BIGENDIAN 1
4447 { { echo "$as_me:$LINENO: error: unknown endianess
4448 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4449 echo "$as_me: error: unknown endianess
4450 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4451 { (exit 1); exit 1; }; } ;;
4454 echo "$as_me:$LINENO: checking for working long double with more range or precision than double" >&5
4455 echo $ECHO_N "checking for working long double with more range or precision than double... $ECHO_C" >&6
4456 if test "${ac_cv_c_long_double+set}" = set; then
4457 echo $ECHO_N "(cached) $ECHO_C" >&6
4459 cat >conftest.$ac_ext <<_ACEOF
4460 #line $LINENO "configure"
4461 #include "confdefs.h"
4463 long double foo = 0.0;
4464 #ifdef F77_DUMMY_MAIN
4468 int F77_DUMMY_MAIN() { return 1; }
4473 static int test_array [1 - 2 * !(/* Using '|' rather than '||' catches a GCC 2.95.2 x86 bug. */
4474 (DBL_MAX < LDBL_MAX) | (LDBL_EPSILON < DBL_EPSILON)
4475 | (DBL_MAX_EXP < LDBL_MAX_EXP) | (DBL_MANT_DIG < LDBL_MANT_DIG))];
4482 rm -f conftest.$ac_objext
4483 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4484 (eval $ac_compile) 2>&5
4486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4487 (exit $ac_status); } &&
4488 { ac_try='test -s conftest.$ac_objext'
4489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4493 (exit $ac_status); }; }; then
4494 ac_cv_c_long_double=yes
4496 echo "$as_me: failed program was:" >&5
4497 cat conftest.$ac_ext >&5
4498 ac_cv_c_long_double=no
4500 rm -f conftest.$ac_objext conftest.$ac_ext
4502 echo "$as_me:$LINENO: result: $ac_cv_c_long_double" >&5
4503 echo "${ECHO_T}$ac_cv_c_long_double" >&6
4504 if test $ac_cv_c_long_double = yes; then
4506 cat >>confdefs.h <<\_ACEOF
4507 #define HAVE_LONG_DOUBLE 1
4515 echo "$as_me:$LINENO: checking for strerror" >&5
4516 echo $ECHO_N "checking for strerror... $ECHO_C" >&6
4517 if test "${ac_cv_func_strerror+set}" = set; then
4518 echo $ECHO_N "(cached) $ECHO_C" >&6
4520 cat >conftest.$ac_ext <<_ACEOF
4521 #line $LINENO "configure"
4522 #include "confdefs.h"
4523 /* System header to define __stub macros and hopefully few prototypes,
4524 which can conflict with char strerror (); below. */
4526 /* Override any gcc2 internal prototype to avoid an error. */
4530 /* We use char because int might match the return type of a gcc2
4531 builtin and then its argument prototype would still apply. */
4535 #ifdef F77_DUMMY_MAIN
4539 int F77_DUMMY_MAIN() { return 1; }
4544 /* The GNU C library defines this for functions which it implements
4545 to always fail with ENOSYS. Some functions are actually named
4546 something starting with __ and the normal name is an alias. */
4547 #if defined (__stub_strerror) || defined (__stub___strerror)
4557 rm -f conftest.$ac_objext conftest$ac_exeext
4558 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4559 (eval $ac_link) 2>&5
4561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4562 (exit $ac_status); } &&
4563 { ac_try='test -s conftest$ac_exeext'
4564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4568 (exit $ac_status); }; }; then
4569 ac_cv_func_strerror=yes
4571 echo "$as_me: failed program was:" >&5
4572 cat conftest.$ac_ext >&5
4573 ac_cv_func_strerror=no
4575 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4577 echo "$as_me:$LINENO: result: $ac_cv_func_strerror" >&5
4578 echo "${ECHO_T}$ac_cv_func_strerror" >&6
4579 if test $ac_cv_func_strerror = yes; then
4582 { { echo "$as_me:$LINENO: error: \"need strerror function\"" >&5
4583 echo "$as_me: error: \"need strerror function\"" >&2;}
4584 { (exit 1); exit 1; }; }
4592 ac_config_files="$ac_config_files $ac_output_file"
4593 ac_config_commands="$ac_config_commands default"
4594 cat >confcache <<\_ACEOF
4595 # This file is a shell script that caches the results of configure
4596 # tests run on this system so they can be shared between configure
4597 # scripts and configure runs, see configure's option --config-cache.
4598 # It is not useful on other systems. If it contains results you don't
4599 # want to keep, you may remove or edit it.
4601 # config.status only pays attention to the cache file if you give it
4602 # the --recheck option to rerun configure.
4604 # `ac_cv_env_foo' variables (set or unset) will be overriden when
4605 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4610 # The following way of writing the cache mishandles newlines in values,
4611 # but we know of no workaround that is simple, portable, and efficient.
4612 # So, don't put newlines in cache variables' values.
4613 # Ultrix sh set writes to stderr and can't be redirected directly,
4614 # and sets the high bit in the cache file unless we assign to the vars.
4617 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4619 # `set' does not quote correctly, so add quotes (double-quote
4620 # substitution turns \\\\ into \\, and sed turns \\ into \).
4623 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4626 # `set' quotes correctly as required by POSIX, so do not add quotes.
4628 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4635 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4637 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4639 if cmp -s $cache_file confcache; then :; else
4640 if test -w $cache_file; then
4641 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4642 cat confcache >$cache_file
4644 echo "not updating unwritable cache $cache_file"
4649 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4650 # Let make expand exec_prefix.
4651 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4653 # VPATH may cause trouble with some makes, so we remove $(srcdir),
4654 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
4655 # trailing colons and then remove the whole line if VPATH becomes empty
4656 # (actually we leave an empty line to preserve line numbers).
4657 if test "x$srcdir" = x.; then
4658 ac_vpsub='/^[ ]*VPATH[ ]*=/{
4659 s/:*\$(srcdir):*/:/;
4660 s/:*\${srcdir}:*/:/;
4662 s/^\([^=]*=[ ]*\):*/\1/;
4668 DEFS=-DHAVE_CONFIG_H
4671 : ${CONFIG_STATUS=./config.status}
4672 ac_clean_files_save=$ac_clean_files
4673 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4674 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
4675 echo "$as_me: creating $CONFIG_STATUS" >&6;}
4676 cat >$CONFIG_STATUS <<_ACEOF
4678 # Generated by $as_me.
4679 # Run this file to recreate the current configuration.
4680 # Compiler output produced by configure, useful for debugging
4681 # configure, is in config.log if it exists.
4684 SHELL=\${CONFIG_SHELL-$SHELL}
4687 cat >>$CONFIG_STATUS <<\_ACEOF
4689 ## --------------------- ##
4690 ## M4sh Initialization. ##
4691 ## --------------------- ##
4693 # Be Bourne compatible
4694 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
4697 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
4702 # Support unset when possible.
4703 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
4709 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
4710 { $as_unset LANG || test "${LANG+set}" != set; } ||
4711 { LANG=C; export LANG; }
4712 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
4713 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
4714 { LC_ALL=C; export LC_ALL; }
4715 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
4716 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
4717 { LC_TIME=C; export LC_TIME; }
4718 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
4719 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
4720 { LC_CTYPE=C; export LC_CTYPE; }
4721 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
4722 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
4723 { LANGUAGE=C; export LANGUAGE; }
4724 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
4725 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
4726 { LC_COLLATE=C; export LC_COLLATE; }
4727 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
4728 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
4729 { LC_NUMERIC=C; export LC_NUMERIC; }
4730 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
4731 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
4732 { LC_MESSAGES=C; export LC_MESSAGES; }
4735 # Name of the executable.
4736 as_me=`(basename "$0") 2>/dev/null ||
4737 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4738 X"$0" : 'X\(//\)$' \| \
4739 X"$0" : 'X\(/\)$' \| \
4740 . : '\(.\)' 2>/dev/null ||
4742 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
4743 /^X\/\(\/\/\)$/{ s//\1/; q; }
4744 /^X\/\(\/\).*/{ s//\1/; q; }
4747 # PATH needs CR, and LINENO needs CR and PATH.
4748 # Avoid depending upon Character Ranges.
4749 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
4750 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4751 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
4752 as_cr_digits='0123456789'
4753 as_cr_alnum=$as_cr_Letters$as_cr_digits
4755 # The user is always right.
4756 if test "${PATH_SEPARATOR+set}" != set; then
4757 echo "#! /bin/sh" >conftest.sh
4758 echo "exit 0" >>conftest.sh
4759 chmod +x conftest.sh
4760 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
4771 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4772 test "x$as_lineno_1" != "x$as_lineno_2" &&
4773 test "x$as_lineno_3" = "x$as_lineno_2" || {
4774 # Find who we are. Look in the path if we contain no path at all
4777 *[\\/]* ) as_myself=$0 ;;
4778 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4782 test -z "$as_dir" && as_dir=.
4783 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4788 # We did not find ourselves, most probably we were run as `sh COMMAND'
4789 # in which case we are not to be found in the path.
4790 if test "x$as_myself" = x; then
4793 if test ! -f "$as_myself"; then
4794 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
4795 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
4796 { (exit 1); exit 1; }; }
4798 case $CONFIG_SHELL in
4800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4801 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
4804 test -z "$as_dir" && as_dir=.
4805 for as_base in sh bash ksh sh5; do
4808 if ("$as_dir/$as_base" -c '
4811 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4812 test "x$as_lineno_1" != "x$as_lineno_2" &&
4813 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
4814 CONFIG_SHELL=$as_dir/$as_base
4816 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
4824 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
4825 # uniformly replaced by the line number. The first 'sed' inserts a
4826 # line-number line before each line; the second 'sed' does the real
4827 # work. The second script uses 'N' to pair each line-number line
4828 # with the numbered line, and appends trailing '-' during
4829 # substitution so that $LINENO is not a special case at line end.
4830 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
4831 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
4832 sed '=' <$as_myself |
4837 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
4840 s,^['$as_cr_digits']*\n,,
4842 chmod +x $as_me.lineno ||
4843 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
4844 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
4845 { (exit 1); exit 1; }; }
4847 # Don't try to exec as it changes $[0], causing all sort of problems
4848 # (the dirname of $[0] is not the place where we might find the
4849 # original and so on. Autoconf is especially sensible to this).
4851 # Exit status is that of the last command.
4856 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
4857 *c*,-n*) ECHO_N= ECHO_C='
4859 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
4860 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
4863 if expr a : '\(a\)' >/dev/null 2>&1; then
4869 rm -f conf$$ conf$$.exe conf$$.file
4871 if ln -s conf$$.file conf$$ 2>/dev/null; then
4872 # We could just check for DJGPP; but this test a) works b) is more generic
4873 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
4874 if test -f conf$$.exe; then
4875 # Don't use ln at all; we don't have any links
4880 elif ln conf$$.file conf$$ 2>/dev/null; then
4885 rm -f conf$$ conf$$.exe conf$$.file
4887 as_executable_p="test -f"
4889 # Sed expression to map a string onto a valid CPP name.
4890 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
4892 # Sed expression to map a string onto a valid variable name.
4893 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
4897 # We need space, tab and new line, in precisely that order.
4903 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
4907 # Open the log real soon, to keep \$[0] and so on meaningful, and to
4908 # report actual input values of CONFIG_FILES etc. instead of their
4909 # values after options handling. Logging --version etc. is OK.
4913 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4914 ## Running $as_me. ##
4919 This file was extended by libfirm $as_me 0.3.0, which was
4920 generated by GNU Autoconf 2.53. Invocation command line was
4922 CONFIG_FILES = $CONFIG_FILES
4923 CONFIG_HEADERS = $CONFIG_HEADERS
4924 CONFIG_LINKS = $CONFIG_LINKS
4925 CONFIG_COMMANDS = $CONFIG_COMMANDS
4929 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
4933 # Files that config.status was made for.
4934 if test -n "$ac_config_files"; then
4935 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
4938 if test -n "$ac_config_headers"; then
4939 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
4942 if test -n "$ac_config_links"; then
4943 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
4946 if test -n "$ac_config_commands"; then
4947 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
4950 cat >>$CONFIG_STATUS <<\_ACEOF
4953 \`$as_me' instantiates files from templates according to the
4954 current configuration.
4956 Usage: $0 [OPTIONS] [FILE]...
4958 -h, --help print this help, then exit
4959 -V, --version print version number, then exit
4960 -d, --debug don't remove temporary files
4961 --recheck update $as_me by reconfiguring in the same conditions
4962 --file=FILE[:TEMPLATE]
4963 instantiate the configuration file FILE
4964 --header=FILE[:TEMPLATE]
4965 instantiate the configuration header FILE
4967 Configuration files:
4970 Configuration headers:
4973 Configuration commands:
4976 Report bugs to <bug-autoconf@gnu.org>."
4979 cat >>$CONFIG_STATUS <<_ACEOF
4981 libfirm config.status 0.3.0
4982 configured by $0, generated by GNU Autoconf 2.53,
4983 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
4985 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
4986 Free Software Foundation, Inc.
4987 This config.status script is free software; the Free Software Foundation
4988 gives unlimited permission to copy, distribute and modify it."
4993 cat >>$CONFIG_STATUS <<\_ACEOF
4994 # If no file are specified by the user, then we need to provide default
4995 # value. By we need to know if files were specified by the user.
5001 ac_option=`expr "x$1" : 'x\([^=]*\)='`
5002 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
5004 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
5008 *) # This is not an option, so the user has probably given explicit
5010 ac_need_defaults=false;;
5014 # Handling of the options.
5016 cat >>$CONFIG_STATUS <<_ACEOF
5017 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5018 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
5019 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
5021 cat >>$CONFIG_STATUS <<\_ACEOF
5022 --version | --vers* | -V )
5023 echo "$ac_cs_version"; exit 0 ;;
5025 # Conflict between --help and --header
5026 { { echo "$as_me:$LINENO: error: ambiguous option: $1
5027 Try \`$0 --help' for more information." >&5
5028 echo "$as_me: error: ambiguous option: $1
5029 Try \`$0 --help' for more information." >&2;}
5030 { (exit 1); exit 1; }; };;
5031 --help | --hel | -h )
5032 echo "$ac_cs_usage"; exit 0 ;;
5033 --debug | --d* | -d )
5035 --file | --fil | --fi | --f )
5037 CONFIG_FILES="$CONFIG_FILES $1"
5038 ac_need_defaults=false;;
5039 --header | --heade | --head | --hea )
5041 CONFIG_HEADERS="$CONFIG_HEADERS $1"
5042 ac_need_defaults=false;;
5045 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
5046 Try \`$0 --help' for more information." >&5
5047 echo "$as_me: error: unrecognized option: $1
5048 Try \`$0 --help' for more information." >&2;}
5049 { (exit 1); exit 1; }; } ;;
5051 *) ac_config_targets="$ac_config_targets $1" ;;
5063 cat >>$CONFIG_STATUS <<\_ACEOF
5064 for ac_config_target in $ac_config_targets
5066 case "$ac_config_target" in
5067 # Handling of arguments.
5068 "$ac_output_file" ) CONFIG_FILES="$CONFIG_FILES $ac_output_file" ;;
5069 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
5070 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
5071 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
5072 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
5073 { (exit 1); exit 1; }; };;
5077 # If the user did not use the arguments to specify the items to instantiate,
5078 # then the envvar interface is used. Set only those that are not.
5079 # We use the long form for the default assignment because of an extremely
5080 # bizarre bug on SunOS 4.1.3.
5081 if $ac_need_defaults; then
5082 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5083 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5084 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
5087 # Create a temporary directory, and hook for its removal unless debugging.
5090 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
5091 trap '{ (exit 1); exit 1; }' 1 2 13 15
5094 # Create a (secure) tmp directory for tmp files.
5097 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
5098 test -n "$tmp" && test -d "$tmp"
5101 tmp=$TMPDIR/cs$$-$RANDOM
5102 (umask 077 && mkdir $tmp)
5105 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
5106 { (exit 1); exit 1; }
5111 cat >>$CONFIG_STATUS <<_ACEOF
5114 # CONFIG_FILES section.
5117 # No need to generate the scripts if there are no CONFIG_FILES.
5118 # This happens for instance when ./config.status config.h
5119 if test -n "\$CONFIG_FILES"; then
5120 # Protect against being on the right side of a sed subst in config.status.
5121 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
5122 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
5123 s,@SHELL@,$SHELL,;t t
5124 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
5125 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
5126 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
5127 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
5128 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
5129 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
5130 s,@exec_prefix@,$exec_prefix,;t t
5131 s,@prefix@,$prefix,;t t
5132 s,@program_transform_name@,$program_transform_name,;t t
5133 s,@bindir@,$bindir,;t t
5134 s,@sbindir@,$sbindir,;t t
5135 s,@libexecdir@,$libexecdir,;t t
5136 s,@datadir@,$datadir,;t t
5137 s,@sysconfdir@,$sysconfdir,;t t
5138 s,@sharedstatedir@,$sharedstatedir,;t t
5139 s,@localstatedir@,$localstatedir,;t t
5140 s,@libdir@,$libdir,;t t
5141 s,@includedir@,$includedir,;t t
5142 s,@oldincludedir@,$oldincludedir,;t t
5143 s,@infodir@,$infodir,;t t
5144 s,@mandir@,$mandir,;t t
5145 s,@build_alias@,$build_alias,;t t
5146 s,@host_alias@,$host_alias,;t t
5147 s,@target_alias@,$target_alias,;t t
5149 s,@ECHO_C@,$ECHO_C,;t t
5150 s,@ECHO_N@,$ECHO_N,;t t
5151 s,@ECHO_T@,$ECHO_T,;t t
5153 s,@libfirm_conf_env@,$libfirm_conf_env,;t t
5154 s,@enable_debug_libfirm@,$enable_debug_libfirm,;t t
5155 s,@enable_profile_libfirm@,$enable_profile_libfirm,;t t
5156 s,@enable_auto_documentation@,$enable_auto_documentation,;t t
5157 s,@enable_firm_jni@,$enable_firm_jni,;t t
5158 s,@enable_heapanalysis@,$enable_heapanalysis,;t t
5159 s,@enable_backend@,$enable_backend,;t t
5160 s,@disable_libiberty@,$disable_libiberty,;t t
5161 s,@enable_statistics@,$enable_statistics,;t t
5162 s,@enable_libcore@,$enable_libcore,;t t
5163 s,@enable_external_effects@,$enable_external_effects,;t t
5165 s,@CFLAGS@,$CFLAGS,;t t
5166 s,@LDFLAGS@,$LDFLAGS,;t t
5167 s,@CPPFLAGS@,$CPPFLAGS,;t t
5168 s,@ac_ct_CC@,$ac_ct_CC,;t t
5169 s,@EXEEXT@,$EXEEXT,;t t
5170 s,@OBJEXT@,$OBJEXT,;t t
5172 s,@ac_ct_LD@,$ac_ct_LD,;t t
5173 s,@libfirm_cv_prog_ld_r@,$libfirm_cv_prog_ld_r,;t t
5176 s,@RANLIB@,$RANLIB,;t t
5177 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
5178 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
5179 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
5180 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
5182 s,@DOXYGEN@,$DOXYGEN,;t t
5184 s,@JAVAC@,$JAVAC,;t t
5185 s,@JAVAH@,$JAVAH,;t t
5191 cat >>$CONFIG_STATUS <<\_ACEOF
5192 # Split the substitutions into bite-sized pieces for seds with
5193 # small command number limits, like on Digital OSF/1 and HP-UX.
5195 ac_sed_frag=1 # Number of current file.
5196 ac_beg=1 # First line for current file.
5197 ac_end=$ac_max_sed_lines # Line after last line for current file.
5200 while $ac_more_lines; do
5201 if test $ac_beg -gt 1; then
5202 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5204 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5206 if test ! -s $tmp/subs.frag; then
5209 # The purpose of the label and of the branching condition is to
5210 # speed up the sed processing (if there are no `@' at all, there
5211 # is no need to browse any of the substitutions).
5212 # These are the two extra sed commands mentioned above.
5214 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
5215 if test -z "$ac_sed_cmds"; then
5216 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
5218 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
5220 ac_sed_frag=`expr $ac_sed_frag + 1`
5222 ac_end=`expr $ac_end + $ac_max_sed_lines`
5225 if test -z "$ac_sed_cmds"; then
5228 fi # test -n "$CONFIG_FILES"
5231 cat >>$CONFIG_STATUS <<\_ACEOF
5232 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
5233 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5235 - | *:- | *:-:* ) # input from stdin
5237 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5238 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5239 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5240 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5241 * ) ac_file_in=$ac_file.in ;;
5244 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
5245 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
5246 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5247 X"$ac_file" : 'X\(//\)[^/]' \| \
5248 X"$ac_file" : 'X\(//\)$' \| \
5249 X"$ac_file" : 'X\(/\)' \| \
5250 . : '\(.\)' 2>/dev/null ||
5252 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5253 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5254 /^X\(\/\/\)$/{ s//\1/; q; }
5255 /^X\(\/\).*/{ s//\1/; q; }
5258 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
5262 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
5263 case $as_mkdir_dir in
5264 # Skip DOS drivespec
5265 ?:) as_incr_dir=$as_mkdir_dir ;;
5267 as_incr_dir=$as_incr_dir/$as_mkdir_dir
5268 test -d "$as_incr_dir" ||
5269 mkdir "$as_incr_dir" ||
5270 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
5271 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
5272 { (exit 1); exit 1; }; }
5279 if test "$ac_dir" != .; then
5280 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5281 # A "../" for each directory in $ac_dir_suffix.
5282 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
5284 ac_dir_suffix= ac_top_builddir=
5288 .) # No --srcdir option. We are building in place.
5290 if test -z "$ac_top_builddir"; then
5293 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
5295 [\\/]* | ?:[\\/]* ) # Absolute path.
5296 ac_srcdir=$srcdir$ac_dir_suffix;
5297 ac_top_srcdir=$srcdir ;;
5299 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
5300 ac_top_srcdir=$ac_top_builddir$srcdir ;;
5302 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
5304 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
5305 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
5306 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
5307 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
5311 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5312 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
5315 if test x"$ac_file" != x-; then
5316 { echo "$as_me:$LINENO: creating $ac_file" >&5
5317 echo "$as_me: creating $ac_file" >&6;}
5320 # Let's still pretend it is `configure' which instantiates (i.e., don't
5321 # use $as_me), people would be surprised to read:
5322 # /* config.h. Generated by config.status. */
5323 if test x"$ac_file" = x-; then
5326 configure_input="$ac_file. "
5328 configure_input=$configure_input"Generated from `echo $ac_file_in |
5329 sed 's,.*/,,'` by configure."
5331 # First look for the input files in the build tree, otherwise in the
5333 ac_file_inputs=`IFS=:
5334 for f in $ac_file_in; do
5336 -) echo $tmp/stdin ;;
5338 # Absolute (can't be DOS-style, as IFS=:)
5339 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5340 echo "$as_me: error: cannot find input file: $f" >&2;}
5341 { (exit 1); exit 1; }; }
5344 if test -f "$f"; then
5347 elif test -f "$srcdir/$f"; then
5352 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5353 echo "$as_me: error: cannot find input file: $f" >&2;}
5354 { (exit 1); exit 1; }; }
5357 done` || { (exit 1); exit 1; }
5359 cat >>$CONFIG_STATUS <<_ACEOF
5363 cat >>$CONFIG_STATUS <<\_ACEOF
5365 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5366 s,@configure_input@,$configure_input,;t t
5367 s,@srcdir@,$ac_srcdir,;t t
5368 s,@abs_srcdir@,$ac_abs_srcdir,;t t
5369 s,@top_srcdir@,$ac_top_srcdir,;t t
5370 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
5371 s,@builddir@,$ac_builddir,;t t
5372 s,@abs_builddir@,$ac_abs_builddir,;t t
5373 s,@top_builddir@,$ac_top_builddir,;t t
5374 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
5375 s,@INSTALL@,$ac_INSTALL,;t t
5376 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
5378 if test x"$ac_file" != x-; then
5379 mv $tmp/out $ac_file
5387 cat >>$CONFIG_STATUS <<\_ACEOF
5390 # CONFIG_HEADER section.
5393 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5394 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5396 # ac_d sets the value in "#define NAME VALUE" lines.
5397 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5398 ac_dB='[ ].*$,\1#\2'
5401 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5402 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5403 ac_uB='$,\1#\2define\3'
5407 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
5408 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5410 - | *:- | *:-:* ) # input from stdin
5412 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5413 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5414 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5415 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5416 * ) ac_file_in=$ac_file.in ;;
5419 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
5420 echo "$as_me: creating $ac_file" >&6;}
5422 # First look for the input files in the build tree, otherwise in the
5424 ac_file_inputs=`IFS=:
5425 for f in $ac_file_in; do
5427 -) echo $tmp/stdin ;;
5429 # Absolute (can't be DOS-style, as IFS=:)
5430 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5431 echo "$as_me: error: cannot find input file: $f" >&2;}
5432 { (exit 1); exit 1; }; }
5435 if test -f "$f"; then
5438 elif test -f "$srcdir/$f"; then
5443 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5444 echo "$as_me: error: cannot find input file: $f" >&2;}
5445 { (exit 1); exit 1; }; }
5448 done` || { (exit 1); exit 1; }
5449 # Remove the trailing spaces.
5450 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
5454 # Transform confdefs.h into two sed scripts, `conftest.defines' and
5455 # `conftest.undefs', that substitutes the proper values into
5456 # config.h.in to produce config.h. The first handles `#define'
5457 # templates, and the second `#undef' templates.
5458 # And first: Protect against being on the right side of a sed subst in
5459 # config.status. Protect against being in an unquoted here document
5461 rm -f conftest.defines conftest.undefs
5462 # Using a here document instead of a string reduces the quoting nightmare.
5463 # Putting comments in sed scripts is not portable.
5465 # `end' is used to avoid that the second main sed command (meant for
5466 # 0-ary CPP macros) applies to n-ary macro definitions.
5467 # See the Autoconf documentation for `clear'.
5468 cat >confdef2sed.sed <<\_ACEOF
5473 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
5475 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
5478 # If some macros were called several times there might be several times
5479 # the same #defines, which is useless. Nevertheless, we may not want to
5480 # sort them, since we want the *last* AC-DEFINE to be honored.
5481 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
5482 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
5483 rm -f confdef2sed.sed
5485 # This sed command replaces #undef with comments. This is necessary, for
5486 # example, in the case of _POSIX_SOURCE, which is predefined and required
5487 # on some systems where configure will not decide to define it.
5488 cat >>conftest.undefs <<\_ACEOF
5489 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
5492 # Break up conftest.defines because some shells have a limit on the size
5493 # of here documents, and old seds have small limits too (100 cmds).
5494 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
5495 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
5496 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
5497 echo ' :' >>$CONFIG_STATUS
5499 while grep . conftest.defines >/dev/null
5501 # Write a limited-size here document to $tmp/defines.sed.
5502 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
5503 # Speed up: don't consider the non `#define' lines.
5504 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
5505 # Work around the forget-to-reset-the-flag bug.
5506 echo 't clr' >>$CONFIG_STATUS
5507 echo ': clr' >>$CONFIG_STATUS
5508 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
5510 sed -f $tmp/defines.sed $tmp/in >$tmp/out
5514 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
5515 rm -f conftest.defines
5516 mv conftest.tail conftest.defines
5518 rm -f conftest.defines
5519 echo ' fi # egrep' >>$CONFIG_STATUS
5520 echo >>$CONFIG_STATUS
5522 # Break up conftest.undefs because some shells have a limit on the size
5523 # of here documents, and old seds have small limits too (100 cmds).
5524 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
5526 while grep . conftest.undefs >/dev/null
5528 # Write a limited-size here document to $tmp/undefs.sed.
5529 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
5530 # Speed up: don't consider the non `#undef'
5531 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
5532 # Work around the forget-to-reset-the-flag bug.
5533 echo 't clr' >>$CONFIG_STATUS
5534 echo ': clr' >>$CONFIG_STATUS
5535 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
5537 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
5541 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
5542 rm -f conftest.undefs
5543 mv conftest.tail conftest.undefs
5545 rm -f conftest.undefs
5547 cat >>$CONFIG_STATUS <<\_ACEOF
5548 # Let's still pretend it is `configure' which instantiates (i.e., don't
5549 # use $as_me), people would be surprised to read:
5550 # /* config.h. Generated by config.status. */
5551 if test x"$ac_file" = x-; then
5552 echo "/* Generated by configure. */" >$tmp/config.h
5554 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
5556 cat $tmp/in >>$tmp/config.h
5558 if test x"$ac_file" != x-; then
5559 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
5560 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
5561 echo "$as_me: $ac_file is unchanged" >&6;}
5563 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
5564 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5565 X"$ac_file" : 'X\(//\)[^/]' \| \
5566 X"$ac_file" : 'X\(//\)$' \| \
5567 X"$ac_file" : 'X\(/\)' \| \
5568 . : '\(.\)' 2>/dev/null ||
5570 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5571 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5572 /^X\(\/\/\)$/{ s//\1/; q; }
5573 /^X\(\/\).*/{ s//\1/; q; }
5576 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
5580 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
5581 case $as_mkdir_dir in
5582 # Skip DOS drivespec
5583 ?:) as_incr_dir=$as_mkdir_dir ;;
5585 as_incr_dir=$as_incr_dir/$as_mkdir_dir
5586 test -d "$as_incr_dir" ||
5587 mkdir "$as_incr_dir" ||
5588 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
5589 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
5590 { (exit 1); exit 1; }; }
5596 mv $tmp/config.h $ac_file
5604 cat >>$CONFIG_STATUS <<\_ACEOF
5607 # CONFIG_COMMANDS section.
5609 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
5610 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
5611 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
5612 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
5613 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5614 X"$ac_dest" : 'X\(//\)[^/]' \| \
5615 X"$ac_dest" : 'X\(//\)$' \| \
5616 X"$ac_dest" : 'X\(/\)' \| \
5617 . : '\(.\)' 2>/dev/null ||
5619 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5620 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5621 /^X\(\/\/\)$/{ s//\1/; q; }
5622 /^X\(\/\).*/{ s//\1/; q; }
5626 if test "$ac_dir" != .; then
5627 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5628 # A "../" for each directory in $ac_dir_suffix.
5629 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
5631 ac_dir_suffix= ac_top_builddir=
5635 .) # No --srcdir option. We are building in place.
5637 if test -z "$ac_top_builddir"; then
5640 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
5642 [\\/]* | ?:[\\/]* ) # Absolute path.
5643 ac_srcdir=$srcdir$ac_dir_suffix;
5644 ac_top_srcdir=$srcdir ;;
5646 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
5647 ac_top_srcdir=$ac_top_builddir$srcdir ;;
5649 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
5651 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
5652 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
5653 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
5654 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
5657 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
5658 echo "$as_me: executing $ac_dest commands" >&6;}
5660 default ) touch stamp-h ;;
5665 cat >>$CONFIG_STATUS <<\_ACEOF
5667 { (exit 0); exit 0; }
5669 chmod +x $CONFIG_STATUS
5670 ac_clean_files=$ac_clean_files_save
5673 # configure is writing to config.log, and then calls config.status.
5674 # config.status does its own redirection, appending to config.log.
5675 # Unfortunately, on DOS this fails, as config.log is still kept open
5676 # by configure, so config.status won't be able to write to it; its
5677 # output is simply discarded. So we exec the FD to /dev/null,
5678 # effectively closing config.log, so it can be properly (re)opened and
5679 # appended to by config.status. When coming back to configure, we
5680 # need to make the FD available again.
5681 if test "$no_create" != yes; then
5684 $SHELL $CONFIG_STATUS || ac_cs_success=false
5686 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5687 # would make configure fail if this is the last instruction.
5688 $ac_cs_success || { (exit 1); exit 1; }
5692 gawk -f $CONF_DIR_NAME/filter.awk < config.h | sed -f $CONF_DIR_NAME/filter.sed > ir/config/firm_config.h