2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57.
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18 # is contrary to our usage. Disable this feature.
19 alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24 # Support unset when possible.
25 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
138 if ("$as_dir/$as_base" -c '
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 if expr a : '\(a\)' >/dev/null 2>&1; then
200 rm -f conf$$ conf$$.exe conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
211 elif ln conf$$.file conf$$ 2>/dev/null; then
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
224 as_executable_p="test -f"
226 # Sed expression to map a string onto a valid CPP name.
227 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
229 # Sed expression to map a string onto a valid variable name.
230 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
234 # We need space, tab and new line, in precisely that order.
244 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
245 # so uname gets run too.
246 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
253 ac_default_prefix=/usr/local
254 ac_config_libobj_dir=.
259 SHELL=${CONFIG_SHELL-/bin/sh}
261 # Maximum number of lines to put in a shell here document.
262 # This variable seems obsolete. It should probably be removed, and
263 # only ac_max_sed_lines should be used.
264 : ${ac_max_here_lines=38}
266 # Identity of this package.
273 ac_unique_file="jit.c"
274 ac_default_prefix=/usr/local/cacao
275 # Factoring default headers for most tests.
276 ac_includes_default="\
279 # include <sys/types.h>
282 # include <sys/stat.h>
293 # if !STDC_HEADERS && HAVE_MEMORY_H
299 # include <strings.h>
302 # include <inttypes.h>
312 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 build build_cpu build_vendor build_os host host_cpu host_vendor host_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO SET_MAKE COMPILER_OBJECTS ASMPART SYSDEP_DIR CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT RANLIB ac_ct_RANLIB CPP EGREP LIBOBJS LIBTHREAD THREAD_OBJ GC_OBJ BOEHM_LIB LTLIBOBJS'
315 # Initialize some variables set by options.
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
327 program_transform_name=s,x,x,
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365 # Accept the important Cygnus configure options, so we can diagnose typos.
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
374 -build | --build | --buil | --bui | --bu)
375 ac_prev=build_alias ;;
376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377 build_alias=$ac_optarg ;;
379 -cache-file | --cache-file | --cache-fil | --cache-fi \
380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381 ac_prev=cache_file ;;
382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384 cache_file=$ac_optarg ;;
387 cache_file=config.cache ;;
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
393 datadir=$ac_optarg ;;
395 -disable-* | --disable-*)
396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
404 -enable-* | --enable-*)
405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
415 eval "enable_$ac_feature='$ac_optarg'" ;;
417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419 | --exec | --exe | --ex)
420 ac_prev=exec_prefix ;;
421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423 | --exec=* | --exe=* | --ex=*)
424 exec_prefix=$ac_optarg ;;
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
430 -help | --help | --hel | --he | -h)
432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433 ac_init_help=recursive ;;
434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435 ac_init_help=short ;;
437 -host | --host | --hos | --ho)
438 ac_prev=host_alias ;;
439 -host=* | --host=* | --hos=* | --ho=*)
440 host_alias=$ac_optarg ;;
442 -includedir | --includedir | --includedi | --included | --include \
443 | --includ | --inclu | --incl | --inc)
444 ac_prev=includedir ;;
445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446 | --includ=* | --inclu=* | --incl=* | --inc=*)
447 includedir=$ac_optarg ;;
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452 infodir=$ac_optarg ;;
454 -libdir | --libdir | --libdi | --libd)
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460 | --libexe | --libex | --libe)
461 ac_prev=libexecdir ;;
462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463 | --libexe=* | --libex=* | --libe=*)
464 libexecdir=$ac_optarg ;;
466 -localstatedir | --localstatedir | --localstatedi | --localstated \
467 | --localstate | --localstat | --localsta | --localst \
468 | --locals | --local | --loca | --loc | --lo)
469 ac_prev=localstatedir ;;
470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473 localstatedir=$ac_optarg ;;
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
481 # Obsolete; use --without-fp.
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c | -n)
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494 | --oldin | --oldi | --old | --ol | --o)
495 ac_prev=oldincludedir ;;
496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499 oldincludedir=$ac_optarg ;;
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
506 -program-prefix | --program-prefix | --program-prefi | --program-pref \
507 | --program-pre | --program-pr | --program-p)
508 ac_prev=program_prefix ;;
509 -program-prefix=* | --program-prefix=* | --program-prefi=* \
510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511 program_prefix=$ac_optarg ;;
513 -program-suffix | --program-suffix | --program-suffi | --program-suff \
514 | --program-suf | --program-su | --program-s)
515 ac_prev=program_suffix ;;
516 -program-suffix=* | --program-suffix=* | --program-suffi=* \
517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518 program_suffix=$ac_optarg ;;
520 -program-transform-name | --program-transform-name \
521 | --program-transform-nam | --program-transform-na \
522 | --program-transform-n | --program-transform- \
523 | --program-transform | --program-transfor \
524 | --program-transfo | --program-transf \
525 | --program-trans | --program-tran \
526 | --progr-tra | --program-tr | --program-t)
527 ac_prev=program_transform_name ;;
528 -program-transform-name=* | --program-transform-name=* \
529 | --program-transform-nam=* | --program-transform-na=* \
530 | --program-transform-n=* | --program-transform-=* \
531 | --program-transform=* | --program-transfor=* \
532 | --program-transfo=* | --program-transf=* \
533 | --program-trans=* | --program-tran=* \
534 | --progr-tra=* | --program-tr=* | --program-t=*)
535 program_transform_name=$ac_optarg ;;
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
545 sbindir=$ac_optarg ;;
547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549 | --sharedst | --shareds | --shared | --share | --shar \
551 ac_prev=sharedstatedir ;;
552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
556 sharedstatedir=$ac_optarg ;;
558 -site | --site | --sit)
560 -site=* | --site=* | --sit=*)
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569 | --syscon | --sysco | --sysc | --sys | --sy)
570 ac_prev=sysconfdir ;;
571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573 sysconfdir=$ac_optarg ;;
575 -target | --target | --targe | --targ | --tar | --ta | --t)
576 ac_prev=target_alias ;;
577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578 target_alias=$ac_optarg ;;
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
583 -version | --version | --versio | --versi | --vers | -V)
587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package=`echo $ac_package| sed 's/-/_/g'`
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
597 eval "with_$ac_package='$ac_optarg'" ;;
599 -without-* | --without-*)
600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
609 # Obsolete; use --with-x.
612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613 | --x-incl | --x-inc | --x-in | --x-i)
614 ac_prev=x_includes ;;
615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617 x_includes=$ac_optarg ;;
619 -x-libraries | --x-libraries | --x-librarie | --x-librari \
620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621 ac_prev=x_libraries ;;
622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624 x_libraries=$ac_optarg ;;
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
652 if test -n "$ac_prev"; then
653 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
661 eval ac_val=$`echo $ac_var`
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
673 eval ac_val=$`echo $ac_var`
675 [\\/$]* | ?:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690 if test "x$build_alias" = x; then
691 cross_compiling=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
702 test "$silent" = yes && exec 6>/dev/null
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707 ac_srcdir_defaulted=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
722 if test ! -r $srcdir/$ac_unique_file; then
726 ac_srcdir_defaulted=no
728 if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CC_set=${CC+set}
755 ac_cv_env_CC_set=${CC+set}
756 ac_cv_env_CC_value=$CC
757 ac_env_CFLAGS_set=${CFLAGS+set}
758 ac_env_CFLAGS_value=$CFLAGS
759 ac_cv_env_CFLAGS_set=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value=$CFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CPP_set=${CPP+set}
770 ac_env_CPP_value=$CPP
771 ac_cv_env_CPP_set=${CPP+set}
772 ac_cv_env_CPP_value=$CPP
775 # Report the --help message.
777 if test "$ac_init_help" = "long"; then
778 # Omit some internal or obsolete options to make the list less imposing.
779 # This message is too long to be a string in the A/UX 3.1 sh.
781 \`configure' configures this package to adapt to many kinds of systems.
783 Usage: $0 [OPTION]... [VAR=VALUE]...
785 To assign environment variables (e.g., CC, CFLAGS...), specify them as
786 VAR=VALUE. See below for descriptions of some of the useful variables.
788 Defaults for the options are specified in brackets.
791 -h, --help display this help and exit
792 --help=short display options specific to this package
793 --help=recursive display the short help of all the included packages
794 -V, --version display version information and exit
795 -q, --quiet, --silent do not print \`checking...' messages
796 --cache-file=FILE cache test results in FILE [disabled]
797 -C, --config-cache alias for \`--cache-file=config.cache'
798 -n, --no-create do not create output files
799 --srcdir=DIR find the sources in DIR [configure dir or \`..']
804 Installation directories:
805 --prefix=PREFIX install architecture-independent files in PREFIX
807 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
810 By default, \`make install' will install all the files in
811 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
812 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813 for instance \`--prefix=\$HOME'.
815 For better control, use the options below.
817 Fine tuning of the installation directories:
818 --bindir=DIR user executables [EPREFIX/bin]
819 --sbindir=DIR system admin executables [EPREFIX/sbin]
820 --libexecdir=DIR program executables [EPREFIX/libexec]
821 --datadir=DIR read-only architecture-independent data [PREFIX/share]
822 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
823 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
824 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
825 --libdir=DIR object code libraries [EPREFIX/lib]
826 --includedir=DIR C header files [PREFIX/include]
827 --oldincludedir=DIR C header files for non-gcc [/usr/include]
828 --infodir=DIR info documentation [PREFIX/info]
829 --mandir=DIR man documentation [PREFIX/man]
835 --program-prefix=PREFIX prepend PREFIX to installed program names
836 --program-suffix=SUFFIX append SUFFIX to installed program names
837 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
840 --build=BUILD configure for building on BUILD [guessed]
841 --host=HOST cross-compile to build programs to run on HOST [BUILD]
845 if test -n "$ac_init_help"; then
850 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
851 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
852 --enable-threads enable threads support
855 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
856 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
857 --with-gc=ARG use garbage collector gc2,gc1,boehm
859 Some influential environment variables:
860 CC C compiler command
861 CFLAGS C compiler flags
862 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
863 nonstandard directory <lib dir>
864 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
865 headers in a nonstandard directory <include dir>
868 Use these variables to override the choices made by `configure' or to help
869 it to find libraries and programs with nonstandard names/locations.
874 if test "$ac_init_help" = "recursive"; then
875 # If there are subdirs, report their specific --help.
877 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
878 test -d $ac_dir || continue
881 if test "$ac_dir" != .; then
882 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
883 # A "../" for each directory in $ac_dir_suffix.
884 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
886 ac_dir_suffix= ac_top_builddir=
890 .) # No --srcdir option. We are building in place.
892 if test -z "$ac_top_builddir"; then
895 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
897 [\\/]* | ?:[\\/]* ) # Absolute path.
898 ac_srcdir=$srcdir$ac_dir_suffix;
899 ac_top_srcdir=$srcdir ;;
901 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
902 ac_top_srcdir=$ac_top_builddir$srcdir ;;
904 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
906 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
907 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
908 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
909 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
912 # Check for guested configure; otherwise get Cygnus style configure.
913 if test -f $ac_srcdir/configure.gnu; then
915 $SHELL $ac_srcdir/configure.gnu --help=recursive
916 elif test -f $ac_srcdir/configure; then
918 $SHELL $ac_srcdir/configure --help=recursive
919 elif test -f $ac_srcdir/configure.ac ||
920 test -f $ac_srcdir/configure.in; then
924 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
930 test -n "$ac_init_help" && exit 0
931 if $ac_init_version; then
934 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
935 Free Software Foundation, Inc.
936 This configure script is free software; the Free Software Foundation
937 gives unlimited permission to copy, distribute and modify it.
943 This file contains any messages produced by compilers while
944 running configure, to aid debugging if configure makes a mistake.
946 It was created by $as_me, which was
947 generated by GNU Autoconf 2.57. Invocation command line was
958 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
959 uname -m = `(uname -m) 2>/dev/null || echo unknown`
960 uname -r = `(uname -r) 2>/dev/null || echo unknown`
961 uname -s = `(uname -s) 2>/dev/null || echo unknown`
962 uname -v = `(uname -v) 2>/dev/null || echo unknown`
964 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
965 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
967 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
968 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
969 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
970 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
971 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
972 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
973 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
981 test -z "$as_dir" && as_dir=.
997 # Keep a trace of the command line.
998 # Strip out --no-create and --no-recursion so they do not pile up.
999 # Strip out --silent because we don't want to record it for future runs.
1000 # Also quote any args containing shell meta-characters.
1001 # Make two passes to allow for proper duplicate-argument suppression.
1006 ac_must_keep_next=false
1012 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1013 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1014 | -silent | --silent | --silen | --sile | --sil)
1016 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1017 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1020 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1022 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1023 if test $ac_must_keep_next = true; then
1024 ac_must_keep_next=false # Got value, back to normal.
1027 *=* | --config-cache | -C | -disable-* | --disable-* \
1028 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1029 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1030 | -with-* | --with-* | -without-* | --without-* | --x)
1031 case "$ac_configure_args0 " in
1032 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1035 -* ) ac_must_keep_next=true ;;
1038 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1039 # Get rid of the leading space.
1045 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1046 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1048 # When interrupted or exit'd, cleanup temporary files, and complete
1049 # config.log. We remove comments because anyway the quotes in there
1050 # would cause problems or look ugly.
1051 # WARNING: Be sure not to use single quotes in there, as some shells,
1052 # such as our DU 5.0 friend, will then `close' the trap.
1053 trap 'exit_status=$?
1054 # Save into config.log some information that might help in debugging.
1059 ## ---------------- ##
1060 ## Cache variables. ##
1061 ## ---------------- ##
1064 # The following way of writing the cache mishandles newlines in values,
1067 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1070 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1071 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1075 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1082 ## ----------------- ##
1083 ## Output variables. ##
1084 ## ----------------- ##
1087 for ac_var in $ac_subst_vars
1089 eval ac_val=$`echo $ac_var`
1090 echo "$ac_var='"'"'$ac_val'"'"'"
1094 if test -n "$ac_subst_files"; then
1101 for ac_var in $ac_subst_files
1103 eval ac_val=$`echo $ac_var`
1104 echo "$ac_var='"'"'$ac_val'"'"'"
1109 if test -s confdefs.h; then
1116 sed "/^$/d" confdefs.h | sort
1119 test "$ac_signal" != 0 &&
1120 echo "$as_me: caught signal $ac_signal"
1121 echo "$as_me: exit $exit_status"
1123 rm -f core core.* *.core &&
1124 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1127 for ac_signal in 1 2 13 15; do
1128 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1132 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1133 rm -rf conftest* confdefs.h
1134 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1137 # Predefined preprocessor variables.
1139 cat >>confdefs.h <<_ACEOF
1140 #define PACKAGE_NAME "$PACKAGE_NAME"
1144 cat >>confdefs.h <<_ACEOF
1145 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1149 cat >>confdefs.h <<_ACEOF
1150 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1154 cat >>confdefs.h <<_ACEOF
1155 #define PACKAGE_STRING "$PACKAGE_STRING"
1159 cat >>confdefs.h <<_ACEOF
1160 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1164 # Let the site file select an alternate cache file if it wants to.
1165 # Prefer explicitly selected file to automatically selected ones.
1166 if test -z "$CONFIG_SITE"; then
1167 if test "x$prefix" != xNONE; then
1168 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1170 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1173 for ac_site_file in $CONFIG_SITE; do
1174 if test -r "$ac_site_file"; then
1175 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1176 echo "$as_me: loading site script $ac_site_file" >&6;}
1177 sed 's/^/| /' "$ac_site_file" >&5
1182 if test -r "$cache_file"; then
1183 # Some versions of bash will fail to source /dev/null (special
1184 # files actually), so we avoid doing that.
1185 if test -f "$cache_file"; then
1186 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1187 echo "$as_me: loading cache $cache_file" >&6;}
1189 [\\/]* | ?:[\\/]* ) . $cache_file;;
1190 *) . ./$cache_file;;
1194 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1195 echo "$as_me: creating cache $cache_file" >&6;}
1199 # Check that the precious variables saved in the cache have kept the same
1201 ac_cache_corrupted=false
1202 for ac_var in `(set) 2>&1 |
1203 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1204 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1205 eval ac_new_set=\$ac_env_${ac_var}_set
1206 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1207 eval ac_new_val="\$ac_env_${ac_var}_value"
1208 case $ac_old_set,$ac_new_set in
1210 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1211 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1212 ac_cache_corrupted=: ;;
1214 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1215 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1216 ac_cache_corrupted=: ;;
1219 if test "x$ac_old_val" != "x$ac_new_val"; then
1220 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1221 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1222 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1223 echo "$as_me: former value: $ac_old_val" >&2;}
1224 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1225 echo "$as_me: current value: $ac_new_val" >&2;}
1226 ac_cache_corrupted=:
1229 # Pass precious variables to config.status.
1230 if test "$ac_new_set" = set; then
1232 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1233 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1234 *) ac_arg=$ac_var=$ac_new_val ;;
1236 case " $ac_configure_args " in
1237 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1238 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1242 if $ac_cache_corrupted; then
1243 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1244 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1245 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1246 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1247 { (exit 1); exit 1; }; }
1251 ac_cpp='$CPP $CPPFLAGS'
1252 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1253 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1254 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1275 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1276 if test -f $ac_dir/install-sh; then
1278 ac_install_sh="$ac_aux_dir/install-sh -c"
1280 elif test -f $ac_dir/install.sh; then
1282 ac_install_sh="$ac_aux_dir/install.sh -c"
1284 elif test -f $ac_dir/shtool; then
1286 ac_install_sh="$ac_aux_dir/shtool install -c"
1290 if test -z "$ac_aux_dir"; then
1291 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1292 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1293 { (exit 1); exit 1; }; }
1295 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1296 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1297 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1299 # Make sure we can run config.sub.
1300 $ac_config_sub sun4 >/dev/null 2>&1 ||
1301 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1302 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1303 { (exit 1); exit 1; }; }
1305 echo "$as_me:$LINENO: checking build system type" >&5
1306 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1307 if test "${ac_cv_build+set}" = set; then
1308 echo $ECHO_N "(cached) $ECHO_C" >&6
1310 ac_cv_build_alias=$build_alias
1311 test -z "$ac_cv_build_alias" &&
1312 ac_cv_build_alias=`$ac_config_guess`
1313 test -z "$ac_cv_build_alias" &&
1314 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1315 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1316 { (exit 1); exit 1; }; }
1317 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1318 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1319 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1320 { (exit 1); exit 1; }; }
1323 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1324 echo "${ECHO_T}$ac_cv_build" >&6
1326 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1327 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1328 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1331 echo "$as_me:$LINENO: checking host system type" >&5
1332 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1333 if test "${ac_cv_host+set}" = set; then
1334 echo $ECHO_N "(cached) $ECHO_C" >&6
1336 ac_cv_host_alias=$host_alias
1337 test -z "$ac_cv_host_alias" &&
1338 ac_cv_host_alias=$ac_cv_build_alias
1339 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1340 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1341 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1342 { (exit 1); exit 1; }; }
1345 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1346 echo "${ECHO_T}$ac_cv_host" >&6
1348 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1349 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1350 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1354 am__api_version="1.4"
1355 # Find a good install program. We prefer a C program (faster),
1356 # so one script is as good as another. But avoid the broken or
1357 # incompatible versions:
1358 # SysV /etc/install, /usr/sbin/install
1359 # SunOS /usr/etc/install
1360 # IRIX /sbin/install
1362 # AmigaOS /C/install, which installs bootblocks on floppy discs
1363 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1364 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1365 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1366 # ./install, which can be erroneously created by make from ./install.sh.
1367 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1368 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1369 if test -z "$INSTALL"; then
1370 if test "${ac_cv_path_install+set}" = set; then
1371 echo $ECHO_N "(cached) $ECHO_C" >&6
1373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1377 test -z "$as_dir" && as_dir=.
1378 # Account for people who put trailing slashes in PATH elements.
1380 ./ | .// | /cC/* | \
1381 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1384 # OSF1 and SCO ODT 3.0 have their own names for install.
1385 # Don't use installbsd from OSF since it installs stuff as root
1387 for ac_prog in ginstall scoinst install; do
1388 for ac_exec_ext in '' $ac_executable_extensions; do
1389 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1390 if test $ac_prog = install &&
1391 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1392 # AIX install. It has an incompatible calling convention.
1394 elif test $ac_prog = install &&
1395 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1396 # program-specific install script used by HP pwplus--don't use.
1399 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1411 if test "${ac_cv_path_install+set}" = set; then
1412 INSTALL=$ac_cv_path_install
1414 # As a last resort, use the slow shell script. We don't cache a
1415 # path for INSTALL within a source directory, because that will
1416 # break other packages using the cache if that directory is
1417 # removed, or if the path is relative.
1418 INSTALL=$ac_install_sh
1421 echo "$as_me:$LINENO: result: $INSTALL" >&5
1422 echo "${ECHO_T}$INSTALL" >&6
1424 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1425 # It thinks the first close brace ends the variable substitution.
1426 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1428 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1430 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1432 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1433 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1436 echo timestamp > conftestfile
1437 # Do `set' in a subshell so we don't clobber the current shell's
1438 # arguments. Must try -L first in case configure is actually a
1439 # symlink; some systems play weird games with the mod time of symlinks
1440 # (eg FreeBSD returns the mod time of the symlink's containing
1443 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1444 if test "$*" = "X"; then
1446 set X `ls -t $srcdir/configure conftestfile`
1448 if test "$*" != "X $srcdir/configure conftestfile" \
1449 && test "$*" != "X conftestfile $srcdir/configure"; then
1451 # If neither matched, then we have a broken ls. This can happen
1452 # if, for instance, CONFIG_SHELL is bash and it inherits a
1453 # broken ls alias from the environment. This has actually
1454 # happened. Such a system could not be considered "sane".
1455 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1456 alias in your environment" >&5
1457 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1458 alias in your environment" >&2;}
1459 { (exit 1); exit 1; }; }
1462 test "$2" = conftestfile
1468 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1469 Check your system clock" >&5
1470 echo "$as_me: error: newly created file is older than distributed files!
1471 Check your system clock" >&2;}
1472 { (exit 1); exit 1; }; }
1475 echo "$as_me:$LINENO: result: yes" >&5
1476 echo "${ECHO_T}yes" >&6
1477 test "$program_prefix" != NONE &&
1478 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1479 # Use a double $ so make ignores it.
1480 test "$program_suffix" != NONE &&
1481 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1482 # Double any \ or $. echo might interpret backslashes.
1483 # By default was `s,x,x', remove it if useless.
1484 cat <<\_ACEOF >conftest.sed
1485 s/[\\$]/&&/g;s/;s,x,x,$//
1487 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1490 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1491 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1492 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1493 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1494 echo $ECHO_N "(cached) $ECHO_C" >&6
1496 cat >conftest.make <<\_ACEOF
1498 @echo 'ac_maketemp="$(MAKE)"'
1500 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1501 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1502 if test -n "$ac_maketemp"; then
1503 eval ac_cv_prog_make_${ac_make}_set=yes
1505 eval ac_cv_prog_make_${ac_make}_set=no
1509 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1510 echo "$as_me:$LINENO: result: yes" >&5
1511 echo "${ECHO_T}yes" >&6
1514 echo "$as_me:$LINENO: result: no" >&5
1515 echo "${ECHO_T}no" >&6
1516 SET_MAKE="MAKE=${MAKE-make}"
1524 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1525 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1526 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1527 { (exit 1); exit 1; }; }
1530 cat >>confdefs.h <<_ACEOF
1531 #define PACKAGE "$PACKAGE"
1535 cat >>confdefs.h <<_ACEOF
1536 #define VERSION "$VERSION"
1541 missing_dir=`cd $ac_aux_dir && pwd`
1542 echo "$as_me:$LINENO: checking for working aclocal-${am__api_version}" >&5
1543 echo $ECHO_N "checking for working aclocal-${am__api_version}... $ECHO_C" >&6
1544 # Run test in a subshell; some versions of sh will print an error if
1545 # an executable is not found, even if stderr is redirected.
1546 # Redirect stdin to placate older versions of autoconf. Sigh.
1547 if (aclocal-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
1548 ACLOCAL=aclocal-${am__api_version}
1549 echo "$as_me:$LINENO: result: found" >&5
1550 echo "${ECHO_T}found" >&6
1552 ACLOCAL="$missing_dir/missing aclocal-${am__api_version}"
1553 echo "$as_me:$LINENO: result: missing" >&5
1554 echo "${ECHO_T}missing" >&6
1557 echo "$as_me:$LINENO: checking for working autoconf" >&5
1558 echo $ECHO_N "checking for working autoconf... $ECHO_C" >&6
1559 # Run test in a subshell; some versions of sh will print an error if
1560 # an executable is not found, even if stderr is redirected.
1561 # Redirect stdin to placate older versions of autoconf. Sigh.
1562 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1564 echo "$as_me:$LINENO: result: found" >&5
1565 echo "${ECHO_T}found" >&6
1567 AUTOCONF="$missing_dir/missing autoconf"
1568 echo "$as_me:$LINENO: result: missing" >&5
1569 echo "${ECHO_T}missing" >&6
1572 echo "$as_me:$LINENO: checking for working automake-${am__api_version}" >&5
1573 echo $ECHO_N "checking for working automake-${am__api_version}... $ECHO_C" >&6
1574 # Run test in a subshell; some versions of sh will print an error if
1575 # an executable is not found, even if stderr is redirected.
1576 # Redirect stdin to placate older versions of autoconf. Sigh.
1577 if (automake-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
1578 AUTOMAKE=automake-${am__api_version}
1579 echo "$as_me:$LINENO: result: found" >&5
1580 echo "${ECHO_T}found" >&6
1582 AUTOMAKE="$missing_dir/missing automake-${am__api_version}"
1583 echo "$as_me:$LINENO: result: missing" >&5
1584 echo "${ECHO_T}missing" >&6
1587 echo "$as_me:$LINENO: checking for working autoheader" >&5
1588 echo $ECHO_N "checking for working autoheader... $ECHO_C" >&6
1589 # Run test in a subshell; some versions of sh will print an error if
1590 # an executable is not found, even if stderr is redirected.
1591 # Redirect stdin to placate older versions of autoconf. Sigh.
1592 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1593 AUTOHEADER=autoheader
1594 echo "$as_me:$LINENO: result: found" >&5
1595 echo "${ECHO_T}found" >&6
1597 AUTOHEADER="$missing_dir/missing autoheader"
1598 echo "$as_me:$LINENO: result: missing" >&5
1599 echo "${ECHO_T}missing" >&6
1602 echo "$as_me:$LINENO: checking for working makeinfo" >&5
1603 echo $ECHO_N "checking for working makeinfo... $ECHO_C" >&6
1604 # Run test in a subshell; some versions of sh will print an error if
1605 # an executable is not found, even if stderr is redirected.
1606 # Redirect stdin to placate older versions of autoconf. Sigh.
1607 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1609 echo "$as_me:$LINENO: result: found" >&5
1610 echo "${ECHO_T}found" >&6
1612 MAKEINFO="$missing_dir/missing makeinfo"
1613 echo "$as_me:$LINENO: result: missing" >&5
1614 echo "${ECHO_T}missing" >&6
1619 ac_config_headers="$ac_config_headers config.h"
1621 ac_config_commands="$ac_config_commands default-1"
1631 CFLAGS="-mieee -O0 -g3 -D__ALPHA__"
1633 cat >>confdefs.h <<\_ACEOF
1634 #define TRACE_ARGS_NUM 6
1637 cat >>confdefs.h <<\_ACEOF
1638 #define USE_CODEMMAP 1
1646 CFLAGS="-64 -O2 -OPT:Olimit=0 -g -DMAP_ANONYMOUS=0 -woff 1110,1164,1515 -D__MIPS__"
1649 cat >>confdefs.h <<\_ACEOF
1650 #define TRACE_ARGS_NUM 8
1655 i386* | i486* | i586* | i686* )
1657 CFLAGS="-Wall -O0 -g3 -D__I386__"
1658 COMPILER_OBJECTS="i386/libdisass.a"
1659 cat >>confdefs.h <<\_ACEOF
1660 #define TRACE_ARGS_NUM 8
1663 cat >>confdefs.h <<\_ACEOF
1664 #define USE_CODEMMAP 1
1671 CFLAGS="-O0 -g3 -D__X86_64__"
1672 COMPILER_OBJECTS="x86_64/libdisass.a"
1673 cat >>confdefs.h <<\_ACEOF
1674 #define TRACE_ARGS_NUM 6
1677 cat >>confdefs.h <<\_ACEOF
1678 #define USE_CODEMMAP 1
1684 SYSDEP_DIR="powerpc"
1685 CFLAGS="-O2 -g -DMAP_ANONYMOUS=0 -no-cpp-precomp"
1686 COMPILER_OBJECTS="powerpc/libdisass.a"
1687 cat >>confdefs.h <<\_ACEOF
1688 #define TRACE_ARGS_NUM 8
1694 { { echo "$as_me:$LINENO: error: $target systems are not supported at this time" >&5
1695 echo "$as_me: error: $target systems are not supported at this time" >&2;}
1696 { (exit 1); exit 1; }; }
1703 cat >>confdefs.h <<_ACEOF
1704 #define SYSDEP_DIR "$SYSDEP_DIR"
1710 ac_cpp='$CPP $CPPFLAGS'
1711 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1712 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1713 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1714 if test -n "$ac_tool_prefix"; then
1715 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1716 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1717 echo "$as_me:$LINENO: checking for $ac_word" >&5
1718 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1719 if test "${ac_cv_prog_CC+set}" = set; then
1720 echo $ECHO_N "(cached) $ECHO_C" >&6
1722 if test -n "$CC"; then
1723 ac_cv_prog_CC="$CC" # Let the user override the test.
1725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1729 test -z "$as_dir" && as_dir=.
1730 for ac_exec_ext in '' $ac_executable_extensions; do
1731 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1732 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1733 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1742 if test -n "$CC"; then
1743 echo "$as_me:$LINENO: result: $CC" >&5
1744 echo "${ECHO_T}$CC" >&6
1746 echo "$as_me:$LINENO: result: no" >&5
1747 echo "${ECHO_T}no" >&6
1751 if test -z "$ac_cv_prog_CC"; then
1753 # Extract the first word of "gcc", so it can be a program name with args.
1754 set dummy gcc; ac_word=$2
1755 echo "$as_me:$LINENO: checking for $ac_word" >&5
1756 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1757 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1758 echo $ECHO_N "(cached) $ECHO_C" >&6
1760 if test -n "$ac_ct_CC"; then
1761 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1767 test -z "$as_dir" && as_dir=.
1768 for ac_exec_ext in '' $ac_executable_extensions; do
1769 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1770 ac_cv_prog_ac_ct_CC="gcc"
1771 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1779 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1780 if test -n "$ac_ct_CC"; then
1781 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1782 echo "${ECHO_T}$ac_ct_CC" >&6
1784 echo "$as_me:$LINENO: result: no" >&5
1785 echo "${ECHO_T}no" >&6
1793 if test -z "$CC"; then
1794 if test -n "$ac_tool_prefix"; then
1795 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1796 set dummy ${ac_tool_prefix}cc; ac_word=$2
1797 echo "$as_me:$LINENO: checking for $ac_word" >&5
1798 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1799 if test "${ac_cv_prog_CC+set}" = set; then
1800 echo $ECHO_N "(cached) $ECHO_C" >&6
1802 if test -n "$CC"; then
1803 ac_cv_prog_CC="$CC" # Let the user override the test.
1805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1809 test -z "$as_dir" && as_dir=.
1810 for ac_exec_ext in '' $ac_executable_extensions; do
1811 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1812 ac_cv_prog_CC="${ac_tool_prefix}cc"
1813 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1822 if test -n "$CC"; then
1823 echo "$as_me:$LINENO: result: $CC" >&5
1824 echo "${ECHO_T}$CC" >&6
1826 echo "$as_me:$LINENO: result: no" >&5
1827 echo "${ECHO_T}no" >&6
1831 if test -z "$ac_cv_prog_CC"; then
1833 # Extract the first word of "cc", so it can be a program name with args.
1834 set dummy cc; ac_word=$2
1835 echo "$as_me:$LINENO: checking for $ac_word" >&5
1836 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1837 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1838 echo $ECHO_N "(cached) $ECHO_C" >&6
1840 if test -n "$ac_ct_CC"; then
1841 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1847 test -z "$as_dir" && as_dir=.
1848 for ac_exec_ext in '' $ac_executable_extensions; do
1849 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1850 ac_cv_prog_ac_ct_CC="cc"
1851 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1859 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1860 if test -n "$ac_ct_CC"; then
1861 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1862 echo "${ECHO_T}$ac_ct_CC" >&6
1864 echo "$as_me:$LINENO: result: no" >&5
1865 echo "${ECHO_T}no" >&6
1874 if test -z "$CC"; then
1875 # Extract the first word of "cc", so it can be a program name with args.
1876 set dummy cc; ac_word=$2
1877 echo "$as_me:$LINENO: checking for $ac_word" >&5
1878 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1879 if test "${ac_cv_prog_CC+set}" = set; then
1880 echo $ECHO_N "(cached) $ECHO_C" >&6
1882 if test -n "$CC"; then
1883 ac_cv_prog_CC="$CC" # Let the user override the test.
1886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1890 test -z "$as_dir" && as_dir=.
1891 for ac_exec_ext in '' $ac_executable_extensions; do
1892 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1893 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1894 ac_prog_rejected=yes
1898 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1904 if test $ac_prog_rejected = yes; then
1905 # We found a bogon in the path, so make sure we never use it.
1906 set dummy $ac_cv_prog_CC
1908 if test $# != 0; then
1909 # We chose a different compiler from the bogus one.
1910 # However, it has the same basename, so the bogon will be chosen
1911 # first if we set CC to just the basename; use the full file name.
1913 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1919 if test -n "$CC"; then
1920 echo "$as_me:$LINENO: result: $CC" >&5
1921 echo "${ECHO_T}$CC" >&6
1923 echo "$as_me:$LINENO: result: no" >&5
1924 echo "${ECHO_T}no" >&6
1928 if test -z "$CC"; then
1929 if test -n "$ac_tool_prefix"; then
1932 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1933 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1934 echo "$as_me:$LINENO: checking for $ac_word" >&5
1935 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1936 if test "${ac_cv_prog_CC+set}" = set; then
1937 echo $ECHO_N "(cached) $ECHO_C" >&6
1939 if test -n "$CC"; then
1940 ac_cv_prog_CC="$CC" # Let the user override the test.
1942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1946 test -z "$as_dir" && as_dir=.
1947 for ac_exec_ext in '' $ac_executable_extensions; do
1948 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1949 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1950 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1959 if test -n "$CC"; then
1960 echo "$as_me:$LINENO: result: $CC" >&5
1961 echo "${ECHO_T}$CC" >&6
1963 echo "$as_me:$LINENO: result: no" >&5
1964 echo "${ECHO_T}no" >&6
1967 test -n "$CC" && break
1970 if test -z "$CC"; then
1974 # Extract the first word of "$ac_prog", so it can be a program name with args.
1975 set dummy $ac_prog; ac_word=$2
1976 echo "$as_me:$LINENO: checking for $ac_word" >&5
1977 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1978 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1979 echo $ECHO_N "(cached) $ECHO_C" >&6
1981 if test -n "$ac_ct_CC"; then
1982 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1988 test -z "$as_dir" && as_dir=.
1989 for ac_exec_ext in '' $ac_executable_extensions; do
1990 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1991 ac_cv_prog_ac_ct_CC="$ac_prog"
1992 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2000 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2001 if test -n "$ac_ct_CC"; then
2002 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2003 echo "${ECHO_T}$ac_ct_CC" >&6
2005 echo "$as_me:$LINENO: result: no" >&5
2006 echo "${ECHO_T}no" >&6
2009 test -n "$ac_ct_CC" && break
2018 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2019 See \`config.log' for more details." >&5
2020 echo "$as_me: error: no acceptable C compiler found in \$PATH
2021 See \`config.log' for more details." >&2;}
2022 { (exit 1); exit 1; }; }
2024 # Provide some information about the compiler.
2025 echo "$as_me:$LINENO:" \
2026 "checking for C compiler version" >&5
2027 ac_compiler=`set X $ac_compile; echo $2`
2028 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2029 (eval $ac_compiler --version </dev/null >&5) 2>&5
2031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2032 (exit $ac_status); }
2033 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2034 (eval $ac_compiler -v </dev/null >&5) 2>&5
2036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2037 (exit $ac_status); }
2038 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2039 (eval $ac_compiler -V </dev/null >&5) 2>&5
2041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2042 (exit $ac_status); }
2044 cat >conftest.$ac_ext <<_ACEOF
2045 #line $LINENO "configure"
2048 cat confdefs.h >>conftest.$ac_ext
2049 cat >>conftest.$ac_ext <<_ACEOF
2050 /* end confdefs.h. */
2060 ac_clean_files_save=$ac_clean_files
2061 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2062 # Try to create an executable without -o first, disregard a.out.
2063 # It will help us diagnose broken compilers, and finding out an intuition
2065 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2066 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2067 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2068 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2069 (eval $ac_link_default) 2>&5
2071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2072 (exit $ac_status); }; then
2073 # Find the output, starting from the most likely. This scheme is
2074 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2077 # Be careful to initialize this variable, since it used to be cached.
2078 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2080 # b.out is created by i960 compilers.
2081 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2083 test -f "$ac_file" || continue
2085 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2088 # This is the source file.
2091 # We found the default executable, but exeext='' is most
2095 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2096 # FIXME: I believe we export ac_cv_exeext for Libtool,
2097 # but it would be cool to find out if it's true. Does anybody
2098 # maintain Libtool? --akim.
2106 echo "$as_me: failed program was:" >&5
2107 sed 's/^/| /' conftest.$ac_ext >&5
2109 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2110 See \`config.log' for more details." >&5
2111 echo "$as_me: error: C compiler cannot create executables
2112 See \`config.log' for more details." >&2;}
2113 { (exit 77); exit 77; }; }
2116 ac_exeext=$ac_cv_exeext
2117 echo "$as_me:$LINENO: result: $ac_file" >&5
2118 echo "${ECHO_T}$ac_file" >&6
2120 # Check the compiler produces executables we can run. If not, either
2121 # the compiler is broken, or we cross compile.
2122 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2123 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2124 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2125 # If not cross compiling, check that we can run a simple program.
2126 if test "$cross_compiling" != yes; then
2127 if { ac_try='./$ac_file'
2128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2132 (exit $ac_status); }; }; then
2135 if test "$cross_compiling" = maybe; then
2138 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2139 If you meant to cross compile, use \`--host'.
2140 See \`config.log' for more details." >&5
2141 echo "$as_me: error: cannot run C compiled programs.
2142 If you meant to cross compile, use \`--host'.
2143 See \`config.log' for more details." >&2;}
2144 { (exit 1); exit 1; }; }
2148 echo "$as_me:$LINENO: result: yes" >&5
2149 echo "${ECHO_T}yes" >&6
2151 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2152 ac_clean_files=$ac_clean_files_save
2153 # Check the compiler produces executables we can run. If not, either
2154 # the compiler is broken, or we cross compile.
2155 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2156 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2157 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2158 echo "${ECHO_T}$cross_compiling" >&6
2160 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2161 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2162 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2163 (eval $ac_link) 2>&5
2165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2166 (exit $ac_status); }; then
2167 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2168 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2169 # work properly (i.e., refer to `conftest.exe'), while it won't with
2171 for ac_file in conftest.exe conftest conftest.*; do
2172 test -f "$ac_file" || continue
2174 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2175 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2182 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2183 See \`config.log' for more details." >&5
2184 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2185 See \`config.log' for more details." >&2;}
2186 { (exit 1); exit 1; }; }
2189 rm -f conftest$ac_cv_exeext
2190 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2191 echo "${ECHO_T}$ac_cv_exeext" >&6
2193 rm -f conftest.$ac_ext
2194 EXEEXT=$ac_cv_exeext
2196 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2197 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2198 if test "${ac_cv_objext+set}" = set; then
2199 echo $ECHO_N "(cached) $ECHO_C" >&6
2201 cat >conftest.$ac_ext <<_ACEOF
2202 #line $LINENO "configure"
2205 cat confdefs.h >>conftest.$ac_ext
2206 cat >>conftest.$ac_ext <<_ACEOF
2207 /* end confdefs.h. */
2217 rm -f conftest.o conftest.obj
2218 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2219 (eval $ac_compile) 2>&5
2221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2222 (exit $ac_status); }; then
2223 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2225 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2226 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2231 echo "$as_me: failed program was:" >&5
2232 sed 's/^/| /' conftest.$ac_ext >&5
2234 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2235 See \`config.log' for more details." >&5
2236 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2237 See \`config.log' for more details." >&2;}
2238 { (exit 1); exit 1; }; }
2241 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2243 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2244 echo "${ECHO_T}$ac_cv_objext" >&6
2245 OBJEXT=$ac_cv_objext
2247 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2248 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2249 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2250 echo $ECHO_N "(cached) $ECHO_C" >&6
2252 cat >conftest.$ac_ext <<_ACEOF
2253 #line $LINENO "configure"
2256 cat confdefs.h >>conftest.$ac_ext
2257 cat >>conftest.$ac_ext <<_ACEOF
2258 /* end confdefs.h. */
2271 rm -f conftest.$ac_objext
2272 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2273 (eval $ac_compile) 2>&5
2275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2276 (exit $ac_status); } &&
2277 { ac_try='test -s conftest.$ac_objext'
2278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2282 (exit $ac_status); }; }; then
2285 echo "$as_me: failed program was:" >&5
2286 sed 's/^/| /' conftest.$ac_ext >&5
2290 rm -f conftest.$ac_objext conftest.$ac_ext
2291 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2294 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2295 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2296 GCC=`test $ac_compiler_gnu = yes && echo yes`
2297 ac_test_CFLAGS=${CFLAGS+set}
2298 ac_save_CFLAGS=$CFLAGS
2300 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2301 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2302 if test "${ac_cv_prog_cc_g+set}" = set; then
2303 echo $ECHO_N "(cached) $ECHO_C" >&6
2305 cat >conftest.$ac_ext <<_ACEOF
2306 #line $LINENO "configure"
2309 cat confdefs.h >>conftest.$ac_ext
2310 cat >>conftest.$ac_ext <<_ACEOF
2311 /* end confdefs.h. */
2321 rm -f conftest.$ac_objext
2322 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2323 (eval $ac_compile) 2>&5
2325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2326 (exit $ac_status); } &&
2327 { ac_try='test -s conftest.$ac_objext'
2328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2332 (exit $ac_status); }; }; then
2335 echo "$as_me: failed program was:" >&5
2336 sed 's/^/| /' conftest.$ac_ext >&5
2340 rm -f conftest.$ac_objext conftest.$ac_ext
2342 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2343 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2344 if test "$ac_test_CFLAGS" = set; then
2345 CFLAGS=$ac_save_CFLAGS
2346 elif test $ac_cv_prog_cc_g = yes; then
2347 if test "$GCC" = yes; then
2353 if test "$GCC" = yes; then
2359 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2360 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2361 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2362 echo $ECHO_N "(cached) $ECHO_C" >&6
2364 ac_cv_prog_cc_stdc=no
2366 cat >conftest.$ac_ext <<_ACEOF
2367 #line $LINENO "configure"
2370 cat confdefs.h >>conftest.$ac_ext
2371 cat >>conftest.$ac_ext <<_ACEOF
2372 /* end confdefs.h. */
2375 #include <sys/types.h>
2376 #include <sys/stat.h>
2377 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2378 struct buf { int x; };
2379 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2380 static char *e (p, i)
2386 static char *f (char * (*g) (char **, int), char **p, ...)
2391 s = g (p, va_arg (v,int));
2395 int test (int i, double x);
2396 struct s1 {int (*f) (int a);};
2397 struct s2 {int (*f) (double a);};
2398 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2404 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2409 # Don't try gcc -ansi; that turns off useful extensions and
2410 # breaks some systems' header files.
2411 # AIX -qlanglvl=ansi
2412 # Ultrix and OSF/1 -std1
2413 # HP-UX 10.20 and later -Ae
2414 # HP-UX older versions -Aa -D_HPUX_SOURCE
2415 # SVR4 -Xc -D__EXTENSIONS__
2416 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2418 CC="$ac_save_CC $ac_arg"
2419 rm -f conftest.$ac_objext
2420 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2421 (eval $ac_compile) 2>&5
2423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2424 (exit $ac_status); } &&
2425 { ac_try='test -s conftest.$ac_objext'
2426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2430 (exit $ac_status); }; }; then
2431 ac_cv_prog_cc_stdc=$ac_arg
2434 echo "$as_me: failed program was:" >&5
2435 sed 's/^/| /' conftest.$ac_ext >&5
2438 rm -f conftest.$ac_objext
2440 rm -f conftest.$ac_ext conftest.$ac_objext
2445 case "x$ac_cv_prog_cc_stdc" in
2447 echo "$as_me:$LINENO: result: none needed" >&5
2448 echo "${ECHO_T}none needed" >&6 ;;
2450 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2451 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2452 CC="$CC $ac_cv_prog_cc_stdc" ;;
2455 # Some people use a C++ compiler to compile C. Since we use `exit',
2456 # in C++ we need to declare it. In case someone uses the same compiler
2457 # for both compiling C and C++ we need to have the C++ compiler decide
2458 # the declaration of exit, since it's the most demanding environment.
2459 cat >conftest.$ac_ext <<_ACEOF
2464 rm -f conftest.$ac_objext
2465 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2466 (eval $ac_compile) 2>&5
2468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2469 (exit $ac_status); } &&
2470 { ac_try='test -s conftest.$ac_objext'
2471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2475 (exit $ac_status); }; }; then
2476 for ac_declaration in \
2478 'extern "C" void std::exit (int) throw (); using std::exit;' \
2479 'extern "C" void std::exit (int); using std::exit;' \
2480 'extern "C" void exit (int) throw ();' \
2481 'extern "C" void exit (int);' \
2484 cat >conftest.$ac_ext <<_ACEOF
2485 #line $LINENO "configure"
2488 cat confdefs.h >>conftest.$ac_ext
2489 cat >>conftest.$ac_ext <<_ACEOF
2490 /* end confdefs.h. */
2501 rm -f conftest.$ac_objext
2502 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2503 (eval $ac_compile) 2>&5
2505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2506 (exit $ac_status); } &&
2507 { ac_try='test -s conftest.$ac_objext'
2508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2512 (exit $ac_status); }; }; then
2515 echo "$as_me: failed program was:" >&5
2516 sed 's/^/| /' conftest.$ac_ext >&5
2520 rm -f conftest.$ac_objext conftest.$ac_ext
2521 cat >conftest.$ac_ext <<_ACEOF
2522 #line $LINENO "configure"
2525 cat confdefs.h >>conftest.$ac_ext
2526 cat >>conftest.$ac_ext <<_ACEOF
2527 /* end confdefs.h. */
2537 rm -f conftest.$ac_objext
2538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2539 (eval $ac_compile) 2>&5
2541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2542 (exit $ac_status); } &&
2543 { ac_try='test -s conftest.$ac_objext'
2544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2548 (exit $ac_status); }; }; then
2551 echo "$as_me: failed program was:" >&5
2552 sed 's/^/| /' conftest.$ac_ext >&5
2555 rm -f conftest.$ac_objext conftest.$ac_ext
2558 if test -n "$ac_declaration"; then
2559 echo '#ifdef __cplusplus' >>confdefs.h
2560 echo $ac_declaration >>confdefs.h
2561 echo '#endif' >>confdefs.h
2565 echo "$as_me: failed program was:" >&5
2566 sed 's/^/| /' conftest.$ac_ext >&5
2569 rm -f conftest.$ac_objext conftest.$ac_ext
2571 ac_cpp='$CPP $CPPFLAGS'
2572 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2573 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2574 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2576 if test -n "$ac_tool_prefix"; then
2577 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2578 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2579 echo "$as_me:$LINENO: checking for $ac_word" >&5
2580 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2581 if test "${ac_cv_prog_RANLIB+set}" = set; then
2582 echo $ECHO_N "(cached) $ECHO_C" >&6
2584 if test -n "$RANLIB"; then
2585 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2591 test -z "$as_dir" && as_dir=.
2592 for ac_exec_ext in '' $ac_executable_extensions; do
2593 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2594 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2595 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2603 RANLIB=$ac_cv_prog_RANLIB
2604 if test -n "$RANLIB"; then
2605 echo "$as_me:$LINENO: result: $RANLIB" >&5
2606 echo "${ECHO_T}$RANLIB" >&6
2608 echo "$as_me:$LINENO: result: no" >&5
2609 echo "${ECHO_T}no" >&6
2613 if test -z "$ac_cv_prog_RANLIB"; then
2614 ac_ct_RANLIB=$RANLIB
2615 # Extract the first word of "ranlib", so it can be a program name with args.
2616 set dummy ranlib; ac_word=$2
2617 echo "$as_me:$LINENO: checking for $ac_word" >&5
2618 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2619 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2620 echo $ECHO_N "(cached) $ECHO_C" >&6
2622 if test -n "$ac_ct_RANLIB"; then
2623 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2629 test -z "$as_dir" && as_dir=.
2630 for ac_exec_ext in '' $ac_executable_extensions; do
2631 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2632 ac_cv_prog_ac_ct_RANLIB="ranlib"
2633 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2639 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2642 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2643 if test -n "$ac_ct_RANLIB"; then
2644 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2645 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2647 echo "$as_me:$LINENO: result: no" >&5
2648 echo "${ECHO_T}no" >&6
2651 RANLIB=$ac_ct_RANLIB
2653 RANLIB="$ac_cv_prog_RANLIB"
2656 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2657 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2658 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
2659 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2660 echo $ECHO_N "(cached) $ECHO_C" >&6
2662 cat >conftest.make <<\_ACEOF
2664 @echo 'ac_maketemp="$(MAKE)"'
2666 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2667 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2668 if test -n "$ac_maketemp"; then
2669 eval ac_cv_prog_make_${ac_make}_set=yes
2671 eval ac_cv_prog_make_${ac_make}_set=no
2675 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2676 echo "$as_me:$LINENO: result: yes" >&5
2677 echo "${ECHO_T}yes" >&6
2680 echo "$as_me:$LINENO: result: no" >&5
2681 echo "${ECHO_T}no" >&6
2682 SET_MAKE="MAKE=${MAKE-make}"
2688 echo "$as_me:$LINENO: checking for sin in -lm" >&5
2689 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6
2690 if test "${ac_cv_lib_m_sin+set}" = set; then
2691 echo $ECHO_N "(cached) $ECHO_C" >&6
2693 ac_check_lib_save_LIBS=$LIBS
2695 cat >conftest.$ac_ext <<_ACEOF
2696 #line $LINENO "configure"
2699 cat confdefs.h >>conftest.$ac_ext
2700 cat >>conftest.$ac_ext <<_ACEOF
2701 /* end confdefs.h. */
2703 /* Override any gcc2 internal prototype to avoid an error. */
2707 /* We use char because int might match the return type of a gcc2
2708 builtin and then its argument prototype would still apply. */
2718 rm -f conftest.$ac_objext conftest$ac_exeext
2719 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2720 (eval $ac_link) 2>&5
2722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2723 (exit $ac_status); } &&
2724 { ac_try='test -s conftest$ac_exeext'
2725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2729 (exit $ac_status); }; }; then
2732 echo "$as_me: failed program was:" >&5
2733 sed 's/^/| /' conftest.$ac_ext >&5
2737 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2738 LIBS=$ac_check_lib_save_LIBS
2740 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
2741 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6
2742 if test $ac_cv_lib_m_sin = yes; then
2743 cat >>confdefs.h <<_ACEOF
2758 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
2759 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
2760 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
2761 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
2762 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2763 echo $ECHO_N "(cached) $ECHO_C" >&6
2765 cat >conftest.$ac_ext <<_ACEOF
2766 #line $LINENO "configure"
2769 cat confdefs.h >>conftest.$ac_ext
2770 cat >>conftest.$ac_ext <<_ACEOF
2771 /* end confdefs.h. */
2772 #include <sys/types.h>
2784 rm -f conftest.$ac_objext
2785 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2786 (eval $ac_compile) 2>&5
2788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2789 (exit $ac_status); } &&
2790 { ac_try='test -s conftest.$ac_objext'
2791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2795 (exit $ac_status); }; }; then
2796 eval "$as_ac_Header=yes"
2798 echo "$as_me: failed program was:" >&5
2799 sed 's/^/| /' conftest.$ac_ext >&5
2801 eval "$as_ac_Header=no"
2803 rm -f conftest.$ac_objext conftest.$ac_ext
2805 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2806 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2807 if test `eval echo '${'$as_ac_Header'}'` = yes; then
2808 cat >>confdefs.h <<_ACEOF
2809 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
2812 ac_header_dirent=$ac_hdr; break
2816 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
2817 if test $ac_header_dirent = dirent.h; then
2818 echo "$as_me:$LINENO: checking for library containing opendir" >&5
2819 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
2820 if test "${ac_cv_search_opendir+set}" = set; then
2821 echo $ECHO_N "(cached) $ECHO_C" >&6
2823 ac_func_search_save_LIBS=$LIBS
2824 ac_cv_search_opendir=no
2825 cat >conftest.$ac_ext <<_ACEOF
2826 #line $LINENO "configure"
2829 cat confdefs.h >>conftest.$ac_ext
2830 cat >>conftest.$ac_ext <<_ACEOF
2831 /* end confdefs.h. */
2833 /* Override any gcc2 internal prototype to avoid an error. */
2837 /* We use char because int might match the return type of a gcc2
2838 builtin and then its argument prototype would still apply. */
2848 rm -f conftest.$ac_objext conftest$ac_exeext
2849 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2850 (eval $ac_link) 2>&5
2852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2853 (exit $ac_status); } &&
2854 { ac_try='test -s conftest$ac_exeext'
2855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2859 (exit $ac_status); }; }; then
2860 ac_cv_search_opendir="none required"
2862 echo "$as_me: failed program was:" >&5
2863 sed 's/^/| /' conftest.$ac_ext >&5
2866 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2867 if test "$ac_cv_search_opendir" = no; then
2868 for ac_lib in dir; do
2869 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2870 cat >conftest.$ac_ext <<_ACEOF
2871 #line $LINENO "configure"
2874 cat confdefs.h >>conftest.$ac_ext
2875 cat >>conftest.$ac_ext <<_ACEOF
2876 /* end confdefs.h. */
2878 /* Override any gcc2 internal prototype to avoid an error. */
2882 /* We use char because int might match the return type of a gcc2
2883 builtin and then its argument prototype would still apply. */
2893 rm -f conftest.$ac_objext conftest$ac_exeext
2894 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2895 (eval $ac_link) 2>&5
2897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2898 (exit $ac_status); } &&
2899 { ac_try='test -s conftest$ac_exeext'
2900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2904 (exit $ac_status); }; }; then
2905 ac_cv_search_opendir="-l$ac_lib"
2908 echo "$as_me: failed program was:" >&5
2909 sed 's/^/| /' conftest.$ac_ext >&5
2912 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2915 LIBS=$ac_func_search_save_LIBS
2917 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
2918 echo "${ECHO_T}$ac_cv_search_opendir" >&6
2919 if test "$ac_cv_search_opendir" != no; then
2920 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
2925 echo "$as_me:$LINENO: checking for library containing opendir" >&5
2926 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
2927 if test "${ac_cv_search_opendir+set}" = set; then
2928 echo $ECHO_N "(cached) $ECHO_C" >&6
2930 ac_func_search_save_LIBS=$LIBS
2931 ac_cv_search_opendir=no
2932 cat >conftest.$ac_ext <<_ACEOF
2933 #line $LINENO "configure"
2936 cat confdefs.h >>conftest.$ac_ext
2937 cat >>conftest.$ac_ext <<_ACEOF
2938 /* end confdefs.h. */
2940 /* Override any gcc2 internal prototype to avoid an error. */
2944 /* We use char because int might match the return type of a gcc2
2945 builtin and then its argument prototype would still apply. */
2955 rm -f conftest.$ac_objext conftest$ac_exeext
2956 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2957 (eval $ac_link) 2>&5
2959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2960 (exit $ac_status); } &&
2961 { ac_try='test -s conftest$ac_exeext'
2962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2966 (exit $ac_status); }; }; then
2967 ac_cv_search_opendir="none required"
2969 echo "$as_me: failed program was:" >&5
2970 sed 's/^/| /' conftest.$ac_ext >&5
2973 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2974 if test "$ac_cv_search_opendir" = no; then
2976 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2977 cat >conftest.$ac_ext <<_ACEOF
2978 #line $LINENO "configure"
2981 cat confdefs.h >>conftest.$ac_ext
2982 cat >>conftest.$ac_ext <<_ACEOF
2983 /* end confdefs.h. */
2985 /* Override any gcc2 internal prototype to avoid an error. */
2989 /* We use char because int might match the return type of a gcc2
2990 builtin and then its argument prototype would still apply. */
3000 rm -f conftest.$ac_objext conftest$ac_exeext
3001 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3002 (eval $ac_link) 2>&5
3004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3005 (exit $ac_status); } &&
3006 { ac_try='test -s conftest$ac_exeext'
3007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3011 (exit $ac_status); }; }; then
3012 ac_cv_search_opendir="-l$ac_lib"
3015 echo "$as_me: failed program was:" >&5
3016 sed 's/^/| /' conftest.$ac_ext >&5
3019 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3022 LIBS=$ac_func_search_save_LIBS
3024 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
3025 echo "${ECHO_T}$ac_cv_search_opendir" >&6
3026 if test "$ac_cv_search_opendir" != no; then
3027 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
3034 ac_cpp='$CPP $CPPFLAGS'
3035 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3036 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3037 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3038 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3039 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3040 # On Suns, sometimes $CPP names a directory.
3041 if test -n "$CPP" && test -d "$CPP"; then
3044 if test -z "$CPP"; then
3045 if test "${ac_cv_prog_CPP+set}" = set; then
3046 echo $ECHO_N "(cached) $ECHO_C" >&6
3048 # Double quotes because CPP needs to be expanded
3049 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3052 for ac_c_preproc_warn_flag in '' yes
3054 # Use a header file that comes with gcc, so configuring glibc
3055 # with a fresh cross-compiler works.
3056 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3057 # <limits.h> exists even on freestanding compilers.
3058 # On the NeXT, cc -E runs the code through the compiler's parser,
3059 # not just through cpp. "Syntax error" is here to catch this case.
3060 cat >conftest.$ac_ext <<_ACEOF
3061 #line $LINENO "configure"
3064 cat confdefs.h >>conftest.$ac_ext
3065 cat >>conftest.$ac_ext <<_ACEOF
3066 /* end confdefs.h. */
3068 # include <limits.h>
3070 # include <assert.h>
3074 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3075 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3077 grep -v '^ *+' conftest.er1 >conftest.err
3079 cat conftest.err >&5
3080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3081 (exit $ac_status); } >/dev/null; then
3082 if test -s conftest.err; then
3083 ac_cpp_err=$ac_c_preproc_warn_flag
3090 if test -z "$ac_cpp_err"; then
3093 echo "$as_me: failed program was:" >&5
3094 sed 's/^/| /' conftest.$ac_ext >&5
3096 # Broken: fails on valid input.
3099 rm -f conftest.err conftest.$ac_ext
3101 # OK, works on sane cases. Now check whether non-existent headers
3102 # can be detected and how.
3103 cat >conftest.$ac_ext <<_ACEOF
3104 #line $LINENO "configure"
3107 cat confdefs.h >>conftest.$ac_ext
3108 cat >>conftest.$ac_ext <<_ACEOF
3109 /* end confdefs.h. */
3110 #include <ac_nonexistent.h>
3112 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3113 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3115 grep -v '^ *+' conftest.er1 >conftest.err
3117 cat conftest.err >&5
3118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3119 (exit $ac_status); } >/dev/null; then
3120 if test -s conftest.err; then
3121 ac_cpp_err=$ac_c_preproc_warn_flag
3128 if test -z "$ac_cpp_err"; then
3129 # Broken: success on invalid input.
3132 echo "$as_me: failed program was:" >&5
3133 sed 's/^/| /' conftest.$ac_ext >&5
3135 # Passes both tests.
3139 rm -f conftest.err conftest.$ac_ext
3142 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3143 rm -f conftest.err conftest.$ac_ext
3144 if $ac_preproc_ok; then
3156 echo "$as_me:$LINENO: result: $CPP" >&5
3157 echo "${ECHO_T}$CPP" >&6
3159 for ac_c_preproc_warn_flag in '' yes
3161 # Use a header file that comes with gcc, so configuring glibc
3162 # with a fresh cross-compiler works.
3163 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3164 # <limits.h> exists even on freestanding compilers.
3165 # On the NeXT, cc -E runs the code through the compiler's parser,
3166 # not just through cpp. "Syntax error" is here to catch this case.
3167 cat >conftest.$ac_ext <<_ACEOF
3168 #line $LINENO "configure"
3171 cat confdefs.h >>conftest.$ac_ext
3172 cat >>conftest.$ac_ext <<_ACEOF
3173 /* end confdefs.h. */
3175 # include <limits.h>
3177 # include <assert.h>
3181 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3182 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3184 grep -v '^ *+' conftest.er1 >conftest.err
3186 cat conftest.err >&5
3187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3188 (exit $ac_status); } >/dev/null; then
3189 if test -s conftest.err; then
3190 ac_cpp_err=$ac_c_preproc_warn_flag
3197 if test -z "$ac_cpp_err"; then
3200 echo "$as_me: failed program was:" >&5
3201 sed 's/^/| /' conftest.$ac_ext >&5
3203 # Broken: fails on valid input.
3206 rm -f conftest.err conftest.$ac_ext
3208 # OK, works on sane cases. Now check whether non-existent headers
3209 # can be detected and how.
3210 cat >conftest.$ac_ext <<_ACEOF
3211 #line $LINENO "configure"
3214 cat confdefs.h >>conftest.$ac_ext
3215 cat >>conftest.$ac_ext <<_ACEOF
3216 /* end confdefs.h. */
3217 #include <ac_nonexistent.h>
3219 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3220 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3222 grep -v '^ *+' conftest.er1 >conftest.err
3224 cat conftest.err >&5
3225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3226 (exit $ac_status); } >/dev/null; then
3227 if test -s conftest.err; then
3228 ac_cpp_err=$ac_c_preproc_warn_flag
3235 if test -z "$ac_cpp_err"; then
3236 # Broken: success on invalid input.
3239 echo "$as_me: failed program was:" >&5
3240 sed 's/^/| /' conftest.$ac_ext >&5
3242 # Passes both tests.
3246 rm -f conftest.err conftest.$ac_ext
3249 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3250 rm -f conftest.err conftest.$ac_ext
3251 if $ac_preproc_ok; then
3254 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3255 See \`config.log' for more details." >&5
3256 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3257 See \`config.log' for more details." >&2;}
3258 { (exit 1); exit 1; }; }
3262 ac_cpp='$CPP $CPPFLAGS'
3263 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3264 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3265 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3268 echo "$as_me:$LINENO: checking for egrep" >&5
3269 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3270 if test "${ac_cv_prog_egrep+set}" = set; then
3271 echo $ECHO_N "(cached) $ECHO_C" >&6
3273 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3274 then ac_cv_prog_egrep='grep -E'
3275 else ac_cv_prog_egrep='egrep'
3278 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3279 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3280 EGREP=$ac_cv_prog_egrep
3283 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3284 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3285 if test "${ac_cv_header_stdc+set}" = set; then
3286 echo $ECHO_N "(cached) $ECHO_C" >&6
3288 cat >conftest.$ac_ext <<_ACEOF
3289 #line $LINENO "configure"
3292 cat confdefs.h >>conftest.$ac_ext
3293 cat >>conftest.$ac_ext <<_ACEOF
3294 /* end confdefs.h. */
3308 rm -f conftest.$ac_objext
3309 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3310 (eval $ac_compile) 2>&5
3312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3313 (exit $ac_status); } &&
3314 { ac_try='test -s conftest.$ac_objext'
3315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3319 (exit $ac_status); }; }; then
3320 ac_cv_header_stdc=yes
3322 echo "$as_me: failed program was:" >&5
3323 sed 's/^/| /' conftest.$ac_ext >&5
3325 ac_cv_header_stdc=no
3327 rm -f conftest.$ac_objext conftest.$ac_ext
3329 if test $ac_cv_header_stdc = yes; then
3330 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3331 cat >conftest.$ac_ext <<_ACEOF
3332 #line $LINENO "configure"
3335 cat confdefs.h >>conftest.$ac_ext
3336 cat >>conftest.$ac_ext <<_ACEOF
3337 /* end confdefs.h. */
3341 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3342 $EGREP "memchr" >/dev/null 2>&1; then
3345 ac_cv_header_stdc=no
3351 if test $ac_cv_header_stdc = yes; then
3352 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3353 cat >conftest.$ac_ext <<_ACEOF
3354 #line $LINENO "configure"
3357 cat confdefs.h >>conftest.$ac_ext
3358 cat >>conftest.$ac_ext <<_ACEOF
3359 /* end confdefs.h. */
3363 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3364 $EGREP "free" >/dev/null 2>&1; then
3367 ac_cv_header_stdc=no
3373 if test $ac_cv_header_stdc = yes; then
3374 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3375 if test "$cross_compiling" = yes; then
3378 cat >conftest.$ac_ext <<_ACEOF
3379 #line $LINENO "configure"
3382 cat confdefs.h >>conftest.$ac_ext
3383 cat >>conftest.$ac_ext <<_ACEOF
3384 /* end confdefs.h. */
3386 #if ((' ' & 0x0FF) == 0x020)
3387 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3388 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3390 # define ISLOWER(c) \
3391 (('a' <= (c) && (c) <= 'i') \
3392 || ('j' <= (c) && (c) <= 'r') \
3393 || ('s' <= (c) && (c) <= 'z'))
3394 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3397 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3402 for (i = 0; i < 256; i++)
3403 if (XOR (islower (i), ISLOWER (i))
3404 || toupper (i) != TOUPPER (i))
3409 rm -f conftest$ac_exeext
3410 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3411 (eval $ac_link) 2>&5
3413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3414 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3419 (exit $ac_status); }; }; then
3422 echo "$as_me: program exited with status $ac_status" >&5
3423 echo "$as_me: failed program was:" >&5
3424 sed 's/^/| /' conftest.$ac_ext >&5
3427 ac_cv_header_stdc=no
3429 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3433 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3434 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3435 if test $ac_cv_header_stdc = yes; then
3437 cat >>confdefs.h <<\_ACEOF
3438 #define STDC_HEADERS 1
3443 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3453 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3454 inttypes.h stdint.h unistd.h
3456 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3457 echo "$as_me:$LINENO: checking for $ac_header" >&5
3458 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3459 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3460 echo $ECHO_N "(cached) $ECHO_C" >&6
3462 cat >conftest.$ac_ext <<_ACEOF
3463 #line $LINENO "configure"
3466 cat confdefs.h >>conftest.$ac_ext
3467 cat >>conftest.$ac_ext <<_ACEOF
3468 /* end confdefs.h. */
3469 $ac_includes_default
3471 #include <$ac_header>
3473 rm -f conftest.$ac_objext
3474 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3475 (eval $ac_compile) 2>&5
3477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3478 (exit $ac_status); } &&
3479 { ac_try='test -s conftest.$ac_objext'
3480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3484 (exit $ac_status); }; }; then
3485 eval "$as_ac_Header=yes"
3487 echo "$as_me: failed program was:" >&5
3488 sed 's/^/| /' conftest.$ac_ext >&5
3490 eval "$as_ac_Header=no"
3492 rm -f conftest.$ac_objext conftest.$ac_ext
3494 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3495 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3496 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3497 cat >>confdefs.h <<_ACEOF
3498 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3507 for ac_header in fcntl.h
3509 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3510 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3511 echo "$as_me:$LINENO: checking for $ac_header" >&5
3512 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3513 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3514 echo $ECHO_N "(cached) $ECHO_C" >&6
3516 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3517 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3519 # Is the header compilable?
3520 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3521 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3522 cat >conftest.$ac_ext <<_ACEOF
3523 #line $LINENO "configure"
3526 cat confdefs.h >>conftest.$ac_ext
3527 cat >>conftest.$ac_ext <<_ACEOF
3528 /* end confdefs.h. */
3529 $ac_includes_default
3530 #include <$ac_header>
3532 rm -f conftest.$ac_objext
3533 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3534 (eval $ac_compile) 2>&5
3536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3537 (exit $ac_status); } &&
3538 { ac_try='test -s conftest.$ac_objext'
3539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3543 (exit $ac_status); }; }; then
3544 ac_header_compiler=yes
3546 echo "$as_me: failed program was:" >&5
3547 sed 's/^/| /' conftest.$ac_ext >&5
3549 ac_header_compiler=no
3551 rm -f conftest.$ac_objext conftest.$ac_ext
3552 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3553 echo "${ECHO_T}$ac_header_compiler" >&6
3555 # Is the header present?
3556 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3557 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3558 cat >conftest.$ac_ext <<_ACEOF
3559 #line $LINENO "configure"
3562 cat confdefs.h >>conftest.$ac_ext
3563 cat >>conftest.$ac_ext <<_ACEOF
3564 /* end confdefs.h. */
3565 #include <$ac_header>
3567 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3568 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3570 grep -v '^ *+' conftest.er1 >conftest.err
3572 cat conftest.err >&5
3573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3574 (exit $ac_status); } >/dev/null; then
3575 if test -s conftest.err; then
3576 ac_cpp_err=$ac_c_preproc_warn_flag
3583 if test -z "$ac_cpp_err"; then
3584 ac_header_preproc=yes
3586 echo "$as_me: failed program was:" >&5
3587 sed 's/^/| /' conftest.$ac_ext >&5
3589 ac_header_preproc=no
3591 rm -f conftest.err conftest.$ac_ext
3592 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3593 echo "${ECHO_T}$ac_header_preproc" >&6
3595 # So? What about this header?
3596 case $ac_header_compiler:$ac_header_preproc in
3598 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3599 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3600 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3601 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3604 ## ------------------------------------ ##
3605 ## Report this to bug-autoconf@gnu.org. ##
3606 ## ------------------------------------ ##
3609 sed "s/^/$as_me: WARNING: /" >&2
3612 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3613 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3614 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3615 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3616 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3617 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3620 ## ------------------------------------ ##
3621 ## Report this to bug-autoconf@gnu.org. ##
3622 ## ------------------------------------ ##
3625 sed "s/^/$as_me: WARNING: /" >&2
3628 echo "$as_me:$LINENO: checking for $ac_header" >&5
3629 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3630 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3631 echo $ECHO_N "(cached) $ECHO_C" >&6
3633 eval "$as_ac_Header=$ac_header_preproc"
3635 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3636 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3639 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3640 cat >>confdefs.h <<_ACEOF
3641 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3649 for ac_header in sys/time.h
3651 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3652 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3653 echo "$as_me:$LINENO: checking for $ac_header" >&5
3654 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3655 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3656 echo $ECHO_N "(cached) $ECHO_C" >&6
3658 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3659 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3661 # Is the header compilable?
3662 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3663 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3664 cat >conftest.$ac_ext <<_ACEOF
3665 #line $LINENO "configure"
3668 cat confdefs.h >>conftest.$ac_ext
3669 cat >>conftest.$ac_ext <<_ACEOF
3670 /* end confdefs.h. */
3671 $ac_includes_default
3672 #include <$ac_header>
3674 rm -f conftest.$ac_objext
3675 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3676 (eval $ac_compile) 2>&5
3678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3679 (exit $ac_status); } &&
3680 { ac_try='test -s conftest.$ac_objext'
3681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3685 (exit $ac_status); }; }; then
3686 ac_header_compiler=yes
3688 echo "$as_me: failed program was:" >&5
3689 sed 's/^/| /' conftest.$ac_ext >&5
3691 ac_header_compiler=no
3693 rm -f conftest.$ac_objext conftest.$ac_ext
3694 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3695 echo "${ECHO_T}$ac_header_compiler" >&6
3697 # Is the header present?
3698 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3699 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3700 cat >conftest.$ac_ext <<_ACEOF
3701 #line $LINENO "configure"
3704 cat confdefs.h >>conftest.$ac_ext
3705 cat >>conftest.$ac_ext <<_ACEOF
3706 /* end confdefs.h. */
3707 #include <$ac_header>
3709 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3710 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3712 grep -v '^ *+' conftest.er1 >conftest.err
3714 cat conftest.err >&5
3715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3716 (exit $ac_status); } >/dev/null; then
3717 if test -s conftest.err; then
3718 ac_cpp_err=$ac_c_preproc_warn_flag
3725 if test -z "$ac_cpp_err"; then
3726 ac_header_preproc=yes
3728 echo "$as_me: failed program was:" >&5
3729 sed 's/^/| /' conftest.$ac_ext >&5
3731 ac_header_preproc=no
3733 rm -f conftest.err conftest.$ac_ext
3734 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3735 echo "${ECHO_T}$ac_header_preproc" >&6
3737 # So? What about this header?
3738 case $ac_header_compiler:$ac_header_preproc in
3740 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3741 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3742 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3743 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3746 ## ------------------------------------ ##
3747 ## Report this to bug-autoconf@gnu.org. ##
3748 ## ------------------------------------ ##
3751 sed "s/^/$as_me: WARNING: /" >&2
3754 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3755 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3756 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3757 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3758 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3759 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3762 ## ------------------------------------ ##
3763 ## Report this to bug-autoconf@gnu.org. ##
3764 ## ------------------------------------ ##
3767 sed "s/^/$as_me: WARNING: /" >&2
3770 echo "$as_me:$LINENO: checking for $ac_header" >&5
3771 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3772 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3773 echo $ECHO_N "(cached) $ECHO_C" >&6
3775 eval "$as_ac_Header=$ac_header_preproc"
3777 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3778 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3781 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3782 cat >>confdefs.h <<_ACEOF
3783 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3791 for ac_header in unistd.h
3793 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3794 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3795 echo "$as_me:$LINENO: checking for $ac_header" >&5
3796 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3797 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3798 echo $ECHO_N "(cached) $ECHO_C" >&6
3800 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3801 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3803 # Is the header compilable?
3804 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3805 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3806 cat >conftest.$ac_ext <<_ACEOF
3807 #line $LINENO "configure"
3810 cat confdefs.h >>conftest.$ac_ext
3811 cat >>conftest.$ac_ext <<_ACEOF
3812 /* end confdefs.h. */
3813 $ac_includes_default
3814 #include <$ac_header>
3816 rm -f conftest.$ac_objext
3817 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3818 (eval $ac_compile) 2>&5
3820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3821 (exit $ac_status); } &&
3822 { ac_try='test -s conftest.$ac_objext'
3823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3827 (exit $ac_status); }; }; then
3828 ac_header_compiler=yes
3830 echo "$as_me: failed program was:" >&5
3831 sed 's/^/| /' conftest.$ac_ext >&5
3833 ac_header_compiler=no
3835 rm -f conftest.$ac_objext conftest.$ac_ext
3836 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3837 echo "${ECHO_T}$ac_header_compiler" >&6
3839 # Is the header present?
3840 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3841 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3842 cat >conftest.$ac_ext <<_ACEOF
3843 #line $LINENO "configure"
3846 cat confdefs.h >>conftest.$ac_ext
3847 cat >>conftest.$ac_ext <<_ACEOF
3848 /* end confdefs.h. */
3849 #include <$ac_header>
3851 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3852 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3854 grep -v '^ *+' conftest.er1 >conftest.err
3856 cat conftest.err >&5
3857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3858 (exit $ac_status); } >/dev/null; then
3859 if test -s conftest.err; then
3860 ac_cpp_err=$ac_c_preproc_warn_flag
3867 if test -z "$ac_cpp_err"; then
3868 ac_header_preproc=yes
3870 echo "$as_me: failed program was:" >&5
3871 sed 's/^/| /' conftest.$ac_ext >&5
3873 ac_header_preproc=no
3875 rm -f conftest.err conftest.$ac_ext
3876 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3877 echo "${ECHO_T}$ac_header_preproc" >&6
3879 # So? What about this header?
3880 case $ac_header_compiler:$ac_header_preproc in
3882 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3883 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3884 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3885 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3888 ## ------------------------------------ ##
3889 ## Report this to bug-autoconf@gnu.org. ##
3890 ## ------------------------------------ ##
3893 sed "s/^/$as_me: WARNING: /" >&2
3896 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3897 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3898 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3899 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3900 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3901 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3904 ## ------------------------------------ ##
3905 ## Report this to bug-autoconf@gnu.org. ##
3906 ## ------------------------------------ ##
3909 sed "s/^/$as_me: WARNING: /" >&2
3912 echo "$as_me:$LINENO: checking for $ac_header" >&5
3913 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3914 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3915 echo $ECHO_N "(cached) $ECHO_C" >&6
3917 eval "$as_ac_Header=$ac_header_preproc"
3919 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3920 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3923 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3924 cat >>confdefs.h <<_ACEOF
3925 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3933 for ac_header in sys/ioctl.h
3935 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3936 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3937 echo "$as_me:$LINENO: checking for $ac_header" >&5
3938 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3939 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3940 echo $ECHO_N "(cached) $ECHO_C" >&6
3942 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3943 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3945 # Is the header compilable?
3946 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3947 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3948 cat >conftest.$ac_ext <<_ACEOF
3949 #line $LINENO "configure"
3952 cat confdefs.h >>conftest.$ac_ext
3953 cat >>conftest.$ac_ext <<_ACEOF
3954 /* end confdefs.h. */
3955 $ac_includes_default
3956 #include <$ac_header>
3958 rm -f conftest.$ac_objext
3959 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3960 (eval $ac_compile) 2>&5
3962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3963 (exit $ac_status); } &&
3964 { ac_try='test -s conftest.$ac_objext'
3965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3969 (exit $ac_status); }; }; then
3970 ac_header_compiler=yes
3972 echo "$as_me: failed program was:" >&5
3973 sed 's/^/| /' conftest.$ac_ext >&5
3975 ac_header_compiler=no
3977 rm -f conftest.$ac_objext conftest.$ac_ext
3978 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3979 echo "${ECHO_T}$ac_header_compiler" >&6
3981 # Is the header present?
3982 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3983 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3984 cat >conftest.$ac_ext <<_ACEOF
3985 #line $LINENO "configure"
3988 cat confdefs.h >>conftest.$ac_ext
3989 cat >>conftest.$ac_ext <<_ACEOF
3990 /* end confdefs.h. */
3991 #include <$ac_header>
3993 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3994 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3996 grep -v '^ *+' conftest.er1 >conftest.err
3998 cat conftest.err >&5
3999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4000 (exit $ac_status); } >/dev/null; then
4001 if test -s conftest.err; then
4002 ac_cpp_err=$ac_c_preproc_warn_flag
4009 if test -z "$ac_cpp_err"; then
4010 ac_header_preproc=yes
4012 echo "$as_me: failed program was:" >&5
4013 sed 's/^/| /' conftest.$ac_ext >&5
4015 ac_header_preproc=no
4017 rm -f conftest.err conftest.$ac_ext
4018 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4019 echo "${ECHO_T}$ac_header_preproc" >&6
4021 # So? What about this header?
4022 case $ac_header_compiler:$ac_header_preproc in
4024 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4025 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4026 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4027 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4030 ## ------------------------------------ ##
4031 ## Report this to bug-autoconf@gnu.org. ##
4032 ## ------------------------------------ ##
4035 sed "s/^/$as_me: WARNING: /" >&2
4038 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4039 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4040 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4041 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4042 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4043 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4046 ## ------------------------------------ ##
4047 ## Report this to bug-autoconf@gnu.org. ##
4048 ## ------------------------------------ ##
4051 sed "s/^/$as_me: WARNING: /" >&2
4054 echo "$as_me:$LINENO: checking for $ac_header" >&5
4055 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4056 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4057 echo $ECHO_N "(cached) $ECHO_C" >&6
4059 eval "$as_ac_Header=$ac_header_preproc"
4061 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4062 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4065 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4066 cat >>confdefs.h <<_ACEOF
4067 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4075 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4076 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
4077 if test "${ac_cv_c_const+set}" = set; then
4078 echo $ECHO_N "(cached) $ECHO_C" >&6
4080 cat >conftest.$ac_ext <<_ACEOF
4081 #line $LINENO "configure"
4084 cat confdefs.h >>conftest.$ac_ext
4085 cat >>conftest.$ac_ext <<_ACEOF
4086 /* end confdefs.h. */
4091 /* FIXME: Include the comments suggested by Paul. */
4093 /* Ultrix mips cc rejects this. */
4094 typedef int charset[2];
4096 /* SunOS 4.1.1 cc rejects this. */
4097 char const *const *ccp;
4099 /* NEC SVR4.0.2 mips cc rejects this. */
4100 struct point {int x, y;};
4101 static struct point const zero = {0,0};
4102 /* AIX XL C 1.02.0.0 rejects this.
4103 It does not let you subtract one const X* pointer from another in
4104 an arm of an if-expression whose if-part is not a constant
4106 const char *g = "string";
4107 ccp = &g + (g ? g-g : 0);
4108 /* HPUX 7.0 cc rejects these. */
4111 ccp = (char const *const *) p;
4112 { /* SCO 3.2v4 cc rejects this. */
4114 char const *s = 0 ? (char *) 0 : (char const *) 0;
4118 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4120 const int *foo = &x[0];
4123 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4124 typedef const int *iptr;
4128 { /* AIX XL C 1.02.0.0 rejects this saying
4129 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4130 struct s { int j; const int *ap[3]; };
4131 struct s *b; b->j = 5;
4133 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4142 rm -f conftest.$ac_objext
4143 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4144 (eval $ac_compile) 2>&5
4146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4147 (exit $ac_status); } &&
4148 { ac_try='test -s conftest.$ac_objext'
4149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4153 (exit $ac_status); }; }; then
4156 echo "$as_me: failed program was:" >&5
4157 sed 's/^/| /' conftest.$ac_ext >&5
4161 rm -f conftest.$ac_objext conftest.$ac_ext
4163 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4164 echo "${ECHO_T}$ac_cv_c_const" >&6
4165 if test $ac_cv_c_const = no; then
4167 cat >>confdefs.h <<\_ACEOF
4173 echo "$as_me:$LINENO: checking for inline" >&5
4174 echo $ECHO_N "checking for inline... $ECHO_C" >&6
4175 if test "${ac_cv_c_inline+set}" = set; then
4176 echo $ECHO_N "(cached) $ECHO_C" >&6
4179 for ac_kw in inline __inline__ __inline; do
4180 cat >conftest.$ac_ext <<_ACEOF
4181 #line $LINENO "configure"
4184 cat confdefs.h >>conftest.$ac_ext
4185 cat >>conftest.$ac_ext <<_ACEOF
4186 /* end confdefs.h. */
4189 static $ac_kw foo_t static_foo () {return 0; }
4190 $ac_kw foo_t foo () {return 0; }
4194 rm -f conftest.$ac_objext
4195 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4196 (eval $ac_compile) 2>&5
4198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4199 (exit $ac_status); } &&
4200 { ac_try='test -s conftest.$ac_objext'
4201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4205 (exit $ac_status); }; }; then
4206 ac_cv_c_inline=$ac_kw; break
4208 echo "$as_me: failed program was:" >&5
4209 sed 's/^/| /' conftest.$ac_ext >&5
4212 rm -f conftest.$ac_objext conftest.$ac_ext
4216 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4217 echo "${ECHO_T}$ac_cv_c_inline" >&6
4218 case $ac_cv_c_inline in
4221 cat >>confdefs.h <<\_ACEOF
4225 *) cat >>confdefs.h <<_ACEOF
4226 #define inline $ac_cv_c_inline
4231 echo "$as_me:$LINENO: checking for off_t" >&5
4232 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
4233 if test "${ac_cv_type_off_t+set}" = set; then
4234 echo $ECHO_N "(cached) $ECHO_C" >&6
4236 cat >conftest.$ac_ext <<_ACEOF
4237 #line $LINENO "configure"
4240 cat confdefs.h >>conftest.$ac_ext
4241 cat >>conftest.$ac_ext <<_ACEOF
4242 /* end confdefs.h. */
4243 $ac_includes_default
4255 rm -f conftest.$ac_objext
4256 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4257 (eval $ac_compile) 2>&5
4259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4260 (exit $ac_status); } &&
4261 { ac_try='test -s conftest.$ac_objext'
4262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4266 (exit $ac_status); }; }; then
4267 ac_cv_type_off_t=yes
4269 echo "$as_me: failed program was:" >&5
4270 sed 's/^/| /' conftest.$ac_ext >&5
4274 rm -f conftest.$ac_objext conftest.$ac_ext
4276 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
4277 echo "${ECHO_T}$ac_cv_type_off_t" >&6
4278 if test $ac_cv_type_off_t = yes; then
4282 cat >>confdefs.h <<_ACEOF
4288 echo "$as_me:$LINENO: checking for size_t" >&5
4289 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
4290 if test "${ac_cv_type_size_t+set}" = set; then
4291 echo $ECHO_N "(cached) $ECHO_C" >&6
4293 cat >conftest.$ac_ext <<_ACEOF
4294 #line $LINENO "configure"
4297 cat confdefs.h >>conftest.$ac_ext
4298 cat >>conftest.$ac_ext <<_ACEOF
4299 /* end confdefs.h. */
4300 $ac_includes_default
4306 if (sizeof (size_t))
4312 rm -f conftest.$ac_objext
4313 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4314 (eval $ac_compile) 2>&5
4316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4317 (exit $ac_status); } &&
4318 { ac_try='test -s conftest.$ac_objext'
4319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4323 (exit $ac_status); }; }; then
4324 ac_cv_type_size_t=yes
4326 echo "$as_me: failed program was:" >&5
4327 sed 's/^/| /' conftest.$ac_ext >&5
4329 ac_cv_type_size_t=no
4331 rm -f conftest.$ac_objext conftest.$ac_ext
4333 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
4334 echo "${ECHO_T}$ac_cv_type_size_t" >&6
4335 if test $ac_cv_type_size_t = yes; then
4339 cat >>confdefs.h <<_ACEOF
4340 #define size_t unsigned
4345 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
4346 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
4347 if test "${ac_cv_header_time+set}" = set; then
4348 echo $ECHO_N "(cached) $ECHO_C" >&6
4350 cat >conftest.$ac_ext <<_ACEOF
4351 #line $LINENO "configure"
4354 cat confdefs.h >>conftest.$ac_ext
4355 cat >>conftest.$ac_ext <<_ACEOF
4356 /* end confdefs.h. */
4357 #include <sys/types.h>
4358 #include <sys/time.h>
4364 if ((struct tm *) 0)
4370 rm -f conftest.$ac_objext
4371 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4372 (eval $ac_compile) 2>&5
4374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4375 (exit $ac_status); } &&
4376 { ac_try='test -s conftest.$ac_objext'
4377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4381 (exit $ac_status); }; }; then
4382 ac_cv_header_time=yes
4384 echo "$as_me: failed program was:" >&5
4385 sed 's/^/| /' conftest.$ac_ext >&5
4387 ac_cv_header_time=no
4389 rm -f conftest.$ac_objext conftest.$ac_ext
4391 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
4392 echo "${ECHO_T}$ac_cv_header_time" >&6
4393 if test $ac_cv_header_time = yes; then
4395 cat >>confdefs.h <<\_ACEOF
4396 #define TIME_WITH_SYS_TIME 1
4401 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
4402 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
4403 if test "${ac_cv_struct_tm+set}" = set; then
4404 echo $ECHO_N "(cached) $ECHO_C" >&6
4406 cat >conftest.$ac_ext <<_ACEOF
4407 #line $LINENO "configure"
4410 cat confdefs.h >>conftest.$ac_ext
4411 cat >>conftest.$ac_ext <<_ACEOF
4412 /* end confdefs.h. */
4413 #include <sys/types.h>
4419 struct tm *tp; tp->tm_sec;
4424 rm -f conftest.$ac_objext
4425 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4426 (eval $ac_compile) 2>&5
4428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4429 (exit $ac_status); } &&
4430 { ac_try='test -s conftest.$ac_objext'
4431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4435 (exit $ac_status); }; }; then
4436 ac_cv_struct_tm=time.h
4438 echo "$as_me: failed program was:" >&5
4439 sed 's/^/| /' conftest.$ac_ext >&5
4441 ac_cv_struct_tm=sys/time.h
4443 rm -f conftest.$ac_objext conftest.$ac_ext
4445 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
4446 echo "${ECHO_T}$ac_cv_struct_tm" >&6
4447 if test $ac_cv_struct_tm = sys/time.h; then
4449 cat >>confdefs.h <<\_ACEOF
4450 #define TM_IN_SYS_TIME 1
4456 if test $ac_cv_c_compiler_gnu = yes; then
4457 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
4458 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
4459 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
4460 echo $ECHO_N "(cached) $ECHO_C" >&6
4462 ac_pattern="Autoconf.*'x'"
4463 cat >conftest.$ac_ext <<_ACEOF
4464 #line $LINENO "configure"
4467 cat confdefs.h >>conftest.$ac_ext
4468 cat >>conftest.$ac_ext <<_ACEOF
4469 /* end confdefs.h. */
4473 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4474 $EGREP "$ac_pattern" >/dev/null 2>&1; then
4475 ac_cv_prog_gcc_traditional=yes
4477 ac_cv_prog_gcc_traditional=no
4482 if test $ac_cv_prog_gcc_traditional = no; then
4483 cat >conftest.$ac_ext <<_ACEOF
4484 #line $LINENO "configure"
4487 cat confdefs.h >>conftest.$ac_ext
4488 cat >>conftest.$ac_ext <<_ACEOF
4489 /* end confdefs.h. */
4493 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4494 $EGREP "$ac_pattern" >/dev/null 2>&1; then
4495 ac_cv_prog_gcc_traditional=yes
4501 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
4502 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
4503 if test $ac_cv_prog_gcc_traditional = yes; then
4504 CC="$CC -traditional"
4508 echo "$as_me:$LINENO: checking for working memcmp" >&5
4509 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
4510 if test "${ac_cv_func_memcmp_working+set}" = set; then
4511 echo $ECHO_N "(cached) $ECHO_C" >&6
4513 if test "$cross_compiling" = yes; then
4514 ac_cv_func_memcmp_working=no
4516 cat >conftest.$ac_ext <<_ACEOF
4517 #line $LINENO "configure"
4520 cat confdefs.h >>conftest.$ac_ext
4521 cat >>conftest.$ac_ext <<_ACEOF
4522 /* end confdefs.h. */
4528 /* Some versions of memcmp are not 8-bit clean. */
4529 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
4530 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
4533 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
4534 or more and with at least one buffer not starting on a 4-byte boundary.
4535 William Lewis provided this test program. */
4540 for (i = 0; i < 4; i++)
4544 strcpy (a, "--------01111111");
4545 strcpy (b, "--------10000000");
4546 if (memcmp (a, b, 16) >= 0)
4556 rm -f conftest$ac_exeext
4557 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4558 (eval $ac_link) 2>&5
4560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4561 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4566 (exit $ac_status); }; }; then
4567 ac_cv_func_memcmp_working=yes
4569 echo "$as_me: program exited with status $ac_status" >&5
4570 echo "$as_me: failed program was:" >&5
4571 sed 's/^/| /' conftest.$ac_ext >&5
4574 ac_cv_func_memcmp_working=no
4576 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4579 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
4580 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
4581 test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
4585 for ac_header in stdlib.h unistd.h
4587 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4588 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4589 echo "$as_me:$LINENO: checking for $ac_header" >&5
4590 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4591 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4592 echo $ECHO_N "(cached) $ECHO_C" >&6
4594 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4595 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4597 # Is the header compilable?
4598 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4599 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4600 cat >conftest.$ac_ext <<_ACEOF
4601 #line $LINENO "configure"
4604 cat confdefs.h >>conftest.$ac_ext
4605 cat >>conftest.$ac_ext <<_ACEOF
4606 /* end confdefs.h. */
4607 $ac_includes_default
4608 #include <$ac_header>
4610 rm -f conftest.$ac_objext
4611 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4612 (eval $ac_compile) 2>&5
4614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4615 (exit $ac_status); } &&
4616 { ac_try='test -s conftest.$ac_objext'
4617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4621 (exit $ac_status); }; }; then
4622 ac_header_compiler=yes
4624 echo "$as_me: failed program was:" >&5
4625 sed 's/^/| /' conftest.$ac_ext >&5
4627 ac_header_compiler=no
4629 rm -f conftest.$ac_objext conftest.$ac_ext
4630 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4631 echo "${ECHO_T}$ac_header_compiler" >&6
4633 # Is the header present?
4634 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4635 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4636 cat >conftest.$ac_ext <<_ACEOF
4637 #line $LINENO "configure"
4640 cat confdefs.h >>conftest.$ac_ext
4641 cat >>conftest.$ac_ext <<_ACEOF
4642 /* end confdefs.h. */
4643 #include <$ac_header>
4645 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4646 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4648 grep -v '^ *+' conftest.er1 >conftest.err
4650 cat conftest.err >&5
4651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4652 (exit $ac_status); } >/dev/null; then
4653 if test -s conftest.err; then
4654 ac_cpp_err=$ac_c_preproc_warn_flag
4661 if test -z "$ac_cpp_err"; then
4662 ac_header_preproc=yes
4664 echo "$as_me: failed program was:" >&5
4665 sed 's/^/| /' conftest.$ac_ext >&5
4667 ac_header_preproc=no
4669 rm -f conftest.err conftest.$ac_ext
4670 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4671 echo "${ECHO_T}$ac_header_preproc" >&6
4673 # So? What about this header?
4674 case $ac_header_compiler:$ac_header_preproc in
4676 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4677 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4678 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4679 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4682 ## ------------------------------------ ##
4683 ## Report this to bug-autoconf@gnu.org. ##
4684 ## ------------------------------------ ##
4687 sed "s/^/$as_me: WARNING: /" >&2
4690 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4691 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4692 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4693 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4694 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4695 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4698 ## ------------------------------------ ##
4699 ## Report this to bug-autoconf@gnu.org. ##
4700 ## ------------------------------------ ##
4703 sed "s/^/$as_me: WARNING: /" >&2
4706 echo "$as_me:$LINENO: checking for $ac_header" >&5
4707 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4708 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4709 echo $ECHO_N "(cached) $ECHO_C" >&6
4711 eval "$as_ac_Header=$ac_header_preproc"
4713 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4714 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4717 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4718 cat >>confdefs.h <<_ACEOF
4719 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4727 for ac_func in getpagesize
4729 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4730 echo "$as_me:$LINENO: checking for $ac_func" >&5
4731 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4732 if eval "test \"\${$as_ac_var+set}\" = set"; then
4733 echo $ECHO_N "(cached) $ECHO_C" >&6
4735 cat >conftest.$ac_ext <<_ACEOF
4736 #line $LINENO "configure"
4739 cat confdefs.h >>conftest.$ac_ext
4740 cat >>conftest.$ac_ext <<_ACEOF
4741 /* end confdefs.h. */
4742 /* System header to define __stub macros and hopefully few prototypes,
4743 which can conflict with char $ac_func (); below.
4744 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4745 <limits.h> exists even on freestanding compilers. */
4747 # include <limits.h>
4749 # include <assert.h>
4751 /* Override any gcc2 internal prototype to avoid an error. */
4756 /* We use char because int might match the return type of a gcc2
4757 builtin and then its argument prototype would still apply. */
4759 /* The GNU C library defines this for functions which it implements
4760 to always fail with ENOSYS. Some functions are actually named
4761 something starting with __ and the normal name is an alias. */
4762 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4765 char (*f) () = $ac_func;
4774 return f != $ac_func;
4779 rm -f conftest.$ac_objext conftest$ac_exeext
4780 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4781 (eval $ac_link) 2>&5
4783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4784 (exit $ac_status); } &&
4785 { ac_try='test -s conftest$ac_exeext'
4786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4790 (exit $ac_status); }; }; then
4791 eval "$as_ac_var=yes"
4793 echo "$as_me: failed program was:" >&5
4794 sed 's/^/| /' conftest.$ac_ext >&5
4796 eval "$as_ac_var=no"
4798 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4800 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4801 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4802 if test `eval echo '${'$as_ac_var'}'` = yes; then
4803 cat >>confdefs.h <<_ACEOF
4804 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4810 echo "$as_me:$LINENO: checking for working mmap" >&5
4811 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
4812 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
4813 echo $ECHO_N "(cached) $ECHO_C" >&6
4815 if test "$cross_compiling" = yes; then
4816 ac_cv_func_mmap_fixed_mapped=no
4818 cat >conftest.$ac_ext <<_ACEOF
4819 #line $LINENO "configure"
4822 cat confdefs.h >>conftest.$ac_ext
4823 cat >>conftest.$ac_ext <<_ACEOF
4824 /* end confdefs.h. */
4825 $ac_includes_default
4826 /* malloc might have been renamed as rpl_malloc. */
4829 /* Thanks to Mike Haertel and Jim Avera for this test.
4830 Here is a matrix of mmap possibilities:
4831 mmap private not fixed
4832 mmap private fixed at somewhere currently unmapped
4833 mmap private fixed at somewhere already mapped
4834 mmap shared not fixed
4835 mmap shared fixed at somewhere currently unmapped
4836 mmap shared fixed at somewhere already mapped
4837 For private mappings, we should verify that changes cannot be read()
4838 back from the file, nor mmap's back from the file at a different
4839 address. (There have been systems where private was not correctly
4840 implemented like the infamous i386 svr4.0, and systems where the
4841 VM page cache was not coherent with the file system buffer cache
4842 like early versions of FreeBSD and possibly contemporary NetBSD.)
4843 For shared mappings, we should conversely verify that changes get
4844 propagated back to all the places they're supposed to be.
4846 Grep wants private fixed already mapped.
4847 The main things grep needs to know about mmap are:
4848 * does it exist and is it safe to write into the mmap'd area
4849 * how to use it (BSD variants) */
4852 #include <sys/mman.h>
4854 #if !STDC_HEADERS && !HAVE_STDLIB_H
4858 /* This mess was copied from the GNU getpagesize.h. */
4859 #if !HAVE_GETPAGESIZE
4860 /* Assume that all systems that can run configure have sys/param.h. */
4861 # if !HAVE_SYS_PARAM_H
4862 # define HAVE_SYS_PARAM_H 1
4865 # ifdef _SC_PAGESIZE
4866 # define getpagesize() sysconf(_SC_PAGESIZE)
4867 # else /* no _SC_PAGESIZE */
4868 # if HAVE_SYS_PARAM_H
4869 # include <sys/param.h>
4870 # ifdef EXEC_PAGESIZE
4871 # define getpagesize() EXEC_PAGESIZE
4872 # else /* no EXEC_PAGESIZE */
4874 # define getpagesize() NBPG * CLSIZE
4877 # endif /* no CLSIZE */
4878 # else /* no NBPG */
4880 # define getpagesize() NBPC
4881 # else /* no NBPC */
4883 # define getpagesize() PAGESIZE
4884 # endif /* PAGESIZE */
4885 # endif /* no NBPC */
4886 # endif /* no NBPG */
4887 # endif /* no EXEC_PAGESIZE */
4888 # else /* no HAVE_SYS_PARAM_H */
4889 # define getpagesize() 8192 /* punt totally */
4890 # endif /* no HAVE_SYS_PARAM_H */
4891 # endif /* no _SC_PAGESIZE */
4893 #endif /* no HAVE_GETPAGESIZE */
4898 char *data, *data2, *data3;
4902 pagesize = getpagesize ();
4904 /* First, make a file with some known garbage in it. */
4905 data = (char *) malloc (pagesize);
4908 for (i = 0; i < pagesize; ++i)
4909 *(data + i) = rand ();
4911 fd = creat ("conftest.mmap", 0600);
4914 if (write (fd, data, pagesize) != pagesize)
4918 /* Next, try to mmap the file at a fixed address which already has
4919 something else allocated at it. If we can, also make sure that
4920 we see the same garbage. */
4921 fd = open ("conftest.mmap", O_RDWR);
4924 data2 = (char *) malloc (2 * pagesize);
4927 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
4928 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
4929 MAP_PRIVATE | MAP_FIXED, fd, 0L))
4931 for (i = 0; i < pagesize; ++i)
4932 if (*(data + i) != *(data2 + i))
4935 /* Finally, make sure that changes to the mapped area do not
4936 percolate back to the file as seen by read(). (This is a bug on
4937 some variants of i386 svr4.0.) */
4938 for (i = 0; i < pagesize; ++i)
4939 *(data2 + i) = *(data2 + i) + 1;
4940 data3 = (char *) malloc (pagesize);
4943 if (read (fd, data3, pagesize) != pagesize)
4945 for (i = 0; i < pagesize; ++i)
4946 if (*(data + i) != *(data3 + i))
4952 rm -f conftest$ac_exeext
4953 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4954 (eval $ac_link) 2>&5
4956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4957 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4962 (exit $ac_status); }; }; then
4963 ac_cv_func_mmap_fixed_mapped=yes
4965 echo "$as_me: program exited with status $ac_status" >&5
4966 echo "$as_me: failed program was:" >&5
4967 sed 's/^/| /' conftest.$ac_ext >&5
4970 ac_cv_func_mmap_fixed_mapped=no
4972 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4975 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
4976 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
4977 if test $ac_cv_func_mmap_fixed_mapped = yes; then
4979 cat >>confdefs.h <<\_ACEOF
4986 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
4987 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
4988 if test "${ac_cv_type_signal+set}" = set; then
4989 echo $ECHO_N "(cached) $ECHO_C" >&6
4991 cat >conftest.$ac_ext <<_ACEOF
4992 #line $LINENO "configure"
4995 cat confdefs.h >>conftest.$ac_ext
4996 cat >>conftest.$ac_ext <<_ACEOF
4997 /* end confdefs.h. */
4998 #include <sys/types.h>
5004 extern "C" void (*signal (int, void (*)(int)))(int);
5006 void (*signal ()) ();
5017 rm -f conftest.$ac_objext
5018 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5019 (eval $ac_compile) 2>&5
5021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5022 (exit $ac_status); } &&
5023 { ac_try='test -s conftest.$ac_objext'
5024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5028 (exit $ac_status); }; }; then
5029 ac_cv_type_signal=void
5031 echo "$as_me: failed program was:" >&5
5032 sed 's/^/| /' conftest.$ac_ext >&5
5034 ac_cv_type_signal=int
5036 rm -f conftest.$ac_objext conftest.$ac_ext
5038 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
5039 echo "${ECHO_T}$ac_cv_type_signal" >&6
5041 cat >>confdefs.h <<_ACEOF
5042 #define RETSIGTYPE $ac_cv_type_signal
5052 for ac_func in getcwd gettimeofday mkdir mktime select socket
5054 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5055 echo "$as_me:$LINENO: checking for $ac_func" >&5
5056 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5057 if eval "test \"\${$as_ac_var+set}\" = set"; then
5058 echo $ECHO_N "(cached) $ECHO_C" >&6
5060 cat >conftest.$ac_ext <<_ACEOF
5061 #line $LINENO "configure"
5064 cat confdefs.h >>conftest.$ac_ext
5065 cat >>conftest.$ac_ext <<_ACEOF
5066 /* end confdefs.h. */
5067 /* System header to define __stub macros and hopefully few prototypes,
5068 which can conflict with char $ac_func (); below.
5069 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5070 <limits.h> exists even on freestanding compilers. */
5072 # include <limits.h>
5074 # include <assert.h>
5076 /* Override any gcc2 internal prototype to avoid an error. */
5081 /* We use char because int might match the return type of a gcc2
5082 builtin and then its argument prototype would still apply. */
5084 /* The GNU C library defines this for functions which it implements
5085 to always fail with ENOSYS. Some functions are actually named
5086 something starting with __ and the normal name is an alias. */
5087 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5090 char (*f) () = $ac_func;
5099 return f != $ac_func;
5104 rm -f conftest.$ac_objext conftest$ac_exeext
5105 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5106 (eval $ac_link) 2>&5
5108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5109 (exit $ac_status); } &&
5110 { ac_try='test -s conftest$ac_exeext'
5111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5115 (exit $ac_status); }; }; then
5116 eval "$as_ac_var=yes"
5118 echo "$as_me: failed program was:" >&5
5119 sed 's/^/| /' conftest.$ac_ext >&5
5121 eval "$as_ac_var=no"
5123 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5125 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5126 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5127 if test `eval echo '${'$as_ac_var'}'` = yes; then
5128 cat >>confdefs.h <<_ACEOF
5129 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5136 if test $ac_cv_func_mmap_fixed_mapped = yes; then
5137 echo "$as_me:$LINENO: checking whether MAP_FAILED is defined" >&5
5138 echo $ECHO_N "checking whether MAP_FAILED is defined... $ECHO_C" >&6
5139 if test "${ac_cv_map_failed+set}" = set; then
5140 echo $ECHO_N "(cached) $ECHO_C" >&6
5142 cat >conftest.$ac_ext <<_ACEOF
5143 #line $LINENO "configure"
5146 cat confdefs.h >>conftest.$ac_ext
5147 cat >>conftest.$ac_ext <<_ACEOF
5148 /* end confdefs.h. */
5149 #include <sys/mman.h>
5154 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5155 $EGREP "yes" >/dev/null 2>&1; then
5156 ac_cv_map_failed=yes
5163 echo "$as_me:$LINENO: result: $ac_cv_map_failed" >&5
5164 echo "${ECHO_T}$ac_cv_map_failed" >&6
5166 echo "$as_me:$LINENO: checking whether MAP_ANONYMOUS is defined" >&5
5167 echo $ECHO_N "checking whether MAP_ANONYMOUS is defined... $ECHO_C" >&6
5168 if test "${ac_cv_map_anonymous+set}" = set; then
5169 echo $ECHO_N "(cached) $ECHO_C" >&6
5171 cat >conftest.$ac_ext <<_ACEOF
5172 #line $LINENO "configure"
5175 cat confdefs.h >>conftest.$ac_ext
5176 cat >>conftest.$ac_ext <<_ACEOF
5177 /* end confdefs.h. */
5178 #include <sys/mman.h>
5179 #ifdef MAP_ANONYMOUS
5183 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5184 $EGREP "yes" >/dev/null 2>&1; then
5185 ac_cv_map_anonymous=yes
5187 ac_cv_map_anonymous=no
5192 echo "$as_me:$LINENO: result: $ac_cv_map_anonymous" >&5
5193 echo "${ECHO_T}$ac_cv_map_anonymous" >&6
5195 if test $ac_cv_map_failed = yes; then
5196 cat >>confdefs.h <<\_ACEOF
5197 #define HAVE_MAP_FAILED 1
5202 if test $ac_cv_map_anonymous = yes; then
5203 cat >>confdefs.h <<\_ACEOF
5204 #define HAVE_MAP_ANONYMOUS 1
5212 # Check whether --enable-threads or --disable-threads was given.
5213 if test "${enable_threads+set}" = set; then
5214 enableval="$enable_threads"
5218 # Check whether --with-gc or --without-gc was given.
5219 if test "${with_gc+set}" = set; then
5224 echo "$as_me:$LINENO: checking whether to include threads support" >&5
5225 echo $ECHO_N "checking whether to include threads support... $ECHO_C" >&6
5226 if test x"$enable_threads" = "xno"; then
5227 echo "$as_me:$LINENO: result: no" >&5
5228 echo "${ECHO_T}no" >&6
5230 echo "$as_me:$LINENO: result: yes" >&5
5231 echo "${ECHO_T}yes" >&6
5233 cat >>confdefs.h <<\_ACEOF
5234 #define USE_THREADS 1
5237 cat >>confdefs.h <<\_ACEOF
5238 #define EXTERNAL_OVERFLOW 1
5241 cat >>confdefs.h <<\_ACEOF
5242 #define DONT_FREE_FIRST 1
5246 LIBTHREAD="libthreads.a"
5247 THREAD_OBJ="threads/libthreads.a"
5252 echo "$as_me:$LINENO: checking which garbage collector to use" >&5
5253 echo $ECHO_N "checking which garbage collector to use... $ECHO_C" >&6
5256 echo "$as_me:$LINENO: result: old garbage collector" >&5
5257 echo "${ECHO_T}old garbage collector" >&6
5258 GC_OBJ="mm/libmm_old.a"
5261 echo "$as_me:$LINENO: result: new garbage collector" >&5
5262 echo "${ECHO_T}new garbage collector" >&6
5263 GC_OBJ="mm/libmm_new.a"
5266 echo "$as_me:$LINENO: result: Boehm garbage collector" >&5
5267 echo "${ECHO_T}Boehm garbage collector" >&6
5268 GC_OBJ="mm/libboehm.a libgc.a"
5269 if test ! -e libgc.a; then
5270 { { echo "$as_me:$LINENO: error: libgc.a not found, see README.boehm" >&5
5271 echo "$as_me: error: libgc.a not found, see README.boehm" >&2;}
5272 { (exit 1); exit 1; }; }
5274 cat >>confdefs.h <<\_ACEOF
5278 BOEHM_LIB="libboehm.a"
5281 { { echo "$as_me:$LINENO: error: Invalid GC" >&5
5282 echo "$as_me: error: Invalid GC" >&2;}
5283 { (exit 1); exit 1; }; }
5289 ac_config_files="$ac_config_files Makefile toolbox/Makefile mm/Makefile threads/Makefile jit/Makefile alpha/Makefile mips/Makefile i386/Makefile x86_64/Makefile powerpc/Makefile nat/Makefile doc/Makefile narray/Makefile tst/Makefile tst/kaffe/Makefile jvmtst/Makefile"
5290 cat >confcache <<\_ACEOF
5291 # This file is a shell script that caches the results of configure
5292 # tests run on this system so they can be shared between configure
5293 # scripts and configure runs, see configure's option --config-cache.
5294 # It is not useful on other systems. If it contains results you don't
5295 # want to keep, you may remove or edit it.
5297 # config.status only pays attention to the cache file if you give it
5298 # the --recheck option to rerun configure.
5300 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5301 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5306 # The following way of writing the cache mishandles newlines in values,
5307 # but we know of no workaround that is simple, portable, and efficient.
5308 # So, don't put newlines in cache variables' values.
5309 # Ultrix sh set writes to stderr and can't be redirected directly,
5310 # and sets the high bit in the cache file unless we assign to the vars.
5313 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5315 # `set' does not quote correctly, so add quotes (double-quote
5316 # substitution turns \\\\ into \\, and sed turns \\ into \).
5319 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5322 # `set' quotes correctly as required by POSIX, so do not add quotes.
5324 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
5331 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5333 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5335 if diff $cache_file confcache >/dev/null 2>&1; then :; else
5336 if test -w $cache_file; then
5337 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
5338 cat confcache >$cache_file
5340 echo "not updating unwritable cache $cache_file"
5345 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5346 # Let make expand exec_prefix.
5347 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5349 # VPATH may cause trouble with some makes, so we remove $(srcdir),
5350 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
5351 # trailing colons and then remove the whole line if VPATH becomes empty
5352 # (actually we leave an empty line to preserve line numbers).
5353 if test "x$srcdir" = x.; then
5354 ac_vpsub='/^[ ]*VPATH[ ]*=/{
5355 s/:*\$(srcdir):*/:/;
5356 s/:*\${srcdir}:*/:/;
5358 s/^\([^=]*=[ ]*\):*/\1/;
5364 DEFS=-DHAVE_CONFIG_H
5368 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5369 # 1. Remove the extension, and $U if already installed.
5370 ac_i=`echo "$ac_i" |
5371 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
5373 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
5374 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
5378 LTLIBOBJS=$ac_ltlibobjs
5382 : ${CONFIG_STATUS=./config.status}
5383 ac_clean_files_save=$ac_clean_files
5384 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5385 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
5386 echo "$as_me: creating $CONFIG_STATUS" >&6;}
5387 cat >$CONFIG_STATUS <<_ACEOF
5389 # Generated by $as_me.
5390 # Run this file to recreate the current configuration.
5391 # Compiler output produced by configure, useful for debugging
5392 # configure, is in config.log if it exists.
5397 SHELL=\${CONFIG_SHELL-$SHELL}
5400 cat >>$CONFIG_STATUS <<\_ACEOF
5401 ## --------------------- ##
5402 ## M4sh Initialization. ##
5403 ## --------------------- ##
5405 # Be Bourne compatible
5406 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
5409 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
5410 # is contrary to our usage. Disable this feature.
5411 alias -g '${1+"$@"}'='"$@"'
5412 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
5416 # Support unset when possible.
5417 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
5424 # Work around bugs in pre-3.0 UWIN ksh.
5425 $as_unset ENV MAIL MAILPATH
5432 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
5433 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
5434 LC_TELEPHONE LC_TIME
5436 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
5437 eval $as_var=C; export $as_var
5443 # Required to use basename.
5444 if expr a : '\(a\)' >/dev/null 2>&1; then
5450 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
5451 as_basename=basename
5457 # Name of the executable.
5458 as_me=`$as_basename "$0" ||
5459 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5460 X"$0" : 'X\(//\)$' \| \
5461 X"$0" : 'X\(/\)$' \| \
5462 . : '\(.\)' 2>/dev/null ||
5464 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
5465 /^X\/\(\/\/\)$/{ s//\1/; q; }
5466 /^X\/\(\/\).*/{ s//\1/; q; }
5470 # PATH needs CR, and LINENO needs CR and PATH.
5471 # Avoid depending upon Character Ranges.
5472 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5473 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5474 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5475 as_cr_digits='0123456789'
5476 as_cr_alnum=$as_cr_Letters$as_cr_digits
5478 # The user is always right.
5479 if test "${PATH_SEPARATOR+set}" != set; then
5480 echo "#! /bin/sh" >conf$$.sh
5481 echo "exit 0" >>conf$$.sh
5483 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5494 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5495 test "x$as_lineno_1" != "x$as_lineno_2" &&
5496 test "x$as_lineno_3" = "x$as_lineno_2" || {
5497 # Find who we are. Look in the path if we contain no path at all
5500 *[\\/]* ) as_myself=$0 ;;
5501 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5505 test -z "$as_dir" && as_dir=.
5506 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5511 # We did not find ourselves, most probably we were run as `sh COMMAND'
5512 # in which case we are not to be found in the path.
5513 if test "x$as_myself" = x; then
5516 if test ! -f "$as_myself"; then
5517 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
5518 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
5519 { (exit 1); exit 1; }; }
5521 case $CONFIG_SHELL in
5523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5524 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
5527 test -z "$as_dir" && as_dir=.
5528 for as_base in sh bash ksh sh5; do
5531 if ("$as_dir/$as_base" -c '
5534 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5535 test "x$as_lineno_1" != "x$as_lineno_2" &&
5536 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
5537 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
5538 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
5539 CONFIG_SHELL=$as_dir/$as_base
5541 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
5549 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
5550 # uniformly replaced by the line number. The first 'sed' inserts a
5551 # line-number line before each line; the second 'sed' does the real
5552 # work. The second script uses 'N' to pair each line-number line
5553 # with the numbered line, and appends trailing '-' during
5554 # substitution so that $LINENO is not a special case at line end.
5555 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
5556 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
5557 sed '=' <$as_myself |
5562 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
5565 s,^['$as_cr_digits']*\n,,
5567 chmod +x $as_me.lineno ||
5568 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
5569 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
5570 { (exit 1); exit 1; }; }
5572 # Don't try to exec as it changes $[0], causing all sort of problems
5573 # (the dirname of $[0] is not the place where we might find the
5574 # original and so on. Autoconf is especially sensible to this).
5576 # Exit status is that of the last command.
5581 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
5582 *c*,-n*) ECHO_N= ECHO_C='
5584 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
5585 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
5588 if expr a : '\(a\)' >/dev/null 2>&1; then
5594 rm -f conf$$ conf$$.exe conf$$.file
5596 if ln -s conf$$.file conf$$ 2>/dev/null; then
5597 # We could just check for DJGPP; but this test a) works b) is more generic
5598 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
5599 if test -f conf$$.exe; then
5600 # Don't use ln at all; we don't have any links
5605 elif ln conf$$.file conf$$ 2>/dev/null; then
5610 rm -f conf$$ conf$$.exe conf$$.file
5612 if mkdir -p . 2>/dev/null; then
5618 as_executable_p="test -f"
5620 # Sed expression to map a string onto a valid CPP name.
5621 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
5623 # Sed expression to map a string onto a valid variable name.
5624 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
5628 # We need space, tab and new line, in precisely that order.
5638 # Open the log real soon, to keep \$[0] and so on meaningful, and to
5639 # report actual input values of CONFIG_FILES etc. instead of their
5640 # values after options handling. Logging --version etc. is OK.
5644 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5645 ## Running $as_me. ##
5650 This file was extended by $as_me, which was
5651 generated by GNU Autoconf 2.57. Invocation command line was
5653 CONFIG_FILES = $CONFIG_FILES
5654 CONFIG_HEADERS = $CONFIG_HEADERS
5655 CONFIG_LINKS = $CONFIG_LINKS
5656 CONFIG_COMMANDS = $CONFIG_COMMANDS
5660 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
5664 # Files that config.status was made for.
5665 if test -n "$ac_config_files"; then
5666 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
5669 if test -n "$ac_config_headers"; then
5670 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
5673 if test -n "$ac_config_links"; then
5674 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
5677 if test -n "$ac_config_commands"; then
5678 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
5681 cat >>$CONFIG_STATUS <<\_ACEOF
5684 \`$as_me' instantiates files from templates according to the
5685 current configuration.
5687 Usage: $0 [OPTIONS] [FILE]...
5689 -h, --help print this help, then exit
5690 -V, --version print version number, then exit
5691 -q, --quiet do not print progress messages
5692 -d, --debug don't remove temporary files
5693 --recheck update $as_me by reconfiguring in the same conditions
5694 --file=FILE[:TEMPLATE]
5695 instantiate the configuration file FILE
5696 --header=FILE[:TEMPLATE]
5697 instantiate the configuration header FILE
5699 Configuration files:
5702 Configuration headers:
5705 Configuration commands:
5708 Report bugs to <bug-autoconf@gnu.org>."
5711 cat >>$CONFIG_STATUS <<_ACEOF
5714 configured by $0, generated by GNU Autoconf 2.57,
5715 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
5717 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
5718 Free Software Foundation, Inc.
5719 This config.status script is free software; the Free Software Foundation
5720 gives unlimited permission to copy, distribute and modify it."
5725 cat >>$CONFIG_STATUS <<\_ACEOF
5726 # If no file are specified by the user, then we need to provide default
5727 # value. By we need to know if files were specified by the user.
5733 ac_option=`expr "x$1" : 'x\([^=]*\)='`
5734 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
5742 *) # This is not an option, so the user has probably given explicit
5745 ac_need_defaults=false;;
5749 # Handling of the options.
5751 cat >>$CONFIG_STATUS <<\_ACEOF
5752 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5754 --version | --vers* | -V )
5755 echo "$ac_cs_version"; exit 0 ;;
5757 # Conflict between --help and --header
5758 { { echo "$as_me:$LINENO: error: ambiguous option: $1
5759 Try \`$0 --help' for more information." >&5
5760 echo "$as_me: error: ambiguous option: $1
5761 Try \`$0 --help' for more information." >&2;}
5762 { (exit 1); exit 1; }; };;
5763 --help | --hel | -h )
5764 echo "$ac_cs_usage"; exit 0 ;;
5765 --debug | --d* | -d )
5767 --file | --fil | --fi | --f )
5769 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
5770 ac_need_defaults=false;;
5771 --header | --heade | --head | --hea )
5773 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
5774 ac_need_defaults=false;;
5775 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5776 | -silent | --silent | --silen | --sile | --sil | --si | --s)
5780 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
5781 Try \`$0 --help' for more information." >&5
5782 echo "$as_me: error: unrecognized option: $1
5783 Try \`$0 --help' for more information." >&2;}
5784 { (exit 1); exit 1; }; } ;;
5786 *) ac_config_targets="$ac_config_targets $1" ;;
5792 ac_configure_extra_args=
5794 if $ac_cs_silent; then
5796 ac_configure_extra_args="$ac_configure_extra_args --silent"
5800 cat >>$CONFIG_STATUS <<_ACEOF
5801 if \$ac_cs_recheck; then
5802 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
5803 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5808 cat >>$CONFIG_STATUS <<_ACEOF
5810 # INIT-COMMANDS section.
5819 cat >>$CONFIG_STATUS <<\_ACEOF
5820 for ac_config_target in $ac_config_targets
5822 case "$ac_config_target" in
5823 # Handling of arguments.
5824 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5825 "toolbox/Makefile" ) CONFIG_FILES="$CONFIG_FILES toolbox/Makefile" ;;
5826 "mm/Makefile" ) CONFIG_FILES="$CONFIG_FILES mm/Makefile" ;;
5827 "threads/Makefile" ) CONFIG_FILES="$CONFIG_FILES threads/Makefile" ;;
5828 "jit/Makefile" ) CONFIG_FILES="$CONFIG_FILES jit/Makefile" ;;
5829 "alpha/Makefile" ) CONFIG_FILES="$CONFIG_FILES alpha/Makefile" ;;
5830 "mips/Makefile" ) CONFIG_FILES="$CONFIG_FILES mips/Makefile" ;;
5831 "i386/Makefile" ) CONFIG_FILES="$CONFIG_FILES i386/Makefile" ;;
5832 "x86_64/Makefile" ) CONFIG_FILES="$CONFIG_FILES x86_64/Makefile" ;;
5833 "powerpc/Makefile" ) CONFIG_FILES="$CONFIG_FILES powerpc/Makefile" ;;
5834 "nat/Makefile" ) CONFIG_FILES="$CONFIG_FILES nat/Makefile" ;;
5835 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
5836 "narray/Makefile" ) CONFIG_FILES="$CONFIG_FILES narray/Makefile" ;;
5837 "tst/Makefile" ) CONFIG_FILES="$CONFIG_FILES tst/Makefile" ;;
5838 "tst/kaffe/Makefile" ) CONFIG_FILES="$CONFIG_FILES tst/kaffe/Makefile" ;;
5839 "jvmtst/Makefile" ) CONFIG_FILES="$CONFIG_FILES jvmtst/Makefile" ;;
5840 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
5841 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
5842 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
5843 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
5844 { (exit 1); exit 1; }; };;
5848 # If the user did not use the arguments to specify the items to instantiate,
5849 # then the envvar interface is used. Set only those that are not.
5850 # We use the long form for the default assignment because of an extremely
5851 # bizarre bug on SunOS 4.1.3.
5852 if $ac_need_defaults; then
5853 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5854 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5855 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
5858 # Have a temporary directory for convenience. Make it in the build tree
5859 # simply because there is no reason to put it here, and in addition,
5860 # creating and moving files from /tmp can sometimes cause problems.
5861 # Create a temporary directory, and hook for its removal unless debugging.
5864 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
5865 trap '{ (exit 1); exit 1; }' 1 2 13 15
5868 # Create a (secure) tmp directory for tmp files.
5871 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
5872 test -n "$tmp" && test -d "$tmp"
5875 tmp=./confstat$$-$RANDOM
5876 (umask 077 && mkdir $tmp)
5879 echo "$me: cannot create a temporary directory in ." >&2
5880 { (exit 1); exit 1; }
5885 cat >>$CONFIG_STATUS <<_ACEOF
5888 # CONFIG_FILES section.
5891 # No need to generate the scripts if there are no CONFIG_FILES.
5892 # This happens for instance when ./config.status config.h
5893 if test -n "\$CONFIG_FILES"; then
5894 # Protect against being on the right side of a sed subst in config.status.
5895 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
5896 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
5897 s,@SHELL@,$SHELL,;t t
5898 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
5899 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
5900 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
5901 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
5902 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
5903 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
5904 s,@exec_prefix@,$exec_prefix,;t t
5905 s,@prefix@,$prefix,;t t
5906 s,@program_transform_name@,$program_transform_name,;t t
5907 s,@bindir@,$bindir,;t t
5908 s,@sbindir@,$sbindir,;t t
5909 s,@libexecdir@,$libexecdir,;t t
5910 s,@datadir@,$datadir,;t t
5911 s,@sysconfdir@,$sysconfdir,;t t
5912 s,@sharedstatedir@,$sharedstatedir,;t t
5913 s,@localstatedir@,$localstatedir,;t t
5914 s,@libdir@,$libdir,;t t
5915 s,@includedir@,$includedir,;t t
5916 s,@oldincludedir@,$oldincludedir,;t t
5917 s,@infodir@,$infodir,;t t
5918 s,@mandir@,$mandir,;t t
5919 s,@build_alias@,$build_alias,;t t
5920 s,@host_alias@,$host_alias,;t t
5921 s,@target_alias@,$target_alias,;t t
5923 s,@ECHO_C@,$ECHO_C,;t t
5924 s,@ECHO_N@,$ECHO_N,;t t
5925 s,@ECHO_T@,$ECHO_T,;t t
5927 s,@build@,$build,;t t
5928 s,@build_cpu@,$build_cpu,;t t
5929 s,@build_vendor@,$build_vendor,;t t
5930 s,@build_os@,$build_os,;t t
5932 s,@host_cpu@,$host_cpu,;t t
5933 s,@host_vendor@,$host_vendor,;t t
5934 s,@host_os@,$host_os,;t t
5935 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
5936 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
5937 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
5938 s,@PACKAGE@,$PACKAGE,;t t
5939 s,@VERSION@,$VERSION,;t t
5940 s,@ACLOCAL@,$ACLOCAL,;t t
5941 s,@AUTOCONF@,$AUTOCONF,;t t
5942 s,@AUTOMAKE@,$AUTOMAKE,;t t
5943 s,@AUTOHEADER@,$AUTOHEADER,;t t
5944 s,@MAKEINFO@,$MAKEINFO,;t t
5945 s,@SET_MAKE@,$SET_MAKE,;t t
5946 s,@COMPILER_OBJECTS@,$COMPILER_OBJECTS,;t t
5947 s,@ASMPART@,$ASMPART,;t t
5948 s,@SYSDEP_DIR@,$SYSDEP_DIR,;t t
5950 s,@CFLAGS@,$CFLAGS,;t t
5951 s,@LDFLAGS@,$LDFLAGS,;t t
5952 s,@CPPFLAGS@,$CPPFLAGS,;t t
5953 s,@ac_ct_CC@,$ac_ct_CC,;t t
5954 s,@EXEEXT@,$EXEEXT,;t t
5955 s,@OBJEXT@,$OBJEXT,;t t
5956 s,@RANLIB@,$RANLIB,;t t
5957 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
5959 s,@EGREP@,$EGREP,;t t
5960 s,@LIBOBJS@,$LIBOBJS,;t t
5961 s,@LIBTHREAD@,$LIBTHREAD,;t t
5962 s,@THREAD_OBJ@,$THREAD_OBJ,;t t
5963 s,@GC_OBJ@,$GC_OBJ,;t t
5964 s,@BOEHM_LIB@,$BOEHM_LIB,;t t
5965 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
5970 cat >>$CONFIG_STATUS <<\_ACEOF
5971 # Split the substitutions into bite-sized pieces for seds with
5972 # small command number limits, like on Digital OSF/1 and HP-UX.
5974 ac_sed_frag=1 # Number of current file.
5975 ac_beg=1 # First line for current file.
5976 ac_end=$ac_max_sed_lines # Line after last line for current file.
5979 while $ac_more_lines; do
5980 if test $ac_beg -gt 1; then
5981 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5983 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5985 if test ! -s $tmp/subs.frag; then
5988 # The purpose of the label and of the branching condition is to
5989 # speed up the sed processing (if there are no `@' at all, there
5990 # is no need to browse any of the substitutions).
5991 # These are the two extra sed commands mentioned above.
5993 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
5994 if test -z "$ac_sed_cmds"; then
5995 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
5997 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
5999 ac_sed_frag=`expr $ac_sed_frag + 1`
6001 ac_end=`expr $ac_end + $ac_max_sed_lines`
6004 if test -z "$ac_sed_cmds"; then
6007 fi # test -n "$CONFIG_FILES"
6010 cat >>$CONFIG_STATUS <<\_ACEOF
6011 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
6012 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6014 - | *:- | *:-:* ) # input from stdin
6016 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6017 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6018 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6019 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6020 * ) ac_file_in=$ac_file.in ;;
6023 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
6024 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
6025 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6026 X"$ac_file" : 'X\(//\)[^/]' \| \
6027 X"$ac_file" : 'X\(//\)$' \| \
6028 X"$ac_file" : 'X\(/\)' \| \
6029 . : '\(.\)' 2>/dev/null ||
6031 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6032 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6033 /^X\(\/\/\)$/{ s//\1/; q; }
6034 /^X\(\/\).*/{ s//\1/; q; }
6036 { if $as_mkdir_p; then
6041 while test ! -d "$as_dir"; do
6042 as_dirs="$as_dir $as_dirs"
6043 as_dir=`(dirname "$as_dir") 2>/dev/null ||
6044 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6045 X"$as_dir" : 'X\(//\)[^/]' \| \
6046 X"$as_dir" : 'X\(//\)$' \| \
6047 X"$as_dir" : 'X\(/\)' \| \
6048 . : '\(.\)' 2>/dev/null ||
6050 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6051 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6052 /^X\(\/\/\)$/{ s//\1/; q; }
6053 /^X\(\/\).*/{ s//\1/; q; }
6056 test ! -n "$as_dirs" || mkdir $as_dirs
6057 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6058 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6059 { (exit 1); exit 1; }; }; }
6063 if test "$ac_dir" != .; then
6064 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6065 # A "../" for each directory in $ac_dir_suffix.
6066 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6068 ac_dir_suffix= ac_top_builddir=
6072 .) # No --srcdir option. We are building in place.
6074 if test -z "$ac_top_builddir"; then
6077 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
6079 [\\/]* | ?:[\\/]* ) # Absolute path.
6080 ac_srcdir=$srcdir$ac_dir_suffix;
6081 ac_top_srcdir=$srcdir ;;
6083 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
6084 ac_top_srcdir=$ac_top_builddir$srcdir ;;
6086 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
6088 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
6089 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
6090 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
6091 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
6095 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6096 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
6099 if test x"$ac_file" != x-; then
6100 { echo "$as_me:$LINENO: creating $ac_file" >&5
6101 echo "$as_me: creating $ac_file" >&6;}
6104 # Let's still pretend it is `configure' which instantiates (i.e., don't
6105 # use $as_me), people would be surprised to read:
6106 # /* config.h. Generated by config.status. */
6107 if test x"$ac_file" = x-; then
6110 configure_input="$ac_file. "
6112 configure_input=$configure_input"Generated from `echo $ac_file_in |
6113 sed 's,.*/,,'` by configure."
6115 # First look for the input files in the build tree, otherwise in the
6117 ac_file_inputs=`IFS=:
6118 for f in $ac_file_in; do
6120 -) echo $tmp/stdin ;;
6122 # Absolute (can't be DOS-style, as IFS=:)
6123 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6124 echo "$as_me: error: cannot find input file: $f" >&2;}
6125 { (exit 1); exit 1; }; }
6128 if test -f "$f"; then
6131 elif test -f "$srcdir/$f"; then
6136 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6137 echo "$as_me: error: cannot find input file: $f" >&2;}
6138 { (exit 1); exit 1; }; }
6141 done` || { (exit 1); exit 1; }
6143 cat >>$CONFIG_STATUS <<_ACEOF
6147 cat >>$CONFIG_STATUS <<\_ACEOF
6149 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6150 s,@configure_input@,$configure_input,;t t
6151 s,@srcdir@,$ac_srcdir,;t t
6152 s,@abs_srcdir@,$ac_abs_srcdir,;t t
6153 s,@top_srcdir@,$ac_top_srcdir,;t t
6154 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
6155 s,@builddir@,$ac_builddir,;t t
6156 s,@abs_builddir@,$ac_abs_builddir,;t t
6157 s,@top_builddir@,$ac_top_builddir,;t t
6158 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
6159 s,@INSTALL@,$ac_INSTALL,;t t
6160 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
6162 if test x"$ac_file" != x-; then
6163 mv $tmp/out $ac_file
6171 cat >>$CONFIG_STATUS <<\_ACEOF
6174 # CONFIG_HEADER section.
6177 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
6178 # NAME is the cpp macro being defined and VALUE is the value it is being given.
6180 # ac_d sets the value in "#define NAME VALUE" lines.
6181 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
6182 ac_dB='[ ].*$,\1#\2'
6185 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6186 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6187 ac_uB='$,\1#\2define\3'
6191 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
6192 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6194 - | *:- | *:-:* ) # input from stdin
6196 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6197 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6198 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6199 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6200 * ) ac_file_in=$ac_file.in ;;
6203 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
6204 echo "$as_me: creating $ac_file" >&6;}
6206 # First look for the input files in the build tree, otherwise in the
6208 ac_file_inputs=`IFS=:
6209 for f in $ac_file_in; do
6211 -) echo $tmp/stdin ;;
6213 # Absolute (can't be DOS-style, as IFS=:)
6214 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6215 echo "$as_me: error: cannot find input file: $f" >&2;}
6216 { (exit 1); exit 1; }; }
6219 if test -f "$f"; then
6222 elif test -f "$srcdir/$f"; then
6227 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6228 echo "$as_me: error: cannot find input file: $f" >&2;}
6229 { (exit 1); exit 1; }; }
6232 done` || { (exit 1); exit 1; }
6233 # Remove the trailing spaces.
6234 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
6238 # Transform confdefs.h into two sed scripts, `conftest.defines' and
6239 # `conftest.undefs', that substitutes the proper values into
6240 # config.h.in to produce config.h. The first handles `#define'
6241 # templates, and the second `#undef' templates.
6242 # And first: Protect against being on the right side of a sed subst in
6243 # config.status. Protect against being in an unquoted here document
6245 rm -f conftest.defines conftest.undefs
6246 # Using a here document instead of a string reduces the quoting nightmare.
6247 # Putting comments in sed scripts is not portable.
6249 # `end' is used to avoid that the second main sed command (meant for
6250 # 0-ary CPP macros) applies to n-ary macro definitions.
6251 # See the Autoconf documentation for `clear'.
6252 cat >confdef2sed.sed <<\_ACEOF
6257 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
6259 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
6262 # If some macros were called several times there might be several times
6263 # the same #defines, which is useless. Nevertheless, we may not want to
6264 # sort them, since we want the *last* AC-DEFINE to be honored.
6265 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
6266 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
6267 rm -f confdef2sed.sed
6269 # This sed command replaces #undef with comments. This is necessary, for
6270 # example, in the case of _POSIX_SOURCE, which is predefined and required
6271 # on some systems where configure will not decide to define it.
6272 cat >>conftest.undefs <<\_ACEOF
6273 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
6276 # Break up conftest.defines because some shells have a limit on the size
6277 # of here documents, and old seds have small limits too (100 cmds).
6278 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
6279 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
6280 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
6281 echo ' :' >>$CONFIG_STATUS
6283 while grep . conftest.defines >/dev/null
6285 # Write a limited-size here document to $tmp/defines.sed.
6286 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
6287 # Speed up: don't consider the non `#define' lines.
6288 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
6289 # Work around the forget-to-reset-the-flag bug.
6290 echo 't clr' >>$CONFIG_STATUS
6291 echo ': clr' >>$CONFIG_STATUS
6292 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
6294 sed -f $tmp/defines.sed $tmp/in >$tmp/out
6298 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
6299 rm -f conftest.defines
6300 mv conftest.tail conftest.defines
6302 rm -f conftest.defines
6303 echo ' fi # grep' >>$CONFIG_STATUS
6304 echo >>$CONFIG_STATUS
6306 # Break up conftest.undefs because some shells have a limit on the size
6307 # of here documents, and old seds have small limits too (100 cmds).
6308 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
6310 while grep . conftest.undefs >/dev/null
6312 # Write a limited-size here document to $tmp/undefs.sed.
6313 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
6314 # Speed up: don't consider the non `#undef'
6315 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
6316 # Work around the forget-to-reset-the-flag bug.
6317 echo 't clr' >>$CONFIG_STATUS
6318 echo ': clr' >>$CONFIG_STATUS
6319 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
6321 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
6325 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
6326 rm -f conftest.undefs
6327 mv conftest.tail conftest.undefs
6329 rm -f conftest.undefs
6331 cat >>$CONFIG_STATUS <<\_ACEOF
6332 # Let's still pretend it is `configure' which instantiates (i.e., don't
6333 # use $as_me), people would be surprised to read:
6334 # /* config.h. Generated by config.status. */
6335 if test x"$ac_file" = x-; then
6336 echo "/* Generated by configure. */" >$tmp/config.h
6338 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
6340 cat $tmp/in >>$tmp/config.h
6342 if test x"$ac_file" != x-; then
6343 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
6344 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
6345 echo "$as_me: $ac_file is unchanged" >&6;}
6347 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
6348 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6349 X"$ac_file" : 'X\(//\)[^/]' \| \
6350 X"$ac_file" : 'X\(//\)$' \| \
6351 X"$ac_file" : 'X\(/\)' \| \
6352 . : '\(.\)' 2>/dev/null ||
6354 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6355 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6356 /^X\(\/\/\)$/{ s//\1/; q; }
6357 /^X\(\/\).*/{ s//\1/; q; }
6359 { if $as_mkdir_p; then
6364 while test ! -d "$as_dir"; do
6365 as_dirs="$as_dir $as_dirs"
6366 as_dir=`(dirname "$as_dir") 2>/dev/null ||
6367 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6368 X"$as_dir" : 'X\(//\)[^/]' \| \
6369 X"$as_dir" : 'X\(//\)$' \| \
6370 X"$as_dir" : 'X\(/\)' \| \
6371 . : '\(.\)' 2>/dev/null ||
6373 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6374 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6375 /^X\(\/\/\)$/{ s//\1/; q; }
6376 /^X\(\/\).*/{ s//\1/; q; }
6379 test ! -n "$as_dirs" || mkdir $as_dirs
6380 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6381 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6382 { (exit 1); exit 1; }; }; }
6385 mv $tmp/config.h $ac_file
6393 cat >>$CONFIG_STATUS <<\_ACEOF
6396 # CONFIG_COMMANDS section.
6398 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
6399 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
6400 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
6401 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
6402 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6403 X"$ac_dest" : 'X\(//\)[^/]' \| \
6404 X"$ac_dest" : 'X\(//\)$' \| \
6405 X"$ac_dest" : 'X\(/\)' \| \
6406 . : '\(.\)' 2>/dev/null ||
6408 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6409 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6410 /^X\(\/\/\)$/{ s//\1/; q; }
6411 /^X\(\/\).*/{ s//\1/; q; }
6415 if test "$ac_dir" != .; then
6416 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6417 # A "../" for each directory in $ac_dir_suffix.
6418 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6420 ac_dir_suffix= ac_top_builddir=
6424 .) # No --srcdir option. We are building in place.
6426 if test -z "$ac_top_builddir"; then
6429 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
6431 [\\/]* | ?:[\\/]* ) # Absolute path.
6432 ac_srcdir=$srcdir$ac_dir_suffix;
6433 ac_top_srcdir=$srcdir ;;
6435 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
6436 ac_top_srcdir=$ac_top_builddir$srcdir ;;
6438 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
6440 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
6441 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
6442 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
6443 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
6446 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
6447 echo "$as_me: executing $ac_dest commands" >&6;}
6449 default-1 ) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h ;;
6454 cat >>$CONFIG_STATUS <<\_ACEOF
6456 { (exit 0); exit 0; }
6458 chmod +x $CONFIG_STATUS
6459 ac_clean_files=$ac_clean_files_save
6462 # configure is writing to config.log, and then calls config.status.
6463 # config.status does its own redirection, appending to config.log.
6464 # Unfortunately, on DOS this fails, as config.log is still kept open
6465 # by configure, so config.status won't be able to write to it; its
6466 # output is simply discarded. So we exec the FD to /dev/null,
6467 # effectively closing config.log, so it can be properly (re)opened and
6468 # appended to by config.status. When coming back to configure, we
6469 # need to make the FD available again.
6470 if test "$no_create" != yes; then
6472 ac_config_status_args=
6473 test "$silent" = yes &&
6474 ac_config_status_args="$ac_config_status_args --quiet"
6476 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6478 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6479 # would make configure fail if this is the last instruction.
6480 $ac_cs_success || { (exit 1); exit 1; }