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
713 ac_precious_vars
='build_alias
724 # Initialize some variables set by options.
726 ac_init_version
=false
727 # The variables have the same names as the options, with
728 # dashes changed to underlines.
736 program_transform_name
=s
,x
,x
,
744 # Installation directory options.
745 # These are left unexpanded so users can "make install exec_prefix=/foo"
746 # and all the variables that are supposed to be based on exec_prefix
747 # by default will actually change.
748 # Use braces instead of parens because sh, perl, etc. also accept them.
749 # (The list follows the same order as the GNU Coding Standards.)
750 bindir
='${exec_prefix}/bin'
751 sbindir
='${exec_prefix}/sbin'
752 libexecdir
='${exec_prefix}/libexec'
753 datarootdir
='${prefix}/share'
754 datadir
='${datarootdir}'
755 sysconfdir
='${prefix}/etc'
756 sharedstatedir
='${prefix}/com'
757 localstatedir
='${prefix}/var'
758 includedir
='${prefix}/include'
759 oldincludedir
='/usr/include'
760 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
761 infodir
='${datarootdir}/info'
766 libdir
='${exec_prefix}/lib'
767 localedir
='${datarootdir}/locale'
768 mandir
='${datarootdir}/man'
774 # If the previous option needs an argument, assign it.
775 if test -n "$ac_prev"; then
776 eval $ac_prev=\
$ac_option
782 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
786 # Accept the important Cygnus configure options, so we can diagnose typos.
788 case $ac_dashdash$ac_option in
792 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
794 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
797 -build |
--build |
--buil |
--bui |
--bu)
798 ac_prev
=build_alias
;;
799 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
800 build_alias
=$ac_optarg ;;
802 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
803 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
804 ac_prev
=cache_file
;;
805 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
806 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
807 cache_file
=$ac_optarg ;;
810 cache_file
=config.cache
;;
812 -datadir |
--datadir |
--datadi |
--datad)
814 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
815 datadir
=$ac_optarg ;;
817 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
818 |
--dataroo |
--dataro |
--datar)
819 ac_prev
=datarootdir
;;
820 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
821 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
822 datarootdir
=$ac_optarg ;;
824 -disable-* |
--disable-*)
825 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
826 # Reject names that are not valid shell variable names.
827 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
828 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
829 { (exit 1); exit 1; }; }
830 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
831 eval enable_
$ac_feature=no
;;
833 -docdir |
--docdir |
--docdi |
--doc |
--do)
835 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
838 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
840 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
843 -enable-* |
--enable-*)
844 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
845 # Reject names that are not valid shell variable names.
846 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
847 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
848 { (exit 1); exit 1; }; }
849 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
850 eval enable_
$ac_feature=\
$ac_optarg ;;
852 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
853 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
854 |
--exec |
--exe |
--ex)
855 ac_prev
=exec_prefix
;;
856 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
857 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
858 |
--exec=* |
--exe=* |
--ex=*)
859 exec_prefix
=$ac_optarg ;;
861 -gas |
--gas |
--ga |
--g)
862 # Obsolete; use --with-gas.
865 -help |
--help |
--hel |
--he |
-h)
867 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
868 ac_init_help
=recursive
;;
869 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
870 ac_init_help
=short
;;
872 -host |
--host |
--hos |
--ho)
873 ac_prev
=host_alias
;;
874 -host=* |
--host=* |
--hos=* |
--ho=*)
875 host_alias
=$ac_optarg ;;
877 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
879 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
881 htmldir
=$ac_optarg ;;
883 -includedir |
--includedir |
--includedi |
--included |
--include \
884 |
--includ |
--inclu |
--incl |
--inc)
885 ac_prev
=includedir
;;
886 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
887 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
888 includedir
=$ac_optarg ;;
890 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
892 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
893 infodir
=$ac_optarg ;;
895 -libdir |
--libdir |
--libdi |
--libd)
897 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
900 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
901 |
--libexe |
--libex |
--libe)
902 ac_prev
=libexecdir
;;
903 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
904 |
--libexe=* |
--libex=* |
--libe=*)
905 libexecdir
=$ac_optarg ;;
907 -localedir |
--localedir |
--localedi |
--localed |
--locale)
909 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
910 localedir
=$ac_optarg ;;
912 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
913 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
914 ac_prev
=localstatedir
;;
915 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
916 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
917 localstatedir
=$ac_optarg ;;
919 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
921 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
925 # Obsolete; use --without-fp.
928 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
929 |
--no-cr |
--no-c |
-n)
932 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
933 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
936 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
937 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
938 |
--oldin |
--oldi |
--old |
--ol |
--o)
939 ac_prev
=oldincludedir
;;
940 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
941 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
942 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
943 oldincludedir
=$ac_optarg ;;
945 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
947 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
950 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
951 |
--program-pre |
--program-pr |
--program-p)
952 ac_prev
=program_prefix
;;
953 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
954 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
955 program_prefix
=$ac_optarg ;;
957 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
958 |
--program-suf |
--program-su |
--program-s)
959 ac_prev
=program_suffix
;;
960 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
961 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
962 program_suffix
=$ac_optarg ;;
964 -program-transform-name |
--program-transform-name \
965 |
--program-transform-nam |
--program-transform-na \
966 |
--program-transform-n |
--program-transform- \
967 |
--program-transform |
--program-transfor \
968 |
--program-transfo |
--program-transf \
969 |
--program-trans |
--program-tran \
970 |
--progr-tra |
--program-tr |
--program-t)
971 ac_prev
=program_transform_name
;;
972 -program-transform-name=* |
--program-transform-name=* \
973 |
--program-transform-nam=* |
--program-transform-na=* \
974 |
--program-transform-n=* |
--program-transform-=* \
975 |
--program-transform=* |
--program-transfor=* \
976 |
--program-transfo=* |
--program-transf=* \
977 |
--program-trans=* |
--program-tran=* \
978 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
979 program_transform_name
=$ac_optarg ;;
981 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
983 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
986 -psdir |
--psdir |
--psdi |
--psd |
--ps)
988 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
991 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
992 |
-silent |
--silent |
--silen |
--sile |
--sil)
995 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
997 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
999 sbindir
=$ac_optarg ;;
1001 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1002 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1003 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1005 ac_prev
=sharedstatedir
;;
1006 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1007 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1008 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1010 sharedstatedir
=$ac_optarg ;;
1012 -site |
--site |
--sit)
1014 -site=* |
--site=* |
--sit=*)
1017 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1019 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1020 srcdir
=$ac_optarg ;;
1022 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1023 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1024 ac_prev
=sysconfdir
;;
1025 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1026 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1027 sysconfdir
=$ac_optarg ;;
1029 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1030 ac_prev
=target_alias
;;
1031 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1032 target_alias
=$ac_optarg ;;
1034 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1037 -version |
--version |
--versio |
--versi |
--vers |
-V)
1038 ac_init_version
=: ;;
1041 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1042 # Reject names that are not valid shell variable names.
1043 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1044 { echo "$as_me: error: invalid package name: $ac_package" >&2
1045 { (exit 1); exit 1; }; }
1046 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1047 eval with_
$ac_package=\
$ac_optarg ;;
1049 -without-* |
--without-*)
1050 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1051 # Reject names that are not valid shell variable names.
1052 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1053 { echo "$as_me: error: invalid package name: $ac_package" >&2
1054 { (exit 1); exit 1; }; }
1055 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1056 eval with_
$ac_package=no
;;
1059 # Obsolete; use --with-x.
1062 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1063 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1064 ac_prev
=x_includes
;;
1065 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1066 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1067 x_includes
=$ac_optarg ;;
1069 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1070 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1071 ac_prev
=x_libraries
;;
1072 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1073 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1074 x_libraries
=$ac_optarg ;;
1076 -*) { echo "$as_me: error: unrecognized option: $ac_option
1077 Try \`$0 --help' for more information." >&2
1078 { (exit 1); exit 1; }; }
1082 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1083 # Reject names that are not valid shell variable names.
1084 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1085 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1086 { (exit 1); exit 1; }; }
1087 eval $ac_envvar=\
$ac_optarg
1088 export $ac_envvar ;;
1091 # FIXME: should be removed in autoconf 3.0.
1092 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1093 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1094 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1095 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1101 if test -n "$ac_prev"; then
1102 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1103 { echo "$as_me: error: missing argument to $ac_option" >&2
1104 { (exit 1); exit 1; }; }
1107 # Be sure to have absolute directory names.
1108 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1109 datadir sysconfdir sharedstatedir localstatedir includedir \
1110 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1111 libdir localedir mandir
1113 eval ac_val
=\$
$ac_var
1115 [\\/$
]* | ?
:[\\/]* ) continue;;
1116 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1118 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1119 { (exit 1); exit 1; }; }
1122 # There might be people who depend on the old broken behavior: `$host'
1123 # used to hold the argument of --host etc.
1124 # FIXME: To remove some day.
1127 target
=$target_alias
1129 # FIXME: To remove some day.
1130 if test "x$host_alias" != x
; then
1131 if test "x$build_alias" = x
; then
1132 cross_compiling
=maybe
1133 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1134 If a cross compiler is detected then cross compile mode will be used." >&2
1135 elif test "x$build_alias" != "x$host_alias"; then
1141 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1143 test "$silent" = yes && exec 6>/dev
/null
1146 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1147 ac_ls_di
=`ls -di .` &&
1148 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1149 { echo "$as_me: error: Working directory cannot be determined" >&2
1150 { (exit 1); exit 1; }; }
1151 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1152 { echo "$as_me: error: pwd does not report name of working directory" >&2
1153 { (exit 1); exit 1; }; }
1156 # Find the source files, if location was not specified.
1157 if test -z "$srcdir"; then
1158 ac_srcdir_defaulted
=yes
1159 # Try the directory containing this script, then the parent directory.
1160 ac_confdir
=`$as_dirname -- "$0" ||
1161 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1162 X"$0" : 'X\(//\)[^/]' \| \
1163 X"$0" : 'X\(//\)$' \| \
1164 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1166 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1184 if test ! -r "$srcdir/$ac_unique_file"; then
1188 ac_srcdir_defaulted
=no
1190 if test ! -r "$srcdir/$ac_unique_file"; then
1191 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1192 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1193 { (exit 1); exit 1; }; }
1195 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1197 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1198 { (exit 1); exit 1; }; }
1200 # When building in place, set srcdir=.
1201 if test "$ac_abs_confdir" = "$ac_pwd"; then
1204 # Remove unnecessary trailing slashes from srcdir.
1205 # Double slashes in file names in object file debugging info
1206 # mess up M-x gdb in Emacs.
1208 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1210 for ac_var
in $ac_precious_vars; do
1211 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1212 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1213 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1214 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1218 # Report the --help message.
1220 if test "$ac_init_help" = "long"; then
1221 # Omit some internal or obsolete options to make the list less imposing.
1222 # This message is too long to be a string in the A/UX 3.1 sh.
1224 \`configure' configures GRUB 1.96 to adapt to many kinds of systems.
1226 Usage: $0 [OPTION]... [VAR=VALUE]...
1228 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1229 VAR=VALUE. See below for descriptions of some of the useful variables.
1231 Defaults for the options are specified in brackets.
1234 -h, --help display this help and exit
1235 --help=short display options specific to this package
1236 --help=recursive display the short help of all the included packages
1237 -V, --version display version information and exit
1238 -q, --quiet, --silent do not print \`checking...' messages
1239 --cache-file=FILE cache test results in FILE [disabled]
1240 -C, --config-cache alias for \`--cache-file=config.cache'
1241 -n, --no-create do not create output files
1242 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1244 Installation directories:
1245 --prefix=PREFIX install architecture-independent files in PREFIX
1246 [$ac_default_prefix]
1247 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1250 By default, \`make install' will install all the files in
1251 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1252 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1253 for instance \`--prefix=\$HOME'.
1255 For better control, use the options below.
1257 Fine tuning of the installation directories:
1258 --bindir=DIR user executables [EPREFIX/bin]
1259 --sbindir=DIR system admin executables [EPREFIX/sbin]
1260 --libexecdir=DIR program executables [EPREFIX/libexec]
1261 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1262 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1263 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1264 --libdir=DIR object code libraries [EPREFIX/lib]
1265 --includedir=DIR C header files [PREFIX/include]
1266 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1267 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1268 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1269 --infodir=DIR info documentation [DATAROOTDIR/info]
1270 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1271 --mandir=DIR man documentation [DATAROOTDIR/man]
1272 --docdir=DIR documentation root [DATAROOTDIR/doc/grub]
1273 --htmldir=DIR html documentation [DOCDIR]
1274 --dvidir=DIR dvi documentation [DOCDIR]
1275 --pdfdir=DIR pdf documentation [DOCDIR]
1276 --psdir=DIR ps documentation [DOCDIR]
1282 --program-prefix=PREFIX prepend PREFIX to installed program names
1283 --program-suffix=SUFFIX append SUFFIX to installed program names
1284 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1287 --build=BUILD configure
for building on BUILD
[guessed
]
1288 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1289 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1293 if test -n "$ac_init_help"; then
1294 case $ac_init_help in
1295 short | recursive
) echo "Configuration of GRUB 1.96:";;
1300 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1301 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1302 --disable-largefile omit support
for large files
1303 --enable-lzo use lzo to
compress kernel
(default is lzma
)
1304 --enable-mm-debug include memory manager debugging
1305 --enable-grub-emu build and
install the
`grub-emu' debugging utility
1306 --enable-grub-fstest build and install the `grub-fstest
' debugging
1308 --enable-grub-pe2elf build and install the `grub-pe2elf' conversion
1310 --enable-grub-mkfont build and
install the
`grub-mkfont' utility
1313 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1314 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1315 --with-platform=PLATFORM
1316 select the host platform [guessed]
1318 Some influential environment variables:
1319 CC C compiler command
1320 CFLAGS C compiler flags
1321 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1322 nonstandard directory <lib dir>
1323 LIBS libraries to pass to the linker, e.g. -l<library>
1324 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1325 you have headers in a nonstandard directory <include dir>
1328 Use these variables to override the choices made by `configure
' or to help
1329 it to find libraries and programs with nonstandard names/locations.
1331 Report bugs to <bug-grub@gnu.org>.
1336 if test "$ac_init_help" = "recursive"; then
1337 # If there are subdirs, report their specific --help.
1338 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1339 test -d "$ac_dir" || continue
1343 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1345 ac_dir_suffix=/`echo "$ac_dir" | sed 's
,^\.
[\\/],,'`
1346 # A ".." for each directory in $ac_dir_suffix.
1347 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's
,/[^
\\/]*,/..
,g
;s
,/,,'`
1348 case $ac_top_builddir_sub in
1349 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1350 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1353 ac_abs_top_builddir=$ac_pwd
1354 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1355 # for backward compatibility:
1356 ac_top_builddir=$ac_top_build_prefix
1359 .) # We are building in place.
1361 ac_top_srcdir=$ac_top_builddir_sub
1362 ac_abs_top_srcdir=$ac_pwd ;;
1363 [\\/]* | ?:[\\/]* ) # Absolute name.
1364 ac_srcdir=$srcdir$ac_dir_suffix;
1365 ac_top_srcdir=$srcdir
1366 ac_abs_top_srcdir=$srcdir ;;
1368 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1369 ac_top_srcdir=$ac_top_build_prefix$srcdir
1370 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1372 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1374 cd "$ac_dir" || { ac_status=$?; continue; }
1375 # Check for guested configure.
1376 if test -f "$ac_srcdir/configure.gnu"; then
1378 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1379 elif test -f "$ac_srcdir/configure"; then
1381 $SHELL "$ac_srcdir/configure" --help=recursive
1383 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1385 cd "$ac_pwd" || { ac_status=$?; break; }
1389 test -n "$ac_init_help" && exit $ac_status
1390 if $ac_init_version; then
1393 generated by GNU Autoconf 2.61
1395 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1396 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1397 This configure script is free software; the Free Software Foundation
1398 gives unlimited permission to copy, distribute and modify it.
1402 cat >config.log <<_ACEOF
1403 This file contains any messages produced by compilers while
1404 running configure, to aid debugging if configure makes a mistake.
1406 It was created by GRUB $as_me 1.96, which was
1407 generated by GNU Autoconf 2.61. Invocation command line was
1419 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1420 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1421 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1422 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1423 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1425 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1426 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1428 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1429 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1430 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1431 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1432 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1433 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1434 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1442 test -z "$as_dir" && as_dir=.
1443 echo "PATH: $as_dir"
1459 # Keep a trace of the command line.
1460 # Strip out --no-create and --no-recursion so they do not pile up.
1461 # Strip out --silent because we don't want to record it
for future runs.
1462 # Also quote any args containing shell meta-characters.
1463 # Make two passes to allow for proper duplicate-argument suppression.
1467 ac_must_keep_next
=false
1473 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
1474 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1475 |
-silent |
--silent |
--silen |
--sile |
--sil)
1478 ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1481 1) ac_configure_args0
="$ac_configure_args0 '$ac_arg'" ;;
1483 ac_configure_args1
="$ac_configure_args1 '$ac_arg'"
1484 if test $ac_must_keep_next = true
; then
1485 ac_must_keep_next
=false
# Got value, back to normal.
1488 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
1489 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
1490 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
1491 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
1492 case "$ac_configure_args0 " in
1493 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1496 -* ) ac_must_keep_next
=true
;;
1499 ac_configure_args
="$ac_configure_args '$ac_arg'"
1504 $as_unset ac_configure_args0 ||
test "${ac_configure_args0+set}" != set ||
{ ac_configure_args0
=; export ac_configure_args0
; }
1505 $as_unset ac_configure_args1 ||
test "${ac_configure_args1+set}" != set ||
{ ac_configure_args1
=; export ac_configure_args1
; }
1507 # When interrupted or exit'd, cleanup temporary files, and complete
1508 # config.log. We remove comments because anyway the quotes in there
1509 # would cause problems or look ugly.
1510 # WARNING: Use '\'' to represent an apostrophe within the trap.
1511 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1512 trap 'exit_status=$?
1513 # Save into config.log some information that might help in debugging.
1518 ## ---------------- ##
1519 ## Cache variables. ##
1520 ## ---------------- ##
1523 # The following way of writing the cache mishandles newlines in values,
1525 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1526 eval ac_val=\$$ac_var
1530 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1531 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1534 _ | IFS | as_nl) ;; #(
1535 *) $as_unset $ac_var ;;
1540 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1541 *${as_nl}ac_space=\ *)
1543 "s/'\''/'\''\\\\'\'''\''/g;
1544 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1547 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1555 ## ----------------- ##
1556 ## Output variables. ##
1557 ## ----------------- ##
1560 for ac_var in $ac_subst_vars
1562 eval ac_val=\$$ac_var
1564 *\'\''*) ac_val
=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1566 echo "$ac_var='\''$ac_val'\''"
1570 if test -n "$ac_subst_files"; then
1572 ## ------------------- ##
1573 ## File substitutions. ##
1574 ## ------------------- ##
1577 for ac_var
in $ac_subst_files
1579 eval ac_val
=\$
$ac_var
1581 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1583 echo "$ac_var='\''$ac_val'\''"
1588 if test -s confdefs.h; then
1598 test "$ac_signal" != 0 &&
1599 echo "$as_me: caught signal $ac_signal"
1600 echo "$as_me: exit $exit_status"
1602 rm -f core *.core core.conftest.* &&
1603 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1606 for ac_signal
in 1 2 13 15; do
1607 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1611 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1612 rm -f -r conftest
* confdefs.h
1614 # Predefined preprocessor variables.
1616 cat >>confdefs.h
<<_ACEOF
1617 #define PACKAGE_NAME "$PACKAGE_NAME"
1621 cat >>confdefs.h
<<_ACEOF
1622 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1626 cat >>confdefs.h
<<_ACEOF
1627 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1631 cat >>confdefs.h
<<_ACEOF
1632 #define PACKAGE_STRING "$PACKAGE_STRING"
1636 cat >>confdefs.h
<<_ACEOF
1637 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1641 # Let the site file select an alternate cache file if it wants to.
1642 # Prefer explicitly selected file to automatically selected ones.
1643 if test -n "$CONFIG_SITE"; then
1644 set x
"$CONFIG_SITE"
1645 elif test "x$prefix" != xNONE
; then
1646 set x
"$prefix/share/config.site" "$prefix/etc/config.site"
1648 set x
"$ac_default_prefix/share/config.site" \
1649 "$ac_default_prefix/etc/config.site"
1654 if test -r "$ac_site_file"; then
1655 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1656 echo "$as_me: loading site script $ac_site_file" >&6;}
1657 sed 's/^/| /' "$ac_site_file" >&5
1662 if test -r "$cache_file"; then
1663 # Some versions of bash will fail to source /dev/null (special
1664 # files actually), so we avoid doing that.
1665 if test -f "$cache_file"; then
1666 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1667 echo "$as_me: loading cache $cache_file" >&6;}
1669 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
1670 *) .
"./$cache_file";;
1674 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1675 echo "$as_me: creating cache $cache_file" >&6;}
1679 # Check that the precious variables saved in the cache have kept the same
1681 ac_cache_corrupted
=false
1682 for ac_var
in $ac_precious_vars; do
1683 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
1684 eval ac_new_set
=\
$ac_env_${ac_var}_set
1685 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
1686 eval ac_new_val
=\
$ac_env_${ac_var}_value
1687 case $ac_old_set,$ac_new_set in
1689 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1690 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1691 ac_cache_corrupted
=: ;;
1693 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1694 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1695 ac_cache_corrupted
=: ;;
1698 if test "x$ac_old_val" != "x$ac_new_val"; then
1699 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1700 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1701 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1702 echo "$as_me: former value: $ac_old_val" >&2;}
1703 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1704 echo "$as_me: current value: $ac_new_val" >&2;}
1705 ac_cache_corrupted
=:
1708 # Pass precious variables to config.status.
1709 if test "$ac_new_set" = set; then
1711 *\'*) ac_arg
=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1712 *) ac_arg
=$ac_var=$ac_new_val ;;
1714 case " $ac_configure_args " in
1715 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1716 *) ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
1720 if $ac_cache_corrupted; then
1721 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1722 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1723 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1724 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1725 { (exit 1); exit 1; }; }
1753 ac_cpp
='$CPP $CPPFLAGS'
1754 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1755 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1756 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1761 ac_config_headers
="$ac_config_headers config.h"
1764 # Checks for host and target systems.
1766 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1767 if test -f "$ac_dir/install-sh"; then
1769 ac_install_sh
="$ac_aux_dir/install-sh -c"
1771 elif test -f "$ac_dir/install.sh"; then
1773 ac_install_sh
="$ac_aux_dir/install.sh -c"
1775 elif test -f "$ac_dir/shtool"; then
1777 ac_install_sh
="$ac_aux_dir/shtool install -c"
1781 if test -z "$ac_aux_dir"; then
1782 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1783 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1784 { (exit 1); exit 1; }; }
1787 # These three variables are undocumented and unsupported,
1788 # and are intended to be withdrawn in a future Autoconf release.
1789 # They can cause serious problems if a builder's source tree is in a directory
1790 # whose full name contains unusual characters.
1791 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1792 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1793 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1796 # Make sure we can run config.sub.
1797 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
1798 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1799 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1800 { (exit 1); exit 1; }; }
1802 { echo "$as_me:$LINENO: checking build system type" >&5
1803 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1804 if test "${ac_cv_build+set}" = set; then
1805 echo $ECHO_N "(cached) $ECHO_C" >&6
1807 ac_build_alias
=$build_alias
1808 test "x$ac_build_alias" = x
&&
1809 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
1810 test "x$ac_build_alias" = x
&&
1811 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1812 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1813 { (exit 1); exit 1; }; }
1814 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1815 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1816 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1817 { (exit 1); exit 1; }; }
1820 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1821 echo "${ECHO_T}$ac_cv_build" >&6; }
1822 case $ac_cv_build in
1824 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1825 echo "$as_me: error: invalid value of canonical build" >&2;}
1826 { (exit 1); exit 1; }; };;
1829 ac_save_IFS
=$IFS; IFS
='-'
1835 # Remember, the first character of IFS is used to create $*,
1836 # except with old shells:
1839 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
1842 { echo "$as_me:$LINENO: checking host system type" >&5
1843 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1844 if test "${ac_cv_host+set}" = set; then
1845 echo $ECHO_N "(cached) $ECHO_C" >&6
1847 if test "x$host_alias" = x
; then
1848 ac_cv_host
=$ac_cv_build
1850 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1851 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1852 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1853 { (exit 1); exit 1; }; }
1857 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1858 echo "${ECHO_T}$ac_cv_host" >&6; }
1861 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1862 echo "$as_me: error: invalid value of canonical host" >&2;}
1863 { (exit 1); exit 1; }; };;
1866 ac_save_IFS
=$IFS; IFS
='-'
1872 # Remember, the first character of IFS is used to create $*,
1873 # except with old shells:
1876 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
1879 { echo "$as_me:$LINENO: checking target system type" >&5
1880 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
1881 if test "${ac_cv_target+set}" = set; then
1882 echo $ECHO_N "(cached) $ECHO_C" >&6
1884 if test "x$target_alias" = x
; then
1885 ac_cv_target
=$ac_cv_host
1887 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
1888 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
1889 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
1890 { (exit 1); exit 1; }; }
1894 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1895 echo "${ECHO_T}$ac_cv_target" >&6; }
1896 case $ac_cv_target in
1898 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
1899 echo "$as_me: error: invalid value of canonical target" >&2;}
1900 { (exit 1); exit 1; }; };;
1902 target
=$ac_cv_target
1903 ac_save_IFS
=$IFS; IFS
='-'
1909 # Remember, the first character of IFS is used to create $*,
1910 # except with old shells:
1913 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
1916 # The aliases save the names the user supplied, while $host etc.
1917 # will get canonicalized.
1918 test -n "$target_alias" &&
1919 test "$program_prefix$program_suffix$program_transform_name" = \
1921 program_prefix
=${target_alias}-
1923 # Program name transformations
1924 test "$program_prefix" != NONE
&&
1925 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
1926 # Use a double $ so make ignores it.
1927 test "$program_suffix" != NONE
&&
1928 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
1929 # Double any \ or $. echo might interpret backslashes.
1930 # By default was `s,x,x', remove it if useless.
1931 cat <<\_ACEOF
>conftest.
sed
1932 s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//
1934 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
1939 powerpc64
) host_m32
=1 ;;
1942 case "$target_cpu" in
1943 i
[3456]86) target_cpu
=i386
;;
1946 # Specify the platform (such as firmware).
1948 # Check whether --with-platform was given.
1949 if test "${with_platform+set}" = set; then
1950 withval
=$with_platform;
1954 # Guess the platform if not specified.
1955 if test "x$with_platform" = x
; then
1956 case "$target_cpu"-"$target_vendor" in
1957 i386-apple
) platform
=efi
;;
1958 i386-
*) platform
=pc
;;
1959 x86_64-apple
) platform
=efi
;;
1960 x86_64-
*) platform
=pc
;;
1961 powerpc-
*) platform
=ieee1275
;;
1962 powerpc64-
*) platform
=ieee1275
;;
1963 sparc64-
*) platform
=ieee1275
;;
1964 *) { { echo "$as_me:$LINENO: error: unsupported CPU: \"$target_cpu\"" >&5
1965 echo "$as_me: error: unsupported CPU: \"$target_cpu\"" >&2;}
1966 { (exit 1); exit 1; }; } ;;
1969 platform
="$with_platform"
1972 # Adjust CPU unless target was explicitly specified.
1973 if test -z "$target_alias"; then
1974 case "$target_cpu"-"$platform" in
1976 x86_64-
*) target_cpu
=i386
;;
1977 powerpc64-ieee1275
) target_cpu
=powerpc
;;
1981 # Check if the platform is supported, make final adjustments.
1982 case "$target_cpu"-"$platform" in
1987 i386-linuxbios
) platform
=coreboot
;;
1989 powerpc-ieee1275
) ;;
1990 sparc64-ieee1275
) ;;
1991 *) { { echo "$as_me:$LINENO: error: platform \"$platform\" is not supported for target CPU \"$target_cpu\"" >&5
1992 echo "$as_me: error: platform \"$platform\" is not supported for target CPU \"$target_cpu\"" >&2;}
1993 { (exit 1); exit 1; }; } ;;
1996 case "$target_cpu" in
1997 i386 | powerpc
) target_m32
=1 ;;
1998 x86_64 | sparc64
) target_m64
=1 ;;
2002 mingw32
) host_os
=cygwin
;;
2005 case "$target_os" in
2006 mingw32
) target_os
=cygwin
;;
2014 # Checks for build programs.
2017 # Although cmp is listed in the GNU Coding Standards as a command which
2018 # can used directly, OpenBSD lacks cmp in the default installation.
2021 # Extract the first word of "$ac_prog", so it can be a program name with args.
2022 set dummy
$ac_prog; ac_word
=$2
2023 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2024 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2025 if test "${ac_cv_prog_CMP+set}" = set; then
2026 echo $ECHO_N "(cached) $ECHO_C" >&6
2028 if test -n "$CMP"; then
2029 ac_cv_prog_CMP
="$CMP" # Let the user override the test.
2031 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2035 test -z "$as_dir" && as_dir
=.
2036 for ac_exec_ext
in '' $ac_executable_extensions; do
2037 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2038 ac_cv_prog_CMP
="$ac_prog"
2039 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2049 if test -n "$CMP"; then
2050 { echo "$as_me:$LINENO: result: $CMP" >&5
2051 echo "${ECHO_T}$CMP" >&6; }
2053 { echo "$as_me:$LINENO: result: no" >&5
2054 echo "${ECHO_T}no" >&6; }
2058 test -n "$CMP" && break
2061 if test "x$CMP" = x
; then
2062 { { echo "$as_me:$LINENO: error: cmp is not found" >&5
2063 echo "$as_me: error: cmp is not found" >&2;}
2064 { (exit 1); exit 1; }; }
2067 for ac_prog
in bison
2069 # Extract the first word of "$ac_prog", so it can be a program name with args.
2070 set dummy
$ac_prog; ac_word
=$2
2071 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2072 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2073 if test "${ac_cv_prog_YACC+set}" = set; then
2074 echo $ECHO_N "(cached) $ECHO_C" >&6
2076 if test -n "$YACC"; then
2077 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
2079 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2083 test -z "$as_dir" && as_dir
=.
2084 for ac_exec_ext
in '' $ac_executable_extensions; do
2085 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2086 ac_cv_prog_YACC
="$ac_prog"
2087 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2096 YACC
=$ac_cv_prog_YACC
2097 if test -n "$YACC"; then
2098 { echo "$as_me:$LINENO: result: $YACC" >&5
2099 echo "${ECHO_T}$YACC" >&6; }
2101 { echo "$as_me:$LINENO: result: no" >&5
2102 echo "${ECHO_T}no" >&6; }
2106 test -n "$YACC" && break
2109 if test "x$YACC" = x
; then
2110 { { echo "$as_me:$LINENO: error: bison is not found" >&5
2111 echo "$as_me: error: bison is not found" >&2;}
2112 { (exit 1); exit 1; }; }
2115 for file in /usr
/src
/unifont.bdf
; do
2116 if test -e $file ; then
2123 # Find a good install program. We prefer a C program (faster),
2124 # so one script is as good as another. But avoid the broken or
2125 # incompatible versions:
2126 # SysV /etc/install, /usr/sbin/install
2127 # SunOS /usr/etc/install
2128 # IRIX /sbin/install
2130 # AmigaOS /C/install, which installs bootblocks on floppy discs
2131 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2132 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2133 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2134 # OS/2's system install, which has a completely different semantic
2135 # ./install, which can be erroneously created by make from ./install.sh.
2136 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2137 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2138 if test -z "$INSTALL"; then
2139 if test "${ac_cv_path_install+set}" = set; then
2140 echo $ECHO_N "(cached) $ECHO_C" >&6
2142 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2146 test -z "$as_dir" && as_dir
=.
2147 # Account for people who put trailing slashes in PATH elements.
2149 .
/ | .
// |
/cC
/* | \
2150 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
2151 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
2154 # OSF1 and SCO ODT 3.0 have their own names for install.
2155 # Don't use installbsd from OSF since it installs stuff as root
2157 for ac_prog
in ginstall scoinst
install; do
2158 for ac_exec_ext
in '' $ac_executable_extensions; do
2159 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2160 if test $ac_prog = install &&
2161 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2162 # AIX install. It has an incompatible calling convention.
2164 elif test $ac_prog = install &&
2165 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2166 # program-specific install script used by HP pwplus--don't use.
2169 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
2182 if test "${ac_cv_path_install+set}" = set; then
2183 INSTALL
=$ac_cv_path_install
2185 # As a last resort, use the slow shell script. Don't cache a
2186 # value for INSTALL within a source directory, because that will
2187 # break other packages using the cache if that directory is
2188 # removed, or if the value is a relative name.
2189 INSTALL
=$ac_install_sh
2192 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2193 echo "${ECHO_T}$INSTALL" >&6; }
2195 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2196 # It thinks the first close brace ends the variable substitution.
2197 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2199 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
2201 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2203 for ac_prog
in gawk mawk nawk
awk
2205 # Extract the first word of "$ac_prog", so it can be a program name with args.
2206 set dummy
$ac_prog; ac_word
=$2
2207 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2208 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2209 if test "${ac_cv_prog_AWK+set}" = set; then
2210 echo $ECHO_N "(cached) $ECHO_C" >&6
2212 if test -n "$AWK"; then
2213 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
2215 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2219 test -z "$as_dir" && as_dir
=.
2220 for ac_exec_ext
in '' $ac_executable_extensions; do
2221 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2222 ac_cv_prog_AWK
="$ac_prog"
2223 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2233 if test -n "$AWK"; then
2234 { echo "$as_me:$LINENO: result: $AWK" >&5
2235 echo "${ECHO_T}$AWK" >&6; }
2237 { echo "$as_me:$LINENO: result: no" >&5
2238 echo "${ECHO_T}no" >&6; }
2242 test -n "$AWK" && break
2245 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2246 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2247 set x
${MAKE-make}; ac_make
=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2248 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2249 echo $ECHO_N "(cached) $ECHO_C" >&6
2251 cat >conftest.
make <<\_ACEOF
2254 @
echo '@@@%%%=$(MAKE)=@@@%%%'
2256 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2257 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2259 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
2261 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
2265 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
2266 { echo "$as_me:$LINENO: result: yes" >&5
2267 echo "${ECHO_T}yes" >&6; }
2270 { echo "$as_me:$LINENO: result: no" >&5
2271 echo "${ECHO_T}no" >&6; }
2272 SET_MAKE
="MAKE=${MAKE-make}"
2276 # These are not a "must".
2277 # Extract the first word of "ruby", so it can be a program name with args.
2278 set dummy ruby
; ac_word
=$2
2279 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2280 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2281 if test "${ac_cv_path_RUBY+set}" = set; then
2282 echo $ECHO_N "(cached) $ECHO_C" >&6
2286 ac_cv_path_RUBY
="$RUBY" # Let the user override the test with a path.
2289 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2293 test -z "$as_dir" && as_dir
=.
2294 for ac_exec_ext
in '' $ac_executable_extensions; do
2295 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2296 ac_cv_path_RUBY
="$as_dir/$ac_word$ac_exec_ext"
2297 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2307 RUBY
=$ac_cv_path_RUBY
2308 if test -n "$RUBY"; then
2309 { echo "$as_me:$LINENO: result: $RUBY" >&5
2310 echo "${ECHO_T}$RUBY" >&6; }
2312 { echo "$as_me:$LINENO: result: no" >&5
2313 echo "${ECHO_T}no" >&6; }
2317 # Extract the first word of "help2man", so it can be a program name with args.
2318 set dummy help2man
; ac_word
=$2
2319 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2320 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2321 if test "${ac_cv_path_HELP2MAN+set}" = set; then
2322 echo $ECHO_N "(cached) $ECHO_C" >&6
2326 ac_cv_path_HELP2MAN
="$HELP2MAN" # Let the user override the test with a path.
2329 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2333 test -z "$as_dir" && as_dir
=.
2334 for ac_exec_ext
in '' $ac_executable_extensions; do
2335 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2336 ac_cv_path_HELP2MAN
="$as_dir/$ac_word$ac_exec_ext"
2337 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2347 HELP2MAN
=$ac_cv_path_HELP2MAN
2348 if test -n "$HELP2MAN"; then
2349 { echo "$as_me:$LINENO: result: $HELP2MAN" >&5
2350 echo "${ECHO_T}$HELP2MAN" >&6; }
2352 { echo "$as_me:$LINENO: result: no" >&5
2353 echo "${ECHO_T}no" >&6; }
2359 # Checks for host programs.
2363 ac_cpp
='$CPP $CPPFLAGS'
2364 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2365 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2366 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2367 if test -n "$ac_tool_prefix"; then
2368 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2369 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2370 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2371 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2372 if test "${ac_cv_prog_CC+set}" = set; then
2373 echo $ECHO_N "(cached) $ECHO_C" >&6
2375 if test -n "$CC"; then
2376 ac_cv_prog_CC
="$CC" # Let the user override the test.
2378 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2382 test -z "$as_dir" && as_dir
=.
2383 for ac_exec_ext
in '' $ac_executable_extensions; do
2384 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2385 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2386 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2396 if test -n "$CC"; then
2397 { echo "$as_me:$LINENO: result: $CC" >&5
2398 echo "${ECHO_T}$CC" >&6; }
2400 { echo "$as_me:$LINENO: result: no" >&5
2401 echo "${ECHO_T}no" >&6; }
2406 if test -z "$ac_cv_prog_CC"; then
2408 # Extract the first word of "gcc", so it can be a program name with args.
2409 set dummy gcc
; ac_word
=$2
2410 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2411 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2412 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2413 echo $ECHO_N "(cached) $ECHO_C" >&6
2415 if test -n "$ac_ct_CC"; then
2416 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2418 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2422 test -z "$as_dir" && as_dir
=.
2423 for ac_exec_ext
in '' $ac_executable_extensions; do
2424 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2425 ac_cv_prog_ac_ct_CC
="gcc"
2426 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2435 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2436 if test -n "$ac_ct_CC"; then
2437 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2438 echo "${ECHO_T}$ac_ct_CC" >&6; }
2440 { echo "$as_me:$LINENO: result: no" >&5
2441 echo "${ECHO_T}no" >&6; }
2444 if test "x$ac_ct_CC" = x
; then
2447 case $cross_compiling:$ac_tool_warned in
2449 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2450 whose name does not start with the host triplet. If you think this
2451 configuration is useful to you, please write to autoconf@gnu.org." >&5
2452 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2453 whose name does not start with the host triplet. If you think this
2454 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2455 ac_tool_warned
=yes ;;
2463 if test -z "$CC"; then
2464 if test -n "$ac_tool_prefix"; then
2465 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2466 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2467 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2468 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2469 if test "${ac_cv_prog_CC+set}" = set; then
2470 echo $ECHO_N "(cached) $ECHO_C" >&6
2472 if test -n "$CC"; then
2473 ac_cv_prog_CC
="$CC" # Let the user override the test.
2475 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2479 test -z "$as_dir" && as_dir
=.
2480 for ac_exec_ext
in '' $ac_executable_extensions; do
2481 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2482 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2483 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2493 if test -n "$CC"; then
2494 { echo "$as_me:$LINENO: result: $CC" >&5
2495 echo "${ECHO_T}$CC" >&6; }
2497 { echo "$as_me:$LINENO: result: no" >&5
2498 echo "${ECHO_T}no" >&6; }
2504 if test -z "$CC"; then
2505 # Extract the first word of "cc", so it can be a program name with args.
2506 set dummy cc
; ac_word
=$2
2507 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2508 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2509 if test "${ac_cv_prog_CC+set}" = set; then
2510 echo $ECHO_N "(cached) $ECHO_C" >&6
2512 if test -n "$CC"; then
2513 ac_cv_prog_CC
="$CC" # Let the user override the test.
2516 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2520 test -z "$as_dir" && as_dir
=.
2521 for ac_exec_ext
in '' $ac_executable_extensions; do
2522 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2523 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2524 ac_prog_rejected
=yes
2528 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2535 if test $ac_prog_rejected = yes; then
2536 # We found a bogon in the path, so make sure we never use it.
2537 set dummy
$ac_cv_prog_CC
2539 if test $# != 0; then
2540 # We chose a different compiler from the bogus one.
2541 # However, it has the same basename, so the bogon will be chosen
2542 # first if we set CC to just the basename; use the full file name.
2544 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2550 if test -n "$CC"; then
2551 { echo "$as_me:$LINENO: result: $CC" >&5
2552 echo "${ECHO_T}$CC" >&6; }
2554 { echo "$as_me:$LINENO: result: no" >&5
2555 echo "${ECHO_T}no" >&6; }
2560 if test -z "$CC"; then
2561 if test -n "$ac_tool_prefix"; then
2562 for ac_prog
in cl.exe
2564 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2565 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2566 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2567 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2568 if test "${ac_cv_prog_CC+set}" = set; then
2569 echo $ECHO_N "(cached) $ECHO_C" >&6
2571 if test -n "$CC"; then
2572 ac_cv_prog_CC
="$CC" # Let the user override the test.
2574 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2578 test -z "$as_dir" && as_dir
=.
2579 for ac_exec_ext
in '' $ac_executable_extensions; do
2580 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2581 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2582 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2592 if test -n "$CC"; then
2593 { echo "$as_me:$LINENO: result: $CC" >&5
2594 echo "${ECHO_T}$CC" >&6; }
2596 { echo "$as_me:$LINENO: result: no" >&5
2597 echo "${ECHO_T}no" >&6; }
2601 test -n "$CC" && break
2604 if test -z "$CC"; then
2606 for ac_prog
in cl.exe
2608 # Extract the first word of "$ac_prog", so it can be a program name with args.
2609 set dummy
$ac_prog; ac_word
=$2
2610 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2611 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2612 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2613 echo $ECHO_N "(cached) $ECHO_C" >&6
2615 if test -n "$ac_ct_CC"; then
2616 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2618 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2622 test -z "$as_dir" && as_dir
=.
2623 for ac_exec_ext
in '' $ac_executable_extensions; do
2624 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2625 ac_cv_prog_ac_ct_CC
="$ac_prog"
2626 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2635 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2636 if test -n "$ac_ct_CC"; then
2637 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2638 echo "${ECHO_T}$ac_ct_CC" >&6; }
2640 { echo "$as_me:$LINENO: result: no" >&5
2641 echo "${ECHO_T}no" >&6; }
2645 test -n "$ac_ct_CC" && break
2648 if test "x$ac_ct_CC" = x
; then
2651 case $cross_compiling:$ac_tool_warned in
2653 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2654 whose name does not start with the host triplet. If you think this
2655 configuration is useful to you, please write to autoconf@gnu.org." >&5
2656 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2657 whose name does not start with the host triplet. If you think this
2658 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2659 ac_tool_warned
=yes ;;
2668 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2669 See \`config.log' for more details." >&5
2670 echo "$as_me: error: no acceptable C compiler found in \$PATH
2671 See \`config.log' for more details." >&2;}
2672 { (exit 1); exit 1; }; }
2674 # Provide some information about the compiler.
2675 echo "$as_me:$LINENO: checking for C compiler version" >&5
2676 ac_compiler
=`set X $ac_compile; echo $2`
2677 { (ac_try
="$ac_compiler --version >&5"
2679 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2680 *) ac_try_echo=$ac_try;;
2682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2683 (eval "$ac_compiler --version >&5") 2>&5
2685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2686 (exit $ac_status); }
2687 { (ac_try="$ac_compiler -v >&5"
2689 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2690 *) ac_try_echo
=$ac_try;;
2692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2693 (eval "$ac_compiler -v >&5") 2>&5
2695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2696 (exit $ac_status); }
2697 { (ac_try
="$ac_compiler -V >&5"
2699 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2700 *) ac_try_echo=$ac_try;;
2702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2703 (eval "$ac_compiler -V >&5") 2>&5
2705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2706 (exit $ac_status); }
2708 cat >conftest.$ac_ext <<_ACEOF
2711 cat confdefs.h >>conftest.$ac_ext
2712 cat >>conftest.$ac_ext <<_ACEOF
2713 /* end confdefs.h. */
2723 ac_clean_files_save=$ac_clean_files
2724 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2725 # Try to create an executable without -o first, disregard a.out.
2726 # It will help us diagnose broken compilers, and finding out an intuition
2728 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2729 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2730 ac_link_default=`echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
2732 # List of possible output files, starting from the most likely.
2733 # The algorithm is not robust to junk in `.
', hence go to wildcards (a.*)
2734 # only as a last resort. b.out is created by i960 compilers.
2735 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
'
2737 # The IRIX 6 linker writes into existing files which may not be
2738 # executable, retaining their permissions. Remove them first so a
2739 # subsequent execution test works.
2741 for ac_file in $ac_files
2744 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2745 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2750 if { (ac_try="$ac_link_default"
2752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2753 *) ac_try_echo=$ac_try;;
2755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2756 (eval "$ac_link_default") 2>&5
2758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2759 (exit $ac_status); }; then
2760 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2761 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2762 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2763 # so that the user can short-circuit this test for compilers unknown to
2765 for ac_file
in $ac_files ''
2767 test -f "$ac_file" ||
continue
2769 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
)
2772 # We found the default executable, but exeext='' is most
2776 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
2778 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2780 # We set ac_cv_exeext here because the later test for it is not
2781 # safe: cross compilers may not add the suffix if given an `-o'
2782 # argument, so we may need to know it at that point already.
2783 # Even if this section looks crufty: it has the advantage of
2790 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
2796 { echo "$as_me:$LINENO: result: $ac_file" >&5
2797 echo "${ECHO_T}$ac_file" >&6; }
2798 if test -z "$ac_file"; then
2799 echo "$as_me: failed program was:" >&5
2800 sed 's/^/| /' conftest.
$ac_ext >&5
2802 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2803 See \`config.log' for more details." >&5
2804 echo "$as_me: error: C compiler cannot create executables
2805 See \`config.log' for more details." >&2;}
2806 { (exit 77); exit 77; }; }
2809 ac_exeext
=$ac_cv_exeext
2811 # Check that the compiler produces executables we can run. If not, either
2812 # the compiler is broken, or we cross compile.
2813 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2814 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2815 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2816 # If not cross compiling, check that we can run a simple program.
2817 if test "$cross_compiling" != yes; then
2818 if { ac_try
='./$ac_file'
2819 { (case "(($ac_try" in
2820 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2821 *) ac_try_echo=$ac_try;;
2823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2824 (eval "$ac_try") 2>&5
2826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2827 (exit $ac_status); }; }; then
2830 if test "$cross_compiling" = maybe; then
2833 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2834 If you meant to cross compile, use \`--host'.
2835 See \`config.log' for more details.
" >&5
2836 echo "$as_me: error
: cannot run C compiled programs.
2837 If you meant to cross compile
, use \
`--host'.
2838 See \`config.log
' for more details." >&2;}
2839 { (exit 1); exit 1; }; }
2843 { echo "$as_me:$LINENO: result: yes" >&5
2844 echo "${ECHO_T}yes" >&6; }
2846 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2847 ac_clean_files=$ac_clean_files_save
2848 # Check that the compiler produces executables we can run. If not, either
2849 # the compiler is broken, or we cross compile.
2850 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2851 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2852 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2853 echo "${ECHO_T}$cross_compiling" >&6; }
2855 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2856 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2857 if { (ac_try="$ac_link"
2859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2860 *) ac_try_echo=$ac_try;;
2862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2863 (eval "$ac_link") 2>&5
2865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2866 (exit $ac_status); }; then
2867 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
2868 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
2869 # work properly (i.e., refer to `conftest.exe
'), while it won't with
2871 for ac_file
in conftest.exe conftest conftest.
*; do
2872 test -f "$ac_file" ||
continue
2874 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
) ;;
2875 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2881 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2882 See \`config.log' for more details." >&5
2883 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2884 See \`config.log' for more details." >&2;}
2885 { (exit 1); exit 1; }; }
2888 rm -f conftest
$ac_cv_exeext
2889 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2890 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2892 rm -f conftest.
$ac_ext
2893 EXEEXT
=$ac_cv_exeext
2895 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2896 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2897 if test "${ac_cv_objext+set}" = set; then
2898 echo $ECHO_N "(cached) $ECHO_C" >&6
2900 cat >conftest.
$ac_ext <<_ACEOF
2903 cat confdefs.h
>>conftest.
$ac_ext
2904 cat >>conftest.
$ac_ext <<_ACEOF
2905 /* end confdefs.h. */
2915 rm -f conftest.o conftest.obj
2916 if { (ac_try
="$ac_compile"
2918 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2919 *) ac_try_echo=$ac_try;;
2921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2922 (eval "$ac_compile") 2>&5
2924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2925 (exit $ac_status); }; then
2926 for ac_file in conftest.o conftest.obj conftest.*; do
2927 test -f "$ac_file" || continue;
2929 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2930 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2935 echo "$as_me: failed program was:" >&5
2936 sed 's/^/| /' conftest.$ac_ext >&5
2938 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2939 See \`config.log
' for more details." >&5
2940 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2941 See \`config.log' for more details.
" >&2;}
2942 { (exit 1); exit 1; }; }
2945 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2947 { echo "$as_me:$LINENO: result
: $ac_cv_objext" >&5
2948 echo "${ECHO_T}$ac_cv_objext" >&6; }
2949 OBJEXT=$ac_cv_objext
2951 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler
" >&5
2952 echo $ECHO_N "checking whether we are using the GNU C compiler...
$ECHO_C" >&6; }
2953 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2954 echo $ECHO_N "(cached
) $ECHO_C" >&6
2956 cat >conftest.$ac_ext <<_ACEOF
2959 cat confdefs.h >>conftest.$ac_ext
2960 cat >>conftest.$ac_ext <<_ACEOF
2961 /* end confdefs.h. */
2974 rm -f conftest.$ac_objext
2975 if { (ac_try="$ac_compile"
2977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2978 *) ac_try_echo=$ac_try;;
2980 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2981 (eval "$ac_compile") 2>conftest.er1
2983 grep -v '^ *+' conftest.er1 >conftest.err
2985 cat conftest.err >&5
2986 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2987 (exit $ac_status); } && {
2988 test -z "$ac_c_werror_flag" ||
2989 test ! -s conftest.err
2990 } && test -s conftest.$ac_objext; then
2993 echo "$as_me: failed program was
:" >&5
2994 sed 's/^/| /' conftest.$ac_ext >&5
2999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3000 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3003 { echo "$as_me:$LINENO: result
: $ac_cv_c_compiler_gnu" >&5
3004 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3005 GCC=`test $ac_compiler_gnu = yes && echo yes`
3006 ac_test_CFLAGS=${CFLAGS+set}
3007 ac_save_CFLAGS=$CFLAGS
3008 { echo "$as_me:$LINENO: checking whether
$CC accepts
-g" >&5
3009 echo $ECHO_N "checking whether
$CC accepts
-g...
$ECHO_C" >&6; }
3010 if test "${ac_cv_prog_cc_g+set}" = set; then
3011 echo $ECHO_N "(cached
) $ECHO_C" >&6
3013 ac_save_c_werror_flag=$ac_c_werror_flag
3014 ac_c_werror_flag=yes
3017 cat >conftest.$ac_ext <<_ACEOF
3020 cat confdefs.h >>conftest.$ac_ext
3021 cat >>conftest.$ac_ext <<_ACEOF
3022 /* end confdefs.h. */
3032 rm -f conftest.$ac_objext
3033 if { (ac_try="$ac_compile"
3035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3036 *) ac_try_echo=$ac_try;;
3038 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3039 (eval "$ac_compile") 2>conftest.er1
3041 grep -v '^ *+' conftest.er1 >conftest.err
3043 cat conftest.err >&5
3044 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3045 (exit $ac_status); } && {
3046 test -z "$ac_c_werror_flag" ||
3047 test ! -s conftest.err
3048 } && test -s conftest.$ac_objext; then
3051 echo "$as_me: failed program was
:" >&5
3052 sed 's/^/| /' conftest.$ac_ext >&5
3055 cat >conftest.$ac_ext <<_ACEOF
3058 cat confdefs.h >>conftest.$ac_ext
3059 cat >>conftest.$ac_ext <<_ACEOF
3060 /* end confdefs.h. */
3070 rm -f conftest.$ac_objext
3071 if { (ac_try="$ac_compile"
3073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3074 *) ac_try_echo=$ac_try;;
3076 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3077 (eval "$ac_compile") 2>conftest.er1
3079 grep -v '^ *+' conftest.er1 >conftest.err
3081 cat conftest.err >&5
3082 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3083 (exit $ac_status); } && {
3084 test -z "$ac_c_werror_flag" ||
3085 test ! -s conftest.err
3086 } && test -s conftest.$ac_objext; then
3089 echo "$as_me: failed program was
:" >&5
3090 sed 's/^/| /' conftest.$ac_ext >&5
3092 ac_c_werror_flag=$ac_save_c_werror_flag
3094 cat >conftest.$ac_ext <<_ACEOF
3097 cat confdefs.h >>conftest.$ac_ext
3098 cat >>conftest.$ac_ext <<_ACEOF
3099 /* end confdefs.h. */
3109 rm -f conftest.$ac_objext
3110 if { (ac_try="$ac_compile"
3112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3113 *) ac_try_echo=$ac_try;;
3115 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3116 (eval "$ac_compile") 2>conftest.er1
3118 grep -v '^ *+' conftest.er1 >conftest.err
3120 cat conftest.err >&5
3121 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3122 (exit $ac_status); } && {
3123 test -z "$ac_c_werror_flag" ||
3124 test ! -s conftest.err
3125 } && test -s conftest.$ac_objext; then
3128 echo "$as_me: failed program was
:" >&5
3129 sed 's/^/| /' conftest.$ac_ext >&5
3134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3141 ac_c_werror_flag=$ac_save_c_werror_flag
3143 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_g" >&5
3144 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3145 if test "$ac_test_CFLAGS" = set; then
3146 CFLAGS=$ac_save_CFLAGS
3147 elif test $ac_cv_prog_cc_g = yes; then
3148 if test "$GCC" = yes; then
3154 if test "$GCC" = yes; then
3160 { echo "$as_me:$LINENO: checking
for $CC option to accept ISO C89
" >&5
3161 echo $ECHO_N "checking
for $CC option to accept ISO C89...
$ECHO_C" >&6; }
3162 if test "${ac_cv_prog_cc_c89+set}" = set; then
3163 echo $ECHO_N "(cached
) $ECHO_C" >&6
3165 ac_cv_prog_cc_c89=no
3167 cat >conftest.$ac_ext <<_ACEOF
3170 cat confdefs.h >>conftest.$ac_ext
3171 cat >>conftest.$ac_ext <<_ACEOF
3172 /* end confdefs.h. */
3175 #include <sys/types.h>
3176 #include <sys/stat.h>
3177 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3178 struct buf { int x; };
3179 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3180 static char *e (p, i)
3186 static char *f (char * (*g) (char **, int), char **p, ...)
3191 s = g (p, va_arg (v,int));
3196 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3197 function prototypes and stuff, but not '\xHH' hex character constants.
3198 These don't provoke an error unfortunately, instead are silently treated
3199 as 'x'. The following induces an error, until -std is added to get
3200 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3201 array size at least. It's necessary to write '\x00'==0 to get something
3202 that's true only with -std. */
3203 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3205 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3206 inside strings and character constants. */
3208 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3210 int test (int i, double x);
3211 struct s1 {int (*f) (int a);};
3212 struct s2 {int (*f) (double a);};
3213 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3219 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3224 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3225 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3227 CC="$ac_save_CC $ac_arg"
3228 rm -f conftest.$ac_objext
3229 if { (ac_try="$ac_compile"
3231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3232 *) ac_try_echo=$ac_try;;
3234 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3235 (eval "$ac_compile") 2>conftest.er1
3237 grep -v '^ *+' conftest.er1 >conftest.err
3239 cat conftest.err >&5
3240 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3241 (exit $ac_status); } && {
3242 test -z "$ac_c_werror_flag" ||
3243 test ! -s conftest.err
3244 } && test -s conftest.$ac_objext; then
3245 ac_cv_prog_cc_c89=$ac_arg
3247 echo "$as_me: failed program was
:" >&5
3248 sed 's/^/| /' conftest.$ac_ext >&5
3253 rm -f core conftest.err conftest.$ac_objext
3254 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
3256 rm -f conftest.$ac_ext
3261 case "x
$ac_cv_prog_cc_c89" in
3263 { echo "$as_me:$LINENO: result
: none needed
" >&5
3264 echo "${ECHO_T}none needed
" >&6; } ;;
3266 { echo "$as_me:$LINENO: result
: unsupported
" >&5
3267 echo "${ECHO_T}unsupported
" >&6; } ;;
3269 CC="$CC $ac_cv_prog_cc_c89"
3270 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_c89" >&5
3271 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3276 ac_cpp='$CPP $CPPFLAGS'
3277 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3278 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3279 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3282 test "x
$GCC" = xyes || { { echo "$as_me:$LINENO: error
: GCC is required
" >&5
3283 echo "$as_me: error
: GCC is required
" >&2;}
3284 { (exit 1); exit 1; }; }
3287 cat >>confdefs.h <<\_ACEOF
3288 #define _GNU_SOURCE 1
3293 # Check whether --enable-largefile was given.
3294 if test "${enable_largefile+set}" = set; then
3295 enableval=$enable_largefile;
3298 if test "$enable_largefile" != no; then
3300 { echo "$as_me:$LINENO: checking
for special C compiler options needed
for large files
" >&5
3301 echo $ECHO_N "checking
for special C compiler options needed
for large files...
$ECHO_C" >&6; }
3302 if test "${ac_cv_sys_largefile_CC+set}" = set; then
3303 echo $ECHO_N "(cached
) $ECHO_C" >&6
3305 ac_cv_sys_largefile_CC=no
3306 if test "$GCC" != yes; then
3309 # IRIX 6.2 and later do not support large files by default,
3310 # so use the C compiler's -n32 option if that helps.
3311 cat >conftest.$ac_ext <<_ACEOF
3314 cat confdefs.h >>conftest.$ac_ext
3315 cat >>conftest.$ac_ext <<_ACEOF
3316 /* end confdefs.h. */
3317 #include <sys/types.h>
3318 /* Check that off_t can represent 2**63 - 1 correctly.
3319 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3320 since some C++ compilers masquerading as C compilers
3321 incorrectly reject 9223372036854775807. */
3322 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3323 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3324 && LARGE_OFF_T % 2147483647 == 1)
3334 rm -f conftest.$ac_objext
3335 if { (ac_try="$ac_compile"
3337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3338 *) ac_try_echo=$ac_try;;
3340 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3341 (eval "$ac_compile") 2>conftest.er1
3343 grep -v '^ *+' conftest.er1 >conftest.err
3345 cat conftest.err >&5
3346 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3347 (exit $ac_status); } && {
3348 test -z "$ac_c_werror_flag" ||
3349 test ! -s conftest.err
3350 } && test -s conftest.$ac_objext; then
3353 echo "$as_me: failed program was
:" >&5
3354 sed 's/^/| /' conftest.$ac_ext >&5
3359 rm -f core conftest.err conftest.$ac_objext
3361 rm -f conftest.$ac_objext
3362 if { (ac_try="$ac_compile"
3364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3365 *) ac_try_echo=$ac_try;;
3367 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3368 (eval "$ac_compile") 2>conftest.er1
3370 grep -v '^ *+' conftest.er1 >conftest.err
3372 cat conftest.err >&5
3373 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3374 (exit $ac_status); } && {
3375 test -z "$ac_c_werror_flag" ||
3376 test ! -s conftest.err
3377 } && test -s conftest.$ac_objext; then
3378 ac_cv_sys_largefile_CC=' -n32'; break
3380 echo "$as_me: failed program was
:" >&5
3381 sed 's/^/| /' conftest.$ac_ext >&5
3386 rm -f core conftest.err conftest.$ac_objext
3390 rm -f conftest.$ac_ext
3393 { echo "$as_me:$LINENO: result
: $ac_cv_sys_largefile_CC" >&5
3394 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
3395 if test "$ac_cv_sys_largefile_CC" != no; then
3396 CC=$CC$ac_cv_sys_largefile_CC
3399 { echo "$as_me:$LINENO: checking
for _FILE_OFFSET_BITS value needed
for large files
" >&5
3400 echo $ECHO_N "checking
for _FILE_OFFSET_BITS value needed
for large files...
$ECHO_C" >&6; }
3401 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
3402 echo $ECHO_N "(cached
) $ECHO_C" >&6
3405 cat >conftest.$ac_ext <<_ACEOF
3408 cat confdefs.h >>conftest.$ac_ext
3409 cat >>conftest.$ac_ext <<_ACEOF
3410 /* end confdefs.h. */
3411 #include <sys/types.h>
3412 /* Check that off_t can represent 2**63 - 1 correctly.
3413 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3414 since some C++ compilers masquerading as C compilers
3415 incorrectly reject 9223372036854775807. */
3416 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3417 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3418 && LARGE_OFF_T % 2147483647 == 1)
3428 rm -f conftest.$ac_objext
3429 if { (ac_try="$ac_compile"
3431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3432 *) ac_try_echo=$ac_try;;
3434 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3435 (eval "$ac_compile") 2>conftest.er1
3437 grep -v '^ *+' conftest.er1 >conftest.err
3439 cat conftest.err >&5
3440 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3441 (exit $ac_status); } && {
3442 test -z "$ac_c_werror_flag" ||
3443 test ! -s conftest.err
3444 } && test -s conftest.$ac_objext; then
3445 ac_cv_sys_file_offset_bits=no; break
3447 echo "$as_me: failed program was
:" >&5
3448 sed 's/^/| /' conftest.$ac_ext >&5
3453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3454 cat >conftest.$ac_ext <<_ACEOF
3457 cat confdefs.h >>conftest.$ac_ext
3458 cat >>conftest.$ac_ext <<_ACEOF
3459 /* end confdefs.h. */
3460 #define _FILE_OFFSET_BITS 64
3461 #include <sys/types.h>
3462 /* Check that off_t can represent 2**63 - 1 correctly.
3463 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3464 since some C++ compilers masquerading as C compilers
3465 incorrectly reject 9223372036854775807. */
3466 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3467 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3468 && LARGE_OFF_T % 2147483647 == 1)
3478 rm -f conftest.$ac_objext
3479 if { (ac_try="$ac_compile"
3481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3482 *) ac_try_echo=$ac_try;;
3484 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3485 (eval "$ac_compile") 2>conftest.er1
3487 grep -v '^ *+' conftest.er1 >conftest.err
3489 cat conftest.err >&5
3490 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3491 (exit $ac_status); } && {
3492 test -z "$ac_c_werror_flag" ||
3493 test ! -s conftest.err
3494 } && test -s conftest.$ac_objext; then
3495 ac_cv_sys_file_offset_bits=64; break
3497 echo "$as_me: failed program was
:" >&5
3498 sed 's/^/| /' conftest.$ac_ext >&5
3503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3504 ac_cv_sys_file_offset_bits=unknown
3508 { echo "$as_me:$LINENO: result
: $ac_cv_sys_file_offset_bits" >&5
3509 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
3510 case $ac_cv_sys_file_offset_bits in #(
3513 cat >>confdefs.h <<_ACEOF
3514 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
3519 if test $ac_cv_sys_file_offset_bits = unknown; then
3520 { echo "$as_me:$LINENO: checking
for _LARGE_FILES value needed
for large files
" >&5
3521 echo $ECHO_N "checking
for _LARGE_FILES value needed
for large files...
$ECHO_C" >&6; }
3522 if test "${ac_cv_sys_large_files+set}" = set; then
3523 echo $ECHO_N "(cached
) $ECHO_C" >&6
3526 cat >conftest.$ac_ext <<_ACEOF
3529 cat confdefs.h >>conftest.$ac_ext
3530 cat >>conftest.$ac_ext <<_ACEOF
3531 /* end confdefs.h. */
3532 #include <sys/types.h>
3533 /* Check that off_t can represent 2**63 - 1 correctly.
3534 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3535 since some C++ compilers masquerading as C compilers
3536 incorrectly reject 9223372036854775807. */
3537 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3538 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3539 && LARGE_OFF_T % 2147483647 == 1)
3549 rm -f conftest.$ac_objext
3550 if { (ac_try="$ac_compile"
3552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3553 *) ac_try_echo=$ac_try;;
3555 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3556 (eval "$ac_compile") 2>conftest.er1
3558 grep -v '^ *+' conftest.er1 >conftest.err
3560 cat conftest.err >&5
3561 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3562 (exit $ac_status); } && {
3563 test -z "$ac_c_werror_flag" ||
3564 test ! -s conftest.err
3565 } && test -s conftest.$ac_objext; then
3566 ac_cv_sys_large_files=no; break
3568 echo "$as_me: failed program was
:" >&5
3569 sed 's/^/| /' conftest.$ac_ext >&5
3574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3575 cat >conftest.$ac_ext <<_ACEOF
3578 cat confdefs.h >>conftest.$ac_ext
3579 cat >>conftest.$ac_ext <<_ACEOF
3580 /* end confdefs.h. */
3581 #define _LARGE_FILES 1
3582 #include <sys/types.h>
3583 /* Check that off_t can represent 2**63 - 1 correctly.
3584 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3585 since some C++ compilers masquerading as C compilers
3586 incorrectly reject 9223372036854775807. */
3587 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3588 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3589 && LARGE_OFF_T % 2147483647 == 1)
3599 rm -f conftest.$ac_objext
3600 if { (ac_try="$ac_compile"
3602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3603 *) ac_try_echo=$ac_try;;
3605 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3606 (eval "$ac_compile") 2>conftest.er1
3608 grep -v '^ *+' conftest.er1 >conftest.err
3610 cat conftest.err >&5
3611 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3612 (exit $ac_status); } && {
3613 test -z "$ac_c_werror_flag" ||
3614 test ! -s conftest.err
3615 } && test -s conftest.$ac_objext; then
3616 ac_cv_sys_large_files=1; break
3618 echo "$as_me: failed program was
:" >&5
3619 sed 's/^/| /' conftest.$ac_ext >&5
3624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3625 ac_cv_sys_large_files=unknown
3629 { echo "$as_me:$LINENO: result
: $ac_cv_sys_large_files" >&5
3630 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
3631 case $ac_cv_sys_large_files in #(
3634 cat >>confdefs.h <<_ACEOF
3635 #define _LARGE_FILES $ac_cv_sys_large_files
3644 # Identify characteristics of the host architecture.
3646 ac_cpp='$CPP $CPPFLAGS'
3647 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3648 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3649 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3650 { echo "$as_me:$LINENO: checking how to run the C preprocessor
" >&5
3651 echo $ECHO_N "checking how to run the C preprocessor...
$ECHO_C" >&6; }
3652 # On Suns, sometimes $CPP names a directory.
3653 if test -n "$CPP" && test -d "$CPP"; then
3656 if test -z "$CPP"; then
3657 if test "${ac_cv_prog_CPP+set}" = set; then
3658 echo $ECHO_N "(cached
) $ECHO_C" >&6
3660 # Double quotes because CPP needs to be expanded
3661 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
3664 for ac_c_preproc_warn_flag in '' yes
3666 # Use a header file that comes with gcc, so configuring glibc
3667 # with a fresh cross-compiler works.
3668 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3669 # <limits.h> exists even on freestanding compilers.
3670 # On the NeXT, cc -E runs the code through the compiler's parser,
3671 # not just through cpp. "Syntax error
" is here to catch this case.
3672 cat >conftest.$ac_ext <<_ACEOF
3675 cat confdefs.h >>conftest.$ac_ext
3676 cat >>conftest.$ac_ext <<_ACEOF
3677 /* end confdefs.h. */
3679 # include <limits.h>
3681 # include <assert.h>
3685 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3688 *) ac_try_echo=$ac_try;;
3690 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3691 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3693 grep -v '^ *+' conftest.er1 >conftest.err
3695 cat conftest.err >&5
3696 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3697 (exit $ac_status); } >/dev/null && {
3698 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3699 test ! -s conftest.err
3703 echo "$as_me: failed program was
:" >&5
3704 sed 's/^/| /' conftest.$ac_ext >&5
3706 # Broken: fails on valid input.
3710 rm -f conftest.err conftest.$ac_ext
3712 # OK, works on sane cases. Now check whether nonexistent headers
3713 # can be detected and how.
3714 cat >conftest.$ac_ext <<_ACEOF
3717 cat confdefs.h >>conftest.$ac_ext
3718 cat >>conftest.$ac_ext <<_ACEOF
3719 /* end confdefs.h. */
3720 #include <ac_nonexistent.h>
3722 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3725 *) ac_try_echo=$ac_try;;
3727 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3728 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3730 grep -v '^ *+' conftest.er1 >conftest.err
3732 cat conftest.err >&5
3733 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3734 (exit $ac_status); } >/dev/null && {
3735 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3736 test ! -s conftest.err
3738 # Broken: success on invalid input.
3741 echo "$as_me: failed program was
:" >&5
3742 sed 's/^/| /' conftest.$ac_ext >&5
3744 # Passes both tests.
3749 rm -f conftest.err conftest.$ac_ext
3752 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3753 rm -f conftest.err conftest.$ac_ext
3754 if $ac_preproc_ok; then
3766 { echo "$as_me:$LINENO: result
: $CPP" >&5
3767 echo "${ECHO_T}$CPP" >&6; }
3769 for ac_c_preproc_warn_flag in '' yes
3771 # Use a header file that comes with gcc, so configuring glibc
3772 # with a fresh cross-compiler works.
3773 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3774 # <limits.h> exists even on freestanding compilers.
3775 # On the NeXT, cc -E runs the code through the compiler's parser,
3776 # not just through cpp. "Syntax error
" is here to catch this case.
3777 cat >conftest.$ac_ext <<_ACEOF
3780 cat confdefs.h >>conftest.$ac_ext
3781 cat >>conftest.$ac_ext <<_ACEOF
3782 /* end confdefs.h. */
3784 # include <limits.h>
3786 # include <assert.h>
3790 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3793 *) ac_try_echo=$ac_try;;
3795 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3796 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3798 grep -v '^ *+' conftest.er1 >conftest.err
3800 cat conftest.err >&5
3801 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3802 (exit $ac_status); } >/dev/null && {
3803 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3804 test ! -s conftest.err
3808 echo "$as_me: failed program was
:" >&5
3809 sed 's/^/| /' conftest.$ac_ext >&5
3811 # Broken: fails on valid input.
3815 rm -f conftest.err conftest.$ac_ext
3817 # OK, works on sane cases. Now check whether nonexistent headers
3818 # can be detected and how.
3819 cat >conftest.$ac_ext <<_ACEOF
3822 cat confdefs.h >>conftest.$ac_ext
3823 cat >>conftest.$ac_ext <<_ACEOF
3824 /* end confdefs.h. */
3825 #include <ac_nonexistent.h>
3827 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3830 *) ac_try_echo=$ac_try;;
3832 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3833 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3835 grep -v '^ *+' conftest.er1 >conftest.err
3837 cat conftest.err >&5
3838 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3839 (exit $ac_status); } >/dev/null && {
3840 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3841 test ! -s conftest.err
3843 # Broken: success on invalid input.
3846 echo "$as_me: failed program was
:" >&5
3847 sed 's/^/| /' conftest.$ac_ext >&5
3849 # Passes both tests.
3854 rm -f conftest.err conftest.$ac_ext
3857 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3858 rm -f conftest.err conftest.$ac_ext
3859 if $ac_preproc_ok; then
3862 { { echo "$as_me:$LINENO: error
: C preprocessor
\"$CPP\" fails sanity check
3863 See \
`config.log' for more details." >&5
3864 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3865 See \`config.log
' for more details." >&2;}
3866 { (exit 1); exit 1; }; }
3870 ac_cpp='$CPP $CPPFLAGS'
3871 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
3872 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
3873 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3876 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3877 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3878 if test "${ac_cv_path_GREP+set}" = set; then
3879 echo $ECHO_N "(cached) $ECHO_C" >&6
3881 # Extract the first word of "grep ggrep" to use in msg output
3882 if test -z "$GREP"; then
3883 set dummy grep ggrep; ac_prog_name=$2
3884 if test "${ac_cv_path_GREP+set}" = set; then
3885 echo $ECHO_N "(cached) $ECHO_C" >&6
3887 ac_path_GREP_found=false
3888 # Loop through the user's path and
test for each of PROGNAME-LIST
3889 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3890 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3893 test -z "$as_dir" && as_dir
=.
3894 for ac_prog
in grep ggrep
; do
3895 for ac_exec_ext
in '' $ac_executable_extensions; do
3896 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3897 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
3898 # Check for GNU ac_path_GREP and select it if it is found.
3899 # Check for GNU $ac_path_GREP
3900 case `"$ac_path_GREP" --version 2>&1` in
3902 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3905 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3908 cat "conftest.in" "conftest.in" >"conftest.tmp"
3909 mv "conftest.tmp" "conftest.in"
3910 cp "conftest.in" "conftest.nl"
3911 echo 'GREP' >> "conftest.nl"
3912 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3913 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3914 ac_count
=`expr $ac_count + 1`
3915 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3916 # Best one so far, save it but keep looking for a better one
3917 ac_cv_path_GREP
="$ac_path_GREP"
3918 ac_path_GREP_max
=$ac_count
3920 # 10*(2^10) chars as input seems more than enough
3921 test $ac_count -gt 10 && break
3923 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3927 $ac_path_GREP_found && break 3
3937 GREP
="$ac_cv_path_GREP"
3938 if test -z "$GREP"; then
3939 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3940 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3941 { (exit 1); exit 1; }; }
3945 ac_cv_path_GREP
=$GREP
3950 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3951 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3952 GREP
="$ac_cv_path_GREP"
3955 { echo "$as_me:$LINENO: checking for egrep" >&5
3956 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3957 if test "${ac_cv_path_EGREP+set}" = set; then
3958 echo $ECHO_N "(cached) $ECHO_C" >&6
3960 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
3961 then ac_cv_path_EGREP
="$GREP -E"
3963 # Extract the first word of "egrep" to use in msg output
3964 if test -z "$EGREP"; then
3965 set dummy
egrep; ac_prog_name
=$2
3966 if test "${ac_cv_path_EGREP+set}" = set; then
3967 echo $ECHO_N "(cached) $ECHO_C" >&6
3969 ac_path_EGREP_found
=false
3970 # Loop through the user's path and test for each of PROGNAME-LIST
3971 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3972 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3975 test -z "$as_dir" && as_dir
=.
3976 for ac_prog
in egrep; do
3977 for ac_exec_ext
in '' $ac_executable_extensions; do
3978 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
3979 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
3980 # Check for GNU ac_path_EGREP and select it if it is found.
3981 # Check for GNU $ac_path_EGREP
3982 case `"$ac_path_EGREP" --version 2>&1` in
3984 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
3987 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3990 cat "conftest.in" "conftest.in" >"conftest.tmp"
3991 mv "conftest.tmp" "conftest.in"
3992 cp "conftest.in" "conftest.nl"
3993 echo 'EGREP' >> "conftest.nl"
3994 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3995 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3996 ac_count
=`expr $ac_count + 1`
3997 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3998 # Best one so far, save it but keep looking for a better one
3999 ac_cv_path_EGREP
="$ac_path_EGREP"
4000 ac_path_EGREP_max
=$ac_count
4002 # 10*(2^10) chars as input seems more than enough
4003 test $ac_count -gt 10 && break
4005 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4009 $ac_path_EGREP_found && break 3
4019 EGREP
="$ac_cv_path_EGREP"
4020 if test -z "$EGREP"; then
4021 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4022 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4023 { (exit 1); exit 1; }; }
4027 ac_cv_path_EGREP
=$EGREP
4033 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4034 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4035 EGREP
="$ac_cv_path_EGREP"
4038 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4039 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4040 if test "${ac_cv_header_stdc+set}" = set; then
4041 echo $ECHO_N "(cached) $ECHO_C" >&6
4043 cat >conftest.
$ac_ext <<_ACEOF
4046 cat confdefs.h
>>conftest.
$ac_ext
4047 cat >>conftest.
$ac_ext <<_ACEOF
4048 /* end confdefs.h. */
4062 rm -f conftest.
$ac_objext
4063 if { (ac_try
="$ac_compile"
4065 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4066 *) ac_try_echo=$ac_try;;
4068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4069 (eval "$ac_compile") 2>conftest.er1
4071 grep -v '^ *+' conftest.er1 >conftest.err
4073 cat conftest.err >&5
4074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4075 (exit $ac_status); } && {
4076 test -z "$ac_c_werror_flag" ||
4077 test ! -s conftest.err
4078 } && test -s conftest.$ac_objext; then
4079 ac_cv_header_stdc=yes
4081 echo "$as_me: failed program was:" >&5
4082 sed 's/^/| /' conftest.$ac_ext >&5
4084 ac_cv_header_stdc=no
4087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4089 if test $ac_cv_header_stdc = yes; then
4090 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4091 cat >conftest.$ac_ext <<_ACEOF
4094 cat confdefs.h >>conftest.$ac_ext
4095 cat >>conftest.$ac_ext <<_ACEOF
4096 /* end confdefs.h. */
4100 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4101 $EGREP "memchr" >/dev/null 2>&1; then
4104 ac_cv_header_stdc=no
4110 if test $ac_cv_header_stdc = yes; then
4111 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4112 cat >conftest.$ac_ext <<_ACEOF
4115 cat confdefs.h >>conftest.$ac_ext
4116 cat >>conftest.$ac_ext <<_ACEOF
4117 /* end confdefs.h. */
4121 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4122 $EGREP "free" >/dev/null 2>&1; then
4125 ac_cv_header_stdc=no
4131 if test $ac_cv_header_stdc = yes; then
4132 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4133 if test "$cross_compiling" = yes; then
4136 cat >conftest.$ac_ext <<_ACEOF
4139 cat confdefs.h >>conftest.$ac_ext
4140 cat >>conftest.$ac_ext <<_ACEOF
4141 /* end confdefs.h. */
4144 #if ((' ' & 0x0FF) == 0x020)
4145 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4146 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4148 # define ISLOWER(c) \
4149 (('a' <= (c) && (c) <= 'i') \
4150 || ('j' <= (c) && (c) <= 'r') \
4151 || ('s' <= (c) && (c) <= 'z'))
4152 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4155 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4160 for (i = 0; i < 256; i++)
4161 if (XOR (islower (i), ISLOWER (i))
4162 || toupper (i) != TOUPPER (i))
4167 rm -f conftest$ac_exeext
4168 if { (ac_try="$ac_link"
4170 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4171 *) ac_try_echo
=$ac_try;;
4173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4174 (eval "$ac_link") 2>&5
4176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4177 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4178 { (case "(($ac_try" in
4179 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4180 *) ac_try_echo=$ac_try;;
4182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4183 (eval "$ac_try") 2>&5
4185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4186 (exit $ac_status); }; }; then
4189 echo "$as_me: program exited with status $ac_status" >&5
4190 echo "$as_me: failed program was:" >&5
4191 sed 's/^/| /' conftest.$ac_ext >&5
4194 ac_cv_header_stdc=no
4196 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4202 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4203 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4204 if test $ac_cv_header_stdc = yes; then
4206 cat >>confdefs.h <<\_ACEOF
4207 #define STDC_HEADERS 1
4212 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4222 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4223 inttypes.h stdint.h unistd.h
4225 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
4226 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4227 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4228 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4229 echo $ECHO_N "(cached) $ECHO_C" >&6
4231 cat >conftest.$ac_ext <<_ACEOF
4234 cat confdefs.h >>conftest.$ac_ext
4235 cat >>conftest.$ac_ext <<_ACEOF
4236 /* end confdefs.h. */
4237 $ac_includes_default
4239 #include <$ac_header>
4241 rm -f conftest.$ac_objext
4242 if { (ac_try="$ac_compile"
4244 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4245 *) ac_try_echo
=$ac_try;;
4247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4248 (eval "$ac_compile") 2>conftest.er1
4250 grep -v '^ *+' conftest.er1
>conftest.err
4252 cat conftest.err
>&5
4253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4254 (exit $ac_status); } && {
4255 test -z "$ac_c_werror_flag" ||
4256 test ! -s conftest.err
4257 } && test -s conftest.
$ac_objext; then
4258 eval "$as_ac_Header=yes"
4260 echo "$as_me: failed program was:" >&5
4261 sed 's/^/| /' conftest.
$ac_ext >&5
4263 eval "$as_ac_Header=no"
4266 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4268 ac_res
=`eval echo '${'$as_ac_Header'}'`
4269 { echo "$as_me:$LINENO: result: $ac_res" >&5
4270 echo "${ECHO_T}$ac_res" >&6; }
4271 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4272 cat >>confdefs.h
<<_ACEOF
4273 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4281 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4282 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4283 if test "${ac_cv_c_bigendian+set}" = set; then
4284 echo $ECHO_N "(cached) $ECHO_C" >&6
4286 # See if sys/param.h defines the BYTE_ORDER macro.
4287 cat >conftest.
$ac_ext <<_ACEOF
4290 cat confdefs.h
>>conftest.
$ac_ext
4291 cat >>conftest.
$ac_ext <<_ACEOF
4292 /* end confdefs.h. */
4293 #include <sys/types.h>
4294 #include <sys/param.h>
4299 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
4300 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
4308 rm -f conftest.
$ac_objext
4309 if { (ac_try
="$ac_compile"
4311 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4312 *) ac_try_echo=$ac_try;;
4314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4315 (eval "$ac_compile") 2>conftest.er1
4317 grep -v '^ *+' conftest.er1 >conftest.err
4319 cat conftest.err >&5
4320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4321 (exit $ac_status); } && {
4322 test -z "$ac_c_werror_flag" ||
4323 test ! -s conftest.err
4324 } && test -s conftest.$ac_objext; then
4325 # It does; now see whether it defined to BIG_ENDIAN or not.
4326 cat >conftest.$ac_ext <<_ACEOF
4329 cat confdefs.h >>conftest.$ac_ext
4330 cat >>conftest.$ac_ext <<_ACEOF
4331 /* end confdefs.h. */
4332 #include <sys/types.h>
4333 #include <sys/param.h>
4338 #if BYTE_ORDER != BIG_ENDIAN
4346 rm -f conftest.$ac_objext
4347 if { (ac_try="$ac_compile"
4349 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4350 *) ac_try_echo
=$ac_try;;
4352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4353 (eval "$ac_compile") 2>conftest.er1
4355 grep -v '^ *+' conftest.er1
>conftest.err
4357 cat conftest.err
>&5
4358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4359 (exit $ac_status); } && {
4360 test -z "$ac_c_werror_flag" ||
4361 test ! -s conftest.err
4362 } && test -s conftest.
$ac_objext; then
4363 ac_cv_c_bigendian
=yes
4365 echo "$as_me: failed program was:" >&5
4366 sed 's/^/| /' conftest.
$ac_ext >&5
4368 ac_cv_c_bigendian
=no
4371 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4373 echo "$as_me: failed program was:" >&5
4374 sed 's/^/| /' conftest.
$ac_ext >&5
4376 # It does not; compile a test program.
4377 if test "$cross_compiling" = yes; then
4378 # try to guess the endianness by grepping values into an object file
4379 ac_cv_c_bigendian
=unknown
4380 cat >conftest.
$ac_ext <<_ACEOF
4383 cat confdefs.h
>>conftest.
$ac_ext
4384 cat >>conftest.
$ac_ext <<_ACEOF
4385 /* end confdefs.h. */
4386 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4387 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4388 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4389 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4390 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4391 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4395 _ascii (); _ebcdic ();
4400 rm -f conftest.
$ac_objext
4401 if { (ac_try
="$ac_compile"
4403 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4404 *) ac_try_echo=$ac_try;;
4406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4407 (eval "$ac_compile") 2>conftest.er1
4409 grep -v '^ *+' conftest.er1 >conftest.err
4411 cat conftest.err >&5
4412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4413 (exit $ac_status); } && {
4414 test -z "$ac_c_werror_flag" ||
4415 test ! -s conftest.err
4416 } && test -s conftest.$ac_objext; then
4417 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4418 ac_cv_c_bigendian=yes
4420 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4421 if test "$ac_cv_c_bigendian" = unknown; then
4422 ac_cv_c_bigendian=no
4424 # finding both strings is unlikely to happen, but who knows?
4425 ac_cv_c_bigendian=unknown
4429 echo "$as_me: failed program was:" >&5
4430 sed 's/^/| /' conftest.$ac_ext >&5
4435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4437 cat >conftest.$ac_ext <<_ACEOF
4440 cat confdefs.h >>conftest.$ac_ext
4441 cat >>conftest.$ac_ext <<_ACEOF
4442 /* end confdefs.h. */
4443 $ac_includes_default
4448 /* Are we little or big endian? From Harbison&Steele. */
4452 char c[sizeof (long int)];
4455 return u.c[sizeof (long int) - 1] == 1;
4461 rm -f conftest$ac_exeext
4462 if { (ac_try="$ac_link"
4464 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4465 *) ac_try_echo
=$ac_try;;
4467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4468 (eval "$ac_link") 2>&5
4470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4471 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4472 { (case "(($ac_try" in
4473 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4474 *) ac_try_echo=$ac_try;;
4476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4477 (eval "$ac_try") 2>&5
4479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4480 (exit $ac_status); }; }; then
4481 ac_cv_c_bigendian=no
4483 echo "$as_me: program exited with status $ac_status" >&5
4484 echo "$as_me: failed program was:" >&5
4485 sed 's/^/| /' conftest.$ac_ext >&5
4488 ac_cv_c_bigendian=yes
4490 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4498 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4499 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4500 case $ac_cv_c_bigendian in
4503 cat >>confdefs.h <<\_ACEOF
4504 #define WORDS_BIGENDIAN 1
4510 { { echo "$as_me:$LINENO: error: unknown endianness
4511 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4512 echo "$as_me: error: unknown endianness
4513 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4514 { (exit 1); exit 1; }; } ;;
4517 { echo "$as_me:$LINENO: checking for void *" >&5
4518 echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
4519 if test "${ac_cv_type_void_p+set}" = set; then
4520 echo $ECHO_N "(cached) $ECHO_C" >&6
4522 cat >conftest.$ac_ext <<_ACEOF
4525 cat confdefs.h >>conftest.$ac_ext
4526 cat >>conftest.$ac_ext <<_ACEOF
4527 /* end confdefs.h. */
4528 $ac_includes_default
4529 typedef void * ac__type_new_;
4533 if ((ac__type_new_ *) 0)
4535 if (sizeof (ac__type_new_))
4541 rm -f conftest.$ac_objext
4542 if { (ac_try="$ac_compile"
4544 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4545 *) ac_try_echo
=$ac_try;;
4547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4548 (eval "$ac_compile") 2>conftest.er1
4550 grep -v '^ *+' conftest.er1
>conftest.err
4552 cat conftest.err
>&5
4553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4554 (exit $ac_status); } && {
4555 test -z "$ac_c_werror_flag" ||
4556 test ! -s conftest.err
4557 } && test -s conftest.
$ac_objext; then
4558 ac_cv_type_void_p
=yes
4560 echo "$as_me: failed program was:" >&5
4561 sed 's/^/| /' conftest.
$ac_ext >&5
4563 ac_cv_type_void_p
=no
4566 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4568 { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
4569 echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
4571 # The cast to long int works around a bug in the HP C Compiler
4572 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4573 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4574 # This bug is HP SR number 8606223364.
4575 { echo "$as_me:$LINENO: checking size of void *" >&5
4576 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
4577 if test "${ac_cv_sizeof_void_p+set}" = set; then
4578 echo $ECHO_N "(cached) $ECHO_C" >&6
4580 if test "$cross_compiling" = yes; then
4581 # Depending upon the size, compute the lo and hi bounds.
4582 cat >conftest.
$ac_ext <<_ACEOF
4585 cat confdefs.h
>>conftest.
$ac_ext
4586 cat >>conftest.
$ac_ext <<_ACEOF
4587 /* end confdefs.h. */
4588 $ac_includes_default
4589 typedef void * ac__type_sizeof_;
4593 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
4600 rm -f conftest.
$ac_objext
4601 if { (ac_try
="$ac_compile"
4603 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4604 *) ac_try_echo=$ac_try;;
4606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4607 (eval "$ac_compile") 2>conftest.er1
4609 grep -v '^ *+' conftest.er1 >conftest.err
4611 cat conftest.err >&5
4612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4613 (exit $ac_status); } && {
4614 test -z "$ac_c_werror_flag" ||
4615 test ! -s conftest.err
4616 } && test -s conftest.$ac_objext; then
4619 cat >conftest.$ac_ext <<_ACEOF
4622 cat confdefs.h >>conftest.$ac_ext
4623 cat >>conftest.$ac_ext <<_ACEOF
4624 /* end confdefs.h. */
4625 $ac_includes_default
4626 typedef void * ac__type_sizeof_;
4630 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
4637 rm -f conftest.$ac_objext
4638 if { (ac_try="$ac_compile"
4640 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4641 *) ac_try_echo
=$ac_try;;
4643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4644 (eval "$ac_compile") 2>conftest.er1
4646 grep -v '^ *+' conftest.er1
>conftest.err
4648 cat conftest.err
>&5
4649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4650 (exit $ac_status); } && {
4651 test -z "$ac_c_werror_flag" ||
4652 test ! -s conftest.err
4653 } && test -s conftest.
$ac_objext; then
4654 ac_hi
=$ac_mid; break
4656 echo "$as_me: failed program was:" >&5
4657 sed 's/^/| /' conftest.
$ac_ext >&5
4659 ac_lo
=`expr $ac_mid + 1`
4660 if test $ac_lo -le $ac_mid; then
4664 ac_mid
=`expr 2 '*' $ac_mid + 1`
4667 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4670 echo "$as_me: failed program was:" >&5
4671 sed 's/^/| /' conftest.
$ac_ext >&5
4673 cat >conftest.
$ac_ext <<_ACEOF
4676 cat confdefs.h
>>conftest.
$ac_ext
4677 cat >>conftest.
$ac_ext <<_ACEOF
4678 /* end confdefs.h. */
4679 $ac_includes_default
4680 typedef void * ac__type_sizeof_;
4684 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
4691 rm -f conftest.
$ac_objext
4692 if { (ac_try
="$ac_compile"
4694 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4695 *) ac_try_echo=$ac_try;;
4697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4698 (eval "$ac_compile") 2>conftest.er1
4700 grep -v '^ *+' conftest.er1 >conftest.err
4702 cat conftest.err >&5
4703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4704 (exit $ac_status); } && {
4705 test -z "$ac_c_werror_flag" ||
4706 test ! -s conftest.err
4707 } && test -s conftest.$ac_objext; then
4710 cat >conftest.$ac_ext <<_ACEOF
4713 cat confdefs.h >>conftest.$ac_ext
4714 cat >>conftest.$ac_ext <<_ACEOF
4715 /* end confdefs.h. */
4716 $ac_includes_default
4717 typedef void * ac__type_sizeof_;
4721 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
4728 rm -f conftest.$ac_objext
4729 if { (ac_try="$ac_compile"
4731 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4732 *) ac_try_echo
=$ac_try;;
4734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4735 (eval "$ac_compile") 2>conftest.er1
4737 grep -v '^ *+' conftest.er1
>conftest.err
4739 cat conftest.err
>&5
4740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4741 (exit $ac_status); } && {
4742 test -z "$ac_c_werror_flag" ||
4743 test ! -s conftest.err
4744 } && test -s conftest.
$ac_objext; then
4745 ac_lo
=$ac_mid; break
4747 echo "$as_me: failed program was:" >&5
4748 sed 's/^/| /' conftest.
$ac_ext >&5
4750 ac_hi
=`expr '(' $ac_mid ')' - 1`
4751 if test $ac_mid -le $ac_hi; then
4755 ac_mid
=`expr 2 '*' $ac_mid`
4758 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4761 echo "$as_me: failed program was:" >&5
4762 sed 's/^/| /' conftest.
$ac_ext >&5
4767 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4770 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4771 # Binary search between lo and hi bounds.
4772 while test "x$ac_lo" != "x$ac_hi"; do
4773 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4774 cat >conftest.
$ac_ext <<_ACEOF
4777 cat confdefs.h
>>conftest.
$ac_ext
4778 cat >>conftest.
$ac_ext <<_ACEOF
4779 /* end confdefs.h. */
4780 $ac_includes_default
4781 typedef void * ac__type_sizeof_;
4785 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
4792 rm -f conftest.
$ac_objext
4793 if { (ac_try
="$ac_compile"
4795 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4796 *) ac_try_echo=$ac_try;;
4798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4799 (eval "$ac_compile") 2>conftest.er1
4801 grep -v '^ *+' conftest.er1 >conftest.err
4803 cat conftest.err >&5
4804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4805 (exit $ac_status); } && {
4806 test -z "$ac_c_werror_flag" ||
4807 test ! -s conftest.err
4808 } && test -s conftest.$ac_objext; then
4811 echo "$as_me: failed program was:" >&5
4812 sed 's/^/| /' conftest.$ac_ext >&5
4814 ac_lo=`expr '(' $ac_mid ')' + 1`
4817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4820 ?*) ac_cv_sizeof_void_p=$ac_lo;;
4821 '') if test "$ac_cv_type_void_p" = yes; then
4822 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
4823 See \`config.log
' for more details." >&5
4824 echo "$as_me: error: cannot compute sizeof (void *)
4825 See \`config.log' for more details.
" >&2;}
4826 { (exit 77); exit 77; }; }
4828 ac_cv_sizeof_void_p=0
4832 cat >conftest.$ac_ext <<_ACEOF
4835 cat confdefs.h >>conftest.$ac_ext
4836 cat >>conftest.$ac_ext <<_ACEOF
4837 /* end confdefs.h. */
4838 $ac_includes_default
4839 typedef void * ac__type_sizeof_;
4840 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
4841 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
4848 FILE *f = fopen ("conftest.val
", "w
");
4851 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
4853 long int i = longval ();
4854 if (i != ((long int) (sizeof (ac__type_sizeof_))))
4856 fprintf (f, "%ld
\n", i);
4860 unsigned long int i = ulongval ();
4861 if (i != ((long int) (sizeof (ac__type_sizeof_))))
4863 fprintf (f, "%lu
\n", i);
4865 return ferror (f) || fclose (f) != 0;
4871 rm -f conftest$ac_exeext
4872 if { (ac_try="$ac_link"
4874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4875 *) ac_try_echo=$ac_try;;
4877 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4878 (eval "$ac_link") 2>&5
4880 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4881 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4882 { (case "(($ac_try" in
4883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4884 *) ac_try_echo=$ac_try;;
4886 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4887 (eval "$ac_try") 2>&5
4889 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4890 (exit $ac_status); }; }; then
4891 ac_cv_sizeof_void_p=`cat conftest.val`
4893 echo "$as_me: program exited with status
$ac_status" >&5
4894 echo "$as_me: failed program was
:" >&5
4895 sed 's/^/| /' conftest.$ac_ext >&5
4898 if test "$ac_cv_type_void_p" = yes; then
4899 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(void
*)
4900 See \
`config.log' for more details." >&5
4901 echo "$as_me: error: cannot compute sizeof (void *)
4902 See \`config.log
' for more details." >&2;}
4903 { (exit 77); exit 77; }; }
4905 ac_cv_sizeof_void_p=0
4908 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4912 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
4913 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
4917 cat >>confdefs.h <<_ACEOF
4918 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
4922 { echo "$as_me:$LINENO: checking for long" >&5
4923 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
4924 if test "${ac_cv_type_long+set}" = set; then
4925 echo $ECHO_N "(cached) $ECHO_C" >&6
4927 cat >conftest.$ac_ext <<_ACEOF
4930 cat confdefs.h >>conftest.$ac_ext
4931 cat >>conftest.$ac_ext <<_ACEOF
4932 /* end confdefs.h. */
4933 $ac_includes_default
4934 typedef long ac__type_new_;
4938 if ((ac__type_new_ *) 0)
4940 if (sizeof (ac__type_new_))
4946 rm -f conftest.$ac_objext
4947 if { (ac_try="$ac_compile"
4949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4950 *) ac_try_echo=$ac_try;;
4952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4953 (eval "$ac_compile") 2>conftest.er1
4955 grep -v '^
*+' conftest.er1 >conftest.err
4957 cat conftest.err >&5
4958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4959 (exit $ac_status); } && {
4960 test -z "$ac_c_werror_flag" ||
4961 test ! -s conftest.err
4962 } && test -s conftest.$ac_objext; then
4965 echo "$as_me: failed program was:" >&5
4966 sed 's
/^
/|
/' conftest.$ac_ext >&5
4971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4973 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
4974 echo "${ECHO_T}$ac_cv_type_long" >&6; }
4976 # The cast to long int works around a bug in the HP C Compiler
4977 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4978 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4979 # This bug is HP SR number 8606223364.
4980 { echo "$as_me:$LINENO: checking size of long" >&5
4981 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
4982 if test "${ac_cv_sizeof_long+set}" = set; then
4983 echo $ECHO_N "(cached) $ECHO_C" >&6
4985 if test "$cross_compiling" = yes; then
4986 # Depending upon the size, compute the lo and hi bounds.
4987 cat >conftest.
$ac_ext <<_ACEOF
4990 cat confdefs.h
>>conftest.
$ac_ext
4991 cat >>conftest.
$ac_ext <<_ACEOF
4992 /* end confdefs.h. */
4993 $ac_includes_default
4994 typedef long ac__type_sizeof_;
4998 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
5005 rm -f conftest.
$ac_objext
5006 if { (ac_try
="$ac_compile"
5008 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5009 *) ac_try_echo=$ac_try;;
5011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5012 (eval "$ac_compile") 2>conftest.er1
5014 grep -v '^ *+' conftest.er1 >conftest.err
5016 cat conftest.err >&5
5017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5018 (exit $ac_status); } && {
5019 test -z "$ac_c_werror_flag" ||
5020 test ! -s conftest.err
5021 } && test -s conftest.$ac_objext; then
5024 cat >conftest.$ac_ext <<_ACEOF
5027 cat confdefs.h >>conftest.$ac_ext
5028 cat >>conftest.$ac_ext <<_ACEOF
5029 /* end confdefs.h. */
5030 $ac_includes_default
5031 typedef long ac__type_sizeof_;
5035 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5042 rm -f conftest.$ac_objext
5043 if { (ac_try="$ac_compile"
5045 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5046 *) ac_try_echo
=$ac_try;;
5048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5049 (eval "$ac_compile") 2>conftest.er1
5051 grep -v '^ *+' conftest.er1
>conftest.err
5053 cat conftest.err
>&5
5054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5055 (exit $ac_status); } && {
5056 test -z "$ac_c_werror_flag" ||
5057 test ! -s conftest.err
5058 } && test -s conftest.
$ac_objext; then
5059 ac_hi
=$ac_mid; break
5061 echo "$as_me: failed program was:" >&5
5062 sed 's/^/| /' conftest.
$ac_ext >&5
5064 ac_lo
=`expr $ac_mid + 1`
5065 if test $ac_lo -le $ac_mid; then
5069 ac_mid
=`expr 2 '*' $ac_mid + 1`
5072 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5075 echo "$as_me: failed program was:" >&5
5076 sed 's/^/| /' conftest.
$ac_ext >&5
5078 cat >conftest.
$ac_ext <<_ACEOF
5081 cat confdefs.h
>>conftest.
$ac_ext
5082 cat >>conftest.
$ac_ext <<_ACEOF
5083 /* end confdefs.h. */
5084 $ac_includes_default
5085 typedef long ac__type_sizeof_;
5089 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
5096 rm -f conftest.
$ac_objext
5097 if { (ac_try
="$ac_compile"
5099 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5100 *) ac_try_echo=$ac_try;;
5102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5103 (eval "$ac_compile") 2>conftest.er1
5105 grep -v '^ *+' conftest.er1 >conftest.err
5107 cat conftest.err >&5
5108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5109 (exit $ac_status); } && {
5110 test -z "$ac_c_werror_flag" ||
5111 test ! -s conftest.err
5112 } && test -s conftest.$ac_objext; then
5115 cat >conftest.$ac_ext <<_ACEOF
5118 cat confdefs.h >>conftest.$ac_ext
5119 cat >>conftest.$ac_ext <<_ACEOF
5120 /* end confdefs.h. */
5121 $ac_includes_default
5122 typedef long ac__type_sizeof_;
5126 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
5133 rm -f conftest.$ac_objext
5134 if { (ac_try="$ac_compile"
5136 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5137 *) ac_try_echo
=$ac_try;;
5139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5140 (eval "$ac_compile") 2>conftest.er1
5142 grep -v '^ *+' conftest.er1
>conftest.err
5144 cat conftest.err
>&5
5145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5146 (exit $ac_status); } && {
5147 test -z "$ac_c_werror_flag" ||
5148 test ! -s conftest.err
5149 } && test -s conftest.
$ac_objext; then
5150 ac_lo
=$ac_mid; break
5152 echo "$as_me: failed program was:" >&5
5153 sed 's/^/| /' conftest.
$ac_ext >&5
5155 ac_hi
=`expr '(' $ac_mid ')' - 1`
5156 if test $ac_mid -le $ac_hi; then
5160 ac_mid
=`expr 2 '*' $ac_mid`
5163 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5166 echo "$as_me: failed program was:" >&5
5167 sed 's/^/| /' conftest.
$ac_ext >&5
5172 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5175 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5176 # Binary search between lo and hi bounds.
5177 while test "x$ac_lo" != "x$ac_hi"; do
5178 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5179 cat >conftest.
$ac_ext <<_ACEOF
5182 cat confdefs.h
>>conftest.
$ac_ext
5183 cat >>conftest.
$ac_ext <<_ACEOF
5184 /* end confdefs.h. */
5185 $ac_includes_default
5186 typedef long ac__type_sizeof_;
5190 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5197 rm -f conftest.
$ac_objext
5198 if { (ac_try
="$ac_compile"
5200 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5201 *) ac_try_echo=$ac_try;;
5203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5204 (eval "$ac_compile") 2>conftest.er1
5206 grep -v '^ *+' conftest.er1 >conftest.err
5208 cat conftest.err >&5
5209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5210 (exit $ac_status); } && {
5211 test -z "$ac_c_werror_flag" ||
5212 test ! -s conftest.err
5213 } && test -s conftest.$ac_objext; then
5216 echo "$as_me: failed program was:" >&5
5217 sed 's/^/| /' conftest.$ac_ext >&5
5219 ac_lo=`expr '(' $ac_mid ')' + 1`
5222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5225 ?*) ac_cv_sizeof_long=$ac_lo;;
5226 '') if test "$ac_cv_type_long" = yes; then
5227 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
5228 See \`config.log
' for more details." >&5
5229 echo "$as_me: error: cannot compute sizeof (long)
5230 See \`config.log' for more details.
" >&2;}
5231 { (exit 77); exit 77; }; }
5237 cat >conftest.$ac_ext <<_ACEOF
5240 cat confdefs.h >>conftest.$ac_ext
5241 cat >>conftest.$ac_ext <<_ACEOF
5242 /* end confdefs.h. */
5243 $ac_includes_default
5244 typedef long ac__type_sizeof_;
5245 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
5246 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
5253 FILE *f = fopen ("conftest.val
", "w
");
5256 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
5258 long int i = longval ();
5259 if (i != ((long int) (sizeof (ac__type_sizeof_))))
5261 fprintf (f, "%ld
\n", i);
5265 unsigned long int i = ulongval ();
5266 if (i != ((long int) (sizeof (ac__type_sizeof_))))
5268 fprintf (f, "%lu
\n", i);
5270 return ferror (f) || fclose (f) != 0;
5276 rm -f conftest$ac_exeext
5277 if { (ac_try="$ac_link"
5279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5280 *) ac_try_echo=$ac_try;;
5282 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5283 (eval "$ac_link") 2>&5
5285 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5286 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5287 { (case "(($ac_try" in
5288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5289 *) ac_try_echo=$ac_try;;
5291 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5292 (eval "$ac_try") 2>&5
5294 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5295 (exit $ac_status); }; }; then
5296 ac_cv_sizeof_long=`cat conftest.val`
5298 echo "$as_me: program exited with status
$ac_status" >&5
5299 echo "$as_me: failed program was
:" >&5
5300 sed 's/^/| /' conftest.$ac_ext >&5
5303 if test "$ac_cv_type_long" = yes; then
5304 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(long
)
5305 See \
`config.log' for more details." >&5
5306 echo "$as_me: error: cannot compute sizeof (long)
5307 See \`config.log
' for more details." >&2;}
5308 { (exit 77); exit 77; }; }
5313 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5317 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5318 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
5322 cat >>confdefs.h <<_ACEOF
5323 #define SIZEOF_LONG $ac_cv_sizeof_long
5328 if test "x$host_m32" = x1; then
5329 # Force 32-bit mode.
5330 CFLAGS="$CFLAGS -m32"
5331 LDFLAGS="$LDFLAGS -m32"
5334 # Check LZO when compiling for the i386-pc.
5335 if test "$target_cpu"-"$platform" = i386-pc; then
5336 # Check whether --enable-lzo was given.
5337 if test "${enable_lzo+set}" = set; then
5338 enableval=$enable_lzo;
5341 if [ x"$enable_lzo" = xyes ]; then
5342 # There are three possibilities. LZO version 2 installed with the name
5343 # liblzo2, with the name liblzo, and LZO version 1.
5345 cat >>confdefs.h <<\_ACEOF
5346 #define ENABLE_LZO 1
5349 { echo "$as_me:$LINENO: checking for __lzo_init_v2 in -llzo2" >&5
5350 echo $ECHO_N "checking for __lzo_init_v2 in -llzo2... $ECHO_C" >&6; }
5351 if test "${ac_cv_lib_lzo2___lzo_init_v2+set}" = set; then
5352 echo $ECHO_N "(cached) $ECHO_C" >&6
5354 ac_check_lib_save_LIBS=$LIBS
5356 cat >conftest.$ac_ext <<_ACEOF
5359 cat confdefs.h >>conftest.$ac_ext
5360 cat >>conftest.$ac_ext <<_ACEOF
5361 /* end confdefs.h. */
5363 /* Override any GCC internal prototype to avoid an error.
5364 Use char because int might match the return type of a GCC
5365 builtin and then its argument prototype would still apply. */
5369 char __lzo_init_v2 ();
5373 return __lzo_init_v2 ();
5378 rm -f conftest.$ac_objext conftest$ac_exeext
5379 if { (ac_try="$ac_link"
5381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5382 *) ac_try_echo=$ac_try;;
5384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5385 (eval "$ac_link") 2>conftest.er1
5387 grep -v '^
*+' conftest.er1 >conftest.err
5389 cat conftest.err >&5
5390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5391 (exit $ac_status); } && {
5392 test -z "$ac_c_werror_flag" ||
5393 test ! -s conftest.err
5394 } && test -s conftest$ac_exeext &&
5395 $as_test_x conftest$ac_exeext; then
5396 ac_cv_lib_lzo2___lzo_init_v2=yes
5398 echo "$as_me: failed program was:" >&5
5399 sed 's
/^
/|
/' conftest.$ac_ext >&5
5401 ac_cv_lib_lzo2___lzo_init_v2=no
5404 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5405 conftest$ac_exeext conftest.$ac_ext
5406 LIBS=$ac_check_lib_save_LIBS
5408 { echo "$as_me:$LINENO: result: $ac_cv_lib_lzo2___lzo_init_v2" >&5
5409 echo "${ECHO_T}$ac_cv_lib_lzo2___lzo_init_v2" >&6; }
5410 if test $ac_cv_lib_lzo2___lzo_init_v2 = yes; then
5413 { echo "$as_me:$LINENO: checking for __lzo_init_v2 in -llzo" >&5
5414 echo $ECHO_N "checking for __lzo_init_v2 in -llzo... $ECHO_C" >&6; }
5415 if test "${ac_cv_lib_lzo___lzo_init_v2+set}" = set; then
5416 echo $ECHO_N "(cached) $ECHO_C" >&6
5418 ac_check_lib_save_LIBS=$LIBS
5420 cat >conftest.$ac_ext <<_ACEOF
5423 cat confdefs.h >>conftest.$ac_ext
5424 cat >>conftest.$ac_ext <<_ACEOF
5425 /* end confdefs.h. */
5427 /* Override any GCC internal prototype to avoid an error.
5428 Use char because int might match the return type of a GCC
5429 builtin and then its argument prototype would still apply. */
5433 char __lzo_init_v2 ();
5437 return __lzo_init_v2 ();
5442 rm -f conftest.$ac_objext conftest$ac_exeext
5443 if { (ac_try="$ac_link"
5445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5446 *) ac_try_echo=$ac_try;;
5448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5449 (eval "$ac_link") 2>conftest.er1
5451 grep -v '^
*+' conftest.er1 >conftest.err
5453 cat conftest.err >&5
5454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5455 (exit $ac_status); } && {
5456 test -z "$ac_c_werror_flag" ||
5457 test ! -s conftest.err
5458 } && test -s conftest$ac_exeext &&
5459 $as_test_x conftest$ac_exeext; then
5460 ac_cv_lib_lzo___lzo_init_v2=yes
5462 echo "$as_me: failed program was:" >&5
5463 sed 's
/^
/|
/' conftest.$ac_ext >&5
5465 ac_cv_lib_lzo___lzo_init_v2=no
5468 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5469 conftest$ac_exeext conftest.$ac_ext
5470 LIBS=$ac_check_lib_save_LIBS
5472 { echo "$as_me:$LINENO: result: $ac_cv_lib_lzo___lzo_init_v2" >&5
5473 echo "${ECHO_T}$ac_cv_lib_lzo___lzo_init_v2" >&6; }
5474 if test $ac_cv_lib_lzo___lzo_init_v2 = yes; then
5477 { echo "$as_me:$LINENO: checking for __lzo_init2 in -llzo" >&5
5478 echo $ECHO_N "checking for __lzo_init2 in -llzo... $ECHO_C" >&6; }
5479 if test "${ac_cv_lib_lzo___lzo_init2+set}" = set; then
5480 echo $ECHO_N "(cached) $ECHO_C" >&6
5482 ac_check_lib_save_LIBS=$LIBS
5484 cat >conftest.$ac_ext <<_ACEOF
5487 cat confdefs.h >>conftest.$ac_ext
5488 cat >>conftest.$ac_ext <<_ACEOF
5489 /* end confdefs.h. */
5491 /* Override any GCC internal prototype to avoid an error.
5492 Use char because int might match the return type of a GCC
5493 builtin and then its argument prototype would still apply. */
5497 char __lzo_init2 ();
5501 return __lzo_init2 ();
5506 rm -f conftest.$ac_objext conftest$ac_exeext
5507 if { (ac_try="$ac_link"
5509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5510 *) ac_try_echo=$ac_try;;
5512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5513 (eval "$ac_link") 2>conftest.er1
5515 grep -v '^
*+' conftest.er1 >conftest.err
5517 cat conftest.err >&5
5518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5519 (exit $ac_status); } && {
5520 test -z "$ac_c_werror_flag" ||
5521 test ! -s conftest.err
5522 } && test -s conftest$ac_exeext &&
5523 $as_test_x conftest$ac_exeext; then
5524 ac_cv_lib_lzo___lzo_init2=yes
5526 echo "$as_me: failed program was:" >&5
5527 sed 's
/^
/|
/' conftest.$ac_ext >&5
5529 ac_cv_lib_lzo___lzo_init2=no
5532 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5533 conftest$ac_exeext conftest.$ac_ext
5534 LIBS=$ac_check_lib_save_LIBS
5536 { echo "$as_me:$LINENO: result: $ac_cv_lib_lzo___lzo_init2" >&5
5537 echo "${ECHO_T}$ac_cv_lib_lzo___lzo_init2" >&6; }
5538 if test $ac_cv_lib_lzo___lzo_init2 = yes; then
5541 { { echo "$as_me:$LINENO: error: LZO library version 1.02 or later is required" >&5
5542 echo "$as_me: error: LZO library version 1.02 or later is required" >&2;}
5543 { (exit 1); exit 1; }; }
5551 LIBS="$LIBS $LIBLZO"
5552 { echo "$as_me:$LINENO: checking for lzo1x_999_compress" >&5
5553 echo $ECHO_N "checking for lzo1x_999_compress... $ECHO_C" >&6; }
5554 if test "${ac_cv_func_lzo1x_999_compress+set}" = set; then
5555 echo $ECHO_N "(cached) $ECHO_C" >&6
5557 cat >conftest.$ac_ext <<_ACEOF
5560 cat confdefs.h >>conftest.$ac_ext
5561 cat >>conftest.$ac_ext <<_ACEOF
5562 /* end confdefs.h. */
5563 /* Define lzo1x_999_compress to an innocuous variant, in case <limits.h> declares lzo1x_999_compress.
5564 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5565 #define lzo1x_999_compress innocuous_lzo1x_999_compress
5567 /* System header to define __stub macros and hopefully few prototypes,
5568 which can conflict with char lzo1x_999_compress (); below.
5569 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5570 <limits.h> exists even on freestanding compilers. */
5573 # include <limits.h>
5575 # include <assert.h>
5578 #undef lzo1x_999_compress
5580 /* Override any GCC internal prototype to avoid an error.
5581 Use char because int might match the return type of a GCC
5582 builtin and then its argument prototype would still apply. */
5586 char lzo1x_999_compress ();
5587 /* The GNU C library defines this for functions which it implements
5588 to always fail with ENOSYS. Some functions are actually named
5589 something starting with __ and the normal name is an alias. */
5590 #if defined __stub_lzo1x_999_compress || defined __stub___lzo1x_999_compress
5597 return lzo1x_999_compress ();
5602 rm -f conftest.$ac_objext conftest$ac_exeext
5603 if { (ac_try="$ac_link"
5605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5606 *) ac_try_echo=$ac_try;;
5608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5609 (eval "$ac_link") 2>conftest.er1
5611 grep -v '^
*+' conftest.er1 >conftest.err
5613 cat conftest.err >&5
5614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5615 (exit $ac_status); } && {
5616 test -z "$ac_c_werror_flag" ||
5617 test ! -s conftest.err
5618 } && test -s conftest$ac_exeext &&
5619 $as_test_x conftest$ac_exeext; then
5620 ac_cv_func_lzo1x_999_compress=yes
5622 echo "$as_me: failed program was:" >&5
5623 sed 's
/^
/|
/' conftest.$ac_ext >&5
5625 ac_cv_func_lzo1x_999_compress=no
5628 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5629 conftest$ac_exeext conftest.$ac_ext
5631 { echo "$as_me:$LINENO: result: $ac_cv_func_lzo1x_999_compress" >&5
5632 echo "${ECHO_T}$ac_cv_func_lzo1x_999_compress" >&6; }
5633 if test $ac_cv_func_lzo1x_999_compress = yes; then
5636 { { echo "$as_me:$LINENO: error: LZO1X-999 must be enabled" >&5
5637 echo "$as_me: error: LZO1X-999 must be enabled" >&2;}
5638 { (exit 1); exit 1; }; }
5642 # LZO version 2 uses lzo/lzo1x.h, while LZO version 1 uses lzo1x.h.
5645 for ac_header in lzo/lzo1x.h lzo1x.h
5647 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5648 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5649 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5650 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5651 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5652 echo $ECHO_N "(cached) $ECHO_C" >&6
5654 ac_res=`eval echo '${'$as_ac_Header'}'`
5655 { echo "$as_me:$LINENO: result: $ac_res" >&5
5656 echo "${ECHO_T}$ac_res" >&6; }
5658 # Is the header compilable?
5659 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5660 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5661 cat >conftest.$ac_ext <<_ACEOF
5664 cat confdefs.h >>conftest.$ac_ext
5665 cat >>conftest.$ac_ext <<_ACEOF
5666 /* end confdefs.h. */
5667 $ac_includes_default
5668 #include <$ac_header>
5670 rm -f conftest.$ac_objext
5671 if { (ac_try="$ac_compile"
5673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5674 *) ac_try_echo=$ac_try;;
5676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5677 (eval "$ac_compile") 2>conftest.er1
5679 grep -v '^
*+' conftest.er1 >conftest.err
5681 cat conftest.err >&5
5682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5683 (exit $ac_status); } && {
5684 test -z "$ac_c_werror_flag" ||
5685 test ! -s conftest.err
5686 } && test -s conftest.$ac_objext; then
5687 ac_header_compiler=yes
5689 echo "$as_me: failed program was:" >&5
5690 sed 's
/^
/|
/' conftest.$ac_ext >&5
5692 ac_header_compiler=no
5695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5696 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5697 echo "${ECHO_T}$ac_header_compiler" >&6; }
5699 # Is the header present?
5700 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5701 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5702 cat >conftest.$ac_ext <<_ACEOF
5705 cat confdefs.h >>conftest.$ac_ext
5706 cat >>conftest.$ac_ext <<_ACEOF
5707 /* end confdefs.h. */
5708 #include <$ac_header>
5710 if { (ac_try="$ac_cpp conftest.$ac_ext"
5712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5713 *) ac_try_echo=$ac_try;;
5715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5716 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5718 grep -v '^
*+' conftest.er1 >conftest.err
5720 cat conftest.err >&5
5721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5722 (exit $ac_status); } >/dev/null && {
5723 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5724 test ! -s conftest.err
5726 ac_header_preproc=yes
5728 echo "$as_me: failed program was:" >&5
5729 sed 's
/^
/|
/' conftest.$ac_ext >&5
5731 ac_header_preproc=no
5734 rm -f conftest.err conftest.$ac_ext
5735 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5736 echo "${ECHO_T}$ac_header_preproc" >&6; }
5738 # So? What about this header?
5739 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5741 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5742 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5743 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result
" >&5
5744 echo "$as_me: WARNING
: $ac_header: proceeding with the compiler
's result" >&2;}
5745 ac_header_preproc=yes
5748 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5749 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5750 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5751 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5752 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5753 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5754 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5755 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5756 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result
" >&5
5757 echo "$as_me: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&2;}
5758 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5759 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5761 ## ------------------------------- ##
5762 ## Report this to bug-grub@gnu.org ##
5763 ## ------------------------------- ##
5765 ) | sed "s/^/$as_me: WARNING: /" >&2
5768 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5769 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5770 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5771 echo $ECHO_N "(cached) $ECHO_C" >&6
5773 eval "$as_ac_Header=\$ac_header_preproc"
5775 ac_res=`eval echo '${'$as_ac_Header'}'`
5776 { echo "$as_me:$LINENO: result: $ac_res" >&5
5777 echo "${ECHO_T}$ac_res" >&6; }
5780 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5781 cat >>confdefs.h <<_ACEOF
5782 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5791 cat >>confdefs.h <<\_ACEOF
5792 #define ENABLE_LZMA 1
5799 # Check for functions.
5803 for ac_func in posix_memalign memalign asprintf
5805 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5806 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5807 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5808 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5809 echo $ECHO_N "(cached) $ECHO_C" >&6
5811 cat >conftest.$ac_ext <<_ACEOF
5814 cat confdefs.h >>conftest.$ac_ext
5815 cat >>conftest.$ac_ext <<_ACEOF
5816 /* end confdefs.h. */
5817 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5818 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5819 #define $ac_func innocuous_$ac_func
5821 /* System header to define __stub macros and hopefully few prototypes,
5822 which can conflict with char $ac_func (); below.
5823 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5824 <limits.h> exists even on freestanding compilers. */
5827 # include <limits.h>
5829 # include <assert.h>
5834 /* Override any GCC internal prototype to avoid an error.
5835 Use char because int might match the return type of a GCC
5836 builtin and then its argument prototype would still apply. */
5841 /* The GNU C library defines this for functions which it implements
5842 to always fail with ENOSYS. Some functions are actually named
5843 something starting with __ and the normal name is an alias. */
5844 #if defined __stub_$ac_func || defined __stub___$ac_func
5856 rm -f conftest.$ac_objext conftest$ac_exeext
5857 if { (ac_try="$ac_link"
5859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5860 *) ac_try_echo=$ac_try;;
5862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5863 (eval "$ac_link") 2>conftest.er1
5865 grep -v '^
*+' conftest.er1 >conftest.err
5867 cat conftest.err >&5
5868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5869 (exit $ac_status); } && {
5870 test -z "$ac_c_werror_flag" ||
5871 test ! -s conftest.err
5872 } && test -s conftest$ac_exeext &&
5873 $as_test_x conftest$ac_exeext; then
5874 eval "$as_ac_var=yes"
5876 echo "$as_me: failed program was:" >&5
5877 sed 's
/^
/|
/' conftest.$ac_ext >&5
5879 eval "$as_ac_var=no"
5882 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5883 conftest$ac_exeext conftest.$ac_ext
5885 ac_res=`eval echo '${'$as_ac_var'}'`
5886 { echo "$as_me:$LINENO: result: $ac_res" >&5
5887 echo "${ECHO_T}$ac_res" >&6; }
5888 if test `eval echo '${'$as_ac_var'}'` = yes; then
5889 cat >>confdefs.h <<_ACEOF
5890 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5898 # Check for target programs.
5902 # Use linker script if present, otherwise use builtin -N script.
5903 { echo "$as_me:$LINENO: checking for option to link raw image" >&5
5904 echo $ECHO_N "checking for option to link raw image... $ECHO_C" >&6; }
5905 if test -f "${srcdir}/conf/${target_cpu}-${platform}-${target_os}-img-ld.sc"; then
5906 TARGET_IMG_LDSCRIPT='$
(top_srcdir
)'"/conf/${target_cpu}-${platform}-${target_os}-img-ld.sc"
5907 TARGET_IMG_LDFLAGS="-Wl,-T${TARGET_IMG_LDSCRIPT}"
5908 TARGET_IMG_LDFLAGS_AC="-Wl,-T${srcdir}/conf/${target_cpu}-${platform}-${target_os}-img-ld.sc"
5910 TARGET_IMG_LDSCRIPT=
5911 TARGET_IMG_LDFLAGS='-Wl,-N'
5912 TARGET_IMG_LDFLAGS_AC='-Wl,-N'
5916 { echo "$as_me:$LINENO: result: $TARGET_IMG_LDFLAGS_AC" >&5
5917 echo "${ECHO_T}$TARGET_IMG_LDFLAGS_AC" >&6; }
5919 # For platforms where ELF is not the default link format.
5920 { echo "$as_me:$LINENO: checking for command to convert module to ELF format" >&5
5921 echo $ECHO_N "checking for command to convert module to ELF format... $ECHO_C" >&6; }
5922 case "${host_os}:${target_os}" in
5923 cygwin:cygwin) TARGET_OBJ2ELF='grub-pe2elf
' ;;
5927 { echo "$as_me:$LINENO: result: $TARGET_OBJ2ELF" >&5
5928 echo "${ECHO_T}$TARGET_OBJ2ELF" >&6; }
5930 # For cross-compiling.
5931 if test "x$build" != "x$host"; then
5932 # XXX this depends on the implementation of autoconf!
5933 tmp_ac_tool_prefix="$ac_tool_prefix"
5934 ac_tool_prefix=$target_alias-
5936 if test -n "$ac_tool_prefix"; then
5937 for ac_prog in gcc egcs cc
5939 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5940 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5941 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5942 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5943 if test "${ac_cv_prog_TARGET_CC+set}" = set; then
5944 echo $ECHO_N "(cached) $ECHO_C" >&6
5946 if test -n "$TARGET_CC"; then
5947 ac_cv_prog_TARGET_CC="$TARGET_CC" # Let the user override the test.
5949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5953 test -z "$as_dir" && as_dir=.
5954 for ac_exec_ext in '' $ac_executable_extensions; do
5955 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5956 ac_cv_prog_TARGET_CC="$ac_tool_prefix$ac_prog"
5957 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5966 TARGET_CC=$ac_cv_prog_TARGET_CC
5967 if test -n "$TARGET_CC"; then
5968 { echo "$as_me:$LINENO: result: $TARGET_CC" >&5
5969 echo "${ECHO_T}$TARGET_CC" >&6; }
5971 { echo "$as_me:$LINENO: result: no" >&5
5972 echo "${ECHO_T}no" >&6; }
5976 test -n "$TARGET_CC" && break
5979 if test -z "$TARGET_CC"; then
5980 ac_ct_TARGET_CC=$TARGET_CC
5981 for ac_prog in gcc egcs cc
5983 # Extract the first word of "$ac_prog", so it can be a program name with args.
5984 set dummy $ac_prog; ac_word=$2
5985 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5986 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5987 if test "${ac_cv_prog_ac_ct_TARGET_CC+set}" = set; then
5988 echo $ECHO_N "(cached) $ECHO_C" >&6
5990 if test -n "$ac_ct_TARGET_CC"; then
5991 ac_cv_prog_ac_ct_TARGET_CC="$ac_ct_TARGET_CC" # Let the user override the test.
5993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5997 test -z "$as_dir" && as_dir=.
5998 for ac_exec_ext in '' $ac_executable_extensions; do
5999 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6000 ac_cv_prog_ac_ct_TARGET_CC="$ac_prog"
6001 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6010 ac_ct_TARGET_CC=$ac_cv_prog_ac_ct_TARGET_CC
6011 if test -n "$ac_ct_TARGET_CC"; then
6012 { echo "$as_me:$LINENO: result: $ac_ct_TARGET_CC" >&5
6013 echo "${ECHO_T}$ac_ct_TARGET_CC" >&6; }
6015 { echo "$as_me:$LINENO: result: no" >&5
6016 echo "${ECHO_T}no" >&6; }
6020 test -n "$ac_ct_TARGET_CC" && break
6023 if test "x$ac_ct_TARGET_CC" = x; then
6024 TARGET_CC="{ { echo "$as_me:$LINENO: error: none of gcc, egcs and cc is found. set TARGET_CC manually." >&5
6025 echo "$as_me: error: none of gcc, egcs and cc is found. set TARGET_CC manually." >&2;}
6026 { (exit 1); exit 1; }; }"
6028 case $cross_compiling:$ac_tool_warned in
6030 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6031 whose name does not start with the host triplet. If you think this
6032 configuration is useful to you, please write to autoconf@gnu.org." >&5
6033 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6034 whose name does not start with the host triplet. If you think this
6035 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6036 ac_tool_warned=yes ;;
6038 TARGET_CC=$ac_ct_TARGET_CC
6042 if test -n "$ac_tool_prefix"; then
6043 # Extract the first word of "${ac_tool_prefix}objcopy", so it can be a program name with args.
6044 set dummy ${ac_tool_prefix}objcopy; ac_word=$2
6045 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6046 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6047 if test "${ac_cv_prog_OBJCOPY+set}" = set; then
6048 echo $ECHO_N "(cached) $ECHO_C" >&6
6050 if test -n "$OBJCOPY"; then
6051 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
6053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6057 test -z "$as_dir" && as_dir=.
6058 for ac_exec_ext in '' $ac_executable_extensions; do
6059 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6060 ac_cv_prog_OBJCOPY="${ac_tool_prefix}objcopy"
6061 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6070 OBJCOPY=$ac_cv_prog_OBJCOPY
6071 if test -n "$OBJCOPY"; then
6072 { echo "$as_me:$LINENO: result: $OBJCOPY" >&5
6073 echo "${ECHO_T}$OBJCOPY" >&6; }
6075 { echo "$as_me:$LINENO: result: no" >&5
6076 echo "${ECHO_T}no" >&6; }
6081 if test -z "$ac_cv_prog_OBJCOPY"; then
6082 ac_ct_OBJCOPY=$OBJCOPY
6083 # Extract the first word of "objcopy", so it can be a program name with args.
6084 set dummy objcopy; ac_word=$2
6085 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6086 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6087 if test "${ac_cv_prog_ac_ct_OBJCOPY+set}" = set; then
6088 echo $ECHO_N "(cached) $ECHO_C" >&6
6090 if test -n "$ac_ct_OBJCOPY"; then
6091 ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test.
6093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6097 test -z "$as_dir" && as_dir=.
6098 for ac_exec_ext in '' $ac_executable_extensions; do
6099 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6100 ac_cv_prog_ac_ct_OBJCOPY="objcopy"
6101 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6110 ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY
6111 if test -n "$ac_ct_OBJCOPY"; then
6112 { echo "$as_me:$LINENO: result: $ac_ct_OBJCOPY" >&5
6113 echo "${ECHO_T}$ac_ct_OBJCOPY" >&6; }
6115 { echo "$as_me:$LINENO: result: no" >&5
6116 echo "${ECHO_T}no" >&6; }
6119 if test "x$ac_ct_OBJCOPY" = x; then
6122 case $cross_compiling:$ac_tool_warned in
6124 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6125 whose name does not start with the host triplet. If you think this
6126 configuration is useful to you, please write to autoconf@gnu.org." >&5
6127 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6128 whose name does not start with the host triplet. If you think this
6129 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6130 ac_tool_warned=yes ;;
6132 OBJCOPY=$ac_ct_OBJCOPY
6135 OBJCOPY="$ac_cv_prog_OBJCOPY"
6138 if test -n "$ac_tool_prefix"; then
6139 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6140 set dummy ${ac_tool_prefix}strip; ac_word=$2
6141 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6142 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6143 if test "${ac_cv_prog_STRIP+set}" = set; then
6144 echo $ECHO_N "(cached) $ECHO_C" >&6
6146 if test -n "$STRIP"; then
6147 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6153 test -z "$as_dir" && as_dir=.
6154 for ac_exec_ext in '' $ac_executable_extensions; do
6155 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6156 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6157 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6166 STRIP=$ac_cv_prog_STRIP
6167 if test -n "$STRIP"; then
6168 { echo "$as_me:$LINENO: result: $STRIP" >&5
6169 echo "${ECHO_T}$STRIP" >&6; }
6171 { echo "$as_me:$LINENO: result: no" >&5
6172 echo "${ECHO_T}no" >&6; }
6177 if test -z "$ac_cv_prog_STRIP"; then
6179 # Extract the first word of "strip", so it can be a program name with args.
6180 set dummy strip; ac_word=$2
6181 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6182 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6183 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6184 echo $ECHO_N "(cached) $ECHO_C" >&6
6186 if test -n "$ac_ct_STRIP"; then
6187 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6193 test -z "$as_dir" && as_dir=.
6194 for ac_exec_ext in '' $ac_executable_extensions; do
6195 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6196 ac_cv_prog_ac_ct_STRIP="strip"
6197 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6206 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6207 if test -n "$ac_ct_STRIP"; then
6208 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6209 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6211 { echo "$as_me:$LINENO: result: no" >&5
6212 echo "${ECHO_T}no" >&6; }
6215 if test "x$ac_ct_STRIP" = x; then
6218 case $cross_compiling:$ac_tool_warned in
6220 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6221 whose name does not start with the host triplet. If you think this
6222 configuration is useful to you, please write to autoconf@gnu.org." >&5
6223 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6224 whose name does not start with the host triplet. If you think this
6225 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6226 ac_tool_warned=yes ;;
6231 STRIP="$ac_cv_prog_STRIP"
6234 if test -n "$ac_tool_prefix"; then
6235 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
6236 set dummy ${ac_tool_prefix}nm; ac_word=$2
6237 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6238 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6239 if test "${ac_cv_prog_NM+set}" = set; then
6240 echo $ECHO_N "(cached) $ECHO_C" >&6
6242 if test -n "$NM"; then
6243 ac_cv_prog_NM="$NM" # Let the user override the test.
6245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6249 test -z "$as_dir" && as_dir=.
6250 for ac_exec_ext in '' $ac_executable_extensions; do
6251 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6252 ac_cv_prog_NM="${ac_tool_prefix}nm"
6253 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6263 if test -n "$NM"; then
6264 { echo "$as_me:$LINENO: result: $NM" >&5
6265 echo "${ECHO_T}$NM" >&6; }
6267 { echo "$as_me:$LINENO: result: no" >&5
6268 echo "${ECHO_T}no" >&6; }
6273 if test -z "$ac_cv_prog_NM"; then
6275 # Extract the first word of "nm", so it can be a program name with args.
6276 set dummy nm; ac_word=$2
6277 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6278 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6279 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
6280 echo $ECHO_N "(cached) $ECHO_C" >&6
6282 if test -n "$ac_ct_NM"; then
6283 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
6285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6289 test -z "$as_dir" && as_dir=.
6290 for ac_exec_ext in '' $ac_executable_extensions; do
6291 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6292 ac_cv_prog_ac_ct_NM="nm"
6293 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6302 ac_ct_NM=$ac_cv_prog_ac_ct_NM
6303 if test -n "$ac_ct_NM"; then
6304 { echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
6305 echo "${ECHO_T}$ac_ct_NM" >&6; }
6307 { echo "$as_me:$LINENO: result: no" >&5
6308 echo "${ECHO_T}no" >&6; }
6311 if test "x$ac_ct_NM" = x; then
6314 case $cross_compiling:$ac_tool_warned in
6316 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6317 whose name does not start with the host triplet. If you think this
6318 configuration is useful to you, please write to autoconf@gnu.org." >&5
6319 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6320 whose name does not start with the host triplet. If you think this
6321 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6322 ac_tool_warned=yes ;;
6331 ac_tool_prefix="$tmp_ac_tool_prefix"
6333 if test "x$TARGET_CC" = x; then
6336 if test -n "$ac_tool_prefix"; then
6337 # Extract the first word of "${ac_tool_prefix}objcopy", so it can be a program name with args.
6338 set dummy ${ac_tool_prefix}objcopy; ac_word=$2
6339 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6340 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6341 if test "${ac_cv_prog_OBJCOPY+set}" = set; then
6342 echo $ECHO_N "(cached) $ECHO_C" >&6
6344 if test -n "$OBJCOPY"; then
6345 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
6347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6351 test -z "$as_dir" && as_dir=.
6352 for ac_exec_ext in '' $ac_executable_extensions; do
6353 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6354 ac_cv_prog_OBJCOPY="${ac_tool_prefix}objcopy"
6355 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6364 OBJCOPY=$ac_cv_prog_OBJCOPY
6365 if test -n "$OBJCOPY"; then
6366 { echo "$as_me:$LINENO: result: $OBJCOPY" >&5
6367 echo "${ECHO_T}$OBJCOPY" >&6; }
6369 { echo "$as_me:$LINENO: result: no" >&5
6370 echo "${ECHO_T}no" >&6; }
6375 if test -z "$ac_cv_prog_OBJCOPY"; then
6376 ac_ct_OBJCOPY=$OBJCOPY
6377 # Extract the first word of "objcopy", so it can be a program name with args.
6378 set dummy objcopy; ac_word=$2
6379 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6380 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6381 if test "${ac_cv_prog_ac_ct_OBJCOPY+set}" = set; then
6382 echo $ECHO_N "(cached) $ECHO_C" >&6
6384 if test -n "$ac_ct_OBJCOPY"; then
6385 ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test.
6387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6391 test -z "$as_dir" && as_dir=.
6392 for ac_exec_ext in '' $ac_executable_extensions; do
6393 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6394 ac_cv_prog_ac_ct_OBJCOPY="objcopy"
6395 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6404 ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY
6405 if test -n "$ac_ct_OBJCOPY"; then
6406 { echo "$as_me:$LINENO: result: $ac_ct_OBJCOPY" >&5
6407 echo "${ECHO_T}$ac_ct_OBJCOPY" >&6; }
6409 { echo "$as_me:$LINENO: result: no" >&5
6410 echo "${ECHO_T}no" >&6; }
6413 if test "x$ac_ct_OBJCOPY" = x; then
6416 case $cross_compiling:$ac_tool_warned in
6418 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6419 whose name does not start with the host triplet. If you think this
6420 configuration is useful to you, please write to autoconf@gnu.org." >&5
6421 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6422 whose name does not start with the host triplet. If you think this
6423 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6424 ac_tool_warned=yes ;;
6426 OBJCOPY=$ac_ct_OBJCOPY
6429 OBJCOPY="$ac_cv_prog_OBJCOPY"
6432 if test -n "$ac_tool_prefix"; then
6433 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6434 set dummy ${ac_tool_prefix}strip; ac_word=$2
6435 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6436 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6437 if test "${ac_cv_prog_STRIP+set}" = set; then
6438 echo $ECHO_N "(cached) $ECHO_C" >&6
6440 if test -n "$STRIP"; then
6441 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6447 test -z "$as_dir" && as_dir=.
6448 for ac_exec_ext in '' $ac_executable_extensions; do
6449 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6450 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6451 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6460 STRIP=$ac_cv_prog_STRIP
6461 if test -n "$STRIP"; then
6462 { echo "$as_me:$LINENO: result: $STRIP" >&5
6463 echo "${ECHO_T}$STRIP" >&6; }
6465 { echo "$as_me:$LINENO: result: no" >&5
6466 echo "${ECHO_T}no" >&6; }
6471 if test -z "$ac_cv_prog_STRIP"; then
6473 # Extract the first word of "strip", so it can be a program name with args.
6474 set dummy strip; ac_word=$2
6475 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6476 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6477 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6478 echo $ECHO_N "(cached) $ECHO_C" >&6
6480 if test -n "$ac_ct_STRIP"; then
6481 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6487 test -z "$as_dir" && as_dir=.
6488 for ac_exec_ext in '' $ac_executable_extensions; do
6489 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6490 ac_cv_prog_ac_ct_STRIP="strip"
6491 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6500 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6501 if test -n "$ac_ct_STRIP"; then
6502 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6503 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6505 { echo "$as_me:$LINENO: result: no" >&5
6506 echo "${ECHO_T}no" >&6; }
6509 if test "x$ac_ct_STRIP" = x; then
6512 case $cross_compiling:$ac_tool_warned in
6514 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6515 whose name does not start with the host triplet. If you think this
6516 configuration is useful to you, please write to autoconf@gnu.org." >&5
6517 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6518 whose name does not start with the host triplet. If you think this
6519 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6520 ac_tool_warned=yes ;;
6525 STRIP="$ac_cv_prog_STRIP"
6528 if test -n "$ac_tool_prefix"; then
6529 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
6530 set dummy ${ac_tool_prefix}nm; ac_word=$2
6531 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6532 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6533 if test "${ac_cv_prog_NM+set}" = set; then
6534 echo $ECHO_N "(cached) $ECHO_C" >&6
6536 if test -n "$NM"; then
6537 ac_cv_prog_NM="$NM" # Let the user override the test.
6539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6543 test -z "$as_dir" && as_dir=.
6544 for ac_exec_ext in '' $ac_executable_extensions; do
6545 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6546 ac_cv_prog_NM="${ac_tool_prefix}nm"
6547 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6557 if test -n "$NM"; then
6558 { echo "$as_me:$LINENO: result: $NM" >&5
6559 echo "${ECHO_T}$NM" >&6; }
6561 { echo "$as_me:$LINENO: result: no" >&5
6562 echo "${ECHO_T}no" >&6; }
6567 if test -z "$ac_cv_prog_NM"; then
6569 # Extract the first word of "nm", so it can be a program name with args.
6570 set dummy nm; ac_word=$2
6571 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6572 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6573 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
6574 echo $ECHO_N "(cached) $ECHO_C" >&6
6576 if test -n "$ac_ct_NM"; then
6577 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
6579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6583 test -z "$as_dir" && as_dir=.
6584 for ac_exec_ext in '' $ac_executable_extensions; do
6585 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6586 ac_cv_prog_ac_ct_NM="nm"
6587 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6596 ac_ct_NM=$ac_cv_prog_ac_ct_NM
6597 if test -n "$ac_ct_NM"; then
6598 { echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
6599 echo "${ECHO_T}$ac_ct_NM" >&6; }
6601 { echo "$as_me:$LINENO: result: no" >&5
6602 echo "${ECHO_T}no" >&6; }
6605 if test "x$ac_ct_NM" = x; then
6608 case $cross_compiling:$ac_tool_warned in
6610 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6611 whose name does not start with the host triplet. If you think this
6612 configuration is useful to you, please write to autoconf@gnu.org." >&5
6613 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6614 whose name does not start with the host triplet. If you think this
6615 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6616 ac_tool_warned=yes ;;
6628 # Test the C compiler for the target environment.
6630 tmp_CFLAGS="$CFLAGS"
6631 tmp_LDFLAGS="$LDFLAGS"
6632 tmp_CPPFLAGS="$CPPFLAGS"
6635 CFLAGS="$TARGET_CFLAGS"
6636 CPPFLAGS="$TARGET_CPPFLAGS"
6637 LDFLAGS="$TARGET_LDFLAGS"
6640 if test "x$TARGET_CFLAGS" = x; then
6642 TARGET_CFLAGS="-Wall -W -Wshadow -Wpointer-arith -Wmissing-prototypes \
6643 -Wundef -Wstrict-prototypes -g"
6645 # optimization flags.
6646 { echo "$as_me:$LINENO: checking whether optimization for size works" >&5
6647 echo $ECHO_N "checking whether optimization for size works... $ECHO_C" >&6; }
6648 if test "${grub_cv_cc_Os+set}" = set; then
6649 echo $ECHO_N "(cached) $ECHO_C" >&6
6653 cat >conftest.$ac_ext <<_ACEOF
6656 cat confdefs.h >>conftest.$ac_ext
6657 cat >>conftest.$ac_ext <<_ACEOF
6658 /* end confdefs.h. */
6668 rm -f conftest.$ac_objext
6669 if { (ac_try="$ac_compile"
6671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6672 *) ac_try_echo=$ac_try;;
6674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6675 (eval "$ac_compile") 2>conftest.er1
6677 grep -v '^
*+' conftest.er1 >conftest.err
6679 cat conftest.err >&5
6680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6681 (exit $ac_status); } && {
6682 test -z "$ac_c_werror_flag" ||
6683 test ! -s conftest.err
6684 } && test -s conftest.$ac_objext; then
6687 echo "$as_me: failed program was:" >&5
6688 sed 's
/^
/|
/' conftest.$ac_ext >&5
6693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6696 { echo "$as_me:$LINENO: result: $grub_cv_cc_Os" >&5
6697 echo "${ECHO_T}$grub_cv_cc_Os" >&6; }
6698 if test "x$grub_cv_cc_Os" = xyes; then
6699 TARGET_CFLAGS="$TARGET_CFLAGS -Os"
6701 TARGET_CFLAGS="$TARGET_CFLAGS -O2 -fno-strength-reduce -fno-unroll-loops"
6704 # Force no alignment to save space on i386.
6705 if test "x$target_cpu" = xi386; then
6706 { echo "$as_me:$LINENO: checking whether -falign-loops works" >&5
6707 echo $ECHO_N "checking whether -falign-loops works... $ECHO_C" >&6; }
6708 if test "${grub_cv_cc_falign_loop+set}" = set; then
6709 echo $ECHO_N "(cached) $ECHO_C" >&6
6712 CFLAGS="-falign-loops=1"
6713 cat >conftest.$ac_ext <<_ACEOF
6716 cat confdefs.h >>conftest.$ac_ext
6717 cat >>conftest.$ac_ext <<_ACEOF
6718 /* end confdefs.h. */
6728 rm -f conftest.$ac_objext
6729 if { (ac_try="$ac_compile"
6731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6732 *) ac_try_echo=$ac_try;;
6734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6735 (eval "$ac_compile") 2>conftest.er1
6737 grep -v '^
*+' conftest.er1 >conftest.err
6739 cat conftest.err >&5
6740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6741 (exit $ac_status); } && {
6742 test -z "$ac_c_werror_flag" ||
6743 test ! -s conftest.err
6744 } && test -s conftest.$ac_objext; then
6745 grub_cv_cc_falign_loop=yes
6747 echo "$as_me: failed program was:" >&5
6748 sed 's
/^
/|
/' conftest.$ac_ext >&5
6750 grub_cv_cc_falign_loop=no
6753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6756 { echo "$as_me:$LINENO: result: $grub_cv_cc_falign_loop" >&5
6757 echo "${ECHO_T}$grub_cv_cc_falign_loop" >&6; }
6759 if test "x$grub_cv_cc_falign_loop" = xyes; then
6760 TARGET_CFLAGS="$TARGET_CFLAGS -falign-jumps=1 -falign-loops=1 -falign-functions=1"
6762 TARGET_CFLAGS="$TARGET_CFLAGS -malign-jumps=1 -malign-loops=1 -malign-functions=1"
6767 if test "x$target_m32" = x1; then
6768 # Force 32-bit mode.
6769 TARGET_CFLAGS="$TARGET_CFLAGS -m32"
6770 TARGET_LDFLAGS="$TARGET_LDFLAGS -m32"
6773 if test "x$target_m64" = x1; then
6774 # Force 64-bit mode.
6775 TARGET_CFLAGS="$TARGET_CFLAGS -m64"
6776 TARGET_LDFLAGS="$TARGET_LDFLAGS -m64"
6780 # Compiler features.
6783 # Need __enable_execute_stack() for nested function trampolines?
6785 { echo "$as_me:$LINENO: checking whether \`$CC' generates calls to \
`__enable_execute_stack()'" >&5
6786 echo $ECHO_N "checking whether \`$CC' generates calls to \`__enable_execute_stack()'...
$ECHO_C" >&6; }
6787 cat >conftest.$ac_ext <<_ACEOF
6789 void f (int (*p) (void));
6792 int nestedfunc (void) { return i; }
6797 if { ac_try='${CC-cc} ${CFLAGS} -S conftest.c'
6798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6801 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6802 (exit $ac_status); }; } && test -s conftest.s; then
6805 { { echo "$as_me:$LINENO: error
: ${CC-cc} failed to produce assembly code
" >&5
6806 echo "$as_me: error
: ${CC-cc} failed to produce assembly code
" >&2;}
6807 { (exit 1); exit 1; }; }
6809 if grep __enable_execute_stack conftest.s >/dev/null 2>&1; then
6811 cat >>confdefs.h <<\_ACEOF
6812 #define NEED_ENABLE_EXECUTE_STACK 1
6815 { echo "$as_me:$LINENO: result
: yes" >&5
6816 echo "${ECHO_T}yes" >&6; }
6818 { echo "$as_me:$LINENO: result
: no
" >&5
6819 echo "${ECHO_T}no
" >&6; }
6824 # Smashing stack protector.
6826 # Smashing stack protector.
6828 { echo "$as_me:$LINENO: checking whether \
`$CC' accepts \`-fstack-protector'" >&5
6829 echo $ECHO_N "checking whether \`$CC' accepts \
`-fstack-protector'... $ECHO_C" >&6; }
6830 # Is this a reliable test case?
6831 cat >conftest.$ac_ext <<_ACEOF
6832 void foo (void) { volatile char a[8]; a[3]; }
6834 # `$CC -c -o ...
' might not be portable. But, oh, well... Is calling
6835 # `ac_compile' like this correct
, after all?
6836 if eval "$ac_compile -S -fstack-protector -o conftest.s" 2> /dev
/null
; then
6837 { echo "$as_me:$LINENO: result: yes" >&5
6838 echo "${ECHO_T}yes" >&6; }
6839 # Should we clear up other files as well, having called `AC_LANG_CONFTEST'?
6843 { echo "$as_me:$LINENO: result: no" >&5
6844 echo "${ECHO_T}no" >&6; }
6847 # Need that, because some distributions ship compilers that include
6848 # `-fstack-protector' in the default specs.
6849 if test "x$ssp_possible" = xyes
; then
6850 TARGET_CFLAGS
="$TARGET_CFLAGS -fno-stack-protector"
6853 # Smashing stack arg probe.
6855 { echo "$as_me:$LINENO: checking whether \`$CC' accepts \`-mstack-arg-probe'" >&5
6856 echo $ECHO_N "checking whether \`$CC' accepts \`-mstack-arg-probe'... $ECHO_C" >&6; }
6857 cat >conftest.
$ac_ext <<_ACEOF
6858 void foo (void) { volatile char a[8]; a[3]; }
6860 if eval "$ac_compile -S -mstack-arg-probe -o conftest.s" 2> /dev
/null
; then
6861 { echo "$as_me:$LINENO: result: yes" >&5
6862 echo "${ECHO_T}yes" >&6; }
6863 # Should we clear up other files as well, having called `AC_LANG_CONFTEST'?
6867 { echo "$as_me:$LINENO: result: no" >&5
6868 echo "${ECHO_T}no" >&6; }
6871 # Cygwin's GCC uses alloca() to probe the stackframe on static
6872 # stack allocations above some threshold.
6873 if test x
"$sap_possible" = xyes
; then
6874 TARGET_CFLAGS
="$TARGET_CFLAGS -mno-stack-arg-probe"
6882 # Set them to their new values for the tests below.
6884 CFLAGS
="$TARGET_CFLAGS"
6885 CPPFLAGS
="$TARGET_CPPFLAGS"
6886 LDFLAGS
="$TARGET_LDFLAGS"
6888 # Defined in aclocal.m4.
6889 { echo "$as_me:$LINENO: checking whether target compiler is working" >&5
6890 echo $ECHO_N "checking whether target compiler is working... $ECHO_C" >&6; }
6891 if test "${grub_cv_prog_target_cc+set}" = set; then
6892 echo $ECHO_N "(cached) $ECHO_C" >&6
6894 cat >conftest.
$ac_ext <<_ACEOF
6897 cat confdefs.h
>>conftest.
$ac_ext
6898 cat >>conftest.
$ac_ext <<_ACEOF
6899 /* end confdefs.h. */
6909 rm -f conftest.
$ac_objext conftest
$ac_exeext
6910 if { (ac_try
="$ac_link"
6912 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6913 *) ac_try_echo=$ac_try;;
6915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6916 (eval "$ac_link") 2>conftest.er1
6918 grep -v '^ *+' conftest.er1 >conftest.err
6920 cat conftest.err >&5
6921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6922 (exit $ac_status); } && {
6923 test -z "$ac_c_werror_flag" ||
6924 test ! -s conftest.err
6925 } && test -s conftest$ac_exeext &&
6926 $as_test_x conftest$ac_exeext; then
6927 grub_cv_prog_target_cc=yes
6929 echo "$as_me: failed program was:" >&5
6930 sed 's/^/| /' conftest.$ac_ext >&5
6932 grub_cv_prog_target_cc=no
6935 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6936 conftest$ac_exeext conftest.$ac_ext
6940 { echo "$as_me:$LINENO: result: $grub_cv_prog_target_cc" >&5
6941 echo "${ECHO_T}$grub_cv_prog_target_cc" >&6; }
6943 if test "x$grub_cv_prog_target_cc" = xno; then
6944 { { echo "$as_me:$LINENO: error: cannot compile for the target" >&5
6945 echo "$as_me: error: cannot compile for the target" >&2;}
6946 { (exit 1); exit 1; }; }
6949 { echo "$as_me:$LINENO: checking whether ${OBJCOPY} works for absolute addresses" >&5
6950 echo $ECHO_N "checking whether ${OBJCOPY} works for absolute addresses... $ECHO_C" >&6; }
6951 if test "${grub_cv_prog_objcopy_absolute+set}" = set; then
6952 echo $ECHO_N "(cached) $ECHO_C" >&6
6954 cat > conftest.c <<\EOF
6958 *((int *) 0x1000) = 2;
6962 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6963 (eval $ac_compile) 2>&5
6965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6966 (exit $ac_status); } && test -s conftest.o; then :
6968 { { echo "$as_me:$LINENO: error: ${CC-cc} cannot compile C source code" >&5
6969 echo "$as_me: error: ${CC-cc} cannot compile C source code" >&2;}
6970 { (exit 1); exit 1; }; }
6972 grub_cv_prog_objcopy_absolute=yes
6973 for link_addr in 2000 8000 7C00; do
6974 if { ac_try='${CC-cc} ${CFLAGS} -nostdlib ${TARGET_IMG_LDFLAGS_AC} -Wl,-Ttext -Wl,$link_addr conftest.o -o conftest.exec'
6975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6979 (exit $ac_status); }; }; then :
6981 { { echo "$as_me:$LINENO: error: ${CC-cc} cannot link at address $link_addr" >&5
6982 echo "$as_me: error: ${CC-cc} cannot link at address $link_addr" >&2;}
6983 { (exit 1); exit 1; }; }
6985 if { ac_try='${OBJCOPY-objcopy} --only-section=.text -O binary conftest.exec conftest'
6986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6990 (exit $ac_status); }; }; then :
6992 { { echo "$as_me:$LINENO: error: ${OBJCOPY-objcopy} cannot create binary files" >&5
6993 echo "$as_me: error: ${OBJCOPY-objcopy} cannot create binary files" >&2;}
6994 { (exit 1); exit 1; }; }
6996 if test ! -f conftest.old || { ac_try='cmp -s conftest.old conftest'
6997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7001 (exit $ac_status); }; }; then
7002 mv -f conftest conftest.old
7004 grub_cv_prog_objcopy_absolute=no
7011 { echo "$as_me:$LINENO: result: $grub_cv_prog_objcopy_absolute" >&5
7012 echo "${ECHO_T}$grub_cv_prog_objcopy_absolute" >&6; }
7014 if test "x$grub_cv_prog_objcopy_absolute" = xno; then
7015 { { echo "$as_me:$LINENO: error: GRUB requires a working absolute objcopy; upgrade your binutils" >&5
7016 echo "$as_me: error: GRUB requires a working absolute objcopy; upgrade your binutils" >&2;}
7017 { (exit 1); exit 1; }; }
7020 { echo "$as_me:$LINENO: checking whether linker accepts --build-id=none" >&5
7021 echo $ECHO_N "checking whether linker accepts --build-id=none... $ECHO_C" >&6; }
7022 if test "${grub_cv_prog_ld_build_id_none+set}" = set; then
7023 echo $ECHO_N "(cached) $ECHO_C" >&6
7025 save_LDFLAGS="$LDFLAGS"
7026 LDFLAGS="$LDFLAGS -Wl,--build-id=none"
7027 cat >conftest.$ac_ext <<_ACEOF
7030 cat confdefs.h >>conftest.$ac_ext
7031 cat >>conftest.$ac_ext <<_ACEOF
7032 /* end confdefs.h. */
7042 rm -f conftest.$ac_objext conftest$ac_exeext
7043 if { (ac_try="$ac_link"
7045 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7046 *) ac_try_echo
=$ac_try;;
7048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7049 (eval "$ac_link") 2>conftest.er1
7051 grep -v '^ *+' conftest.er1
>conftest.err
7053 cat conftest.err
>&5
7054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7055 (exit $ac_status); } && {
7056 test -z "$ac_c_werror_flag" ||
7057 test ! -s conftest.err
7058 } && test -s conftest
$ac_exeext &&
7059 $as_test_x conftest
$ac_exeext; then
7060 grub_cv_prog_ld_build_id_none
=yes
7062 echo "$as_me: failed program was:" >&5
7063 sed 's/^/| /' conftest.
$ac_ext >&5
7065 grub_cv_prog_ld_build_id_none
=no
7068 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7069 conftest
$ac_exeext conftest.
$ac_ext
7070 LDFLAGS
="$save_LDFLAGS"
7074 { echo "$as_me:$LINENO: result: $grub_cv_prog_ld_build_id_none" >&5
7075 echo "${ECHO_T}$grub_cv_prog_ld_build_id_none" >&6; }
7077 if test "x$grub_cv_prog_ld_build_id_none" = xyes
; then
7078 MODULE_LDFLAGS
="$MODULE_LDFLAGS -Wl,--build-id=none"
7082 { echo "$as_me:$LINENO: checking if C symbols get an underscore after compilation" >&5
7083 echo $ECHO_N "checking if C symbols get an underscore after compilation... $ECHO_C" >&6; }
7084 if test "${grub_cv_asm_uscore+set}" = set; then
7085 echo $ECHO_N "(cached) $ECHO_C" >&6
7087 cat > conftest.c
<<\EOF
7096 if { ac_try
='${CC-cc} ${CFLAGS} -S conftest.c'
7097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7101 (exit $ac_status); }; } && test -s conftest.s
; then
7104 { { echo "$as_me:$LINENO: error: ${CC-cc} failed to produce assembly code" >&5
7105 echo "$as_me: error: ${CC-cc} failed to produce assembly code" >&2;}
7106 { (exit 1); exit 1; }; }
7109 if grep _func conftest.s
>/dev
/null
2>&1; then
7110 grub_cv_asm_uscore
=yes
7112 grub_cv_asm_uscore
=no
7119 if test "x$grub_cv_asm_uscore" = xyes
; then
7121 cat >>confdefs.h
<<_ACEOF
7122 #define HAVE_ASM_USCORE $grub_cv_asm_uscore
7127 { echo "$as_me:$LINENO: result: $grub_cv_asm_uscore" >&5
7128 echo "${ECHO_T}$grub_cv_asm_uscore" >&6; }
7130 if test "x$target_cpu" = xi386
; then
7131 if test ! -z "$TARGET_IMG_LDSCRIPT"; then
7132 # Check symbols provided by linker script.
7133 CFLAGS
="$TARGET_CFLAGS -nostdlib $TARGET_IMG_LDFLAGS_AC -Wl,-Ttext,8000,--defsym,___main=0x8100"
7135 if test "x$platform" = xpc
; then
7137 { echo "$as_me:$LINENO: checking if start is defined by the compiler" >&5
7138 echo $ECHO_N "checking if start is defined by the compiler... $ECHO_C" >&6; }
7139 if test "${grub_cv_check_start_symbol+set}" = set; then
7140 echo $ECHO_N "(cached) $ECHO_C" >&6
7142 cat >conftest.
$ac_ext <<_ACEOF
7145 cat confdefs.h
>>conftest.
$ac_ext
7146 cat >>conftest.
$ac_ext <<_ACEOF
7147 /* end confdefs.h. */
7157 rm -f conftest.
$ac_objext conftest
$ac_exeext
7158 if { (ac_try
="$ac_link"
7160 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7161 *) ac_try_echo=$ac_try;;
7163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7164 (eval "$ac_link") 2>conftest.er1
7166 grep -v '^ *+' conftest.er1 >conftest.err
7168 cat conftest.err >&5
7169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7170 (exit $ac_status); } && {
7171 test -z "$ac_c_werror_flag" ||
7172 test ! -s conftest.err
7173 } && test -s conftest$ac_exeext &&
7174 $as_test_x conftest$ac_exeext; then
7175 grub_cv_check_start_symbol=yes
7177 echo "$as_me: failed program was:" >&5
7178 sed 's/^/| /' conftest.$ac_ext >&5
7180 grub_cv_check_start_symbol=no
7183 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7184 conftest$ac_exeext conftest.$ac_ext
7188 { echo "$as_me:$LINENO: result: $grub_cv_check_start_symbol" >&5
7189 echo "${ECHO_T}$grub_cv_check_start_symbol" >&6; }
7191 { echo "$as_me:$LINENO: checking if _start is defined by the compiler" >&5
7192 echo $ECHO_N "checking if _start is defined by the compiler... $ECHO_C" >&6; }
7193 if test "${grub_cv_check_uscore_start_symbol+set}" = set; then
7194 echo $ECHO_N "(cached) $ECHO_C" >&6
7196 cat >conftest.$ac_ext <<_ACEOF
7199 cat confdefs.h >>conftest.$ac_ext
7200 cat >>conftest.$ac_ext <<_ACEOF
7201 /* end confdefs.h. */
7211 rm -f conftest.$ac_objext conftest$ac_exeext
7212 if { (ac_try="$ac_link"
7214 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7215 *) ac_try_echo
=$ac_try;;
7217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7218 (eval "$ac_link") 2>conftest.er1
7220 grep -v '^ *+' conftest.er1
>conftest.err
7222 cat conftest.err
>&5
7223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7224 (exit $ac_status); } && {
7225 test -z "$ac_c_werror_flag" ||
7226 test ! -s conftest.err
7227 } && test -s conftest
$ac_exeext &&
7228 $as_test_x conftest
$ac_exeext; then
7229 grub_cv_check_uscore_start_symbol
=yes
7231 echo "$as_me: failed program was:" >&5
7232 sed 's/^/| /' conftest.
$ac_ext >&5
7234 grub_cv_check_uscore_start_symbol
=no
7237 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7238 conftest
$ac_exeext conftest.
$ac_ext
7242 { echo "$as_me:$LINENO: result: $grub_cv_check_uscore_start_symbol" >&5
7243 echo "${ECHO_T}$grub_cv_check_uscore_start_symbol" >&6; }
7248 if test "x$grub_cv_check_start_symbol" = xyes
; then
7249 cat >>confdefs.h
<<\_ACEOF
7250 #define START_SYMBOL start
7253 elif test "x$grub_cv_check_uscore_start_symbol" = xyes
; then
7254 cat >>confdefs.h
<<\_ACEOF
7255 #define START_SYMBOL _start
7259 { { echo "$as_me:$LINENO: error: neither start nor _start is defined" >&5
7260 echo "$as_me: error: neither start nor _start is defined" >&2;}
7261 { (exit 1); exit 1; }; }
7265 { echo "$as_me:$LINENO: checking if __bss_start is defined by the compiler" >&5
7266 echo $ECHO_N "checking if __bss_start is defined by the compiler... $ECHO_C" >&6; }
7267 if test "${grub_cv_check_uscore_uscore_bss_start_symbol+set}" = set; then
7268 echo $ECHO_N "(cached) $ECHO_C" >&6
7270 cat >conftest.
$ac_ext <<_ACEOF
7273 cat confdefs.h
>>conftest.
$ac_ext
7274 cat >>conftest.
$ac_ext <<_ACEOF
7275 /* end confdefs.h. */
7280 asm ("incl __bss_start")
7285 rm -f conftest.
$ac_objext conftest
$ac_exeext
7286 if { (ac_try
="$ac_link"
7288 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7289 *) ac_try_echo=$ac_try;;
7291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7292 (eval "$ac_link") 2>conftest.er1
7294 grep -v '^ *+' conftest.er1 >conftest.err
7296 cat conftest.err >&5
7297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7298 (exit $ac_status); } && {
7299 test -z "$ac_c_werror_flag" ||
7300 test ! -s conftest.err
7301 } && test -s conftest$ac_exeext &&
7302 $as_test_x conftest$ac_exeext; then
7303 grub_cv_check_uscore_uscore_bss_start_symbol=yes
7305 echo "$as_me: failed program was:" >&5
7306 sed 's/^/| /' conftest.$ac_ext >&5
7308 grub_cv_check_uscore_uscore_bss_start_symbol=no
7311 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7312 conftest$ac_exeext conftest.$ac_ext
7316 { echo "$as_me:$LINENO: result: $grub_cv_check_uscore_uscore_bss_start_symbol" >&5
7317 echo "${ECHO_T}$grub_cv_check_uscore_uscore_bss_start_symbol" >&6; }
7319 { echo "$as_me:$LINENO: checking if edata is defined by the compiler" >&5
7320 echo $ECHO_N "checking if edata is defined by the compiler... $ECHO_C" >&6; }
7321 if test "${grub_cv_check_edata_symbol+set}" = set; then
7322 echo $ECHO_N "(cached) $ECHO_C" >&6
7324 cat >conftest.$ac_ext <<_ACEOF
7327 cat confdefs.h >>conftest.$ac_ext
7328 cat >>conftest.$ac_ext <<_ACEOF
7329 /* end confdefs.h. */
7339 rm -f conftest.$ac_objext conftest$ac_exeext
7340 if { (ac_try="$ac_link"
7342 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7343 *) ac_try_echo
=$ac_try;;
7345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7346 (eval "$ac_link") 2>conftest.er1
7348 grep -v '^ *+' conftest.er1
>conftest.err
7350 cat conftest.err
>&5
7351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7352 (exit $ac_status); } && {
7353 test -z "$ac_c_werror_flag" ||
7354 test ! -s conftest.err
7355 } && test -s conftest
$ac_exeext &&
7356 $as_test_x conftest
$ac_exeext; then
7357 grub_cv_check_edata_symbol
=yes
7359 echo "$as_me: failed program was:" >&5
7360 sed 's/^/| /' conftest.
$ac_ext >&5
7362 grub_cv_check_edata_symbol
=no
7365 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7366 conftest
$ac_exeext conftest.
$ac_ext
7370 { echo "$as_me:$LINENO: result: $grub_cv_check_edata_symbol" >&5
7371 echo "${ECHO_T}$grub_cv_check_edata_symbol" >&6; }
7373 { echo "$as_me:$LINENO: checking if _edata is defined by the compiler" >&5
7374 echo $ECHO_N "checking if _edata is defined by the compiler... $ECHO_C" >&6; }
7375 if test "${grub_cv_check_uscore_edata_symbol+set}" = set; then
7376 echo $ECHO_N "(cached) $ECHO_C" >&6
7378 cat >conftest.
$ac_ext <<_ACEOF
7381 cat confdefs.h
>>conftest.
$ac_ext
7382 cat >>conftest.
$ac_ext <<_ACEOF
7383 /* end confdefs.h. */
7393 rm -f conftest.
$ac_objext conftest
$ac_exeext
7394 if { (ac_try
="$ac_link"
7396 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7397 *) ac_try_echo=$ac_try;;
7399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7400 (eval "$ac_link") 2>conftest.er1
7402 grep -v '^ *+' conftest.er1 >conftest.err
7404 cat conftest.err >&5
7405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7406 (exit $ac_status); } && {
7407 test -z "$ac_c_werror_flag" ||
7408 test ! -s conftest.err
7409 } && test -s conftest$ac_exeext &&
7410 $as_test_x conftest$ac_exeext; then
7411 grub_cv_check_uscore_edata_symbol=yes
7413 echo "$as_me: failed program was:" >&5
7414 sed 's/^/| /' conftest.$ac_ext >&5
7416 grub_cv_check_uscore_edata_symbol=no
7419 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7420 conftest$ac_exeext conftest.$ac_ext
7424 { echo "$as_me:$LINENO: result: $grub_cv_check_uscore_edata_symbol" >&5
7425 echo "${ECHO_T}$grub_cv_check_uscore_edata_symbol" >&6; }
7430 if test "x$grub_cv_check_uscore_uscore_bss_start_symbol" = xyes; then
7431 cat >>confdefs.h <<\_ACEOF
7432 #define BSS_START_SYMBOL __bss_start
7435 elif test "x$grub_cv_check_edata_symbol" = xyes; then
7436 cat >>confdefs.h <<\_ACEOF
7437 #define BSS_START_SYMBOL edata
7440 elif test "x$grub_cv_check_uscore_edata_symbol" = xyes; then
7441 cat >>confdefs.h <<\_ACEOF
7442 #define BSS_START_SYMBOL _edata
7446 { { echo "$as_me:$LINENO: error: none of __bss_start, edata or _edata is defined" >&5
7447 echo "$as_me: error: none of __bss_start, edata or _edata is defined" >&2;}
7448 { (exit 1); exit 1; }; }
7452 { echo "$as_me:$LINENO: checking if end is defined by the compiler" >&5
7453 echo $ECHO_N "checking if end is defined by the compiler... $ECHO_C" >&6; }
7454 if test "${grub_cv_check_end_symbol+set}" = set; then
7455 echo $ECHO_N "(cached) $ECHO_C" >&6
7457 cat >conftest.$ac_ext <<_ACEOF
7460 cat confdefs.h >>conftest.$ac_ext
7461 cat >>conftest.$ac_ext <<_ACEOF
7462 /* end confdefs.h. */
7472 rm -f conftest.$ac_objext conftest$ac_exeext
7473 if { (ac_try="$ac_link"
7475 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7476 *) ac_try_echo
=$ac_try;;
7478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7479 (eval "$ac_link") 2>conftest.er1
7481 grep -v '^ *+' conftest.er1
>conftest.err
7483 cat conftest.err
>&5
7484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7485 (exit $ac_status); } && {
7486 test -z "$ac_c_werror_flag" ||
7487 test ! -s conftest.err
7488 } && test -s conftest
$ac_exeext &&
7489 $as_test_x conftest
$ac_exeext; then
7490 grub_cv_check_end_symbol
=yes
7492 echo "$as_me: failed program was:" >&5
7493 sed 's/^/| /' conftest.
$ac_ext >&5
7495 grub_cv_check_end_symbol
=no
7498 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7499 conftest
$ac_exeext conftest.
$ac_ext
7503 { echo "$as_me:$LINENO: result: $grub_cv_check_end_symbol" >&5
7504 echo "${ECHO_T}$grub_cv_check_end_symbol" >&6; }
7506 { echo "$as_me:$LINENO: checking if _end is defined by the compiler" >&5
7507 echo $ECHO_N "checking if _end is defined by the compiler... $ECHO_C" >&6; }
7508 if test "${grub_cv_check_uscore_end_symbol+set}" = set; then
7509 echo $ECHO_N "(cached) $ECHO_C" >&6
7511 cat >conftest.
$ac_ext <<_ACEOF
7514 cat confdefs.h
>>conftest.
$ac_ext
7515 cat >>conftest.
$ac_ext <<_ACEOF
7516 /* end confdefs.h. */
7526 rm -f conftest.
$ac_objext conftest
$ac_exeext
7527 if { (ac_try
="$ac_link"
7529 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7530 *) ac_try_echo=$ac_try;;
7532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7533 (eval "$ac_link") 2>conftest.er1
7535 grep -v '^ *+' conftest.er1 >conftest.err
7537 cat conftest.err >&5
7538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7539 (exit $ac_status); } && {
7540 test -z "$ac_c_werror_flag" ||
7541 test ! -s conftest.err
7542 } && test -s conftest$ac_exeext &&
7543 $as_test_x conftest$ac_exeext; then
7544 grub_cv_check_uscore_end_symbol=yes
7546 echo "$as_me: failed program was:" >&5
7547 sed 's/^/| /' conftest.$ac_ext >&5
7549 grub_cv_check_uscore_end_symbol=no
7552 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7553 conftest$ac_exeext conftest.$ac_ext
7557 { echo "$as_me:$LINENO: result: $grub_cv_check_uscore_end_symbol" >&5
7558 echo "${ECHO_T}$grub_cv_check_uscore_end_symbol" >&6; }
7563 if test "x$grub_cv_check_end_symbol" = xyes; then
7564 cat >>confdefs.h <<\_ACEOF
7565 #define END_SYMBOL end
7568 elif test "x$grub_cv_check_uscore_end_symbol" = xyes; then
7569 cat >>confdefs.h <<\_ACEOF
7570 #define END_SYMBOL _end
7574 { { echo "$as_me:$LINENO: error: neither end nor _end is defined" >&5
7575 echo "$as_me: error: neither end nor _end is defined" >&2;}
7576 { (exit 1); exit 1; }; }
7580 CFLAGS="$TARGET_CFLAGS"
7582 { echo "$as_me:$LINENO: checking whether addr32 must be in the same line as the instruction" >&5
7583 echo $ECHO_N "checking whether addr32 must be in the same line as the instruction... $ECHO_C" >&6; }
7584 if test "${grub_cv_i386_asm_prefix_requirement+set}" = set; then
7585 echo $ECHO_N "(cached) $ECHO_C" >&6
7587 cat > conftest.s <<\EOF
7589 l1: addr32 movb %al, l1
7592 if { ac_try='${CC-cc} ${CFLAGS} -c conftest.s'
7593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7597 (exit $ac_status); }; } && test -s conftest.o; then
7598 grub_cv_i386_asm_prefix_requirement=yes
7600 grub_cv_i386_asm_prefix_requirement=no
7607 if test "x$grub_cv_i386_asm_prefix_requirement" = xyes; then
7608 grub_tmp_addr32="addr32"
7609 grub_tmp_data32="data32"
7611 grub_tmp_addr32="addr32;"
7612 grub_tmp_data32="data32;"
7616 cat >>confdefs.h <<_ACEOF
7617 #define ADDR32 $grub_tmp_addr32
7621 cat >>confdefs.h <<_ACEOF
7622 #define DATA32 $grub_tmp_data32
7626 { echo "$as_me:$LINENO: result: $grub_cv_i386_asm_prefix_requirement" >&5
7627 echo "${ECHO_T}$grub_cv_i386_asm_prefix_requirement" >&6; }
7630 { echo "$as_me:$LINENO: checking for .code16 addr32 assembler support" >&5
7631 echo $ECHO_N "checking for .code16 addr32 assembler support... $ECHO_C" >&6; }
7632 if test "${grub_cv_i386_asm_addr32+set}" = set; then
7633 echo $ECHO_N "(cached) $ECHO_C" >&6
7635 cat > conftest.s.in <<\EOF
7637 l1: @ADDR32@ movb %al, l1
7640 if test "x$grub_cv_i386_asm_prefix_requirement" = xyes; then
7641 sed -e s/@ADDR32@/addr32/ < conftest.s.in > conftest.s
7643 sed -e s/@ADDR32@/addr32\;/ < conftest.s.in > conftest.s
7646 if { ac_try='${CC-cc} ${CFLAGS} -c conftest.s'
7647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7651 (exit $ac_status); }; } && test -s conftest.o; then
7652 grub_cv_i386_asm_addr32=yes
7654 grub_cv_i386_asm_addr32=no
7661 { echo "$as_me:$LINENO: result: $grub_cv_i386_asm_addr32" >&5
7662 echo "${ECHO_T}$grub_cv_i386_asm_addr32" >&6; }
7664 { echo "$as_me:$LINENO: checking whether an absolute indirect call/jump must not be prefixed with an asterisk" >&5
7665 echo $ECHO_N "checking whether an absolute indirect call/jump must not be prefixed with an asterisk... $ECHO_C" >&6; }
7666 if test "${grub_cv_i386_asm_absolute_without_asterisk+set}" = set; then
7667 echo $ECHO_N "(cached) $ECHO_C" >&6
7669 cat > conftest.s <<\EOF
7676 if { ac_try='${CC-cc} ${CFLAGS} -c conftest.s'
7677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7681 (exit $ac_status); }; } && test -s conftest.o; then
7682 grub_cv_i386_asm_absolute_without_asterisk=no
7684 grub_cv_i386_asm_absolute_without_asterisk=yes
7691 if test "x$grub_cv_i386_asm_absolute_without_asterisk" = xyes; then
7693 cat >>confdefs.h <<\_ACEOF
7694 #define ABSOLUTE_WITHOUT_ASTERISK 1
7699 { echo "$as_me:$LINENO: result: $grub_cv_i386_asm_absolute_without_asterisk" >&5
7700 echo "${ECHO_T}$grub_cv_i386_asm_absolute_without_asterisk" >&6; }
7702 { echo "$as_me:$LINENO: checking if GCC has the regparm=3 bug" >&5
7703 echo $ECHO_N "checking if GCC has the regparm=3 bug... $ECHO_C" >&6; }
7704 if test "${grub_cv_i386_check_nested_functions+set}" = set; then
7705 echo $ECHO_N "(cached) $ECHO_C" >&6
7707 if test "$cross_compiling" = yes; then
7708 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7709 See \`config.log
' for more details." >&5
7710 echo "$as_me: error: cannot run test program while cross compiling
7711 See \`config.log' for more details.
" >&2;}
7712 { (exit 1); exit 1; }; }
7714 cat >conftest.$ac_ext <<_ACEOF
7717 cat confdefs.h >>conftest.$ac_ext
7718 cat >>conftest.$ac_ext <<_ACEOF
7719 /* end confdefs.h. */
7728 testfunc (int __attribute__ ((__regparm__ (3))) (*hook) (int a, int b, int *c))
7733 return hook (a, b, &c);
7739 int __attribute__ ((__regparm__ (3))) nestedfunc (int a, int b, int *c)
7741 return a == b && test (c);
7743 return testfunc (nestedfunc) ? 0 : 1;
7747 rm -f conftest$ac_exeext
7748 if { (ac_try="$ac_link"
7750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7751 *) ac_try_echo=$ac_try;;
7753 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7754 (eval "$ac_link") 2>&5
7756 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7757 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7758 { (case "(($ac_try" in
7759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7760 *) ac_try_echo=$ac_try;;
7762 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7763 (eval "$ac_try") 2>&5
7765 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7766 (exit $ac_status); }; }; then
7767 grub_cv_i386_check_nested_functions=no
7769 echo "$as_me: program exited with status
$ac_status" >&5
7770 echo "$as_me: failed program was
:" >&5
7771 sed 's/^/| /' conftest.$ac_ext >&5
7774 grub_cv_i386_check_nested_functions=yes
7776 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7783 { echo "$as_me:$LINENO: result
: $grub_cv_i386_check_nested_functions" >&5
7784 echo "${ECHO_T}$grub_cv_i386_check_nested_functions" >&6; }
7786 if test "x
$grub_cv_i386_check_nested_functions" = xyes; then
7788 cat >>confdefs.h <<\_ACEOF
7789 #define NESTED_FUNC_ATTR __attribute__ ((__regparm__ (1)))
7794 cat >>confdefs.h <<\_ACEOF
7795 #define NESTED_FUNC_ATTR __attribute__ ((__regparm__ (1)))
7802 cat >>confdefs.h <<\_ACEOF
7803 #define NESTED_FUNC_ATTR
7808 # Restore the flags.
7810 CFLAGS="$tmp_CFLAGS"
7811 CPPFLAGS="$tmp_CPPFLAGS"
7812 LDFLAGS="$tmp_LDFLAGS"
7816 # Check for options.
7819 # Memory manager debugging.
7820 # Check whether --enable-mm-debug was given.
7821 if test "${enable_mm_debug+set}" = set; then
7822 enableval=$enable_mm_debug;
7823 cat >>confdefs.h <<\_ACEOF
7830 # Check whether --enable-grub-emu was given.
7831 if test "${enable_grub_emu+set}" = set; then
7832 enableval=$enable_grub_emu;
7835 if [ x"$enable_grub_emu" = xyes ]; then
7836 # Check for curses libraries.
7837 { echo "$as_me:$LINENO: checking
for wgetch
in -lncurses" >&5
7838 echo $ECHO_N "checking
for wgetch
in -lncurses...
$ECHO_C" >&6; }
7839 if test "${ac_cv_lib_ncurses_wgetch+set}" = set; then
7840 echo $ECHO_N "(cached
) $ECHO_C" >&6
7842 ac_check_lib_save_LIBS=$LIBS
7843 LIBS="-lncurses $LIBS"
7844 cat >conftest.$ac_ext <<_ACEOF
7847 cat confdefs.h >>conftest.$ac_ext
7848 cat >>conftest.$ac_ext <<_ACEOF
7849 /* end confdefs.h. */
7851 /* Override any GCC internal prototype to avoid an error.
7852 Use char because int might match the return type of a GCC
7853 builtin and then its argument prototype would still apply. */
7866 rm -f conftest.$ac_objext conftest$ac_exeext
7867 if { (ac_try="$ac_link"
7869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7870 *) ac_try_echo=$ac_try;;
7872 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7873 (eval "$ac_link") 2>conftest.er1
7875 grep -v '^ *+' conftest.er1 >conftest.err
7877 cat conftest.err >&5
7878 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7879 (exit $ac_status); } && {
7880 test -z "$ac_c_werror_flag" ||
7881 test ! -s conftest.err
7882 } && test -s conftest$ac_exeext &&
7883 $as_test_x conftest$ac_exeext; then
7884 ac_cv_lib_ncurses_wgetch=yes
7886 echo "$as_me: failed program was
:" >&5
7887 sed 's/^/| /' conftest.$ac_ext >&5
7889 ac_cv_lib_ncurses_wgetch=no
7892 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7893 conftest$ac_exeext conftest.$ac_ext
7894 LIBS=$ac_check_lib_save_LIBS
7896 { echo "$as_me:$LINENO: result
: $ac_cv_lib_ncurses_wgetch" >&5
7897 echo "${ECHO_T}$ac_cv_lib_ncurses_wgetch" >&6; }
7898 if test $ac_cv_lib_ncurses_wgetch = yes; then
7899 LIBCURSES="-lncurses"
7901 { echo "$as_me:$LINENO: checking
for wgetch
in -lcurses" >&5
7902 echo $ECHO_N "checking
for wgetch
in -lcurses...
$ECHO_C" >&6; }
7903 if test "${ac_cv_lib_curses_wgetch+set}" = set; then
7904 echo $ECHO_N "(cached
) $ECHO_C" >&6
7906 ac_check_lib_save_LIBS=$LIBS
7907 LIBS="-lcurses $LIBS"
7908 cat >conftest.$ac_ext <<_ACEOF
7911 cat confdefs.h >>conftest.$ac_ext
7912 cat >>conftest.$ac_ext <<_ACEOF
7913 /* end confdefs.h. */
7915 /* Override any GCC internal prototype to avoid an error.
7916 Use char because int might match the return type of a GCC
7917 builtin and then its argument prototype would still apply. */
7930 rm -f conftest.$ac_objext conftest$ac_exeext
7931 if { (ac_try="$ac_link"
7933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7934 *) ac_try_echo=$ac_try;;
7936 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7937 (eval "$ac_link") 2>conftest.er1
7939 grep -v '^ *+' conftest.er1 >conftest.err
7941 cat conftest.err >&5
7942 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7943 (exit $ac_status); } && {
7944 test -z "$ac_c_werror_flag" ||
7945 test ! -s conftest.err
7946 } && test -s conftest$ac_exeext &&
7947 $as_test_x conftest$ac_exeext; then
7948 ac_cv_lib_curses_wgetch=yes
7950 echo "$as_me: failed program was
:" >&5
7951 sed 's/^/| /' conftest.$ac_ext >&5
7953 ac_cv_lib_curses_wgetch=no
7956 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7957 conftest$ac_exeext conftest.$ac_ext
7958 LIBS=$ac_check_lib_save_LIBS
7960 { echo "$as_me:$LINENO: result
: $ac_cv_lib_curses_wgetch" >&5
7961 echo "${ECHO_T}$ac_cv_lib_curses_wgetch" >&6; }
7962 if test $ac_cv_lib_curses_wgetch = yes; then
7963 LIBCURSES="-lcurses"
7965 { { echo "$as_me:$LINENO: error
: (n
)curses libraries are required to build \
`grub-emu'" >&5
7966 echo "$as_me: error: (n)curses libraries are required to build \`grub-emu
'" >&2;}
7967 { (exit 1); exit 1; }; }
7974 # Check for headers.
7976 for ac_header in ncurses/curses.h
7978 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7979 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7980 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7981 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7982 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7983 echo $ECHO_N "(cached) $ECHO_C" >&6
7985 ac_res=`eval echo '${'$as_ac_Header'}'`
7986 { echo "$as_me:$LINENO: result: $ac_res" >&5
7987 echo "${ECHO_T}$ac_res" >&6; }
7989 # Is the header compilable?
7990 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7991 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7992 cat >conftest.$ac_ext <<_ACEOF
7995 cat confdefs.h >>conftest.$ac_ext
7996 cat >>conftest.$ac_ext <<_ACEOF
7997 /* end confdefs.h. */
7998 $ac_includes_default
7999 #include <$ac_header>
8001 rm -f conftest.$ac_objext
8002 if { (ac_try="$ac_compile"
8004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8005 *) ac_try_echo=$ac_try;;
8007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8008 (eval "$ac_compile") 2>conftest.er1
8010 grep -v '^
*+' conftest.er1 >conftest.err
8012 cat conftest.err >&5
8013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8014 (exit $ac_status); } && {
8015 test -z "$ac_c_werror_flag" ||
8016 test ! -s conftest.err
8017 } && test -s conftest.$ac_objext; then
8018 ac_header_compiler=yes
8020 echo "$as_me: failed program was:" >&5
8021 sed 's
/^
/|
/' conftest.$ac_ext >&5
8023 ac_header_compiler=no
8026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8027 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8028 echo "${ECHO_T}$ac_header_compiler" >&6; }
8030 # Is the header present?
8031 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8032 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8033 cat >conftest.$ac_ext <<_ACEOF
8036 cat confdefs.h >>conftest.$ac_ext
8037 cat >>conftest.$ac_ext <<_ACEOF
8038 /* end confdefs.h. */
8039 #include <$ac_header>
8041 if { (ac_try="$ac_cpp conftest.$ac_ext"
8043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8044 *) ac_try_echo=$ac_try;;
8046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8047 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8049 grep -v '^
*+' conftest.er1 >conftest.err
8051 cat conftest.err >&5
8052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8053 (exit $ac_status); } >/dev/null && {
8054 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8055 test ! -s conftest.err
8057 ac_header_preproc=yes
8059 echo "$as_me: failed program was:" >&5
8060 sed 's
/^
/|
/' conftest.$ac_ext >&5
8062 ac_header_preproc=no
8065 rm -f conftest.err conftest.$ac_ext
8066 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8067 echo "${ECHO_T}$ac_header_preproc" >&6; }
8069 # So? What about this header?
8070 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8072 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8073 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8074 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result
" >&5
8075 echo "$as_me: WARNING
: $ac_header: proceeding with the compiler
's result" >&2;}
8076 ac_header_preproc=yes
8079 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8080 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8081 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8082 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8083 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8084 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8085 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8086 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8087 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result
" >&5
8088 echo "$as_me: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&2;}
8089 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8090 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8092 ## ------------------------------- ##
8093 ## Report this to bug-grub@gnu.org ##
8094 ## ------------------------------- ##
8096 ) | sed "s/^/$as_me: WARNING: /" >&2
8099 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8100 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8101 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8102 echo $ECHO_N "(cached) $ECHO_C" >&6
8104 eval "$as_ac_Header=\$ac_header_preproc"
8106 ac_res=`eval echo '${'$as_ac_Header'}'`
8107 { echo "$as_me:$LINENO: result: $ac_res" >&5
8108 echo "${ECHO_T}$ac_res" >&6; }
8111 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8112 cat >>confdefs.h <<_ACEOF
8113 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8118 for ac_header in ncurses.h
8120 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8121 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8122 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8123 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8124 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8125 echo $ECHO_N "(cached) $ECHO_C" >&6
8127 ac_res=`eval echo '${'$as_ac_Header'}'`
8128 { echo "$as_me:$LINENO: result: $ac_res" >&5
8129 echo "${ECHO_T}$ac_res" >&6; }
8131 # Is the header compilable?
8132 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8133 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8134 cat >conftest.$ac_ext <<_ACEOF
8137 cat confdefs.h >>conftest.$ac_ext
8138 cat >>conftest.$ac_ext <<_ACEOF
8139 /* end confdefs.h. */
8140 $ac_includes_default
8141 #include <$ac_header>
8143 rm -f conftest.$ac_objext
8144 if { (ac_try="$ac_compile"
8146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8147 *) ac_try_echo=$ac_try;;
8149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8150 (eval "$ac_compile") 2>conftest.er1
8152 grep -v '^
*+' conftest.er1 >conftest.err
8154 cat conftest.err >&5
8155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8156 (exit $ac_status); } && {
8157 test -z "$ac_c_werror_flag" ||
8158 test ! -s conftest.err
8159 } && test -s conftest.$ac_objext; then
8160 ac_header_compiler=yes
8162 echo "$as_me: failed program was:" >&5
8163 sed 's
/^
/|
/' conftest.$ac_ext >&5
8165 ac_header_compiler=no
8168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8169 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8170 echo "${ECHO_T}$ac_header_compiler" >&6; }
8172 # Is the header present?
8173 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8174 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8175 cat >conftest.$ac_ext <<_ACEOF
8178 cat confdefs.h >>conftest.$ac_ext
8179 cat >>conftest.$ac_ext <<_ACEOF
8180 /* end confdefs.h. */
8181 #include <$ac_header>
8183 if { (ac_try="$ac_cpp conftest.$ac_ext"
8185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8186 *) ac_try_echo=$ac_try;;
8188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8189 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8191 grep -v '^
*+' conftest.er1 >conftest.err
8193 cat conftest.err >&5
8194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8195 (exit $ac_status); } >/dev/null && {
8196 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8197 test ! -s conftest.err
8199 ac_header_preproc=yes
8201 echo "$as_me: failed program was:" >&5
8202 sed 's
/^
/|
/' conftest.$ac_ext >&5
8204 ac_header_preproc=no
8207 rm -f conftest.err conftest.$ac_ext
8208 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8209 echo "${ECHO_T}$ac_header_preproc" >&6; }
8211 # So? What about this header?
8212 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8214 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8215 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8216 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result
" >&5
8217 echo "$as_me: WARNING
: $ac_header: proceeding with the compiler
's result" >&2;}
8218 ac_header_preproc=yes
8221 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8222 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8223 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8224 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8225 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8226 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8227 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8228 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8229 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result
" >&5
8230 echo "$as_me: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&2;}
8231 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8232 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8234 ## ------------------------------- ##
8235 ## Report this to bug-grub@gnu.org ##
8236 ## ------------------------------- ##
8238 ) | sed "s/^/$as_me: WARNING: /" >&2
8241 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8242 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8243 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8244 echo $ECHO_N "(cached) $ECHO_C" >&6
8246 eval "$as_ac_Header=\$ac_header_preproc"
8248 ac_res=`eval echo '${'$as_ac_Header'}'`
8249 { echo "$as_me:$LINENO: result: $ac_res" >&5
8250 echo "${ECHO_T}$ac_res" >&6; }
8253 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8254 cat >>confdefs.h <<_ACEOF
8255 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8260 for ac_header in curses.h
8262 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8263 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8264 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8265 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8266 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8267 echo $ECHO_N "(cached) $ECHO_C" >&6
8269 ac_res=`eval echo '${'$as_ac_Header'}'`
8270 { echo "$as_me:$LINENO: result: $ac_res" >&5
8271 echo "${ECHO_T}$ac_res" >&6; }
8273 # Is the header compilable?
8274 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8275 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8276 cat >conftest.$ac_ext <<_ACEOF
8279 cat confdefs.h >>conftest.$ac_ext
8280 cat >>conftest.$ac_ext <<_ACEOF
8281 /* end confdefs.h. */
8282 $ac_includes_default
8283 #include <$ac_header>
8285 rm -f conftest.$ac_objext
8286 if { (ac_try="$ac_compile"
8288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8289 *) ac_try_echo=$ac_try;;
8291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8292 (eval "$ac_compile") 2>conftest.er1
8294 grep -v '^
*+' conftest.er1 >conftest.err
8296 cat conftest.err >&5
8297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8298 (exit $ac_status); } && {
8299 test -z "$ac_c_werror_flag" ||
8300 test ! -s conftest.err
8301 } && test -s conftest.$ac_objext; then
8302 ac_header_compiler=yes
8304 echo "$as_me: failed program was:" >&5
8305 sed 's
/^
/|
/' conftest.$ac_ext >&5
8307 ac_header_compiler=no
8310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8311 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8312 echo "${ECHO_T}$ac_header_compiler" >&6; }
8314 # Is the header present?
8315 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8316 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8317 cat >conftest.$ac_ext <<_ACEOF
8320 cat confdefs.h >>conftest.$ac_ext
8321 cat >>conftest.$ac_ext <<_ACEOF
8322 /* end confdefs.h. */
8323 #include <$ac_header>
8325 if { (ac_try="$ac_cpp conftest.$ac_ext"
8327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8328 *) ac_try_echo=$ac_try;;
8330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8331 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8333 grep -v '^
*+' conftest.er1 >conftest.err
8335 cat conftest.err >&5
8336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8337 (exit $ac_status); } >/dev/null && {
8338 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8339 test ! -s conftest.err
8341 ac_header_preproc=yes
8343 echo "$as_me: failed program was:" >&5
8344 sed 's
/^
/|
/' conftest.$ac_ext >&5
8346 ac_header_preproc=no
8349 rm -f conftest.err conftest.$ac_ext
8350 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8351 echo "${ECHO_T}$ac_header_preproc" >&6; }
8353 # So? What about this header?
8354 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8356 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8357 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8358 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result
" >&5
8359 echo "$as_me: WARNING
: $ac_header: proceeding with the compiler
's result" >&2;}
8360 ac_header_preproc=yes
8363 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8364 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8365 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8366 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8367 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8368 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8369 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8370 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8371 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result
" >&5
8372 echo "$as_me: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&2;}
8373 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8374 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8376 ## ------------------------------- ##
8377 ## Report this to bug-grub@gnu.org ##
8378 ## ------------------------------- ##
8380 ) | sed "s/^/$as_me: WARNING: /" >&2
8383 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8384 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8385 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8386 echo $ECHO_N "(cached) $ECHO_C" >&6
8388 eval "$as_ac_Header=\$ac_header_preproc"
8390 ac_res=`eval echo '${'$as_ac_Header'}'`
8391 { echo "$as_me:$LINENO: result: $ac_res" >&5
8392 echo "${ECHO_T}$ac_res" >&6; }
8395 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8396 cat >>confdefs.h <<_ACEOF
8397 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8401 { { echo "$as_me:$LINENO: error: (n)curses header files are required to build \`grub-emu'" >&5
8402 echo "$as_me: error
: (n
)curses header files are required to build \
`grub-emu'" >&2;}
8403 { (exit 1); exit 1; }; }
8419 # Check whether --enable-grub-fstest was given.
8420 if test "${enable_grub_fstest+set}" = set; then
8421 enableval=$enable_grub_fstest;
8426 # Check whether --enable-grub-pe2elf was given.
8427 if test "${enable_grub_pe2elf+set}" = set; then
8428 enableval=$enable_grub_pe2elf;
8433 # Check whether --enable-grub-mkfont was given.
8434 if test "${enable_grub_mkfont+set}" = set; then
8435 enableval=$enable_grub_mkfont;
8438 if test x"$enable_grub_mkfont" = xyes ; then
8439 # Check for freetype libraries.
8440 for ac_prog in freetype-config
8442 # Extract the first word of "$ac_prog", so it can be a program name with args.
8443 set dummy $ac_prog; ac_word=$2
8444 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8445 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8446 if test "${ac_cv_prog_FREETYPE+set}" = set; then
8447 echo $ECHO_N "(cached) $ECHO_C" >&6
8449 if test -n "$FREETYPE"; then
8450 ac_cv_prog_FREETYPE="$FREETYPE" # Let the user override the test.
8452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8456 test -z "$as_dir" && as_dir=.
8457 for ac_exec_ext in '' $ac_executable_extensions; do
8458 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8459 ac_cv_prog_FREETYPE="$ac_prog"
8460 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8469 FREETYPE=$ac_cv_prog_FREETYPE
8470 if test -n "$FREETYPE"; then
8471 { echo "$as_me:$LINENO: result: $FREETYPE" >&5
8472 echo "${ECHO_T}$FREETYPE" >&6; }
8474 { echo "$as_me:$LINENO: result: no" >&5
8475 echo "${ECHO_T}no" >&6; }
8479 test -n "$FREETYPE" && break
8482 if test "x$FREETYPE" = x ; then
8483 { { echo "$as_me:$LINENO: error: freetype2 libraries are required to build \`grub-mkfont
'" >&5
8484 echo "$as_me: error: freetype2 libraries are required to build \`grub-mkfont'" >&2;}
8485 { (exit 1); exit 1; }; }
8487 freetype_cflags=`freetype-config --cflags`
8488 freetype_libs=`freetype-config --libs`
8495 ac_config_links="$ac_config_links include
/grub
/cpu
:include
/grub
/$target_cpu include
/grub
/machine
:include
/grub
/$target_cpu/$platform"
8497 ac_config_files="$ac_config_files Makefile gensymlist.sh genkernsyms.sh
"
8499 ac_config_files="$ac_config_files stamp-h
"
8501 cat >confcache <<\_ACEOF
8502 # This file is a shell script that caches the results of configure
8503 # tests run on this system so they can be shared between configure
8504 # scripts and configure runs, see configure's option --config-cache.
8505 # It is not useful on other systems. If it contains results you don't
8506 # want to keep, you may remove or edit it.
8508 # config.status only pays attention to the cache file if you give it
8509 # the --recheck option to rerun configure.
8511 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8512 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8517 # The following way of writing the cache mishandles newlines in values,
8518 # but we know of no workaround that is simple, portable, and efficient.
8519 # So, we kill variables containing newlines.
8520 # Ultrix sh set writes to stderr and can't be redirected directly,
8521 # and sets the high bit in the cache file unless we assign to the vars.
8523 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
8524 eval ac_val=\$$ac_var
8528 *_cv_*) { echo "$as_me:$LINENO: WARNING
: Cache variable
$ac_var contains a newline.
" >&5
8529 echo "$as_me: WARNING
: Cache variable
$ac_var contains a newline.
" >&2;} ;;
8532 _ | IFS | as_nl) ;; #(
8533 *) $as_unset $ac_var ;;
8539 case $as_nl`(ac_space=' '; set) 2>&1` in #(
8540 *${as_nl}ac_space=\ *)
8541 # `set' does not quote correctly, so add quotes (double-quote
8542 # substitution turns \\\\ into \\, and sed turns \\ into \).
8545 s
/^
\\([_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*\\)=\\(.
*\\)/\\1='\\2'/p
"
8548 # `set' quotes correctly as required by POSIX, so do not add quotes.
8549 sed -n "/^
[_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*=/p
"
8558 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8560 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8562 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
8563 if test -w "$cache_file"; then
8564 test "x
$cache_file" != "x
/dev
/null
" &&
8565 { echo "$as_me:$LINENO: updating cache
$cache_file" >&5
8566 echo "$as_me: updating cache
$cache_file" >&6;}
8567 cat confcache >$cache_file
8569 { echo "$as_me:$LINENO: not updating unwritable cache
$cache_file" >&5
8570 echo "$as_me: not updating unwritable cache
$cache_file" >&6;}
8575 test "x
$prefix" = xNONE && prefix=$ac_default_prefix
8576 # Let make expand exec_prefix.
8577 test "x
$exec_prefix" = xNONE && exec_prefix='${prefix}'
8579 DEFS=-DHAVE_CONFIG_H
8583 for ac_i in : $LIBOBJS; do test "x
$ac_i" = x: && continue
8584 # 1. Remove the extension, and $U if already installed.
8585 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
8586 ac_i=`echo "$ac_i" | sed "$ac_script"`
8587 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
8588 # will be set to the directory where LIBOBJS objects are built.
8589 ac_libobjs="$ac_libobjs \
${LIBOBJDIR}$ac_i\
$U.
$ac_objext"
8590 ac_ltlibobjs="$ac_ltlibobjs \
${LIBOBJDIR}$ac_i"'$U.lo'
8594 LTLIBOBJS=$ac_ltlibobjs
8598 : ${CONFIG_STATUS=./config.status}
8599 ac_clean_files_save=$ac_clean_files
8600 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8601 { echo "$as_me:$LINENO: creating
$CONFIG_STATUS" >&5
8602 echo "$as_me: creating
$CONFIG_STATUS" >&6;}
8603 cat >$CONFIG_STATUS <<_ACEOF
8605 # Generated by $as_me.
8606 # Run this file to recreate the current configuration.
8607 # Compiler output produced by configure, useful for debugging
8608 # configure, is in config.log if it exists.
8613 SHELL=\${CONFIG_SHELL-$SHELL}
8616 cat >>$CONFIG_STATUS <<\_ACEOF
8617 ## --------------------- ##
8618 ## M4sh Initialization. ##
8619 ## --------------------- ##
8621 # Be more Bourne compatible
8622 DUALCASE=1; export DUALCASE # for MKS sh
8623 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
8626 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
8627 # is contrary to our usage. Disable this feature.
8628 alias -g '${1+"$@"}'='"$@
"'
8629 setopt NO_GLOB_SUBST
8631 case `(set -o) 2>/dev/null` in
8632 *posix*) set -o posix ;;
8641 # Avoid depending upon Character Ranges.
8642 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8643 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8644 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8645 as_cr_digits='0123456789'
8646 as_cr_alnum=$as_cr_Letters$as_cr_digits
8648 # The user is always right.
8649 if test "${PATH_SEPARATOR+set}" != set; then
8650 echo "#! /bin/sh" >conf$$.sh
8651 echo "exit 0" >>conf$$.sh
8653 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
8661 # Support unset when possible.
8662 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
8670 # We need space, tab and new line, in precisely that order. Quoting is
8671 # there to prevent editors from complaining about space-tab.
8672 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
8673 # splitting by setting IFS to empty value.)
8678 # Find who we are. Look in the path if we contain no directory separator.
8680 *[\\/]* ) as_myself
=$0 ;;
8681 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8685 test -z "$as_dir" && as_dir
=.
8686 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
8692 # We did not find ourselves, most probably we were run as `sh COMMAND'
8693 # in which case we are not to be found in the path.
8694 if test "x$as_myself" = x
; then
8697 if test ! -f "$as_myself"; then
8698 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
8699 { (exit 1); exit 1; }
8702 # Work around bugs in pre-3.0 UWIN ksh.
8703 for as_var
in ENV MAIL MAILPATH
8704 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
8712 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
8713 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
8714 LC_TELEPHONE LC_TIME
8716 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
8717 eval $as_var=C
; export $as_var
8719 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
8723 # Required to use basename.
8724 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
8725 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
8731 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
8732 as_basename
=basename
8738 # Name of the executable.
8739 as_me
=`$as_basename -- "$0" ||
8740 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8741 X"$0" : 'X\(//\)$' \| \
8742 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
8744 sed '/^.*\/\([^/][^/]*\)\/*$/{
8765 test "x$as_lineno_1" != "x$as_lineno_2" &&
8766 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
8768 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
8769 # uniformly replaced by the line number. The first 'sed' inserts a
8770 # line-number line after each line using $LINENO; the second 'sed'
8771 # does the real work. The second script uses 'N' to pair each
8772 # line-number line with the line containing $LINENO, and appends
8773 # trailing '-' during substitution so that $LINENO is not a special
8775 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
8776 # scripts with optimization help from Paolo Bonzini. Blame Lee
8777 # E. McMahon (1931-1989) for sed's syntax. :-)
8789 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
8793 chmod +x
"$as_me.lineno" ||
8794 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
8795 { (exit 1); exit 1; }; }
8797 # Don't try to exec as it changes $[0], causing all sort of problems
8798 # (the dirname of $[0] is not the place where we might find the
8799 # original and so on. Autoconf is especially sensitive to this).
8801 # Exit status is that of the last command.
8806 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
8812 ECHO_C
= ECHO_N
= ECHO_T
=
8815 case `echo 'x\c'` in
8816 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
8823 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
8824 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
8830 rm -f conf$$ conf$$.exe conf$$.
file
8831 if test -d conf$$.dir
; then
8832 rm -f conf$$.dir
/conf$$.
file
8838 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
8840 # ... but there are two gotchas:
8841 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
8842 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
8843 # In both cases, we have to default to `cp -p'.
8844 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
8846 elif ln conf$$.
file conf$$
2>/dev
/null
; then
8851 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
8852 rmdir conf$$.dir
2>/dev
/null
8854 if mkdir
-p .
2>/dev
/null
; then
8857 test -d .
/-p && rmdir .
/-p
8861 if test -x / >/dev
/null
2>&1; then
8864 if ls -dL / >/dev
/null
2>&1; then
8871 if test -d "$1"; then
8877 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
8878 ???[sx]*):;;*)false;;esac;fi
8882 as_executable_p
=$as_test_x
8884 # Sed expression to map a string onto a valid CPP name.
8885 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8887 # Sed expression to map a string onto a valid variable name.
8888 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8893 # Save the log message, to keep $[0] and so on meaningful, and to
8894 # report actual input values of CONFIG_FILES etc. instead of their
8895 # values after options handling.
8897 This file was extended by GRUB $as_me 1.96, which was
8898 generated by GNU Autoconf 2.61. Invocation command line was
8900 CONFIG_FILES = $CONFIG_FILES
8901 CONFIG_HEADERS = $CONFIG_HEADERS
8902 CONFIG_LINKS = $CONFIG_LINKS
8903 CONFIG_COMMANDS = $CONFIG_COMMANDS
8906 on `(hostname || uname -n) 2>/dev/null | sed 1q`
8911 cat >>$CONFIG_STATUS <<_ACEOF
8912 # Files that config.status was made for.
8913 config_files="$ac_config_files"
8914 config_headers="$ac_config_headers"
8915 config_links="$ac_config_links"
8919 cat >>$CONFIG_STATUS <<\_ACEOF
8921 \`$as_me' instantiates files from templates according to the
8922 current configuration.
8924 Usage: $0 [OPTIONS] [FILE]...
8926 -h, --help print this help, then exit
8927 -V, --version print version number and configuration settings, then exit
8928 -q, --quiet do not print progress messages
8929 -d, --debug don't remove temporary files
8930 --recheck update $as_me by reconfiguring in the same conditions
8931 --file=FILE[:TEMPLATE]
8932 instantiate the configuration file FILE
8933 --header=FILE[:TEMPLATE]
8934 instantiate the configuration header FILE
8936 Configuration files:
8939 Configuration headers:
8942 Configuration links:
8945 Report bugs to <bug-autoconf@gnu.org>."
8948 cat >>$CONFIG_STATUS <<_ACEOF
8950 GRUB config.status 1.96
8951 configured by $0, generated by GNU Autoconf 2.61,
8952 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
8954 Copyright (C) 2006 Free Software Foundation, Inc.
8955 This config.status script is free software; the Free Software Foundation
8956 gives unlimited permission to copy, distribute and modify it."
8963 cat >>$CONFIG_STATUS <<\_ACEOF
8964 # If no file are specified by the user, then we need to provide default
8965 # value. By we need to know if files were specified by the user.
8971 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
8972 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
8983 # Handling of the options.
8984 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
8986 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
8987 echo "$ac_cs_version"; exit ;;
8988 --debug |
--debu |
--deb |
--de |
--d |
-d )
8990 --file |
--fil |
--fi |
--f )
8992 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
8993 ac_need_defaults
=false
;;
8994 --header |
--heade |
--head |
--hea )
8996 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
8997 ac_need_defaults
=false
;;
8999 # Conflict between --help and --header
9000 { echo "$as_me: error: ambiguous option: $1
9001 Try \`$0 --help' for more information." >&2
9002 { (exit 1); exit 1; }; };;
9003 --help |
--hel |
-h )
9004 echo "$ac_cs_usage"; exit ;;
9005 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
9006 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
9010 -*) { echo "$as_me: error: unrecognized option: $1
9011 Try \`$0 --help' for more information." >&2
9012 { (exit 1); exit 1; }; } ;;
9014 *) ac_config_targets
="$ac_config_targets $1"
9015 ac_need_defaults
=false
;;
9021 ac_configure_extra_args
=
9023 if $ac_cs_silent; then
9025 ac_configure_extra_args
="$ac_configure_extra_args --silent"
9029 cat >>$CONFIG_STATUS <<_ACEOF
9030 if \$ac_cs_recheck; then
9031 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
9034 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9038 cat >>$CONFIG_STATUS <<\_ACEOF
9042 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9043 ## Running $as_me. ##
9049 cat >>$CONFIG_STATUS <<_ACEOF
9052 cat >>$CONFIG_STATUS <<\_ACEOF
9054 # Handling of arguments.
9055 for ac_config_target
in $ac_config_targets
9057 case $ac_config_target in
9058 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
9059 "include/grub/cpu") CONFIG_LINKS
="$CONFIG_LINKS include/grub/cpu:include/grub/$target_cpu" ;;
9060 "include/grub/machine") CONFIG_LINKS
="$CONFIG_LINKS include/grub/machine:include/grub/$target_cpu/$platform" ;;
9061 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
9062 "gensymlist.sh") CONFIG_FILES
="$CONFIG_FILES gensymlist.sh" ;;
9063 "genkernsyms.sh") CONFIG_FILES
="$CONFIG_FILES genkernsyms.sh" ;;
9064 "stamp-h") CONFIG_FILES
="$CONFIG_FILES stamp-h" ;;
9066 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
9067 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
9068 { (exit 1); exit 1; }; };;
9073 # If the user did not use the arguments to specify the items to instantiate,
9074 # then the envvar interface is used. Set only those that are not.
9075 # We use the long form for the default assignment because of an extremely
9076 # bizarre bug on SunOS 4.1.3.
9077 if $ac_need_defaults; then
9078 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
9079 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
9080 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS
=$config_links
9083 # Have a temporary directory for convenience. Make it in the build tree
9084 # simply because there is no reason against having it here, and in addition,
9085 # creating and moving files from /tmp can sometimes cause problems.
9086 # Hook for its removal unless debugging.
9087 # Note that there is a small window in which the directory will not be cleaned:
9088 # after its creation but before its name has been assigned to `$tmp'.
9092 trap 'exit_status=$?
9093 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
9095 trap '{ (exit 1); exit 1; }' 1 2 13 15
9097 # Create a (secure) tmp directory for tmp files.
9100 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
9101 test -n "$tmp" && test -d "$tmp"
9104 tmp
=.
/conf$$
-$RANDOM
9105 (umask 077 && mkdir
"$tmp")
9108 echo "$me: cannot create a temporary directory in ." >&2
9109 { (exit 1); exit 1; }
9113 # Set up the sed scripts for CONFIG_FILES section.
9116 # No need to generate the scripts if there are no CONFIG_FILES.
9117 # This happens for instance when ./config.status config.h
9118 if test -n "$CONFIG_FILES"; then
9125 for ac_last_try
in false false false false false
:; do
9126 cat >conf$
$subs.
sed <<_ACEOF
9127 SHELL!$SHELL$ac_delim
9128 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
9129 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
9130 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
9131 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
9132 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
9133 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
9134 exec_prefix!$exec_prefix$ac_delim
9135 prefix!$prefix$ac_delim
9136 program_transform_name!$program_transform_name$ac_delim
9137 bindir!$bindir$ac_delim
9138 sbindir!$sbindir$ac_delim
9139 libexecdir!$libexecdir$ac_delim
9140 datarootdir!$datarootdir$ac_delim
9141 datadir!$datadir$ac_delim
9142 sysconfdir!$sysconfdir$ac_delim
9143 sharedstatedir!$sharedstatedir$ac_delim
9144 localstatedir!$localstatedir$ac_delim
9145 includedir!$includedir$ac_delim
9146 oldincludedir!$oldincludedir$ac_delim
9147 docdir!$docdir$ac_delim
9148 infodir!$infodir$ac_delim
9149 htmldir!$htmldir$ac_delim
9150 dvidir!$dvidir$ac_delim
9151 pdfdir!$pdfdir$ac_delim
9152 psdir!$psdir$ac_delim
9153 libdir!$libdir$ac_delim
9154 localedir!$localedir$ac_delim
9155 mandir!$mandir$ac_delim
9157 ECHO_C!$ECHO_C$ac_delim
9158 ECHO_N!$ECHO_N$ac_delim
9159 ECHO_T!$ECHO_T$ac_delim
9161 build_alias!$build_alias$ac_delim
9162 host_alias!$host_alias$ac_delim
9163 target_alias!$target_alias$ac_delim
9164 build!$build$ac_delim
9165 build_cpu!$build_cpu$ac_delim
9166 build_vendor!$build_vendor$ac_delim
9167 build_os!$build_os$ac_delim
9169 host_cpu!$host_cpu$ac_delim
9170 host_vendor!$host_vendor$ac_delim
9171 host_os!$host_os$ac_delim
9172 target!$target$ac_delim
9173 target_cpu!$target_cpu$ac_delim
9174 target_vendor!$target_vendor$ac_delim
9175 target_os!$target_os$ac_delim
9176 platform!$platform$ac_delim
9179 UNIFONT_BDF!$UNIFONT_BDF$ac_delim
9180 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
9181 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
9182 INSTALL_DATA!$INSTALL_DATA$ac_delim
9184 SET_MAKE!$SET_MAKE$ac_delim
9186 HELP2MAN!$HELP2MAN$ac_delim
9188 CFLAGS!$CFLAGS$ac_delim
9189 LDFLAGS!$LDFLAGS$ac_delim
9190 CPPFLAGS!$CPPFLAGS$ac_delim
9191 ac_ct_CC!$ac_ct_CC$ac_delim
9192 EXEEXT!$EXEEXT$ac_delim
9193 OBJEXT!$OBJEXT$ac_delim
9196 EGREP!$EGREP$ac_delim
9197 LIBLZO!$LIBLZO$ac_delim
9198 enable_lzo!$enable_lzo$ac_delim
9199 TARGET_IMG_LDSCRIPT!$TARGET_IMG_LDSCRIPT$ac_delim
9200 TARGET_IMG_LDFLAGS!$TARGET_IMG_LDFLAGS$ac_delim
9201 TARGET_OBJ2ELF!$TARGET_OBJ2ELF$ac_delim
9202 TARGET_CC!$TARGET_CC$ac_delim
9203 ac_ct_TARGET_CC!$ac_ct_TARGET_CC$ac_delim
9204 OBJCOPY!$OBJCOPY$ac_delim
9205 STRIP!$STRIP$ac_delim
9207 TARGET_CFLAGS!$TARGET_CFLAGS$ac_delim
9208 TARGET_CPPFLAGS!$TARGET_CPPFLAGS$ac_delim
9209 TARGET_LDFLAGS!$TARGET_LDFLAGS$ac_delim
9210 MODULE_LDFLAGS!$MODULE_LDFLAGS$ac_delim
9211 LIBCURSES!$LIBCURSES$ac_delim
9212 enable_grub_emu!$enable_grub_emu$ac_delim
9213 enable_grub_fstest!$enable_grub_fstest$ac_delim
9214 enable_grub_pe2elf!$enable_grub_pe2elf$ac_delim
9215 FREETYPE!$FREETYPE$ac_delim
9216 enable_grub_mkfont!$enable_grub_mkfont$ac_delim
9217 freetype_cflags!$freetype_cflags$ac_delim
9218 freetype_libs!$freetype_libs$ac_delim
9219 LIBOBJS!$LIBOBJS$ac_delim
9220 LTLIBOBJS!$LTLIBOBJS$ac_delim
9223 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 94; then
9225 elif $ac_last_try; then
9226 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
9227 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
9228 { (exit 1); exit 1; }; }
9230 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
9234 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
9235 if test -n "$ac_eof"; then
9236 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
9237 ac_eof
=`expr $ac_eof + 1`
9240 cat >>$CONFIG_STATUS <<_ACEOF
9241 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
9242 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
9245 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
9246 s/^/s,@/; s/!/@,|#_!!_#|/
9249 s/'"$ac_delim"'$/,g/; t
9251 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
9252 ' >>$CONFIG_STATUS <conf$
$subs.
sed
9253 rm -f conf$
$subs.
sed
9254 cat >>$CONFIG_STATUS <<_ACEOF
9261 # VPATH may cause trouble with some makes, so we remove $(srcdir),
9262 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
9263 # trailing colons and then remove the whole line if VPATH becomes empty
9264 # (actually we leave an empty line to preserve line numbers).
9265 if test "x$srcdir" = x.
; then
9266 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
9270 s/^\([^=]*=[ ]*\):*/\1/
9276 cat >>$CONFIG_STATUS <<\_ACEOF
9277 fi # test -n "$CONFIG_FILES"
9280 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS :L
$CONFIG_LINKS
9283 :[FHLC
]) ac_mode
=$ac_tag; continue;;
9285 case $ac_mode$ac_tag in
9287 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
9288 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
9289 { (exit 1); exit 1; }; };;
9290 :[FH
]-) ac_tag
=-:-;;
9291 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
9308 -) ac_f
="$tmp/stdin";;
9309 *) # Look for the file first in the build tree, then in the source tree
9310 # (if the path is not absolute). The absolute path cannot be DOS-style,
9311 # because $ac_f cannot contain `:'.
9315 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
9317 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
9318 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
9319 { (exit 1); exit 1; }; };;
9321 ac_file_inputs
="$ac_file_inputs $ac_f"
9324 # Let's still pretend it is `configure' which instantiates (i.e., don't
9325 # use $as_me), people would be surprised to read:
9326 # /* config.h. Generated by config.status. */
9327 configure_input
="Generated from "`IFS=:
9328 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
9329 if test x
"$ac_file" != x-
; then
9330 configure_input
="$ac_file. $configure_input"
9331 { echo "$as_me:$LINENO: creating $ac_file" >&5
9332 echo "$as_me: creating $ac_file" >&6;}
9336 *:-:* |
*:-) cat >"$tmp/stdin";;
9341 ac_dir
=`$as_dirname -- "$ac_file" ||
9342 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9343 X"$ac_file" : 'X\(//\)[^/]' \| \
9344 X"$ac_file" : 'X\(//\)$' \| \
9345 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
9347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9366 -*) as_dir
=.
/$as_dir;;
9368 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
9372 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
9373 *) as_qdir
=$as_dir;;
9375 as_dirs
="'$as_qdir' $as_dirs"
9376 as_dir
=`$as_dirname -- "$as_dir" ||
9377 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9378 X"$as_dir" : 'X\(//\)[^/]' \| \
9379 X"$as_dir" : 'X\(//\)$' \| \
9380 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
9382 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9399 test -d "$as_dir" && break
9401 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
9402 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
9403 echo "$as_me: error: cannot create directory $as_dir" >&2;}
9404 { (exit 1); exit 1; }; }; }
9408 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
9410 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9411 # A ".." for each directory in $ac_dir_suffix.
9412 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
9413 case $ac_top_builddir_sub in
9414 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
9415 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
9418 ac_abs_top_builddir
=$ac_pwd
9419 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
9420 # for backward compatibility:
9421 ac_top_builddir
=$ac_top_build_prefix
9424 .
) # We are building in place.
9426 ac_top_srcdir
=$ac_top_builddir_sub
9427 ac_abs_top_srcdir
=$ac_pwd ;;
9428 [\\/]* | ?
:[\\/]* ) # Absolute name.
9429 ac_srcdir
=$srcdir$ac_dir_suffix;
9430 ac_top_srcdir
=$srcdir
9431 ac_abs_top_srcdir
=$srcdir ;;
9433 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
9434 ac_top_srcdir
=$ac_top_build_prefix$srcdir
9435 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
9437 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
9447 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
9448 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
9452 cat >>$CONFIG_STATUS <<\_ACEOF
9453 # If the template does not know about datarootdir, expand it.
9454 # FIXME: This hack should be removed a few years after 2.60.
9455 ac_datarootdir_hack
=; ac_datarootdir_seen
=
9457 case `sed -n '/datarootdir/ {
9466 ' $ac_file_inputs` in
9467 *datarootdir
*) ac_datarootdir_seen
=yes;;
9468 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
9469 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
9470 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
9472 cat >>$CONFIG_STATUS <<_ACEOF
9473 ac_datarootdir_hack='
9474 s&@datadir@&$datadir&g
9475 s&@docdir@&$docdir&g
9476 s&@infodir@&$infodir&g
9477 s&@localedir@&$localedir&g
9478 s&@mandir@&$mandir&g
9479 s&\\\${datarootdir}&$datarootdir&g' ;;
9483 # Neutralize VPATH when `$srcdir' = `.'.
9484 # Shell code in configure.ac might set extrasub.
9485 # FIXME: do we really want to maintain this feature?
9486 cat >>$CONFIG_STATUS <<_ACEOF
9490 cat >>$CONFIG_STATUS <<\_ACEOF
9492 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
9493 s
&@configure_input@
&$configure_input&;t t
9494 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
9495 s
&@srcdir@
&$ac_srcdir&;t t
9496 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
9497 s
&@top_srcdir@
&$ac_top_srcdir&;t t
9498 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
9499 s
&@builddir@
&$ac_builddir&;t t
9500 s
&@abs_builddir@
&$ac_abs_builddir&;t t
9501 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
9502 s
&@INSTALL@
&$ac_INSTALL&;t t
9503 $ac_datarootdir_hack
9504 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" >$tmp/out
9506 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
9507 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
9508 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
9509 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
9510 which seems to be undefined. Please make sure it is defined." >&5
9511 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
9512 which seems to be undefined. Please make sure it is defined." >&2;}
9516 -) cat "$tmp/out"; rm -f "$tmp/out";;
9517 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
9526 # Transform confdefs.h into a sed script `conftest.defines', that
9527 # substitutes the proper values into config.h.in to produce config.h.
9528 rm -f conftest.defines conftest.
tail
9529 # First, append a space to every undef/define line, to ease matching.
9530 echo 's/$/ /' >conftest.defines
9531 # Then, protect against being on the right side of a sed subst, or in
9532 # an unquoted here document, in config.status. If some macros were
9533 # called several times there might be several #defines for the same
9534 # symbol, which is useless. But do not sort them, since the last
9535 # AC_DEFINE must be honored.
9536 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
9537 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
9538 # NAME is the cpp macro being defined, VALUE is the value it is being given.
9539 # PARAMS is the parameter list in the macro definition--in most cases, it's
9540 # just an empty string.
9541 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
9542 ac_dB
='\\)[ (].*,\\1define\\2'
9550 s/^[ ]*#[ ]*define[ ][ ]*//
9555 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
9556 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
9557 ' >>conftest.defines
9559 # Remove the space that was appended to ease matching.
9560 # Then replace #undef with comments. This is necessary, for
9561 # example, in the case of _POSIX_SOURCE, which is predefined and required
9562 # on some systems where configure will not decide to define it.
9563 # (The regexp can be short, since the line contains either #define or #undef.)
9565 s,^[ #]*u.*,/* & */,' >>conftest.defines
9567 # Break up conftest.defines:
9570 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
9571 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
9572 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
9574 ac_in
='$ac_file_inputs'
9575 ac_out
='"$tmp/out1"'
9576 ac_nxt
='"$tmp/out2"'
9580 # Write a here document:
9581 cat >>$CONFIG_STATUS <<_ACEOF
9582 # First, check the format of the line:
9583 cat >"\$tmp/defines.sed" <<\\CEOF
9584 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
9585 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
9589 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
9591 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
9592 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
9593 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
9594 grep . conftest.
tail >/dev
/null ||
break
9595 rm -f conftest.defines
9596 mv conftest.
tail conftest.defines
9598 rm -f conftest.defines conftest.
tail
9600 echo "ac_result=$ac_in" >>$CONFIG_STATUS
9601 cat >>$CONFIG_STATUS <<\_ACEOF
9602 if test x
"$ac_file" != x-
; then
9603 echo "/* $configure_input */" >"$tmp/config.h"
9604 cat "$ac_result" >>"$tmp/config.h"
9605 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
9606 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
9607 echo "$as_me: $ac_file is unchanged" >&6;}
9610 mv "$tmp/config.h" $ac_file
9613 echo "/* $configure_input */"
9623 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_file" >&5
9624 echo "$as_me: linking $srcdir/$ac_source to $ac_file" >&6;}
9626 if test ! -r "$srcdir/$ac_source"; then
9627 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
9628 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
9629 { (exit 1); exit 1; }; }
9633 # Try a relative symlink, then a hard link, then a copy.
9635 [\\/$
]* | ?
:[\\/]* ) ac_rel_source
=$srcdir/$ac_source ;;
9636 *) ac_rel_source
=$ac_top_build_prefix$srcdir/$ac_source ;;
9638 ln -s "$ac_rel_source" "$ac_file" 2>/dev
/null ||
9639 ln "$srcdir/$ac_source" "$ac_file" 2>/dev
/null ||
9640 cp -p "$srcdir/$ac_source" "$ac_file" ||
9641 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_file" >&5
9642 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_file" >&2;}
9643 { (exit 1); exit 1; }; }
9649 case $ac_file$ac_mode in
9650 "stamp-h":F
) echo timestamp
> stamp-h
;;
9656 { (exit 0); exit 0; }
9658 chmod +x
$CONFIG_STATUS
9659 ac_clean_files
=$ac_clean_files_save
9662 # configure is writing to config.log, and then calls config.status.
9663 # config.status does its own redirection, appending to config.log.
9664 # Unfortunately, on DOS this fails, as config.log is still kept open
9665 # by configure, so config.status won't be able to write to it; its
9666 # output is simply discarded. So we exec the FD to /dev/null,
9667 # effectively closing config.log, so it can be properly (re)opened and
9668 # appended to by config.status. When coming back to configure, we
9669 # need to make the FD available again.
9670 if test "$no_create" != yes; then
9672 ac_config_status_args
=
9673 test "$silent" = yes &&
9674 ac_config_status_args
="$ac_config_status_args --quiet"
9676 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
9678 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9679 # would make configure fail if this is the last instruction.
9680 $ac_cs_success ||
{ (exit 1); exit 1; }