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")
3178 for ac_header in obstack.h
3180 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3181 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3182 echo "$as_me:$LINENO: checking for $ac_header" >&5
3183 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3184 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3185 echo $ECHO_N "(cached) $ECHO_C" >&6
3187 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3188 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3190 # Is the header compilable?
3191 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3192 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3193 cat >conftest.$ac_ext <<_ACEOF
3194 #line $LINENO "configure"
3195 #include "confdefs.h"
3196 $ac_includes_default
3197 #include <$ac_header>
3199 rm -f conftest.$ac_objext
3200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3201 (eval $ac_compile) 2>&5
3203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3204 (exit $ac_status); } &&
3205 { ac_try='test -s conftest.$ac_objext'
3206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3210 (exit $ac_status); }; }; then
3211 ac_header_compiler=yes
3213 echo "$as_me: failed program was:" >&5
3214 cat conftest.$ac_ext >&5
3215 ac_header_compiler=no
3217 rm -f conftest.$ac_objext conftest.$ac_ext
3218 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3219 echo "${ECHO_T}$ac_header_compiler" >&6
3221 # Is the header present?
3222 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3223 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3224 cat >conftest.$ac_ext <<_ACEOF
3225 #line $LINENO "configure"
3226 #include "confdefs.h"
3227 #include <$ac_header>
3229 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3230 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3232 egrep -v '^ *\+' conftest.er1 >conftest.err
3234 cat conftest.err >&5
3235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3236 (exit $ac_status); } >/dev/null; then
3237 if test -s conftest.err; then
3238 ac_cpp_err=$ac_c_preproc_warn_flag
3245 if test -z "$ac_cpp_err"; then
3246 ac_header_preproc=yes
3248 echo "$as_me: failed program was:" >&5
3249 cat conftest.$ac_ext >&5
3250 ac_header_preproc=no
3252 rm -f conftest.err conftest.$ac_ext
3253 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3254 echo "${ECHO_T}$ac_header_preproc" >&6
3256 # So? What about this header?
3257 case $ac_header_compiler:$ac_header_preproc in
3259 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3260 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3261 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3262 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3264 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3265 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3266 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3267 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3268 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3269 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3271 echo "$as_me:$LINENO: checking for $ac_header" >&5
3272 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3273 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3274 echo $ECHO_N "(cached) $ECHO_C" >&6
3276 eval "$as_ac_Header=$ac_header_preproc"
3278 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3279 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3282 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3283 cat >>confdefs.h <<_ACEOF
3284 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3286 ac_obstack_headers="yes"
3288 ac_obstack_headers="no"
3293 if test "$ac_obstack_headers" != yes; then
3294 { { echo "$as_me:$LINENO: error: \"obstack.h not found\"" >&5
3295 echo "$as_me: error: \"obstack.h not found\"" >&2;}
3296 { (exit 1); exit 1; }; }
3301 if test "$enable_firm_jni" = yes; then
3303 for ac_header in jni.h
3305 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3306 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3307 echo "$as_me:$LINENO: checking for $ac_header" >&5
3308 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3309 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3310 echo $ECHO_N "(cached) $ECHO_C" >&6
3312 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3313 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3315 # Is the header compilable?
3316 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3317 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3318 cat >conftest.$ac_ext <<_ACEOF
3319 #line $LINENO "configure"
3320 #include "confdefs.h"
3321 $ac_includes_default
3322 #include <$ac_header>
3324 rm -f conftest.$ac_objext
3325 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3326 (eval $ac_compile) 2>&5
3328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3329 (exit $ac_status); } &&
3330 { ac_try='test -s conftest.$ac_objext'
3331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3335 (exit $ac_status); }; }; then
3336 ac_header_compiler=yes
3338 echo "$as_me: failed program was:" >&5
3339 cat conftest.$ac_ext >&5
3340 ac_header_compiler=no
3342 rm -f conftest.$ac_objext conftest.$ac_ext
3343 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3344 echo "${ECHO_T}$ac_header_compiler" >&6
3346 # Is the header present?
3347 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3348 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3349 cat >conftest.$ac_ext <<_ACEOF
3350 #line $LINENO "configure"
3351 #include "confdefs.h"
3352 #include <$ac_header>
3354 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3355 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3357 egrep -v '^ *\+' conftest.er1 >conftest.err
3359 cat conftest.err >&5
3360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3361 (exit $ac_status); } >/dev/null; then
3362 if test -s conftest.err; then
3363 ac_cpp_err=$ac_c_preproc_warn_flag
3370 if test -z "$ac_cpp_err"; then
3371 ac_header_preproc=yes
3373 echo "$as_me: failed program was:" >&5
3374 cat conftest.$ac_ext >&5
3375 ac_header_preproc=no
3377 rm -f conftest.err conftest.$ac_ext
3378 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3379 echo "${ECHO_T}$ac_header_preproc" >&6
3381 # So? What about this header?
3382 case $ac_header_compiler:$ac_header_preproc in
3384 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3385 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3386 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3387 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3389 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3390 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3391 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3392 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3393 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3394 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3396 echo "$as_me:$LINENO: checking for $ac_header" >&5
3397 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3398 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3399 echo $ECHO_N "(cached) $ECHO_C" >&6
3401 eval "$as_ac_Header=$ac_header_preproc"
3403 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3404 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3407 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3408 cat >>confdefs.h <<_ACEOF
3409 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3411 ac_jni_headers="yes"
3418 if test "$ac_jni_headers" != yes; then
3419 { { 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
3420 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;}
3421 { (exit 1); exit 1; }; }
3427 #dnl check for the gnu multiprecission (gmp) library
3429 #AC_CHECK_LIB(gmp, main, ac_gmp_library="yes", ac_gmp_library="no")
3430 #if test "$ac_gmp_library" != yes; then
3431 # dnl gmp library not found.
3432 # AC_MSG_ERROR("GNU multiprecission gmp library not found")
3436 echo "$as_me:$LINENO: checking for main in -lm" >&5
3437 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
3438 if test "${ac_cv_lib_m_main+set}" = set; then
3439 echo $ECHO_N "(cached) $ECHO_C" >&6
3441 ac_check_lib_save_LIBS=$LIBS
3443 cat >conftest.$ac_ext <<_ACEOF
3444 #line $LINENO "configure"
3445 #include "confdefs.h"
3448 #ifdef F77_DUMMY_MAIN
3452 int F77_DUMMY_MAIN() { return 1; }
3462 rm -f conftest.$ac_objext conftest$ac_exeext
3463 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3464 (eval $ac_link) 2>&5
3466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3467 (exit $ac_status); } &&
3468 { ac_try='test -s conftest$ac_exeext'
3469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3473 (exit $ac_status); }; }; then
3474 ac_cv_lib_m_main=yes
3476 echo "$as_me: failed program was:" >&5
3477 cat conftest.$ac_ext >&5
3480 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3481 LIBS=$ac_check_lib_save_LIBS
3483 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
3484 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
3485 if test $ac_cv_lib_m_main = yes; then
3491 if test "$ac_m_library" != yes; then
3492 { { echo "$as_me:$LINENO: error: \"standard math library not found\"" >&5
3493 echo "$as_me: error: \"standard math library not found\"" >&2;}
3494 { (exit 1); exit 1; }; }
3498 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
3499 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
3500 if test "${ac_cv_c_bigendian+set}" = set; then
3501 echo $ECHO_N "(cached) $ECHO_C" >&6
3503 # See if sys/param.h defines the BYTE_ORDER macro.
3504 cat >conftest.$ac_ext <<_ACEOF
3505 #line $LINENO "configure"
3506 #include "confdefs.h"
3507 #include <sys/types.h>
3508 #include <sys/param.h>
3510 #ifdef F77_DUMMY_MAIN
3514 int F77_DUMMY_MAIN() { return 1; }
3519 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3527 rm -f conftest.$ac_objext
3528 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3529 (eval $ac_compile) 2>&5
3531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3532 (exit $ac_status); } &&
3533 { ac_try='test -s conftest.$ac_objext'
3534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3538 (exit $ac_status); }; }; then
3539 # It does; now see whether it defined to BIG_ENDIAN or not.
3540 cat >conftest.$ac_ext <<_ACEOF
3541 #line $LINENO "configure"
3542 #include "confdefs.h"
3543 #include <sys/types.h>
3544 #include <sys/param.h>
3546 #ifdef F77_DUMMY_MAIN
3550 int F77_DUMMY_MAIN() { return 1; }
3555 #if BYTE_ORDER != BIG_ENDIAN
3563 rm -f conftest.$ac_objext
3564 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3565 (eval $ac_compile) 2>&5
3567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3568 (exit $ac_status); } &&
3569 { ac_try='test -s conftest.$ac_objext'
3570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3574 (exit $ac_status); }; }; then
3575 ac_cv_c_bigendian=yes
3577 echo "$as_me: failed program was:" >&5
3578 cat conftest.$ac_ext >&5
3579 ac_cv_c_bigendian=no
3581 rm -f conftest.$ac_objext conftest.$ac_ext
3583 echo "$as_me: failed program was:" >&5
3584 cat conftest.$ac_ext >&5
3585 # It does not; compile a test program.
3586 if test "$cross_compiling" = yes; then
3587 # try to guess the endianess by grep'ing values into an object file
3588 ac_cv_c_bigendian=unknown
3589 cat >conftest.$ac_ext <<_ACEOF
3590 #line $LINENO "configure"
3591 #include "confdefs.h"
3592 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
3593 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
3594 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
3595 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
3596 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
3597 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
3598 #ifdef F77_DUMMY_MAIN
3602 int F77_DUMMY_MAIN() { return 1; }
3607 _ascii (); _ebcdic ();
3612 rm -f conftest.$ac_objext
3613 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3614 (eval $ac_compile) 2>&5
3616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3617 (exit $ac_status); } &&
3618 { ac_try='test -s conftest.$ac_objext'
3619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3623 (exit $ac_status); }; }; then
3624 if fgrep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
3625 ac_cv_c_bigendian=yes
3627 if fgrep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
3628 if test "$ac_cv_c_bigendian" = unknown; then
3629 ac_cv_c_bigendian=no
3631 # finding both strings is unlikely to happen, but who knows?
3632 ac_cv_c_bigendian=unknown
3636 echo "$as_me: failed program was:" >&5
3637 cat conftest.$ac_ext >&5
3639 rm -f conftest.$ac_objext conftest.$ac_ext
3641 cat >conftest.$ac_ext <<_ACEOF
3642 #line $LINENO "configure"
3643 #include "confdefs.h"
3647 /* Are we little or big endian? From Harbison&Steele. */
3651 char c[sizeof (long)];
3654 exit (u.c[sizeof (long) - 1] == 1);
3657 rm -f conftest$ac_exeext
3658 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3659 (eval $ac_link) 2>&5
3661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3662 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3667 (exit $ac_status); }; }; then
3668 ac_cv_c_bigendian=no
3670 echo "$as_me: program exited with status $ac_status" >&5
3671 echo "$as_me: failed program was:" >&5
3672 cat conftest.$ac_ext >&5
3674 ac_cv_c_bigendian=yes
3676 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3679 rm -f conftest.$ac_objext conftest.$ac_ext
3681 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
3682 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
3683 case $ac_cv_c_bigendian in
3686 cat >>confdefs.h <<\_ACEOF
3687 #define WORDS_BIGENDIAN 1
3693 { { echo "$as_me:$LINENO: error: unknown endianess
3694 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
3695 echo "$as_me: error: unknown endianess
3696 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
3697 { (exit 1); exit 1; }; } ;;
3700 echo "$as_me:$LINENO: checking for working long double with more range or precision than double" >&5
3701 echo $ECHO_N "checking for working long double with more range or precision than double... $ECHO_C" >&6
3702 if test "${ac_cv_c_long_double+set}" = set; then
3703 echo $ECHO_N "(cached) $ECHO_C" >&6
3705 cat >conftest.$ac_ext <<_ACEOF
3706 #line $LINENO "configure"
3707 #include "confdefs.h"
3709 long double foo = 0.0;
3710 #ifdef F77_DUMMY_MAIN
3714 int F77_DUMMY_MAIN() { return 1; }
3719 static int test_array [1 - 2 * !(/* Using '|' rather than '||' catches a GCC 2.95.2 x86 bug. */
3720 (DBL_MAX < LDBL_MAX) | (LDBL_EPSILON < DBL_EPSILON)
3721 | (DBL_MAX_EXP < LDBL_MAX_EXP) | (DBL_MANT_DIG < LDBL_MANT_DIG))];
3728 rm -f conftest.$ac_objext
3729 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3730 (eval $ac_compile) 2>&5
3732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3733 (exit $ac_status); } &&
3734 { ac_try='test -s conftest.$ac_objext'
3735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3739 (exit $ac_status); }; }; then
3740 ac_cv_c_long_double=yes
3742 echo "$as_me: failed program was:" >&5
3743 cat conftest.$ac_ext >&5
3744 ac_cv_c_long_double=no
3746 rm -f conftest.$ac_objext conftest.$ac_ext
3748 echo "$as_me:$LINENO: result: $ac_cv_c_long_double" >&5
3749 echo "${ECHO_T}$ac_cv_c_long_double" >&6
3750 if test $ac_cv_c_long_double = yes; then
3752 cat >>confdefs.h <<\_ACEOF
3753 #define HAVE_LONG_DOUBLE 1
3761 echo "$as_me:$LINENO: checking for strerror" >&5
3762 echo $ECHO_N "checking for strerror... $ECHO_C" >&6
3763 if test "${ac_cv_func_strerror+set}" = set; then
3764 echo $ECHO_N "(cached) $ECHO_C" >&6
3766 cat >conftest.$ac_ext <<_ACEOF
3767 #line $LINENO "configure"
3768 #include "confdefs.h"
3769 /* System header to define __stub macros and hopefully few prototypes,
3770 which can conflict with char strerror (); below. */
3772 /* Override any gcc2 internal prototype to avoid an error. */
3776 /* We use char because int might match the return type of a gcc2
3777 builtin and then its argument prototype would still apply. */
3781 #ifdef F77_DUMMY_MAIN
3785 int F77_DUMMY_MAIN() { return 1; }
3790 /* The GNU C library defines this for functions which it implements
3791 to always fail with ENOSYS. Some functions are actually named
3792 something starting with __ and the normal name is an alias. */
3793 #if defined (__stub_strerror) || defined (__stub___strerror)
3803 rm -f conftest.$ac_objext conftest$ac_exeext
3804 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3805 (eval $ac_link) 2>&5
3807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3808 (exit $ac_status); } &&
3809 { ac_try='test -s conftest$ac_exeext'
3810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3814 (exit $ac_status); }; }; then
3815 ac_cv_func_strerror=yes
3817 echo "$as_me: failed program was:" >&5
3818 cat conftest.$ac_ext >&5
3819 ac_cv_func_strerror=no
3821 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3823 echo "$as_me:$LINENO: result: $ac_cv_func_strerror" >&5
3824 echo "${ECHO_T}$ac_cv_func_strerror" >&6
3825 if test $ac_cv_func_strerror = yes; then
3828 { { echo "$as_me:$LINENO: error: \"need strerror function\"" >&5
3829 echo "$as_me: error: \"need strerror function\"" >&2;}
3830 { (exit 1); exit 1; }; }
3838 ac_config_files="$ac_config_files $ac_output_file"
3839 ac_config_commands="$ac_config_commands default"
3840 cat >confcache <<\_ACEOF
3841 # This file is a shell script that caches the results of configure
3842 # tests run on this system so they can be shared between configure
3843 # scripts and configure runs, see configure's option --config-cache.
3844 # It is not useful on other systems. If it contains results you don't
3845 # want to keep, you may remove or edit it.
3847 # config.status only pays attention to the cache file if you give it
3848 # the --recheck option to rerun configure.
3850 # `ac_cv_env_foo' variables (set or unset) will be overriden when
3851 # loading this file, other *unset* `ac_cv_foo' will be assigned the
3856 # The following way of writing the cache mishandles newlines in values,
3857 # but we know of no workaround that is simple, portable, and efficient.
3858 # So, don't put newlines in cache variables' values.
3859 # Ultrix sh set writes to stderr and can't be redirected directly,
3860 # and sets the high bit in the cache file unless we assign to the vars.
3863 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3865 # `set' does not quote correctly, so add quotes (double-quote
3866 # substitution turns \\\\ into \\, and sed turns \\ into \).
3869 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3872 # `set' quotes correctly as required by POSIX, so do not add quotes.
3874 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
3881 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3883 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3885 if cmp -s $cache_file confcache; then :; else
3886 if test -w $cache_file; then
3887 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
3888 cat confcache >$cache_file
3890 echo "not updating unwritable cache $cache_file"
3895 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3896 # Let make expand exec_prefix.
3897 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3899 # VPATH may cause trouble with some makes, so we remove $(srcdir),
3900 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
3901 # trailing colons and then remove the whole line if VPATH becomes empty
3902 # (actually we leave an empty line to preserve line numbers).
3903 if test "x$srcdir" = x.; then
3904 ac_vpsub='/^[ ]*VPATH[ ]*=/{
3905 s/:*\$(srcdir):*/:/;
3906 s/:*\${srcdir}:*/:/;
3908 s/^\([^=]*=[ ]*\):*/\1/;
3914 DEFS=-DHAVE_CONFIG_H
3917 : ${CONFIG_STATUS=./config.status}
3918 ac_clean_files_save=$ac_clean_files
3919 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
3920 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
3921 echo "$as_me: creating $CONFIG_STATUS" >&6;}
3922 cat >$CONFIG_STATUS <<_ACEOF
3924 # Generated by $as_me.
3925 # Run this file to recreate the current configuration.
3926 # Compiler output produced by configure, useful for debugging
3927 # configure, is in config.log if it exists.
3930 SHELL=\${CONFIG_SHELL-$SHELL}
3933 cat >>$CONFIG_STATUS <<\_ACEOF
3935 ## --------------------- ##
3936 ## M4sh Initialization. ##
3937 ## --------------------- ##
3939 # Be Bourne compatible
3940 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
3943 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
3948 # Support unset when possible.
3949 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
3955 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
3956 { $as_unset LANG || test "${LANG+set}" != set; } ||
3957 { LANG=C; export LANG; }
3958 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
3959 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
3960 { LC_ALL=C; export LC_ALL; }
3961 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
3962 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
3963 { LC_TIME=C; export LC_TIME; }
3964 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
3965 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
3966 { LC_CTYPE=C; export LC_CTYPE; }
3967 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
3968 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
3969 { LANGUAGE=C; export LANGUAGE; }
3970 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
3971 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
3972 { LC_COLLATE=C; export LC_COLLATE; }
3973 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
3974 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
3975 { LC_NUMERIC=C; export LC_NUMERIC; }
3976 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
3977 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
3978 { LC_MESSAGES=C; export LC_MESSAGES; }
3981 # Name of the executable.
3982 as_me=`(basename "$0") 2>/dev/null ||
3983 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
3984 X"$0" : 'X\(//\)$' \| \
3985 X"$0" : 'X\(/\)$' \| \
3986 . : '\(.\)' 2>/dev/null ||
3988 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
3989 /^X\/\(\/\/\)$/{ s//\1/; q; }
3990 /^X\/\(\/\).*/{ s//\1/; q; }
3993 # PATH needs CR, and LINENO needs CR and PATH.
3994 # Avoid depending upon Character Ranges.
3995 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
3996 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
3997 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
3998 as_cr_digits='0123456789'
3999 as_cr_alnum=$as_cr_Letters$as_cr_digits
4001 # The user is always right.
4002 if test "${PATH_SEPARATOR+set}" != set; then
4003 echo "#! /bin/sh" >conftest.sh
4004 echo "exit 0" >>conftest.sh
4005 chmod +x conftest.sh
4006 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
4017 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4018 test "x$as_lineno_1" != "x$as_lineno_2" &&
4019 test "x$as_lineno_3" = "x$as_lineno_2" || {
4020 # Find who we are. Look in the path if we contain no path at all
4023 *[\\/]* ) as_myself=$0 ;;
4024 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4028 test -z "$as_dir" && as_dir=.
4029 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4034 # We did not find ourselves, most probably we were run as `sh COMMAND'
4035 # in which case we are not to be found in the path.
4036 if test "x$as_myself" = x; then
4039 if test ! -f "$as_myself"; then
4040 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
4041 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
4042 { (exit 1); exit 1; }; }
4044 case $CONFIG_SHELL in
4046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4047 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
4050 test -z "$as_dir" && as_dir=.
4051 for as_base in sh bash ksh sh5; do
4054 if ("$as_dir/$as_base" -c '
4057 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4058 test "x$as_lineno_1" != "x$as_lineno_2" &&
4059 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
4060 CONFIG_SHELL=$as_dir/$as_base
4062 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
4070 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
4071 # uniformly replaced by the line number. The first 'sed' inserts a
4072 # line-number line before each line; the second 'sed' does the real
4073 # work. The second script uses 'N' to pair each line-number line
4074 # with the numbered line, and appends trailing '-' during
4075 # substitution so that $LINENO is not a special case at line end.
4076 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
4077 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
4078 sed '=' <$as_myself |
4083 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
4086 s,^['$as_cr_digits']*\n,,
4088 chmod +x $as_me.lineno ||
4089 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
4090 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
4091 { (exit 1); exit 1; }; }
4093 # Don't try to exec as it changes $[0], causing all sort of problems
4094 # (the dirname of $[0] is not the place where we might find the
4095 # original and so on. Autoconf is especially sensible to this).
4097 # Exit status is that of the last command.
4102 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
4103 *c*,-n*) ECHO_N= ECHO_C='
4105 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
4106 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
4109 if expr a : '\(a\)' >/dev/null 2>&1; then
4115 rm -f conf$$ conf$$.exe conf$$.file
4117 if ln -s conf$$.file conf$$ 2>/dev/null; then
4118 # We could just check for DJGPP; but this test a) works b) is more generic
4119 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
4120 if test -f conf$$.exe; then
4121 # Don't use ln at all; we don't have any links
4126 elif ln conf$$.file conf$$ 2>/dev/null; then
4131 rm -f conf$$ conf$$.exe conf$$.file
4133 as_executable_p="test -f"
4135 # Sed expression to map a string onto a valid CPP name.
4136 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
4138 # Sed expression to map a string onto a valid variable name.
4139 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
4143 # We need space, tab and new line, in precisely that order.
4149 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
4153 # Open the log real soon, to keep \$[0] and so on meaningful, and to
4154 # report actual input values of CONFIG_FILES etc. instead of their
4155 # values after options handling. Logging --version etc. is OK.
4159 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4160 ## Running $as_me. ##
4165 This file was extended by libfirm $as_me 0.3.0, which was
4166 generated by GNU Autoconf 2.53. Invocation command line was
4168 CONFIG_FILES = $CONFIG_FILES
4169 CONFIG_HEADERS = $CONFIG_HEADERS
4170 CONFIG_LINKS = $CONFIG_LINKS
4171 CONFIG_COMMANDS = $CONFIG_COMMANDS
4175 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
4179 # Files that config.status was made for.
4180 if test -n "$ac_config_files"; then
4181 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
4184 if test -n "$ac_config_headers"; then
4185 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
4188 if test -n "$ac_config_links"; then
4189 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
4192 if test -n "$ac_config_commands"; then
4193 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
4196 cat >>$CONFIG_STATUS <<\_ACEOF
4199 \`$as_me' instantiates files from templates according to the
4200 current configuration.
4202 Usage: $0 [OPTIONS] [FILE]...
4204 -h, --help print this help, then exit
4205 -V, --version print version number, then exit
4206 -d, --debug don't remove temporary files
4207 --recheck update $as_me by reconfiguring in the same conditions
4208 --file=FILE[:TEMPLATE]
4209 instantiate the configuration file FILE
4210 --header=FILE[:TEMPLATE]
4211 instantiate the configuration header FILE
4213 Configuration files:
4216 Configuration headers:
4219 Configuration commands:
4222 Report bugs to <bug-autoconf@gnu.org>."
4225 cat >>$CONFIG_STATUS <<_ACEOF
4227 libfirm config.status 0.3.0
4228 configured by $0, generated by GNU Autoconf 2.53,
4229 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
4231 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
4232 Free Software Foundation, Inc.
4233 This config.status script is free software; the Free Software Foundation
4234 gives unlimited permission to copy, distribute and modify it."
4239 cat >>$CONFIG_STATUS <<\_ACEOF
4240 # If no file are specified by the user, then we need to provide default
4241 # value. By we need to know if files were specified by the user.
4247 ac_option=`expr "x$1" : 'x\([^=]*\)='`
4248 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
4250 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
4254 *) # This is not an option, so the user has probably given explicit
4256 ac_need_defaults=false;;
4260 # Handling of the options.
4262 cat >>$CONFIG_STATUS <<_ACEOF
4263 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4264 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
4265 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
4267 cat >>$CONFIG_STATUS <<\_ACEOF
4268 --version | --vers* | -V )
4269 echo "$ac_cs_version"; exit 0 ;;
4271 # Conflict between --help and --header
4272 { { echo "$as_me:$LINENO: error: ambiguous option: $1
4273 Try \`$0 --help' for more information." >&5
4274 echo "$as_me: error: ambiguous option: $1
4275 Try \`$0 --help' for more information." >&2;}
4276 { (exit 1); exit 1; }; };;
4277 --help | --hel | -h )
4278 echo "$ac_cs_usage"; exit 0 ;;
4279 --debug | --d* | -d )
4281 --file | --fil | --fi | --f )
4283 CONFIG_FILES="$CONFIG_FILES $1"
4284 ac_need_defaults=false;;
4285 --header | --heade | --head | --hea )
4287 CONFIG_HEADERS="$CONFIG_HEADERS $1"
4288 ac_need_defaults=false;;
4291 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
4292 Try \`$0 --help' for more information." >&5
4293 echo "$as_me: error: unrecognized option: $1
4294 Try \`$0 --help' for more information." >&2;}
4295 { (exit 1); exit 1; }; } ;;
4297 *) ac_config_targets="$ac_config_targets $1" ;;
4309 cat >>$CONFIG_STATUS <<\_ACEOF
4310 for ac_config_target in $ac_config_targets
4312 case "$ac_config_target" in
4313 # Handling of arguments.
4314 "$ac_output_file" ) CONFIG_FILES="$CONFIG_FILES $ac_output_file" ;;
4315 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
4316 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
4317 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
4318 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
4319 { (exit 1); exit 1; }; };;
4323 # If the user did not use the arguments to specify the items to instantiate,
4324 # then the envvar interface is used. Set only those that are not.
4325 # We use the long form for the default assignment because of an extremely
4326 # bizarre bug on SunOS 4.1.3.
4327 if $ac_need_defaults; then
4328 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
4329 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
4330 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
4333 # Create a temporary directory, and hook for its removal unless debugging.
4336 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
4337 trap '{ (exit 1); exit 1; }' 1 2 13 15
4340 # Create a (secure) tmp directory for tmp files.
4343 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
4344 test -n "$tmp" && test -d "$tmp"
4347 tmp=$TMPDIR/cs$$-$RANDOM
4348 (umask 077 && mkdir $tmp)
4351 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
4352 { (exit 1); exit 1; }
4357 cat >>$CONFIG_STATUS <<_ACEOF
4360 # CONFIG_FILES section.
4363 # No need to generate the scripts if there are no CONFIG_FILES.
4364 # This happens for instance when ./config.status config.h
4365 if test -n "\$CONFIG_FILES"; then
4366 # Protect against being on the right side of a sed subst in config.status.
4367 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
4368 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
4369 s,@SHELL@,$SHELL,;t t
4370 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
4371 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
4372 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
4373 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
4374 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
4375 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
4376 s,@exec_prefix@,$exec_prefix,;t t
4377 s,@prefix@,$prefix,;t t
4378 s,@program_transform_name@,$program_transform_name,;t t
4379 s,@bindir@,$bindir,;t t
4380 s,@sbindir@,$sbindir,;t t
4381 s,@libexecdir@,$libexecdir,;t t
4382 s,@datadir@,$datadir,;t t
4383 s,@sysconfdir@,$sysconfdir,;t t
4384 s,@sharedstatedir@,$sharedstatedir,;t t
4385 s,@localstatedir@,$localstatedir,;t t
4386 s,@libdir@,$libdir,;t t
4387 s,@includedir@,$includedir,;t t
4388 s,@oldincludedir@,$oldincludedir,;t t
4389 s,@infodir@,$infodir,;t t
4390 s,@mandir@,$mandir,;t t
4391 s,@build_alias@,$build_alias,;t t
4392 s,@host_alias@,$host_alias,;t t
4393 s,@target_alias@,$target_alias,;t t
4395 s,@ECHO_C@,$ECHO_C,;t t
4396 s,@ECHO_N@,$ECHO_N,;t t
4397 s,@ECHO_T@,$ECHO_T,;t t
4399 s,@libfirm_conf_env@,$libfirm_conf_env,;t t
4400 s,@enable_debug_libfirm@,$enable_debug_libfirm,;t t
4401 s,@enable_gcc_inline@,$enable_gcc_inline,;t t
4402 s,@enable_profile_libfirm@,$enable_profile_libfirm,;t t
4403 s,@enable_auto_documentation@,$enable_auto_documentation,;t t
4404 s,@enable_firm_jni@,$enable_firm_jni,;t t
4405 s,@disable_libiberty@,$disable_libiberty,;t t
4407 s,@CFLAGS@,$CFLAGS,;t t
4408 s,@LDFLAGS@,$LDFLAGS,;t t
4409 s,@CPPFLAGS@,$CPPFLAGS,;t t
4410 s,@ac_ct_CC@,$ac_ct_CC,;t t
4411 s,@EXEEXT@,$EXEEXT,;t t
4412 s,@OBJEXT@,$OBJEXT,;t t
4414 s,@ac_ct_LD@,$ac_ct_LD,;t t
4415 s,@libfirm_cv_prog_ld_r@,$libfirm_cv_prog_ld_r,;t t
4418 s,@RANLIB@,$RANLIB,;t t
4419 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
4420 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
4421 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
4422 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
4424 s,@DOXYGEN@,$DOXYGEN,;t t
4426 s,@JAVAC@,$JAVAC,;t t
4427 s,@JAVAH@,$JAVAH,;t t
4433 cat >>$CONFIG_STATUS <<\_ACEOF
4434 # Split the substitutions into bite-sized pieces for seds with
4435 # small command number limits, like on Digital OSF/1 and HP-UX.
4437 ac_sed_frag=1 # Number of current file.
4438 ac_beg=1 # First line for current file.
4439 ac_end=$ac_max_sed_lines # Line after last line for current file.
4442 while $ac_more_lines; do
4443 if test $ac_beg -gt 1; then
4444 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4446 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4448 if test ! -s $tmp/subs.frag; then
4451 # The purpose of the label and of the branching condition is to
4452 # speed up the sed processing (if there are no `@' at all, there
4453 # is no need to browse any of the substitutions).
4454 # These are the two extra sed commands mentioned above.
4456 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
4457 if test -z "$ac_sed_cmds"; then
4458 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
4460 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
4462 ac_sed_frag=`expr $ac_sed_frag + 1`
4464 ac_end=`expr $ac_end + $ac_max_sed_lines`
4467 if test -z "$ac_sed_cmds"; then
4470 fi # test -n "$CONFIG_FILES"
4473 cat >>$CONFIG_STATUS <<\_ACEOF
4474 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
4475 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4477 - | *:- | *:-:* ) # input from stdin
4479 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4480 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4481 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4482 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4483 * ) ac_file_in=$ac_file.in ;;
4486 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
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; }; }
4521 if test "$ac_dir" != .; then
4522 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
4523 # A "../" for each directory in $ac_dir_suffix.
4524 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
4526 ac_dir_suffix= ac_top_builddir=
4530 .) # No --srcdir option. We are building in place.
4532 if test -z "$ac_top_builddir"; then
4535 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
4537 [\\/]* | ?:[\\/]* ) # Absolute path.
4538 ac_srcdir=$srcdir$ac_dir_suffix;
4539 ac_top_srcdir=$srcdir ;;
4541 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
4542 ac_top_srcdir=$ac_top_builddir$srcdir ;;
4544 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
4546 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
4547 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
4548 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
4549 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
4553 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
4554 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
4557 if test x"$ac_file" != x-; then
4558 { echo "$as_me:$LINENO: creating $ac_file" >&5
4559 echo "$as_me: creating $ac_file" >&6;}
4562 # Let's still pretend it is `configure' which instantiates (i.e., don't
4563 # use $as_me), people would be surprised to read:
4564 # /* config.h. Generated by config.status. */
4565 if test x"$ac_file" = x-; then
4568 configure_input="$ac_file. "
4570 configure_input=$configure_input"Generated from `echo $ac_file_in |
4571 sed 's,.*/,,'` by configure."
4573 # First look for the input files in the build tree, otherwise in the
4575 ac_file_inputs=`IFS=:
4576 for f in $ac_file_in; do
4578 -) echo $tmp/stdin ;;
4580 # Absolute (can't be DOS-style, as IFS=:)
4581 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4582 echo "$as_me: error: cannot find input file: $f" >&2;}
4583 { (exit 1); exit 1; }; }
4586 if test -f "$f"; then
4589 elif test -f "$srcdir/$f"; then
4594 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4595 echo "$as_me: error: cannot find input file: $f" >&2;}
4596 { (exit 1); exit 1; }; }
4599 done` || { (exit 1); exit 1; }
4601 cat >>$CONFIG_STATUS <<_ACEOF
4605 cat >>$CONFIG_STATUS <<\_ACEOF
4607 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
4608 s,@configure_input@,$configure_input,;t t
4609 s,@srcdir@,$ac_srcdir,;t t
4610 s,@abs_srcdir@,$ac_abs_srcdir,;t t
4611 s,@top_srcdir@,$ac_top_srcdir,;t t
4612 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
4613 s,@builddir@,$ac_builddir,;t t
4614 s,@abs_builddir@,$ac_abs_builddir,;t t
4615 s,@top_builddir@,$ac_top_builddir,;t t
4616 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
4617 s,@INSTALL@,$ac_INSTALL,;t t
4618 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
4620 if test x"$ac_file" != x-; then
4621 mv $tmp/out $ac_file
4629 cat >>$CONFIG_STATUS <<\_ACEOF
4632 # CONFIG_HEADER section.
4635 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4636 # NAME is the cpp macro being defined and VALUE is the value it is being given.
4638 # ac_d sets the value in "#define NAME VALUE" lines.
4639 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
4640 ac_dB='[ ].*$,\1#\2'
4643 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4644 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4645 ac_uB='$,\1#\2define\3'
4649 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
4650 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4652 - | *:- | *:-:* ) # input from stdin
4654 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4655 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4656 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4657 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4658 * ) ac_file_in=$ac_file.in ;;
4661 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
4662 echo "$as_me: creating $ac_file" >&6;}
4664 # First look for the input files in the build tree, otherwise in the
4666 ac_file_inputs=`IFS=:
4667 for f in $ac_file_in; do
4669 -) echo $tmp/stdin ;;
4671 # Absolute (can't be DOS-style, as IFS=:)
4672 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4673 echo "$as_me: error: cannot find input file: $f" >&2;}
4674 { (exit 1); exit 1; }; }
4677 if test -f "$f"; then
4680 elif test -f "$srcdir/$f"; then
4685 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4686 echo "$as_me: error: cannot find input file: $f" >&2;}
4687 { (exit 1); exit 1; }; }
4690 done` || { (exit 1); exit 1; }
4691 # Remove the trailing spaces.
4692 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
4696 # Transform confdefs.h into two sed scripts, `conftest.defines' and
4697 # `conftest.undefs', that substitutes the proper values into
4698 # config.h.in to produce config.h. The first handles `#define'
4699 # templates, and the second `#undef' templates.
4700 # And first: Protect against being on the right side of a sed subst in
4701 # config.status. Protect against being in an unquoted here document
4703 rm -f conftest.defines conftest.undefs
4704 # Using a here document instead of a string reduces the quoting nightmare.
4705 # Putting comments in sed scripts is not portable.
4707 # `end' is used to avoid that the second main sed command (meant for
4708 # 0-ary CPP macros) applies to n-ary macro definitions.
4709 # See the Autoconf documentation for `clear'.
4710 cat >confdef2sed.sed <<\_ACEOF
4715 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
4717 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
4720 # If some macros were called several times there might be several times
4721 # the same #defines, which is useless. Nevertheless, we may not want to
4722 # sort them, since we want the *last* AC-DEFINE to be honored.
4723 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
4724 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
4725 rm -f confdef2sed.sed
4727 # This sed command replaces #undef with comments. This is necessary, for
4728 # example, in the case of _POSIX_SOURCE, which is predefined and required
4729 # on some systems where configure will not decide to define it.
4730 cat >>conftest.undefs <<\_ACEOF
4731 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
4734 # Break up conftest.defines because some shells have a limit on the size
4735 # of here documents, and old seds have small limits too (100 cmds).
4736 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
4737 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
4738 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
4739 echo ' :' >>$CONFIG_STATUS
4741 while grep . conftest.defines >/dev/null
4743 # Write a limited-size here document to $tmp/defines.sed.
4744 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
4745 # Speed up: don't consider the non `#define' lines.
4746 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
4747 # Work around the forget-to-reset-the-flag bug.
4748 echo 't clr' >>$CONFIG_STATUS
4749 echo ': clr' >>$CONFIG_STATUS
4750 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
4752 sed -f $tmp/defines.sed $tmp/in >$tmp/out
4756 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
4757 rm -f conftest.defines
4758 mv conftest.tail conftest.defines
4760 rm -f conftest.defines
4761 echo ' fi # egrep' >>$CONFIG_STATUS
4762 echo >>$CONFIG_STATUS
4764 # Break up conftest.undefs because some shells have a limit on the size
4765 # of here documents, and old seds have small limits too (100 cmds).
4766 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
4768 while grep . conftest.undefs >/dev/null
4770 # Write a limited-size here document to $tmp/undefs.sed.
4771 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
4772 # Speed up: don't consider the non `#undef'
4773 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
4774 # Work around the forget-to-reset-the-flag bug.
4775 echo 't clr' >>$CONFIG_STATUS
4776 echo ': clr' >>$CONFIG_STATUS
4777 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
4779 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
4783 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
4784 rm -f conftest.undefs
4785 mv conftest.tail conftest.undefs
4787 rm -f conftest.undefs
4789 cat >>$CONFIG_STATUS <<\_ACEOF
4790 # Let's still pretend it is `configure' which instantiates (i.e., don't
4791 # use $as_me), people would be surprised to read:
4792 # /* config.h. Generated by config.status. */
4793 if test x"$ac_file" = x-; then
4794 echo "/* Generated by configure. */" >$tmp/config.h
4796 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
4798 cat $tmp/in >>$tmp/config.h
4800 if test x"$ac_file" != x-; then
4801 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
4802 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
4803 echo "$as_me: $ac_file is unchanged" >&6;}
4805 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
4806 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4807 X"$ac_file" : 'X\(//\)[^/]' \| \
4808 X"$ac_file" : 'X\(//\)$' \| \
4809 X"$ac_file" : 'X\(/\)' \| \
4810 . : '\(.\)' 2>/dev/null ||
4812 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4813 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4814 /^X\(\/\/\)$/{ s//\1/; q; }
4815 /^X\(\/\).*/{ s//\1/; q; }
4818 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
4822 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
4823 case $as_mkdir_dir in
4824 # Skip DOS drivespec
4825 ?:) as_incr_dir=$as_mkdir_dir ;;
4827 as_incr_dir=$as_incr_dir/$as_mkdir_dir
4828 test -d "$as_incr_dir" ||
4829 mkdir "$as_incr_dir" ||
4830 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
4831 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
4832 { (exit 1); exit 1; }; }
4838 mv $tmp/config.h $ac_file
4846 cat >>$CONFIG_STATUS <<\_ACEOF
4849 # CONFIG_COMMANDS section.
4851 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
4852 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
4853 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
4854 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
4855 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4856 X"$ac_dest" : 'X\(//\)[^/]' \| \
4857 X"$ac_dest" : 'X\(//\)$' \| \
4858 X"$ac_dest" : 'X\(/\)' \| \
4859 . : '\(.\)' 2>/dev/null ||
4861 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4862 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4863 /^X\(\/\/\)$/{ s//\1/; q; }
4864 /^X\(\/\).*/{ s//\1/; q; }
4868 if test "$ac_dir" != .; then
4869 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
4870 # A "../" for each directory in $ac_dir_suffix.
4871 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
4873 ac_dir_suffix= ac_top_builddir=
4877 .) # No --srcdir option. We are building in place.
4879 if test -z "$ac_top_builddir"; then
4882 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
4884 [\\/]* | ?:[\\/]* ) # Absolute path.
4885 ac_srcdir=$srcdir$ac_dir_suffix;
4886 ac_top_srcdir=$srcdir ;;
4888 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
4889 ac_top_srcdir=$ac_top_builddir$srcdir ;;
4891 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
4893 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
4894 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
4895 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
4896 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
4899 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
4900 echo "$as_me: executing $ac_dest commands" >&6;}
4902 default ) touch stamp-h ;;
4907 cat >>$CONFIG_STATUS <<\_ACEOF
4909 { (exit 0); exit 0; }
4911 chmod +x $CONFIG_STATUS
4912 ac_clean_files=$ac_clean_files_save
4915 # configure is writing to config.log, and then calls config.status.
4916 # config.status does its own redirection, appending to config.log.
4917 # Unfortunately, on DOS this fails, as config.log is still kept open
4918 # by configure, so config.status won't be able to write to it; its
4919 # output is simply discarded. So we exec the FD to /dev/null,
4920 # effectively closing config.log, so it can be properly (re)opened and
4921 # appended to by config.status. When coming back to configure, we
4922 # need to make the FD available again.
4923 if test "$no_create" != yes; then
4926 $SHELL $CONFIG_STATUS || ac_cs_success=false
4928 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
4929 # would make configure fail if this is the last instruction.
4930 $ac_cs_success || { (exit 1); exit 1; }