2 # From configure.in Id: configure.in.
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.53 for libfirm 0.3.0.
6 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
7 # Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
11 if expr a : '\(a\)' >/dev/null 2>&1; then
18 ## --------------------- ##
19 ## M4sh Initialization. ##
20 ## --------------------- ##
22 # Be Bourne compatible
23 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
26 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
31 # Support unset when possible.
32 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
38 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
39 { $as_unset LANG || test "${LANG+set}" != set; } ||
40 { LANG=C; export LANG; }
41 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
42 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
43 { LC_ALL=C; export LC_ALL; }
44 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
45 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
46 { LC_TIME=C; export LC_TIME; }
47 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
48 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
49 { LC_CTYPE=C; export LC_CTYPE; }
50 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
51 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
52 { LANGUAGE=C; export LANGUAGE; }
53 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
54 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
55 { LC_COLLATE=C; export LC_COLLATE; }
56 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
57 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
58 { LC_NUMERIC=C; export LC_NUMERIC; }
59 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
60 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
61 { LC_MESSAGES=C; export LC_MESSAGES; }
64 # Name of the executable.
65 as_me=`(basename "$0") 2>/dev/null ||
66 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
67 X"$0" : 'X\(//\)$' \| \
68 X"$0" : 'X\(/\)$' \| \
69 . : '\(.\)' 2>/dev/null ||
71 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
72 /^X\/\(\/\/\)$/{ s//\1/; q; }
73 /^X\/\(\/\).*/{ s//\1/; q; }
76 # PATH needs CR, and LINENO needs CR and PATH.
77 # Avoid depending upon Character Ranges.
78 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
79 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
80 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
81 as_cr_digits='0123456789'
82 as_cr_alnum=$as_cr_Letters$as_cr_digits
84 # The user is always right.
85 if test "${PATH_SEPARATOR+set}" != set; then
86 echo "#! /bin/sh" >conftest.sh
87 echo "exit 0" >>conftest.sh
89 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
100 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
101 test "x$as_lineno_1" != "x$as_lineno_2" &&
102 test "x$as_lineno_3" = "x$as_lineno_2" || {
103 # Find who we are. Look in the path if we contain no path at all
106 *[\\/]* ) as_myself=$0 ;;
107 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
111 test -z "$as_dir" && as_dir=.
112 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117 # We did not find ourselves, most probably we were run as `sh COMMAND'
118 # in which case we are not to be found in the path.
119 if test "x$as_myself" = x; then
122 if test ! -f "$as_myself"; then
123 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
124 { (exit 1); exit 1; }; }
126 case $CONFIG_SHELL in
128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
129 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 test -z "$as_dir" && as_dir=.
133 for as_base in sh bash ksh sh5; do
136 if ("$as_dir/$as_base" -c '
139 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
140 test "x$as_lineno_1" != "x$as_lineno_2" &&
141 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
142 CONFIG_SHELL=$as_dir/$as_base
144 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
152 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
153 # uniformly replaced by the line number. The first 'sed' inserts a
154 # line-number line before each line; the second 'sed' does the real
155 # work. The second script uses 'N' to pair each line-number line
156 # with the numbered line, and appends trailing '-' during
157 # substitution so that $LINENO is not a special case at line end.
158 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
159 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
160 sed '=' <$as_myself |
165 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
168 s,^['$as_cr_digits']*\n,,
170 chmod +x $as_me.lineno ||
171 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
172 { (exit 1); exit 1; }; }
174 # Don't try to exec as it changes $[0], causing all sort of problems
175 # (the dirname of $[0] is not the place where we might find the
176 # original and so on. Autoconf is especially sensible to this).
178 # Exit status is that of the last command.
183 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
184 *c*,-n*) ECHO_N= ECHO_C='
186 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
187 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
190 if expr a : '\(a\)' >/dev/null 2>&1; then
196 rm -f conf$$ conf$$.exe conf$$.file
198 if ln -s conf$$.file conf$$ 2>/dev/null; then
199 # We could just check for DJGPP; but this test a) works b) is more generic
200 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
201 if test -f conf$$.exe; then
202 # Don't use ln at all; we don't have any links
207 elif ln conf$$.file conf$$ 2>/dev/null; then
212 rm -f conf$$ conf$$.exe conf$$.file
214 as_executable_p="test -f"
216 # Sed expression to map a string onto a valid CPP name.
217 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
219 # Sed expression to map a string onto a valid variable name.
220 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
224 # We need space, tab and new line, in precisely that order.
230 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
234 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
235 # so uname gets run too.
236 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
243 ac_default_prefix=/usr/local
248 SHELL=${CONFIG_SHELL-/bin/sh}
250 # Maximum number of lines to put in a shell here document.
251 # This variable seems obsolete. It should probably be removed, and
252 # only ac_max_sed_lines should be used.
253 : ${ac_max_here_lines=38}
255 # Identity of this package.
256 PACKAGE_NAME='libfirm'
257 PACKAGE_TARNAME='libfirm'
258 PACKAGE_VERSION='0.3.0'
259 PACKAGE_STRING='libfirm 0.3.0'
262 # Factoring default headers for most tests.
263 ac_includes_default="\
266 # include <sys/types.h>
269 # include <sys/stat.h>
280 # if !STDC_HEADERS && HAVE_MEMORY_H
286 # include <strings.h>
289 # include <inttypes.h>
300 # Initialize some variables set by options.
302 ac_init_version=false
303 # The variables have the same names as the options, with
304 # dashes changed to underlines.
312 program_transform_name=s,x,x,
320 # Installation directory options.
321 # These are left unexpanded so users can "make install exec_prefix=/foo"
322 # and all the variables that are supposed to be based on exec_prefix
323 # by default will actually change.
324 # Use braces instead of parens because sh, perl, etc. also accept them.
325 bindir='${exec_prefix}/bin'
326 sbindir='${exec_prefix}/sbin'
327 libexecdir='${exec_prefix}/libexec'
328 datadir='${prefix}/share'
329 sysconfdir='${prefix}/etc'
330 sharedstatedir='${prefix}/com'
331 localstatedir='${prefix}/var'
332 libdir='${exec_prefix}/lib'
333 includedir='${prefix}/include'
334 oldincludedir='/usr/include'
335 infodir='${prefix}/info'
336 mandir='${prefix}/man'
341 # If the previous option needs an argument, assign it.
342 if test -n "$ac_prev"; then
343 eval "$ac_prev=\$ac_option"
348 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
350 # Accept the important Cygnus configure options, so we can diagnose typos.
354 -bindir | --bindir | --bindi | --bind | --bin | --bi)
356 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
359 -build | --build | --buil | --bui | --bu)
360 ac_prev=build_alias ;;
361 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
362 build_alias=$ac_optarg ;;
364 -cache-file | --cache-file | --cache-fil | --cache-fi \
365 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
366 ac_prev=cache_file ;;
367 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
368 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
369 cache_file=$ac_optarg ;;
372 cache_file=config.cache ;;
374 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
376 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
378 datadir=$ac_optarg ;;
380 -disable-* | --disable-*)
381 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
382 # Reject names that are not valid shell variable names.
383 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
384 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
385 { (exit 1); exit 1; }; }
386 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
387 eval "enable_$ac_feature=no" ;;
389 -enable-* | --enable-*)
390 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
391 # Reject names that are not valid shell variable names.
392 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
393 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
394 { (exit 1); exit 1; }; }
395 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
397 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
400 eval "enable_$ac_feature='$ac_optarg'" ;;
402 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
403 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
404 | --exec | --exe | --ex)
405 ac_prev=exec_prefix ;;
406 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
407 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
408 | --exec=* | --exe=* | --ex=*)
409 exec_prefix=$ac_optarg ;;
411 -gas | --gas | --ga | --g)
412 # Obsolete; use --with-gas.
415 -help | --help | --hel | --he | -h)
417 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
418 ac_init_help=recursive ;;
419 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
420 ac_init_help=short ;;
422 -host | --host | --hos | --ho)
423 ac_prev=host_alias ;;
424 -host=* | --host=* | --hos=* | --ho=*)
425 host_alias=$ac_optarg ;;
427 -includedir | --includedir | --includedi | --included | --include \
428 | --includ | --inclu | --incl | --inc)
429 ac_prev=includedir ;;
430 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
431 | --includ=* | --inclu=* | --incl=* | --inc=*)
432 includedir=$ac_optarg ;;
434 -infodir | --infodir | --infodi | --infod | --info | --inf)
436 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
437 infodir=$ac_optarg ;;
439 -libdir | --libdir | --libdi | --libd)
441 -libdir=* | --libdir=* | --libdi=* | --libd=*)
444 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
445 | --libexe | --libex | --libe)
446 ac_prev=libexecdir ;;
447 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
448 | --libexe=* | --libex=* | --libe=*)
449 libexecdir=$ac_optarg ;;
451 -localstatedir | --localstatedir | --localstatedi | --localstated \
452 | --localstate | --localstat | --localsta | --localst \
453 | --locals | --local | --loca | --loc | --lo)
454 ac_prev=localstatedir ;;
455 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
456 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
457 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
458 localstatedir=$ac_optarg ;;
460 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
462 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
466 # Obsolete; use --without-fp.
469 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
470 | --no-cr | --no-c | -n)
473 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
474 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
477 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
478 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
479 | --oldin | --oldi | --old | --ol | --o)
480 ac_prev=oldincludedir ;;
481 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
482 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
483 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
484 oldincludedir=$ac_optarg ;;
486 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
488 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
491 -program-prefix | --program-prefix | --program-prefi | --program-pref \
492 | --program-pre | --program-pr | --program-p)
493 ac_prev=program_prefix ;;
494 -program-prefix=* | --program-prefix=* | --program-prefi=* \
495 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
496 program_prefix=$ac_optarg ;;
498 -program-suffix | --program-suffix | --program-suffi | --program-suff \
499 | --program-suf | --program-su | --program-s)
500 ac_prev=program_suffix ;;
501 -program-suffix=* | --program-suffix=* | --program-suffi=* \
502 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
503 program_suffix=$ac_optarg ;;
505 -program-transform-name | --program-transform-name \
506 | --program-transform-nam | --program-transform-na \
507 | --program-transform-n | --program-transform- \
508 | --program-transform | --program-transfor \
509 | --program-transfo | --program-transf \
510 | --program-trans | --program-tran \
511 | --progr-tra | --program-tr | --program-t)
512 ac_prev=program_transform_name ;;
513 -program-transform-name=* | --program-transform-name=* \
514 | --program-transform-nam=* | --program-transform-na=* \
515 | --program-transform-n=* | --program-transform-=* \
516 | --program-transform=* | --program-transfor=* \
517 | --program-transfo=* | --program-transf=* \
518 | --program-trans=* | --program-tran=* \
519 | --progr-tra=* | --program-tr=* | --program-t=*)
520 program_transform_name=$ac_optarg ;;
522 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
523 | -silent | --silent | --silen | --sile | --sil)
526 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
528 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
530 sbindir=$ac_optarg ;;
532 -sharedstatedir | --sharedstatedir | --sharedstatedi \
533 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
534 | --sharedst | --shareds | --shared | --share | --shar \
536 ac_prev=sharedstatedir ;;
537 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
538 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
539 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
541 sharedstatedir=$ac_optarg ;;
543 -site | --site | --sit)
545 -site=* | --site=* | --sit=*)
548 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
550 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
553 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
554 | --syscon | --sysco | --sysc | --sys | --sy)
555 ac_prev=sysconfdir ;;
556 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
557 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
558 sysconfdir=$ac_optarg ;;
560 -target | --target | --targe | --targ | --tar | --ta | --t)
561 ac_prev=target_alias ;;
562 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
563 target_alias=$ac_optarg ;;
565 -v | -verbose | --verbose | --verbos | --verbo | --verb)
568 -version | --version | --versio | --versi | --vers | -V)
572 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
573 # Reject names that are not valid shell variable names.
574 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
575 { echo "$as_me: error: invalid package name: $ac_package" >&2
576 { (exit 1); exit 1; }; }
577 ac_package=`echo $ac_package| sed 's/-/_/g'`
579 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
582 eval "with_$ac_package='$ac_optarg'" ;;
584 -without-* | --without-*)
585 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
586 # Reject names that are not valid shell variable names.
587 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
588 { echo "$as_me: error: invalid package name: $ac_package" >&2
589 { (exit 1); exit 1; }; }
590 ac_package=`echo $ac_package | sed 's/-/_/g'`
591 eval "with_$ac_package=no" ;;
594 # Obsolete; use --with-x.
597 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
598 | --x-incl | --x-inc | --x-in | --x-i)
599 ac_prev=x_includes ;;
600 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
601 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
602 x_includes=$ac_optarg ;;
604 -x-libraries | --x-libraries | --x-librarie | --x-librari \
605 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
606 ac_prev=x_libraries ;;
607 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
608 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
609 x_libraries=$ac_optarg ;;
611 -*) { echo "$as_me: error: unrecognized option: $ac_option
612 Try \`$0 --help' for more information." >&2
613 { (exit 1); exit 1; }; }
617 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
618 # Reject names that are not valid shell variable names.
619 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
620 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
621 { (exit 1); exit 1; }; }
622 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
623 eval "$ac_envvar='$ac_optarg'"
627 # FIXME: should be removed in autoconf 3.0.
628 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
629 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
630 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
631 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
637 if test -n "$ac_prev"; then
638 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
639 { echo "$as_me: error: missing argument to $ac_option" >&2
640 { (exit 1); exit 1; }; }
643 # Be sure to have absolute paths.
644 for ac_var in exec_prefix prefix
646 eval ac_val=$`echo $ac_var`
648 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
649 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
650 { (exit 1); exit 1; }; };;
654 # Be sure to have absolute paths.
655 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
656 localstatedir libdir includedir oldincludedir infodir mandir
658 eval ac_val=$`echo $ac_var`
660 [\\/$]* | ?:[\\/]* ) ;;
661 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
662 { (exit 1); exit 1; }; };;
666 # There might be people who depend on the old broken behavior: `$host'
667 # used to hold the argument of --host etc.
668 # FIXME: To remove some day.
673 # FIXME: To remove some day.
674 if test "x$host_alias" != x; then
675 if test "x$build_alias" = x; then
676 cross_compiling=maybe
677 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
678 If a cross compiler is detected then cross compile mode will be used." >&2
679 elif test "x$build_alias" != "x$host_alias"; then
685 test -n "$host_alias" && ac_tool_prefix=$host_alias-
687 test "$silent" = yes && exec 6>/dev/null
690 # Find the source files, if location was not specified.
691 if test -z "$srcdir"; then
692 ac_srcdir_defaulted=yes
693 # Try the directory containing this script, then its parent.
694 ac_confdir=`(dirname "$0") 2>/dev/null ||
695 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
696 X"$0" : 'X\(//\)[^/]' \| \
697 X"$0" : 'X\(//\)$' \| \
698 X"$0" : 'X\(/\)' \| \
699 . : '\(.\)' 2>/dev/null ||
701 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
702 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
703 /^X\(\/\/\)$/{ s//\1/; q; }
704 /^X\(\/\).*/{ s//\1/; q; }
707 if test ! -r $srcdir/$ac_unique_file; then
711 ac_srcdir_defaulted=no
713 if test ! -r $srcdir/$ac_unique_file; then
714 if test "$ac_srcdir_defaulted" = yes; then
715 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
716 { (exit 1); exit 1; }; }
718 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
719 { (exit 1); exit 1; }; }
722 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
723 ac_env_build_alias_set=${build_alias+set}
724 ac_env_build_alias_value=$build_alias
725 ac_cv_env_build_alias_set=${build_alias+set}
726 ac_cv_env_build_alias_value=$build_alias
727 ac_env_host_alias_set=${host_alias+set}
728 ac_env_host_alias_value=$host_alias
729 ac_cv_env_host_alias_set=${host_alias+set}
730 ac_cv_env_host_alias_value=$host_alias
731 ac_env_target_alias_set=${target_alias+set}
732 ac_env_target_alias_value=$target_alias
733 ac_cv_env_target_alias_set=${target_alias+set}
734 ac_cv_env_target_alias_value=$target_alias
735 ac_env_CC_set=${CC+set}
737 ac_cv_env_CC_set=${CC+set}
738 ac_cv_env_CC_value=$CC
739 ac_env_CFLAGS_set=${CFLAGS+set}
740 ac_env_CFLAGS_value=$CFLAGS
741 ac_cv_env_CFLAGS_set=${CFLAGS+set}
742 ac_cv_env_CFLAGS_value=$CFLAGS
743 ac_env_LDFLAGS_set=${LDFLAGS+set}
744 ac_env_LDFLAGS_value=$LDFLAGS
745 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
746 ac_cv_env_LDFLAGS_value=$LDFLAGS
747 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
748 ac_env_CPPFLAGS_value=$CPPFLAGS
749 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
750 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
751 ac_env_CPP_set=${CPP+set}
752 ac_env_CPP_value=$CPP
753 ac_cv_env_CPP_set=${CPP+set}
754 ac_cv_env_CPP_value=$CPP
757 # Report the --help message.
759 if test "$ac_init_help" = "long"; then
760 # Omit some internal or obsolete options to make the list less imposing.
761 # This message is too long to be a string in the A/UX 3.1 sh.
763 \`configure' configures libfirm 0.3.0 to adapt to many kinds of systems.
765 Usage: $0 [OPTION]... [VAR=VALUE]...
767 To assign environment variables (e.g., CC, CFLAGS...), specify them as
768 VAR=VALUE. See below for descriptions of some of the useful variables.
770 Defaults for the options are specified in brackets.
773 -h, --help display this help and exit
774 --help=short display options specific to this package
775 --help=recursive display the short help of all the included packages
776 -V, --version display version information and exit
777 -q, --quiet, --silent do not print \`checking...' messages
778 --cache-file=FILE cache test results in FILE [disabled]
779 -C, --config-cache alias for \`--cache-file=config.cache'
780 -n, --no-create do not create output files
781 --srcdir=DIR find the sources in DIR [configure dir or \`..']
786 Installation directories:
787 --prefix=PREFIX install architecture-independent files in PREFIX
789 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
792 By default, \`make install' will install all the files in
793 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
794 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
795 for instance \`--prefix=\$HOME'.
797 For better control, use the options below.
799 Fine tuning of the installation directories:
800 --bindir=DIR user executables [EPREFIX/bin]
801 --sbindir=DIR system admin executables [EPREFIX/sbin]
802 --libexecdir=DIR program executables [EPREFIX/libexec]
803 --datadir=DIR read-only architecture-independent data [PREFIX/share]
804 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
805 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
806 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
807 --libdir=DIR object code libraries [EPREFIX/lib]
808 --includedir=DIR C header files [PREFIX/include]
809 --oldincludedir=DIR C header files for non-gcc [/usr/include]
810 --infodir=DIR info documentation [PREFIX/info]
811 --mandir=DIR man documentation [PREFIX/man]
818 if test -n "$ac_init_help"; then
819 case $ac_init_help in
820 short | recursive ) echo "Configuration of libfirm 0.3.0:";;
825 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
826 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
827 --enable-debug enable assertions and additional debugging routines
828 --enable-gcc_inline enable gcc inline C-extension
829 --enable-profile enable profiling
830 --enable-autodoc enable auto documentation
831 --enable-firmjni check for tools necesarry to construct a java native interface for Firm
832 --disable-libiberty disable own libiberty parts
835 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
836 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
837 --with-includedir=add colon seperated list of directories to include search path
839 Some influential environment variables:
840 CC C compiler command
841 CFLAGS C compiler flags
842 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
843 nonstandard directory <lib dir>
844 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
845 headers in a nonstandard directory <include dir>
848 Use these variables to override the choices made by `configure' or to help
849 it to find libraries and programs with nonstandard names/locations.
854 if test "$ac_init_help" = "recursive"; then
855 # If there are subdirs, report their specific --help.
857 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
858 test -d $ac_dir || continue
861 if test "$ac_dir" != .; then
862 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
863 # A "../" for each directory in $ac_dir_suffix.
864 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
866 ac_dir_suffix= ac_top_builddir=
870 .) # No --srcdir option. We are building in place.
872 if test -z "$ac_top_builddir"; then
875 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
877 [\\/]* | ?:[\\/]* ) # Absolute path.
878 ac_srcdir=$srcdir$ac_dir_suffix;
879 ac_top_srcdir=$srcdir ;;
881 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
882 ac_top_srcdir=$ac_top_builddir$srcdir ;;
884 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
886 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
887 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
888 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
889 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
892 # Check for guested configure; otherwise get Cygnus style configure.
893 if test -f $ac_srcdir/configure.gnu; then
895 $SHELL $ac_srcdir/configure.gnu --help=recursive
896 elif test -f $ac_srcdir/configure; then
898 $SHELL $ac_srcdir/configure --help=recursive
899 elif test -f $ac_srcdir/configure.ac ||
900 test -f $ac_srcdir/configure.in; then
904 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
910 test -n "$ac_init_help" && exit 0
911 if $ac_init_version; then
913 libfirm configure 0.3.0
914 generated by GNU Autoconf 2.53
916 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
917 Free Software Foundation, Inc.
918 This configure script is free software; the Free Software Foundation
919 gives unlimited permission to copy, distribute and modify it.
925 This file contains any messages produced by compilers while
926 running configure, to aid debugging if configure makes a mistake.
928 It was created by libfirm $as_me 0.3.0, which was
929 generated by GNU Autoconf 2.53. Invocation command line was
940 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
941 uname -m = `(uname -m) 2>/dev/null || echo unknown`
942 uname -r = `(uname -r) 2>/dev/null || echo unknown`
943 uname -s = `(uname -s) 2>/dev/null || echo unknown`
944 uname -v = `(uname -v) 2>/dev/null || echo unknown`
946 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
947 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
949 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
950 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
951 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
952 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
953 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
954 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
955 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
963 test -z "$as_dir" && as_dir=.
979 # Keep a trace of the command line.
980 # Strip out --no-create and --no-recursion so they do not pile up.
981 # Also quote any args containing shell meta-characters.
987 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
988 | --no-cr | --no-c | -n ) continue ;;
989 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
990 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
992 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
993 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
995 case " $ac_configure_args " in
996 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
997 *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1000 # Get rid of the leading space.
1003 # When interrupted or exit'd, cleanup temporary files, and complete
1004 # config.log. We remove comments because anyway the quotes in there
1005 # would cause problems or look ugly.
1006 # WARNING: Be sure not to use single quotes in there, as some shells,
1007 # such as our DU 5.0 friend, will then `close' the trap.
1008 trap 'exit_status=$?
1009 # Save into config.log some information that might help in debugging.
1013 ## ---------------- ##
1014 ## Cache variables. ##
1015 ## ---------------- ##
1018 # The following way of writing the cache mishandles newlines in values,
1021 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1024 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1025 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1029 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1034 if test -s confdefs.h; then
1041 sed "/^$/d" confdefs.h
1044 test "$ac_signal" != 0 &&
1045 echo "$as_me: caught signal $ac_signal"
1046 echo "$as_me: exit $exit_status"
1048 rm -f core core.* *.core &&
1049 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1052 for ac_signal in 1 2 13 15; do
1053 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1057 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1058 rm -rf conftest* confdefs.h
1059 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1062 # Predefined preprocessor variables.
1064 cat >>confdefs.h <<_ACEOF
1065 #define PACKAGE_NAME "$PACKAGE_NAME"
1069 cat >>confdefs.h <<_ACEOF
1070 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1074 cat >>confdefs.h <<_ACEOF
1075 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1079 cat >>confdefs.h <<_ACEOF
1080 #define PACKAGE_STRING "$PACKAGE_STRING"
1084 cat >>confdefs.h <<_ACEOF
1085 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1089 # Let the site file select an alternate cache file if it wants to.
1090 # Prefer explicitly selected file to automatically selected ones.
1091 if test -z "$CONFIG_SITE"; then
1092 if test "x$prefix" != xNONE; then
1093 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1095 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1098 for ac_site_file in $CONFIG_SITE; do
1099 if test -r "$ac_site_file"; then
1100 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1101 echo "$as_me: loading site script $ac_site_file" >&6;}
1102 sed 's/^/| /' "$ac_site_file" >&5
1107 if test -r "$cache_file"; then
1108 # Some versions of bash will fail to source /dev/null (special
1109 # files actually), so we avoid doing that.
1110 if test -f "$cache_file"; then
1111 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1112 echo "$as_me: loading cache $cache_file" >&6;}
1114 [\\/]* | ?:[\\/]* ) . $cache_file;;
1115 *) . ./$cache_file;;
1119 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1120 echo "$as_me: creating cache $cache_file" >&6;}
1124 # Check that the precious variables saved in the cache have kept the same
1126 ac_cache_corrupted=false
1127 for ac_var in `(set) 2>&1 |
1128 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1129 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1130 eval ac_new_set=\$ac_env_${ac_var}_set
1131 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1132 eval ac_new_val="\$ac_env_${ac_var}_value"
1133 case $ac_old_set,$ac_new_set in
1135 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1136 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1137 ac_cache_corrupted=: ;;
1139 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1140 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1141 ac_cache_corrupted=: ;;
1144 if test "x$ac_old_val" != "x$ac_new_val"; then
1145 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1146 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1147 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1148 echo "$as_me: former value: $ac_old_val" >&2;}
1149 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1150 echo "$as_me: current value: $ac_new_val" >&2;}
1151 ac_cache_corrupted=:
1154 # Pass precious variables to config.status.
1155 if test "$ac_new_set" = set; then
1157 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1158 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1159 *) ac_arg=$ac_var=$ac_new_val ;;
1161 case " $ac_configure_args " in
1162 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1163 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1167 if $ac_cache_corrupted; then
1168 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1169 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1170 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1171 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1172 { (exit 1); exit 1; }; }
1176 ac_cpp='$CPP $CPPFLAGS'
1177 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1178 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1179 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1207 ac_output_file="Makefile MakeRules ir/Makefile ir/adt/Makefile ir/debug/Makefile \
1208 ir/tv/Makefile ir/common/Makefile ir/ident/Makefile ir/ir/Makefile \
1209 ir/ana/Makefile ir/tr/Makefile ir/st/Makefile testprograms/Makefile \
1210 firmjni/Makefile firmjni/testprograms/Makefile libfirm.doxygen"
1212 ac_config_headers="$ac_config_headers config.h"
1215 libfirm_conf_env="${CC+CC='$CC'} ${CFLAGS+CFLAGS='$CFLAGS'} ${CPP+CPP='$CPP'} ${CPPFLAGS+CPPFLAGS='$CPPFLAGS'} ${LDFLAGS+LDFLAGS='$LDFLAGS'} ${LIBS+LIBS='$LIBS'}"
1219 # Check whether --with-includedir or --without-includedir was given.
1220 if test "${with_includedir+set}" = set; then
1221 withval="$with_includedir"
1222 CPPFLAGS=$CPPFLAGS" -I"`echo $withval|sed 's;\:; -I;g'`
1228 # Check whether --enable-debug or --disable-debug was given.
1229 if test "${enable_debug+set}" = set; then
1230 enableval="$enable_debug"
1231 if test "$enableval" = yes; then
1232 cat >>confdefs.h <<\_ACEOF
1233 #define DEBUG_libfirm 1
1237 cat >>confdefs.h <<\_ACEOF
1245 # Check whether --enable-gcc_inline or --disable-gcc_inline was given.
1246 if test "${enable_gcc_inline+set}" = set; then
1247 enableval="$enable_gcc_inline"
1248 if test "$enableval" = yes; then
1249 cat >>confdefs.h <<\_ACEOF
1250 #define USE_GCC_INLINE 1
1258 # Check whether --enable-profile or --disable-profile was given.
1259 if test "${enable_profile+set}" = set; then
1260 enableval="$enable_profile"
1261 if test "$enableval"=yes; then
1262 enable_profile_libfirm=yes
1265 enable_profile_libfirm=no
1269 # Check whether --enable-autodoc or --disable-autodoc was given.
1270 if test "${enable_autodoc+set}" = set; then
1271 enableval="$enable_autodoc"
1272 if test "$enableval"=yes; then
1273 enable_auto_documentation=yes
1276 enable_auto_documentation=no
1281 # Check whether --enable-firmjni or --disable-firmjni was given.
1282 if test "${enable_firmjni+set}" = set; then
1283 enableval="$enable_firmjni"
1284 if test "$enableval"=yes; then
1292 # Check whether --enable-libiberty or --disable-libiberty was given.
1293 if test "${enable_libiberty+set}" = set; then
1294 enableval="$enable_libiberty"
1295 if test "$enableval"=yes; then
1296 disable_libiberty_=yes
1299 disable_libiberty=no
1306 ac_cpp='$CPP $CPPFLAGS'
1307 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1308 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1309 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1310 if test -n "$ac_tool_prefix"; then
1311 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1312 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1313 echo "$as_me:$LINENO: checking for $ac_word" >&5
1314 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1315 if test "${ac_cv_prog_CC+set}" = set; then
1316 echo $ECHO_N "(cached) $ECHO_C" >&6
1318 if test -n "$CC"; then
1319 ac_cv_prog_CC="$CC" # Let the user override the test.
1321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1325 test -z "$as_dir" && as_dir=.
1326 for ac_exec_ext in '' $ac_executable_extensions; do
1327 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1328 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1329 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1338 if test -n "$CC"; then
1339 echo "$as_me:$LINENO: result: $CC" >&5
1340 echo "${ECHO_T}$CC" >&6
1342 echo "$as_me:$LINENO: result: no" >&5
1343 echo "${ECHO_T}no" >&6
1347 if test -z "$ac_cv_prog_CC"; then
1349 # Extract the first word of "gcc", so it can be a program name with args.
1350 set dummy gcc; ac_word=$2
1351 echo "$as_me:$LINENO: checking for $ac_word" >&5
1352 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1353 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1354 echo $ECHO_N "(cached) $ECHO_C" >&6
1356 if test -n "$ac_ct_CC"; then
1357 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1363 test -z "$as_dir" && as_dir=.
1364 for ac_exec_ext in '' $ac_executable_extensions; do
1365 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1366 ac_cv_prog_ac_ct_CC="gcc"
1367 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1375 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1376 if test -n "$ac_ct_CC"; then
1377 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1378 echo "${ECHO_T}$ac_ct_CC" >&6
1380 echo "$as_me:$LINENO: result: no" >&5
1381 echo "${ECHO_T}no" >&6
1389 if test -z "$CC"; then
1390 if test -n "$ac_tool_prefix"; then
1391 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1392 set dummy ${ac_tool_prefix}cc; ac_word=$2
1393 echo "$as_me:$LINENO: checking for $ac_word" >&5
1394 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1395 if test "${ac_cv_prog_CC+set}" = set; then
1396 echo $ECHO_N "(cached) $ECHO_C" >&6
1398 if test -n "$CC"; then
1399 ac_cv_prog_CC="$CC" # Let the user override the test.
1401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1405 test -z "$as_dir" && as_dir=.
1406 for ac_exec_ext in '' $ac_executable_extensions; do
1407 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1408 ac_cv_prog_CC="${ac_tool_prefix}cc"
1409 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1418 if test -n "$CC"; then
1419 echo "$as_me:$LINENO: result: $CC" >&5
1420 echo "${ECHO_T}$CC" >&6
1422 echo "$as_me:$LINENO: result: no" >&5
1423 echo "${ECHO_T}no" >&6
1427 if test -z "$ac_cv_prog_CC"; then
1429 # Extract the first word of "cc", so it can be a program name with args.
1430 set dummy cc; ac_word=$2
1431 echo "$as_me:$LINENO: checking for $ac_word" >&5
1432 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1433 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1434 echo $ECHO_N "(cached) $ECHO_C" >&6
1436 if test -n "$ac_ct_CC"; then
1437 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1443 test -z "$as_dir" && as_dir=.
1444 for ac_exec_ext in '' $ac_executable_extensions; do
1445 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1446 ac_cv_prog_ac_ct_CC="cc"
1447 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1455 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1456 if test -n "$ac_ct_CC"; then
1457 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1458 echo "${ECHO_T}$ac_ct_CC" >&6
1460 echo "$as_me:$LINENO: result: no" >&5
1461 echo "${ECHO_T}no" >&6
1470 if test -z "$CC"; then
1471 # Extract the first word of "cc", so it can be a program name with args.
1472 set dummy cc; ac_word=$2
1473 echo "$as_me:$LINENO: checking for $ac_word" >&5
1474 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1475 if test "${ac_cv_prog_CC+set}" = set; then
1476 echo $ECHO_N "(cached) $ECHO_C" >&6
1478 if test -n "$CC"; then
1479 ac_cv_prog_CC="$CC" # Let the user override the test.
1482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1486 test -z "$as_dir" && as_dir=.
1487 for ac_exec_ext in '' $ac_executable_extensions; do
1488 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1489 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1490 ac_prog_rejected=yes
1494 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1500 if test $ac_prog_rejected = yes; then
1501 # We found a bogon in the path, so make sure we never use it.
1502 set dummy $ac_cv_prog_CC
1504 if test $# != 0; then
1505 # We chose a different compiler from the bogus one.
1506 # However, it has the same basename, so the bogon will be chosen
1507 # first if we set CC to just the basename; use the full file name.
1509 set dummy "$as_dir/$ac_word" ${1+"$@"}
1517 if test -n "$CC"; then
1518 echo "$as_me:$LINENO: result: $CC" >&5
1519 echo "${ECHO_T}$CC" >&6
1521 echo "$as_me:$LINENO: result: no" >&5
1522 echo "${ECHO_T}no" >&6
1526 if test -z "$CC"; then
1527 if test -n "$ac_tool_prefix"; then
1530 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1531 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1532 echo "$as_me:$LINENO: checking for $ac_word" >&5
1533 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1534 if test "${ac_cv_prog_CC+set}" = set; then
1535 echo $ECHO_N "(cached) $ECHO_C" >&6
1537 if test -n "$CC"; then
1538 ac_cv_prog_CC="$CC" # Let the user override the test.
1540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1544 test -z "$as_dir" && as_dir=.
1545 for ac_exec_ext in '' $ac_executable_extensions; do
1546 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1547 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1548 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1557 if test -n "$CC"; then
1558 echo "$as_me:$LINENO: result: $CC" >&5
1559 echo "${ECHO_T}$CC" >&6
1561 echo "$as_me:$LINENO: result: no" >&5
1562 echo "${ECHO_T}no" >&6
1565 test -n "$CC" && break
1568 if test -z "$CC"; then
1572 # Extract the first word of "$ac_prog", so it can be a program name with args.
1573 set dummy $ac_prog; ac_word=$2
1574 echo "$as_me:$LINENO: checking for $ac_word" >&5
1575 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1576 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1577 echo $ECHO_N "(cached) $ECHO_C" >&6
1579 if test -n "$ac_ct_CC"; then
1580 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1586 test -z "$as_dir" && as_dir=.
1587 for ac_exec_ext in '' $ac_executable_extensions; do
1588 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1589 ac_cv_prog_ac_ct_CC="$ac_prog"
1590 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1598 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1599 if test -n "$ac_ct_CC"; then
1600 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1601 echo "${ECHO_T}$ac_ct_CC" >&6
1603 echo "$as_me:$LINENO: result: no" >&5
1604 echo "${ECHO_T}no" >&6
1607 test -n "$ac_ct_CC" && break
1616 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
1617 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
1618 { (exit 1); exit 1; }; }
1620 # Provide some information about the compiler.
1621 echo "$as_me:$LINENO:" \
1622 "checking for C compiler version" >&5
1623 ac_compiler=`set X $ac_compile; echo $2`
1624 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1625 (eval $ac_compiler --version </dev/null >&5) 2>&5
1627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1628 (exit $ac_status); }
1629 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1630 (eval $ac_compiler -v </dev/null >&5) 2>&5
1632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1633 (exit $ac_status); }
1634 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1635 (eval $ac_compiler -V </dev/null >&5) 2>&5
1637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1638 (exit $ac_status); }
1640 cat >conftest.$ac_ext <<_ACEOF
1641 #line $LINENO "configure"
1642 #include "confdefs.h"
1644 #ifdef F77_DUMMY_MAIN
1648 int F77_DUMMY_MAIN() { return 1; }
1658 ac_clean_files_save=$ac_clean_files
1659 ac_clean_files="$ac_clean_files a.out a.exe"
1660 # Try to create an executable without -o first, disregard a.out.
1661 # It will help us diagnose broken compilers, and finding out an intuition
1663 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1664 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1665 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1666 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1667 (eval $ac_link_default) 2>&5
1669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1670 (exit $ac_status); }; then
1671 # Find the output, starting from the most likely. This scheme is
1672 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1675 # Be careful to initialize this variable, since it used to be cached.
1676 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1678 for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
1679 ls a.out conftest 2>/dev/null;
1680 ls a.* conftest.* 2>/dev/null`; do
1682 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
1683 a.out ) # We found the default executable, but exeext='' is most
1686 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1687 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1694 echo "$as_me: failed program was:" >&5
1695 cat conftest.$ac_ext >&5
1696 { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
1697 echo "$as_me: error: C compiler cannot create executables" >&2;}
1698 { (exit 77); exit 77; }; }
1701 ac_exeext=$ac_cv_exeext
1702 echo "$as_me:$LINENO: result: $ac_file" >&5
1703 echo "${ECHO_T}$ac_file" >&6
1705 # Check the compiler produces executables we can run. If not, either
1706 # the compiler is broken, or we cross compile.
1707 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1708 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1709 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1710 # If not cross compiling, check that we can run a simple program.
1711 if test "$cross_compiling" != yes; then
1712 if { ac_try='./$ac_file'
1713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1717 (exit $ac_status); }; }; then
1720 if test "$cross_compiling" = maybe; then
1723 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1724 If you meant to cross compile, use \`--host'." >&5
1725 echo "$as_me: error: cannot run C compiled programs.
1726 If you meant to cross compile, use \`--host'." >&2;}
1727 { (exit 1); exit 1; }; }
1731 echo "$as_me:$LINENO: result: yes" >&5
1732 echo "${ECHO_T}yes" >&6
1734 rm -f a.out a.exe conftest$ac_cv_exeext
1735 ac_clean_files=$ac_clean_files_save
1736 # Check the compiler produces executables we can run. If not, either
1737 # the compiler is broken, or we cross compile.
1738 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1739 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1740 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1741 echo "${ECHO_T}$cross_compiling" >&6
1743 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1744 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1745 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1746 (eval $ac_link) 2>&5
1748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1749 (exit $ac_status); }; then
1750 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1751 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1752 # work properly (i.e., refer to `conftest.exe'), while it won't with
1754 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1756 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1757 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1764 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
1765 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
1766 { (exit 1); exit 1; }; }
1769 rm -f conftest$ac_cv_exeext
1770 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1771 echo "${ECHO_T}$ac_cv_exeext" >&6
1773 rm -f conftest.$ac_ext
1774 EXEEXT=$ac_cv_exeext
1776 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1777 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1778 if test "${ac_cv_objext+set}" = set; then
1779 echo $ECHO_N "(cached) $ECHO_C" >&6
1781 cat >conftest.$ac_ext <<_ACEOF
1782 #line $LINENO "configure"
1783 #include "confdefs.h"
1785 #ifdef F77_DUMMY_MAIN
1789 int F77_DUMMY_MAIN() { return 1; }
1799 rm -f conftest.o conftest.obj
1800 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1801 (eval $ac_compile) 2>&5
1803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1804 (exit $ac_status); }; then
1805 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1807 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
1808 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1813 echo "$as_me: failed program was:" >&5
1814 cat conftest.$ac_ext >&5
1815 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
1816 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
1817 { (exit 1); exit 1; }; }
1820 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1822 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1823 echo "${ECHO_T}$ac_cv_objext" >&6
1824 OBJEXT=$ac_cv_objext
1826 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1827 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1828 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1829 echo $ECHO_N "(cached) $ECHO_C" >&6
1831 cat >conftest.$ac_ext <<_ACEOF
1832 #line $LINENO "configure"
1833 #include "confdefs.h"
1835 #ifdef F77_DUMMY_MAIN
1839 int F77_DUMMY_MAIN() { return 1; }
1852 rm -f conftest.$ac_objext
1853 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1854 (eval $ac_compile) 2>&5
1856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1857 (exit $ac_status); } &&
1858 { ac_try='test -s conftest.$ac_objext'
1859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1863 (exit $ac_status); }; }; then
1866 echo "$as_me: failed program was:" >&5
1867 cat conftest.$ac_ext >&5
1870 rm -f conftest.$ac_objext conftest.$ac_ext
1871 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1874 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1875 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1876 GCC=`test $ac_compiler_gnu = yes && echo yes`
1877 ac_test_CFLAGS=${CFLAGS+set}
1878 ac_save_CFLAGS=$CFLAGS
1880 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1881 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1882 if test "${ac_cv_prog_cc_g+set}" = set; then
1883 echo $ECHO_N "(cached) $ECHO_C" >&6
1885 cat >conftest.$ac_ext <<_ACEOF
1886 #line $LINENO "configure"
1887 #include "confdefs.h"
1889 #ifdef F77_DUMMY_MAIN
1893 int F77_DUMMY_MAIN() { return 1; }
1903 rm -f conftest.$ac_objext
1904 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1905 (eval $ac_compile) 2>&5
1907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1908 (exit $ac_status); } &&
1909 { ac_try='test -s conftest.$ac_objext'
1910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1914 (exit $ac_status); }; }; then
1917 echo "$as_me: failed program was:" >&5
1918 cat conftest.$ac_ext >&5
1921 rm -f conftest.$ac_objext conftest.$ac_ext
1923 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1924 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1925 if test "$ac_test_CFLAGS" = set; then
1926 CFLAGS=$ac_save_CFLAGS
1927 elif test $ac_cv_prog_cc_g = yes; then
1928 if test "$GCC" = yes; then
1934 if test "$GCC" = yes; then
1940 # Some people use a C++ compiler to compile C. Since we use `exit',
1941 # in C++ we need to declare it. In case someone uses the same compiler
1942 # for both compiling C and C++ we need to have the C++ compiler decide
1943 # the declaration of exit, since it's the most demanding environment.
1944 cat >conftest.$ac_ext <<_ACEOF
1949 rm -f conftest.$ac_objext
1950 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1951 (eval $ac_compile) 2>&5
1953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1954 (exit $ac_status); } &&
1955 { ac_try='test -s conftest.$ac_objext'
1956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1960 (exit $ac_status); }; }; then
1961 for ac_declaration in \
1963 '#include <stdlib.h>' \
1964 'extern "C" void std::exit (int) throw (); using std::exit;' \
1965 'extern "C" void std::exit (int); using std::exit;' \
1966 'extern "C" void exit (int) throw ();' \
1967 'extern "C" void exit (int);' \
1970 cat >conftest.$ac_ext <<_ACEOF
1971 #line $LINENO "configure"
1972 #include "confdefs.h"
1975 #ifdef F77_DUMMY_MAIN
1979 int F77_DUMMY_MAIN() { return 1; }
1989 rm -f conftest.$ac_objext
1990 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1991 (eval $ac_compile) 2>&5
1993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1994 (exit $ac_status); } &&
1995 { ac_try='test -s conftest.$ac_objext'
1996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2000 (exit $ac_status); }; }; then
2003 echo "$as_me: failed program was:" >&5
2004 cat conftest.$ac_ext >&5
2007 rm -f conftest.$ac_objext conftest.$ac_ext
2008 cat >conftest.$ac_ext <<_ACEOF
2009 #line $LINENO "configure"
2010 #include "confdefs.h"
2012 #ifdef F77_DUMMY_MAIN
2016 int F77_DUMMY_MAIN() { return 1; }
2026 rm -f conftest.$ac_objext
2027 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2028 (eval $ac_compile) 2>&5
2030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2031 (exit $ac_status); } &&
2032 { ac_try='test -s conftest.$ac_objext'
2033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2037 (exit $ac_status); }; }; then
2040 echo "$as_me: failed program was:" >&5
2041 cat conftest.$ac_ext >&5
2043 rm -f conftest.$ac_objext conftest.$ac_ext
2046 if test -n "$ac_declaration"; then
2047 echo '#ifdef __cplusplus' >>confdefs.h
2048 echo $ac_declaration >>confdefs.h
2049 echo '#endif' >>confdefs.h
2053 echo "$as_me: failed program was:" >&5
2054 cat conftest.$ac_ext >&5
2056 rm -f conftest.$ac_objext conftest.$ac_ext
2058 ac_cpp='$CPP $CPPFLAGS'
2059 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2060 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2061 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2065 if test -z "$LD"; then
2066 if test -n "$ac_tool_prefix"; then
2067 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
2068 set dummy ${ac_tool_prefix}ld; ac_word=$2
2069 echo "$as_me:$LINENO: checking for $ac_word" >&5
2070 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2071 if test "${ac_cv_prog_LD+set}" = set; then
2072 echo $ECHO_N "(cached) $ECHO_C" >&6
2074 if test -n "$LD"; then
2075 ac_cv_prog_LD="$LD" # Let the user override the test.
2077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2081 test -z "$as_dir" && as_dir=.
2082 for ac_exec_ext in '' $ac_executable_extensions; do
2083 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2084 ac_cv_prog_LD="${ac_tool_prefix}ld"
2085 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2094 if test -n "$LD"; then
2095 echo "$as_me:$LINENO: result: $LD" >&5
2096 echo "${ECHO_T}$LD" >&6
2098 echo "$as_me:$LINENO: result: no" >&5
2099 echo "${ECHO_T}no" >&6
2103 if test -z "$ac_cv_prog_LD"; then
2105 # Extract the first word of "ld", so it can be a program name with args.
2106 set dummy ld; ac_word=$2
2107 echo "$as_me:$LINENO: checking for $ac_word" >&5
2108 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2109 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
2110 echo $ECHO_N "(cached) $ECHO_C" >&6
2112 if test -n "$ac_ct_LD"; then
2113 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
2115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2119 test -z "$as_dir" && as_dir=.
2120 for ac_exec_ext in '' $ac_executable_extensions; do
2121 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2122 ac_cv_prog_ac_ct_LD="ld"
2123 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2131 ac_ct_LD=$ac_cv_prog_ac_ct_LD
2132 if test -n "$ac_ct_LD"; then
2133 echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
2134 echo "${ECHO_T}$ac_ct_LD" >&6
2136 echo "$as_me:$LINENO: result: no" >&5
2137 echo "${ECHO_T}no" >&6
2147 echo "$as_me:$LINENO: checking whether $LD accepts -r" >&5
2148 echo $ECHO_N "checking whether $LD accepts -r... $ECHO_C" >&6
2149 if test "${libfirm_cv_prog_ld_r+set}" = set; then
2150 echo $ECHO_N "(cached) $ECHO_C" >&6
2153 libfirm_cv_prog_ld_r=no
2155 cat > conftest.$ac_ext <<EOF
2156 int foo() { return 0; }
2158 if eval $ac_compile && mv conftest.o conftest2.o; then
2159 cat > conftest.$ac_ext <<EOF
2161 int main() { return foo(); }
2163 if eval $ac_compile; then
2164 if $LD -r -o conftest conftest.o conftest2.o; then
2165 libfirm_cv_prog_ld_r=yes
2172 echo "$as_me:$LINENO: result: $libfirm_cv_prog_ld_r" >&5
2173 echo "${ECHO_T}$libfirm_cv_prog_ld_r" >&6
2176 if test "$libfirm_cv_prog_ld_r" != "yes"; then
2177 { { echo "$as_me:$LINENO: error: need a prelinkcapable linker" >&5
2178 echo "$as_me: error: need a prelinkcapable linker" >&2;}
2179 { (exit 1); exit 1; }; }
2182 # Extract the first word of "ar", so it can be a program name with args.
2183 set dummy ar; ac_word=$2
2184 echo "$as_me:$LINENO: checking for $ac_word" >&5
2185 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2186 if test "${ac_cv_prog_AR+set}" = set; then
2187 echo $ECHO_N "(cached) $ECHO_C" >&6
2189 if test -n "$AR"; then
2190 ac_cv_prog_AR="$AR" # Let the user override the test.
2192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2196 test -z "$as_dir" && as_dir=.
2197 for ac_exec_ext in '' $ac_executable_extensions; do
2198 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2199 ac_cv_prog_AR=""ar""
2200 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2206 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR=""""
2210 if test -n "$AR"; then
2211 echo "$as_me:$LINENO: result: $AR" >&5
2212 echo "${ECHO_T}$AR" >&6
2214 echo "$as_me:$LINENO: result: no" >&5
2215 echo "${ECHO_T}no" >&6
2218 if test "$AR" != "ar"; then
2219 { { echo "$as_me:$LINENO: error: need ar for creating archives" >&5
2220 echo "$as_me: error: need ar for creating archives" >&2;}
2221 { (exit 1); exit 1; }; }
2224 # Extract the first word of "tar", so it can be a program name with args.
2225 set dummy tar; ac_word=$2
2226 echo "$as_me:$LINENO: checking for $ac_word" >&5
2227 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2228 if test "${ac_cv_prog_TAR+set}" = set; then
2229 echo $ECHO_N "(cached) $ECHO_C" >&6
2231 if test -n "$TAR"; then
2232 ac_cv_prog_TAR="$TAR" # Let the user override the test.
2234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2238 test -z "$as_dir" && as_dir=.
2239 for ac_exec_ext in '' $ac_executable_extensions; do
2240 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2241 ac_cv_prog_TAR=""tar""
2242 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2248 test -z "$ac_cv_prog_TAR" && ac_cv_prog_TAR=""""
2252 if test -n "$TAR"; then
2253 echo "$as_me:$LINENO: result: $TAR" >&5
2254 echo "${ECHO_T}$TAR" >&6
2256 echo "$as_me:$LINENO: result: no" >&5
2257 echo "${ECHO_T}no" >&6
2260 if test "$TAR" != "tar"; then
2261 { { echo "$as_me:$LINENO: error: need tar for creating archives in distribution" >&5
2262 echo "$as_me: error: need tar for creating archives in distribution" >&2;}
2263 { (exit 1); exit 1; }; }
2267 if test -n "$ac_tool_prefix"; then
2268 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2269 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2270 echo "$as_me:$LINENO: checking for $ac_word" >&5
2271 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2272 if test "${ac_cv_prog_RANLIB+set}" = set; then
2273 echo $ECHO_N "(cached) $ECHO_C" >&6
2275 if test -n "$RANLIB"; then
2276 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2282 test -z "$as_dir" && as_dir=.
2283 for ac_exec_ext in '' $ac_executable_extensions; do
2284 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2285 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2286 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2294 RANLIB=$ac_cv_prog_RANLIB
2295 if test -n "$RANLIB"; then
2296 echo "$as_me:$LINENO: result: $RANLIB" >&5
2297 echo "${ECHO_T}$RANLIB" >&6
2299 echo "$as_me:$LINENO: result: no" >&5
2300 echo "${ECHO_T}no" >&6
2304 if test -z "$ac_cv_prog_RANLIB"; then
2305 ac_ct_RANLIB=$RANLIB
2306 # Extract the first word of "ranlib", so it can be a program name with args.
2307 set dummy ranlib; ac_word=$2
2308 echo "$as_me:$LINENO: checking for $ac_word" >&5
2309 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2310 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2311 echo $ECHO_N "(cached) $ECHO_C" >&6
2313 if test -n "$ac_ct_RANLIB"; then
2314 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2320 test -z "$as_dir" && as_dir=.
2321 for ac_exec_ext in '' $ac_executable_extensions; do
2322 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2323 ac_cv_prog_ac_ct_RANLIB="ranlib"
2324 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2330 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2333 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2334 if test -n "$ac_ct_RANLIB"; then
2335 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2336 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2338 echo "$as_me:$LINENO: result: no" >&5
2339 echo "${ECHO_T}no" >&6
2342 RANLIB=$ac_ct_RANLIB
2344 RANLIB="$ac_cv_prog_RANLIB"
2349 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
2350 if test -f $ac_dir/install-sh; then
2352 ac_install_sh="$ac_aux_dir/install-sh -c"
2354 elif test -f $ac_dir/install.sh; then
2356 ac_install_sh="$ac_aux_dir/install.sh -c"
2358 elif test -f $ac_dir/shtool; then
2360 ac_install_sh="$ac_aux_dir/shtool install -c"
2364 if test -z "$ac_aux_dir"; then
2365 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
2366 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
2367 { (exit 1); exit 1; }; }
2369 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
2370 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
2371 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
2373 # Find a good install program. We prefer a C program (faster),
2374 # so one script is as good as another. But avoid the broken or
2375 # incompatible versions:
2376 # SysV /etc/install, /usr/sbin/install
2377 # SunOS /usr/etc/install
2378 # IRIX /sbin/install
2380 # AmigaOS /C/install, which installs bootblocks on floppy discs
2381 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2382 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2383 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2384 # ./install, which can be erroneously created by make from ./install.sh.
2385 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2386 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2387 if test -z "$INSTALL"; then
2388 if test "${ac_cv_path_install+set}" = set; then
2389 echo $ECHO_N "(cached) $ECHO_C" >&6
2391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2395 test -z "$as_dir" && as_dir=.
2396 # Account for people who put trailing slashes in PATH elements.
2398 ./ | .// | /cC/* | \
2399 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2402 # OSF1 and SCO ODT 3.0 have their own names for install.
2403 # Don't use installbsd from OSF since it installs stuff as root
2405 for ac_prog in ginstall scoinst install; do
2406 for ac_exec_ext in '' $ac_executable_extensions; do
2407 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2408 if test $ac_prog = install &&
2409 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2410 # AIX install. It has an incompatible calling convention.
2412 elif test $ac_prog = install &&
2413 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2414 # program-specific install script used by HP pwplus--don't use.
2417 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2429 if test "${ac_cv_path_install+set}" = set; then
2430 INSTALL=$ac_cv_path_install
2432 # As a last resort, use the slow shell script. We don't cache a
2433 # path for INSTALL within a source directory, because that will
2434 # break other packages using the cache if that directory is
2435 # removed, or if the path is relative.
2436 INSTALL=$ac_install_sh
2439 echo "$as_me:$LINENO: result: $INSTALL" >&5
2440 echo "${ECHO_T}$INSTALL" >&6
2442 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2443 # It thinks the first close brace ends the variable substitution.
2444 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2446 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2448 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2451 touch tmp-install.a tmp-install.b
2452 if eval "$INSTALL -C tmp-install.a tmp-install.b" ; then
2453 INSTALL="$INSTALL -C"
2455 rm tmp-install.a tmp-install.b
2458 echo "$as_me:$LINENO: checking whether ln -s works" >&5
2459 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2461 if test "$LN_S" = "ln -s"; then
2462 echo "$as_me:$LINENO: result: yes" >&5
2463 echo "${ECHO_T}yes" >&6
2465 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
2466 echo "${ECHO_T}no, using $LN_S" >&6
2470 if test "$enable_auto_documentation" = yes; then
2471 # Extract the first word of "doxygen", so it can be a program name with args.
2472 set dummy doxygen; ac_word=$2
2473 echo "$as_me:$LINENO: checking for $ac_word" >&5
2474 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2475 if test "${ac_cv_prog_DOXYGEN+set}" = set; then
2476 echo $ECHO_N "(cached) $ECHO_C" >&6
2478 if test -n "$DOXYGEN"; then
2479 ac_cv_prog_DOXYGEN="$DOXYGEN" # Let the user override the test.
2481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2485 test -z "$as_dir" && as_dir=.
2486 for ac_exec_ext in '' $ac_executable_extensions; do
2487 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2488 ac_cv_prog_DOXYGEN=""doxygen""
2489 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2495 test -z "$ac_cv_prog_DOXYGEN" && ac_cv_prog_DOXYGEN=""""
2498 DOXYGEN=$ac_cv_prog_DOXYGEN
2499 if test -n "$DOXYGEN"; then
2500 echo "$as_me:$LINENO: result: $DOXYGEN" >&5
2501 echo "${ECHO_T}$DOXYGEN" >&6
2503 echo "$as_me:$LINENO: result: no" >&5
2504 echo "${ECHO_T}no" >&6
2507 if test "$DOXYGEN" != "doxygen"; then
2508 { { echo "$as_me:$LINENO: error: need doxygen for auto documentation" >&5
2509 echo "$as_me: error: need doxygen for auto documentation" >&2;}
2510 { (exit 1); exit 1; }; }
2512 # Extract the first word of "dot", so it can be a program name with args.
2513 set dummy dot; ac_word=$2
2514 echo "$as_me:$LINENO: checking for $ac_word" >&5
2515 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2516 if test "${ac_cv_prog_DOT+set}" = set; then
2517 echo $ECHO_N "(cached) $ECHO_C" >&6
2519 if test -n "$DOT"; then
2520 ac_cv_prog_DOT="$DOT" # Let the user override the test.
2522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2526 test -z "$as_dir" && as_dir=.
2527 for ac_exec_ext in '' $ac_executable_extensions; do
2528 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2529 ac_cv_prog_DOT=""dot""
2530 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2536 test -z "$ac_cv_prog_DOT" && ac_cv_prog_DOT=""""
2540 if test -n "$DOT"; then
2541 echo "$as_me:$LINENO: result: $DOT" >&5
2542 echo "${ECHO_T}$DOT" >&6
2544 echo "$as_me:$LINENO: result: no" >&5
2545 echo "${ECHO_T}no" >&6
2548 if test "$DOT" != "dot"; then
2549 { { echo "$as_me:$LINENO: error: need dot for doxygen documentation (for class graphs) (IPD: module add Graphviz)" >&5
2550 echo "$as_me: error: need dot for doxygen documentation (for class graphs) (IPD: module add Graphviz)" >&2;}
2551 { (exit 1); exit 1; }; }
2555 if test "$enable_firm_jni" = yes; then
2556 # Extract the first word of "javac", so it can be a program name with args.
2557 set dummy javac; ac_word=$2
2558 echo "$as_me:$LINENO: checking for $ac_word" >&5
2559 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2560 if test "${ac_cv_prog_JAVAC+set}" = set; then
2561 echo $ECHO_N "(cached) $ECHO_C" >&6
2563 if test -n "$JAVAC"; then
2564 ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test.
2566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2570 test -z "$as_dir" && as_dir=.
2571 for ac_exec_ext in '' $ac_executable_extensions; do
2572 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2573 ac_cv_prog_JAVAC=""javac""
2574 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2580 test -z "$ac_cv_prog_JAVAC" && ac_cv_prog_JAVAC=""""
2583 JAVAC=$ac_cv_prog_JAVAC
2584 if test -n "$JAVAC"; then
2585 echo "$as_me:$LINENO: result: $JAVAC" >&5
2586 echo "${ECHO_T}$JAVAC" >&6
2588 echo "$as_me:$LINENO: result: no" >&5
2589 echo "${ECHO_T}no" >&6
2592 if test "$JAVAC" != "javac"; then
2593 { { echo "$as_me:$LINENO: error: need java compiler javac to generate jni (IPD: module add jdk-1.3.1-sun)" >&5
2594 echo "$as_me: error: need java compiler javac to generate jni (IPD: module add jdk-1.3.1-sun)" >&2;}
2595 { (exit 1); exit 1; }; }
2597 # Extract the first word of "javah", so it can be a program name with args.
2598 set dummy javah; 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_JAVAH+set}" = set; then
2602 echo $ECHO_N "(cached) $ECHO_C" >&6
2604 if test -n "$JAVAH"; then
2605 ac_cv_prog_JAVAH="$JAVAH" # 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_JAVAH=""javah""
2615 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2621 test -z "$ac_cv_prog_JAVAH" && ac_cv_prog_JAVAH=""""
2624 JAVAH=$ac_cv_prog_JAVAH
2625 if test -n "$JAVAH"; then
2626 echo "$as_me:$LINENO: result: $JAVAH" >&5
2627 echo "${ECHO_T}$JAVAH" >&6
2629 echo "$as_me:$LINENO: result: no" >&5
2630 echo "${ECHO_T}no" >&6
2633 if test "$JAVAH" != "javah"; then
2634 { { echo "$as_me:$LINENO: error: need javah to generate jni headers (IPD: module add jdk-1.3.1-sun)" >&5
2635 echo "$as_me: error: need javah to generate jni headers (IPD: module add jdk-1.3.1-sun)" >&2;}
2636 { (exit 1); exit 1; }; }
2644 ac_cpp='$CPP $CPPFLAGS'
2645 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2646 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2647 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2648 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2649 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2650 # On Suns, sometimes $CPP names a directory.
2651 if test -n "$CPP" && test -d "$CPP"; then
2654 if test -z "$CPP"; then
2655 if test "${ac_cv_prog_CPP+set}" = set; then
2656 echo $ECHO_N "(cached) $ECHO_C" >&6
2658 # Double quotes because CPP needs to be expanded
2659 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2662 for ac_c_preproc_warn_flag in '' yes
2664 # Use a header file that comes with gcc, so configuring glibc
2665 # with a fresh cross-compiler works.
2666 # On the NeXT, cc -E runs the code through the compiler's parser,
2667 # not just through cpp. "Syntax error" is here to catch this case.
2668 cat >conftest.$ac_ext <<_ACEOF
2669 #line $LINENO "configure"
2670 #include "confdefs.h"
2674 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2675 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2677 egrep -v '^ *\+' conftest.er1 >conftest.err
2679 cat conftest.err >&5
2680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2681 (exit $ac_status); } >/dev/null; then
2682 if test -s conftest.err; then
2683 ac_cpp_err=$ac_c_preproc_warn_flag
2690 if test -z "$ac_cpp_err"; then
2693 echo "$as_me: failed program was:" >&5
2694 cat conftest.$ac_ext >&5
2695 # Broken: fails on valid input.
2698 rm -f conftest.err conftest.$ac_ext
2700 # OK, works on sane cases. Now check whether non-existent headers
2701 # can be detected and how.
2702 cat >conftest.$ac_ext <<_ACEOF
2703 #line $LINENO "configure"
2704 #include "confdefs.h"
2705 #include <ac_nonexistent.h>
2707 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2708 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2710 egrep -v '^ *\+' conftest.er1 >conftest.err
2712 cat conftest.err >&5
2713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2714 (exit $ac_status); } >/dev/null; then
2715 if test -s conftest.err; then
2716 ac_cpp_err=$ac_c_preproc_warn_flag
2723 if test -z "$ac_cpp_err"; then
2724 # Broken: success on invalid input.
2727 echo "$as_me: failed program was:" >&5
2728 cat conftest.$ac_ext >&5
2729 # Passes both tests.
2733 rm -f conftest.err conftest.$ac_ext
2736 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2737 rm -f conftest.err conftest.$ac_ext
2738 if $ac_preproc_ok; then
2750 echo "$as_me:$LINENO: result: $CPP" >&5
2751 echo "${ECHO_T}$CPP" >&6
2753 for ac_c_preproc_warn_flag in '' yes
2755 # Use a header file that comes with gcc, so configuring glibc
2756 # with a fresh cross-compiler works.
2757 # On the NeXT, cc -E runs the code through the compiler's parser,
2758 # not just through cpp. "Syntax error" is here to catch this case.
2759 cat >conftest.$ac_ext <<_ACEOF
2760 #line $LINENO "configure"
2761 #include "confdefs.h"
2765 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2766 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2768 egrep -v '^ *\+' conftest.er1 >conftest.err
2770 cat conftest.err >&5
2771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2772 (exit $ac_status); } >/dev/null; then
2773 if test -s conftest.err; then
2774 ac_cpp_err=$ac_c_preproc_warn_flag
2781 if test -z "$ac_cpp_err"; then
2784 echo "$as_me: failed program was:" >&5
2785 cat conftest.$ac_ext >&5
2786 # Broken: fails on valid input.
2789 rm -f conftest.err conftest.$ac_ext
2791 # OK, works on sane cases. Now check whether non-existent headers
2792 # can be detected and how.
2793 cat >conftest.$ac_ext <<_ACEOF
2794 #line $LINENO "configure"
2795 #include "confdefs.h"
2796 #include <ac_nonexistent.h>
2798 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2799 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2801 egrep -v '^ *\+' conftest.er1 >conftest.err
2803 cat conftest.err >&5
2804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2805 (exit $ac_status); } >/dev/null; then
2806 if test -s conftest.err; then
2807 ac_cpp_err=$ac_c_preproc_warn_flag
2814 if test -z "$ac_cpp_err"; then
2815 # Broken: success on invalid input.
2818 echo "$as_me: failed program was:" >&5
2819 cat conftest.$ac_ext >&5
2820 # Passes both tests.
2824 rm -f conftest.err conftest.$ac_ext
2827 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2828 rm -f conftest.err conftest.$ac_ext
2829 if $ac_preproc_ok; then
2832 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2833 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2834 { (exit 1); exit 1; }; }
2838 ac_cpp='$CPP $CPPFLAGS'
2839 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2840 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2841 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2844 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2845 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2846 if test "${ac_cv_header_stdc+set}" = set; then
2847 echo $ECHO_N "(cached) $ECHO_C" >&6
2849 cat >conftest.$ac_ext <<_ACEOF
2850 #line $LINENO "configure"
2851 #include "confdefs.h"
2858 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2859 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2861 egrep -v '^ *\+' conftest.er1 >conftest.err
2863 cat conftest.err >&5
2864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2865 (exit $ac_status); } >/dev/null; then
2866 if test -s conftest.err; then
2867 ac_cpp_err=$ac_c_preproc_warn_flag
2874 if test -z "$ac_cpp_err"; then
2875 ac_cv_header_stdc=yes
2877 echo "$as_me: failed program was:" >&5
2878 cat conftest.$ac_ext >&5
2879 ac_cv_header_stdc=no
2881 rm -f conftest.err conftest.$ac_ext
2883 if test $ac_cv_header_stdc = yes; then
2884 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2885 cat >conftest.$ac_ext <<_ACEOF
2886 #line $LINENO "configure"
2887 #include "confdefs.h"
2891 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2892 egrep "memchr" >/dev/null 2>&1; then
2895 ac_cv_header_stdc=no
2901 if test $ac_cv_header_stdc = yes; then
2902 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2903 cat >conftest.$ac_ext <<_ACEOF
2904 #line $LINENO "configure"
2905 #include "confdefs.h"
2909 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2910 egrep "free" >/dev/null 2>&1; then
2913 ac_cv_header_stdc=no
2919 if test $ac_cv_header_stdc = yes; then
2920 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2921 if test "$cross_compiling" = yes; then
2924 cat >conftest.$ac_ext <<_ACEOF
2925 #line $LINENO "configure"
2926 #include "confdefs.h"
2928 #if ((' ' & 0x0FF) == 0x020)
2929 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2930 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2932 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
2933 || ('j' <= (c) && (c) <= 'r') \
2934 || ('s' <= (c) && (c) <= 'z'))
2935 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2938 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2943 for (i = 0; i < 256; i++)
2944 if (XOR (islower (i), ISLOWER (i))
2945 || toupper (i) != TOUPPER (i))
2950 rm -f conftest$ac_exeext
2951 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2952 (eval $ac_link) 2>&5
2954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2955 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2960 (exit $ac_status); }; }; then
2963 echo "$as_me: program exited with status $ac_status" >&5
2964 echo "$as_me: failed program was:" >&5
2965 cat conftest.$ac_ext >&5
2967 ac_cv_header_stdc=no
2969 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2973 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
2974 echo "${ECHO_T}$ac_cv_header_stdc" >&6
2975 if test $ac_cv_header_stdc = yes; then
2977 cat >>confdefs.h <<\_ACEOF
2978 #define STDC_HEADERS 1
2985 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
2995 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
2996 inttypes.h stdint.h unistd.h
2998 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2999 echo "$as_me:$LINENO: checking for $ac_header" >&5
3000 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3001 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3002 echo $ECHO_N "(cached) $ECHO_C" >&6
3004 cat >conftest.$ac_ext <<_ACEOF
3005 #line $LINENO "configure"
3006 #include "confdefs.h"
3007 $ac_includes_default
3009 #include <$ac_header>
3011 rm -f conftest.$ac_objext
3012 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3013 (eval $ac_compile) 2>&5
3015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3016 (exit $ac_status); } &&
3017 { ac_try='test -s conftest.$ac_objext'
3018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3022 (exit $ac_status); }; }; then
3023 eval "$as_ac_Header=yes"
3025 echo "$as_me: failed program was:" >&5
3026 cat conftest.$ac_ext >&5
3027 eval "$as_ac_Header=no"
3029 rm -f conftest.$ac_objext conftest.$ac_ext
3031 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3032 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3033 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3034 cat >>confdefs.h <<_ACEOF
3035 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3044 for ac_header in math.h
3046 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3047 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3048 echo "$as_me:$LINENO: checking for $ac_header" >&5
3049 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3050 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3051 echo $ECHO_N "(cached) $ECHO_C" >&6
3053 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3054 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3056 # Is the header compilable?
3057 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3058 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3059 cat >conftest.$ac_ext <<_ACEOF
3060 #line $LINENO "configure"
3061 #include "confdefs.h"
3062 $ac_includes_default
3063 #include <$ac_header>
3065 rm -f conftest.$ac_objext
3066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3067 (eval $ac_compile) 2>&5
3069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3070 (exit $ac_status); } &&
3071 { ac_try='test -s conftest.$ac_objext'
3072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3076 (exit $ac_status); }; }; then
3077 ac_header_compiler=yes
3079 echo "$as_me: failed program was:" >&5
3080 cat conftest.$ac_ext >&5
3081 ac_header_compiler=no
3083 rm -f conftest.$ac_objext conftest.$ac_ext
3084 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3085 echo "${ECHO_T}$ac_header_compiler" >&6
3087 # Is the header present?
3088 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3089 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3090 cat >conftest.$ac_ext <<_ACEOF
3091 #line $LINENO "configure"
3092 #include "confdefs.h"
3093 #include <$ac_header>
3095 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3096 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3098 egrep -v '^ *\+' conftest.er1 >conftest.err
3100 cat conftest.err >&5
3101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3102 (exit $ac_status); } >/dev/null; then
3103 if test -s conftest.err; then
3104 ac_cpp_err=$ac_c_preproc_warn_flag
3111 if test -z "$ac_cpp_err"; then
3112 ac_header_preproc=yes
3114 echo "$as_me: failed program was:" >&5
3115 cat conftest.$ac_ext >&5
3116 ac_header_preproc=no
3118 rm -f conftest.err conftest.$ac_ext
3119 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3120 echo "${ECHO_T}$ac_header_preproc" >&6
3122 # So? What about this header?
3123 case $ac_header_compiler:$ac_header_preproc in
3125 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3126 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3127 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3128 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3130 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3131 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3132 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3133 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3134 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3135 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3137 echo "$as_me:$LINENO: checking for $ac_header" >&5
3138 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3139 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3140 echo $ECHO_N "(cached) $ECHO_C" >&6
3142 eval "$as_ac_Header=$ac_header_preproc"
3144 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3145 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3148 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3149 cat >>confdefs.h <<_ACEOF
3150 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3152 ac_math_headers="yes"
3154 ac_math_headers="no"
3159 if test "$ac_math_headers" != yes; then
3160 { { echo "$as_me:$LINENO: error: \"math header file not found\"" >&5
3161 echo "$as_me: error: \"math header file not found\"" >&2;}
3162 { (exit 1); exit 1; }; }
3166 #dnl check for the gnu multiprecission (gmp) header file
3168 #AC_CHECK_HEADERS(gmp.h, ac_gmp_headers="yes", ac_gmp_headers="no")
3169 #if test "$ac_gmp_headers" != yes; then
3170 # dnl gmp header not found.
3171 # AC_MSG_ERROR("GNU multiprecission gmp header file not found")
3175 echo "$as_me:$LINENO: checking for obstacks" >&5
3176 echo $ECHO_N "checking for obstacks... $ECHO_C" >&6
3177 if test "${ac_cv_func_obstack+set}" = set; then
3178 echo $ECHO_N "(cached) $ECHO_C" >&6
3180 cat >conftest.$ac_ext <<_ACEOF
3181 #line $LINENO "configure"
3182 #include "confdefs.h"
3183 #include "obstack.h"
3184 #ifdef F77_DUMMY_MAIN
3188 int F77_DUMMY_MAIN() { return 1; }
3193 struct obstack *mem; obstack_free(mem,(char *) 0)
3198 rm -f conftest.$ac_objext conftest$ac_exeext
3199 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3200 (eval $ac_link) 2>&5
3202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3203 (exit $ac_status); } &&
3204 { ac_try='test -s conftest$ac_exeext'
3205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3209 (exit $ac_status); }; }; then
3210 ac_cv_func_obstack=yes
3212 echo "$as_me: failed program was:" >&5
3213 cat conftest.$ac_ext >&5
3214 ac_cv_func_obstack=no
3216 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3218 echo "$as_me:$LINENO: result: $ac_cv_func_obstack" >&5
3219 echo "${ECHO_T}$ac_cv_func_obstack" >&6
3220 if test $ac_cv_func_obstack = yes; then
3222 cat >>confdefs.h <<\_ACEOF
3223 #define HAVE_OBSTACK 1
3227 LIBOBJS="$LIBOBJS obstack.$ac_objext"
3231 #AC_CHECK_HEADERS(obstack.h, ac_obstack_headers="yes", ac_obstack_headers="no")
3232 #if test "$ac_obstack_headers" != yes; then
3233 if test "$ac_cv_func_obstack" != "yes"; then
3234 { { echo "$as_me:$LINENO: error: \"no obstack support\"" >&5
3235 echo "$as_me: error: \"no obstack support\"" >&2;}
3236 { (exit 1); exit 1; }; }
3241 if test "$enable_firm_jni" = yes; then
3243 for ac_header in jni.h
3245 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3246 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3247 echo "$as_me:$LINENO: checking for $ac_header" >&5
3248 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3249 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3250 echo $ECHO_N "(cached) $ECHO_C" >&6
3252 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3253 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3255 # Is the header compilable?
3256 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3257 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3258 cat >conftest.$ac_ext <<_ACEOF
3259 #line $LINENO "configure"
3260 #include "confdefs.h"
3261 $ac_includes_default
3262 #include <$ac_header>
3264 rm -f conftest.$ac_objext
3265 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3266 (eval $ac_compile) 2>&5
3268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3269 (exit $ac_status); } &&
3270 { ac_try='test -s conftest.$ac_objext'
3271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3275 (exit $ac_status); }; }; then
3276 ac_header_compiler=yes
3278 echo "$as_me: failed program was:" >&5
3279 cat conftest.$ac_ext >&5
3280 ac_header_compiler=no
3282 rm -f conftest.$ac_objext conftest.$ac_ext
3283 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3284 echo "${ECHO_T}$ac_header_compiler" >&6
3286 # Is the header present?
3287 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3288 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3289 cat >conftest.$ac_ext <<_ACEOF
3290 #line $LINENO "configure"
3291 #include "confdefs.h"
3292 #include <$ac_header>
3294 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3295 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3297 egrep -v '^ *\+' conftest.er1 >conftest.err
3299 cat conftest.err >&5
3300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3301 (exit $ac_status); } >/dev/null; then
3302 if test -s conftest.err; then
3303 ac_cpp_err=$ac_c_preproc_warn_flag
3310 if test -z "$ac_cpp_err"; then
3311 ac_header_preproc=yes
3313 echo "$as_me: failed program was:" >&5
3314 cat conftest.$ac_ext >&5
3315 ac_header_preproc=no
3317 rm -f conftest.err conftest.$ac_ext
3318 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3319 echo "${ECHO_T}$ac_header_preproc" >&6
3321 # So? What about this header?
3322 case $ac_header_compiler:$ac_header_preproc in
3324 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3325 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3326 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3327 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3329 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3330 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3331 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3332 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3333 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3334 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3336 echo "$as_me:$LINENO: checking for $ac_header" >&5
3337 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3338 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3339 echo $ECHO_N "(cached) $ECHO_C" >&6
3341 eval "$as_ac_Header=$ac_header_preproc"
3343 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3344 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3347 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3348 cat >>confdefs.h <<_ACEOF
3349 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3351 ac_jni_headers="yes"
3358 if test "$ac_jni_headers" != yes; then
3359 { { 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
3360 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;}
3361 { (exit 1); exit 1; }; }
3367 #dnl check for the gnu multiprecission (gmp) library
3369 #AC_CHECK_LIB(gmp, main, ac_gmp_library="yes", ac_gmp_library="no")
3370 #if test "$ac_gmp_library" != yes; then
3371 # dnl gmp library not found.
3372 # AC_MSG_ERROR("GNU multiprecission gmp library not found")
3376 echo "$as_me:$LINENO: checking for main in -lm" >&5
3377 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
3378 if test "${ac_cv_lib_m_main+set}" = set; then
3379 echo $ECHO_N "(cached) $ECHO_C" >&6
3381 ac_check_lib_save_LIBS=$LIBS
3383 cat >conftest.$ac_ext <<_ACEOF
3384 #line $LINENO "configure"
3385 #include "confdefs.h"
3388 #ifdef F77_DUMMY_MAIN
3392 int F77_DUMMY_MAIN() { return 1; }
3402 rm -f conftest.$ac_objext conftest$ac_exeext
3403 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3404 (eval $ac_link) 2>&5
3406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3407 (exit $ac_status); } &&
3408 { ac_try='test -s conftest$ac_exeext'
3409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3413 (exit $ac_status); }; }; then
3414 ac_cv_lib_m_main=yes
3416 echo "$as_me: failed program was:" >&5
3417 cat conftest.$ac_ext >&5
3420 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3421 LIBS=$ac_check_lib_save_LIBS
3423 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
3424 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
3425 if test $ac_cv_lib_m_main = yes; then
3431 if test "$ac_m_library" != yes; then
3432 { { echo "$as_me:$LINENO: error: \"standard math library not found\"" >&5
3433 echo "$as_me: error: \"standard math library not found\"" >&2;}
3434 { (exit 1); exit 1; }; }
3442 echo "$as_me:$LINENO: checking for strerror" >&5
3443 echo $ECHO_N "checking for strerror... $ECHO_C" >&6
3444 if test "${ac_cv_func_strerror+set}" = set; then
3445 echo $ECHO_N "(cached) $ECHO_C" >&6
3447 cat >conftest.$ac_ext <<_ACEOF
3448 #line $LINENO "configure"
3449 #include "confdefs.h"
3450 /* System header to define __stub macros and hopefully few prototypes,
3451 which can conflict with char strerror (); below. */
3453 /* Override any gcc2 internal prototype to avoid an error. */
3457 /* We use char because int might match the return type of a gcc2
3458 builtin and then its argument prototype would still apply. */
3462 #ifdef F77_DUMMY_MAIN
3466 int F77_DUMMY_MAIN() { return 1; }
3471 /* The GNU C library defines this for functions which it implements
3472 to always fail with ENOSYS. Some functions are actually named
3473 something starting with __ and the normal name is an alias. */
3474 #if defined (__stub_strerror) || defined (__stub___strerror)
3484 rm -f conftest.$ac_objext conftest$ac_exeext
3485 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3486 (eval $ac_link) 2>&5
3488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3489 (exit $ac_status); } &&
3490 { ac_try='test -s conftest$ac_exeext'
3491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3495 (exit $ac_status); }; }; then
3496 ac_cv_func_strerror=yes
3498 echo "$as_me: failed program was:" >&5
3499 cat conftest.$ac_ext >&5
3500 ac_cv_func_strerror=no
3502 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3504 echo "$as_me:$LINENO: result: $ac_cv_func_strerror" >&5
3505 echo "${ECHO_T}$ac_cv_func_strerror" >&6
3506 if test $ac_cv_func_strerror = yes; then
3509 { { echo "$as_me:$LINENO: error: \"need strerror function\"" >&5
3510 echo "$as_me: error: \"need strerror function\"" >&2;}
3511 { (exit 1); exit 1; }; }
3519 ac_config_files="$ac_config_files $ac_output_file"
3520 ac_config_commands="$ac_config_commands default"
3521 cat >confcache <<\_ACEOF
3522 # This file is a shell script that caches the results of configure
3523 # tests run on this system so they can be shared between configure
3524 # scripts and configure runs, see configure's option --config-cache.
3525 # It is not useful on other systems. If it contains results you don't
3526 # want to keep, you may remove or edit it.
3528 # config.status only pays attention to the cache file if you give it
3529 # the --recheck option to rerun configure.
3531 # `ac_cv_env_foo' variables (set or unset) will be overriden when
3532 # loading this file, other *unset* `ac_cv_foo' will be assigned the
3537 # The following way of writing the cache mishandles newlines in values,
3538 # but we know of no workaround that is simple, portable, and efficient.
3539 # So, don't put newlines in cache variables' values.
3540 # Ultrix sh set writes to stderr and can't be redirected directly,
3541 # and sets the high bit in the cache file unless we assign to the vars.
3544 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3546 # `set' does not quote correctly, so add quotes (double-quote
3547 # substitution turns \\\\ into \\, and sed turns \\ into \).
3550 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3553 # `set' quotes correctly as required by POSIX, so do not add quotes.
3555 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
3562 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3564 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3566 if cmp -s $cache_file confcache; then :; else
3567 if test -w $cache_file; then
3568 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
3569 cat confcache >$cache_file
3571 echo "not updating unwritable cache $cache_file"
3576 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3577 # Let make expand exec_prefix.
3578 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3580 # VPATH may cause trouble with some makes, so we remove $(srcdir),
3581 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
3582 # trailing colons and then remove the whole line if VPATH becomes empty
3583 # (actually we leave an empty line to preserve line numbers).
3584 if test "x$srcdir" = x.; then
3585 ac_vpsub='/^[ ]*VPATH[ ]*=/{
3586 s/:*\$(srcdir):*/:/;
3587 s/:*\${srcdir}:*/:/;
3589 s/^\([^=]*=[ ]*\):*/\1/;
3595 DEFS=-DHAVE_CONFIG_H
3598 : ${CONFIG_STATUS=./config.status}
3599 ac_clean_files_save=$ac_clean_files
3600 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
3601 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
3602 echo "$as_me: creating $CONFIG_STATUS" >&6;}
3603 cat >$CONFIG_STATUS <<_ACEOF
3605 # Generated by $as_me.
3606 # Run this file to recreate the current configuration.
3607 # Compiler output produced by configure, useful for debugging
3608 # configure, is in config.log if it exists.
3611 SHELL=\${CONFIG_SHELL-$SHELL}
3614 cat >>$CONFIG_STATUS <<\_ACEOF
3616 ## --------------------- ##
3617 ## M4sh Initialization. ##
3618 ## --------------------- ##
3620 # Be Bourne compatible
3621 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
3624 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
3629 # Support unset when possible.
3630 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
3636 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
3637 { $as_unset LANG || test "${LANG+set}" != set; } ||
3638 { LANG=C; export LANG; }
3639 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
3640 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
3641 { LC_ALL=C; export LC_ALL; }
3642 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
3643 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
3644 { LC_TIME=C; export LC_TIME; }
3645 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
3646 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
3647 { LC_CTYPE=C; export LC_CTYPE; }
3648 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
3649 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
3650 { LANGUAGE=C; export LANGUAGE; }
3651 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
3652 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
3653 { LC_COLLATE=C; export LC_COLLATE; }
3654 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
3655 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
3656 { LC_NUMERIC=C; export LC_NUMERIC; }
3657 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
3658 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
3659 { LC_MESSAGES=C; export LC_MESSAGES; }
3662 # Name of the executable.
3663 as_me=`(basename "$0") 2>/dev/null ||
3664 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
3665 X"$0" : 'X\(//\)$' \| \
3666 X"$0" : 'X\(/\)$' \| \
3667 . : '\(.\)' 2>/dev/null ||
3669 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
3670 /^X\/\(\/\/\)$/{ s//\1/; q; }
3671 /^X\/\(\/\).*/{ s//\1/; q; }
3674 # PATH needs CR, and LINENO needs CR and PATH.
3675 # Avoid depending upon Character Ranges.
3676 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
3677 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
3678 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
3679 as_cr_digits='0123456789'
3680 as_cr_alnum=$as_cr_Letters$as_cr_digits
3682 # The user is always right.
3683 if test "${PATH_SEPARATOR+set}" != set; then
3684 echo "#! /bin/sh" >conftest.sh
3685 echo "exit 0" >>conftest.sh
3686 chmod +x conftest.sh
3687 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
3698 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
3699 test "x$as_lineno_1" != "x$as_lineno_2" &&
3700 test "x$as_lineno_3" = "x$as_lineno_2" || {
3701 # Find who we are. Look in the path if we contain no path at all
3704 *[\\/]* ) as_myself=$0 ;;
3705 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3709 test -z "$as_dir" && as_dir=.
3710 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
3715 # We did not find ourselves, most probably we were run as `sh COMMAND'
3716 # in which case we are not to be found in the path.
3717 if test "x$as_myself" = x; then
3720 if test ! -f "$as_myself"; then
3721 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
3722 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
3723 { (exit 1); exit 1; }; }
3725 case $CONFIG_SHELL in
3727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3728 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
3731 test -z "$as_dir" && as_dir=.
3732 for as_base in sh bash ksh sh5; do
3735 if ("$as_dir/$as_base" -c '
3738 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
3739 test "x$as_lineno_1" != "x$as_lineno_2" &&
3740 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
3741 CONFIG_SHELL=$as_dir/$as_base
3743 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
3751 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
3752 # uniformly replaced by the line number. The first 'sed' inserts a
3753 # line-number line before each line; the second 'sed' does the real
3754 # work. The second script uses 'N' to pair each line-number line
3755 # with the numbered line, and appends trailing '-' during
3756 # substitution so that $LINENO is not a special case at line end.
3757 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
3758 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
3759 sed '=' <$as_myself |
3764 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
3767 s,^['$as_cr_digits']*\n,,
3769 chmod +x $as_me.lineno ||
3770 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
3771 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
3772 { (exit 1); exit 1; }; }
3774 # Don't try to exec as it changes $[0], causing all sort of problems
3775 # (the dirname of $[0] is not the place where we might find the
3776 # original and so on. Autoconf is especially sensible to this).
3778 # Exit status is that of the last command.
3783 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
3784 *c*,-n*) ECHO_N= ECHO_C='
3786 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
3787 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
3790 if expr a : '\(a\)' >/dev/null 2>&1; then
3796 rm -f conf$$ conf$$.exe conf$$.file
3798 if ln -s conf$$.file conf$$ 2>/dev/null; then
3799 # We could just check for DJGPP; but this test a) works b) is more generic
3800 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
3801 if test -f conf$$.exe; then
3802 # Don't use ln at all; we don't have any links
3807 elif ln conf$$.file conf$$ 2>/dev/null; then
3812 rm -f conf$$ conf$$.exe conf$$.file
3814 as_executable_p="test -f"
3816 # Sed expression to map a string onto a valid CPP name.
3817 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
3819 # Sed expression to map a string onto a valid variable name.
3820 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
3824 # We need space, tab and new line, in precisely that order.
3830 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
3834 # Open the log real soon, to keep \$[0] and so on meaningful, and to
3835 # report actual input values of CONFIG_FILES etc. instead of their
3836 # values after options handling. Logging --version etc. is OK.
3840 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
3841 ## Running $as_me. ##
3846 This file was extended by libfirm $as_me 0.3.0, which was
3847 generated by GNU Autoconf 2.53. Invocation command line was
3849 CONFIG_FILES = $CONFIG_FILES
3850 CONFIG_HEADERS = $CONFIG_HEADERS
3851 CONFIG_LINKS = $CONFIG_LINKS
3852 CONFIG_COMMANDS = $CONFIG_COMMANDS
3856 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
3860 # Files that config.status was made for.
3861 if test -n "$ac_config_files"; then
3862 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
3865 if test -n "$ac_config_headers"; then
3866 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
3869 if test -n "$ac_config_links"; then
3870 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
3873 if test -n "$ac_config_commands"; then
3874 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
3877 cat >>$CONFIG_STATUS <<\_ACEOF
3880 \`$as_me' instantiates files from templates according to the
3881 current configuration.
3883 Usage: $0 [OPTIONS] [FILE]...
3885 -h, --help print this help, then exit
3886 -V, --version print version number, then exit
3887 -d, --debug don't remove temporary files
3888 --recheck update $as_me by reconfiguring in the same conditions
3889 --file=FILE[:TEMPLATE]
3890 instantiate the configuration file FILE
3891 --header=FILE[:TEMPLATE]
3892 instantiate the configuration header FILE
3894 Configuration files:
3897 Configuration headers:
3900 Configuration commands:
3903 Report bugs to <bug-autoconf@gnu.org>."
3906 cat >>$CONFIG_STATUS <<_ACEOF
3908 libfirm config.status 0.3.0
3909 configured by $0, generated by GNU Autoconf 2.53,
3910 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
3912 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
3913 Free Software Foundation, Inc.
3914 This config.status script is free software; the Free Software Foundation
3915 gives unlimited permission to copy, distribute and modify it."
3920 cat >>$CONFIG_STATUS <<\_ACEOF
3921 # If no file are specified by the user, then we need to provide default
3922 # value. By we need to know if files were specified by the user.
3928 ac_option=`expr "x$1" : 'x\([^=]*\)='`
3929 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
3931 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
3935 *) # This is not an option, so the user has probably given explicit
3937 ac_need_defaults=false;;
3941 # Handling of the options.
3943 cat >>$CONFIG_STATUS <<_ACEOF
3944 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3945 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
3946 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
3948 cat >>$CONFIG_STATUS <<\_ACEOF
3949 --version | --vers* | -V )
3950 echo "$ac_cs_version"; exit 0 ;;
3952 # Conflict between --help and --header
3953 { { echo "$as_me:$LINENO: error: ambiguous option: $1
3954 Try \`$0 --help' for more information." >&5
3955 echo "$as_me: error: ambiguous option: $1
3956 Try \`$0 --help' for more information." >&2;}
3957 { (exit 1); exit 1; }; };;
3958 --help | --hel | -h )
3959 echo "$ac_cs_usage"; exit 0 ;;
3960 --debug | --d* | -d )
3962 --file | --fil | --fi | --f )
3964 CONFIG_FILES="$CONFIG_FILES $1"
3965 ac_need_defaults=false;;
3966 --header | --heade | --head | --hea )
3968 CONFIG_HEADERS="$CONFIG_HEADERS $1"
3969 ac_need_defaults=false;;
3972 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
3973 Try \`$0 --help' for more information." >&5
3974 echo "$as_me: error: unrecognized option: $1
3975 Try \`$0 --help' for more information." >&2;}
3976 { (exit 1); exit 1; }; } ;;
3978 *) ac_config_targets="$ac_config_targets $1" ;;
3990 cat >>$CONFIG_STATUS <<\_ACEOF
3991 for ac_config_target in $ac_config_targets
3993 case "$ac_config_target" in
3994 # Handling of arguments.
3995 "$ac_output_file" ) CONFIG_FILES="$CONFIG_FILES $ac_output_file" ;;
3996 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
3997 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
3998 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
3999 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
4000 { (exit 1); exit 1; }; };;
4004 # If the user did not use the arguments to specify the items to instantiate,
4005 # then the envvar interface is used. Set only those that are not.
4006 # We use the long form for the default assignment because of an extremely
4007 # bizarre bug on SunOS 4.1.3.
4008 if $ac_need_defaults; then
4009 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
4010 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
4011 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
4014 # Create a temporary directory, and hook for its removal unless debugging.
4017 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
4018 trap '{ (exit 1); exit 1; }' 1 2 13 15
4021 # Create a (secure) tmp directory for tmp files.
4024 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
4025 test -n "$tmp" && test -d "$tmp"
4028 tmp=$TMPDIR/cs$$-$RANDOM
4029 (umask 077 && mkdir $tmp)
4032 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
4033 { (exit 1); exit 1; }
4038 cat >>$CONFIG_STATUS <<_ACEOF
4041 # CONFIG_FILES section.
4044 # No need to generate the scripts if there are no CONFIG_FILES.
4045 # This happens for instance when ./config.status config.h
4046 if test -n "\$CONFIG_FILES"; then
4047 # Protect against being on the right side of a sed subst in config.status.
4048 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
4049 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
4050 s,@SHELL@,$SHELL,;t t
4051 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
4052 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
4053 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
4054 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
4055 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
4056 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
4057 s,@exec_prefix@,$exec_prefix,;t t
4058 s,@prefix@,$prefix,;t t
4059 s,@program_transform_name@,$program_transform_name,;t t
4060 s,@bindir@,$bindir,;t t
4061 s,@sbindir@,$sbindir,;t t
4062 s,@libexecdir@,$libexecdir,;t t
4063 s,@datadir@,$datadir,;t t
4064 s,@sysconfdir@,$sysconfdir,;t t
4065 s,@sharedstatedir@,$sharedstatedir,;t t
4066 s,@localstatedir@,$localstatedir,;t t
4067 s,@libdir@,$libdir,;t t
4068 s,@includedir@,$includedir,;t t
4069 s,@oldincludedir@,$oldincludedir,;t t
4070 s,@infodir@,$infodir,;t t
4071 s,@mandir@,$mandir,;t t
4072 s,@build_alias@,$build_alias,;t t
4073 s,@host_alias@,$host_alias,;t t
4074 s,@target_alias@,$target_alias,;t t
4076 s,@ECHO_C@,$ECHO_C,;t t
4077 s,@ECHO_N@,$ECHO_N,;t t
4078 s,@ECHO_T@,$ECHO_T,;t t
4080 s,@libfirm_conf_env@,$libfirm_conf_env,;t t
4081 s,@enable_debug_libfirm@,$enable_debug_libfirm,;t t
4082 s,@enable_gcc_inline@,$enable_gcc_inline,;t t
4083 s,@enable_profile_libfirm@,$enable_profile_libfirm,;t t
4084 s,@enable_auto_documentation@,$enable_auto_documentation,;t t
4085 s,@enable_firm_jni@,$enable_firm_jni,;t t
4086 s,@disable_libiberty@,$disable_libiberty,;t t
4088 s,@CFLAGS@,$CFLAGS,;t t
4089 s,@LDFLAGS@,$LDFLAGS,;t t
4090 s,@CPPFLAGS@,$CPPFLAGS,;t t
4091 s,@ac_ct_CC@,$ac_ct_CC,;t t
4092 s,@EXEEXT@,$EXEEXT,;t t
4093 s,@OBJEXT@,$OBJEXT,;t t
4095 s,@ac_ct_LD@,$ac_ct_LD,;t t
4096 s,@libfirm_cv_prog_ld_r@,$libfirm_cv_prog_ld_r,;t t
4099 s,@RANLIB@,$RANLIB,;t t
4100 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
4101 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
4102 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
4103 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
4105 s,@DOXYGEN@,$DOXYGEN,;t t
4107 s,@JAVAC@,$JAVAC,;t t
4108 s,@JAVAH@,$JAVAH,;t t
4110 s,@LIBOBJS@,$LIBOBJS,;t t
4115 cat >>$CONFIG_STATUS <<\_ACEOF
4116 # Split the substitutions into bite-sized pieces for seds with
4117 # small command number limits, like on Digital OSF/1 and HP-UX.
4119 ac_sed_frag=1 # Number of current file.
4120 ac_beg=1 # First line for current file.
4121 ac_end=$ac_max_sed_lines # Line after last line for current file.
4124 while $ac_more_lines; do
4125 if test $ac_beg -gt 1; then
4126 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4128 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4130 if test ! -s $tmp/subs.frag; then
4133 # The purpose of the label and of the branching condition is to
4134 # speed up the sed processing (if there are no `@' at all, there
4135 # is no need to browse any of the substitutions).
4136 # These are the two extra sed commands mentioned above.
4138 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
4139 if test -z "$ac_sed_cmds"; then
4140 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
4142 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
4144 ac_sed_frag=`expr $ac_sed_frag + 1`
4146 ac_end=`expr $ac_end + $ac_max_sed_lines`
4149 if test -z "$ac_sed_cmds"; then
4152 fi # test -n "$CONFIG_FILES"
4155 cat >>$CONFIG_STATUS <<\_ACEOF
4156 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
4157 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4159 - | *:- | *:-:* ) # input from stdin
4161 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4162 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4163 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4164 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4165 * ) ac_file_in=$ac_file.in ;;
4168 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
4169 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
4170 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4171 X"$ac_file" : 'X\(//\)[^/]' \| \
4172 X"$ac_file" : 'X\(//\)$' \| \
4173 X"$ac_file" : 'X\(/\)' \| \
4174 . : '\(.\)' 2>/dev/null ||
4176 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4177 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4178 /^X\(\/\/\)$/{ s//\1/; q; }
4179 /^X\(\/\).*/{ s//\1/; q; }
4182 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
4186 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
4187 case $as_mkdir_dir in
4188 # Skip DOS drivespec
4189 ?:) as_incr_dir=$as_mkdir_dir ;;
4191 as_incr_dir=$as_incr_dir/$as_mkdir_dir
4192 test -d "$as_incr_dir" ||
4193 mkdir "$as_incr_dir" ||
4194 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
4195 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
4196 { (exit 1); exit 1; }; }
4203 if test "$ac_dir" != .; then
4204 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
4205 # A "../" for each directory in $ac_dir_suffix.
4206 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
4208 ac_dir_suffix= ac_top_builddir=
4212 .) # No --srcdir option. We are building in place.
4214 if test -z "$ac_top_builddir"; then
4217 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
4219 [\\/]* | ?:[\\/]* ) # Absolute path.
4220 ac_srcdir=$srcdir$ac_dir_suffix;
4221 ac_top_srcdir=$srcdir ;;
4223 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
4224 ac_top_srcdir=$ac_top_builddir$srcdir ;;
4226 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
4228 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
4229 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
4230 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
4231 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
4235 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
4236 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
4239 if test x"$ac_file" != x-; then
4240 { echo "$as_me:$LINENO: creating $ac_file" >&5
4241 echo "$as_me: creating $ac_file" >&6;}
4244 # Let's still pretend it is `configure' which instantiates (i.e., don't
4245 # use $as_me), people would be surprised to read:
4246 # /* config.h. Generated by config.status. */
4247 if test x"$ac_file" = x-; then
4250 configure_input="$ac_file. "
4252 configure_input=$configure_input"Generated from `echo $ac_file_in |
4253 sed 's,.*/,,'` by configure."
4255 # First look for the input files in the build tree, otherwise in the
4257 ac_file_inputs=`IFS=:
4258 for f in $ac_file_in; do
4260 -) echo $tmp/stdin ;;
4262 # Absolute (can't be DOS-style, as IFS=:)
4263 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4264 echo "$as_me: error: cannot find input file: $f" >&2;}
4265 { (exit 1); exit 1; }; }
4268 if test -f "$f"; then
4271 elif test -f "$srcdir/$f"; then
4276 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4277 echo "$as_me: error: cannot find input file: $f" >&2;}
4278 { (exit 1); exit 1; }; }
4281 done` || { (exit 1); exit 1; }
4283 cat >>$CONFIG_STATUS <<_ACEOF
4287 cat >>$CONFIG_STATUS <<\_ACEOF
4289 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
4290 s,@configure_input@,$configure_input,;t t
4291 s,@srcdir@,$ac_srcdir,;t t
4292 s,@abs_srcdir@,$ac_abs_srcdir,;t t
4293 s,@top_srcdir@,$ac_top_srcdir,;t t
4294 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
4295 s,@builddir@,$ac_builddir,;t t
4296 s,@abs_builddir@,$ac_abs_builddir,;t t
4297 s,@top_builddir@,$ac_top_builddir,;t t
4298 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
4299 s,@INSTALL@,$ac_INSTALL,;t t
4300 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
4302 if test x"$ac_file" != x-; then
4303 mv $tmp/out $ac_file
4311 cat >>$CONFIG_STATUS <<\_ACEOF
4314 # CONFIG_HEADER section.
4317 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4318 # NAME is the cpp macro being defined and VALUE is the value it is being given.
4320 # ac_d sets the value in "#define NAME VALUE" lines.
4321 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
4322 ac_dB='[ ].*$,\1#\2'
4325 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4326 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4327 ac_uB='$,\1#\2define\3'
4331 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
4332 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4334 - | *:- | *:-:* ) # input from stdin
4336 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4337 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4338 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4339 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4340 * ) ac_file_in=$ac_file.in ;;
4343 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
4344 echo "$as_me: creating $ac_file" >&6;}
4346 # First look for the input files in the build tree, otherwise in the
4348 ac_file_inputs=`IFS=:
4349 for f in $ac_file_in; do
4351 -) echo $tmp/stdin ;;
4353 # Absolute (can't be DOS-style, as IFS=:)
4354 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4355 echo "$as_me: error: cannot find input file: $f" >&2;}
4356 { (exit 1); exit 1; }; }
4359 if test -f "$f"; then
4362 elif test -f "$srcdir/$f"; then
4367 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4368 echo "$as_me: error: cannot find input file: $f" >&2;}
4369 { (exit 1); exit 1; }; }
4372 done` || { (exit 1); exit 1; }
4373 # Remove the trailing spaces.
4374 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
4378 # Transform confdefs.h into two sed scripts, `conftest.defines' and
4379 # `conftest.undefs', that substitutes the proper values into
4380 # config.h.in to produce config.h. The first handles `#define'
4381 # templates, and the second `#undef' templates.
4382 # And first: Protect against being on the right side of a sed subst in
4383 # config.status. Protect against being in an unquoted here document
4385 rm -f conftest.defines conftest.undefs
4386 # Using a here document instead of a string reduces the quoting nightmare.
4387 # Putting comments in sed scripts is not portable.
4389 # `end' is used to avoid that the second main sed command (meant for
4390 # 0-ary CPP macros) applies to n-ary macro definitions.
4391 # See the Autoconf documentation for `clear'.
4392 cat >confdef2sed.sed <<\_ACEOF
4397 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
4399 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
4402 # If some macros were called several times there might be several times
4403 # the same #defines, which is useless. Nevertheless, we may not want to
4404 # sort them, since we want the *last* AC-DEFINE to be honored.
4405 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
4406 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
4407 rm -f confdef2sed.sed
4409 # This sed command replaces #undef with comments. This is necessary, for
4410 # example, in the case of _POSIX_SOURCE, which is predefined and required
4411 # on some systems where configure will not decide to define it.
4412 cat >>conftest.undefs <<\_ACEOF
4413 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
4416 # Break up conftest.defines because some shells have a limit on the size
4417 # of here documents, and old seds have small limits too (100 cmds).
4418 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
4419 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
4420 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
4421 echo ' :' >>$CONFIG_STATUS
4423 while grep . conftest.defines >/dev/null
4425 # Write a limited-size here document to $tmp/defines.sed.
4426 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
4427 # Speed up: don't consider the non `#define' lines.
4428 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
4429 # Work around the forget-to-reset-the-flag bug.
4430 echo 't clr' >>$CONFIG_STATUS
4431 echo ': clr' >>$CONFIG_STATUS
4432 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
4434 sed -f $tmp/defines.sed $tmp/in >$tmp/out
4438 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
4439 rm -f conftest.defines
4440 mv conftest.tail conftest.defines
4442 rm -f conftest.defines
4443 echo ' fi # egrep' >>$CONFIG_STATUS
4444 echo >>$CONFIG_STATUS
4446 # Break up conftest.undefs because some shells have a limit on the size
4447 # of here documents, and old seds have small limits too (100 cmds).
4448 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
4450 while grep . conftest.undefs >/dev/null
4452 # Write a limited-size here document to $tmp/undefs.sed.
4453 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
4454 # Speed up: don't consider the non `#undef'
4455 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
4456 # Work around the forget-to-reset-the-flag bug.
4457 echo 't clr' >>$CONFIG_STATUS
4458 echo ': clr' >>$CONFIG_STATUS
4459 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
4461 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
4465 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
4466 rm -f conftest.undefs
4467 mv conftest.tail conftest.undefs
4469 rm -f conftest.undefs
4471 cat >>$CONFIG_STATUS <<\_ACEOF
4472 # Let's still pretend it is `configure' which instantiates (i.e., don't
4473 # use $as_me), people would be surprised to read:
4474 # /* config.h. Generated by config.status. */
4475 if test x"$ac_file" = x-; then
4476 echo "/* Generated by configure. */" >$tmp/config.h
4478 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
4480 cat $tmp/in >>$tmp/config.h
4482 if test x"$ac_file" != x-; then
4483 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
4484 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
4485 echo "$as_me: $ac_file is unchanged" >&6;}
4487 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
4488 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4489 X"$ac_file" : 'X\(//\)[^/]' \| \
4490 X"$ac_file" : 'X\(//\)$' \| \
4491 X"$ac_file" : 'X\(/\)' \| \
4492 . : '\(.\)' 2>/dev/null ||
4494 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4495 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4496 /^X\(\/\/\)$/{ s//\1/; q; }
4497 /^X\(\/\).*/{ s//\1/; q; }
4500 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
4504 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
4505 case $as_mkdir_dir in
4506 # Skip DOS drivespec
4507 ?:) as_incr_dir=$as_mkdir_dir ;;
4509 as_incr_dir=$as_incr_dir/$as_mkdir_dir
4510 test -d "$as_incr_dir" ||
4511 mkdir "$as_incr_dir" ||
4512 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
4513 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
4514 { (exit 1); exit 1; }; }
4520 mv $tmp/config.h $ac_file
4528 cat >>$CONFIG_STATUS <<\_ACEOF
4531 # CONFIG_COMMANDS section.
4533 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
4534 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
4535 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
4536 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
4537 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4538 X"$ac_dest" : 'X\(//\)[^/]' \| \
4539 X"$ac_dest" : 'X\(//\)$' \| \
4540 X"$ac_dest" : 'X\(/\)' \| \
4541 . : '\(.\)' 2>/dev/null ||
4543 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4544 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4545 /^X\(\/\/\)$/{ s//\1/; q; }
4546 /^X\(\/\).*/{ s//\1/; q; }
4550 if test "$ac_dir" != .; then
4551 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
4552 # A "../" for each directory in $ac_dir_suffix.
4553 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
4555 ac_dir_suffix= ac_top_builddir=
4559 .) # No --srcdir option. We are building in place.
4561 if test -z "$ac_top_builddir"; then
4564 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
4566 [\\/]* | ?:[\\/]* ) # Absolute path.
4567 ac_srcdir=$srcdir$ac_dir_suffix;
4568 ac_top_srcdir=$srcdir ;;
4570 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
4571 ac_top_srcdir=$ac_top_builddir$srcdir ;;
4573 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
4575 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
4576 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
4577 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
4578 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
4581 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
4582 echo "$as_me: executing $ac_dest commands" >&6;}
4584 default ) touch stamp-h ;;
4589 cat >>$CONFIG_STATUS <<\_ACEOF
4591 { (exit 0); exit 0; }
4593 chmod +x $CONFIG_STATUS
4594 ac_clean_files=$ac_clean_files_save
4597 # configure is writing to config.log, and then calls config.status.
4598 # config.status does its own redirection, appending to config.log.
4599 # Unfortunately, on DOS this fails, as config.log is still kept open
4600 # by configure, so config.status won't be able to write to it; its
4601 # output is simply discarded. So we exec the FD to /dev/null,
4602 # effectively closing config.log, so it can be properly (re)opened and
4603 # appended to by config.status. When coming back to configure, we
4604 # need to make the FD available again.
4605 if test "$no_create" != yes; then
4608 $SHELL $CONFIG_STATUS || ac_cs_success=false
4610 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
4611 # would make configure fail if this is the last instruction.
4612 $ac_cs_success || { (exit 1); exit 1; }