2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for GRUB 1.93.
5 # Report bugs to <bug-grub@gnu.org>.
7 # Copyright (C) 2003 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization. ##
12 ## --------------------- ##
14 # Be Bourne compatible
15 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
24 DUALCASE
=1; export DUALCASE
# for MKS sh
26 # Support unset when possible.
27 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
42 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
46 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47 eval $as_var=C
; export $as_var
53 # Required to use basename.
54 if expr a
: '\(a\)' >/dev
/null
2>&1; then
60 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
67 # Name of the executable.
68 as_me
=`$as_basename "$0" ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70 X"$0" : 'X\(//\)$' \| \
71 X"$0" : 'X\(/\)$' \| \
72 . : '\(.\)' 2>/dev/null ||
74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75 /^X\/\(\/\/\)$/{ s//\1/; q; }
76 /^X\/\(\/\).*/{ s//\1/; q; }
80 # PATH needs CR, and LINENO needs CR and PATH.
81 # Avoid depending upon Character Ranges.
82 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
83 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
85 as_cr_digits
='0123456789'
86 as_cr_alnum
=$as_cr_Letters$as_cr_digits
88 # The user is always right.
89 if test "${PATH_SEPARATOR+set}" != set; then
90 echo "#! /bin/sh" >conf$$.sh
91 echo "exit 0" >>conf$$.sh
93 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
104 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
105 test "x$as_lineno_1" != "x$as_lineno_2" &&
106 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
107 # Find who we are. Look in the path if we contain no path at all
110 *[\\/]* ) as_myself
=$0 ;;
111 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
115 test -z "$as_dir" && as_dir
=.
116 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
121 # We did not find ourselves, most probably we were run as `sh COMMAND'
122 # in which case we are not to be found in the path.
123 if test "x$as_myself" = x
; then
126 if test ! -f "$as_myself"; then
127 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128 { (exit 1); exit 1; }; }
130 case $CONFIG_SHELL in
132 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
133 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
136 test -z "$as_dir" && as_dir
=.
137 for as_base
in sh bash ksh sh5
; do
140 if ("$as_dir/$as_base" -c '
143 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144 test "x$as_lineno_1" != "x$as_lineno_2" &&
145 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
146 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
147 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
148 CONFIG_SHELL
=$as_dir/$as_base
150 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
158 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159 # uniformly replaced by the line number. The first 'sed' inserts a
160 # line-number line before each line; the second 'sed' does the real
161 # work. The second script uses 'N' to pair each line-number line
162 # with the numbered line, and appends trailing '-' during
163 # substitution so that $LINENO is not a special case at line end.
164 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
166 sed '=' <$as_myself |
171 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
174 s,^['$as_cr_digits']*\n,,
176 chmod +x
$as_me.lineno ||
177 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178 { (exit 1); exit 1; }; }
180 # Don't try to exec as it changes $[0], causing all sort of problems
181 # (the dirname of $[0] is not the place where we might find the
182 # original and so on. Autoconf is especially sensible to this).
184 # Exit status is that of the last command.
189 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190 *c
*,-n*) ECHO_N
= ECHO_C
='
192 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
193 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
196 if expr a
: '\(a\)' >/dev
/null
2>&1; then
202 rm -f conf$$ conf$$.exe conf$$.
file
204 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
205 # We could just check for DJGPP; but this test a) works b) is more generic
206 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207 if test -f conf$$.exe
; then
208 # Don't use ln at all; we don't have any links
213 elif ln conf$$.
file conf$$
2>/dev
/null
; then
218 rm -f conf$$ conf$$.exe conf$$.
file
220 if mkdir
-p .
2>/dev
/null
; then
223 test -d .
/-p && rmdir .
/-p
227 as_executable_p
="test -f"
229 # Sed expression to map a string onto a valid CPP name.
230 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
232 # Sed expression to map a string onto a valid variable name.
233 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
237 # We need space, tab and new line, in precisely that order.
247 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
248 # so uname gets run too.
249 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
256 ac_default_prefix
=/usr
/local
257 ac_config_libobj_dir
=.
262 SHELL
=${CONFIG_SHELL-/bin/sh}
264 # Maximum number of lines to put in a shell here document.
265 # This variable seems obsolete. It should probably be removed, and
266 # only ac_max_sed_lines should be used.
267 : ${ac_max_here_lines=38}
269 # Identity of this package.
271 PACKAGE_TARNAME
='grub'
272 PACKAGE_VERSION
='1.93'
273 PACKAGE_STRING
='GRUB 1.93'
274 PACKAGE_BUGREPORT
='bug-grub@gnu.org'
276 ac_unique_file
="include/grub/dl.h"
277 # Factoring default headers for most tests.
278 ac_includes_default
="\
281 # include <sys/types.h>
284 # include <sys/stat.h>
295 # if !STDC_HEADERS && HAVE_MEMORY_H
301 # include <strings.h>
304 # include <inttypes.h>
314 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 CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT YACC INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA SET_MAKE OBJCOPY ac_ct_OBJCOPY STRIP ac_ct_STRIP NM ac_ct_NM LD ac_ct_LD RUBY BUILD_CC CPP EGREP LIBLZO LIBCURSES LIBOBJS LTLIBOBJS'
317 # Initialize some variables set by options.
319 ac_init_version
=false
320 # The variables have the same names as the options, with
321 # dashes changed to underlines.
329 program_transform_name
=s
,x
,x
,
337 # Installation directory options.
338 # These are left unexpanded so users can "make install exec_prefix=/foo"
339 # and all the variables that are supposed to be based on exec_prefix
340 # by default will actually change.
341 # Use braces instead of parens because sh, perl, etc. also accept them.
342 bindir
='${exec_prefix}/bin'
343 sbindir
='${exec_prefix}/sbin'
344 libexecdir
='${exec_prefix}/libexec'
345 datadir
='${prefix}/share'
346 sysconfdir
='${prefix}/etc'
347 sharedstatedir
='${prefix}/com'
348 localstatedir
='${prefix}/var'
349 libdir
='${exec_prefix}/lib'
350 includedir
='${prefix}/include'
351 oldincludedir
='/usr/include'
352 infodir
='${prefix}/info'
353 mandir
='${prefix}/man'
358 # If the previous option needs an argument, assign it.
359 if test -n "$ac_prev"; then
360 eval "$ac_prev=\$ac_option"
365 ac_optarg
=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
367 # Accept the important Cygnus configure options, so we can diagnose typos.
371 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
373 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
376 -build |
--build |
--buil |
--bui |
--bu)
377 ac_prev
=build_alias
;;
378 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
379 build_alias
=$ac_optarg ;;
381 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
382 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
383 ac_prev
=cache_file
;;
384 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
385 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
386 cache_file
=$ac_optarg ;;
389 cache_file
=config.cache
;;
391 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
393 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
395 datadir
=$ac_optarg ;;
397 -disable-* |
--disable-*)
398 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
399 # Reject names that are not valid shell variable names.
400 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
401 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
402 { (exit 1); exit 1; }; }
403 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
404 eval "enable_$ac_feature=no" ;;
406 -enable-* |
--enable-*)
407 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
408 # Reject names that are not valid shell variable names.
409 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
410 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
411 { (exit 1); exit 1; }; }
412 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
414 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
417 eval "enable_$ac_feature='$ac_optarg'" ;;
419 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
420 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
421 |
--exec |
--exe |
--ex)
422 ac_prev
=exec_prefix
;;
423 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
424 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
425 |
--exec=* |
--exe=* |
--ex=*)
426 exec_prefix
=$ac_optarg ;;
428 -gas |
--gas |
--ga |
--g)
429 # Obsolete; use --with-gas.
432 -help |
--help |
--hel |
--he |
-h)
434 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
435 ac_init_help
=recursive
;;
436 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
437 ac_init_help
=short
;;
439 -host |
--host |
--hos |
--ho)
440 ac_prev
=host_alias
;;
441 -host=* |
--host=* |
--hos=* |
--ho=*)
442 host_alias
=$ac_optarg ;;
444 -includedir |
--includedir |
--includedi |
--included |
--include \
445 |
--includ |
--inclu |
--incl |
--inc)
446 ac_prev
=includedir
;;
447 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
448 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
449 includedir
=$ac_optarg ;;
451 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
453 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
454 infodir
=$ac_optarg ;;
456 -libdir |
--libdir |
--libdi |
--libd)
458 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
461 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
462 |
--libexe |
--libex |
--libe)
463 ac_prev
=libexecdir
;;
464 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
465 |
--libexe=* |
--libex=* |
--libe=*)
466 libexecdir
=$ac_optarg ;;
468 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
469 |
--localstate |
--localstat |
--localsta |
--localst \
470 |
--locals |
--local |
--loca |
--loc |
--lo)
471 ac_prev
=localstatedir
;;
472 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
473 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
474 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
475 localstatedir
=$ac_optarg ;;
477 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
479 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
483 # Obsolete; use --without-fp.
486 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
487 |
--no-cr |
--no-c |
-n)
490 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
491 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
494 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
495 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
496 |
--oldin |
--oldi |
--old |
--ol |
--o)
497 ac_prev
=oldincludedir
;;
498 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
499 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
500 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
501 oldincludedir
=$ac_optarg ;;
503 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
505 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
508 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
509 |
--program-pre |
--program-pr |
--program-p)
510 ac_prev
=program_prefix
;;
511 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
512 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
513 program_prefix
=$ac_optarg ;;
515 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
516 |
--program-suf |
--program-su |
--program-s)
517 ac_prev
=program_suffix
;;
518 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
519 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
520 program_suffix
=$ac_optarg ;;
522 -program-transform-name |
--program-transform-name \
523 |
--program-transform-nam |
--program-transform-na \
524 |
--program-transform-n |
--program-transform- \
525 |
--program-transform |
--program-transfor \
526 |
--program-transfo |
--program-transf \
527 |
--program-trans |
--program-tran \
528 |
--progr-tra |
--program-tr |
--program-t)
529 ac_prev
=program_transform_name
;;
530 -program-transform-name=* |
--program-transform-name=* \
531 |
--program-transform-nam=* |
--program-transform-na=* \
532 |
--program-transform-n=* |
--program-transform-=* \
533 |
--program-transform=* |
--program-transfor=* \
534 |
--program-transfo=* |
--program-transf=* \
535 |
--program-trans=* |
--program-tran=* \
536 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
537 program_transform_name
=$ac_optarg ;;
539 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
540 |
-silent |
--silent |
--silen |
--sile |
--sil)
543 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
545 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
547 sbindir
=$ac_optarg ;;
549 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
550 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
551 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
553 ac_prev
=sharedstatedir
;;
554 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
555 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
556 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
558 sharedstatedir
=$ac_optarg ;;
560 -site |
--site |
--sit)
562 -site=* |
--site=* |
--sit=*)
565 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
567 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
570 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
571 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
572 ac_prev
=sysconfdir
;;
573 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
574 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
575 sysconfdir
=$ac_optarg ;;
577 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
578 ac_prev
=target_alias
;;
579 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
580 target_alias
=$ac_optarg ;;
582 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
585 -version |
--version |
--versio |
--versi |
--vers |
-V)
589 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
590 # Reject names that are not valid shell variable names.
591 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
592 { echo "$as_me: error: invalid package name: $ac_package" >&2
593 { (exit 1); exit 1; }; }
594 ac_package
=`echo $ac_package| sed 's/-/_/g'`
596 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
599 eval "with_$ac_package='$ac_optarg'" ;;
601 -without-* |
--without-*)
602 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
603 # Reject names that are not valid shell variable names.
604 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
605 { echo "$as_me: error: invalid package name: $ac_package" >&2
606 { (exit 1); exit 1; }; }
607 ac_package
=`echo $ac_package | sed 's/-/_/g'`
608 eval "with_$ac_package=no" ;;
611 # Obsolete; use --with-x.
614 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
615 |
--x-incl |
--x-inc |
--x-in |
--x-i)
616 ac_prev
=x_includes
;;
617 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
618 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
619 x_includes
=$ac_optarg ;;
621 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
622 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
623 ac_prev
=x_libraries
;;
624 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
625 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
626 x_libraries
=$ac_optarg ;;
628 -*) { echo "$as_me: error: unrecognized option: $ac_option
629 Try \`$0 --help' for more information." >&2
630 { (exit 1); exit 1; }; }
634 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
635 # Reject names that are not valid shell variable names.
636 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
637 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
638 { (exit 1); exit 1; }; }
639 ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
640 eval "$ac_envvar='$ac_optarg'"
644 # FIXME: should be removed in autoconf 3.0.
645 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
646 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
647 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
648 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
654 if test -n "$ac_prev"; then
655 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
656 { echo "$as_me: error: missing argument to $ac_option" >&2
657 { (exit 1); exit 1; }; }
660 # Be sure to have absolute paths.
661 for ac_var
in exec_prefix prefix
663 eval ac_val
=$
`echo $ac_var`
665 [\\/$
]* | ?
:[\\/]* | NONE |
'' ) ;;
666 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
667 { (exit 1); exit 1; }; };;
671 # Be sure to have absolute paths.
672 for ac_var
in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
673 localstatedir libdir includedir oldincludedir infodir mandir
675 eval ac_val
=$
`echo $ac_var`
677 [\\/$
]* | ?
:[\\/]* ) ;;
678 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
679 { (exit 1); exit 1; }; };;
683 # There might be people who depend on the old broken behavior: `$host'
684 # used to hold the argument of --host etc.
685 # FIXME: To remove some day.
690 # FIXME: To remove some day.
691 if test "x$host_alias" != x
; then
692 if test "x$build_alias" = x
; then
693 cross_compiling
=maybe
694 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
695 If a cross compiler is detected then cross compile mode will be used." >&2
696 elif test "x$build_alias" != "x$host_alias"; then
702 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
704 test "$silent" = yes && exec 6>/dev
/null
707 # Find the source files, if location was not specified.
708 if test -z "$srcdir"; then
709 ac_srcdir_defaulted
=yes
710 # Try the directory containing this script, then its parent.
711 ac_confdir
=`(dirname "$0") 2>/dev/null ||
712 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
713 X"$0" : 'X\(//\)[^/]' \| \
714 X"$0" : 'X\(//\)$' \| \
715 X"$0" : 'X\(/\)' \| \
716 . : '\(.\)' 2>/dev/null ||
718 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
719 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
720 /^X\(\/\/\)$/{ s//\1/; q; }
721 /^X\(\/\).*/{ s//\1/; q; }
724 if test ! -r $srcdir/$ac_unique_file; then
728 ac_srcdir_defaulted
=no
730 if test ! -r $srcdir/$ac_unique_file; then
731 if test "$ac_srcdir_defaulted" = yes; then
732 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
733 { (exit 1); exit 1; }; }
735 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
736 { (exit 1); exit 1; }; }
739 (cd $srcdir && test -r .
/$ac_unique_file) 2>/dev
/null ||
740 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
741 { (exit 1); exit 1; }; }
742 srcdir
=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
743 ac_env_build_alias_set
=${build_alias+set}
744 ac_env_build_alias_value
=$build_alias
745 ac_cv_env_build_alias_set
=${build_alias+set}
746 ac_cv_env_build_alias_value
=$build_alias
747 ac_env_host_alias_set
=${host_alias+set}
748 ac_env_host_alias_value
=$host_alias
749 ac_cv_env_host_alias_set
=${host_alias+set}
750 ac_cv_env_host_alias_value
=$host_alias
751 ac_env_target_alias_set
=${target_alias+set}
752 ac_env_target_alias_value
=$target_alias
753 ac_cv_env_target_alias_set
=${target_alias+set}
754 ac_cv_env_target_alias_value
=$target_alias
755 ac_env_CC_set
=${CC+set}
757 ac_cv_env_CC_set
=${CC+set}
758 ac_cv_env_CC_value
=$CC
759 ac_env_CFLAGS_set
=${CFLAGS+set}
760 ac_env_CFLAGS_value
=$CFLAGS
761 ac_cv_env_CFLAGS_set
=${CFLAGS+set}
762 ac_cv_env_CFLAGS_value
=$CFLAGS
763 ac_env_LDFLAGS_set
=${LDFLAGS+set}
764 ac_env_LDFLAGS_value
=$LDFLAGS
765 ac_cv_env_LDFLAGS_set
=${LDFLAGS+set}
766 ac_cv_env_LDFLAGS_value
=$LDFLAGS
767 ac_env_CPPFLAGS_set
=${CPPFLAGS+set}
768 ac_env_CPPFLAGS_value
=$CPPFLAGS
769 ac_cv_env_CPPFLAGS_set
=${CPPFLAGS+set}
770 ac_cv_env_CPPFLAGS_value
=$CPPFLAGS
771 ac_env_CPP_set
=${CPP+set}
772 ac_env_CPP_value
=$CPP
773 ac_cv_env_CPP_set
=${CPP+set}
774 ac_cv_env_CPP_value
=$CPP
777 # Report the --help message.
779 if test "$ac_init_help" = "long"; then
780 # Omit some internal or obsolete options to make the list less imposing.
781 # This message is too long to be a string in the A/UX 3.1 sh.
783 \`configure' configures GRUB 1.93 to adapt to many kinds of systems.
785 Usage: $0 [OPTION]... [VAR=VALUE]...
787 To assign environment variables (e.g., CC, CFLAGS...), specify them as
788 VAR=VALUE. See below for descriptions of some of the useful variables.
790 Defaults for the options are specified in brackets.
793 -h, --help display this help and exit
794 --help=short display options specific to this package
795 --help=recursive display the short help of all the included packages
796 -V, --version display version information and exit
797 -q, --quiet, --silent do not print \`checking...' messages
798 --cache-file=FILE cache test results in FILE [disabled]
799 -C, --config-cache alias for \`--cache-file=config.cache'
800 -n, --no-create do not create output files
801 --srcdir=DIR find the sources in DIR [configure dir or \`..']
806 Installation directories:
807 --prefix=PREFIX install architecture-independent files in PREFIX
809 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
812 By default, \`make install' will install all the files in
813 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
814 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
815 for instance \`--prefix=\$HOME'.
817 For better control, use the options below.
819 Fine tuning of the installation directories:
820 --bindir=DIR user executables [EPREFIX/bin]
821 --sbindir=DIR system admin executables [EPREFIX/sbin]
822 --libexecdir=DIR program executables [EPREFIX/libexec]
823 --datadir=DIR read-only architecture-independent data [PREFIX/share]
824 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
825 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
826 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
827 --libdir=DIR object code libraries [EPREFIX/lib]
828 --includedir=DIR C header files [PREFIX/include]
829 --oldincludedir=DIR C header files for non-gcc [/usr/include]
830 --infodir=DIR info documentation [PREFIX/info]
831 --mandir=DIR man documentation [PREFIX/man]
837 --build=BUILD configure
for building on BUILD
[guessed
]
838 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
842 if test -n "$ac_init_help"; then
843 case $ac_init_help in
844 short | recursive
) echo "Configuration of GRUB 1.93:";;
849 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
850 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
851 --disable-largefile omit support
for large files
853 Some influential environment variables
:
854 CC C compiler
command
855 CFLAGS C compiler flags
856 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
857 nonstandard directory
<lib dir
>
858 CPPFLAGS C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if you have
859 headers
in a nonstandard directory
<include dir
>
862 Use these variables to override the choices made by
`configure' or to help
863 it to find libraries and programs with nonstandard names/locations.
865 Report bugs to <bug-grub@gnu.org>.
869 if test "$ac_init_help" = "recursive"; then
870 # If there are subdirs, report their specific --help.
872 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
873 test -d $ac_dir || continue
876 if test "$ac_dir" != .; then
877 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
878 # A "../" for each directory in $ac_dir_suffix.
879 ac_top_builddir=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,../,g'`
881 ac_dir_suffix= ac_top_builddir=
885 .) # No --srcdir option. We are building in place.
887 if test -z "$ac_top_builddir"; then
890 ac_top_srcdir=`echo $ac_top_builddir |
sed 's,/$,,'`
892 [\\/]* | ?:[\\/]* ) # Absolute path.
893 ac_srcdir=$srcdir$ac_dir_suffix;
894 ac_top_srcdir=$srcdir ;;
896 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
897 ac_top_srcdir=$ac_top_builddir$srcdir ;;
900 # Do not use `cd foo
&& pwd` to compute absolute paths, because
901 # the directories may not exist.
903 .) ac_abs_builddir="$ac_dir";;
906 .) ac_abs_builddir=`pwd`;;
907 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
908 *) ac_abs_builddir=`pwd`/"$ac_dir";;
911 case $ac_abs_builddir in
912 .) ac_abs_top_builddir=${ac_top_builddir}.;;
914 case ${ac_top_builddir}. in
915 .) ac_abs_top_builddir=$ac_abs_builddir;;
916 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
917 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
920 case $ac_abs_builddir in
921 .) ac_abs_srcdir=$ac_srcdir;;
924 .) ac_abs_srcdir=$ac_abs_builddir;;
925 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
926 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
929 case $ac_abs_builddir in
930 .) ac_abs_top_srcdir=$ac_top_srcdir;;
932 case $ac_top_srcdir in
933 .) ac_abs_top_srcdir=$ac_abs_builddir;;
934 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
935 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
940 # Check for guested configure; otherwise get Cygnus style configure.
941 if test -f $ac_srcdir/configure.gnu; then
943 $SHELL $ac_srcdir/configure.gnu --help=recursive
944 elif test -f $ac_srcdir/configure; then
946 $SHELL $ac_srcdir/configure --help=recursive
947 elif test -f $ac_srcdir/configure.ac ||
948 test -f $ac_srcdir/configure.in; then
952 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
958 test -n "$ac_init_help" && exit 0
959 if $ac_init_version; then
962 generated by GNU Autoconf 2.59
964 Copyright (C) 2003 Free Software Foundation, Inc.
965 This configure script is free software; the Free Software Foundation
966 gives unlimited permission to copy, distribute and modify it.
972 This file contains any messages produced by compilers while
973 running configure, to aid debugging if configure makes a mistake.
975 It was created by GRUB $as_me 1.93, which was
976 generated by GNU Autoconf 2.59. Invocation command line was
987 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
988 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
989 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
990 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
991 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
993 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
994 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
996 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
997 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
998 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
999 hostinfo = `(hostinfo
) 2>/dev
/null ||
echo unknown
`
1000 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1001 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1002 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1010 test -z "$as_dir" && as_dir=.
1011 echo "PATH: $as_dir"
1026 # Keep a trace of the command line.
1027 # Strip out --no-create and --no-recursion so they do not pile up.
1028 # Strip out --silent because we don't want to record it for future runs.
1029 # Also quote any args containing shell meta-characters.
1030 # Make two passes to allow for proper duplicate-argument suppression.
1035 ac_must_keep_next=false
1041 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1042 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1043 | -silent | --silent | --silen | --sile | --sil)
1045 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1046 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1049 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1051 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1052 if test $ac_must_keep_next = true; then
1053 ac_must_keep_next=false # Got value, back to normal.
1056 *=* | --config-cache | -C | -disable-* | --disable-* \
1057 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1058 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1059 | -with-* | --with-* | -without-* | --without-* | --x)
1060 case "$ac_configure_args0 " in
1061 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1064 -* ) ac_must_keep_next=true ;;
1067 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1068 # Get rid of the leading space.
1074 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1075 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1077 # When interrupted or exit'd, cleanup temporary files, and complete
1078 # config.log. We remove comments because anyway the quotes in there
1079 # would cause problems or look ugly.
1080 # WARNING: Be sure not to use single quotes in there, as some shells,
1081 # such as our DU 5.0 friend, will then `close
' the trap.
1082 trap 'exit_status
=$?
1083 # Save into config.log some information that might help in debugging.
1088 ## ---------------- ##
1089 ## Cache variables. ##
1090 ## ---------------- ##
1093 # The following way of writing the cache mishandles newlines in values,
1096 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1099 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1100 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1104 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1111 ## ----------------- ##
1112 ## Output variables. ##
1113 ## ----------------- ##
1116 for ac_var
in $ac_subst_vars
1118 eval ac_val
=$
`echo $ac_var`
1119 echo "$ac_var='"'"'$ac_val'"'"'"
1123 if test -n "$ac_subst_files"; then
1130 for ac_var
in $ac_subst_files
1132 eval ac_val
=$
`echo $ac_var`
1133 echo "$ac_var='"'"'$ac_val'"'"'"
1138 if test -s confdefs.h
; then
1145 sed "/^$/d" confdefs.h |
sort
1148 test "$ac_signal" != 0 &&
1149 echo "$as_me: caught signal $ac_signal"
1150 echo "$as_me: exit $exit_status"
1152 rm -f core
*.core
&&
1153 rm -rf conftest
* confdefs
* conf$$
* $ac_clean_files &&
1156 for ac_signal in 1 2 13 15; do
1157 trap 'ac_signal
='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1161 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1162 rm -rf conftest* confdefs.h
1163 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1166 # Predefined preprocessor variables.
1168 cat >>confdefs.h <<_ACEOF
1169 #define PACKAGE_NAME "$PACKAGE_NAME"
1173 cat >>confdefs.h <<_ACEOF
1174 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1178 cat >>confdefs.h <<_ACEOF
1179 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1183 cat >>confdefs.h <<_ACEOF
1184 #define PACKAGE_STRING "$PACKAGE_STRING"
1188 cat >>confdefs.h <<_ACEOF
1189 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1193 # Let the site file select an alternate cache file if it wants to.
1194 # Prefer explicitly selected file to automatically selected ones.
1195 if test -z "$CONFIG_SITE"; then
1196 if test "x$prefix" != xNONE; then
1197 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1199 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1202 for ac_site_file in $CONFIG_SITE; do
1203 if test -r "$ac_site_file"; then
1204 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1205 echo "$as_me: loading site script $ac_site_file" >&6;}
1206 sed 's
/^
/|
/' "$ac_site_file" >&5
1211 if test -r "$cache_file"; then
1212 # Some versions of bash will fail to source /dev/null (special
1213 # files actually), so we avoid doing that.
1214 if test -f "$cache_file"; then
1215 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1216 echo "$as_me: loading cache $cache_file" >&6;}
1218 [\\/]* | ?:[\\/]* ) . $cache_file;;
1219 *) . ./$cache_file;;
1223 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1224 echo "$as_me: creating cache $cache_file" >&6;}
1228 # Check that the precious variables saved in the cache have kept the same
1230 ac_cache_corrupted=false
1231 for ac_var in `(set) 2>&1 |
1232 sed -n 's
/^ac_env_\
([a-zA-Z_0-9
]*\
)_set
=.
*/\
1/p
'`; do
1233 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1234 eval ac_new_set=\$ac_env_${ac_var}_set
1235 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1236 eval ac_new_val="\$ac_env_${ac_var}_value"
1237 case $ac_old_set,$ac_new_set in
1239 { echo "$as_me:$LINENO: error: \`$ac_var' was
set to \
`$ac_old_val' in the previous run" >&5
1240 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&2;}
1241 ac_cache_corrupted=: ;;
1243 { echo "$as_me:$LINENO: error
: \
`$ac_var' was not set in the previous run" >&5
1244 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1245 ac_cache_corrupted=: ;;
1248 if test "x$ac_old_val" != "x$ac_new_val"; then
1249 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run
:" >&5
1250 echo "$as_me: error
: \
`$ac_var' has changed since the previous run:" >&2;}
1251 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1252 echo "$as_me: former value: $ac_old_val" >&2;}
1253 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1254 echo "$as_me: current value: $ac_new_val" >&2;}
1255 ac_cache_corrupted=:
1258 # Pass precious variables to config.status.
1259 if test "$ac_new_set" = set; then
1261 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1262 ac_arg=$ac_var=`echo "$ac_new_val" |
sed "s/'/'\\\\\\\\''/g"` ;;
1263 *) ac_arg=$ac_var=$ac_new_val ;;
1265 case " $ac_configure_args " in
1266 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1267 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1271 if $ac_cache_corrupted; then
1272 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1273 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1274 { { echo "$as_me:$LINENO: error: run \`make distclean
' and/or \`rm $cache_file' and start over
" >&5
1275 echo "$as_me: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1276 { (exit 1); exit 1; }; }
1280 ac_cpp='$CPP $CPPFLAGS'
1281 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
1282 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
1283 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1313 ac_config_headers="$ac_config_headers config.h"
1316 # Checks for build and host systems.
1318 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1319 if test -f $ac_dir/install-sh; then
1321 ac_install_sh="$ac_aux_dir/install-sh -c"
1323 elif test -f $ac_dir/install.sh; then
1325 ac_install_sh="$ac_aux_dir/install.sh -c"
1327 elif test -f $ac_dir/shtool; then
1329 ac_install_sh="$ac_aux_dir/shtool install -c"
1333 if test -z "$ac_aux_dir"; then
1334 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1335 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1336 { (exit 1); exit 1; }; }
1338 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1339 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1340 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1342 # Make sure we can run config.sub.
1343 $ac_config_sub sun4 >/dev/null 2>&1 ||
1344 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1345 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1346 { (exit 1); exit 1; }; }
1348 echo "$as_me:$LINENO: checking build system type" >&5
1349 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1350 if test "${ac_cv_build+set}" = set; then
1351 echo $ECHO_N "(cached) $ECHO_C" >&6
1353 ac_cv_build_alias=$build_alias
1354 test -z "$ac_cv_build_alias" &&
1355 ac_cv_build_alias=`$ac_config_guess`
1356 test -z "$ac_cv_build_alias" &&
1357 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1358 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1359 { (exit 1); exit 1; }; }
1360 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1361 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1362 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1363 { (exit 1); exit 1; }; }
1366 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1367 echo "${ECHO_T}$ac_cv_build" >&6
1369 build_cpu=`echo $ac_cv_build | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
1/'`
1370 build_vendor=`echo $ac_cv_build | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
2/'`
1371 build_os=`echo $ac_cv_build | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
3/'`
1374 echo "$as_me:$LINENO: checking host system type" >&5
1375 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1376 if test "${ac_cv_host+set}" = set; then
1377 echo $ECHO_N "(cached) $ECHO_C" >&6
1379 ac_cv_host_alias=$host_alias
1380 test -z "$ac_cv_host_alias" &&
1381 ac_cv_host_alias=$ac_cv_build_alias
1382 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1383 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1384 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1385 { (exit 1); exit 1; }; }
1388 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1389 echo "${ECHO_T}$ac_cv_host" >&6
1391 host_cpu=`echo $ac_cv_host | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
1/'`
1392 host_vendor=`echo $ac_cv_host | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
2/'`
1393 host_os=`echo $ac_cv_host | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
3/'`
1398 i[3456]86) host_cpu=i386 ;;
1399 x86_64) host_cpu=i386 biarch32=1 ;;
1401 powerpc64) host_cpu=powerpc biarch32=1;;
1403 *) { { echo "$as_me:$LINENO: error: unsupported CPU type" >&5
1404 echo "$as_me: error: unsupported CPU type" >&2;}
1405 { (exit 1); exit 1; }; } ;;
1408 case "$host_cpu"-"$host_vendor" in
1409 i386-apple | *-efi) host_vendor=efi ;;
1410 i386-*) host_vendor=pc ;;
1411 powerpc-*) host_vendor=ieee1275 ;;
1412 sparc64-*) host_vendor=ieee1275 ;;
1413 *) { { echo "$as_me:$LINENO: error: unsupported machine type" >&5
1414 echo "$as_me: error: unsupported machine type" >&2;}
1415 { (exit 1); exit 1; }; } ;;
1421 # Checks for programs.
1422 if test "x$CFLAGS" = x; then
1427 ac_cpp='$CPP $CPPFLAGS'
1428 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
1429 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
1430 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1431 if test -n "$ac_tool_prefix"; then
1432 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1433 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1434 echo "$as_me:$LINENO: checking for $ac_word" >&5
1435 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1436 if test "${ac_cv_prog_CC+set}" = set; then
1437 echo $ECHO_N "(cached) $ECHO_C" >&6
1439 if test -n "$CC"; then
1440 ac_cv_prog_CC="$CC" # Let the user override the test.
1442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1446 test -z "$as_dir" && as_dir=.
1447 for ac_exec_ext in '' $ac_executable_extensions; do
1448 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1449 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1450 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1459 if test -n "$CC"; then
1460 echo "$as_me:$LINENO: result: $CC" >&5
1461 echo "${ECHO_T}$CC" >&6
1463 echo "$as_me:$LINENO: result: no" >&5
1464 echo "${ECHO_T}no" >&6
1468 if test -z "$ac_cv_prog_CC"; then
1470 # Extract the first word of "gcc", so it can be a program name with args.
1471 set dummy gcc; ac_word=$2
1472 echo "$as_me:$LINENO: checking for $ac_word" >&5
1473 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1474 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1475 echo $ECHO_N "(cached) $ECHO_C" >&6
1477 if test -n "$ac_ct_CC"; then
1478 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1484 test -z "$as_dir" && as_dir=.
1485 for ac_exec_ext in '' $ac_executable_extensions; do
1486 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1487 ac_cv_prog_ac_ct_CC="gcc"
1488 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1496 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1497 if test -n "$ac_ct_CC"; then
1498 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1499 echo "${ECHO_T}$ac_ct_CC" >&6
1501 echo "$as_me:$LINENO: result: no" >&5
1502 echo "${ECHO_T}no" >&6
1510 if test -z "$CC"; then
1511 if test -n "$ac_tool_prefix"; then
1512 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1513 set dummy ${ac_tool_prefix}cc; ac_word=$2
1514 echo "$as_me:$LINENO: checking for $ac_word" >&5
1515 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1516 if test "${ac_cv_prog_CC+set}" = set; then
1517 echo $ECHO_N "(cached) $ECHO_C" >&6
1519 if test -n "$CC"; then
1520 ac_cv_prog_CC="$CC" # Let the user override the test.
1522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1526 test -z "$as_dir" && as_dir=.
1527 for ac_exec_ext in '' $ac_executable_extensions; do
1528 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1529 ac_cv_prog_CC="${ac_tool_prefix}cc"
1530 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1539 if test -n "$CC"; then
1540 echo "$as_me:$LINENO: result: $CC" >&5
1541 echo "${ECHO_T}$CC" >&6
1543 echo "$as_me:$LINENO: result: no" >&5
1544 echo "${ECHO_T}no" >&6
1548 if test -z "$ac_cv_prog_CC"; then
1550 # Extract the first word of "cc", so it can be a program name with args.
1551 set dummy cc; ac_word=$2
1552 echo "$as_me:$LINENO: checking for $ac_word" >&5
1553 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1554 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1555 echo $ECHO_N "(cached) $ECHO_C" >&6
1557 if test -n "$ac_ct_CC"; then
1558 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1564 test -z "$as_dir" && as_dir=.
1565 for ac_exec_ext in '' $ac_executable_extensions; do
1566 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1567 ac_cv_prog_ac_ct_CC="cc"
1568 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1576 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1577 if test -n "$ac_ct_CC"; then
1578 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1579 echo "${ECHO_T}$ac_ct_CC" >&6
1581 echo "$as_me:$LINENO: result: no" >&5
1582 echo "${ECHO_T}no" >&6
1591 if test -z "$CC"; then
1592 # Extract the first word of "cc", so it can be a program name with args.
1593 set dummy cc; ac_word=$2
1594 echo "$as_me:$LINENO: checking for $ac_word" >&5
1595 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1596 if test "${ac_cv_prog_CC+set}" = set; then
1597 echo $ECHO_N "(cached) $ECHO_C" >&6
1599 if test -n "$CC"; then
1600 ac_cv_prog_CC="$CC" # Let the user override the test.
1603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1607 test -z "$as_dir" && as_dir=.
1608 for ac_exec_ext in '' $ac_executable_extensions; do
1609 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1610 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1611 ac_prog_rejected=yes
1615 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1621 if test $ac_prog_rejected = yes; then
1622 # We found a bogon in the path, so make sure we never use it.
1623 set dummy $ac_cv_prog_CC
1625 if test $# != 0; then
1626 # We chose a different compiler from the bogus one.
1627 # However, it has the same basename, so the bogon will be chosen
1628 # first if we set CC to just the basename; use the full file name.
1630 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1636 if test -n "$CC"; then
1637 echo "$as_me:$LINENO: result: $CC" >&5
1638 echo "${ECHO_T}$CC" >&6
1640 echo "$as_me:$LINENO: result: no" >&5
1641 echo "${ECHO_T}no" >&6
1645 if test -z "$CC"; then
1646 if test -n "$ac_tool_prefix"; then
1649 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1650 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1651 echo "$as_me:$LINENO: checking for $ac_word" >&5
1652 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1653 if test "${ac_cv_prog_CC+set}" = set; then
1654 echo $ECHO_N "(cached) $ECHO_C" >&6
1656 if test -n "$CC"; then
1657 ac_cv_prog_CC="$CC" # Let the user override the test.
1659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1663 test -z "$as_dir" && as_dir=.
1664 for ac_exec_ext in '' $ac_executable_extensions; do
1665 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1666 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1667 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1676 if test -n "$CC"; then
1677 echo "$as_me:$LINENO: result: $CC" >&5
1678 echo "${ECHO_T}$CC" >&6
1680 echo "$as_me:$LINENO: result: no" >&5
1681 echo "${ECHO_T}no" >&6
1684 test -n "$CC" && break
1687 if test -z "$CC"; then
1691 # Extract the first word of "$ac_prog", so it can be a program name with args.
1692 set dummy $ac_prog; ac_word=$2
1693 echo "$as_me:$LINENO: checking for $ac_word" >&5
1694 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1695 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1696 echo $ECHO_N "(cached) $ECHO_C" >&6
1698 if test -n "$ac_ct_CC"; then
1699 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1705 test -z "$as_dir" && as_dir=.
1706 for ac_exec_ext in '' $ac_executable_extensions; do
1707 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1708 ac_cv_prog_ac_ct_CC="$ac_prog"
1709 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1717 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1718 if test -n "$ac_ct_CC"; then
1719 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1720 echo "${ECHO_T}$ac_ct_CC" >&6
1722 echo "$as_me:$LINENO: result: no" >&5
1723 echo "${ECHO_T}no" >&6
1726 test -n "$ac_ct_CC" && break
1735 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1736 See \`config.log' for more details.
" >&5
1737 echo "$as_me: error
: no acceptable C compiler found
in \
$PATH
1738 See \
`config.log' for more details." >&2;}
1739 { (exit 1); exit 1; }; }
1741 # Provide some information about the compiler.
1742 echo "$as_me:$LINENO:" \
1743 "checking for C compiler version" >&5
1744 ac_compiler=`set X
$ac_compile; echo $2`
1745 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1746 (eval $ac_compiler --version </dev/null >&5) 2>&5
1748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1749 (exit $ac_status); }
1750 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1751 (eval $ac_compiler -v </dev/null >&5) 2>&5
1753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1754 (exit $ac_status); }
1755 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1756 (eval $ac_compiler -V </dev/null >&5) 2>&5
1758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1759 (exit $ac_status); }
1761 cat >conftest.$ac_ext <<_ACEOF
1764 cat confdefs.h >>conftest.$ac_ext
1765 cat >>conftest.$ac_ext <<_ACEOF
1766 /* end confdefs.h. */
1776 ac_clean_files_save=$ac_clean_files
1777 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1778 # Try to create an executable without -o first, disregard a.out.
1779 # It will help us diagnose broken compilers, and finding out an intuition
1781 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1782 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1783 ac_link_default=`echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
1784 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1785 (eval $ac_link_default) 2>&5
1787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1788 (exit $ac_status); }; then
1789 # Find the output, starting from the most likely. This scheme is
1790 # not robust to junk in `.
', hence go to wildcards (a.*) only as a last
1793 # Be careful to initialize this variable, since it used to be cached.
1794 # Otherwise an old cache value of `no' led to
`EXEEXT = no' in a Makefile.
1796 # b.out is created by i960 compilers.
1797 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1799 test -f "$ac_file" || continue
1801 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1804 # This is the source file.
1807 # We found the default executable, but exeext='' is most
1811 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1812 # FIXME: I believe we export ac_cv_exeext for Libtool,
1813 # but it would be cool to find out if it's true. Does anybody
1814 # maintain Libtool? --akim.
1822 echo "$as_me: failed program was:" >&5
1823 sed 's/^/| /' conftest.$ac_ext >&5
1825 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1826 See \`config.log
' for more details." >&5
1827 echo "$as_me: error: C compiler cannot create executables
1828 See \`config.log' for more details.
" >&2;}
1829 { (exit 77); exit 77; }; }
1832 ac_exeext=$ac_cv_exeext
1833 echo "$as_me:$LINENO: result
: $ac_file" >&5
1834 echo "${ECHO_T}$ac_file" >&6
1836 # Check the compiler produces executables we can run. If not, either
1837 # the compiler is broken, or we cross compile.
1838 echo "$as_me:$LINENO: checking whether the C compiler works
" >&5
1839 echo $ECHO_N "checking whether the C compiler works...
$ECHO_C" >&6
1840 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1841 # If not cross compiling, check that we can run a simple program.
1842 if test "$cross_compiling" != yes; then
1843 if { ac_try='./$ac_file'
1844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1847 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
1848 (exit $ac_status); }; }; then
1851 if test "$cross_compiling" = maybe; then
1854 { { echo "$as_me:$LINENO: error
: cannot run C compiled programs.
1855 If you meant to cross compile
, use \
`--host'.
1856 See \`config.log
' for more details." >&5
1857 echo "$as_me: error: cannot run C compiled programs.
1858 If you meant to cross compile, use \`--host'.
1859 See \
`config.log' for more details." >&2;}
1860 { (exit 1); exit 1; }; }
1864 echo "$as_me:$LINENO: result: yes" >&5
1865 echo "${ECHO_T}yes" >&6
1867 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1868 ac_clean_files=$ac_clean_files_save
1869 # Check the compiler produces executables we can run. If not, either
1870 # the compiler is broken, or we cross compile.
1871 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1872 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1873 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1874 echo "${ECHO_T}$cross_compiling" >&6
1876 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1877 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1878 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1879 (eval $ac_link) 2>&5
1881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1882 (exit $ac_status); }; then
1883 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
1884 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
1885 # work properly (i.e., refer to `conftest.exe'), while it won't with
1887 for ac_file
in conftest.exe conftest conftest.
*; do
1888 test -f "$ac_file" ||
continue
1890 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
1891 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
1898 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1899 See \`config.log' for more details." >&5
1900 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1901 See \`config.log' for more details." >&2;}
1902 { (exit 1); exit 1; }; }
1905 rm -f conftest
$ac_cv_exeext
1906 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1907 echo "${ECHO_T}$ac_cv_exeext" >&6
1909 rm -f conftest.
$ac_ext
1910 EXEEXT
=$ac_cv_exeext
1912 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1913 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1914 if test "${ac_cv_objext+set}" = set; then
1915 echo $ECHO_N "(cached) $ECHO_C" >&6
1917 cat >conftest.
$ac_ext <<_ACEOF
1920 cat confdefs.h
>>conftest.
$ac_ext
1921 cat >>conftest.
$ac_ext <<_ACEOF
1922 /* end confdefs.h. */
1932 rm -f conftest.o conftest.obj
1933 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1934 (eval $ac_compile) 2>&5
1936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1937 (exit $ac_status); }; then
1938 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1940 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
1941 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
1946 echo "$as_me: failed program was:" >&5
1947 sed 's/^/| /' conftest.
$ac_ext >&5
1949 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1950 See \`config.log' for more details." >&5
1951 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1952 See \`config.log' for more details." >&2;}
1953 { (exit 1); exit 1; }; }
1956 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
1958 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1959 echo "${ECHO_T}$ac_cv_objext" >&6
1960 OBJEXT
=$ac_cv_objext
1962 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1963 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1964 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1965 echo $ECHO_N "(cached) $ECHO_C" >&6
1967 cat >conftest.
$ac_ext <<_ACEOF
1970 cat confdefs.h
>>conftest.
$ac_ext
1971 cat >>conftest.
$ac_ext <<_ACEOF
1972 /* end confdefs.h. */
1985 rm -f conftest.
$ac_objext
1986 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1987 (eval $ac_compile) 2>conftest.er1
1989 grep -v '^ *+' conftest.er1
>conftest.err
1991 cat conftest.err
>&5
1992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1993 (exit $ac_status); } &&
1994 { ac_try
='test -z "$ac_c_werror_flag"
1995 || test ! -s conftest.err'
1996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2000 (exit $ac_status); }; } &&
2001 { ac_try
='test -s conftest.$ac_objext'
2002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006 (exit $ac_status); }; }; then
2009 echo "$as_me: failed program was:" >&5
2010 sed 's/^/| /' conftest.
$ac_ext >&5
2014 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2015 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2018 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2019 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2020 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2021 ac_test_CFLAGS
=${CFLAGS+set}
2022 ac_save_CFLAGS
=$CFLAGS
2024 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2025 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2026 if test "${ac_cv_prog_cc_g+set}" = set; then
2027 echo $ECHO_N "(cached) $ECHO_C" >&6
2029 cat >conftest.
$ac_ext <<_ACEOF
2032 cat confdefs.h
>>conftest.
$ac_ext
2033 cat >>conftest.
$ac_ext <<_ACEOF
2034 /* end confdefs.h. */
2044 rm -f conftest.
$ac_objext
2045 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2046 (eval $ac_compile) 2>conftest.er1
2048 grep -v '^ *+' conftest.er1
>conftest.err
2050 cat conftest.err
>&5
2051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2052 (exit $ac_status); } &&
2053 { ac_try
='test -z "$ac_c_werror_flag"
2054 || test ! -s conftest.err'
2055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2059 (exit $ac_status); }; } &&
2060 { ac_try
='test -s conftest.$ac_objext'
2061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2065 (exit $ac_status); }; }; then
2068 echo "$as_me: failed program was:" >&5
2069 sed 's/^/| /' conftest.
$ac_ext >&5
2073 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2075 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2076 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2077 if test "$ac_test_CFLAGS" = set; then
2078 CFLAGS
=$ac_save_CFLAGS
2079 elif test $ac_cv_prog_cc_g = yes; then
2080 if test "$GCC" = yes; then
2086 if test "$GCC" = yes; then
2092 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2093 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2094 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2095 echo $ECHO_N "(cached) $ECHO_C" >&6
2097 ac_cv_prog_cc_stdc
=no
2099 cat >conftest.
$ac_ext <<_ACEOF
2102 cat confdefs.h
>>conftest.
$ac_ext
2103 cat >>conftest.
$ac_ext <<_ACEOF
2104 /* end confdefs.h. */
2107 #include <sys/types.h>
2108 #include <sys/stat.h>
2109 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2110 struct buf { int x; };
2111 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2112 static char *e (p, i)
2118 static char *f (char * (*g) (char **, int), char **p, ...)
2123 s = g (p, va_arg (v,int));
2128 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2129 function prototypes and stuff, but not '\xHH' hex character constants.
2130 These don't provoke an error unfortunately, instead are silently treated
2131 as 'x'. The following induces an error, until -std1 is added to get
2132 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2133 array size at least. It's necessary to write '\x00'==0 to get something
2134 that's true only with -std1. */
2135 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2137 int test (int i, double x);
2138 struct s1 {int (*f) (int a);};
2139 struct s2 {int (*f) (double a);};
2140 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2146 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2151 # Don't try gcc -ansi; that turns off useful extensions and
2152 # breaks some systems' header files.
2153 # AIX -qlanglvl=ansi
2154 # Ultrix and OSF/1 -std1
2155 # HP-UX 10.20 and later -Ae
2156 # HP-UX older versions -Aa -D_HPUX_SOURCE
2157 # SVR4 -Xc -D__EXTENSIONS__
2158 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2160 CC
="$ac_save_CC $ac_arg"
2161 rm -f conftest.
$ac_objext
2162 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2163 (eval $ac_compile) 2>conftest.er1
2165 grep -v '^ *+' conftest.er1
>conftest.err
2167 cat conftest.err
>&5
2168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2169 (exit $ac_status); } &&
2170 { ac_try
='test -z "$ac_c_werror_flag"
2171 || test ! -s conftest.err'
2172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2176 (exit $ac_status); }; } &&
2177 { ac_try
='test -s conftest.$ac_objext'
2178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2182 (exit $ac_status); }; }; then
2183 ac_cv_prog_cc_stdc
=$ac_arg
2186 echo "$as_me: failed program was:" >&5
2187 sed 's/^/| /' conftest.
$ac_ext >&5
2190 rm -f conftest.err conftest.
$ac_objext
2192 rm -f conftest.
$ac_ext conftest.
$ac_objext
2197 case "x$ac_cv_prog_cc_stdc" in
2199 echo "$as_me:$LINENO: result: none needed" >&5
2200 echo "${ECHO_T}none needed" >&6 ;;
2202 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2203 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2204 CC
="$CC $ac_cv_prog_cc_stdc" ;;
2207 # Some people use a C++ compiler to compile C. Since we use `exit',
2208 # in C++ we need to declare it. In case someone uses the same compiler
2209 # for both compiling C and C++ we need to have the C++ compiler decide
2210 # the declaration of exit, since it's the most demanding environment.
2211 cat >conftest.
$ac_ext <<_ACEOF
2216 rm -f conftest.
$ac_objext
2217 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2218 (eval $ac_compile) 2>conftest.er1
2220 grep -v '^ *+' conftest.er1
>conftest.err
2222 cat conftest.err
>&5
2223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2224 (exit $ac_status); } &&
2225 { ac_try
='test -z "$ac_c_werror_flag"
2226 || test ! -s conftest.err'
2227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2231 (exit $ac_status); }; } &&
2232 { ac_try
='test -s conftest.$ac_objext'
2233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2237 (exit $ac_status); }; }; then
2238 for ac_declaration
in \
2240 'extern "C" void std::exit (int) throw (); using std::exit;' \
2241 'extern "C" void std::exit (int); using std::exit;' \
2242 'extern "C" void exit (int) throw ();' \
2243 'extern "C" void exit (int);' \
2246 cat >conftest.
$ac_ext <<_ACEOF
2249 cat confdefs.h
>>conftest.
$ac_ext
2250 cat >>conftest.
$ac_ext <<_ACEOF
2251 /* end confdefs.h. */
2262 rm -f conftest.
$ac_objext
2263 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2264 (eval $ac_compile) 2>conftest.er1
2266 grep -v '^ *+' conftest.er1
>conftest.err
2268 cat conftest.err
>&5
2269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2270 (exit $ac_status); } &&
2271 { ac_try
='test -z "$ac_c_werror_flag"
2272 || test ! -s conftest.err'
2273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2277 (exit $ac_status); }; } &&
2278 { ac_try
='test -s conftest.$ac_objext'
2279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2283 (exit $ac_status); }; }; then
2286 echo "$as_me: failed program was:" >&5
2287 sed 's/^/| /' conftest.
$ac_ext >&5
2291 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2292 cat >conftest.
$ac_ext <<_ACEOF
2295 cat confdefs.h
>>conftest.
$ac_ext
2296 cat >>conftest.
$ac_ext <<_ACEOF
2297 /* end confdefs.h. */
2307 rm -f conftest.
$ac_objext
2308 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2309 (eval $ac_compile) 2>conftest.er1
2311 grep -v '^ *+' conftest.er1
>conftest.err
2313 cat conftest.err
>&5
2314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2315 (exit $ac_status); } &&
2316 { ac_try
='test -z "$ac_c_werror_flag"
2317 || test ! -s conftest.err'
2318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2322 (exit $ac_status); }; } &&
2323 { ac_try
='test -s conftest.$ac_objext'
2324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2328 (exit $ac_status); }; }; then
2331 echo "$as_me: failed program was:" >&5
2332 sed 's/^/| /' conftest.
$ac_ext >&5
2335 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2338 if test -n "$ac_declaration"; then
2339 echo '#ifdef __cplusplus' >>confdefs.h
2340 echo $ac_declaration >>confdefs.h
2341 echo '#endif' >>confdefs.h
2345 echo "$as_me: failed program was:" >&5
2346 sed 's/^/| /' conftest.
$ac_ext >&5
2349 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2351 ac_cpp
='$CPP $CPPFLAGS'
2352 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2353 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2354 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2357 for ac_prog
in bison
2359 # Extract the first word of "$ac_prog", so it can be a program name with args.
2360 set dummy
$ac_prog; ac_word
=$2
2361 echo "$as_me:$LINENO: checking for $ac_word" >&5
2362 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2363 if test "${ac_cv_prog_YACC+set}" = set; then
2364 echo $ECHO_N "(cached) $ECHO_C" >&6
2366 if test -n "$YACC"; then
2367 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
2369 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2373 test -z "$as_dir" && as_dir
=.
2374 for ac_exec_ext
in '' $ac_executable_extensions; do
2375 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2376 ac_cv_prog_YACC
="$ac_prog"
2377 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2385 YACC
=$ac_cv_prog_YACC
2386 if test -n "$YACC"; then
2387 echo "$as_me:$LINENO: result: $YACC" >&5
2388 echo "${ECHO_T}$YACC" >&6
2390 echo "$as_me:$LINENO: result: no" >&5
2391 echo "${ECHO_T}no" >&6
2394 test -n "$YACC" && break
2397 if test "x$YACC" = x
; then
2398 { { echo "$as_me:$LINENO: error: Could not find bison." >&5
2399 echo "$as_me: error: Could not find bison." >&2;}
2400 { (exit 1); exit 1; }; }
2404 # Check whether --enable-largefile or --disable-largefile was given.
2405 if test "${enable_largefile+set}" = set; then
2406 enableval
="$enable_largefile"
2409 if test "$enable_largefile" != no
; then
2411 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
2412 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
2413 if test "${ac_cv_sys_largefile_CC+set}" = set; then
2414 echo $ECHO_N "(cached) $ECHO_C" >&6
2416 ac_cv_sys_largefile_CC
=no
2417 if test "$GCC" != yes; then
2420 # IRIX 6.2 and later do not support large files by default,
2421 # so use the C compiler's -n32 option if that helps.
2422 cat >conftest.
$ac_ext <<_ACEOF
2425 cat confdefs.h
>>conftest.
$ac_ext
2426 cat >>conftest.
$ac_ext <<_ACEOF
2427 /* end confdefs.h. */
2428 #include <sys/types.h>
2429 /* Check that off_t can represent 2**63 - 1 correctly.
2430 We can't simply define LARGE_OFF_T to be 9223372036854775807,
2431 since some C++ compilers masquerading as C compilers
2432 incorrectly reject 9223372036854775807. */
2433 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
2434 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
2435 && LARGE_OFF_T % 2147483647 == 1)
2445 rm -f conftest.
$ac_objext
2446 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2447 (eval $ac_compile) 2>conftest.er1
2449 grep -v '^ *+' conftest.er1
>conftest.err
2451 cat conftest.err
>&5
2452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2453 (exit $ac_status); } &&
2454 { ac_try
='test -z "$ac_c_werror_flag"
2455 || test ! -s conftest.err'
2456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2460 (exit $ac_status); }; } &&
2461 { ac_try
='test -s conftest.$ac_objext'
2462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2466 (exit $ac_status); }; }; then
2469 echo "$as_me: failed program was:" >&5
2470 sed 's/^/| /' conftest.
$ac_ext >&5
2473 rm -f conftest.err conftest.
$ac_objext
2475 rm -f conftest.
$ac_objext
2476 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2477 (eval $ac_compile) 2>conftest.er1
2479 grep -v '^ *+' conftest.er1
>conftest.err
2481 cat conftest.err
>&5
2482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2483 (exit $ac_status); } &&
2484 { ac_try
='test -z "$ac_c_werror_flag"
2485 || test ! -s conftest.err'
2486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2490 (exit $ac_status); }; } &&
2491 { ac_try
='test -s conftest.$ac_objext'
2492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2496 (exit $ac_status); }; }; then
2497 ac_cv_sys_largefile_CC
=' -n32'; break
2499 echo "$as_me: failed program was:" >&5
2500 sed 's/^/| /' conftest.
$ac_ext >&5
2503 rm -f conftest.err conftest.
$ac_objext
2507 rm -f conftest.
$ac_ext
2510 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
2511 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
2512 if test "$ac_cv_sys_largefile_CC" != no
; then
2513 CC
=$CC$ac_cv_sys_largefile_CC
2516 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
2517 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
2518 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
2519 echo $ECHO_N "(cached) $ECHO_C" >&6
2522 ac_cv_sys_file_offset_bits
=no
2523 cat >conftest.
$ac_ext <<_ACEOF
2526 cat confdefs.h
>>conftest.
$ac_ext
2527 cat >>conftest.
$ac_ext <<_ACEOF
2528 /* end confdefs.h. */
2529 #include <sys/types.h>
2530 /* Check that off_t can represent 2**63 - 1 correctly.
2531 We can't simply define LARGE_OFF_T to be 9223372036854775807,
2532 since some C++ compilers masquerading as C compilers
2533 incorrectly reject 9223372036854775807. */
2534 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
2535 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
2536 && LARGE_OFF_T % 2147483647 == 1)
2546 rm -f conftest.
$ac_objext
2547 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2548 (eval $ac_compile) 2>conftest.er1
2550 grep -v '^ *+' conftest.er1
>conftest.err
2552 cat conftest.err
>&5
2553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2554 (exit $ac_status); } &&
2555 { ac_try
='test -z "$ac_c_werror_flag"
2556 || test ! -s conftest.err'
2557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2561 (exit $ac_status); }; } &&
2562 { ac_try
='test -s conftest.$ac_objext'
2563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2567 (exit $ac_status); }; }; then
2570 echo "$as_me: failed program was:" >&5
2571 sed 's/^/| /' conftest.
$ac_ext >&5
2574 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2575 cat >conftest.
$ac_ext <<_ACEOF
2578 cat confdefs.h
>>conftest.
$ac_ext
2579 cat >>conftest.
$ac_ext <<_ACEOF
2580 /* end confdefs.h. */
2581 #define _FILE_OFFSET_BITS 64
2582 #include <sys/types.h>
2583 /* Check that off_t can represent 2**63 - 1 correctly.
2584 We can't simply define LARGE_OFF_T to be 9223372036854775807,
2585 since some C++ compilers masquerading as C compilers
2586 incorrectly reject 9223372036854775807. */
2587 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
2588 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
2589 && LARGE_OFF_T % 2147483647 == 1)
2599 rm -f conftest.
$ac_objext
2600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2601 (eval $ac_compile) 2>conftest.er1
2603 grep -v '^ *+' conftest.er1
>conftest.err
2605 cat conftest.err
>&5
2606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2607 (exit $ac_status); } &&
2608 { ac_try
='test -z "$ac_c_werror_flag"
2609 || test ! -s conftest.err'
2610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2614 (exit $ac_status); }; } &&
2615 { ac_try
='test -s conftest.$ac_objext'
2616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2620 (exit $ac_status); }; }; then
2621 ac_cv_sys_file_offset_bits
=64; break
2623 echo "$as_me: failed program was:" >&5
2624 sed 's/^/| /' conftest.
$ac_ext >&5
2627 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2631 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
2632 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
2633 if test "$ac_cv_sys_file_offset_bits" != no
; then
2635 cat >>confdefs.h
<<_ACEOF
2636 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
2641 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
2642 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
2643 if test "${ac_cv_sys_large_files+set}" = set; then
2644 echo $ECHO_N "(cached) $ECHO_C" >&6
2647 ac_cv_sys_large_files
=no
2648 cat >conftest.
$ac_ext <<_ACEOF
2651 cat confdefs.h
>>conftest.
$ac_ext
2652 cat >>conftest.
$ac_ext <<_ACEOF
2653 /* end confdefs.h. */
2654 #include <sys/types.h>
2655 /* Check that off_t can represent 2**63 - 1 correctly.
2656 We can't simply define LARGE_OFF_T to be 9223372036854775807,
2657 since some C++ compilers masquerading as C compilers
2658 incorrectly reject 9223372036854775807. */
2659 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
2660 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
2661 && LARGE_OFF_T % 2147483647 == 1)
2671 rm -f conftest.
$ac_objext
2672 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2673 (eval $ac_compile) 2>conftest.er1
2675 grep -v '^ *+' conftest.er1
>conftest.err
2677 cat conftest.err
>&5
2678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2679 (exit $ac_status); } &&
2680 { ac_try
='test -z "$ac_c_werror_flag"
2681 || test ! -s conftest.err'
2682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2686 (exit $ac_status); }; } &&
2687 { ac_try
='test -s conftest.$ac_objext'
2688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2692 (exit $ac_status); }; }; then
2695 echo "$as_me: failed program was:" >&5
2696 sed 's/^/| /' conftest.
$ac_ext >&5
2699 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2700 cat >conftest.
$ac_ext <<_ACEOF
2703 cat confdefs.h
>>conftest.
$ac_ext
2704 cat >>conftest.
$ac_ext <<_ACEOF
2705 /* end confdefs.h. */
2706 #define _LARGE_FILES 1
2707 #include <sys/types.h>
2708 /* Check that off_t can represent 2**63 - 1 correctly.
2709 We can't simply define LARGE_OFF_T to be 9223372036854775807,
2710 since some C++ compilers masquerading as C compilers
2711 incorrectly reject 9223372036854775807. */
2712 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
2713 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
2714 && LARGE_OFF_T % 2147483647 == 1)
2724 rm -f conftest.
$ac_objext
2725 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2726 (eval $ac_compile) 2>conftest.er1
2728 grep -v '^ *+' conftest.er1
>conftest.err
2730 cat conftest.err
>&5
2731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2732 (exit $ac_status); } &&
2733 { ac_try
='test -z "$ac_c_werror_flag"
2734 || test ! -s conftest.err'
2735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2739 (exit $ac_status); }; } &&
2740 { ac_try
='test -s conftest.$ac_objext'
2741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2745 (exit $ac_status); }; }; then
2746 ac_cv_sys_large_files
=1; break
2748 echo "$as_me: failed program was:" >&5
2749 sed 's/^/| /' conftest.
$ac_ext >&5
2752 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2756 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
2757 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
2758 if test "$ac_cv_sys_large_files" != no
; then
2760 cat >>confdefs.h
<<_ACEOF
2761 #define _LARGE_FILES $ac_cv_sys_large_files
2770 test "x$GCC" = xyes ||
{ { echo "$as_me:$LINENO: error: GCC is required" >&5
2771 echo "$as_me: error: GCC is required" >&2;}
2772 { (exit 1); exit 1; }; }
2774 if test "x$default_CFLAGS" = xyes
; then
2776 tmp_CFLAGS
="-Wall -W -Wshadow -Wpointer-arith -Wmissing-prototypes \
2777 -Wundef -Wstrict-prototypes -g"
2779 # optimization flags.
2780 echo "$as_me:$LINENO: checking whether optimization for size works" >&5
2781 echo $ECHO_N "checking whether optimization for size works... $ECHO_C" >&6
2782 if test "${size_flag+set}" = set; then
2783 echo $ECHO_N "(cached) $ECHO_C" >&6
2787 cat >conftest.
$ac_ext <<_ACEOF
2790 cat confdefs.h
>>conftest.
$ac_ext
2791 cat >>conftest.
$ac_ext <<_ACEOF
2792 /* end confdefs.h. */
2802 rm -f conftest.
$ac_objext
2803 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2804 (eval $ac_compile) 2>conftest.er1
2806 grep -v '^ *+' conftest.er1
>conftest.err
2808 cat conftest.err
>&5
2809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2810 (exit $ac_status); } &&
2811 { ac_try
='test -z "$ac_c_werror_flag"
2812 || test ! -s conftest.err'
2813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2817 (exit $ac_status); }; } &&
2818 { ac_try
='test -s conftest.$ac_objext'
2819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2823 (exit $ac_status); }; }; then
2826 echo "$as_me: failed program was:" >&5
2827 sed 's/^/| /' conftest.
$ac_ext >&5
2831 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2834 echo "$as_me:$LINENO: result: $size_flag" >&5
2835 echo "${ECHO_T}$size_flag" >&6
2836 if test "x$size_flag" = xyes
; then
2837 tmp_CFLAGS
="$tmp_CFLAGS -Os"
2839 tmp_CFLAGS
="$tmp_CFLAGS -O2 -fno-strength-reduce -fno-unroll-loops"
2842 # Force no alignment to save space on i386.
2843 if test "x$host_cpu" = xi386
; then
2844 echo "$as_me:$LINENO: checking whether -falign-loops works" >&5
2845 echo $ECHO_N "checking whether -falign-loops works... $ECHO_C" >&6
2846 if test "${falign_loop_flag+set}" = set; then
2847 echo $ECHO_N "(cached) $ECHO_C" >&6
2850 CFLAGS
="-falign-loops=1"
2851 cat >conftest.
$ac_ext <<_ACEOF
2854 cat confdefs.h
>>conftest.
$ac_ext
2855 cat >>conftest.
$ac_ext <<_ACEOF
2856 /* end confdefs.h. */
2866 rm -f conftest.
$ac_objext
2867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2868 (eval $ac_compile) 2>conftest.er1
2870 grep -v '^ *+' conftest.er1
>conftest.err
2872 cat conftest.err
>&5
2873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2874 (exit $ac_status); } &&
2875 { ac_try
='test -z "$ac_c_werror_flag"
2876 || test ! -s conftest.err'
2877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2881 (exit $ac_status); }; } &&
2882 { ac_try
='test -s conftest.$ac_objext'
2883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2887 (exit $ac_status); }; }; then
2888 falign_loop_flag
=yes
2890 echo "$as_me: failed program was:" >&5
2891 sed 's/^/| /' conftest.
$ac_ext >&5
2895 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2898 echo "$as_me:$LINENO: result: $falign_loop_flag" >&5
2899 echo "${ECHO_T}$falign_loop_flag" >&6
2901 if test "x$falign_loop_flag" = xyes
; then
2902 tmp_CFLAGS
="$tmp_CFLAGS -falign-jumps=1 -falign-loops=1 -falign-functions=1"
2904 tmp_CFLAGS
="$tmp_CFLAGS -malign-jumps=1 -malign-loops=1 -malign-functions=1"
2908 if test "x$biarch32" = x1
; then
2909 tmp_CFLAGS
="$tmp_CFLAGS -m32"
2910 LDFLAGS
="$LDFLAGS -m32"
2914 CFLAGS
="$tmp_CFLAGS"
2918 # Defined in aclocal.m4.
2920 echo "$as_me:$LINENO: checking if C symbols get an underscore after compilation" >&5
2921 echo $ECHO_N "checking if C symbols get an underscore after compilation... $ECHO_C" >&6
2922 if test "${grub_cv_asm_uscore+set}" = set; then
2923 echo $ECHO_N "(cached) $ECHO_C" >&6
2925 cat > conftest.c
<<\EOF
2934 if { ac_try
='${CC-cc} ${CFLAGS} -S conftest.c'
2935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2939 (exit $ac_status); }; } && test -s conftest.s
; then
2942 { { echo "$as_me:$LINENO: error: ${CC-cc} failed to produce assembly code" >&5
2943 echo "$as_me: error: ${CC-cc} failed to produce assembly code" >&2;}
2944 { (exit 1); exit 1; }; }
2947 if grep _func conftest.s
>/dev
/null
2>&1; then
2948 grub_cv_asm_uscore
=yes
2950 grub_cv_asm_uscore
=no
2957 if test "x$grub_cv_asm_uscore" = xyes
; then
2959 cat >>confdefs.h
<<_ACEOF
2960 #define HAVE_ASM_USCORE $grub_cv_asm_uscore
2965 echo "$as_me:$LINENO: result: $grub_cv_asm_uscore" >&5
2966 echo "${ECHO_T}$grub_cv_asm_uscore" >&6
2968 if test "x$host_cpu" = xi386
; then
2970 echo "$as_me:$LINENO: checking if start is defined by the compiler" >&5
2971 echo $ECHO_N "checking if start is defined by the compiler... $ECHO_C" >&6
2972 if test "${grub_cv_check_start_symbol+set}" = set; then
2973 echo $ECHO_N "(cached) $ECHO_C" >&6
2975 cat >conftest.
$ac_ext <<_ACEOF
2978 cat confdefs.h
>>conftest.
$ac_ext
2979 cat >>conftest.
$ac_ext <<_ACEOF
2980 /* end confdefs.h. */
2990 rm -f conftest.
$ac_objext conftest
$ac_exeext
2991 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2992 (eval $ac_link) 2>conftest.er1
2994 grep -v '^ *+' conftest.er1
>conftest.err
2996 cat conftest.err
>&5
2997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2998 (exit $ac_status); } &&
2999 { ac_try
='test -z "$ac_c_werror_flag"
3000 || test ! -s conftest.err'
3001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&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 grub_cv_check_start_symbol
=yes
3014 echo "$as_me: failed program was:" >&5
3015 sed 's/^/| /' conftest.
$ac_ext >&5
3017 grub_cv_check_start_symbol
=no
3019 rm -f conftest.err conftest.
$ac_objext \
3020 conftest
$ac_exeext conftest.
$ac_ext
3024 echo "$as_me:$LINENO: result: $grub_cv_check_start_symbol" >&5
3025 echo "${ECHO_T}$grub_cv_check_start_symbol" >&6
3027 echo "$as_me:$LINENO: checking if _start is defined by the compiler" >&5
3028 echo $ECHO_N "checking if _start is defined by the compiler... $ECHO_C" >&6
3029 if test "${grub_cv_check_uscore_start_symbol+set}" = set; then
3030 echo $ECHO_N "(cached) $ECHO_C" >&6
3032 cat >conftest.
$ac_ext <<_ACEOF
3035 cat confdefs.h
>>conftest.
$ac_ext
3036 cat >>conftest.
$ac_ext <<_ACEOF
3037 /* end confdefs.h. */
3047 rm -f conftest.
$ac_objext conftest
$ac_exeext
3048 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3049 (eval $ac_link) 2>conftest.er1
3051 grep -v '^ *+' conftest.er1
>conftest.err
3053 cat conftest.err
>&5
3054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3055 (exit $ac_status); } &&
3056 { ac_try
='test -z "$ac_c_werror_flag"
3057 || test ! -s conftest.err'
3058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3062 (exit $ac_status); }; } &&
3063 { ac_try
='test -s conftest$ac_exeext'
3064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3068 (exit $ac_status); }; }; then
3069 grub_cv_check_uscore_start_symbol
=yes
3071 echo "$as_me: failed program was:" >&5
3072 sed 's/^/| /' conftest.
$ac_ext >&5
3074 grub_cv_check_uscore_start_symbol
=no
3076 rm -f conftest.err conftest.
$ac_objext \
3077 conftest
$ac_exeext conftest.
$ac_ext
3081 echo "$as_me:$LINENO: result: $grub_cv_check_uscore_start_symbol" >&5
3082 echo "${ECHO_T}$grub_cv_check_uscore_start_symbol" >&6
3087 if test "x$grub_cv_check_start_symbol" = xyes
; then
3088 cat >>confdefs.h
<<\_ACEOF
3089 #define START_SYMBOL start
3092 elif test "x$grub_cv_check_uscore_start_symbol" = xyes
; then
3093 cat >>confdefs.h
<<\_ACEOF
3094 #define START_SYMBOL _start
3098 { { echo "$as_me:$LINENO: error: neither start nor _start is defined" >&5
3099 echo "$as_me: error: neither start nor _start is defined" >&2;}
3100 { (exit 1); exit 1; }; }
3104 echo "$as_me:$LINENO: checking if __bss_start is defined by the compiler" >&5
3105 echo $ECHO_N "checking if __bss_start is defined by the compiler... $ECHO_C" >&6
3106 if test "${grub_cv_check_uscore_uscore_bss_start_symbol+set}" = set; then
3107 echo $ECHO_N "(cached) $ECHO_C" >&6
3109 cat >conftest.
$ac_ext <<_ACEOF
3112 cat confdefs.h
>>conftest.
$ac_ext
3113 cat >>conftest.
$ac_ext <<_ACEOF
3114 /* end confdefs.h. */
3119 asm ("incl __bss_start")
3124 rm -f conftest.
$ac_objext conftest
$ac_exeext
3125 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3126 (eval $ac_link) 2>conftest.er1
3128 grep -v '^ *+' conftest.er1
>conftest.err
3130 cat conftest.err
>&5
3131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3132 (exit $ac_status); } &&
3133 { ac_try
='test -z "$ac_c_werror_flag"
3134 || test ! -s conftest.err'
3135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3139 (exit $ac_status); }; } &&
3140 { ac_try
='test -s conftest$ac_exeext'
3141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3145 (exit $ac_status); }; }; then
3146 grub_cv_check_uscore_uscore_bss_start_symbol
=yes
3148 echo "$as_me: failed program was:" >&5
3149 sed 's/^/| /' conftest.
$ac_ext >&5
3151 grub_cv_check_uscore_uscore_bss_start_symbol
=no
3153 rm -f conftest.err conftest.
$ac_objext \
3154 conftest
$ac_exeext conftest.
$ac_ext
3158 echo "$as_me:$LINENO: result: $grub_cv_check_uscore_uscore_bss_start_symbol" >&5
3159 echo "${ECHO_T}$grub_cv_check_uscore_uscore_bss_start_symbol" >&6
3161 echo "$as_me:$LINENO: checking if edata is defined by the compiler" >&5
3162 echo $ECHO_N "checking if edata is defined by the compiler... $ECHO_C" >&6
3163 if test "${grub_cv_check_edata_symbol+set}" = set; then
3164 echo $ECHO_N "(cached) $ECHO_C" >&6
3166 cat >conftest.
$ac_ext <<_ACEOF
3169 cat confdefs.h
>>conftest.
$ac_ext
3170 cat >>conftest.
$ac_ext <<_ACEOF
3171 /* end confdefs.h. */
3181 rm -f conftest.
$ac_objext conftest
$ac_exeext
3182 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3183 (eval $ac_link) 2>conftest.er1
3185 grep -v '^ *+' conftest.er1
>conftest.err
3187 cat conftest.err
>&5
3188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3189 (exit $ac_status); } &&
3190 { ac_try
='test -z "$ac_c_werror_flag"
3191 || test ! -s conftest.err'
3192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3196 (exit $ac_status); }; } &&
3197 { ac_try
='test -s conftest$ac_exeext'
3198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3202 (exit $ac_status); }; }; then
3203 grub_cv_check_edata_symbol
=yes
3205 echo "$as_me: failed program was:" >&5
3206 sed 's/^/| /' conftest.
$ac_ext >&5
3208 grub_cv_check_edata_symbol
=no
3210 rm -f conftest.err conftest.
$ac_objext \
3211 conftest
$ac_exeext conftest.
$ac_ext
3215 echo "$as_me:$LINENO: result: $grub_cv_check_edata_symbol" >&5
3216 echo "${ECHO_T}$grub_cv_check_edata_symbol" >&6
3218 echo "$as_me:$LINENO: checking if _edata is defined by the compiler" >&5
3219 echo $ECHO_N "checking if _edata is defined by the compiler... $ECHO_C" >&6
3220 if test "${grub_cv_check_uscore_edata_symbol+set}" = set; then
3221 echo $ECHO_N "(cached) $ECHO_C" >&6
3223 cat >conftest.
$ac_ext <<_ACEOF
3226 cat confdefs.h
>>conftest.
$ac_ext
3227 cat >>conftest.
$ac_ext <<_ACEOF
3228 /* end confdefs.h. */
3238 rm -f conftest.
$ac_objext conftest
$ac_exeext
3239 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3240 (eval $ac_link) 2>conftest.er1
3242 grep -v '^ *+' conftest.er1
>conftest.err
3244 cat conftest.err
>&5
3245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3246 (exit $ac_status); } &&
3247 { ac_try
='test -z "$ac_c_werror_flag"
3248 || test ! -s conftest.err'
3249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3253 (exit $ac_status); }; } &&
3254 { ac_try
='test -s conftest$ac_exeext'
3255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3259 (exit $ac_status); }; }; then
3260 grub_cv_check_uscore_edata_symbol
=yes
3262 echo "$as_me: failed program was:" >&5
3263 sed 's/^/| /' conftest.
$ac_ext >&5
3265 grub_cv_check_uscore_edata_symbol
=no
3267 rm -f conftest.err conftest.
$ac_objext \
3268 conftest
$ac_exeext conftest.
$ac_ext
3272 echo "$as_me:$LINENO: result: $grub_cv_check_uscore_edata_symbol" >&5
3273 echo "${ECHO_T}$grub_cv_check_uscore_edata_symbol" >&6
3278 if test "x$grub_cv_check_uscore_uscore_bss_start_symbol" = xyes
; then
3279 cat >>confdefs.h
<<\_ACEOF
3280 #define BSS_START_SYMBOL __bss_start
3283 elif test "x$grub_cv_check_edata_symbol" = xyes
; then
3284 cat >>confdefs.h
<<\_ACEOF
3285 #define BSS_START_SYMBOL edata
3288 elif test "x$grub_cv_check_uscore_edata_symbol" = xyes
; then
3289 cat >>confdefs.h
<<\_ACEOF
3290 #define BSS_START_SYMBOL _edata
3294 { { echo "$as_me:$LINENO: error: none of __bss_start, edata or _edata is defined" >&5
3295 echo "$as_me: error: none of __bss_start, edata or _edata is defined" >&2;}
3296 { (exit 1); exit 1; }; }
3300 echo "$as_me:$LINENO: checking if end is defined by the compiler" >&5
3301 echo $ECHO_N "checking if end is defined by the compiler... $ECHO_C" >&6
3302 if test "${grub_cv_check_end_symbol+set}" = set; then
3303 echo $ECHO_N "(cached) $ECHO_C" >&6
3305 cat >conftest.
$ac_ext <<_ACEOF
3308 cat confdefs.h
>>conftest.
$ac_ext
3309 cat >>conftest.
$ac_ext <<_ACEOF
3310 /* end confdefs.h. */
3320 rm -f conftest.
$ac_objext conftest
$ac_exeext
3321 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3322 (eval $ac_link) 2>conftest.er1
3324 grep -v '^ *+' conftest.er1
>conftest.err
3326 cat conftest.err
>&5
3327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3328 (exit $ac_status); } &&
3329 { ac_try
='test -z "$ac_c_werror_flag"
3330 || test ! -s conftest.err'
3331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3335 (exit $ac_status); }; } &&
3336 { ac_try
='test -s conftest$ac_exeext'
3337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3341 (exit $ac_status); }; }; then
3342 grub_cv_check_end_symbol
=yes
3344 echo "$as_me: failed program was:" >&5
3345 sed 's/^/| /' conftest.
$ac_ext >&5
3347 grub_cv_check_end_symbol
=no
3349 rm -f conftest.err conftest.
$ac_objext \
3350 conftest
$ac_exeext conftest.
$ac_ext
3354 echo "$as_me:$LINENO: result: $grub_cv_check_end_symbol" >&5
3355 echo "${ECHO_T}$grub_cv_check_end_symbol" >&6
3357 echo "$as_me:$LINENO: checking if _end is defined by the compiler" >&5
3358 echo $ECHO_N "checking if _end is defined by the compiler... $ECHO_C" >&6
3359 if test "${grub_cv_check_uscore_end_symbol+set}" = set; then
3360 echo $ECHO_N "(cached) $ECHO_C" >&6
3362 cat >conftest.
$ac_ext <<_ACEOF
3365 cat confdefs.h
>>conftest.
$ac_ext
3366 cat >>conftest.
$ac_ext <<_ACEOF
3367 /* end confdefs.h. */
3377 rm -f conftest.
$ac_objext conftest
$ac_exeext
3378 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3379 (eval $ac_link) 2>conftest.er1
3381 grep -v '^ *+' conftest.er1
>conftest.err
3383 cat conftest.err
>&5
3384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3385 (exit $ac_status); } &&
3386 { ac_try
='test -z "$ac_c_werror_flag"
3387 || test ! -s conftest.err'
3388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3392 (exit $ac_status); }; } &&
3393 { ac_try
='test -s conftest$ac_exeext'
3394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3398 (exit $ac_status); }; }; then
3399 grub_cv_check_uscore_end_symbol
=yes
3401 echo "$as_me: failed program was:" >&5
3402 sed 's/^/| /' conftest.
$ac_ext >&5
3404 grub_cv_check_uscore_end_symbol
=no
3406 rm -f conftest.err conftest.
$ac_objext \
3407 conftest
$ac_exeext conftest.
$ac_ext
3411 echo "$as_me:$LINENO: result: $grub_cv_check_uscore_end_symbol" >&5
3412 echo "${ECHO_T}$grub_cv_check_uscore_end_symbol" >&6
3417 if test "x$grub_cv_check_end_symbol" = xyes
; then
3418 cat >>confdefs.h
<<\_ACEOF
3419 #define END_SYMBOL end
3422 elif test "x$grub_cv_check_uscore_end_symbol" = xyes
; then
3423 cat >>confdefs.h
<<\_ACEOF
3424 #define END_SYMBOL _end
3428 { { echo "$as_me:$LINENO: error: neither end nor _end is defined" >&5
3429 echo "$as_me: error: neither end nor _end is defined" >&2;}
3430 { (exit 1); exit 1; }; }
3435 if test "x$host_cpu" = xi386
; then
3437 echo "$as_me:$LINENO: checking whether addr32 must be in the same line as the instruction" >&5
3438 echo $ECHO_N "checking whether addr32 must be in the same line as the instruction... $ECHO_C" >&6
3439 if test "${grub_cv_i386_asm_prefix_requirement+set}" = set; then
3440 echo $ECHO_N "(cached) $ECHO_C" >&6
3442 cat > conftest.s
<<\EOF
3444 l1
: addr32 movb
%al
, l1
3447 if { ac_try
='${CC-cc} ${CFLAGS} -c conftest.s'
3448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3452 (exit $ac_status); }; } && test -s conftest.o
; then
3453 grub_cv_i386_asm_prefix_requirement
=yes
3455 grub_cv_i386_asm_prefix_requirement
=no
3462 if test "x$grub_cv_i386_asm_prefix_requirement" = xyes
; then
3463 grub_tmp_addr32
="addr32"
3464 grub_tmp_data32
="data32"
3466 grub_tmp_addr32
="addr32;"
3467 grub_tmp_data32
="data32;"
3471 cat >>confdefs.h
<<_ACEOF
3472 #define ADDR32 $grub_tmp_addr32
3476 cat >>confdefs.h
<<_ACEOF
3477 #define DATA32 $grub_tmp_data32
3481 echo "$as_me:$LINENO: result: $grub_cv_i386_asm_prefix_requirement" >&5
3482 echo "${ECHO_T}$grub_cv_i386_asm_prefix_requirement" >&6
3485 echo "$as_me:$LINENO: checking for .code16 addr32 assembler support" >&5
3486 echo $ECHO_N "checking for .code16 addr32 assembler support... $ECHO_C" >&6
3487 if test "${grub_cv_i386_asm_addr32+set}" = set; then
3488 echo $ECHO_N "(cached) $ECHO_C" >&6
3490 cat > conftest.s.
in <<\EOF
3492 l1
: @ADDR32@ movb
%al
, l1
3495 if test "x$grub_cv_i386_asm_prefix_requirement" = xyes
; then
3496 sed -e s
/@ADDR32@
/addr32
/ < conftest.s.
in > conftest.s
3498 sed -e s
/@ADDR32@
/addr32\
;/ < conftest.s.
in > conftest.s
3501 if { ac_try
='${CC-cc} ${CFLAGS} -c conftest.s'
3502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3506 (exit $ac_status); }; } && test -s conftest.o
; then
3507 grub_cv_i386_asm_addr32
=yes
3509 grub_cv_i386_asm_addr32
=no
3516 echo "$as_me:$LINENO: result: $grub_cv_i386_asm_addr32" >&5
3517 echo "${ECHO_T}$grub_cv_i386_asm_addr32" >&6
3519 echo "$as_me:$LINENO: checking whether an absolute indirect call/jump must not be prefixed with an asterisk" >&5
3520 echo $ECHO_N "checking whether an absolute indirect call/jump must not be prefixed with an asterisk... $ECHO_C" >&6
3521 if test "${grub_cv_i386_asm_absolute_without_asterisk+set}" = set; then
3522 echo $ECHO_N "(cached) $ECHO_C" >&6
3524 cat > conftest.s
<<\EOF
3531 if { ac_try
='${CC-cc} ${CFLAGS} -c conftest.s'
3532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3536 (exit $ac_status); }; } && test -s conftest.o
; then
3537 grub_cv_i386_asm_absolute_without_asterisk
=no
3539 grub_cv_i386_asm_absolute_without_asterisk
=yes
3546 if test "x$grub_cv_i386_asm_absolute_without_asterisk" = xyes
; then
3548 cat >>confdefs.h
<<\_ACEOF
3549 #define ABSOLUTE_WITHOUT_ASTERISK 1
3554 echo "$as_me:$LINENO: result: $grub_cv_i386_asm_absolute_without_asterisk" >&5
3555 echo "${ECHO_T}$grub_cv_i386_asm_absolute_without_asterisk" >&6
3557 echo "$as_me:$LINENO: checking if GCC has the regparm=3 bug" >&5
3558 echo $ECHO_N "checking if GCC has the regparm=3 bug... $ECHO_C" >&6
3559 if test "${grub_cv_i386_check_nested_functions+set}" = set; then
3560 echo $ECHO_N "(cached) $ECHO_C" >&6
3562 if test "$cross_compiling" = yes; then
3563 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
3564 See \`config.log' for more details." >&5
3565 echo "$as_me: error: cannot run test program while cross compiling
3566 See \`config.log' for more details." >&2;}
3567 { (exit 1); exit 1; }; }
3569 cat >conftest.
$ac_ext <<_ACEOF
3572 cat confdefs.h
>>conftest.
$ac_ext
3573 cat >>conftest.
$ac_ext <<_ACEOF
3574 /* end confdefs.h. */
3583 testfunc (int __attribute__ ((__regparm__ (3))) (*hook) (int a, int b, int *c))
3588 return hook (a, b, &c);
3594 int __attribute__ ((__regparm__ (3))) nestedfunc (int a, int b, int *c)
3596 return a == b && test (c);
3598 return testfunc (nestedfunc) ? 0 : 1;
3602 rm -f conftest
$ac_exeext
3603 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3604 (eval $ac_link) 2>&5
3606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3607 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3612 (exit $ac_status); }; }; then
3613 grub_cv_i386_check_nested_functions
=no
3615 echo "$as_me: program exited with status $ac_status" >&5
3616 echo "$as_me: failed program was:" >&5
3617 sed 's/^/| /' conftest.
$ac_ext >&5
3620 grub_cv_i386_check_nested_functions
=yes
3622 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3627 echo "$as_me:$LINENO: result: $grub_cv_i386_check_nested_functions" >&5
3628 echo "${ECHO_T}$grub_cv_i386_check_nested_functions" >&6
3630 if test "x$grub_cv_i386_check_nested_functions" = xyes
; then
3632 cat >>confdefs.h
<<\_ACEOF
3633 #define NESTED_FUNC_ATTR __attribute__ ((__regparm__ (2)))
3638 cat >>confdefs.h
<<\_ACEOF
3639 #define NESTED_FUNC_ATTR __attribute__ ((__regparm__ (2)))
3646 cat >>confdefs.h
<<\_ACEOF
3647 #define NESTED_FUNC_ATTR
3652 # Find a good install program. We prefer a C program (faster),
3653 # so one script is as good as another. But avoid the broken or
3654 # incompatible versions:
3655 # SysV /etc/install, /usr/sbin/install
3656 # SunOS /usr/etc/install
3657 # IRIX /sbin/install
3659 # AmigaOS /C/install, which installs bootblocks on floppy discs
3660 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3661 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3662 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3663 # OS/2's system install, which has a completely different semantic
3664 # ./install, which can be erroneously created by make from ./install.sh.
3665 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3666 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3667 if test -z "$INSTALL"; then
3668 if test "${ac_cv_path_install+set}" = set; then
3669 echo $ECHO_N "(cached) $ECHO_C" >&6
3671 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3675 test -z "$as_dir" && as_dir
=.
3676 # Account for people who put trailing slashes in PATH elements.
3678 .
/ | .
// |
/cC
/* | \
3679 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
3680 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
3683 # OSF1 and SCO ODT 3.0 have their own names for install.
3684 # Don't use installbsd from OSF since it installs stuff as root
3686 for ac_prog
in ginstall scoinst
install; do
3687 for ac_exec_ext
in '' $ac_executable_extensions; do
3688 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3689 if test $ac_prog = install &&
3690 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3691 # AIX install. It has an incompatible calling convention.
3693 elif test $ac_prog = install &&
3694 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3695 # program-specific install script used by HP pwplus--don't use.
3698 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
3710 if test "${ac_cv_path_install+set}" = set; then
3711 INSTALL
=$ac_cv_path_install
3713 # As a last resort, use the slow shell script. We don't cache a
3714 # path for INSTALL within a source directory, because that will
3715 # break other packages using the cache if that directory is
3716 # removed, or if the path is relative.
3717 INSTALL
=$ac_install_sh
3720 echo "$as_me:$LINENO: result: $INSTALL" >&5
3721 echo "${ECHO_T}$INSTALL" >&6
3723 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3724 # It thinks the first close brace ends the variable substitution.
3725 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3727 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
3729 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3731 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3732 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3733 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,:./+-,___p_,'`
3734 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3735 echo $ECHO_N "(cached) $ECHO_C" >&6
3737 cat >conftest.
make <<\_ACEOF
3739 @
echo 'ac_maketemp="$(MAKE)"'
3741 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3742 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3743 if test -n "$ac_maketemp"; then
3744 eval ac_cv_prog_make_
${ac_make}_set
=yes
3746 eval ac_cv_prog_make_
${ac_make}_set
=no
3750 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3751 echo "$as_me:$LINENO: result: yes" >&5
3752 echo "${ECHO_T}yes" >&6
3755 echo "$as_me:$LINENO: result: no" >&5
3756 echo "${ECHO_T}no" >&6
3757 SET_MAKE
="MAKE=${MAKE-make}"
3760 if test -n "$ac_tool_prefix"; then
3761 # Extract the first word of "${ac_tool_prefix}objcopy", so it can be a program name with args.
3762 set dummy
${ac_tool_prefix}objcopy
; ac_word
=$2
3763 echo "$as_me:$LINENO: checking for $ac_word" >&5
3764 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3765 if test "${ac_cv_prog_OBJCOPY+set}" = set; then
3766 echo $ECHO_N "(cached) $ECHO_C" >&6
3768 if test -n "$OBJCOPY"; then
3769 ac_cv_prog_OBJCOPY
="$OBJCOPY" # Let the user override the test.
3771 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3775 test -z "$as_dir" && as_dir
=.
3776 for ac_exec_ext
in '' $ac_executable_extensions; do
3777 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3778 ac_cv_prog_OBJCOPY
="${ac_tool_prefix}objcopy"
3779 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3787 OBJCOPY
=$ac_cv_prog_OBJCOPY
3788 if test -n "$OBJCOPY"; then
3789 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
3790 echo "${ECHO_T}$OBJCOPY" >&6
3792 echo "$as_me:$LINENO: result: no" >&5
3793 echo "${ECHO_T}no" >&6
3797 if test -z "$ac_cv_prog_OBJCOPY"; then
3798 ac_ct_OBJCOPY
=$OBJCOPY
3799 # Extract the first word of "objcopy", so it can be a program name with args.
3800 set dummy objcopy
; ac_word
=$2
3801 echo "$as_me:$LINENO: checking for $ac_word" >&5
3802 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3803 if test "${ac_cv_prog_ac_ct_OBJCOPY+set}" = set; then
3804 echo $ECHO_N "(cached) $ECHO_C" >&6
3806 if test -n "$ac_ct_OBJCOPY"; then
3807 ac_cv_prog_ac_ct_OBJCOPY
="$ac_ct_OBJCOPY" # Let the user override the test.
3809 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3813 test -z "$as_dir" && as_dir
=.
3814 for ac_exec_ext
in '' $ac_executable_extensions; do
3815 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3816 ac_cv_prog_ac_ct_OBJCOPY
="objcopy"
3817 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3825 ac_ct_OBJCOPY
=$ac_cv_prog_ac_ct_OBJCOPY
3826 if test -n "$ac_ct_OBJCOPY"; then
3827 echo "$as_me:$LINENO: result: $ac_ct_OBJCOPY" >&5
3828 echo "${ECHO_T}$ac_ct_OBJCOPY" >&6
3830 echo "$as_me:$LINENO: result: no" >&5
3831 echo "${ECHO_T}no" >&6
3834 OBJCOPY
=$ac_ct_OBJCOPY
3836 OBJCOPY
="$ac_cv_prog_OBJCOPY"
3839 echo "$as_me:$LINENO: checking whether ${OBJCOPY} works for absolute addresses" >&5
3840 echo $ECHO_N "checking whether ${OBJCOPY} works for absolute addresses... $ECHO_C" >&6
3841 if test "${grub_cv_prog_objcopy_absolute+set}" = set; then
3842 echo $ECHO_N "(cached) $ECHO_C" >&6
3844 cat > conftest.c
<<\EOF
3848 *((int
*) 0x1000) = 2;
3852 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3853 (eval $ac_compile) 2>&5
3855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3856 (exit $ac_status); } && test -s conftest.o
; then :
3858 { { echo "$as_me:$LINENO: error: ${CC-cc} cannot compile C source code" >&5
3859 echo "$as_me: error: ${CC-cc} cannot compile C source code" >&2;}
3860 { (exit 1); exit 1; }; }
3862 grub_cv_prog_objcopy_absolute
=yes
3863 for link_addr
in 2000 8000 7C00
; do
3864 if { ac_try
='${CC-cc} ${CFLAGS} -nostdlib -Wl,-N -Wl,-Ttext -Wl,$link_addr conftest.o -o conftest.exec'
3865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3869 (exit $ac_status); }; }; then :
3871 { { echo "$as_me:$LINENO: error: ${CC-cc} cannot link at address $link_addr" >&5
3872 echo "$as_me: error: ${CC-cc} cannot link at address $link_addr" >&2;}
3873 { (exit 1); exit 1; }; }
3875 if { ac_try
='${OBJCOPY-objcopy} -O binary conftest.exec conftest'
3876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3880 (exit $ac_status); }; }; then :
3882 { { echo "$as_me:$LINENO: error: ${OBJCOPY-objcopy} cannot create binary files" >&5
3883 echo "$as_me: error: ${OBJCOPY-objcopy} cannot create binary files" >&2;}
3884 { (exit 1); exit 1; }; }
3886 if test ! -f conftest.old ||
{ ac_try
='cmp -s conftest.old conftest'
3887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3891 (exit $ac_status); }; }; then
3892 mv -f conftest conftest.old
3894 grub_cv_prog_objcopy_absolute
=no
3901 echo "$as_me:$LINENO: result: $grub_cv_prog_objcopy_absolute" >&5
3902 echo "${ECHO_T}$grub_cv_prog_objcopy_absolute" >&6
3904 if test "x$grub_cv_prog_objcopy_absolute" = xno
; then
3905 { { echo "$as_me:$LINENO: error: GRUB requires a working absolute objcopy; upgrade your binutils" >&5
3906 echo "$as_me: error: GRUB requires a working absolute objcopy; upgrade your binutils" >&2;}
3907 { (exit 1); exit 1; }; }
3910 if test -n "$ac_tool_prefix"; then
3911 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3912 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
3913 echo "$as_me:$LINENO: checking for $ac_word" >&5
3914 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3915 if test "${ac_cv_prog_STRIP+set}" = set; then
3916 echo $ECHO_N "(cached) $ECHO_C" >&6
3918 if test -n "$STRIP"; then
3919 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
3921 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3925 test -z "$as_dir" && as_dir
=.
3926 for ac_exec_ext
in '' $ac_executable_extensions; do
3927 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3928 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
3929 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3937 STRIP
=$ac_cv_prog_STRIP
3938 if test -n "$STRIP"; then
3939 echo "$as_me:$LINENO: result: $STRIP" >&5
3940 echo "${ECHO_T}$STRIP" >&6
3942 echo "$as_me:$LINENO: result: no" >&5
3943 echo "${ECHO_T}no" >&6
3947 if test -z "$ac_cv_prog_STRIP"; then
3949 # Extract the first word of "strip", so it can be a program name with args.
3950 set dummy strip
; ac_word
=$2
3951 echo "$as_me:$LINENO: checking for $ac_word" >&5
3952 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3953 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3954 echo $ECHO_N "(cached) $ECHO_C" >&6
3956 if test -n "$ac_ct_STRIP"; then
3957 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
3959 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3963 test -z "$as_dir" && as_dir
=.
3964 for ac_exec_ext
in '' $ac_executable_extensions; do
3965 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3966 ac_cv_prog_ac_ct_STRIP
="strip"
3967 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3975 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
3976 if test -n "$ac_ct_STRIP"; then
3977 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3978 echo "${ECHO_T}$ac_ct_STRIP" >&6
3980 echo "$as_me:$LINENO: result: no" >&5
3981 echo "${ECHO_T}no" >&6
3986 STRIP
="$ac_cv_prog_STRIP"
3989 if test -n "$ac_tool_prefix"; then
3990 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
3991 set dummy
${ac_tool_prefix}nm
; ac_word
=$2
3992 echo "$as_me:$LINENO: checking for $ac_word" >&5
3993 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3994 if test "${ac_cv_prog_NM+set}" = set; then
3995 echo $ECHO_N "(cached) $ECHO_C" >&6
3997 if test -n "$NM"; then
3998 ac_cv_prog_NM
="$NM" # Let the user override the test.
4000 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4004 test -z "$as_dir" && as_dir
=.
4005 for ac_exec_ext
in '' $ac_executable_extensions; do
4006 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4007 ac_cv_prog_NM
="${ac_tool_prefix}nm"
4008 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4017 if test -n "$NM"; then
4018 echo "$as_me:$LINENO: result: $NM" >&5
4019 echo "${ECHO_T}$NM" >&6
4021 echo "$as_me:$LINENO: result: no" >&5
4022 echo "${ECHO_T}no" >&6
4026 if test -z "$ac_cv_prog_NM"; then
4028 # Extract the first word of "nm", so it can be a program name with args.
4029 set dummy nm
; ac_word
=$2
4030 echo "$as_me:$LINENO: checking for $ac_word" >&5
4031 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4032 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
4033 echo $ECHO_N "(cached) $ECHO_C" >&6
4035 if test -n "$ac_ct_NM"; then
4036 ac_cv_prog_ac_ct_NM
="$ac_ct_NM" # Let the user override the test.
4038 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4042 test -z "$as_dir" && as_dir
=.
4043 for ac_exec_ext
in '' $ac_executable_extensions; do
4044 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4045 ac_cv_prog_ac_ct_NM
="nm"
4046 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4054 ac_ct_NM
=$ac_cv_prog_ac_ct_NM
4055 if test -n "$ac_ct_NM"; then
4056 echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
4057 echo "${ECHO_T}$ac_ct_NM" >&6
4059 echo "$as_me:$LINENO: result: no" >&5
4060 echo "${ECHO_T}no" >&6
4068 if test -n "$ac_tool_prefix"; then
4069 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
4070 set dummy
${ac_tool_prefix}ld
; ac_word
=$2
4071 echo "$as_me:$LINENO: checking for $ac_word" >&5
4072 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4073 if test "${ac_cv_prog_LD+set}" = set; then
4074 echo $ECHO_N "(cached) $ECHO_C" >&6
4076 if test -n "$LD"; then
4077 ac_cv_prog_LD
="$LD" # Let the user override the test.
4079 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4083 test -z "$as_dir" && as_dir
=.
4084 for ac_exec_ext
in '' $ac_executable_extensions; do
4085 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4086 ac_cv_prog_LD
="${ac_tool_prefix}ld"
4087 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4096 if test -n "$LD"; then
4097 echo "$as_me:$LINENO: result: $LD" >&5
4098 echo "${ECHO_T}$LD" >&6
4100 echo "$as_me:$LINENO: result: no" >&5
4101 echo "${ECHO_T}no" >&6
4105 if test -z "$ac_cv_prog_LD"; then
4107 # Extract the first word of "ld", so it can be a program name with args.
4108 set dummy ld
; ac_word
=$2
4109 echo "$as_me:$LINENO: checking for $ac_word" >&5
4110 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4111 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
4112 echo $ECHO_N "(cached) $ECHO_C" >&6
4114 if test -n "$ac_ct_LD"; then
4115 ac_cv_prog_ac_ct_LD
="$ac_ct_LD" # Let the user override the test.
4117 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4121 test -z "$as_dir" && as_dir
=.
4122 for ac_exec_ext
in '' $ac_executable_extensions; do
4123 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4124 ac_cv_prog_ac_ct_LD
="ld"
4125 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4133 ac_ct_LD
=$ac_cv_prog_ac_ct_LD
4134 if test -n "$ac_ct_LD"; then
4135 echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
4136 echo "${ECHO_T}$ac_ct_LD" >&6
4138 echo "$as_me:$LINENO: result: no" >&5
4139 echo "${ECHO_T}no" >&6
4148 # This is not a "must".
4149 # Extract the first word of "ruby", so it can be a program name with args.
4150 set dummy ruby
; ac_word
=$2
4151 echo "$as_me:$LINENO: checking for $ac_word" >&5
4152 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4153 if test "${ac_cv_path_RUBY+set}" = set; then
4154 echo $ECHO_N "(cached) $ECHO_C" >&6
4158 ac_cv_path_RUBY
="$RUBY" # Let the user override the test with a path.
4161 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4165 test -z "$as_dir" && as_dir
=.
4166 for ac_exec_ext
in '' $ac_executable_extensions; do
4167 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4168 ac_cv_path_RUBY
="$as_dir/$ac_word$ac_exec_ext"
4169 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4178 RUBY
=$ac_cv_path_RUBY
4180 if test -n "$RUBY"; then
4181 echo "$as_me:$LINENO: result: $RUBY" >&5
4182 echo "${ECHO_T}$RUBY" >&6
4184 echo "$as_me:$LINENO: result: no" >&5
4185 echo "${ECHO_T}no" >&6
4189 # For cross-compiling.
4190 if test "x$build" != "x$host"; then
4191 for ac_prog
in gcc egcs cc
4193 # Extract the first word of "$ac_prog", so it can be a program name with args.
4194 set dummy
$ac_prog; ac_word
=$2
4195 echo "$as_me:$LINENO: checking for $ac_word" >&5
4196 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4197 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4198 echo $ECHO_N "(cached) $ECHO_C" >&6
4200 if test -n "$BUILD_CC"; then
4201 ac_cv_prog_BUILD_CC
="$BUILD_CC" # Let the user override the test.
4203 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4207 test -z "$as_dir" && as_dir
=.
4208 for ac_exec_ext
in '' $ac_executable_extensions; do
4209 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4210 ac_cv_prog_BUILD_CC
="$ac_prog"
4211 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4219 BUILD_CC
=$ac_cv_prog_BUILD_CC
4220 if test -n "$BUILD_CC"; then
4221 echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4222 echo "${ECHO_T}$BUILD_CC" >&6
4224 echo "$as_me:$LINENO: result: no" >&5
4225 echo "${ECHO_T}no" >&6
4228 test -n "$BUILD_CC" && break
4230 test -n "$BUILD_CC" || BUILD_CC
="{ { echo "$as_me:$LINENO: error
: none of gcc
, egcs and cc is found.
set BUILD_CC manually.
" >&5
4231 echo "$as_me: error
: none of gcc
, egcs and cc is found.
set BUILD_CC manually.
" >&2;}
4232 { (exit 1); exit 1; }; }"
4239 # Test the C compiler for the build environment.
4241 tmp_CFLAGS
="$CFLAGS"
4242 tmp_LDFLAGS
="$LDFLAGS"
4243 tmp_CPPFLAGS
="$CPPFLAGS"
4245 CFLAGS
="$BUILD_CFLAGS"
4246 CPPFLAGS
="$BUILD_CPPFLAGS"
4247 LDFLAGS
="$BUILD_LDFLAGS"
4249 # Identify characteristics of the build architecture.
4250 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4251 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
4252 if test "${ac_cv_c_bigendian+set}" = set; then
4253 echo $ECHO_N "(cached) $ECHO_C" >&6
4255 # See if sys/param.h defines the BYTE_ORDER macro.
4256 cat >conftest.
$ac_ext <<_ACEOF
4259 cat confdefs.h
>>conftest.
$ac_ext
4260 cat >>conftest.
$ac_ext <<_ACEOF
4261 /* end confdefs.h. */
4262 #include <sys/types.h>
4263 #include <sys/param.h>
4268 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4276 rm -f conftest.
$ac_objext
4277 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4278 (eval $ac_compile) 2>conftest.er1
4280 grep -v '^ *+' conftest.er1
>conftest.err
4282 cat conftest.err
>&5
4283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4284 (exit $ac_status); } &&
4285 { ac_try
='test -z "$ac_c_werror_flag"
4286 || test ! -s conftest.err'
4287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4291 (exit $ac_status); }; } &&
4292 { ac_try
='test -s conftest.$ac_objext'
4293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4297 (exit $ac_status); }; }; then
4298 # It does; now see whether it defined to BIG_ENDIAN or not.
4299 cat >conftest.
$ac_ext <<_ACEOF
4302 cat confdefs.h
>>conftest.
$ac_ext
4303 cat >>conftest.
$ac_ext <<_ACEOF
4304 /* end confdefs.h. */
4305 #include <sys/types.h>
4306 #include <sys/param.h>
4311 #if BYTE_ORDER != BIG_ENDIAN
4319 rm -f conftest.
$ac_objext
4320 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4321 (eval $ac_compile) 2>conftest.er1
4323 grep -v '^ *+' conftest.er1
>conftest.err
4325 cat conftest.err
>&5
4326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4327 (exit $ac_status); } &&
4328 { ac_try
='test -z "$ac_c_werror_flag"
4329 || test ! -s conftest.err'
4330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4334 (exit $ac_status); }; } &&
4335 { ac_try
='test -s conftest.$ac_objext'
4336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4340 (exit $ac_status); }; }; then
4341 ac_cv_c_bigendian
=yes
4343 echo "$as_me: failed program was:" >&5
4344 sed 's/^/| /' conftest.
$ac_ext >&5
4346 ac_cv_c_bigendian
=no
4348 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4350 echo "$as_me: failed program was:" >&5
4351 sed 's/^/| /' conftest.
$ac_ext >&5
4353 # It does not; compile a test program.
4354 if test "$cross_compiling" = yes; then
4355 # try to guess the endianness by grepping values into an object file
4356 ac_cv_c_bigendian
=unknown
4357 cat >conftest.
$ac_ext <<_ACEOF
4360 cat confdefs.h
>>conftest.
$ac_ext
4361 cat >>conftest.
$ac_ext <<_ACEOF
4362 /* end confdefs.h. */
4363 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4364 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4365 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4366 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4367 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4368 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4372 _ascii (); _ebcdic ();
4377 rm -f conftest.
$ac_objext
4378 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4379 (eval $ac_compile) 2>conftest.er1
4381 grep -v '^ *+' conftest.er1
>conftest.err
4383 cat conftest.err
>&5
4384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4385 (exit $ac_status); } &&
4386 { ac_try
='test -z "$ac_c_werror_flag"
4387 || test ! -s conftest.err'
4388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4392 (exit $ac_status); }; } &&
4393 { ac_try
='test -s conftest.$ac_objext'
4394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4398 (exit $ac_status); }; }; then
4399 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
4400 ac_cv_c_bigendian
=yes
4402 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
4403 if test "$ac_cv_c_bigendian" = unknown
; then
4404 ac_cv_c_bigendian
=no
4406 # finding both strings is unlikely to happen, but who knows?
4407 ac_cv_c_bigendian
=unknown
4411 echo "$as_me: failed program was:" >&5
4412 sed 's/^/| /' conftest.
$ac_ext >&5
4415 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4417 cat >conftest.
$ac_ext <<_ACEOF
4420 cat confdefs.h
>>conftest.
$ac_ext
4421 cat >>conftest.
$ac_ext <<_ACEOF
4422 /* end confdefs.h. */
4426 /* Are we little or big endian? From Harbison&Steele. */
4430 char c[sizeof (long)];
4433 exit (u.c[sizeof (long) - 1] == 1);
4436 rm -f conftest
$ac_exeext
4437 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4438 (eval $ac_link) 2>&5
4440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4441 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4446 (exit $ac_status); }; }; then
4447 ac_cv_c_bigendian
=no
4449 echo "$as_me: program exited with status $ac_status" >&5
4450 echo "$as_me: failed program was:" >&5
4451 sed 's/^/| /' conftest.
$ac_ext >&5
4454 ac_cv_c_bigendian
=yes
4456 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4459 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4461 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4462 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
4463 case $ac_cv_c_bigendian in
4466 cat >>confdefs.h
<<\_ACEOF
4467 #define WORDS_BIGENDIAN 1
4473 { { echo "$as_me:$LINENO: error: unknown endianness
4474 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4475 echo "$as_me: error: unknown endianness
4476 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4477 { (exit 1); exit 1; }; } ;;
4481 ac_cpp
='$CPP $CPPFLAGS'
4482 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4483 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4484 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4485 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4486 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4487 # On Suns, sometimes $CPP names a directory.
4488 if test -n "$CPP" && test -d "$CPP"; then
4491 if test -z "$CPP"; then
4492 if test "${ac_cv_prog_CPP+set}" = set; then
4493 echo $ECHO_N "(cached) $ECHO_C" >&6
4495 # Double quotes because CPP needs to be expanded
4496 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4499 for ac_c_preproc_warn_flag
in '' yes
4501 # Use a header file that comes with gcc, so configuring glibc
4502 # with a fresh cross-compiler works.
4503 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4504 # <limits.h> exists even on freestanding compilers.
4505 # On the NeXT, cc -E runs the code through the compiler's parser,
4506 # not just through cpp. "Syntax error" is here to catch this case.
4507 cat >conftest.
$ac_ext <<_ACEOF
4510 cat confdefs.h
>>conftest.
$ac_ext
4511 cat >>conftest.
$ac_ext <<_ACEOF
4512 /* end confdefs.h. */
4514 # include <limits.h>
4516 # include <assert.h>
4520 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4521 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4523 grep -v '^ *+' conftest.er1
>conftest.err
4525 cat conftest.err
>&5
4526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4527 (exit $ac_status); } >/dev
/null
; then
4528 if test -s conftest.err
; then
4529 ac_cpp_err
=$ac_c_preproc_warn_flag
4530 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4537 if test -z "$ac_cpp_err"; then
4540 echo "$as_me: failed program was:" >&5
4541 sed 's/^/| /' conftest.
$ac_ext >&5
4543 # Broken: fails on valid input.
4546 rm -f conftest.err conftest.
$ac_ext
4548 # OK, works on sane cases. Now check whether non-existent headers
4549 # can be detected and how.
4550 cat >conftest.
$ac_ext <<_ACEOF
4553 cat confdefs.h
>>conftest.
$ac_ext
4554 cat >>conftest.
$ac_ext <<_ACEOF
4555 /* end confdefs.h. */
4556 #include <ac_nonexistent.h>
4558 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4559 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4561 grep -v '^ *+' conftest.er1
>conftest.err
4563 cat conftest.err
>&5
4564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4565 (exit $ac_status); } >/dev
/null
; then
4566 if test -s conftest.err
; then
4567 ac_cpp_err
=$ac_c_preproc_warn_flag
4568 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4575 if test -z "$ac_cpp_err"; then
4576 # Broken: success on invalid input.
4579 echo "$as_me: failed program was:" >&5
4580 sed 's/^/| /' conftest.
$ac_ext >&5
4582 # Passes both tests.
4586 rm -f conftest.err conftest.
$ac_ext
4589 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4590 rm -f conftest.err conftest.
$ac_ext
4591 if $ac_preproc_ok; then
4603 echo "$as_me:$LINENO: result: $CPP" >&5
4604 echo "${ECHO_T}$CPP" >&6
4606 for ac_c_preproc_warn_flag
in '' yes
4608 # Use a header file that comes with gcc, so configuring glibc
4609 # with a fresh cross-compiler works.
4610 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4611 # <limits.h> exists even on freestanding compilers.
4612 # On the NeXT, cc -E runs the code through the compiler's parser,
4613 # not just through cpp. "Syntax error" is here to catch this case.
4614 cat >conftest.
$ac_ext <<_ACEOF
4617 cat confdefs.h
>>conftest.
$ac_ext
4618 cat >>conftest.
$ac_ext <<_ACEOF
4619 /* end confdefs.h. */
4621 # include <limits.h>
4623 # include <assert.h>
4627 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4628 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4630 grep -v '^ *+' conftest.er1
>conftest.err
4632 cat conftest.err
>&5
4633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4634 (exit $ac_status); } >/dev
/null
; then
4635 if test -s conftest.err
; then
4636 ac_cpp_err
=$ac_c_preproc_warn_flag
4637 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4644 if test -z "$ac_cpp_err"; then
4647 echo "$as_me: failed program was:" >&5
4648 sed 's/^/| /' conftest.
$ac_ext >&5
4650 # Broken: fails on valid input.
4653 rm -f conftest.err conftest.
$ac_ext
4655 # OK, works on sane cases. Now check whether non-existent headers
4656 # can be detected and how.
4657 cat >conftest.
$ac_ext <<_ACEOF
4660 cat confdefs.h
>>conftest.
$ac_ext
4661 cat >>conftest.
$ac_ext <<_ACEOF
4662 /* end confdefs.h. */
4663 #include <ac_nonexistent.h>
4665 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4666 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4668 grep -v '^ *+' conftest.er1
>conftest.err
4670 cat conftest.err
>&5
4671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4672 (exit $ac_status); } >/dev
/null
; then
4673 if test -s conftest.err
; then
4674 ac_cpp_err
=$ac_c_preproc_warn_flag
4675 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4682 if test -z "$ac_cpp_err"; then
4683 # Broken: success on invalid input.
4686 echo "$as_me: failed program was:" >&5
4687 sed 's/^/| /' conftest.
$ac_ext >&5
4689 # Passes both tests.
4693 rm -f conftest.err conftest.
$ac_ext
4696 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4697 rm -f conftest.err conftest.
$ac_ext
4698 if $ac_preproc_ok; then
4701 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4702 See \`config.log' for more details." >&5
4703 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4704 See \`config.log' for more details." >&2;}
4705 { (exit 1); exit 1; }; }
4709 ac_cpp
='$CPP $CPPFLAGS'
4710 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4711 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4712 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4715 echo "$as_me:$LINENO: checking for egrep" >&5
4716 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4717 if test "${ac_cv_prog_egrep+set}" = set; then
4718 echo $ECHO_N "(cached) $ECHO_C" >&6
4720 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
4721 then ac_cv_prog_egrep
='grep -E'
4722 else ac_cv_prog_egrep
='egrep'
4725 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4726 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4727 EGREP
=$ac_cv_prog_egrep
4730 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4731 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4732 if test "${ac_cv_header_stdc+set}" = set; then
4733 echo $ECHO_N "(cached) $ECHO_C" >&6
4735 cat >conftest.
$ac_ext <<_ACEOF
4738 cat confdefs.h
>>conftest.
$ac_ext
4739 cat >>conftest.
$ac_ext <<_ACEOF
4740 /* end confdefs.h. */
4754 rm -f conftest.
$ac_objext
4755 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4756 (eval $ac_compile) 2>conftest.er1
4758 grep -v '^ *+' conftest.er1
>conftest.err
4760 cat conftest.err
>&5
4761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4762 (exit $ac_status); } &&
4763 { ac_try
='test -z "$ac_c_werror_flag"
4764 || test ! -s conftest.err'
4765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4769 (exit $ac_status); }; } &&
4770 { ac_try
='test -s conftest.$ac_objext'
4771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4775 (exit $ac_status); }; }; then
4776 ac_cv_header_stdc
=yes
4778 echo "$as_me: failed program was:" >&5
4779 sed 's/^/| /' conftest.
$ac_ext >&5
4781 ac_cv_header_stdc
=no
4783 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4785 if test $ac_cv_header_stdc = yes; then
4786 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4787 cat >conftest.
$ac_ext <<_ACEOF
4790 cat confdefs.h
>>conftest.
$ac_ext
4791 cat >>conftest.
$ac_ext <<_ACEOF
4792 /* end confdefs.h. */
4796 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4797 $EGREP "memchr" >/dev
/null
2>&1; then
4800 ac_cv_header_stdc
=no
4806 if test $ac_cv_header_stdc = yes; then
4807 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4808 cat >conftest.
$ac_ext <<_ACEOF
4811 cat confdefs.h
>>conftest.
$ac_ext
4812 cat >>conftest.
$ac_ext <<_ACEOF
4813 /* end confdefs.h. */
4817 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4818 $EGREP "free" >/dev
/null
2>&1; then
4821 ac_cv_header_stdc
=no
4827 if test $ac_cv_header_stdc = yes; then
4828 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4829 if test "$cross_compiling" = yes; then
4832 cat >conftest.
$ac_ext <<_ACEOF
4835 cat confdefs.h
>>conftest.
$ac_ext
4836 cat >>conftest.
$ac_ext <<_ACEOF
4837 /* end confdefs.h. */
4839 #if ((' ' & 0x0FF) == 0x020)
4840 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4841 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4843 # define ISLOWER(c) \
4844 (('a' <= (c) && (c) <= 'i') \
4845 || ('j' <= (c) && (c) <= 'r') \
4846 || ('s' <= (c) && (c) <= 'z'))
4847 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4850 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4855 for (i = 0; i < 256; i++)
4856 if (XOR (islower (i), ISLOWER (i))
4857 || toupper (i) != TOUPPER (i))
4862 rm -f conftest
$ac_exeext
4863 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4864 (eval $ac_link) 2>&5
4866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4867 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4872 (exit $ac_status); }; }; then
4875 echo "$as_me: program exited with status $ac_status" >&5
4876 echo "$as_me: failed program was:" >&5
4877 sed 's/^/| /' conftest.
$ac_ext >&5
4880 ac_cv_header_stdc
=no
4882 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4886 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4887 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4888 if test $ac_cv_header_stdc = yes; then
4890 cat >>confdefs.h
<<\_ACEOF
4891 #define STDC_HEADERS 1
4896 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4906 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4907 inttypes.h stdint.h unistd.h
4909 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4910 echo "$as_me:$LINENO: checking for $ac_header" >&5
4911 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4912 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4913 echo $ECHO_N "(cached) $ECHO_C" >&6
4915 cat >conftest.
$ac_ext <<_ACEOF
4918 cat confdefs.h
>>conftest.
$ac_ext
4919 cat >>conftest.
$ac_ext <<_ACEOF
4920 /* end confdefs.h. */
4921 $ac_includes_default
4923 #include <$ac_header>
4925 rm -f conftest.
$ac_objext
4926 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4927 (eval $ac_compile) 2>conftest.er1
4929 grep -v '^ *+' conftest.er1
>conftest.err
4931 cat conftest.err
>&5
4932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4933 (exit $ac_status); } &&
4934 { ac_try
='test -z "$ac_c_werror_flag"
4935 || test ! -s conftest.err'
4936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4940 (exit $ac_status); }; } &&
4941 { ac_try
='test -s conftest.$ac_objext'
4942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4946 (exit $ac_status); }; }; then
4947 eval "$as_ac_Header=yes"
4949 echo "$as_me: failed program was:" >&5
4950 sed 's/^/| /' conftest.
$ac_ext >&5
4952 eval "$as_ac_Header=no"
4954 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4956 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4957 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4958 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4959 cat >>confdefs.h
<<_ACEOF
4960 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4968 echo "$as_me:$LINENO: checking for void *" >&5
4969 echo $ECHO_N "checking for void *... $ECHO_C" >&6
4970 if test "${ac_cv_type_void_p+set}" = set; then
4971 echo $ECHO_N "(cached) $ECHO_C" >&6
4973 cat >conftest.
$ac_ext <<_ACEOF
4976 cat confdefs.h
>>conftest.
$ac_ext
4977 cat >>conftest.
$ac_ext <<_ACEOF
4978 /* end confdefs.h. */
4979 $ac_includes_default
4985 if (sizeof (void *))
4991 rm -f conftest.
$ac_objext
4992 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4993 (eval $ac_compile) 2>conftest.er1
4995 grep -v '^ *+' conftest.er1
>conftest.err
4997 cat conftest.err
>&5
4998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4999 (exit $ac_status); } &&
5000 { ac_try
='test -z "$ac_c_werror_flag"
5001 || test ! -s conftest.err'
5002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5006 (exit $ac_status); }; } &&
5007 { ac_try
='test -s conftest.$ac_objext'
5008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5012 (exit $ac_status); }; }; then
5013 ac_cv_type_void_p
=yes
5015 echo "$as_me: failed program was:" >&5
5016 sed 's/^/| /' conftest.
$ac_ext >&5
5018 ac_cv_type_void_p
=no
5020 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5022 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
5023 echo "${ECHO_T}$ac_cv_type_void_p" >&6
5025 echo "$as_me:$LINENO: checking size of void *" >&5
5026 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
5027 if test "${ac_cv_sizeof_void_p+set}" = set; then
5028 echo $ECHO_N "(cached) $ECHO_C" >&6
5030 if test "$ac_cv_type_void_p" = yes; then
5031 # The cast to unsigned long works around a bug in the HP C Compiler
5032 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5033 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5034 # This bug is HP SR number 8606223364.
5035 if test "$cross_compiling" = yes; then
5036 # Depending upon the size, compute the lo and hi bounds.
5037 cat >conftest.
$ac_ext <<_ACEOF
5040 cat confdefs.h
>>conftest.
$ac_ext
5041 cat >>conftest.
$ac_ext <<_ACEOF
5042 /* end confdefs.h. */
5043 $ac_includes_default
5047 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
5054 rm -f conftest.
$ac_objext
5055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5056 (eval $ac_compile) 2>conftest.er1
5058 grep -v '^ *+' conftest.er1
>conftest.err
5060 cat conftest.err
>&5
5061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5062 (exit $ac_status); } &&
5063 { ac_try
='test -z "$ac_c_werror_flag"
5064 || test ! -s conftest.err'
5065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5069 (exit $ac_status); }; } &&
5070 { ac_try
='test -s conftest.$ac_objext'
5071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5075 (exit $ac_status); }; }; then
5078 cat >conftest.
$ac_ext <<_ACEOF
5081 cat confdefs.h
>>conftest.
$ac_ext
5082 cat >>conftest.
$ac_ext <<_ACEOF
5083 /* end confdefs.h. */
5084 $ac_includes_default
5088 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
5095 rm -f conftest.
$ac_objext
5096 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5097 (eval $ac_compile) 2>conftest.er1
5099 grep -v '^ *+' conftest.er1
>conftest.err
5101 cat conftest.err
>&5
5102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5103 (exit $ac_status); } &&
5104 { ac_try
='test -z "$ac_c_werror_flag"
5105 || test ! -s conftest.err'
5106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5110 (exit $ac_status); }; } &&
5111 { ac_try
='test -s conftest.$ac_objext'
5112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5116 (exit $ac_status); }; }; then
5117 ac_hi
=$ac_mid; break
5119 echo "$as_me: failed program was:" >&5
5120 sed 's/^/| /' conftest.
$ac_ext >&5
5122 ac_lo
=`expr $ac_mid + 1`
5123 if test $ac_lo -le $ac_mid; then
5127 ac_mid
=`expr 2 '*' $ac_mid + 1`
5129 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5132 echo "$as_me: failed program was:" >&5
5133 sed 's/^/| /' conftest.
$ac_ext >&5
5135 cat >conftest.
$ac_ext <<_ACEOF
5138 cat confdefs.h
>>conftest.
$ac_ext
5139 cat >>conftest.
$ac_ext <<_ACEOF
5140 /* end confdefs.h. */
5141 $ac_includes_default
5145 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
5152 rm -f conftest.
$ac_objext
5153 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5154 (eval $ac_compile) 2>conftest.er1
5156 grep -v '^ *+' conftest.er1
>conftest.err
5158 cat conftest.err
>&5
5159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5160 (exit $ac_status); } &&
5161 { ac_try
='test -z "$ac_c_werror_flag"
5162 || test ! -s conftest.err'
5163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5167 (exit $ac_status); }; } &&
5168 { ac_try
='test -s conftest.$ac_objext'
5169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5173 (exit $ac_status); }; }; then
5176 cat >conftest.
$ac_ext <<_ACEOF
5179 cat confdefs.h
>>conftest.
$ac_ext
5180 cat >>conftest.
$ac_ext <<_ACEOF
5181 /* end confdefs.h. */
5182 $ac_includes_default
5186 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
5193 rm -f conftest.
$ac_objext
5194 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5195 (eval $ac_compile) 2>conftest.er1
5197 grep -v '^ *+' conftest.er1
>conftest.err
5199 cat conftest.err
>&5
5200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5201 (exit $ac_status); } &&
5202 { ac_try
='test -z "$ac_c_werror_flag"
5203 || test ! -s conftest.err'
5204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5208 (exit $ac_status); }; } &&
5209 { ac_try
='test -s conftest.$ac_objext'
5210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5214 (exit $ac_status); }; }; then
5215 ac_lo
=$ac_mid; break
5217 echo "$as_me: failed program was:" >&5
5218 sed 's/^/| /' conftest.
$ac_ext >&5
5220 ac_hi
=`expr '(' $ac_mid ')' - 1`
5221 if test $ac_mid -le $ac_hi; then
5225 ac_mid
=`expr 2 '*' $ac_mid`
5227 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5230 echo "$as_me: failed program was:" >&5
5231 sed 's/^/| /' conftest.
$ac_ext >&5
5235 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5237 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5238 # Binary search between lo and hi bounds.
5239 while test "x$ac_lo" != "x$ac_hi"; do
5240 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5241 cat >conftest.
$ac_ext <<_ACEOF
5244 cat confdefs.h
>>conftest.
$ac_ext
5245 cat >>conftest.
$ac_ext <<_ACEOF
5246 /* end confdefs.h. */
5247 $ac_includes_default
5251 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
5258 rm -f conftest.
$ac_objext
5259 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5260 (eval $ac_compile) 2>conftest.er1
5262 grep -v '^ *+' conftest.er1
>conftest.err
5264 cat conftest.err
>&5
5265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5266 (exit $ac_status); } &&
5267 { ac_try
='test -z "$ac_c_werror_flag"
5268 || test ! -s conftest.err'
5269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5273 (exit $ac_status); }; } &&
5274 { ac_try
='test -s conftest.$ac_objext'
5275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5279 (exit $ac_status); }; }; then
5282 echo "$as_me: failed program was:" >&5
5283 sed 's/^/| /' conftest.
$ac_ext >&5
5285 ac_lo
=`expr '(' $ac_mid ')' + 1`
5287 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5290 ?
*) ac_cv_sizeof_void_p
=$ac_lo;;
5291 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
5292 See \`config.log' for more details." >&5
5293 echo "$as_me: error: cannot compute sizeof (void *), 77
5294 See \`config.log' for more details." >&2;}
5295 { (exit 1); exit 1; }; } ;;
5298 if test "$cross_compiling" = yes; then
5299 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5300 See \`config.log' for more details." >&5
5301 echo "$as_me: error: cannot run test program while cross compiling
5302 See \`config.log' for more details." >&2;}
5303 { (exit 1); exit 1; }; }
5305 cat >conftest.
$ac_ext <<_ACEOF
5308 cat confdefs.h
>>conftest.
$ac_ext
5309 cat >>conftest.
$ac_ext <<_ACEOF
5310 /* end confdefs.h. */
5311 $ac_includes_default
5312 long longval () { return (long) (sizeof (void *)); }
5313 unsigned long ulongval () { return (long) (sizeof (void *)); }
5320 FILE *f = fopen ("conftest.val", "w");
5323 if (((long) (sizeof (void *))) < 0)
5325 long i = longval ();
5326 if (i != ((long) (sizeof (void *))))
5328 fprintf (f, "%ld\n", i);
5332 unsigned long i = ulongval ();
5333 if (i != ((long) (sizeof (void *))))
5335 fprintf (f, "%lu\n", i);
5337 exit (ferror (f) || fclose (f) != 0);
5343 rm -f conftest
$ac_exeext
5344 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5345 (eval $ac_link) 2>&5
5347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5348 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5353 (exit $ac_status); }; }; then
5354 ac_cv_sizeof_void_p
=`cat conftest.val`
5356 echo "$as_me: program exited with status $ac_status" >&5
5357 echo "$as_me: failed program was:" >&5
5358 sed 's/^/| /' conftest.
$ac_ext >&5
5361 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
5362 See \`config.log' for more details." >&5
5363 echo "$as_me: error: cannot compute sizeof (void *), 77
5364 See \`config.log' for more details." >&2;}
5365 { (exit 1); exit 1; }; }
5367 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5372 ac_cv_sizeof_void_p
=0
5375 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
5376 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
5377 cat >>confdefs.h
<<_ACEOF
5378 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5382 echo "$as_me:$LINENO: checking for long" >&5
5383 echo $ECHO_N "checking for long... $ECHO_C" >&6
5384 if test "${ac_cv_type_long+set}" = set; then
5385 echo $ECHO_N "(cached) $ECHO_C" >&6
5387 cat >conftest.
$ac_ext <<_ACEOF
5390 cat confdefs.h
>>conftest.
$ac_ext
5391 cat >>conftest.
$ac_ext <<_ACEOF
5392 /* end confdefs.h. */
5393 $ac_includes_default
5405 rm -f conftest.
$ac_objext
5406 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5407 (eval $ac_compile) 2>conftest.er1
5409 grep -v '^ *+' conftest.er1
>conftest.err
5411 cat conftest.err
>&5
5412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5413 (exit $ac_status); } &&
5414 { ac_try
='test -z "$ac_c_werror_flag"
5415 || test ! -s conftest.err'
5416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5420 (exit $ac_status); }; } &&
5421 { ac_try
='test -s conftest.$ac_objext'
5422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5426 (exit $ac_status); }; }; then
5429 echo "$as_me: failed program was:" >&5
5430 sed 's/^/| /' conftest.
$ac_ext >&5
5434 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5436 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
5437 echo "${ECHO_T}$ac_cv_type_long" >&6
5439 echo "$as_me:$LINENO: checking size of long" >&5
5440 echo $ECHO_N "checking size of long... $ECHO_C" >&6
5441 if test "${ac_cv_sizeof_long+set}" = set; then
5442 echo $ECHO_N "(cached) $ECHO_C" >&6
5444 if test "$ac_cv_type_long" = yes; then
5445 # The cast to unsigned long works around a bug in the HP C Compiler
5446 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5447 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5448 # This bug is HP SR number 8606223364.
5449 if test "$cross_compiling" = yes; then
5450 # Depending upon the size, compute the lo and hi bounds.
5451 cat >conftest.
$ac_ext <<_ACEOF
5454 cat confdefs.h
>>conftest.
$ac_ext
5455 cat >>conftest.
$ac_ext <<_ACEOF
5456 /* end confdefs.h. */
5457 $ac_includes_default
5461 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
5468 rm -f conftest.
$ac_objext
5469 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5470 (eval $ac_compile) 2>conftest.er1
5472 grep -v '^ *+' conftest.er1
>conftest.err
5474 cat conftest.err
>&5
5475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5476 (exit $ac_status); } &&
5477 { ac_try
='test -z "$ac_c_werror_flag"
5478 || test ! -s conftest.err'
5479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5483 (exit $ac_status); }; } &&
5484 { ac_try
='test -s conftest.$ac_objext'
5485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5489 (exit $ac_status); }; }; then
5492 cat >conftest.
$ac_ext <<_ACEOF
5495 cat confdefs.h
>>conftest.
$ac_ext
5496 cat >>conftest.
$ac_ext <<_ACEOF
5497 /* end confdefs.h. */
5498 $ac_includes_default
5502 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5509 rm -f conftest.
$ac_objext
5510 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5511 (eval $ac_compile) 2>conftest.er1
5513 grep -v '^ *+' conftest.er1
>conftest.err
5515 cat conftest.err
>&5
5516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5517 (exit $ac_status); } &&
5518 { ac_try
='test -z "$ac_c_werror_flag"
5519 || test ! -s conftest.err'
5520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5524 (exit $ac_status); }; } &&
5525 { ac_try
='test -s conftest.$ac_objext'
5526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5530 (exit $ac_status); }; }; then
5531 ac_hi
=$ac_mid; break
5533 echo "$as_me: failed program was:" >&5
5534 sed 's/^/| /' conftest.
$ac_ext >&5
5536 ac_lo
=`expr $ac_mid + 1`
5537 if test $ac_lo -le $ac_mid; then
5541 ac_mid
=`expr 2 '*' $ac_mid + 1`
5543 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5546 echo "$as_me: failed program was:" >&5
5547 sed 's/^/| /' conftest.
$ac_ext >&5
5549 cat >conftest.
$ac_ext <<_ACEOF
5552 cat confdefs.h
>>conftest.
$ac_ext
5553 cat >>conftest.
$ac_ext <<_ACEOF
5554 /* end confdefs.h. */
5555 $ac_includes_default
5559 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
5566 rm -f conftest.
$ac_objext
5567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5568 (eval $ac_compile) 2>conftest.er1
5570 grep -v '^ *+' conftest.er1
>conftest.err
5572 cat conftest.err
>&5
5573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5574 (exit $ac_status); } &&
5575 { ac_try
='test -z "$ac_c_werror_flag"
5576 || test ! -s conftest.err'
5577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5581 (exit $ac_status); }; } &&
5582 { ac_try
='test -s conftest.$ac_objext'
5583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5587 (exit $ac_status); }; }; then
5590 cat >conftest.
$ac_ext <<_ACEOF
5593 cat confdefs.h
>>conftest.
$ac_ext
5594 cat >>conftest.
$ac_ext <<_ACEOF
5595 /* end confdefs.h. */
5596 $ac_includes_default
5600 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
5607 rm -f conftest.
$ac_objext
5608 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5609 (eval $ac_compile) 2>conftest.er1
5611 grep -v '^ *+' conftest.er1
>conftest.err
5613 cat conftest.err
>&5
5614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5615 (exit $ac_status); } &&
5616 { ac_try
='test -z "$ac_c_werror_flag"
5617 || test ! -s conftest.err'
5618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5622 (exit $ac_status); }; } &&
5623 { ac_try
='test -s conftest.$ac_objext'
5624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5628 (exit $ac_status); }; }; then
5629 ac_lo
=$ac_mid; break
5631 echo "$as_me: failed program was:" >&5
5632 sed 's/^/| /' conftest.
$ac_ext >&5
5634 ac_hi
=`expr '(' $ac_mid ')' - 1`
5635 if test $ac_mid -le $ac_hi; then
5639 ac_mid
=`expr 2 '*' $ac_mid`
5641 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5644 echo "$as_me: failed program was:" >&5
5645 sed 's/^/| /' conftest.
$ac_ext >&5
5649 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5651 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5652 # Binary search between lo and hi bounds.
5653 while test "x$ac_lo" != "x$ac_hi"; do
5654 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5655 cat >conftest.
$ac_ext <<_ACEOF
5658 cat confdefs.h
>>conftest.
$ac_ext
5659 cat >>conftest.
$ac_ext <<_ACEOF
5660 /* end confdefs.h. */
5661 $ac_includes_default
5665 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5672 rm -f conftest.
$ac_objext
5673 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5674 (eval $ac_compile) 2>conftest.er1
5676 grep -v '^ *+' conftest.er1
>conftest.err
5678 cat conftest.err
>&5
5679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5680 (exit $ac_status); } &&
5681 { ac_try
='test -z "$ac_c_werror_flag"
5682 || test ! -s conftest.err'
5683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5687 (exit $ac_status); }; } &&
5688 { ac_try
='test -s conftest.$ac_objext'
5689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5693 (exit $ac_status); }; }; then
5696 echo "$as_me: failed program was:" >&5
5697 sed 's/^/| /' conftest.
$ac_ext >&5
5699 ac_lo
=`expr '(' $ac_mid ')' + 1`
5701 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5704 ?
*) ac_cv_sizeof_long
=$ac_lo;;
5705 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5706 See \`config.log' for more details." >&5
5707 echo "$as_me: error: cannot compute sizeof (long), 77
5708 See \`config.log' for more details." >&2;}
5709 { (exit 1); exit 1; }; } ;;
5712 if test "$cross_compiling" = yes; then
5713 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5714 See \`config.log' for more details." >&5
5715 echo "$as_me: error: cannot run test program while cross compiling
5716 See \`config.log' for more details." >&2;}
5717 { (exit 1); exit 1; }; }
5719 cat >conftest.
$ac_ext <<_ACEOF
5722 cat confdefs.h
>>conftest.
$ac_ext
5723 cat >>conftest.
$ac_ext <<_ACEOF
5724 /* end confdefs.h. */
5725 $ac_includes_default
5726 long longval () { return (long) (sizeof (long)); }
5727 unsigned long ulongval () { return (long) (sizeof (long)); }
5734 FILE *f = fopen ("conftest.val", "w");
5737 if (((long) (sizeof (long))) < 0)
5739 long i = longval ();
5740 if (i != ((long) (sizeof (long))))
5742 fprintf (f, "%ld\n", i);
5746 unsigned long i = ulongval ();
5747 if (i != ((long) (sizeof (long))))
5749 fprintf (f, "%lu\n", i);
5751 exit (ferror (f) || fclose (f) != 0);
5757 rm -f conftest
$ac_exeext
5758 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5759 (eval $ac_link) 2>&5
5761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5762 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5767 (exit $ac_status); }; }; then
5768 ac_cv_sizeof_long
=`cat conftest.val`
5770 echo "$as_me: program exited with status $ac_status" >&5
5771 echo "$as_me: failed program was:" >&5
5772 sed 's/^/| /' conftest.
$ac_ext >&5
5775 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5776 See \`config.log' for more details." >&5
5777 echo "$as_me: error: cannot compute sizeof (long), 77
5778 See \`config.log' for more details." >&2;}
5779 { (exit 1); exit 1; }; }
5781 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5789 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5790 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
5791 cat >>confdefs.h
<<_ACEOF
5792 #define SIZEOF_LONG $ac_cv_sizeof_long
5797 # Check LZO when compiling for the i386.
5798 if test "x$host_cpu" = xi386
; then
5799 # There are three possibilities. LZO version 2 installed with the name
5800 # liblzo2, with the name liblzo, and LZO version 1.
5801 echo "$as_me:$LINENO: checking for __lzo_init_v2 in -llzo2" >&5
5802 echo $ECHO_N "checking for __lzo_init_v2 in -llzo2... $ECHO_C" >&6
5803 if test "${ac_cv_lib_lzo2___lzo_init_v2+set}" = set; then
5804 echo $ECHO_N "(cached) $ECHO_C" >&6
5806 ac_check_lib_save_LIBS
=$LIBS
5808 cat >conftest.
$ac_ext <<_ACEOF
5811 cat confdefs.h
>>conftest.
$ac_ext
5812 cat >>conftest.
$ac_ext <<_ACEOF
5813 /* end confdefs.h. */
5815 /* Override any gcc2 internal prototype to avoid an error. */
5819 /* We use char because int might match the return type of a gcc2
5820 builtin and then its argument prototype would still apply. */
5821 char __lzo_init_v2 ();
5830 rm -f conftest.
$ac_objext conftest
$ac_exeext
5831 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5832 (eval $ac_link) 2>conftest.er1
5834 grep -v '^ *+' conftest.er1
>conftest.err
5836 cat conftest.err
>&5
5837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5838 (exit $ac_status); } &&
5839 { ac_try
='test -z "$ac_c_werror_flag"
5840 || test ! -s conftest.err'
5841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5845 (exit $ac_status); }; } &&
5846 { ac_try
='test -s conftest$ac_exeext'
5847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5851 (exit $ac_status); }; }; then
5852 ac_cv_lib_lzo2___lzo_init_v2
=yes
5854 echo "$as_me: failed program was:" >&5
5855 sed 's/^/| /' conftest.
$ac_ext >&5
5857 ac_cv_lib_lzo2___lzo_init_v2
=no
5859 rm -f conftest.err conftest.
$ac_objext \
5860 conftest
$ac_exeext conftest.
$ac_ext
5861 LIBS
=$ac_check_lib_save_LIBS
5863 echo "$as_me:$LINENO: result: $ac_cv_lib_lzo2___lzo_init_v2" >&5
5864 echo "${ECHO_T}$ac_cv_lib_lzo2___lzo_init_v2" >&6
5865 if test $ac_cv_lib_lzo2___lzo_init_v2 = yes; then
5868 echo "$as_me:$LINENO: checking for __lzo_init_v2 in -llzo" >&5
5869 echo $ECHO_N "checking for __lzo_init_v2 in -llzo... $ECHO_C" >&6
5870 if test "${ac_cv_lib_lzo___lzo_init_v2+set}" = set; then
5871 echo $ECHO_N "(cached) $ECHO_C" >&6
5873 ac_check_lib_save_LIBS
=$LIBS
5875 cat >conftest.
$ac_ext <<_ACEOF
5878 cat confdefs.h
>>conftest.
$ac_ext
5879 cat >>conftest.
$ac_ext <<_ACEOF
5880 /* end confdefs.h. */
5882 /* Override any gcc2 internal prototype to avoid an error. */
5886 /* We use char because int might match the return type of a gcc2
5887 builtin and then its argument prototype would still apply. */
5888 char __lzo_init_v2 ();
5897 rm -f conftest.
$ac_objext conftest
$ac_exeext
5898 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5899 (eval $ac_link) 2>conftest.er1
5901 grep -v '^ *+' conftest.er1
>conftest.err
5903 cat conftest.err
>&5
5904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5905 (exit $ac_status); } &&
5906 { ac_try
='test -z "$ac_c_werror_flag"
5907 || test ! -s conftest.err'
5908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5912 (exit $ac_status); }; } &&
5913 { ac_try
='test -s conftest$ac_exeext'
5914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5918 (exit $ac_status); }; }; then
5919 ac_cv_lib_lzo___lzo_init_v2
=yes
5921 echo "$as_me: failed program was:" >&5
5922 sed 's/^/| /' conftest.
$ac_ext >&5
5924 ac_cv_lib_lzo___lzo_init_v2
=no
5926 rm -f conftest.err conftest.
$ac_objext \
5927 conftest
$ac_exeext conftest.
$ac_ext
5928 LIBS
=$ac_check_lib_save_LIBS
5930 echo "$as_me:$LINENO: result: $ac_cv_lib_lzo___lzo_init_v2" >&5
5931 echo "${ECHO_T}$ac_cv_lib_lzo___lzo_init_v2" >&6
5932 if test $ac_cv_lib_lzo___lzo_init_v2 = yes; then
5935 echo "$as_me:$LINENO: checking for __lzo_init2 in -llzo" >&5
5936 echo $ECHO_N "checking for __lzo_init2 in -llzo... $ECHO_C" >&6
5937 if test "${ac_cv_lib_lzo___lzo_init2+set}" = set; then
5938 echo $ECHO_N "(cached) $ECHO_C" >&6
5940 ac_check_lib_save_LIBS
=$LIBS
5942 cat >conftest.
$ac_ext <<_ACEOF
5945 cat confdefs.h
>>conftest.
$ac_ext
5946 cat >>conftest.
$ac_ext <<_ACEOF
5947 /* end confdefs.h. */
5949 /* Override any gcc2 internal prototype to avoid an error. */
5953 /* We use char because int might match the return type of a gcc2
5954 builtin and then its argument prototype would still apply. */
5955 char __lzo_init2 ();
5964 rm -f conftest.
$ac_objext conftest
$ac_exeext
5965 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5966 (eval $ac_link) 2>conftest.er1
5968 grep -v '^ *+' conftest.er1
>conftest.err
5970 cat conftest.err
>&5
5971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5972 (exit $ac_status); } &&
5973 { ac_try
='test -z "$ac_c_werror_flag"
5974 || test ! -s conftest.err'
5975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5979 (exit $ac_status); }; } &&
5980 { ac_try
='test -s conftest$ac_exeext'
5981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5985 (exit $ac_status); }; }; then
5986 ac_cv_lib_lzo___lzo_init2
=yes
5988 echo "$as_me: failed program was:" >&5
5989 sed 's/^/| /' conftest.
$ac_ext >&5
5991 ac_cv_lib_lzo___lzo_init2
=no
5993 rm -f conftest.err conftest.
$ac_objext \
5994 conftest
$ac_exeext conftest.
$ac_ext
5995 LIBS
=$ac_check_lib_save_LIBS
5997 echo "$as_me:$LINENO: result: $ac_cv_lib_lzo___lzo_init2" >&5
5998 echo "${ECHO_T}$ac_cv_lib_lzo___lzo_init2" >&6
5999 if test $ac_cv_lib_lzo___lzo_init2 = yes; then
6002 { { echo "$as_me:$LINENO: error: LZO library version 1.02 or later is required" >&5
6003 echo "$as_me: error: LZO library version 1.02 or later is required" >&2;}
6004 { (exit 1); exit 1; }; }
6012 LIBS
="$LIBS $LIBLZO"
6013 echo "$as_me:$LINENO: checking for lzo1x_999_compress" >&5
6014 echo $ECHO_N "checking for lzo1x_999_compress... $ECHO_C" >&6
6015 if test "${ac_cv_func_lzo1x_999_compress+set}" = set; then
6016 echo $ECHO_N "(cached) $ECHO_C" >&6
6018 cat >conftest.
$ac_ext <<_ACEOF
6021 cat confdefs.h
>>conftest.
$ac_ext
6022 cat >>conftest.
$ac_ext <<_ACEOF
6023 /* end confdefs.h. */
6024 /* Define lzo1x_999_compress to an innocuous variant, in case <limits.h> declares lzo1x_999_compress.
6025 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6026 #define lzo1x_999_compress innocuous_lzo1x_999_compress
6028 /* System header to define __stub macros and hopefully few prototypes,
6029 which can conflict with char lzo1x_999_compress (); below.
6030 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6031 <limits.h> exists even on freestanding compilers. */
6034 # include <limits.h>
6036 # include <assert.h>
6039 #undef lzo1x_999_compress
6041 /* Override any gcc2 internal prototype to avoid an error. */
6046 /* We use char because int might match the return type of a gcc2
6047 builtin and then its argument prototype would still apply. */
6048 char lzo1x_999_compress ();
6049 /* The GNU C library defines this for functions which it implements
6050 to always fail with ENOSYS. Some functions are actually named
6051 something starting with __ and the normal name is an alias. */
6052 #if defined (__stub_lzo1x_999_compress) || defined (__stub___lzo1x_999_compress)
6055 char (*f) () = lzo1x_999_compress;
6064 return f != lzo1x_999_compress;
6069 rm -f conftest.
$ac_objext conftest
$ac_exeext
6070 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6071 (eval $ac_link) 2>conftest.er1
6073 grep -v '^ *+' conftest.er1
>conftest.err
6075 cat conftest.err
>&5
6076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6077 (exit $ac_status); } &&
6078 { ac_try
='test -z "$ac_c_werror_flag"
6079 || test ! -s conftest.err'
6080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6084 (exit $ac_status); }; } &&
6085 { ac_try
='test -s conftest$ac_exeext'
6086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6090 (exit $ac_status); }; }; then
6091 ac_cv_func_lzo1x_999_compress
=yes
6093 echo "$as_me: failed program was:" >&5
6094 sed 's/^/| /' conftest.
$ac_ext >&5
6096 ac_cv_func_lzo1x_999_compress
=no
6098 rm -f conftest.err conftest.
$ac_objext \
6099 conftest
$ac_exeext conftest.
$ac_ext
6101 echo "$as_me:$LINENO: result: $ac_cv_func_lzo1x_999_compress" >&5
6102 echo "${ECHO_T}$ac_cv_func_lzo1x_999_compress" >&6
6103 if test $ac_cv_func_lzo1x_999_compress = yes; then
6106 { { echo "$as_me:$LINENO: error: LZO1X-999 must be enabled" >&5
6107 echo "$as_me: error: LZO1X-999 must be enabled" >&2;}
6108 { (exit 1); exit 1; }; }
6112 # LZO version 2 uses lzo/lzo1x.h, while LZO version 1 uses lzo1x.h.
6115 for ac_header
in lzo
/lzo1x.h lzo1x.h
6117 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6118 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6119 echo "$as_me:$LINENO: checking for $ac_header" >&5
6120 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6121 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6122 echo $ECHO_N "(cached) $ECHO_C" >&6
6124 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6125 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6127 # Is the header compilable?
6128 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6129 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6130 cat >conftest.
$ac_ext <<_ACEOF
6133 cat confdefs.h
>>conftest.
$ac_ext
6134 cat >>conftest.
$ac_ext <<_ACEOF
6135 /* end confdefs.h. */
6136 $ac_includes_default
6137 #include <$ac_header>
6139 rm -f conftest.
$ac_objext
6140 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6141 (eval $ac_compile) 2>conftest.er1
6143 grep -v '^ *+' conftest.er1
>conftest.err
6145 cat conftest.err
>&5
6146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6147 (exit $ac_status); } &&
6148 { ac_try
='test -z "$ac_c_werror_flag"
6149 || test ! -s conftest.err'
6150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6154 (exit $ac_status); }; } &&
6155 { ac_try
='test -s conftest.$ac_objext'
6156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6160 (exit $ac_status); }; }; then
6161 ac_header_compiler
=yes
6163 echo "$as_me: failed program was:" >&5
6164 sed 's/^/| /' conftest.
$ac_ext >&5
6166 ac_header_compiler
=no
6168 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6169 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6170 echo "${ECHO_T}$ac_header_compiler" >&6
6172 # Is the header present?
6173 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6174 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6175 cat >conftest.
$ac_ext <<_ACEOF
6178 cat confdefs.h
>>conftest.
$ac_ext
6179 cat >>conftest.
$ac_ext <<_ACEOF
6180 /* end confdefs.h. */
6181 #include <$ac_header>
6183 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6184 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6186 grep -v '^ *+' conftest.er1
>conftest.err
6188 cat conftest.err
>&5
6189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6190 (exit $ac_status); } >/dev
/null
; then
6191 if test -s conftest.err
; then
6192 ac_cpp_err
=$ac_c_preproc_warn_flag
6193 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6200 if test -z "$ac_cpp_err"; then
6201 ac_header_preproc
=yes
6203 echo "$as_me: failed program was:" >&5
6204 sed 's/^/| /' conftest.
$ac_ext >&5
6206 ac_header_preproc
=no
6208 rm -f conftest.err conftest.
$ac_ext
6209 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6210 echo "${ECHO_T}$ac_header_preproc" >&6
6212 # So? What about this header?
6213 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6215 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6216 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6217 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6218 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6219 ac_header_preproc
=yes
6222 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6223 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6224 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6225 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6226 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6227 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6228 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6229 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6230 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6231 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6232 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6233 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6236 ## ------------------------------- ##
6237 ## Report this to bug-grub@gnu.org ##
6238 ## ------------------------------- ##
6241 sed "s/^/$as_me: WARNING: /" >&2
6244 echo "$as_me:$LINENO: checking for $ac_header" >&5
6245 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6246 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6247 echo $ECHO_N "(cached) $ECHO_C" >&6
6249 eval "$as_ac_Header=\$ac_header_preproc"
6251 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6252 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6255 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6256 cat >>confdefs.h
<<_ACEOF
6257 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6267 echo "$as_me:$LINENO: checking for wgetch in -lncurses" >&5
6268 echo $ECHO_N "checking for wgetch in -lncurses... $ECHO_C" >&6
6269 if test "${ac_cv_lib_ncurses_wgetch+set}" = set; then
6270 echo $ECHO_N "(cached) $ECHO_C" >&6
6272 ac_check_lib_save_LIBS
=$LIBS
6273 LIBS
="-lncurses $LIBS"
6274 cat >conftest.
$ac_ext <<_ACEOF
6277 cat confdefs.h
>>conftest.
$ac_ext
6278 cat >>conftest.
$ac_ext <<_ACEOF
6279 /* end confdefs.h. */
6281 /* Override any gcc2 internal prototype to avoid an error. */
6285 /* We use char because int might match the return type of a gcc2
6286 builtin and then its argument prototype would still apply. */
6296 rm -f conftest.
$ac_objext conftest
$ac_exeext
6297 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6298 (eval $ac_link) 2>conftest.er1
6300 grep -v '^ *+' conftest.er1
>conftest.err
6302 cat conftest.err
>&5
6303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6304 (exit $ac_status); } &&
6305 { ac_try
='test -z "$ac_c_werror_flag"
6306 || test ! -s conftest.err'
6307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6311 (exit $ac_status); }; } &&
6312 { ac_try
='test -s conftest$ac_exeext'
6313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6317 (exit $ac_status); }; }; then
6318 ac_cv_lib_ncurses_wgetch
=yes
6320 echo "$as_me: failed program was:" >&5
6321 sed 's/^/| /' conftest.
$ac_ext >&5
6323 ac_cv_lib_ncurses_wgetch
=no
6325 rm -f conftest.err conftest.
$ac_objext \
6326 conftest
$ac_exeext conftest.
$ac_ext
6327 LIBS
=$ac_check_lib_save_LIBS
6329 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_wgetch" >&5
6330 echo "${ECHO_T}$ac_cv_lib_ncurses_wgetch" >&6
6331 if test $ac_cv_lib_ncurses_wgetch = yes; then
6332 LIBCURSES
="-lncurses"
6334 echo "$as_me:$LINENO: checking for wgetch in -lcurses" >&5
6335 echo $ECHO_N "checking for wgetch in -lcurses... $ECHO_C" >&6
6336 if test "${ac_cv_lib_curses_wgetch+set}" = set; then
6337 echo $ECHO_N "(cached) $ECHO_C" >&6
6339 ac_check_lib_save_LIBS
=$LIBS
6340 LIBS
="-lcurses $LIBS"
6341 cat >conftest.
$ac_ext <<_ACEOF
6344 cat confdefs.h
>>conftest.
$ac_ext
6345 cat >>conftest.
$ac_ext <<_ACEOF
6346 /* end confdefs.h. */
6348 /* Override any gcc2 internal prototype to avoid an error. */
6352 /* We use char because int might match the return type of a gcc2
6353 builtin and then its argument prototype would still apply. */
6363 rm -f conftest.
$ac_objext conftest
$ac_exeext
6364 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6365 (eval $ac_link) 2>conftest.er1
6367 grep -v '^ *+' conftest.er1
>conftest.err
6369 cat conftest.err
>&5
6370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6371 (exit $ac_status); } &&
6372 { ac_try
='test -z "$ac_c_werror_flag"
6373 || test ! -s conftest.err'
6374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6378 (exit $ac_status); }; } &&
6379 { ac_try
='test -s conftest$ac_exeext'
6380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6384 (exit $ac_status); }; }; then
6385 ac_cv_lib_curses_wgetch
=yes
6387 echo "$as_me: failed program was:" >&5
6388 sed 's/^/| /' conftest.
$ac_ext >&5
6390 ac_cv_lib_curses_wgetch
=no
6392 rm -f conftest.err conftest.
$ac_objext \
6393 conftest
$ac_exeext conftest.
$ac_ext
6394 LIBS
=$ac_check_lib_save_LIBS
6396 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_wgetch" >&5
6397 echo "${ECHO_T}$ac_cv_lib_curses_wgetch" >&6
6398 if test $ac_cv_lib_curses_wgetch = yes; then
6399 LIBCURSES
="-lcurses"
6406 # Check for headers.
6410 for ac_header
in ncurses
/curses.h ncurses.h curses.h
6412 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6413 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6414 echo "$as_me:$LINENO: checking for $ac_header" >&5
6415 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6416 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6417 echo $ECHO_N "(cached) $ECHO_C" >&6
6419 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6420 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6422 # Is the header compilable?
6423 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6424 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6425 cat >conftest.
$ac_ext <<_ACEOF
6428 cat confdefs.h
>>conftest.
$ac_ext
6429 cat >>conftest.
$ac_ext <<_ACEOF
6430 /* end confdefs.h. */
6431 $ac_includes_default
6432 #include <$ac_header>
6434 rm -f conftest.
$ac_objext
6435 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6436 (eval $ac_compile) 2>conftest.er1
6438 grep -v '^ *+' conftest.er1
>conftest.err
6440 cat conftest.err
>&5
6441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6442 (exit $ac_status); } &&
6443 { ac_try
='test -z "$ac_c_werror_flag"
6444 || test ! -s conftest.err'
6445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6449 (exit $ac_status); }; } &&
6450 { ac_try
='test -s conftest.$ac_objext'
6451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6455 (exit $ac_status); }; }; then
6456 ac_header_compiler
=yes
6458 echo "$as_me: failed program was:" >&5
6459 sed 's/^/| /' conftest.
$ac_ext >&5
6461 ac_header_compiler
=no
6463 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6464 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6465 echo "${ECHO_T}$ac_header_compiler" >&6
6467 # Is the header present?
6468 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6469 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6470 cat >conftest.
$ac_ext <<_ACEOF
6473 cat confdefs.h
>>conftest.
$ac_ext
6474 cat >>conftest.
$ac_ext <<_ACEOF
6475 /* end confdefs.h. */
6476 #include <$ac_header>
6478 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6479 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6481 grep -v '^ *+' conftest.er1
>conftest.err
6483 cat conftest.err
>&5
6484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6485 (exit $ac_status); } >/dev
/null
; then
6486 if test -s conftest.err
; then
6487 ac_cpp_err
=$ac_c_preproc_warn_flag
6488 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6495 if test -z "$ac_cpp_err"; then
6496 ac_header_preproc
=yes
6498 echo "$as_me: failed program was:" >&5
6499 sed 's/^/| /' conftest.
$ac_ext >&5
6501 ac_header_preproc
=no
6503 rm -f conftest.err conftest.
$ac_ext
6504 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6505 echo "${ECHO_T}$ac_header_preproc" >&6
6507 # So? What about this header?
6508 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6510 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6511 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6512 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6513 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6514 ac_header_preproc
=yes
6517 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6518 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6519 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6520 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6521 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6522 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6523 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6524 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6525 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6526 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6527 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6528 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6531 ## ------------------------------- ##
6532 ## Report this to bug-grub@gnu.org ##
6533 ## ------------------------------- ##
6536 sed "s/^/$as_me: WARNING: /" >&2
6539 echo "$as_me:$LINENO: checking for $ac_header" >&5
6540 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6541 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6542 echo $ECHO_N "(cached) $ECHO_C" >&6
6544 eval "$as_ac_Header=\$ac_header_preproc"
6546 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6547 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6550 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6551 cat >>confdefs.h
<<_ACEOF
6552 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6560 # Restore the flags.
6562 CFLAGS
="$tmp_CFLAGS"
6563 CPPFLAGS
="$tmp_CPPFLAGS"
6564 LDFLAGS
="$tmp_LDFLAGS"
6567 ac_config_links
="$ac_config_links include/grub/cpu:include/grub/$host_cpu include/grub/machine:include/grub/$host_cpu/$host_vendor"
6569 ac_config_files
="$ac_config_files Makefile"
6571 ac_config_files
="$ac_config_files stamp-h"
6573 cat >confcache
<<\_ACEOF
6574 # This file is a shell script that caches the results of configure
6575 # tests run on this system so they can be shared between configure
6576 # scripts and configure runs, see configure's option --config-cache.
6577 # It is not useful on other systems. If it contains results you don't
6578 # want to keep, you may remove or edit it.
6580 # config.status only pays attention to the cache file if you give it
6581 # the --recheck option to rerun configure.
6583 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6584 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6589 # The following way of writing the cache mishandles newlines in values,
6590 # but we know of no workaround that is simple, portable, and efficient.
6591 # So, don't put newlines in cache variables' values.
6592 # Ultrix sh set writes to stderr and can't be redirected directly,
6593 # and sets the high bit in the cache file unless we assign to the vars.
6596 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6598 # `set' does not quote correctly, so add quotes (double-quote
6599 # substitution turns \\\\ into \\, and sed turns \\ into \).
6602 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6605 # `set' quotes correctly as required by POSIX, so do not add quotes.
6607 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6614 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6616 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6618 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
6619 if test -w $cache_file; then
6620 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
6621 cat confcache
>$cache_file
6623 echo "not updating unwritable cache $cache_file"
6628 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
6629 # Let make expand exec_prefix.
6630 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6632 # VPATH may cause trouble with some makes, so we remove $(srcdir),
6633 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6634 # trailing colons and then remove the whole line if VPATH becomes empty
6635 # (actually we leave an empty line to preserve line numbers).
6636 if test "x$srcdir" = x.
; then
6637 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
6638 s/:*\$(srcdir):*/:/;
6639 s/:*\${srcdir}:*/:/;
6641 s/^\([^=]*=[ ]*\):*/\1/;
6647 DEFS
=-DHAVE_CONFIG_H
6651 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
6652 # 1. Remove the extension, and $U if already installed.
6653 ac_i
=`echo "$ac_i" |
6654 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
6656 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
6657 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
6661 LTLIBOBJS
=$ac_ltlibobjs
6665 : ${CONFIG_STATUS=./config.status}
6666 ac_clean_files_save
=$ac_clean_files
6667 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
6668 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
6669 echo "$as_me: creating $CONFIG_STATUS" >&6;}
6670 cat >$CONFIG_STATUS <<_ACEOF
6672 # Generated by $as_me.
6673 # Run this file to recreate the current configuration.
6674 # Compiler output produced by configure, useful for debugging
6675 # configure, is in config.log if it exists.
6680 SHELL=\${CONFIG_SHELL-$SHELL}
6683 cat >>$CONFIG_STATUS <<\_ACEOF
6684 ## --------------------- ##
6685 ## M4sh Initialization. ##
6686 ## --------------------- ##
6688 # Be Bourne compatible
6689 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
6692 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
6693 # is contrary to our usage. Disable this feature.
6694 alias -g '${1+"$@"}'='"$@"'
6695 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
6698 DUALCASE
=1; export DUALCASE
# for MKS sh
6700 # Support unset when possible.
6701 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
6708 # Work around bugs in pre-3.0 UWIN ksh.
6709 $as_unset ENV MAIL MAILPATH
6716 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
6717 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
6718 LC_TELEPHONE LC_TIME
6720 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
6721 eval $as_var=C
; export $as_var
6727 # Required to use basename.
6728 if expr a
: '\(a\)' >/dev
/null
2>&1; then
6734 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
6735 as_basename
=basename
6741 # Name of the executable.
6742 as_me
=`$as_basename "$0" ||
6743 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6744 X"$0" : 'X\(//\)$' \| \
6745 X"$0" : 'X\(/\)$' \| \
6746 . : '\(.\)' 2>/dev/null ||
6748 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
6749 /^X\/\(\/\/\)$/{ s//\1/; q; }
6750 /^X\/\(\/\).*/{ s//\1/; q; }
6754 # PATH needs CR, and LINENO needs CR and PATH.
6755 # Avoid depending upon Character Ranges.
6756 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
6757 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6758 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
6759 as_cr_digits
='0123456789'
6760 as_cr_alnum
=$as_cr_Letters$as_cr_digits
6762 # The user is always right.
6763 if test "${PATH_SEPARATOR+set}" != set; then
6764 echo "#! /bin/sh" >conf$$.sh
6765 echo "exit 0" >>conf$$.sh
6767 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
6778 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
6779 test "x$as_lineno_1" != "x$as_lineno_2" &&
6780 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
6781 # Find who we are. Look in the path if we contain no path at all
6784 *[\\/]* ) as_myself
=$0 ;;
6785 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6789 test -z "$as_dir" && as_dir
=.
6790 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
6795 # We did not find ourselves, most probably we were run as `sh COMMAND'
6796 # in which case we are not to be found in the path.
6797 if test "x$as_myself" = x
; then
6800 if test ! -f "$as_myself"; then
6801 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
6802 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
6803 { (exit 1); exit 1; }; }
6805 case $CONFIG_SHELL in
6807 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6808 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
6811 test -z "$as_dir" && as_dir
=.
6812 for as_base
in sh bash ksh sh5
; do
6815 if ("$as_dir/$as_base" -c '
6818 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6819 test "x$as_lineno_1" != "x$as_lineno_2" &&
6820 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
6821 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
6822 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
6823 CONFIG_SHELL
=$as_dir/$as_base
6825 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
6833 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
6834 # uniformly replaced by the line number. The first 'sed' inserts a
6835 # line-number line before each line; the second 'sed' does the real
6836 # work. The second script uses 'N' to pair each line-number line
6837 # with the numbered line, and appends trailing '-' during
6838 # substitution so that $LINENO is not a special case at line end.
6839 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
6840 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
6841 sed '=' <$as_myself |
6846 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
6849 s,^['$as_cr_digits']*\n,,
6851 chmod +x
$as_me.lineno ||
6852 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
6853 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
6854 { (exit 1); exit 1; }; }
6856 # Don't try to exec as it changes $[0], causing all sort of problems
6857 # (the dirname of $[0] is not the place where we might find the
6858 # original and so on. Autoconf is especially sensible to this).
6860 # Exit status is that of the last command.
6865 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
6866 *c
*,-n*) ECHO_N
= ECHO_C
='
6868 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
6869 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
6872 if expr a
: '\(a\)' >/dev
/null
2>&1; then
6878 rm -f conf$$ conf$$.exe conf$$.
file
6880 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
6881 # We could just check for DJGPP; but this test a) works b) is more generic
6882 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
6883 if test -f conf$$.exe
; then
6884 # Don't use ln at all; we don't have any links
6889 elif ln conf$$.
file conf$$
2>/dev
/null
; then
6894 rm -f conf$$ conf$$.exe conf$$.
file
6896 if mkdir
-p .
2>/dev
/null
; then
6899 test -d .
/-p && rmdir .
/-p
6903 as_executable_p
="test -f"
6905 # Sed expression to map a string onto a valid CPP name.
6906 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6908 # Sed expression to map a string onto a valid variable name.
6909 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6913 # We need space, tab and new line, in precisely that order.
6923 # Open the log real soon, to keep \$[0] and so on meaningful, and to
6924 # report actual input values of CONFIG_FILES etc. instead of their
6925 # values after options handling. Logging --version etc. is OK.
6929 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6930 ## Running $as_me. ##
6935 This file was extended by GRUB $as_me 1.93, which was
6936 generated by GNU Autoconf 2.59. Invocation command line was
6938 CONFIG_FILES = $CONFIG_FILES
6939 CONFIG_HEADERS = $CONFIG_HEADERS
6940 CONFIG_LINKS = $CONFIG_LINKS
6941 CONFIG_COMMANDS = $CONFIG_COMMANDS
6945 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
6949 # Files that config.status was made for.
6950 if test -n "$ac_config_files"; then
6951 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
6954 if test -n "$ac_config_headers"; then
6955 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
6958 if test -n "$ac_config_links"; then
6959 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
6962 if test -n "$ac_config_commands"; then
6963 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
6966 cat >>$CONFIG_STATUS <<\_ACEOF
6969 \`$as_me' instantiates files from templates according to the
6970 current configuration.
6972 Usage: $0 [OPTIONS] [FILE]...
6974 -h, --help print this help, then exit
6975 -V, --version print version number, then exit
6976 -q, --quiet do not print progress messages
6977 -d, --debug don't remove temporary files
6978 --recheck update $as_me by reconfiguring in the same conditions
6979 --file=FILE[:TEMPLATE]
6980 instantiate the configuration file FILE
6981 --header=FILE[:TEMPLATE]
6982 instantiate the configuration header FILE
6984 Configuration files:
6987 Configuration headers:
6990 Configuration links:
6993 Report bugs to <bug-autoconf@gnu.org>."
6996 cat >>$CONFIG_STATUS <<_ACEOF
6998 GRUB config.status 1.93
6999 configured by $0, generated by GNU Autoconf 2.59,
7000 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
7002 Copyright (C) 2003 Free Software Foundation, Inc.
7003 This config.status script is free software; the Free Software Foundation
7004 gives unlimited permission to copy, distribute and modify it."
7009 cat >>$CONFIG_STATUS <<\_ACEOF
7010 # If no file are specified by the user, then we need to provide default
7011 # value. By we need to know if files were specified by the user.
7017 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
7018 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
7026 *) # This is not an option, so the user has probably given explicit
7029 ac_need_defaults
=false
;;
7033 # Handling of the options.
7035 cat >>$CONFIG_STATUS <<\_ACEOF
7036 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
7038 --version |
--vers* |
-V )
7039 echo "$ac_cs_version"; exit 0 ;;
7041 # Conflict between --help and --header
7042 { { echo "$as_me:$LINENO: error: ambiguous option: $1
7043 Try \`$0 --help' for more information." >&5
7044 echo "$as_me: error: ambiguous option: $1
7045 Try \`$0 --help' for more information." >&2;}
7046 { (exit 1); exit 1; }; };;
7047 --help |
--hel |
-h )
7048 echo "$ac_cs_usage"; exit 0 ;;
7049 --debug |
--d* |
-d )
7051 --file |
--fil |
--fi |
--f )
7053 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
7054 ac_need_defaults
=false
;;
7055 --header |
--heade |
--head |
--hea )
7057 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
7058 ac_need_defaults
=false
;;
7059 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
7060 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
7064 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
7065 Try \`$0 --help' for more information." >&5
7066 echo "$as_me: error: unrecognized option: $1
7067 Try \`$0 --help' for more information." >&2;}
7068 { (exit 1); exit 1; }; } ;;
7070 *) ac_config_targets
="$ac_config_targets $1" ;;
7076 ac_configure_extra_args
=
7078 if $ac_cs_silent; then
7080 ac_configure_extra_args
="$ac_configure_extra_args --silent"
7084 cat >>$CONFIG_STATUS <<_ACEOF
7085 if \$ac_cs_recheck; then
7086 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
7087 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7096 cat >>$CONFIG_STATUS <<\_ACEOF
7097 for ac_config_target
in $ac_config_targets
7099 case "$ac_config_target" in
7100 # Handling of arguments.
7101 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
7102 "stamp-h" ) CONFIG_FILES
="$CONFIG_FILES stamp-h" ;;
7103 "include/grub/cpu" ) CONFIG_LINKS
="$CONFIG_LINKS include/grub/cpu:include/grub/$host_cpu" ;;
7104 "include/grub/machine" ) CONFIG_LINKS
="$CONFIG_LINKS include/grub/machine:include/grub/$host_cpu/$host_vendor" ;;
7105 "config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
7106 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
7107 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
7108 { (exit 1); exit 1; }; };;
7112 # If the user did not use the arguments to specify the items to instantiate,
7113 # then the envvar interface is used. Set only those that are not.
7114 # We use the long form for the default assignment because of an extremely
7115 # bizarre bug on SunOS 4.1.3.
7116 if $ac_need_defaults; then
7117 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
7118 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
7119 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS
=$config_links
7122 # Have a temporary directory for convenience. Make it in the build tree
7123 # simply because there is no reason to put it here, and in addition,
7124 # creating and moving files from /tmp can sometimes cause problems.
7125 # Create a temporary directory, and hook for its removal unless debugging.
7128 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
7129 trap '{ (exit 1); exit 1; }' 1 2 13 15
7132 # Create a (secure) tmp directory for tmp files.
7135 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
7136 test -n "$tmp" && test -d "$tmp"
7139 tmp
=.
/confstat$$
-$RANDOM
7140 (umask 077 && mkdir
$tmp)
7143 echo "$me: cannot create a temporary directory in ." >&2
7144 { (exit 1); exit 1; }
7149 cat >>$CONFIG_STATUS <<_ACEOF
7152 # CONFIG_FILES section.
7155 # No need to generate the scripts if there are no CONFIG_FILES.
7156 # This happens for instance when ./config.status config.h
7157 if test -n "\$CONFIG_FILES"; then
7158 # Protect against being on the right side of a sed subst in config.status.
7159 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
7160 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
7161 s,@SHELL@,$SHELL,;t t
7162 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
7163 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
7164 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
7165 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
7166 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
7167 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
7168 s,@exec_prefix@,$exec_prefix,;t t
7169 s,@prefix@,$prefix,;t t
7170 s,@program_transform_name@,$program_transform_name,;t t
7171 s,@bindir@,$bindir,;t t
7172 s,@sbindir@,$sbindir,;t t
7173 s,@libexecdir@,$libexecdir,;t t
7174 s,@datadir@,$datadir,;t t
7175 s,@sysconfdir@,$sysconfdir,;t t
7176 s,@sharedstatedir@,$sharedstatedir,;t t
7177 s,@localstatedir@,$localstatedir,;t t
7178 s,@libdir@,$libdir,;t t
7179 s,@includedir@,$includedir,;t t
7180 s,@oldincludedir@,$oldincludedir,;t t
7181 s,@infodir@,$infodir,;t t
7182 s,@mandir@,$mandir,;t t
7183 s,@build_alias@,$build_alias,;t t
7184 s,@host_alias@,$host_alias,;t t
7185 s,@target_alias@,$target_alias,;t t
7187 s,@ECHO_C@,$ECHO_C,;t t
7188 s,@ECHO_N@,$ECHO_N,;t t
7189 s,@ECHO_T@,$ECHO_T,;t t
7191 s,@build@,$build,;t t
7192 s,@build_cpu@,$build_cpu,;t t
7193 s,@build_vendor@,$build_vendor,;t t
7194 s,@build_os@,$build_os,;t t
7196 s,@host_cpu@,$host_cpu,;t t
7197 s,@host_vendor@,$host_vendor,;t t
7198 s,@host_os@,$host_os,;t t
7200 s,@CFLAGS@,$CFLAGS,;t t
7201 s,@LDFLAGS@,$LDFLAGS,;t t
7202 s,@CPPFLAGS@,$CPPFLAGS,;t t
7203 s,@ac_ct_CC@,$ac_ct_CC,;t t
7204 s,@EXEEXT@,$EXEEXT,;t t
7205 s,@OBJEXT@,$OBJEXT,;t t
7207 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
7208 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
7209 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
7210 s,@SET_MAKE@,$SET_MAKE,;t t
7211 s,@OBJCOPY@,$OBJCOPY,;t t
7212 s,@ac_ct_OBJCOPY@,$ac_ct_OBJCOPY,;t t
7213 s,@STRIP@,$STRIP,;t t
7214 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
7216 s,@ac_ct_NM@,$ac_ct_NM,;t t
7218 s,@ac_ct_LD@,$ac_ct_LD,;t t
7220 s,@BUILD_CC@,$BUILD_CC,;t t
7222 s,@EGREP@,$EGREP,;t t
7223 s,@LIBLZO@,$LIBLZO,;t t
7224 s,@LIBCURSES@,$LIBCURSES,;t t
7225 s,@LIBOBJS@,$LIBOBJS,;t t
7226 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
7231 cat >>$CONFIG_STATUS <<\_ACEOF
7232 # Split the substitutions into bite-sized pieces for seds with
7233 # small command number limits, like on Digital OSF/1 and HP-UX.
7235 ac_sed_frag
=1 # Number of current file.
7236 ac_beg
=1 # First line for current file.
7237 ac_end
=$ac_max_sed_lines # Line after last line for current file.
7240 while $ac_more_lines; do
7241 if test $ac_beg -gt 1; then
7242 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
7244 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
7246 if test ! -s $tmp/subs.frag
; then
7249 # The purpose of the label and of the branching condition is to
7250 # speed up the sed processing (if there are no `@' at all, there
7251 # is no need to browse any of the substitutions).
7252 # These are the two extra sed commands mentioned above.
7254 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
7255 if test -z "$ac_sed_cmds"; then
7256 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
7258 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
7260 ac_sed_frag
=`expr $ac_sed_frag + 1`
7262 ac_end
=`expr $ac_end + $ac_max_sed_lines`
7265 if test -z "$ac_sed_cmds"; then
7268 fi # test -n "$CONFIG_FILES"
7271 cat >>$CONFIG_STATUS <<\_ACEOF
7272 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
7273 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7275 - |
*:- |
*:-:* ) # input from stdin
7277 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
7278 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
7279 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
7280 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
7281 * ) ac_file_in
=$ac_file.
in ;;
7284 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
7285 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
7286 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7287 X"$ac_file" : 'X\(//\)[^/]' \| \
7288 X"$ac_file" : 'X\(//\)$' \| \
7289 X"$ac_file" : 'X\(/\)' \| \
7290 . : '\(.\)' 2>/dev/null ||
7292 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7293 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7294 /^X\(\/\/\)$/{ s//\1/; q; }
7295 /^X\(\/\).*/{ s//\1/; q; }
7297 { if $as_mkdir_p; then
7302 while test ! -d "$as_dir"; do
7303 as_dirs
="$as_dir $as_dirs"
7304 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
7305 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7306 X"$as_dir" : 'X\(//\)[^/]' \| \
7307 X"$as_dir" : 'X\(//\)$' \| \
7308 X"$as_dir" : 'X\(/\)' \| \
7309 . : '\(.\)' 2>/dev/null ||
7311 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7312 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7313 /^X\(\/\/\)$/{ s//\1/; q; }
7314 /^X\(\/\).*/{ s//\1/; q; }
7317 test ! -n "$as_dirs" || mkdir
$as_dirs
7318 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7319 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7320 { (exit 1); exit 1; }; }; }
7324 if test "$ac_dir" != .
; then
7325 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7326 # A "../" for each directory in $ac_dir_suffix.
7327 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7329 ac_dir_suffix
= ac_top_builddir
=
7333 .
) # No --srcdir option. We are building in place.
7335 if test -z "$ac_top_builddir"; then
7338 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
7340 [\\/]* | ?
:[\\/]* ) # Absolute path.
7341 ac_srcdir
=$srcdir$ac_dir_suffix;
7342 ac_top_srcdir
=$srcdir ;;
7344 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
7345 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
7348 # Do not use `cd foo && pwd` to compute absolute paths, because
7349 # the directories may not exist.
7351 .
) ac_abs_builddir
="$ac_dir";;
7354 .
) ac_abs_builddir
=`pwd`;;
7355 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
7356 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
7359 case $ac_abs_builddir in
7360 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
7362 case ${ac_top_builddir}.
in
7363 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
7364 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
7365 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
7368 case $ac_abs_builddir in
7369 .
) ac_abs_srcdir
=$ac_srcdir;;
7372 .
) ac_abs_srcdir
=$ac_abs_builddir;;
7373 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
7374 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
7377 case $ac_abs_builddir in
7378 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
7380 case $ac_top_srcdir in
7381 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
7382 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
7383 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
7389 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
7390 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
7393 if test x
"$ac_file" != x-
; then
7394 { echo "$as_me:$LINENO: creating $ac_file" >&5
7395 echo "$as_me: creating $ac_file" >&6;}
7398 # Let's still pretend it is `configure' which instantiates (i.e., don't
7399 # use $as_me), people would be surprised to read:
7400 # /* config.h. Generated by config.status. */
7401 if test x
"$ac_file" = x-
; then
7404 configure_input
="$ac_file. "
7406 configure_input
=$configure_input"Generated from `echo $ac_file_in |
7407 sed 's,.*/,,'` by configure."
7409 # First look for the input files in the build tree, otherwise in the
7411 ac_file_inputs
=`IFS=:
7412 for f in $ac_file_in; do
7414 -) echo $tmp/stdin ;;
7416 # Absolute (can't be DOS-style, as IFS=:)
7417 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7418 echo "$as_me: error: cannot find input file: $f" >&2;}
7419 { (exit 1); exit 1; }; }
7422 if test -f "$f"; then
7425 elif test -f "$srcdir/$f"; then
7430 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7431 echo "$as_me: error: cannot find input file: $f" >&2;}
7432 { (exit 1); exit 1; }; }
7435 done` ||
{ (exit 1); exit 1; }
7437 cat >>$CONFIG_STATUS <<_ACEOF
7441 cat >>$CONFIG_STATUS <<\_ACEOF
7443 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
7444 s
,@configure_input@
,$configure_input,;t t
7445 s
,@srcdir@
,$ac_srcdir,;t t
7446 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
7447 s
,@top_srcdir@
,$ac_top_srcdir,;t t
7448 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
7449 s
,@builddir@
,$ac_builddir,;t t
7450 s
,@abs_builddir@
,$ac_abs_builddir,;t t
7451 s
,@top_builddir@
,$ac_top_builddir,;t t
7452 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
7453 s
,@INSTALL@
,$ac_INSTALL,;t t
7454 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
7456 if test x"$ac_file" != x-; then
7457 mv $tmp/out $ac_file
7463 # Run the commands associated with the file.
7465 stamp-h ) echo timestamp > stamp-h ;;
7469 cat >>$CONFIG_STATUS <<\_ACEOF
7472 # CONFIG_HEADER section.
7475 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
7476 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7478 # ac_d sets the value in "#define NAME VALUE" lines.
7479 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7480 ac_dB
='[ ].*$,\1#\2'
7483 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7484 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7485 ac_uB
='$,\1#\2define\3'
7489 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
7490 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7492 - |
*:- |
*:-:* ) # input from stdin
7494 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
7495 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
7496 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
7497 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
7498 * ) ac_file_in
=$ac_file.
in ;;
7501 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
7502 echo "$as_me: creating $ac_file" >&6;}
7504 # First look for the input files in the build tree, otherwise in the
7506 ac_file_inputs
=`IFS=:
7507 for f in $ac_file_in; do
7509 -) echo $tmp/stdin ;;
7511 # Absolute (can't be DOS-style, as IFS=:)
7512 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7513 echo "$as_me: error: cannot find input file: $f" >&2;}
7514 { (exit 1); exit 1; }; }
7515 # Do quote $f, to prevent DOS paths from being IFS'd.
7518 if test -f "$f"; then
7521 elif test -f "$srcdir/$f"; then
7526 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7527 echo "$as_me: error: cannot find input file: $f" >&2;}
7528 { (exit 1); exit 1; }; }
7531 done` ||
{ (exit 1); exit 1; }
7532 # Remove the trailing spaces.
7533 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
7537 # Transform confdefs.h into two sed scripts, `conftest.defines' and
7538 # `conftest.undefs', that substitutes the proper values into
7539 # config.h.in to produce config.h. The first handles `#define'
7540 # templates, and the second `#undef' templates.
7541 # And first: Protect against being on the right side of a sed subst in
7542 # config.status. Protect against being in an unquoted here document
7544 rm -f conftest.defines conftest.undefs
7545 # Using a here document instead of a string reduces the quoting nightmare.
7546 # Putting comments in sed scripts is not portable.
7548 # `end' is used to avoid that the second main sed command (meant for
7549 # 0-ary CPP macros) applies to n-ary macro definitions.
7550 # See the Autoconf documentation for `clear'.
7551 cat >confdef2sed.
sed <<\_ACEOF
7556 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
7558 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
7561 # If some macros were called several times there might be several times
7562 # the same #defines, which is useless. Nevertheless, we may not want to
7563 # sort them, since we want the *last* AC-DEFINE to be honored.
7564 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
7565 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
7566 rm -f confdef2sed.sed
7568 # This sed command replaces #undef with comments. This is necessary, for
7569 # example, in the case of _POSIX_SOURCE, which is predefined and required
7570 # on some systems where configure will not decide to define it.
7571 cat >>conftest.undefs <<\_ACEOF
7572 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
7575 # Break up conftest.defines because some shells have a limit on the size
7576 # of here documents, and old seds have small limits too (100 cmds).
7577 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
7578 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
7579 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
7580 echo ' :' >>$CONFIG_STATUS
7582 while grep . conftest.defines >/dev/null
7584 # Write a limited-size here document to $tmp/defines.sed.
7585 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
7586 # Speed up: don't consider the non `#define' lines.
7587 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
7588 # Work around the forget-to-reset-the-flag bug.
7589 echo 't clr' >>$CONFIG_STATUS
7590 echo ': clr' >>$CONFIG_STATUS
7591 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
7593 sed -f $tmp/defines.sed $tmp/in >$tmp/out
7597 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
7598 rm -f conftest.defines
7599 mv conftest.
tail conftest.defines
7601 rm -f conftest.defines
7602 echo ' fi # grep' >>$CONFIG_STATUS
7603 echo >>$CONFIG_STATUS
7605 # Break up conftest.undefs because some shells have a limit on the size
7606 # of here documents, and old seds have small limits too (100 cmds).
7607 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
7609 while grep . conftest.undefs
>/dev
/null
7611 # Write a limited-size here document to $tmp/undefs.sed.
7612 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
7613 # Speed up: don't consider the non
`#undef'
7614 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
7615 # Work around the forget-to-reset-the-flag bug.
7616 echo 't clr' >>$CONFIG_STATUS
7617 echo ': clr' >>$CONFIG_STATUS
7618 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
7620 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
7624 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
7625 rm -f conftest.undefs
7626 mv conftest.tail conftest.undefs
7628 rm -f conftest.undefs
7630 cat >>$CONFIG_STATUS <<\_ACEOF
7631 # Let's still pretend it is `configure
' which instantiates (i.e., don't
7632 # use $as_me), people would be surprised to read:
7633 # /* config.h. Generated by config.status. */
7634 if test x
"$ac_file" = x-
; then
7635 echo "/* Generated by configure. */" >$tmp/config.h
7637 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
7639 cat $tmp/in >>$tmp/config.h
7641 if test x
"$ac_file" != x-
; then
7642 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
7643 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
7644 echo "$as_me: $ac_file is unchanged" >&6;}
7646 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
7647 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7648 X"$ac_file" : 'X\(//\)[^/]' \| \
7649 X"$ac_file" : 'X\(//\)$' \| \
7650 X"$ac_file" : 'X\(/\)' \| \
7651 . : '\(.\)' 2>/dev/null ||
7653 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7654 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7655 /^X\(\/\/\)$/{ s//\1/; q; }
7656 /^X\(\/\).*/{ s//\1/; q; }
7658 { if $as_mkdir_p; then
7663 while test ! -d "$as_dir"; do
7664 as_dirs
="$as_dir $as_dirs"
7665 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
7666 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7667 X"$as_dir" : 'X\(//\)[^/]' \| \
7668 X"$as_dir" : 'X\(//\)$' \| \
7669 X"$as_dir" : 'X\(/\)' \| \
7670 . : '\(.\)' 2>/dev/null ||
7672 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7673 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7674 /^X\(\/\/\)$/{ s//\1/; q; }
7675 /^X\(\/\).*/{ s//\1/; q; }
7678 test ! -n "$as_dirs" || mkdir
$as_dirs
7679 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7680 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7681 { (exit 1); exit 1; }; }; }
7684 mv $tmp/config.h
$ac_file
7692 cat >>$CONFIG_STATUS <<\_ACEOF
7695 # CONFIG_LINKS section.
7698 for ac_file
in : $CONFIG_LINKS; do test "x$ac_file" = x
: && continue
7699 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
7700 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
7702 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
7703 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
7705 if test ! -r $srcdir/$ac_source; then
7706 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
7707 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
7708 { (exit 1); exit 1; }; }
7712 # Make relative symlinks.
7713 ac_dest_dir
=`(dirname "$ac_dest") 2>/dev/null ||
7714 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7715 X"$ac_dest" : 'X\(//\)[^/]' \| \
7716 X"$ac_dest" : 'X\(//\)$' \| \
7717 X"$ac_dest" : 'X\(/\)' \| \
7718 . : '\(.\)' 2>/dev/null ||
7720 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7721 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7722 /^X\(\/\/\)$/{ s//\1/; q; }
7723 /^X\(\/\).*/{ s//\1/; q; }
7725 { if $as_mkdir_p; then
7726 mkdir
-p "$ac_dest_dir"
7728 as_dir
="$ac_dest_dir"
7730 while test ! -d "$as_dir"; do
7731 as_dirs
="$as_dir $as_dirs"
7732 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
7733 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7734 X"$as_dir" : 'X\(//\)[^/]' \| \
7735 X"$as_dir" : 'X\(//\)$' \| \
7736 X"$as_dir" : 'X\(/\)' \| \
7737 . : '\(.\)' 2>/dev/null ||
7739 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7740 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7741 /^X\(\/\/\)$/{ s//\1/; q; }
7742 /^X\(\/\).*/{ s//\1/; q; }
7745 test ! -n "$as_dirs" || mkdir
$as_dirs
7746 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
7747 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
7748 { (exit 1); exit 1; }; }; }
7752 if test "$ac_dest_dir" != .
; then
7753 ac_dir_suffix
=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
7754 # A "../" for each directory in $ac_dir_suffix.
7755 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7757 ac_dir_suffix
= ac_top_builddir
=
7761 .
) # No --srcdir option. We are building in place.
7763 if test -z "$ac_top_builddir"; then
7766 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
7768 [\\/]* | ?
:[\\/]* ) # Absolute path.
7769 ac_srcdir
=$srcdir$ac_dir_suffix;
7770 ac_top_srcdir
=$srcdir ;;
7772 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
7773 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
7776 # Do not use `cd foo && pwd` to compute absolute paths, because
7777 # the directories may not exist.
7779 .
) ac_abs_builddir
="$ac_dest_dir";;
7781 case "$ac_dest_dir" in
7782 .
) ac_abs_builddir
=`pwd`;;
7783 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dest_dir";;
7784 *) ac_abs_builddir
=`pwd`/"$ac_dest_dir";;
7787 case $ac_abs_builddir in
7788 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
7790 case ${ac_top_builddir}.
in
7791 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
7792 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
7793 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
7796 case $ac_abs_builddir in
7797 .
) ac_abs_srcdir
=$ac_srcdir;;
7800 .
) ac_abs_srcdir
=$ac_abs_builddir;;
7801 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
7802 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
7805 case $ac_abs_builddir in
7806 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
7808 case $ac_top_srcdir in
7809 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
7810 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
7811 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
7817 [\\/$
]* | ?
:[\\/]* ) ac_rel_source
=$srcdir/$ac_source ;;
7818 *) ac_rel_source
=$ac_top_builddir$srcdir/$ac_source ;;
7821 # Try a symlink, then a hard link, then a copy.
7822 ln -s $ac_rel_source $ac_dest 2>/dev
/null ||
7823 ln $srcdir/$ac_source $ac_dest 2>/dev
/null ||
7824 cp -p $srcdir/$ac_source $ac_dest ||
7825 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
7826 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
7827 { (exit 1); exit 1; }; }
7831 cat >>$CONFIG_STATUS <<\_ACEOF
7833 { (exit 0); exit 0; }
7835 chmod +x
$CONFIG_STATUS
7836 ac_clean_files
=$ac_clean_files_save
7839 # configure is writing to config.log, and then calls config.status.
7840 # config.status does its own redirection, appending to config.log.
7841 # Unfortunately, on DOS this fails, as config.log is still kept open
7842 # by configure, so config.status won't be able to write to it; its
7843 # output is simply discarded. So we exec the FD to /dev/null,
7844 # effectively closing config.log, so it can be properly (re)opened and
7845 # appended to by config.status. When coming back to configure, we
7846 # need to make the FD available again.
7847 if test "$no_create" != yes; then
7849 ac_config_status_args
=
7850 test "$silent" = yes &&
7851 ac_config_status_args
="$ac_config_status_args --quiet"
7853 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
7855 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7856 # would make configure fail if this is the last instruction.
7857 $ac_cs_success ||
{ (exit 1); exit 1; }