2 # From configure.in Id: configure.in.
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.56 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.
10 ## --------------------- ##
11 ## M4sh Initialization. ##
12 ## --------------------- ##
14 # Be Bourne compatible
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
25 # Support unset when possible.
26 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
33 # Work around bugs in pre-3.0 UWIN ksh.
34 $as_unset ENV MAIL MAILPATH
41 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
42 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
45 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
46 eval $as_var=C; export $as_var
52 # Required to use basename.
53 if expr a : '\(a\)' >/dev/null 2>&1; then
59 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
66 # Name of the executable.
67 as_me=`$as_basename "$0" ||
68 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
69 X"$0" : 'X\(//\)$' \| \
70 X"$0" : 'X\(/\)$' \| \
71 . : '\(.\)' 2>/dev/null ||
73 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
74 /^X\/\(\/\/\)$/{ s//\1/; q; }
75 /^X\/\(\/\).*/{ s//\1/; q; }
79 # PATH needs CR, and LINENO needs CR and PATH.
80 # Avoid depending upon Character Ranges.
81 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
82 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
83 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
84 as_cr_digits='0123456789'
85 as_cr_alnum=$as_cr_Letters$as_cr_digits
87 # The user is always right.
88 if test "${PATH_SEPARATOR+set}" != set; then
89 echo "#! /bin/sh" >conf$$.sh
90 echo "exit 0" >>conf$$.sh
92 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
103 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
104 test "x$as_lineno_1" != "x$as_lineno_2" &&
105 test "x$as_lineno_3" = "x$as_lineno_2" || {
106 # Find who we are. Look in the path if we contain no path at all
109 *[\\/]* ) as_myself=$0 ;;
110 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
114 test -z "$as_dir" && as_dir=.
115 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
120 # We did not find ourselves, most probably we were run as `sh COMMAND'
121 # in which case we are not to be found in the path.
122 if test "x$as_myself" = x; then
125 if test ! -f "$as_myself"; then
126 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
127 { (exit 1); exit 1; }; }
129 case $CONFIG_SHELL in
131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
132 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
135 test -z "$as_dir" && as_dir=.
136 for as_base in sh bash ksh sh5; do
139 if ("$as_dir/$as_base" -c '
142 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
143 test "x$as_lineno_1" != "x$as_lineno_2" &&
144 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
145 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
146 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
147 CONFIG_SHELL=$as_dir/$as_base
149 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
157 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
158 # uniformly replaced by the line number. The first 'sed' inserts a
159 # line-number line before each line; the second 'sed' does the real
160 # work. The second script uses 'N' to pair each line-number line
161 # with the numbered line, and appends trailing '-' during
162 # substitution so that $LINENO is not a special case at line end.
163 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
164 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
165 sed '=' <$as_myself |
170 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
173 s,^['$as_cr_digits']*\n,,
175 chmod +x $as_me.lineno ||
176 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
177 { (exit 1); exit 1; }; }
179 # Don't try to exec as it changes $[0], causing all sort of problems
180 # (the dirname of $[0] is not the place where we might find the
181 # original and so on. Autoconf is especially sensible to this).
183 # Exit status is that of the last command.
188 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
189 *c*,-n*) ECHO_N= ECHO_C='
191 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
192 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
195 if expr a : '\(a\)' >/dev/null 2>&1; then
201 rm -f conf$$ conf$$.exe conf$$.file
203 if ln -s conf$$.file conf$$ 2>/dev/null; then
204 # We could just check for DJGPP; but this test a) works b) is more generic
205 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
206 if test -f conf$$.exe; then
207 # Don't use ln at all; we don't have any links
212 elif ln conf$$.file conf$$ 2>/dev/null; then
217 rm -f conf$$ conf$$.exe conf$$.file
219 if mkdir -p . 2>/dev/null; then
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
235 # We need space, tab and new line, in precisely that order.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
260 SHELL=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
268 PACKAGE_NAME='libfirm'
269 PACKAGE_TARNAME='libfirm'
270 PACKAGE_VERSION='0.3.0'
271 PACKAGE_STRING='libfirm 0.3.0'
274 # Factoring default headers for most tests.
275 ac_includes_default="\
278 # include <sys/types.h>
281 # include <sys/stat.h>
292 # if !STDC_HEADERS && HAVE_MEMORY_H
298 # include <strings.h>
301 # include <inttypes.h>
311 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS libfirm_conf_env enable_debug_libfirm enable_gcc_inline enable_profile_libfirm enable_auto_documentation enable_firm_jni CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT LD ac_ct_LD libfirm_cv_prog_ld_r AR TAR RANLIB ac_ct_RANLIB INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S ROBODOC JAVAC JAVAH CPP EGREP LIBOBJS LTLIBOBJS'
314 # Initialize some variables set by options.
316 ac_init_version=false
317 # The variables have the same names as the options, with
318 # dashes changed to underlines.
326 program_transform_name=s,x,x,
334 # Installation directory options.
335 # These are left unexpanded so users can "make install exec_prefix=/foo"
336 # and all the variables that are supposed to be based on exec_prefix
337 # by default will actually change.
338 # Use braces instead of parens because sh, perl, etc. also accept them.
339 bindir='${exec_prefix}/bin'
340 sbindir='${exec_prefix}/sbin'
341 libexecdir='${exec_prefix}/libexec'
342 datadir='${prefix}/share'
343 sysconfdir='${prefix}/etc'
344 sharedstatedir='${prefix}/com'
345 localstatedir='${prefix}/var'
346 libdir='${exec_prefix}/lib'
347 includedir='${prefix}/include'
348 oldincludedir='/usr/include'
349 infodir='${prefix}/info'
350 mandir='${prefix}/man'
355 # If the previous option needs an argument, assign it.
356 if test -n "$ac_prev"; then
357 eval "$ac_prev=\$ac_option"
362 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364 # Accept the important Cygnus configure options, so we can diagnose typos.
368 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
373 -build | --build | --buil | --bui | --bu)
374 ac_prev=build_alias ;;
375 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
376 build_alias=$ac_optarg ;;
378 -cache-file | --cache-file | --cache-fil | --cache-fi \
379 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
380 ac_prev=cache_file ;;
381 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
382 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
383 cache_file=$ac_optarg ;;
386 cache_file=config.cache ;;
388 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392 datadir=$ac_optarg ;;
394 -disable-* | --disable-*)
395 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
396 # Reject names that are not valid shell variable names.
397 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
398 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
399 { (exit 1); exit 1; }; }
400 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
401 eval "enable_$ac_feature=no" ;;
403 -enable-* | --enable-*)
404 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
405 # Reject names that are not valid shell variable names.
406 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
407 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
408 { (exit 1); exit 1; }; }
409 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
414 eval "enable_$ac_feature='$ac_optarg'" ;;
416 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
417 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
418 | --exec | --exe | --ex)
419 ac_prev=exec_prefix ;;
420 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
421 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
422 | --exec=* | --exe=* | --ex=*)
423 exec_prefix=$ac_optarg ;;
425 -gas | --gas | --ga | --g)
426 # Obsolete; use --with-gas.
429 -help | --help | --hel | --he | -h)
431 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
432 ac_init_help=recursive ;;
433 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
434 ac_init_help=short ;;
436 -host | --host | --hos | --ho)
437 ac_prev=host_alias ;;
438 -host=* | --host=* | --hos=* | --ho=*)
439 host_alias=$ac_optarg ;;
441 -includedir | --includedir | --includedi | --included | --include \
442 | --includ | --inclu | --incl | --inc)
443 ac_prev=includedir ;;
444 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
445 | --includ=* | --inclu=* | --incl=* | --inc=*)
446 includedir=$ac_optarg ;;
448 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
451 infodir=$ac_optarg ;;
453 -libdir | --libdir | --libdi | --libd)
455 -libdir=* | --libdir=* | --libdi=* | --libd=*)
458 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
459 | --libexe | --libex | --libe)
460 ac_prev=libexecdir ;;
461 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
462 | --libexe=* | --libex=* | --libe=*)
463 libexecdir=$ac_optarg ;;
465 -localstatedir | --localstatedir | --localstatedi | --localstated \
466 | --localstate | --localstat | --localsta | --localst \
467 | --locals | --local | --loca | --loc | --lo)
468 ac_prev=localstatedir ;;
469 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
470 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
471 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
472 localstatedir=$ac_optarg ;;
474 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
480 # Obsolete; use --without-fp.
483 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
484 | --no-cr | --no-c | -n)
487 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
488 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
491 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
492 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
493 | --oldin | --oldi | --old | --ol | --o)
494 ac_prev=oldincludedir ;;
495 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
496 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
497 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
498 oldincludedir=$ac_optarg ;;
500 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
505 -program-prefix | --program-prefix | --program-prefi | --program-pref \
506 | --program-pre | --program-pr | --program-p)
507 ac_prev=program_prefix ;;
508 -program-prefix=* | --program-prefix=* | --program-prefi=* \
509 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
510 program_prefix=$ac_optarg ;;
512 -program-suffix | --program-suffix | --program-suffi | --program-suff \
513 | --program-suf | --program-su | --program-s)
514 ac_prev=program_suffix ;;
515 -program-suffix=* | --program-suffix=* | --program-suffi=* \
516 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
517 program_suffix=$ac_optarg ;;
519 -program-transform-name | --program-transform-name \
520 | --program-transform-nam | --program-transform-na \
521 | --program-transform-n | --program-transform- \
522 | --program-transform | --program-transfor \
523 | --program-transfo | --program-transf \
524 | --program-trans | --program-tran \
525 | --progr-tra | --program-tr | --program-t)
526 ac_prev=program_transform_name ;;
527 -program-transform-name=* | --program-transform-name=* \
528 | --program-transform-nam=* | --program-transform-na=* \
529 | --program-transform-n=* | --program-transform-=* \
530 | --program-transform=* | --program-transfor=* \
531 | --program-transfo=* | --program-transf=* \
532 | --program-trans=* | --program-tran=* \
533 | --progr-tra=* | --program-tr=* | --program-t=*)
534 program_transform_name=$ac_optarg ;;
536 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
537 | -silent | --silent | --silen | --sile | --sil)
540 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544 sbindir=$ac_optarg ;;
546 -sharedstatedir | --sharedstatedir | --sharedstatedi \
547 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
548 | --sharedst | --shareds | --shared | --share | --shar \
550 ac_prev=sharedstatedir ;;
551 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
552 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
553 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555 sharedstatedir=$ac_optarg ;;
557 -site | --site | --sit)
559 -site=* | --site=* | --sit=*)
562 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
567 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
568 | --syscon | --sysco | --sysc | --sys | --sy)
569 ac_prev=sysconfdir ;;
570 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
571 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
572 sysconfdir=$ac_optarg ;;
574 -target | --target | --targe | --targ | --tar | --ta | --t)
575 ac_prev=target_alias ;;
576 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
577 target_alias=$ac_optarg ;;
579 -v | -verbose | --verbose | --verbos | --verbo | --verb)
582 -version | --version | --versio | --versi | --vers | -V)
586 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
587 # Reject names that are not valid shell variable names.
588 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
589 { echo "$as_me: error: invalid package name: $ac_package" >&2
590 { (exit 1); exit 1; }; }
591 ac_package=`echo $ac_package| sed 's/-/_/g'`
593 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
596 eval "with_$ac_package='$ac_optarg'" ;;
598 -without-* | --without-*)
599 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
600 # Reject names that are not valid shell variable names.
601 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
602 { echo "$as_me: error: invalid package name: $ac_package" >&2
603 { (exit 1); exit 1; }; }
604 ac_package=`echo $ac_package | sed 's/-/_/g'`
605 eval "with_$ac_package=no" ;;
608 # Obsolete; use --with-x.
611 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
612 | --x-incl | --x-inc | --x-in | --x-i)
613 ac_prev=x_includes ;;
614 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
615 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
616 x_includes=$ac_optarg ;;
618 -x-libraries | --x-libraries | --x-librarie | --x-librari \
619 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
620 ac_prev=x_libraries ;;
621 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
622 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
623 x_libraries=$ac_optarg ;;
625 -*) { echo "$as_me: error: unrecognized option: $ac_option
626 Try \`$0 --help' for more information." >&2
627 { (exit 1); exit 1; }; }
631 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
632 # Reject names that are not valid shell variable names.
633 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
634 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
635 { (exit 1); exit 1; }; }
636 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
637 eval "$ac_envvar='$ac_optarg'"
641 # FIXME: should be removed in autoconf 3.0.
642 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
643 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
644 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
645 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
651 if test -n "$ac_prev"; then
652 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
653 { echo "$as_me: error: missing argument to $ac_option" >&2
654 { (exit 1); exit 1; }; }
657 # Be sure to have absolute paths.
658 for ac_var in exec_prefix prefix
660 eval ac_val=$`echo $ac_var`
662 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
663 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
664 { (exit 1); exit 1; }; };;
668 # Be sure to have absolute paths.
669 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
670 localstatedir libdir includedir oldincludedir infodir mandir
672 eval ac_val=$`echo $ac_var`
674 [\\/$]* | ?:[\\/]* ) ;;
675 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
676 { (exit 1); exit 1; }; };;
680 # There might be people who depend on the old broken behavior: `$host'
681 # used to hold the argument of --host etc.
682 # FIXME: To remove some day.
687 # FIXME: To remove some day.
688 if test "x$host_alias" != x; then
689 if test "x$build_alias" = x; then
690 cross_compiling=maybe
691 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
692 If a cross compiler is detected then cross compile mode will be used." >&2
693 elif test "x$build_alias" != "x$host_alias"; then
699 test -n "$host_alias" && ac_tool_prefix=$host_alias-
701 test "$silent" = yes && exec 6>/dev/null
704 # Find the source files, if location was not specified.
705 if test -z "$srcdir"; then
706 ac_srcdir_defaulted=yes
707 # Try the directory containing this script, then its parent.
708 ac_confdir=`(dirname "$0") 2>/dev/null ||
709 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
710 X"$0" : 'X\(//\)[^/]' \| \
711 X"$0" : 'X\(//\)$' \| \
712 X"$0" : 'X\(/\)' \| \
713 . : '\(.\)' 2>/dev/null ||
715 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
716 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
717 /^X\(\/\/\)$/{ s//\1/; q; }
718 /^X\(\/\).*/{ s//\1/; q; }
721 if test ! -r $srcdir/$ac_unique_file; then
725 ac_srcdir_defaulted=no
727 if test ! -r $srcdir/$ac_unique_file; then
728 if test "$ac_srcdir_defaulted" = yes; then
729 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
730 { (exit 1); exit 1; }; }
732 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
733 { (exit 1); exit 1; }; }
736 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
737 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
738 { (exit 1); exit 1; }; }
739 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
740 ac_env_build_alias_set=${build_alias+set}
741 ac_env_build_alias_value=$build_alias
742 ac_cv_env_build_alias_set=${build_alias+set}
743 ac_cv_env_build_alias_value=$build_alias
744 ac_env_host_alias_set=${host_alias+set}
745 ac_env_host_alias_value=$host_alias
746 ac_cv_env_host_alias_set=${host_alias+set}
747 ac_cv_env_host_alias_value=$host_alias
748 ac_env_target_alias_set=${target_alias+set}
749 ac_env_target_alias_value=$target_alias
750 ac_cv_env_target_alias_set=${target_alias+set}
751 ac_cv_env_target_alias_value=$target_alias
752 ac_env_CC_set=${CC+set}
754 ac_cv_env_CC_set=${CC+set}
755 ac_cv_env_CC_value=$CC
756 ac_env_CFLAGS_set=${CFLAGS+set}
757 ac_env_CFLAGS_value=$CFLAGS
758 ac_cv_env_CFLAGS_set=${CFLAGS+set}
759 ac_cv_env_CFLAGS_value=$CFLAGS
760 ac_env_LDFLAGS_set=${LDFLAGS+set}
761 ac_env_LDFLAGS_value=$LDFLAGS
762 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_cv_env_LDFLAGS_value=$LDFLAGS
764 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
765 ac_env_CPPFLAGS_value=$CPPFLAGS
766 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
767 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
768 ac_env_CPP_set=${CPP+set}
769 ac_env_CPP_value=$CPP
770 ac_cv_env_CPP_set=${CPP+set}
771 ac_cv_env_CPP_value=$CPP
774 # Report the --help message.
776 if test "$ac_init_help" = "long"; then
777 # Omit some internal or obsolete options to make the list less imposing.
778 # This message is too long to be a string in the A/UX 3.1 sh.
780 \`configure' configures libfirm 0.3.0 to adapt to many kinds of systems.
782 Usage: $0 [OPTION]... [VAR=VALUE]...
784 To assign environment variables (e.g., CC, CFLAGS...), specify them as
785 VAR=VALUE. See below for descriptions of some of the useful variables.
787 Defaults for the options are specified in brackets.
790 -h, --help display this help and exit
791 --help=short display options specific to this package
792 --help=recursive display the short help of all the included packages
793 -V, --version display version information and exit
794 -q, --quiet, --silent do not print \`checking...' messages
795 --cache-file=FILE cache test results in FILE [disabled]
796 -C, --config-cache alias for \`--cache-file=config.cache'
797 -n, --no-create do not create output files
798 --srcdir=DIR find the sources in DIR [configure dir or \`..']
803 Installation directories:
804 --prefix=PREFIX install architecture-independent files in PREFIX
806 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
809 By default, \`make install' will install all the files in
810 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
811 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
812 for instance \`--prefix=\$HOME'.
814 For better control, use the options below.
816 Fine tuning of the installation directories:
817 --bindir=DIR user executables [EPREFIX/bin]
818 --sbindir=DIR system admin executables [EPREFIX/sbin]
819 --libexecdir=DIR program executables [EPREFIX/libexec]
820 --datadir=DIR read-only architecture-independent data [PREFIX/share]
821 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
822 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
823 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
824 --libdir=DIR object code libraries [EPREFIX/lib]
825 --includedir=DIR C header files [PREFIX/include]
826 --oldincludedir=DIR C header files for non-gcc [/usr/include]
827 --infodir=DIR info documentation [PREFIX/info]
828 --mandir=DIR man documentation [PREFIX/man]
835 if test -n "$ac_init_help"; then
836 case $ac_init_help in
837 short | recursive ) echo "Configuration of libfirm 0.3.0:";;
842 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
843 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
844 --enable-debug enable assertions and additional debugging routines
845 --enable-gcc_inline enable gcc inline C-extension
846 --enable-profile enable profiling
847 --enable-autodoc enable auto documentation
848 --enable-firmjni check for tools necesarry to construct a java native interface for Firm
850 Some influential environment variables:
851 CC C compiler command
852 CFLAGS C compiler flags
853 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
854 nonstandard directory <lib dir>
855 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
856 headers in a nonstandard directory <include dir>
859 Use these variables to override the choices made by `configure' or to help
860 it to find libraries and programs with nonstandard names/locations.
865 if test "$ac_init_help" = "recursive"; then
866 # If there are subdirs, report their specific --help.
868 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
869 test -d $ac_dir || continue
872 if test "$ac_dir" != .; then
873 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
874 # A "../" for each directory in $ac_dir_suffix.
875 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
877 ac_dir_suffix= ac_top_builddir=
881 .) # No --srcdir option. We are building in place.
883 if test -z "$ac_top_builddir"; then
886 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
888 [\\/]* | ?:[\\/]* ) # Absolute path.
889 ac_srcdir=$srcdir$ac_dir_suffix;
890 ac_top_srcdir=$srcdir ;;
892 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
893 ac_top_srcdir=$ac_top_builddir$srcdir ;;
895 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
897 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
898 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
899 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
900 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
903 # Check for guested configure; otherwise get Cygnus style configure.
904 if test -f $ac_srcdir/configure.gnu; then
906 $SHELL $ac_srcdir/configure.gnu --help=recursive
907 elif test -f $ac_srcdir/configure; then
909 $SHELL $ac_srcdir/configure --help=recursive
910 elif test -f $ac_srcdir/configure.ac ||
911 test -f $ac_srcdir/configure.in; then
915 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
921 test -n "$ac_init_help" && exit 0
922 if $ac_init_version; then
924 libfirm configure 0.3.0
925 generated by GNU Autoconf 2.56
927 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
928 Free Software Foundation, Inc.
929 This configure script is free software; the Free Software Foundation
930 gives unlimited permission to copy, distribute and modify it.
936 This file contains any messages produced by compilers while
937 running configure, to aid debugging if configure makes a mistake.
939 It was created by libfirm $as_me 0.3.0, which was
940 generated by GNU Autoconf 2.56. Invocation command line was
951 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
952 uname -m = `(uname -m) 2>/dev/null || echo unknown`
953 uname -r = `(uname -r) 2>/dev/null || echo unknown`
954 uname -s = `(uname -s) 2>/dev/null || echo unknown`
955 uname -v = `(uname -v) 2>/dev/null || echo unknown`
957 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
958 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
960 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
961 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
962 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
963 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
964 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
965 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
966 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
974 test -z "$as_dir" && as_dir=.
990 # Keep a trace of the command line.
991 # Strip out --no-create and --no-recursion so they do not pile up.
992 # Strip out --silent because we don't want to record it for future runs.
993 # Also quote any args containing shell meta-characters.
994 # Make two passes to allow for proper duplicate-argument suppression.
999 ac_must_keep_next=false
1005 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1006 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1007 | -silent | --silent | --silen | --sile | --sil)
1009 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1010 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1013 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1015 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1016 if test $ac_must_keep_next = true; then
1017 ac_must_keep_next=false # Got value, back to normal.
1020 *=* | --config-cache | -C | -disable-* | --disable-* \
1021 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1022 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1023 | -with-* | --with-* | -without-* | --without-* | --x)
1024 case "$ac_configure_args0 " in
1025 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1028 -* ) ac_must_keep_next=true ;;
1031 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1032 # Get rid of the leading space.
1038 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1039 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1041 # When interrupted or exit'd, cleanup temporary files, and complete
1042 # config.log. We remove comments because anyway the quotes in there
1043 # would cause problems or look ugly.
1044 # WARNING: Be sure not to use single quotes in there, as some shells,
1045 # such as our DU 5.0 friend, will then `close' the trap.
1046 trap 'exit_status=$?
1047 # Save into config.log some information that might help in debugging.
1052 ## ---------------- ##
1053 ## Cache variables. ##
1054 ## ---------------- ##
1057 # The following way of writing the cache mishandles newlines in values,
1060 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1063 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1064 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1068 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1075 ## ----------------- ##
1076 ## Output variables. ##
1077 ## ----------------- ##
1080 for ac_var in $ac_subst_vars
1082 eval ac_val=$`echo $ac_var`
1083 echo "$ac_var='"'"'$ac_val'"'"'"
1087 if test -n "$ac_subst_files"; then
1094 for ac_var in $ac_subst_files
1096 eval ac_val=$`echo $ac_var`
1097 echo "$ac_var='"'"'$ac_val'"'"'"
1102 if test -s confdefs.h; then
1109 sed "/^$/d" confdefs.h | sort
1112 test "$ac_signal" != 0 &&
1113 echo "$as_me: caught signal $ac_signal"
1114 echo "$as_me: exit $exit_status"
1116 rm -f core core.* *.core &&
1117 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1120 for ac_signal in 1 2 13 15; do
1121 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1125 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1126 rm -rf conftest* confdefs.h
1127 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1130 # Predefined preprocessor variables.
1132 cat >>confdefs.h <<_ACEOF
1133 #define PACKAGE_NAME "$PACKAGE_NAME"
1137 cat >>confdefs.h <<_ACEOF
1138 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1142 cat >>confdefs.h <<_ACEOF
1143 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1147 cat >>confdefs.h <<_ACEOF
1148 #define PACKAGE_STRING "$PACKAGE_STRING"
1152 cat >>confdefs.h <<_ACEOF
1153 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1157 # Let the site file select an alternate cache file if it wants to.
1158 # Prefer explicitly selected file to automatically selected ones.
1159 if test -z "$CONFIG_SITE"; then
1160 if test "x$prefix" != xNONE; then
1161 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1163 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1166 for ac_site_file in $CONFIG_SITE; do
1167 if test -r "$ac_site_file"; then
1168 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1169 echo "$as_me: loading site script $ac_site_file" >&6;}
1170 sed 's/^/| /' "$ac_site_file" >&5
1175 if test -r "$cache_file"; then
1176 # Some versions of bash will fail to source /dev/null (special
1177 # files actually), so we avoid doing that.
1178 if test -f "$cache_file"; then
1179 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1180 echo "$as_me: loading cache $cache_file" >&6;}
1182 [\\/]* | ?:[\\/]* ) . $cache_file;;
1183 *) . ./$cache_file;;
1187 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1188 echo "$as_me: creating cache $cache_file" >&6;}
1192 # Check that the precious variables saved in the cache have kept the same
1194 ac_cache_corrupted=false
1195 for ac_var in `(set) 2>&1 |
1196 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1197 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1198 eval ac_new_set=\$ac_env_${ac_var}_set
1199 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1200 eval ac_new_val="\$ac_env_${ac_var}_value"
1201 case $ac_old_set,$ac_new_set in
1203 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1204 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1205 ac_cache_corrupted=: ;;
1207 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1208 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1209 ac_cache_corrupted=: ;;
1212 if test "x$ac_old_val" != "x$ac_new_val"; then
1213 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1214 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1215 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1216 echo "$as_me: former value: $ac_old_val" >&2;}
1217 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1218 echo "$as_me: current value: $ac_new_val" >&2;}
1219 ac_cache_corrupted=:
1222 # Pass precious variables to config.status.
1223 if test "$ac_new_set" = set; then
1225 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1226 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1227 *) ac_arg=$ac_var=$ac_new_val ;;
1229 case " $ac_configure_args " in
1230 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1231 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1235 if $ac_cache_corrupted; then
1236 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1237 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1238 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1239 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1240 { (exit 1); exit 1; }; }
1244 ac_cpp='$CPP $CPPFLAGS'
1245 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1246 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1247 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1276 ac_output_file="Makefile MakeRules ir/Makefile ir/adt/Makefile ir/debug/Makefile \
1277 ir/tv/Makefile ir/common/Makefile ir/ident/Makefile ir/ir/Makefile \
1278 ir/ana/Makefile ir/tr/Makefile ir/st/Makefile testprograms/Makefile \
1279 firmjni/Makefile firmjni/build_firm_jni firmjni/testprograms/Makefile"
1281 ac_config_headers="$ac_config_headers config.h"
1284 libfirm_conf_env="${CC+CC='$CC'} ${CFLAGS+CFLAGS='$CFLAGS'} ${CPP+CPP='$CPP'} ${CPPFLAGS+CPPFLAGS='$CPPFLAGS'} ${LDFLAGS+LDFLAGS='$LDFLAGS'} ${LIBS+LIBS='$LIBS'}"
1289 # Check whether --enable-debug or --disable-debug was given.
1290 if test "${enable_debug+set}" = set; then
1291 enableval="$enable_debug"
1292 if test "$enableval" = yes; then
1293 cat >>confdefs.h <<\_ACEOF
1294 #define DEBUG_libfirm 1
1298 cat >>confdefs.h <<\_ACEOF
1306 # Check whether --enable-gcc_inline or --disable-gcc_inline was given.
1307 if test "${enable_gcc_inline+set}" = set; then
1308 enableval="$enable_gcc_inline"
1309 if test "$enableval" = yes; then
1310 cat >>confdefs.h <<\_ACEOF
1311 #define USE_GCC_INLINE 1
1319 # Check whether --enable-profile or --disable-profile was given.
1320 if test "${enable_profile+set}" = set; then
1321 enableval="$enable_profile"
1322 if test "$enableval"=yes; then
1323 enable_profile_libfirm=yes
1326 enable_profile_libfirm=no
1330 # Check whether --enable-autodoc or --disable-autodoc was given.
1331 if test "${enable_autodoc+set}" = set; then
1332 enableval="$enable_autodoc"
1333 if test "$enableval"=yes; then
1334 enable_auto_documentation=yes
1337 enable_auto_documentation=no
1342 # Check whether --enable-firmjni or --disable-firmjni was given.
1343 if test "${enable_firmjni+set}" = set; then
1344 enableval="$enable_firmjni"
1345 if test "$enableval"=yes; then
1356 ac_cpp='$CPP $CPPFLAGS'
1357 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1358 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1359 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1360 if test -n "$ac_tool_prefix"; then
1361 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1362 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1363 echo "$as_me:$LINENO: checking for $ac_word" >&5
1364 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1365 if test "${ac_cv_prog_CC+set}" = set; then
1366 echo $ECHO_N "(cached) $ECHO_C" >&6
1368 if test -n "$CC"; then
1369 ac_cv_prog_CC="$CC" # Let the user override the test.
1371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1375 test -z "$as_dir" && as_dir=.
1376 for ac_exec_ext in '' $ac_executable_extensions; do
1377 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1378 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1379 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1388 if test -n "$CC"; then
1389 echo "$as_me:$LINENO: result: $CC" >&5
1390 echo "${ECHO_T}$CC" >&6
1392 echo "$as_me:$LINENO: result: no" >&5
1393 echo "${ECHO_T}no" >&6
1397 if test -z "$ac_cv_prog_CC"; then
1399 # Extract the first word of "gcc", so it can be a program name with args.
1400 set dummy gcc; ac_word=$2
1401 echo "$as_me:$LINENO: checking for $ac_word" >&5
1402 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1403 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1404 echo $ECHO_N "(cached) $ECHO_C" >&6
1406 if test -n "$ac_ct_CC"; then
1407 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1413 test -z "$as_dir" && as_dir=.
1414 for ac_exec_ext in '' $ac_executable_extensions; do
1415 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1416 ac_cv_prog_ac_ct_CC="gcc"
1417 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1425 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1426 if test -n "$ac_ct_CC"; then
1427 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1428 echo "${ECHO_T}$ac_ct_CC" >&6
1430 echo "$as_me:$LINENO: result: no" >&5
1431 echo "${ECHO_T}no" >&6
1439 if test -z "$CC"; then
1440 if test -n "$ac_tool_prefix"; then
1441 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1442 set dummy ${ac_tool_prefix}cc; ac_word=$2
1443 echo "$as_me:$LINENO: checking for $ac_word" >&5
1444 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1445 if test "${ac_cv_prog_CC+set}" = set; then
1446 echo $ECHO_N "(cached) $ECHO_C" >&6
1448 if test -n "$CC"; then
1449 ac_cv_prog_CC="$CC" # Let the user override the test.
1451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1455 test -z "$as_dir" && as_dir=.
1456 for ac_exec_ext in '' $ac_executable_extensions; do
1457 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1458 ac_cv_prog_CC="${ac_tool_prefix}cc"
1459 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1468 if test -n "$CC"; then
1469 echo "$as_me:$LINENO: result: $CC" >&5
1470 echo "${ECHO_T}$CC" >&6
1472 echo "$as_me:$LINENO: result: no" >&5
1473 echo "${ECHO_T}no" >&6
1477 if test -z "$ac_cv_prog_CC"; then
1479 # Extract the first word of "cc", so it can be a program name with args.
1480 set dummy cc; ac_word=$2
1481 echo "$as_me:$LINENO: checking for $ac_word" >&5
1482 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1483 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1484 echo $ECHO_N "(cached) $ECHO_C" >&6
1486 if test -n "$ac_ct_CC"; then
1487 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1493 test -z "$as_dir" && as_dir=.
1494 for ac_exec_ext in '' $ac_executable_extensions; do
1495 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1496 ac_cv_prog_ac_ct_CC="cc"
1497 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1505 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1506 if test -n "$ac_ct_CC"; then
1507 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1508 echo "${ECHO_T}$ac_ct_CC" >&6
1510 echo "$as_me:$LINENO: result: no" >&5
1511 echo "${ECHO_T}no" >&6
1520 if test -z "$CC"; then
1521 # Extract the first word of "cc", so it can be a program name with args.
1522 set dummy cc; ac_word=$2
1523 echo "$as_me:$LINENO: checking for $ac_word" >&5
1524 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1525 if test "${ac_cv_prog_CC+set}" = set; then
1526 echo $ECHO_N "(cached) $ECHO_C" >&6
1528 if test -n "$CC"; then
1529 ac_cv_prog_CC="$CC" # Let the user override the test.
1532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1536 test -z "$as_dir" && as_dir=.
1537 for ac_exec_ext in '' $ac_executable_extensions; do
1538 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1539 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1540 ac_prog_rejected=yes
1544 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1550 if test $ac_prog_rejected = yes; then
1551 # We found a bogon in the path, so make sure we never use it.
1552 set dummy $ac_cv_prog_CC
1554 if test $# != 0; then
1555 # We chose a different compiler from the bogus one.
1556 # However, it has the same basename, so the bogon will be chosen
1557 # first if we set CC to just the basename; use the full file name.
1559 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1565 if test -n "$CC"; then
1566 echo "$as_me:$LINENO: result: $CC" >&5
1567 echo "${ECHO_T}$CC" >&6
1569 echo "$as_me:$LINENO: result: no" >&5
1570 echo "${ECHO_T}no" >&6
1574 if test -z "$CC"; then
1575 if test -n "$ac_tool_prefix"; then
1578 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1579 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1580 echo "$as_me:$LINENO: checking for $ac_word" >&5
1581 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1582 if test "${ac_cv_prog_CC+set}" = set; then
1583 echo $ECHO_N "(cached) $ECHO_C" >&6
1585 if test -n "$CC"; then
1586 ac_cv_prog_CC="$CC" # Let the user override the test.
1588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1592 test -z "$as_dir" && as_dir=.
1593 for ac_exec_ext in '' $ac_executable_extensions; do
1594 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1595 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1596 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1605 if test -n "$CC"; then
1606 echo "$as_me:$LINENO: result: $CC" >&5
1607 echo "${ECHO_T}$CC" >&6
1609 echo "$as_me:$LINENO: result: no" >&5
1610 echo "${ECHO_T}no" >&6
1613 test -n "$CC" && break
1616 if test -z "$CC"; then
1620 # Extract the first word of "$ac_prog", so it can be a program name with args.
1621 set dummy $ac_prog; ac_word=$2
1622 echo "$as_me:$LINENO: checking for $ac_word" >&5
1623 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1624 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1625 echo $ECHO_N "(cached) $ECHO_C" >&6
1627 if test -n "$ac_ct_CC"; then
1628 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1634 test -z "$as_dir" && as_dir=.
1635 for ac_exec_ext in '' $ac_executable_extensions; do
1636 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1637 ac_cv_prog_ac_ct_CC="$ac_prog"
1638 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1646 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1647 if test -n "$ac_ct_CC"; then
1648 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1649 echo "${ECHO_T}$ac_ct_CC" >&6
1651 echo "$as_me:$LINENO: result: no" >&5
1652 echo "${ECHO_T}no" >&6
1655 test -n "$ac_ct_CC" && break
1664 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1665 See \`config.log' for more details." >&5
1666 echo "$as_me: error: no acceptable C compiler found in \$PATH
1667 See \`config.log' for more details." >&2;}
1668 { (exit 1); exit 1; }; }
1670 # Provide some information about the compiler.
1671 echo "$as_me:$LINENO:" \
1672 "checking for C compiler version" >&5
1673 ac_compiler=`set X $ac_compile; echo $2`
1674 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1675 (eval $ac_compiler --version </dev/null >&5) 2>&5
1677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1678 (exit $ac_status); }
1679 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1680 (eval $ac_compiler -v </dev/null >&5) 2>&5
1682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1683 (exit $ac_status); }
1684 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1685 (eval $ac_compiler -V </dev/null >&5) 2>&5
1687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1688 (exit $ac_status); }
1690 cat >conftest.$ac_ext <<_ACEOF
1691 #line $LINENO "configure"
1694 cat confdefs.h >>conftest.$ac_ext
1695 cat >>conftest.$ac_ext <<_ACEOF
1696 /* end confdefs.h. */
1706 ac_clean_files_save=$ac_clean_files
1707 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1708 # Try to create an executable without -o first, disregard a.out.
1709 # It will help us diagnose broken compilers, and finding out an intuition
1711 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1712 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1713 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1714 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1715 (eval $ac_link_default) 2>&5
1717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1718 (exit $ac_status); }; then
1719 # Find the output, starting from the most likely. This scheme is
1720 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1723 # Be careful to initialize this variable, since it used to be cached.
1724 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1726 # b.out is created by i960 compilers.
1727 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1729 test -f "$ac_file" || continue
1731 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1734 # This is the source file.
1737 # We found the default executable, but exeext='' is most
1741 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1742 # FIXME: I believe we export ac_cv_exeext for Libtool,
1743 # but it would be cool to find out if it's true. Does anybody
1744 # maintain Libtool? --akim.
1752 echo "$as_me: failed program was:" >&5
1753 sed 's/^/| /' conftest.$ac_ext >&5
1755 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1756 See \`config.log' for more details." >&5
1757 echo "$as_me: error: C compiler cannot create executables
1758 See \`config.log' for more details." >&2;}
1759 { (exit 77); exit 77; }; }
1762 ac_exeext=$ac_cv_exeext
1763 echo "$as_me:$LINENO: result: $ac_file" >&5
1764 echo "${ECHO_T}$ac_file" >&6
1766 # Check the compiler produces executables we can run. If not, either
1767 # the compiler is broken, or we cross compile.
1768 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1769 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1770 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1771 # If not cross compiling, check that we can run a simple program.
1772 if test "$cross_compiling" != yes; then
1773 if { ac_try='./$ac_file'
1774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1778 (exit $ac_status); }; }; then
1781 if test "$cross_compiling" = maybe; then
1784 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1785 If you meant to cross compile, use \`--host'.
1786 See \`config.log' for more details." >&5
1787 echo "$as_me: error: cannot run C compiled programs.
1788 If you meant to cross compile, use \`--host'.
1789 See \`config.log' for more details." >&2;}
1790 { (exit 1); exit 1; }; }
1794 echo "$as_me:$LINENO: result: yes" >&5
1795 echo "${ECHO_T}yes" >&6
1797 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1798 ac_clean_files=$ac_clean_files_save
1799 # Check the compiler produces executables we can run. If not, either
1800 # the compiler is broken, or we cross compile.
1801 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1802 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1803 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1804 echo "${ECHO_T}$cross_compiling" >&6
1806 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1807 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1808 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1809 (eval $ac_link) 2>&5
1811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1812 (exit $ac_status); }; then
1813 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1814 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1815 # work properly (i.e., refer to `conftest.exe'), while it won't with
1817 for ac_file in conftest.exe conftest conftest.*; do
1818 test -f "$ac_file" || continue
1820 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1821 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1828 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1829 See \`config.log' for more details." >&5
1830 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1831 See \`config.log' for more details." >&2;}
1832 { (exit 1); exit 1; }; }
1835 rm -f conftest$ac_cv_exeext
1836 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1837 echo "${ECHO_T}$ac_cv_exeext" >&6
1839 rm -f conftest.$ac_ext
1840 EXEEXT=$ac_cv_exeext
1842 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1843 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1844 if test "${ac_cv_objext+set}" = set; then
1845 echo $ECHO_N "(cached) $ECHO_C" >&6
1847 cat >conftest.$ac_ext <<_ACEOF
1848 #line $LINENO "configure"
1851 cat confdefs.h >>conftest.$ac_ext
1852 cat >>conftest.$ac_ext <<_ACEOF
1853 /* end confdefs.h. */
1863 rm -f conftest.o conftest.obj
1864 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1865 (eval $ac_compile) 2>&5
1867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1868 (exit $ac_status); }; then
1869 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1871 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1872 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1877 echo "$as_me: failed program was:" >&5
1878 sed 's/^/| /' conftest.$ac_ext >&5
1880 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1881 See \`config.log' for more details." >&5
1882 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1883 See \`config.log' for more details." >&2;}
1884 { (exit 1); exit 1; }; }
1887 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1889 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1890 echo "${ECHO_T}$ac_cv_objext" >&6
1891 OBJEXT=$ac_cv_objext
1893 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1894 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1895 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1896 echo $ECHO_N "(cached) $ECHO_C" >&6
1898 cat >conftest.$ac_ext <<_ACEOF
1899 #line $LINENO "configure"
1902 cat confdefs.h >>conftest.$ac_ext
1903 cat >>conftest.$ac_ext <<_ACEOF
1904 /* end confdefs.h. */
1917 rm -f conftest.$ac_objext
1918 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1919 (eval $ac_compile) 2>&5
1921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1922 (exit $ac_status); } &&
1923 { ac_try='test -s conftest.$ac_objext'
1924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1928 (exit $ac_status); }; }; then
1931 echo "$as_me: failed program was:" >&5
1932 sed 's/^/| /' conftest.$ac_ext >&5
1936 rm -f conftest.$ac_objext conftest.$ac_ext
1937 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1940 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1941 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1942 GCC=`test $ac_compiler_gnu = yes && echo yes`
1943 ac_test_CFLAGS=${CFLAGS+set}
1944 ac_save_CFLAGS=$CFLAGS
1946 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1947 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1948 if test "${ac_cv_prog_cc_g+set}" = set; then
1949 echo $ECHO_N "(cached) $ECHO_C" >&6
1951 cat >conftest.$ac_ext <<_ACEOF
1952 #line $LINENO "configure"
1955 cat confdefs.h >>conftest.$ac_ext
1956 cat >>conftest.$ac_ext <<_ACEOF
1957 /* end confdefs.h. */
1967 rm -f conftest.$ac_objext
1968 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1969 (eval $ac_compile) 2>&5
1971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1972 (exit $ac_status); } &&
1973 { ac_try='test -s conftest.$ac_objext'
1974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1978 (exit $ac_status); }; }; then
1981 echo "$as_me: failed program was:" >&5
1982 sed 's/^/| /' conftest.$ac_ext >&5
1986 rm -f conftest.$ac_objext conftest.$ac_ext
1988 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1989 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1990 if test "$ac_test_CFLAGS" = set; then
1991 CFLAGS=$ac_save_CFLAGS
1992 elif test $ac_cv_prog_cc_g = yes; then
1993 if test "$GCC" = yes; then
1999 if test "$GCC" = yes; then
2005 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2006 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2007 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2008 echo $ECHO_N "(cached) $ECHO_C" >&6
2010 ac_cv_prog_cc_stdc=no
2012 cat >conftest.$ac_ext <<_ACEOF
2013 #line $LINENO "configure"
2016 cat confdefs.h >>conftest.$ac_ext
2017 cat >>conftest.$ac_ext <<_ACEOF
2018 /* end confdefs.h. */
2021 #include <sys/types.h>
2022 #include <sys/stat.h>
2023 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2024 struct buf { int x; };
2025 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2026 static char *e (p, i)
2032 static char *f (char * (*g) (char **, int), char **p, ...)
2037 s = g (p, va_arg (v,int));
2041 int test (int i, double x);
2042 struct s1 {int (*f) (int a);};
2043 struct s2 {int (*f) (double a);};
2044 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2050 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2055 # Don't try gcc -ansi; that turns off useful extensions and
2056 # breaks some systems' header files.
2057 # AIX -qlanglvl=ansi
2058 # Ultrix and OSF/1 -std1
2059 # HP-UX 10.20 and later -Ae
2060 # HP-UX older versions -Aa -D_HPUX_SOURCE
2061 # SVR4 -Xc -D__EXTENSIONS__
2062 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2064 CC="$ac_save_CC $ac_arg"
2065 rm -f conftest.$ac_objext
2066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2067 (eval $ac_compile) 2>&5
2069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2070 (exit $ac_status); } &&
2071 { ac_try='test -s conftest.$ac_objext'
2072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2076 (exit $ac_status); }; }; then
2077 ac_cv_prog_cc_stdc=$ac_arg
2080 echo "$as_me: failed program was:" >&5
2081 sed 's/^/| /' conftest.$ac_ext >&5
2084 rm -f conftest.$ac_objext
2086 rm -f conftest.$ac_ext conftest.$ac_objext
2091 case "x$ac_cv_prog_cc_stdc" in
2093 echo "$as_me:$LINENO: result: none needed" >&5
2094 echo "${ECHO_T}none needed" >&6 ;;
2096 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2097 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2098 CC="$CC $ac_cv_prog_cc_stdc" ;;
2101 # Some people use a C++ compiler to compile C. Since we use `exit',
2102 # in C++ we need to declare it. In case someone uses the same compiler
2103 # for both compiling C and C++ we need to have the C++ compiler decide
2104 # the declaration of exit, since it's the most demanding environment.
2105 cat >conftest.$ac_ext <<_ACEOF
2110 rm -f conftest.$ac_objext
2111 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2112 (eval $ac_compile) 2>&5
2114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2115 (exit $ac_status); } &&
2116 { ac_try='test -s conftest.$ac_objext'
2117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2121 (exit $ac_status); }; }; then
2122 for ac_declaration in \
2124 '#include <stdlib.h>' \
2125 'extern "C" void std::exit (int) throw (); using std::exit;' \
2126 'extern "C" void std::exit (int); using std::exit;' \
2127 'extern "C" void exit (int) throw ();' \
2128 'extern "C" void exit (int);' \
2131 cat >conftest.$ac_ext <<_ACEOF
2132 #line $LINENO "configure"
2135 cat confdefs.h >>conftest.$ac_ext
2136 cat >>conftest.$ac_ext <<_ACEOF
2137 /* end confdefs.h. */
2148 rm -f conftest.$ac_objext
2149 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2150 (eval $ac_compile) 2>&5
2152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2153 (exit $ac_status); } &&
2154 { ac_try='test -s conftest.$ac_objext'
2155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2159 (exit $ac_status); }; }; then
2162 echo "$as_me: failed program was:" >&5
2163 sed 's/^/| /' conftest.$ac_ext >&5
2167 rm -f conftest.$ac_objext conftest.$ac_ext
2168 cat >conftest.$ac_ext <<_ACEOF
2169 #line $LINENO "configure"
2172 cat confdefs.h >>conftest.$ac_ext
2173 cat >>conftest.$ac_ext <<_ACEOF
2174 /* end confdefs.h. */
2184 rm -f conftest.$ac_objext
2185 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2186 (eval $ac_compile) 2>&5
2188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2189 (exit $ac_status); } &&
2190 { ac_try='test -s conftest.$ac_objext'
2191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2195 (exit $ac_status); }; }; then
2198 echo "$as_me: failed program was:" >&5
2199 sed 's/^/| /' conftest.$ac_ext >&5
2202 rm -f conftest.$ac_objext conftest.$ac_ext
2205 if test -n "$ac_declaration"; then
2206 echo '#ifdef __cplusplus' >>confdefs.h
2207 echo $ac_declaration >>confdefs.h
2208 echo '#endif' >>confdefs.h
2212 echo "$as_me: failed program was:" >&5
2213 sed 's/^/| /' conftest.$ac_ext >&5
2216 rm -f conftest.$ac_objext conftest.$ac_ext
2218 ac_cpp='$CPP $CPPFLAGS'
2219 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2220 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2221 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2225 if test -z "$LD"; then
2226 if test -n "$ac_tool_prefix"; then
2227 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
2228 set dummy ${ac_tool_prefix}ld; ac_word=$2
2229 echo "$as_me:$LINENO: checking for $ac_word" >&5
2230 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2231 if test "${ac_cv_prog_LD+set}" = set; then
2232 echo $ECHO_N "(cached) $ECHO_C" >&6
2234 if test -n "$LD"; then
2235 ac_cv_prog_LD="$LD" # Let the user override the test.
2237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2241 test -z "$as_dir" && as_dir=.
2242 for ac_exec_ext in '' $ac_executable_extensions; do
2243 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2244 ac_cv_prog_LD="${ac_tool_prefix}ld"
2245 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2254 if test -n "$LD"; then
2255 echo "$as_me:$LINENO: result: $LD" >&5
2256 echo "${ECHO_T}$LD" >&6
2258 echo "$as_me:$LINENO: result: no" >&5
2259 echo "${ECHO_T}no" >&6
2263 if test -z "$ac_cv_prog_LD"; then
2265 # Extract the first word of "ld", so it can be a program name with args.
2266 set dummy ld; ac_word=$2
2267 echo "$as_me:$LINENO: checking for $ac_word" >&5
2268 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2269 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
2270 echo $ECHO_N "(cached) $ECHO_C" >&6
2272 if test -n "$ac_ct_LD"; then
2273 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
2275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2279 test -z "$as_dir" && as_dir=.
2280 for ac_exec_ext in '' $ac_executable_extensions; do
2281 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2282 ac_cv_prog_ac_ct_LD="ld"
2283 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2291 ac_ct_LD=$ac_cv_prog_ac_ct_LD
2292 if test -n "$ac_ct_LD"; then
2293 echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
2294 echo "${ECHO_T}$ac_ct_LD" >&6
2296 echo "$as_me:$LINENO: result: no" >&5
2297 echo "${ECHO_T}no" >&6
2307 echo "$as_me:$LINENO: checking whether $LD accepts -r" >&5
2308 echo $ECHO_N "checking whether $LD accepts -r... $ECHO_C" >&6
2309 if test "${libfirm_cv_prog_ld_r+set}" = set; then
2310 echo $ECHO_N "(cached) $ECHO_C" >&6
2313 libfirm_cv_prog_ld_r=no
2315 cat > conftest.$ac_ext <<EOF
2316 int foo() { return 0; }
2318 if eval $ac_compile && mv conftest.o conftest2.o; then
2319 cat > conftest.$ac_ext <<EOF
2320 int main() { return foo(); }
2322 if eval $ac_compile; then
2323 if $LD -r -o conftest conftest.o conftest2.o; then
2324 libfirm_cv_prog_ld_r=yes
2331 echo "$as_me:$LINENO: result: $libfirm_cv_prog_ld_r" >&5
2332 echo "${ECHO_T}$libfirm_cv_prog_ld_r" >&6
2335 if test "$libfirm_cv_prog_ld_r" != "yes"; then
2336 { { echo "$as_me:$LINENO: error: need a prelinkcapable linker" >&5
2337 echo "$as_me: error: need a prelinkcapable linker" >&2;}
2338 { (exit 1); exit 1; }; }
2341 # Extract the first word of "ar", so it can be a program name with args.
2342 set dummy ar; ac_word=$2
2343 echo "$as_me:$LINENO: checking for $ac_word" >&5
2344 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2345 if test "${ac_cv_prog_AR+set}" = set; then
2346 echo $ECHO_N "(cached) $ECHO_C" >&6
2348 if test -n "$AR"; then
2349 ac_cv_prog_AR="$AR" # Let the user override the test.
2351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2355 test -z "$as_dir" && as_dir=.
2356 for ac_exec_ext in '' $ac_executable_extensions; do
2357 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2358 ac_cv_prog_AR=""ar""
2359 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2365 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR=""""
2369 if test -n "$AR"; then
2370 echo "$as_me:$LINENO: result: $AR" >&5
2371 echo "${ECHO_T}$AR" >&6
2373 echo "$as_me:$LINENO: result: no" >&5
2374 echo "${ECHO_T}no" >&6
2377 if test "$AR" != "ar"; then
2378 { { echo "$as_me:$LINENO: error: need ar for creating archives" >&5
2379 echo "$as_me: error: need ar for creating archives" >&2;}
2380 { (exit 1); exit 1; }; }
2383 # Extract the first word of "tar", so it can be a program name with args.
2384 set dummy tar; ac_word=$2
2385 echo "$as_me:$LINENO: checking for $ac_word" >&5
2386 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2387 if test "${ac_cv_prog_TAR+set}" = set; then
2388 echo $ECHO_N "(cached) $ECHO_C" >&6
2390 if test -n "$TAR"; then
2391 ac_cv_prog_TAR="$TAR" # Let the user override the test.
2393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2397 test -z "$as_dir" && as_dir=.
2398 for ac_exec_ext in '' $ac_executable_extensions; do
2399 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2400 ac_cv_prog_TAR=""tar""
2401 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2407 test -z "$ac_cv_prog_TAR" && ac_cv_prog_TAR=""""
2411 if test -n "$TAR"; then
2412 echo "$as_me:$LINENO: result: $TAR" >&5
2413 echo "${ECHO_T}$TAR" >&6
2415 echo "$as_me:$LINENO: result: no" >&5
2416 echo "${ECHO_T}no" >&6
2419 if test "$TAR" != "tar"; then
2420 { { echo "$as_me:$LINENO: error: need tar for creating archives in distribution" >&5
2421 echo "$as_me: error: need tar for creating archives in distribution" >&2;}
2422 { (exit 1); exit 1; }; }
2426 if test -n "$ac_tool_prefix"; then
2427 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2428 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2429 echo "$as_me:$LINENO: checking for $ac_word" >&5
2430 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2431 if test "${ac_cv_prog_RANLIB+set}" = set; then
2432 echo $ECHO_N "(cached) $ECHO_C" >&6
2434 if test -n "$RANLIB"; then
2435 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2441 test -z "$as_dir" && as_dir=.
2442 for ac_exec_ext in '' $ac_executable_extensions; do
2443 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2444 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2445 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2453 RANLIB=$ac_cv_prog_RANLIB
2454 if test -n "$RANLIB"; then
2455 echo "$as_me:$LINENO: result: $RANLIB" >&5
2456 echo "${ECHO_T}$RANLIB" >&6
2458 echo "$as_me:$LINENO: result: no" >&5
2459 echo "${ECHO_T}no" >&6
2463 if test -z "$ac_cv_prog_RANLIB"; then
2464 ac_ct_RANLIB=$RANLIB
2465 # Extract the first word of "ranlib", so it can be a program name with args.
2466 set dummy ranlib; ac_word=$2
2467 echo "$as_me:$LINENO: checking for $ac_word" >&5
2468 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2469 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2470 echo $ECHO_N "(cached) $ECHO_C" >&6
2472 if test -n "$ac_ct_RANLIB"; then
2473 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2479 test -z "$as_dir" && as_dir=.
2480 for ac_exec_ext in '' $ac_executable_extensions; do
2481 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2482 ac_cv_prog_ac_ct_RANLIB="ranlib"
2483 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2489 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2492 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2493 if test -n "$ac_ct_RANLIB"; then
2494 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2495 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2497 echo "$as_me:$LINENO: result: no" >&5
2498 echo "${ECHO_T}no" >&6
2501 RANLIB=$ac_ct_RANLIB
2503 RANLIB="$ac_cv_prog_RANLIB"
2508 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
2509 if test -f $ac_dir/install-sh; then
2511 ac_install_sh="$ac_aux_dir/install-sh -c"
2513 elif test -f $ac_dir/install.sh; then
2515 ac_install_sh="$ac_aux_dir/install.sh -c"
2517 elif test -f $ac_dir/shtool; then
2519 ac_install_sh="$ac_aux_dir/shtool install -c"
2523 if test -z "$ac_aux_dir"; then
2524 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
2525 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
2526 { (exit 1); exit 1; }; }
2528 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
2529 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
2530 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
2532 # Find a good install program. We prefer a C program (faster),
2533 # so one script is as good as another. But avoid the broken or
2534 # incompatible versions:
2535 # SysV /etc/install, /usr/sbin/install
2536 # SunOS /usr/etc/install
2537 # IRIX /sbin/install
2539 # AmigaOS /C/install, which installs bootblocks on floppy discs
2540 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2541 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2542 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2543 # ./install, which can be erroneously created by make from ./install.sh.
2544 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2545 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2546 if test -z "$INSTALL"; then
2547 if test "${ac_cv_path_install+set}" = set; then
2548 echo $ECHO_N "(cached) $ECHO_C" >&6
2550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2554 test -z "$as_dir" && as_dir=.
2555 # Account for people who put trailing slashes in PATH elements.
2557 ./ | .// | /cC/* | \
2558 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2561 # OSF1 and SCO ODT 3.0 have their own names for install.
2562 # Don't use installbsd from OSF since it installs stuff as root
2564 for ac_prog in ginstall scoinst install; do
2565 for ac_exec_ext in '' $ac_executable_extensions; do
2566 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2567 if test $ac_prog = install &&
2568 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2569 # AIX install. It has an incompatible calling convention.
2571 elif test $ac_prog = install &&
2572 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2573 # program-specific install script used by HP pwplus--don't use.
2576 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2588 if test "${ac_cv_path_install+set}" = set; then
2589 INSTALL=$ac_cv_path_install
2591 # As a last resort, use the slow shell script. We don't cache a
2592 # path for INSTALL within a source directory, because that will
2593 # break other packages using the cache if that directory is
2594 # removed, or if the path is relative.
2595 INSTALL=$ac_install_sh
2598 echo "$as_me:$LINENO: result: $INSTALL" >&5
2599 echo "${ECHO_T}$INSTALL" >&6
2601 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2602 # It thinks the first close brace ends the variable substitution.
2603 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2605 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2607 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2610 echo "$as_me:$LINENO: checking whether ln -s works" >&5
2611 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2613 if test "$LN_S" = "ln -s"; then
2614 echo "$as_me:$LINENO: result: yes" >&5
2615 echo "${ECHO_T}yes" >&6
2617 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
2618 echo "${ECHO_T}no, using $LN_S" >&6
2622 if test "$enable_auto_documentation" = yes; then
2623 # Extract the first word of "robodoc", so it can be a program name with args.
2624 set dummy robodoc; ac_word=$2
2625 echo "$as_me:$LINENO: checking for $ac_word" >&5
2626 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2627 if test "${ac_cv_prog_ROBODOC+set}" = set; then
2628 echo $ECHO_N "(cached) $ECHO_C" >&6
2630 if test -n "$ROBODOC"; then
2631 ac_cv_prog_ROBODOC="$ROBODOC" # Let the user override the test.
2633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2637 test -z "$as_dir" && as_dir=.
2638 for ac_exec_ext in '' $ac_executable_extensions; do
2639 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2640 ac_cv_prog_ROBODOC=""robodoc""
2641 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2647 test -z "$ac_cv_prog_ROBODOC" && ac_cv_prog_ROBODOC=""""
2650 ROBODOC=$ac_cv_prog_ROBODOC
2651 if test -n "$ROBODOC"; then
2652 echo "$as_me:$LINENO: result: $ROBODOC" >&5
2653 echo "${ECHO_T}$ROBODOC" >&6
2655 echo "$as_me:$LINENO: result: no" >&5
2656 echo "${ECHO_T}no" >&6
2659 if test "$ROBODOC" != "robodoc"; then
2660 { { echo "$as_me:$LINENO: error: need robodoc for auto documentation (IPD: module add robodoc)" >&5
2661 echo "$as_me: error: need robodoc for auto documentation (IPD: module add robodoc)" >&2;}
2662 { (exit 1); exit 1; }; }
2667 if test "$enable_firm_jni" = yes; then
2668 # Extract the first word of "javac", so it can be a program name with args.
2669 set dummy javac; ac_word=$2
2670 echo "$as_me:$LINENO: checking for $ac_word" >&5
2671 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2672 if test "${ac_cv_prog_JAVAC+set}" = set; then
2673 echo $ECHO_N "(cached) $ECHO_C" >&6
2675 if test -n "$JAVAC"; then
2676 ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test.
2678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2682 test -z "$as_dir" && as_dir=.
2683 for ac_exec_ext in '' $ac_executable_extensions; do
2684 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2685 ac_cv_prog_JAVAC=""javac""
2686 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2692 test -z "$ac_cv_prog_JAVAC" && ac_cv_prog_JAVAC=""""
2695 JAVAC=$ac_cv_prog_JAVAC
2696 if test -n "$JAVAC"; then
2697 echo "$as_me:$LINENO: result: $JAVAC" >&5
2698 echo "${ECHO_T}$JAVAC" >&6
2700 echo "$as_me:$LINENO: result: no" >&5
2701 echo "${ECHO_T}no" >&6
2704 if test "$JAVAC" != "javac"; then
2705 { { echo "$as_me:$LINENO: error: need java compiler javac to generate jni (IPD: module add jdk-1.3.1-sun)" >&5
2706 echo "$as_me: error: need java compiler javac to generate jni (IPD: module add jdk-1.3.1-sun)" >&2;}
2707 { (exit 1); exit 1; }; }
2709 # Extract the first word of "javah", so it can be a program name with args.
2710 set dummy javah; ac_word=$2
2711 echo "$as_me:$LINENO: checking for $ac_word" >&5
2712 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2713 if test "${ac_cv_prog_JAVAH+set}" = set; then
2714 echo $ECHO_N "(cached) $ECHO_C" >&6
2716 if test -n "$JAVAH"; then
2717 ac_cv_prog_JAVAH="$JAVAH" # Let the user override the test.
2719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2723 test -z "$as_dir" && as_dir=.
2724 for ac_exec_ext in '' $ac_executable_extensions; do
2725 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2726 ac_cv_prog_JAVAH=""javah""
2727 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2733 test -z "$ac_cv_prog_JAVAH" && ac_cv_prog_JAVAH=""""
2736 JAVAH=$ac_cv_prog_JAVAH
2737 if test -n "$JAVAH"; then
2738 echo "$as_me:$LINENO: result: $JAVAH" >&5
2739 echo "${ECHO_T}$JAVAH" >&6
2741 echo "$as_me:$LINENO: result: no" >&5
2742 echo "${ECHO_T}no" >&6
2745 if test "$JAVAH" != "javah"; then
2746 { { echo "$as_me:$LINENO: error: need javah to generate jni headers (IPD: module add jdk-1.3.1-sun)" >&5
2747 echo "$as_me: error: need javah to generate jni headers (IPD: module add jdk-1.3.1-sun)" >&2;}
2748 { (exit 1); exit 1; }; }
2756 ac_cpp='$CPP $CPPFLAGS'
2757 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2758 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2759 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2760 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2761 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2762 # On Suns, sometimes $CPP names a directory.
2763 if test -n "$CPP" && test -d "$CPP"; then
2766 if test -z "$CPP"; then
2767 if test "${ac_cv_prog_CPP+set}" = set; then
2768 echo $ECHO_N "(cached) $ECHO_C" >&6
2770 # Double quotes because CPP needs to be expanded
2771 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2774 for ac_c_preproc_warn_flag in '' yes
2776 # Use a header file that comes with gcc, so configuring glibc
2777 # with a fresh cross-compiler works.
2778 # On the NeXT, cc -E runs the code through the compiler's parser,
2779 # not just through cpp. "Syntax error" is here to catch this case.
2780 cat >conftest.$ac_ext <<_ACEOF
2781 #line $LINENO "configure"
2784 cat confdefs.h >>conftest.$ac_ext
2785 cat >>conftest.$ac_ext <<_ACEOF
2786 /* end confdefs.h. */
2790 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2791 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2793 grep -v '^ *+' conftest.er1 >conftest.err
2795 cat conftest.err >&5
2796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2797 (exit $ac_status); } >/dev/null; then
2798 if test -s conftest.err; then
2799 ac_cpp_err=$ac_c_preproc_warn_flag
2806 if test -z "$ac_cpp_err"; then
2809 echo "$as_me: failed program was:" >&5
2810 sed 's/^/| /' conftest.$ac_ext >&5
2812 # Broken: fails on valid input.
2815 rm -f conftest.err conftest.$ac_ext
2817 # OK, works on sane cases. Now check whether non-existent headers
2818 # can be detected and how.
2819 cat >conftest.$ac_ext <<_ACEOF
2820 #line $LINENO "configure"
2823 cat confdefs.h >>conftest.$ac_ext
2824 cat >>conftest.$ac_ext <<_ACEOF
2825 /* end confdefs.h. */
2826 #include <ac_nonexistent.h>
2828 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2829 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2831 grep -v '^ *+' conftest.er1 >conftest.err
2833 cat conftest.err >&5
2834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2835 (exit $ac_status); } >/dev/null; then
2836 if test -s conftest.err; then
2837 ac_cpp_err=$ac_c_preproc_warn_flag
2844 if test -z "$ac_cpp_err"; then
2845 # Broken: success on invalid input.
2848 echo "$as_me: failed program was:" >&5
2849 sed 's/^/| /' conftest.$ac_ext >&5
2851 # Passes both tests.
2855 rm -f conftest.err conftest.$ac_ext
2858 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2859 rm -f conftest.err conftest.$ac_ext
2860 if $ac_preproc_ok; then
2872 echo "$as_me:$LINENO: result: $CPP" >&5
2873 echo "${ECHO_T}$CPP" >&6
2875 for ac_c_preproc_warn_flag in '' yes
2877 # Use a header file that comes with gcc, so configuring glibc
2878 # with a fresh cross-compiler works.
2879 # On the NeXT, cc -E runs the code through the compiler's parser,
2880 # not just through cpp. "Syntax error" is here to catch this case.
2881 cat >conftest.$ac_ext <<_ACEOF
2882 #line $LINENO "configure"
2885 cat confdefs.h >>conftest.$ac_ext
2886 cat >>conftest.$ac_ext <<_ACEOF
2887 /* end confdefs.h. */
2891 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2892 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2894 grep -v '^ *+' conftest.er1 >conftest.err
2896 cat conftest.err >&5
2897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2898 (exit $ac_status); } >/dev/null; then
2899 if test -s conftest.err; then
2900 ac_cpp_err=$ac_c_preproc_warn_flag
2907 if test -z "$ac_cpp_err"; then
2910 echo "$as_me: failed program was:" >&5
2911 sed 's/^/| /' conftest.$ac_ext >&5
2913 # Broken: fails on valid input.
2916 rm -f conftest.err conftest.$ac_ext
2918 # OK, works on sane cases. Now check whether non-existent headers
2919 # can be detected and how.
2920 cat >conftest.$ac_ext <<_ACEOF
2921 #line $LINENO "configure"
2924 cat confdefs.h >>conftest.$ac_ext
2925 cat >>conftest.$ac_ext <<_ACEOF
2926 /* end confdefs.h. */
2927 #include <ac_nonexistent.h>
2929 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2930 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2932 grep -v '^ *+' conftest.er1 >conftest.err
2934 cat conftest.err >&5
2935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2936 (exit $ac_status); } >/dev/null; then
2937 if test -s conftest.err; then
2938 ac_cpp_err=$ac_c_preproc_warn_flag
2945 if test -z "$ac_cpp_err"; then
2946 # Broken: success on invalid input.
2949 echo "$as_me: failed program was:" >&5
2950 sed 's/^/| /' conftest.$ac_ext >&5
2952 # Passes both tests.
2956 rm -f conftest.err conftest.$ac_ext
2959 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2960 rm -f conftest.err conftest.$ac_ext
2961 if $ac_preproc_ok; then
2964 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2965 See \`config.log' for more details." >&5
2966 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2967 See \`config.log' for more details." >&2;}
2968 { (exit 1); exit 1; }; }
2972 ac_cpp='$CPP $CPPFLAGS'
2973 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2974 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2975 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2978 echo "$as_me:$LINENO: checking for egrep" >&5
2979 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2980 if test "${ac_cv_prog_egrep+set}" = set; then
2981 echo $ECHO_N "(cached) $ECHO_C" >&6
2983 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2984 then ac_cv_prog_egrep='grep -E'
2985 else ac_cv_prog_egrep='egrep'
2988 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2989 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2990 EGREP=$ac_cv_prog_egrep
2993 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2994 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2995 if test "${ac_cv_header_stdc+set}" = set; then
2996 echo $ECHO_N "(cached) $ECHO_C" >&6
2998 cat >conftest.$ac_ext <<_ACEOF
2999 #line $LINENO "configure"
3002 cat confdefs.h >>conftest.$ac_ext
3003 cat >>conftest.$ac_ext <<_ACEOF
3004 /* end confdefs.h. */
3018 rm -f conftest.$ac_objext
3019 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3020 (eval $ac_compile) 2>&5
3022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3023 (exit $ac_status); } &&
3024 { ac_try='test -s conftest.$ac_objext'
3025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3029 (exit $ac_status); }; }; then
3030 ac_cv_header_stdc=yes
3032 echo "$as_me: failed program was:" >&5
3033 sed 's/^/| /' conftest.$ac_ext >&5
3035 ac_cv_header_stdc=no
3037 rm -f conftest.$ac_objext conftest.$ac_ext
3039 if test $ac_cv_header_stdc = yes; then
3040 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3041 cat >conftest.$ac_ext <<_ACEOF
3042 #line $LINENO "configure"
3045 cat confdefs.h >>conftest.$ac_ext
3046 cat >>conftest.$ac_ext <<_ACEOF
3047 /* end confdefs.h. */
3051 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3052 $EGREP "memchr" >/dev/null 2>&1; then
3055 ac_cv_header_stdc=no
3061 if test $ac_cv_header_stdc = yes; then
3062 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3063 cat >conftest.$ac_ext <<_ACEOF
3064 #line $LINENO "configure"
3067 cat confdefs.h >>conftest.$ac_ext
3068 cat >>conftest.$ac_ext <<_ACEOF
3069 /* end confdefs.h. */
3073 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3074 $EGREP "free" >/dev/null 2>&1; then
3077 ac_cv_header_stdc=no
3083 if test $ac_cv_header_stdc = yes; then
3084 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3085 if test "$cross_compiling" = yes; then
3088 cat >conftest.$ac_ext <<_ACEOF
3089 #line $LINENO "configure"
3092 cat confdefs.h >>conftest.$ac_ext
3093 cat >>conftest.$ac_ext <<_ACEOF
3094 /* end confdefs.h. */
3096 #if ((' ' & 0x0FF) == 0x020)
3097 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3098 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3100 # define ISLOWER(c) \
3101 (('a' <= (c) && (c) <= 'i') \
3102 || ('j' <= (c) && (c) <= 'r') \
3103 || ('s' <= (c) && (c) <= 'z'))
3104 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3107 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3112 for (i = 0; i < 256; i++)
3113 if (XOR (islower (i), ISLOWER (i))
3114 || toupper (i) != TOUPPER (i))
3119 rm -f conftest$ac_exeext
3120 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3121 (eval $ac_link) 2>&5
3123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3124 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3129 (exit $ac_status); }; }; then
3132 echo "$as_me: program exited with status $ac_status" >&5
3133 echo "$as_me: failed program was:" >&5
3134 sed 's/^/| /' conftest.$ac_ext >&5
3137 ac_cv_header_stdc=no
3139 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3143 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3144 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3145 if test $ac_cv_header_stdc = yes; then
3147 cat >>confdefs.h <<\_ACEOF
3148 #define STDC_HEADERS 1
3155 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3165 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3166 inttypes.h stdint.h unistd.h
3168 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3169 echo "$as_me:$LINENO: checking for $ac_header" >&5
3170 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3171 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3172 echo $ECHO_N "(cached) $ECHO_C" >&6
3174 cat >conftest.$ac_ext <<_ACEOF
3175 #line $LINENO "configure"
3178 cat confdefs.h >>conftest.$ac_ext
3179 cat >>conftest.$ac_ext <<_ACEOF
3180 /* end confdefs.h. */
3181 $ac_includes_default
3183 #include <$ac_header>
3185 rm -f conftest.$ac_objext
3186 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3187 (eval $ac_compile) 2>&5
3189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3190 (exit $ac_status); } &&
3191 { ac_try='test -s conftest.$ac_objext'
3192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3196 (exit $ac_status); }; }; then
3197 eval "$as_ac_Header=yes"
3199 echo "$as_me: failed program was:" >&5
3200 sed 's/^/| /' conftest.$ac_ext >&5
3202 eval "$as_ac_Header=no"
3204 rm -f conftest.$ac_objext conftest.$ac_ext
3206 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3207 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3208 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3209 cat >>confdefs.h <<_ACEOF
3210 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3219 for ac_header in math.h
3221 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3222 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3223 echo "$as_me:$LINENO: checking for $ac_header" >&5
3224 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3225 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3226 echo $ECHO_N "(cached) $ECHO_C" >&6
3228 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3229 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3231 # Is the header compilable?
3232 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3233 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3234 cat >conftest.$ac_ext <<_ACEOF
3235 #line $LINENO "configure"
3238 cat confdefs.h >>conftest.$ac_ext
3239 cat >>conftest.$ac_ext <<_ACEOF
3240 /* end confdefs.h. */
3241 $ac_includes_default
3242 #include <$ac_header>
3244 rm -f conftest.$ac_objext
3245 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3246 (eval $ac_compile) 2>&5
3248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3249 (exit $ac_status); } &&
3250 { ac_try='test -s conftest.$ac_objext'
3251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3255 (exit $ac_status); }; }; then
3256 ac_header_compiler=yes
3258 echo "$as_me: failed program was:" >&5
3259 sed 's/^/| /' conftest.$ac_ext >&5
3261 ac_header_compiler=no
3263 rm -f conftest.$ac_objext conftest.$ac_ext
3264 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3265 echo "${ECHO_T}$ac_header_compiler" >&6
3267 # Is the header present?
3268 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3269 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3270 cat >conftest.$ac_ext <<_ACEOF
3271 #line $LINENO "configure"
3274 cat confdefs.h >>conftest.$ac_ext
3275 cat >>conftest.$ac_ext <<_ACEOF
3276 /* end confdefs.h. */
3277 #include <$ac_header>
3279 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3280 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3282 grep -v '^ *+' conftest.er1 >conftest.err
3284 cat conftest.err >&5
3285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3286 (exit $ac_status); } >/dev/null; then
3287 if test -s conftest.err; then
3288 ac_cpp_err=$ac_c_preproc_warn_flag
3295 if test -z "$ac_cpp_err"; then
3296 ac_header_preproc=yes
3298 echo "$as_me: failed program was:" >&5
3299 sed 's/^/| /' conftest.$ac_ext >&5
3301 ac_header_preproc=no
3303 rm -f conftest.err conftest.$ac_ext
3304 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3305 echo "${ECHO_T}$ac_header_preproc" >&6
3307 # So? What about this header?
3308 case $ac_header_compiler:$ac_header_preproc in
3310 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3311 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3312 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3313 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3316 ## ------------------------------------ ##
3317 ## Report this to bug-autoconf@gnu.org. ##
3318 ## ------------------------------------ ##
3321 sed "s/^/$as_me: WARNING: /" >&2
3324 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3325 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3326 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3327 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3328 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3329 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3332 ## ------------------------------------ ##
3333 ## Report this to bug-autoconf@gnu.org. ##
3334 ## ------------------------------------ ##
3337 sed "s/^/$as_me: WARNING: /" >&2
3340 echo "$as_me:$LINENO: checking for $ac_header" >&5
3341 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3342 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3343 echo $ECHO_N "(cached) $ECHO_C" >&6
3345 eval "$as_ac_Header=$ac_header_preproc"
3347 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3348 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3351 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3352 cat >>confdefs.h <<_ACEOF
3353 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3355 ac_math_headers="yes"
3357 ac_math_headers="no"
3362 if test "$ac_math_headers" != yes; then
3363 { { echo "$as_me:$LINENO: error: \"math header file not found\"" >&5
3364 echo "$as_me: error: \"math header file not found\"" >&2;}
3365 { (exit 1); exit 1; }; }
3369 #dnl check for the gnu multiprecission (gmp) header file
3371 #AC_CHECK_HEADERS(gmp.h, ac_gmp_headers="yes", ac_gmp_headers="no")
3372 #if test "$ac_gmp_headers" != yes; then
3373 # dnl gmp header not found.
3374 # AC_MSG_ERROR("GNU multiprecission gmp header file not found")
3380 for ac_header in obstack.h
3382 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3383 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3384 echo "$as_me:$LINENO: checking for $ac_header" >&5
3385 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3386 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3387 echo $ECHO_N "(cached) $ECHO_C" >&6
3389 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3390 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3392 # Is the header compilable?
3393 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3394 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3395 cat >conftest.$ac_ext <<_ACEOF
3396 #line $LINENO "configure"
3399 cat confdefs.h >>conftest.$ac_ext
3400 cat >>conftest.$ac_ext <<_ACEOF
3401 /* end confdefs.h. */
3402 $ac_includes_default
3403 #include <$ac_header>
3405 rm -f conftest.$ac_objext
3406 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3407 (eval $ac_compile) 2>&5
3409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3410 (exit $ac_status); } &&
3411 { ac_try='test -s conftest.$ac_objext'
3412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3416 (exit $ac_status); }; }; then
3417 ac_header_compiler=yes
3419 echo "$as_me: failed program was:" >&5
3420 sed 's/^/| /' conftest.$ac_ext >&5
3422 ac_header_compiler=no
3424 rm -f conftest.$ac_objext conftest.$ac_ext
3425 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3426 echo "${ECHO_T}$ac_header_compiler" >&6
3428 # Is the header present?
3429 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3430 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3431 cat >conftest.$ac_ext <<_ACEOF
3432 #line $LINENO "configure"
3435 cat confdefs.h >>conftest.$ac_ext
3436 cat >>conftest.$ac_ext <<_ACEOF
3437 /* end confdefs.h. */
3438 #include <$ac_header>
3440 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3441 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3443 grep -v '^ *+' conftest.er1 >conftest.err
3445 cat conftest.err >&5
3446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3447 (exit $ac_status); } >/dev/null; then
3448 if test -s conftest.err; then
3449 ac_cpp_err=$ac_c_preproc_warn_flag
3456 if test -z "$ac_cpp_err"; then
3457 ac_header_preproc=yes
3459 echo "$as_me: failed program was:" >&5
3460 sed 's/^/| /' conftest.$ac_ext >&5
3462 ac_header_preproc=no
3464 rm -f conftest.err conftest.$ac_ext
3465 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3466 echo "${ECHO_T}$ac_header_preproc" >&6
3468 # So? What about this header?
3469 case $ac_header_compiler:$ac_header_preproc in
3471 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3472 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3473 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3474 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3477 ## ------------------------------------ ##
3478 ## Report this to bug-autoconf@gnu.org. ##
3479 ## ------------------------------------ ##
3482 sed "s/^/$as_me: WARNING: /" >&2
3485 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3486 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3487 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3488 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3489 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3490 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3493 ## ------------------------------------ ##
3494 ## Report this to bug-autoconf@gnu.org. ##
3495 ## ------------------------------------ ##
3498 sed "s/^/$as_me: WARNING: /" >&2
3501 echo "$as_me:$LINENO: checking for $ac_header" >&5
3502 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3503 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3504 echo $ECHO_N "(cached) $ECHO_C" >&6
3506 eval "$as_ac_Header=$ac_header_preproc"
3508 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3509 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3512 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3513 cat >>confdefs.h <<_ACEOF
3514 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3516 ac_obstack_headers="yes"
3518 ac_obstack_headers="no"
3523 if test "$ac_obstack_headers" != yes; then
3524 { { echo "$as_me:$LINENO: error: \"obstack header file not found\"" >&5
3525 echo "$as_me: error: \"obstack header file not found\"" >&2;}
3526 { (exit 1); exit 1; }; }
3531 if test "$enable_firm_jni" = yes; then
3533 for ac_header in jni.h
3535 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3536 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3537 echo "$as_me:$LINENO: checking for $ac_header" >&5
3538 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3539 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3540 echo $ECHO_N "(cached) $ECHO_C" >&6
3542 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3543 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3545 # Is the header compilable?
3546 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3547 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3548 cat >conftest.$ac_ext <<_ACEOF
3549 #line $LINENO "configure"
3552 cat confdefs.h >>conftest.$ac_ext
3553 cat >>conftest.$ac_ext <<_ACEOF
3554 /* end confdefs.h. */
3555 $ac_includes_default
3556 #include <$ac_header>
3558 rm -f conftest.$ac_objext
3559 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3560 (eval $ac_compile) 2>&5
3562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3563 (exit $ac_status); } &&
3564 { ac_try='test -s conftest.$ac_objext'
3565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3569 (exit $ac_status); }; }; then
3570 ac_header_compiler=yes
3572 echo "$as_me: failed program was:" >&5
3573 sed 's/^/| /' conftest.$ac_ext >&5
3575 ac_header_compiler=no
3577 rm -f conftest.$ac_objext conftest.$ac_ext
3578 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3579 echo "${ECHO_T}$ac_header_compiler" >&6
3581 # Is the header present?
3582 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3583 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3584 cat >conftest.$ac_ext <<_ACEOF
3585 #line $LINENO "configure"
3588 cat confdefs.h >>conftest.$ac_ext
3589 cat >>conftest.$ac_ext <<_ACEOF
3590 /* end confdefs.h. */
3591 #include <$ac_header>
3593 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3594 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3596 grep -v '^ *+' conftest.er1 >conftest.err
3598 cat conftest.err >&5
3599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3600 (exit $ac_status); } >/dev/null; then
3601 if test -s conftest.err; then
3602 ac_cpp_err=$ac_c_preproc_warn_flag
3609 if test -z "$ac_cpp_err"; then
3610 ac_header_preproc=yes
3612 echo "$as_me: failed program was:" >&5
3613 sed 's/^/| /' conftest.$ac_ext >&5
3615 ac_header_preproc=no
3617 rm -f conftest.err conftest.$ac_ext
3618 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3619 echo "${ECHO_T}$ac_header_preproc" >&6
3621 # So? What about this header?
3622 case $ac_header_compiler:$ac_header_preproc in
3624 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3625 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3626 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3627 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3630 ## ------------------------------------ ##
3631 ## Report this to bug-autoconf@gnu.org. ##
3632 ## ------------------------------------ ##
3635 sed "s/^/$as_me: WARNING: /" >&2
3638 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3639 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3640 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3641 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3642 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3643 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3646 ## ------------------------------------ ##
3647 ## Report this to bug-autoconf@gnu.org. ##
3648 ## ------------------------------------ ##
3651 sed "s/^/$as_me: WARNING: /" >&2
3654 echo "$as_me:$LINENO: checking for $ac_header" >&5
3655 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3656 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3657 echo $ECHO_N "(cached) $ECHO_C" >&6
3659 eval "$as_ac_Header=$ac_header_preproc"
3661 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3662 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3665 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3666 cat >>confdefs.h <<_ACEOF
3667 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3669 ac_jni_headers="yes"
3676 if test "$ac_jni_headers" != yes; then
3677 { { echo "$as_me:$LINENO: error: jni header file not found. (IPD: add -I/usr/public2/java/jdk1.3.1-sun/include/ -I/usr/public2/java/jdk1.3.1-sun/include/linux/ to CPPFLAGS)" >&5
3678 echo "$as_me: error: jni header file not found. (IPD: add -I/usr/public2/java/jdk1.3.1-sun/include/ -I/usr/public2/java/jdk1.3.1-sun/include/linux/ to CPPFLAGS)" >&2;}
3679 { (exit 1); exit 1; }; }
3685 #dnl check for the gnu multiprecission (gmp) library
3687 #AC_CHECK_LIB(gmp, main, ac_gmp_library="yes", ac_gmp_library="no")
3688 #if test "$ac_gmp_library" != yes; then
3689 # dnl gmp library not found.
3690 # AC_MSG_ERROR("GNU multiprecission gmp library not found")
3694 echo "$as_me:$LINENO: checking for main in -lm" >&5
3695 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
3696 if test "${ac_cv_lib_m_main+set}" = set; then
3697 echo $ECHO_N "(cached) $ECHO_C" >&6
3699 ac_check_lib_save_LIBS=$LIBS
3701 cat >conftest.$ac_ext <<_ACEOF
3702 #line $LINENO "configure"
3705 cat confdefs.h >>conftest.$ac_ext
3706 cat >>conftest.$ac_ext <<_ACEOF
3707 /* end confdefs.h. */
3718 rm -f conftest.$ac_objext conftest$ac_exeext
3719 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3720 (eval $ac_link) 2>&5
3722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3723 (exit $ac_status); } &&
3724 { ac_try='test -s conftest$ac_exeext'
3725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3729 (exit $ac_status); }; }; then
3730 ac_cv_lib_m_main=yes
3732 echo "$as_me: failed program was:" >&5
3733 sed 's/^/| /' conftest.$ac_ext >&5
3737 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3738 LIBS=$ac_check_lib_save_LIBS
3740 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
3741 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
3742 if test $ac_cv_lib_m_main = yes; then
3748 if test "$ac_m_library" != yes; then
3749 { { echo "$as_me:$LINENO: error: \"standard math library not found\"" >&5
3750 echo "$as_me: error: \"standard math library not found\"" >&2;}
3751 { (exit 1); exit 1; }; }
3759 echo "$as_me:$LINENO: checking for strerror" >&5
3760 echo $ECHO_N "checking for strerror... $ECHO_C" >&6
3761 if test "${ac_cv_func_strerror+set}" = set; then
3762 echo $ECHO_N "(cached) $ECHO_C" >&6
3764 cat >conftest.$ac_ext <<_ACEOF
3765 #line $LINENO "configure"
3768 cat confdefs.h >>conftest.$ac_ext
3769 cat >>conftest.$ac_ext <<_ACEOF
3770 /* end confdefs.h. */
3771 /* System header to define __stub macros and hopefully few prototypes,
3772 which can conflict with char strerror (); below. */
3774 /* Override any gcc2 internal prototype to avoid an error. */
3779 /* We use char because int might match the return type of a gcc2
3780 builtin and then its argument prototype would still apply. */
3782 /* The GNU C library defines this for functions which it implements
3783 to always fail with ENOSYS. Some functions are actually named
3784 something starting with __ and the normal name is an alias. */
3785 #if defined (__stub_strerror) || defined (__stub___strerror)
3788 char (*f) () = strerror;
3802 rm -f conftest.$ac_objext conftest$ac_exeext
3803 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3804 (eval $ac_link) 2>&5
3806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3807 (exit $ac_status); } &&
3808 { ac_try='test -s conftest$ac_exeext'
3809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3813 (exit $ac_status); }; }; then
3814 ac_cv_func_strerror=yes
3816 echo "$as_me: failed program was:" >&5
3817 sed 's/^/| /' 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 overridden 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 diff $cache_file confcache >/dev/null 2>&1; 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
3918 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
3919 # 1. Remove the extension, and $U if already installed.
3920 ac_i=`echo "$ac_i" |
3921 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
3923 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
3924 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
3928 LTLIBOBJS=$ac_ltlibobjs
3932 : ${CONFIG_STATUS=./config.status}
3933 ac_clean_files_save=$ac_clean_files
3934 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
3935 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
3936 echo "$as_me: creating $CONFIG_STATUS" >&6;}
3937 cat >$CONFIG_STATUS <<_ACEOF
3939 # Generated by $as_me.
3940 # Run this file to recreate the current configuration.
3941 # Compiler output produced by configure, useful for debugging
3942 # configure, is in config.log if it exists.
3947 SHELL=\${CONFIG_SHELL-$SHELL}
3950 cat >>$CONFIG_STATUS <<\_ACEOF
3951 ## --------------------- ##
3952 ## M4sh Initialization. ##
3953 ## --------------------- ##
3955 # Be Bourne compatible
3956 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
3959 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
3960 # is contrary to our usage. Disable this feature.
3961 alias -g '${1+"$@"}'='"$@"'
3962 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
3966 # Support unset when possible.
3967 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
3974 # Work around bugs in pre-3.0 UWIN ksh.
3975 $as_unset ENV MAIL MAILPATH
3982 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
3983 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
3984 LC_TELEPHONE LC_TIME
3986 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
3987 eval $as_var=C; export $as_var
3993 # Required to use basename.
3994 if expr a : '\(a\)' >/dev/null 2>&1; then
4000 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
4001 as_basename=basename
4007 # Name of the executable.
4008 as_me=`$as_basename "$0" ||
4009 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4010 X"$0" : 'X\(//\)$' \| \
4011 X"$0" : 'X\(/\)$' \| \
4012 . : '\(.\)' 2>/dev/null ||
4014 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
4015 /^X\/\(\/\/\)$/{ s//\1/; q; }
4016 /^X\/\(\/\).*/{ s//\1/; q; }
4020 # PATH needs CR, and LINENO needs CR and PATH.
4021 # Avoid depending upon Character Ranges.
4022 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
4023 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4024 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
4025 as_cr_digits='0123456789'
4026 as_cr_alnum=$as_cr_Letters$as_cr_digits
4028 # The user is always right.
4029 if test "${PATH_SEPARATOR+set}" != set; then
4030 echo "#! /bin/sh" >conf$$.sh
4031 echo "exit 0" >>conf$$.sh
4033 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4044 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4045 test "x$as_lineno_1" != "x$as_lineno_2" &&
4046 test "x$as_lineno_3" = "x$as_lineno_2" || {
4047 # Find who we are. Look in the path if we contain no path at all
4050 *[\\/]* ) as_myself=$0 ;;
4051 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4055 test -z "$as_dir" && as_dir=.
4056 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4061 # We did not find ourselves, most probably we were run as `sh COMMAND'
4062 # in which case we are not to be found in the path.
4063 if test "x$as_myself" = x; then
4066 if test ! -f "$as_myself"; then
4067 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
4068 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
4069 { (exit 1); exit 1; }; }
4071 case $CONFIG_SHELL in
4073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4074 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
4077 test -z "$as_dir" && as_dir=.
4078 for as_base in sh bash ksh sh5; do
4081 if ("$as_dir/$as_base" -c '
4084 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4085 test "x$as_lineno_1" != "x$as_lineno_2" &&
4086 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
4087 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
4088 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
4089 CONFIG_SHELL=$as_dir/$as_base
4091 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
4099 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
4100 # uniformly replaced by the line number. The first 'sed' inserts a
4101 # line-number line before each line; the second 'sed' does the real
4102 # work. The second script uses 'N' to pair each line-number line
4103 # with the numbered line, and appends trailing '-' during
4104 # substitution so that $LINENO is not a special case at line end.
4105 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
4106 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
4107 sed '=' <$as_myself |
4112 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
4115 s,^['$as_cr_digits']*\n,,
4117 chmod +x $as_me.lineno ||
4118 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
4119 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
4120 { (exit 1); exit 1; }; }
4122 # Don't try to exec as it changes $[0], causing all sort of problems
4123 # (the dirname of $[0] is not the place where we might find the
4124 # original and so on. Autoconf is especially sensible to this).
4126 # Exit status is that of the last command.
4131 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
4132 *c*,-n*) ECHO_N= ECHO_C='
4134 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
4135 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
4138 if expr a : '\(a\)' >/dev/null 2>&1; then
4144 rm -f conf$$ conf$$.exe conf$$.file
4146 if ln -s conf$$.file conf$$ 2>/dev/null; then
4147 # We could just check for DJGPP; but this test a) works b) is more generic
4148 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
4149 if test -f conf$$.exe; then
4150 # Don't use ln at all; we don't have any links
4155 elif ln conf$$.file conf$$ 2>/dev/null; then
4160 rm -f conf$$ conf$$.exe conf$$.file
4162 if mkdir -p . 2>/dev/null; then
4168 as_executable_p="test -f"
4170 # Sed expression to map a string onto a valid CPP name.
4171 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
4173 # Sed expression to map a string onto a valid variable name.
4174 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
4178 # We need space, tab and new line, in precisely that order.
4188 # Open the log real soon, to keep \$[0] and so on meaningful, and to
4189 # report actual input values of CONFIG_FILES etc. instead of their
4190 # values after options handling. Logging --version etc. is OK.
4194 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4195 ## Running $as_me. ##
4200 This file was extended by libfirm $as_me 0.3.0, which was
4201 generated by GNU Autoconf 2.56. Invocation command line was
4203 CONFIG_FILES = $CONFIG_FILES
4204 CONFIG_HEADERS = $CONFIG_HEADERS
4205 CONFIG_LINKS = $CONFIG_LINKS
4206 CONFIG_COMMANDS = $CONFIG_COMMANDS
4210 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
4214 # Files that config.status was made for.
4215 if test -n "$ac_config_files"; then
4216 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
4219 if test -n "$ac_config_headers"; then
4220 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
4223 if test -n "$ac_config_links"; then
4224 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
4227 if test -n "$ac_config_commands"; then
4228 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
4231 cat >>$CONFIG_STATUS <<\_ACEOF
4234 \`$as_me' instantiates files from templates according to the
4235 current configuration.
4237 Usage: $0 [OPTIONS] [FILE]...
4239 -h, --help print this help, then exit
4240 -V, --version print version number, then exit
4241 -q, --quiet do not print progress messages
4242 -d, --debug don't remove temporary files
4243 --recheck update $as_me by reconfiguring in the same conditions
4244 --file=FILE[:TEMPLATE]
4245 instantiate the configuration file FILE
4246 --header=FILE[:TEMPLATE]
4247 instantiate the configuration header FILE
4249 Configuration files:
4252 Configuration headers:
4255 Configuration commands:
4258 Report bugs to <bug-autoconf@gnu.org>."
4261 cat >>$CONFIG_STATUS <<_ACEOF
4263 libfirm config.status 0.3.0
4264 configured by $0, generated by GNU Autoconf 2.56,
4265 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
4267 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
4268 Free Software Foundation, Inc.
4269 This config.status script is free software; the Free Software Foundation
4270 gives unlimited permission to copy, distribute and modify it."
4275 cat >>$CONFIG_STATUS <<\_ACEOF
4276 # If no file are specified by the user, then we need to provide default
4277 # value. By we need to know if files were specified by the user.
4283 ac_option=`expr "x$1" : 'x\([^=]*\)='`
4284 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
4292 *) # This is not an option, so the user has probably given explicit
4295 ac_need_defaults=false;;
4299 # Handling of the options.
4301 cat >>$CONFIG_STATUS <<\_ACEOF
4302 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4304 --version | --vers* | -V )
4305 echo "$ac_cs_version"; exit 0 ;;
4307 # Conflict between --help and --header
4308 { { echo "$as_me:$LINENO: error: ambiguous option: $1
4309 Try \`$0 --help' for more information." >&5
4310 echo "$as_me: error: ambiguous option: $1
4311 Try \`$0 --help' for more information." >&2;}
4312 { (exit 1); exit 1; }; };;
4313 --help | --hel | -h )
4314 echo "$ac_cs_usage"; exit 0 ;;
4315 --debug | --d* | -d )
4317 --file | --fil | --fi | --f )
4319 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
4320 ac_need_defaults=false;;
4321 --header | --heade | --head | --hea )
4323 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
4324 ac_need_defaults=false;;
4325 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
4326 | -silent | --silent | --silen | --sile | --sil | --si | --s)
4330 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
4331 Try \`$0 --help' for more information." >&5
4332 echo "$as_me: error: unrecognized option: $1
4333 Try \`$0 --help' for more information." >&2;}
4334 { (exit 1); exit 1; }; } ;;
4336 *) ac_config_targets="$ac_config_targets $1" ;;
4342 ac_configure_extra_args=
4344 if $ac_cs_silent; then
4346 ac_configure_extra_args="$ac_configure_extra_args --silent"
4350 cat >>$CONFIG_STATUS <<_ACEOF
4351 if \$ac_cs_recheck; then
4352 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
4353 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
4362 cat >>$CONFIG_STATUS <<\_ACEOF
4363 for ac_config_target in $ac_config_targets
4365 case "$ac_config_target" in
4366 # Handling of arguments.
4367 "$ac_output_file" ) CONFIG_FILES="$CONFIG_FILES $ac_output_file" ;;
4368 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
4369 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
4370 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
4371 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
4372 { (exit 1); exit 1; }; };;
4376 # If the user did not use the arguments to specify the items to instantiate,
4377 # then the envvar interface is used. Set only those that are not.
4378 # We use the long form for the default assignment because of an extremely
4379 # bizarre bug on SunOS 4.1.3.
4380 if $ac_need_defaults; then
4381 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
4382 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
4383 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
4386 # Have a temporary directory for convenience. Make it in the build tree
4387 # simply because there is no reason to put it here, and in addition,
4388 # creating and moving files from /tmp can sometimes cause problems.
4389 # Create a temporary directory, and hook for its removal unless debugging.
4392 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
4393 trap '{ (exit 1); exit 1; }' 1 2 13 15
4396 # Create a (secure) tmp directory for tmp files.
4399 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
4400 test -n "$tmp" && test -d "$tmp"
4403 tmp=./confstat$$-$RANDOM
4404 (umask 077 && mkdir $tmp)
4407 echo "$me: cannot create a temporary directory in ." >&2
4408 { (exit 1); exit 1; }
4413 cat >>$CONFIG_STATUS <<_ACEOF
4416 # CONFIG_FILES section.
4419 # No need to generate the scripts if there are no CONFIG_FILES.
4420 # This happens for instance when ./config.status config.h
4421 if test -n "\$CONFIG_FILES"; then
4422 # Protect against being on the right side of a sed subst in config.status.
4423 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
4424 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
4425 s,@SHELL@,$SHELL,;t t
4426 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
4427 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
4428 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
4429 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
4430 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
4431 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
4432 s,@exec_prefix@,$exec_prefix,;t t
4433 s,@prefix@,$prefix,;t t
4434 s,@program_transform_name@,$program_transform_name,;t t
4435 s,@bindir@,$bindir,;t t
4436 s,@sbindir@,$sbindir,;t t
4437 s,@libexecdir@,$libexecdir,;t t
4438 s,@datadir@,$datadir,;t t
4439 s,@sysconfdir@,$sysconfdir,;t t
4440 s,@sharedstatedir@,$sharedstatedir,;t t
4441 s,@localstatedir@,$localstatedir,;t t
4442 s,@libdir@,$libdir,;t t
4443 s,@includedir@,$includedir,;t t
4444 s,@oldincludedir@,$oldincludedir,;t t
4445 s,@infodir@,$infodir,;t t
4446 s,@mandir@,$mandir,;t t
4447 s,@build_alias@,$build_alias,;t t
4448 s,@host_alias@,$host_alias,;t t
4449 s,@target_alias@,$target_alias,;t t
4451 s,@ECHO_C@,$ECHO_C,;t t
4452 s,@ECHO_N@,$ECHO_N,;t t
4453 s,@ECHO_T@,$ECHO_T,;t t
4455 s,@libfirm_conf_env@,$libfirm_conf_env,;t t
4456 s,@enable_debug_libfirm@,$enable_debug_libfirm,;t t
4457 s,@enable_gcc_inline@,$enable_gcc_inline,;t t
4458 s,@enable_profile_libfirm@,$enable_profile_libfirm,;t t
4459 s,@enable_auto_documentation@,$enable_auto_documentation,;t t
4460 s,@enable_firm_jni@,$enable_firm_jni,;t t
4462 s,@CFLAGS@,$CFLAGS,;t t
4463 s,@LDFLAGS@,$LDFLAGS,;t t
4464 s,@CPPFLAGS@,$CPPFLAGS,;t t
4465 s,@ac_ct_CC@,$ac_ct_CC,;t t
4466 s,@EXEEXT@,$EXEEXT,;t t
4467 s,@OBJEXT@,$OBJEXT,;t t
4469 s,@ac_ct_LD@,$ac_ct_LD,;t t
4470 s,@libfirm_cv_prog_ld_r@,$libfirm_cv_prog_ld_r,;t t
4473 s,@RANLIB@,$RANLIB,;t t
4474 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
4475 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
4476 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
4477 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
4479 s,@ROBODOC@,$ROBODOC,;t t
4480 s,@JAVAC@,$JAVAC,;t t
4481 s,@JAVAH@,$JAVAH,;t t
4483 s,@EGREP@,$EGREP,;t t
4484 s,@LIBOBJS@,$LIBOBJS,;t t
4485 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
4490 cat >>$CONFIG_STATUS <<\_ACEOF
4491 # Split the substitutions into bite-sized pieces for seds with
4492 # small command number limits, like on Digital OSF/1 and HP-UX.
4494 ac_sed_frag=1 # Number of current file.
4495 ac_beg=1 # First line for current file.
4496 ac_end=$ac_max_sed_lines # Line after last line for current file.
4499 while $ac_more_lines; do
4500 if test $ac_beg -gt 1; then
4501 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4503 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4505 if test ! -s $tmp/subs.frag; then
4508 # The purpose of the label and of the branching condition is to
4509 # speed up the sed processing (if there are no `@' at all, there
4510 # is no need to browse any of the substitutions).
4511 # These are the two extra sed commands mentioned above.
4513 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
4514 if test -z "$ac_sed_cmds"; then
4515 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
4517 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
4519 ac_sed_frag=`expr $ac_sed_frag + 1`
4521 ac_end=`expr $ac_end + $ac_max_sed_lines`
4524 if test -z "$ac_sed_cmds"; then
4527 fi # test -n "$CONFIG_FILES"
4530 cat >>$CONFIG_STATUS <<\_ACEOF
4531 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
4532 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4534 - | *:- | *:-:* ) # input from stdin
4536 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4537 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4538 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4539 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4540 * ) ac_file_in=$ac_file.in ;;
4543 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
4544 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
4545 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4546 X"$ac_file" : 'X\(//\)[^/]' \| \
4547 X"$ac_file" : 'X\(//\)$' \| \
4548 X"$ac_file" : 'X\(/\)' \| \
4549 . : '\(.\)' 2>/dev/null ||
4551 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4552 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4553 /^X\(\/\/\)$/{ s//\1/; q; }
4554 /^X\(\/\).*/{ s//\1/; q; }
4556 { if $as_mkdir_p; then
4561 while test ! -d "$as_dir"; do
4562 as_dirs="$as_dir $as_dirs"
4563 as_dir=`(dirname "$as_dir") 2>/dev/null ||
4564 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4565 X"$as_dir" : 'X\(//\)[^/]' \| \
4566 X"$as_dir" : 'X\(//\)$' \| \
4567 X"$as_dir" : 'X\(/\)' \| \
4568 . : '\(.\)' 2>/dev/null ||
4570 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4571 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4572 /^X\(\/\/\)$/{ s//\1/; q; }
4573 /^X\(\/\).*/{ s//\1/; q; }
4576 test ! -n "$as_dirs" || mkdir $as_dirs
4577 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
4578 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
4579 { (exit 1); exit 1; }; }; }
4583 if test "$ac_dir" != .; then
4584 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
4585 # A "../" for each directory in $ac_dir_suffix.
4586 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
4588 ac_dir_suffix= ac_top_builddir=
4592 .) # No --srcdir option. We are building in place.
4594 if test -z "$ac_top_builddir"; then
4597 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
4599 [\\/]* | ?:[\\/]* ) # Absolute path.
4600 ac_srcdir=$srcdir$ac_dir_suffix;
4601 ac_top_srcdir=$srcdir ;;
4603 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
4604 ac_top_srcdir=$ac_top_builddir$srcdir ;;
4606 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
4608 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
4609 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
4610 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
4611 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
4615 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
4616 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
4619 if test x"$ac_file" != x-; then
4620 { echo "$as_me:$LINENO: creating $ac_file" >&5
4621 echo "$as_me: creating $ac_file" >&6;}
4624 # Let's still pretend it is `configure' which instantiates (i.e., don't
4625 # use $as_me), people would be surprised to read:
4626 # /* config.h. Generated by config.status. */
4627 if test x"$ac_file" = x-; then
4630 configure_input="$ac_file. "
4632 configure_input=$configure_input"Generated from `echo $ac_file_in |
4633 sed 's,.*/,,'` by configure."
4635 # First look for the input files in the build tree, otherwise in the
4637 ac_file_inputs=`IFS=:
4638 for f in $ac_file_in; do
4640 -) echo $tmp/stdin ;;
4642 # Absolute (can't be DOS-style, as IFS=:)
4643 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4644 echo "$as_me: error: cannot find input file: $f" >&2;}
4645 { (exit 1); exit 1; }; }
4648 if test -f "$f"; then
4651 elif test -f "$srcdir/$f"; then
4656 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4657 echo "$as_me: error: cannot find input file: $f" >&2;}
4658 { (exit 1); exit 1; }; }
4661 done` || { (exit 1); exit 1; }
4663 cat >>$CONFIG_STATUS <<_ACEOF
4667 cat >>$CONFIG_STATUS <<\_ACEOF
4669 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
4670 s,@configure_input@,$configure_input,;t t
4671 s,@srcdir@,$ac_srcdir,;t t
4672 s,@abs_srcdir@,$ac_abs_srcdir,;t t
4673 s,@top_srcdir@,$ac_top_srcdir,;t t
4674 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
4675 s,@builddir@,$ac_builddir,;t t
4676 s,@abs_builddir@,$ac_abs_builddir,;t t
4677 s,@top_builddir@,$ac_top_builddir,;t t
4678 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
4679 s,@INSTALL@,$ac_INSTALL,;t t
4680 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
4682 if test x"$ac_file" != x-; then
4683 mv $tmp/out $ac_file
4691 cat >>$CONFIG_STATUS <<\_ACEOF
4694 # CONFIG_HEADER section.
4697 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4698 # NAME is the cpp macro being defined and VALUE is the value it is being given.
4700 # ac_d sets the value in "#define NAME VALUE" lines.
4701 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
4702 ac_dB='[ ].*$,\1#\2'
4705 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4706 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4707 ac_uB='$,\1#\2define\3'
4711 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
4712 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4714 - | *:- | *:-:* ) # input from stdin
4716 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4717 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4718 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4719 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4720 * ) ac_file_in=$ac_file.in ;;
4723 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
4724 echo "$as_me: creating $ac_file" >&6;}
4726 # First look for the input files in the build tree, otherwise in the
4728 ac_file_inputs=`IFS=:
4729 for f in $ac_file_in; do
4731 -) echo $tmp/stdin ;;
4733 # Absolute (can't be DOS-style, as IFS=:)
4734 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4735 echo "$as_me: error: cannot find input file: $f" >&2;}
4736 { (exit 1); exit 1; }; }
4739 if test -f "$f"; then
4742 elif test -f "$srcdir/$f"; then
4747 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4748 echo "$as_me: error: cannot find input file: $f" >&2;}
4749 { (exit 1); exit 1; }; }
4752 done` || { (exit 1); exit 1; }
4753 # Remove the trailing spaces.
4754 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
4758 # Transform confdefs.h into two sed scripts, `conftest.defines' and
4759 # `conftest.undefs', that substitutes the proper values into
4760 # config.h.in to produce config.h. The first handles `#define'
4761 # templates, and the second `#undef' templates.
4762 # And first: Protect against being on the right side of a sed subst in
4763 # config.status. Protect against being in an unquoted here document
4765 rm -f conftest.defines conftest.undefs
4766 # Using a here document instead of a string reduces the quoting nightmare.
4767 # Putting comments in sed scripts is not portable.
4769 # `end' is used to avoid that the second main sed command (meant for
4770 # 0-ary CPP macros) applies to n-ary macro definitions.
4771 # See the Autoconf documentation for `clear'.
4772 cat >confdef2sed.sed <<\_ACEOF
4777 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
4779 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
4782 # If some macros were called several times there might be several times
4783 # the same #defines, which is useless. Nevertheless, we may not want to
4784 # sort them, since we want the *last* AC-DEFINE to be honored.
4785 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
4786 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
4787 rm -f confdef2sed.sed
4789 # This sed command replaces #undef with comments. This is necessary, for
4790 # example, in the case of _POSIX_SOURCE, which is predefined and required
4791 # on some systems where configure will not decide to define it.
4792 cat >>conftest.undefs <<\_ACEOF
4793 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
4796 # Break up conftest.defines because some shells have a limit on the size
4797 # of here documents, and old seds have small limits too (100 cmds).
4798 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
4799 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
4800 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
4801 echo ' :' >>$CONFIG_STATUS
4803 while grep . conftest.defines >/dev/null
4805 # Write a limited-size here document to $tmp/defines.sed.
4806 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
4807 # Speed up: don't consider the non `#define' lines.
4808 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
4809 # Work around the forget-to-reset-the-flag bug.
4810 echo 't clr' >>$CONFIG_STATUS
4811 echo ': clr' >>$CONFIG_STATUS
4812 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
4814 sed -f $tmp/defines.sed $tmp/in >$tmp/out
4818 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
4819 rm -f conftest.defines
4820 mv conftest.tail conftest.defines
4822 rm -f conftest.defines
4823 echo ' fi # grep' >>$CONFIG_STATUS
4824 echo >>$CONFIG_STATUS
4826 # Break up conftest.undefs because some shells have a limit on the size
4827 # of here documents, and old seds have small limits too (100 cmds).
4828 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
4830 while grep . conftest.undefs >/dev/null
4832 # Write a limited-size here document to $tmp/undefs.sed.
4833 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
4834 # Speed up: don't consider the non `#undef'
4835 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
4836 # Work around the forget-to-reset-the-flag bug.
4837 echo 't clr' >>$CONFIG_STATUS
4838 echo ': clr' >>$CONFIG_STATUS
4839 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
4841 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
4845 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
4846 rm -f conftest.undefs
4847 mv conftest.tail conftest.undefs
4849 rm -f conftest.undefs
4851 cat >>$CONFIG_STATUS <<\_ACEOF
4852 # Let's still pretend it is `configure' which instantiates (i.e., don't
4853 # use $as_me), people would be surprised to read:
4854 # /* config.h. Generated by config.status. */
4855 if test x"$ac_file" = x-; then
4856 echo "/* Generated by configure. */" >$tmp/config.h
4858 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
4860 cat $tmp/in >>$tmp/config.h
4862 if test x"$ac_file" != x-; then
4863 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
4864 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
4865 echo "$as_me: $ac_file is unchanged" >&6;}
4867 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
4868 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4869 X"$ac_file" : 'X\(//\)[^/]' \| \
4870 X"$ac_file" : 'X\(//\)$' \| \
4871 X"$ac_file" : 'X\(/\)' \| \
4872 . : '\(.\)' 2>/dev/null ||
4874 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4875 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4876 /^X\(\/\/\)$/{ s//\1/; q; }
4877 /^X\(\/\).*/{ s//\1/; q; }
4879 { if $as_mkdir_p; then
4884 while test ! -d "$as_dir"; do
4885 as_dirs="$as_dir $as_dirs"
4886 as_dir=`(dirname "$as_dir") 2>/dev/null ||
4887 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4888 X"$as_dir" : 'X\(//\)[^/]' \| \
4889 X"$as_dir" : 'X\(//\)$' \| \
4890 X"$as_dir" : 'X\(/\)' \| \
4891 . : '\(.\)' 2>/dev/null ||
4893 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4894 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4895 /^X\(\/\/\)$/{ s//\1/; q; }
4896 /^X\(\/\).*/{ s//\1/; q; }
4899 test ! -n "$as_dirs" || mkdir $as_dirs
4900 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
4901 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
4902 { (exit 1); exit 1; }; }; }
4905 mv $tmp/config.h $ac_file
4913 cat >>$CONFIG_STATUS <<\_ACEOF
4916 # CONFIG_COMMANDS section.
4918 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
4919 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
4920 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
4921 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
4922 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4923 X"$ac_dest" : 'X\(//\)[^/]' \| \
4924 X"$ac_dest" : 'X\(//\)$' \| \
4925 X"$ac_dest" : 'X\(/\)' \| \
4926 . : '\(.\)' 2>/dev/null ||
4928 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4929 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4930 /^X\(\/\/\)$/{ s//\1/; q; }
4931 /^X\(\/\).*/{ s//\1/; q; }
4935 if test "$ac_dir" != .; then
4936 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
4937 # A "../" for each directory in $ac_dir_suffix.
4938 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
4940 ac_dir_suffix= ac_top_builddir=
4944 .) # No --srcdir option. We are building in place.
4946 if test -z "$ac_top_builddir"; then
4949 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
4951 [\\/]* | ?:[\\/]* ) # Absolute path.
4952 ac_srcdir=$srcdir$ac_dir_suffix;
4953 ac_top_srcdir=$srcdir ;;
4955 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
4956 ac_top_srcdir=$ac_top_builddir$srcdir ;;
4958 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
4960 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
4961 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
4962 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
4963 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
4966 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
4967 echo "$as_me: executing $ac_dest commands" >&6;}
4969 default ) touch stamp-h ;;
4974 cat >>$CONFIG_STATUS <<\_ACEOF
4976 { (exit 0); exit 0; }
4978 chmod +x $CONFIG_STATUS
4979 ac_clean_files=$ac_clean_files_save
4982 # configure is writing to config.log, and then calls config.status.
4983 # config.status does its own redirection, appending to config.log.
4984 # Unfortunately, on DOS this fails, as config.log is still kept open
4985 # by configure, so config.status won't be able to write to it; its
4986 # output is simply discarded. So we exec the FD to /dev/null,
4987 # effectively closing config.log, so it can be properly (re)opened and
4988 # appended to by config.status. When coming back to configure, we
4989 # need to make the FD available again.
4990 if test "$no_create" != yes; then
4992 ac_config_status_args=
4993 test "$silent" = yes &&
4994 ac_config_status_args="$ac_config_status_args --quiet"
4996 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
4998 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
4999 # would make configure fail if this is the last instruction.
5000 $ac_cs_success || { (exit 1); exit 1; }