2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for GRUB 1.96.
5 # Report bugs to <bug-grub@gnu.org>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
15 # Be more Bourne compatible
16 DUALCASE
=1; export DUALCASE
# for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in
26 *posix
*) set -o posix
;;
35 # Avoid depending upon Character Ranges.
36 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
37 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
39 as_cr_digits
='0123456789'
40 as_cr_alnum
=$as_cr_Letters$as_cr_digits
42 # The user is always right.
43 if test "${PATH_SEPARATOR+set}" != set; then
44 echo "#! /bin/sh" >conf$$.sh
45 echo "exit 0" >>conf$$.sh
47 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
55 # Support unset when possible.
56 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
64 # We need space, tab and new line, in precisely that order. Quoting is
65 # there to prevent editors from complaining about space-tab.
66 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
67 # splitting by setting IFS to empty value.)
72 # Find who we are. Look in the path if we contain no directory separator.
74 *[\\/]* ) as_myself
=$0 ;;
75 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
79 test -z "$as_dir" && as_dir
=.
80 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
86 # We did not find ourselves, most probably we were run as `sh COMMAND'
87 # in which case we are not to be found in the path.
88 if test "x$as_myself" = x
; then
91 if test ! -f "$as_myself"; then
92 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
96 # Work around bugs in pre-3.0 UWIN ksh.
97 for as_var
in ENV MAIL MAILPATH
98 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
106 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
110 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111 eval $as_var=C
; export $as_var
113 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
117 # Required to use basename.
118 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
119 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
125 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
132 # Name of the executable.
133 as_me
=`$as_basename -- "$0" ||
134 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135 X"$0" : 'X\(//\)$' \| \
136 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
138 sed '/^.*\/\([^/][^/]*\)\/*$/{
156 if test "x$CONFIG_SHELL" = x
; then
157 if (eval ":") 2>/dev
/null
; then
163 if test $as_have_required = yes && (eval ":
173 as_func_ret_success () {
176 as_func_ret_failure () {
181 if as_func_success; then
185 echo as_func_success failed.
188 if as_func_failure; then
190 echo as_func_failure succeeded.
193 if as_func_ret_success; then
197 echo as_func_ret_success failed.
200 if as_func_ret_failure; then
202 echo as_func_ret_failure succeeded.
205 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
209 echo positional parameters were not saved.
212 test \$exitcode = 0) || { (exit 1); exit 1; }
217 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219 ") 2> /dev
/null
; then
223 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
224 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
227 test -z "$as_dir" && as_dir
=.
230 for as_base
in sh bash ksh sh5
; do
231 as_candidate_shells
="$as_candidate_shells $as_dir/$as_base"
238 for as_shell
in $as_candidate_shells $SHELL; do
239 # Try only shells that exist, to save several forks.
240 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
241 { ("$as_shell") 2> /dev
/null
<<\_ASEOF
242 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
245 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246 # is contrary to our usage. Disable this feature.
247 alias -g '${1+"$@"}'='"$@"'
250 case `(set -o) 2>/dev/null` in
251 *posix
*) set -o posix
;;
260 CONFIG_SHELL
=$as_shell
262 if { "$as_shell" 2> /dev
/null
<<\_ASEOF
263 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
266 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267 # is contrary to our usage. Disable this feature.
268 alias -g '${1+"$@"}'='"$@"'
271 case `(set -o) 2>/dev/null` in
272 *posix
*) set -o posix
;;
288 as_func_ret_success
() {
291 as_func_ret_failure
() {
296 if as_func_success
; then
300 echo as_func_success failed.
303 if as_func_failure
; then
305 echo as_func_failure succeeded.
308 if as_func_ret_success
; then
312 echo as_func_ret_success failed.
315 if as_func_ret_failure
; then
317 echo as_func_ret_failure succeeded.
320 if ( set x
; as_func_ret_success y
&& test x
= "$1" ); then
324 echo positional parameters were not saved.
327 test $exitcode = 0) ||
{ (exit 1); exit 1; }
332 test "x$as_lineno_1" != "x$as_lineno_2" &&
333 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") ||
{ (exit 1); exit 1; }
344 if test "x$CONFIG_SHELL" != x
; then
345 for as_var
in BASH_ENV ENV
346 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
349 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
353 if test $as_have_required = no
; then
354 echo This
script requires a shell
more modern than all the
355 echo shells that I found on your system. Please
install a
356 echo modern shell
, or manually run the
script under such a
357 echo shell
if you
do have one.
358 { (exit 1); exit 1; }
368 (eval "as_func_return () {
377 as_func_ret_success () {
380 as_func_ret_failure () {
385 if as_func_success; then
389 echo as_func_success failed.
392 if as_func_failure; then
394 echo as_func_failure succeeded.
397 if as_func_ret_success; then
401 echo as_func_ret_success failed.
404 if as_func_ret_failure; then
406 echo as_func_ret_failure succeeded.
409 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
413 echo positional parameters were not saved.
416 test \$exitcode = 0") ||
{
417 echo No shell found that supports shell functions.
418 echo Please tell autoconf@gnu.org about your system
,
419 echo including any error possibly output before this
427 test "x$as_lineno_1" != "x$as_lineno_2" &&
428 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
430 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431 # uniformly replaced by the line number. The first 'sed' inserts a
432 # line-number line after each line using $LINENO; the second 'sed'
433 # does the real work. The second script uses 'N' to pair each
434 # line-number line with the line containing $LINENO, and appends
435 # trailing '-' during substitution so that $LINENO is not a special
437 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
438 # scripts with optimization help from Paolo Bonzini. Blame Lee
439 # E. McMahon (1931-1989) for sed's syntax. :-)
451 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
455 chmod +x
"$as_me.lineno" ||
456 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457 { (exit 1); exit 1; }; }
459 # Don't try to exec as it changes $[0], causing all sort of problems
460 # (the dirname of $[0] is not the place where we might find the
461 # original and so on. Autoconf is especially sensitive to this).
463 # Exit status is that of the last command.
468 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
474 ECHO_C
= ECHO_N
= ECHO_T
=
478 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
485 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
486 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
492 rm -f conf$$ conf$$.exe conf$$.
file
493 if test -d conf$$.dir
; then
494 rm -f conf$$.dir
/conf$$.
file
500 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
502 # ... but there are two gotchas:
503 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505 # In both cases, we have to default to `cp -p'.
506 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
508 elif ln conf$$.
file conf$$
2>/dev
/null
; then
513 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
514 rmdir conf$$.dir
2>/dev
/null
516 if mkdir
-p .
2>/dev
/null
; then
519 test -d .
/-p && rmdir .
/-p
523 if test -x / >/dev
/null
2>&1; then
526 if ls -dL / >/dev
/null
2>&1; then
533 if test -d "$1"; then
539 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540 ???[sx]*):;;*)false;;esac;fi
544 as_executable_p
=$as_test_x
546 # Sed expression to map a string onto a valid CPP name.
547 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
549 # Sed expression to map a string onto a valid variable name.
550 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
554 exec 7<&0 </dev
/null
6>&1
557 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
558 # so uname gets run too.
559 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
564 ac_default_prefix
=/usr
/local
566 ac_config_libobj_dir
=.
572 SHELL
=${CONFIG_SHELL-/bin/sh}
574 # Identity of this package.
576 PACKAGE_TARNAME
='grub'
577 PACKAGE_VERSION
='1.96'
578 PACKAGE_STRING
='GRUB 1.96'
579 PACKAGE_BUGREPORT
='bug-grub@gnu.org'
581 ac_unique_file
="include/grub/dl.h"
582 # Factoring default headers for most tests.
583 ac_includes_default
="\
585 #ifdef HAVE_SYS_TYPES_H
586 # include <sys/types.h>
588 #ifdef HAVE_SYS_STAT_H
589 # include <sys/stat.h>
595 # ifdef HAVE_STDLIB_H
600 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
605 #ifdef HAVE_STRINGS_H
606 # include <strings.h>
608 #ifdef HAVE_INTTYPES_H
609 # include <inttypes.h>
627 program_transform_name
709 ac_precious_vars
='build_alias
720 # Initialize some variables set by options.
722 ac_init_version
=false
723 # The variables have the same names as the options, with
724 # dashes changed to underlines.
732 program_transform_name
=s
,x
,x
,
740 # Installation directory options.
741 # These are left unexpanded so users can "make install exec_prefix=/foo"
742 # and all the variables that are supposed to be based on exec_prefix
743 # by default will actually change.
744 # Use braces instead of parens because sh, perl, etc. also accept them.
745 # (The list follows the same order as the GNU Coding Standards.)
746 bindir
='${exec_prefix}/bin'
747 sbindir
='${exec_prefix}/sbin'
748 libexecdir
='${exec_prefix}/libexec'
749 datarootdir
='${prefix}/share'
750 datadir
='${datarootdir}'
751 sysconfdir
='${prefix}/etc'
752 sharedstatedir
='${prefix}/com'
753 localstatedir
='${prefix}/var'
754 includedir
='${prefix}/include'
755 oldincludedir
='/usr/include'
756 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
757 infodir
='${datarootdir}/info'
762 libdir
='${exec_prefix}/lib'
763 localedir
='${datarootdir}/locale'
764 mandir
='${datarootdir}/man'
770 # If the previous option needs an argument, assign it.
771 if test -n "$ac_prev"; then
772 eval $ac_prev=\
$ac_option
778 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
782 # Accept the important Cygnus configure options, so we can diagnose typos.
784 case $ac_dashdash$ac_option in
788 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
790 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
793 -build |
--build |
--buil |
--bui |
--bu)
794 ac_prev
=build_alias
;;
795 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
796 build_alias
=$ac_optarg ;;
798 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
799 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
800 ac_prev
=cache_file
;;
801 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
802 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
803 cache_file
=$ac_optarg ;;
806 cache_file
=config.cache
;;
808 -datadir |
--datadir |
--datadi |
--datad)
810 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
811 datadir
=$ac_optarg ;;
813 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
814 |
--dataroo |
--dataro |
--datar)
815 ac_prev
=datarootdir
;;
816 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
817 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
818 datarootdir
=$ac_optarg ;;
820 -disable-* |
--disable-*)
821 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
822 # Reject names that are not valid shell variable names.
823 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
824 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
825 { (exit 1); exit 1; }; }
826 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
827 eval enable_
$ac_feature=no
;;
829 -docdir |
--docdir |
--docdi |
--doc |
--do)
831 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
834 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
836 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
839 -enable-* |
--enable-*)
840 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
841 # Reject names that are not valid shell variable names.
842 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
843 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
844 { (exit 1); exit 1; }; }
845 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
846 eval enable_
$ac_feature=\
$ac_optarg ;;
848 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
849 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
850 |
--exec |
--exe |
--ex)
851 ac_prev
=exec_prefix
;;
852 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
853 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
854 |
--exec=* |
--exe=* |
--ex=*)
855 exec_prefix
=$ac_optarg ;;
857 -gas |
--gas |
--ga |
--g)
858 # Obsolete; use --with-gas.
861 -help |
--help |
--hel |
--he |
-h)
863 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
864 ac_init_help
=recursive
;;
865 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
866 ac_init_help
=short
;;
868 -host |
--host |
--hos |
--ho)
869 ac_prev
=host_alias
;;
870 -host=* |
--host=* |
--hos=* |
--ho=*)
871 host_alias
=$ac_optarg ;;
873 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
875 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
877 htmldir
=$ac_optarg ;;
879 -includedir |
--includedir |
--includedi |
--included |
--include \
880 |
--includ |
--inclu |
--incl |
--inc)
881 ac_prev
=includedir
;;
882 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
883 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
884 includedir
=$ac_optarg ;;
886 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
888 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
889 infodir
=$ac_optarg ;;
891 -libdir |
--libdir |
--libdi |
--libd)
893 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
896 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
897 |
--libexe |
--libex |
--libe)
898 ac_prev
=libexecdir
;;
899 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
900 |
--libexe=* |
--libex=* |
--libe=*)
901 libexecdir
=$ac_optarg ;;
903 -localedir |
--localedir |
--localedi |
--localed |
--locale)
905 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
906 localedir
=$ac_optarg ;;
908 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
909 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
910 ac_prev
=localstatedir
;;
911 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
912 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
913 localstatedir
=$ac_optarg ;;
915 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
917 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
921 # Obsolete; use --without-fp.
924 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
925 |
--no-cr |
--no-c |
-n)
928 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
929 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
932 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
933 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
934 |
--oldin |
--oldi |
--old |
--ol |
--o)
935 ac_prev
=oldincludedir
;;
936 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
937 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
938 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
939 oldincludedir
=$ac_optarg ;;
941 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
943 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
946 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
947 |
--program-pre |
--program-pr |
--program-p)
948 ac_prev
=program_prefix
;;
949 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
950 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
951 program_prefix
=$ac_optarg ;;
953 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
954 |
--program-suf |
--program-su |
--program-s)
955 ac_prev
=program_suffix
;;
956 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
957 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
958 program_suffix
=$ac_optarg ;;
960 -program-transform-name |
--program-transform-name \
961 |
--program-transform-nam |
--program-transform-na \
962 |
--program-transform-n |
--program-transform- \
963 |
--program-transform |
--program-transfor \
964 |
--program-transfo |
--program-transf \
965 |
--program-trans |
--program-tran \
966 |
--progr-tra |
--program-tr |
--program-t)
967 ac_prev
=program_transform_name
;;
968 -program-transform-name=* |
--program-transform-name=* \
969 |
--program-transform-nam=* |
--program-transform-na=* \
970 |
--program-transform-n=* |
--program-transform-=* \
971 |
--program-transform=* |
--program-transfor=* \
972 |
--program-transfo=* |
--program-transf=* \
973 |
--program-trans=* |
--program-tran=* \
974 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
975 program_transform_name
=$ac_optarg ;;
977 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
979 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
982 -psdir |
--psdir |
--psdi |
--psd |
--ps)
984 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
987 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
988 |
-silent |
--silent |
--silen |
--sile |
--sil)
991 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
993 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
995 sbindir
=$ac_optarg ;;
997 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
998 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
999 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1001 ac_prev
=sharedstatedir
;;
1002 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1003 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1004 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1006 sharedstatedir
=$ac_optarg ;;
1008 -site |
--site |
--sit)
1010 -site=* |
--site=* |
--sit=*)
1013 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1015 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1016 srcdir
=$ac_optarg ;;
1018 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1019 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1020 ac_prev
=sysconfdir
;;
1021 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1022 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1023 sysconfdir
=$ac_optarg ;;
1025 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1026 ac_prev
=target_alias
;;
1027 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1028 target_alias
=$ac_optarg ;;
1030 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1033 -version |
--version |
--versio |
--versi |
--vers |
-V)
1034 ac_init_version
=: ;;
1037 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1038 # Reject names that are not valid shell variable names.
1039 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1040 { echo "$as_me: error: invalid package name: $ac_package" >&2
1041 { (exit 1); exit 1; }; }
1042 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1043 eval with_
$ac_package=\
$ac_optarg ;;
1045 -without-* |
--without-*)
1046 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1047 # Reject names that are not valid shell variable names.
1048 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1049 { echo "$as_me: error: invalid package name: $ac_package" >&2
1050 { (exit 1); exit 1; }; }
1051 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1052 eval with_
$ac_package=no
;;
1055 # Obsolete; use --with-x.
1058 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1059 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1060 ac_prev
=x_includes
;;
1061 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1062 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1063 x_includes
=$ac_optarg ;;
1065 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1066 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1067 ac_prev
=x_libraries
;;
1068 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1069 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1070 x_libraries
=$ac_optarg ;;
1072 -*) { echo "$as_me: error: unrecognized option: $ac_option
1073 Try \`$0 --help' for more information." >&2
1074 { (exit 1); exit 1; }; }
1078 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1079 # Reject names that are not valid shell variable names.
1080 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1081 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1082 { (exit 1); exit 1; }; }
1083 eval $ac_envvar=\
$ac_optarg
1084 export $ac_envvar ;;
1087 # FIXME: should be removed in autoconf 3.0.
1088 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1089 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1090 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1091 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1097 if test -n "$ac_prev"; then
1098 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1099 { echo "$as_me: error: missing argument to $ac_option" >&2
1100 { (exit 1); exit 1; }; }
1103 # Be sure to have absolute directory names.
1104 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1105 datadir sysconfdir sharedstatedir localstatedir includedir \
1106 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1107 libdir localedir mandir
1109 eval ac_val
=\$
$ac_var
1111 [\\/$
]* | ?
:[\\/]* ) continue;;
1112 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1114 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1115 { (exit 1); exit 1; }; }
1118 # There might be people who depend on the old broken behavior: `$host'
1119 # used to hold the argument of --host etc.
1120 # FIXME: To remove some day.
1123 target
=$target_alias
1125 # FIXME: To remove some day.
1126 if test "x$host_alias" != x
; then
1127 if test "x$build_alias" = x
; then
1128 cross_compiling
=maybe
1129 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1130 If a cross compiler is detected then cross compile mode will be used." >&2
1131 elif test "x$build_alias" != "x$host_alias"; then
1137 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1139 test "$silent" = yes && exec 6>/dev
/null
1142 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1143 ac_ls_di
=`ls -di .` &&
1144 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1145 { echo "$as_me: error: Working directory cannot be determined" >&2
1146 { (exit 1); exit 1; }; }
1147 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1148 { echo "$as_me: error: pwd does not report name of working directory" >&2
1149 { (exit 1); exit 1; }; }
1152 # Find the source files, if location was not specified.
1153 if test -z "$srcdir"; then
1154 ac_srcdir_defaulted
=yes
1155 # Try the directory containing this script, then the parent directory.
1156 ac_confdir
=`$as_dirname -- "$0" ||
1157 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1158 X"$0" : 'X\(//\)[^/]' \| \
1159 X"$0" : 'X\(//\)$' \| \
1160 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1162 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1180 if test ! -r "$srcdir/$ac_unique_file"; then
1184 ac_srcdir_defaulted
=no
1186 if test ! -r "$srcdir/$ac_unique_file"; then
1187 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1188 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1189 { (exit 1); exit 1; }; }
1191 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1193 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1194 { (exit 1); exit 1; }; }
1196 # When building in place, set srcdir=.
1197 if test "$ac_abs_confdir" = "$ac_pwd"; then
1200 # Remove unnecessary trailing slashes from srcdir.
1201 # Double slashes in file names in object file debugging info
1202 # mess up M-x gdb in Emacs.
1204 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1206 for ac_var
in $ac_precious_vars; do
1207 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1208 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1209 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1210 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1214 # Report the --help message.
1216 if test "$ac_init_help" = "long"; then
1217 # Omit some internal or obsolete options to make the list less imposing.
1218 # This message is too long to be a string in the A/UX 3.1 sh.
1220 \`configure' configures GRUB 1.96 to adapt to many kinds of systems.
1222 Usage: $0 [OPTION]... [VAR=VALUE]...
1224 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1225 VAR=VALUE. See below for descriptions of some of the useful variables.
1227 Defaults for the options are specified in brackets.
1230 -h, --help display this help and exit
1231 --help=short display options specific to this package
1232 --help=recursive display the short help of all the included packages
1233 -V, --version display version information and exit
1234 -q, --quiet, --silent do not print \`checking...' messages
1235 --cache-file=FILE cache test results in FILE [disabled]
1236 -C, --config-cache alias for \`--cache-file=config.cache'
1237 -n, --no-create do not create output files
1238 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1240 Installation directories:
1241 --prefix=PREFIX install architecture-independent files in PREFIX
1242 [$ac_default_prefix]
1243 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1246 By default, \`make install' will install all the files in
1247 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1248 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1249 for instance \`--prefix=\$HOME'.
1251 For better control, use the options below.
1253 Fine tuning of the installation directories:
1254 --bindir=DIR user executables [EPREFIX/bin]
1255 --sbindir=DIR system admin executables [EPREFIX/sbin]
1256 --libexecdir=DIR program executables [EPREFIX/libexec]
1257 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1258 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1259 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1260 --libdir=DIR object code libraries [EPREFIX/lib]
1261 --includedir=DIR C header files [PREFIX/include]
1262 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1263 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1264 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1265 --infodir=DIR info documentation [DATAROOTDIR/info]
1266 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1267 --mandir=DIR man documentation [DATAROOTDIR/man]
1268 --docdir=DIR documentation root [DATAROOTDIR/doc/grub]
1269 --htmldir=DIR html documentation [DOCDIR]
1270 --dvidir=DIR dvi documentation [DOCDIR]
1271 --pdfdir=DIR pdf documentation [DOCDIR]
1272 --psdir=DIR ps documentation [DOCDIR]
1278 --program-prefix=PREFIX prepend PREFIX to installed program names
1279 --program-suffix=SUFFIX append SUFFIX to installed program names
1280 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1283 --build=BUILD configure
for building on BUILD
[guessed
]
1284 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1285 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1289 if test -n "$ac_init_help"; then
1290 case $ac_init_help in
1291 short | recursive
) echo "Configuration of GRUB 1.96:";;
1296 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1297 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1298 --disable-largefile omit support
for large files
1299 --enable-lzo use lzo to
compress kernel
(default is lzma
)
1300 --enable-mm-debug include memory manager debugging
1301 --enable-grub-emu build and
install the
`grub-emu' debugging utility
1302 --enable-grub-fstest build and install the `grub-fstest
' debugging
1304 --enable-grub-pe2elf build and install the `grub-pe2elf' conversion
1308 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1309 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1310 --with-platform=PLATFORM
1311 select the
host platform
[guessed
]
1313 Some influential environment variables
:
1314 CC C compiler
command
1315 CFLAGS C compiler flags
1316 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1317 nonstandard directory
<lib dir
>
1318 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1319 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1320 you have headers
in a nonstandard directory
<include dir
>
1323 Use these variables to override the choices made by
`configure' or to help
1324 it to find libraries and programs with nonstandard names/locations.
1326 Report bugs to <bug-grub@gnu.org>.
1331 if test "$ac_init_help" = "recursive"; then
1332 # If there are subdirs, report their specific --help.
1333 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1334 test -d "$ac_dir" || continue
1338 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1340 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
1341 # A ".." for each directory in $ac_dir_suffix.
1342 ac_top_builddir_sub=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,/..,g;s,/,,'`
1343 case $ac_top_builddir_sub in
1344 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1345 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1348 ac_abs_top_builddir=$ac_pwd
1349 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1350 # for backward compatibility:
1351 ac_top_builddir=$ac_top_build_prefix
1354 .) # We are building in place.
1356 ac_top_srcdir=$ac_top_builddir_sub
1357 ac_abs_top_srcdir=$ac_pwd ;;
1358 [\\/]* | ?:[\\/]* ) # Absolute name.
1359 ac_srcdir=$srcdir$ac_dir_suffix;
1360 ac_top_srcdir=$srcdir
1361 ac_abs_top_srcdir=$srcdir ;;
1363 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1364 ac_top_srcdir=$ac_top_build_prefix$srcdir
1365 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1367 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1369 cd "$ac_dir" || { ac_status=$?; continue; }
1370 # Check for guested configure.
1371 if test -f "$ac_srcdir/configure.gnu"; then
1373 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1374 elif test -f "$ac_srcdir/configure"; then
1376 $SHELL "$ac_srcdir/configure" --help=recursive
1378 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1380 cd "$ac_pwd" || { ac_status=$?; break; }
1384 test -n "$ac_init_help" && exit $ac_status
1385 if $ac_init_version; then
1388 generated by GNU Autoconf 2.61
1390 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1391 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1392 This configure script is free software; the Free Software Foundation
1393 gives unlimited permission to copy, distribute and modify it.
1397 cat >config.log <<_ACEOF
1398 This file contains any messages produced by compilers while
1399 running configure, to aid debugging if configure makes a mistake.
1401 It was created by GRUB $as_me 1.96, which was
1402 generated by GNU Autoconf 2.61. Invocation command line was
1414 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1415 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1416 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1417 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1418 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1420 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1421 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1423 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1424 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1425 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1426 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
1427 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1428 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1429 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1437 test -z "$as_dir" && as_dir=.
1438 echo "PATH: $as_dir"
1454 # Keep a trace of the command line.
1455 # Strip out --no-create and --no-recursion so they do not pile up.
1456 # Strip out --silent because we don't want to record it for future runs.
1457 # Also quote any args containing shell meta-characters.
1458 # Make two passes to allow for proper duplicate-argument suppression.
1462 ac_must_keep_next=false
1468 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1469 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1470 | -silent | --silent | --silen | --sile | --sil)
1473 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1476 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1478 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1479 if test $ac_must_keep_next = true; then
1480 ac_must_keep_next=false # Got value, back to normal.
1483 *=* | --config-cache | -C | -disable-* | --disable-* \
1484 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1485 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1486 | -with-* | --with-* | -without-* | --without-* | --x)
1487 case "$ac_configure_args0 " in
1488 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1491 -* ) ac_must_keep_next=true ;;
1494 ac_configure_args="$ac_configure_args '$ac_arg'"
1499 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1500 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1502 # When interrupted or exit'd, cleanup temporary files, and complete
1503 # config.log. We remove comments because anyway the quotes in there
1504 # would cause problems or look ugly.
1505 # WARNING: Use '\'' to represent an apostrophe within the trap.
1506 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1507 trap 'exit_status=$?
1508 # Save into config.log some information that might help in debugging.
1513 ## ---------------- ##
1514 ## Cache variables. ##
1515 ## ---------------- ##
1518 # The following way of writing the cache mishandles newlines in values,
1520 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
1521 eval ac_val=\$$ac_var
1525 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1526 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1529 _ | IFS | as_nl) ;; #(
1530 *) $as_unset $ac_var ;;
1535 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
1536 *${as_nl}ac_space=\ *)
1538 "s/'\''/'\''\\\\'\'''\''/g;
1539 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1542 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1550 ## ----------------- ##
1551 ## Output variables. ##
1552 ## ----------------- ##
1555 for ac_var in $ac_subst_vars
1557 eval ac_val=\$$ac_var
1559 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1561 echo "$ac_var='\''$ac_val'\''"
1565 if test -n "$ac_subst_files"; then
1567 ## ------------------- ##
1568 ## File substitutions. ##
1569 ## ------------------- ##
1572 for ac_var in $ac_subst_files
1574 eval ac_val=\$$ac_var
1576 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1578 echo "$ac_var='\''$ac_val'\''"
1583 if test -s confdefs.h; then
1593 test "$ac_signal" != 0 &&
1594 echo "$as_me: caught signal $ac_signal"
1595 echo "$as_me: exit $exit_status"
1597 rm -f core *.core core.conftest.* &&
1598 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1601 for ac_signal in 1 2 13 15; do
1602 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1606 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1607 rm -f -r conftest* confdefs.h
1609 # Predefined preprocessor variables.
1611 cat >>confdefs.h <<_ACEOF
1612 #define PACKAGE_NAME "$PACKAGE_NAME"
1616 cat >>confdefs.h <<_ACEOF
1617 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1621 cat >>confdefs.h <<_ACEOF
1622 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1626 cat >>confdefs.h <<_ACEOF
1627 #define PACKAGE_STRING "$PACKAGE_STRING"
1631 cat >>confdefs.h <<_ACEOF
1632 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1636 # Let the site file select an alternate cache file if it wants to.
1637 # Prefer explicitly selected file to automatically selected ones.
1638 if test -n "$CONFIG_SITE"; then
1639 set x "$CONFIG_SITE"
1640 elif test "x$prefix" != xNONE; then
1641 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1643 set x "$ac_default_prefix/share/config.site" \
1644 "$ac_default_prefix/etc/config.site"
1649 if test -r "$ac_site_file"; then
1650 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1651 echo "$as_me: loading site script $ac_site_file" >&6;}
1652 sed 's/^/| /' "$ac_site_file" >&5
1657 if test -r "$cache_file"; then
1658 # Some versions of bash will fail to source /dev/null (special
1659 # files actually), so we avoid doing that.
1660 if test -f "$cache_file"; then
1661 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1662 echo "$as_me: loading cache $cache_file" >&6;}
1664 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1665 *) . "./$cache_file";;
1669 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1670 echo "$as_me: creating cache $cache_file" >&6;}
1674 # Check that the precious variables saved in the cache have kept the same
1676 ac_cache_corrupted=false
1677 for ac_var in $ac_precious_vars; do
1678 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1679 eval ac_new_set=\$ac_env_${ac_var}_set
1680 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1681 eval ac_new_val=\$ac_env_${ac_var}_value
1682 case $ac_old_set,$ac_new_set in
1684 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
1685 echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1686 ac_cache_corrupted=: ;;
1688 { echo "$as_me:$LINENO: error: \`$ac_var' was not
set in the previous run
" >&5
1689 echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
1690 ac_cache_corrupted=: ;;
1693 if test "x$ac_old_val" != "x$ac_new_val"; then
1694 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1695 echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
1696 { echo "$as_me:$LINENO: former value
: $ac_old_val" >&5
1697 echo "$as_me: former value
: $ac_old_val" >&2;}
1698 { echo "$as_me:$LINENO: current value
: $ac_new_val" >&5
1699 echo "$as_me: current value
: $ac_new_val" >&2;}
1700 ac_cache_corrupted=:
1703 # Pass precious variables to config.status.
1704 if test "$ac_new_set" = set; then
1706 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
1707 *) ac_arg=$ac_var=$ac_new_val ;;
1709 case " $ac_configure_args " in
1710 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1711 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1715 if $ac_cache_corrupted; then
1716 { echo "$as_me:$LINENO: error
: changes
in the environment can compromise the build
" >&5
1717 echo "$as_me: error
: changes
in the environment can compromise the build
" >&2;}
1718 { { echo "$as_me:$LINENO: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&5
1719 echo "$as_me: error: run \`make distclean' and
/or \
`rm $cache_file' and start over" >&2;}
1720 { (exit 1); exit 1; }; }
1748 ac_cpp='$CPP $CPPFLAGS'
1749 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1750 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1751 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1756 ac_config_headers="$ac_config_headers config.h"
1759 # Checks for host and target systems.
1761 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1762 if test -f "$ac_dir/install-sh"; then
1764 ac_install_sh="$ac_aux_dir/install-sh -c"
1766 elif test -f "$ac_dir/install.sh"; then
1768 ac_install_sh="$ac_aux_dir/install.sh -c"
1770 elif test -f "$ac_dir/shtool"; then
1772 ac_install_sh="$ac_aux_dir/shtool install -c"
1776 if test -z "$ac_aux_dir"; then
1777 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1778 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1779 { (exit 1); exit 1; }; }
1782 # These three variables are undocumented and unsupported,
1783 # and are intended to be withdrawn in a future Autoconf release.
1784 # They can cause serious problems if a builder's source tree is in a directory
1785 # whose full name contains unusual characters.
1786 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1787 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1788 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1791 # Make sure we can run config.sub.
1792 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1793 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1794 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1795 { (exit 1); exit 1; }; }
1797 { echo "$as_me:$LINENO: checking build system type" >&5
1798 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1799 if test "${ac_cv_build+set}" = set; then
1800 echo $ECHO_N "(cached) $ECHO_C" >&6
1802 ac_build_alias=$build_alias
1803 test "x$ac_build_alias" = x &&
1804 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1805 test "x$ac_build_alias" = x &&
1806 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1807 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1808 { (exit 1); exit 1; }; }
1809 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1810 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1811 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1812 { (exit 1); exit 1; }; }
1815 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1816 echo "${ECHO_T}$ac_cv_build" >&6; }
1817 case $ac_cv_build in
1819 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1820 echo "$as_me: error: invalid value of canonical build" >&2;}
1821 { (exit 1); exit 1; }; };;
1824 ac_save_IFS=$IFS; IFS='-'
1830 # Remember, the first character of IFS is used to create $*,
1831 # except with old shells:
1834 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
1837 { echo "$as_me:$LINENO: checking host system type" >&5
1838 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1839 if test "${ac_cv_host+set}" = set; then
1840 echo $ECHO_N "(cached) $ECHO_C" >&6
1842 if test "x$host_alias" = x; then
1843 ac_cv_host=$ac_cv_build
1845 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1846 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1847 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1848 { (exit 1); exit 1; }; }
1852 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1853 echo "${ECHO_T}$ac_cv_host" >&6; }
1856 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1857 echo "$as_me: error: invalid value of canonical host" >&2;}
1858 { (exit 1); exit 1; }; };;
1861 ac_save_IFS=$IFS; IFS='-'
1867 # Remember, the first character of IFS is used to create $*,
1868 # except with old shells:
1871 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
1874 { echo "$as_me:$LINENO: checking target system type" >&5
1875 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
1876 if test "${ac_cv_target+set}" = set; then
1877 echo $ECHO_N "(cached) $ECHO_C" >&6
1879 if test "x$target_alias" = x; then
1880 ac_cv_target=$ac_cv_host
1882 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
1883 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
1884 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
1885 { (exit 1); exit 1; }; }
1889 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1890 echo "${ECHO_T}$ac_cv_target" >&6; }
1891 case $ac_cv_target in
1893 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
1894 echo "$as_me: error: invalid value of canonical target" >&2;}
1895 { (exit 1); exit 1; }; };;
1897 target=$ac_cv_target
1898 ac_save_IFS=$IFS; IFS='-'
1904 # Remember, the first character of IFS is used to create $*,
1905 # except with old shells:
1908 case $target_os in *\ *) target_os=`echo "$target_os" |
sed 's/ /-/g'`;; esac
1911 # The aliases save the names the user supplied, while $host etc.
1912 # will get canonicalized.
1913 test -n "$target_alias" &&
1914 test "$program_prefix$program_suffix$program_transform_name" = \
1916 program_prefix=${target_alias}-
1918 # Program name transformations
1919 test "$program_prefix" != NONE &&
1920 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1921 # Use a double $ so make ignores it.
1922 test "$program_suffix" != NONE &&
1923 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1924 # Double any \ or $. echo might interpret backslashes.
1925 # By default was `s
,x
,x
', remove it if useless.
1926 cat <<\_ACEOF >conftest.sed
1927 s/[\\$]/&&/g;s/;s,x,x,$//
1929 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1934 powerpc64) host_m32=1 ;;
1937 case "$target_cpu" in
1938 i[3456]86) target_cpu=i386 ;;
1941 # Specify the platform (such as firmware).
1943 # Check whether --with-platform was given.
1944 if test "${with_platform+set}" = set; then
1945 withval=$with_platform;
1949 # Guess the platform if not specified.
1950 if test "x$with_platform" = x; then
1951 case "$target_cpu"-"$target_vendor" in
1952 i386-apple) platform=efi ;;
1953 i386-*) platform=pc ;;
1954 x86_64-apple) platform=efi ;;
1955 x86_64-*) platform=pc ;;
1956 powerpc-*) platform=ieee1275 ;;
1957 powerpc64-*) platform=ieee1275 ;;
1958 sparc64-*) platform=ieee1275 ;;
1959 *) { { echo "$as_me:$LINENO: error: unsupported CPU: \"$target_cpu\"" >&5
1960 echo "$as_me: error: unsupported CPU: \"$target_cpu\"" >&2;}
1961 { (exit 1); exit 1; }; } ;;
1964 platform="$with_platform"
1967 # Adjust CPU unless target was explicitly specified.
1968 if test -z "$target_alias"; then
1969 case "$target_cpu"-"$platform" in
1971 x86_64-*) target_cpu=i386 ;;
1972 powerpc64-ieee1275) target_cpu=powerpc ;;
1976 # Check if the platform is supported, make final adjustments.
1977 case "$target_cpu"-"$platform" in
1982 i386-linuxbios) platform=coreboot ;;
1984 powerpc-ieee1275) ;;
1985 sparc64-ieee1275) ;;
1986 *) { { echo "$as_me:$LINENO: error: platform \"$platform\" is not supported for target CPU \"$target_cpu\"" >&5
1987 echo "$as_me: error: platform \"$platform\" is not supported for target CPU \"$target_cpu\"" >&2;}
1988 { (exit 1); exit 1; }; } ;;
1991 case "$target_cpu" in
1992 i386 | powerpc) target_m32=1 ;;
1993 x86_64 | sparc64) target_m64=1 ;;
1997 mingw32) host_os=cygwin ;;
2000 case "$target_os" in
2001 mingw32) target_os=cygwin ;;
2009 # Checks for build programs.
2012 # Although cmp is listed in the GNU Coding Standards as a command which
2013 # can used directly, OpenBSD lacks cmp in the default installation.
2016 # Extract the first word of "$ac_prog", so it can be a program name with args.
2017 set dummy $ac_prog; ac_word=$2
2018 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2019 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2020 if test "${ac_cv_prog_CMP+set}" = set; then
2021 echo $ECHO_N "(cached) $ECHO_C" >&6
2023 if test -n "$CMP"; then
2024 ac_cv_prog_CMP="$CMP" # Let the user override the test.
2026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2030 test -z "$as_dir" && as_dir=.
2031 for ac_exec_ext in '' $ac_executable_extensions; do
2032 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2033 ac_cv_prog_CMP="$ac_prog"
2034 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2044 if test -n "$CMP"; then
2045 { echo "$as_me:$LINENO: result: $CMP" >&5
2046 echo "${ECHO_T}$CMP" >&6; }
2048 { echo "$as_me:$LINENO: result: no" >&5
2049 echo "${ECHO_T}no" >&6; }
2053 test -n "$CMP" && break
2056 if test "x$CMP" = x; then
2057 { { echo "$as_me:$LINENO: error: cmp is not found" >&5
2058 echo "$as_me: error: cmp is not found" >&2;}
2059 { (exit 1); exit 1; }; }
2062 for ac_prog in bison
2064 # Extract the first word of "$ac_prog", so it can be a program name with args.
2065 set dummy $ac_prog; ac_word=$2
2066 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2067 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2068 if test "${ac_cv_prog_YACC+set}" = set; then
2069 echo $ECHO_N "(cached) $ECHO_C" >&6
2071 if test -n "$YACC"; then
2072 ac_cv_prog_YACC="$YACC" # Let the user override the test.
2074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2078 test -z "$as_dir" && as_dir=.
2079 for ac_exec_ext in '' $ac_executable_extensions; do
2080 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2081 ac_cv_prog_YACC="$ac_prog"
2082 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2091 YACC=$ac_cv_prog_YACC
2092 if test -n "$YACC"; then
2093 { echo "$as_me:$LINENO: result: $YACC" >&5
2094 echo "${ECHO_T}$YACC" >&6; }
2096 { echo "$as_me:$LINENO: result: no" >&5
2097 echo "${ECHO_T}no" >&6; }
2101 test -n "$YACC" && break
2104 if test "x$YACC" = x; then
2105 { { echo "$as_me:$LINENO: error: bison is not found" >&5
2106 echo "$as_me: error: bison is not found" >&2;}
2107 { (exit 1); exit 1; }; }
2110 for file in /usr/share/unifont/unifont.hex ; do
2111 if test -e $file ; then
2118 # Find a good install program. We prefer a C program (faster),
2119 # so one script is as good as another. But avoid the broken or
2120 # incompatible versions:
2121 # SysV /etc/install, /usr/sbin/install
2122 # SunOS /usr/etc/install
2123 # IRIX /sbin/install
2125 # AmigaOS /C/install, which installs bootblocks on floppy discs
2126 # AIX 4 /usr/bin/installbsd, which doesn't work without a
-g flag
2127 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2128 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2129 # OS/2's system install, which has a completely different semantic
2130 # ./install, which can be erroneously created by make from ./install.sh.
2131 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2132 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2133 if test -z "$INSTALL"; then
2134 if test "${ac_cv_path_install+set}" = set; then
2135 echo $ECHO_N "(cached) $ECHO_C" >&6
2137 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2141 test -z "$as_dir" && as_dir
=.
2142 # Account for people who put trailing slashes in PATH elements.
2144 .
/ | .
// |
/cC
/* | \
2145 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
2146 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
2149 # OSF1 and SCO ODT 3.0 have their own names for install.
2150 # Don't use installbsd from OSF since it installs stuff as root
2152 for ac_prog
in ginstall scoinst
install; do
2153 for ac_exec_ext
in '' $ac_executable_extensions; do
2154 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2155 if test $ac_prog = install &&
2156 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2157 # AIX install. It has an incompatible calling convention.
2159 elif test $ac_prog = install &&
2160 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2161 # program-specific install script used by HP pwplus--don't use.
2164 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
2177 if test "${ac_cv_path_install+set}" = set; then
2178 INSTALL
=$ac_cv_path_install
2180 # As a last resort, use the slow shell script. Don't cache a
2181 # value for INSTALL within a source directory, because that will
2182 # break other packages using the cache if that directory is
2183 # removed, or if the value is a relative name.
2184 INSTALL
=$ac_install_sh
2187 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2188 echo "${ECHO_T}$INSTALL" >&6; }
2190 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2191 # It thinks the first close brace ends the variable substitution.
2192 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2194 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
2196 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2198 for ac_prog
in gawk mawk nawk
awk
2200 # Extract the first word of "$ac_prog", so it can be a program name with args.
2201 set dummy
$ac_prog; ac_word
=$2
2202 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2203 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2204 if test "${ac_cv_prog_AWK+set}" = set; then
2205 echo $ECHO_N "(cached) $ECHO_C" >&6
2207 if test -n "$AWK"; then
2208 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
2210 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2214 test -z "$as_dir" && as_dir
=.
2215 for ac_exec_ext
in '' $ac_executable_extensions; do
2216 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2217 ac_cv_prog_AWK
="$ac_prog"
2218 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2228 if test -n "$AWK"; then
2229 { echo "$as_me:$LINENO: result: $AWK" >&5
2230 echo "${ECHO_T}$AWK" >&6; }
2232 { echo "$as_me:$LINENO: result: no" >&5
2233 echo "${ECHO_T}no" >&6; }
2237 test -n "$AWK" && break
2240 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2241 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2242 set x
${MAKE-make}; ac_make
=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2243 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2244 echo $ECHO_N "(cached) $ECHO_C" >&6
2246 cat >conftest.
make <<\_ACEOF
2249 @
echo '@@@%%%=$(MAKE)=@@@%%%'
2251 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2252 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2254 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
2256 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
2260 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
2261 { echo "$as_me:$LINENO: result: yes" >&5
2262 echo "${ECHO_T}yes" >&6; }
2265 { echo "$as_me:$LINENO: result: no" >&5
2266 echo "${ECHO_T}no" >&6; }
2267 SET_MAKE
="MAKE=${MAKE-make}"
2271 # These are not a "must".
2272 # Extract the first word of "ruby", so it can be a program name with args.
2273 set dummy ruby
; ac_word
=$2
2274 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2275 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2276 if test "${ac_cv_path_RUBY+set}" = set; then
2277 echo $ECHO_N "(cached) $ECHO_C" >&6
2281 ac_cv_path_RUBY
="$RUBY" # Let the user override the test with a path.
2284 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2288 test -z "$as_dir" && as_dir
=.
2289 for ac_exec_ext
in '' $ac_executable_extensions; do
2290 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2291 ac_cv_path_RUBY
="$as_dir/$ac_word$ac_exec_ext"
2292 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2302 RUBY
=$ac_cv_path_RUBY
2303 if test -n "$RUBY"; then
2304 { echo "$as_me:$LINENO: result: $RUBY" >&5
2305 echo "${ECHO_T}$RUBY" >&6; }
2307 { echo "$as_me:$LINENO: result: no" >&5
2308 echo "${ECHO_T}no" >&6; }
2312 # Extract the first word of "help2man", so it can be a program name with args.
2313 set dummy help2man
; ac_word
=$2
2314 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2315 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2316 if test "${ac_cv_path_HELP2MAN+set}" = set; then
2317 echo $ECHO_N "(cached) $ECHO_C" >&6
2321 ac_cv_path_HELP2MAN
="$HELP2MAN" # Let the user override the test with a path.
2324 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2328 test -z "$as_dir" && as_dir
=.
2329 for ac_exec_ext
in '' $ac_executable_extensions; do
2330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2331 ac_cv_path_HELP2MAN
="$as_dir/$ac_word$ac_exec_ext"
2332 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2342 HELP2MAN
=$ac_cv_path_HELP2MAN
2343 if test -n "$HELP2MAN"; then
2344 { echo "$as_me:$LINENO: result: $HELP2MAN" >&5
2345 echo "${ECHO_T}$HELP2MAN" >&6; }
2347 { echo "$as_me:$LINENO: result: no" >&5
2348 echo "${ECHO_T}no" >&6; }
2354 # Checks for host programs.
2358 ac_cpp
='$CPP $CPPFLAGS'
2359 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2360 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2361 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2362 if test -n "$ac_tool_prefix"; then
2363 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2364 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2365 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2366 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2367 if test "${ac_cv_prog_CC+set}" = set; then
2368 echo $ECHO_N "(cached) $ECHO_C" >&6
2370 if test -n "$CC"; then
2371 ac_cv_prog_CC
="$CC" # Let the user override the test.
2373 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2377 test -z "$as_dir" && as_dir
=.
2378 for ac_exec_ext
in '' $ac_executable_extensions; do
2379 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2380 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2381 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2391 if test -n "$CC"; then
2392 { echo "$as_me:$LINENO: result: $CC" >&5
2393 echo "${ECHO_T}$CC" >&6; }
2395 { echo "$as_me:$LINENO: result: no" >&5
2396 echo "${ECHO_T}no" >&6; }
2401 if test -z "$ac_cv_prog_CC"; then
2403 # Extract the first word of "gcc", so it can be a program name with args.
2404 set dummy gcc
; ac_word
=$2
2405 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2406 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2407 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2408 echo $ECHO_N "(cached) $ECHO_C" >&6
2410 if test -n "$ac_ct_CC"; then
2411 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2413 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2417 test -z "$as_dir" && as_dir
=.
2418 for ac_exec_ext
in '' $ac_executable_extensions; do
2419 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2420 ac_cv_prog_ac_ct_CC
="gcc"
2421 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2430 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2431 if test -n "$ac_ct_CC"; then
2432 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2433 echo "${ECHO_T}$ac_ct_CC" >&6; }
2435 { echo "$as_me:$LINENO: result: no" >&5
2436 echo "${ECHO_T}no" >&6; }
2439 if test "x$ac_ct_CC" = x
; then
2442 case $cross_compiling:$ac_tool_warned in
2444 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2445 whose name does not start with the host triplet. If you think this
2446 configuration is useful to you, please write to autoconf@gnu.org." >&5
2447 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2448 whose name does not start with the host triplet. If you think this
2449 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2450 ac_tool_warned
=yes ;;
2458 if test -z "$CC"; then
2459 if test -n "$ac_tool_prefix"; then
2460 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2461 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2462 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2463 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2464 if test "${ac_cv_prog_CC+set}" = set; then
2465 echo $ECHO_N "(cached) $ECHO_C" >&6
2467 if test -n "$CC"; then
2468 ac_cv_prog_CC
="$CC" # Let the user override the test.
2470 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2474 test -z "$as_dir" && as_dir
=.
2475 for ac_exec_ext
in '' $ac_executable_extensions; do
2476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2477 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2478 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2488 if test -n "$CC"; then
2489 { echo "$as_me:$LINENO: result: $CC" >&5
2490 echo "${ECHO_T}$CC" >&6; }
2492 { echo "$as_me:$LINENO: result: no" >&5
2493 echo "${ECHO_T}no" >&6; }
2499 if test -z "$CC"; then
2500 # Extract the first word of "cc", so it can be a program name with args.
2501 set dummy cc
; ac_word
=$2
2502 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2503 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2504 if test "${ac_cv_prog_CC+set}" = set; then
2505 echo $ECHO_N "(cached) $ECHO_C" >&6
2507 if test -n "$CC"; then
2508 ac_cv_prog_CC
="$CC" # Let the user override the test.
2511 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2515 test -z "$as_dir" && as_dir
=.
2516 for ac_exec_ext
in '' $ac_executable_extensions; do
2517 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2518 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2519 ac_prog_rejected
=yes
2523 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2530 if test $ac_prog_rejected = yes; then
2531 # We found a bogon in the path, so make sure we never use it.
2532 set dummy
$ac_cv_prog_CC
2534 if test $# != 0; then
2535 # We chose a different compiler from the bogus one.
2536 # However, it has the same basename, so the bogon will be chosen
2537 # first if we set CC to just the basename; use the full file name.
2539 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2545 if test -n "$CC"; then
2546 { echo "$as_me:$LINENO: result: $CC" >&5
2547 echo "${ECHO_T}$CC" >&6; }
2549 { echo "$as_me:$LINENO: result: no" >&5
2550 echo "${ECHO_T}no" >&6; }
2555 if test -z "$CC"; then
2556 if test -n "$ac_tool_prefix"; then
2557 for ac_prog
in cl.exe
2559 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2560 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2561 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2562 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2563 if test "${ac_cv_prog_CC+set}" = set; then
2564 echo $ECHO_N "(cached) $ECHO_C" >&6
2566 if test -n "$CC"; then
2567 ac_cv_prog_CC
="$CC" # Let the user override the test.
2569 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2573 test -z "$as_dir" && as_dir
=.
2574 for ac_exec_ext
in '' $ac_executable_extensions; do
2575 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2576 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2577 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2587 if test -n "$CC"; then
2588 { echo "$as_me:$LINENO: result: $CC" >&5
2589 echo "${ECHO_T}$CC" >&6; }
2591 { echo "$as_me:$LINENO: result: no" >&5
2592 echo "${ECHO_T}no" >&6; }
2596 test -n "$CC" && break
2599 if test -z "$CC"; then
2601 for ac_prog
in cl.exe
2603 # Extract the first word of "$ac_prog", so it can be a program name with args.
2604 set dummy
$ac_prog; ac_word
=$2
2605 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2606 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2607 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2608 echo $ECHO_N "(cached) $ECHO_C" >&6
2610 if test -n "$ac_ct_CC"; then
2611 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2613 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2617 test -z "$as_dir" && as_dir
=.
2618 for ac_exec_ext
in '' $ac_executable_extensions; do
2619 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2620 ac_cv_prog_ac_ct_CC
="$ac_prog"
2621 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2630 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2631 if test -n "$ac_ct_CC"; then
2632 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2633 echo "${ECHO_T}$ac_ct_CC" >&6; }
2635 { echo "$as_me:$LINENO: result: no" >&5
2636 echo "${ECHO_T}no" >&6; }
2640 test -n "$ac_ct_CC" && break
2643 if test "x$ac_ct_CC" = x
; then
2646 case $cross_compiling:$ac_tool_warned in
2648 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2649 whose name does not start with the host triplet. If you think this
2650 configuration is useful to you, please write to autoconf@gnu.org." >&5
2651 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2652 whose name does not start with the host triplet. If you think this
2653 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2654 ac_tool_warned
=yes ;;
2663 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2664 See \`config.log' for more details." >&5
2665 echo "$as_me: error: no acceptable C compiler found in \$PATH
2666 See \`config.log' for more details." >&2;}
2667 { (exit 1); exit 1; }; }
2669 # Provide some information about the compiler.
2670 echo "$as_me:$LINENO: checking for C compiler version" >&5
2671 ac_compiler
=`set X $ac_compile; echo $2`
2672 { (ac_try
="$ac_compiler --version >&5"
2674 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2675 *) ac_try_echo=$ac_try;;
2677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2678 (eval "$ac_compiler --version >&5") 2>&5
2680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2681 (exit $ac_status); }
2682 { (ac_try="$ac_compiler -v >&5"
2684 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2685 *) ac_try_echo
=$ac_try;;
2687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2688 (eval "$ac_compiler -v >&5") 2>&5
2690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2691 (exit $ac_status); }
2692 { (ac_try
="$ac_compiler -V >&5"
2694 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2695 *) ac_try_echo=$ac_try;;
2697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2698 (eval "$ac_compiler -V >&5") 2>&5
2700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2701 (exit $ac_status); }
2703 cat >conftest.$ac_ext <<_ACEOF
2706 cat confdefs.h >>conftest.$ac_ext
2707 cat >>conftest.$ac_ext <<_ACEOF
2708 /* end confdefs.h. */
2718 ac_clean_files_save=$ac_clean_files
2719 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2720 # Try to create an executable without -o first, disregard a.out.
2721 # It will help us diagnose broken compilers, and finding out an intuition
2723 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2724 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2725 ac_link_default=`echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
2727 # List of possible output files, starting from the most likely.
2728 # The algorithm is not robust to junk in `.
', hence go to wildcards (a.*)
2729 # only as a last resort. b.out is created by i960 compilers.
2730 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
'
2732 # The IRIX 6 linker writes into existing files which may not be
2733 # executable, retaining their permissions. Remove them first so a
2734 # subsequent execution test works.
2736 for ac_file in $ac_files
2739 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2740 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2745 if { (ac_try="$ac_link_default"
2747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2748 *) ac_try_echo=$ac_try;;
2750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2751 (eval "$ac_link_default") 2>&5
2753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2754 (exit $ac_status); }; then
2755 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2756 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2757 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2758 # so that the user can short-circuit this test for compilers unknown to
2760 for ac_file
in $ac_files ''
2762 test -f "$ac_file" ||
continue
2764 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
)
2767 # We found the default executable, but exeext='' is most
2771 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
2773 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2775 # We set ac_cv_exeext here because the later test for it is not
2776 # safe: cross compilers may not add the suffix if given an `-o'
2777 # argument, so we may need to know it at that point already.
2778 # Even if this section looks crufty: it has the advantage of
2785 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
2791 { echo "$as_me:$LINENO: result: $ac_file" >&5
2792 echo "${ECHO_T}$ac_file" >&6; }
2793 if test -z "$ac_file"; then
2794 echo "$as_me: failed program was:" >&5
2795 sed 's/^/| /' conftest.
$ac_ext >&5
2797 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2798 See \`config.log' for more details." >&5
2799 echo "$as_me: error: C compiler cannot create executables
2800 See \`config.log' for more details." >&2;}
2801 { (exit 77); exit 77; }; }
2804 ac_exeext
=$ac_cv_exeext
2806 # Check that the compiler produces executables we can run. If not, either
2807 # the compiler is broken, or we cross compile.
2808 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2809 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2810 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2811 # If not cross compiling, check that we can run a simple program.
2812 if test "$cross_compiling" != yes; then
2813 if { ac_try
='./$ac_file'
2814 { (case "(($ac_try" in
2815 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2816 *) ac_try_echo=$ac_try;;
2818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2819 (eval "$ac_try") 2>&5
2821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2822 (exit $ac_status); }; }; then
2825 if test "$cross_compiling" = maybe; then
2828 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2829 If you meant to cross compile, use \`--host'.
2830 See \`config.log' for more details.
" >&5
2831 echo "$as_me: error
: cannot run C compiled programs.
2832 If you meant to cross compile
, use \
`--host'.
2833 See \`config.log
' for more details." >&2;}
2834 { (exit 1); exit 1; }; }
2838 { echo "$as_me:$LINENO: result: yes" >&5
2839 echo "${ECHO_T}yes" >&6; }
2841 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2842 ac_clean_files=$ac_clean_files_save
2843 # Check that the compiler produces executables we can run. If not, either
2844 # the compiler is broken, or we cross compile.
2845 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2846 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2847 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2848 echo "${ECHO_T}$cross_compiling" >&6; }
2850 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2851 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2852 if { (ac_try="$ac_link"
2854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2855 *) ac_try_echo=$ac_try;;
2857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2858 (eval "$ac_link") 2>&5
2860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2861 (exit $ac_status); }; then
2862 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
2863 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
2864 # work properly (i.e., refer to `conftest.exe
'), while it won't with
2866 for ac_file
in conftest.exe conftest conftest.
*; do
2867 test -f "$ac_file" ||
continue
2869 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
) ;;
2870 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2876 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2877 See \`config.log' for more details." >&5
2878 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2879 See \`config.log' for more details." >&2;}
2880 { (exit 1); exit 1; }; }
2883 rm -f conftest
$ac_cv_exeext
2884 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2885 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2887 rm -f conftest.
$ac_ext
2888 EXEEXT
=$ac_cv_exeext
2890 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2891 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2892 if test "${ac_cv_objext+set}" = set; then
2893 echo $ECHO_N "(cached) $ECHO_C" >&6
2895 cat >conftest.
$ac_ext <<_ACEOF
2898 cat confdefs.h
>>conftest.
$ac_ext
2899 cat >>conftest.
$ac_ext <<_ACEOF
2900 /* end confdefs.h. */
2910 rm -f conftest.o conftest.obj
2911 if { (ac_try
="$ac_compile"
2913 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2914 *) ac_try_echo=$ac_try;;
2916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2917 (eval "$ac_compile") 2>&5
2919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2920 (exit $ac_status); }; then
2921 for ac_file in conftest.o conftest.obj conftest.*; do
2922 test -f "$ac_file" || continue;
2924 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2925 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2930 echo "$as_me: failed program was:" >&5
2931 sed 's/^/| /' conftest.$ac_ext >&5
2933 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2934 See \`config.log
' for more details." >&5
2935 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2936 See \`config.log' for more details.
" >&2;}
2937 { (exit 1); exit 1; }; }
2940 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2942 { echo "$as_me:$LINENO: result
: $ac_cv_objext" >&5
2943 echo "${ECHO_T}$ac_cv_objext" >&6; }
2944 OBJEXT=$ac_cv_objext
2946 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler
" >&5
2947 echo $ECHO_N "checking whether we are using the GNU C compiler...
$ECHO_C" >&6; }
2948 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2949 echo $ECHO_N "(cached
) $ECHO_C" >&6
2951 cat >conftest.$ac_ext <<_ACEOF
2954 cat confdefs.h >>conftest.$ac_ext
2955 cat >>conftest.$ac_ext <<_ACEOF
2956 /* end confdefs.h. */
2969 rm -f conftest.$ac_objext
2970 if { (ac_try="$ac_compile"
2972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2973 *) ac_try_echo=$ac_try;;
2975 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2976 (eval "$ac_compile") 2>conftest.er1
2978 grep -v '^ *+' conftest.er1 >conftest.err
2980 cat conftest.err >&5
2981 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2982 (exit $ac_status); } && {
2983 test -z "$ac_c_werror_flag" ||
2984 test ! -s conftest.err
2985 } && test -s conftest.$ac_objext; then
2988 echo "$as_me: failed program was
:" >&5
2989 sed 's/^/| /' conftest.$ac_ext >&5
2994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2995 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2998 { echo "$as_me:$LINENO: result
: $ac_cv_c_compiler_gnu" >&5
2999 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3000 GCC=`test $ac_compiler_gnu = yes && echo yes`
3001 ac_test_CFLAGS=${CFLAGS+set}
3002 ac_save_CFLAGS=$CFLAGS
3003 { echo "$as_me:$LINENO: checking whether
$CC accepts
-g" >&5
3004 echo $ECHO_N "checking whether
$CC accepts
-g...
$ECHO_C" >&6; }
3005 if test "${ac_cv_prog_cc_g+set}" = set; then
3006 echo $ECHO_N "(cached
) $ECHO_C" >&6
3008 ac_save_c_werror_flag=$ac_c_werror_flag
3009 ac_c_werror_flag=yes
3012 cat >conftest.$ac_ext <<_ACEOF
3015 cat confdefs.h >>conftest.$ac_ext
3016 cat >>conftest.$ac_ext <<_ACEOF
3017 /* end confdefs.h. */
3027 rm -f conftest.$ac_objext
3028 if { (ac_try="$ac_compile"
3030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3031 *) ac_try_echo=$ac_try;;
3033 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3034 (eval "$ac_compile") 2>conftest.er1
3036 grep -v '^ *+' conftest.er1 >conftest.err
3038 cat conftest.err >&5
3039 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3040 (exit $ac_status); } && {
3041 test -z "$ac_c_werror_flag" ||
3042 test ! -s conftest.err
3043 } && test -s conftest.$ac_objext; then
3046 echo "$as_me: failed program was
:" >&5
3047 sed 's/^/| /' conftest.$ac_ext >&5
3050 cat >conftest.$ac_ext <<_ACEOF
3053 cat confdefs.h >>conftest.$ac_ext
3054 cat >>conftest.$ac_ext <<_ACEOF
3055 /* end confdefs.h. */
3065 rm -f conftest.$ac_objext
3066 if { (ac_try="$ac_compile"
3068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3069 *) ac_try_echo=$ac_try;;
3071 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3072 (eval "$ac_compile") 2>conftest.er1
3074 grep -v '^ *+' conftest.er1 >conftest.err
3076 cat conftest.err >&5
3077 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3078 (exit $ac_status); } && {
3079 test -z "$ac_c_werror_flag" ||
3080 test ! -s conftest.err
3081 } && test -s conftest.$ac_objext; then
3084 echo "$as_me: failed program was
:" >&5
3085 sed 's/^/| /' conftest.$ac_ext >&5
3087 ac_c_werror_flag=$ac_save_c_werror_flag
3089 cat >conftest.$ac_ext <<_ACEOF
3092 cat confdefs.h >>conftest.$ac_ext
3093 cat >>conftest.$ac_ext <<_ACEOF
3094 /* end confdefs.h. */
3104 rm -f conftest.$ac_objext
3105 if { (ac_try="$ac_compile"
3107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3108 *) ac_try_echo=$ac_try;;
3110 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3111 (eval "$ac_compile") 2>conftest.er1
3113 grep -v '^ *+' conftest.er1 >conftest.err
3115 cat conftest.err >&5
3116 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3117 (exit $ac_status); } && {
3118 test -z "$ac_c_werror_flag" ||
3119 test ! -s conftest.err
3120 } && test -s conftest.$ac_objext; then
3123 echo "$as_me: failed program was
:" >&5
3124 sed 's/^/| /' conftest.$ac_ext >&5
3129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3136 ac_c_werror_flag=$ac_save_c_werror_flag
3138 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_g" >&5
3139 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3140 if test "$ac_test_CFLAGS" = set; then
3141 CFLAGS=$ac_save_CFLAGS
3142 elif test $ac_cv_prog_cc_g = yes; then
3143 if test "$GCC" = yes; then
3149 if test "$GCC" = yes; then
3155 { echo "$as_me:$LINENO: checking
for $CC option to accept ISO C89
" >&5
3156 echo $ECHO_N "checking
for $CC option to accept ISO C89...
$ECHO_C" >&6; }
3157 if test "${ac_cv_prog_cc_c89+set}" = set; then
3158 echo $ECHO_N "(cached
) $ECHO_C" >&6
3160 ac_cv_prog_cc_c89=no
3162 cat >conftest.$ac_ext <<_ACEOF
3165 cat confdefs.h >>conftest.$ac_ext
3166 cat >>conftest.$ac_ext <<_ACEOF
3167 /* end confdefs.h. */
3170 #include <sys/types.h>
3171 #include <sys/stat.h>
3172 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3173 struct buf { int x; };
3174 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3175 static char *e (p, i)
3181 static char *f (char * (*g) (char **, int), char **p, ...)
3186 s = g (p, va_arg (v,int));
3191 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3192 function prototypes and stuff, but not '\xHH' hex character constants.
3193 These don't provoke an error unfortunately, instead are silently treated
3194 as 'x'. The following induces an error, until -std is added to get
3195 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3196 array size at least. It's necessary to write '\x00'==0 to get something
3197 that's true only with -std. */
3198 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3200 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3201 inside strings and character constants. */
3203 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3205 int test (int i, double x);
3206 struct s1 {int (*f) (int a);};
3207 struct s2 {int (*f) (double a);};
3208 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3214 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3219 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3220 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3222 CC="$ac_save_CC $ac_arg"
3223 rm -f conftest.$ac_objext
3224 if { (ac_try="$ac_compile"
3226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3227 *) ac_try_echo=$ac_try;;
3229 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3230 (eval "$ac_compile") 2>conftest.er1
3232 grep -v '^ *+' conftest.er1 >conftest.err
3234 cat conftest.err >&5
3235 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3236 (exit $ac_status); } && {
3237 test -z "$ac_c_werror_flag" ||
3238 test ! -s conftest.err
3239 } && test -s conftest.$ac_objext; then
3240 ac_cv_prog_cc_c89=$ac_arg
3242 echo "$as_me: failed program was
:" >&5
3243 sed 's/^/| /' conftest.$ac_ext >&5
3248 rm -f core conftest.err conftest.$ac_objext
3249 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
3251 rm -f conftest.$ac_ext
3256 case "x
$ac_cv_prog_cc_c89" in
3258 { echo "$as_me:$LINENO: result
: none needed
" >&5
3259 echo "${ECHO_T}none needed
" >&6; } ;;
3261 { echo "$as_me:$LINENO: result
: unsupported
" >&5
3262 echo "${ECHO_T}unsupported
" >&6; } ;;
3264 CC="$CC $ac_cv_prog_cc_c89"
3265 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_c89" >&5
3266 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3271 ac_cpp='$CPP $CPPFLAGS'
3272 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3273 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3274 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3277 test "x
$GCC" = xyes || { { echo "$as_me:$LINENO: error
: GCC is required
" >&5
3278 echo "$as_me: error
: GCC is required
" >&2;}
3279 { (exit 1); exit 1; }; }
3282 cat >>confdefs.h <<\_ACEOF
3283 #define _GNU_SOURCE 1
3288 # Check whether --enable-largefile was given.
3289 if test "${enable_largefile+set}" = set; then
3290 enableval=$enable_largefile;
3293 if test "$enable_largefile" != no; then
3295 { echo "$as_me:$LINENO: checking
for special C compiler options needed
for large files
" >&5
3296 echo $ECHO_N "checking
for special C compiler options needed
for large files...
$ECHO_C" >&6; }
3297 if test "${ac_cv_sys_largefile_CC+set}" = set; then
3298 echo $ECHO_N "(cached
) $ECHO_C" >&6
3300 ac_cv_sys_largefile_CC=no
3301 if test "$GCC" != yes; then
3304 # IRIX 6.2 and later do not support large files by default,
3305 # so use the C compiler's -n32 option if that helps.
3306 cat >conftest.$ac_ext <<_ACEOF
3309 cat confdefs.h >>conftest.$ac_ext
3310 cat >>conftest.$ac_ext <<_ACEOF
3311 /* end confdefs.h. */
3312 #include <sys/types.h>
3313 /* Check that off_t can represent 2**63 - 1 correctly.
3314 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3315 since some C++ compilers masquerading as C compilers
3316 incorrectly reject 9223372036854775807. */
3317 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3318 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3319 && LARGE_OFF_T % 2147483647 == 1)
3329 rm -f conftest.$ac_objext
3330 if { (ac_try="$ac_compile"
3332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3333 *) ac_try_echo=$ac_try;;
3335 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3336 (eval "$ac_compile") 2>conftest.er1
3338 grep -v '^ *+' conftest.er1 >conftest.err
3340 cat conftest.err >&5
3341 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3342 (exit $ac_status); } && {
3343 test -z "$ac_c_werror_flag" ||
3344 test ! -s conftest.err
3345 } && test -s conftest.$ac_objext; then
3348 echo "$as_me: failed program was
:" >&5
3349 sed 's/^/| /' conftest.$ac_ext >&5
3354 rm -f core conftest.err conftest.$ac_objext
3356 rm -f conftest.$ac_objext
3357 if { (ac_try="$ac_compile"
3359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3360 *) ac_try_echo=$ac_try;;
3362 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3363 (eval "$ac_compile") 2>conftest.er1
3365 grep -v '^ *+' conftest.er1 >conftest.err
3367 cat conftest.err >&5
3368 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3369 (exit $ac_status); } && {
3370 test -z "$ac_c_werror_flag" ||
3371 test ! -s conftest.err
3372 } && test -s conftest.$ac_objext; then
3373 ac_cv_sys_largefile_CC=' -n32'; break
3375 echo "$as_me: failed program was
:" >&5
3376 sed 's/^/| /' conftest.$ac_ext >&5
3381 rm -f core conftest.err conftest.$ac_objext
3385 rm -f conftest.$ac_ext
3388 { echo "$as_me:$LINENO: result
: $ac_cv_sys_largefile_CC" >&5
3389 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
3390 if test "$ac_cv_sys_largefile_CC" != no; then
3391 CC=$CC$ac_cv_sys_largefile_CC
3394 { echo "$as_me:$LINENO: checking
for _FILE_OFFSET_BITS value needed
for large files
" >&5
3395 echo $ECHO_N "checking
for _FILE_OFFSET_BITS value needed
for large files...
$ECHO_C" >&6; }
3396 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
3397 echo $ECHO_N "(cached
) $ECHO_C" >&6
3400 cat >conftest.$ac_ext <<_ACEOF
3403 cat confdefs.h >>conftest.$ac_ext
3404 cat >>conftest.$ac_ext <<_ACEOF
3405 /* end confdefs.h. */
3406 #include <sys/types.h>
3407 /* Check that off_t can represent 2**63 - 1 correctly.
3408 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3409 since some C++ compilers masquerading as C compilers
3410 incorrectly reject 9223372036854775807. */
3411 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3412 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3413 && LARGE_OFF_T % 2147483647 == 1)
3423 rm -f conftest.$ac_objext
3424 if { (ac_try="$ac_compile"
3426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3427 *) ac_try_echo=$ac_try;;
3429 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3430 (eval "$ac_compile") 2>conftest.er1
3432 grep -v '^ *+' conftest.er1 >conftest.err
3434 cat conftest.err >&5
3435 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3436 (exit $ac_status); } && {
3437 test -z "$ac_c_werror_flag" ||
3438 test ! -s conftest.err
3439 } && test -s conftest.$ac_objext; then
3440 ac_cv_sys_file_offset_bits=no; break
3442 echo "$as_me: failed program was
:" >&5
3443 sed 's/^/| /' conftest.$ac_ext >&5
3448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3449 cat >conftest.$ac_ext <<_ACEOF
3452 cat confdefs.h >>conftest.$ac_ext
3453 cat >>conftest.$ac_ext <<_ACEOF
3454 /* end confdefs.h. */
3455 #define _FILE_OFFSET_BITS 64
3456 #include <sys/types.h>
3457 /* Check that off_t can represent 2**63 - 1 correctly.
3458 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3459 since some C++ compilers masquerading as C compilers
3460 incorrectly reject 9223372036854775807. */
3461 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3462 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3463 && LARGE_OFF_T % 2147483647 == 1)
3473 rm -f conftest.$ac_objext
3474 if { (ac_try="$ac_compile"
3476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3477 *) ac_try_echo=$ac_try;;
3479 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3480 (eval "$ac_compile") 2>conftest.er1
3482 grep -v '^ *+' conftest.er1 >conftest.err
3484 cat conftest.err >&5
3485 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3486 (exit $ac_status); } && {
3487 test -z "$ac_c_werror_flag" ||
3488 test ! -s conftest.err
3489 } && test -s conftest.$ac_objext; then
3490 ac_cv_sys_file_offset_bits=64; break
3492 echo "$as_me: failed program was
:" >&5
3493 sed 's/^/| /' conftest.$ac_ext >&5
3498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3499 ac_cv_sys_file_offset_bits=unknown
3503 { echo "$as_me:$LINENO: result
: $ac_cv_sys_file_offset_bits" >&5
3504 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
3505 case $ac_cv_sys_file_offset_bits in #(
3508 cat >>confdefs.h <<_ACEOF
3509 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
3514 if test $ac_cv_sys_file_offset_bits = unknown; then
3515 { echo "$as_me:$LINENO: checking
for _LARGE_FILES value needed
for large files
" >&5
3516 echo $ECHO_N "checking
for _LARGE_FILES value needed
for large files...
$ECHO_C" >&6; }
3517 if test "${ac_cv_sys_large_files+set}" = set; then
3518 echo $ECHO_N "(cached
) $ECHO_C" >&6
3521 cat >conftest.$ac_ext <<_ACEOF
3524 cat confdefs.h >>conftest.$ac_ext
3525 cat >>conftest.$ac_ext <<_ACEOF
3526 /* end confdefs.h. */
3527 #include <sys/types.h>
3528 /* Check that off_t can represent 2**63 - 1 correctly.
3529 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3530 since some C++ compilers masquerading as C compilers
3531 incorrectly reject 9223372036854775807. */
3532 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3533 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3534 && LARGE_OFF_T % 2147483647 == 1)
3544 rm -f conftest.$ac_objext
3545 if { (ac_try="$ac_compile"
3547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3548 *) ac_try_echo=$ac_try;;
3550 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3551 (eval "$ac_compile") 2>conftest.er1
3553 grep -v '^ *+' conftest.er1 >conftest.err
3555 cat conftest.err >&5
3556 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3557 (exit $ac_status); } && {
3558 test -z "$ac_c_werror_flag" ||
3559 test ! -s conftest.err
3560 } && test -s conftest.$ac_objext; then
3561 ac_cv_sys_large_files=no; break
3563 echo "$as_me: failed program was
:" >&5
3564 sed 's/^/| /' conftest.$ac_ext >&5
3569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3570 cat >conftest.$ac_ext <<_ACEOF
3573 cat confdefs.h >>conftest.$ac_ext
3574 cat >>conftest.$ac_ext <<_ACEOF
3575 /* end confdefs.h. */
3576 #define _LARGE_FILES 1
3577 #include <sys/types.h>
3578 /* Check that off_t can represent 2**63 - 1 correctly.
3579 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3580 since some C++ compilers masquerading as C compilers
3581 incorrectly reject 9223372036854775807. */
3582 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3583 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3584 && LARGE_OFF_T % 2147483647 == 1)
3594 rm -f conftest.$ac_objext
3595 if { (ac_try="$ac_compile"
3597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3598 *) ac_try_echo=$ac_try;;
3600 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3601 (eval "$ac_compile") 2>conftest.er1
3603 grep -v '^ *+' conftest.er1 >conftest.err
3605 cat conftest.err >&5
3606 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3607 (exit $ac_status); } && {
3608 test -z "$ac_c_werror_flag" ||
3609 test ! -s conftest.err
3610 } && test -s conftest.$ac_objext; then
3611 ac_cv_sys_large_files=1; break
3613 echo "$as_me: failed program was
:" >&5
3614 sed 's/^/| /' conftest.$ac_ext >&5
3619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3620 ac_cv_sys_large_files=unknown
3624 { echo "$as_me:$LINENO: result
: $ac_cv_sys_large_files" >&5
3625 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
3626 case $ac_cv_sys_large_files in #(
3629 cat >>confdefs.h <<_ACEOF
3630 #define _LARGE_FILES $ac_cv_sys_large_files
3639 # Identify characteristics of the host architecture.
3641 ac_cpp='$CPP $CPPFLAGS'
3642 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3643 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3644 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3645 { echo "$as_me:$LINENO: checking how to run the C preprocessor
" >&5
3646 echo $ECHO_N "checking how to run the C preprocessor...
$ECHO_C" >&6; }
3647 # On Suns, sometimes $CPP names a directory.
3648 if test -n "$CPP" && test -d "$CPP"; then
3651 if test -z "$CPP"; then
3652 if test "${ac_cv_prog_CPP+set}" = set; then
3653 echo $ECHO_N "(cached
) $ECHO_C" >&6
3655 # Double quotes because CPP needs to be expanded
3656 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
3659 for ac_c_preproc_warn_flag in '' yes
3661 # Use a header file that comes with gcc, so configuring glibc
3662 # with a fresh cross-compiler works.
3663 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3664 # <limits.h> exists even on freestanding compilers.
3665 # On the NeXT, cc -E runs the code through the compiler's parser,
3666 # not just through cpp. "Syntax error
" is here to catch this case.
3667 cat >conftest.$ac_ext <<_ACEOF
3670 cat confdefs.h >>conftest.$ac_ext
3671 cat >>conftest.$ac_ext <<_ACEOF
3672 /* end confdefs.h. */
3674 # include <limits.h>
3676 # include <assert.h>
3680 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3683 *) ac_try_echo=$ac_try;;
3685 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3686 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3688 grep -v '^ *+' conftest.er1 >conftest.err
3690 cat conftest.err >&5
3691 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3692 (exit $ac_status); } >/dev/null && {
3693 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3694 test ! -s conftest.err
3698 echo "$as_me: failed program was
:" >&5
3699 sed 's/^/| /' conftest.$ac_ext >&5
3701 # Broken: fails on valid input.
3705 rm -f conftest.err conftest.$ac_ext
3707 # OK, works on sane cases. Now check whether nonexistent headers
3708 # can be detected and how.
3709 cat >conftest.$ac_ext <<_ACEOF
3712 cat confdefs.h >>conftest.$ac_ext
3713 cat >>conftest.$ac_ext <<_ACEOF
3714 /* end confdefs.h. */
3715 #include <ac_nonexistent.h>
3717 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3720 *) ac_try_echo=$ac_try;;
3722 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3723 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3725 grep -v '^ *+' conftest.er1 >conftest.err
3727 cat conftest.err >&5
3728 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3729 (exit $ac_status); } >/dev/null && {
3730 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3731 test ! -s conftest.err
3733 # Broken: success on invalid input.
3736 echo "$as_me: failed program was
:" >&5
3737 sed 's/^/| /' conftest.$ac_ext >&5
3739 # Passes both tests.
3744 rm -f conftest.err conftest.$ac_ext
3747 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3748 rm -f conftest.err conftest.$ac_ext
3749 if $ac_preproc_ok; then
3761 { echo "$as_me:$LINENO: result
: $CPP" >&5
3762 echo "${ECHO_T}$CPP" >&6; }
3764 for ac_c_preproc_warn_flag in '' yes
3766 # Use a header file that comes with gcc, so configuring glibc
3767 # with a fresh cross-compiler works.
3768 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3769 # <limits.h> exists even on freestanding compilers.
3770 # On the NeXT, cc -E runs the code through the compiler's parser,
3771 # not just through cpp. "Syntax error
" is here to catch this case.
3772 cat >conftest.$ac_ext <<_ACEOF
3775 cat confdefs.h >>conftest.$ac_ext
3776 cat >>conftest.$ac_ext <<_ACEOF
3777 /* end confdefs.h. */
3779 # include <limits.h>
3781 # include <assert.h>
3785 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3788 *) ac_try_echo=$ac_try;;
3790 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3791 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3793 grep -v '^ *+' conftest.er1 >conftest.err
3795 cat conftest.err >&5
3796 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3797 (exit $ac_status); } >/dev/null && {
3798 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3799 test ! -s conftest.err
3803 echo "$as_me: failed program was
:" >&5
3804 sed 's/^/| /' conftest.$ac_ext >&5
3806 # Broken: fails on valid input.
3810 rm -f conftest.err conftest.$ac_ext
3812 # OK, works on sane cases. Now check whether nonexistent headers
3813 # can be detected and how.
3814 cat >conftest.$ac_ext <<_ACEOF
3817 cat confdefs.h >>conftest.$ac_ext
3818 cat >>conftest.$ac_ext <<_ACEOF
3819 /* end confdefs.h. */
3820 #include <ac_nonexistent.h>
3822 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3825 *) ac_try_echo=$ac_try;;
3827 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3828 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3830 grep -v '^ *+' conftest.er1 >conftest.err
3832 cat conftest.err >&5
3833 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3834 (exit $ac_status); } >/dev/null && {
3835 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3836 test ! -s conftest.err
3838 # Broken: success on invalid input.
3841 echo "$as_me: failed program was
:" >&5
3842 sed 's/^/| /' conftest.$ac_ext >&5
3844 # Passes both tests.
3849 rm -f conftest.err conftest.$ac_ext
3852 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3853 rm -f conftest.err conftest.$ac_ext
3854 if $ac_preproc_ok; then
3857 { { echo "$as_me:$LINENO: error
: C preprocessor
\"$CPP\" fails sanity check
3858 See \
`config.log' for more details." >&5
3859 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3860 See \`config.log
' for more details." >&2;}
3861 { (exit 1); exit 1; }; }
3865 ac_cpp='$CPP $CPPFLAGS'
3866 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
3867 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
3868 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3871 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3872 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3873 if test "${ac_cv_path_GREP+set}" = set; then
3874 echo $ECHO_N "(cached) $ECHO_C" >&6
3876 # Extract the first word of "grep ggrep" to use in msg output
3877 if test -z "$GREP"; then
3878 set dummy grep ggrep; ac_prog_name=$2
3879 if test "${ac_cv_path_GREP+set}" = set; then
3880 echo $ECHO_N "(cached) $ECHO_C" >&6
3882 ac_path_GREP_found=false
3883 # Loop through the user's path and
test for each of PROGNAME-LIST
3884 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3885 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3888 test -z "$as_dir" && as_dir
=.
3889 for ac_prog
in grep ggrep
; do
3890 for ac_exec_ext
in '' $ac_executable_extensions; do
3891 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3892 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
3893 # Check for GNU ac_path_GREP and select it if it is found.
3894 # Check for GNU $ac_path_GREP
3895 case `"$ac_path_GREP" --version 2>&1` in
3897 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3900 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3903 cat "conftest.in" "conftest.in" >"conftest.tmp"
3904 mv "conftest.tmp" "conftest.in"
3905 cp "conftest.in" "conftest.nl"
3906 echo 'GREP' >> "conftest.nl"
3907 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3908 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3909 ac_count
=`expr $ac_count + 1`
3910 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3911 # Best one so far, save it but keep looking for a better one
3912 ac_cv_path_GREP
="$ac_path_GREP"
3913 ac_path_GREP_max
=$ac_count
3915 # 10*(2^10) chars as input seems more than enough
3916 test $ac_count -gt 10 && break
3918 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3922 $ac_path_GREP_found && break 3
3932 GREP
="$ac_cv_path_GREP"
3933 if test -z "$GREP"; then
3934 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3935 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3936 { (exit 1); exit 1; }; }
3940 ac_cv_path_GREP
=$GREP
3945 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3946 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3947 GREP
="$ac_cv_path_GREP"
3950 { echo "$as_me:$LINENO: checking for egrep" >&5
3951 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3952 if test "${ac_cv_path_EGREP+set}" = set; then
3953 echo $ECHO_N "(cached) $ECHO_C" >&6
3955 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
3956 then ac_cv_path_EGREP
="$GREP -E"
3958 # Extract the first word of "egrep" to use in msg output
3959 if test -z "$EGREP"; then
3960 set dummy
egrep; ac_prog_name
=$2
3961 if test "${ac_cv_path_EGREP+set}" = set; then
3962 echo $ECHO_N "(cached) $ECHO_C" >&6
3964 ac_path_EGREP_found
=false
3965 # Loop through the user's path and test for each of PROGNAME-LIST
3966 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3967 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3970 test -z "$as_dir" && as_dir
=.
3971 for ac_prog
in egrep; do
3972 for ac_exec_ext
in '' $ac_executable_extensions; do
3973 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
3974 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
3975 # Check for GNU ac_path_EGREP and select it if it is found.
3976 # Check for GNU $ac_path_EGREP
3977 case `"$ac_path_EGREP" --version 2>&1` in
3979 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
3982 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3985 cat "conftest.in" "conftest.in" >"conftest.tmp"
3986 mv "conftest.tmp" "conftest.in"
3987 cp "conftest.in" "conftest.nl"
3988 echo 'EGREP' >> "conftest.nl"
3989 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3990 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3991 ac_count
=`expr $ac_count + 1`
3992 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3993 # Best one so far, save it but keep looking for a better one
3994 ac_cv_path_EGREP
="$ac_path_EGREP"
3995 ac_path_EGREP_max
=$ac_count
3997 # 10*(2^10) chars as input seems more than enough
3998 test $ac_count -gt 10 && break
4000 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4004 $ac_path_EGREP_found && break 3
4014 EGREP
="$ac_cv_path_EGREP"
4015 if test -z "$EGREP"; then
4016 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4017 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4018 { (exit 1); exit 1; }; }
4022 ac_cv_path_EGREP
=$EGREP
4028 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4029 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4030 EGREP
="$ac_cv_path_EGREP"
4033 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4034 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4035 if test "${ac_cv_header_stdc+set}" = set; then
4036 echo $ECHO_N "(cached) $ECHO_C" >&6
4038 cat >conftest.
$ac_ext <<_ACEOF
4041 cat confdefs.h
>>conftest.
$ac_ext
4042 cat >>conftest.
$ac_ext <<_ACEOF
4043 /* end confdefs.h. */
4057 rm -f conftest.
$ac_objext
4058 if { (ac_try
="$ac_compile"
4060 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4061 *) ac_try_echo=$ac_try;;
4063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4064 (eval "$ac_compile") 2>conftest.er1
4066 grep -v '^ *+' conftest.er1 >conftest.err
4068 cat conftest.err >&5
4069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4070 (exit $ac_status); } && {
4071 test -z "$ac_c_werror_flag" ||
4072 test ! -s conftest.err
4073 } && test -s conftest.$ac_objext; then
4074 ac_cv_header_stdc=yes
4076 echo "$as_me: failed program was:" >&5
4077 sed 's/^/| /' conftest.$ac_ext >&5
4079 ac_cv_header_stdc=no
4082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4084 if test $ac_cv_header_stdc = yes; then
4085 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4086 cat >conftest.$ac_ext <<_ACEOF
4089 cat confdefs.h >>conftest.$ac_ext
4090 cat >>conftest.$ac_ext <<_ACEOF
4091 /* end confdefs.h. */
4095 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4096 $EGREP "memchr" >/dev/null 2>&1; then
4099 ac_cv_header_stdc=no
4105 if test $ac_cv_header_stdc = yes; then
4106 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4107 cat >conftest.$ac_ext <<_ACEOF
4110 cat confdefs.h >>conftest.$ac_ext
4111 cat >>conftest.$ac_ext <<_ACEOF
4112 /* end confdefs.h. */
4116 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4117 $EGREP "free" >/dev/null 2>&1; then
4120 ac_cv_header_stdc=no
4126 if test $ac_cv_header_stdc = yes; then
4127 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4128 if test "$cross_compiling" = yes; then
4131 cat >conftest.$ac_ext <<_ACEOF
4134 cat confdefs.h >>conftest.$ac_ext
4135 cat >>conftest.$ac_ext <<_ACEOF
4136 /* end confdefs.h. */
4139 #if ((' ' & 0x0FF) == 0x020)
4140 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4141 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4143 # define ISLOWER(c) \
4144 (('a' <= (c) && (c) <= 'i') \
4145 || ('j' <= (c) && (c) <= 'r') \
4146 || ('s' <= (c) && (c) <= 'z'))
4147 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4150 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4155 for (i = 0; i < 256; i++)
4156 if (XOR (islower (i), ISLOWER (i))
4157 || toupper (i) != TOUPPER (i))
4162 rm -f conftest$ac_exeext
4163 if { (ac_try="$ac_link"
4165 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4166 *) ac_try_echo
=$ac_try;;
4168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4169 (eval "$ac_link") 2>&5
4171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4172 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4173 { (case "(($ac_try" in
4174 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4175 *) ac_try_echo=$ac_try;;
4177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4178 (eval "$ac_try") 2>&5
4180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4181 (exit $ac_status); }; }; then
4184 echo "$as_me: program exited with status $ac_status" >&5
4185 echo "$as_me: failed program was:" >&5
4186 sed 's/^/| /' conftest.$ac_ext >&5
4189 ac_cv_header_stdc=no
4191 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4197 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4198 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4199 if test $ac_cv_header_stdc = yes; then
4201 cat >>confdefs.h <<\_ACEOF
4202 #define STDC_HEADERS 1
4207 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4217 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4218 inttypes.h stdint.h unistd.h
4220 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
4221 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4222 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4223 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4224 echo $ECHO_N "(cached) $ECHO_C" >&6
4226 cat >conftest.$ac_ext <<_ACEOF
4229 cat confdefs.h >>conftest.$ac_ext
4230 cat >>conftest.$ac_ext <<_ACEOF
4231 /* end confdefs.h. */
4232 $ac_includes_default
4234 #include <$ac_header>
4236 rm -f conftest.$ac_objext
4237 if { (ac_try="$ac_compile"
4239 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4240 *) ac_try_echo
=$ac_try;;
4242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4243 (eval "$ac_compile") 2>conftest.er1
4245 grep -v '^ *+' conftest.er1
>conftest.err
4247 cat conftest.err
>&5
4248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4249 (exit $ac_status); } && {
4250 test -z "$ac_c_werror_flag" ||
4251 test ! -s conftest.err
4252 } && test -s conftest.
$ac_objext; then
4253 eval "$as_ac_Header=yes"
4255 echo "$as_me: failed program was:" >&5
4256 sed 's/^/| /' conftest.
$ac_ext >&5
4258 eval "$as_ac_Header=no"
4261 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4263 ac_res
=`eval echo '${'$as_ac_Header'}'`
4264 { echo "$as_me:$LINENO: result: $ac_res" >&5
4265 echo "${ECHO_T}$ac_res" >&6; }
4266 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4267 cat >>confdefs.h
<<_ACEOF
4268 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4276 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4277 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4278 if test "${ac_cv_c_bigendian+set}" = set; then
4279 echo $ECHO_N "(cached) $ECHO_C" >&6
4281 # See if sys/param.h defines the BYTE_ORDER macro.
4282 cat >conftest.
$ac_ext <<_ACEOF
4285 cat confdefs.h
>>conftest.
$ac_ext
4286 cat >>conftest.
$ac_ext <<_ACEOF
4287 /* end confdefs.h. */
4288 #include <sys/types.h>
4289 #include <sys/param.h>
4294 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
4295 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
4303 rm -f conftest.
$ac_objext
4304 if { (ac_try
="$ac_compile"
4306 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4307 *) ac_try_echo=$ac_try;;
4309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4310 (eval "$ac_compile") 2>conftest.er1
4312 grep -v '^ *+' conftest.er1 >conftest.err
4314 cat conftest.err >&5
4315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4316 (exit $ac_status); } && {
4317 test -z "$ac_c_werror_flag" ||
4318 test ! -s conftest.err
4319 } && test -s conftest.$ac_objext; then
4320 # It does; now see whether it defined to BIG_ENDIAN or not.
4321 cat >conftest.$ac_ext <<_ACEOF
4324 cat confdefs.h >>conftest.$ac_ext
4325 cat >>conftest.$ac_ext <<_ACEOF
4326 /* end confdefs.h. */
4327 #include <sys/types.h>
4328 #include <sys/param.h>
4333 #if BYTE_ORDER != BIG_ENDIAN
4341 rm -f conftest.$ac_objext
4342 if { (ac_try="$ac_compile"
4344 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4345 *) ac_try_echo
=$ac_try;;
4347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4348 (eval "$ac_compile") 2>conftest.er1
4350 grep -v '^ *+' conftest.er1
>conftest.err
4352 cat conftest.err
>&5
4353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4354 (exit $ac_status); } && {
4355 test -z "$ac_c_werror_flag" ||
4356 test ! -s conftest.err
4357 } && test -s conftest.
$ac_objext; then
4358 ac_cv_c_bigendian
=yes
4360 echo "$as_me: failed program was:" >&5
4361 sed 's/^/| /' conftest.
$ac_ext >&5
4363 ac_cv_c_bigendian
=no
4366 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4368 echo "$as_me: failed program was:" >&5
4369 sed 's/^/| /' conftest.
$ac_ext >&5
4371 # It does not; compile a test program.
4372 if test "$cross_compiling" = yes; then
4373 # try to guess the endianness by grepping values into an object file
4374 ac_cv_c_bigendian
=unknown
4375 cat >conftest.
$ac_ext <<_ACEOF
4378 cat confdefs.h
>>conftest.
$ac_ext
4379 cat >>conftest.
$ac_ext <<_ACEOF
4380 /* end confdefs.h. */
4381 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4382 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4383 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4384 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4385 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4386 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4390 _ascii (); _ebcdic ();
4395 rm -f conftest.
$ac_objext
4396 if { (ac_try
="$ac_compile"
4398 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4399 *) ac_try_echo=$ac_try;;
4401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4402 (eval "$ac_compile") 2>conftest.er1
4404 grep -v '^ *+' conftest.er1 >conftest.err
4406 cat conftest.err >&5
4407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4408 (exit $ac_status); } && {
4409 test -z "$ac_c_werror_flag" ||
4410 test ! -s conftest.err
4411 } && test -s conftest.$ac_objext; then
4412 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4413 ac_cv_c_bigendian=yes
4415 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4416 if test "$ac_cv_c_bigendian" = unknown; then
4417 ac_cv_c_bigendian=no
4419 # finding both strings is unlikely to happen, but who knows?
4420 ac_cv_c_bigendian=unknown
4424 echo "$as_me: failed program was:" >&5
4425 sed 's/^/| /' conftest.$ac_ext >&5
4430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4432 cat >conftest.$ac_ext <<_ACEOF
4435 cat confdefs.h >>conftest.$ac_ext
4436 cat >>conftest.$ac_ext <<_ACEOF
4437 /* end confdefs.h. */
4438 $ac_includes_default
4443 /* Are we little or big endian? From Harbison&Steele. */
4447 char c[sizeof (long int)];
4450 return u.c[sizeof (long int) - 1] == 1;
4456 rm -f conftest$ac_exeext
4457 if { (ac_try="$ac_link"
4459 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4460 *) ac_try_echo
=$ac_try;;
4462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4463 (eval "$ac_link") 2>&5
4465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4466 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4467 { (case "(($ac_try" in
4468 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4469 *) ac_try_echo=$ac_try;;
4471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4472 (eval "$ac_try") 2>&5
4474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4475 (exit $ac_status); }; }; then
4476 ac_cv_c_bigendian=no
4478 echo "$as_me: program exited with status $ac_status" >&5
4479 echo "$as_me: failed program was:" >&5
4480 sed 's/^/| /' conftest.$ac_ext >&5
4483 ac_cv_c_bigendian=yes
4485 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4493 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4494 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4495 case $ac_cv_c_bigendian in
4498 cat >>confdefs.h <<\_ACEOF
4499 #define WORDS_BIGENDIAN 1
4505 { { echo "$as_me:$LINENO: error: unknown endianness
4506 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4507 echo "$as_me: error: unknown endianness
4508 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4509 { (exit 1); exit 1; }; } ;;
4512 { echo "$as_me:$LINENO: checking for void *" >&5
4513 echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
4514 if test "${ac_cv_type_void_p+set}" = set; then
4515 echo $ECHO_N "(cached) $ECHO_C" >&6
4517 cat >conftest.$ac_ext <<_ACEOF
4520 cat confdefs.h >>conftest.$ac_ext
4521 cat >>conftest.$ac_ext <<_ACEOF
4522 /* end confdefs.h. */
4523 $ac_includes_default
4524 typedef void * ac__type_new_;
4528 if ((ac__type_new_ *) 0)
4530 if (sizeof (ac__type_new_))
4536 rm -f conftest.$ac_objext
4537 if { (ac_try="$ac_compile"
4539 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4540 *) ac_try_echo
=$ac_try;;
4542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4543 (eval "$ac_compile") 2>conftest.er1
4545 grep -v '^ *+' conftest.er1
>conftest.err
4547 cat conftest.err
>&5
4548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4549 (exit $ac_status); } && {
4550 test -z "$ac_c_werror_flag" ||
4551 test ! -s conftest.err
4552 } && test -s conftest.
$ac_objext; then
4553 ac_cv_type_void_p
=yes
4555 echo "$as_me: failed program was:" >&5
4556 sed 's/^/| /' conftest.
$ac_ext >&5
4558 ac_cv_type_void_p
=no
4561 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4563 { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
4564 echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
4566 # The cast to long int works around a bug in the HP C Compiler
4567 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4568 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4569 # This bug is HP SR number 8606223364.
4570 { echo "$as_me:$LINENO: checking size of void *" >&5
4571 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
4572 if test "${ac_cv_sizeof_void_p+set}" = set; then
4573 echo $ECHO_N "(cached) $ECHO_C" >&6
4575 if test "$cross_compiling" = yes; then
4576 # Depending upon the size, compute the lo and hi bounds.
4577 cat >conftest.
$ac_ext <<_ACEOF
4580 cat confdefs.h
>>conftest.
$ac_ext
4581 cat >>conftest.
$ac_ext <<_ACEOF
4582 /* end confdefs.h. */
4583 $ac_includes_default
4584 typedef void * ac__type_sizeof_;
4588 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
4595 rm -f conftest.
$ac_objext
4596 if { (ac_try
="$ac_compile"
4598 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4599 *) ac_try_echo=$ac_try;;
4601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4602 (eval "$ac_compile") 2>conftest.er1
4604 grep -v '^ *+' conftest.er1 >conftest.err
4606 cat conftest.err >&5
4607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4608 (exit $ac_status); } && {
4609 test -z "$ac_c_werror_flag" ||
4610 test ! -s conftest.err
4611 } && test -s conftest.$ac_objext; then
4614 cat >conftest.$ac_ext <<_ACEOF
4617 cat confdefs.h >>conftest.$ac_ext
4618 cat >>conftest.$ac_ext <<_ACEOF
4619 /* end confdefs.h. */
4620 $ac_includes_default
4621 typedef void * ac__type_sizeof_;
4625 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
4632 rm -f conftest.$ac_objext
4633 if { (ac_try="$ac_compile"
4635 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4636 *) ac_try_echo
=$ac_try;;
4638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4639 (eval "$ac_compile") 2>conftest.er1
4641 grep -v '^ *+' conftest.er1
>conftest.err
4643 cat conftest.err
>&5
4644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4645 (exit $ac_status); } && {
4646 test -z "$ac_c_werror_flag" ||
4647 test ! -s conftest.err
4648 } && test -s conftest.
$ac_objext; then
4649 ac_hi
=$ac_mid; break
4651 echo "$as_me: failed program was:" >&5
4652 sed 's/^/| /' conftest.
$ac_ext >&5
4654 ac_lo
=`expr $ac_mid + 1`
4655 if test $ac_lo -le $ac_mid; then
4659 ac_mid
=`expr 2 '*' $ac_mid + 1`
4662 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4665 echo "$as_me: failed program was:" >&5
4666 sed 's/^/| /' conftest.
$ac_ext >&5
4668 cat >conftest.
$ac_ext <<_ACEOF
4671 cat confdefs.h
>>conftest.
$ac_ext
4672 cat >>conftest.
$ac_ext <<_ACEOF
4673 /* end confdefs.h. */
4674 $ac_includes_default
4675 typedef void * ac__type_sizeof_;
4679 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
4686 rm -f conftest.
$ac_objext
4687 if { (ac_try
="$ac_compile"
4689 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4690 *) ac_try_echo=$ac_try;;
4692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4693 (eval "$ac_compile") 2>conftest.er1
4695 grep -v '^ *+' conftest.er1 >conftest.err
4697 cat conftest.err >&5
4698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4699 (exit $ac_status); } && {
4700 test -z "$ac_c_werror_flag" ||
4701 test ! -s conftest.err
4702 } && test -s conftest.$ac_objext; then
4705 cat >conftest.$ac_ext <<_ACEOF
4708 cat confdefs.h >>conftest.$ac_ext
4709 cat >>conftest.$ac_ext <<_ACEOF
4710 /* end confdefs.h. */
4711 $ac_includes_default
4712 typedef void * ac__type_sizeof_;
4716 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
4723 rm -f conftest.$ac_objext
4724 if { (ac_try="$ac_compile"
4726 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4727 *) ac_try_echo
=$ac_try;;
4729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4730 (eval "$ac_compile") 2>conftest.er1
4732 grep -v '^ *+' conftest.er1
>conftest.err
4734 cat conftest.err
>&5
4735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4736 (exit $ac_status); } && {
4737 test -z "$ac_c_werror_flag" ||
4738 test ! -s conftest.err
4739 } && test -s conftest.
$ac_objext; then
4740 ac_lo
=$ac_mid; break
4742 echo "$as_me: failed program was:" >&5
4743 sed 's/^/| /' conftest.
$ac_ext >&5
4745 ac_hi
=`expr '(' $ac_mid ')' - 1`
4746 if test $ac_mid -le $ac_hi; then
4750 ac_mid
=`expr 2 '*' $ac_mid`
4753 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4756 echo "$as_me: failed program was:" >&5
4757 sed 's/^/| /' conftest.
$ac_ext >&5
4762 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4765 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4766 # Binary search between lo and hi bounds.
4767 while test "x$ac_lo" != "x$ac_hi"; do
4768 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4769 cat >conftest.
$ac_ext <<_ACEOF
4772 cat confdefs.h
>>conftest.
$ac_ext
4773 cat >>conftest.
$ac_ext <<_ACEOF
4774 /* end confdefs.h. */
4775 $ac_includes_default
4776 typedef void * ac__type_sizeof_;
4780 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
4787 rm -f conftest.
$ac_objext
4788 if { (ac_try
="$ac_compile"
4790 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4791 *) ac_try_echo=$ac_try;;
4793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4794 (eval "$ac_compile") 2>conftest.er1
4796 grep -v '^ *+' conftest.er1 >conftest.err
4798 cat conftest.err >&5
4799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4800 (exit $ac_status); } && {
4801 test -z "$ac_c_werror_flag" ||
4802 test ! -s conftest.err
4803 } && test -s conftest.$ac_objext; then
4806 echo "$as_me: failed program was:" >&5
4807 sed 's/^/| /' conftest.$ac_ext >&5
4809 ac_lo=`expr '(' $ac_mid ')' + 1`
4812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4815 ?*) ac_cv_sizeof_void_p=$ac_lo;;
4816 '') if test "$ac_cv_type_void_p" = yes; then
4817 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
4818 See \`config.log
' for more details." >&5
4819 echo "$as_me: error: cannot compute sizeof (void *)
4820 See \`config.log' for more details.
" >&2;}
4821 { (exit 77); exit 77; }; }
4823 ac_cv_sizeof_void_p=0
4827 cat >conftest.$ac_ext <<_ACEOF
4830 cat confdefs.h >>conftest.$ac_ext
4831 cat >>conftest.$ac_ext <<_ACEOF
4832 /* end confdefs.h. */
4833 $ac_includes_default
4834 typedef void * ac__type_sizeof_;
4835 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
4836 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
4843 FILE *f = fopen ("conftest.val
", "w
");
4846 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
4848 long int i = longval ();
4849 if (i != ((long int) (sizeof (ac__type_sizeof_))))
4851 fprintf (f, "%ld
\n", i);
4855 unsigned long int i = ulongval ();
4856 if (i != ((long int) (sizeof (ac__type_sizeof_))))
4858 fprintf (f, "%lu
\n", i);
4860 return ferror (f) || fclose (f) != 0;
4866 rm -f conftest$ac_exeext
4867 if { (ac_try="$ac_link"
4869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4870 *) ac_try_echo=$ac_try;;
4872 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4873 (eval "$ac_link") 2>&5
4875 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4876 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4877 { (case "(($ac_try" in
4878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4879 *) ac_try_echo=$ac_try;;
4881 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4882 (eval "$ac_try") 2>&5
4884 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4885 (exit $ac_status); }; }; then
4886 ac_cv_sizeof_void_p=`cat conftest.val`
4888 echo "$as_me: program exited with status
$ac_status" >&5
4889 echo "$as_me: failed program was
:" >&5
4890 sed 's/^/| /' conftest.$ac_ext >&5
4893 if test "$ac_cv_type_void_p" = yes; then
4894 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(void
*)
4895 See \
`config.log' for more details." >&5
4896 echo "$as_me: error: cannot compute sizeof (void *)
4897 See \`config.log
' for more details." >&2;}
4898 { (exit 77); exit 77; }; }
4900 ac_cv_sizeof_void_p=0
4903 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4907 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
4908 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
4912 cat >>confdefs.h <<_ACEOF
4913 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
4917 { echo "$as_me:$LINENO: checking for long" >&5
4918 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
4919 if test "${ac_cv_type_long+set}" = set; then
4920 echo $ECHO_N "(cached) $ECHO_C" >&6
4922 cat >conftest.$ac_ext <<_ACEOF
4925 cat confdefs.h >>conftest.$ac_ext
4926 cat >>conftest.$ac_ext <<_ACEOF
4927 /* end confdefs.h. */
4928 $ac_includes_default
4929 typedef long ac__type_new_;
4933 if ((ac__type_new_ *) 0)
4935 if (sizeof (ac__type_new_))
4941 rm -f conftest.$ac_objext
4942 if { (ac_try="$ac_compile"
4944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4945 *) ac_try_echo=$ac_try;;
4947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4948 (eval "$ac_compile") 2>conftest.er1
4950 grep -v '^
*+' conftest.er1 >conftest.err
4952 cat conftest.err >&5
4953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4954 (exit $ac_status); } && {
4955 test -z "$ac_c_werror_flag" ||
4956 test ! -s conftest.err
4957 } && test -s conftest.$ac_objext; then
4960 echo "$as_me: failed program was:" >&5
4961 sed 's
/^
/|
/' conftest.$ac_ext >&5
4966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4968 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
4969 echo "${ECHO_T}$ac_cv_type_long" >&6; }
4971 # The cast to long int works around a bug in the HP C Compiler
4972 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4973 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4974 # This bug is HP SR number 8606223364.
4975 { echo "$as_me:$LINENO: checking size of long" >&5
4976 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
4977 if test "${ac_cv_sizeof_long+set}" = set; then
4978 echo $ECHO_N "(cached) $ECHO_C" >&6
4980 if test "$cross_compiling" = yes; then
4981 # Depending upon the size, compute the lo and hi bounds.
4982 cat >conftest.
$ac_ext <<_ACEOF
4985 cat confdefs.h
>>conftest.
$ac_ext
4986 cat >>conftest.
$ac_ext <<_ACEOF
4987 /* end confdefs.h. */
4988 $ac_includes_default
4989 typedef long ac__type_sizeof_;
4993 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
5000 rm -f conftest.
$ac_objext
5001 if { (ac_try
="$ac_compile"
5003 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5004 *) ac_try_echo=$ac_try;;
5006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5007 (eval "$ac_compile") 2>conftest.er1
5009 grep -v '^ *+' conftest.er1 >conftest.err
5011 cat conftest.err >&5
5012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5013 (exit $ac_status); } && {
5014 test -z "$ac_c_werror_flag" ||
5015 test ! -s conftest.err
5016 } && test -s conftest.$ac_objext; then
5019 cat >conftest.$ac_ext <<_ACEOF
5022 cat confdefs.h >>conftest.$ac_ext
5023 cat >>conftest.$ac_ext <<_ACEOF
5024 /* end confdefs.h. */
5025 $ac_includes_default
5026 typedef long ac__type_sizeof_;
5030 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5037 rm -f conftest.$ac_objext
5038 if { (ac_try="$ac_compile"
5040 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5041 *) ac_try_echo
=$ac_try;;
5043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5044 (eval "$ac_compile") 2>conftest.er1
5046 grep -v '^ *+' conftest.er1
>conftest.err
5048 cat conftest.err
>&5
5049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5050 (exit $ac_status); } && {
5051 test -z "$ac_c_werror_flag" ||
5052 test ! -s conftest.err
5053 } && test -s conftest.
$ac_objext; then
5054 ac_hi
=$ac_mid; break
5056 echo "$as_me: failed program was:" >&5
5057 sed 's/^/| /' conftest.
$ac_ext >&5
5059 ac_lo
=`expr $ac_mid + 1`
5060 if test $ac_lo -le $ac_mid; then
5064 ac_mid
=`expr 2 '*' $ac_mid + 1`
5067 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5070 echo "$as_me: failed program was:" >&5
5071 sed 's/^/| /' conftest.
$ac_ext >&5
5073 cat >conftest.
$ac_ext <<_ACEOF
5076 cat confdefs.h
>>conftest.
$ac_ext
5077 cat >>conftest.
$ac_ext <<_ACEOF
5078 /* end confdefs.h. */
5079 $ac_includes_default
5080 typedef long ac__type_sizeof_;
5084 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
5091 rm -f conftest.
$ac_objext
5092 if { (ac_try
="$ac_compile"
5094 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5095 *) ac_try_echo=$ac_try;;
5097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5098 (eval "$ac_compile") 2>conftest.er1
5100 grep -v '^ *+' conftest.er1 >conftest.err
5102 cat conftest.err >&5
5103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5104 (exit $ac_status); } && {
5105 test -z "$ac_c_werror_flag" ||
5106 test ! -s conftest.err
5107 } && test -s conftest.$ac_objext; then
5110 cat >conftest.$ac_ext <<_ACEOF
5113 cat confdefs.h >>conftest.$ac_ext
5114 cat >>conftest.$ac_ext <<_ACEOF
5115 /* end confdefs.h. */
5116 $ac_includes_default
5117 typedef long ac__type_sizeof_;
5121 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
5128 rm -f conftest.$ac_objext
5129 if { (ac_try="$ac_compile"
5131 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5132 *) ac_try_echo
=$ac_try;;
5134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5135 (eval "$ac_compile") 2>conftest.er1
5137 grep -v '^ *+' conftest.er1
>conftest.err
5139 cat conftest.err
>&5
5140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5141 (exit $ac_status); } && {
5142 test -z "$ac_c_werror_flag" ||
5143 test ! -s conftest.err
5144 } && test -s conftest.
$ac_objext; then
5145 ac_lo
=$ac_mid; break
5147 echo "$as_me: failed program was:" >&5
5148 sed 's/^/| /' conftest.
$ac_ext >&5
5150 ac_hi
=`expr '(' $ac_mid ')' - 1`
5151 if test $ac_mid -le $ac_hi; then
5155 ac_mid
=`expr 2 '*' $ac_mid`
5158 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5161 echo "$as_me: failed program was:" >&5
5162 sed 's/^/| /' conftest.
$ac_ext >&5
5167 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5170 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5171 # Binary search between lo and hi bounds.
5172 while test "x$ac_lo" != "x$ac_hi"; do
5173 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5174 cat >conftest.
$ac_ext <<_ACEOF
5177 cat confdefs.h
>>conftest.
$ac_ext
5178 cat >>conftest.
$ac_ext <<_ACEOF
5179 /* end confdefs.h. */
5180 $ac_includes_default
5181 typedef long ac__type_sizeof_;
5185 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5192 rm -f conftest.
$ac_objext
5193 if { (ac_try
="$ac_compile"
5195 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5196 *) ac_try_echo=$ac_try;;
5198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5199 (eval "$ac_compile") 2>conftest.er1
5201 grep -v '^ *+' conftest.er1 >conftest.err
5203 cat conftest.err >&5
5204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5205 (exit $ac_status); } && {
5206 test -z "$ac_c_werror_flag" ||
5207 test ! -s conftest.err
5208 } && test -s conftest.$ac_objext; then
5211 echo "$as_me: failed program was:" >&5
5212 sed 's/^/| /' conftest.$ac_ext >&5
5214 ac_lo=`expr '(' $ac_mid ')' + 1`
5217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5220 ?*) ac_cv_sizeof_long=$ac_lo;;
5221 '') if test "$ac_cv_type_long" = yes; then
5222 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
5223 See \`config.log
' for more details." >&5
5224 echo "$as_me: error: cannot compute sizeof (long)
5225 See \`config.log' for more details.
" >&2;}
5226 { (exit 77); exit 77; }; }
5232 cat >conftest.$ac_ext <<_ACEOF
5235 cat confdefs.h >>conftest.$ac_ext
5236 cat >>conftest.$ac_ext <<_ACEOF
5237 /* end confdefs.h. */
5238 $ac_includes_default
5239 typedef long ac__type_sizeof_;
5240 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
5241 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
5248 FILE *f = fopen ("conftest.val
", "w
");
5251 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
5253 long int i = longval ();
5254 if (i != ((long int) (sizeof (ac__type_sizeof_))))
5256 fprintf (f, "%ld
\n", i);
5260 unsigned long int i = ulongval ();
5261 if (i != ((long int) (sizeof (ac__type_sizeof_))))
5263 fprintf (f, "%lu
\n", i);
5265 return ferror (f) || fclose (f) != 0;
5271 rm -f conftest$ac_exeext
5272 if { (ac_try="$ac_link"
5274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5275 *) ac_try_echo=$ac_try;;
5277 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5278 (eval "$ac_link") 2>&5
5280 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5281 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5282 { (case "(($ac_try" in
5283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5284 *) ac_try_echo=$ac_try;;
5286 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5287 (eval "$ac_try") 2>&5
5289 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5290 (exit $ac_status); }; }; then
5291 ac_cv_sizeof_long=`cat conftest.val`
5293 echo "$as_me: program exited with status
$ac_status" >&5
5294 echo "$as_me: failed program was
:" >&5
5295 sed 's/^/| /' conftest.$ac_ext >&5
5298 if test "$ac_cv_type_long" = yes; then
5299 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(long
)
5300 See \
`config.log' for more details." >&5
5301 echo "$as_me: error: cannot compute sizeof (long)
5302 See \`config.log
' for more details." >&2;}
5303 { (exit 77); exit 77; }; }
5308 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5312 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5313 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
5317 cat >>confdefs.h <<_ACEOF
5318 #define SIZEOF_LONG $ac_cv_sizeof_long
5323 if test "x$host_m32" = x1; then
5324 # Force 32-bit mode.
5325 CFLAGS="$CFLAGS -m32"
5326 LDFLAGS="$LDFLAGS -m32"
5329 # Check LZO when compiling for the i386-pc.
5330 if test "$target_cpu"-"$platform" = i386-pc; then
5331 # Check whether --enable-lzo was given.
5332 if test "${enable_lzo+set}" = set; then
5333 enableval=$enable_lzo;
5336 if [ x"$enable_lzo" = xyes ]; then
5337 # There are three possibilities. LZO version 2 installed with the name
5338 # liblzo2, with the name liblzo, and LZO version 1.
5340 cat >>confdefs.h <<\_ACEOF
5341 #define ENABLE_LZO 1
5344 { echo "$as_me:$LINENO: checking for __lzo_init_v2 in -llzo2" >&5
5345 echo $ECHO_N "checking for __lzo_init_v2 in -llzo2... $ECHO_C" >&6; }
5346 if test "${ac_cv_lib_lzo2___lzo_init_v2+set}" = set; then
5347 echo $ECHO_N "(cached) $ECHO_C" >&6
5349 ac_check_lib_save_LIBS=$LIBS
5351 cat >conftest.$ac_ext <<_ACEOF
5354 cat confdefs.h >>conftest.$ac_ext
5355 cat >>conftest.$ac_ext <<_ACEOF
5356 /* end confdefs.h. */
5358 /* Override any GCC internal prototype to avoid an error.
5359 Use char because int might match the return type of a GCC
5360 builtin and then its argument prototype would still apply. */
5364 char __lzo_init_v2 ();
5368 return __lzo_init_v2 ();
5373 rm -f conftest.$ac_objext conftest$ac_exeext
5374 if { (ac_try="$ac_link"
5376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5377 *) ac_try_echo=$ac_try;;
5379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5380 (eval "$ac_link") 2>conftest.er1
5382 grep -v '^
*+' conftest.er1 >conftest.err
5384 cat conftest.err >&5
5385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5386 (exit $ac_status); } && {
5387 test -z "$ac_c_werror_flag" ||
5388 test ! -s conftest.err
5389 } && test -s conftest$ac_exeext &&
5390 $as_test_x conftest$ac_exeext; then
5391 ac_cv_lib_lzo2___lzo_init_v2=yes
5393 echo "$as_me: failed program was:" >&5
5394 sed 's
/^
/|
/' conftest.$ac_ext >&5
5396 ac_cv_lib_lzo2___lzo_init_v2=no
5399 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5400 conftest$ac_exeext conftest.$ac_ext
5401 LIBS=$ac_check_lib_save_LIBS
5403 { echo "$as_me:$LINENO: result: $ac_cv_lib_lzo2___lzo_init_v2" >&5
5404 echo "${ECHO_T}$ac_cv_lib_lzo2___lzo_init_v2" >&6; }
5405 if test $ac_cv_lib_lzo2___lzo_init_v2 = yes; then
5408 { echo "$as_me:$LINENO: checking for __lzo_init_v2 in -llzo" >&5
5409 echo $ECHO_N "checking for __lzo_init_v2 in -llzo... $ECHO_C" >&6; }
5410 if test "${ac_cv_lib_lzo___lzo_init_v2+set}" = set; then
5411 echo $ECHO_N "(cached) $ECHO_C" >&6
5413 ac_check_lib_save_LIBS=$LIBS
5415 cat >conftest.$ac_ext <<_ACEOF
5418 cat confdefs.h >>conftest.$ac_ext
5419 cat >>conftest.$ac_ext <<_ACEOF
5420 /* end confdefs.h. */
5422 /* Override any GCC internal prototype to avoid an error.
5423 Use char because int might match the return type of a GCC
5424 builtin and then its argument prototype would still apply. */
5428 char __lzo_init_v2 ();
5432 return __lzo_init_v2 ();
5437 rm -f conftest.$ac_objext conftest$ac_exeext
5438 if { (ac_try="$ac_link"
5440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5441 *) ac_try_echo=$ac_try;;
5443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5444 (eval "$ac_link") 2>conftest.er1
5446 grep -v '^
*+' conftest.er1 >conftest.err
5448 cat conftest.err >&5
5449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5450 (exit $ac_status); } && {
5451 test -z "$ac_c_werror_flag" ||
5452 test ! -s conftest.err
5453 } && test -s conftest$ac_exeext &&
5454 $as_test_x conftest$ac_exeext; then
5455 ac_cv_lib_lzo___lzo_init_v2=yes
5457 echo "$as_me: failed program was:" >&5
5458 sed 's
/^
/|
/' conftest.$ac_ext >&5
5460 ac_cv_lib_lzo___lzo_init_v2=no
5463 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5464 conftest$ac_exeext conftest.$ac_ext
5465 LIBS=$ac_check_lib_save_LIBS
5467 { echo "$as_me:$LINENO: result: $ac_cv_lib_lzo___lzo_init_v2" >&5
5468 echo "${ECHO_T}$ac_cv_lib_lzo___lzo_init_v2" >&6; }
5469 if test $ac_cv_lib_lzo___lzo_init_v2 = yes; then
5472 { echo "$as_me:$LINENO: checking for __lzo_init2 in -llzo" >&5
5473 echo $ECHO_N "checking for __lzo_init2 in -llzo... $ECHO_C" >&6; }
5474 if test "${ac_cv_lib_lzo___lzo_init2+set}" = set; then
5475 echo $ECHO_N "(cached) $ECHO_C" >&6
5477 ac_check_lib_save_LIBS=$LIBS
5479 cat >conftest.$ac_ext <<_ACEOF
5482 cat confdefs.h >>conftest.$ac_ext
5483 cat >>conftest.$ac_ext <<_ACEOF
5484 /* end confdefs.h. */
5486 /* Override any GCC internal prototype to avoid an error.
5487 Use char because int might match the return type of a GCC
5488 builtin and then its argument prototype would still apply. */
5492 char __lzo_init2 ();
5496 return __lzo_init2 ();
5501 rm -f conftest.$ac_objext conftest$ac_exeext
5502 if { (ac_try="$ac_link"
5504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5505 *) ac_try_echo=$ac_try;;
5507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5508 (eval "$ac_link") 2>conftest.er1
5510 grep -v '^
*+' conftest.er1 >conftest.err
5512 cat conftest.err >&5
5513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5514 (exit $ac_status); } && {
5515 test -z "$ac_c_werror_flag" ||
5516 test ! -s conftest.err
5517 } && test -s conftest$ac_exeext &&
5518 $as_test_x conftest$ac_exeext; then
5519 ac_cv_lib_lzo___lzo_init2=yes
5521 echo "$as_me: failed program was:" >&5
5522 sed 's
/^
/|
/' conftest.$ac_ext >&5
5524 ac_cv_lib_lzo___lzo_init2=no
5527 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5528 conftest$ac_exeext conftest.$ac_ext
5529 LIBS=$ac_check_lib_save_LIBS
5531 { echo "$as_me:$LINENO: result: $ac_cv_lib_lzo___lzo_init2" >&5
5532 echo "${ECHO_T}$ac_cv_lib_lzo___lzo_init2" >&6; }
5533 if test $ac_cv_lib_lzo___lzo_init2 = yes; then
5536 { { echo "$as_me:$LINENO: error: LZO library version 1.02 or later is required" >&5
5537 echo "$as_me: error: LZO library version 1.02 or later is required" >&2;}
5538 { (exit 1); exit 1; }; }
5546 LIBS="$LIBS $LIBLZO"
5547 { echo "$as_me:$LINENO: checking for lzo1x_999_compress" >&5
5548 echo $ECHO_N "checking for lzo1x_999_compress... $ECHO_C" >&6; }
5549 if test "${ac_cv_func_lzo1x_999_compress+set}" = set; then
5550 echo $ECHO_N "(cached) $ECHO_C" >&6
5552 cat >conftest.$ac_ext <<_ACEOF
5555 cat confdefs.h >>conftest.$ac_ext
5556 cat >>conftest.$ac_ext <<_ACEOF
5557 /* end confdefs.h. */
5558 /* Define lzo1x_999_compress to an innocuous variant, in case <limits.h> declares lzo1x_999_compress.
5559 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5560 #define lzo1x_999_compress innocuous_lzo1x_999_compress
5562 /* System header to define __stub macros and hopefully few prototypes,
5563 which can conflict with char lzo1x_999_compress (); below.
5564 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5565 <limits.h> exists even on freestanding compilers. */
5568 # include <limits.h>
5570 # include <assert.h>
5573 #undef lzo1x_999_compress
5575 /* Override any GCC internal prototype to avoid an error.
5576 Use char because int might match the return type of a GCC
5577 builtin and then its argument prototype would still apply. */
5581 char lzo1x_999_compress ();
5582 /* The GNU C library defines this for functions which it implements
5583 to always fail with ENOSYS. Some functions are actually named
5584 something starting with __ and the normal name is an alias. */
5585 #if defined __stub_lzo1x_999_compress || defined __stub___lzo1x_999_compress
5592 return lzo1x_999_compress ();
5597 rm -f conftest.$ac_objext conftest$ac_exeext
5598 if { (ac_try="$ac_link"
5600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5601 *) ac_try_echo=$ac_try;;
5603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5604 (eval "$ac_link") 2>conftest.er1
5606 grep -v '^
*+' conftest.er1 >conftest.err
5608 cat conftest.err >&5
5609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5610 (exit $ac_status); } && {
5611 test -z "$ac_c_werror_flag" ||
5612 test ! -s conftest.err
5613 } && test -s conftest$ac_exeext &&
5614 $as_test_x conftest$ac_exeext; then
5615 ac_cv_func_lzo1x_999_compress=yes
5617 echo "$as_me: failed program was:" >&5
5618 sed 's
/^
/|
/' conftest.$ac_ext >&5
5620 ac_cv_func_lzo1x_999_compress=no
5623 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5624 conftest$ac_exeext conftest.$ac_ext
5626 { echo "$as_me:$LINENO: result: $ac_cv_func_lzo1x_999_compress" >&5
5627 echo "${ECHO_T}$ac_cv_func_lzo1x_999_compress" >&6; }
5628 if test $ac_cv_func_lzo1x_999_compress = yes; then
5631 { { echo "$as_me:$LINENO: error: LZO1X-999 must be enabled" >&5
5632 echo "$as_me: error: LZO1X-999 must be enabled" >&2;}
5633 { (exit 1); exit 1; }; }
5637 # LZO version 2 uses lzo/lzo1x.h, while LZO version 1 uses lzo1x.h.
5640 for ac_header in lzo/lzo1x.h lzo1x.h
5642 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5643 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5644 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5645 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5646 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5647 echo $ECHO_N "(cached) $ECHO_C" >&6
5649 ac_res=`eval echo '${'$as_ac_Header'}'`
5650 { echo "$as_me:$LINENO: result: $ac_res" >&5
5651 echo "${ECHO_T}$ac_res" >&6; }
5653 # Is the header compilable?
5654 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5655 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5656 cat >conftest.$ac_ext <<_ACEOF
5659 cat confdefs.h >>conftest.$ac_ext
5660 cat >>conftest.$ac_ext <<_ACEOF
5661 /* end confdefs.h. */
5662 $ac_includes_default
5663 #include <$ac_header>
5665 rm -f conftest.$ac_objext
5666 if { (ac_try="$ac_compile"
5668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5669 *) ac_try_echo=$ac_try;;
5671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5672 (eval "$ac_compile") 2>conftest.er1
5674 grep -v '^
*+' conftest.er1 >conftest.err
5676 cat conftest.err >&5
5677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5678 (exit $ac_status); } && {
5679 test -z "$ac_c_werror_flag" ||
5680 test ! -s conftest.err
5681 } && test -s conftest.$ac_objext; then
5682 ac_header_compiler=yes
5684 echo "$as_me: failed program was:" >&5
5685 sed 's
/^
/|
/' conftest.$ac_ext >&5
5687 ac_header_compiler=no
5690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5691 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5692 echo "${ECHO_T}$ac_header_compiler" >&6; }
5694 # Is the header present?
5695 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5696 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5697 cat >conftest.$ac_ext <<_ACEOF
5700 cat confdefs.h >>conftest.$ac_ext
5701 cat >>conftest.$ac_ext <<_ACEOF
5702 /* end confdefs.h. */
5703 #include <$ac_header>
5705 if { (ac_try="$ac_cpp conftest.$ac_ext"
5707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5708 *) ac_try_echo=$ac_try;;
5710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5711 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5713 grep -v '^
*+' conftest.er1 >conftest.err
5715 cat conftest.err >&5
5716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5717 (exit $ac_status); } >/dev/null && {
5718 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5719 test ! -s conftest.err
5721 ac_header_preproc=yes
5723 echo "$as_me: failed program was:" >&5
5724 sed 's
/^
/|
/' conftest.$ac_ext >&5
5726 ac_header_preproc=no
5729 rm -f conftest.err conftest.$ac_ext
5730 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5731 echo "${ECHO_T}$ac_header_preproc" >&6; }
5733 # So? What about this header?
5734 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5736 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5737 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5738 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result
" >&5
5739 echo "$as_me: WARNING
: $ac_header: proceeding with the compiler
's result" >&2;}
5740 ac_header_preproc=yes
5743 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5744 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5745 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5746 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5747 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5748 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5749 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5750 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5751 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result
" >&5
5752 echo "$as_me: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&2;}
5753 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5754 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5756 ## ------------------------------- ##
5757 ## Report this to bug-grub@gnu.org ##
5758 ## ------------------------------- ##
5760 ) | sed "s/^/$as_me: WARNING: /" >&2
5763 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5764 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5765 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5766 echo $ECHO_N "(cached) $ECHO_C" >&6
5768 eval "$as_ac_Header=\$ac_header_preproc"
5770 ac_res=`eval echo '${'$as_ac_Header'}'`
5771 { echo "$as_me:$LINENO: result: $ac_res" >&5
5772 echo "${ECHO_T}$ac_res" >&6; }
5775 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5776 cat >>confdefs.h <<_ACEOF
5777 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5786 cat >>confdefs.h <<\_ACEOF
5787 #define ENABLE_LZMA 1
5794 # Check for functions.
5798 for ac_func in posix_memalign memalign asprintf
5800 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5801 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5802 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5803 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5804 echo $ECHO_N "(cached) $ECHO_C" >&6
5806 cat >conftest.$ac_ext <<_ACEOF
5809 cat confdefs.h >>conftest.$ac_ext
5810 cat >>conftest.$ac_ext <<_ACEOF
5811 /* end confdefs.h. */
5812 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5813 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5814 #define $ac_func innocuous_$ac_func
5816 /* System header to define __stub macros and hopefully few prototypes,
5817 which can conflict with char $ac_func (); below.
5818 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5819 <limits.h> exists even on freestanding compilers. */
5822 # include <limits.h>
5824 # include <assert.h>
5829 /* Override any GCC internal prototype to avoid an error.
5830 Use char because int might match the return type of a GCC
5831 builtin and then its argument prototype would still apply. */
5836 /* The GNU C library defines this for functions which it implements
5837 to always fail with ENOSYS. Some functions are actually named
5838 something starting with __ and the normal name is an alias. */
5839 #if defined __stub_$ac_func || defined __stub___$ac_func
5851 rm -f conftest.$ac_objext conftest$ac_exeext
5852 if { (ac_try="$ac_link"
5854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5855 *) ac_try_echo=$ac_try;;
5857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5858 (eval "$ac_link") 2>conftest.er1
5860 grep -v '^
*+' conftest.er1 >conftest.err
5862 cat conftest.err >&5
5863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5864 (exit $ac_status); } && {
5865 test -z "$ac_c_werror_flag" ||
5866 test ! -s conftest.err
5867 } && test -s conftest$ac_exeext &&
5868 $as_test_x conftest$ac_exeext; then
5869 eval "$as_ac_var=yes"
5871 echo "$as_me: failed program was:" >&5
5872 sed 's
/^
/|
/' conftest.$ac_ext >&5
5874 eval "$as_ac_var=no"
5877 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5878 conftest$ac_exeext conftest.$ac_ext
5880 ac_res=`eval echo '${'$as_ac_var'}'`
5881 { echo "$as_me:$LINENO: result: $ac_res" >&5
5882 echo "${ECHO_T}$ac_res" >&6; }
5883 if test `eval echo '${'$as_ac_var'}'` = yes; then
5884 cat >>confdefs.h <<_ACEOF
5885 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5893 # Check for target programs.
5897 # Use linker script if present, otherwise use builtin -N script.
5898 { echo "$as_me:$LINENO: checking for option to link raw image" >&5
5899 echo $ECHO_N "checking for option to link raw image... $ECHO_C" >&6; }
5900 if test -f "${srcdir}/conf/${target_cpu}-${platform}-${target_os}-img-ld.sc"; then
5901 TARGET_IMG_LDSCRIPT='$
(top_srcdir
)'"/conf/${target_cpu}-${platform}-${target_os}-img-ld.sc"
5902 TARGET_IMG_LDFLAGS="-Wl,-T${TARGET_IMG_LDSCRIPT}"
5903 TARGET_IMG_LDFLAGS_AC="-Wl,-T${srcdir}/conf/${target_cpu}-${platform}-${target_os}-img-ld.sc"
5905 TARGET_IMG_LDSCRIPT=
5906 TARGET_IMG_LDFLAGS='-Wl,-N'
5907 TARGET_IMG_LDFLAGS_AC='-Wl,-N'
5911 { echo "$as_me:$LINENO: result: $TARGET_IMG_LDFLAGS_AC" >&5
5912 echo "${ECHO_T}$TARGET_IMG_LDFLAGS_AC" >&6; }
5914 # For platforms where ELF is not the default link format.
5915 { echo "$as_me:$LINENO: checking for command to convert module to ELF format" >&5
5916 echo $ECHO_N "checking for command to convert module to ELF format... $ECHO_C" >&6; }
5917 case "${host_os}:${target_os}" in
5918 cygwin:cygwin) TARGET_OBJ2ELF='grub-pe2elf
' ;;
5922 { echo "$as_me:$LINENO: result: $TARGET_OBJ2ELF" >&5
5923 echo "${ECHO_T}$TARGET_OBJ2ELF" >&6; }
5925 # For cross-compiling.
5926 if test "x$target" != "x$host"; then
5927 # XXX this depends on the implementation of autoconf!
5928 tmp_ac_tool_prefix="$ac_tool_prefix"
5929 ac_tool_prefix=$target_alias-
5931 if test -n "$ac_tool_prefix"; then
5932 for ac_prog in gcc egcs cc
5934 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5935 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5936 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5937 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5938 if test "${ac_cv_prog_TARGET_CC+set}" = set; then
5939 echo $ECHO_N "(cached) $ECHO_C" >&6
5941 if test -n "$TARGET_CC"; then
5942 ac_cv_prog_TARGET_CC="$TARGET_CC" # Let the user override the test.
5944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5948 test -z "$as_dir" && as_dir=.
5949 for ac_exec_ext in '' $ac_executable_extensions; do
5950 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5951 ac_cv_prog_TARGET_CC="$ac_tool_prefix$ac_prog"
5952 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5961 TARGET_CC=$ac_cv_prog_TARGET_CC
5962 if test -n "$TARGET_CC"; then
5963 { echo "$as_me:$LINENO: result: $TARGET_CC" >&5
5964 echo "${ECHO_T}$TARGET_CC" >&6; }
5966 { echo "$as_me:$LINENO: result: no" >&5
5967 echo "${ECHO_T}no" >&6; }
5971 test -n "$TARGET_CC" && break
5974 if test -z "$TARGET_CC"; then
5975 ac_ct_TARGET_CC=$TARGET_CC
5976 for ac_prog in gcc egcs cc
5978 # Extract the first word of "$ac_prog", so it can be a program name with args.
5979 set dummy $ac_prog; ac_word=$2
5980 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5981 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5982 if test "${ac_cv_prog_ac_ct_TARGET_CC+set}" = set; then
5983 echo $ECHO_N "(cached) $ECHO_C" >&6
5985 if test -n "$ac_ct_TARGET_CC"; then
5986 ac_cv_prog_ac_ct_TARGET_CC="$ac_ct_TARGET_CC" # Let the user override the test.
5988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5992 test -z "$as_dir" && as_dir=.
5993 for ac_exec_ext in '' $ac_executable_extensions; do
5994 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5995 ac_cv_prog_ac_ct_TARGET_CC="$ac_prog"
5996 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6005 ac_ct_TARGET_CC=$ac_cv_prog_ac_ct_TARGET_CC
6006 if test -n "$ac_ct_TARGET_CC"; then
6007 { echo "$as_me:$LINENO: result: $ac_ct_TARGET_CC" >&5
6008 echo "${ECHO_T}$ac_ct_TARGET_CC" >&6; }
6010 { echo "$as_me:$LINENO: result: no" >&5
6011 echo "${ECHO_T}no" >&6; }
6015 test -n "$ac_ct_TARGET_CC" && break
6018 if test "x$ac_ct_TARGET_CC" = x; then
6019 TARGET_CC="{ { echo "$as_me:$LINENO: error: none of gcc, egcs and cc is found. set TARGET_CC manually." >&5
6020 echo "$as_me: error: none of gcc, egcs and cc is found. set TARGET_CC manually." >&2;}
6021 { (exit 1); exit 1; }; }"
6023 case $cross_compiling:$ac_tool_warned in
6025 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6026 whose name does not start with the host triplet. If you think this
6027 configuration is useful to you, please write to autoconf@gnu.org." >&5
6028 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6029 whose name does not start with the host triplet. If you think this
6030 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6031 ac_tool_warned=yes ;;
6033 TARGET_CC=$ac_ct_TARGET_CC
6037 if test -n "$ac_tool_prefix"; then
6038 # Extract the first word of "${ac_tool_prefix}objcopy", so it can be a program name with args.
6039 set dummy ${ac_tool_prefix}objcopy; ac_word=$2
6040 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6041 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6042 if test "${ac_cv_prog_OBJCOPY+set}" = set; then
6043 echo $ECHO_N "(cached) $ECHO_C" >&6
6045 if test -n "$OBJCOPY"; then
6046 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
6048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6052 test -z "$as_dir" && as_dir=.
6053 for ac_exec_ext in '' $ac_executable_extensions; do
6054 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6055 ac_cv_prog_OBJCOPY="${ac_tool_prefix}objcopy"
6056 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6065 OBJCOPY=$ac_cv_prog_OBJCOPY
6066 if test -n "$OBJCOPY"; then
6067 { echo "$as_me:$LINENO: result: $OBJCOPY" >&5
6068 echo "${ECHO_T}$OBJCOPY" >&6; }
6070 { echo "$as_me:$LINENO: result: no" >&5
6071 echo "${ECHO_T}no" >&6; }
6076 if test -z "$ac_cv_prog_OBJCOPY"; then
6077 ac_ct_OBJCOPY=$OBJCOPY
6078 # Extract the first word of "objcopy", so it can be a program name with args.
6079 set dummy objcopy; ac_word=$2
6080 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6081 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6082 if test "${ac_cv_prog_ac_ct_OBJCOPY+set}" = set; then
6083 echo $ECHO_N "(cached) $ECHO_C" >&6
6085 if test -n "$ac_ct_OBJCOPY"; then
6086 ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test.
6088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6092 test -z "$as_dir" && as_dir=.
6093 for ac_exec_ext in '' $ac_executable_extensions; do
6094 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6095 ac_cv_prog_ac_ct_OBJCOPY="objcopy"
6096 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6105 ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY
6106 if test -n "$ac_ct_OBJCOPY"; then
6107 { echo "$as_me:$LINENO: result: $ac_ct_OBJCOPY" >&5
6108 echo "${ECHO_T}$ac_ct_OBJCOPY" >&6; }
6110 { echo "$as_me:$LINENO: result: no" >&5
6111 echo "${ECHO_T}no" >&6; }
6114 if test "x$ac_ct_OBJCOPY" = x; then
6117 case $cross_compiling:$ac_tool_warned in
6119 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6120 whose name does not start with the host triplet. If you think this
6121 configuration is useful to you, please write to autoconf@gnu.org." >&5
6122 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6123 whose name does not start with the host triplet. If you think this
6124 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6125 ac_tool_warned=yes ;;
6127 OBJCOPY=$ac_ct_OBJCOPY
6130 OBJCOPY="$ac_cv_prog_OBJCOPY"
6133 if test -n "$ac_tool_prefix"; then
6134 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6135 set dummy ${ac_tool_prefix}strip; ac_word=$2
6136 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6137 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6138 if test "${ac_cv_prog_STRIP+set}" = set; then
6139 echo $ECHO_N "(cached) $ECHO_C" >&6
6141 if test -n "$STRIP"; then
6142 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6148 test -z "$as_dir" && as_dir=.
6149 for ac_exec_ext in '' $ac_executable_extensions; do
6150 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6151 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6152 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6161 STRIP=$ac_cv_prog_STRIP
6162 if test -n "$STRIP"; then
6163 { echo "$as_me:$LINENO: result: $STRIP" >&5
6164 echo "${ECHO_T}$STRIP" >&6; }
6166 { echo "$as_me:$LINENO: result: no" >&5
6167 echo "${ECHO_T}no" >&6; }
6172 if test -z "$ac_cv_prog_STRIP"; then
6174 # Extract the first word of "strip", so it can be a program name with args.
6175 set dummy strip; ac_word=$2
6176 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6177 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6178 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6179 echo $ECHO_N "(cached) $ECHO_C" >&6
6181 if test -n "$ac_ct_STRIP"; then
6182 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6188 test -z "$as_dir" && as_dir=.
6189 for ac_exec_ext in '' $ac_executable_extensions; do
6190 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6191 ac_cv_prog_ac_ct_STRIP="strip"
6192 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6201 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6202 if test -n "$ac_ct_STRIP"; then
6203 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6204 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6206 { echo "$as_me:$LINENO: result: no" >&5
6207 echo "${ECHO_T}no" >&6; }
6210 if test "x$ac_ct_STRIP" = x; then
6213 case $cross_compiling:$ac_tool_warned in
6215 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6216 whose name does not start with the host triplet. If you think this
6217 configuration is useful to you, please write to autoconf@gnu.org." >&5
6218 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6219 whose name does not start with the host triplet. If you think this
6220 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6221 ac_tool_warned=yes ;;
6226 STRIP="$ac_cv_prog_STRIP"
6229 if test -n "$ac_tool_prefix"; then
6230 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
6231 set dummy ${ac_tool_prefix}nm; ac_word=$2
6232 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6233 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6234 if test "${ac_cv_prog_NM+set}" = set; then
6235 echo $ECHO_N "(cached) $ECHO_C" >&6
6237 if test -n "$NM"; then
6238 ac_cv_prog_NM="$NM" # Let the user override the test.
6240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6244 test -z "$as_dir" && as_dir=.
6245 for ac_exec_ext in '' $ac_executable_extensions; do
6246 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6247 ac_cv_prog_NM="${ac_tool_prefix}nm"
6248 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6258 if test -n "$NM"; then
6259 { echo "$as_me:$LINENO: result: $NM" >&5
6260 echo "${ECHO_T}$NM" >&6; }
6262 { echo "$as_me:$LINENO: result: no" >&5
6263 echo "${ECHO_T}no" >&6; }
6268 if test -z "$ac_cv_prog_NM"; then
6270 # Extract the first word of "nm", so it can be a program name with args.
6271 set dummy nm; ac_word=$2
6272 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6273 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6274 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
6275 echo $ECHO_N "(cached) $ECHO_C" >&6
6277 if test -n "$ac_ct_NM"; then
6278 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
6280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6284 test -z "$as_dir" && as_dir=.
6285 for ac_exec_ext in '' $ac_executable_extensions; do
6286 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6287 ac_cv_prog_ac_ct_NM="nm"
6288 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6297 ac_ct_NM=$ac_cv_prog_ac_ct_NM
6298 if test -n "$ac_ct_NM"; then
6299 { echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
6300 echo "${ECHO_T}$ac_ct_NM" >&6; }
6302 { echo "$as_me:$LINENO: result: no" >&5
6303 echo "${ECHO_T}no" >&6; }
6306 if test "x$ac_ct_NM" = x; then
6309 case $cross_compiling:$ac_tool_warned in
6311 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6312 whose name does not start with the host triplet. If you think this
6313 configuration is useful to you, please write to autoconf@gnu.org." >&5
6314 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6315 whose name does not start with the host triplet. If you think this
6316 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6317 ac_tool_warned=yes ;;
6326 ac_tool_prefix="$tmp_ac_tool_prefix"
6328 if test "x$TARGET_CC" = x; then
6331 if test -n "$ac_tool_prefix"; then
6332 # Extract the first word of "${ac_tool_prefix}objcopy", so it can be a program name with args.
6333 set dummy ${ac_tool_prefix}objcopy; ac_word=$2
6334 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6335 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6336 if test "${ac_cv_prog_OBJCOPY+set}" = set; then
6337 echo $ECHO_N "(cached) $ECHO_C" >&6
6339 if test -n "$OBJCOPY"; then
6340 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
6342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6346 test -z "$as_dir" && as_dir=.
6347 for ac_exec_ext in '' $ac_executable_extensions; do
6348 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6349 ac_cv_prog_OBJCOPY="${ac_tool_prefix}objcopy"
6350 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6359 OBJCOPY=$ac_cv_prog_OBJCOPY
6360 if test -n "$OBJCOPY"; then
6361 { echo "$as_me:$LINENO: result: $OBJCOPY" >&5
6362 echo "${ECHO_T}$OBJCOPY" >&6; }
6364 { echo "$as_me:$LINENO: result: no" >&5
6365 echo "${ECHO_T}no" >&6; }
6370 if test -z "$ac_cv_prog_OBJCOPY"; then
6371 ac_ct_OBJCOPY=$OBJCOPY
6372 # Extract the first word of "objcopy", so it can be a program name with args.
6373 set dummy objcopy; ac_word=$2
6374 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6375 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6376 if test "${ac_cv_prog_ac_ct_OBJCOPY+set}" = set; then
6377 echo $ECHO_N "(cached) $ECHO_C" >&6
6379 if test -n "$ac_ct_OBJCOPY"; then
6380 ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test.
6382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6386 test -z "$as_dir" && as_dir=.
6387 for ac_exec_ext in '' $ac_executable_extensions; do
6388 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6389 ac_cv_prog_ac_ct_OBJCOPY="objcopy"
6390 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6399 ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY
6400 if test -n "$ac_ct_OBJCOPY"; then
6401 { echo "$as_me:$LINENO: result: $ac_ct_OBJCOPY" >&5
6402 echo "${ECHO_T}$ac_ct_OBJCOPY" >&6; }
6404 { echo "$as_me:$LINENO: result: no" >&5
6405 echo "${ECHO_T}no" >&6; }
6408 if test "x$ac_ct_OBJCOPY" = x; then
6411 case $cross_compiling:$ac_tool_warned in
6413 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6414 whose name does not start with the host triplet. If you think this
6415 configuration is useful to you, please write to autoconf@gnu.org." >&5
6416 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6417 whose name does not start with the host triplet. If you think this
6418 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6419 ac_tool_warned=yes ;;
6421 OBJCOPY=$ac_ct_OBJCOPY
6424 OBJCOPY="$ac_cv_prog_OBJCOPY"
6427 if test -n "$ac_tool_prefix"; then
6428 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6429 set dummy ${ac_tool_prefix}strip; ac_word=$2
6430 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6431 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6432 if test "${ac_cv_prog_STRIP+set}" = set; then
6433 echo $ECHO_N "(cached) $ECHO_C" >&6
6435 if test -n "$STRIP"; then
6436 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6442 test -z "$as_dir" && as_dir=.
6443 for ac_exec_ext in '' $ac_executable_extensions; do
6444 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6445 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6446 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6455 STRIP=$ac_cv_prog_STRIP
6456 if test -n "$STRIP"; then
6457 { echo "$as_me:$LINENO: result: $STRIP" >&5
6458 echo "${ECHO_T}$STRIP" >&6; }
6460 { echo "$as_me:$LINENO: result: no" >&5
6461 echo "${ECHO_T}no" >&6; }
6466 if test -z "$ac_cv_prog_STRIP"; then
6468 # Extract the first word of "strip", so it can be a program name with args.
6469 set dummy strip; ac_word=$2
6470 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6471 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6472 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6473 echo $ECHO_N "(cached) $ECHO_C" >&6
6475 if test -n "$ac_ct_STRIP"; then
6476 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6482 test -z "$as_dir" && as_dir=.
6483 for ac_exec_ext in '' $ac_executable_extensions; do
6484 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6485 ac_cv_prog_ac_ct_STRIP="strip"
6486 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6495 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6496 if test -n "$ac_ct_STRIP"; then
6497 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6498 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6500 { echo "$as_me:$LINENO: result: no" >&5
6501 echo "${ECHO_T}no" >&6; }
6504 if test "x$ac_ct_STRIP" = x; then
6507 case $cross_compiling:$ac_tool_warned in
6509 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6510 whose name does not start with the host triplet. If you think this
6511 configuration is useful to you, please write to autoconf@gnu.org." >&5
6512 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6513 whose name does not start with the host triplet. If you think this
6514 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6515 ac_tool_warned=yes ;;
6520 STRIP="$ac_cv_prog_STRIP"
6523 if test -n "$ac_tool_prefix"; then
6524 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
6525 set dummy ${ac_tool_prefix}nm; ac_word=$2
6526 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6527 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6528 if test "${ac_cv_prog_NM+set}" = set; then
6529 echo $ECHO_N "(cached) $ECHO_C" >&6
6531 if test -n "$NM"; then
6532 ac_cv_prog_NM="$NM" # Let the user override the test.
6534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6538 test -z "$as_dir" && as_dir=.
6539 for ac_exec_ext in '' $ac_executable_extensions; do
6540 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6541 ac_cv_prog_NM="${ac_tool_prefix}nm"
6542 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6552 if test -n "$NM"; then
6553 { echo "$as_me:$LINENO: result: $NM" >&5
6554 echo "${ECHO_T}$NM" >&6; }
6556 { echo "$as_me:$LINENO: result: no" >&5
6557 echo "${ECHO_T}no" >&6; }
6562 if test -z "$ac_cv_prog_NM"; then
6564 # Extract the first word of "nm", so it can be a program name with args.
6565 set dummy nm; ac_word=$2
6566 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6567 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6568 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
6569 echo $ECHO_N "(cached) $ECHO_C" >&6
6571 if test -n "$ac_ct_NM"; then
6572 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
6574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6578 test -z "$as_dir" && as_dir=.
6579 for ac_exec_ext in '' $ac_executable_extensions; do
6580 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6581 ac_cv_prog_ac_ct_NM="nm"
6582 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6591 ac_ct_NM=$ac_cv_prog_ac_ct_NM
6592 if test -n "$ac_ct_NM"; then
6593 { echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
6594 echo "${ECHO_T}$ac_ct_NM" >&6; }
6596 { echo "$as_me:$LINENO: result: no" >&5
6597 echo "${ECHO_T}no" >&6; }
6600 if test "x$ac_ct_NM" = x; then
6603 case $cross_compiling:$ac_tool_warned in
6605 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6606 whose name does not start with the host triplet. If you think this
6607 configuration is useful to you, please write to autoconf@gnu.org." >&5
6608 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6609 whose name does not start with the host triplet. If you think this
6610 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6611 ac_tool_warned=yes ;;
6623 # Test the C compiler for the target environment.
6625 tmp_CFLAGS="$CFLAGS"
6626 tmp_LDFLAGS="$LDFLAGS"
6627 tmp_CPPFLAGS="$CPPFLAGS"
6630 CFLAGS="$TARGET_CFLAGS"
6631 CPPFLAGS="$TARGET_CPPFLAGS"
6632 LDFLAGS="$TARGET_LDFLAGS"
6635 if test "x$TARGET_CFLAGS" = x; then
6637 TARGET_CFLAGS="-Wall -W -Wshadow -Wpointer-arith -Wmissing-prototypes \
6638 -Wundef -Wstrict-prototypes -g"
6640 # optimization flags.
6641 { echo "$as_me:$LINENO: checking whether optimization for size works" >&5
6642 echo $ECHO_N "checking whether optimization for size works... $ECHO_C" >&6; }
6643 if test "${grub_cv_cc_Os+set}" = set; then
6644 echo $ECHO_N "(cached) $ECHO_C" >&6
6648 cat >conftest.$ac_ext <<_ACEOF
6651 cat confdefs.h >>conftest.$ac_ext
6652 cat >>conftest.$ac_ext <<_ACEOF
6653 /* end confdefs.h. */
6663 rm -f conftest.$ac_objext
6664 if { (ac_try="$ac_compile"
6666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6667 *) ac_try_echo=$ac_try;;
6669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6670 (eval "$ac_compile") 2>conftest.er1
6672 grep -v '^
*+' conftest.er1 >conftest.err
6674 cat conftest.err >&5
6675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6676 (exit $ac_status); } && {
6677 test -z "$ac_c_werror_flag" ||
6678 test ! -s conftest.err
6679 } && test -s conftest.$ac_objext; then
6682 echo "$as_me: failed program was:" >&5
6683 sed 's
/^
/|
/' conftest.$ac_ext >&5
6688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6691 { echo "$as_me:$LINENO: result: $grub_cv_cc_Os" >&5
6692 echo "${ECHO_T}$grub_cv_cc_Os" >&6; }
6693 if test "x$grub_cv_cc_Os" = xyes; then
6694 TARGET_CFLAGS="$TARGET_CFLAGS -Os"
6696 TARGET_CFLAGS="$TARGET_CFLAGS -O2 -fno-strength-reduce -fno-unroll-loops"
6699 # Force no alignment to save space on i386.
6700 if test "x$target_cpu" = xi386; then
6701 { echo "$as_me:$LINENO: checking whether -falign-loops works" >&5
6702 echo $ECHO_N "checking whether -falign-loops works... $ECHO_C" >&6; }
6703 if test "${grub_cv_cc_falign_loop+set}" = set; then
6704 echo $ECHO_N "(cached) $ECHO_C" >&6
6707 CFLAGS="-falign-loops=1"
6708 cat >conftest.$ac_ext <<_ACEOF
6711 cat confdefs.h >>conftest.$ac_ext
6712 cat >>conftest.$ac_ext <<_ACEOF
6713 /* end confdefs.h. */
6723 rm -f conftest.$ac_objext
6724 if { (ac_try="$ac_compile"
6726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6727 *) ac_try_echo=$ac_try;;
6729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6730 (eval "$ac_compile") 2>conftest.er1
6732 grep -v '^
*+' conftest.er1 >conftest.err
6734 cat conftest.err >&5
6735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6736 (exit $ac_status); } && {
6737 test -z "$ac_c_werror_flag" ||
6738 test ! -s conftest.err
6739 } && test -s conftest.$ac_objext; then
6740 grub_cv_cc_falign_loop=yes
6742 echo "$as_me: failed program was:" >&5
6743 sed 's
/^
/|
/' conftest.$ac_ext >&5
6745 grub_cv_cc_falign_loop=no
6748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6751 { echo "$as_me:$LINENO: result: $grub_cv_cc_falign_loop" >&5
6752 echo "${ECHO_T}$grub_cv_cc_falign_loop" >&6; }
6754 if test "x$grub_cv_cc_falign_loop" = xyes; then
6755 TARGET_CFLAGS="$TARGET_CFLAGS -falign-jumps=1 -falign-loops=1 -falign-functions=1"
6757 TARGET_CFLAGS="$TARGET_CFLAGS -malign-jumps=1 -malign-loops=1 -malign-functions=1"
6762 if test "x$target_m32" = x1; then
6763 # Force 32-bit mode.
6764 TARGET_CFLAGS="$TARGET_CFLAGS -m32"
6765 TARGET_LDFLAGS="$TARGET_LDFLAGS -m32"
6768 if test "x$target_m64" = x1; then
6769 # Force 64-bit mode.
6770 TARGET_CFLAGS="$TARGET_CFLAGS -m64"
6771 TARGET_LDFLAGS="$TARGET_LDFLAGS -m64"
6775 # Compiler features.
6778 # Need __enable_execute_stack() for nested function trampolines?
6780 { echo "$as_me:$LINENO: checking whether \`$CC' generates calls to \
`__enable_execute_stack()'" >&5
6781 echo $ECHO_N "checking whether \`$CC' generates calls to \`__enable_execute_stack()'...
$ECHO_C" >&6; }
6782 cat >conftest.$ac_ext <<_ACEOF
6784 void f (int (*p) (void));
6787 int nestedfunc (void) { return i; }
6792 if { ac_try='${CC-cc} ${CFLAGS} -S conftest.c'
6793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6796 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6797 (exit $ac_status); }; } && test -s conftest.s; then
6800 { { echo "$as_me:$LINENO: error
: ${CC-cc} failed to produce assembly code
" >&5
6801 echo "$as_me: error
: ${CC-cc} failed to produce assembly code
" >&2;}
6802 { (exit 1); exit 1; }; }
6804 if grep __enable_execute_stack conftest.s >/dev/null 2>&1; then
6806 cat >>confdefs.h <<\_ACEOF
6807 #define NEED_ENABLE_EXECUTE_STACK 1
6810 { echo "$as_me:$LINENO: result
: yes" >&5
6811 echo "${ECHO_T}yes" >&6; }
6813 { echo "$as_me:$LINENO: result
: no
" >&5
6814 echo "${ECHO_T}no
" >&6; }
6819 # Smashing stack protector.
6821 # Smashing stack protector.
6823 { echo "$as_me:$LINENO: checking whether \
`$CC' accepts \`-fstack-protector'" >&5
6824 echo $ECHO_N "checking whether \`$CC' accepts \
`-fstack-protector'... $ECHO_C" >&6; }
6825 # Is this a reliable test case?
6826 cat >conftest.$ac_ext <<_ACEOF
6827 void foo (void) { volatile char a[8]; a[3]; }
6829 # `$CC -c -o ...
' might not be portable. But, oh, well... Is calling
6830 # `ac_compile' like this correct
, after all?
6831 if eval "$ac_compile -S -fstack-protector -o conftest.s" 2> /dev
/null
; then
6832 { echo "$as_me:$LINENO: result: yes" >&5
6833 echo "${ECHO_T}yes" >&6; }
6834 # Should we clear up other files as well, having called `AC_LANG_CONFTEST'?
6838 { echo "$as_me:$LINENO: result: no" >&5
6839 echo "${ECHO_T}no" >&6; }
6842 # Need that, because some distributions ship compilers that include
6843 # `-fstack-protector' in the default specs.
6844 if test "x$ssp_possible" = xyes
; then
6845 TARGET_CFLAGS
="$TARGET_CFLAGS -fno-stack-protector"
6848 # Smashing stack arg probe.
6850 { echo "$as_me:$LINENO: checking whether \`$CC' accepts \`-mstack-arg-probe'" >&5
6851 echo $ECHO_N "checking whether \`$CC' accepts \`-mstack-arg-probe'... $ECHO_C" >&6; }
6852 cat >conftest.
$ac_ext <<_ACEOF
6853 void foo (void) { volatile char a[8]; a[3]; }
6855 if eval "$ac_compile -S -mstack-arg-probe -o conftest.s" 2> /dev
/null
; then
6856 { echo "$as_me:$LINENO: result: yes" >&5
6857 echo "${ECHO_T}yes" >&6; }
6858 # Should we clear up other files as well, having called `AC_LANG_CONFTEST'?
6862 { echo "$as_me:$LINENO: result: no" >&5
6863 echo "${ECHO_T}no" >&6; }
6866 # Cygwin's GCC uses alloca() to probe the stackframe on static
6867 # stack allocations above some threshold.
6868 if test x
"$sap_possible" = xyes
; then
6869 TARGET_CFLAGS
="$TARGET_CFLAGS -mno-stack-arg-probe"
6877 # Set them to their new values for the tests below.
6879 CFLAGS
="$TARGET_CFLAGS"
6880 CPPFLAGS
="$TARGET_CPPFLAGS"
6881 LDFLAGS
="$TARGET_LDFLAGS"
6883 # Defined in aclocal.m4.
6884 { echo "$as_me:$LINENO: checking whether target compiler is working" >&5
6885 echo $ECHO_N "checking whether target compiler is working... $ECHO_C" >&6; }
6886 if test "${grub_cv_prog_target_cc+set}" = set; then
6887 echo $ECHO_N "(cached) $ECHO_C" >&6
6889 cat >conftest.
$ac_ext <<_ACEOF
6892 cat confdefs.h
>>conftest.
$ac_ext
6893 cat >>conftest.
$ac_ext <<_ACEOF
6894 /* end confdefs.h. */
6904 rm -f conftest.
$ac_objext conftest
$ac_exeext
6905 if { (ac_try
="$ac_link"
6907 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6908 *) ac_try_echo=$ac_try;;
6910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6911 (eval "$ac_link") 2>conftest.er1
6913 grep -v '^ *+' conftest.er1 >conftest.err
6915 cat conftest.err >&5
6916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6917 (exit $ac_status); } && {
6918 test -z "$ac_c_werror_flag" ||
6919 test ! -s conftest.err
6920 } && test -s conftest$ac_exeext &&
6921 $as_test_x conftest$ac_exeext; then
6922 grub_cv_prog_target_cc=yes
6924 echo "$as_me: failed program was:" >&5
6925 sed 's/^/| /' conftest.$ac_ext >&5
6927 grub_cv_prog_target_cc=no
6930 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6931 conftest$ac_exeext conftest.$ac_ext
6935 { echo "$as_me:$LINENO: result: $grub_cv_prog_target_cc" >&5
6936 echo "${ECHO_T}$grub_cv_prog_target_cc" >&6; }
6938 if test "x$grub_cv_prog_target_cc" = xno; then
6939 { { echo "$as_me:$LINENO: error: cannot compile for the target" >&5
6940 echo "$as_me: error: cannot compile for the target" >&2;}
6941 { (exit 1); exit 1; }; }
6944 { echo "$as_me:$LINENO: checking whether ${OBJCOPY} works for absolute addresses" >&5
6945 echo $ECHO_N "checking whether ${OBJCOPY} works for absolute addresses... $ECHO_C" >&6; }
6946 if test "${grub_cv_prog_objcopy_absolute+set}" = set; then
6947 echo $ECHO_N "(cached) $ECHO_C" >&6
6949 cat > conftest.c <<\EOF
6953 *((int *) 0x1000) = 2;
6957 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6958 (eval $ac_compile) 2>&5
6960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6961 (exit $ac_status); } && test -s conftest.o; then :
6963 { { echo "$as_me:$LINENO: error: ${CC-cc} cannot compile C source code" >&5
6964 echo "$as_me: error: ${CC-cc} cannot compile C source code" >&2;}
6965 { (exit 1); exit 1; }; }
6967 grub_cv_prog_objcopy_absolute=yes
6968 for link_addr in 2000 8000 7C00; do
6969 if { ac_try='${CC-cc} ${CFLAGS} -nostdlib ${TARGET_IMG_LDFLAGS_AC} -Wl,-Ttext -Wl,$link_addr conftest.o -o conftest.exec'
6970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6974 (exit $ac_status); }; }; then :
6976 { { echo "$as_me:$LINENO: error: ${CC-cc} cannot link at address $link_addr" >&5
6977 echo "$as_me: error: ${CC-cc} cannot link at address $link_addr" >&2;}
6978 { (exit 1); exit 1; }; }
6980 if { ac_try='${OBJCOPY-objcopy} --only-section=.text -O binary conftest.exec conftest'
6981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6985 (exit $ac_status); }; }; then :
6987 { { echo "$as_me:$LINENO: error: ${OBJCOPY-objcopy} cannot create binary files" >&5
6988 echo "$as_me: error: ${OBJCOPY-objcopy} cannot create binary files" >&2;}
6989 { (exit 1); exit 1; }; }
6991 if test ! -f conftest.old || { ac_try='cmp -s conftest.old conftest'
6992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6996 (exit $ac_status); }; }; then
6997 mv -f conftest conftest.old
6999 grub_cv_prog_objcopy_absolute=no
7006 { echo "$as_me:$LINENO: result: $grub_cv_prog_objcopy_absolute" >&5
7007 echo "${ECHO_T}$grub_cv_prog_objcopy_absolute" >&6; }
7009 if test "x$grub_cv_prog_objcopy_absolute" = xno; then
7010 { { echo "$as_me:$LINENO: error: GRUB requires a working absolute objcopy; upgrade your binutils" >&5
7011 echo "$as_me: error: GRUB requires a working absolute objcopy; upgrade your binutils" >&2;}
7012 { (exit 1); exit 1; }; }
7015 { echo "$as_me:$LINENO: checking whether linker accepts --build-id=none" >&5
7016 echo $ECHO_N "checking whether linker accepts --build-id=none... $ECHO_C" >&6; }
7017 if test "${grub_cv_prog_ld_build_id_none+set}" = set; then
7018 echo $ECHO_N "(cached) $ECHO_C" >&6
7020 save_LDFLAGS="$LDFLAGS"
7021 LDFLAGS="$LDFLAGS -Wl,--build-id=none"
7022 cat >conftest.$ac_ext <<_ACEOF
7025 cat confdefs.h >>conftest.$ac_ext
7026 cat >>conftest.$ac_ext <<_ACEOF
7027 /* end confdefs.h. */
7037 rm -f conftest.$ac_objext conftest$ac_exeext
7038 if { (ac_try="$ac_link"
7040 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7041 *) ac_try_echo
=$ac_try;;
7043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7044 (eval "$ac_link") 2>conftest.er1
7046 grep -v '^ *+' conftest.er1
>conftest.err
7048 cat conftest.err
>&5
7049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7050 (exit $ac_status); } && {
7051 test -z "$ac_c_werror_flag" ||
7052 test ! -s conftest.err
7053 } && test -s conftest
$ac_exeext &&
7054 $as_test_x conftest
$ac_exeext; then
7055 grub_cv_prog_ld_build_id_none
=yes
7057 echo "$as_me: failed program was:" >&5
7058 sed 's/^/| /' conftest.
$ac_ext >&5
7060 grub_cv_prog_ld_build_id_none
=no
7063 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7064 conftest
$ac_exeext conftest.
$ac_ext
7065 LDFLAGS
="$save_LDFLAGS"
7069 { echo "$as_me:$LINENO: result: $grub_cv_prog_ld_build_id_none" >&5
7070 echo "${ECHO_T}$grub_cv_prog_ld_build_id_none" >&6; }
7072 if test "x$grub_cv_prog_ld_build_id_none" = xyes
; then
7073 MODULE_LDFLAGS
="$MODULE_LDFLAGS -Wl,--build-id=none"
7077 { echo "$as_me:$LINENO: checking if C symbols get an underscore after compilation" >&5
7078 echo $ECHO_N "checking if C symbols get an underscore after compilation... $ECHO_C" >&6; }
7079 if test "${grub_cv_asm_uscore+set}" = set; then
7080 echo $ECHO_N "(cached) $ECHO_C" >&6
7082 cat > conftest.c
<<\EOF
7091 if { ac_try
='${CC-cc} ${CFLAGS} -S conftest.c'
7092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7096 (exit $ac_status); }; } && test -s conftest.s
; then
7099 { { echo "$as_me:$LINENO: error: ${CC-cc} failed to produce assembly code" >&5
7100 echo "$as_me: error: ${CC-cc} failed to produce assembly code" >&2;}
7101 { (exit 1); exit 1; }; }
7104 if grep _func conftest.s
>/dev
/null
2>&1; then
7105 grub_cv_asm_uscore
=yes
7107 grub_cv_asm_uscore
=no
7114 if test "x$grub_cv_asm_uscore" = xyes
; then
7116 cat >>confdefs.h
<<_ACEOF
7117 #define HAVE_ASM_USCORE $grub_cv_asm_uscore
7122 { echo "$as_me:$LINENO: result: $grub_cv_asm_uscore" >&5
7123 echo "${ECHO_T}$grub_cv_asm_uscore" >&6; }
7125 if test "x$target_cpu" = xi386
; then
7126 if test ! -z "$TARGET_IMG_LDSCRIPT"; then
7127 # Check symbols provided by linker script.
7128 CFLAGS
="$TARGET_CFLAGS -nostdlib $TARGET_IMG_LDFLAGS_AC -Wl,-Ttext,8000,--defsym,___main=0x8100"
7130 if test "x$platform" = xpc
; then
7132 { echo "$as_me:$LINENO: checking if start is defined by the compiler" >&5
7133 echo $ECHO_N "checking if start is defined by the compiler... $ECHO_C" >&6; }
7134 if test "${grub_cv_check_start_symbol+set}" = set; then
7135 echo $ECHO_N "(cached) $ECHO_C" >&6
7137 cat >conftest.
$ac_ext <<_ACEOF
7140 cat confdefs.h
>>conftest.
$ac_ext
7141 cat >>conftest.
$ac_ext <<_ACEOF
7142 /* end confdefs.h. */
7152 rm -f conftest.
$ac_objext conftest
$ac_exeext
7153 if { (ac_try
="$ac_link"
7155 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7156 *) ac_try_echo=$ac_try;;
7158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7159 (eval "$ac_link") 2>conftest.er1
7161 grep -v '^ *+' conftest.er1 >conftest.err
7163 cat conftest.err >&5
7164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7165 (exit $ac_status); } && {
7166 test -z "$ac_c_werror_flag" ||
7167 test ! -s conftest.err
7168 } && test -s conftest$ac_exeext &&
7169 $as_test_x conftest$ac_exeext; then
7170 grub_cv_check_start_symbol=yes
7172 echo "$as_me: failed program was:" >&5
7173 sed 's/^/| /' conftest.$ac_ext >&5
7175 grub_cv_check_start_symbol=no
7178 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7179 conftest$ac_exeext conftest.$ac_ext
7183 { echo "$as_me:$LINENO: result: $grub_cv_check_start_symbol" >&5
7184 echo "${ECHO_T}$grub_cv_check_start_symbol" >&6; }
7186 { echo "$as_me:$LINENO: checking if _start is defined by the compiler" >&5
7187 echo $ECHO_N "checking if _start is defined by the compiler... $ECHO_C" >&6; }
7188 if test "${grub_cv_check_uscore_start_symbol+set}" = set; then
7189 echo $ECHO_N "(cached) $ECHO_C" >&6
7191 cat >conftest.$ac_ext <<_ACEOF
7194 cat confdefs.h >>conftest.$ac_ext
7195 cat >>conftest.$ac_ext <<_ACEOF
7196 /* end confdefs.h. */
7206 rm -f conftest.$ac_objext conftest$ac_exeext
7207 if { (ac_try="$ac_link"
7209 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7210 *) ac_try_echo
=$ac_try;;
7212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7213 (eval "$ac_link") 2>conftest.er1
7215 grep -v '^ *+' conftest.er1
>conftest.err
7217 cat conftest.err
>&5
7218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7219 (exit $ac_status); } && {
7220 test -z "$ac_c_werror_flag" ||
7221 test ! -s conftest.err
7222 } && test -s conftest
$ac_exeext &&
7223 $as_test_x conftest
$ac_exeext; then
7224 grub_cv_check_uscore_start_symbol
=yes
7226 echo "$as_me: failed program was:" >&5
7227 sed 's/^/| /' conftest.
$ac_ext >&5
7229 grub_cv_check_uscore_start_symbol
=no
7232 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7233 conftest
$ac_exeext conftest.
$ac_ext
7237 { echo "$as_me:$LINENO: result: $grub_cv_check_uscore_start_symbol" >&5
7238 echo "${ECHO_T}$grub_cv_check_uscore_start_symbol" >&6; }
7243 if test "x$grub_cv_check_start_symbol" = xyes
; then
7244 cat >>confdefs.h
<<\_ACEOF
7245 #define START_SYMBOL start
7248 elif test "x$grub_cv_check_uscore_start_symbol" = xyes
; then
7249 cat >>confdefs.h
<<\_ACEOF
7250 #define START_SYMBOL _start
7254 { { echo "$as_me:$LINENO: error: neither start nor _start is defined" >&5
7255 echo "$as_me: error: neither start nor _start is defined" >&2;}
7256 { (exit 1); exit 1; }; }
7260 { echo "$as_me:$LINENO: checking if __bss_start is defined by the compiler" >&5
7261 echo $ECHO_N "checking if __bss_start is defined by the compiler... $ECHO_C" >&6; }
7262 if test "${grub_cv_check_uscore_uscore_bss_start_symbol+set}" = set; then
7263 echo $ECHO_N "(cached) $ECHO_C" >&6
7265 cat >conftest.
$ac_ext <<_ACEOF
7268 cat confdefs.h
>>conftest.
$ac_ext
7269 cat >>conftest.
$ac_ext <<_ACEOF
7270 /* end confdefs.h. */
7275 asm ("incl __bss_start")
7280 rm -f conftest.
$ac_objext conftest
$ac_exeext
7281 if { (ac_try
="$ac_link"
7283 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7284 *) ac_try_echo=$ac_try;;
7286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7287 (eval "$ac_link") 2>conftest.er1
7289 grep -v '^ *+' conftest.er1 >conftest.err
7291 cat conftest.err >&5
7292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7293 (exit $ac_status); } && {
7294 test -z "$ac_c_werror_flag" ||
7295 test ! -s conftest.err
7296 } && test -s conftest$ac_exeext &&
7297 $as_test_x conftest$ac_exeext; then
7298 grub_cv_check_uscore_uscore_bss_start_symbol=yes
7300 echo "$as_me: failed program was:" >&5
7301 sed 's/^/| /' conftest.$ac_ext >&5
7303 grub_cv_check_uscore_uscore_bss_start_symbol=no
7306 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7307 conftest$ac_exeext conftest.$ac_ext
7311 { echo "$as_me:$LINENO: result: $grub_cv_check_uscore_uscore_bss_start_symbol" >&5
7312 echo "${ECHO_T}$grub_cv_check_uscore_uscore_bss_start_symbol" >&6; }
7314 { echo "$as_me:$LINENO: checking if edata is defined by the compiler" >&5
7315 echo $ECHO_N "checking if edata is defined by the compiler... $ECHO_C" >&6; }
7316 if test "${grub_cv_check_edata_symbol+set}" = set; then
7317 echo $ECHO_N "(cached) $ECHO_C" >&6
7319 cat >conftest.$ac_ext <<_ACEOF
7322 cat confdefs.h >>conftest.$ac_ext
7323 cat >>conftest.$ac_ext <<_ACEOF
7324 /* end confdefs.h. */
7334 rm -f conftest.$ac_objext conftest$ac_exeext
7335 if { (ac_try="$ac_link"
7337 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7338 *) ac_try_echo
=$ac_try;;
7340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7341 (eval "$ac_link") 2>conftest.er1
7343 grep -v '^ *+' conftest.er1
>conftest.err
7345 cat conftest.err
>&5
7346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7347 (exit $ac_status); } && {
7348 test -z "$ac_c_werror_flag" ||
7349 test ! -s conftest.err
7350 } && test -s conftest
$ac_exeext &&
7351 $as_test_x conftest
$ac_exeext; then
7352 grub_cv_check_edata_symbol
=yes
7354 echo "$as_me: failed program was:" >&5
7355 sed 's/^/| /' conftest.
$ac_ext >&5
7357 grub_cv_check_edata_symbol
=no
7360 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7361 conftest
$ac_exeext conftest.
$ac_ext
7365 { echo "$as_me:$LINENO: result: $grub_cv_check_edata_symbol" >&5
7366 echo "${ECHO_T}$grub_cv_check_edata_symbol" >&6; }
7368 { echo "$as_me:$LINENO: checking if _edata is defined by the compiler" >&5
7369 echo $ECHO_N "checking if _edata is defined by the compiler... $ECHO_C" >&6; }
7370 if test "${grub_cv_check_uscore_edata_symbol+set}" = set; then
7371 echo $ECHO_N "(cached) $ECHO_C" >&6
7373 cat >conftest.
$ac_ext <<_ACEOF
7376 cat confdefs.h
>>conftest.
$ac_ext
7377 cat >>conftest.
$ac_ext <<_ACEOF
7378 /* end confdefs.h. */
7388 rm -f conftest.
$ac_objext conftest
$ac_exeext
7389 if { (ac_try
="$ac_link"
7391 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7392 *) ac_try_echo=$ac_try;;
7394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7395 (eval "$ac_link") 2>conftest.er1
7397 grep -v '^ *+' conftest.er1 >conftest.err
7399 cat conftest.err >&5
7400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7401 (exit $ac_status); } && {
7402 test -z "$ac_c_werror_flag" ||
7403 test ! -s conftest.err
7404 } && test -s conftest$ac_exeext &&
7405 $as_test_x conftest$ac_exeext; then
7406 grub_cv_check_uscore_edata_symbol=yes
7408 echo "$as_me: failed program was:" >&5
7409 sed 's/^/| /' conftest.$ac_ext >&5
7411 grub_cv_check_uscore_edata_symbol=no
7414 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7415 conftest$ac_exeext conftest.$ac_ext
7419 { echo "$as_me:$LINENO: result: $grub_cv_check_uscore_edata_symbol" >&5
7420 echo "${ECHO_T}$grub_cv_check_uscore_edata_symbol" >&6; }
7425 if test "x$grub_cv_check_uscore_uscore_bss_start_symbol" = xyes; then
7426 cat >>confdefs.h <<\_ACEOF
7427 #define BSS_START_SYMBOL __bss_start
7430 elif test "x$grub_cv_check_edata_symbol" = xyes; then
7431 cat >>confdefs.h <<\_ACEOF
7432 #define BSS_START_SYMBOL edata
7435 elif test "x$grub_cv_check_uscore_edata_symbol" = xyes; then
7436 cat >>confdefs.h <<\_ACEOF
7437 #define BSS_START_SYMBOL _edata
7441 { { echo "$as_me:$LINENO: error: none of __bss_start, edata or _edata is defined" >&5
7442 echo "$as_me: error: none of __bss_start, edata or _edata is defined" >&2;}
7443 { (exit 1); exit 1; }; }
7447 { echo "$as_me:$LINENO: checking if end is defined by the compiler" >&5
7448 echo $ECHO_N "checking if end is defined by the compiler... $ECHO_C" >&6; }
7449 if test "${grub_cv_check_end_symbol+set}" = set; then
7450 echo $ECHO_N "(cached) $ECHO_C" >&6
7452 cat >conftest.$ac_ext <<_ACEOF
7455 cat confdefs.h >>conftest.$ac_ext
7456 cat >>conftest.$ac_ext <<_ACEOF
7457 /* end confdefs.h. */
7467 rm -f conftest.$ac_objext conftest$ac_exeext
7468 if { (ac_try="$ac_link"
7470 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7471 *) ac_try_echo
=$ac_try;;
7473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7474 (eval "$ac_link") 2>conftest.er1
7476 grep -v '^ *+' conftest.er1
>conftest.err
7478 cat conftest.err
>&5
7479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7480 (exit $ac_status); } && {
7481 test -z "$ac_c_werror_flag" ||
7482 test ! -s conftest.err
7483 } && test -s conftest
$ac_exeext &&
7484 $as_test_x conftest
$ac_exeext; then
7485 grub_cv_check_end_symbol
=yes
7487 echo "$as_me: failed program was:" >&5
7488 sed 's/^/| /' conftest.
$ac_ext >&5
7490 grub_cv_check_end_symbol
=no
7493 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7494 conftest
$ac_exeext conftest.
$ac_ext
7498 { echo "$as_me:$LINENO: result: $grub_cv_check_end_symbol" >&5
7499 echo "${ECHO_T}$grub_cv_check_end_symbol" >&6; }
7501 { echo "$as_me:$LINENO: checking if _end is defined by the compiler" >&5
7502 echo $ECHO_N "checking if _end is defined by the compiler... $ECHO_C" >&6; }
7503 if test "${grub_cv_check_uscore_end_symbol+set}" = set; then
7504 echo $ECHO_N "(cached) $ECHO_C" >&6
7506 cat >conftest.
$ac_ext <<_ACEOF
7509 cat confdefs.h
>>conftest.
$ac_ext
7510 cat >>conftest.
$ac_ext <<_ACEOF
7511 /* end confdefs.h. */
7521 rm -f conftest.
$ac_objext conftest
$ac_exeext
7522 if { (ac_try
="$ac_link"
7524 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7525 *) ac_try_echo=$ac_try;;
7527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7528 (eval "$ac_link") 2>conftest.er1
7530 grep -v '^ *+' conftest.er1 >conftest.err
7532 cat conftest.err >&5
7533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7534 (exit $ac_status); } && {
7535 test -z "$ac_c_werror_flag" ||
7536 test ! -s conftest.err
7537 } && test -s conftest$ac_exeext &&
7538 $as_test_x conftest$ac_exeext; then
7539 grub_cv_check_uscore_end_symbol=yes
7541 echo "$as_me: failed program was:" >&5
7542 sed 's/^/| /' conftest.$ac_ext >&5
7544 grub_cv_check_uscore_end_symbol=no
7547 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7548 conftest$ac_exeext conftest.$ac_ext
7552 { echo "$as_me:$LINENO: result: $grub_cv_check_uscore_end_symbol" >&5
7553 echo "${ECHO_T}$grub_cv_check_uscore_end_symbol" >&6; }
7558 if test "x$grub_cv_check_end_symbol" = xyes; then
7559 cat >>confdefs.h <<\_ACEOF
7560 #define END_SYMBOL end
7563 elif test "x$grub_cv_check_uscore_end_symbol" = xyes; then
7564 cat >>confdefs.h <<\_ACEOF
7565 #define END_SYMBOL _end
7569 { { echo "$as_me:$LINENO: error: neither end nor _end is defined" >&5
7570 echo "$as_me: error: neither end nor _end is defined" >&2;}
7571 { (exit 1); exit 1; }; }
7575 CFLAGS="$TARGET_CFLAGS"
7577 { echo "$as_me:$LINENO: checking whether addr32 must be in the same line as the instruction" >&5
7578 echo $ECHO_N "checking whether addr32 must be in the same line as the instruction... $ECHO_C" >&6; }
7579 if test "${grub_cv_i386_asm_prefix_requirement+set}" = set; then
7580 echo $ECHO_N "(cached) $ECHO_C" >&6
7582 cat > conftest.s <<\EOF
7584 l1: addr32 movb %al, l1
7587 if { ac_try='${CC-cc} ${CFLAGS} -c conftest.s'
7588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7592 (exit $ac_status); }; } && test -s conftest.o; then
7593 grub_cv_i386_asm_prefix_requirement=yes
7595 grub_cv_i386_asm_prefix_requirement=no
7602 if test "x$grub_cv_i386_asm_prefix_requirement" = xyes; then
7603 grub_tmp_addr32="addr32"
7604 grub_tmp_data32="data32"
7606 grub_tmp_addr32="addr32;"
7607 grub_tmp_data32="data32;"
7611 cat >>confdefs.h <<_ACEOF
7612 #define ADDR32 $grub_tmp_addr32
7616 cat >>confdefs.h <<_ACEOF
7617 #define DATA32 $grub_tmp_data32
7621 { echo "$as_me:$LINENO: result: $grub_cv_i386_asm_prefix_requirement" >&5
7622 echo "${ECHO_T}$grub_cv_i386_asm_prefix_requirement" >&6; }
7625 { echo "$as_me:$LINENO: checking for .code16 addr32 assembler support" >&5
7626 echo $ECHO_N "checking for .code16 addr32 assembler support... $ECHO_C" >&6; }
7627 if test "${grub_cv_i386_asm_addr32+set}" = set; then
7628 echo $ECHO_N "(cached) $ECHO_C" >&6
7630 cat > conftest.s.in <<\EOF
7632 l1: @ADDR32@ movb %al, l1
7635 if test "x$grub_cv_i386_asm_prefix_requirement" = xyes; then
7636 sed -e s/@ADDR32@/addr32/ < conftest.s.in > conftest.s
7638 sed -e s/@ADDR32@/addr32\;/ < conftest.s.in > conftest.s
7641 if { ac_try='${CC-cc} ${CFLAGS} -c conftest.s'
7642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7646 (exit $ac_status); }; } && test -s conftest.o; then
7647 grub_cv_i386_asm_addr32=yes
7649 grub_cv_i386_asm_addr32=no
7656 { echo "$as_me:$LINENO: result: $grub_cv_i386_asm_addr32" >&5
7657 echo "${ECHO_T}$grub_cv_i386_asm_addr32" >&6; }
7659 { echo "$as_me:$LINENO: checking whether an absolute indirect call/jump must not be prefixed with an asterisk" >&5
7660 echo $ECHO_N "checking whether an absolute indirect call/jump must not be prefixed with an asterisk... $ECHO_C" >&6; }
7661 if test "${grub_cv_i386_asm_absolute_without_asterisk+set}" = set; then
7662 echo $ECHO_N "(cached) $ECHO_C" >&6
7664 cat > conftest.s <<\EOF
7671 if { ac_try='${CC-cc} ${CFLAGS} -c conftest.s'
7672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7676 (exit $ac_status); }; } && test -s conftest.o; then
7677 grub_cv_i386_asm_absolute_without_asterisk=no
7679 grub_cv_i386_asm_absolute_without_asterisk=yes
7686 if test "x$grub_cv_i386_asm_absolute_without_asterisk" = xyes; then
7688 cat >>confdefs.h <<\_ACEOF
7689 #define ABSOLUTE_WITHOUT_ASTERISK 1
7694 { echo "$as_me:$LINENO: result: $grub_cv_i386_asm_absolute_without_asterisk" >&5
7695 echo "${ECHO_T}$grub_cv_i386_asm_absolute_without_asterisk" >&6; }
7697 { echo "$as_me:$LINENO: checking if GCC has the regparm=3 bug" >&5
7698 echo $ECHO_N "checking if GCC has the regparm=3 bug... $ECHO_C" >&6; }
7699 if test "${grub_cv_i386_check_nested_functions+set}" = set; then
7700 echo $ECHO_N "(cached) $ECHO_C" >&6
7702 if test "$cross_compiling" = yes; then
7703 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7704 See \`config.log
' for more details." >&5
7705 echo "$as_me: error: cannot run test program while cross compiling
7706 See \`config.log' for more details.
" >&2;}
7707 { (exit 1); exit 1; }; }
7709 cat >conftest.$ac_ext <<_ACEOF
7712 cat confdefs.h >>conftest.$ac_ext
7713 cat >>conftest.$ac_ext <<_ACEOF
7714 /* end confdefs.h. */
7723 testfunc (int __attribute__ ((__regparm__ (3))) (*hook) (int a, int b, int *c))
7728 return hook (a, b, &c);
7734 int __attribute__ ((__regparm__ (3))) nestedfunc (int a, int b, int *c)
7736 return a == b && test (c);
7738 return testfunc (nestedfunc) ? 0 : 1;
7742 rm -f conftest$ac_exeext
7743 if { (ac_try="$ac_link"
7745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7746 *) ac_try_echo=$ac_try;;
7748 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7749 (eval "$ac_link") 2>&5
7751 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7752 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7753 { (case "(($ac_try" in
7754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7755 *) ac_try_echo=$ac_try;;
7757 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7758 (eval "$ac_try") 2>&5
7760 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7761 (exit $ac_status); }; }; then
7762 grub_cv_i386_check_nested_functions=no
7764 echo "$as_me: program exited with status
$ac_status" >&5
7765 echo "$as_me: failed program was
:" >&5
7766 sed 's/^/| /' conftest.$ac_ext >&5
7769 grub_cv_i386_check_nested_functions=yes
7771 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7778 { echo "$as_me:$LINENO: result
: $grub_cv_i386_check_nested_functions" >&5
7779 echo "${ECHO_T}$grub_cv_i386_check_nested_functions" >&6; }
7781 if test "x
$grub_cv_i386_check_nested_functions" = xyes; then
7783 cat >>confdefs.h <<\_ACEOF
7784 #define NESTED_FUNC_ATTR __attribute__ ((__regparm__ (1)))
7789 cat >>confdefs.h <<\_ACEOF
7790 #define NESTED_FUNC_ATTR __attribute__ ((__regparm__ (1)))
7797 cat >>confdefs.h <<\_ACEOF
7798 #define NESTED_FUNC_ATTR
7803 # Restore the flags.
7805 CFLAGS="$tmp_CFLAGS"
7806 CPPFLAGS="$tmp_CPPFLAGS"
7807 LDFLAGS="$tmp_LDFLAGS"
7811 # Check for options.
7814 # Memory manager debugging.
7815 # Check whether --enable-mm-debug was given.
7816 if test "${enable_mm_debug+set}" = set; then
7817 enableval=$enable_mm_debug;
7818 cat >>confdefs.h <<\_ACEOF
7825 # Check whether --enable-grub-emu was given.
7826 if test "${enable_grub_emu+set}" = set; then
7827 enableval=$enable_grub_emu;
7830 if [ x"$enable_grub_emu" = xyes ]; then
7831 # Check for curses libraries.
7832 { echo "$as_me:$LINENO: checking
for wgetch
in -lncurses" >&5
7833 echo $ECHO_N "checking
for wgetch
in -lncurses...
$ECHO_C" >&6; }
7834 if test "${ac_cv_lib_ncurses_wgetch+set}" = set; then
7835 echo $ECHO_N "(cached
) $ECHO_C" >&6
7837 ac_check_lib_save_LIBS=$LIBS
7838 LIBS="-lncurses $LIBS"
7839 cat >conftest.$ac_ext <<_ACEOF
7842 cat confdefs.h >>conftest.$ac_ext
7843 cat >>conftest.$ac_ext <<_ACEOF
7844 /* end confdefs.h. */
7846 /* Override any GCC internal prototype to avoid an error.
7847 Use char because int might match the return type of a GCC
7848 builtin and then its argument prototype would still apply. */
7861 rm -f conftest.$ac_objext conftest$ac_exeext
7862 if { (ac_try="$ac_link"
7864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7865 *) ac_try_echo=$ac_try;;
7867 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7868 (eval "$ac_link") 2>conftest.er1
7870 grep -v '^ *+' conftest.er1 >conftest.err
7872 cat conftest.err >&5
7873 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7874 (exit $ac_status); } && {
7875 test -z "$ac_c_werror_flag" ||
7876 test ! -s conftest.err
7877 } && test -s conftest$ac_exeext &&
7878 $as_test_x conftest$ac_exeext; then
7879 ac_cv_lib_ncurses_wgetch=yes
7881 echo "$as_me: failed program was
:" >&5
7882 sed 's/^/| /' conftest.$ac_ext >&5
7884 ac_cv_lib_ncurses_wgetch=no
7887 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7888 conftest$ac_exeext conftest.$ac_ext
7889 LIBS=$ac_check_lib_save_LIBS
7891 { echo "$as_me:$LINENO: result
: $ac_cv_lib_ncurses_wgetch" >&5
7892 echo "${ECHO_T}$ac_cv_lib_ncurses_wgetch" >&6; }
7893 if test $ac_cv_lib_ncurses_wgetch = yes; then
7894 LIBCURSES="-lncurses"
7896 { echo "$as_me:$LINENO: checking
for wgetch
in -lcurses" >&5
7897 echo $ECHO_N "checking
for wgetch
in -lcurses...
$ECHO_C" >&6; }
7898 if test "${ac_cv_lib_curses_wgetch+set}" = set; then
7899 echo $ECHO_N "(cached
) $ECHO_C" >&6
7901 ac_check_lib_save_LIBS=$LIBS
7902 LIBS="-lcurses $LIBS"
7903 cat >conftest.$ac_ext <<_ACEOF
7906 cat confdefs.h >>conftest.$ac_ext
7907 cat >>conftest.$ac_ext <<_ACEOF
7908 /* end confdefs.h. */
7910 /* Override any GCC internal prototype to avoid an error.
7911 Use char because int might match the return type of a GCC
7912 builtin and then its argument prototype would still apply. */
7925 rm -f conftest.$ac_objext conftest$ac_exeext
7926 if { (ac_try="$ac_link"
7928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7929 *) ac_try_echo=$ac_try;;
7931 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7932 (eval "$ac_link") 2>conftest.er1
7934 grep -v '^ *+' conftest.er1 >conftest.err
7936 cat conftest.err >&5
7937 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7938 (exit $ac_status); } && {
7939 test -z "$ac_c_werror_flag" ||
7940 test ! -s conftest.err
7941 } && test -s conftest$ac_exeext &&
7942 $as_test_x conftest$ac_exeext; then
7943 ac_cv_lib_curses_wgetch=yes
7945 echo "$as_me: failed program was
:" >&5
7946 sed 's/^/| /' conftest.$ac_ext >&5
7948 ac_cv_lib_curses_wgetch=no
7951 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7952 conftest$ac_exeext conftest.$ac_ext
7953 LIBS=$ac_check_lib_save_LIBS
7955 { echo "$as_me:$LINENO: result
: $ac_cv_lib_curses_wgetch" >&5
7956 echo "${ECHO_T}$ac_cv_lib_curses_wgetch" >&6; }
7957 if test $ac_cv_lib_curses_wgetch = yes; then
7958 LIBCURSES="-lcurses"
7960 { { echo "$as_me:$LINENO: error
: (n
)curses libraries are required to build \
`grub-emu'" >&5
7961 echo "$as_me: error: (n)curses libraries are required to build \`grub-emu
'" >&2;}
7962 { (exit 1); exit 1; }; }
7969 # Check for headers.
7971 for ac_header in ncurses/curses.h
7973 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7974 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7975 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7976 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7977 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7978 echo $ECHO_N "(cached) $ECHO_C" >&6
7980 ac_res=`eval echo '${'$as_ac_Header'}'`
7981 { echo "$as_me:$LINENO: result: $ac_res" >&5
7982 echo "${ECHO_T}$ac_res" >&6; }
7984 # Is the header compilable?
7985 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7986 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7987 cat >conftest.$ac_ext <<_ACEOF
7990 cat confdefs.h >>conftest.$ac_ext
7991 cat >>conftest.$ac_ext <<_ACEOF
7992 /* end confdefs.h. */
7993 $ac_includes_default
7994 #include <$ac_header>
7996 rm -f conftest.$ac_objext
7997 if { (ac_try="$ac_compile"
7999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8000 *) ac_try_echo=$ac_try;;
8002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8003 (eval "$ac_compile") 2>conftest.er1
8005 grep -v '^
*+' conftest.er1 >conftest.err
8007 cat conftest.err >&5
8008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8009 (exit $ac_status); } && {
8010 test -z "$ac_c_werror_flag" ||
8011 test ! -s conftest.err
8012 } && test -s conftest.$ac_objext; then
8013 ac_header_compiler=yes
8015 echo "$as_me: failed program was:" >&5
8016 sed 's
/^
/|
/' conftest.$ac_ext >&5
8018 ac_header_compiler=no
8021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8022 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8023 echo "${ECHO_T}$ac_header_compiler" >&6; }
8025 # Is the header present?
8026 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8027 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8028 cat >conftest.$ac_ext <<_ACEOF
8031 cat confdefs.h >>conftest.$ac_ext
8032 cat >>conftest.$ac_ext <<_ACEOF
8033 /* end confdefs.h. */
8034 #include <$ac_header>
8036 if { (ac_try="$ac_cpp conftest.$ac_ext"
8038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8039 *) ac_try_echo=$ac_try;;
8041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8042 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8044 grep -v '^
*+' conftest.er1 >conftest.err
8046 cat conftest.err >&5
8047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8048 (exit $ac_status); } >/dev/null && {
8049 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8050 test ! -s conftest.err
8052 ac_header_preproc=yes
8054 echo "$as_me: failed program was:" >&5
8055 sed 's
/^
/|
/' conftest.$ac_ext >&5
8057 ac_header_preproc=no
8060 rm -f conftest.err conftest.$ac_ext
8061 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8062 echo "${ECHO_T}$ac_header_preproc" >&6; }
8064 # So? What about this header?
8065 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8067 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8068 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8069 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result
" >&5
8070 echo "$as_me: WARNING
: $ac_header: proceeding with the compiler
's result" >&2;}
8071 ac_header_preproc=yes
8074 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8075 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8076 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8077 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8078 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8079 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8080 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8081 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8082 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result
" >&5
8083 echo "$as_me: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&2;}
8084 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8085 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8087 ## ------------------------------- ##
8088 ## Report this to bug-grub@gnu.org ##
8089 ## ------------------------------- ##
8091 ) | sed "s/^/$as_me: WARNING: /" >&2
8094 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8095 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8096 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8097 echo $ECHO_N "(cached) $ECHO_C" >&6
8099 eval "$as_ac_Header=\$ac_header_preproc"
8101 ac_res=`eval echo '${'$as_ac_Header'}'`
8102 { echo "$as_me:$LINENO: result: $ac_res" >&5
8103 echo "${ECHO_T}$ac_res" >&6; }
8106 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8107 cat >>confdefs.h <<_ACEOF
8108 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8113 for ac_header in ncurses.h
8115 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8116 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8117 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8118 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8119 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8120 echo $ECHO_N "(cached) $ECHO_C" >&6
8122 ac_res=`eval echo '${'$as_ac_Header'}'`
8123 { echo "$as_me:$LINENO: result: $ac_res" >&5
8124 echo "${ECHO_T}$ac_res" >&6; }
8126 # Is the header compilable?
8127 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8128 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8129 cat >conftest.$ac_ext <<_ACEOF
8132 cat confdefs.h >>conftest.$ac_ext
8133 cat >>conftest.$ac_ext <<_ACEOF
8134 /* end confdefs.h. */
8135 $ac_includes_default
8136 #include <$ac_header>
8138 rm -f conftest.$ac_objext
8139 if { (ac_try="$ac_compile"
8141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8142 *) ac_try_echo=$ac_try;;
8144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8145 (eval "$ac_compile") 2>conftest.er1
8147 grep -v '^
*+' conftest.er1 >conftest.err
8149 cat conftest.err >&5
8150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8151 (exit $ac_status); } && {
8152 test -z "$ac_c_werror_flag" ||
8153 test ! -s conftest.err
8154 } && test -s conftest.$ac_objext; then
8155 ac_header_compiler=yes
8157 echo "$as_me: failed program was:" >&5
8158 sed 's
/^
/|
/' conftest.$ac_ext >&5
8160 ac_header_compiler=no
8163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8164 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8165 echo "${ECHO_T}$ac_header_compiler" >&6; }
8167 # Is the header present?
8168 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8169 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8170 cat >conftest.$ac_ext <<_ACEOF
8173 cat confdefs.h >>conftest.$ac_ext
8174 cat >>conftest.$ac_ext <<_ACEOF
8175 /* end confdefs.h. */
8176 #include <$ac_header>
8178 if { (ac_try="$ac_cpp conftest.$ac_ext"
8180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8181 *) ac_try_echo=$ac_try;;
8183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8184 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8186 grep -v '^
*+' conftest.er1 >conftest.err
8188 cat conftest.err >&5
8189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8190 (exit $ac_status); } >/dev/null && {
8191 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8192 test ! -s conftest.err
8194 ac_header_preproc=yes
8196 echo "$as_me: failed program was:" >&5
8197 sed 's
/^
/|
/' conftest.$ac_ext >&5
8199 ac_header_preproc=no
8202 rm -f conftest.err conftest.$ac_ext
8203 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8204 echo "${ECHO_T}$ac_header_preproc" >&6; }
8206 # So? What about this header?
8207 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8209 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8210 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8211 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result
" >&5
8212 echo "$as_me: WARNING
: $ac_header: proceeding with the compiler
's result" >&2;}
8213 ac_header_preproc=yes
8216 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8217 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8218 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8219 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8220 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8221 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8222 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8223 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8224 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result
" >&5
8225 echo "$as_me: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&2;}
8226 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8227 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8229 ## ------------------------------- ##
8230 ## Report this to bug-grub@gnu.org ##
8231 ## ------------------------------- ##
8233 ) | sed "s/^/$as_me: WARNING: /" >&2
8236 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8237 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8238 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8239 echo $ECHO_N "(cached) $ECHO_C" >&6
8241 eval "$as_ac_Header=\$ac_header_preproc"
8243 ac_res=`eval echo '${'$as_ac_Header'}'`
8244 { echo "$as_me:$LINENO: result: $ac_res" >&5
8245 echo "${ECHO_T}$ac_res" >&6; }
8248 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8249 cat >>confdefs.h <<_ACEOF
8250 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8255 for ac_header in curses.h
8257 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8258 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8259 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8260 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8261 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8262 echo $ECHO_N "(cached) $ECHO_C" >&6
8264 ac_res=`eval echo '${'$as_ac_Header'}'`
8265 { echo "$as_me:$LINENO: result: $ac_res" >&5
8266 echo "${ECHO_T}$ac_res" >&6; }
8268 # Is the header compilable?
8269 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8270 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8271 cat >conftest.$ac_ext <<_ACEOF
8274 cat confdefs.h >>conftest.$ac_ext
8275 cat >>conftest.$ac_ext <<_ACEOF
8276 /* end confdefs.h. */
8277 $ac_includes_default
8278 #include <$ac_header>
8280 rm -f conftest.$ac_objext
8281 if { (ac_try="$ac_compile"
8283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8284 *) ac_try_echo=$ac_try;;
8286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8287 (eval "$ac_compile") 2>conftest.er1
8289 grep -v '^
*+' conftest.er1 >conftest.err
8291 cat conftest.err >&5
8292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8293 (exit $ac_status); } && {
8294 test -z "$ac_c_werror_flag" ||
8295 test ! -s conftest.err
8296 } && test -s conftest.$ac_objext; then
8297 ac_header_compiler=yes
8299 echo "$as_me: failed program was:" >&5
8300 sed 's
/^
/|
/' conftest.$ac_ext >&5
8302 ac_header_compiler=no
8305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8306 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8307 echo "${ECHO_T}$ac_header_compiler" >&6; }
8309 # Is the header present?
8310 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8311 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8312 cat >conftest.$ac_ext <<_ACEOF
8315 cat confdefs.h >>conftest.$ac_ext
8316 cat >>conftest.$ac_ext <<_ACEOF
8317 /* end confdefs.h. */
8318 #include <$ac_header>
8320 if { (ac_try="$ac_cpp conftest.$ac_ext"
8322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8323 *) ac_try_echo=$ac_try;;
8325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8326 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8328 grep -v '^
*+' conftest.er1 >conftest.err
8330 cat conftest.err >&5
8331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8332 (exit $ac_status); } >/dev/null && {
8333 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8334 test ! -s conftest.err
8336 ac_header_preproc=yes
8338 echo "$as_me: failed program was:" >&5
8339 sed 's
/^
/|
/' conftest.$ac_ext >&5
8341 ac_header_preproc=no
8344 rm -f conftest.err conftest.$ac_ext
8345 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8346 echo "${ECHO_T}$ac_header_preproc" >&6; }
8348 # So? What about this header?
8349 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8351 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8352 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8353 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result
" >&5
8354 echo "$as_me: WARNING
: $ac_header: proceeding with the compiler
's result" >&2;}
8355 ac_header_preproc=yes
8358 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8359 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8360 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8361 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8362 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8363 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8364 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8365 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8366 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result
" >&5
8367 echo "$as_me: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&2;}
8368 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8369 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8371 ## ------------------------------- ##
8372 ## Report this to bug-grub@gnu.org ##
8373 ## ------------------------------- ##
8375 ) | sed "s/^/$as_me: WARNING: /" >&2
8378 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8379 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8380 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8381 echo $ECHO_N "(cached) $ECHO_C" >&6
8383 eval "$as_ac_Header=\$ac_header_preproc"
8385 ac_res=`eval echo '${'$as_ac_Header'}'`
8386 { echo "$as_me:$LINENO: result: $ac_res" >&5
8387 echo "${ECHO_T}$ac_res" >&6; }
8390 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8391 cat >>confdefs.h <<_ACEOF
8392 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8396 { { echo "$as_me:$LINENO: error: (n)curses header files are required to build \`grub-emu'" >&5
8397 echo "$as_me: error
: (n
)curses header files are required to build \
`grub-emu'" >&2;}
8398 { (exit 1); exit 1; }; }
8414 # Check whether --enable-grub-fstest was given.
8415 if test "${enable_grub_fstest+set}" = set; then
8416 enableval=$enable_grub_fstest;
8421 # Check whether --enable-grub-pe2elf was given.
8422 if test "${enable_grub_pe2elf+set}" = set; then
8423 enableval=$enable_grub_pe2elf;
8429 ac_config_links="$ac_config_links include/grub/cpu:include/grub/$target_cpu include/grub/machine:include/grub/$target_cpu/$platform"
8431 ac_config_files="$ac_config_files Makefile gensymlist.sh genkernsyms.sh"
8433 ac_config_files="$ac_config_files stamp-h"
8435 cat >confcache <<\_ACEOF
8436 # This file is a shell script that caches the results of configure
8437 # tests run on this system so they can be shared between configure
8438 # scripts and configure runs, see configure's option --config-cache.
8439 # It is not useful on other systems. If it contains results you don't
8440 # want to keep, you may remove or edit it.
8442 # config.status only pays attention to the cache file if you give it
8443 # the --recheck option to rerun configure.
8445 # `ac_cv_env_foo
' variables (set or unset) will be overridden when
8446 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8451 # The following way of writing the cache mishandles newlines in values,
8452 # but we know of no workaround that is simple, portable, and efficient.
8453 # So, we kill variables containing newlines.
8454 # Ultrix sh set writes to stderr and can't be redirected directly,
8455 # and sets the high bit in the cache file unless we assign to the vars.
8457 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
8458 eval ac_val
=\$
$ac_var
8462 *_cv_
*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
8463 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
8466 _ | IFS | as_nl
) ;; #(
8467 *) $as_unset $ac_var ;;
8473 case $as_nl`(ac_space=' '; set) 2>&1` in #(
8474 *${as_nl}ac_space
=\
*)
8475 # `set' does not quote correctly, so add quotes (double-quote
8476 # substitution turns \\\\ into \\, and sed turns \\ into \).
8479 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8482 # `set' quotes correctly as required by POSIX, so do not add quotes.
8483 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
8492 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8494 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8496 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
8497 if test -w "$cache_file"; then
8498 test "x$cache_file" != "x/dev/null" &&
8499 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
8500 echo "$as_me: updating cache $cache_file" >&6;}
8501 cat confcache
>$cache_file
8503 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
8504 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
8509 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
8510 # Let make expand exec_prefix.
8511 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
8513 DEFS
=-DHAVE_CONFIG_H
8517 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
8518 # 1. Remove the extension, and $U if already installed.
8519 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
8520 ac_i
=`echo "$ac_i" | sed "$ac_script"`
8521 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
8522 # will be set to the directory where LIBOBJS objects are built.
8523 ac_libobjs
="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
8524 ac_ltlibobjs
="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
8528 LTLIBOBJS
=$ac_ltlibobjs
8532 : ${CONFIG_STATUS=./config.status}
8533 ac_clean_files_save
=$ac_clean_files
8534 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
8535 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
8536 echo "$as_me: creating $CONFIG_STATUS" >&6;}
8537 cat >$CONFIG_STATUS <<_ACEOF
8539 # Generated by $as_me.
8540 # Run this file to recreate the current configuration.
8541 # Compiler output produced by configure, useful for debugging
8542 # configure, is in config.log if it exists.
8547 SHELL=\${CONFIG_SHELL-$SHELL}
8550 cat >>$CONFIG_STATUS <<\_ACEOF
8551 ## --------------------- ##
8552 ## M4sh Initialization. ##
8553 ## --------------------- ##
8555 # Be more Bourne compatible
8556 DUALCASE
=1; export DUALCASE
# for MKS sh
8557 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
8560 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
8561 # is contrary to our usage. Disable this feature.
8562 alias -g '${1+"$@"}'='"$@"'
8563 setopt NO_GLOB_SUBST
8565 case `(set -o) 2>/dev/null` in
8566 *posix
*) set -o posix
;;
8575 # Avoid depending upon Character Ranges.
8576 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
8577 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8578 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
8579 as_cr_digits
='0123456789'
8580 as_cr_alnum
=$as_cr_Letters$as_cr_digits
8582 # The user is always right.
8583 if test "${PATH_SEPARATOR+set}" != set; then
8584 echo "#! /bin/sh" >conf$$.sh
8585 echo "exit 0" >>conf$$.sh
8587 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
8595 # Support unset when possible.
8596 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
8604 # We need space, tab and new line, in precisely that order. Quoting is
8605 # there to prevent editors from complaining about space-tab.
8606 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
8607 # splitting by setting IFS to empty value.)
8612 # Find who we are. Look in the path if we contain no directory separator.
8614 *[\\/]* ) as_myself
=$0 ;;
8615 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8619 test -z "$as_dir" && as_dir
=.
8620 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
8626 # We did not find ourselves, most probably we were run as `sh COMMAND'
8627 # in which case we are not to be found in the path.
8628 if test "x$as_myself" = x
; then
8631 if test ! -f "$as_myself"; then
8632 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
8633 { (exit 1); exit 1; }
8636 # Work around bugs in pre-3.0 UWIN ksh.
8637 for as_var
in ENV MAIL MAILPATH
8638 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
8646 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
8647 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
8648 LC_TELEPHONE LC_TIME
8650 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
8651 eval $as_var=C
; export $as_var
8653 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
8657 # Required to use basename.
8658 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
8659 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
8665 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
8666 as_basename
=basename
8672 # Name of the executable.
8673 as_me
=`$as_basename -- "$0" ||
8674 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8675 X"$0" : 'X\(//\)$' \| \
8676 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
8678 sed '/^.*\/\([^/][^/]*\)\/*$/{
8699 test "x$as_lineno_1" != "x$as_lineno_2" &&
8700 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
8702 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
8703 # uniformly replaced by the line number. The first 'sed' inserts a
8704 # line-number line after each line using $LINENO; the second 'sed'
8705 # does the real work. The second script uses 'N' to pair each
8706 # line-number line with the line containing $LINENO, and appends
8707 # trailing '-' during substitution so that $LINENO is not a special
8709 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
8710 # scripts with optimization help from Paolo Bonzini. Blame Lee
8711 # E. McMahon (1931-1989) for sed's syntax. :-)
8723 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
8727 chmod +x
"$as_me.lineno" ||
8728 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
8729 { (exit 1); exit 1; }; }
8731 # Don't try to exec as it changes $[0], causing all sort of problems
8732 # (the dirname of $[0] is not the place where we might find the
8733 # original and so on. Autoconf is especially sensitive to this).
8735 # Exit status is that of the last command.
8740 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
8746 ECHO_C
= ECHO_N
= ECHO_T
=
8749 case `echo 'x\c'` in
8750 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
8757 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
8758 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
8764 rm -f conf$$ conf$$.exe conf$$.
file
8765 if test -d conf$$.dir
; then
8766 rm -f conf$$.dir
/conf$$.
file
8772 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
8774 # ... but there are two gotchas:
8775 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
8776 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
8777 # In both cases, we have to default to `cp -p'.
8778 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
8780 elif ln conf$$.
file conf$$
2>/dev
/null
; then
8785 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
8786 rmdir conf$$.dir
2>/dev
/null
8788 if mkdir
-p .
2>/dev
/null
; then
8791 test -d .
/-p && rmdir .
/-p
8795 if test -x / >/dev
/null
2>&1; then
8798 if ls -dL / >/dev
/null
2>&1; then
8805 if test -d "$1"; then
8811 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
8812 ???[sx]*):;;*)false;;esac;fi
8816 as_executable_p
=$as_test_x
8818 # Sed expression to map a string onto a valid CPP name.
8819 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8821 # Sed expression to map a string onto a valid variable name.
8822 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8827 # Save the log message, to keep $[0] and so on meaningful, and to
8828 # report actual input values of CONFIG_FILES etc. instead of their
8829 # values after options handling.
8831 This file was extended by GRUB $as_me 1.96, which was
8832 generated by GNU Autoconf 2.61. Invocation command line was
8834 CONFIG_FILES = $CONFIG_FILES
8835 CONFIG_HEADERS = $CONFIG_HEADERS
8836 CONFIG_LINKS = $CONFIG_LINKS
8837 CONFIG_COMMANDS = $CONFIG_COMMANDS
8840 on `(hostname || uname -n) 2>/dev/null | sed 1q`
8845 cat >>$CONFIG_STATUS <<_ACEOF
8846 # Files that config.status was made for.
8847 config_files="$ac_config_files"
8848 config_headers="$ac_config_headers"
8849 config_links="$ac_config_links"
8853 cat >>$CONFIG_STATUS <<\_ACEOF
8855 \`$as_me' instantiates files from templates according to the
8856 current configuration.
8858 Usage: $0 [OPTIONS] [FILE]...
8860 -h, --help print this help, then exit
8861 -V, --version print version number and configuration settings, then exit
8862 -q, --quiet do not print progress messages
8863 -d, --debug don't remove temporary files
8864 --recheck update $as_me by reconfiguring in the same conditions
8865 --file=FILE[:TEMPLATE]
8866 instantiate the configuration file FILE
8867 --header=FILE[:TEMPLATE]
8868 instantiate the configuration header FILE
8870 Configuration files:
8873 Configuration headers:
8876 Configuration links:
8879 Report bugs to <bug-autoconf@gnu.org>."
8882 cat >>$CONFIG_STATUS <<_ACEOF
8884 GRUB config.status 1.96
8885 configured by $0, generated by GNU Autoconf 2.61,
8886 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
8888 Copyright (C) 2006 Free Software Foundation, Inc.
8889 This config.status script is free software; the Free Software Foundation
8890 gives unlimited permission to copy, distribute and modify it."
8897 cat >>$CONFIG_STATUS <<\_ACEOF
8898 # If no file are specified by the user, then we need to provide default
8899 # value. By we need to know if files were specified by the user.
8905 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
8906 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
8917 # Handling of the options.
8918 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
8920 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
8921 echo "$ac_cs_version"; exit ;;
8922 --debug |
--debu |
--deb |
--de |
--d |
-d )
8924 --file |
--fil |
--fi |
--f )
8926 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
8927 ac_need_defaults
=false
;;
8928 --header |
--heade |
--head |
--hea )
8930 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
8931 ac_need_defaults
=false
;;
8933 # Conflict between --help and --header
8934 { echo "$as_me: error: ambiguous option: $1
8935 Try \`$0 --help' for more information." >&2
8936 { (exit 1); exit 1; }; };;
8937 --help |
--hel |
-h )
8938 echo "$ac_cs_usage"; exit ;;
8939 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
8940 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
8944 -*) { echo "$as_me: error: unrecognized option: $1
8945 Try \`$0 --help' for more information." >&2
8946 { (exit 1); exit 1; }; } ;;
8948 *) ac_config_targets
="$ac_config_targets $1"
8949 ac_need_defaults
=false
;;
8955 ac_configure_extra_args
=
8957 if $ac_cs_silent; then
8959 ac_configure_extra_args
="$ac_configure_extra_args --silent"
8963 cat >>$CONFIG_STATUS <<_ACEOF
8964 if \$ac_cs_recheck; then
8965 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
8968 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8972 cat >>$CONFIG_STATUS <<\_ACEOF
8976 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8977 ## Running $as_me. ##
8983 cat >>$CONFIG_STATUS <<_ACEOF
8986 cat >>$CONFIG_STATUS <<\_ACEOF
8988 # Handling of arguments.
8989 for ac_config_target
in $ac_config_targets
8991 case $ac_config_target in
8992 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
8993 "include/grub/cpu") CONFIG_LINKS
="$CONFIG_LINKS include/grub/cpu:include/grub/$target_cpu" ;;
8994 "include/grub/machine") CONFIG_LINKS
="$CONFIG_LINKS include/grub/machine:include/grub/$target_cpu/$platform" ;;
8995 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
8996 "gensymlist.sh") CONFIG_FILES
="$CONFIG_FILES gensymlist.sh" ;;
8997 "genkernsyms.sh") CONFIG_FILES
="$CONFIG_FILES genkernsyms.sh" ;;
8998 "stamp-h") CONFIG_FILES
="$CONFIG_FILES stamp-h" ;;
9000 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
9001 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
9002 { (exit 1); exit 1; }; };;
9007 # If the user did not use the arguments to specify the items to instantiate,
9008 # then the envvar interface is used. Set only those that are not.
9009 # We use the long form for the default assignment because of an extremely
9010 # bizarre bug on SunOS 4.1.3.
9011 if $ac_need_defaults; then
9012 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
9013 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
9014 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS
=$config_links
9017 # Have a temporary directory for convenience. Make it in the build tree
9018 # simply because there is no reason against having it here, and in addition,
9019 # creating and moving files from /tmp can sometimes cause problems.
9020 # Hook for its removal unless debugging.
9021 # Note that there is a small window in which the directory will not be cleaned:
9022 # after its creation but before its name has been assigned to `$tmp'.
9026 trap 'exit_status=$?
9027 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
9029 trap '{ (exit 1); exit 1; }' 1 2 13 15
9031 # Create a (secure) tmp directory for tmp files.
9034 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
9035 test -n "$tmp" && test -d "$tmp"
9038 tmp
=.
/conf$$
-$RANDOM
9039 (umask 077 && mkdir
"$tmp")
9042 echo "$me: cannot create a temporary directory in ." >&2
9043 { (exit 1); exit 1; }
9047 # Set up the sed scripts for CONFIG_FILES section.
9050 # No need to generate the scripts if there are no CONFIG_FILES.
9051 # This happens for instance when ./config.status config.h
9052 if test -n "$CONFIG_FILES"; then
9059 for ac_last_try
in false false false false false
:; do
9060 cat >conf$
$subs.
sed <<_ACEOF
9061 SHELL!$SHELL$ac_delim
9062 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
9063 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
9064 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
9065 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
9066 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
9067 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
9068 exec_prefix!$exec_prefix$ac_delim
9069 prefix!$prefix$ac_delim
9070 program_transform_name!$program_transform_name$ac_delim
9071 bindir!$bindir$ac_delim
9072 sbindir!$sbindir$ac_delim
9073 libexecdir!$libexecdir$ac_delim
9074 datarootdir!$datarootdir$ac_delim
9075 datadir!$datadir$ac_delim
9076 sysconfdir!$sysconfdir$ac_delim
9077 sharedstatedir!$sharedstatedir$ac_delim
9078 localstatedir!$localstatedir$ac_delim
9079 includedir!$includedir$ac_delim
9080 oldincludedir!$oldincludedir$ac_delim
9081 docdir!$docdir$ac_delim
9082 infodir!$infodir$ac_delim
9083 htmldir!$htmldir$ac_delim
9084 dvidir!$dvidir$ac_delim
9085 pdfdir!$pdfdir$ac_delim
9086 psdir!$psdir$ac_delim
9087 libdir!$libdir$ac_delim
9088 localedir!$localedir$ac_delim
9089 mandir!$mandir$ac_delim
9091 ECHO_C!$ECHO_C$ac_delim
9092 ECHO_N!$ECHO_N$ac_delim
9093 ECHO_T!$ECHO_T$ac_delim
9095 build_alias!$build_alias$ac_delim
9096 host_alias!$host_alias$ac_delim
9097 target_alias!$target_alias$ac_delim
9098 build!$build$ac_delim
9099 build_cpu!$build_cpu$ac_delim
9100 build_vendor!$build_vendor$ac_delim
9101 build_os!$build_os$ac_delim
9103 host_cpu!$host_cpu$ac_delim
9104 host_vendor!$host_vendor$ac_delim
9105 host_os!$host_os$ac_delim
9106 target!$target$ac_delim
9107 target_cpu!$target_cpu$ac_delim
9108 target_vendor!$target_vendor$ac_delim
9109 target_os!$target_os$ac_delim
9110 platform!$platform$ac_delim
9113 UNIFONT_HEX!$UNIFONT_HEX$ac_delim
9114 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
9115 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
9116 INSTALL_DATA!$INSTALL_DATA$ac_delim
9118 SET_MAKE!$SET_MAKE$ac_delim
9120 HELP2MAN!$HELP2MAN$ac_delim
9122 CFLAGS!$CFLAGS$ac_delim
9123 LDFLAGS!$LDFLAGS$ac_delim
9124 CPPFLAGS!$CPPFLAGS$ac_delim
9125 ac_ct_CC!$ac_ct_CC$ac_delim
9126 EXEEXT!$EXEEXT$ac_delim
9127 OBJEXT!$OBJEXT$ac_delim
9130 EGREP!$EGREP$ac_delim
9131 LIBLZO!$LIBLZO$ac_delim
9132 enable_lzo!$enable_lzo$ac_delim
9133 TARGET_IMG_LDSCRIPT!$TARGET_IMG_LDSCRIPT$ac_delim
9134 TARGET_IMG_LDFLAGS!$TARGET_IMG_LDFLAGS$ac_delim
9135 TARGET_OBJ2ELF!$TARGET_OBJ2ELF$ac_delim
9136 TARGET_CC!$TARGET_CC$ac_delim
9137 ac_ct_TARGET_CC!$ac_ct_TARGET_CC$ac_delim
9138 OBJCOPY!$OBJCOPY$ac_delim
9139 STRIP!$STRIP$ac_delim
9141 TARGET_CFLAGS!$TARGET_CFLAGS$ac_delim
9142 TARGET_CPPFLAGS!$TARGET_CPPFLAGS$ac_delim
9143 TARGET_LDFLAGS!$TARGET_LDFLAGS$ac_delim
9144 MODULE_LDFLAGS!$MODULE_LDFLAGS$ac_delim
9145 LIBCURSES!$LIBCURSES$ac_delim
9146 enable_grub_emu!$enable_grub_emu$ac_delim
9147 enable_grub_fstest!$enable_grub_fstest$ac_delim
9148 enable_grub_pe2elf!$enable_grub_pe2elf$ac_delim
9149 LIBOBJS!$LIBOBJS$ac_delim
9150 LTLIBOBJS!$LTLIBOBJS$ac_delim
9153 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 90; then
9155 elif $ac_last_try; then
9156 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
9157 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
9158 { (exit 1); exit 1; }; }
9160 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
9164 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
9165 if test -n "$ac_eof"; then
9166 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
9167 ac_eof
=`expr $ac_eof + 1`
9170 cat >>$CONFIG_STATUS <<_ACEOF
9171 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
9172 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
9175 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
9176 s/^/s,@/; s/!/@,|#_!!_#|/
9179 s/'"$ac_delim"'$/,g/; t
9181 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
9182 ' >>$CONFIG_STATUS <conf$
$subs.
sed
9183 rm -f conf$
$subs.
sed
9184 cat >>$CONFIG_STATUS <<_ACEOF
9191 # VPATH may cause trouble with some makes, so we remove $(srcdir),
9192 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
9193 # trailing colons and then remove the whole line if VPATH becomes empty
9194 # (actually we leave an empty line to preserve line numbers).
9195 if test "x$srcdir" = x.
; then
9196 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
9200 s/^\([^=]*=[ ]*\):*/\1/
9206 cat >>$CONFIG_STATUS <<\_ACEOF
9207 fi # test -n "$CONFIG_FILES"
9210 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS :L
$CONFIG_LINKS
9213 :[FHLC
]) ac_mode
=$ac_tag; continue;;
9215 case $ac_mode$ac_tag in
9217 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
9218 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
9219 { (exit 1); exit 1; }; };;
9220 :[FH
]-) ac_tag
=-:-;;
9221 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
9238 -) ac_f
="$tmp/stdin";;
9239 *) # Look for the file first in the build tree, then in the source tree
9240 # (if the path is not absolute). The absolute path cannot be DOS-style,
9241 # because $ac_f cannot contain `:'.
9245 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
9247 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
9248 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
9249 { (exit 1); exit 1; }; };;
9251 ac_file_inputs
="$ac_file_inputs $ac_f"
9254 # Let's still pretend it is `configure' which instantiates (i.e., don't
9255 # use $as_me), people would be surprised to read:
9256 # /* config.h. Generated by config.status. */
9257 configure_input
="Generated from "`IFS=:
9258 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
9259 if test x
"$ac_file" != x-
; then
9260 configure_input
="$ac_file. $configure_input"
9261 { echo "$as_me:$LINENO: creating $ac_file" >&5
9262 echo "$as_me: creating $ac_file" >&6;}
9266 *:-:* |
*:-) cat >"$tmp/stdin";;
9271 ac_dir
=`$as_dirname -- "$ac_file" ||
9272 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9273 X"$ac_file" : 'X\(//\)[^/]' \| \
9274 X"$ac_file" : 'X\(//\)$' \| \
9275 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
9277 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9296 -*) as_dir
=.
/$as_dir;;
9298 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
9302 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
9303 *) as_qdir
=$as_dir;;
9305 as_dirs
="'$as_qdir' $as_dirs"
9306 as_dir
=`$as_dirname -- "$as_dir" ||
9307 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9308 X"$as_dir" : 'X\(//\)[^/]' \| \
9309 X"$as_dir" : 'X\(//\)$' \| \
9310 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
9312 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9329 test -d "$as_dir" && break
9331 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
9332 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
9333 echo "$as_me: error: cannot create directory $as_dir" >&2;}
9334 { (exit 1); exit 1; }; }; }
9338 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
9340 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9341 # A ".." for each directory in $ac_dir_suffix.
9342 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
9343 case $ac_top_builddir_sub in
9344 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
9345 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
9348 ac_abs_top_builddir
=$ac_pwd
9349 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
9350 # for backward compatibility:
9351 ac_top_builddir
=$ac_top_build_prefix
9354 .
) # We are building in place.
9356 ac_top_srcdir
=$ac_top_builddir_sub
9357 ac_abs_top_srcdir
=$ac_pwd ;;
9358 [\\/]* | ?
:[\\/]* ) # Absolute name.
9359 ac_srcdir
=$srcdir$ac_dir_suffix;
9360 ac_top_srcdir
=$srcdir
9361 ac_abs_top_srcdir
=$srcdir ;;
9363 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
9364 ac_top_srcdir
=$ac_top_build_prefix$srcdir
9365 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
9367 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
9377 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
9378 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
9382 cat >>$CONFIG_STATUS <<\_ACEOF
9383 # If the template does not know about datarootdir, expand it.
9384 # FIXME: This hack should be removed a few years after 2.60.
9385 ac_datarootdir_hack
=; ac_datarootdir_seen
=
9387 case `sed -n '/datarootdir/ {
9396 ' $ac_file_inputs` in
9397 *datarootdir
*) ac_datarootdir_seen
=yes;;
9398 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
9399 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
9400 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
9402 cat >>$CONFIG_STATUS <<_ACEOF
9403 ac_datarootdir_hack='
9404 s&@datadir@&$datadir&g
9405 s&@docdir@&$docdir&g
9406 s&@infodir@&$infodir&g
9407 s&@localedir@&$localedir&g
9408 s&@mandir@&$mandir&g
9409 s&\\\${datarootdir}&$datarootdir&g' ;;
9413 # Neutralize VPATH when `$srcdir' = `.'.
9414 # Shell code in configure.ac might set extrasub.
9415 # FIXME: do we really want to maintain this feature?
9416 cat >>$CONFIG_STATUS <<_ACEOF
9420 cat >>$CONFIG_STATUS <<\_ACEOF
9422 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
9423 s
&@configure_input@
&$configure_input&;t t
9424 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
9425 s
&@srcdir@
&$ac_srcdir&;t t
9426 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
9427 s
&@top_srcdir@
&$ac_top_srcdir&;t t
9428 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
9429 s
&@builddir@
&$ac_builddir&;t t
9430 s
&@abs_builddir@
&$ac_abs_builddir&;t t
9431 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
9432 s
&@INSTALL@
&$ac_INSTALL&;t t
9433 $ac_datarootdir_hack
9434 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" >$tmp/out
9436 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
9437 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
9438 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
9439 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
9440 which seems to be undefined. Please make sure it is defined." >&5
9441 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
9442 which seems to be undefined. Please make sure it is defined." >&2;}
9446 -) cat "$tmp/out"; rm -f "$tmp/out";;
9447 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
9456 # Transform confdefs.h into a sed script `conftest.defines', that
9457 # substitutes the proper values into config.h.in to produce config.h.
9458 rm -f conftest.defines conftest.
tail
9459 # First, append a space to every undef/define line, to ease matching.
9460 echo 's/$/ /' >conftest.defines
9461 # Then, protect against being on the right side of a sed subst, or in
9462 # an unquoted here document, in config.status. If some macros were
9463 # called several times there might be several #defines for the same
9464 # symbol, which is useless. But do not sort them, since the last
9465 # AC_DEFINE must be honored.
9466 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
9467 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
9468 # NAME is the cpp macro being defined, VALUE is the value it is being given.
9469 # PARAMS is the parameter list in the macro definition--in most cases, it's
9470 # just an empty string.
9471 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
9472 ac_dB
='\\)[ (].*,\\1define\\2'
9480 s/^[ ]*#[ ]*define[ ][ ]*//
9485 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
9486 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
9487 ' >>conftest.defines
9489 # Remove the space that was appended to ease matching.
9490 # Then replace #undef with comments. This is necessary, for
9491 # example, in the case of _POSIX_SOURCE, which is predefined and required
9492 # on some systems where configure will not decide to define it.
9493 # (The regexp can be short, since the line contains either #define or #undef.)
9495 s,^[ #]*u.*,/* & */,' >>conftest.defines
9497 # Break up conftest.defines:
9500 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
9501 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
9502 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
9504 ac_in
='$ac_file_inputs'
9505 ac_out
='"$tmp/out1"'
9506 ac_nxt
='"$tmp/out2"'
9510 # Write a here document:
9511 cat >>$CONFIG_STATUS <<_ACEOF
9512 # First, check the format of the line:
9513 cat >"\$tmp/defines.sed" <<\\CEOF
9514 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
9515 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
9519 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
9521 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
9522 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
9523 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
9524 grep . conftest.
tail >/dev
/null ||
break
9525 rm -f conftest.defines
9526 mv conftest.
tail conftest.defines
9528 rm -f conftest.defines conftest.
tail
9530 echo "ac_result=$ac_in" >>$CONFIG_STATUS
9531 cat >>$CONFIG_STATUS <<\_ACEOF
9532 if test x
"$ac_file" != x-
; then
9533 echo "/* $configure_input */" >"$tmp/config.h"
9534 cat "$ac_result" >>"$tmp/config.h"
9535 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
9536 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
9537 echo "$as_me: $ac_file is unchanged" >&6;}
9540 mv "$tmp/config.h" $ac_file
9543 echo "/* $configure_input */"
9553 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_file" >&5
9554 echo "$as_me: linking $srcdir/$ac_source to $ac_file" >&6;}
9556 if test ! -r "$srcdir/$ac_source"; then
9557 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
9558 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
9559 { (exit 1); exit 1; }; }
9563 # Try a relative symlink, then a hard link, then a copy.
9565 [\\/$
]* | ?
:[\\/]* ) ac_rel_source
=$srcdir/$ac_source ;;
9566 *) ac_rel_source
=$ac_top_build_prefix$srcdir/$ac_source ;;
9568 ln -s "$ac_rel_source" "$ac_file" 2>/dev
/null ||
9569 ln "$srcdir/$ac_source" "$ac_file" 2>/dev
/null ||
9570 cp -p "$srcdir/$ac_source" "$ac_file" ||
9571 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_file" >&5
9572 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_file" >&2;}
9573 { (exit 1); exit 1; }; }
9579 case $ac_file$ac_mode in
9580 "stamp-h":F
) echo timestamp
> stamp-h
;;
9586 { (exit 0); exit 0; }
9588 chmod +x
$CONFIG_STATUS
9589 ac_clean_files
=$ac_clean_files_save
9592 # configure is writing to config.log, and then calls config.status.
9593 # config.status does its own redirection, appending to config.log.
9594 # Unfortunately, on DOS this fails, as config.log is still kept open
9595 # by configure, so config.status won't be able to write to it; its
9596 # output is simply discarded. So we exec the FD to /dev/null,
9597 # effectively closing config.log, so it can be properly (re)opened and
9598 # appended to by config.status. When coming back to configure, we
9599 # need to make the FD available again.
9600 if test "$no_create" != yes; then
9602 ac_config_status_args
=
9603 test "$silent" = yes &&
9604 ac_config_status_args
="$ac_config_status_args --quiet"
9606 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
9608 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9609 # would make configure fail if this is the last instruction.
9610 $ac_cs_success ||
{ (exit 1); exit 1; }