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
715 ac_precious_vars
='build_alias
726 # Initialize some variables set by options.
728 ac_init_version
=false
729 # The variables have the same names as the options, with
730 # dashes changed to underlines.
738 program_transform_name
=s
,x
,x
,
746 # Installation directory options.
747 # These are left unexpanded so users can "make install exec_prefix=/foo"
748 # and all the variables that are supposed to be based on exec_prefix
749 # by default will actually change.
750 # Use braces instead of parens because sh, perl, etc. also accept them.
751 # (The list follows the same order as the GNU Coding Standards.)
752 bindir
='${exec_prefix}/bin'
753 sbindir
='${exec_prefix}/sbin'
754 libexecdir
='${exec_prefix}/libexec'
755 datarootdir
='${prefix}/share'
756 datadir
='${datarootdir}'
757 sysconfdir
='${prefix}/etc'
758 sharedstatedir
='${prefix}/com'
759 localstatedir
='${prefix}/var'
760 includedir
='${prefix}/include'
761 oldincludedir
='/usr/include'
762 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
763 infodir
='${datarootdir}/info'
768 libdir
='${exec_prefix}/lib'
769 localedir
='${datarootdir}/locale'
770 mandir
='${datarootdir}/man'
776 # If the previous option needs an argument, assign it.
777 if test -n "$ac_prev"; then
778 eval $ac_prev=\
$ac_option
784 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
788 # Accept the important Cygnus configure options, so we can diagnose typos.
790 case $ac_dashdash$ac_option in
794 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
796 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
799 -build |
--build |
--buil |
--bui |
--bu)
800 ac_prev
=build_alias
;;
801 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
802 build_alias
=$ac_optarg ;;
804 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
805 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
806 ac_prev
=cache_file
;;
807 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
808 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
809 cache_file
=$ac_optarg ;;
812 cache_file
=config.cache
;;
814 -datadir |
--datadir |
--datadi |
--datad)
816 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
817 datadir
=$ac_optarg ;;
819 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
820 |
--dataroo |
--dataro |
--datar)
821 ac_prev
=datarootdir
;;
822 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
823 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
824 datarootdir
=$ac_optarg ;;
826 -disable-* |
--disable-*)
827 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
828 # Reject names that are not valid shell variable names.
829 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
830 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
831 { (exit 1); exit 1; }; }
832 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
833 eval enable_
$ac_feature=no
;;
835 -docdir |
--docdir |
--docdi |
--doc |
--do)
837 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
840 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
842 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
845 -enable-* |
--enable-*)
846 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
847 # Reject names that are not valid shell variable names.
848 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
849 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
850 { (exit 1); exit 1; }; }
851 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
852 eval enable_
$ac_feature=\
$ac_optarg ;;
854 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
855 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
856 |
--exec |
--exe |
--ex)
857 ac_prev
=exec_prefix
;;
858 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
859 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
860 |
--exec=* |
--exe=* |
--ex=*)
861 exec_prefix
=$ac_optarg ;;
863 -gas |
--gas |
--ga |
--g)
864 # Obsolete; use --with-gas.
867 -help |
--help |
--hel |
--he |
-h)
869 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
870 ac_init_help
=recursive
;;
871 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
872 ac_init_help
=short
;;
874 -host |
--host |
--hos |
--ho)
875 ac_prev
=host_alias
;;
876 -host=* |
--host=* |
--hos=* |
--ho=*)
877 host_alias
=$ac_optarg ;;
879 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
881 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
883 htmldir
=$ac_optarg ;;
885 -includedir |
--includedir |
--includedi |
--included |
--include \
886 |
--includ |
--inclu |
--incl |
--inc)
887 ac_prev
=includedir
;;
888 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
889 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
890 includedir
=$ac_optarg ;;
892 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
894 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
895 infodir
=$ac_optarg ;;
897 -libdir |
--libdir |
--libdi |
--libd)
899 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
902 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
903 |
--libexe |
--libex |
--libe)
904 ac_prev
=libexecdir
;;
905 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
906 |
--libexe=* |
--libex=* |
--libe=*)
907 libexecdir
=$ac_optarg ;;
909 -localedir |
--localedir |
--localedi |
--localed |
--locale)
911 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
912 localedir
=$ac_optarg ;;
914 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
915 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
916 ac_prev
=localstatedir
;;
917 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
918 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
919 localstatedir
=$ac_optarg ;;
921 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
923 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
927 # Obsolete; use --without-fp.
930 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
931 |
--no-cr |
--no-c |
-n)
934 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
935 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
938 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
939 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
940 |
--oldin |
--oldi |
--old |
--ol |
--o)
941 ac_prev
=oldincludedir
;;
942 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
943 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
944 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
945 oldincludedir
=$ac_optarg ;;
947 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
949 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
952 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
953 |
--program-pre |
--program-pr |
--program-p)
954 ac_prev
=program_prefix
;;
955 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
956 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
957 program_prefix
=$ac_optarg ;;
959 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
960 |
--program-suf |
--program-su |
--program-s)
961 ac_prev
=program_suffix
;;
962 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
963 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
964 program_suffix
=$ac_optarg ;;
966 -program-transform-name |
--program-transform-name \
967 |
--program-transform-nam |
--program-transform-na \
968 |
--program-transform-n |
--program-transform- \
969 |
--program-transform |
--program-transfor \
970 |
--program-transfo |
--program-transf \
971 |
--program-trans |
--program-tran \
972 |
--progr-tra |
--program-tr |
--program-t)
973 ac_prev
=program_transform_name
;;
974 -program-transform-name=* |
--program-transform-name=* \
975 |
--program-transform-nam=* |
--program-transform-na=* \
976 |
--program-transform-n=* |
--program-transform-=* \
977 |
--program-transform=* |
--program-transfor=* \
978 |
--program-transfo=* |
--program-transf=* \
979 |
--program-trans=* |
--program-tran=* \
980 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
981 program_transform_name
=$ac_optarg ;;
983 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
985 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
988 -psdir |
--psdir |
--psdi |
--psd |
--ps)
990 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
993 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
994 |
-silent |
--silent |
--silen |
--sile |
--sil)
997 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
999 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1001 sbindir
=$ac_optarg ;;
1003 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1004 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1005 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1007 ac_prev
=sharedstatedir
;;
1008 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1009 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1010 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1012 sharedstatedir
=$ac_optarg ;;
1014 -site |
--site |
--sit)
1016 -site=* |
--site=* |
--sit=*)
1019 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1021 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1022 srcdir
=$ac_optarg ;;
1024 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1025 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1026 ac_prev
=sysconfdir
;;
1027 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1028 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1029 sysconfdir
=$ac_optarg ;;
1031 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1032 ac_prev
=target_alias
;;
1033 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1034 target_alias
=$ac_optarg ;;
1036 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1039 -version |
--version |
--versio |
--versi |
--vers |
-V)
1040 ac_init_version
=: ;;
1043 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1044 # Reject names that are not valid shell variable names.
1045 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1046 { echo "$as_me: error: invalid package name: $ac_package" >&2
1047 { (exit 1); exit 1; }; }
1048 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1049 eval with_
$ac_package=\
$ac_optarg ;;
1051 -without-* |
--without-*)
1052 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1053 # Reject names that are not valid shell variable names.
1054 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1055 { echo "$as_me: error: invalid package name: $ac_package" >&2
1056 { (exit 1); exit 1; }; }
1057 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1058 eval with_
$ac_package=no
;;
1061 # Obsolete; use --with-x.
1064 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1065 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1066 ac_prev
=x_includes
;;
1067 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1068 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1069 x_includes
=$ac_optarg ;;
1071 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1072 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1073 ac_prev
=x_libraries
;;
1074 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1075 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1076 x_libraries
=$ac_optarg ;;
1078 -*) { echo "$as_me: error: unrecognized option: $ac_option
1079 Try \`$0 --help' for more information." >&2
1080 { (exit 1); exit 1; }; }
1084 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1085 # Reject names that are not valid shell variable names.
1086 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1087 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1088 { (exit 1); exit 1; }; }
1089 eval $ac_envvar=\
$ac_optarg
1090 export $ac_envvar ;;
1093 # FIXME: should be removed in autoconf 3.0.
1094 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1095 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1096 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1097 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1103 if test -n "$ac_prev"; then
1104 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1105 { echo "$as_me: error: missing argument to $ac_option" >&2
1106 { (exit 1); exit 1; }; }
1109 # Be sure to have absolute directory names.
1110 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1111 datadir sysconfdir sharedstatedir localstatedir includedir \
1112 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1113 libdir localedir mandir
1115 eval ac_val
=\$
$ac_var
1117 [\\/$
]* | ?
:[\\/]* ) continue;;
1118 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1120 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1121 { (exit 1); exit 1; }; }
1124 # There might be people who depend on the old broken behavior: `$host'
1125 # used to hold the argument of --host etc.
1126 # FIXME: To remove some day.
1129 target
=$target_alias
1131 # FIXME: To remove some day.
1132 if test "x$host_alias" != x
; then
1133 if test "x$build_alias" = x
; then
1134 cross_compiling
=maybe
1135 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1136 If a cross compiler is detected then cross compile mode will be used." >&2
1137 elif test "x$build_alias" != "x$host_alias"; then
1143 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1145 test "$silent" = yes && exec 6>/dev
/null
1148 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1149 ac_ls_di
=`ls -di .` &&
1150 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1151 { echo "$as_me: error: Working directory cannot be determined" >&2
1152 { (exit 1); exit 1; }; }
1153 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1154 { echo "$as_me: error: pwd does not report name of working directory" >&2
1155 { (exit 1); exit 1; }; }
1158 # Find the source files, if location was not specified.
1159 if test -z "$srcdir"; then
1160 ac_srcdir_defaulted
=yes
1161 # Try the directory containing this script, then the parent directory.
1162 ac_confdir
=`$as_dirname -- "$0" ||
1163 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1164 X"$0" : 'X\(//\)[^/]' \| \
1165 X"$0" : 'X\(//\)$' \| \
1166 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1168 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1186 if test ! -r "$srcdir/$ac_unique_file"; then
1190 ac_srcdir_defaulted
=no
1192 if test ! -r "$srcdir/$ac_unique_file"; then
1193 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1194 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1195 { (exit 1); exit 1; }; }
1197 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1199 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1200 { (exit 1); exit 1; }; }
1202 # When building in place, set srcdir=.
1203 if test "$ac_abs_confdir" = "$ac_pwd"; then
1206 # Remove unnecessary trailing slashes from srcdir.
1207 # Double slashes in file names in object file debugging info
1208 # mess up M-x gdb in Emacs.
1210 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1212 for ac_var
in $ac_precious_vars; do
1213 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1214 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1215 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1216 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1220 # Report the --help message.
1222 if test "$ac_init_help" = "long"; then
1223 # Omit some internal or obsolete options to make the list less imposing.
1224 # This message is too long to be a string in the A/UX 3.1 sh.
1226 \`configure' configures GRUB 1.96 to adapt to many kinds of systems.
1228 Usage: $0 [OPTION]... [VAR=VALUE]...
1230 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1231 VAR=VALUE. See below for descriptions of some of the useful variables.
1233 Defaults for the options are specified in brackets.
1236 -h, --help display this help and exit
1237 --help=short display options specific to this package
1238 --help=recursive display the short help of all the included packages
1239 -V, --version display version information and exit
1240 -q, --quiet, --silent do not print \`checking...' messages
1241 --cache-file=FILE cache test results in FILE [disabled]
1242 -C, --config-cache alias for \`--cache-file=config.cache'
1243 -n, --no-create do not create output files
1244 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1246 Installation directories:
1247 --prefix=PREFIX install architecture-independent files in PREFIX
1248 [$ac_default_prefix]
1249 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1252 By default, \`make install' will install all the files in
1253 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1254 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1255 for instance \`--prefix=\$HOME'.
1257 For better control, use the options below.
1259 Fine tuning of the installation directories:
1260 --bindir=DIR user executables [EPREFIX/bin]
1261 --sbindir=DIR system admin executables [EPREFIX/sbin]
1262 --libexecdir=DIR program executables [EPREFIX/libexec]
1263 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1264 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1265 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1266 --libdir=DIR object code libraries [EPREFIX/lib]
1267 --includedir=DIR C header files [PREFIX/include]
1268 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1269 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1270 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1271 --infodir=DIR info documentation [DATAROOTDIR/info]
1272 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1273 --mandir=DIR man documentation [DATAROOTDIR/man]
1274 --docdir=DIR documentation root [DATAROOTDIR/doc/grub]
1275 --htmldir=DIR html documentation [DOCDIR]
1276 --dvidir=DIR dvi documentation [DOCDIR]
1277 --pdfdir=DIR pdf documentation [DOCDIR]
1278 --psdir=DIR ps documentation [DOCDIR]
1284 --program-prefix=PREFIX prepend PREFIX to installed program names
1285 --program-suffix=SUFFIX append SUFFIX to installed program names
1286 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1289 --build=BUILD configure
for building on BUILD
[guessed
]
1290 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1291 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1295 if test -n "$ac_init_help"; then
1296 case $ac_init_help in
1297 short | recursive
) echo "Configuration of GRUB 1.96:";;
1302 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1303 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1304 --disable-largefile omit support
for large files
1305 --enable-lzo use lzo to
compress kernel
(default is lzma
)
1306 --enable-mm-debug include memory manager debugging
1307 --enable-grub-emu build and
install the
`grub-emu' debugging utility
1308 --enable-grub-emu-usb build and install the `grub-emu
' debugging utility
1310 --enable-grub-fstest build and install the `grub-fstest' debugging
1312 --enable-grub-pe2elf build and
install the
`grub-pe2elf' conversion
1314 --enable-grub-mkfont build and install the `grub-mkfont
' utility
1317 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1318 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1319 --with-platform=PLATFORM
1320 select the host platform [guessed]
1322 Some influential environment variables:
1323 CC C compiler command
1324 CFLAGS C compiler flags
1325 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1326 nonstandard directory <lib dir>
1327 LIBS libraries to pass to the linker, e.g. -l<library>
1328 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1329 you have headers in a nonstandard directory <include dir>
1332 Use these variables to override the choices made by `configure' or to
help
1333 it to
find libraries and programs with nonstandard names
/locations.
1335 Report bugs to
<bug-grub@gnu.org
>.
1340 if test "$ac_init_help" = "recursive"; then
1341 # If there are subdirs, report their specific --help.
1342 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1343 test -d "$ac_dir" ||
continue
1347 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1349 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1350 # A ".." for each directory in $ac_dir_suffix.
1351 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1352 case $ac_top_builddir_sub in
1353 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1354 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1357 ac_abs_top_builddir
=$ac_pwd
1358 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1359 # for backward compatibility:
1360 ac_top_builddir
=$ac_top_build_prefix
1363 .
) # We are building in place.
1365 ac_top_srcdir
=$ac_top_builddir_sub
1366 ac_abs_top_srcdir
=$ac_pwd ;;
1367 [\\/]* | ?
:[\\/]* ) # Absolute name.
1368 ac_srcdir
=$srcdir$ac_dir_suffix;
1369 ac_top_srcdir
=$srcdir
1370 ac_abs_top_srcdir
=$srcdir ;;
1372 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1373 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1374 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1376 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1378 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1379 # Check for guested configure.
1380 if test -f "$ac_srcdir/configure.gnu"; then
1382 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1383 elif test -f "$ac_srcdir/configure"; then
1385 $SHELL "$ac_srcdir/configure" --help=recursive
1387 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1389 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1393 test -n "$ac_init_help" && exit $ac_status
1394 if $ac_init_version; then
1397 generated by GNU Autoconf
2.61
1399 Copyright
(C
) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1400 2002, 2003, 2004, 2005, 2006 Free Software Foundation
, Inc.
1401 This configure
script is free software
; the Free Software Foundation
1402 gives unlimited permission to copy
, distribute and modify it.
1406 cat >config.log
<<_ACEOF
1407 This file contains any messages produced by compilers while
1408 running configure, to aid debugging if configure makes a mistake.
1410 It was created by GRUB $as_me 1.96, which was
1411 generated by GNU Autoconf 2.61. Invocation command line was
1423 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1424 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1425 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1426 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1427 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1429 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1430 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1432 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1433 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1434 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1435 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1436 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1437 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1438 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1442 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1446 test -z "$as_dir" && as_dir
=.
1447 echo "PATH: $as_dir"
1463 # Keep a trace of the command line.
1464 # Strip out --no-create and --no-recursion so they do not pile up.
1465 # Strip out --silent because we don't want to record it for future runs.
1466 # Also quote any args containing shell meta-characters.
1467 # Make two passes to allow for proper duplicate-argument suppression.
1471 ac_must_keep_next
=false
1477 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
1478 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1479 |
-silent |
--silent |
--silen |
--sile |
--sil)
1482 ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1485 1) ac_configure_args0
="$ac_configure_args0 '$ac_arg'" ;;
1487 ac_configure_args1
="$ac_configure_args1 '$ac_arg'"
1488 if test $ac_must_keep_next = true
; then
1489 ac_must_keep_next
=false
# Got value, back to normal.
1492 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
1493 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
1494 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
1495 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
1496 case "$ac_configure_args0 " in
1497 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1500 -* ) ac_must_keep_next
=true
;;
1503 ac_configure_args
="$ac_configure_args '$ac_arg'"
1508 $as_unset ac_configure_args0 ||
test "${ac_configure_args0+set}" != set ||
{ ac_configure_args0
=; export ac_configure_args0
; }
1509 $as_unset ac_configure_args1 ||
test "${ac_configure_args1+set}" != set ||
{ ac_configure_args1
=; export ac_configure_args1
; }
1511 # When interrupted or exit'd, cleanup temporary files, and complete
1512 # config.log. We remove comments because anyway the quotes in there
1513 # would cause problems or look ugly.
1514 # WARNING: Use '\'' to represent an apostrophe within the trap.
1515 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1516 trap 'exit_status=$?
1517 # Save into config.log some information that might help in debugging.
1522 ## ---------------- ##
1523 ## Cache variables. ##
1524 ## ---------------- ##
1527 # The following way of writing the cache mishandles newlines in values,
1529 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1530 eval ac_val=\$$ac_var
1534 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1535 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1538 _ | IFS | as_nl) ;; #(
1539 *) $as_unset $ac_var ;;
1544 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1545 *${as_nl}ac_space=\ *)
1547 "s/'\''/'\''\\\\'\'''\''/g;
1548 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1551 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1559 ## ----------------- ##
1560 ## Output variables. ##
1561 ## ----------------- ##
1564 for ac_var in $ac_subst_vars
1566 eval ac_val=\$$ac_var
1568 *\'\''*) ac_val
=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1570 echo "$ac_var='\''$ac_val'\''"
1574 if test -n "$ac_subst_files"; then
1576 ## ------------------- ##
1577 ## File substitutions. ##
1578 ## ------------------- ##
1581 for ac_var
in $ac_subst_files
1583 eval ac_val
=\$
$ac_var
1585 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1587 echo "$ac_var='\''$ac_val'\''"
1592 if test -s confdefs.h; then
1602 test "$ac_signal" != 0 &&
1603 echo "$as_me: caught signal $ac_signal"
1604 echo "$as_me: exit $exit_status"
1606 rm -f core *.core core.conftest.* &&
1607 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1610 for ac_signal
in 1 2 13 15; do
1611 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1615 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1616 rm -f -r conftest
* confdefs.h
1618 # Predefined preprocessor variables.
1620 cat >>confdefs.h
<<_ACEOF
1621 #define PACKAGE_NAME "$PACKAGE_NAME"
1625 cat >>confdefs.h
<<_ACEOF
1626 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1630 cat >>confdefs.h
<<_ACEOF
1631 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1635 cat >>confdefs.h
<<_ACEOF
1636 #define PACKAGE_STRING "$PACKAGE_STRING"
1640 cat >>confdefs.h
<<_ACEOF
1641 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1645 # Let the site file select an alternate cache file if it wants to.
1646 # Prefer explicitly selected file to automatically selected ones.
1647 if test -n "$CONFIG_SITE"; then
1648 set x
"$CONFIG_SITE"
1649 elif test "x$prefix" != xNONE
; then
1650 set x
"$prefix/share/config.site" "$prefix/etc/config.site"
1652 set x
"$ac_default_prefix/share/config.site" \
1653 "$ac_default_prefix/etc/config.site"
1658 if test -r "$ac_site_file"; then
1659 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1660 echo "$as_me: loading site script $ac_site_file" >&6;}
1661 sed 's/^/| /' "$ac_site_file" >&5
1666 if test -r "$cache_file"; then
1667 # Some versions of bash will fail to source /dev/null (special
1668 # files actually), so we avoid doing that.
1669 if test -f "$cache_file"; then
1670 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1671 echo "$as_me: loading cache $cache_file" >&6;}
1673 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
1674 *) .
"./$cache_file";;
1678 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1679 echo "$as_me: creating cache $cache_file" >&6;}
1683 # Check that the precious variables saved in the cache have kept the same
1685 ac_cache_corrupted
=false
1686 for ac_var
in $ac_precious_vars; do
1687 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
1688 eval ac_new_set
=\
$ac_env_${ac_var}_set
1689 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
1690 eval ac_new_val
=\
$ac_env_${ac_var}_value
1691 case $ac_old_set,$ac_new_set in
1693 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1694 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1695 ac_cache_corrupted
=: ;;
1697 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1698 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1699 ac_cache_corrupted
=: ;;
1702 if test "x$ac_old_val" != "x$ac_new_val"; then
1703 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1704 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1705 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1706 echo "$as_me: former value: $ac_old_val" >&2;}
1707 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1708 echo "$as_me: current value: $ac_new_val" >&2;}
1709 ac_cache_corrupted
=:
1712 # Pass precious variables to config.status.
1713 if test "$ac_new_set" = set; then
1715 *\'*) ac_arg
=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1716 *) ac_arg
=$ac_var=$ac_new_val ;;
1718 case " $ac_configure_args " in
1719 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1720 *) ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
1724 if $ac_cache_corrupted; then
1725 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1726 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1727 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1728 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1729 { (exit 1); exit 1; }; }
1757 ac_cpp
='$CPP $CPPFLAGS'
1758 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1759 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1760 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1765 ac_config_headers
="$ac_config_headers config.h"
1768 # Checks for host and target systems.
1770 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1771 if test -f "$ac_dir/install-sh"; then
1773 ac_install_sh
="$ac_aux_dir/install-sh -c"
1775 elif test -f "$ac_dir/install.sh"; then
1777 ac_install_sh
="$ac_aux_dir/install.sh -c"
1779 elif test -f "$ac_dir/shtool"; then
1781 ac_install_sh
="$ac_aux_dir/shtool install -c"
1785 if test -z "$ac_aux_dir"; then
1786 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1787 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1788 { (exit 1); exit 1; }; }
1791 # These three variables are undocumented and unsupported,
1792 # and are intended to be withdrawn in a future Autoconf release.
1793 # They can cause serious problems if a builder's source tree is in a directory
1794 # whose full name contains unusual characters.
1795 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1796 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1797 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1800 # Make sure we can run config.sub.
1801 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
1802 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1803 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1804 { (exit 1); exit 1; }; }
1806 { echo "$as_me:$LINENO: checking build system type" >&5
1807 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1808 if test "${ac_cv_build+set}" = set; then
1809 echo $ECHO_N "(cached) $ECHO_C" >&6
1811 ac_build_alias
=$build_alias
1812 test "x$ac_build_alias" = x
&&
1813 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
1814 test "x$ac_build_alias" = x
&&
1815 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1816 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1817 { (exit 1); exit 1; }; }
1818 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1819 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1820 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1821 { (exit 1); exit 1; }; }
1824 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1825 echo "${ECHO_T}$ac_cv_build" >&6; }
1826 case $ac_cv_build in
1828 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1829 echo "$as_me: error: invalid value of canonical build" >&2;}
1830 { (exit 1); exit 1; }; };;
1833 ac_save_IFS
=$IFS; IFS
='-'
1839 # Remember, the first character of IFS is used to create $*,
1840 # except with old shells:
1843 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
1846 { echo "$as_me:$LINENO: checking host system type" >&5
1847 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1848 if test "${ac_cv_host+set}" = set; then
1849 echo $ECHO_N "(cached) $ECHO_C" >&6
1851 if test "x$host_alias" = x
; then
1852 ac_cv_host
=$ac_cv_build
1854 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1855 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1856 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1857 { (exit 1); exit 1; }; }
1861 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1862 echo "${ECHO_T}$ac_cv_host" >&6; }
1865 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1866 echo "$as_me: error: invalid value of canonical host" >&2;}
1867 { (exit 1); exit 1; }; };;
1870 ac_save_IFS
=$IFS; IFS
='-'
1876 # Remember, the first character of IFS is used to create $*,
1877 # except with old shells:
1880 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
1883 { echo "$as_me:$LINENO: checking target system type" >&5
1884 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
1885 if test "${ac_cv_target+set}" = set; then
1886 echo $ECHO_N "(cached) $ECHO_C" >&6
1888 if test "x$target_alias" = x
; then
1889 ac_cv_target
=$ac_cv_host
1891 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
1892 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
1893 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
1894 { (exit 1); exit 1; }; }
1898 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1899 echo "${ECHO_T}$ac_cv_target" >&6; }
1900 case $ac_cv_target in
1902 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
1903 echo "$as_me: error: invalid value of canonical target" >&2;}
1904 { (exit 1); exit 1; }; };;
1906 target
=$ac_cv_target
1907 ac_save_IFS
=$IFS; IFS
='-'
1913 # Remember, the first character of IFS is used to create $*,
1914 # except with old shells:
1917 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
1920 # The aliases save the names the user supplied, while $host etc.
1921 # will get canonicalized.
1922 test -n "$target_alias" &&
1923 test "$program_prefix$program_suffix$program_transform_name" = \
1925 program_prefix
=${target_alias}-
1927 # Program name transformations
1928 test "$program_prefix" != NONE
&&
1929 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
1930 # Use a double $ so make ignores it.
1931 test "$program_suffix" != NONE
&&
1932 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
1933 # Double any \ or $. echo might interpret backslashes.
1934 # By default was `s,x,x', remove it if useless.
1935 cat <<\_ACEOF
>conftest.
sed
1936 s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//
1938 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
1943 powerpc64
) host_m32
=1 ;;
1946 case "$target_cpu" in
1947 i
[3456]86) target_cpu
=i386
;;
1950 # Specify the platform (such as firmware).
1952 # Check whether --with-platform was given.
1953 if test "${with_platform+set}" = set; then
1954 withval
=$with_platform;
1958 # Guess the platform if not specified.
1959 if test "x$with_platform" = x
; then
1960 case "$target_cpu"-"$target_vendor" in
1961 i386-apple
) platform
=efi
;;
1962 i386-
*) platform
=pc
;;
1963 x86_64-apple
) platform
=efi
;;
1964 x86_64-
*) platform
=pc
;;
1965 powerpc-
*) platform
=ieee1275
;;
1966 powerpc64-
*) platform
=ieee1275
;;
1967 sparc64-
*) platform
=ieee1275
;;
1968 *) { { echo "$as_me:$LINENO: error: unsupported CPU: \"$target_cpu\"" >&5
1969 echo "$as_me: error: unsupported CPU: \"$target_cpu\"" >&2;}
1970 { (exit 1); exit 1; }; } ;;
1973 platform
="$with_platform"
1976 # Adjust CPU unless target was explicitly specified.
1977 if test -z "$target_alias"; then
1978 case "$target_cpu"-"$platform" in
1980 x86_64-
*) target_cpu
=i386
;;
1981 powerpc64-ieee1275
) target_cpu
=powerpc
;;
1985 # Check if the platform is supported, make final adjustments.
1986 case "$target_cpu"-"$platform" in
1991 i386-linuxbios
) platform
=coreboot
;;
1993 powerpc-ieee1275
) ;;
1994 sparc64-ieee1275
) ;;
1995 *) { { echo "$as_me:$LINENO: error: platform \"$platform\" is not supported for target CPU \"$target_cpu\"" >&5
1996 echo "$as_me: error: platform \"$platform\" is not supported for target CPU \"$target_cpu\"" >&2;}
1997 { (exit 1); exit 1; }; } ;;
2000 case "$target_cpu" in
2001 i386 | powerpc
) target_m32
=1 ;;
2002 x86_64 | sparc64
) target_m64
=1 ;;
2006 mingw32
) host_os
=cygwin
;;
2009 # This normalizes the names, and creates a new variable ("host_kernel")
2010 # while at it, since the mapping is not always 1:1 (e.g. different OSes
2011 # using the same kernel type).
2013 gnu
*) host_kernel
=hurd
;;
2014 linux
*) host_kernel
=linux
;;
2015 freebsd
* | kfreebsd
*-gnu) host_kernel
=freebsd
;;
2016 cygwin
) host_kernel
=windows
;;
2027 # Checks for build programs.
2030 # Although cmp is listed in the GNU Coding Standards as a command which
2031 # can used directly, OpenBSD lacks cmp in the default installation.
2034 # Extract the first word of "$ac_prog", so it can be a program name with args.
2035 set dummy
$ac_prog; ac_word
=$2
2036 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2037 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2038 if test "${ac_cv_prog_CMP+set}" = set; then
2039 echo $ECHO_N "(cached) $ECHO_C" >&6
2041 if test -n "$CMP"; then
2042 ac_cv_prog_CMP
="$CMP" # Let the user override the test.
2044 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2048 test -z "$as_dir" && as_dir
=.
2049 for ac_exec_ext
in '' $ac_executable_extensions; do
2050 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2051 ac_cv_prog_CMP
="$ac_prog"
2052 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2062 if test -n "$CMP"; then
2063 { echo "$as_me:$LINENO: result: $CMP" >&5
2064 echo "${ECHO_T}$CMP" >&6; }
2066 { echo "$as_me:$LINENO: result: no" >&5
2067 echo "${ECHO_T}no" >&6; }
2071 test -n "$CMP" && break
2074 if test "x$CMP" = x
; then
2075 { { echo "$as_me:$LINENO: error: cmp is not found" >&5
2076 echo "$as_me: error: cmp is not found" >&2;}
2077 { (exit 1); exit 1; }; }
2080 for ac_prog
in bison
2082 # Extract the first word of "$ac_prog", so it can be a program name with args.
2083 set dummy
$ac_prog; ac_word
=$2
2084 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2085 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2086 if test "${ac_cv_prog_YACC+set}" = set; then
2087 echo $ECHO_N "(cached) $ECHO_C" >&6
2089 if test -n "$YACC"; then
2090 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
2092 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2096 test -z "$as_dir" && as_dir
=.
2097 for ac_exec_ext
in '' $ac_executable_extensions; do
2098 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2099 ac_cv_prog_YACC
="$ac_prog"
2100 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2109 YACC
=$ac_cv_prog_YACC
2110 if test -n "$YACC"; then
2111 { echo "$as_me:$LINENO: result: $YACC" >&5
2112 echo "${ECHO_T}$YACC" >&6; }
2114 { echo "$as_me:$LINENO: result: no" >&5
2115 echo "${ECHO_T}no" >&6; }
2119 test -n "$YACC" && break
2122 if test "x$YACC" = x
; then
2123 { { echo "$as_me:$LINENO: error: bison is not found" >&5
2124 echo "$as_me: error: bison is not found" >&2;}
2125 { (exit 1); exit 1; }; }
2128 for file in /usr
/src
/unifont.bdf
; do
2129 if test -e $file ; then
2136 # Find a good install program. We prefer a C program (faster),
2137 # so one script is as good as another. But avoid the broken or
2138 # incompatible versions:
2139 # SysV /etc/install, /usr/sbin/install
2140 # SunOS /usr/etc/install
2141 # IRIX /sbin/install
2143 # AmigaOS /C/install, which installs bootblocks on floppy discs
2144 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2145 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2146 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2147 # OS/2's system install, which has a completely different semantic
2148 # ./install, which can be erroneously created by make from ./install.sh.
2149 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2150 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2151 if test -z "$INSTALL"; then
2152 if test "${ac_cv_path_install+set}" = set; then
2153 echo $ECHO_N "(cached) $ECHO_C" >&6
2155 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2159 test -z "$as_dir" && as_dir
=.
2160 # Account for people who put trailing slashes in PATH elements.
2162 .
/ | .
// |
/cC
/* | \
2163 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
2164 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
2167 # OSF1 and SCO ODT 3.0 have their own names for install.
2168 # Don't use installbsd from OSF since it installs stuff as root
2170 for ac_prog
in ginstall scoinst
install; do
2171 for ac_exec_ext
in '' $ac_executable_extensions; do
2172 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2173 if test $ac_prog = install &&
2174 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2175 # AIX install. It has an incompatible calling convention.
2177 elif test $ac_prog = install &&
2178 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2179 # program-specific install script used by HP pwplus--don't use.
2182 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
2195 if test "${ac_cv_path_install+set}" = set; then
2196 INSTALL
=$ac_cv_path_install
2198 # As a last resort, use the slow shell script. Don't cache a
2199 # value for INSTALL within a source directory, because that will
2200 # break other packages using the cache if that directory is
2201 # removed, or if the value is a relative name.
2202 INSTALL
=$ac_install_sh
2205 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2206 echo "${ECHO_T}$INSTALL" >&6; }
2208 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2209 # It thinks the first close brace ends the variable substitution.
2210 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2212 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
2214 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2216 for ac_prog
in gawk mawk nawk
awk
2218 # Extract the first word of "$ac_prog", so it can be a program name with args.
2219 set dummy
$ac_prog; ac_word
=$2
2220 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2221 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2222 if test "${ac_cv_prog_AWK+set}" = set; then
2223 echo $ECHO_N "(cached) $ECHO_C" >&6
2225 if test -n "$AWK"; then
2226 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
2228 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2232 test -z "$as_dir" && as_dir
=.
2233 for ac_exec_ext
in '' $ac_executable_extensions; do
2234 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2235 ac_cv_prog_AWK
="$ac_prog"
2236 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2246 if test -n "$AWK"; then
2247 { echo "$as_me:$LINENO: result: $AWK" >&5
2248 echo "${ECHO_T}$AWK" >&6; }
2250 { echo "$as_me:$LINENO: result: no" >&5
2251 echo "${ECHO_T}no" >&6; }
2255 test -n "$AWK" && break
2258 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2259 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2260 set x
${MAKE-make}; ac_make
=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2261 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2262 echo $ECHO_N "(cached) $ECHO_C" >&6
2264 cat >conftest.
make <<\_ACEOF
2267 @
echo '@@@%%%=$(MAKE)=@@@%%%'
2269 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2270 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2272 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
2274 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
2278 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
2279 { echo "$as_me:$LINENO: result: yes" >&5
2280 echo "${ECHO_T}yes" >&6; }
2283 { echo "$as_me:$LINENO: result: no" >&5
2284 echo "${ECHO_T}no" >&6; }
2285 SET_MAKE
="MAKE=${MAKE-make}"
2289 # These are not a "must".
2290 # Extract the first word of "ruby", so it can be a program name with args.
2291 set dummy ruby
; ac_word
=$2
2292 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2293 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2294 if test "${ac_cv_path_RUBY+set}" = set; then
2295 echo $ECHO_N "(cached) $ECHO_C" >&6
2299 ac_cv_path_RUBY
="$RUBY" # Let the user override the test with a path.
2302 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2306 test -z "$as_dir" && as_dir
=.
2307 for ac_exec_ext
in '' $ac_executable_extensions; do
2308 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2309 ac_cv_path_RUBY
="$as_dir/$ac_word$ac_exec_ext"
2310 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2320 RUBY
=$ac_cv_path_RUBY
2321 if test -n "$RUBY"; then
2322 { echo "$as_me:$LINENO: result: $RUBY" >&5
2323 echo "${ECHO_T}$RUBY" >&6; }
2325 { echo "$as_me:$LINENO: result: no" >&5
2326 echo "${ECHO_T}no" >&6; }
2330 # Extract the first word of "help2man", so it can be a program name with args.
2331 set dummy help2man
; ac_word
=$2
2332 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2333 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2334 if test "${ac_cv_path_HELP2MAN+set}" = set; then
2335 echo $ECHO_N "(cached) $ECHO_C" >&6
2339 ac_cv_path_HELP2MAN
="$HELP2MAN" # Let the user override the test with a path.
2342 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2346 test -z "$as_dir" && as_dir
=.
2347 for ac_exec_ext
in '' $ac_executable_extensions; do
2348 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2349 ac_cv_path_HELP2MAN
="$as_dir/$ac_word$ac_exec_ext"
2350 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2360 HELP2MAN
=$ac_cv_path_HELP2MAN
2361 if test -n "$HELP2MAN"; then
2362 { echo "$as_me:$LINENO: result: $HELP2MAN" >&5
2363 echo "${ECHO_T}$HELP2MAN" >&6; }
2365 { echo "$as_me:$LINENO: result: no" >&5
2366 echo "${ECHO_T}no" >&6; }
2372 # Checks for host programs.
2376 ac_cpp
='$CPP $CPPFLAGS'
2377 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2378 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2379 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2380 if test -n "$ac_tool_prefix"; then
2381 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2382 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2383 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2384 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2385 if test "${ac_cv_prog_CC+set}" = set; then
2386 echo $ECHO_N "(cached) $ECHO_C" >&6
2388 if test -n "$CC"; then
2389 ac_cv_prog_CC
="$CC" # Let the user override the test.
2391 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2395 test -z "$as_dir" && as_dir
=.
2396 for ac_exec_ext
in '' $ac_executable_extensions; do
2397 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2398 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2399 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2409 if test -n "$CC"; then
2410 { echo "$as_me:$LINENO: result: $CC" >&5
2411 echo "${ECHO_T}$CC" >&6; }
2413 { echo "$as_me:$LINENO: result: no" >&5
2414 echo "${ECHO_T}no" >&6; }
2419 if test -z "$ac_cv_prog_CC"; then
2421 # Extract the first word of "gcc", so it can be a program name with args.
2422 set dummy gcc
; ac_word
=$2
2423 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2424 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2425 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2426 echo $ECHO_N "(cached) $ECHO_C" >&6
2428 if test -n "$ac_ct_CC"; then
2429 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2431 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2435 test -z "$as_dir" && as_dir
=.
2436 for ac_exec_ext
in '' $ac_executable_extensions; do
2437 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2438 ac_cv_prog_ac_ct_CC
="gcc"
2439 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2448 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2449 if test -n "$ac_ct_CC"; then
2450 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2451 echo "${ECHO_T}$ac_ct_CC" >&6; }
2453 { echo "$as_me:$LINENO: result: no" >&5
2454 echo "${ECHO_T}no" >&6; }
2457 if test "x$ac_ct_CC" = x
; then
2460 case $cross_compiling:$ac_tool_warned in
2462 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2463 whose name does not start with the host triplet. If you think this
2464 configuration is useful to you, please write to autoconf@gnu.org." >&5
2465 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2466 whose name does not start with the host triplet. If you think this
2467 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2468 ac_tool_warned
=yes ;;
2476 if test -z "$CC"; then
2477 if test -n "$ac_tool_prefix"; then
2478 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2479 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2480 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2481 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2482 if test "${ac_cv_prog_CC+set}" = set; then
2483 echo $ECHO_N "(cached) $ECHO_C" >&6
2485 if test -n "$CC"; then
2486 ac_cv_prog_CC
="$CC" # Let the user override the test.
2488 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2492 test -z "$as_dir" && as_dir
=.
2493 for ac_exec_ext
in '' $ac_executable_extensions; do
2494 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2495 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2496 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2506 if test -n "$CC"; then
2507 { echo "$as_me:$LINENO: result: $CC" >&5
2508 echo "${ECHO_T}$CC" >&6; }
2510 { echo "$as_me:$LINENO: result: no" >&5
2511 echo "${ECHO_T}no" >&6; }
2517 if test -z "$CC"; then
2518 # Extract the first word of "cc", so it can be a program name with args.
2519 set dummy cc
; ac_word
=$2
2520 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2521 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2522 if test "${ac_cv_prog_CC+set}" = set; then
2523 echo $ECHO_N "(cached) $ECHO_C" >&6
2525 if test -n "$CC"; then
2526 ac_cv_prog_CC
="$CC" # Let the user override the test.
2529 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2533 test -z "$as_dir" && as_dir
=.
2534 for ac_exec_ext
in '' $ac_executable_extensions; do
2535 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2536 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2537 ac_prog_rejected
=yes
2541 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2548 if test $ac_prog_rejected = yes; then
2549 # We found a bogon in the path, so make sure we never use it.
2550 set dummy
$ac_cv_prog_CC
2552 if test $# != 0; then
2553 # We chose a different compiler from the bogus one.
2554 # However, it has the same basename, so the bogon will be chosen
2555 # first if we set CC to just the basename; use the full file name.
2557 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2563 if test -n "$CC"; then
2564 { echo "$as_me:$LINENO: result: $CC" >&5
2565 echo "${ECHO_T}$CC" >&6; }
2567 { echo "$as_me:$LINENO: result: no" >&5
2568 echo "${ECHO_T}no" >&6; }
2573 if test -z "$CC"; then
2574 if test -n "$ac_tool_prefix"; then
2575 for ac_prog
in cl.exe
2577 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2578 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2579 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2580 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2581 if test "${ac_cv_prog_CC+set}" = set; then
2582 echo $ECHO_N "(cached) $ECHO_C" >&6
2584 if test -n "$CC"; then
2585 ac_cv_prog_CC
="$CC" # Let the user override the test.
2587 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2591 test -z "$as_dir" && as_dir
=.
2592 for ac_exec_ext
in '' $ac_executable_extensions; do
2593 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2594 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2595 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2605 if test -n "$CC"; then
2606 { echo "$as_me:$LINENO: result: $CC" >&5
2607 echo "${ECHO_T}$CC" >&6; }
2609 { echo "$as_me:$LINENO: result: no" >&5
2610 echo "${ECHO_T}no" >&6; }
2614 test -n "$CC" && break
2617 if test -z "$CC"; then
2619 for ac_prog
in cl.exe
2621 # Extract the first word of "$ac_prog", so it can be a program name with args.
2622 set dummy
$ac_prog; ac_word
=$2
2623 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2624 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2625 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2626 echo $ECHO_N "(cached) $ECHO_C" >&6
2628 if test -n "$ac_ct_CC"; then
2629 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2631 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2635 test -z "$as_dir" && as_dir
=.
2636 for ac_exec_ext
in '' $ac_executable_extensions; do
2637 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2638 ac_cv_prog_ac_ct_CC
="$ac_prog"
2639 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2648 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2649 if test -n "$ac_ct_CC"; then
2650 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2651 echo "${ECHO_T}$ac_ct_CC" >&6; }
2653 { echo "$as_me:$LINENO: result: no" >&5
2654 echo "${ECHO_T}no" >&6; }
2658 test -n "$ac_ct_CC" && break
2661 if test "x$ac_ct_CC" = x
; then
2664 case $cross_compiling:$ac_tool_warned in
2666 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2667 whose name does not start with the host triplet. If you think this
2668 configuration is useful to you, please write to autoconf@gnu.org." >&5
2669 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2670 whose name does not start with the host triplet. If you think this
2671 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2672 ac_tool_warned
=yes ;;
2681 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2682 See \`config.log' for more details." >&5
2683 echo "$as_me: error: no acceptable C compiler found in \$PATH
2684 See \`config.log' for more details." >&2;}
2685 { (exit 1); exit 1; }; }
2687 # Provide some information about the compiler.
2688 echo "$as_me:$LINENO: checking for C compiler version" >&5
2689 ac_compiler
=`set X $ac_compile; echo $2`
2690 { (ac_try
="$ac_compiler --version >&5"
2692 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2693 *) ac_try_echo=$ac_try;;
2695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2696 (eval "$ac_compiler --version >&5") 2>&5
2698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2699 (exit $ac_status); }
2700 { (ac_try="$ac_compiler -v >&5"
2702 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2703 *) ac_try_echo
=$ac_try;;
2705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2706 (eval "$ac_compiler -v >&5") 2>&5
2708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2709 (exit $ac_status); }
2710 { (ac_try
="$ac_compiler -V >&5"
2712 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2713 *) ac_try_echo=$ac_try;;
2715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2716 (eval "$ac_compiler -V >&5") 2>&5
2718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2719 (exit $ac_status); }
2721 cat >conftest.$ac_ext <<_ACEOF
2724 cat confdefs.h >>conftest.$ac_ext
2725 cat >>conftest.$ac_ext <<_ACEOF
2726 /* end confdefs.h. */
2736 ac_clean_files_save=$ac_clean_files
2737 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2738 # Try to create an executable without -o first, disregard a.out.
2739 # It will help us diagnose broken compilers, and finding out an intuition
2741 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2742 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2743 ac_link_default=`echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
2745 # List of possible output files, starting from the most likely.
2746 # The algorithm is not robust to junk in `.
', hence go to wildcards (a.*)
2747 # only as a last resort. b.out is created by i960 compilers.
2748 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
'
2750 # The IRIX 6 linker writes into existing files which may not be
2751 # executable, retaining their permissions. Remove them first so a
2752 # subsequent execution test works.
2754 for ac_file in $ac_files
2757 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2758 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2763 if { (ac_try="$ac_link_default"
2765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2766 *) ac_try_echo=$ac_try;;
2768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2769 (eval "$ac_link_default") 2>&5
2771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2772 (exit $ac_status); }; then
2773 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2774 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2775 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2776 # so that the user can short-circuit this test for compilers unknown to
2778 for ac_file
in $ac_files ''
2780 test -f "$ac_file" ||
continue
2782 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
)
2785 # We found the default executable, but exeext='' is most
2789 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
2791 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2793 # We set ac_cv_exeext here because the later test for it is not
2794 # safe: cross compilers may not add the suffix if given an `-o'
2795 # argument, so we may need to know it at that point already.
2796 # Even if this section looks crufty: it has the advantage of
2803 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
2809 { echo "$as_me:$LINENO: result: $ac_file" >&5
2810 echo "${ECHO_T}$ac_file" >&6; }
2811 if test -z "$ac_file"; then
2812 echo "$as_me: failed program was:" >&5
2813 sed 's/^/| /' conftest.
$ac_ext >&5
2815 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2816 See \`config.log' for more details." >&5
2817 echo "$as_me: error: C compiler cannot create executables
2818 See \`config.log' for more details." >&2;}
2819 { (exit 77); exit 77; }; }
2822 ac_exeext
=$ac_cv_exeext
2824 # Check that the compiler produces executables we can run. If not, either
2825 # the compiler is broken, or we cross compile.
2826 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2827 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2828 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2829 # If not cross compiling, check that we can run a simple program.
2830 if test "$cross_compiling" != yes; then
2831 if { ac_try
='./$ac_file'
2832 { (case "(($ac_try" in
2833 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2834 *) ac_try_echo=$ac_try;;
2836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2837 (eval "$ac_try") 2>&5
2839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2840 (exit $ac_status); }; }; then
2843 if test "$cross_compiling" = maybe; then
2846 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2847 If you meant to cross compile, use \`--host'.
2848 See \`config.log' for more details.
" >&5
2849 echo "$as_me: error
: cannot run C compiled programs.
2850 If you meant to cross compile
, use \
`--host'.
2851 See \`config.log
' for more details." >&2;}
2852 { (exit 1); exit 1; }; }
2856 { echo "$as_me:$LINENO: result: yes" >&5
2857 echo "${ECHO_T}yes" >&6; }
2859 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2860 ac_clean_files=$ac_clean_files_save
2861 # Check that the compiler produces executables we can run. If not, either
2862 # the compiler is broken, or we cross compile.
2863 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2864 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2865 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2866 echo "${ECHO_T}$cross_compiling" >&6; }
2868 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2869 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2870 if { (ac_try="$ac_link"
2872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2873 *) ac_try_echo=$ac_try;;
2875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2876 (eval "$ac_link") 2>&5
2878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2879 (exit $ac_status); }; then
2880 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
2881 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
2882 # work properly (i.e., refer to `conftest.exe
'), while it won't with
2884 for ac_file
in conftest.exe conftest conftest.
*; do
2885 test -f "$ac_file" ||
continue
2887 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
) ;;
2888 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2894 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2895 See \`config.log' for more details." >&5
2896 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2897 See \`config.log' for more details." >&2;}
2898 { (exit 1); exit 1; }; }
2901 rm -f conftest
$ac_cv_exeext
2902 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2903 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2905 rm -f conftest.
$ac_ext
2906 EXEEXT
=$ac_cv_exeext
2908 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2909 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2910 if test "${ac_cv_objext+set}" = set; then
2911 echo $ECHO_N "(cached) $ECHO_C" >&6
2913 cat >conftest.
$ac_ext <<_ACEOF
2916 cat confdefs.h
>>conftest.
$ac_ext
2917 cat >>conftest.
$ac_ext <<_ACEOF
2918 /* end confdefs.h. */
2928 rm -f conftest.o conftest.obj
2929 if { (ac_try
="$ac_compile"
2931 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2932 *) ac_try_echo=$ac_try;;
2934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2935 (eval "$ac_compile") 2>&5
2937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2938 (exit $ac_status); }; then
2939 for ac_file in conftest.o conftest.obj conftest.*; do
2940 test -f "$ac_file" || continue;
2942 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2943 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2948 echo "$as_me: failed program was:" >&5
2949 sed 's/^/| /' conftest.$ac_ext >&5
2951 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2952 See \`config.log
' for more details." >&5
2953 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2954 See \`config.log' for more details.
" >&2;}
2955 { (exit 1); exit 1; }; }
2958 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2960 { echo "$as_me:$LINENO: result
: $ac_cv_objext" >&5
2961 echo "${ECHO_T}$ac_cv_objext" >&6; }
2962 OBJEXT=$ac_cv_objext
2964 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler
" >&5
2965 echo $ECHO_N "checking whether we are using the GNU C compiler...
$ECHO_C" >&6; }
2966 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2967 echo $ECHO_N "(cached
) $ECHO_C" >&6
2969 cat >conftest.$ac_ext <<_ACEOF
2972 cat confdefs.h >>conftest.$ac_ext
2973 cat >>conftest.$ac_ext <<_ACEOF
2974 /* end confdefs.h. */
2987 rm -f conftest.$ac_objext
2988 if { (ac_try="$ac_compile"
2990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2991 *) ac_try_echo=$ac_try;;
2993 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2994 (eval "$ac_compile") 2>conftest.er1
2996 grep -v '^ *+' conftest.er1 >conftest.err
2998 cat conftest.err >&5
2999 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3000 (exit $ac_status); } && {
3001 test -z "$ac_c_werror_flag" ||
3002 test ! -s conftest.err
3003 } && test -s conftest.$ac_objext; then
3006 echo "$as_me: failed program was
:" >&5
3007 sed 's/^/| /' conftest.$ac_ext >&5
3012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3013 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3016 { echo "$as_me:$LINENO: result
: $ac_cv_c_compiler_gnu" >&5
3017 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3018 GCC=`test $ac_compiler_gnu = yes && echo yes`
3019 ac_test_CFLAGS=${CFLAGS+set}
3020 ac_save_CFLAGS=$CFLAGS
3021 { echo "$as_me:$LINENO: checking whether
$CC accepts
-g" >&5
3022 echo $ECHO_N "checking whether
$CC accepts
-g...
$ECHO_C" >&6; }
3023 if test "${ac_cv_prog_cc_g+set}" = set; then
3024 echo $ECHO_N "(cached
) $ECHO_C" >&6
3026 ac_save_c_werror_flag=$ac_c_werror_flag
3027 ac_c_werror_flag=yes
3030 cat >conftest.$ac_ext <<_ACEOF
3033 cat confdefs.h >>conftest.$ac_ext
3034 cat >>conftest.$ac_ext <<_ACEOF
3035 /* end confdefs.h. */
3045 rm -f conftest.$ac_objext
3046 if { (ac_try="$ac_compile"
3048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3049 *) ac_try_echo=$ac_try;;
3051 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3052 (eval "$ac_compile") 2>conftest.er1
3054 grep -v '^ *+' conftest.er1 >conftest.err
3056 cat conftest.err >&5
3057 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3058 (exit $ac_status); } && {
3059 test -z "$ac_c_werror_flag" ||
3060 test ! -s conftest.err
3061 } && test -s conftest.$ac_objext; then
3064 echo "$as_me: failed program was
:" >&5
3065 sed 's/^/| /' conftest.$ac_ext >&5
3068 cat >conftest.$ac_ext <<_ACEOF
3071 cat confdefs.h >>conftest.$ac_ext
3072 cat >>conftest.$ac_ext <<_ACEOF
3073 /* end confdefs.h. */
3083 rm -f conftest.$ac_objext
3084 if { (ac_try="$ac_compile"
3086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3087 *) ac_try_echo=$ac_try;;
3089 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3090 (eval "$ac_compile") 2>conftest.er1
3092 grep -v '^ *+' conftest.er1 >conftest.err
3094 cat conftest.err >&5
3095 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3096 (exit $ac_status); } && {
3097 test -z "$ac_c_werror_flag" ||
3098 test ! -s conftest.err
3099 } && test -s conftest.$ac_objext; then
3102 echo "$as_me: failed program was
:" >&5
3103 sed 's/^/| /' conftest.$ac_ext >&5
3105 ac_c_werror_flag=$ac_save_c_werror_flag
3107 cat >conftest.$ac_ext <<_ACEOF
3110 cat confdefs.h >>conftest.$ac_ext
3111 cat >>conftest.$ac_ext <<_ACEOF
3112 /* end confdefs.h. */
3122 rm -f conftest.$ac_objext
3123 if { (ac_try="$ac_compile"
3125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3126 *) ac_try_echo=$ac_try;;
3128 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3129 (eval "$ac_compile") 2>conftest.er1
3131 grep -v '^ *+' conftest.er1 >conftest.err
3133 cat conftest.err >&5
3134 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3135 (exit $ac_status); } && {
3136 test -z "$ac_c_werror_flag" ||
3137 test ! -s conftest.err
3138 } && test -s conftest.$ac_objext; then
3141 echo "$as_me: failed program was
:" >&5
3142 sed 's/^/| /' conftest.$ac_ext >&5
3147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3154 ac_c_werror_flag=$ac_save_c_werror_flag
3156 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_g" >&5
3157 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3158 if test "$ac_test_CFLAGS" = set; then
3159 CFLAGS=$ac_save_CFLAGS
3160 elif test $ac_cv_prog_cc_g = yes; then
3161 if test "$GCC" = yes; then
3167 if test "$GCC" = yes; then
3173 { echo "$as_me:$LINENO: checking
for $CC option to accept ISO C89
" >&5
3174 echo $ECHO_N "checking
for $CC option to accept ISO C89...
$ECHO_C" >&6; }
3175 if test "${ac_cv_prog_cc_c89+set}" = set; then
3176 echo $ECHO_N "(cached
) $ECHO_C" >&6
3178 ac_cv_prog_cc_c89=no
3180 cat >conftest.$ac_ext <<_ACEOF
3183 cat confdefs.h >>conftest.$ac_ext
3184 cat >>conftest.$ac_ext <<_ACEOF
3185 /* end confdefs.h. */
3188 #include <sys/types.h>
3189 #include <sys/stat.h>
3190 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3191 struct buf { int x; };
3192 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3193 static char *e (p, i)
3199 static char *f (char * (*g) (char **, int), char **p, ...)
3204 s = g (p, va_arg (v,int));
3209 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3210 function prototypes and stuff, but not '\xHH' hex character constants.
3211 These don't provoke an error unfortunately, instead are silently treated
3212 as 'x'. The following induces an error, until -std is added to get
3213 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3214 array size at least. It's necessary to write '\x00'==0 to get something
3215 that's true only with -std. */
3216 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3218 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3219 inside strings and character constants. */
3221 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3223 int test (int i, double x);
3224 struct s1 {int (*f) (int a);};
3225 struct s2 {int (*f) (double a);};
3226 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3232 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3237 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3238 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3240 CC="$ac_save_CC $ac_arg"
3241 rm -f conftest.$ac_objext
3242 if { (ac_try="$ac_compile"
3244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3245 *) ac_try_echo=$ac_try;;
3247 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3248 (eval "$ac_compile") 2>conftest.er1
3250 grep -v '^ *+' conftest.er1 >conftest.err
3252 cat conftest.err >&5
3253 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3254 (exit $ac_status); } && {
3255 test -z "$ac_c_werror_flag" ||
3256 test ! -s conftest.err
3257 } && test -s conftest.$ac_objext; then
3258 ac_cv_prog_cc_c89=$ac_arg
3260 echo "$as_me: failed program was
:" >&5
3261 sed 's/^/| /' conftest.$ac_ext >&5
3266 rm -f core conftest.err conftest.$ac_objext
3267 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
3269 rm -f conftest.$ac_ext
3274 case "x
$ac_cv_prog_cc_c89" in
3276 { echo "$as_me:$LINENO: result
: none needed
" >&5
3277 echo "${ECHO_T}none needed
" >&6; } ;;
3279 { echo "$as_me:$LINENO: result
: unsupported
" >&5
3280 echo "${ECHO_T}unsupported
" >&6; } ;;
3282 CC="$CC $ac_cv_prog_cc_c89"
3283 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_c89" >&5
3284 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3289 ac_cpp='$CPP $CPPFLAGS'
3290 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3291 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3292 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3295 test "x
$GCC" = xyes || { { echo "$as_me:$LINENO: error
: GCC is required
" >&5
3296 echo "$as_me: error
: GCC is required
" >&2;}
3297 { (exit 1); exit 1; }; }
3300 cat >>confdefs.h <<\_ACEOF
3301 #define _GNU_SOURCE 1
3306 # Check whether --enable-largefile was given.
3307 if test "${enable_largefile+set}" = set; then
3308 enableval=$enable_largefile;
3311 if test "$enable_largefile" != no; then
3313 { echo "$as_me:$LINENO: checking
for special C compiler options needed
for large files
" >&5
3314 echo $ECHO_N "checking
for special C compiler options needed
for large files...
$ECHO_C" >&6; }
3315 if test "${ac_cv_sys_largefile_CC+set}" = set; then
3316 echo $ECHO_N "(cached
) $ECHO_C" >&6
3318 ac_cv_sys_largefile_CC=no
3319 if test "$GCC" != yes; then
3322 # IRIX 6.2 and later do not support large files by default,
3323 # so use the C compiler's -n32 option if that helps.
3324 cat >conftest.$ac_ext <<_ACEOF
3327 cat confdefs.h >>conftest.$ac_ext
3328 cat >>conftest.$ac_ext <<_ACEOF
3329 /* end confdefs.h. */
3330 #include <sys/types.h>
3331 /* Check that off_t can represent 2**63 - 1 correctly.
3332 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3333 since some C++ compilers masquerading as C compilers
3334 incorrectly reject 9223372036854775807. */
3335 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3336 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3337 && LARGE_OFF_T % 2147483647 == 1)
3347 rm -f conftest.$ac_objext
3348 if { (ac_try="$ac_compile"
3350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3351 *) ac_try_echo=$ac_try;;
3353 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3354 (eval "$ac_compile") 2>conftest.er1
3356 grep -v '^ *+' conftest.er1 >conftest.err
3358 cat conftest.err >&5
3359 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3360 (exit $ac_status); } && {
3361 test -z "$ac_c_werror_flag" ||
3362 test ! -s conftest.err
3363 } && test -s conftest.$ac_objext; then
3366 echo "$as_me: failed program was
:" >&5
3367 sed 's/^/| /' conftest.$ac_ext >&5
3372 rm -f core conftest.err conftest.$ac_objext
3374 rm -f conftest.$ac_objext
3375 if { (ac_try="$ac_compile"
3377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3378 *) ac_try_echo=$ac_try;;
3380 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3381 (eval "$ac_compile") 2>conftest.er1
3383 grep -v '^ *+' conftest.er1 >conftest.err
3385 cat conftest.err >&5
3386 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3387 (exit $ac_status); } && {
3388 test -z "$ac_c_werror_flag" ||
3389 test ! -s conftest.err
3390 } && test -s conftest.$ac_objext; then
3391 ac_cv_sys_largefile_CC=' -n32'; break
3393 echo "$as_me: failed program was
:" >&5
3394 sed 's/^/| /' conftest.$ac_ext >&5
3399 rm -f core conftest.err conftest.$ac_objext
3403 rm -f conftest.$ac_ext
3406 { echo "$as_me:$LINENO: result
: $ac_cv_sys_largefile_CC" >&5
3407 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
3408 if test "$ac_cv_sys_largefile_CC" != no; then
3409 CC=$CC$ac_cv_sys_largefile_CC
3412 { echo "$as_me:$LINENO: checking
for _FILE_OFFSET_BITS value needed
for large files
" >&5
3413 echo $ECHO_N "checking
for _FILE_OFFSET_BITS value needed
for large files...
$ECHO_C" >&6; }
3414 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
3415 echo $ECHO_N "(cached
) $ECHO_C" >&6
3418 cat >conftest.$ac_ext <<_ACEOF
3421 cat confdefs.h >>conftest.$ac_ext
3422 cat >>conftest.$ac_ext <<_ACEOF
3423 /* end confdefs.h. */
3424 #include <sys/types.h>
3425 /* Check that off_t can represent 2**63 - 1 correctly.
3426 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3427 since some C++ compilers masquerading as C compilers
3428 incorrectly reject 9223372036854775807. */
3429 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3430 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3431 && LARGE_OFF_T % 2147483647 == 1)
3441 rm -f conftest.$ac_objext
3442 if { (ac_try="$ac_compile"
3444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3445 *) ac_try_echo=$ac_try;;
3447 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3448 (eval "$ac_compile") 2>conftest.er1
3450 grep -v '^ *+' conftest.er1 >conftest.err
3452 cat conftest.err >&5
3453 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3454 (exit $ac_status); } && {
3455 test -z "$ac_c_werror_flag" ||
3456 test ! -s conftest.err
3457 } && test -s conftest.$ac_objext; then
3458 ac_cv_sys_file_offset_bits=no; break
3460 echo "$as_me: failed program was
:" >&5
3461 sed 's/^/| /' conftest.$ac_ext >&5
3466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3467 cat >conftest.$ac_ext <<_ACEOF
3470 cat confdefs.h >>conftest.$ac_ext
3471 cat >>conftest.$ac_ext <<_ACEOF
3472 /* end confdefs.h. */
3473 #define _FILE_OFFSET_BITS 64
3474 #include <sys/types.h>
3475 /* Check that off_t can represent 2**63 - 1 correctly.
3476 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3477 since some C++ compilers masquerading as C compilers
3478 incorrectly reject 9223372036854775807. */
3479 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3480 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3481 && LARGE_OFF_T % 2147483647 == 1)
3491 rm -f conftest.$ac_objext
3492 if { (ac_try="$ac_compile"
3494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3495 *) ac_try_echo=$ac_try;;
3497 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3498 (eval "$ac_compile") 2>conftest.er1
3500 grep -v '^ *+' conftest.er1 >conftest.err
3502 cat conftest.err >&5
3503 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3504 (exit $ac_status); } && {
3505 test -z "$ac_c_werror_flag" ||
3506 test ! -s conftest.err
3507 } && test -s conftest.$ac_objext; then
3508 ac_cv_sys_file_offset_bits=64; break
3510 echo "$as_me: failed program was
:" >&5
3511 sed 's/^/| /' conftest.$ac_ext >&5
3516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3517 ac_cv_sys_file_offset_bits=unknown
3521 { echo "$as_me:$LINENO: result
: $ac_cv_sys_file_offset_bits" >&5
3522 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
3523 case $ac_cv_sys_file_offset_bits in #(
3526 cat >>confdefs.h <<_ACEOF
3527 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
3532 if test $ac_cv_sys_file_offset_bits = unknown; then
3533 { echo "$as_me:$LINENO: checking
for _LARGE_FILES value needed
for large files
" >&5
3534 echo $ECHO_N "checking
for _LARGE_FILES value needed
for large files...
$ECHO_C" >&6; }
3535 if test "${ac_cv_sys_large_files+set}" = set; then
3536 echo $ECHO_N "(cached
) $ECHO_C" >&6
3539 cat >conftest.$ac_ext <<_ACEOF
3542 cat confdefs.h >>conftest.$ac_ext
3543 cat >>conftest.$ac_ext <<_ACEOF
3544 /* end confdefs.h. */
3545 #include <sys/types.h>
3546 /* Check that off_t can represent 2**63 - 1 correctly.
3547 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3548 since some C++ compilers masquerading as C compilers
3549 incorrectly reject 9223372036854775807. */
3550 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3551 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3552 && LARGE_OFF_T % 2147483647 == 1)
3562 rm -f conftest.$ac_objext
3563 if { (ac_try="$ac_compile"
3565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3566 *) ac_try_echo=$ac_try;;
3568 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3569 (eval "$ac_compile") 2>conftest.er1
3571 grep -v '^ *+' conftest.er1 >conftest.err
3573 cat conftest.err >&5
3574 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3575 (exit $ac_status); } && {
3576 test -z "$ac_c_werror_flag" ||
3577 test ! -s conftest.err
3578 } && test -s conftest.$ac_objext; then
3579 ac_cv_sys_large_files=no; break
3581 echo "$as_me: failed program was
:" >&5
3582 sed 's/^/| /' conftest.$ac_ext >&5
3587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3588 cat >conftest.$ac_ext <<_ACEOF
3591 cat confdefs.h >>conftest.$ac_ext
3592 cat >>conftest.$ac_ext <<_ACEOF
3593 /* end confdefs.h. */
3594 #define _LARGE_FILES 1
3595 #include <sys/types.h>
3596 /* Check that off_t can represent 2**63 - 1 correctly.
3597 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3598 since some C++ compilers masquerading as C compilers
3599 incorrectly reject 9223372036854775807. */
3600 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3601 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3602 && LARGE_OFF_T % 2147483647 == 1)
3612 rm -f conftest.$ac_objext
3613 if { (ac_try="$ac_compile"
3615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3616 *) ac_try_echo=$ac_try;;
3618 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3619 (eval "$ac_compile") 2>conftest.er1
3621 grep -v '^ *+' conftest.er1 >conftest.err
3623 cat conftest.err >&5
3624 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3625 (exit $ac_status); } && {
3626 test -z "$ac_c_werror_flag" ||
3627 test ! -s conftest.err
3628 } && test -s conftest.$ac_objext; then
3629 ac_cv_sys_large_files=1; break
3631 echo "$as_me: failed program was
:" >&5
3632 sed 's/^/| /' conftest.$ac_ext >&5
3637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3638 ac_cv_sys_large_files=unknown
3642 { echo "$as_me:$LINENO: result
: $ac_cv_sys_large_files" >&5
3643 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
3644 case $ac_cv_sys_large_files in #(
3647 cat >>confdefs.h <<_ACEOF
3648 #define _LARGE_FILES $ac_cv_sys_large_files
3657 # Identify characteristics of the host architecture.
3659 ac_cpp='$CPP $CPPFLAGS'
3660 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3661 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3662 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3663 { echo "$as_me:$LINENO: checking how to run the C preprocessor
" >&5
3664 echo $ECHO_N "checking how to run the C preprocessor...
$ECHO_C" >&6; }
3665 # On Suns, sometimes $CPP names a directory.
3666 if test -n "$CPP" && test -d "$CPP"; then
3669 if test -z "$CPP"; then
3670 if test "${ac_cv_prog_CPP+set}" = set; then
3671 echo $ECHO_N "(cached
) $ECHO_C" >&6
3673 # Double quotes because CPP needs to be expanded
3674 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
3677 for ac_c_preproc_warn_flag in '' yes
3679 # Use a header file that comes with gcc, so configuring glibc
3680 # with a fresh cross-compiler works.
3681 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3682 # <limits.h> exists even on freestanding compilers.
3683 # On the NeXT, cc -E runs the code through the compiler's parser,
3684 # not just through cpp. "Syntax error
" is here to catch this case.
3685 cat >conftest.$ac_ext <<_ACEOF
3688 cat confdefs.h >>conftest.$ac_ext
3689 cat >>conftest.$ac_ext <<_ACEOF
3690 /* end confdefs.h. */
3692 # include <limits.h>
3694 # include <assert.h>
3698 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3701 *) ac_try_echo=$ac_try;;
3703 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3704 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3706 grep -v '^ *+' conftest.er1 >conftest.err
3708 cat conftest.err >&5
3709 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3710 (exit $ac_status); } >/dev/null && {
3711 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3712 test ! -s conftest.err
3716 echo "$as_me: failed program was
:" >&5
3717 sed 's/^/| /' conftest.$ac_ext >&5
3719 # Broken: fails on valid input.
3723 rm -f conftest.err conftest.$ac_ext
3725 # OK, works on sane cases. Now check whether nonexistent headers
3726 # can be detected and how.
3727 cat >conftest.$ac_ext <<_ACEOF
3730 cat confdefs.h >>conftest.$ac_ext
3731 cat >>conftest.$ac_ext <<_ACEOF
3732 /* end confdefs.h. */
3733 #include <ac_nonexistent.h>
3735 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3738 *) ac_try_echo=$ac_try;;
3740 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3741 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3743 grep -v '^ *+' conftest.er1 >conftest.err
3745 cat conftest.err >&5
3746 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3747 (exit $ac_status); } >/dev/null && {
3748 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3749 test ! -s conftest.err
3751 # Broken: success on invalid input.
3754 echo "$as_me: failed program was
:" >&5
3755 sed 's/^/| /' conftest.$ac_ext >&5
3757 # Passes both tests.
3762 rm -f conftest.err conftest.$ac_ext
3765 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3766 rm -f conftest.err conftest.$ac_ext
3767 if $ac_preproc_ok; then
3779 { echo "$as_me:$LINENO: result
: $CPP" >&5
3780 echo "${ECHO_T}$CPP" >&6; }
3782 for ac_c_preproc_warn_flag in '' yes
3784 # Use a header file that comes with gcc, so configuring glibc
3785 # with a fresh cross-compiler works.
3786 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3787 # <limits.h> exists even on freestanding compilers.
3788 # On the NeXT, cc -E runs the code through the compiler's parser,
3789 # not just through cpp. "Syntax error
" is here to catch this case.
3790 cat >conftest.$ac_ext <<_ACEOF
3793 cat confdefs.h >>conftest.$ac_ext
3794 cat >>conftest.$ac_ext <<_ACEOF
3795 /* end confdefs.h. */
3797 # include <limits.h>
3799 # include <assert.h>
3803 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3806 *) ac_try_echo=$ac_try;;
3808 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3809 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3811 grep -v '^ *+' conftest.er1 >conftest.err
3813 cat conftest.err >&5
3814 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3815 (exit $ac_status); } >/dev/null && {
3816 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3817 test ! -s conftest.err
3821 echo "$as_me: failed program was
:" >&5
3822 sed 's/^/| /' conftest.$ac_ext >&5
3824 # Broken: fails on valid input.
3828 rm -f conftest.err conftest.$ac_ext
3830 # OK, works on sane cases. Now check whether nonexistent headers
3831 # can be detected and how.
3832 cat >conftest.$ac_ext <<_ACEOF
3835 cat confdefs.h >>conftest.$ac_ext
3836 cat >>conftest.$ac_ext <<_ACEOF
3837 /* end confdefs.h. */
3838 #include <ac_nonexistent.h>
3840 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3843 *) ac_try_echo=$ac_try;;
3845 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3846 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3848 grep -v '^ *+' conftest.er1 >conftest.err
3850 cat conftest.err >&5
3851 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3852 (exit $ac_status); } >/dev/null && {
3853 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3854 test ! -s conftest.err
3856 # Broken: success on invalid input.
3859 echo "$as_me: failed program was
:" >&5
3860 sed 's/^/| /' conftest.$ac_ext >&5
3862 # Passes both tests.
3867 rm -f conftest.err conftest.$ac_ext
3870 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3871 rm -f conftest.err conftest.$ac_ext
3872 if $ac_preproc_ok; then
3875 { { echo "$as_me:$LINENO: error
: C preprocessor
\"$CPP\" fails sanity check
3876 See \
`config.log' for more details." >&5
3877 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3878 See \`config.log
' for more details." >&2;}
3879 { (exit 1); exit 1; }; }
3883 ac_cpp='$CPP $CPPFLAGS'
3884 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
3885 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
3886 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3889 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3890 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3891 if test "${ac_cv_path_GREP+set}" = set; then
3892 echo $ECHO_N "(cached) $ECHO_C" >&6
3894 # Extract the first word of "grep ggrep" to use in msg output
3895 if test -z "$GREP"; then
3896 set dummy grep ggrep; ac_prog_name=$2
3897 if test "${ac_cv_path_GREP+set}" = set; then
3898 echo $ECHO_N "(cached) $ECHO_C" >&6
3900 ac_path_GREP_found=false
3901 # Loop through the user's path and
test for each of PROGNAME-LIST
3902 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3903 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3906 test -z "$as_dir" && as_dir
=.
3907 for ac_prog
in grep ggrep
; do
3908 for ac_exec_ext
in '' $ac_executable_extensions; do
3909 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3910 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
3911 # Check for GNU ac_path_GREP and select it if it is found.
3912 # Check for GNU $ac_path_GREP
3913 case `"$ac_path_GREP" --version 2>&1` in
3915 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3918 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3921 cat "conftest.in" "conftest.in" >"conftest.tmp"
3922 mv "conftest.tmp" "conftest.in"
3923 cp "conftest.in" "conftest.nl"
3924 echo 'GREP' >> "conftest.nl"
3925 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3926 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3927 ac_count
=`expr $ac_count + 1`
3928 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3929 # Best one so far, save it but keep looking for a better one
3930 ac_cv_path_GREP
="$ac_path_GREP"
3931 ac_path_GREP_max
=$ac_count
3933 # 10*(2^10) chars as input seems more than enough
3934 test $ac_count -gt 10 && break
3936 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3940 $ac_path_GREP_found && break 3
3950 GREP
="$ac_cv_path_GREP"
3951 if test -z "$GREP"; then
3952 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3953 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3954 { (exit 1); exit 1; }; }
3958 ac_cv_path_GREP
=$GREP
3963 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3964 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3965 GREP
="$ac_cv_path_GREP"
3968 { echo "$as_me:$LINENO: checking for egrep" >&5
3969 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3970 if test "${ac_cv_path_EGREP+set}" = set; then
3971 echo $ECHO_N "(cached) $ECHO_C" >&6
3973 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
3974 then ac_cv_path_EGREP
="$GREP -E"
3976 # Extract the first word of "egrep" to use in msg output
3977 if test -z "$EGREP"; then
3978 set dummy
egrep; ac_prog_name
=$2
3979 if test "${ac_cv_path_EGREP+set}" = set; then
3980 echo $ECHO_N "(cached) $ECHO_C" >&6
3982 ac_path_EGREP_found
=false
3983 # Loop through the user's path and test for each of PROGNAME-LIST
3984 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3985 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3988 test -z "$as_dir" && as_dir
=.
3989 for ac_prog
in egrep; do
3990 for ac_exec_ext
in '' $ac_executable_extensions; do
3991 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
3992 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
3993 # Check for GNU ac_path_EGREP and select it if it is found.
3994 # Check for GNU $ac_path_EGREP
3995 case `"$ac_path_EGREP" --version 2>&1` in
3997 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4000 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4003 cat "conftest.in" "conftest.in" >"conftest.tmp"
4004 mv "conftest.tmp" "conftest.in"
4005 cp "conftest.in" "conftest.nl"
4006 echo 'EGREP' >> "conftest.nl"
4007 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4008 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4009 ac_count
=`expr $ac_count + 1`
4010 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4011 # Best one so far, save it but keep looking for a better one
4012 ac_cv_path_EGREP
="$ac_path_EGREP"
4013 ac_path_EGREP_max
=$ac_count
4015 # 10*(2^10) chars as input seems more than enough
4016 test $ac_count -gt 10 && break
4018 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4022 $ac_path_EGREP_found && break 3
4032 EGREP
="$ac_cv_path_EGREP"
4033 if test -z "$EGREP"; then
4034 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4035 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4036 { (exit 1); exit 1; }; }
4040 ac_cv_path_EGREP
=$EGREP
4046 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4047 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4048 EGREP
="$ac_cv_path_EGREP"
4051 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4052 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4053 if test "${ac_cv_header_stdc+set}" = set; then
4054 echo $ECHO_N "(cached) $ECHO_C" >&6
4056 cat >conftest.
$ac_ext <<_ACEOF
4059 cat confdefs.h
>>conftest.
$ac_ext
4060 cat >>conftest.
$ac_ext <<_ACEOF
4061 /* end confdefs.h. */
4075 rm -f conftest.
$ac_objext
4076 if { (ac_try
="$ac_compile"
4078 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4079 *) ac_try_echo=$ac_try;;
4081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4082 (eval "$ac_compile") 2>conftest.er1
4084 grep -v '^ *+' conftest.er1 >conftest.err
4086 cat conftest.err >&5
4087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4088 (exit $ac_status); } && {
4089 test -z "$ac_c_werror_flag" ||
4090 test ! -s conftest.err
4091 } && test -s conftest.$ac_objext; then
4092 ac_cv_header_stdc=yes
4094 echo "$as_me: failed program was:" >&5
4095 sed 's/^/| /' conftest.$ac_ext >&5
4097 ac_cv_header_stdc=no
4100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4102 if test $ac_cv_header_stdc = yes; then
4103 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4104 cat >conftest.$ac_ext <<_ACEOF
4107 cat confdefs.h >>conftest.$ac_ext
4108 cat >>conftest.$ac_ext <<_ACEOF
4109 /* end confdefs.h. */
4113 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4114 $EGREP "memchr" >/dev/null 2>&1; then
4117 ac_cv_header_stdc=no
4123 if test $ac_cv_header_stdc = yes; then
4124 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4125 cat >conftest.$ac_ext <<_ACEOF
4128 cat confdefs.h >>conftest.$ac_ext
4129 cat >>conftest.$ac_ext <<_ACEOF
4130 /* end confdefs.h. */
4134 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4135 $EGREP "free" >/dev/null 2>&1; then
4138 ac_cv_header_stdc=no
4144 if test $ac_cv_header_stdc = yes; then
4145 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4146 if test "$cross_compiling" = yes; then
4149 cat >conftest.$ac_ext <<_ACEOF
4152 cat confdefs.h >>conftest.$ac_ext
4153 cat >>conftest.$ac_ext <<_ACEOF
4154 /* end confdefs.h. */
4157 #if ((' ' & 0x0FF) == 0x020)
4158 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4159 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4161 # define ISLOWER(c) \
4162 (('a' <= (c) && (c) <= 'i') \
4163 || ('j' <= (c) && (c) <= 'r') \
4164 || ('s' <= (c) && (c) <= 'z'))
4165 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4168 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4173 for (i = 0; i < 256; i++)
4174 if (XOR (islower (i), ISLOWER (i))
4175 || toupper (i) != TOUPPER (i))
4180 rm -f conftest$ac_exeext
4181 if { (ac_try="$ac_link"
4183 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4184 *) ac_try_echo
=$ac_try;;
4186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4187 (eval "$ac_link") 2>&5
4189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4190 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4191 { (case "(($ac_try" in
4192 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4193 *) ac_try_echo=$ac_try;;
4195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4196 (eval "$ac_try") 2>&5
4198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4199 (exit $ac_status); }; }; then
4202 echo "$as_me: program exited with status $ac_status" >&5
4203 echo "$as_me: failed program was:" >&5
4204 sed 's/^/| /' conftest.$ac_ext >&5
4207 ac_cv_header_stdc=no
4209 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4215 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4216 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4217 if test $ac_cv_header_stdc = yes; then
4219 cat >>confdefs.h <<\_ACEOF
4220 #define STDC_HEADERS 1
4225 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4235 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4236 inttypes.h stdint.h unistd.h
4238 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
4239 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4240 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4241 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4242 echo $ECHO_N "(cached) $ECHO_C" >&6
4244 cat >conftest.$ac_ext <<_ACEOF
4247 cat confdefs.h >>conftest.$ac_ext
4248 cat >>conftest.$ac_ext <<_ACEOF
4249 /* end confdefs.h. */
4250 $ac_includes_default
4252 #include <$ac_header>
4254 rm -f conftest.$ac_objext
4255 if { (ac_try="$ac_compile"
4257 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4258 *) ac_try_echo
=$ac_try;;
4260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4261 (eval "$ac_compile") 2>conftest.er1
4263 grep -v '^ *+' conftest.er1
>conftest.err
4265 cat conftest.err
>&5
4266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4267 (exit $ac_status); } && {
4268 test -z "$ac_c_werror_flag" ||
4269 test ! -s conftest.err
4270 } && test -s conftest.
$ac_objext; then
4271 eval "$as_ac_Header=yes"
4273 echo "$as_me: failed program was:" >&5
4274 sed 's/^/| /' conftest.
$ac_ext >&5
4276 eval "$as_ac_Header=no"
4279 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4281 ac_res
=`eval echo '${'$as_ac_Header'}'`
4282 { echo "$as_me:$LINENO: result: $ac_res" >&5
4283 echo "${ECHO_T}$ac_res" >&6; }
4284 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4285 cat >>confdefs.h
<<_ACEOF
4286 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4294 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4295 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4296 if test "${ac_cv_c_bigendian+set}" = set; then
4297 echo $ECHO_N "(cached) $ECHO_C" >&6
4299 # See if sys/param.h defines the BYTE_ORDER macro.
4300 cat >conftest.
$ac_ext <<_ACEOF
4303 cat confdefs.h
>>conftest.
$ac_ext
4304 cat >>conftest.
$ac_ext <<_ACEOF
4305 /* end confdefs.h. */
4306 #include <sys/types.h>
4307 #include <sys/param.h>
4312 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
4313 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
4321 rm -f conftest.
$ac_objext
4322 if { (ac_try
="$ac_compile"
4324 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4325 *) ac_try_echo=$ac_try;;
4327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4328 (eval "$ac_compile") 2>conftest.er1
4330 grep -v '^ *+' conftest.er1 >conftest.err
4332 cat conftest.err >&5
4333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4334 (exit $ac_status); } && {
4335 test -z "$ac_c_werror_flag" ||
4336 test ! -s conftest.err
4337 } && test -s conftest.$ac_objext; then
4338 # It does; now see whether it defined to BIG_ENDIAN or not.
4339 cat >conftest.$ac_ext <<_ACEOF
4342 cat confdefs.h >>conftest.$ac_ext
4343 cat >>conftest.$ac_ext <<_ACEOF
4344 /* end confdefs.h. */
4345 #include <sys/types.h>
4346 #include <sys/param.h>
4351 #if BYTE_ORDER != BIG_ENDIAN
4359 rm -f conftest.$ac_objext
4360 if { (ac_try="$ac_compile"
4362 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4363 *) ac_try_echo
=$ac_try;;
4365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4366 (eval "$ac_compile") 2>conftest.er1
4368 grep -v '^ *+' conftest.er1
>conftest.err
4370 cat conftest.err
>&5
4371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4372 (exit $ac_status); } && {
4373 test -z "$ac_c_werror_flag" ||
4374 test ! -s conftest.err
4375 } && test -s conftest.
$ac_objext; then
4376 ac_cv_c_bigendian
=yes
4378 echo "$as_me: failed program was:" >&5
4379 sed 's/^/| /' conftest.
$ac_ext >&5
4381 ac_cv_c_bigendian
=no
4384 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4386 echo "$as_me: failed program was:" >&5
4387 sed 's/^/| /' conftest.
$ac_ext >&5
4389 # It does not; compile a test program.
4390 if test "$cross_compiling" = yes; then
4391 # try to guess the endianness by grepping values into an object file
4392 ac_cv_c_bigendian
=unknown
4393 cat >conftest.
$ac_ext <<_ACEOF
4396 cat confdefs.h
>>conftest.
$ac_ext
4397 cat >>conftest.
$ac_ext <<_ACEOF
4398 /* end confdefs.h. */
4399 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4400 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4401 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4402 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4403 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4404 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4408 _ascii (); _ebcdic ();
4413 rm -f conftest.
$ac_objext
4414 if { (ac_try
="$ac_compile"
4416 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4417 *) ac_try_echo=$ac_try;;
4419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4420 (eval "$ac_compile") 2>conftest.er1
4422 grep -v '^ *+' conftest.er1 >conftest.err
4424 cat conftest.err >&5
4425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4426 (exit $ac_status); } && {
4427 test -z "$ac_c_werror_flag" ||
4428 test ! -s conftest.err
4429 } && test -s conftest.$ac_objext; then
4430 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4431 ac_cv_c_bigendian=yes
4433 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4434 if test "$ac_cv_c_bigendian" = unknown; then
4435 ac_cv_c_bigendian=no
4437 # finding both strings is unlikely to happen, but who knows?
4438 ac_cv_c_bigendian=unknown
4442 echo "$as_me: failed program was:" >&5
4443 sed 's/^/| /' conftest.$ac_ext >&5
4448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4450 cat >conftest.$ac_ext <<_ACEOF
4453 cat confdefs.h >>conftest.$ac_ext
4454 cat >>conftest.$ac_ext <<_ACEOF
4455 /* end confdefs.h. */
4456 $ac_includes_default
4461 /* Are we little or big endian? From Harbison&Steele. */
4465 char c[sizeof (long int)];
4468 return u.c[sizeof (long int) - 1] == 1;
4474 rm -f conftest$ac_exeext
4475 if { (ac_try="$ac_link"
4477 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4478 *) ac_try_echo
=$ac_try;;
4480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4481 (eval "$ac_link") 2>&5
4483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4484 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4485 { (case "(($ac_try" in
4486 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4487 *) ac_try_echo=$ac_try;;
4489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4490 (eval "$ac_try") 2>&5
4492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4493 (exit $ac_status); }; }; then
4494 ac_cv_c_bigendian=no
4496 echo "$as_me: program exited with status $ac_status" >&5
4497 echo "$as_me: failed program was:" >&5
4498 sed 's/^/| /' conftest.$ac_ext >&5
4501 ac_cv_c_bigendian=yes
4503 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4511 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4512 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4513 case $ac_cv_c_bigendian in
4516 cat >>confdefs.h <<\_ACEOF
4517 #define WORDS_BIGENDIAN 1
4523 { { echo "$as_me:$LINENO: error: unknown endianness
4524 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4525 echo "$as_me: error: unknown endianness
4526 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4527 { (exit 1); exit 1; }; } ;;
4530 { echo "$as_me:$LINENO: checking for void *" >&5
4531 echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
4532 if test "${ac_cv_type_void_p+set}" = set; then
4533 echo $ECHO_N "(cached) $ECHO_C" >&6
4535 cat >conftest.$ac_ext <<_ACEOF
4538 cat confdefs.h >>conftest.$ac_ext
4539 cat >>conftest.$ac_ext <<_ACEOF
4540 /* end confdefs.h. */
4541 $ac_includes_default
4542 typedef void * ac__type_new_;
4546 if ((ac__type_new_ *) 0)
4548 if (sizeof (ac__type_new_))
4554 rm -f conftest.$ac_objext
4555 if { (ac_try="$ac_compile"
4557 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4558 *) ac_try_echo
=$ac_try;;
4560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4561 (eval "$ac_compile") 2>conftest.er1
4563 grep -v '^ *+' conftest.er1
>conftest.err
4565 cat conftest.err
>&5
4566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4567 (exit $ac_status); } && {
4568 test -z "$ac_c_werror_flag" ||
4569 test ! -s conftest.err
4570 } && test -s conftest.
$ac_objext; then
4571 ac_cv_type_void_p
=yes
4573 echo "$as_me: failed program was:" >&5
4574 sed 's/^/| /' conftest.
$ac_ext >&5
4576 ac_cv_type_void_p
=no
4579 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4581 { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
4582 echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
4584 # The cast to long int works around a bug in the HP C Compiler
4585 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4586 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4587 # This bug is HP SR number 8606223364.
4588 { echo "$as_me:$LINENO: checking size of void *" >&5
4589 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
4590 if test "${ac_cv_sizeof_void_p+set}" = set; then
4591 echo $ECHO_N "(cached) $ECHO_C" >&6
4593 if test "$cross_compiling" = yes; then
4594 # Depending upon the size, compute the lo and hi bounds.
4595 cat >conftest.
$ac_ext <<_ACEOF
4598 cat confdefs.h
>>conftest.
$ac_ext
4599 cat >>conftest.
$ac_ext <<_ACEOF
4600 /* end confdefs.h. */
4601 $ac_includes_default
4602 typedef void * ac__type_sizeof_;
4606 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
4613 rm -f conftest.
$ac_objext
4614 if { (ac_try
="$ac_compile"
4616 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4617 *) ac_try_echo=$ac_try;;
4619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4620 (eval "$ac_compile") 2>conftest.er1
4622 grep -v '^ *+' conftest.er1 >conftest.err
4624 cat conftest.err >&5
4625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4626 (exit $ac_status); } && {
4627 test -z "$ac_c_werror_flag" ||
4628 test ! -s conftest.err
4629 } && test -s conftest.$ac_objext; then
4632 cat >conftest.$ac_ext <<_ACEOF
4635 cat confdefs.h >>conftest.$ac_ext
4636 cat >>conftest.$ac_ext <<_ACEOF
4637 /* end confdefs.h. */
4638 $ac_includes_default
4639 typedef void * ac__type_sizeof_;
4643 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
4650 rm -f conftest.$ac_objext
4651 if { (ac_try="$ac_compile"
4653 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4654 *) ac_try_echo
=$ac_try;;
4656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4657 (eval "$ac_compile") 2>conftest.er1
4659 grep -v '^ *+' conftest.er1
>conftest.err
4661 cat conftest.err
>&5
4662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4663 (exit $ac_status); } && {
4664 test -z "$ac_c_werror_flag" ||
4665 test ! -s conftest.err
4666 } && test -s conftest.
$ac_objext; then
4667 ac_hi
=$ac_mid; break
4669 echo "$as_me: failed program was:" >&5
4670 sed 's/^/| /' conftest.
$ac_ext >&5
4672 ac_lo
=`expr $ac_mid + 1`
4673 if test $ac_lo -le $ac_mid; then
4677 ac_mid
=`expr 2 '*' $ac_mid + 1`
4680 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4683 echo "$as_me: failed program was:" >&5
4684 sed 's/^/| /' conftest.
$ac_ext >&5
4686 cat >conftest.
$ac_ext <<_ACEOF
4689 cat confdefs.h
>>conftest.
$ac_ext
4690 cat >>conftest.
$ac_ext <<_ACEOF
4691 /* end confdefs.h. */
4692 $ac_includes_default
4693 typedef void * ac__type_sizeof_;
4697 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
4704 rm -f conftest.
$ac_objext
4705 if { (ac_try
="$ac_compile"
4707 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4708 *) ac_try_echo=$ac_try;;
4710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4711 (eval "$ac_compile") 2>conftest.er1
4713 grep -v '^ *+' conftest.er1 >conftest.err
4715 cat conftest.err >&5
4716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4717 (exit $ac_status); } && {
4718 test -z "$ac_c_werror_flag" ||
4719 test ! -s conftest.err
4720 } && test -s conftest.$ac_objext; then
4723 cat >conftest.$ac_ext <<_ACEOF
4726 cat confdefs.h >>conftest.$ac_ext
4727 cat >>conftest.$ac_ext <<_ACEOF
4728 /* end confdefs.h. */
4729 $ac_includes_default
4730 typedef void * ac__type_sizeof_;
4734 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
4741 rm -f conftest.$ac_objext
4742 if { (ac_try="$ac_compile"
4744 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4745 *) ac_try_echo
=$ac_try;;
4747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4748 (eval "$ac_compile") 2>conftest.er1
4750 grep -v '^ *+' conftest.er1
>conftest.err
4752 cat conftest.err
>&5
4753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4754 (exit $ac_status); } && {
4755 test -z "$ac_c_werror_flag" ||
4756 test ! -s conftest.err
4757 } && test -s conftest.
$ac_objext; then
4758 ac_lo
=$ac_mid; break
4760 echo "$as_me: failed program was:" >&5
4761 sed 's/^/| /' conftest.
$ac_ext >&5
4763 ac_hi
=`expr '(' $ac_mid ')' - 1`
4764 if test $ac_mid -le $ac_hi; then
4768 ac_mid
=`expr 2 '*' $ac_mid`
4771 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4774 echo "$as_me: failed program was:" >&5
4775 sed 's/^/| /' conftest.
$ac_ext >&5
4780 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4783 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4784 # Binary search between lo and hi bounds.
4785 while test "x$ac_lo" != "x$ac_hi"; do
4786 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4787 cat >conftest.
$ac_ext <<_ACEOF
4790 cat confdefs.h
>>conftest.
$ac_ext
4791 cat >>conftest.
$ac_ext <<_ACEOF
4792 /* end confdefs.h. */
4793 $ac_includes_default
4794 typedef void * ac__type_sizeof_;
4798 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
4805 rm -f conftest.
$ac_objext
4806 if { (ac_try
="$ac_compile"
4808 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4809 *) ac_try_echo=$ac_try;;
4811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4812 (eval "$ac_compile") 2>conftest.er1
4814 grep -v '^ *+' conftest.er1 >conftest.err
4816 cat conftest.err >&5
4817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4818 (exit $ac_status); } && {
4819 test -z "$ac_c_werror_flag" ||
4820 test ! -s conftest.err
4821 } && test -s conftest.$ac_objext; then
4824 echo "$as_me: failed program was:" >&5
4825 sed 's/^/| /' conftest.$ac_ext >&5
4827 ac_lo=`expr '(' $ac_mid ')' + 1`
4830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4833 ?*) ac_cv_sizeof_void_p=$ac_lo;;
4834 '') if test "$ac_cv_type_void_p" = yes; then
4835 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
4836 See \`config.log
' for more details." >&5
4837 echo "$as_me: error: cannot compute sizeof (void *)
4838 See \`config.log' for more details.
" >&2;}
4839 { (exit 77); exit 77; }; }
4841 ac_cv_sizeof_void_p=0
4845 cat >conftest.$ac_ext <<_ACEOF
4848 cat confdefs.h >>conftest.$ac_ext
4849 cat >>conftest.$ac_ext <<_ACEOF
4850 /* end confdefs.h. */
4851 $ac_includes_default
4852 typedef void * ac__type_sizeof_;
4853 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
4854 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
4861 FILE *f = fopen ("conftest.val
", "w
");
4864 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
4866 long int i = longval ();
4867 if (i != ((long int) (sizeof (ac__type_sizeof_))))
4869 fprintf (f, "%ld
\n", i);
4873 unsigned long int i = ulongval ();
4874 if (i != ((long int) (sizeof (ac__type_sizeof_))))
4876 fprintf (f, "%lu
\n", i);
4878 return ferror (f) || fclose (f) != 0;
4884 rm -f conftest$ac_exeext
4885 if { (ac_try="$ac_link"
4887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4888 *) ac_try_echo=$ac_try;;
4890 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4891 (eval "$ac_link") 2>&5
4893 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4894 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4895 { (case "(($ac_try" in
4896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4897 *) ac_try_echo=$ac_try;;
4899 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4900 (eval "$ac_try") 2>&5
4902 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4903 (exit $ac_status); }; }; then
4904 ac_cv_sizeof_void_p=`cat conftest.val`
4906 echo "$as_me: program exited with status
$ac_status" >&5
4907 echo "$as_me: failed program was
:" >&5
4908 sed 's/^/| /' conftest.$ac_ext >&5
4911 if test "$ac_cv_type_void_p" = yes; then
4912 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(void
*)
4913 See \
`config.log' for more details." >&5
4914 echo "$as_me: error: cannot compute sizeof (void *)
4915 See \`config.log
' for more details." >&2;}
4916 { (exit 77); exit 77; }; }
4918 ac_cv_sizeof_void_p=0
4921 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4925 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
4926 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
4930 cat >>confdefs.h <<_ACEOF
4931 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
4935 { echo "$as_me:$LINENO: checking for long" >&5
4936 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
4937 if test "${ac_cv_type_long+set}" = set; then
4938 echo $ECHO_N "(cached) $ECHO_C" >&6
4940 cat >conftest.$ac_ext <<_ACEOF
4943 cat confdefs.h >>conftest.$ac_ext
4944 cat >>conftest.$ac_ext <<_ACEOF
4945 /* end confdefs.h. */
4946 $ac_includes_default
4947 typedef long ac__type_new_;
4951 if ((ac__type_new_ *) 0)
4953 if (sizeof (ac__type_new_))
4959 rm -f conftest.$ac_objext
4960 if { (ac_try="$ac_compile"
4962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4963 *) ac_try_echo=$ac_try;;
4965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4966 (eval "$ac_compile") 2>conftest.er1
4968 grep -v '^
*+' conftest.er1 >conftest.err
4970 cat conftest.err >&5
4971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4972 (exit $ac_status); } && {
4973 test -z "$ac_c_werror_flag" ||
4974 test ! -s conftest.err
4975 } && test -s conftest.$ac_objext; then
4978 echo "$as_me: failed program was:" >&5
4979 sed 's
/^
/|
/' conftest.$ac_ext >&5
4984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4986 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
4987 echo "${ECHO_T}$ac_cv_type_long" >&6; }
4989 # The cast to long int works around a bug in the HP C Compiler
4990 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4991 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4992 # This bug is HP SR number 8606223364.
4993 { echo "$as_me:$LINENO: checking size of long" >&5
4994 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
4995 if test "${ac_cv_sizeof_long+set}" = set; then
4996 echo $ECHO_N "(cached) $ECHO_C" >&6
4998 if test "$cross_compiling" = yes; then
4999 # Depending upon the size, compute the lo and hi bounds.
5000 cat >conftest.
$ac_ext <<_ACEOF
5003 cat confdefs.h
>>conftest.
$ac_ext
5004 cat >>conftest.
$ac_ext <<_ACEOF
5005 /* end confdefs.h. */
5006 $ac_includes_default
5007 typedef long ac__type_sizeof_;
5011 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
5018 rm -f conftest.
$ac_objext
5019 if { (ac_try
="$ac_compile"
5021 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5022 *) ac_try_echo=$ac_try;;
5024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5025 (eval "$ac_compile") 2>conftest.er1
5027 grep -v '^ *+' conftest.er1 >conftest.err
5029 cat conftest.err >&5
5030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5031 (exit $ac_status); } && {
5032 test -z "$ac_c_werror_flag" ||
5033 test ! -s conftest.err
5034 } && test -s conftest.$ac_objext; then
5037 cat >conftest.$ac_ext <<_ACEOF
5040 cat confdefs.h >>conftest.$ac_ext
5041 cat >>conftest.$ac_ext <<_ACEOF
5042 /* end confdefs.h. */
5043 $ac_includes_default
5044 typedef long ac__type_sizeof_;
5048 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5055 rm -f conftest.$ac_objext
5056 if { (ac_try="$ac_compile"
5058 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5059 *) ac_try_echo
=$ac_try;;
5061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5062 (eval "$ac_compile") 2>conftest.er1
5064 grep -v '^ *+' conftest.er1
>conftest.err
5066 cat conftest.err
>&5
5067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5068 (exit $ac_status); } && {
5069 test -z "$ac_c_werror_flag" ||
5070 test ! -s conftest.err
5071 } && test -s conftest.
$ac_objext; then
5072 ac_hi
=$ac_mid; break
5074 echo "$as_me: failed program was:" >&5
5075 sed 's/^/| /' conftest.
$ac_ext >&5
5077 ac_lo
=`expr $ac_mid + 1`
5078 if test $ac_lo -le $ac_mid; then
5082 ac_mid
=`expr 2 '*' $ac_mid + 1`
5085 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5088 echo "$as_me: failed program was:" >&5
5089 sed 's/^/| /' conftest.
$ac_ext >&5
5091 cat >conftest.
$ac_ext <<_ACEOF
5094 cat confdefs.h
>>conftest.
$ac_ext
5095 cat >>conftest.
$ac_ext <<_ACEOF
5096 /* end confdefs.h. */
5097 $ac_includes_default
5098 typedef long ac__type_sizeof_;
5102 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
5109 rm -f conftest.
$ac_objext
5110 if { (ac_try
="$ac_compile"
5112 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5113 *) ac_try_echo=$ac_try;;
5115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5116 (eval "$ac_compile") 2>conftest.er1
5118 grep -v '^ *+' conftest.er1 >conftest.err
5120 cat conftest.err >&5
5121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5122 (exit $ac_status); } && {
5123 test -z "$ac_c_werror_flag" ||
5124 test ! -s conftest.err
5125 } && test -s conftest.$ac_objext; then
5128 cat >conftest.$ac_ext <<_ACEOF
5131 cat confdefs.h >>conftest.$ac_ext
5132 cat >>conftest.$ac_ext <<_ACEOF
5133 /* end confdefs.h. */
5134 $ac_includes_default
5135 typedef long ac__type_sizeof_;
5139 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
5146 rm -f conftest.$ac_objext
5147 if { (ac_try="$ac_compile"
5149 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5150 *) ac_try_echo
=$ac_try;;
5152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5153 (eval "$ac_compile") 2>conftest.er1
5155 grep -v '^ *+' conftest.er1
>conftest.err
5157 cat conftest.err
>&5
5158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5159 (exit $ac_status); } && {
5160 test -z "$ac_c_werror_flag" ||
5161 test ! -s conftest.err
5162 } && test -s conftest.
$ac_objext; then
5163 ac_lo
=$ac_mid; break
5165 echo "$as_me: failed program was:" >&5
5166 sed 's/^/| /' conftest.
$ac_ext >&5
5168 ac_hi
=`expr '(' $ac_mid ')' - 1`
5169 if test $ac_mid -le $ac_hi; then
5173 ac_mid
=`expr 2 '*' $ac_mid`
5176 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5179 echo "$as_me: failed program was:" >&5
5180 sed 's/^/| /' conftest.
$ac_ext >&5
5185 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5188 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5189 # Binary search between lo and hi bounds.
5190 while test "x$ac_lo" != "x$ac_hi"; do
5191 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5192 cat >conftest.
$ac_ext <<_ACEOF
5195 cat confdefs.h
>>conftest.
$ac_ext
5196 cat >>conftest.
$ac_ext <<_ACEOF
5197 /* end confdefs.h. */
5198 $ac_includes_default
5199 typedef long ac__type_sizeof_;
5203 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5210 rm -f conftest.
$ac_objext
5211 if { (ac_try
="$ac_compile"
5213 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5214 *) ac_try_echo=$ac_try;;
5216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5217 (eval "$ac_compile") 2>conftest.er1
5219 grep -v '^ *+' conftest.er1 >conftest.err
5221 cat conftest.err >&5
5222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5223 (exit $ac_status); } && {
5224 test -z "$ac_c_werror_flag" ||
5225 test ! -s conftest.err
5226 } && test -s conftest.$ac_objext; then
5229 echo "$as_me: failed program was:" >&5
5230 sed 's/^/| /' conftest.$ac_ext >&5
5232 ac_lo=`expr '(' $ac_mid ')' + 1`
5235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5238 ?*) ac_cv_sizeof_long=$ac_lo;;
5239 '') if test "$ac_cv_type_long" = yes; then
5240 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
5241 See \`config.log
' for more details." >&5
5242 echo "$as_me: error: cannot compute sizeof (long)
5243 See \`config.log' for more details.
" >&2;}
5244 { (exit 77); exit 77; }; }
5250 cat >conftest.$ac_ext <<_ACEOF
5253 cat confdefs.h >>conftest.$ac_ext
5254 cat >>conftest.$ac_ext <<_ACEOF
5255 /* end confdefs.h. */
5256 $ac_includes_default
5257 typedef long ac__type_sizeof_;
5258 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
5259 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
5266 FILE *f = fopen ("conftest.val
", "w
");
5269 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
5271 long int i = longval ();
5272 if (i != ((long int) (sizeof (ac__type_sizeof_))))
5274 fprintf (f, "%ld
\n", i);
5278 unsigned long int i = ulongval ();
5279 if (i != ((long int) (sizeof (ac__type_sizeof_))))
5281 fprintf (f, "%lu
\n", i);
5283 return ferror (f) || fclose (f) != 0;
5289 rm -f conftest$ac_exeext
5290 if { (ac_try="$ac_link"
5292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5293 *) ac_try_echo=$ac_try;;
5295 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5296 (eval "$ac_link") 2>&5
5298 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5299 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5300 { (case "(($ac_try" in
5301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5302 *) ac_try_echo=$ac_try;;
5304 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5305 (eval "$ac_try") 2>&5
5307 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5308 (exit $ac_status); }; }; then
5309 ac_cv_sizeof_long=`cat conftest.val`
5311 echo "$as_me: program exited with status
$ac_status" >&5
5312 echo "$as_me: failed program was
:" >&5
5313 sed 's/^/| /' conftest.$ac_ext >&5
5316 if test "$ac_cv_type_long" = yes; then
5317 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(long
)
5318 See \
`config.log' for more details." >&5
5319 echo "$as_me: error: cannot compute sizeof (long)
5320 See \`config.log
' for more details." >&2;}
5321 { (exit 77); exit 77; }; }
5326 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5330 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5331 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
5335 cat >>confdefs.h <<_ACEOF
5336 #define SIZEOF_LONG $ac_cv_sizeof_long
5341 if test "x$host_m32" = x1; then
5342 # Force 32-bit mode.
5343 CFLAGS="$CFLAGS -m32"
5344 LDFLAGS="$LDFLAGS -m32"
5347 # Check LZO when compiling for the i386-pc.
5348 if test "$target_cpu"-"$platform" = i386-pc; then
5349 # Check whether --enable-lzo was given.
5350 if test "${enable_lzo+set}" = set; then
5351 enableval=$enable_lzo;
5354 if [ x"$enable_lzo" = xyes ]; then
5355 # There are three possibilities. LZO version 2 installed with the name
5356 # liblzo2, with the name liblzo, and LZO version 1.
5358 cat >>confdefs.h <<\_ACEOF
5359 #define ENABLE_LZO 1
5362 { echo "$as_me:$LINENO: checking for __lzo_init_v2 in -llzo2" >&5
5363 echo $ECHO_N "checking for __lzo_init_v2 in -llzo2... $ECHO_C" >&6; }
5364 if test "${ac_cv_lib_lzo2___lzo_init_v2+set}" = set; then
5365 echo $ECHO_N "(cached) $ECHO_C" >&6
5367 ac_check_lib_save_LIBS=$LIBS
5369 cat >conftest.$ac_ext <<_ACEOF
5372 cat confdefs.h >>conftest.$ac_ext
5373 cat >>conftest.$ac_ext <<_ACEOF
5374 /* end confdefs.h. */
5376 /* Override any GCC internal prototype to avoid an error.
5377 Use char because int might match the return type of a GCC
5378 builtin and then its argument prototype would still apply. */
5382 char __lzo_init_v2 ();
5386 return __lzo_init_v2 ();
5391 rm -f conftest.$ac_objext conftest$ac_exeext
5392 if { (ac_try="$ac_link"
5394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5395 *) ac_try_echo=$ac_try;;
5397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5398 (eval "$ac_link") 2>conftest.er1
5400 grep -v '^
*+' conftest.er1 >conftest.err
5402 cat conftest.err >&5
5403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5404 (exit $ac_status); } && {
5405 test -z "$ac_c_werror_flag" ||
5406 test ! -s conftest.err
5407 } && test -s conftest$ac_exeext &&
5408 $as_test_x conftest$ac_exeext; then
5409 ac_cv_lib_lzo2___lzo_init_v2=yes
5411 echo "$as_me: failed program was:" >&5
5412 sed 's
/^
/|
/' conftest.$ac_ext >&5
5414 ac_cv_lib_lzo2___lzo_init_v2=no
5417 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5418 conftest$ac_exeext conftest.$ac_ext
5419 LIBS=$ac_check_lib_save_LIBS
5421 { echo "$as_me:$LINENO: result: $ac_cv_lib_lzo2___lzo_init_v2" >&5
5422 echo "${ECHO_T}$ac_cv_lib_lzo2___lzo_init_v2" >&6; }
5423 if test $ac_cv_lib_lzo2___lzo_init_v2 = yes; then
5426 { echo "$as_me:$LINENO: checking for __lzo_init_v2 in -llzo" >&5
5427 echo $ECHO_N "checking for __lzo_init_v2 in -llzo... $ECHO_C" >&6; }
5428 if test "${ac_cv_lib_lzo___lzo_init_v2+set}" = set; then
5429 echo $ECHO_N "(cached) $ECHO_C" >&6
5431 ac_check_lib_save_LIBS=$LIBS
5433 cat >conftest.$ac_ext <<_ACEOF
5436 cat confdefs.h >>conftest.$ac_ext
5437 cat >>conftest.$ac_ext <<_ACEOF
5438 /* end confdefs.h. */
5440 /* Override any GCC internal prototype to avoid an error.
5441 Use char because int might match the return type of a GCC
5442 builtin and then its argument prototype would still apply. */
5446 char __lzo_init_v2 ();
5450 return __lzo_init_v2 ();
5455 rm -f conftest.$ac_objext conftest$ac_exeext
5456 if { (ac_try="$ac_link"
5458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5459 *) ac_try_echo=$ac_try;;
5461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5462 (eval "$ac_link") 2>conftest.er1
5464 grep -v '^
*+' conftest.er1 >conftest.err
5466 cat conftest.err >&5
5467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5468 (exit $ac_status); } && {
5469 test -z "$ac_c_werror_flag" ||
5470 test ! -s conftest.err
5471 } && test -s conftest$ac_exeext &&
5472 $as_test_x conftest$ac_exeext; then
5473 ac_cv_lib_lzo___lzo_init_v2=yes
5475 echo "$as_me: failed program was:" >&5
5476 sed 's
/^
/|
/' conftest.$ac_ext >&5
5478 ac_cv_lib_lzo___lzo_init_v2=no
5481 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5482 conftest$ac_exeext conftest.$ac_ext
5483 LIBS=$ac_check_lib_save_LIBS
5485 { echo "$as_me:$LINENO: result: $ac_cv_lib_lzo___lzo_init_v2" >&5
5486 echo "${ECHO_T}$ac_cv_lib_lzo___lzo_init_v2" >&6; }
5487 if test $ac_cv_lib_lzo___lzo_init_v2 = yes; then
5490 { echo "$as_me:$LINENO: checking for __lzo_init2 in -llzo" >&5
5491 echo $ECHO_N "checking for __lzo_init2 in -llzo... $ECHO_C" >&6; }
5492 if test "${ac_cv_lib_lzo___lzo_init2+set}" = set; then
5493 echo $ECHO_N "(cached) $ECHO_C" >&6
5495 ac_check_lib_save_LIBS=$LIBS
5497 cat >conftest.$ac_ext <<_ACEOF
5500 cat confdefs.h >>conftest.$ac_ext
5501 cat >>conftest.$ac_ext <<_ACEOF
5502 /* end confdefs.h. */
5504 /* Override any GCC internal prototype to avoid an error.
5505 Use char because int might match the return type of a GCC
5506 builtin and then its argument prototype would still apply. */
5510 char __lzo_init2 ();
5514 return __lzo_init2 ();
5519 rm -f conftest.$ac_objext conftest$ac_exeext
5520 if { (ac_try="$ac_link"
5522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5523 *) ac_try_echo=$ac_try;;
5525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5526 (eval "$ac_link") 2>conftest.er1
5528 grep -v '^
*+' conftest.er1 >conftest.err
5530 cat conftest.err >&5
5531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5532 (exit $ac_status); } && {
5533 test -z "$ac_c_werror_flag" ||
5534 test ! -s conftest.err
5535 } && test -s conftest$ac_exeext &&
5536 $as_test_x conftest$ac_exeext; then
5537 ac_cv_lib_lzo___lzo_init2=yes
5539 echo "$as_me: failed program was:" >&5
5540 sed 's
/^
/|
/' conftest.$ac_ext >&5
5542 ac_cv_lib_lzo___lzo_init2=no
5545 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5546 conftest$ac_exeext conftest.$ac_ext
5547 LIBS=$ac_check_lib_save_LIBS
5549 { echo "$as_me:$LINENO: result: $ac_cv_lib_lzo___lzo_init2" >&5
5550 echo "${ECHO_T}$ac_cv_lib_lzo___lzo_init2" >&6; }
5551 if test $ac_cv_lib_lzo___lzo_init2 = yes; then
5554 { { echo "$as_me:$LINENO: error: LZO library version 1.02 or later is required" >&5
5555 echo "$as_me: error: LZO library version 1.02 or later is required" >&2;}
5556 { (exit 1); exit 1; }; }
5564 LIBS="$LIBS $LIBLZO"
5565 { echo "$as_me:$LINENO: checking for lzo1x_999_compress" >&5
5566 echo $ECHO_N "checking for lzo1x_999_compress... $ECHO_C" >&6; }
5567 if test "${ac_cv_func_lzo1x_999_compress+set}" = set; then
5568 echo $ECHO_N "(cached) $ECHO_C" >&6
5570 cat >conftest.$ac_ext <<_ACEOF
5573 cat confdefs.h >>conftest.$ac_ext
5574 cat >>conftest.$ac_ext <<_ACEOF
5575 /* end confdefs.h. */
5576 /* Define lzo1x_999_compress to an innocuous variant, in case <limits.h> declares lzo1x_999_compress.
5577 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5578 #define lzo1x_999_compress innocuous_lzo1x_999_compress
5580 /* System header to define __stub macros and hopefully few prototypes,
5581 which can conflict with char lzo1x_999_compress (); below.
5582 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5583 <limits.h> exists even on freestanding compilers. */
5586 # include <limits.h>
5588 # include <assert.h>
5591 #undef lzo1x_999_compress
5593 /* Override any GCC internal prototype to avoid an error.
5594 Use char because int might match the return type of a GCC
5595 builtin and then its argument prototype would still apply. */
5599 char lzo1x_999_compress ();
5600 /* The GNU C library defines this for functions which it implements
5601 to always fail with ENOSYS. Some functions are actually named
5602 something starting with __ and the normal name is an alias. */
5603 #if defined __stub_lzo1x_999_compress || defined __stub___lzo1x_999_compress
5610 return lzo1x_999_compress ();
5615 rm -f conftest.$ac_objext conftest$ac_exeext
5616 if { (ac_try="$ac_link"
5618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5619 *) ac_try_echo=$ac_try;;
5621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5622 (eval "$ac_link") 2>conftest.er1
5624 grep -v '^
*+' conftest.er1 >conftest.err
5626 cat conftest.err >&5
5627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5628 (exit $ac_status); } && {
5629 test -z "$ac_c_werror_flag" ||
5630 test ! -s conftest.err
5631 } && test -s conftest$ac_exeext &&
5632 $as_test_x conftest$ac_exeext; then
5633 ac_cv_func_lzo1x_999_compress=yes
5635 echo "$as_me: failed program was:" >&5
5636 sed 's
/^
/|
/' conftest.$ac_ext >&5
5638 ac_cv_func_lzo1x_999_compress=no
5641 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5642 conftest$ac_exeext conftest.$ac_ext
5644 { echo "$as_me:$LINENO: result: $ac_cv_func_lzo1x_999_compress" >&5
5645 echo "${ECHO_T}$ac_cv_func_lzo1x_999_compress" >&6; }
5646 if test $ac_cv_func_lzo1x_999_compress = yes; then
5649 { { echo "$as_me:$LINENO: error: LZO1X-999 must be enabled" >&5
5650 echo "$as_me: error: LZO1X-999 must be enabled" >&2;}
5651 { (exit 1); exit 1; }; }
5655 # LZO version 2 uses lzo/lzo1x.h, while LZO version 1 uses lzo1x.h.
5658 for ac_header in lzo/lzo1x.h lzo1x.h
5660 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5661 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5662 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5663 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5664 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5665 echo $ECHO_N "(cached) $ECHO_C" >&6
5667 ac_res=`eval echo '${'$as_ac_Header'}'`
5668 { echo "$as_me:$LINENO: result: $ac_res" >&5
5669 echo "${ECHO_T}$ac_res" >&6; }
5671 # Is the header compilable?
5672 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5673 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5674 cat >conftest.$ac_ext <<_ACEOF
5677 cat confdefs.h >>conftest.$ac_ext
5678 cat >>conftest.$ac_ext <<_ACEOF
5679 /* end confdefs.h. */
5680 $ac_includes_default
5681 #include <$ac_header>
5683 rm -f conftest.$ac_objext
5684 if { (ac_try="$ac_compile"
5686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5687 *) ac_try_echo=$ac_try;;
5689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5690 (eval "$ac_compile") 2>conftest.er1
5692 grep -v '^
*+' conftest.er1 >conftest.err
5694 cat conftest.err >&5
5695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5696 (exit $ac_status); } && {
5697 test -z "$ac_c_werror_flag" ||
5698 test ! -s conftest.err
5699 } && test -s conftest.$ac_objext; then
5700 ac_header_compiler=yes
5702 echo "$as_me: failed program was:" >&5
5703 sed 's
/^
/|
/' conftest.$ac_ext >&5
5705 ac_header_compiler=no
5708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5709 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5710 echo "${ECHO_T}$ac_header_compiler" >&6; }
5712 # Is the header present?
5713 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5714 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5715 cat >conftest.$ac_ext <<_ACEOF
5718 cat confdefs.h >>conftest.$ac_ext
5719 cat >>conftest.$ac_ext <<_ACEOF
5720 /* end confdefs.h. */
5721 #include <$ac_header>
5723 if { (ac_try="$ac_cpp conftest.$ac_ext"
5725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5726 *) ac_try_echo=$ac_try;;
5728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5729 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5731 grep -v '^
*+' conftest.er1 >conftest.err
5733 cat conftest.err >&5
5734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5735 (exit $ac_status); } >/dev/null && {
5736 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5737 test ! -s conftest.err
5739 ac_header_preproc=yes
5741 echo "$as_me: failed program was:" >&5
5742 sed 's
/^
/|
/' conftest.$ac_ext >&5
5744 ac_header_preproc=no
5747 rm -f conftest.err conftest.$ac_ext
5748 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5749 echo "${ECHO_T}$ac_header_preproc" >&6; }
5751 # So? What about this header?
5752 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5754 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5755 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5756 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result
" >&5
5757 echo "$as_me: WARNING
: $ac_header: proceeding with the compiler
's result" >&2;}
5758 ac_header_preproc=yes
5761 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5762 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5763 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5764 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5765 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5766 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5767 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5768 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5769 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result
" >&5
5770 echo "$as_me: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&2;}
5771 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5772 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5774 ## ------------------------------- ##
5775 ## Report this to bug-grub@gnu.org ##
5776 ## ------------------------------- ##
5778 ) | sed "s/^/$as_me: WARNING: /" >&2
5781 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5782 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5783 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5784 echo $ECHO_N "(cached) $ECHO_C" >&6
5786 eval "$as_ac_Header=\$ac_header_preproc"
5788 ac_res=`eval echo '${'$as_ac_Header'}'`
5789 { echo "$as_me:$LINENO: result: $ac_res" >&5
5790 echo "${ECHO_T}$ac_res" >&6; }
5793 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5794 cat >>confdefs.h <<_ACEOF
5795 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5804 cat >>confdefs.h <<\_ACEOF
5805 #define ENABLE_LZMA 1
5812 # Check for functions.
5818 for ac_func in posix_memalign memalign asprintf __bswapsi2 __bswapdi2
5820 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5821 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5822 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5823 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5824 echo $ECHO_N "(cached) $ECHO_C" >&6
5826 cat >conftest.$ac_ext <<_ACEOF
5829 cat confdefs.h >>conftest.$ac_ext
5830 cat >>conftest.$ac_ext <<_ACEOF
5831 /* end confdefs.h. */
5832 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5833 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5834 #define $ac_func innocuous_$ac_func
5836 /* System header to define __stub macros and hopefully few prototypes,
5837 which can conflict with char $ac_func (); below.
5838 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5839 <limits.h> exists even on freestanding compilers. */
5842 # include <limits.h>
5844 # include <assert.h>
5849 /* Override any GCC internal prototype to avoid an error.
5850 Use char because int might match the return type of a GCC
5851 builtin and then its argument prototype would still apply. */
5856 /* The GNU C library defines this for functions which it implements
5857 to always fail with ENOSYS. Some functions are actually named
5858 something starting with __ and the normal name is an alias. */
5859 #if defined __stub_$ac_func || defined __stub___$ac_func
5871 rm -f conftest.$ac_objext conftest$ac_exeext
5872 if { (ac_try="$ac_link"
5874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5875 *) ac_try_echo=$ac_try;;
5877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5878 (eval "$ac_link") 2>conftest.er1
5880 grep -v '^
*+' conftest.er1 >conftest.err
5882 cat conftest.err >&5
5883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5884 (exit $ac_status); } && {
5885 test -z "$ac_c_werror_flag" ||
5886 test ! -s conftest.err
5887 } && test -s conftest$ac_exeext &&
5888 $as_test_x conftest$ac_exeext; then
5889 eval "$as_ac_var=yes"
5891 echo "$as_me: failed program was:" >&5
5892 sed 's
/^
/|
/' conftest.$ac_ext >&5
5894 eval "$as_ac_var=no"
5897 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5898 conftest$ac_exeext conftest.$ac_ext
5900 ac_res=`eval echo '${'$as_ac_var'}'`
5901 { echo "$as_me:$LINENO: result: $ac_res" >&5
5902 echo "${ECHO_T}$ac_res" >&6; }
5903 if test `eval echo '${'$as_ac_var'}'` = yes; then
5904 cat >>confdefs.h <<_ACEOF
5905 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5913 # Check for target programs.
5917 # Use linker script if present, otherwise use builtin -N script.
5918 { echo "$as_me:$LINENO: checking for option to link raw image" >&5
5919 echo $ECHO_N "checking for option to link raw image... $ECHO_C" >&6; }
5920 if test -f "${srcdir}/conf/${target_cpu}-${platform}-${host_os}-img-ld.sc"; then
5921 TARGET_IMG_LDSCRIPT='$
(top_srcdir
)'"/conf/${target_cpu}-${platform}-${host_os}-img-ld.sc"
5922 TARGET_IMG_LDFLAGS="-Wl,-T${TARGET_IMG_LDSCRIPT}"
5923 TARGET_IMG_LDFLAGS_AC="-Wl,-T${srcdir}/conf/${target_cpu}-${platform}-${host_os}-img-ld.sc"
5925 TARGET_IMG_LDSCRIPT=
5926 TARGET_IMG_LDFLAGS='-Wl,-N'
5927 TARGET_IMG_LDFLAGS_AC='-Wl,-N'
5931 { echo "$as_me:$LINENO: result: $TARGET_IMG_LDFLAGS_AC" >&5
5932 echo "${ECHO_T}$TARGET_IMG_LDFLAGS_AC" >&6; }
5934 # For platforms where ELF is not the default link format.
5935 { echo "$as_me:$LINENO: checking for command to convert module to ELF format" >&5
5936 echo $ECHO_N "checking for command to convert module to ELF format... $ECHO_C" >&6; }
5937 case "${host_os}" in
5938 cygwin) TARGET_OBJ2ELF='grub-pe2elf
' ;;
5942 { echo "$as_me:$LINENO: result: $TARGET_OBJ2ELF" >&5
5943 echo "${ECHO_T}$TARGET_OBJ2ELF" >&6; }
5945 # For cross-compiling.
5946 if test "x$build" != "x$host"; then
5947 # XXX this depends on the implementation of autoconf!
5948 tmp_ac_tool_prefix="$ac_tool_prefix"
5949 ac_tool_prefix=$target_alias-
5951 if test -n "$ac_tool_prefix"; then
5952 for ac_prog in gcc egcs cc
5954 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5955 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5956 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5957 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5958 if test "${ac_cv_prog_TARGET_CC+set}" = set; then
5959 echo $ECHO_N "(cached) $ECHO_C" >&6
5961 if test -n "$TARGET_CC"; then
5962 ac_cv_prog_TARGET_CC="$TARGET_CC" # Let the user override the test.
5964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5968 test -z "$as_dir" && as_dir=.
5969 for ac_exec_ext in '' $ac_executable_extensions; do
5970 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5971 ac_cv_prog_TARGET_CC="$ac_tool_prefix$ac_prog"
5972 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5981 TARGET_CC=$ac_cv_prog_TARGET_CC
5982 if test -n "$TARGET_CC"; then
5983 { echo "$as_me:$LINENO: result: $TARGET_CC" >&5
5984 echo "${ECHO_T}$TARGET_CC" >&6; }
5986 { echo "$as_me:$LINENO: result: no" >&5
5987 echo "${ECHO_T}no" >&6; }
5991 test -n "$TARGET_CC" && break
5994 if test -z "$TARGET_CC"; then
5995 ac_ct_TARGET_CC=$TARGET_CC
5996 for ac_prog in gcc egcs cc
5998 # Extract the first word of "$ac_prog", so it can be a program name with args.
5999 set dummy $ac_prog; ac_word=$2
6000 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6001 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6002 if test "${ac_cv_prog_ac_ct_TARGET_CC+set}" = set; then
6003 echo $ECHO_N "(cached) $ECHO_C" >&6
6005 if test -n "$ac_ct_TARGET_CC"; then
6006 ac_cv_prog_ac_ct_TARGET_CC="$ac_ct_TARGET_CC" # Let the user override the test.
6008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6012 test -z "$as_dir" && as_dir=.
6013 for ac_exec_ext in '' $ac_executable_extensions; do
6014 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6015 ac_cv_prog_ac_ct_TARGET_CC="$ac_prog"
6016 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6025 ac_ct_TARGET_CC=$ac_cv_prog_ac_ct_TARGET_CC
6026 if test -n "$ac_ct_TARGET_CC"; then
6027 { echo "$as_me:$LINENO: result: $ac_ct_TARGET_CC" >&5
6028 echo "${ECHO_T}$ac_ct_TARGET_CC" >&6; }
6030 { echo "$as_me:$LINENO: result: no" >&5
6031 echo "${ECHO_T}no" >&6; }
6035 test -n "$ac_ct_TARGET_CC" && break
6038 if test "x$ac_ct_TARGET_CC" = x; then
6039 TARGET_CC="{ { echo "$as_me:$LINENO: error: none of gcc, egcs and cc is found. set TARGET_CC manually." >&5
6040 echo "$as_me: error: none of gcc, egcs and cc is found. set TARGET_CC manually." >&2;}
6041 { (exit 1); exit 1; }; }"
6043 case $cross_compiling:$ac_tool_warned in
6045 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6046 whose name does not start with the host triplet. If you think this
6047 configuration is useful to you, please write to autoconf@gnu.org." >&5
6048 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6049 whose name does not start with the host triplet. If you think this
6050 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6051 ac_tool_warned=yes ;;
6053 TARGET_CC=$ac_ct_TARGET_CC
6057 if test -n "$ac_tool_prefix"; then
6058 # Extract the first word of "${ac_tool_prefix}objcopy", so it can be a program name with args.
6059 set dummy ${ac_tool_prefix}objcopy; ac_word=$2
6060 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6061 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6062 if test "${ac_cv_prog_OBJCOPY+set}" = set; then
6063 echo $ECHO_N "(cached) $ECHO_C" >&6
6065 if test -n "$OBJCOPY"; then
6066 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
6068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6072 test -z "$as_dir" && as_dir=.
6073 for ac_exec_ext in '' $ac_executable_extensions; do
6074 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6075 ac_cv_prog_OBJCOPY="${ac_tool_prefix}objcopy"
6076 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6085 OBJCOPY=$ac_cv_prog_OBJCOPY
6086 if test -n "$OBJCOPY"; then
6087 { echo "$as_me:$LINENO: result: $OBJCOPY" >&5
6088 echo "${ECHO_T}$OBJCOPY" >&6; }
6090 { echo "$as_me:$LINENO: result: no" >&5
6091 echo "${ECHO_T}no" >&6; }
6096 if test -z "$ac_cv_prog_OBJCOPY"; then
6097 ac_ct_OBJCOPY=$OBJCOPY
6098 # Extract the first word of "objcopy", so it can be a program name with args.
6099 set dummy objcopy; ac_word=$2
6100 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6101 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6102 if test "${ac_cv_prog_ac_ct_OBJCOPY+set}" = set; then
6103 echo $ECHO_N "(cached) $ECHO_C" >&6
6105 if test -n "$ac_ct_OBJCOPY"; then
6106 ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test.
6108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6112 test -z "$as_dir" && as_dir=.
6113 for ac_exec_ext in '' $ac_executable_extensions; do
6114 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6115 ac_cv_prog_ac_ct_OBJCOPY="objcopy"
6116 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6125 ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY
6126 if test -n "$ac_ct_OBJCOPY"; then
6127 { echo "$as_me:$LINENO: result: $ac_ct_OBJCOPY" >&5
6128 echo "${ECHO_T}$ac_ct_OBJCOPY" >&6; }
6130 { echo "$as_me:$LINENO: result: no" >&5
6131 echo "${ECHO_T}no" >&6; }
6134 if test "x$ac_ct_OBJCOPY" = x; then
6137 case $cross_compiling:$ac_tool_warned in
6139 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6140 whose name does not start with the host triplet. If you think this
6141 configuration is useful to you, please write to autoconf@gnu.org." >&5
6142 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6143 whose name does not start with the host triplet. If you think this
6144 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6145 ac_tool_warned=yes ;;
6147 OBJCOPY=$ac_ct_OBJCOPY
6150 OBJCOPY="$ac_cv_prog_OBJCOPY"
6153 if test -n "$ac_tool_prefix"; then
6154 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6155 set dummy ${ac_tool_prefix}strip; ac_word=$2
6156 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6157 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6158 if test "${ac_cv_prog_STRIP+set}" = set; then
6159 echo $ECHO_N "(cached) $ECHO_C" >&6
6161 if test -n "$STRIP"; then
6162 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6168 test -z "$as_dir" && as_dir=.
6169 for ac_exec_ext in '' $ac_executable_extensions; do
6170 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6171 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6172 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6181 STRIP=$ac_cv_prog_STRIP
6182 if test -n "$STRIP"; then
6183 { echo "$as_me:$LINENO: result: $STRIP" >&5
6184 echo "${ECHO_T}$STRIP" >&6; }
6186 { echo "$as_me:$LINENO: result: no" >&5
6187 echo "${ECHO_T}no" >&6; }
6192 if test -z "$ac_cv_prog_STRIP"; then
6194 # Extract the first word of "strip", so it can be a program name with args.
6195 set dummy strip; ac_word=$2
6196 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6197 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6198 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6199 echo $ECHO_N "(cached) $ECHO_C" >&6
6201 if test -n "$ac_ct_STRIP"; then
6202 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6208 test -z "$as_dir" && as_dir=.
6209 for ac_exec_ext in '' $ac_executable_extensions; do
6210 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6211 ac_cv_prog_ac_ct_STRIP="strip"
6212 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6221 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6222 if test -n "$ac_ct_STRIP"; then
6223 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6224 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6226 { echo "$as_me:$LINENO: result: no" >&5
6227 echo "${ECHO_T}no" >&6; }
6230 if test "x$ac_ct_STRIP" = x; then
6233 case $cross_compiling:$ac_tool_warned in
6235 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6236 whose name does not start with the host triplet. If you think this
6237 configuration is useful to you, please write to autoconf@gnu.org." >&5
6238 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6239 whose name does not start with the host triplet. If you think this
6240 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6241 ac_tool_warned=yes ;;
6246 STRIP="$ac_cv_prog_STRIP"
6249 if test -n "$ac_tool_prefix"; then
6250 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
6251 set dummy ${ac_tool_prefix}nm; ac_word=$2
6252 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6253 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6254 if test "${ac_cv_prog_NM+set}" = set; then
6255 echo $ECHO_N "(cached) $ECHO_C" >&6
6257 if test -n "$NM"; then
6258 ac_cv_prog_NM="$NM" # Let the user override the test.
6260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6264 test -z "$as_dir" && as_dir=.
6265 for ac_exec_ext in '' $ac_executable_extensions; do
6266 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6267 ac_cv_prog_NM="${ac_tool_prefix}nm"
6268 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6278 if test -n "$NM"; then
6279 { echo "$as_me:$LINENO: result: $NM" >&5
6280 echo "${ECHO_T}$NM" >&6; }
6282 { echo "$as_me:$LINENO: result: no" >&5
6283 echo "${ECHO_T}no" >&6; }
6288 if test -z "$ac_cv_prog_NM"; then
6290 # Extract the first word of "nm", so it can be a program name with args.
6291 set dummy nm; ac_word=$2
6292 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6293 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6294 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
6295 echo $ECHO_N "(cached) $ECHO_C" >&6
6297 if test -n "$ac_ct_NM"; then
6298 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
6300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6304 test -z "$as_dir" && as_dir=.
6305 for ac_exec_ext in '' $ac_executable_extensions; do
6306 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6307 ac_cv_prog_ac_ct_NM="nm"
6308 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6317 ac_ct_NM=$ac_cv_prog_ac_ct_NM
6318 if test -n "$ac_ct_NM"; then
6319 { echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
6320 echo "${ECHO_T}$ac_ct_NM" >&6; }
6322 { echo "$as_me:$LINENO: result: no" >&5
6323 echo "${ECHO_T}no" >&6; }
6326 if test "x$ac_ct_NM" = x; then
6329 case $cross_compiling:$ac_tool_warned in
6331 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6332 whose name does not start with the host triplet. If you think this
6333 configuration is useful to you, please write to autoconf@gnu.org." >&5
6334 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6335 whose name does not start with the host triplet. If you think this
6336 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6337 ac_tool_warned=yes ;;
6346 ac_tool_prefix="$tmp_ac_tool_prefix"
6348 if test "x$TARGET_CC" = x; then
6351 if test -n "$ac_tool_prefix"; then
6352 # Extract the first word of "${ac_tool_prefix}objcopy", so it can be a program name with args.
6353 set dummy ${ac_tool_prefix}objcopy; ac_word=$2
6354 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6355 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6356 if test "${ac_cv_prog_OBJCOPY+set}" = set; then
6357 echo $ECHO_N "(cached) $ECHO_C" >&6
6359 if test -n "$OBJCOPY"; then
6360 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
6362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6366 test -z "$as_dir" && as_dir=.
6367 for ac_exec_ext in '' $ac_executable_extensions; do
6368 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6369 ac_cv_prog_OBJCOPY="${ac_tool_prefix}objcopy"
6370 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6379 OBJCOPY=$ac_cv_prog_OBJCOPY
6380 if test -n "$OBJCOPY"; then
6381 { echo "$as_me:$LINENO: result: $OBJCOPY" >&5
6382 echo "${ECHO_T}$OBJCOPY" >&6; }
6384 { echo "$as_me:$LINENO: result: no" >&5
6385 echo "${ECHO_T}no" >&6; }
6390 if test -z "$ac_cv_prog_OBJCOPY"; then
6391 ac_ct_OBJCOPY=$OBJCOPY
6392 # Extract the first word of "objcopy", so it can be a program name with args.
6393 set dummy objcopy; ac_word=$2
6394 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6395 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6396 if test "${ac_cv_prog_ac_ct_OBJCOPY+set}" = set; then
6397 echo $ECHO_N "(cached) $ECHO_C" >&6
6399 if test -n "$ac_ct_OBJCOPY"; then
6400 ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test.
6402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6406 test -z "$as_dir" && as_dir=.
6407 for ac_exec_ext in '' $ac_executable_extensions; do
6408 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6409 ac_cv_prog_ac_ct_OBJCOPY="objcopy"
6410 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6419 ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY
6420 if test -n "$ac_ct_OBJCOPY"; then
6421 { echo "$as_me:$LINENO: result: $ac_ct_OBJCOPY" >&5
6422 echo "${ECHO_T}$ac_ct_OBJCOPY" >&6; }
6424 { echo "$as_me:$LINENO: result: no" >&5
6425 echo "${ECHO_T}no" >&6; }
6428 if test "x$ac_ct_OBJCOPY" = x; then
6431 case $cross_compiling:$ac_tool_warned in
6433 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6434 whose name does not start with the host triplet. If you think this
6435 configuration is useful to you, please write to autoconf@gnu.org." >&5
6436 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6437 whose name does not start with the host triplet. If you think this
6438 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6439 ac_tool_warned=yes ;;
6441 OBJCOPY=$ac_ct_OBJCOPY
6444 OBJCOPY="$ac_cv_prog_OBJCOPY"
6447 if test -n "$ac_tool_prefix"; then
6448 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6449 set dummy ${ac_tool_prefix}strip; ac_word=$2
6450 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6451 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6452 if test "${ac_cv_prog_STRIP+set}" = set; then
6453 echo $ECHO_N "(cached) $ECHO_C" >&6
6455 if test -n "$STRIP"; then
6456 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6462 test -z "$as_dir" && as_dir=.
6463 for ac_exec_ext in '' $ac_executable_extensions; do
6464 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6465 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6466 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6475 STRIP=$ac_cv_prog_STRIP
6476 if test -n "$STRIP"; then
6477 { echo "$as_me:$LINENO: result: $STRIP" >&5
6478 echo "${ECHO_T}$STRIP" >&6; }
6480 { echo "$as_me:$LINENO: result: no" >&5
6481 echo "${ECHO_T}no" >&6; }
6486 if test -z "$ac_cv_prog_STRIP"; then
6488 # Extract the first word of "strip", so it can be a program name with args.
6489 set dummy strip; ac_word=$2
6490 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6491 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6492 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6493 echo $ECHO_N "(cached) $ECHO_C" >&6
6495 if test -n "$ac_ct_STRIP"; then
6496 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6502 test -z "$as_dir" && as_dir=.
6503 for ac_exec_ext in '' $ac_executable_extensions; do
6504 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6505 ac_cv_prog_ac_ct_STRIP="strip"
6506 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6515 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6516 if test -n "$ac_ct_STRIP"; then
6517 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6518 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6520 { echo "$as_me:$LINENO: result: no" >&5
6521 echo "${ECHO_T}no" >&6; }
6524 if test "x$ac_ct_STRIP" = x; then
6527 case $cross_compiling:$ac_tool_warned in
6529 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6530 whose name does not start with the host triplet. If you think this
6531 configuration is useful to you, please write to autoconf@gnu.org." >&5
6532 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6533 whose name does not start with the host triplet. If you think this
6534 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6535 ac_tool_warned=yes ;;
6540 STRIP="$ac_cv_prog_STRIP"
6543 if test -n "$ac_tool_prefix"; then
6544 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
6545 set dummy ${ac_tool_prefix}nm; ac_word=$2
6546 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6547 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6548 if test "${ac_cv_prog_NM+set}" = set; then
6549 echo $ECHO_N "(cached) $ECHO_C" >&6
6551 if test -n "$NM"; then
6552 ac_cv_prog_NM="$NM" # Let the user override the test.
6554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6558 test -z "$as_dir" && as_dir=.
6559 for ac_exec_ext in '' $ac_executable_extensions; do
6560 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6561 ac_cv_prog_NM="${ac_tool_prefix}nm"
6562 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6572 if test -n "$NM"; then
6573 { echo "$as_me:$LINENO: result: $NM" >&5
6574 echo "${ECHO_T}$NM" >&6; }
6576 { echo "$as_me:$LINENO: result: no" >&5
6577 echo "${ECHO_T}no" >&6; }
6582 if test -z "$ac_cv_prog_NM"; then
6584 # Extract the first word of "nm", so it can be a program name with args.
6585 set dummy nm; ac_word=$2
6586 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6587 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6588 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
6589 echo $ECHO_N "(cached) $ECHO_C" >&6
6591 if test -n "$ac_ct_NM"; then
6592 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
6594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6598 test -z "$as_dir" && as_dir=.
6599 for ac_exec_ext in '' $ac_executable_extensions; do
6600 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6601 ac_cv_prog_ac_ct_NM="nm"
6602 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6611 ac_ct_NM=$ac_cv_prog_ac_ct_NM
6612 if test -n "$ac_ct_NM"; then
6613 { echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
6614 echo "${ECHO_T}$ac_ct_NM" >&6; }
6616 { echo "$as_me:$LINENO: result: no" >&5
6617 echo "${ECHO_T}no" >&6; }
6620 if test "x$ac_ct_NM" = x; then
6623 case $cross_compiling:$ac_tool_warned in
6625 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6626 whose name does not start with the host triplet. If you think this
6627 configuration is useful to you, please write to autoconf@gnu.org." >&5
6628 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6629 whose name does not start with the host triplet. If you think this
6630 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6631 ac_tool_warned=yes ;;
6643 # Test the C compiler for the target environment.
6645 tmp_CFLAGS="$CFLAGS"
6646 tmp_LDFLAGS="$LDFLAGS"
6647 tmp_CPPFLAGS="$CPPFLAGS"
6650 CFLAGS="$TARGET_CFLAGS"
6651 CPPFLAGS="$TARGET_CPPFLAGS"
6652 LDFLAGS="$TARGET_LDFLAGS"
6655 if test "x$TARGET_CFLAGS" = x; then
6657 TARGET_CFLAGS="-Wall -W -Wshadow -Wpointer-arith -Wmissing-prototypes \
6658 -Wundef -Wstrict-prototypes -g"
6660 # optimization flags.
6661 { echo "$as_me:$LINENO: checking whether optimization for size works" >&5
6662 echo $ECHO_N "checking whether optimization for size works... $ECHO_C" >&6; }
6663 if test "${grub_cv_cc_Os+set}" = set; then
6664 echo $ECHO_N "(cached) $ECHO_C" >&6
6668 cat >conftest.$ac_ext <<_ACEOF
6671 cat confdefs.h >>conftest.$ac_ext
6672 cat >>conftest.$ac_ext <<_ACEOF
6673 /* end confdefs.h. */
6683 rm -f conftest.$ac_objext
6684 if { (ac_try="$ac_compile"
6686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6687 *) ac_try_echo=$ac_try;;
6689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6690 (eval "$ac_compile") 2>conftest.er1
6692 grep -v '^
*+' conftest.er1 >conftest.err
6694 cat conftest.err >&5
6695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6696 (exit $ac_status); } && {
6697 test -z "$ac_c_werror_flag" ||
6698 test ! -s conftest.err
6699 } && test -s conftest.$ac_objext; then
6702 echo "$as_me: failed program was:" >&5
6703 sed 's
/^
/|
/' conftest.$ac_ext >&5
6708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6711 { echo "$as_me:$LINENO: result: $grub_cv_cc_Os" >&5
6712 echo "${ECHO_T}$grub_cv_cc_Os" >&6; }
6713 if test "x$grub_cv_cc_Os" = xyes; then
6714 TARGET_CFLAGS="$TARGET_CFLAGS -Os"
6716 TARGET_CFLAGS="$TARGET_CFLAGS -O2 -fno-strength-reduce -fno-unroll-loops"
6719 # Force no alignment to save space on i386.
6720 if test "x$target_cpu" = xi386; then
6721 { echo "$as_me:$LINENO: checking whether -falign-loops works" >&5
6722 echo $ECHO_N "checking whether -falign-loops works... $ECHO_C" >&6; }
6723 if test "${grub_cv_cc_falign_loop+set}" = set; then
6724 echo $ECHO_N "(cached) $ECHO_C" >&6
6727 CFLAGS="-falign-loops=1"
6728 cat >conftest.$ac_ext <<_ACEOF
6731 cat confdefs.h >>conftest.$ac_ext
6732 cat >>conftest.$ac_ext <<_ACEOF
6733 /* end confdefs.h. */
6743 rm -f conftest.$ac_objext
6744 if { (ac_try="$ac_compile"
6746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6747 *) ac_try_echo=$ac_try;;
6749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6750 (eval "$ac_compile") 2>conftest.er1
6752 grep -v '^
*+' conftest.er1 >conftest.err
6754 cat conftest.err >&5
6755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6756 (exit $ac_status); } && {
6757 test -z "$ac_c_werror_flag" ||
6758 test ! -s conftest.err
6759 } && test -s conftest.$ac_objext; then
6760 grub_cv_cc_falign_loop=yes
6762 echo "$as_me: failed program was:" >&5
6763 sed 's
/^
/|
/' conftest.$ac_ext >&5
6765 grub_cv_cc_falign_loop=no
6768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6771 { echo "$as_me:$LINENO: result: $grub_cv_cc_falign_loop" >&5
6772 echo "${ECHO_T}$grub_cv_cc_falign_loop" >&6; }
6774 if test "x$grub_cv_cc_falign_loop" = xyes; then
6775 TARGET_CFLAGS="$TARGET_CFLAGS -falign-jumps=1 -falign-loops=1 -falign-functions=1"
6777 TARGET_CFLAGS="$TARGET_CFLAGS -malign-jumps=1 -malign-loops=1 -malign-functions=1"
6782 if test "x$target_m32" = x1; then
6783 # Force 32-bit mode.
6784 TARGET_CFLAGS="$TARGET_CFLAGS -m32"
6785 TARGET_LDFLAGS="$TARGET_LDFLAGS -m32"
6788 if test "x$target_m64" = x1; then
6789 # Force 64-bit mode.
6790 TARGET_CFLAGS="$TARGET_CFLAGS -m64"
6791 TARGET_LDFLAGS="$TARGET_LDFLAGS -m64"
6794 if test "$target_cpu"-"$platform" = x86_64-efi; then
6795 # Use large model to support 4G memory
6796 { echo "$as_me:$LINENO: checking whether option -mcmodel=large works" >&5
6797 echo $ECHO_N "checking whether option -mcmodel=large works... $ECHO_C" >&6; }
6798 if test "${grub_cv_cc_mcmodel+set}" = set; then
6799 echo $ECHO_N "(cached) $ECHO_C" >&6
6802 CFLAGS="-m64 -mcmodel=large"
6803 cat >conftest.$ac_ext <<_ACEOF
6806 cat confdefs.h >>conftest.$ac_ext
6807 cat >>conftest.$ac_ext <<_ACEOF
6808 /* end confdefs.h. */
6818 rm -f conftest.$ac_objext
6819 if { (ac_try="$ac_compile"
6821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6822 *) ac_try_echo=$ac_try;;
6824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6825 (eval "$ac_compile") 2>conftest.er1
6827 grep -v '^
*+' conftest.er1 >conftest.err
6829 cat conftest.err >&5
6830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6831 (exit $ac_status); } && {
6832 test -z "$ac_c_werror_flag" ||
6833 test ! -s conftest.err
6834 } && test -s conftest.$ac_objext; then
6835 grub_cv_cc_mcmodel=yes
6837 echo "$as_me: failed program was:" >&5
6838 sed 's
/^
/|
/' conftest.$ac_ext >&5
6840 grub_cv_cc_mcmodel=no
6843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6846 { echo "$as_me:$LINENO: result: $grub_cv_cc_mcmodel" >&5
6847 echo "${ECHO_T}$grub_cv_cc_mcmodel" >&6; }
6848 if test "x$grub_cv_cc_no_mcmodel" = xno; then
6849 { { echo "$as_me:$LINENO: error: -mcmodel=large not supported, upgrade your gcc" >&5
6850 echo "$as_me: error: -mcmodel=large not supported, upgrade your gcc" >&2;}
6851 { (exit 1); exit 1; }; }
6854 # EFI writes to stack below %rsp, we must not use the red zone
6855 { echo "$as_me:$LINENO: checking whether option -mno-red-zone works" >&5
6856 echo $ECHO_N "checking whether option -mno-red-zone works... $ECHO_C" >&6; }
6857 if test "${grub_cv_cc_no_red_zone+set}" = set; then
6858 echo $ECHO_N "(cached) $ECHO_C" >&6
6861 CFLAGS="-m64 -mno-red-zone"
6862 cat >conftest.$ac_ext <<_ACEOF
6865 cat confdefs.h >>conftest.$ac_ext
6866 cat >>conftest.$ac_ext <<_ACEOF
6867 /* end confdefs.h. */
6877 rm -f conftest.$ac_objext
6878 if { (ac_try="$ac_compile"
6880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6881 *) ac_try_echo=$ac_try;;
6883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6884 (eval "$ac_compile") 2>conftest.er1
6886 grep -v '^
*+' conftest.er1 >conftest.err
6888 cat conftest.err >&5
6889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6890 (exit $ac_status); } && {
6891 test -z "$ac_c_werror_flag" ||
6892 test ! -s conftest.err
6893 } && test -s conftest.$ac_objext; then
6894 grub_cv_cc_no_red_zone=yes
6896 echo "$as_me: failed program was:" >&5
6897 sed 's
/^
/|
/' conftest.$ac_ext >&5
6899 grub_cv_cc_no_red_zone=no
6902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6905 { echo "$as_me:$LINENO: result: $grub_cv_cc_no_red_zone" >&5
6906 echo "${ECHO_T}$grub_cv_cc_no_red_zone" >&6; }
6907 if test "x$grub_cv_cc_no_red_zone" = xno; then
6908 { { echo "$as_me:$LINENO: error: -mno-red-zone not supported, upgrade your gcc" >&5
6909 echo "$as_me: error: -mno-red-zone not supported, upgrade your gcc" >&2;}
6910 { (exit 1); exit 1; }; }
6913 TARGET_CFLAGS="$TARGET_CFLAGS -mcmodel=large -mno-red-zone"
6917 # Compiler features.
6920 # Need __enable_execute_stack() for nested function trampolines?
6922 { echo "$as_me:$LINENO: checking whether \`$CC' generates calls to \
`__enable_execute_stack()'" >&5
6923 echo $ECHO_N "checking whether \`$CC' generates calls to \`__enable_execute_stack()'...
$ECHO_C" >&6; }
6924 cat >conftest.$ac_ext <<_ACEOF
6926 void f (int (*p) (void));
6929 int nestedfunc (void) { return i; }
6934 if { ac_try='${CC-cc} ${CFLAGS} -S conftest.c'
6935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6938 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6939 (exit $ac_status); }; } && test -s conftest.s; then
6942 { { echo "$as_me:$LINENO: error
: ${CC-cc} failed to produce assembly code
" >&5
6943 echo "$as_me: error
: ${CC-cc} failed to produce assembly code
" >&2;}
6944 { (exit 1); exit 1; }; }
6946 if grep __enable_execute_stack conftest.s >/dev/null 2>&1; then
6948 cat >>confdefs.h <<\_ACEOF
6949 #define NEED_ENABLE_EXECUTE_STACK 1
6952 { echo "$as_me:$LINENO: result
: yes" >&5
6953 echo "${ECHO_T}yes" >&6; }
6955 { echo "$as_me:$LINENO: result
: no
" >&5
6956 echo "${ECHO_T}no
" >&6; }
6961 # Smashing stack protector.
6963 # Smashing stack protector.
6965 { echo "$as_me:$LINENO: checking whether \
`$CC' accepts \`-fstack-protector'" >&5
6966 echo $ECHO_N "checking whether \`$CC' accepts \
`-fstack-protector'... $ECHO_C" >&6; }
6967 # Is this a reliable test case?
6968 cat >conftest.$ac_ext <<_ACEOF
6969 void foo (void) { volatile char a[8]; a[3]; }
6971 # `$CC -c -o ...
' might not be portable. But, oh, well... Is calling
6972 # `ac_compile' like this correct
, after all?
6973 if eval "$ac_compile -S -fstack-protector -o conftest.s" 2> /dev
/null
; then
6974 { echo "$as_me:$LINENO: result: yes" >&5
6975 echo "${ECHO_T}yes" >&6; }
6976 # Should we clear up other files as well, having called `AC_LANG_CONFTEST'?
6980 { echo "$as_me:$LINENO: result: no" >&5
6981 echo "${ECHO_T}no" >&6; }
6984 # Need that, because some distributions ship compilers that include
6985 # `-fstack-protector' in the default specs.
6986 if test "x$ssp_possible" = xyes
; then
6987 TARGET_CFLAGS
="$TARGET_CFLAGS -fno-stack-protector"
6990 # Smashing stack arg probe.
6992 { echo "$as_me:$LINENO: checking whether \`$CC' accepts \`-mstack-arg-probe'" >&5
6993 echo $ECHO_N "checking whether \`$CC' accepts \`-mstack-arg-probe'... $ECHO_C" >&6; }
6994 cat >conftest.
$ac_ext <<_ACEOF
6995 void foo (void) { volatile char a[8]; a[3]; }
6997 if eval "$ac_compile -S -mstack-arg-probe -o conftest.s" 2> /dev
/null
; then
6998 { echo "$as_me:$LINENO: result: yes" >&5
6999 echo "${ECHO_T}yes" >&6; }
7000 # Should we clear up other files as well, having called `AC_LANG_CONFTEST'?
7004 { echo "$as_me:$LINENO: result: no" >&5
7005 echo "${ECHO_T}no" >&6; }
7008 # Cygwin's GCC uses alloca() to probe the stackframe on static
7009 # stack allocations above some threshold.
7010 if test x
"$sap_possible" = xyes
; then
7011 TARGET_CFLAGS
="$TARGET_CFLAGS -mno-stack-arg-probe"
7018 # Set them to their new values for the tests below.
7020 CFLAGS
="$TARGET_CFLAGS"
7021 CPPFLAGS
="$TARGET_CPPFLAGS"
7022 LDFLAGS
="$TARGET_LDFLAGS"
7024 # Defined in aclocal.m4.
7025 { echo "$as_me:$LINENO: checking whether target compiler is working" >&5
7026 echo $ECHO_N "checking whether target compiler is working... $ECHO_C" >&6; }
7027 if test "${grub_cv_prog_target_cc+set}" = set; then
7028 echo $ECHO_N "(cached) $ECHO_C" >&6
7030 cat >conftest.
$ac_ext <<_ACEOF
7033 cat confdefs.h
>>conftest.
$ac_ext
7034 cat >>conftest.
$ac_ext <<_ACEOF
7035 /* end confdefs.h. */
7045 rm -f conftest.
$ac_objext conftest
$ac_exeext
7046 if { (ac_try
="$ac_link"
7048 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7049 *) ac_try_echo=$ac_try;;
7051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7052 (eval "$ac_link") 2>conftest.er1
7054 grep -v '^ *+' conftest.er1 >conftest.err
7056 cat conftest.err >&5
7057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7058 (exit $ac_status); } && {
7059 test -z "$ac_c_werror_flag" ||
7060 test ! -s conftest.err
7061 } && test -s conftest$ac_exeext &&
7062 $as_test_x conftest$ac_exeext; then
7063 grub_cv_prog_target_cc=yes
7065 echo "$as_me: failed program was:" >&5
7066 sed 's/^/| /' conftest.$ac_ext >&5
7068 grub_cv_prog_target_cc=no
7071 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7072 conftest$ac_exeext conftest.$ac_ext
7076 { echo "$as_me:$LINENO: result: $grub_cv_prog_target_cc" >&5
7077 echo "${ECHO_T}$grub_cv_prog_target_cc" >&6; }
7079 if test "x$grub_cv_prog_target_cc" = xno; then
7080 { { echo "$as_me:$LINENO: error: cannot compile for the target" >&5
7081 echo "$as_me: error: cannot compile for the target" >&2;}
7082 { (exit 1); exit 1; }; }
7085 { echo "$as_me:$LINENO: checking whether ${OBJCOPY} works for absolute addresses" >&5
7086 echo $ECHO_N "checking whether ${OBJCOPY} works for absolute addresses... $ECHO_C" >&6; }
7087 if test "${grub_cv_prog_objcopy_absolute+set}" = set; then
7088 echo $ECHO_N "(cached) $ECHO_C" >&6
7090 cat > conftest.c <<\EOF
7094 *((int *) 0x1000) = 2;
7098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7099 (eval $ac_compile) 2>&5
7101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7102 (exit $ac_status); } && test -s conftest.o; then :
7104 { { echo "$as_me:$LINENO: error: ${CC-cc} cannot compile C source code" >&5
7105 echo "$as_me: error: ${CC-cc} cannot compile C source code" >&2;}
7106 { (exit 1); exit 1; }; }
7108 grub_cv_prog_objcopy_absolute=yes
7109 for link_addr in 2000 8000 7C00; do
7110 if { ac_try='${CC-cc} ${CFLAGS} -nostdlib ${TARGET_IMG_LDFLAGS_AC} -Wl,-Ttext -Wl,$link_addr conftest.o -o conftest.exec'
7111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7115 (exit $ac_status); }; }; then :
7117 { { echo "$as_me:$LINENO: error: ${CC-cc} cannot link at address $link_addr" >&5
7118 echo "$as_me: error: ${CC-cc} cannot link at address $link_addr" >&2;}
7119 { (exit 1); exit 1; }; }
7121 if { ac_try='${OBJCOPY-objcopy} --only-section=.text -O binary conftest.exec conftest'
7122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7126 (exit $ac_status); }; }; then :
7128 { { echo "$as_me:$LINENO: error: ${OBJCOPY-objcopy} cannot create binary files" >&5
7129 echo "$as_me: error: ${OBJCOPY-objcopy} cannot create binary files" >&2;}
7130 { (exit 1); exit 1; }; }
7132 if test ! -f conftest.old || { ac_try='cmp -s conftest.old conftest'
7133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7137 (exit $ac_status); }; }; then
7138 mv -f conftest conftest.old
7140 grub_cv_prog_objcopy_absolute=no
7147 { echo "$as_me:$LINENO: result: $grub_cv_prog_objcopy_absolute" >&5
7148 echo "${ECHO_T}$grub_cv_prog_objcopy_absolute" >&6; }
7150 if test "x$grub_cv_prog_objcopy_absolute" = xno; then
7151 { { echo "$as_me:$LINENO: error: GRUB requires a working absolute objcopy; upgrade your binutils" >&5
7152 echo "$as_me: error: GRUB requires a working absolute objcopy; upgrade your binutils" >&2;}
7153 { (exit 1); exit 1; }; }
7156 { echo "$as_me:$LINENO: checking whether linker accepts --build-id=none" >&5
7157 echo $ECHO_N "checking whether linker accepts --build-id=none... $ECHO_C" >&6; }
7158 if test "${grub_cv_prog_ld_build_id_none+set}" = set; then
7159 echo $ECHO_N "(cached) $ECHO_C" >&6
7161 save_LDFLAGS="$LDFLAGS"
7162 LDFLAGS="$LDFLAGS -Wl,--build-id=none"
7163 cat >conftest.$ac_ext <<_ACEOF
7166 cat confdefs.h >>conftest.$ac_ext
7167 cat >>conftest.$ac_ext <<_ACEOF
7168 /* end confdefs.h. */
7178 rm -f conftest.$ac_objext conftest$ac_exeext
7179 if { (ac_try="$ac_link"
7181 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7182 *) ac_try_echo
=$ac_try;;
7184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7185 (eval "$ac_link") 2>conftest.er1
7187 grep -v '^ *+' conftest.er1
>conftest.err
7189 cat conftest.err
>&5
7190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7191 (exit $ac_status); } && {
7192 test -z "$ac_c_werror_flag" ||
7193 test ! -s conftest.err
7194 } && test -s conftest
$ac_exeext &&
7195 $as_test_x conftest
$ac_exeext; then
7196 grub_cv_prog_ld_build_id_none
=yes
7198 echo "$as_me: failed program was:" >&5
7199 sed 's/^/| /' conftest.
$ac_ext >&5
7201 grub_cv_prog_ld_build_id_none
=no
7204 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7205 conftest
$ac_exeext conftest.
$ac_ext
7206 LDFLAGS
="$save_LDFLAGS"
7210 { echo "$as_me:$LINENO: result: $grub_cv_prog_ld_build_id_none" >&5
7211 echo "${ECHO_T}$grub_cv_prog_ld_build_id_none" >&6; }
7213 if test "x$grub_cv_prog_ld_build_id_none" = xyes
; then
7214 TARGET_LDFLAGS
="$TARGET_LDFLAGS -Wl,--build-id=none"
7218 { echo "$as_me:$LINENO: checking if C symbols get an underscore after compilation" >&5
7219 echo $ECHO_N "checking if C symbols get an underscore after compilation... $ECHO_C" >&6; }
7220 if test "${grub_cv_asm_uscore+set}" = set; then
7221 echo $ECHO_N "(cached) $ECHO_C" >&6
7223 cat > conftest.c
<<\EOF
7232 if { ac_try
='${CC-cc} ${CFLAGS} -S conftest.c'
7233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7237 (exit $ac_status); }; } && test -s conftest.s
; then
7240 { { echo "$as_me:$LINENO: error: ${CC-cc} failed to produce assembly code" >&5
7241 echo "$as_me: error: ${CC-cc} failed to produce assembly code" >&2;}
7242 { (exit 1); exit 1; }; }
7245 if grep _func conftest.s
>/dev
/null
2>&1; then
7246 grub_cv_asm_uscore
=yes
7248 grub_cv_asm_uscore
=no
7255 if test "x$grub_cv_asm_uscore" = xyes
; then
7257 cat >>confdefs.h
<<_ACEOF
7258 #define HAVE_ASM_USCORE $grub_cv_asm_uscore
7263 { echo "$as_me:$LINENO: result: $grub_cv_asm_uscore" >&5
7264 echo "${ECHO_T}$grub_cv_asm_uscore" >&6; }
7266 if test "x$target_cpu" = xi386
; then
7267 if test ! -z "$TARGET_IMG_LDSCRIPT"; then
7268 # Check symbols provided by linker script.
7269 CFLAGS
="$TARGET_CFLAGS -nostdlib $TARGET_IMG_LDFLAGS_AC -Wl,-Ttext,8000,--defsym,___main=0x8100"
7271 if test "x$platform" = xpc
; then
7273 { echo "$as_me:$LINENO: checking if __bss_start is defined by the compiler" >&5
7274 echo $ECHO_N "checking if __bss_start is defined by the compiler... $ECHO_C" >&6; }
7275 if test "${grub_cv_check_uscore_uscore_bss_start_symbol+set}" = set; then
7276 echo $ECHO_N "(cached) $ECHO_C" >&6
7278 cat >conftest.
$ac_ext <<_ACEOF
7281 cat confdefs.h
>>conftest.
$ac_ext
7282 cat >>conftest.
$ac_ext <<_ACEOF
7283 /* end confdefs.h. */
7288 asm ("incl __bss_start")
7293 rm -f conftest.
$ac_objext conftest
$ac_exeext
7294 if { (ac_try
="$ac_link"
7296 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7297 *) ac_try_echo=$ac_try;;
7299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7300 (eval "$ac_link") 2>conftest.er1
7302 grep -v '^ *+' conftest.er1 >conftest.err
7304 cat conftest.err >&5
7305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7306 (exit $ac_status); } && {
7307 test -z "$ac_c_werror_flag" ||
7308 test ! -s conftest.err
7309 } && test -s conftest$ac_exeext &&
7310 $as_test_x conftest$ac_exeext; then
7311 grub_cv_check_uscore_uscore_bss_start_symbol=yes
7313 echo "$as_me: failed program was:" >&5
7314 sed 's/^/| /' conftest.$ac_ext >&5
7316 grub_cv_check_uscore_uscore_bss_start_symbol=no
7319 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7320 conftest$ac_exeext conftest.$ac_ext
7324 { echo "$as_me:$LINENO: result: $grub_cv_check_uscore_uscore_bss_start_symbol" >&5
7325 echo "${ECHO_T}$grub_cv_check_uscore_uscore_bss_start_symbol" >&6; }
7327 { echo "$as_me:$LINENO: checking if edata is defined by the compiler" >&5
7328 echo $ECHO_N "checking if edata is defined by the compiler... $ECHO_C" >&6; }
7329 if test "${grub_cv_check_edata_symbol+set}" = set; then
7330 echo $ECHO_N "(cached) $ECHO_C" >&6
7332 cat >conftest.$ac_ext <<_ACEOF
7335 cat confdefs.h >>conftest.$ac_ext
7336 cat >>conftest.$ac_ext <<_ACEOF
7337 /* end confdefs.h. */
7347 rm -f conftest.$ac_objext conftest$ac_exeext
7348 if { (ac_try="$ac_link"
7350 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7351 *) ac_try_echo
=$ac_try;;
7353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7354 (eval "$ac_link") 2>conftest.er1
7356 grep -v '^ *+' conftest.er1
>conftest.err
7358 cat conftest.err
>&5
7359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7360 (exit $ac_status); } && {
7361 test -z "$ac_c_werror_flag" ||
7362 test ! -s conftest.err
7363 } && test -s conftest
$ac_exeext &&
7364 $as_test_x conftest
$ac_exeext; then
7365 grub_cv_check_edata_symbol
=yes
7367 echo "$as_me: failed program was:" >&5
7368 sed 's/^/| /' conftest.
$ac_ext >&5
7370 grub_cv_check_edata_symbol
=no
7373 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7374 conftest
$ac_exeext conftest.
$ac_ext
7378 { echo "$as_me:$LINENO: result: $grub_cv_check_edata_symbol" >&5
7379 echo "${ECHO_T}$grub_cv_check_edata_symbol" >&6; }
7381 { echo "$as_me:$LINENO: checking if _edata is defined by the compiler" >&5
7382 echo $ECHO_N "checking if _edata is defined by the compiler... $ECHO_C" >&6; }
7383 if test "${grub_cv_check_uscore_edata_symbol+set}" = set; then
7384 echo $ECHO_N "(cached) $ECHO_C" >&6
7386 cat >conftest.
$ac_ext <<_ACEOF
7389 cat confdefs.h
>>conftest.
$ac_ext
7390 cat >>conftest.
$ac_ext <<_ACEOF
7391 /* end confdefs.h. */
7401 rm -f conftest.
$ac_objext conftest
$ac_exeext
7402 if { (ac_try
="$ac_link"
7404 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7405 *) ac_try_echo=$ac_try;;
7407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7408 (eval "$ac_link") 2>conftest.er1
7410 grep -v '^ *+' conftest.er1 >conftest.err
7412 cat conftest.err >&5
7413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7414 (exit $ac_status); } && {
7415 test -z "$ac_c_werror_flag" ||
7416 test ! -s conftest.err
7417 } && test -s conftest$ac_exeext &&
7418 $as_test_x conftest$ac_exeext; then
7419 grub_cv_check_uscore_edata_symbol=yes
7421 echo "$as_me: failed program was:" >&5
7422 sed 's/^/| /' conftest.$ac_ext >&5
7424 grub_cv_check_uscore_edata_symbol=no
7427 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7428 conftest$ac_exeext conftest.$ac_ext
7432 { echo "$as_me:$LINENO: result: $grub_cv_check_uscore_edata_symbol" >&5
7433 echo "${ECHO_T}$grub_cv_check_uscore_edata_symbol" >&6; }
7438 if test "x$grub_cv_check_uscore_uscore_bss_start_symbol" = xyes; then
7439 cat >>confdefs.h <<\_ACEOF
7440 #define BSS_START_SYMBOL __bss_start
7443 elif test "x$grub_cv_check_edata_symbol" = xyes; then
7444 cat >>confdefs.h <<\_ACEOF
7445 #define BSS_START_SYMBOL edata
7448 elif test "x$grub_cv_check_uscore_edata_symbol" = xyes; then
7449 cat >>confdefs.h <<\_ACEOF
7450 #define BSS_START_SYMBOL _edata
7454 { { echo "$as_me:$LINENO: error: none of __bss_start, edata or _edata is defined" >&5
7455 echo "$as_me: error: none of __bss_start, edata or _edata is defined" >&2;}
7456 { (exit 1); exit 1; }; }
7460 { echo "$as_me:$LINENO: checking if end is defined by the compiler" >&5
7461 echo $ECHO_N "checking if end is defined by the compiler... $ECHO_C" >&6; }
7462 if test "${grub_cv_check_end_symbol+set}" = set; then
7463 echo $ECHO_N "(cached) $ECHO_C" >&6
7465 cat >conftest.$ac_ext <<_ACEOF
7468 cat confdefs.h >>conftest.$ac_ext
7469 cat >>conftest.$ac_ext <<_ACEOF
7470 /* end confdefs.h. */
7480 rm -f conftest.$ac_objext conftest$ac_exeext
7481 if { (ac_try="$ac_link"
7483 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7484 *) ac_try_echo
=$ac_try;;
7486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7487 (eval "$ac_link") 2>conftest.er1
7489 grep -v '^ *+' conftest.er1
>conftest.err
7491 cat conftest.err
>&5
7492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7493 (exit $ac_status); } && {
7494 test -z "$ac_c_werror_flag" ||
7495 test ! -s conftest.err
7496 } && test -s conftest
$ac_exeext &&
7497 $as_test_x conftest
$ac_exeext; then
7498 grub_cv_check_end_symbol
=yes
7500 echo "$as_me: failed program was:" >&5
7501 sed 's/^/| /' conftest.
$ac_ext >&5
7503 grub_cv_check_end_symbol
=no
7506 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7507 conftest
$ac_exeext conftest.
$ac_ext
7511 { echo "$as_me:$LINENO: result: $grub_cv_check_end_symbol" >&5
7512 echo "${ECHO_T}$grub_cv_check_end_symbol" >&6; }
7514 { echo "$as_me:$LINENO: checking if _end is defined by the compiler" >&5
7515 echo $ECHO_N "checking if _end is defined by the compiler... $ECHO_C" >&6; }
7516 if test "${grub_cv_check_uscore_end_symbol+set}" = set; then
7517 echo $ECHO_N "(cached) $ECHO_C" >&6
7519 cat >conftest.
$ac_ext <<_ACEOF
7522 cat confdefs.h
>>conftest.
$ac_ext
7523 cat >>conftest.
$ac_ext <<_ACEOF
7524 /* end confdefs.h. */
7534 rm -f conftest.
$ac_objext conftest
$ac_exeext
7535 if { (ac_try
="$ac_link"
7537 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7538 *) ac_try_echo=$ac_try;;
7540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7541 (eval "$ac_link") 2>conftest.er1
7543 grep -v '^ *+' conftest.er1 >conftest.err
7545 cat conftest.err >&5
7546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7547 (exit $ac_status); } && {
7548 test -z "$ac_c_werror_flag" ||
7549 test ! -s conftest.err
7550 } && test -s conftest$ac_exeext &&
7551 $as_test_x conftest$ac_exeext; then
7552 grub_cv_check_uscore_end_symbol=yes
7554 echo "$as_me: failed program was:" >&5
7555 sed 's/^/| /' conftest.$ac_ext >&5
7557 grub_cv_check_uscore_end_symbol=no
7560 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7561 conftest$ac_exeext conftest.$ac_ext
7565 { echo "$as_me:$LINENO: result: $grub_cv_check_uscore_end_symbol" >&5
7566 echo "${ECHO_T}$grub_cv_check_uscore_end_symbol" >&6; }
7571 if test "x$grub_cv_check_end_symbol" = xyes; then
7572 cat >>confdefs.h <<\_ACEOF
7573 #define END_SYMBOL end
7576 elif test "x$grub_cv_check_uscore_end_symbol" = xyes; then
7577 cat >>confdefs.h <<\_ACEOF
7578 #define END_SYMBOL _end
7582 { { echo "$as_me:$LINENO: error: neither end nor _end is defined" >&5
7583 echo "$as_me: error: neither end nor _end is defined" >&2;}
7584 { (exit 1); exit 1; }; }
7588 CFLAGS="$TARGET_CFLAGS"
7590 { echo "$as_me:$LINENO: checking whether addr32 must be in the same line as the instruction" >&5
7591 echo $ECHO_N "checking whether addr32 must be in the same line as the instruction... $ECHO_C" >&6; }
7592 if test "${grub_cv_i386_asm_prefix_requirement+set}" = set; then
7593 echo $ECHO_N "(cached) $ECHO_C" >&6
7595 cat > conftest.s <<\EOF
7597 l1: addr32 movb %al, l1
7600 if { ac_try='${CC-cc} ${CFLAGS} -c conftest.s'
7601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7605 (exit $ac_status); }; } && test -s conftest.o; then
7606 grub_cv_i386_asm_prefix_requirement=yes
7608 grub_cv_i386_asm_prefix_requirement=no
7615 if test "x$grub_cv_i386_asm_prefix_requirement" = xyes; then
7616 grub_tmp_addr32="addr32"
7617 grub_tmp_data32="data32"
7619 grub_tmp_addr32="addr32;"
7620 grub_tmp_data32="data32;"
7624 cat >>confdefs.h <<_ACEOF
7625 #define ADDR32 $grub_tmp_addr32
7629 cat >>confdefs.h <<_ACEOF
7630 #define DATA32 $grub_tmp_data32
7634 { echo "$as_me:$LINENO: result: $grub_cv_i386_asm_prefix_requirement" >&5
7635 echo "${ECHO_T}$grub_cv_i386_asm_prefix_requirement" >&6; }
7638 { echo "$as_me:$LINENO: checking for .code16 addr32 assembler support" >&5
7639 echo $ECHO_N "checking for .code16 addr32 assembler support... $ECHO_C" >&6; }
7640 if test "${grub_cv_i386_asm_addr32+set}" = set; then
7641 echo $ECHO_N "(cached) $ECHO_C" >&6
7643 cat > conftest.s.in <<\EOF
7645 l1: @ADDR32@ movb %al, l1
7648 if test "x$grub_cv_i386_asm_prefix_requirement" = xyes; then
7649 sed -e s/@ADDR32@/addr32/ < conftest.s.in > conftest.s
7651 sed -e s/@ADDR32@/addr32\;/ < conftest.s.in > conftest.s
7654 if { ac_try='${CC-cc} ${CFLAGS} -c conftest.s'
7655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7659 (exit $ac_status); }; } && test -s conftest.o; then
7660 grub_cv_i386_asm_addr32=yes
7662 grub_cv_i386_asm_addr32=no
7669 { echo "$as_me:$LINENO: result: $grub_cv_i386_asm_addr32" >&5
7670 echo "${ECHO_T}$grub_cv_i386_asm_addr32" >&6; }
7672 { echo "$as_me:$LINENO: checking whether an absolute indirect call/jump must not be prefixed with an asterisk" >&5
7673 echo $ECHO_N "checking whether an absolute indirect call/jump must not be prefixed with an asterisk... $ECHO_C" >&6; }
7674 if test "${grub_cv_i386_asm_absolute_without_asterisk+set}" = set; then
7675 echo $ECHO_N "(cached) $ECHO_C" >&6
7677 cat > conftest.s <<\EOF
7684 if { ac_try='${CC-cc} ${CFLAGS} -c conftest.s'
7685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7689 (exit $ac_status); }; } && test -s conftest.o; then
7690 grub_cv_i386_asm_absolute_without_asterisk=no
7692 grub_cv_i386_asm_absolute_without_asterisk=yes
7699 if test "x$grub_cv_i386_asm_absolute_without_asterisk" = xyes; then
7701 cat >>confdefs.h <<\_ACEOF
7702 #define ABSOLUTE_WITHOUT_ASTERISK 1
7707 { echo "$as_me:$LINENO: result: $grub_cv_i386_asm_absolute_without_asterisk" >&5
7708 echo "${ECHO_T}$grub_cv_i386_asm_absolute_without_asterisk" >&6; }
7710 { echo "$as_me:$LINENO: checking if GCC has the regparm=3 bug" >&5
7711 echo $ECHO_N "checking if GCC has the regparm=3 bug... $ECHO_C" >&6; }
7712 if test "${grub_cv_i386_check_nested_functions+set}" = set; then
7713 echo $ECHO_N "(cached) $ECHO_C" >&6
7715 if test "$cross_compiling" = yes; then
7716 grub_cv_i386_check_nested_functions=yes
7718 cat >conftest.$ac_ext <<_ACEOF
7721 cat confdefs.h >>conftest.$ac_ext
7722 cat >>conftest.$ac_ext <<_ACEOF
7723 /* end confdefs.h. */
7732 testfunc (int __attribute__ ((__regparm__ (3))) (*hook) (int a, int b, int *c))
7737 return hook (a, b, &c);
7743 int __attribute__ ((__regparm__ (3))) nestedfunc (int a, int b, int *c)
7745 return a == b && test (c);
7747 return testfunc (nestedfunc) ? 0 : 1;
7751 rm -f conftest$ac_exeext
7752 if { (ac_try="$ac_link"
7754 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7755 *) ac_try_echo
=$ac_try;;
7757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7758 (eval "$ac_link") 2>&5
7760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7761 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7762 { (case "(($ac_try" in
7763 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7764 *) ac_try_echo=$ac_try;;
7766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7767 (eval "$ac_try") 2>&5
7769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7770 (exit $ac_status); }; }; then
7771 grub_cv_i386_check_nested_functions=no
7773 echo "$as_me: program exited with status $ac_status" >&5
7774 echo "$as_me: failed program was:" >&5
7775 sed 's/^/| /' conftest.$ac_ext >&5
7778 grub_cv_i386_check_nested_functions=yes
7780 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7787 { echo "$as_me:$LINENO: result: $grub_cv_i386_check_nested_functions" >&5
7788 echo "${ECHO_T}$grub_cv_i386_check_nested_functions" >&6; }
7790 if test "x$grub_cv_i386_check_nested_functions" = xyes; then
7792 cat >>confdefs.h <<\_ACEOF
7793 #define NESTED_FUNC_ATTR __attribute__ ((__regparm__ (1)))
7798 cat >>confdefs.h <<\_ACEOF
7799 #define NESTED_FUNC_ATTR __attribute__ ((__regparm__ (1)))
7806 cat >>confdefs.h <<\_ACEOF
7807 #define NESTED_FUNC_ATTR
7812 # Restore the flags.
7814 CFLAGS="$tmp_CFLAGS"
7815 CPPFLAGS="$tmp_CPPFLAGS"
7816 LDFLAGS="$tmp_LDFLAGS"
7820 # Check for options.
7823 # Memory manager debugging.
7824 # Check whether --enable-mm-debug was given.
7825 if test "${enable_mm_debug+set}" = set; then
7826 enableval=$enable_mm_debug;
7827 cat >>confdefs.h <<\_ACEOF
7834 # Check whether --enable-grub-emu was given.
7835 if test "${enable_grub_emu+set}" = set; then
7836 enableval=$enable_grub_emu;
7839 # Check whether --enable-grub-emu-usb was given.
7840 if test "${enable_grub_emu_usb+set}" = set; then
7841 enableval=$enable_grub_emu_usb;
7844 if [ x"$enable_grub_emu" = xyes ]; then
7845 # Check for curses libraries.
7846 { echo "$as_me:$LINENO: checking for wgetch in -lncurses" >&5
7847 echo $ECHO_N "checking for wgetch in -lncurses... $ECHO_C" >&6; }
7848 if test "${ac_cv_lib_ncurses_wgetch+set}" = set; then
7849 echo $ECHO_N "(cached) $ECHO_C" >&6
7851 ac_check_lib_save_LIBS=$LIBS
7852 LIBS="-lncurses $LIBS"
7853 cat >conftest.$ac_ext <<_ACEOF
7856 cat confdefs.h >>conftest.$ac_ext
7857 cat >>conftest.$ac_ext <<_ACEOF
7858 /* end confdefs.h. */
7860 /* Override any GCC internal prototype to avoid an error.
7861 Use char because int might match the return type of a GCC
7862 builtin and then its argument prototype would still apply. */
7875 rm -f conftest.$ac_objext conftest$ac_exeext
7876 if { (ac_try="$ac_link"
7878 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7879 *) ac_try_echo
=$ac_try;;
7881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7882 (eval "$ac_link") 2>conftest.er1
7884 grep -v '^ *+' conftest.er1
>conftest.err
7886 cat conftest.err
>&5
7887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7888 (exit $ac_status); } && {
7889 test -z "$ac_c_werror_flag" ||
7890 test ! -s conftest.err
7891 } && test -s conftest
$ac_exeext &&
7892 $as_test_x conftest
$ac_exeext; then
7893 ac_cv_lib_ncurses_wgetch
=yes
7895 echo "$as_me: failed program was:" >&5
7896 sed 's/^/| /' conftest.
$ac_ext >&5
7898 ac_cv_lib_ncurses_wgetch
=no
7901 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7902 conftest
$ac_exeext conftest.
$ac_ext
7903 LIBS
=$ac_check_lib_save_LIBS
7905 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_wgetch" >&5
7906 echo "${ECHO_T}$ac_cv_lib_ncurses_wgetch" >&6; }
7907 if test $ac_cv_lib_ncurses_wgetch = yes; then
7908 LIBCURSES
="-lncurses"
7910 { echo "$as_me:$LINENO: checking for wgetch in -lcurses" >&5
7911 echo $ECHO_N "checking for wgetch in -lcurses... $ECHO_C" >&6; }
7912 if test "${ac_cv_lib_curses_wgetch+set}" = set; then
7913 echo $ECHO_N "(cached) $ECHO_C" >&6
7915 ac_check_lib_save_LIBS
=$LIBS
7916 LIBS
="-lcurses $LIBS"
7917 cat >conftest.
$ac_ext <<_ACEOF
7920 cat confdefs.h
>>conftest.
$ac_ext
7921 cat >>conftest.
$ac_ext <<_ACEOF
7922 /* end confdefs.h. */
7924 /* Override any GCC internal prototype to avoid an error.
7925 Use char because int might match the return type of a GCC
7926 builtin and then its argument prototype would still apply. */
7939 rm -f conftest.
$ac_objext conftest
$ac_exeext
7940 if { (ac_try
="$ac_link"
7942 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7943 *) ac_try_echo=$ac_try;;
7945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7946 (eval "$ac_link") 2>conftest.er1
7948 grep -v '^ *+' conftest.er1 >conftest.err
7950 cat conftest.err >&5
7951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7952 (exit $ac_status); } && {
7953 test -z "$ac_c_werror_flag" ||
7954 test ! -s conftest.err
7955 } && test -s conftest$ac_exeext &&
7956 $as_test_x conftest$ac_exeext; then
7957 ac_cv_lib_curses_wgetch=yes
7959 echo "$as_me: failed program was:" >&5
7960 sed 's/^/| /' conftest.$ac_ext >&5
7962 ac_cv_lib_curses_wgetch=no
7965 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7966 conftest$ac_exeext conftest.$ac_ext
7967 LIBS=$ac_check_lib_save_LIBS
7969 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_wgetch" >&5
7970 echo "${ECHO_T}$ac_cv_lib_curses_wgetch" >&6; }
7971 if test $ac_cv_lib_curses_wgetch = yes; then
7972 LIBCURSES="-lcurses"
7974 { { echo "$as_me:$LINENO: error: (n)curses libraries are required to build \`grub-emu
'" >&5
7975 echo "$as_me: error: (n)curses libraries are required to build \`grub-emu'" >&2;}
7976 { (exit 1); exit 1; }; }
7983 # Check for headers.
7985 for ac_header in ncurses/curses.h
7987 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
7988 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
7989 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
7990 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
7991 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
7992 echo $ECHO_N "(cached
) $ECHO_C" >&6
7994 ac_res=`eval echo '${'$as_ac_Header'}'`
7995 { echo "$as_me:$LINENO: result
: $ac_res" >&5
7996 echo "${ECHO_T}$ac_res" >&6; }
7998 # Is the header compilable?
7999 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
8000 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
8001 cat >conftest.$ac_ext <<_ACEOF
8004 cat confdefs.h >>conftest.$ac_ext
8005 cat >>conftest.$ac_ext <<_ACEOF
8006 /* end confdefs.h. */
8007 $ac_includes_default
8008 #include <$ac_header>
8010 rm -f conftest.$ac_objext
8011 if { (ac_try="$ac_compile"
8013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8014 *) ac_try_echo=$ac_try;;
8016 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8017 (eval "$ac_compile") 2>conftest.er1
8019 grep -v '^ *+' conftest.er1 >conftest.err
8021 cat conftest.err >&5
8022 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8023 (exit $ac_status); } && {
8024 test -z "$ac_c_werror_flag" ||
8025 test ! -s conftest.err
8026 } && test -s conftest.$ac_objext; then
8027 ac_header_compiler=yes
8029 echo "$as_me: failed program was
:" >&5
8030 sed 's/^/| /' conftest.$ac_ext >&5
8032 ac_header_compiler=no
8035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8036 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
8037 echo "${ECHO_T}$ac_header_compiler" >&6; }
8039 # Is the header present?
8040 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
8041 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
8042 cat >conftest.$ac_ext <<_ACEOF
8045 cat confdefs.h >>conftest.$ac_ext
8046 cat >>conftest.$ac_ext <<_ACEOF
8047 /* end confdefs.h. */
8048 #include <$ac_header>
8050 if { (ac_try="$ac_cpp conftest.
$ac_ext"
8052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8053 *) ac_try_echo=$ac_try;;
8055 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8056 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
8058 grep -v '^ *+' conftest.er1 >conftest.err
8060 cat conftest.err >&5
8061 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8062 (exit $ac_status); } >/dev/null && {
8063 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8064 test ! -s conftest.err
8066 ac_header_preproc=yes
8068 echo "$as_me: failed program was
:" >&5
8069 sed 's/^/| /' conftest.$ac_ext >&5
8071 ac_header_preproc=no
8074 rm -f conftest.err conftest.$ac_ext
8075 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
8076 echo "${ECHO_T}$ac_header_preproc" >&6; }
8078 # So? What about this header?
8079 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8081 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
8082 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
8083 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
8084 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
8085 ac_header_preproc=yes
8088 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
8089 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
8090 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
8091 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
8092 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
8093 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
8094 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
8095 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
8096 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
8097 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
8098 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
8099 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
8101 ## ------------------------------- ##
8102 ## Report this to bug-grub@gnu.org ##
8103 ## ------------------------------- ##
8105 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
8108 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
8109 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
8110 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
8111 echo $ECHO_N "(cached
) $ECHO_C" >&6
8113 eval "$as_ac_Header=\
$ac_header_preproc"
8115 ac_res=`eval echo '${'$as_ac_Header'}'`
8116 { echo "$as_me:$LINENO: result
: $ac_res" >&5
8117 echo "${ECHO_T}$ac_res" >&6; }
8120 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8121 cat >>confdefs.h <<_ACEOF
8122 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
8127 for ac_header in ncurses.h
8129 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
8130 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
8131 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
8132 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
8133 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
8134 echo $ECHO_N "(cached
) $ECHO_C" >&6
8136 ac_res=`eval echo '${'$as_ac_Header'}'`
8137 { echo "$as_me:$LINENO: result
: $ac_res" >&5
8138 echo "${ECHO_T}$ac_res" >&6; }
8140 # Is the header compilable?
8141 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
8142 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
8143 cat >conftest.$ac_ext <<_ACEOF
8146 cat confdefs.h >>conftest.$ac_ext
8147 cat >>conftest.$ac_ext <<_ACEOF
8148 /* end confdefs.h. */
8149 $ac_includes_default
8150 #include <$ac_header>
8152 rm -f conftest.$ac_objext
8153 if { (ac_try="$ac_compile"
8155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8156 *) ac_try_echo=$ac_try;;
8158 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8159 (eval "$ac_compile") 2>conftest.er1
8161 grep -v '^ *+' conftest.er1 >conftest.err
8163 cat conftest.err >&5
8164 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8165 (exit $ac_status); } && {
8166 test -z "$ac_c_werror_flag" ||
8167 test ! -s conftest.err
8168 } && test -s conftest.$ac_objext; then
8169 ac_header_compiler=yes
8171 echo "$as_me: failed program was
:" >&5
8172 sed 's/^/| /' conftest.$ac_ext >&5
8174 ac_header_compiler=no
8177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8178 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
8179 echo "${ECHO_T}$ac_header_compiler" >&6; }
8181 # Is the header present?
8182 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
8183 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
8184 cat >conftest.$ac_ext <<_ACEOF
8187 cat confdefs.h >>conftest.$ac_ext
8188 cat >>conftest.$ac_ext <<_ACEOF
8189 /* end confdefs.h. */
8190 #include <$ac_header>
8192 if { (ac_try="$ac_cpp conftest.
$ac_ext"
8194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8195 *) ac_try_echo=$ac_try;;
8197 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8198 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
8200 grep -v '^ *+' conftest.er1 >conftest.err
8202 cat conftest.err >&5
8203 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8204 (exit $ac_status); } >/dev/null && {
8205 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8206 test ! -s conftest.err
8208 ac_header_preproc=yes
8210 echo "$as_me: failed program was
:" >&5
8211 sed 's/^/| /' conftest.$ac_ext >&5
8213 ac_header_preproc=no
8216 rm -f conftest.err conftest.$ac_ext
8217 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
8218 echo "${ECHO_T}$ac_header_preproc" >&6; }
8220 # So? What about this header?
8221 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8223 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
8224 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
8225 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
8226 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
8227 ac_header_preproc=yes
8230 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
8231 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
8232 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
8233 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
8234 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
8235 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
8236 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
8237 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
8238 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
8239 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
8240 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
8241 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
8243 ## ------------------------------- ##
8244 ## Report this to bug-grub@gnu.org ##
8245 ## ------------------------------- ##
8247 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
8250 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
8251 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
8252 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
8253 echo $ECHO_N "(cached
) $ECHO_C" >&6
8255 eval "$as_ac_Header=\
$ac_header_preproc"
8257 ac_res=`eval echo '${'$as_ac_Header'}'`
8258 { echo "$as_me:$LINENO: result
: $ac_res" >&5
8259 echo "${ECHO_T}$ac_res" >&6; }
8262 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8263 cat >>confdefs.h <<_ACEOF
8264 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
8269 for ac_header in curses.h
8271 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
8272 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
8273 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
8274 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
8275 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
8276 echo $ECHO_N "(cached
) $ECHO_C" >&6
8278 ac_res=`eval echo '${'$as_ac_Header'}'`
8279 { echo "$as_me:$LINENO: result
: $ac_res" >&5
8280 echo "${ECHO_T}$ac_res" >&6; }
8282 # Is the header compilable?
8283 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
8284 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
8285 cat >conftest.$ac_ext <<_ACEOF
8288 cat confdefs.h >>conftest.$ac_ext
8289 cat >>conftest.$ac_ext <<_ACEOF
8290 /* end confdefs.h. */
8291 $ac_includes_default
8292 #include <$ac_header>
8294 rm -f conftest.$ac_objext
8295 if { (ac_try="$ac_compile"
8297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8298 *) ac_try_echo=$ac_try;;
8300 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8301 (eval "$ac_compile") 2>conftest.er1
8303 grep -v '^ *+' conftest.er1 >conftest.err
8305 cat conftest.err >&5
8306 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8307 (exit $ac_status); } && {
8308 test -z "$ac_c_werror_flag" ||
8309 test ! -s conftest.err
8310 } && test -s conftest.$ac_objext; then
8311 ac_header_compiler=yes
8313 echo "$as_me: failed program was
:" >&5
8314 sed 's/^/| /' conftest.$ac_ext >&5
8316 ac_header_compiler=no
8319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8320 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
8321 echo "${ECHO_T}$ac_header_compiler" >&6; }
8323 # Is the header present?
8324 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
8325 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
8326 cat >conftest.$ac_ext <<_ACEOF
8329 cat confdefs.h >>conftest.$ac_ext
8330 cat >>conftest.$ac_ext <<_ACEOF
8331 /* end confdefs.h. */
8332 #include <$ac_header>
8334 if { (ac_try="$ac_cpp conftest.
$ac_ext"
8336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8337 *) ac_try_echo=$ac_try;;
8339 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8340 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
8342 grep -v '^ *+' conftest.er1 >conftest.err
8344 cat conftest.err >&5
8345 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8346 (exit $ac_status); } >/dev/null && {
8347 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8348 test ! -s conftest.err
8350 ac_header_preproc=yes
8352 echo "$as_me: failed program was
:" >&5
8353 sed 's/^/| /' conftest.$ac_ext >&5
8355 ac_header_preproc=no
8358 rm -f conftest.err conftest.$ac_ext
8359 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
8360 echo "${ECHO_T}$ac_header_preproc" >&6; }
8362 # So? What about this header?
8363 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8365 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
8366 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
8367 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
8368 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
8369 ac_header_preproc=yes
8372 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
8373 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
8374 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
8375 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
8376 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
8377 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
8378 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
8379 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
8380 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
8381 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
8382 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
8383 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
8385 ## ------------------------------- ##
8386 ## Report this to bug-grub@gnu.org ##
8387 ## ------------------------------- ##
8389 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
8392 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
8393 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
8394 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
8395 echo $ECHO_N "(cached
) $ECHO_C" >&6
8397 eval "$as_ac_Header=\
$ac_header_preproc"
8399 ac_res=`eval echo '${'$as_ac_Header'}'`
8400 { echo "$as_me:$LINENO: result
: $ac_res" >&5
8401 echo "${ECHO_T}$ac_res" >&6; }
8404 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8405 cat >>confdefs.h <<_ACEOF
8406 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
8410 { { echo "$as_me:$LINENO: error
: (n
)curses header files are required to build \
`grub-emu'" >&5
8411 echo "$as_me: error: (n)curses header files are required to build \`grub-emu
'" >&2;}
8412 { (exit 1); exit 1; }; }
8426 if [ x"$enable_grub_emu_usb" = xyes ]; then
8427 # Check for libusb libraries.
8428 { echo "$as_me:$LINENO: checking for usb_claim_interface in -lusb" >&5
8429 echo $ECHO_N "checking for usb_claim_interface in -lusb... $ECHO_C" >&6; }
8430 if test "${ac_cv_lib_usb_usb_claim_interface+set}" = set; then
8431 echo $ECHO_N "(cached) $ECHO_C" >&6
8433 ac_check_lib_save_LIBS=$LIBS
8435 cat >conftest.$ac_ext <<_ACEOF
8438 cat confdefs.h >>conftest.$ac_ext
8439 cat >>conftest.$ac_ext <<_ACEOF
8440 /* end confdefs.h. */
8442 /* Override any GCC internal prototype to avoid an error.
8443 Use char because int might match the return type of a GCC
8444 builtin and then its argument prototype would still apply. */
8448 char usb_claim_interface ();
8452 return usb_claim_interface ();
8457 rm -f conftest.$ac_objext conftest$ac_exeext
8458 if { (ac_try="$ac_link"
8460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8461 *) ac_try_echo=$ac_try;;
8463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8464 (eval "$ac_link") 2>conftest.er1
8466 grep -v '^
*+' conftest.er1 >conftest.err
8468 cat conftest.err >&5
8469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8470 (exit $ac_status); } && {
8471 test -z "$ac_c_werror_flag" ||
8472 test ! -s conftest.err
8473 } && test -s conftest$ac_exeext &&
8474 $as_test_x conftest$ac_exeext; then
8475 ac_cv_lib_usb_usb_claim_interface=yes
8477 echo "$as_me: failed program was:" >&5
8478 sed 's
/^
/|
/' conftest.$ac_ext >&5
8480 ac_cv_lib_usb_usb_claim_interface=no
8483 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8484 conftest$ac_exeext conftest.$ac_ext
8485 LIBS=$ac_check_lib_save_LIBS
8487 { echo "$as_me:$LINENO: result: $ac_cv_lib_usb_usb_claim_interface" >&5
8488 echo "${ECHO_T}$ac_cv_lib_usb_usb_claim_interface" >&6; }
8489 if test $ac_cv_lib_usb_usb_claim_interface = yes; then
8492 { { echo "$as_me:$LINENO: error: libusb libraries are required to build \`grub-emu' with USB support
" >&5
8493 echo "$as_me: error
: libusb libraries are required to build \
`grub-emu' with USB support" >&2;}
8494 { (exit 1); exit 1; }; }
8499 # Check for headers.
8501 for ac_header in usb.h
8503 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
8504 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8505 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8506 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8507 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8508 echo $ECHO_N "(cached) $ECHO_C" >&6
8510 ac_res=`eval echo '${'$as_ac_Header'}'`
8511 { echo "$as_me:$LINENO: result: $ac_res" >&5
8512 echo "${ECHO_T}$ac_res" >&6; }
8514 # Is the header compilable?
8515 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8516 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8517 cat >conftest.$ac_ext <<_ACEOF
8520 cat confdefs.h >>conftest.$ac_ext
8521 cat >>conftest.$ac_ext <<_ACEOF
8522 /* end confdefs.h. */
8523 $ac_includes_default
8524 #include <$ac_header>
8526 rm -f conftest.$ac_objext
8527 if { (ac_try="$ac_compile"
8529 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8530 *) ac_try_echo
=$ac_try;;
8532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8533 (eval "$ac_compile") 2>conftest.er1
8535 grep -v '^ *+' conftest.er1
>conftest.err
8537 cat conftest.err
>&5
8538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8539 (exit $ac_status); } && {
8540 test -z "$ac_c_werror_flag" ||
8541 test ! -s conftest.err
8542 } && test -s conftest.
$ac_objext; then
8543 ac_header_compiler
=yes
8545 echo "$as_me: failed program was:" >&5
8546 sed 's/^/| /' conftest.
$ac_ext >&5
8548 ac_header_compiler
=no
8551 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8552 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8553 echo "${ECHO_T}$ac_header_compiler" >&6; }
8555 # Is the header present?
8556 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8557 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8558 cat >conftest.
$ac_ext <<_ACEOF
8561 cat confdefs.h
>>conftest.
$ac_ext
8562 cat >>conftest.
$ac_ext <<_ACEOF
8563 /* end confdefs.h. */
8564 #include <$ac_header>
8566 if { (ac_try
="$ac_cpp conftest.$ac_ext"
8568 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8569 *) ac_try_echo=$ac_try;;
8571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8572 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8574 grep -v '^ *+' conftest.er1 >conftest.err
8576 cat conftest.err >&5
8577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8578 (exit $ac_status); } >/dev/null && {
8579 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8580 test ! -s conftest.err
8582 ac_header_preproc=yes
8584 echo "$as_me: failed program was:" >&5
8585 sed 's/^/| /' conftest.$ac_ext >&5
8587 ac_header_preproc=no
8590 rm -f conftest.err conftest.$ac_ext
8591 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8592 echo "${ECHO_T}$ac_header_preproc" >&6; }
8594 # So? What about this header?
8595 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8597 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8598 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8599 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8600 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8601 ac_header_preproc=yes
8604 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8605 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8606 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8607 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8608 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8609 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8610 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8611 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8612 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8613 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8614 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8615 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8617 ## ------------------------------- ##
8618 ## Report this to bug-grub@gnu.org ##
8619 ## ------------------------------- ##
8621 ) | sed "s/^/$as_me: WARNING: /" >&2
8624 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8625 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8626 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8627 echo $ECHO_N "(cached) $ECHO_C" >&6
8629 eval "$as_ac_Header=\$ac_header_preproc"
8631 ac_res=`eval echo '${'$as_ac_Header'}'`
8632 { echo "$as_me:$LINENO: result: $ac_res" >&5
8633 echo "${ECHO_T}$ac_res" >&6; }
8636 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8637 cat >>confdefs.h <<_ACEOF
8638 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
8642 { { echo "$as_me:$LINENO: error: libusb header file is required to build \`grub-emu
' with USB support" >&5
8643 echo "$as_me: error: libusb header file is required to build \`grub-emu' with USB support
" >&2;}
8644 { (exit 1); exit 1; }; }
8654 # Check whether --enable-grub-fstest was given.
8655 if test "${enable_grub_fstest+set}" = set; then
8656 enableval=$enable_grub_fstest;
8661 # Check whether --enable-grub-pe2elf was given.
8662 if test "${enable_grub_pe2elf+set}" = set; then
8663 enableval=$enable_grub_pe2elf;
8668 # Check whether --enable-grub-mkfont was given.
8669 if test "${enable_grub_mkfont+set}" = set; then
8670 enableval=$enable_grub_mkfont;
8673 if test x"$enable_grub_mkfont" = xyes ; then
8674 # Check for freetype libraries.
8675 for ac_prog in freetype-config
8677 # Extract the first word of "$ac_prog", so it can be a program name with args.
8678 set dummy $ac_prog; ac_word=$2
8679 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
8680 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
8681 if test "${ac_cv_prog_FREETYPE+set}" = set; then
8682 echo $ECHO_N "(cached
) $ECHO_C" >&6
8684 if test -n "$FREETYPE"; then
8685 ac_cv_prog_FREETYPE="$FREETYPE" # Let the user override the test.
8687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8691 test -z "$as_dir" && as_dir=.
8692 for ac_exec_ext in '' $ac_executable_extensions; do
8693 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8694 ac_cv_prog_FREETYPE="$ac_prog"
8695 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
8704 FREETYPE=$ac_cv_prog_FREETYPE
8705 if test -n "$FREETYPE"; then
8706 { echo "$as_me:$LINENO: result
: $FREETYPE" >&5
8707 echo "${ECHO_T}$FREETYPE" >&6; }
8709 { echo "$as_me:$LINENO: result
: no
" >&5
8710 echo "${ECHO_T}no
" >&6; }
8714 test -n "$FREETYPE" && break
8717 if test "x
$FREETYPE" = x ; then
8718 { { echo "$as_me:$LINENO: error
: freetype2 libraries are required to build \
`grub-mkfont'" >&5
8719 echo "$as_me: error: freetype2 libraries are required to build \`grub-mkfont
'" >&2;}
8720 { (exit 1); exit 1; }; }
8722 freetype_cflags=`freetype-config --cflags`
8723 freetype_libs=`freetype-config --libs`
8731 { echo "$as_me:$LINENO: checking whether ln can handle directories properly" >&5
8732 echo $ECHO_N "checking whether ln can handle directories properly... $ECHO_C" >&6; }
8733 mkdir testdir 2>/dev/null
8735 [\\/$]* | ?:[\\/]* ) reldir=$srcdir/include/grub/util ;;
8736 *) reldir=../$srcdir/include/grub/util ;;
8738 if ln -s $reldir testdir/util 2>/dev/null ; then
8739 { echo "$as_me:$LINENO: result: yes" >&5
8740 echo "${ECHO_T}yes" >&6; }
8744 { echo "$as_me:$LINENO: result: no" >&5
8745 echo "${ECHO_T}no" >&6; }
8749 if test x"$link_dir" = xyes ; then
8750 ac_config_links="$ac_config_links include/grub/cpu:include/grub/$target_cpu include/grub/machine:include/grub/$target_cpu/$platform"
8753 mkdir -p include/grub 2>/dev/null
8754 rm -rf include/grub/cpu
8755 cp -rp $srcdir/include/grub/$target_cpu include/grub/cpu 2>/dev/null
8756 rm -rf include/grub/machine
8757 cp -rp $srcdir/include/grub/$target_cpu/$platform include/grub/machine 2>/dev/null
8759 ac_config_files="$ac_config_files Makefile gensymlist.sh genkernsyms.sh"
8761 ac_config_files="$ac_config_files stamp-h"
8763 cat >confcache <<\_ACEOF
8764 # This file is a shell script that caches the results of configure
8765 # tests run on this system so they can be shared between configure
8766 # scripts and configure runs, see configure's option
--config-cache.
8767 # It is not useful on other systems. If it contains results you don't
8768 # want to keep, you may remove or edit it.
8770 # config.status only pays attention to the cache file if you give it
8771 # the --recheck option to rerun configure.
8773 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8774 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8779 # The following way of writing the cache mishandles newlines in values,
8780 # but we know of no workaround that is simple, portable, and efficient.
8781 # So, we kill variables containing newlines.
8782 # Ultrix sh set writes to stderr and can't be redirected directly,
8783 # and sets the high bit in the cache file unless we assign to the vars.
8785 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
8786 eval ac_val
=\$
$ac_var
8790 *_cv_
*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
8791 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
8794 _ | IFS | as_nl
) ;; #(
8795 *) $as_unset $ac_var ;;
8801 case $as_nl`(ac_space=' '; set) 2>&1` in #(
8802 *${as_nl}ac_space
=\
*)
8803 # `set' does not quote correctly, so add quotes (double-quote
8804 # substitution turns \\\\ into \\, and sed turns \\ into \).
8807 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8810 # `set' quotes correctly as required by POSIX, so do not add quotes.
8811 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
8820 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8822 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8824 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
8825 if test -w "$cache_file"; then
8826 test "x$cache_file" != "x/dev/null" &&
8827 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
8828 echo "$as_me: updating cache $cache_file" >&6;}
8829 cat confcache
>$cache_file
8831 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
8832 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
8837 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
8838 # Let make expand exec_prefix.
8839 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
8841 DEFS
=-DHAVE_CONFIG_H
8845 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
8846 # 1. Remove the extension, and $U if already installed.
8847 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
8848 ac_i
=`echo "$ac_i" | sed "$ac_script"`
8849 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
8850 # will be set to the directory where LIBOBJS objects are built.
8851 ac_libobjs
="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
8852 ac_ltlibobjs
="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
8856 LTLIBOBJS
=$ac_ltlibobjs
8860 : ${CONFIG_STATUS=./config.status}
8861 ac_clean_files_save
=$ac_clean_files
8862 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
8863 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
8864 echo "$as_me: creating $CONFIG_STATUS" >&6;}
8865 cat >$CONFIG_STATUS <<_ACEOF
8867 # Generated by $as_me.
8868 # Run this file to recreate the current configuration.
8869 # Compiler output produced by configure, useful for debugging
8870 # configure, is in config.log if it exists.
8875 SHELL=\${CONFIG_SHELL-$SHELL}
8878 cat >>$CONFIG_STATUS <<\_ACEOF
8879 ## --------------------- ##
8880 ## M4sh Initialization. ##
8881 ## --------------------- ##
8883 # Be more Bourne compatible
8884 DUALCASE
=1; export DUALCASE
# for MKS sh
8885 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
8888 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
8889 # is contrary to our usage. Disable this feature.
8890 alias -g '${1+"$@"}'='"$@"'
8891 setopt NO_GLOB_SUBST
8893 case `(set -o) 2>/dev/null` in
8894 *posix
*) set -o posix
;;
8903 # Avoid depending upon Character Ranges.
8904 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
8905 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8906 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
8907 as_cr_digits
='0123456789'
8908 as_cr_alnum
=$as_cr_Letters$as_cr_digits
8910 # The user is always right.
8911 if test "${PATH_SEPARATOR+set}" != set; then
8912 echo "#! /bin/sh" >conf$$.sh
8913 echo "exit 0" >>conf$$.sh
8915 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
8923 # Support unset when possible.
8924 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
8932 # We need space, tab and new line, in precisely that order. Quoting is
8933 # there to prevent editors from complaining about space-tab.
8934 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
8935 # splitting by setting IFS to empty value.)
8940 # Find who we are. Look in the path if we contain no directory separator.
8942 *[\\/]* ) as_myself
=$0 ;;
8943 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8947 test -z "$as_dir" && as_dir
=.
8948 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
8954 # We did not find ourselves, most probably we were run as `sh COMMAND'
8955 # in which case we are not to be found in the path.
8956 if test "x$as_myself" = x
; then
8959 if test ! -f "$as_myself"; then
8960 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
8961 { (exit 1); exit 1; }
8964 # Work around bugs in pre-3.0 UWIN ksh.
8965 for as_var
in ENV MAIL MAILPATH
8966 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
8974 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
8975 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
8976 LC_TELEPHONE LC_TIME
8978 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
8979 eval $as_var=C
; export $as_var
8981 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
8985 # Required to use basename.
8986 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
8987 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
8993 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
8994 as_basename
=basename
9000 # Name of the executable.
9001 as_me
=`$as_basename -- "$0" ||
9002 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9003 X"$0" : 'X\(//\)$' \| \
9004 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
9006 sed '/^.*\/\([^/][^/]*\)\/*$/{
9027 test "x$as_lineno_1" != "x$as_lineno_2" &&
9028 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
9030 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
9031 # uniformly replaced by the line number. The first 'sed' inserts a
9032 # line-number line after each line using $LINENO; the second 'sed'
9033 # does the real work. The second script uses 'N' to pair each
9034 # line-number line with the line containing $LINENO, and appends
9035 # trailing '-' during substitution so that $LINENO is not a special
9037 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
9038 # scripts with optimization help from Paolo Bonzini. Blame Lee
9039 # E. McMahon (1931-1989) for sed's syntax. :-)
9051 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
9055 chmod +x
"$as_me.lineno" ||
9056 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
9057 { (exit 1); exit 1; }; }
9059 # Don't try to exec as it changes $[0], causing all sort of problems
9060 # (the dirname of $[0] is not the place where we might find the
9061 # original and so on. Autoconf is especially sensitive to this).
9063 # Exit status is that of the last command.
9068 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
9074 ECHO_C
= ECHO_N
= ECHO_T
=
9077 case `echo 'x\c'` in
9078 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
9085 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
9086 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
9092 rm -f conf$$ conf$$.exe conf$$.
file
9093 if test -d conf$$.dir
; then
9094 rm -f conf$$.dir
/conf$$.
file
9100 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
9102 # ... but there are two gotchas:
9103 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
9104 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
9105 # In both cases, we have to default to `cp -p'.
9106 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
9108 elif ln conf$$.
file conf$$
2>/dev
/null
; then
9113 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
9114 rmdir conf$$.dir
2>/dev
/null
9116 if mkdir
-p .
2>/dev
/null
; then
9119 test -d .
/-p && rmdir .
/-p
9123 if test -x / >/dev
/null
2>&1; then
9126 if ls -dL / >/dev
/null
2>&1; then
9133 if test -d "$1"; then
9139 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
9140 ???[sx]*):;;*)false;;esac;fi
9144 as_executable_p
=$as_test_x
9146 # Sed expression to map a string onto a valid CPP name.
9147 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9149 # Sed expression to map a string onto a valid variable name.
9150 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9155 # Save the log message, to keep $[0] and so on meaningful, and to
9156 # report actual input values of CONFIG_FILES etc. instead of their
9157 # values after options handling.
9159 This file was extended by GRUB $as_me 1.96, which was
9160 generated by GNU Autoconf 2.61. Invocation command line was
9162 CONFIG_FILES = $CONFIG_FILES
9163 CONFIG_HEADERS = $CONFIG_HEADERS
9164 CONFIG_LINKS = $CONFIG_LINKS
9165 CONFIG_COMMANDS = $CONFIG_COMMANDS
9168 on `(hostname || uname -n) 2>/dev/null | sed 1q`
9173 cat >>$CONFIG_STATUS <<_ACEOF
9174 # Files that config.status was made for.
9175 config_files="$ac_config_files"
9176 config_headers="$ac_config_headers"
9177 config_links="$ac_config_links"
9181 cat >>$CONFIG_STATUS <<\_ACEOF
9183 \`$as_me' instantiates files from templates according to the
9184 current configuration.
9186 Usage: $0 [OPTIONS] [FILE]...
9188 -h, --help print this help, then exit
9189 -V, --version print version number and configuration settings, then exit
9190 -q, --quiet do not print progress messages
9191 -d, --debug don't remove temporary files
9192 --recheck update $as_me by reconfiguring in the same conditions
9193 --file=FILE[:TEMPLATE]
9194 instantiate the configuration file FILE
9195 --header=FILE[:TEMPLATE]
9196 instantiate the configuration header FILE
9198 Configuration files:
9201 Configuration headers:
9204 Configuration links:
9207 Report bugs to <bug-autoconf@gnu.org>."
9210 cat >>$CONFIG_STATUS <<_ACEOF
9212 GRUB config.status 1.96
9213 configured by $0, generated by GNU Autoconf 2.61,
9214 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
9216 Copyright (C) 2006 Free Software Foundation, Inc.
9217 This config.status script is free software; the Free Software Foundation
9218 gives unlimited permission to copy, distribute and modify it."
9225 cat >>$CONFIG_STATUS <<\_ACEOF
9226 # If no file are specified by the user, then we need to provide default
9227 # value. By we need to know if files were specified by the user.
9233 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
9234 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
9245 # Handling of the options.
9246 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
9248 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
9249 echo "$ac_cs_version"; exit ;;
9250 --debug |
--debu |
--deb |
--de |
--d |
-d )
9252 --file |
--fil |
--fi |
--f )
9254 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
9255 ac_need_defaults
=false
;;
9256 --header |
--heade |
--head |
--hea )
9258 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
9259 ac_need_defaults
=false
;;
9261 # Conflict between --help and --header
9262 { echo "$as_me: error: ambiguous option: $1
9263 Try \`$0 --help' for more information." >&2
9264 { (exit 1); exit 1; }; };;
9265 --help |
--hel |
-h )
9266 echo "$ac_cs_usage"; exit ;;
9267 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
9268 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
9272 -*) { echo "$as_me: error: unrecognized option: $1
9273 Try \`$0 --help' for more information." >&2
9274 { (exit 1); exit 1; }; } ;;
9276 *) ac_config_targets
="$ac_config_targets $1"
9277 ac_need_defaults
=false
;;
9283 ac_configure_extra_args
=
9285 if $ac_cs_silent; then
9287 ac_configure_extra_args
="$ac_configure_extra_args --silent"
9291 cat >>$CONFIG_STATUS <<_ACEOF
9292 if \$ac_cs_recheck; then
9293 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
9296 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9300 cat >>$CONFIG_STATUS <<\_ACEOF
9304 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9305 ## Running $as_me. ##
9311 cat >>$CONFIG_STATUS <<_ACEOF
9314 cat >>$CONFIG_STATUS <<\_ACEOF
9316 # Handling of arguments.
9317 for ac_config_target
in $ac_config_targets
9319 case $ac_config_target in
9320 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
9321 "include/grub/cpu") CONFIG_LINKS
="$CONFIG_LINKS include/grub/cpu:include/grub/$target_cpu" ;;
9322 "include/grub/machine") CONFIG_LINKS
="$CONFIG_LINKS include/grub/machine:include/grub/$target_cpu/$platform" ;;
9323 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
9324 "gensymlist.sh") CONFIG_FILES
="$CONFIG_FILES gensymlist.sh" ;;
9325 "genkernsyms.sh") CONFIG_FILES
="$CONFIG_FILES genkernsyms.sh" ;;
9326 "stamp-h") CONFIG_FILES
="$CONFIG_FILES stamp-h" ;;
9328 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
9329 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
9330 { (exit 1); exit 1; }; };;
9335 # If the user did not use the arguments to specify the items to instantiate,
9336 # then the envvar interface is used. Set only those that are not.
9337 # We use the long form for the default assignment because of an extremely
9338 # bizarre bug on SunOS 4.1.3.
9339 if $ac_need_defaults; then
9340 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
9341 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
9342 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS
=$config_links
9345 # Have a temporary directory for convenience. Make it in the build tree
9346 # simply because there is no reason against having it here, and in addition,
9347 # creating and moving files from /tmp can sometimes cause problems.
9348 # Hook for its removal unless debugging.
9349 # Note that there is a small window in which the directory will not be cleaned:
9350 # after its creation but before its name has been assigned to `$tmp'.
9354 trap 'exit_status=$?
9355 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
9357 trap '{ (exit 1); exit 1; }' 1 2 13 15
9359 # Create a (secure) tmp directory for tmp files.
9362 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
9363 test -n "$tmp" && test -d "$tmp"
9366 tmp
=.
/conf$$
-$RANDOM
9367 (umask 077 && mkdir
"$tmp")
9370 echo "$me: cannot create a temporary directory in ." >&2
9371 { (exit 1); exit 1; }
9375 # Set up the sed scripts for CONFIG_FILES section.
9378 # No need to generate the scripts if there are no CONFIG_FILES.
9379 # This happens for instance when ./config.status config.h
9380 if test -n "$CONFIG_FILES"; then
9387 for ac_last_try
in false false false false false
:; do
9388 cat >conf$
$subs.
sed <<_ACEOF
9389 SHELL!$SHELL$ac_delim
9390 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
9391 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
9392 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
9393 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
9394 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
9395 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
9396 exec_prefix!$exec_prefix$ac_delim
9397 prefix!$prefix$ac_delim
9398 program_transform_name!$program_transform_name$ac_delim
9399 bindir!$bindir$ac_delim
9400 sbindir!$sbindir$ac_delim
9401 libexecdir!$libexecdir$ac_delim
9402 datarootdir!$datarootdir$ac_delim
9403 datadir!$datadir$ac_delim
9404 sysconfdir!$sysconfdir$ac_delim
9405 sharedstatedir!$sharedstatedir$ac_delim
9406 localstatedir!$localstatedir$ac_delim
9407 includedir!$includedir$ac_delim
9408 oldincludedir!$oldincludedir$ac_delim
9409 docdir!$docdir$ac_delim
9410 infodir!$infodir$ac_delim
9411 htmldir!$htmldir$ac_delim
9412 dvidir!$dvidir$ac_delim
9413 pdfdir!$pdfdir$ac_delim
9414 psdir!$psdir$ac_delim
9415 libdir!$libdir$ac_delim
9416 localedir!$localedir$ac_delim
9417 mandir!$mandir$ac_delim
9419 ECHO_C!$ECHO_C$ac_delim
9420 ECHO_N!$ECHO_N$ac_delim
9421 ECHO_T!$ECHO_T$ac_delim
9423 build_alias!$build_alias$ac_delim
9424 host_alias!$host_alias$ac_delim
9425 target_alias!$target_alias$ac_delim
9426 build!$build$ac_delim
9427 build_cpu!$build_cpu$ac_delim
9428 build_vendor!$build_vendor$ac_delim
9429 build_os!$build_os$ac_delim
9431 host_cpu!$host_cpu$ac_delim
9432 host_vendor!$host_vendor$ac_delim
9433 host_os!$host_os$ac_delim
9434 target!$target$ac_delim
9435 target_cpu!$target_cpu$ac_delim
9436 target_vendor!$target_vendor$ac_delim
9437 target_os!$target_os$ac_delim
9438 host_kernel!$host_kernel$ac_delim
9439 platform!$platform$ac_delim
9442 UNIFONT_BDF!$UNIFONT_BDF$ac_delim
9443 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
9444 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
9445 INSTALL_DATA!$INSTALL_DATA$ac_delim
9447 SET_MAKE!$SET_MAKE$ac_delim
9449 HELP2MAN!$HELP2MAN$ac_delim
9451 CFLAGS!$CFLAGS$ac_delim
9452 LDFLAGS!$LDFLAGS$ac_delim
9453 CPPFLAGS!$CPPFLAGS$ac_delim
9454 ac_ct_CC!$ac_ct_CC$ac_delim
9455 EXEEXT!$EXEEXT$ac_delim
9456 OBJEXT!$OBJEXT$ac_delim
9459 EGREP!$EGREP$ac_delim
9460 LIBLZO!$LIBLZO$ac_delim
9461 enable_lzo!$enable_lzo$ac_delim
9462 TARGET_IMG_LDSCRIPT!$TARGET_IMG_LDSCRIPT$ac_delim
9463 TARGET_IMG_LDFLAGS!$TARGET_IMG_LDFLAGS$ac_delim
9464 TARGET_OBJ2ELF!$TARGET_OBJ2ELF$ac_delim
9465 TARGET_CC!$TARGET_CC$ac_delim
9466 ac_ct_TARGET_CC!$ac_ct_TARGET_CC$ac_delim
9467 OBJCOPY!$OBJCOPY$ac_delim
9468 STRIP!$STRIP$ac_delim
9470 TARGET_CFLAGS!$TARGET_CFLAGS$ac_delim
9471 TARGET_CPPFLAGS!$TARGET_CPPFLAGS$ac_delim
9472 TARGET_LDFLAGS!$TARGET_LDFLAGS$ac_delim
9473 LIBCURSES!$LIBCURSES$ac_delim
9474 LIBUSB!$LIBUSB$ac_delim
9475 enable_grub_emu!$enable_grub_emu$ac_delim
9476 enable_grub_emu_usb!$enable_grub_emu_usb$ac_delim
9477 enable_grub_fstest!$enable_grub_fstest$ac_delim
9478 enable_grub_pe2elf!$enable_grub_pe2elf$ac_delim
9479 FREETYPE!$FREETYPE$ac_delim
9480 enable_grub_mkfont!$enable_grub_mkfont$ac_delim
9481 freetype_cflags!$freetype_cflags$ac_delim
9482 freetype_libs!$freetype_libs$ac_delim
9483 LIBOBJS!$LIBOBJS$ac_delim
9484 LTLIBOBJS!$LTLIBOBJS$ac_delim
9487 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 96; then
9489 elif $ac_last_try; then
9490 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
9491 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
9492 { (exit 1); exit 1; }; }
9494 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
9498 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
9499 if test -n "$ac_eof"; then
9500 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
9501 ac_eof
=`expr $ac_eof + 1`
9504 cat >>$CONFIG_STATUS <<_ACEOF
9505 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
9506 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9509 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
9510 s/^/s,@/; s/!/@,|#_!!_#|/
9513 s/'"$ac_delim"'$/,g/; t
9515 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
9516 ' >>$CONFIG_STATUS <conf$
$subs.
sed
9517 rm -f conf$
$subs.
sed
9518 cat >>$CONFIG_STATUS <<_ACEOF
9523 # VPATH may cause trouble with some makes, so we remove $(srcdir),
9524 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
9525 # trailing colons and then remove the whole line if VPATH becomes empty
9526 # (actually we leave an empty line to preserve line numbers).
9527 if test "x$srcdir" = x.
; then
9528 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
9532 s/^\([^=]*=[ ]*\):*/\1/
9538 cat >>$CONFIG_STATUS <<\_ACEOF
9539 fi # test -n "$CONFIG_FILES"
9542 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS :L
$CONFIG_LINKS
9545 :[FHLC
]) ac_mode
=$ac_tag; continue;;
9547 case $ac_mode$ac_tag in
9549 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
9550 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
9551 { (exit 1); exit 1; }; };;
9552 :[FH
]-) ac_tag
=-:-;;
9553 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
9570 -) ac_f
="$tmp/stdin";;
9571 *) # Look for the file first in the build tree, then in the source tree
9572 # (if the path is not absolute). The absolute path cannot be DOS-style,
9573 # because $ac_f cannot contain `:'.
9577 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
9579 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
9580 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
9581 { (exit 1); exit 1; }; };;
9583 ac_file_inputs
="$ac_file_inputs $ac_f"
9586 # Let's still pretend it is `configure' which instantiates (i.e., don't
9587 # use $as_me), people would be surprised to read:
9588 # /* config.h. Generated by config.status. */
9589 configure_input
="Generated from "`IFS=:
9590 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
9591 if test x
"$ac_file" != x-
; then
9592 configure_input
="$ac_file. $configure_input"
9593 { echo "$as_me:$LINENO: creating $ac_file" >&5
9594 echo "$as_me: creating $ac_file" >&6;}
9598 *:-:* |
*:-) cat >"$tmp/stdin";;
9603 ac_dir
=`$as_dirname -- "$ac_file" ||
9604 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9605 X"$ac_file" : 'X\(//\)[^/]' \| \
9606 X"$ac_file" : 'X\(//\)$' \| \
9607 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
9609 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9628 -*) as_dir
=.
/$as_dir;;
9630 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
9634 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
9635 *) as_qdir
=$as_dir;;
9637 as_dirs
="'$as_qdir' $as_dirs"
9638 as_dir
=`$as_dirname -- "$as_dir" ||
9639 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9640 X"$as_dir" : 'X\(//\)[^/]' \| \
9641 X"$as_dir" : 'X\(//\)$' \| \
9642 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
9644 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9661 test -d "$as_dir" && break
9663 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
9664 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
9665 echo "$as_me: error: cannot create directory $as_dir" >&2;}
9666 { (exit 1); exit 1; }; }; }
9670 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
9672 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9673 # A ".." for each directory in $ac_dir_suffix.
9674 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
9675 case $ac_top_builddir_sub in
9676 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
9677 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
9680 ac_abs_top_builddir
=$ac_pwd
9681 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
9682 # for backward compatibility:
9683 ac_top_builddir
=$ac_top_build_prefix
9686 .
) # We are building in place.
9688 ac_top_srcdir
=$ac_top_builddir_sub
9689 ac_abs_top_srcdir
=$ac_pwd ;;
9690 [\\/]* | ?
:[\\/]* ) # Absolute name.
9691 ac_srcdir
=$srcdir$ac_dir_suffix;
9692 ac_top_srcdir
=$srcdir
9693 ac_abs_top_srcdir
=$srcdir ;;
9695 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
9696 ac_top_srcdir
=$ac_top_build_prefix$srcdir
9697 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
9699 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
9709 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
9710 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
9714 cat >>$CONFIG_STATUS <<\_ACEOF
9715 # If the template does not know about datarootdir, expand it.
9716 # FIXME: This hack should be removed a few years after 2.60.
9717 ac_datarootdir_hack
=; ac_datarootdir_seen
=
9719 case `sed -n '/datarootdir/ {
9728 ' $ac_file_inputs` in
9729 *datarootdir
*) ac_datarootdir_seen
=yes;;
9730 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
9731 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
9732 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
9734 cat >>$CONFIG_STATUS <<_ACEOF
9735 ac_datarootdir_hack='
9736 s&@datadir@&$datadir&g
9737 s&@docdir@&$docdir&g
9738 s&@infodir@&$infodir&g
9739 s&@localedir@&$localedir&g
9740 s&@mandir@&$mandir&g
9741 s&\\\${datarootdir}&$datarootdir&g' ;;
9745 # Neutralize VPATH when `$srcdir' = `.'.
9746 # Shell code in configure.ac might set extrasub.
9747 # FIXME: do we really want to maintain this feature?
9748 cat >>$CONFIG_STATUS <<_ACEOF
9752 cat >>$CONFIG_STATUS <<\_ACEOF
9754 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
9755 s
&@configure_input@
&$configure_input&;t t
9756 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
9757 s
&@srcdir@
&$ac_srcdir&;t t
9758 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
9759 s
&@top_srcdir@
&$ac_top_srcdir&;t t
9760 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
9761 s
&@builddir@
&$ac_builddir&;t t
9762 s
&@abs_builddir@
&$ac_abs_builddir&;t t
9763 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
9764 s
&@INSTALL@
&$ac_INSTALL&;t t
9765 $ac_datarootdir_hack
9766 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" | sed 's/|#_!!_#|//g' >$tmp/out
9768 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
9769 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
9770 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
9771 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
9772 which seems to be undefined. Please make sure it is defined." >&5
9773 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
9774 which seems to be undefined. Please make sure it is defined." >&2;}
9778 -) cat "$tmp/out"; rm -f "$tmp/out";;
9779 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
9788 # Transform confdefs.h into a sed script `conftest.defines', that
9789 # substitutes the proper values into config.h.in to produce config.h.
9790 rm -f conftest.defines conftest.
tail
9791 # First, append a space to every undef/define line, to ease matching.
9792 echo 's/$/ /' >conftest.defines
9793 # Then, protect against being on the right side of a sed subst, or in
9794 # an unquoted here document, in config.status. If some macros were
9795 # called several times there might be several #defines for the same
9796 # symbol, which is useless. But do not sort them, since the last
9797 # AC_DEFINE must be honored.
9798 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
9799 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
9800 # NAME is the cpp macro being defined, VALUE is the value it is being given.
9801 # PARAMS is the parameter list in the macro definition--in most cases, it's
9802 # just an empty string.
9803 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
9804 ac_dB
='\\)[ (].*,\\1define\\2'
9812 s/^[ ]*#[ ]*define[ ][ ]*//
9817 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
9818 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
9819 ' >>conftest.defines
9821 # Remove the space that was appended to ease matching.
9822 # Then replace #undef with comments. This is necessary, for
9823 # example, in the case of _POSIX_SOURCE, which is predefined and required
9824 # on some systems where configure will not decide to define it.
9825 # (The regexp can be short, since the line contains either #define or #undef.)
9827 s,^[ #]*u.*,/* & */,' >>conftest.defines
9829 # Break up conftest.defines:
9832 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
9833 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
9834 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
9836 ac_in
='$ac_file_inputs'
9837 ac_out
='"$tmp/out1"'
9838 ac_nxt
='"$tmp/out2"'
9842 # Write a here document:
9843 cat >>$CONFIG_STATUS <<_ACEOF
9844 # First, check the format of the line:
9845 cat >"\$tmp/defines.sed" <<\\CEOF
9846 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
9847 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
9851 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
9853 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
9854 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
9855 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
9856 grep . conftest.
tail >/dev
/null ||
break
9857 rm -f conftest.defines
9858 mv conftest.
tail conftest.defines
9860 rm -f conftest.defines conftest.
tail
9862 echo "ac_result=$ac_in" >>$CONFIG_STATUS
9863 cat >>$CONFIG_STATUS <<\_ACEOF
9864 if test x
"$ac_file" != x-
; then
9865 echo "/* $configure_input */" >"$tmp/config.h"
9866 cat "$ac_result" >>"$tmp/config.h"
9867 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
9868 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
9869 echo "$as_me: $ac_file is unchanged" >&6;}
9872 mv "$tmp/config.h" $ac_file
9875 echo "/* $configure_input */"
9885 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_file" >&5
9886 echo "$as_me: linking $srcdir/$ac_source to $ac_file" >&6;}
9888 if test ! -r "$srcdir/$ac_source"; then
9889 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
9890 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
9891 { (exit 1); exit 1; }; }
9895 # Try a relative symlink, then a hard link, then a copy.
9897 [\\/$
]* | ?
:[\\/]* ) ac_rel_source
=$srcdir/$ac_source ;;
9898 *) ac_rel_source
=$ac_top_build_prefix$srcdir/$ac_source ;;
9900 ln -s "$ac_rel_source" "$ac_file" 2>/dev
/null ||
9901 ln "$srcdir/$ac_source" "$ac_file" 2>/dev
/null ||
9902 cp -p "$srcdir/$ac_source" "$ac_file" ||
9903 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_file" >&5
9904 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_file" >&2;}
9905 { (exit 1); exit 1; }; }
9911 case $ac_file$ac_mode in
9912 "stamp-h":F
) echo timestamp
> stamp-h
;;
9918 { (exit 0); exit 0; }
9920 chmod +x
$CONFIG_STATUS
9921 ac_clean_files
=$ac_clean_files_save
9924 # configure is writing to config.log, and then calls config.status.
9925 # config.status does its own redirection, appending to config.log.
9926 # Unfortunately, on DOS this fails, as config.log is still kept open
9927 # by configure, so config.status won't be able to write to it; its
9928 # output is simply discarded. So we exec the FD to /dev/null,
9929 # effectively closing config.log, so it can be properly (re)opened and
9930 # appended to by config.status. When coming back to configure, we
9931 # need to make the FD available again.
9932 if test "$no_create" != yes; then
9934 ac_config_status_args
=
9935 test "$silent" = yes &&
9936 ac_config_status_args
="$ac_config_status_args --quiet"
9938 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
9940 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9941 # would make configure fail if this is the last instruction.
9942 $ac_cs_success ||
{ (exit 1); exit 1; }