2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for GRUB 1.92.
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.92'
273 PACKAGE_STRING
='GRUB 1.92'
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.92 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.92:";;
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.92, 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-*) host_vendor=pc ;;
1410 powerpc-*) host_vendor=ieee1275 ;;
1411 sparc64-*) host_vendor=ieee1275 ;;
1412 *) { { echo "$as_me:$LINENO: error: unsupported machine type" >&5
1413 echo "$as_me: error: unsupported machine type" >&2;}
1414 { (exit 1); exit 1; }; } ;;
1420 # Checks for programs.
1421 if test "x$CFLAGS" = x; then
1426 ac_cpp='$CPP $CPPFLAGS'
1427 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
1428 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
1429 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1430 if test -n "$ac_tool_prefix"; then
1431 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1432 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1433 echo "$as_me:$LINENO: checking for $ac_word" >&5
1434 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1435 if test "${ac_cv_prog_CC+set}" = set; then
1436 echo $ECHO_N "(cached) $ECHO_C" >&6
1438 if test -n "$CC"; then
1439 ac_cv_prog_CC="$CC" # Let the user override the test.
1441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1445 test -z "$as_dir" && as_dir=.
1446 for ac_exec_ext in '' $ac_executable_extensions; do
1447 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1448 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1449 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1458 if test -n "$CC"; then
1459 echo "$as_me:$LINENO: result: $CC" >&5
1460 echo "${ECHO_T}$CC" >&6
1462 echo "$as_me:$LINENO: result: no" >&5
1463 echo "${ECHO_T}no" >&6
1467 if test -z "$ac_cv_prog_CC"; then
1469 # Extract the first word of "gcc", so it can be a program name with args.
1470 set dummy gcc; ac_word=$2
1471 echo "$as_me:$LINENO: checking for $ac_word" >&5
1472 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1473 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1474 echo $ECHO_N "(cached) $ECHO_C" >&6
1476 if test -n "$ac_ct_CC"; then
1477 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1483 test -z "$as_dir" && as_dir=.
1484 for ac_exec_ext in '' $ac_executable_extensions; do
1485 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1486 ac_cv_prog_ac_ct_CC="gcc"
1487 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1495 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1496 if test -n "$ac_ct_CC"; then
1497 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1498 echo "${ECHO_T}$ac_ct_CC" >&6
1500 echo "$as_me:$LINENO: result: no" >&5
1501 echo "${ECHO_T}no" >&6
1509 if test -z "$CC"; then
1510 if test -n "$ac_tool_prefix"; then
1511 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1512 set dummy ${ac_tool_prefix}cc; ac_word=$2
1513 echo "$as_me:$LINENO: checking for $ac_word" >&5
1514 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1515 if test "${ac_cv_prog_CC+set}" = set; then
1516 echo $ECHO_N "(cached) $ECHO_C" >&6
1518 if test -n "$CC"; then
1519 ac_cv_prog_CC="$CC" # Let the user override the test.
1521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1525 test -z "$as_dir" && as_dir=.
1526 for ac_exec_ext in '' $ac_executable_extensions; do
1527 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1528 ac_cv_prog_CC="${ac_tool_prefix}cc"
1529 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1538 if test -n "$CC"; then
1539 echo "$as_me:$LINENO: result: $CC" >&5
1540 echo "${ECHO_T}$CC" >&6
1542 echo "$as_me:$LINENO: result: no" >&5
1543 echo "${ECHO_T}no" >&6
1547 if test -z "$ac_cv_prog_CC"; then
1549 # Extract the first word of "cc", so it can be a program name with args.
1550 set dummy cc; ac_word=$2
1551 echo "$as_me:$LINENO: checking for $ac_word" >&5
1552 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1553 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1554 echo $ECHO_N "(cached) $ECHO_C" >&6
1556 if test -n "$ac_ct_CC"; then
1557 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1563 test -z "$as_dir" && as_dir=.
1564 for ac_exec_ext in '' $ac_executable_extensions; do
1565 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1566 ac_cv_prog_ac_ct_CC="cc"
1567 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1575 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1576 if test -n "$ac_ct_CC"; then
1577 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1578 echo "${ECHO_T}$ac_ct_CC" >&6
1580 echo "$as_me:$LINENO: result: no" >&5
1581 echo "${ECHO_T}no" >&6
1590 if test -z "$CC"; then
1591 # Extract the first word of "cc", so it can be a program name with args.
1592 set dummy cc; ac_word=$2
1593 echo "$as_me:$LINENO: checking for $ac_word" >&5
1594 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1595 if test "${ac_cv_prog_CC+set}" = set; then
1596 echo $ECHO_N "(cached) $ECHO_C" >&6
1598 if test -n "$CC"; then
1599 ac_cv_prog_CC="$CC" # Let the user override the test.
1602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1606 test -z "$as_dir" && as_dir=.
1607 for ac_exec_ext in '' $ac_executable_extensions; do
1608 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1609 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1610 ac_prog_rejected=yes
1614 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1620 if test $ac_prog_rejected = yes; then
1621 # We found a bogon in the path, so make sure we never use it.
1622 set dummy $ac_cv_prog_CC
1624 if test $# != 0; then
1625 # We chose a different compiler from the bogus one.
1626 # However, it has the same basename, so the bogon will be chosen
1627 # first if we set CC to just the basename; use the full file name.
1629 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1635 if test -n "$CC"; then
1636 echo "$as_me:$LINENO: result: $CC" >&5
1637 echo "${ECHO_T}$CC" >&6
1639 echo "$as_me:$LINENO: result: no" >&5
1640 echo "${ECHO_T}no" >&6
1644 if test -z "$CC"; then
1645 if test -n "$ac_tool_prefix"; then
1648 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1649 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1650 echo "$as_me:$LINENO: checking for $ac_word" >&5
1651 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1652 if test "${ac_cv_prog_CC+set}" = set; then
1653 echo $ECHO_N "(cached) $ECHO_C" >&6
1655 if test -n "$CC"; then
1656 ac_cv_prog_CC="$CC" # Let the user override the test.
1658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1662 test -z "$as_dir" && as_dir=.
1663 for ac_exec_ext in '' $ac_executable_extensions; do
1664 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1665 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1666 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1675 if test -n "$CC"; then
1676 echo "$as_me:$LINENO: result: $CC" >&5
1677 echo "${ECHO_T}$CC" >&6
1679 echo "$as_me:$LINENO: result: no" >&5
1680 echo "${ECHO_T}no" >&6
1683 test -n "$CC" && break
1686 if test -z "$CC"; then
1690 # Extract the first word of "$ac_prog", so it can be a program name with args.
1691 set dummy $ac_prog; ac_word=$2
1692 echo "$as_me:$LINENO: checking for $ac_word" >&5
1693 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1694 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1695 echo $ECHO_N "(cached) $ECHO_C" >&6
1697 if test -n "$ac_ct_CC"; then
1698 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1704 test -z "$as_dir" && as_dir=.
1705 for ac_exec_ext in '' $ac_executable_extensions; do
1706 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1707 ac_cv_prog_ac_ct_CC="$ac_prog"
1708 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1716 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1717 if test -n "$ac_ct_CC"; then
1718 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1719 echo "${ECHO_T}$ac_ct_CC" >&6
1721 echo "$as_me:$LINENO: result: no" >&5
1722 echo "${ECHO_T}no" >&6
1725 test -n "$ac_ct_CC" && break
1734 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1735 See \`config.log' for more details.
" >&5
1736 echo "$as_me: error
: no acceptable C compiler found
in \
$PATH
1737 See \
`config.log' for more details." >&2;}
1738 { (exit 1); exit 1; }; }
1740 # Provide some information about the compiler.
1741 echo "$as_me:$LINENO:" \
1742 "checking for C compiler version" >&5
1743 ac_compiler=`set X
$ac_compile; echo $2`
1744 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1745 (eval $ac_compiler --version </dev/null >&5) 2>&5
1747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1748 (exit $ac_status); }
1749 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1750 (eval $ac_compiler -v </dev/null >&5) 2>&5
1752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1753 (exit $ac_status); }
1754 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1755 (eval $ac_compiler -V </dev/null >&5) 2>&5
1757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1758 (exit $ac_status); }
1760 cat >conftest.$ac_ext <<_ACEOF
1763 cat confdefs.h >>conftest.$ac_ext
1764 cat >>conftest.$ac_ext <<_ACEOF
1765 /* end confdefs.h. */
1775 ac_clean_files_save=$ac_clean_files
1776 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1777 # Try to create an executable without -o first, disregard a.out.
1778 # It will help us diagnose broken compilers, and finding out an intuition
1780 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1781 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1782 ac_link_default=`echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
1783 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1784 (eval $ac_link_default) 2>&5
1786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1787 (exit $ac_status); }; then
1788 # Find the output, starting from the most likely. This scheme is
1789 # not robust to junk in `.
', hence go to wildcards (a.*) only as a last
1792 # Be careful to initialize this variable, since it used to be cached.
1793 # Otherwise an old cache value of `no' led to
`EXEEXT = no' in a Makefile.
1795 # b.out is created by i960 compilers.
1796 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1798 test -f "$ac_file" || continue
1800 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1803 # This is the source file.
1806 # We found the default executable, but exeext='' is most
1810 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1811 # FIXME: I believe we export ac_cv_exeext for Libtool,
1812 # but it would be cool to find out if it's true. Does anybody
1813 # maintain Libtool? --akim.
1821 echo "$as_me: failed program was:" >&5
1822 sed 's/^/| /' conftest.$ac_ext >&5
1824 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1825 See \`config.log
' for more details." >&5
1826 echo "$as_me: error: C compiler cannot create executables
1827 See \`config.log' for more details.
" >&2;}
1828 { (exit 77); exit 77; }; }
1831 ac_exeext=$ac_cv_exeext
1832 echo "$as_me:$LINENO: result
: $ac_file" >&5
1833 echo "${ECHO_T}$ac_file" >&6
1835 # Check the compiler produces executables we can run. If not, either
1836 # the compiler is broken, or we cross compile.
1837 echo "$as_me:$LINENO: checking whether the C compiler works
" >&5
1838 echo $ECHO_N "checking whether the C compiler works...
$ECHO_C" >&6
1839 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1840 # If not cross compiling, check that we can run a simple program.
1841 if test "$cross_compiling" != yes; then
1842 if { ac_try='./$ac_file'
1843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1846 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
1847 (exit $ac_status); }; }; then
1850 if test "$cross_compiling" = maybe; then
1853 { { echo "$as_me:$LINENO: error
: cannot run C compiled programs.
1854 If you meant to cross compile
, use \
`--host'.
1855 See \`config.log
' for more details." >&5
1856 echo "$as_me: error: cannot run C compiled programs.
1857 If you meant to cross compile, use \`--host'.
1858 See \
`config.log' for more details." >&2;}
1859 { (exit 1); exit 1; }; }
1863 echo "$as_me:$LINENO: result: yes" >&5
1864 echo "${ECHO_T}yes" >&6
1866 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1867 ac_clean_files=$ac_clean_files_save
1868 # Check the compiler produces executables we can run. If not, either
1869 # the compiler is broken, or we cross compile.
1870 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1871 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1872 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1873 echo "${ECHO_T}$cross_compiling" >&6
1875 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1876 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1877 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1878 (eval $ac_link) 2>&5
1880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1881 (exit $ac_status); }; then
1882 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
1883 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
1884 # work properly (i.e., refer to `conftest.exe'), while it won't with
1886 for ac_file
in conftest.exe conftest conftest.
*; do
1887 test -f "$ac_file" ||
continue
1889 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
1890 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
1897 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1898 See \`config.log' for more details." >&5
1899 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1900 See \`config.log' for more details." >&2;}
1901 { (exit 1); exit 1; }; }
1904 rm -f conftest
$ac_cv_exeext
1905 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1906 echo "${ECHO_T}$ac_cv_exeext" >&6
1908 rm -f conftest.
$ac_ext
1909 EXEEXT
=$ac_cv_exeext
1911 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1912 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1913 if test "${ac_cv_objext+set}" = set; then
1914 echo $ECHO_N "(cached) $ECHO_C" >&6
1916 cat >conftest.
$ac_ext <<_ACEOF
1919 cat confdefs.h
>>conftest.
$ac_ext
1920 cat >>conftest.
$ac_ext <<_ACEOF
1921 /* end confdefs.h. */
1931 rm -f conftest.o conftest.obj
1932 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1933 (eval $ac_compile) 2>&5
1935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1936 (exit $ac_status); }; then
1937 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1939 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
1940 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
1945 echo "$as_me: failed program was:" >&5
1946 sed 's/^/| /' conftest.
$ac_ext >&5
1948 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1949 See \`config.log' for more details." >&5
1950 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1951 See \`config.log' for more details." >&2;}
1952 { (exit 1); exit 1; }; }
1955 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
1957 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1958 echo "${ECHO_T}$ac_cv_objext" >&6
1959 OBJEXT
=$ac_cv_objext
1961 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1962 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1963 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1964 echo $ECHO_N "(cached) $ECHO_C" >&6
1966 cat >conftest.
$ac_ext <<_ACEOF
1969 cat confdefs.h
>>conftest.
$ac_ext
1970 cat >>conftest.
$ac_ext <<_ACEOF
1971 /* end confdefs.h. */
1984 rm -f conftest.
$ac_objext
1985 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1986 (eval $ac_compile) 2>conftest.er1
1988 grep -v '^ *+' conftest.er1
>conftest.err
1990 cat conftest.err
>&5
1991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1992 (exit $ac_status); } &&
1993 { ac_try
='test -z "$ac_c_werror_flag"
1994 || test ! -s conftest.err'
1995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1999 (exit $ac_status); }; } &&
2000 { ac_try
='test -s conftest.$ac_objext'
2001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2005 (exit $ac_status); }; }; then
2008 echo "$as_me: failed program was:" >&5
2009 sed 's/^/| /' conftest.
$ac_ext >&5
2013 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2014 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2017 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2018 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2019 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2020 ac_test_CFLAGS
=${CFLAGS+set}
2021 ac_save_CFLAGS
=$CFLAGS
2023 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2024 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2025 if test "${ac_cv_prog_cc_g+set}" = set; then
2026 echo $ECHO_N "(cached) $ECHO_C" >&6
2028 cat >conftest.
$ac_ext <<_ACEOF
2031 cat confdefs.h
>>conftest.
$ac_ext
2032 cat >>conftest.
$ac_ext <<_ACEOF
2033 /* end confdefs.h. */
2043 rm -f conftest.
$ac_objext
2044 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2045 (eval $ac_compile) 2>conftest.er1
2047 grep -v '^ *+' conftest.er1
>conftest.err
2049 cat conftest.err
>&5
2050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2051 (exit $ac_status); } &&
2052 { ac_try
='test -z "$ac_c_werror_flag"
2053 || test ! -s conftest.err'
2054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2058 (exit $ac_status); }; } &&
2059 { ac_try
='test -s conftest.$ac_objext'
2060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2064 (exit $ac_status); }; }; then
2067 echo "$as_me: failed program was:" >&5
2068 sed 's/^/| /' conftest.
$ac_ext >&5
2072 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2074 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2075 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2076 if test "$ac_test_CFLAGS" = set; then
2077 CFLAGS
=$ac_save_CFLAGS
2078 elif test $ac_cv_prog_cc_g = yes; then
2079 if test "$GCC" = yes; then
2085 if test "$GCC" = yes; then
2091 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2092 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2093 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2094 echo $ECHO_N "(cached) $ECHO_C" >&6
2096 ac_cv_prog_cc_stdc
=no
2098 cat >conftest.
$ac_ext <<_ACEOF
2101 cat confdefs.h
>>conftest.
$ac_ext
2102 cat >>conftest.
$ac_ext <<_ACEOF
2103 /* end confdefs.h. */
2106 #include <sys/types.h>
2107 #include <sys/stat.h>
2108 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2109 struct buf { int x; };
2110 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2111 static char *e (p, i)
2117 static char *f (char * (*g) (char **, int), char **p, ...)
2122 s = g (p, va_arg (v,int));
2127 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2128 function prototypes and stuff, but not '\xHH' hex character constants.
2129 These don't provoke an error unfortunately, instead are silently treated
2130 as 'x'. The following induces an error, until -std1 is added to get
2131 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2132 array size at least. It's necessary to write '\x00'==0 to get something
2133 that's true only with -std1. */
2134 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2136 int test (int i, double x);
2137 struct s1 {int (*f) (int a);};
2138 struct s2 {int (*f) (double a);};
2139 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2145 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2150 # Don't try gcc -ansi; that turns off useful extensions and
2151 # breaks some systems' header files.
2152 # AIX -qlanglvl=ansi
2153 # Ultrix and OSF/1 -std1
2154 # HP-UX 10.20 and later -Ae
2155 # HP-UX older versions -Aa -D_HPUX_SOURCE
2156 # SVR4 -Xc -D__EXTENSIONS__
2157 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2159 CC
="$ac_save_CC $ac_arg"
2160 rm -f conftest.
$ac_objext
2161 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2162 (eval $ac_compile) 2>conftest.er1
2164 grep -v '^ *+' conftest.er1
>conftest.err
2166 cat conftest.err
>&5
2167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2168 (exit $ac_status); } &&
2169 { ac_try
='test -z "$ac_c_werror_flag"
2170 || test ! -s conftest.err'
2171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2175 (exit $ac_status); }; } &&
2176 { ac_try
='test -s conftest.$ac_objext'
2177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2181 (exit $ac_status); }; }; then
2182 ac_cv_prog_cc_stdc
=$ac_arg
2185 echo "$as_me: failed program was:" >&5
2186 sed 's/^/| /' conftest.
$ac_ext >&5
2189 rm -f conftest.err conftest.
$ac_objext
2191 rm -f conftest.
$ac_ext conftest.
$ac_objext
2196 case "x$ac_cv_prog_cc_stdc" in
2198 echo "$as_me:$LINENO: result: none needed" >&5
2199 echo "${ECHO_T}none needed" >&6 ;;
2201 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2202 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2203 CC
="$CC $ac_cv_prog_cc_stdc" ;;
2206 # Some people use a C++ compiler to compile C. Since we use `exit',
2207 # in C++ we need to declare it. In case someone uses the same compiler
2208 # for both compiling C and C++ we need to have the C++ compiler decide
2209 # the declaration of exit, since it's the most demanding environment.
2210 cat >conftest.
$ac_ext <<_ACEOF
2215 rm -f conftest.
$ac_objext
2216 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2217 (eval $ac_compile) 2>conftest.er1
2219 grep -v '^ *+' conftest.er1
>conftest.err
2221 cat conftest.err
>&5
2222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2223 (exit $ac_status); } &&
2224 { ac_try
='test -z "$ac_c_werror_flag"
2225 || test ! -s conftest.err'
2226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2230 (exit $ac_status); }; } &&
2231 { ac_try
='test -s conftest.$ac_objext'
2232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2236 (exit $ac_status); }; }; then
2237 for ac_declaration
in \
2239 'extern "C" void std::exit (int) throw (); using std::exit;' \
2240 'extern "C" void std::exit (int); using std::exit;' \
2241 'extern "C" void exit (int) throw ();' \
2242 'extern "C" void exit (int);' \
2245 cat >conftest.
$ac_ext <<_ACEOF
2248 cat confdefs.h
>>conftest.
$ac_ext
2249 cat >>conftest.
$ac_ext <<_ACEOF
2250 /* end confdefs.h. */
2261 rm -f conftest.
$ac_objext
2262 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2263 (eval $ac_compile) 2>conftest.er1
2265 grep -v '^ *+' conftest.er1
>conftest.err
2267 cat conftest.err
>&5
2268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2269 (exit $ac_status); } &&
2270 { ac_try
='test -z "$ac_c_werror_flag"
2271 || test ! -s conftest.err'
2272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2276 (exit $ac_status); }; } &&
2277 { ac_try
='test -s conftest.$ac_objext'
2278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2282 (exit $ac_status); }; }; then
2285 echo "$as_me: failed program was:" >&5
2286 sed 's/^/| /' conftest.
$ac_ext >&5
2290 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2291 cat >conftest.
$ac_ext <<_ACEOF
2294 cat confdefs.h
>>conftest.
$ac_ext
2295 cat >>conftest.
$ac_ext <<_ACEOF
2296 /* end confdefs.h. */
2306 rm -f conftest.
$ac_objext
2307 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2308 (eval $ac_compile) 2>conftest.er1
2310 grep -v '^ *+' conftest.er1
>conftest.err
2312 cat conftest.err
>&5
2313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2314 (exit $ac_status); } &&
2315 { ac_try
='test -z "$ac_c_werror_flag"
2316 || test ! -s conftest.err'
2317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2321 (exit $ac_status); }; } &&
2322 { ac_try
='test -s conftest.$ac_objext'
2323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2327 (exit $ac_status); }; }; then
2330 echo "$as_me: failed program was:" >&5
2331 sed 's/^/| /' conftest.
$ac_ext >&5
2334 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2337 if test -n "$ac_declaration"; then
2338 echo '#ifdef __cplusplus' >>confdefs.h
2339 echo $ac_declaration >>confdefs.h
2340 echo '#endif' >>confdefs.h
2344 echo "$as_me: failed program was:" >&5
2345 sed 's/^/| /' conftest.
$ac_ext >&5
2348 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2350 ac_cpp
='$CPP $CPPFLAGS'
2351 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2352 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2353 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2355 for ac_prog
in 'bison -y' byacc
2357 # Extract the first word of "$ac_prog", so it can be a program name with args.
2358 set dummy
$ac_prog; ac_word
=$2
2359 echo "$as_me:$LINENO: checking for $ac_word" >&5
2360 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2361 if test "${ac_cv_prog_YACC+set}" = set; then
2362 echo $ECHO_N "(cached) $ECHO_C" >&6
2364 if test -n "$YACC"; then
2365 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
2367 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2371 test -z "$as_dir" && as_dir
=.
2372 for ac_exec_ext
in '' $ac_executable_extensions; do
2373 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2374 ac_cv_prog_YACC
="$ac_prog"
2375 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2383 YACC
=$ac_cv_prog_YACC
2384 if test -n "$YACC"; then
2385 echo "$as_me:$LINENO: result: $YACC" >&5
2386 echo "${ECHO_T}$YACC" >&6
2388 echo "$as_me:$LINENO: result: no" >&5
2389 echo "${ECHO_T}no" >&6
2392 test -n "$YACC" && break
2394 test -n "$YACC" || YACC
="yacc"
2396 # AC_PROG_YACC doesn't actually check if yacc exists!
2399 # Extract the first word of ""$tmp_yacc"", so it can be a program name with args.
2400 set dummy
"$tmp_yacc"; ac_word
=$2
2401 echo "$as_me:$LINENO: checking for $ac_word" >&5
2402 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2403 if test "${ac_cv_prog_YACC+set}" = set; then
2404 echo $ECHO_N "(cached) $ECHO_C" >&6
2406 if test -n "$YACC"; then
2407 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
2409 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2413 test -z "$as_dir" && as_dir
=.
2414 for ac_exec_ext
in '' $ac_executable_extensions; do
2415 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2416 ac_cv_prog_YACC
=""$tmp_yacc""
2417 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2425 YACC
=$ac_cv_prog_YACC
2426 if test -n "$YACC"; then
2427 echo "$as_me:$LINENO: result: $YACC" >&5
2428 echo "${ECHO_T}$YACC" >&6
2430 echo "$as_me:$LINENO: result: no" >&5
2431 echo "${ECHO_T}no" >&6
2434 if test "x$YACC" = x
; then
2435 { { echo "$as_me:$LINENO: error: Could not find $tmp_yacc." >&5
2436 echo "$as_me: error: Could not find $tmp_yacc." >&2;}
2437 { (exit 1); exit 1; }; }
2441 # Check whether --enable-largefile or --disable-largefile was given.
2442 if test "${enable_largefile+set}" = set; then
2443 enableval
="$enable_largefile"
2446 if test "$enable_largefile" != no
; then
2448 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
2449 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
2450 if test "${ac_cv_sys_largefile_CC+set}" = set; then
2451 echo $ECHO_N "(cached) $ECHO_C" >&6
2453 ac_cv_sys_largefile_CC
=no
2454 if test "$GCC" != yes; then
2457 # IRIX 6.2 and later do not support large files by default,
2458 # so use the C compiler's -n32 option if that helps.
2459 cat >conftest.
$ac_ext <<_ACEOF
2462 cat confdefs.h
>>conftest.
$ac_ext
2463 cat >>conftest.
$ac_ext <<_ACEOF
2464 /* end confdefs.h. */
2465 #include <sys/types.h>
2466 /* Check that off_t can represent 2**63 - 1 correctly.
2467 We can't simply define LARGE_OFF_T to be 9223372036854775807,
2468 since some C++ compilers masquerading as C compilers
2469 incorrectly reject 9223372036854775807. */
2470 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
2471 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
2472 && LARGE_OFF_T % 2147483647 == 1)
2482 rm -f conftest.
$ac_objext
2483 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2484 (eval $ac_compile) 2>conftest.er1
2486 grep -v '^ *+' conftest.er1
>conftest.err
2488 cat conftest.err
>&5
2489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2490 (exit $ac_status); } &&
2491 { ac_try
='test -z "$ac_c_werror_flag"
2492 || test ! -s conftest.err'
2493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2497 (exit $ac_status); }; } &&
2498 { ac_try
='test -s conftest.$ac_objext'
2499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2503 (exit $ac_status); }; }; then
2506 echo "$as_me: failed program was:" >&5
2507 sed 's/^/| /' conftest.
$ac_ext >&5
2510 rm -f conftest.err conftest.
$ac_objext
2512 rm -f conftest.
$ac_objext
2513 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2514 (eval $ac_compile) 2>conftest.er1
2516 grep -v '^ *+' conftest.er1
>conftest.err
2518 cat conftest.err
>&5
2519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2520 (exit $ac_status); } &&
2521 { ac_try
='test -z "$ac_c_werror_flag"
2522 || test ! -s conftest.err'
2523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2527 (exit $ac_status); }; } &&
2528 { ac_try
='test -s conftest.$ac_objext'
2529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2533 (exit $ac_status); }; }; then
2534 ac_cv_sys_largefile_CC
=' -n32'; break
2536 echo "$as_me: failed program was:" >&5
2537 sed 's/^/| /' conftest.
$ac_ext >&5
2540 rm -f conftest.err conftest.
$ac_objext
2544 rm -f conftest.
$ac_ext
2547 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
2548 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
2549 if test "$ac_cv_sys_largefile_CC" != no
; then
2550 CC
=$CC$ac_cv_sys_largefile_CC
2553 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
2554 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
2555 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
2556 echo $ECHO_N "(cached) $ECHO_C" >&6
2559 ac_cv_sys_file_offset_bits
=no
2560 cat >conftest.
$ac_ext <<_ACEOF
2563 cat confdefs.h
>>conftest.
$ac_ext
2564 cat >>conftest.
$ac_ext <<_ACEOF
2565 /* end confdefs.h. */
2566 #include <sys/types.h>
2567 /* Check that off_t can represent 2**63 - 1 correctly.
2568 We can't simply define LARGE_OFF_T to be 9223372036854775807,
2569 since some C++ compilers masquerading as C compilers
2570 incorrectly reject 9223372036854775807. */
2571 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
2572 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
2573 && LARGE_OFF_T % 2147483647 == 1)
2583 rm -f conftest.
$ac_objext
2584 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2585 (eval $ac_compile) 2>conftest.er1
2587 grep -v '^ *+' conftest.er1
>conftest.err
2589 cat conftest.err
>&5
2590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2591 (exit $ac_status); } &&
2592 { ac_try
='test -z "$ac_c_werror_flag"
2593 || test ! -s conftest.err'
2594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2598 (exit $ac_status); }; } &&
2599 { ac_try
='test -s conftest.$ac_objext'
2600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2604 (exit $ac_status); }; }; then
2607 echo "$as_me: failed program was:" >&5
2608 sed 's/^/| /' conftest.
$ac_ext >&5
2611 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2612 cat >conftest.
$ac_ext <<_ACEOF
2615 cat confdefs.h
>>conftest.
$ac_ext
2616 cat >>conftest.
$ac_ext <<_ACEOF
2617 /* end confdefs.h. */
2618 #define _FILE_OFFSET_BITS 64
2619 #include <sys/types.h>
2620 /* Check that off_t can represent 2**63 - 1 correctly.
2621 We can't simply define LARGE_OFF_T to be 9223372036854775807,
2622 since some C++ compilers masquerading as C compilers
2623 incorrectly reject 9223372036854775807. */
2624 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
2625 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
2626 && LARGE_OFF_T % 2147483647 == 1)
2636 rm -f conftest.
$ac_objext
2637 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2638 (eval $ac_compile) 2>conftest.er1
2640 grep -v '^ *+' conftest.er1
>conftest.err
2642 cat conftest.err
>&5
2643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2644 (exit $ac_status); } &&
2645 { ac_try
='test -z "$ac_c_werror_flag"
2646 || test ! -s conftest.err'
2647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2651 (exit $ac_status); }; } &&
2652 { ac_try
='test -s conftest.$ac_objext'
2653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2657 (exit $ac_status); }; }; then
2658 ac_cv_sys_file_offset_bits
=64; break
2660 echo "$as_me: failed program was:" >&5
2661 sed 's/^/| /' conftest.
$ac_ext >&5
2664 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2668 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
2669 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
2670 if test "$ac_cv_sys_file_offset_bits" != no
; then
2672 cat >>confdefs.h
<<_ACEOF
2673 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
2678 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
2679 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
2680 if test "${ac_cv_sys_large_files+set}" = set; then
2681 echo $ECHO_N "(cached) $ECHO_C" >&6
2684 ac_cv_sys_large_files
=no
2685 cat >conftest.
$ac_ext <<_ACEOF
2688 cat confdefs.h
>>conftest.
$ac_ext
2689 cat >>conftest.
$ac_ext <<_ACEOF
2690 /* end confdefs.h. */
2691 #include <sys/types.h>
2692 /* Check that off_t can represent 2**63 - 1 correctly.
2693 We can't simply define LARGE_OFF_T to be 9223372036854775807,
2694 since some C++ compilers masquerading as C compilers
2695 incorrectly reject 9223372036854775807. */
2696 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
2697 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
2698 && LARGE_OFF_T % 2147483647 == 1)
2708 rm -f conftest.
$ac_objext
2709 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2710 (eval $ac_compile) 2>conftest.er1
2712 grep -v '^ *+' conftest.er1
>conftest.err
2714 cat conftest.err
>&5
2715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2716 (exit $ac_status); } &&
2717 { ac_try
='test -z "$ac_c_werror_flag"
2718 || test ! -s conftest.err'
2719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2723 (exit $ac_status); }; } &&
2724 { ac_try
='test -s conftest.$ac_objext'
2725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2729 (exit $ac_status); }; }; then
2732 echo "$as_me: failed program was:" >&5
2733 sed 's/^/| /' conftest.
$ac_ext >&5
2736 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2737 cat >conftest.
$ac_ext <<_ACEOF
2740 cat confdefs.h
>>conftest.
$ac_ext
2741 cat >>conftest.
$ac_ext <<_ACEOF
2742 /* end confdefs.h. */
2743 #define _LARGE_FILES 1
2744 #include <sys/types.h>
2745 /* Check that off_t can represent 2**63 - 1 correctly.
2746 We can't simply define LARGE_OFF_T to be 9223372036854775807,
2747 since some C++ compilers masquerading as C compilers
2748 incorrectly reject 9223372036854775807. */
2749 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
2750 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
2751 && LARGE_OFF_T % 2147483647 == 1)
2761 rm -f conftest.
$ac_objext
2762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2763 (eval $ac_compile) 2>conftest.er1
2765 grep -v '^ *+' conftest.er1
>conftest.err
2767 cat conftest.err
>&5
2768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2769 (exit $ac_status); } &&
2770 { ac_try
='test -z "$ac_c_werror_flag"
2771 || test ! -s conftest.err'
2772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2776 (exit $ac_status); }; } &&
2777 { ac_try
='test -s conftest.$ac_objext'
2778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2782 (exit $ac_status); }; }; then
2783 ac_cv_sys_large_files
=1; break
2785 echo "$as_me: failed program was:" >&5
2786 sed 's/^/| /' conftest.
$ac_ext >&5
2789 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2793 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
2794 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
2795 if test "$ac_cv_sys_large_files" != no
; then
2797 cat >>confdefs.h
<<_ACEOF
2798 #define _LARGE_FILES $ac_cv_sys_large_files
2807 test "x$GCC" = xyes ||
{ { echo "$as_me:$LINENO: error: GCC is required" >&5
2808 echo "$as_me: error: GCC is required" >&2;}
2809 { (exit 1); exit 1; }; }
2811 if test "x$default_CFLAGS" = xyes
; then
2813 tmp_CFLAGS
="-Wall -W -Wshadow -Wpointer-arith -Wmissing-prototypes \
2814 -Wundef -Wstrict-prototypes -g"
2816 # optimization flags.
2817 echo "$as_me:$LINENO: checking whether optimization for size works" >&5
2818 echo $ECHO_N "checking whether optimization for size works... $ECHO_C" >&6
2819 if test "${size_flag+set}" = set; then
2820 echo $ECHO_N "(cached) $ECHO_C" >&6
2824 cat >conftest.
$ac_ext <<_ACEOF
2827 cat confdefs.h
>>conftest.
$ac_ext
2828 cat >>conftest.
$ac_ext <<_ACEOF
2829 /* end confdefs.h. */
2839 rm -f conftest.
$ac_objext
2840 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2841 (eval $ac_compile) 2>conftest.er1
2843 grep -v '^ *+' conftest.er1
>conftest.err
2845 cat conftest.err
>&5
2846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2847 (exit $ac_status); } &&
2848 { ac_try
='test -z "$ac_c_werror_flag"
2849 || test ! -s conftest.err'
2850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2854 (exit $ac_status); }; } &&
2855 { ac_try
='test -s conftest.$ac_objext'
2856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2860 (exit $ac_status); }; }; then
2863 echo "$as_me: failed program was:" >&5
2864 sed 's/^/| /' conftest.
$ac_ext >&5
2868 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2871 echo "$as_me:$LINENO: result: $size_flag" >&5
2872 echo "${ECHO_T}$size_flag" >&6
2873 if test "x$size_flag" = xyes
; then
2874 tmp_CFLAGS
="$tmp_CFLAGS -Os"
2876 tmp_CFLAGS
="$tmp_CFLAGS -O2 -fno-strength-reduce -fno-unroll-loops"
2879 # Force no alignment to save space on i386.
2880 if test "x$host_cpu" = xi386
; then
2881 echo "$as_me:$LINENO: checking whether -falign-loops works" >&5
2882 echo $ECHO_N "checking whether -falign-loops works... $ECHO_C" >&6
2883 if test "${falign_loop_flag+set}" = set; then
2884 echo $ECHO_N "(cached) $ECHO_C" >&6
2887 CFLAGS
="-falign-loops=1"
2888 cat >conftest.
$ac_ext <<_ACEOF
2891 cat confdefs.h
>>conftest.
$ac_ext
2892 cat >>conftest.
$ac_ext <<_ACEOF
2893 /* end confdefs.h. */
2903 rm -f conftest.
$ac_objext
2904 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2905 (eval $ac_compile) 2>conftest.er1
2907 grep -v '^ *+' conftest.er1
>conftest.err
2909 cat conftest.err
>&5
2910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2911 (exit $ac_status); } &&
2912 { ac_try
='test -z "$ac_c_werror_flag"
2913 || test ! -s conftest.err'
2914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2918 (exit $ac_status); }; } &&
2919 { ac_try
='test -s conftest.$ac_objext'
2920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2924 (exit $ac_status); }; }; then
2925 falign_loop_flag
=yes
2927 echo "$as_me: failed program was:" >&5
2928 sed 's/^/| /' conftest.
$ac_ext >&5
2932 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2935 echo "$as_me:$LINENO: result: $falign_loop_flag" >&5
2936 echo "${ECHO_T}$falign_loop_flag" >&6
2938 if test "x$falign_loop_flag" = xyes
; then
2939 tmp_CFLAGS
="$tmp_CFLAGS -falign-jumps=1 -falign-loops=1 -falign-functions=1"
2941 tmp_CFLAGS
="$tmp_CFLAGS -malign-jumps=1 -malign-loops=1 -malign-functions=1"
2945 if test "x$biarch32" = x1
; then
2946 tmp_CFLAGS
="$tmp_CFLAGS -m32"
2949 CFLAGS
="$tmp_CFLAGS"
2953 # Defined in aclocal.m4.
2955 echo "$as_me:$LINENO: checking if C symbols get an underscore after compilation" >&5
2956 echo $ECHO_N "checking if C symbols get an underscore after compilation... $ECHO_C" >&6
2957 if test "${grub_cv_asm_uscore+set}" = set; then
2958 echo $ECHO_N "(cached) $ECHO_C" >&6
2960 cat > conftest.c
<<\EOF
2969 if { ac_try
='${CC-cc} ${CFLAGS} -S conftest.c'
2970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2974 (exit $ac_status); }; } && test -s conftest.s
; then
2977 { { echo "$as_me:$LINENO: error: ${CC-cc} failed to produce assembly code" >&5
2978 echo "$as_me: error: ${CC-cc} failed to produce assembly code" >&2;}
2979 { (exit 1); exit 1; }; }
2982 if grep _func conftest.s
>/dev
/null
2>&1; then
2983 grub_cv_asm_uscore
=yes
2985 grub_cv_asm_uscore
=no
2992 if test "x$grub_cv_asm_uscore" = xyes
; then
2994 cat >>confdefs.h
<<_ACEOF
2995 #define HAVE_ASM_USCORE $grub_cv_asm_uscore
3000 echo "$as_me:$LINENO: result: $grub_cv_asm_uscore" >&5
3001 echo "${ECHO_T}$grub_cv_asm_uscore" >&6
3003 if test "x$host_cpu" = xi386
; then
3005 echo "$as_me:$LINENO: checking if start is defined by the compiler" >&5
3006 echo $ECHO_N "checking if start is defined by the compiler... $ECHO_C" >&6
3007 if test "${grub_cv_check_start_symbol+set}" = set; then
3008 echo $ECHO_N "(cached) $ECHO_C" >&6
3010 cat >conftest.
$ac_ext <<_ACEOF
3013 cat confdefs.h
>>conftest.
$ac_ext
3014 cat >>conftest.
$ac_ext <<_ACEOF
3015 /* end confdefs.h. */
3025 rm -f conftest.
$ac_objext conftest
$ac_exeext
3026 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3027 (eval $ac_link) 2>conftest.er1
3029 grep -v '^ *+' conftest.er1
>conftest.err
3031 cat conftest.err
>&5
3032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3033 (exit $ac_status); } &&
3034 { ac_try
='test -z "$ac_c_werror_flag"
3035 || test ! -s conftest.err'
3036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3040 (exit $ac_status); }; } &&
3041 { ac_try
='test -s conftest$ac_exeext'
3042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3046 (exit $ac_status); }; }; then
3047 grub_cv_check_start_symbol
=yes
3049 echo "$as_me: failed program was:" >&5
3050 sed 's/^/| /' conftest.
$ac_ext >&5
3052 grub_cv_check_start_symbol
=no
3054 rm -f conftest.err conftest.
$ac_objext \
3055 conftest
$ac_exeext conftest.
$ac_ext
3059 echo "$as_me:$LINENO: result: $grub_cv_check_start_symbol" >&5
3060 echo "${ECHO_T}$grub_cv_check_start_symbol" >&6
3062 echo "$as_me:$LINENO: checking if _start is defined by the compiler" >&5
3063 echo $ECHO_N "checking if _start is defined by the compiler... $ECHO_C" >&6
3064 if test "${grub_cv_check_uscore_start_symbol+set}" = set; then
3065 echo $ECHO_N "(cached) $ECHO_C" >&6
3067 cat >conftest.
$ac_ext <<_ACEOF
3070 cat confdefs.h
>>conftest.
$ac_ext
3071 cat >>conftest.
$ac_ext <<_ACEOF
3072 /* end confdefs.h. */
3082 rm -f conftest.
$ac_objext conftest
$ac_exeext
3083 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3084 (eval $ac_link) 2>conftest.er1
3086 grep -v '^ *+' conftest.er1
>conftest.err
3088 cat conftest.err
>&5
3089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3090 (exit $ac_status); } &&
3091 { ac_try
='test -z "$ac_c_werror_flag"
3092 || test ! -s conftest.err'
3093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3097 (exit $ac_status); }; } &&
3098 { ac_try
='test -s conftest$ac_exeext'
3099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3103 (exit $ac_status); }; }; then
3104 grub_cv_check_uscore_start_symbol
=yes
3106 echo "$as_me: failed program was:" >&5
3107 sed 's/^/| /' conftest.
$ac_ext >&5
3109 grub_cv_check_uscore_start_symbol
=no
3111 rm -f conftest.err conftest.
$ac_objext \
3112 conftest
$ac_exeext conftest.
$ac_ext
3116 echo "$as_me:$LINENO: result: $grub_cv_check_uscore_start_symbol" >&5
3117 echo "${ECHO_T}$grub_cv_check_uscore_start_symbol" >&6
3122 if test "x$grub_cv_check_start_symbol" = xyes
; then
3123 cat >>confdefs.h
<<\_ACEOF
3124 #define START_SYMBOL start
3127 elif test "x$grub_cv_check_uscore_start_symbol" = xyes
; then
3128 cat >>confdefs.h
<<\_ACEOF
3129 #define START_SYMBOL _start
3133 { { echo "$as_me:$LINENO: error: neither start nor _start is defined" >&5
3134 echo "$as_me: error: neither start nor _start is defined" >&2;}
3135 { (exit 1); exit 1; }; }
3139 echo "$as_me:$LINENO: checking if __bss_start is defined by the compiler" >&5
3140 echo $ECHO_N "checking if __bss_start is defined by the compiler... $ECHO_C" >&6
3141 if test "${grub_cv_check_uscore_uscore_bss_start_symbol+set}" = set; then
3142 echo $ECHO_N "(cached) $ECHO_C" >&6
3144 cat >conftest.
$ac_ext <<_ACEOF
3147 cat confdefs.h
>>conftest.
$ac_ext
3148 cat >>conftest.
$ac_ext <<_ACEOF
3149 /* end confdefs.h. */
3154 asm ("incl __bss_start")
3159 rm -f conftest.
$ac_objext conftest
$ac_exeext
3160 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3161 (eval $ac_link) 2>conftest.er1
3163 grep -v '^ *+' conftest.er1
>conftest.err
3165 cat conftest.err
>&5
3166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3167 (exit $ac_status); } &&
3168 { ac_try
='test -z "$ac_c_werror_flag"
3169 || test ! -s conftest.err'
3170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3174 (exit $ac_status); }; } &&
3175 { ac_try
='test -s conftest$ac_exeext'
3176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3180 (exit $ac_status); }; }; then
3181 grub_cv_check_uscore_uscore_bss_start_symbol
=yes
3183 echo "$as_me: failed program was:" >&5
3184 sed 's/^/| /' conftest.
$ac_ext >&5
3186 grub_cv_check_uscore_uscore_bss_start_symbol
=no
3188 rm -f conftest.err conftest.
$ac_objext \
3189 conftest
$ac_exeext conftest.
$ac_ext
3193 echo "$as_me:$LINENO: result: $grub_cv_check_uscore_uscore_bss_start_symbol" >&5
3194 echo "${ECHO_T}$grub_cv_check_uscore_uscore_bss_start_symbol" >&6
3196 echo "$as_me:$LINENO: checking if edata is defined by the compiler" >&5
3197 echo $ECHO_N "checking if edata is defined by the compiler... $ECHO_C" >&6
3198 if test "${grub_cv_check_edata_symbol+set}" = set; then
3199 echo $ECHO_N "(cached) $ECHO_C" >&6
3201 cat >conftest.
$ac_ext <<_ACEOF
3204 cat confdefs.h
>>conftest.
$ac_ext
3205 cat >>conftest.
$ac_ext <<_ACEOF
3206 /* end confdefs.h. */
3216 rm -f conftest.
$ac_objext conftest
$ac_exeext
3217 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3218 (eval $ac_link) 2>conftest.er1
3220 grep -v '^ *+' conftest.er1
>conftest.err
3222 cat conftest.err
>&5
3223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3224 (exit $ac_status); } &&
3225 { ac_try
='test -z "$ac_c_werror_flag"
3226 || test ! -s conftest.err'
3227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3231 (exit $ac_status); }; } &&
3232 { ac_try
='test -s conftest$ac_exeext'
3233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3237 (exit $ac_status); }; }; then
3238 grub_cv_check_edata_symbol
=yes
3240 echo "$as_me: failed program was:" >&5
3241 sed 's/^/| /' conftest.
$ac_ext >&5
3243 grub_cv_check_edata_symbol
=no
3245 rm -f conftest.err conftest.
$ac_objext \
3246 conftest
$ac_exeext conftest.
$ac_ext
3250 echo "$as_me:$LINENO: result: $grub_cv_check_edata_symbol" >&5
3251 echo "${ECHO_T}$grub_cv_check_edata_symbol" >&6
3253 echo "$as_me:$LINENO: checking if _edata is defined by the compiler" >&5
3254 echo $ECHO_N "checking if _edata is defined by the compiler... $ECHO_C" >&6
3255 if test "${grub_cv_check_uscore_edata_symbol+set}" = set; then
3256 echo $ECHO_N "(cached) $ECHO_C" >&6
3258 cat >conftest.
$ac_ext <<_ACEOF
3261 cat confdefs.h
>>conftest.
$ac_ext
3262 cat >>conftest.
$ac_ext <<_ACEOF
3263 /* end confdefs.h. */
3273 rm -f conftest.
$ac_objext conftest
$ac_exeext
3274 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3275 (eval $ac_link) 2>conftest.er1
3277 grep -v '^ *+' conftest.er1
>conftest.err
3279 cat conftest.err
>&5
3280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3281 (exit $ac_status); } &&
3282 { ac_try
='test -z "$ac_c_werror_flag"
3283 || test ! -s conftest.err'
3284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3288 (exit $ac_status); }; } &&
3289 { ac_try
='test -s conftest$ac_exeext'
3290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3294 (exit $ac_status); }; }; then
3295 grub_cv_check_uscore_edata_symbol
=yes
3297 echo "$as_me: failed program was:" >&5
3298 sed 's/^/| /' conftest.
$ac_ext >&5
3300 grub_cv_check_uscore_edata_symbol
=no
3302 rm -f conftest.err conftest.
$ac_objext \
3303 conftest
$ac_exeext conftest.
$ac_ext
3307 echo "$as_me:$LINENO: result: $grub_cv_check_uscore_edata_symbol" >&5
3308 echo "${ECHO_T}$grub_cv_check_uscore_edata_symbol" >&6
3313 if test "x$grub_cv_check_uscore_uscore_bss_start_symbol" = xyes
; then
3314 cat >>confdefs.h
<<\_ACEOF
3315 #define BSS_START_SYMBOL __bss_start
3318 elif test "x$grub_cv_check_edata_symbol" = xyes
; then
3319 cat >>confdefs.h
<<\_ACEOF
3320 #define BSS_START_SYMBOL edata
3323 elif test "x$grub_cv_check_uscore_edata_symbol" = xyes
; then
3324 cat >>confdefs.h
<<\_ACEOF
3325 #define BSS_START_SYMBOL _edata
3329 { { echo "$as_me:$LINENO: error: none of __bss_start, edata or _edata is defined" >&5
3330 echo "$as_me: error: none of __bss_start, edata or _edata is defined" >&2;}
3331 { (exit 1); exit 1; }; }
3335 echo "$as_me:$LINENO: checking if end is defined by the compiler" >&5
3336 echo $ECHO_N "checking if end is defined by the compiler... $ECHO_C" >&6
3337 if test "${grub_cv_check_end_symbol+set}" = set; then
3338 echo $ECHO_N "(cached) $ECHO_C" >&6
3340 cat >conftest.
$ac_ext <<_ACEOF
3343 cat confdefs.h
>>conftest.
$ac_ext
3344 cat >>conftest.
$ac_ext <<_ACEOF
3345 /* end confdefs.h. */
3355 rm -f conftest.
$ac_objext conftest
$ac_exeext
3356 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3357 (eval $ac_link) 2>conftest.er1
3359 grep -v '^ *+' conftest.er1
>conftest.err
3361 cat conftest.err
>&5
3362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3363 (exit $ac_status); } &&
3364 { ac_try
='test -z "$ac_c_werror_flag"
3365 || test ! -s conftest.err'
3366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3370 (exit $ac_status); }; } &&
3371 { ac_try
='test -s conftest$ac_exeext'
3372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3376 (exit $ac_status); }; }; then
3377 grub_cv_check_end_symbol
=yes
3379 echo "$as_me: failed program was:" >&5
3380 sed 's/^/| /' conftest.
$ac_ext >&5
3382 grub_cv_check_end_symbol
=no
3384 rm -f conftest.err conftest.
$ac_objext \
3385 conftest
$ac_exeext conftest.
$ac_ext
3389 echo "$as_me:$LINENO: result: $grub_cv_check_end_symbol" >&5
3390 echo "${ECHO_T}$grub_cv_check_end_symbol" >&6
3392 echo "$as_me:$LINENO: checking if _end is defined by the compiler" >&5
3393 echo $ECHO_N "checking if _end is defined by the compiler... $ECHO_C" >&6
3394 if test "${grub_cv_check_uscore_end_symbol+set}" = set; then
3395 echo $ECHO_N "(cached) $ECHO_C" >&6
3397 cat >conftest.
$ac_ext <<_ACEOF
3400 cat confdefs.h
>>conftest.
$ac_ext
3401 cat >>conftest.
$ac_ext <<_ACEOF
3402 /* end confdefs.h. */
3412 rm -f conftest.
$ac_objext conftest
$ac_exeext
3413 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3414 (eval $ac_link) 2>conftest.er1
3416 grep -v '^ *+' conftest.er1
>conftest.err
3418 cat conftest.err
>&5
3419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3420 (exit $ac_status); } &&
3421 { ac_try
='test -z "$ac_c_werror_flag"
3422 || test ! -s conftest.err'
3423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3427 (exit $ac_status); }; } &&
3428 { ac_try
='test -s conftest$ac_exeext'
3429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3433 (exit $ac_status); }; }; then
3434 grub_cv_check_uscore_end_symbol
=yes
3436 echo "$as_me: failed program was:" >&5
3437 sed 's/^/| /' conftest.
$ac_ext >&5
3439 grub_cv_check_uscore_end_symbol
=no
3441 rm -f conftest.err conftest.
$ac_objext \
3442 conftest
$ac_exeext conftest.
$ac_ext
3446 echo "$as_me:$LINENO: result: $grub_cv_check_uscore_end_symbol" >&5
3447 echo "${ECHO_T}$grub_cv_check_uscore_end_symbol" >&6
3452 if test "x$grub_cv_check_end_symbol" = xyes
; then
3453 cat >>confdefs.h
<<\_ACEOF
3454 #define END_SYMBOL end
3457 elif test "x$grub_cv_check_uscore_end_symbol" = xyes
; then
3458 cat >>confdefs.h
<<\_ACEOF
3459 #define END_SYMBOL _end
3463 { { echo "$as_me:$LINENO: error: neither end nor _end is defined" >&5
3464 echo "$as_me: error: neither end nor _end is defined" >&2;}
3465 { (exit 1); exit 1; }; }
3470 if test "x$host_cpu" = xi386
; then
3472 echo "$as_me:$LINENO: checking whether addr32 must be in the same line as the instruction" >&5
3473 echo $ECHO_N "checking whether addr32 must be in the same line as the instruction... $ECHO_C" >&6
3474 if test "${grub_cv_i386_asm_prefix_requirement+set}" = set; then
3475 echo $ECHO_N "(cached) $ECHO_C" >&6
3477 cat > conftest.s
<<\EOF
3479 l1
: addr32 movb
%al
, l1
3482 if { ac_try
='${CC-cc} ${CFLAGS} -c conftest.s'
3483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3487 (exit $ac_status); }; } && test -s conftest.o
; then
3488 grub_cv_i386_asm_prefix_requirement
=yes
3490 grub_cv_i386_asm_prefix_requirement
=no
3497 if test "x$grub_cv_i386_asm_prefix_requirement" = xyes
; then
3498 grub_tmp_addr32
="addr32"
3499 grub_tmp_data32
="data32"
3501 grub_tmp_addr32
="addr32;"
3502 grub_tmp_data32
="data32;"
3506 cat >>confdefs.h
<<_ACEOF
3507 #define ADDR32 $grub_tmp_addr32
3511 cat >>confdefs.h
<<_ACEOF
3512 #define DATA32 $grub_tmp_data32
3516 echo "$as_me:$LINENO: result: $grub_cv_i386_asm_prefix_requirement" >&5
3517 echo "${ECHO_T}$grub_cv_i386_asm_prefix_requirement" >&6
3520 echo "$as_me:$LINENO: checking for .code16 addr32 assembler support" >&5
3521 echo $ECHO_N "checking for .code16 addr32 assembler support... $ECHO_C" >&6
3522 if test "${grub_cv_i386_asm_addr32+set}" = set; then
3523 echo $ECHO_N "(cached) $ECHO_C" >&6
3525 cat > conftest.s.
in <<\EOF
3527 l1
: @ADDR32@ movb
%al
, l1
3530 if test "x$grub_cv_i386_asm_prefix_requirement" = xyes
; then
3531 sed -e s
/@ADDR32@
/addr32
/ < conftest.s.
in > conftest.s
3533 sed -e s
/@ADDR32@
/addr32\
;/ < conftest.s.
in > conftest.s
3536 if { ac_try
='${CC-cc} ${CFLAGS} -c conftest.s'
3537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3541 (exit $ac_status); }; } && test -s conftest.o
; then
3542 grub_cv_i386_asm_addr32
=yes
3544 grub_cv_i386_asm_addr32
=no
3551 echo "$as_me:$LINENO: result: $grub_cv_i386_asm_addr32" >&5
3552 echo "${ECHO_T}$grub_cv_i386_asm_addr32" >&6
3554 echo "$as_me:$LINENO: checking whether an absolute indirect call/jump must not be prefixed with an asterisk" >&5
3555 echo $ECHO_N "checking whether an absolute indirect call/jump must not be prefixed with an asterisk... $ECHO_C" >&6
3556 if test "${grub_cv_i386_asm_absolute_without_asterisk+set}" = set; then
3557 echo $ECHO_N "(cached) $ECHO_C" >&6
3559 cat > conftest.s
<<\EOF
3566 if { ac_try
='${CC-cc} ${CFLAGS} -c conftest.s'
3567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3571 (exit $ac_status); }; } && test -s conftest.o
; then
3572 grub_cv_i386_asm_absolute_without_asterisk
=no
3574 grub_cv_i386_asm_absolute_without_asterisk
=yes
3581 if test "x$grub_cv_i386_asm_absolute_without_asterisk" = xyes
; then
3583 cat >>confdefs.h
<<\_ACEOF
3584 #define ABSOLUTE_WITHOUT_ASTERISK 1
3589 echo "$as_me:$LINENO: result: $grub_cv_i386_asm_absolute_without_asterisk" >&5
3590 echo "${ECHO_T}$grub_cv_i386_asm_absolute_without_asterisk" >&6
3592 echo "$as_me:$LINENO: checking if GCC has the regparm=3 bug" >&5
3593 echo $ECHO_N "checking if GCC has the regparm=3 bug... $ECHO_C" >&6
3594 if test "${grub_cv_i386_check_nested_functions+set}" = set; then
3595 echo $ECHO_N "(cached) $ECHO_C" >&6
3597 if test "$cross_compiling" = yes; then
3598 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
3599 See \`config.log' for more details." >&5
3600 echo "$as_me: error: cannot run test program while cross compiling
3601 See \`config.log' for more details." >&2;}
3602 { (exit 1); exit 1; }; }
3604 cat >conftest.
$ac_ext <<_ACEOF
3607 cat confdefs.h
>>conftest.
$ac_ext
3608 cat >>conftest.
$ac_ext <<_ACEOF
3609 /* end confdefs.h. */
3618 testfunc (int __attribute__ ((__regparm__ (3))) (*hook) (int a, int b, int *c))
3623 return hook (a, b, &c);
3629 int __attribute__ ((__regparm__ (3))) nestedfunc (int a, int b, int *c)
3631 return a == b && test (c);
3633 return testfunc (nestedfunc) ? 0 : 1;
3637 rm -f conftest
$ac_exeext
3638 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3639 (eval $ac_link) 2>&5
3641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3642 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3647 (exit $ac_status); }; }; then
3648 grub_cv_i386_check_nested_functions
=no
3650 echo "$as_me: program exited with status $ac_status" >&5
3651 echo "$as_me: failed program was:" >&5
3652 sed 's/^/| /' conftest.
$ac_ext >&5
3655 grub_cv_i386_check_nested_functions
=yes
3657 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3662 echo "$as_me:$LINENO: result: $grub_cv_i386_check_nested_functions" >&5
3663 echo "${ECHO_T}$grub_cv_i386_check_nested_functions" >&6
3665 if test "x$grub_cv_i386_check_nested_functions" = xyes
; then
3667 cat >>confdefs.h
<<\_ACEOF
3668 #define NESTED_FUNC_ATTR __attribute__ ((__regparm__ (2)))
3673 cat >>confdefs.h
<<\_ACEOF
3674 #define NESTED_FUNC_ATTR __attribute__ ((__regparm__ (2)))
3681 cat >>confdefs.h
<<\_ACEOF
3682 #define NESTED_FUNC_ATTR
3687 # Find a good install program. We prefer a C program (faster),
3688 # so one script is as good as another. But avoid the broken or
3689 # incompatible versions:
3690 # SysV /etc/install, /usr/sbin/install
3691 # SunOS /usr/etc/install
3692 # IRIX /sbin/install
3694 # AmigaOS /C/install, which installs bootblocks on floppy discs
3695 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3696 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3697 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3698 # OS/2's system install, which has a completely different semantic
3699 # ./install, which can be erroneously created by make from ./install.sh.
3700 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3701 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3702 if test -z "$INSTALL"; then
3703 if test "${ac_cv_path_install+set}" = set; then
3704 echo $ECHO_N "(cached) $ECHO_C" >&6
3706 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3710 test -z "$as_dir" && as_dir
=.
3711 # Account for people who put trailing slashes in PATH elements.
3713 .
/ | .
// |
/cC
/* | \
3714 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
3715 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
3718 # OSF1 and SCO ODT 3.0 have their own names for install.
3719 # Don't use installbsd from OSF since it installs stuff as root
3721 for ac_prog
in ginstall scoinst
install; do
3722 for ac_exec_ext
in '' $ac_executable_extensions; do
3723 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3724 if test $ac_prog = install &&
3725 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3726 # AIX install. It has an incompatible calling convention.
3728 elif test $ac_prog = install &&
3729 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3730 # program-specific install script used by HP pwplus--don't use.
3733 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
3745 if test "${ac_cv_path_install+set}" = set; then
3746 INSTALL
=$ac_cv_path_install
3748 # As a last resort, use the slow shell script. We don't cache a
3749 # path for INSTALL within a source directory, because that will
3750 # break other packages using the cache if that directory is
3751 # removed, or if the path is relative.
3752 INSTALL
=$ac_install_sh
3755 echo "$as_me:$LINENO: result: $INSTALL" >&5
3756 echo "${ECHO_T}$INSTALL" >&6
3758 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3759 # It thinks the first close brace ends the variable substitution.
3760 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3762 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
3764 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3766 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3767 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3768 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,:./+-,___p_,'`
3769 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3770 echo $ECHO_N "(cached) $ECHO_C" >&6
3772 cat >conftest.
make <<\_ACEOF
3774 @
echo 'ac_maketemp="$(MAKE)"'
3776 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3777 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3778 if test -n "$ac_maketemp"; then
3779 eval ac_cv_prog_make_
${ac_make}_set
=yes
3781 eval ac_cv_prog_make_
${ac_make}_set
=no
3785 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3786 echo "$as_me:$LINENO: result: yes" >&5
3787 echo "${ECHO_T}yes" >&6
3790 echo "$as_me:$LINENO: result: no" >&5
3791 echo "${ECHO_T}no" >&6
3792 SET_MAKE
="MAKE=${MAKE-make}"
3795 if test -n "$ac_tool_prefix"; then
3796 # Extract the first word of "${ac_tool_prefix}objcopy", so it can be a program name with args.
3797 set dummy
${ac_tool_prefix}objcopy
; ac_word
=$2
3798 echo "$as_me:$LINENO: checking for $ac_word" >&5
3799 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3800 if test "${ac_cv_prog_OBJCOPY+set}" = set; then
3801 echo $ECHO_N "(cached) $ECHO_C" >&6
3803 if test -n "$OBJCOPY"; then
3804 ac_cv_prog_OBJCOPY
="$OBJCOPY" # Let the user override the test.
3806 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3810 test -z "$as_dir" && as_dir
=.
3811 for ac_exec_ext
in '' $ac_executable_extensions; do
3812 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3813 ac_cv_prog_OBJCOPY
="${ac_tool_prefix}objcopy"
3814 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3822 OBJCOPY
=$ac_cv_prog_OBJCOPY
3823 if test -n "$OBJCOPY"; then
3824 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
3825 echo "${ECHO_T}$OBJCOPY" >&6
3827 echo "$as_me:$LINENO: result: no" >&5
3828 echo "${ECHO_T}no" >&6
3832 if test -z "$ac_cv_prog_OBJCOPY"; then
3833 ac_ct_OBJCOPY
=$OBJCOPY
3834 # Extract the first word of "objcopy", so it can be a program name with args.
3835 set dummy objcopy
; ac_word
=$2
3836 echo "$as_me:$LINENO: checking for $ac_word" >&5
3837 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3838 if test "${ac_cv_prog_ac_ct_OBJCOPY+set}" = set; then
3839 echo $ECHO_N "(cached) $ECHO_C" >&6
3841 if test -n "$ac_ct_OBJCOPY"; then
3842 ac_cv_prog_ac_ct_OBJCOPY
="$ac_ct_OBJCOPY" # Let the user override the test.
3844 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3848 test -z "$as_dir" && as_dir
=.
3849 for ac_exec_ext
in '' $ac_executable_extensions; do
3850 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3851 ac_cv_prog_ac_ct_OBJCOPY
="objcopy"
3852 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3860 ac_ct_OBJCOPY
=$ac_cv_prog_ac_ct_OBJCOPY
3861 if test -n "$ac_ct_OBJCOPY"; then
3862 echo "$as_me:$LINENO: result: $ac_ct_OBJCOPY" >&5
3863 echo "${ECHO_T}$ac_ct_OBJCOPY" >&6
3865 echo "$as_me:$LINENO: result: no" >&5
3866 echo "${ECHO_T}no" >&6
3869 OBJCOPY
=$ac_ct_OBJCOPY
3871 OBJCOPY
="$ac_cv_prog_OBJCOPY"
3874 echo "$as_me:$LINENO: checking whether ${OBJCOPY} works for absolute addresses" >&5
3875 echo $ECHO_N "checking whether ${OBJCOPY} works for absolute addresses... $ECHO_C" >&6
3876 if test "${grub_cv_prog_objcopy_absolute+set}" = set; then
3877 echo $ECHO_N "(cached) $ECHO_C" >&6
3879 cat > conftest.c
<<\EOF
3883 *((int
*) 0x1000) = 2;
3887 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3888 (eval $ac_compile) 2>&5
3890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3891 (exit $ac_status); } && test -s conftest.o
; then :
3893 { { echo "$as_me:$LINENO: error: ${CC-cc} cannot compile C source code" >&5
3894 echo "$as_me: error: ${CC-cc} cannot compile C source code" >&2;}
3895 { (exit 1); exit 1; }; }
3897 grub_cv_prog_objcopy_absolute
=yes
3898 for link_addr
in 2000 8000 7C00
; do
3899 if { ac_try
='${CC-cc} ${CFLAGS} -nostdlib -Wl,-N -Wl,-Ttext -Wl,$link_addr conftest.o -o conftest.exec'
3900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3904 (exit $ac_status); }; }; then :
3906 { { echo "$as_me:$LINENO: error: ${CC-cc} cannot link at address $link_addr" >&5
3907 echo "$as_me: error: ${CC-cc} cannot link at address $link_addr" >&2;}
3908 { (exit 1); exit 1; }; }
3910 if { ac_try
='${OBJCOPY-objcopy} -O binary conftest.exec conftest'
3911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3915 (exit $ac_status); }; }; then :
3917 { { echo "$as_me:$LINENO: error: ${OBJCOPY-objcopy} cannot create binary files" >&5
3918 echo "$as_me: error: ${OBJCOPY-objcopy} cannot create binary files" >&2;}
3919 { (exit 1); exit 1; }; }
3921 if test ! -f conftest.old ||
{ ac_try
='cmp -s conftest.old conftest'
3922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3926 (exit $ac_status); }; }; then
3927 mv -f conftest conftest.old
3929 grub_cv_prog_objcopy_absolute
=no
3936 echo "$as_me:$LINENO: result: $grub_cv_prog_objcopy_absolute" >&5
3937 echo "${ECHO_T}$grub_cv_prog_objcopy_absolute" >&6
3939 if test "x$grub_cv_prog_objcopy_absolute" = xno
; then
3940 { { echo "$as_me:$LINENO: error: GRUB requires a working absolute objcopy; upgrade your binutils" >&5
3941 echo "$as_me: error: GRUB requires a working absolute objcopy; upgrade your binutils" >&2;}
3942 { (exit 1); exit 1; }; }
3945 if test -n "$ac_tool_prefix"; then
3946 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3947 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
3948 echo "$as_me:$LINENO: checking for $ac_word" >&5
3949 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3950 if test "${ac_cv_prog_STRIP+set}" = set; then
3951 echo $ECHO_N "(cached) $ECHO_C" >&6
3953 if test -n "$STRIP"; then
3954 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
3956 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3960 test -z "$as_dir" && as_dir
=.
3961 for ac_exec_ext
in '' $ac_executable_extensions; do
3962 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3963 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
3964 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3972 STRIP
=$ac_cv_prog_STRIP
3973 if test -n "$STRIP"; then
3974 echo "$as_me:$LINENO: result: $STRIP" >&5
3975 echo "${ECHO_T}$STRIP" >&6
3977 echo "$as_me:$LINENO: result: no" >&5
3978 echo "${ECHO_T}no" >&6
3982 if test -z "$ac_cv_prog_STRIP"; then
3984 # Extract the first word of "strip", so it can be a program name with args.
3985 set dummy strip
; ac_word
=$2
3986 echo "$as_me:$LINENO: checking for $ac_word" >&5
3987 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3988 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3989 echo $ECHO_N "(cached) $ECHO_C" >&6
3991 if test -n "$ac_ct_STRIP"; then
3992 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
3994 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3998 test -z "$as_dir" && as_dir
=.
3999 for ac_exec_ext
in '' $ac_executable_extensions; do
4000 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4001 ac_cv_prog_ac_ct_STRIP
="strip"
4002 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4010 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
4011 if test -n "$ac_ct_STRIP"; then
4012 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4013 echo "${ECHO_T}$ac_ct_STRIP" >&6
4015 echo "$as_me:$LINENO: result: no" >&5
4016 echo "${ECHO_T}no" >&6
4021 STRIP
="$ac_cv_prog_STRIP"
4024 if test -n "$ac_tool_prefix"; then
4025 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
4026 set dummy
${ac_tool_prefix}nm
; ac_word
=$2
4027 echo "$as_me:$LINENO: checking for $ac_word" >&5
4028 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4029 if test "${ac_cv_prog_NM+set}" = set; then
4030 echo $ECHO_N "(cached) $ECHO_C" >&6
4032 if test -n "$NM"; then
4033 ac_cv_prog_NM
="$NM" # Let the user override the test.
4035 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4039 test -z "$as_dir" && as_dir
=.
4040 for ac_exec_ext
in '' $ac_executable_extensions; do
4041 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4042 ac_cv_prog_NM
="${ac_tool_prefix}nm"
4043 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4052 if test -n "$NM"; then
4053 echo "$as_me:$LINENO: result: $NM" >&5
4054 echo "${ECHO_T}$NM" >&6
4056 echo "$as_me:$LINENO: result: no" >&5
4057 echo "${ECHO_T}no" >&6
4061 if test -z "$ac_cv_prog_NM"; then
4063 # Extract the first word of "nm", so it can be a program name with args.
4064 set dummy nm
; ac_word
=$2
4065 echo "$as_me:$LINENO: checking for $ac_word" >&5
4066 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4067 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
4068 echo $ECHO_N "(cached) $ECHO_C" >&6
4070 if test -n "$ac_ct_NM"; then
4071 ac_cv_prog_ac_ct_NM
="$ac_ct_NM" # Let the user override the test.
4073 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4077 test -z "$as_dir" && as_dir
=.
4078 for ac_exec_ext
in '' $ac_executable_extensions; do
4079 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4080 ac_cv_prog_ac_ct_NM
="nm"
4081 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4089 ac_ct_NM
=$ac_cv_prog_ac_ct_NM
4090 if test -n "$ac_ct_NM"; then
4091 echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
4092 echo "${ECHO_T}$ac_ct_NM" >&6
4094 echo "$as_me:$LINENO: result: no" >&5
4095 echo "${ECHO_T}no" >&6
4103 if test -n "$ac_tool_prefix"; then
4104 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
4105 set dummy
${ac_tool_prefix}ld
; ac_word
=$2
4106 echo "$as_me:$LINENO: checking for $ac_word" >&5
4107 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4108 if test "${ac_cv_prog_LD+set}" = set; then
4109 echo $ECHO_N "(cached) $ECHO_C" >&6
4111 if test -n "$LD"; then
4112 ac_cv_prog_LD
="$LD" # Let the user override the test.
4114 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4118 test -z "$as_dir" && as_dir
=.
4119 for ac_exec_ext
in '' $ac_executable_extensions; do
4120 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4121 ac_cv_prog_LD
="${ac_tool_prefix}ld"
4122 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4131 if test -n "$LD"; then
4132 echo "$as_me:$LINENO: result: $LD" >&5
4133 echo "${ECHO_T}$LD" >&6
4135 echo "$as_me:$LINENO: result: no" >&5
4136 echo "${ECHO_T}no" >&6
4140 if test -z "$ac_cv_prog_LD"; then
4142 # Extract the first word of "ld", so it can be a program name with args.
4143 set dummy ld
; ac_word
=$2
4144 echo "$as_me:$LINENO: checking for $ac_word" >&5
4145 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4146 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
4147 echo $ECHO_N "(cached) $ECHO_C" >&6
4149 if test -n "$ac_ct_LD"; then
4150 ac_cv_prog_ac_ct_LD
="$ac_ct_LD" # Let the user override the test.
4152 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4156 test -z "$as_dir" && as_dir
=.
4157 for ac_exec_ext
in '' $ac_executable_extensions; do
4158 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4159 ac_cv_prog_ac_ct_LD
="ld"
4160 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4168 ac_ct_LD
=$ac_cv_prog_ac_ct_LD
4169 if test -n "$ac_ct_LD"; then
4170 echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
4171 echo "${ECHO_T}$ac_ct_LD" >&6
4173 echo "$as_me:$LINENO: result: no" >&5
4174 echo "${ECHO_T}no" >&6
4183 # This is not a "must".
4184 # Extract the first word of "ruby", so it can be a program name with args.
4185 set dummy ruby
; ac_word
=$2
4186 echo "$as_me:$LINENO: checking for $ac_word" >&5
4187 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4188 if test "${ac_cv_path_RUBY+set}" = set; then
4189 echo $ECHO_N "(cached) $ECHO_C" >&6
4193 ac_cv_path_RUBY
="$RUBY" # Let the user override the test with a path.
4196 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4200 test -z "$as_dir" && as_dir
=.
4201 for ac_exec_ext
in '' $ac_executable_extensions; do
4202 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4203 ac_cv_path_RUBY
="$as_dir/$ac_word$ac_exec_ext"
4204 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4213 RUBY
=$ac_cv_path_RUBY
4215 if test -n "$RUBY"; then
4216 echo "$as_me:$LINENO: result: $RUBY" >&5
4217 echo "${ECHO_T}$RUBY" >&6
4219 echo "$as_me:$LINENO: result: no" >&5
4220 echo "${ECHO_T}no" >&6
4224 # For cross-compiling.
4225 if test "x$build" != "x$host"; then
4226 for ac_prog
in gcc egcs cc
4228 # Extract the first word of "$ac_prog", so it can be a program name with args.
4229 set dummy
$ac_prog; ac_word
=$2
4230 echo "$as_me:$LINENO: checking for $ac_word" >&5
4231 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4232 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4233 echo $ECHO_N "(cached) $ECHO_C" >&6
4235 if test -n "$BUILD_CC"; then
4236 ac_cv_prog_BUILD_CC
="$BUILD_CC" # Let the user override the test.
4238 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4242 test -z "$as_dir" && as_dir
=.
4243 for ac_exec_ext
in '' $ac_executable_extensions; do
4244 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4245 ac_cv_prog_BUILD_CC
="$ac_prog"
4246 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4254 BUILD_CC
=$ac_cv_prog_BUILD_CC
4255 if test -n "$BUILD_CC"; then
4256 echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4257 echo "${ECHO_T}$BUILD_CC" >&6
4259 echo "$as_me:$LINENO: result: no" >&5
4260 echo "${ECHO_T}no" >&6
4263 test -n "$BUILD_CC" && break
4265 test -n "$BUILD_CC" || BUILD_CC
="{ { echo "$as_me:$LINENO: error
: none of gcc
, egcs and cc is found.
set BUILD_CC manually.
" >&5
4266 echo "$as_me: error
: none of gcc
, egcs and cc is found.
set BUILD_CC manually.
" >&2;}
4267 { (exit 1); exit 1; }; }"
4274 # Test the C compiler for the build environment.
4276 tmp_CFLAGS
="$CFLAGS"
4277 tmp_LDFLAGS
="$LDFLAGS"
4278 tmp_CPPFLAGS
="$CPPFLAGS"
4280 CFLAGS
="$BUILD_CFLAGS"
4281 CPPFLAGS
="$BUILD_CPPFLAGS"
4282 LDFLAGS
="$BUILD_LDDFLAGS"
4284 # Identify characteristics of the build architecture.
4285 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4286 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
4287 if test "${ac_cv_c_bigendian+set}" = set; then
4288 echo $ECHO_N "(cached) $ECHO_C" >&6
4290 # See if sys/param.h defines the BYTE_ORDER macro.
4291 cat >conftest.
$ac_ext <<_ACEOF
4294 cat confdefs.h
>>conftest.
$ac_ext
4295 cat >>conftest.
$ac_ext <<_ACEOF
4296 /* end confdefs.h. */
4297 #include <sys/types.h>
4298 #include <sys/param.h>
4303 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4311 rm -f conftest.
$ac_objext
4312 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4313 (eval $ac_compile) 2>conftest.er1
4315 grep -v '^ *+' conftest.er1
>conftest.err
4317 cat conftest.err
>&5
4318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4319 (exit $ac_status); } &&
4320 { ac_try
='test -z "$ac_c_werror_flag"
4321 || test ! -s conftest.err'
4322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4326 (exit $ac_status); }; } &&
4327 { ac_try
='test -s conftest.$ac_objext'
4328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4332 (exit $ac_status); }; }; then
4333 # It does; now see whether it defined to BIG_ENDIAN or not.
4334 cat >conftest.
$ac_ext <<_ACEOF
4337 cat confdefs.h
>>conftest.
$ac_ext
4338 cat >>conftest.
$ac_ext <<_ACEOF
4339 /* end confdefs.h. */
4340 #include <sys/types.h>
4341 #include <sys/param.h>
4346 #if BYTE_ORDER != BIG_ENDIAN
4354 rm -f conftest.
$ac_objext
4355 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4356 (eval $ac_compile) 2>conftest.er1
4358 grep -v '^ *+' conftest.er1
>conftest.err
4360 cat conftest.err
>&5
4361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4362 (exit $ac_status); } &&
4363 { ac_try
='test -z "$ac_c_werror_flag"
4364 || test ! -s conftest.err'
4365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4369 (exit $ac_status); }; } &&
4370 { ac_try
='test -s conftest.$ac_objext'
4371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4375 (exit $ac_status); }; }; then
4376 ac_cv_c_bigendian
=yes
4378 echo "$as_me: failed program was:" >&5
4379 sed 's/^/| /' conftest.
$ac_ext >&5
4381 ac_cv_c_bigendian
=no
4383 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4385 echo "$as_me: failed program was:" >&5
4386 sed 's/^/| /' conftest.
$ac_ext >&5
4388 # It does not; compile a test program.
4389 if test "$cross_compiling" = yes; then
4390 # try to guess the endianness by grepping values into an object file
4391 ac_cv_c_bigendian
=unknown
4392 cat >conftest.
$ac_ext <<_ACEOF
4395 cat confdefs.h
>>conftest.
$ac_ext
4396 cat >>conftest.
$ac_ext <<_ACEOF
4397 /* end confdefs.h. */
4398 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4399 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4400 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4401 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4402 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4403 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4407 _ascii (); _ebcdic ();
4412 rm -f conftest.
$ac_objext
4413 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4414 (eval $ac_compile) 2>conftest.er1
4416 grep -v '^ *+' conftest.er1
>conftest.err
4418 cat conftest.err
>&5
4419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4420 (exit $ac_status); } &&
4421 { ac_try
='test -z "$ac_c_werror_flag"
4422 || test ! -s conftest.err'
4423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4427 (exit $ac_status); }; } &&
4428 { ac_try
='test -s conftest.$ac_objext'
4429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4433 (exit $ac_status); }; }; then
4434 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
4435 ac_cv_c_bigendian
=yes
4437 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
4438 if test "$ac_cv_c_bigendian" = unknown
; then
4439 ac_cv_c_bigendian
=no
4441 # finding both strings is unlikely to happen, but who knows?
4442 ac_cv_c_bigendian
=unknown
4446 echo "$as_me: failed program was:" >&5
4447 sed 's/^/| /' conftest.
$ac_ext >&5
4450 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4452 cat >conftest.
$ac_ext <<_ACEOF
4455 cat confdefs.h
>>conftest.
$ac_ext
4456 cat >>conftest.
$ac_ext <<_ACEOF
4457 /* end confdefs.h. */
4461 /* Are we little or big endian? From Harbison&Steele. */
4465 char c[sizeof (long)];
4468 exit (u.c[sizeof (long) - 1] == 1);
4471 rm -f conftest
$ac_exeext
4472 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4473 (eval $ac_link) 2>&5
4475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4476 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4481 (exit $ac_status); }; }; then
4482 ac_cv_c_bigendian
=no
4484 echo "$as_me: program exited with status $ac_status" >&5
4485 echo "$as_me: failed program was:" >&5
4486 sed 's/^/| /' conftest.
$ac_ext >&5
4489 ac_cv_c_bigendian
=yes
4491 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4494 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4496 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4497 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
4498 case $ac_cv_c_bigendian in
4501 cat >>confdefs.h
<<\_ACEOF
4502 #define WORDS_BIGENDIAN 1
4508 { { echo "$as_me:$LINENO: error: unknown endianness
4509 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4510 echo "$as_me: error: unknown endianness
4511 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4512 { (exit 1); exit 1; }; } ;;
4516 ac_cpp
='$CPP $CPPFLAGS'
4517 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4518 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4519 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4520 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4521 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4522 # On Suns, sometimes $CPP names a directory.
4523 if test -n "$CPP" && test -d "$CPP"; then
4526 if test -z "$CPP"; then
4527 if test "${ac_cv_prog_CPP+set}" = set; then
4528 echo $ECHO_N "(cached) $ECHO_C" >&6
4530 # Double quotes because CPP needs to be expanded
4531 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4534 for ac_c_preproc_warn_flag
in '' yes
4536 # Use a header file that comes with gcc, so configuring glibc
4537 # with a fresh cross-compiler works.
4538 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4539 # <limits.h> exists even on freestanding compilers.
4540 # On the NeXT, cc -E runs the code through the compiler's parser,
4541 # not just through cpp. "Syntax error" is here to catch this case.
4542 cat >conftest.
$ac_ext <<_ACEOF
4545 cat confdefs.h
>>conftest.
$ac_ext
4546 cat >>conftest.
$ac_ext <<_ACEOF
4547 /* end confdefs.h. */
4549 # include <limits.h>
4551 # include <assert.h>
4555 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4556 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4558 grep -v '^ *+' conftest.er1
>conftest.err
4560 cat conftest.err
>&5
4561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4562 (exit $ac_status); } >/dev
/null
; then
4563 if test -s conftest.err
; then
4564 ac_cpp_err
=$ac_c_preproc_warn_flag
4565 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4572 if test -z "$ac_cpp_err"; then
4575 echo "$as_me: failed program was:" >&5
4576 sed 's/^/| /' conftest.
$ac_ext >&5
4578 # Broken: fails on valid input.
4581 rm -f conftest.err conftest.
$ac_ext
4583 # OK, works on sane cases. Now check whether non-existent headers
4584 # can be detected and how.
4585 cat >conftest.
$ac_ext <<_ACEOF
4588 cat confdefs.h
>>conftest.
$ac_ext
4589 cat >>conftest.
$ac_ext <<_ACEOF
4590 /* end confdefs.h. */
4591 #include <ac_nonexistent.h>
4593 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4594 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4596 grep -v '^ *+' conftest.er1
>conftest.err
4598 cat conftest.err
>&5
4599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4600 (exit $ac_status); } >/dev
/null
; then
4601 if test -s conftest.err
; then
4602 ac_cpp_err
=$ac_c_preproc_warn_flag
4603 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4610 if test -z "$ac_cpp_err"; then
4611 # Broken: success on invalid input.
4614 echo "$as_me: failed program was:" >&5
4615 sed 's/^/| /' conftest.
$ac_ext >&5
4617 # Passes both tests.
4621 rm -f conftest.err conftest.
$ac_ext
4624 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4625 rm -f conftest.err conftest.
$ac_ext
4626 if $ac_preproc_ok; then
4638 echo "$as_me:$LINENO: result: $CPP" >&5
4639 echo "${ECHO_T}$CPP" >&6
4641 for ac_c_preproc_warn_flag
in '' yes
4643 # Use a header file that comes with gcc, so configuring glibc
4644 # with a fresh cross-compiler works.
4645 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4646 # <limits.h> exists even on freestanding compilers.
4647 # On the NeXT, cc -E runs the code through the compiler's parser,
4648 # not just through cpp. "Syntax error" is here to catch this case.
4649 cat >conftest.
$ac_ext <<_ACEOF
4652 cat confdefs.h
>>conftest.
$ac_ext
4653 cat >>conftest.
$ac_ext <<_ACEOF
4654 /* end confdefs.h. */
4656 # include <limits.h>
4658 # include <assert.h>
4662 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4663 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4665 grep -v '^ *+' conftest.er1
>conftest.err
4667 cat conftest.err
>&5
4668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4669 (exit $ac_status); } >/dev
/null
; then
4670 if test -s conftest.err
; then
4671 ac_cpp_err
=$ac_c_preproc_warn_flag
4672 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4679 if test -z "$ac_cpp_err"; then
4682 echo "$as_me: failed program was:" >&5
4683 sed 's/^/| /' conftest.
$ac_ext >&5
4685 # Broken: fails on valid input.
4688 rm -f conftest.err conftest.
$ac_ext
4690 # OK, works on sane cases. Now check whether non-existent headers
4691 # can be detected and how.
4692 cat >conftest.
$ac_ext <<_ACEOF
4695 cat confdefs.h
>>conftest.
$ac_ext
4696 cat >>conftest.
$ac_ext <<_ACEOF
4697 /* end confdefs.h. */
4698 #include <ac_nonexistent.h>
4700 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4701 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4703 grep -v '^ *+' conftest.er1
>conftest.err
4705 cat conftest.err
>&5
4706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4707 (exit $ac_status); } >/dev
/null
; then
4708 if test -s conftest.err
; then
4709 ac_cpp_err
=$ac_c_preproc_warn_flag
4710 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4717 if test -z "$ac_cpp_err"; then
4718 # Broken: success on invalid input.
4721 echo "$as_me: failed program was:" >&5
4722 sed 's/^/| /' conftest.
$ac_ext >&5
4724 # Passes both tests.
4728 rm -f conftest.err conftest.
$ac_ext
4731 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4732 rm -f conftest.err conftest.
$ac_ext
4733 if $ac_preproc_ok; then
4736 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4737 See \`config.log' for more details." >&5
4738 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4739 See \`config.log' for more details." >&2;}
4740 { (exit 1); exit 1; }; }
4744 ac_cpp
='$CPP $CPPFLAGS'
4745 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4746 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4747 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4750 echo "$as_me:$LINENO: checking for egrep" >&5
4751 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4752 if test "${ac_cv_prog_egrep+set}" = set; then
4753 echo $ECHO_N "(cached) $ECHO_C" >&6
4755 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
4756 then ac_cv_prog_egrep
='grep -E'
4757 else ac_cv_prog_egrep
='egrep'
4760 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4761 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4762 EGREP
=$ac_cv_prog_egrep
4765 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4766 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4767 if test "${ac_cv_header_stdc+set}" = set; then
4768 echo $ECHO_N "(cached) $ECHO_C" >&6
4770 cat >conftest.
$ac_ext <<_ACEOF
4773 cat confdefs.h
>>conftest.
$ac_ext
4774 cat >>conftest.
$ac_ext <<_ACEOF
4775 /* end confdefs.h. */
4789 rm -f conftest.
$ac_objext
4790 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4791 (eval $ac_compile) 2>conftest.er1
4793 grep -v '^ *+' conftest.er1
>conftest.err
4795 cat conftest.err
>&5
4796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4797 (exit $ac_status); } &&
4798 { ac_try
='test -z "$ac_c_werror_flag"
4799 || test ! -s conftest.err'
4800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4804 (exit $ac_status); }; } &&
4805 { ac_try
='test -s conftest.$ac_objext'
4806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4810 (exit $ac_status); }; }; then
4811 ac_cv_header_stdc
=yes
4813 echo "$as_me: failed program was:" >&5
4814 sed 's/^/| /' conftest.
$ac_ext >&5
4816 ac_cv_header_stdc
=no
4818 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4820 if test $ac_cv_header_stdc = yes; then
4821 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4822 cat >conftest.
$ac_ext <<_ACEOF
4825 cat confdefs.h
>>conftest.
$ac_ext
4826 cat >>conftest.
$ac_ext <<_ACEOF
4827 /* end confdefs.h. */
4831 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4832 $EGREP "memchr" >/dev
/null
2>&1; then
4835 ac_cv_header_stdc
=no
4841 if test $ac_cv_header_stdc = yes; then
4842 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4843 cat >conftest.
$ac_ext <<_ACEOF
4846 cat confdefs.h
>>conftest.
$ac_ext
4847 cat >>conftest.
$ac_ext <<_ACEOF
4848 /* end confdefs.h. */
4852 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4853 $EGREP "free" >/dev
/null
2>&1; then
4856 ac_cv_header_stdc
=no
4862 if test $ac_cv_header_stdc = yes; then
4863 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4864 if test "$cross_compiling" = yes; then
4867 cat >conftest.
$ac_ext <<_ACEOF
4870 cat confdefs.h
>>conftest.
$ac_ext
4871 cat >>conftest.
$ac_ext <<_ACEOF
4872 /* end confdefs.h. */
4874 #if ((' ' & 0x0FF) == 0x020)
4875 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4876 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4878 # define ISLOWER(c) \
4879 (('a' <= (c) && (c) <= 'i') \
4880 || ('j' <= (c) && (c) <= 'r') \
4881 || ('s' <= (c) && (c) <= 'z'))
4882 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4885 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4890 for (i = 0; i < 256; i++)
4891 if (XOR (islower (i), ISLOWER (i))
4892 || toupper (i) != TOUPPER (i))
4897 rm -f conftest
$ac_exeext
4898 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4899 (eval $ac_link) 2>&5
4901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4902 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4907 (exit $ac_status); }; }; then
4910 echo "$as_me: program exited with status $ac_status" >&5
4911 echo "$as_me: failed program was:" >&5
4912 sed 's/^/| /' conftest.
$ac_ext >&5
4915 ac_cv_header_stdc
=no
4917 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4921 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4922 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4923 if test $ac_cv_header_stdc = yes; then
4925 cat >>confdefs.h
<<\_ACEOF
4926 #define STDC_HEADERS 1
4931 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4941 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4942 inttypes.h stdint.h unistd.h
4944 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4945 echo "$as_me:$LINENO: checking for $ac_header" >&5
4946 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4947 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4948 echo $ECHO_N "(cached) $ECHO_C" >&6
4950 cat >conftest.
$ac_ext <<_ACEOF
4953 cat confdefs.h
>>conftest.
$ac_ext
4954 cat >>conftest.
$ac_ext <<_ACEOF
4955 /* end confdefs.h. */
4956 $ac_includes_default
4958 #include <$ac_header>
4960 rm -f conftest.
$ac_objext
4961 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4962 (eval $ac_compile) 2>conftest.er1
4964 grep -v '^ *+' conftest.er1
>conftest.err
4966 cat conftest.err
>&5
4967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4968 (exit $ac_status); } &&
4969 { ac_try
='test -z "$ac_c_werror_flag"
4970 || test ! -s conftest.err'
4971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4975 (exit $ac_status); }; } &&
4976 { ac_try
='test -s conftest.$ac_objext'
4977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4981 (exit $ac_status); }; }; then
4982 eval "$as_ac_Header=yes"
4984 echo "$as_me: failed program was:" >&5
4985 sed 's/^/| /' conftest.
$ac_ext >&5
4987 eval "$as_ac_Header=no"
4989 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4991 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4992 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4993 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4994 cat >>confdefs.h
<<_ACEOF
4995 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5003 echo "$as_me:$LINENO: checking for void *" >&5
5004 echo $ECHO_N "checking for void *... $ECHO_C" >&6
5005 if test "${ac_cv_type_void_p+set}" = set; then
5006 echo $ECHO_N "(cached) $ECHO_C" >&6
5008 cat >conftest.
$ac_ext <<_ACEOF
5011 cat confdefs.h
>>conftest.
$ac_ext
5012 cat >>conftest.
$ac_ext <<_ACEOF
5013 /* end confdefs.h. */
5014 $ac_includes_default
5020 if (sizeof (void *))
5026 rm -f conftest.
$ac_objext
5027 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5028 (eval $ac_compile) 2>conftest.er1
5030 grep -v '^ *+' conftest.er1
>conftest.err
5032 cat conftest.err
>&5
5033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5034 (exit $ac_status); } &&
5035 { ac_try
='test -z "$ac_c_werror_flag"
5036 || test ! -s conftest.err'
5037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5041 (exit $ac_status); }; } &&
5042 { ac_try
='test -s conftest.$ac_objext'
5043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5047 (exit $ac_status); }; }; then
5048 ac_cv_type_void_p
=yes
5050 echo "$as_me: failed program was:" >&5
5051 sed 's/^/| /' conftest.
$ac_ext >&5
5053 ac_cv_type_void_p
=no
5055 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5057 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
5058 echo "${ECHO_T}$ac_cv_type_void_p" >&6
5060 echo "$as_me:$LINENO: checking size of void *" >&5
5061 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
5062 if test "${ac_cv_sizeof_void_p+set}" = set; then
5063 echo $ECHO_N "(cached) $ECHO_C" >&6
5065 if test "$ac_cv_type_void_p" = yes; then
5066 # The cast to unsigned long works around a bug in the HP C Compiler
5067 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5068 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5069 # This bug is HP SR number 8606223364.
5070 if test "$cross_compiling" = yes; then
5071 # Depending upon the size, compute the lo and hi bounds.
5072 cat >conftest.
$ac_ext <<_ACEOF
5075 cat confdefs.h
>>conftest.
$ac_ext
5076 cat >>conftest.
$ac_ext <<_ACEOF
5077 /* end confdefs.h. */
5078 $ac_includes_default
5082 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
5089 rm -f conftest.
$ac_objext
5090 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5091 (eval $ac_compile) 2>conftest.er1
5093 grep -v '^ *+' conftest.er1
>conftest.err
5095 cat conftest.err
>&5
5096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5097 (exit $ac_status); } &&
5098 { ac_try
='test -z "$ac_c_werror_flag"
5099 || test ! -s conftest.err'
5100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5104 (exit $ac_status); }; } &&
5105 { ac_try
='test -s conftest.$ac_objext'
5106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5110 (exit $ac_status); }; }; then
5113 cat >conftest.
$ac_ext <<_ACEOF
5116 cat confdefs.h
>>conftest.
$ac_ext
5117 cat >>conftest.
$ac_ext <<_ACEOF
5118 /* end confdefs.h. */
5119 $ac_includes_default
5123 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
5130 rm -f conftest.
$ac_objext
5131 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5132 (eval $ac_compile) 2>conftest.er1
5134 grep -v '^ *+' conftest.er1
>conftest.err
5136 cat conftest.err
>&5
5137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5138 (exit $ac_status); } &&
5139 { ac_try
='test -z "$ac_c_werror_flag"
5140 || test ! -s conftest.err'
5141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5145 (exit $ac_status); }; } &&
5146 { ac_try
='test -s conftest.$ac_objext'
5147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5151 (exit $ac_status); }; }; then
5152 ac_hi
=$ac_mid; break
5154 echo "$as_me: failed program was:" >&5
5155 sed 's/^/| /' conftest.
$ac_ext >&5
5157 ac_lo
=`expr $ac_mid + 1`
5158 if test $ac_lo -le $ac_mid; then
5162 ac_mid
=`expr 2 '*' $ac_mid + 1`
5164 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5167 echo "$as_me: failed program was:" >&5
5168 sed 's/^/| /' conftest.
$ac_ext >&5
5170 cat >conftest.
$ac_ext <<_ACEOF
5173 cat confdefs.h
>>conftest.
$ac_ext
5174 cat >>conftest.
$ac_ext <<_ACEOF
5175 /* end confdefs.h. */
5176 $ac_includes_default
5180 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
5187 rm -f conftest.
$ac_objext
5188 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5189 (eval $ac_compile) 2>conftest.er1
5191 grep -v '^ *+' conftest.er1
>conftest.err
5193 cat conftest.err
>&5
5194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5195 (exit $ac_status); } &&
5196 { ac_try
='test -z "$ac_c_werror_flag"
5197 || test ! -s conftest.err'
5198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5202 (exit $ac_status); }; } &&
5203 { ac_try
='test -s conftest.$ac_objext'
5204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5208 (exit $ac_status); }; }; then
5211 cat >conftest.
$ac_ext <<_ACEOF
5214 cat confdefs.h
>>conftest.
$ac_ext
5215 cat >>conftest.
$ac_ext <<_ACEOF
5216 /* end confdefs.h. */
5217 $ac_includes_default
5221 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
5228 rm -f conftest.
$ac_objext
5229 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5230 (eval $ac_compile) 2>conftest.er1
5232 grep -v '^ *+' conftest.er1
>conftest.err
5234 cat conftest.err
>&5
5235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5236 (exit $ac_status); } &&
5237 { ac_try
='test -z "$ac_c_werror_flag"
5238 || test ! -s conftest.err'
5239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5243 (exit $ac_status); }; } &&
5244 { ac_try
='test -s conftest.$ac_objext'
5245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5249 (exit $ac_status); }; }; then
5250 ac_lo
=$ac_mid; break
5252 echo "$as_me: failed program was:" >&5
5253 sed 's/^/| /' conftest.
$ac_ext >&5
5255 ac_hi
=`expr '(' $ac_mid ')' - 1`
5256 if test $ac_mid -le $ac_hi; then
5260 ac_mid
=`expr 2 '*' $ac_mid`
5262 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5265 echo "$as_me: failed program was:" >&5
5266 sed 's/^/| /' conftest.
$ac_ext >&5
5270 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5272 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5273 # Binary search between lo and hi bounds.
5274 while test "x$ac_lo" != "x$ac_hi"; do
5275 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5276 cat >conftest.
$ac_ext <<_ACEOF
5279 cat confdefs.h
>>conftest.
$ac_ext
5280 cat >>conftest.
$ac_ext <<_ACEOF
5281 /* end confdefs.h. */
5282 $ac_includes_default
5286 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
5293 rm -f conftest.
$ac_objext
5294 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5295 (eval $ac_compile) 2>conftest.er1
5297 grep -v '^ *+' conftest.er1
>conftest.err
5299 cat conftest.err
>&5
5300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5301 (exit $ac_status); } &&
5302 { ac_try
='test -z "$ac_c_werror_flag"
5303 || test ! -s conftest.err'
5304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5308 (exit $ac_status); }; } &&
5309 { ac_try
='test -s conftest.$ac_objext'
5310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5314 (exit $ac_status); }; }; then
5317 echo "$as_me: failed program was:" >&5
5318 sed 's/^/| /' conftest.
$ac_ext >&5
5320 ac_lo
=`expr '(' $ac_mid ')' + 1`
5322 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5325 ?
*) ac_cv_sizeof_void_p
=$ac_lo;;
5326 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
5327 See \`config.log' for more details." >&5
5328 echo "$as_me: error: cannot compute sizeof (void *), 77
5329 See \`config.log' for more details." >&2;}
5330 { (exit 1); exit 1; }; } ;;
5333 if test "$cross_compiling" = yes; then
5334 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5335 See \`config.log' for more details." >&5
5336 echo "$as_me: error: cannot run test program while cross compiling
5337 See \`config.log' for more details." >&2;}
5338 { (exit 1); exit 1; }; }
5340 cat >conftest.
$ac_ext <<_ACEOF
5343 cat confdefs.h
>>conftest.
$ac_ext
5344 cat >>conftest.
$ac_ext <<_ACEOF
5345 /* end confdefs.h. */
5346 $ac_includes_default
5347 long longval () { return (long) (sizeof (void *)); }
5348 unsigned long ulongval () { return (long) (sizeof (void *)); }
5355 FILE *f = fopen ("conftest.val", "w");
5358 if (((long) (sizeof (void *))) < 0)
5360 long i = longval ();
5361 if (i != ((long) (sizeof (void *))))
5363 fprintf (f, "%ld\n", i);
5367 unsigned long i = ulongval ();
5368 if (i != ((long) (sizeof (void *))))
5370 fprintf (f, "%lu\n", i);
5372 exit (ferror (f) || fclose (f) != 0);
5378 rm -f conftest
$ac_exeext
5379 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5380 (eval $ac_link) 2>&5
5382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5383 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5388 (exit $ac_status); }; }; then
5389 ac_cv_sizeof_void_p
=`cat conftest.val`
5391 echo "$as_me: program exited with status $ac_status" >&5
5392 echo "$as_me: failed program was:" >&5
5393 sed 's/^/| /' conftest.
$ac_ext >&5
5396 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
5397 See \`config.log' for more details." >&5
5398 echo "$as_me: error: cannot compute sizeof (void *), 77
5399 See \`config.log' for more details." >&2;}
5400 { (exit 1); exit 1; }; }
5402 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5407 ac_cv_sizeof_void_p
=0
5410 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
5411 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
5412 cat >>confdefs.h
<<_ACEOF
5413 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5417 echo "$as_me:$LINENO: checking for long" >&5
5418 echo $ECHO_N "checking for long... $ECHO_C" >&6
5419 if test "${ac_cv_type_long+set}" = set; then
5420 echo $ECHO_N "(cached) $ECHO_C" >&6
5422 cat >conftest.
$ac_ext <<_ACEOF
5425 cat confdefs.h
>>conftest.
$ac_ext
5426 cat >>conftest.
$ac_ext <<_ACEOF
5427 /* end confdefs.h. */
5428 $ac_includes_default
5440 rm -f conftest.
$ac_objext
5441 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5442 (eval $ac_compile) 2>conftest.er1
5444 grep -v '^ *+' conftest.er1
>conftest.err
5446 cat conftest.err
>&5
5447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5448 (exit $ac_status); } &&
5449 { ac_try
='test -z "$ac_c_werror_flag"
5450 || test ! -s conftest.err'
5451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5455 (exit $ac_status); }; } &&
5456 { ac_try
='test -s conftest.$ac_objext'
5457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5461 (exit $ac_status); }; }; then
5464 echo "$as_me: failed program was:" >&5
5465 sed 's/^/| /' conftest.
$ac_ext >&5
5469 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5471 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
5472 echo "${ECHO_T}$ac_cv_type_long" >&6
5474 echo "$as_me:$LINENO: checking size of long" >&5
5475 echo $ECHO_N "checking size of long... $ECHO_C" >&6
5476 if test "${ac_cv_sizeof_long+set}" = set; then
5477 echo $ECHO_N "(cached) $ECHO_C" >&6
5479 if test "$ac_cv_type_long" = yes; then
5480 # The cast to unsigned long works around a bug in the HP C Compiler
5481 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5482 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5483 # This bug is HP SR number 8606223364.
5484 if test "$cross_compiling" = yes; then
5485 # Depending upon the size, compute the lo and hi bounds.
5486 cat >conftest.
$ac_ext <<_ACEOF
5489 cat confdefs.h
>>conftest.
$ac_ext
5490 cat >>conftest.
$ac_ext <<_ACEOF
5491 /* end confdefs.h. */
5492 $ac_includes_default
5496 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
5503 rm -f conftest.
$ac_objext
5504 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5505 (eval $ac_compile) 2>conftest.er1
5507 grep -v '^ *+' conftest.er1
>conftest.err
5509 cat conftest.err
>&5
5510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5511 (exit $ac_status); } &&
5512 { ac_try
='test -z "$ac_c_werror_flag"
5513 || test ! -s conftest.err'
5514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5518 (exit $ac_status); }; } &&
5519 { ac_try
='test -s conftest.$ac_objext'
5520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5524 (exit $ac_status); }; }; then
5527 cat >conftest.
$ac_ext <<_ACEOF
5530 cat confdefs.h
>>conftest.
$ac_ext
5531 cat >>conftest.
$ac_ext <<_ACEOF
5532 /* end confdefs.h. */
5533 $ac_includes_default
5537 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5544 rm -f conftest.
$ac_objext
5545 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5546 (eval $ac_compile) 2>conftest.er1
5548 grep -v '^ *+' conftest.er1
>conftest.err
5550 cat conftest.err
>&5
5551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5552 (exit $ac_status); } &&
5553 { ac_try
='test -z "$ac_c_werror_flag"
5554 || test ! -s conftest.err'
5555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5559 (exit $ac_status); }; } &&
5560 { ac_try
='test -s conftest.$ac_objext'
5561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5565 (exit $ac_status); }; }; then
5566 ac_hi
=$ac_mid; break
5568 echo "$as_me: failed program was:" >&5
5569 sed 's/^/| /' conftest.
$ac_ext >&5
5571 ac_lo
=`expr $ac_mid + 1`
5572 if test $ac_lo -le $ac_mid; then
5576 ac_mid
=`expr 2 '*' $ac_mid + 1`
5578 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5581 echo "$as_me: failed program was:" >&5
5582 sed 's/^/| /' conftest.
$ac_ext >&5
5584 cat >conftest.
$ac_ext <<_ACEOF
5587 cat confdefs.h
>>conftest.
$ac_ext
5588 cat >>conftest.
$ac_ext <<_ACEOF
5589 /* end confdefs.h. */
5590 $ac_includes_default
5594 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
5601 rm -f conftest.
$ac_objext
5602 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5603 (eval $ac_compile) 2>conftest.er1
5605 grep -v '^ *+' conftest.er1
>conftest.err
5607 cat conftest.err
>&5
5608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5609 (exit $ac_status); } &&
5610 { ac_try
='test -z "$ac_c_werror_flag"
5611 || test ! -s conftest.err'
5612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5616 (exit $ac_status); }; } &&
5617 { ac_try
='test -s conftest.$ac_objext'
5618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5622 (exit $ac_status); }; }; then
5625 cat >conftest.
$ac_ext <<_ACEOF
5628 cat confdefs.h
>>conftest.
$ac_ext
5629 cat >>conftest.
$ac_ext <<_ACEOF
5630 /* end confdefs.h. */
5631 $ac_includes_default
5635 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
5642 rm -f conftest.
$ac_objext
5643 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5644 (eval $ac_compile) 2>conftest.er1
5646 grep -v '^ *+' conftest.er1
>conftest.err
5648 cat conftest.err
>&5
5649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5650 (exit $ac_status); } &&
5651 { ac_try
='test -z "$ac_c_werror_flag"
5652 || test ! -s conftest.err'
5653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5657 (exit $ac_status); }; } &&
5658 { ac_try
='test -s conftest.$ac_objext'
5659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5663 (exit $ac_status); }; }; then
5664 ac_lo
=$ac_mid; break
5666 echo "$as_me: failed program was:" >&5
5667 sed 's/^/| /' conftest.
$ac_ext >&5
5669 ac_hi
=`expr '(' $ac_mid ')' - 1`
5670 if test $ac_mid -le $ac_hi; then
5674 ac_mid
=`expr 2 '*' $ac_mid`
5676 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5679 echo "$as_me: failed program was:" >&5
5680 sed 's/^/| /' conftest.
$ac_ext >&5
5684 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5686 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5687 # Binary search between lo and hi bounds.
5688 while test "x$ac_lo" != "x$ac_hi"; do
5689 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5690 cat >conftest.
$ac_ext <<_ACEOF
5693 cat confdefs.h
>>conftest.
$ac_ext
5694 cat >>conftest.
$ac_ext <<_ACEOF
5695 /* end confdefs.h. */
5696 $ac_includes_default
5700 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5707 rm -f conftest.
$ac_objext
5708 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5709 (eval $ac_compile) 2>conftest.er1
5711 grep -v '^ *+' conftest.er1
>conftest.err
5713 cat conftest.err
>&5
5714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5715 (exit $ac_status); } &&
5716 { ac_try
='test -z "$ac_c_werror_flag"
5717 || test ! -s conftest.err'
5718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5722 (exit $ac_status); }; } &&
5723 { ac_try
='test -s conftest.$ac_objext'
5724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5728 (exit $ac_status); }; }; then
5731 echo "$as_me: failed program was:" >&5
5732 sed 's/^/| /' conftest.
$ac_ext >&5
5734 ac_lo
=`expr '(' $ac_mid ')' + 1`
5736 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5739 ?
*) ac_cv_sizeof_long
=$ac_lo;;
5740 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5741 See \`config.log' for more details." >&5
5742 echo "$as_me: error: cannot compute sizeof (long), 77
5743 See \`config.log' for more details." >&2;}
5744 { (exit 1); exit 1; }; } ;;
5747 if test "$cross_compiling" = yes; then
5748 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5749 See \`config.log' for more details." >&5
5750 echo "$as_me: error: cannot run test program while cross compiling
5751 See \`config.log' for more details." >&2;}
5752 { (exit 1); exit 1; }; }
5754 cat >conftest.
$ac_ext <<_ACEOF
5757 cat confdefs.h
>>conftest.
$ac_ext
5758 cat >>conftest.
$ac_ext <<_ACEOF
5759 /* end confdefs.h. */
5760 $ac_includes_default
5761 long longval () { return (long) (sizeof (long)); }
5762 unsigned long ulongval () { return (long) (sizeof (long)); }
5769 FILE *f = fopen ("conftest.val", "w");
5772 if (((long) (sizeof (long))) < 0)
5774 long i = longval ();
5775 if (i != ((long) (sizeof (long))))
5777 fprintf (f, "%ld\n", i);
5781 unsigned long i = ulongval ();
5782 if (i != ((long) (sizeof (long))))
5784 fprintf (f, "%lu\n", i);
5786 exit (ferror (f) || fclose (f) != 0);
5792 rm -f conftest
$ac_exeext
5793 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5794 (eval $ac_link) 2>&5
5796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5797 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5802 (exit $ac_status); }; }; then
5803 ac_cv_sizeof_long
=`cat conftest.val`
5805 echo "$as_me: program exited with status $ac_status" >&5
5806 echo "$as_me: failed program was:" >&5
5807 sed 's/^/| /' conftest.
$ac_ext >&5
5810 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5811 See \`config.log' for more details." >&5
5812 echo "$as_me: error: cannot compute sizeof (long), 77
5813 See \`config.log' for more details." >&2;}
5814 { (exit 1); exit 1; }; }
5816 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5824 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5825 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
5826 cat >>confdefs.h
<<_ACEOF
5827 #define SIZEOF_LONG $ac_cv_sizeof_long
5832 # Check LZO when compiling for the i386.
5833 if test "x$host_cpu" = xi386
; then
5834 # There are three possibilities. LZO version 2 installed with the name
5835 # liblzo2, with the name liblzo, and LZO version 1.
5836 echo "$as_me:$LINENO: checking for __lzo_init_v2 in -llzo2" >&5
5837 echo $ECHO_N "checking for __lzo_init_v2 in -llzo2... $ECHO_C" >&6
5838 if test "${ac_cv_lib_lzo2___lzo_init_v2+set}" = set; then
5839 echo $ECHO_N "(cached) $ECHO_C" >&6
5841 ac_check_lib_save_LIBS
=$LIBS
5843 cat >conftest.
$ac_ext <<_ACEOF
5846 cat confdefs.h
>>conftest.
$ac_ext
5847 cat >>conftest.
$ac_ext <<_ACEOF
5848 /* end confdefs.h. */
5850 /* Override any gcc2 internal prototype to avoid an error. */
5854 /* We use char because int might match the return type of a gcc2
5855 builtin and then its argument prototype would still apply. */
5856 char __lzo_init_v2 ();
5865 rm -f conftest.
$ac_objext conftest
$ac_exeext
5866 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5867 (eval $ac_link) 2>conftest.er1
5869 grep -v '^ *+' conftest.er1
>conftest.err
5871 cat conftest.err
>&5
5872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5873 (exit $ac_status); } &&
5874 { ac_try
='test -z "$ac_c_werror_flag"
5875 || test ! -s conftest.err'
5876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5880 (exit $ac_status); }; } &&
5881 { ac_try
='test -s conftest$ac_exeext'
5882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5886 (exit $ac_status); }; }; then
5887 ac_cv_lib_lzo2___lzo_init_v2
=yes
5889 echo "$as_me: failed program was:" >&5
5890 sed 's/^/| /' conftest.
$ac_ext >&5
5892 ac_cv_lib_lzo2___lzo_init_v2
=no
5894 rm -f conftest.err conftest.
$ac_objext \
5895 conftest
$ac_exeext conftest.
$ac_ext
5896 LIBS
=$ac_check_lib_save_LIBS
5898 echo "$as_me:$LINENO: result: $ac_cv_lib_lzo2___lzo_init_v2" >&5
5899 echo "${ECHO_T}$ac_cv_lib_lzo2___lzo_init_v2" >&6
5900 if test $ac_cv_lib_lzo2___lzo_init_v2 = yes; then
5903 echo "$as_me:$LINENO: checking for __lzo_init_v2 in -llzo" >&5
5904 echo $ECHO_N "checking for __lzo_init_v2 in -llzo... $ECHO_C" >&6
5905 if test "${ac_cv_lib_lzo___lzo_init_v2+set}" = set; then
5906 echo $ECHO_N "(cached) $ECHO_C" >&6
5908 ac_check_lib_save_LIBS
=$LIBS
5910 cat >conftest.
$ac_ext <<_ACEOF
5913 cat confdefs.h
>>conftest.
$ac_ext
5914 cat >>conftest.
$ac_ext <<_ACEOF
5915 /* end confdefs.h. */
5917 /* Override any gcc2 internal prototype to avoid an error. */
5921 /* We use char because int might match the return type of a gcc2
5922 builtin and then its argument prototype would still apply. */
5923 char __lzo_init_v2 ();
5932 rm -f conftest.
$ac_objext conftest
$ac_exeext
5933 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5934 (eval $ac_link) 2>conftest.er1
5936 grep -v '^ *+' conftest.er1
>conftest.err
5938 cat conftest.err
>&5
5939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5940 (exit $ac_status); } &&
5941 { ac_try
='test -z "$ac_c_werror_flag"
5942 || test ! -s conftest.err'
5943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5947 (exit $ac_status); }; } &&
5948 { ac_try
='test -s conftest$ac_exeext'
5949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5953 (exit $ac_status); }; }; then
5954 ac_cv_lib_lzo___lzo_init_v2
=yes
5956 echo "$as_me: failed program was:" >&5
5957 sed 's/^/| /' conftest.
$ac_ext >&5
5959 ac_cv_lib_lzo___lzo_init_v2
=no
5961 rm -f conftest.err conftest.
$ac_objext \
5962 conftest
$ac_exeext conftest.
$ac_ext
5963 LIBS
=$ac_check_lib_save_LIBS
5965 echo "$as_me:$LINENO: result: $ac_cv_lib_lzo___lzo_init_v2" >&5
5966 echo "${ECHO_T}$ac_cv_lib_lzo___lzo_init_v2" >&6
5967 if test $ac_cv_lib_lzo___lzo_init_v2 = yes; then
5970 echo "$as_me:$LINENO: checking for __lzo_init2 in -llzo" >&5
5971 echo $ECHO_N "checking for __lzo_init2 in -llzo... $ECHO_C" >&6
5972 if test "${ac_cv_lib_lzo___lzo_init2+set}" = set; then
5973 echo $ECHO_N "(cached) $ECHO_C" >&6
5975 ac_check_lib_save_LIBS
=$LIBS
5977 cat >conftest.
$ac_ext <<_ACEOF
5980 cat confdefs.h
>>conftest.
$ac_ext
5981 cat >>conftest.
$ac_ext <<_ACEOF
5982 /* end confdefs.h. */
5984 /* Override any gcc2 internal prototype to avoid an error. */
5988 /* We use char because int might match the return type of a gcc2
5989 builtin and then its argument prototype would still apply. */
5990 char __lzo_init2 ();
5999 rm -f conftest.
$ac_objext conftest
$ac_exeext
6000 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6001 (eval $ac_link) 2>conftest.er1
6003 grep -v '^ *+' conftest.er1
>conftest.err
6005 cat conftest.err
>&5
6006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6007 (exit $ac_status); } &&
6008 { ac_try
='test -z "$ac_c_werror_flag"
6009 || test ! -s conftest.err'
6010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6014 (exit $ac_status); }; } &&
6015 { ac_try
='test -s conftest$ac_exeext'
6016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6020 (exit $ac_status); }; }; then
6021 ac_cv_lib_lzo___lzo_init2
=yes
6023 echo "$as_me: failed program was:" >&5
6024 sed 's/^/| /' conftest.
$ac_ext >&5
6026 ac_cv_lib_lzo___lzo_init2
=no
6028 rm -f conftest.err conftest.
$ac_objext \
6029 conftest
$ac_exeext conftest.
$ac_ext
6030 LIBS
=$ac_check_lib_save_LIBS
6032 echo "$as_me:$LINENO: result: $ac_cv_lib_lzo___lzo_init2" >&5
6033 echo "${ECHO_T}$ac_cv_lib_lzo___lzo_init2" >&6
6034 if test $ac_cv_lib_lzo___lzo_init2 = yes; then
6037 { { echo "$as_me:$LINENO: error: LZO library version 1.02 or later is required" >&5
6038 echo "$as_me: error: LZO library version 1.02 or later is required" >&2;}
6039 { (exit 1); exit 1; }; }
6047 LIBS
="$LIBS $LIBLZO"
6048 echo "$as_me:$LINENO: checking for lzo1x_999_compress" >&5
6049 echo $ECHO_N "checking for lzo1x_999_compress... $ECHO_C" >&6
6050 if test "${ac_cv_func_lzo1x_999_compress+set}" = set; then
6051 echo $ECHO_N "(cached) $ECHO_C" >&6
6053 cat >conftest.
$ac_ext <<_ACEOF
6056 cat confdefs.h
>>conftest.
$ac_ext
6057 cat >>conftest.
$ac_ext <<_ACEOF
6058 /* end confdefs.h. */
6059 /* Define lzo1x_999_compress to an innocuous variant, in case <limits.h> declares lzo1x_999_compress.
6060 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6061 #define lzo1x_999_compress innocuous_lzo1x_999_compress
6063 /* System header to define __stub macros and hopefully few prototypes,
6064 which can conflict with char lzo1x_999_compress (); below.
6065 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6066 <limits.h> exists even on freestanding compilers. */
6069 # include <limits.h>
6071 # include <assert.h>
6074 #undef lzo1x_999_compress
6076 /* Override any gcc2 internal prototype to avoid an error. */
6081 /* We use char because int might match the return type of a gcc2
6082 builtin and then its argument prototype would still apply. */
6083 char lzo1x_999_compress ();
6084 /* The GNU C library defines this for functions which it implements
6085 to always fail with ENOSYS. Some functions are actually named
6086 something starting with __ and the normal name is an alias. */
6087 #if defined (__stub_lzo1x_999_compress) || defined (__stub___lzo1x_999_compress)
6090 char (*f) () = lzo1x_999_compress;
6099 return f != lzo1x_999_compress;
6104 rm -f conftest.
$ac_objext conftest
$ac_exeext
6105 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6106 (eval $ac_link) 2>conftest.er1
6108 grep -v '^ *+' conftest.er1
>conftest.err
6110 cat conftest.err
>&5
6111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6112 (exit $ac_status); } &&
6113 { ac_try
='test -z "$ac_c_werror_flag"
6114 || test ! -s conftest.err'
6115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6119 (exit $ac_status); }; } &&
6120 { ac_try
='test -s conftest$ac_exeext'
6121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6125 (exit $ac_status); }; }; then
6126 ac_cv_func_lzo1x_999_compress
=yes
6128 echo "$as_me: failed program was:" >&5
6129 sed 's/^/| /' conftest.
$ac_ext >&5
6131 ac_cv_func_lzo1x_999_compress
=no
6133 rm -f conftest.err conftest.
$ac_objext \
6134 conftest
$ac_exeext conftest.
$ac_ext
6136 echo "$as_me:$LINENO: result: $ac_cv_func_lzo1x_999_compress" >&5
6137 echo "${ECHO_T}$ac_cv_func_lzo1x_999_compress" >&6
6138 if test $ac_cv_func_lzo1x_999_compress = yes; then
6141 { { echo "$as_me:$LINENO: error: LZO1X-999 must be enabled" >&5
6142 echo "$as_me: error: LZO1X-999 must be enabled" >&2;}
6143 { (exit 1); exit 1; }; }
6147 # LZO version 2 uses lzo/lzo1x.h, while LZO version 1 uses lzo1x.h.
6150 for ac_header
in lzo
/lzo1x.h lzo1x.h
6152 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6153 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6154 echo "$as_me:$LINENO: checking for $ac_header" >&5
6155 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6156 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6157 echo $ECHO_N "(cached) $ECHO_C" >&6
6159 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6160 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6162 # Is the header compilable?
6163 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6164 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6165 cat >conftest.
$ac_ext <<_ACEOF
6168 cat confdefs.h
>>conftest.
$ac_ext
6169 cat >>conftest.
$ac_ext <<_ACEOF
6170 /* end confdefs.h. */
6171 $ac_includes_default
6172 #include <$ac_header>
6174 rm -f conftest.
$ac_objext
6175 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6176 (eval $ac_compile) 2>conftest.er1
6178 grep -v '^ *+' conftest.er1
>conftest.err
6180 cat conftest.err
>&5
6181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6182 (exit $ac_status); } &&
6183 { ac_try
='test -z "$ac_c_werror_flag"
6184 || test ! -s conftest.err'
6185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6189 (exit $ac_status); }; } &&
6190 { ac_try
='test -s conftest.$ac_objext'
6191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6195 (exit $ac_status); }; }; then
6196 ac_header_compiler
=yes
6198 echo "$as_me: failed program was:" >&5
6199 sed 's/^/| /' conftest.
$ac_ext >&5
6201 ac_header_compiler
=no
6203 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6204 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6205 echo "${ECHO_T}$ac_header_compiler" >&6
6207 # Is the header present?
6208 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6209 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6210 cat >conftest.
$ac_ext <<_ACEOF
6213 cat confdefs.h
>>conftest.
$ac_ext
6214 cat >>conftest.
$ac_ext <<_ACEOF
6215 /* end confdefs.h. */
6216 #include <$ac_header>
6218 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6219 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6221 grep -v '^ *+' conftest.er1
>conftest.err
6223 cat conftest.err
>&5
6224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6225 (exit $ac_status); } >/dev
/null
; then
6226 if test -s conftest.err
; then
6227 ac_cpp_err
=$ac_c_preproc_warn_flag
6228 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6235 if test -z "$ac_cpp_err"; then
6236 ac_header_preproc
=yes
6238 echo "$as_me: failed program was:" >&5
6239 sed 's/^/| /' conftest.
$ac_ext >&5
6241 ac_header_preproc
=no
6243 rm -f conftest.err conftest.
$ac_ext
6244 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6245 echo "${ECHO_T}$ac_header_preproc" >&6
6247 # So? What about this header?
6248 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6250 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6251 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6252 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6253 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6254 ac_header_preproc
=yes
6257 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6258 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6259 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6260 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6261 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6262 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6263 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6264 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6265 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6266 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6267 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6268 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6271 ## ------------------------------- ##
6272 ## Report this to bug-grub@gnu.org ##
6273 ## ------------------------------- ##
6276 sed "s/^/$as_me: WARNING: /" >&2
6279 echo "$as_me:$LINENO: checking for $ac_header" >&5
6280 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6281 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6282 echo $ECHO_N "(cached) $ECHO_C" >&6
6284 eval "$as_ac_Header=\$ac_header_preproc"
6286 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6287 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6290 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6291 cat >>confdefs.h
<<_ACEOF
6292 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6302 echo "$as_me:$LINENO: checking for wgetch in -lncurses" >&5
6303 echo $ECHO_N "checking for wgetch in -lncurses... $ECHO_C" >&6
6304 if test "${ac_cv_lib_ncurses_wgetch+set}" = set; then
6305 echo $ECHO_N "(cached) $ECHO_C" >&6
6307 ac_check_lib_save_LIBS
=$LIBS
6308 LIBS
="-lncurses $LIBS"
6309 cat >conftest.
$ac_ext <<_ACEOF
6312 cat confdefs.h
>>conftest.
$ac_ext
6313 cat >>conftest.
$ac_ext <<_ACEOF
6314 /* end confdefs.h. */
6316 /* Override any gcc2 internal prototype to avoid an error. */
6320 /* We use char because int might match the return type of a gcc2
6321 builtin and then its argument prototype would still apply. */
6331 rm -f conftest.
$ac_objext conftest
$ac_exeext
6332 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6333 (eval $ac_link) 2>conftest.er1
6335 grep -v '^ *+' conftest.er1
>conftest.err
6337 cat conftest.err
>&5
6338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6339 (exit $ac_status); } &&
6340 { ac_try
='test -z "$ac_c_werror_flag"
6341 || test ! -s conftest.err'
6342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6346 (exit $ac_status); }; } &&
6347 { ac_try
='test -s conftest$ac_exeext'
6348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6352 (exit $ac_status); }; }; then
6353 ac_cv_lib_ncurses_wgetch
=yes
6355 echo "$as_me: failed program was:" >&5
6356 sed 's/^/| /' conftest.
$ac_ext >&5
6358 ac_cv_lib_ncurses_wgetch
=no
6360 rm -f conftest.err conftest.
$ac_objext \
6361 conftest
$ac_exeext conftest.
$ac_ext
6362 LIBS
=$ac_check_lib_save_LIBS
6364 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_wgetch" >&5
6365 echo "${ECHO_T}$ac_cv_lib_ncurses_wgetch" >&6
6366 if test $ac_cv_lib_ncurses_wgetch = yes; then
6367 LIBCURSES
="-lncurses"
6369 echo "$as_me:$LINENO: checking for wgetch in -lcurses" >&5
6370 echo $ECHO_N "checking for wgetch in -lcurses... $ECHO_C" >&6
6371 if test "${ac_cv_lib_curses_wgetch+set}" = set; then
6372 echo $ECHO_N "(cached) $ECHO_C" >&6
6374 ac_check_lib_save_LIBS
=$LIBS
6375 LIBS
="-lcurses $LIBS"
6376 cat >conftest.
$ac_ext <<_ACEOF
6379 cat confdefs.h
>>conftest.
$ac_ext
6380 cat >>conftest.
$ac_ext <<_ACEOF
6381 /* end confdefs.h. */
6383 /* Override any gcc2 internal prototype to avoid an error. */
6387 /* We use char because int might match the return type of a gcc2
6388 builtin and then its argument prototype would still apply. */
6398 rm -f conftest.
$ac_objext conftest
$ac_exeext
6399 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6400 (eval $ac_link) 2>conftest.er1
6402 grep -v '^ *+' conftest.er1
>conftest.err
6404 cat conftest.err
>&5
6405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6406 (exit $ac_status); } &&
6407 { ac_try
='test -z "$ac_c_werror_flag"
6408 || test ! -s conftest.err'
6409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6413 (exit $ac_status); }; } &&
6414 { ac_try
='test -s conftest$ac_exeext'
6415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6419 (exit $ac_status); }; }; then
6420 ac_cv_lib_curses_wgetch
=yes
6422 echo "$as_me: failed program was:" >&5
6423 sed 's/^/| /' conftest.
$ac_ext >&5
6425 ac_cv_lib_curses_wgetch
=no
6427 rm -f conftest.err conftest.
$ac_objext \
6428 conftest
$ac_exeext conftest.
$ac_ext
6429 LIBS
=$ac_check_lib_save_LIBS
6431 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_wgetch" >&5
6432 echo "${ECHO_T}$ac_cv_lib_curses_wgetch" >&6
6433 if test $ac_cv_lib_curses_wgetch = yes; then
6434 LIBCURSES
="-lcurses"
6441 # Check for headers.
6445 for ac_header
in ncurses
/curses.h ncurses.h curses.h
6447 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6448 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6449 echo "$as_me:$LINENO: checking for $ac_header" >&5
6450 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6451 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6452 echo $ECHO_N "(cached) $ECHO_C" >&6
6454 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6455 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6457 # Is the header compilable?
6458 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6459 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6460 cat >conftest.
$ac_ext <<_ACEOF
6463 cat confdefs.h
>>conftest.
$ac_ext
6464 cat >>conftest.
$ac_ext <<_ACEOF
6465 /* end confdefs.h. */
6466 $ac_includes_default
6467 #include <$ac_header>
6469 rm -f conftest.
$ac_objext
6470 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6471 (eval $ac_compile) 2>conftest.er1
6473 grep -v '^ *+' conftest.er1
>conftest.err
6475 cat conftest.err
>&5
6476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6477 (exit $ac_status); } &&
6478 { ac_try
='test -z "$ac_c_werror_flag"
6479 || test ! -s conftest.err'
6480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6484 (exit $ac_status); }; } &&
6485 { ac_try
='test -s conftest.$ac_objext'
6486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6490 (exit $ac_status); }; }; then
6491 ac_header_compiler
=yes
6493 echo "$as_me: failed program was:" >&5
6494 sed 's/^/| /' conftest.
$ac_ext >&5
6496 ac_header_compiler
=no
6498 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6499 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6500 echo "${ECHO_T}$ac_header_compiler" >&6
6502 # Is the header present?
6503 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6504 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6505 cat >conftest.
$ac_ext <<_ACEOF
6508 cat confdefs.h
>>conftest.
$ac_ext
6509 cat >>conftest.
$ac_ext <<_ACEOF
6510 /* end confdefs.h. */
6511 #include <$ac_header>
6513 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6514 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6516 grep -v '^ *+' conftest.er1
>conftest.err
6518 cat conftest.err
>&5
6519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6520 (exit $ac_status); } >/dev
/null
; then
6521 if test -s conftest.err
; then
6522 ac_cpp_err
=$ac_c_preproc_warn_flag
6523 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6530 if test -z "$ac_cpp_err"; then
6531 ac_header_preproc
=yes
6533 echo "$as_me: failed program was:" >&5
6534 sed 's/^/| /' conftest.
$ac_ext >&5
6536 ac_header_preproc
=no
6538 rm -f conftest.err conftest.
$ac_ext
6539 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6540 echo "${ECHO_T}$ac_header_preproc" >&6
6542 # So? What about this header?
6543 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6545 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6546 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6547 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6548 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6549 ac_header_preproc
=yes
6552 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6553 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6554 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6555 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6556 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6557 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6558 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6559 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6560 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6561 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6562 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6563 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6566 ## ------------------------------- ##
6567 ## Report this to bug-grub@gnu.org ##
6568 ## ------------------------------- ##
6571 sed "s/^/$as_me: WARNING: /" >&2
6574 echo "$as_me:$LINENO: checking for $ac_header" >&5
6575 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6576 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6577 echo $ECHO_N "(cached) $ECHO_C" >&6
6579 eval "$as_ac_Header=\$ac_header_preproc"
6581 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6582 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6585 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6586 cat >>confdefs.h
<<_ACEOF
6587 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6596 CFLAGS
="$tmp_CFLAGS"
6597 CPPFLAGS
="$tmp_CPPFLAGS"
6600 ac_config_links
="$ac_config_links include/grub/cpu:include/grub/$host_cpu include/grub/machine:include/grub/$host_cpu/$host_vendor"
6602 ac_config_files
="$ac_config_files Makefile"
6604 ac_config_files
="$ac_config_files stamp-h"
6606 cat >confcache
<<\_ACEOF
6607 # This file is a shell script that caches the results of configure
6608 # tests run on this system so they can be shared between configure
6609 # scripts and configure runs, see configure's option --config-cache.
6610 # It is not useful on other systems. If it contains results you don't
6611 # want to keep, you may remove or edit it.
6613 # config.status only pays attention to the cache file if you give it
6614 # the --recheck option to rerun configure.
6616 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6617 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6622 # The following way of writing the cache mishandles newlines in values,
6623 # but we know of no workaround that is simple, portable, and efficient.
6624 # So, don't put newlines in cache variables' values.
6625 # Ultrix sh set writes to stderr and can't be redirected directly,
6626 # and sets the high bit in the cache file unless we assign to the vars.
6629 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6631 # `set' does not quote correctly, so add quotes (double-quote
6632 # substitution turns \\\\ into \\, and sed turns \\ into \).
6635 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6638 # `set' quotes correctly as required by POSIX, so do not add quotes.
6640 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6647 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6649 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6651 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
6652 if test -w $cache_file; then
6653 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
6654 cat confcache
>$cache_file
6656 echo "not updating unwritable cache $cache_file"
6661 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
6662 # Let make expand exec_prefix.
6663 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6665 # VPATH may cause trouble with some makes, so we remove $(srcdir),
6666 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6667 # trailing colons and then remove the whole line if VPATH becomes empty
6668 # (actually we leave an empty line to preserve line numbers).
6669 if test "x$srcdir" = x.
; then
6670 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
6671 s/:*\$(srcdir):*/:/;
6672 s/:*\${srcdir}:*/:/;
6674 s/^\([^=]*=[ ]*\):*/\1/;
6680 DEFS
=-DHAVE_CONFIG_H
6684 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
6685 # 1. Remove the extension, and $U if already installed.
6686 ac_i
=`echo "$ac_i" |
6687 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
6689 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
6690 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
6694 LTLIBOBJS
=$ac_ltlibobjs
6698 : ${CONFIG_STATUS=./config.status}
6699 ac_clean_files_save
=$ac_clean_files
6700 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
6701 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
6702 echo "$as_me: creating $CONFIG_STATUS" >&6;}
6703 cat >$CONFIG_STATUS <<_ACEOF
6705 # Generated by $as_me.
6706 # Run this file to recreate the current configuration.
6707 # Compiler output produced by configure, useful for debugging
6708 # configure, is in config.log if it exists.
6713 SHELL=\${CONFIG_SHELL-$SHELL}
6716 cat >>$CONFIG_STATUS <<\_ACEOF
6717 ## --------------------- ##
6718 ## M4sh Initialization. ##
6719 ## --------------------- ##
6721 # Be Bourne compatible
6722 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
6725 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
6726 # is contrary to our usage. Disable this feature.
6727 alias -g '${1+"$@"}'='"$@"'
6728 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
6731 DUALCASE
=1; export DUALCASE
# for MKS sh
6733 # Support unset when possible.
6734 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
6741 # Work around bugs in pre-3.0 UWIN ksh.
6742 $as_unset ENV MAIL MAILPATH
6749 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
6750 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
6751 LC_TELEPHONE LC_TIME
6753 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
6754 eval $as_var=C
; export $as_var
6760 # Required to use basename.
6761 if expr a
: '\(a\)' >/dev
/null
2>&1; then
6767 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
6768 as_basename
=basename
6774 # Name of the executable.
6775 as_me
=`$as_basename "$0" ||
6776 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6777 X"$0" : 'X\(//\)$' \| \
6778 X"$0" : 'X\(/\)$' \| \
6779 . : '\(.\)' 2>/dev/null ||
6781 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
6782 /^X\/\(\/\/\)$/{ s//\1/; q; }
6783 /^X\/\(\/\).*/{ s//\1/; q; }
6787 # PATH needs CR, and LINENO needs CR and PATH.
6788 # Avoid depending upon Character Ranges.
6789 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
6790 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6791 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
6792 as_cr_digits
='0123456789'
6793 as_cr_alnum
=$as_cr_Letters$as_cr_digits
6795 # The user is always right.
6796 if test "${PATH_SEPARATOR+set}" != set; then
6797 echo "#! /bin/sh" >conf$$.sh
6798 echo "exit 0" >>conf$$.sh
6800 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
6811 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
6812 test "x$as_lineno_1" != "x$as_lineno_2" &&
6813 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
6814 # Find who we are. Look in the path if we contain no path at all
6817 *[\\/]* ) as_myself
=$0 ;;
6818 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6822 test -z "$as_dir" && as_dir
=.
6823 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
6828 # We did not find ourselves, most probably we were run as `sh COMMAND'
6829 # in which case we are not to be found in the path.
6830 if test "x$as_myself" = x
; then
6833 if test ! -f "$as_myself"; then
6834 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
6835 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
6836 { (exit 1); exit 1; }; }
6838 case $CONFIG_SHELL in
6840 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6841 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
6844 test -z "$as_dir" && as_dir
=.
6845 for as_base
in sh bash ksh sh5
; do
6848 if ("$as_dir/$as_base" -c '
6851 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6852 test "x$as_lineno_1" != "x$as_lineno_2" &&
6853 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
6854 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
6855 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
6856 CONFIG_SHELL
=$as_dir/$as_base
6858 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
6866 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
6867 # uniformly replaced by the line number. The first 'sed' inserts a
6868 # line-number line before each line; the second 'sed' does the real
6869 # work. The second script uses 'N' to pair each line-number line
6870 # with the numbered line, and appends trailing '-' during
6871 # substitution so that $LINENO is not a special case at line end.
6872 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
6873 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
6874 sed '=' <$as_myself |
6879 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
6882 s,^['$as_cr_digits']*\n,,
6884 chmod +x
$as_me.lineno ||
6885 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
6886 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
6887 { (exit 1); exit 1; }; }
6889 # Don't try to exec as it changes $[0], causing all sort of problems
6890 # (the dirname of $[0] is not the place where we might find the
6891 # original and so on. Autoconf is especially sensible to this).
6893 # Exit status is that of the last command.
6898 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
6899 *c
*,-n*) ECHO_N
= ECHO_C
='
6901 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
6902 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
6905 if expr a
: '\(a\)' >/dev
/null
2>&1; then
6911 rm -f conf$$ conf$$.exe conf$$.
file
6913 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
6914 # We could just check for DJGPP; but this test a) works b) is more generic
6915 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
6916 if test -f conf$$.exe
; then
6917 # Don't use ln at all; we don't have any links
6922 elif ln conf$$.
file conf$$
2>/dev
/null
; then
6927 rm -f conf$$ conf$$.exe conf$$.
file
6929 if mkdir
-p .
2>/dev
/null
; then
6932 test -d .
/-p && rmdir .
/-p
6936 as_executable_p
="test -f"
6938 # Sed expression to map a string onto a valid CPP name.
6939 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6941 # Sed expression to map a string onto a valid variable name.
6942 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6946 # We need space, tab and new line, in precisely that order.
6956 # Open the log real soon, to keep \$[0] and so on meaningful, and to
6957 # report actual input values of CONFIG_FILES etc. instead of their
6958 # values after options handling. Logging --version etc. is OK.
6962 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6963 ## Running $as_me. ##
6968 This file was extended by GRUB $as_me 1.92, which was
6969 generated by GNU Autoconf 2.59. Invocation command line was
6971 CONFIG_FILES = $CONFIG_FILES
6972 CONFIG_HEADERS = $CONFIG_HEADERS
6973 CONFIG_LINKS = $CONFIG_LINKS
6974 CONFIG_COMMANDS = $CONFIG_COMMANDS
6978 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
6982 # Files that config.status was made for.
6983 if test -n "$ac_config_files"; then
6984 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
6987 if test -n "$ac_config_headers"; then
6988 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
6991 if test -n "$ac_config_links"; then
6992 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
6995 if test -n "$ac_config_commands"; then
6996 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
6999 cat >>$CONFIG_STATUS <<\_ACEOF
7002 \`$as_me' instantiates files from templates according to the
7003 current configuration.
7005 Usage: $0 [OPTIONS] [FILE]...
7007 -h, --help print this help, then exit
7008 -V, --version print version number, then exit
7009 -q, --quiet do not print progress messages
7010 -d, --debug don't remove temporary files
7011 --recheck update $as_me by reconfiguring in the same conditions
7012 --file=FILE[:TEMPLATE]
7013 instantiate the configuration file FILE
7014 --header=FILE[:TEMPLATE]
7015 instantiate the configuration header FILE
7017 Configuration files:
7020 Configuration headers:
7023 Configuration links:
7026 Report bugs to <bug-autoconf@gnu.org>."
7029 cat >>$CONFIG_STATUS <<_ACEOF
7031 GRUB config.status 1.92
7032 configured by $0, generated by GNU Autoconf 2.59,
7033 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
7035 Copyright (C) 2003 Free Software Foundation, Inc.
7036 This config.status script is free software; the Free Software Foundation
7037 gives unlimited permission to copy, distribute and modify it."
7042 cat >>$CONFIG_STATUS <<\_ACEOF
7043 # If no file are specified by the user, then we need to provide default
7044 # value. By we need to know if files were specified by the user.
7050 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
7051 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
7059 *) # This is not an option, so the user has probably given explicit
7062 ac_need_defaults
=false
;;
7066 # Handling of the options.
7068 cat >>$CONFIG_STATUS <<\_ACEOF
7069 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
7071 --version |
--vers* |
-V )
7072 echo "$ac_cs_version"; exit 0 ;;
7074 # Conflict between --help and --header
7075 { { echo "$as_me:$LINENO: error: ambiguous option: $1
7076 Try \`$0 --help' for more information." >&5
7077 echo "$as_me: error: ambiguous option: $1
7078 Try \`$0 --help' for more information." >&2;}
7079 { (exit 1); exit 1; }; };;
7080 --help |
--hel |
-h )
7081 echo "$ac_cs_usage"; exit 0 ;;
7082 --debug |
--d* |
-d )
7084 --file |
--fil |
--fi |
--f )
7086 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
7087 ac_need_defaults
=false
;;
7088 --header |
--heade |
--head |
--hea )
7090 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
7091 ac_need_defaults
=false
;;
7092 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
7093 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
7097 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
7098 Try \`$0 --help' for more information." >&5
7099 echo "$as_me: error: unrecognized option: $1
7100 Try \`$0 --help' for more information." >&2;}
7101 { (exit 1); exit 1; }; } ;;
7103 *) ac_config_targets
="$ac_config_targets $1" ;;
7109 ac_configure_extra_args
=
7111 if $ac_cs_silent; then
7113 ac_configure_extra_args
="$ac_configure_extra_args --silent"
7117 cat >>$CONFIG_STATUS <<_ACEOF
7118 if \$ac_cs_recheck; then
7119 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
7120 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7129 cat >>$CONFIG_STATUS <<\_ACEOF
7130 for ac_config_target
in $ac_config_targets
7132 case "$ac_config_target" in
7133 # Handling of arguments.
7134 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
7135 "stamp-h" ) CONFIG_FILES
="$CONFIG_FILES stamp-h" ;;
7136 "include/grub/cpu" ) CONFIG_LINKS
="$CONFIG_LINKS include/grub/cpu:include/grub/$host_cpu" ;;
7137 "include/grub/machine" ) CONFIG_LINKS
="$CONFIG_LINKS include/grub/machine:include/grub/$host_cpu/$host_vendor" ;;
7138 "config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
7139 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
7140 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
7141 { (exit 1); exit 1; }; };;
7145 # If the user did not use the arguments to specify the items to instantiate,
7146 # then the envvar interface is used. Set only those that are not.
7147 # We use the long form for the default assignment because of an extremely
7148 # bizarre bug on SunOS 4.1.3.
7149 if $ac_need_defaults; then
7150 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
7151 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
7152 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS
=$config_links
7155 # Have a temporary directory for convenience. Make it in the build tree
7156 # simply because there is no reason to put it here, and in addition,
7157 # creating and moving files from /tmp can sometimes cause problems.
7158 # Create a temporary directory, and hook for its removal unless debugging.
7161 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
7162 trap '{ (exit 1); exit 1; }' 1 2 13 15
7165 # Create a (secure) tmp directory for tmp files.
7168 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
7169 test -n "$tmp" && test -d "$tmp"
7172 tmp
=.
/confstat$$
-$RANDOM
7173 (umask 077 && mkdir
$tmp)
7176 echo "$me: cannot create a temporary directory in ." >&2
7177 { (exit 1); exit 1; }
7182 cat >>$CONFIG_STATUS <<_ACEOF
7185 # CONFIG_FILES section.
7188 # No need to generate the scripts if there are no CONFIG_FILES.
7189 # This happens for instance when ./config.status config.h
7190 if test -n "\$CONFIG_FILES"; then
7191 # Protect against being on the right side of a sed subst in config.status.
7192 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
7193 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
7194 s,@SHELL@,$SHELL,;t t
7195 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
7196 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
7197 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
7198 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
7199 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
7200 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
7201 s,@exec_prefix@,$exec_prefix,;t t
7202 s,@prefix@,$prefix,;t t
7203 s,@program_transform_name@,$program_transform_name,;t t
7204 s,@bindir@,$bindir,;t t
7205 s,@sbindir@,$sbindir,;t t
7206 s,@libexecdir@,$libexecdir,;t t
7207 s,@datadir@,$datadir,;t t
7208 s,@sysconfdir@,$sysconfdir,;t t
7209 s,@sharedstatedir@,$sharedstatedir,;t t
7210 s,@localstatedir@,$localstatedir,;t t
7211 s,@libdir@,$libdir,;t t
7212 s,@includedir@,$includedir,;t t
7213 s,@oldincludedir@,$oldincludedir,;t t
7214 s,@infodir@,$infodir,;t t
7215 s,@mandir@,$mandir,;t t
7216 s,@build_alias@,$build_alias,;t t
7217 s,@host_alias@,$host_alias,;t t
7218 s,@target_alias@,$target_alias,;t t
7220 s,@ECHO_C@,$ECHO_C,;t t
7221 s,@ECHO_N@,$ECHO_N,;t t
7222 s,@ECHO_T@,$ECHO_T,;t t
7224 s,@build@,$build,;t t
7225 s,@build_cpu@,$build_cpu,;t t
7226 s,@build_vendor@,$build_vendor,;t t
7227 s,@build_os@,$build_os,;t t
7229 s,@host_cpu@,$host_cpu,;t t
7230 s,@host_vendor@,$host_vendor,;t t
7231 s,@host_os@,$host_os,;t t
7233 s,@CFLAGS@,$CFLAGS,;t t
7234 s,@LDFLAGS@,$LDFLAGS,;t t
7235 s,@CPPFLAGS@,$CPPFLAGS,;t t
7236 s,@ac_ct_CC@,$ac_ct_CC,;t t
7237 s,@EXEEXT@,$EXEEXT,;t t
7238 s,@OBJEXT@,$OBJEXT,;t t
7240 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
7241 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
7242 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
7243 s,@SET_MAKE@,$SET_MAKE,;t t
7244 s,@OBJCOPY@,$OBJCOPY,;t t
7245 s,@ac_ct_OBJCOPY@,$ac_ct_OBJCOPY,;t t
7246 s,@STRIP@,$STRIP,;t t
7247 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
7249 s,@ac_ct_NM@,$ac_ct_NM,;t t
7251 s,@ac_ct_LD@,$ac_ct_LD,;t t
7253 s,@BUILD_CC@,$BUILD_CC,;t t
7255 s,@EGREP@,$EGREP,;t t
7256 s,@LIBLZO@,$LIBLZO,;t t
7257 s,@LIBCURSES@,$LIBCURSES,;t t
7258 s,@LIBOBJS@,$LIBOBJS,;t t
7259 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
7264 cat >>$CONFIG_STATUS <<\_ACEOF
7265 # Split the substitutions into bite-sized pieces for seds with
7266 # small command number limits, like on Digital OSF/1 and HP-UX.
7268 ac_sed_frag
=1 # Number of current file.
7269 ac_beg
=1 # First line for current file.
7270 ac_end
=$ac_max_sed_lines # Line after last line for current file.
7273 while $ac_more_lines; do
7274 if test $ac_beg -gt 1; then
7275 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
7277 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
7279 if test ! -s $tmp/subs.frag
; then
7282 # The purpose of the label and of the branching condition is to
7283 # speed up the sed processing (if there are no `@' at all, there
7284 # is no need to browse any of the substitutions).
7285 # These are the two extra sed commands mentioned above.
7287 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
7288 if test -z "$ac_sed_cmds"; then
7289 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
7291 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
7293 ac_sed_frag
=`expr $ac_sed_frag + 1`
7295 ac_end
=`expr $ac_end + $ac_max_sed_lines`
7298 if test -z "$ac_sed_cmds"; then
7301 fi # test -n "$CONFIG_FILES"
7304 cat >>$CONFIG_STATUS <<\_ACEOF
7305 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
7306 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7308 - |
*:- |
*:-:* ) # input from stdin
7310 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
7311 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
7312 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
7313 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
7314 * ) ac_file_in
=$ac_file.
in ;;
7317 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
7318 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
7319 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7320 X"$ac_file" : 'X\(//\)[^/]' \| \
7321 X"$ac_file" : 'X\(//\)$' \| \
7322 X"$ac_file" : 'X\(/\)' \| \
7323 . : '\(.\)' 2>/dev/null ||
7325 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7326 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7327 /^X\(\/\/\)$/{ s//\1/; q; }
7328 /^X\(\/\).*/{ s//\1/; q; }
7330 { if $as_mkdir_p; then
7335 while test ! -d "$as_dir"; do
7336 as_dirs
="$as_dir $as_dirs"
7337 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
7338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7339 X"$as_dir" : 'X\(//\)[^/]' \| \
7340 X"$as_dir" : 'X\(//\)$' \| \
7341 X"$as_dir" : 'X\(/\)' \| \
7342 . : '\(.\)' 2>/dev/null ||
7344 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7345 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7346 /^X\(\/\/\)$/{ s//\1/; q; }
7347 /^X\(\/\).*/{ s//\1/; q; }
7350 test ! -n "$as_dirs" || mkdir
$as_dirs
7351 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7352 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7353 { (exit 1); exit 1; }; }; }
7357 if test "$ac_dir" != .
; then
7358 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7359 # A "../" for each directory in $ac_dir_suffix.
7360 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7362 ac_dir_suffix
= ac_top_builddir
=
7366 .
) # No --srcdir option. We are building in place.
7368 if test -z "$ac_top_builddir"; then
7371 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
7373 [\\/]* | ?
:[\\/]* ) # Absolute path.
7374 ac_srcdir
=$srcdir$ac_dir_suffix;
7375 ac_top_srcdir
=$srcdir ;;
7377 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
7378 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
7381 # Do not use `cd foo && pwd` to compute absolute paths, because
7382 # the directories may not exist.
7384 .
) ac_abs_builddir
="$ac_dir";;
7387 .
) ac_abs_builddir
=`pwd`;;
7388 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
7389 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
7392 case $ac_abs_builddir in
7393 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
7395 case ${ac_top_builddir}.
in
7396 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
7397 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
7398 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
7401 case $ac_abs_builddir in
7402 .
) ac_abs_srcdir
=$ac_srcdir;;
7405 .
) ac_abs_srcdir
=$ac_abs_builddir;;
7406 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
7407 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
7410 case $ac_abs_builddir in
7411 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
7413 case $ac_top_srcdir in
7414 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
7415 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
7416 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
7422 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
7423 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
7426 if test x
"$ac_file" != x-
; then
7427 { echo "$as_me:$LINENO: creating $ac_file" >&5
7428 echo "$as_me: creating $ac_file" >&6;}
7431 # Let's still pretend it is `configure' which instantiates (i.e., don't
7432 # use $as_me), people would be surprised to read:
7433 # /* config.h. Generated by config.status. */
7434 if test x
"$ac_file" = x-
; then
7437 configure_input
="$ac_file. "
7439 configure_input
=$configure_input"Generated from `echo $ac_file_in |
7440 sed 's,.*/,,'` by configure."
7442 # First look for the input files in the build tree, otherwise in the
7444 ac_file_inputs
=`IFS=:
7445 for f in $ac_file_in; do
7447 -) echo $tmp/stdin ;;
7449 # Absolute (can't be DOS-style, as IFS=:)
7450 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7451 echo "$as_me: error: cannot find input file: $f" >&2;}
7452 { (exit 1); exit 1; }; }
7455 if test -f "$f"; then
7458 elif test -f "$srcdir/$f"; then
7463 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7464 echo "$as_me: error: cannot find input file: $f" >&2;}
7465 { (exit 1); exit 1; }; }
7468 done` ||
{ (exit 1); exit 1; }
7470 cat >>$CONFIG_STATUS <<_ACEOF
7474 cat >>$CONFIG_STATUS <<\_ACEOF
7476 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
7477 s
,@configure_input@
,$configure_input,;t t
7478 s
,@srcdir@
,$ac_srcdir,;t t
7479 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
7480 s
,@top_srcdir@
,$ac_top_srcdir,;t t
7481 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
7482 s
,@builddir@
,$ac_builddir,;t t
7483 s
,@abs_builddir@
,$ac_abs_builddir,;t t
7484 s
,@top_builddir@
,$ac_top_builddir,;t t
7485 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
7486 s
,@INSTALL@
,$ac_INSTALL,;t t
7487 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
7489 if test x"$ac_file" != x-; then
7490 mv $tmp/out $ac_file
7496 # Run the commands associated with the file.
7498 stamp-h ) echo timestamp > stamp-h ;;
7502 cat >>$CONFIG_STATUS <<\_ACEOF
7505 # CONFIG_HEADER section.
7508 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
7509 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7511 # ac_d sets the value in "#define NAME VALUE" lines.
7512 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7513 ac_dB
='[ ].*$,\1#\2'
7516 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7517 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7518 ac_uB
='$,\1#\2define\3'
7522 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
7523 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7525 - |
*:- |
*:-:* ) # input from stdin
7527 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
7528 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
7529 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
7530 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
7531 * ) ac_file_in
=$ac_file.
in ;;
7534 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
7535 echo "$as_me: creating $ac_file" >&6;}
7537 # First look for the input files in the build tree, otherwise in the
7539 ac_file_inputs
=`IFS=:
7540 for f in $ac_file_in; do
7542 -) echo $tmp/stdin ;;
7544 # Absolute (can't be DOS-style, as IFS=:)
7545 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7546 echo "$as_me: error: cannot find input file: $f" >&2;}
7547 { (exit 1); exit 1; }; }
7548 # Do quote $f, to prevent DOS paths from being IFS'd.
7551 if test -f "$f"; then
7554 elif test -f "$srcdir/$f"; then
7559 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7560 echo "$as_me: error: cannot find input file: $f" >&2;}
7561 { (exit 1); exit 1; }; }
7564 done` ||
{ (exit 1); exit 1; }
7565 # Remove the trailing spaces.
7566 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
7570 # Transform confdefs.h into two sed scripts, `conftest.defines' and
7571 # `conftest.undefs', that substitutes the proper values into
7572 # config.h.in to produce config.h. The first handles `#define'
7573 # templates, and the second `#undef' templates.
7574 # And first: Protect against being on the right side of a sed subst in
7575 # config.status. Protect against being in an unquoted here document
7577 rm -f conftest.defines conftest.undefs
7578 # Using a here document instead of a string reduces the quoting nightmare.
7579 # Putting comments in sed scripts is not portable.
7581 # `end' is used to avoid that the second main sed command (meant for
7582 # 0-ary CPP macros) applies to n-ary macro definitions.
7583 # See the Autoconf documentation for `clear'.
7584 cat >confdef2sed.
sed <<\_ACEOF
7589 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
7591 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
7594 # If some macros were called several times there might be several times
7595 # the same #defines, which is useless. Nevertheless, we may not want to
7596 # sort them, since we want the *last* AC-DEFINE to be honored.
7597 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
7598 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
7599 rm -f confdef2sed.sed
7601 # This sed command replaces #undef with comments. This is necessary, for
7602 # example, in the case of _POSIX_SOURCE, which is predefined and required
7603 # on some systems where configure will not decide to define it.
7604 cat >>conftest.undefs <<\_ACEOF
7605 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
7608 # Break up conftest.defines because some shells have a limit on the size
7609 # of here documents, and old seds have small limits too (100 cmds).
7610 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
7611 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
7612 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
7613 echo ' :' >>$CONFIG_STATUS
7615 while grep . conftest.defines >/dev/null
7617 # Write a limited-size here document to $tmp/defines.sed.
7618 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
7619 # Speed up: don't consider the non `#define' lines.
7620 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
7621 # Work around the forget-to-reset-the-flag bug.
7622 echo 't clr' >>$CONFIG_STATUS
7623 echo ': clr' >>$CONFIG_STATUS
7624 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
7626 sed -f $tmp/defines.sed $tmp/in >$tmp/out
7630 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
7631 rm -f conftest.defines
7632 mv conftest.
tail conftest.defines
7634 rm -f conftest.defines
7635 echo ' fi # grep' >>$CONFIG_STATUS
7636 echo >>$CONFIG_STATUS
7638 # Break up conftest.undefs because some shells have a limit on the size
7639 # of here documents, and old seds have small limits too (100 cmds).
7640 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
7642 while grep . conftest.undefs
>/dev
/null
7644 # Write a limited-size here document to $tmp/undefs.sed.
7645 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
7646 # Speed up: don't consider the non
`#undef'
7647 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
7648 # Work around the forget-to-reset-the-flag bug.
7649 echo 't clr' >>$CONFIG_STATUS
7650 echo ': clr' >>$CONFIG_STATUS
7651 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
7653 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
7657 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
7658 rm -f conftest.undefs
7659 mv conftest.tail conftest.undefs
7661 rm -f conftest.undefs
7663 cat >>$CONFIG_STATUS <<\_ACEOF
7664 # Let's still pretend it is `configure
' which instantiates (i.e., don't
7665 # use $as_me), people would be surprised to read:
7666 # /* config.h. Generated by config.status. */
7667 if test x
"$ac_file" = x-
; then
7668 echo "/* Generated by configure. */" >$tmp/config.h
7670 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
7672 cat $tmp/in >>$tmp/config.h
7674 if test x
"$ac_file" != x-
; then
7675 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
7676 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
7677 echo "$as_me: $ac_file is unchanged" >&6;}
7679 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
7680 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7681 X"$ac_file" : 'X\(//\)[^/]' \| \
7682 X"$ac_file" : 'X\(//\)$' \| \
7683 X"$ac_file" : 'X\(/\)' \| \
7684 . : '\(.\)' 2>/dev/null ||
7686 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7687 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7688 /^X\(\/\/\)$/{ s//\1/; q; }
7689 /^X\(\/\).*/{ s//\1/; q; }
7691 { if $as_mkdir_p; then
7696 while test ! -d "$as_dir"; do
7697 as_dirs
="$as_dir $as_dirs"
7698 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
7699 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7700 X"$as_dir" : 'X\(//\)[^/]' \| \
7701 X"$as_dir" : 'X\(//\)$' \| \
7702 X"$as_dir" : 'X\(/\)' \| \
7703 . : '\(.\)' 2>/dev/null ||
7705 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7706 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7707 /^X\(\/\/\)$/{ s//\1/; q; }
7708 /^X\(\/\).*/{ s//\1/; q; }
7711 test ! -n "$as_dirs" || mkdir
$as_dirs
7712 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7713 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7714 { (exit 1); exit 1; }; }; }
7717 mv $tmp/config.h
$ac_file
7725 cat >>$CONFIG_STATUS <<\_ACEOF
7728 # CONFIG_LINKS section.
7731 for ac_file
in : $CONFIG_LINKS; do test "x$ac_file" = x
: && continue
7732 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
7733 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
7735 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
7736 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
7738 if test ! -r $srcdir/$ac_source; then
7739 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
7740 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
7741 { (exit 1); exit 1; }; }
7745 # Make relative symlinks.
7746 ac_dest_dir
=`(dirname "$ac_dest") 2>/dev/null ||
7747 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7748 X"$ac_dest" : 'X\(//\)[^/]' \| \
7749 X"$ac_dest" : 'X\(//\)$' \| \
7750 X"$ac_dest" : 'X\(/\)' \| \
7751 . : '\(.\)' 2>/dev/null ||
7753 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7754 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7755 /^X\(\/\/\)$/{ s//\1/; q; }
7756 /^X\(\/\).*/{ s//\1/; q; }
7758 { if $as_mkdir_p; then
7759 mkdir
-p "$ac_dest_dir"
7761 as_dir
="$ac_dest_dir"
7763 while test ! -d "$as_dir"; do
7764 as_dirs
="$as_dir $as_dirs"
7765 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
7766 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7767 X"$as_dir" : 'X\(//\)[^/]' \| \
7768 X"$as_dir" : 'X\(//\)$' \| \
7769 X"$as_dir" : 'X\(/\)' \| \
7770 . : '\(.\)' 2>/dev/null ||
7772 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7773 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7774 /^X\(\/\/\)$/{ s//\1/; q; }
7775 /^X\(\/\).*/{ s//\1/; q; }
7778 test ! -n "$as_dirs" || mkdir
$as_dirs
7779 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
7780 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
7781 { (exit 1); exit 1; }; }; }
7785 if test "$ac_dest_dir" != .
; then
7786 ac_dir_suffix
=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
7787 # A "../" for each directory in $ac_dir_suffix.
7788 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7790 ac_dir_suffix
= ac_top_builddir
=
7794 .
) # No --srcdir option. We are building in place.
7796 if test -z "$ac_top_builddir"; then
7799 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
7801 [\\/]* | ?
:[\\/]* ) # Absolute path.
7802 ac_srcdir
=$srcdir$ac_dir_suffix;
7803 ac_top_srcdir
=$srcdir ;;
7805 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
7806 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
7809 # Do not use `cd foo && pwd` to compute absolute paths, because
7810 # the directories may not exist.
7812 .
) ac_abs_builddir
="$ac_dest_dir";;
7814 case "$ac_dest_dir" in
7815 .
) ac_abs_builddir
=`pwd`;;
7816 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dest_dir";;
7817 *) ac_abs_builddir
=`pwd`/"$ac_dest_dir";;
7820 case $ac_abs_builddir in
7821 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
7823 case ${ac_top_builddir}.
in
7824 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
7825 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
7826 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
7829 case $ac_abs_builddir in
7830 .
) ac_abs_srcdir
=$ac_srcdir;;
7833 .
) ac_abs_srcdir
=$ac_abs_builddir;;
7834 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
7835 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
7838 case $ac_abs_builddir in
7839 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
7841 case $ac_top_srcdir in
7842 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
7843 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
7844 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
7850 [\\/$
]* | ?
:[\\/]* ) ac_rel_source
=$srcdir/$ac_source ;;
7851 *) ac_rel_source
=$ac_top_builddir$srcdir/$ac_source ;;
7854 # Try a symlink, then a hard link, then a copy.
7855 ln -s $ac_rel_source $ac_dest 2>/dev
/null ||
7856 ln $srcdir/$ac_source $ac_dest 2>/dev
/null ||
7857 cp -p $srcdir/$ac_source $ac_dest ||
7858 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
7859 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
7860 { (exit 1); exit 1; }; }
7864 cat >>$CONFIG_STATUS <<\_ACEOF
7866 { (exit 0); exit 0; }
7868 chmod +x
$CONFIG_STATUS
7869 ac_clean_files
=$ac_clean_files_save
7872 # configure is writing to config.log, and then calls config.status.
7873 # config.status does its own redirection, appending to config.log.
7874 # Unfortunately, on DOS this fails, as config.log is still kept open
7875 # by configure, so config.status won't be able to write to it; its
7876 # output is simply discarded. So we exec the FD to /dev/null,
7877 # effectively closing config.log, so it can be properly (re)opened and
7878 # appended to by config.status. When coming back to configure, we
7879 # need to make the FD available again.
7880 if test "$no_create" != yes; then
7882 ac_config_status_args
=
7883 test "$silent" = yes &&
7884 ac_config_status_args
="$ac_config_status_args --quiet"
7886 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
7888 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7889 # would make configure fail if this is the last instruction.
7890 $ac_cs_success ||
{ (exit 1); exit 1; }