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
703 ac_precious_vars
='build_alias
714 # Initialize some variables set by options.
716 ac_init_version
=false
717 # The variables have the same names as the options, with
718 # dashes changed to underlines.
726 program_transform_name
=s
,x
,x
,
734 # Installation directory options.
735 # These are left unexpanded so users can "make install exec_prefix=/foo"
736 # and all the variables that are supposed to be based on exec_prefix
737 # by default will actually change.
738 # Use braces instead of parens because sh, perl, etc. also accept them.
739 # (The list follows the same order as the GNU Coding Standards.)
740 bindir
='${exec_prefix}/bin'
741 sbindir
='${exec_prefix}/sbin'
742 libexecdir
='${exec_prefix}/libexec'
743 datarootdir
='${prefix}/share'
744 datadir
='${datarootdir}'
745 sysconfdir
='${prefix}/etc'
746 sharedstatedir
='${prefix}/com'
747 localstatedir
='${prefix}/var'
748 includedir
='${prefix}/include'
749 oldincludedir
='/usr/include'
750 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
751 infodir
='${datarootdir}/info'
756 libdir
='${exec_prefix}/lib'
757 localedir
='${datarootdir}/locale'
758 mandir
='${datarootdir}/man'
764 # If the previous option needs an argument, assign it.
765 if test -n "$ac_prev"; then
766 eval $ac_prev=\
$ac_option
772 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
776 # Accept the important Cygnus configure options, so we can diagnose typos.
778 case $ac_dashdash$ac_option in
782 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
784 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
787 -build |
--build |
--buil |
--bui |
--bu)
788 ac_prev
=build_alias
;;
789 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
790 build_alias
=$ac_optarg ;;
792 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
793 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
794 ac_prev
=cache_file
;;
795 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
796 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
797 cache_file
=$ac_optarg ;;
800 cache_file
=config.cache
;;
802 -datadir |
--datadir |
--datadi |
--datad)
804 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
805 datadir
=$ac_optarg ;;
807 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
808 |
--dataroo |
--dataro |
--datar)
809 ac_prev
=datarootdir
;;
810 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
811 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
812 datarootdir
=$ac_optarg ;;
814 -disable-* |
--disable-*)
815 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
816 # Reject names that are not valid shell variable names.
817 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
818 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
819 { (exit 1); exit 1; }; }
820 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
821 eval enable_
$ac_feature=no
;;
823 -docdir |
--docdir |
--docdi |
--doc |
--do)
825 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
828 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
830 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
833 -enable-* |
--enable-*)
834 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
835 # Reject names that are not valid shell variable names.
836 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
837 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
838 { (exit 1); exit 1; }; }
839 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
840 eval enable_
$ac_feature=\
$ac_optarg ;;
842 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
843 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
844 |
--exec |
--exe |
--ex)
845 ac_prev
=exec_prefix
;;
846 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
847 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
848 |
--exec=* |
--exe=* |
--ex=*)
849 exec_prefix
=$ac_optarg ;;
851 -gas |
--gas |
--ga |
--g)
852 # Obsolete; use --with-gas.
855 -help |
--help |
--hel |
--he |
-h)
857 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
858 ac_init_help
=recursive
;;
859 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
860 ac_init_help
=short
;;
862 -host |
--host |
--hos |
--ho)
863 ac_prev
=host_alias
;;
864 -host=* |
--host=* |
--hos=* |
--ho=*)
865 host_alias
=$ac_optarg ;;
867 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
869 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
871 htmldir
=$ac_optarg ;;
873 -includedir |
--includedir |
--includedi |
--included |
--include \
874 |
--includ |
--inclu |
--incl |
--inc)
875 ac_prev
=includedir
;;
876 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
877 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
878 includedir
=$ac_optarg ;;
880 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
882 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
883 infodir
=$ac_optarg ;;
885 -libdir |
--libdir |
--libdi |
--libd)
887 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
890 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
891 |
--libexe |
--libex |
--libe)
892 ac_prev
=libexecdir
;;
893 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
894 |
--libexe=* |
--libex=* |
--libe=*)
895 libexecdir
=$ac_optarg ;;
897 -localedir |
--localedir |
--localedi |
--localed |
--locale)
899 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
900 localedir
=$ac_optarg ;;
902 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
903 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
904 ac_prev
=localstatedir
;;
905 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
906 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
907 localstatedir
=$ac_optarg ;;
909 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
911 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
915 # Obsolete; use --without-fp.
918 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
919 |
--no-cr |
--no-c |
-n)
922 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
923 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
926 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
927 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
928 |
--oldin |
--oldi |
--old |
--ol |
--o)
929 ac_prev
=oldincludedir
;;
930 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
931 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
932 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
933 oldincludedir
=$ac_optarg ;;
935 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
937 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
940 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
941 |
--program-pre |
--program-pr |
--program-p)
942 ac_prev
=program_prefix
;;
943 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
944 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
945 program_prefix
=$ac_optarg ;;
947 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
948 |
--program-suf |
--program-su |
--program-s)
949 ac_prev
=program_suffix
;;
950 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
951 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
952 program_suffix
=$ac_optarg ;;
954 -program-transform-name |
--program-transform-name \
955 |
--program-transform-nam |
--program-transform-na \
956 |
--program-transform-n |
--program-transform- \
957 |
--program-transform |
--program-transfor \
958 |
--program-transfo |
--program-transf \
959 |
--program-trans |
--program-tran \
960 |
--progr-tra |
--program-tr |
--program-t)
961 ac_prev
=program_transform_name
;;
962 -program-transform-name=* |
--program-transform-name=* \
963 |
--program-transform-nam=* |
--program-transform-na=* \
964 |
--program-transform-n=* |
--program-transform-=* \
965 |
--program-transform=* |
--program-transfor=* \
966 |
--program-transfo=* |
--program-transf=* \
967 |
--program-trans=* |
--program-tran=* \
968 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
969 program_transform_name
=$ac_optarg ;;
971 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
973 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
976 -psdir |
--psdir |
--psdi |
--psd |
--ps)
978 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
981 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
982 |
-silent |
--silent |
--silen |
--sile |
--sil)
985 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
987 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
989 sbindir
=$ac_optarg ;;
991 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
992 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
993 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
995 ac_prev
=sharedstatedir
;;
996 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
997 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
998 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1000 sharedstatedir
=$ac_optarg ;;
1002 -site |
--site |
--sit)
1004 -site=* |
--site=* |
--sit=*)
1007 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1009 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1010 srcdir
=$ac_optarg ;;
1012 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1013 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1014 ac_prev
=sysconfdir
;;
1015 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1016 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1017 sysconfdir
=$ac_optarg ;;
1019 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1020 ac_prev
=target_alias
;;
1021 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1022 target_alias
=$ac_optarg ;;
1024 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1027 -version |
--version |
--versio |
--versi |
--vers |
-V)
1028 ac_init_version
=: ;;
1031 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1032 # Reject names that are not valid shell variable names.
1033 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1034 { echo "$as_me: error: invalid package name: $ac_package" >&2
1035 { (exit 1); exit 1; }; }
1036 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1037 eval with_
$ac_package=\
$ac_optarg ;;
1039 -without-* |
--without-*)
1040 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1041 # Reject names that are not valid shell variable names.
1042 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1043 { echo "$as_me: error: invalid package name: $ac_package" >&2
1044 { (exit 1); exit 1; }; }
1045 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1046 eval with_
$ac_package=no
;;
1049 # Obsolete; use --with-x.
1052 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1053 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1054 ac_prev
=x_includes
;;
1055 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1056 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1057 x_includes
=$ac_optarg ;;
1059 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1060 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1061 ac_prev
=x_libraries
;;
1062 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1063 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1064 x_libraries
=$ac_optarg ;;
1066 -*) { echo "$as_me: error: unrecognized option: $ac_option
1067 Try \`$0 --help' for more information." >&2
1068 { (exit 1); exit 1; }; }
1072 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1073 # Reject names that are not valid shell variable names.
1074 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1075 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1076 { (exit 1); exit 1; }; }
1077 eval $ac_envvar=\
$ac_optarg
1078 export $ac_envvar ;;
1081 # FIXME: should be removed in autoconf 3.0.
1082 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1083 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1084 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1085 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1091 if test -n "$ac_prev"; then
1092 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1093 { echo "$as_me: error: missing argument to $ac_option" >&2
1094 { (exit 1); exit 1; }; }
1097 # Be sure to have absolute directory names.
1098 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1099 datadir sysconfdir sharedstatedir localstatedir includedir \
1100 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1101 libdir localedir mandir
1103 eval ac_val
=\$
$ac_var
1105 [\\/$
]* | ?
:[\\/]* ) continue;;
1106 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1108 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1109 { (exit 1); exit 1; }; }
1112 # There might be people who depend on the old broken behavior: `$host'
1113 # used to hold the argument of --host etc.
1114 # FIXME: To remove some day.
1117 target
=$target_alias
1119 # FIXME: To remove some day.
1120 if test "x$host_alias" != x
; then
1121 if test "x$build_alias" = x
; then
1122 cross_compiling
=maybe
1123 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1124 If a cross compiler is detected then cross compile mode will be used." >&2
1125 elif test "x$build_alias" != "x$host_alias"; then
1131 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1133 test "$silent" = yes && exec 6>/dev
/null
1136 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1137 ac_ls_di
=`ls -di .` &&
1138 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1139 { echo "$as_me: error: Working directory cannot be determined" >&2
1140 { (exit 1); exit 1; }; }
1141 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1142 { echo "$as_me: error: pwd does not report name of working directory" >&2
1143 { (exit 1); exit 1; }; }
1146 # Find the source files, if location was not specified.
1147 if test -z "$srcdir"; then
1148 ac_srcdir_defaulted
=yes
1149 # Try the directory containing this script, then the parent directory.
1150 ac_confdir
=`$as_dirname -- "$0" ||
1151 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1152 X"$0" : 'X\(//\)[^/]' \| \
1153 X"$0" : 'X\(//\)$' \| \
1154 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1156 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1174 if test ! -r "$srcdir/$ac_unique_file"; then
1178 ac_srcdir_defaulted
=no
1180 if test ! -r "$srcdir/$ac_unique_file"; then
1181 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1182 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1183 { (exit 1); exit 1; }; }
1185 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1187 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1188 { (exit 1); exit 1; }; }
1190 # When building in place, set srcdir=.
1191 if test "$ac_abs_confdir" = "$ac_pwd"; then
1194 # Remove unnecessary trailing slashes from srcdir.
1195 # Double slashes in file names in object file debugging info
1196 # mess up M-x gdb in Emacs.
1198 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1200 for ac_var
in $ac_precious_vars; do
1201 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1202 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1203 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1204 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1208 # Report the --help message.
1210 if test "$ac_init_help" = "long"; then
1211 # Omit some internal or obsolete options to make the list less imposing.
1212 # This message is too long to be a string in the A/UX 3.1 sh.
1214 \`configure' configures GRUB 1.96 to adapt to many kinds of systems.
1216 Usage: $0 [OPTION]... [VAR=VALUE]...
1218 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1219 VAR=VALUE. See below for descriptions of some of the useful variables.
1221 Defaults for the options are specified in brackets.
1224 -h, --help display this help and exit
1225 --help=short display options specific to this package
1226 --help=recursive display the short help of all the included packages
1227 -V, --version display version information and exit
1228 -q, --quiet, --silent do not print \`checking...' messages
1229 --cache-file=FILE cache test results in FILE [disabled]
1230 -C, --config-cache alias for \`--cache-file=config.cache'
1231 -n, --no-create do not create output files
1232 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1234 Installation directories:
1235 --prefix=PREFIX install architecture-independent files in PREFIX
1236 [$ac_default_prefix]
1237 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1240 By default, \`make install' will install all the files in
1241 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1242 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1243 for instance \`--prefix=\$HOME'.
1245 For better control, use the options below.
1247 Fine tuning of the installation directories:
1248 --bindir=DIR user executables [EPREFIX/bin]
1249 --sbindir=DIR system admin executables [EPREFIX/sbin]
1250 --libexecdir=DIR program executables [EPREFIX/libexec]
1251 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1252 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1253 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1254 --libdir=DIR object code libraries [EPREFIX/lib]
1255 --includedir=DIR C header files [PREFIX/include]
1256 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1257 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1258 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1259 --infodir=DIR info documentation [DATAROOTDIR/info]
1260 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1261 --mandir=DIR man documentation [DATAROOTDIR/man]
1262 --docdir=DIR documentation root [DATAROOTDIR/doc/grub]
1263 --htmldir=DIR html documentation [DOCDIR]
1264 --dvidir=DIR dvi documentation [DOCDIR]
1265 --pdfdir=DIR pdf documentation [DOCDIR]
1266 --psdir=DIR ps documentation [DOCDIR]
1272 --program-prefix=PREFIX prepend PREFIX to installed program names
1273 --program-suffix=SUFFIX append SUFFIX to installed program names
1274 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1277 --build=BUILD configure
for building on BUILD
[guessed
]
1278 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1279 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1283 if test -n "$ac_init_help"; then
1284 case $ac_init_help in
1285 short | recursive
) echo "Configuration of GRUB 1.96:";;
1290 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1291 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1292 --disable-largefile omit support
for large files
1293 --enable-mm-debug include memory manager debugging
1294 --enable-grub-emu build and
install the
`grub-emu' debugging utility
1295 --enable-grub-fstest build and install the `grub-fstest
' debugging
1299 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1300 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1301 --with-platform=PLATFORM
1302 select the host platform [guessed]
1304 Some influential environment variables:
1305 CC C compiler command
1306 CFLAGS C compiler flags
1307 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1308 nonstandard directory <lib dir>
1309 LIBS libraries to pass to the linker, e.g. -l<library>
1310 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1311 you have headers in a nonstandard directory <include dir>
1314 Use these variables to override the choices made by `configure' or to
help
1315 it to
find libraries and programs with nonstandard names
/locations.
1317 Report bugs to
<bug-grub@gnu.org
>.
1322 if test "$ac_init_help" = "recursive"; then
1323 # If there are subdirs, report their specific --help.
1324 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1325 test -d "$ac_dir" ||
continue
1329 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1331 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1332 # A ".." for each directory in $ac_dir_suffix.
1333 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1334 case $ac_top_builddir_sub in
1335 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1336 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1339 ac_abs_top_builddir
=$ac_pwd
1340 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1341 # for backward compatibility:
1342 ac_top_builddir
=$ac_top_build_prefix
1345 .
) # We are building in place.
1347 ac_top_srcdir
=$ac_top_builddir_sub
1348 ac_abs_top_srcdir
=$ac_pwd ;;
1349 [\\/]* | ?
:[\\/]* ) # Absolute name.
1350 ac_srcdir
=$srcdir$ac_dir_suffix;
1351 ac_top_srcdir
=$srcdir
1352 ac_abs_top_srcdir
=$srcdir ;;
1354 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1355 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1356 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1358 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1360 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1361 # Check for guested configure.
1362 if test -f "$ac_srcdir/configure.gnu"; then
1364 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1365 elif test -f "$ac_srcdir/configure"; then
1367 $SHELL "$ac_srcdir/configure" --help=recursive
1369 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1371 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1375 test -n "$ac_init_help" && exit $ac_status
1376 if $ac_init_version; then
1379 generated by GNU Autoconf
2.61
1381 Copyright
(C
) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1382 2002, 2003, 2004, 2005, 2006 Free Software Foundation
, Inc.
1383 This configure
script is free software
; the Free Software Foundation
1384 gives unlimited permission to copy
, distribute and modify it.
1388 cat >config.log
<<_ACEOF
1389 This file contains any messages produced by compilers while
1390 running configure, to aid debugging if configure makes a mistake.
1392 It was created by GRUB $as_me 1.96, which was
1393 generated by GNU Autoconf 2.61. Invocation command line was
1405 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1406 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1407 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1408 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1409 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1411 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1412 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1414 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1415 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1416 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1417 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1418 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1419 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1420 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1424 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1428 test -z "$as_dir" && as_dir
=.
1429 echo "PATH: $as_dir"
1445 # Keep a trace of the command line.
1446 # Strip out --no-create and --no-recursion so they do not pile up.
1447 # Strip out --silent because we don't want to record it for future runs.
1448 # Also quote any args containing shell meta-characters.
1449 # Make two passes to allow for proper duplicate-argument suppression.
1453 ac_must_keep_next
=false
1459 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
1460 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1461 |
-silent |
--silent |
--silen |
--sile |
--sil)
1464 ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1467 1) ac_configure_args0
="$ac_configure_args0 '$ac_arg'" ;;
1469 ac_configure_args1
="$ac_configure_args1 '$ac_arg'"
1470 if test $ac_must_keep_next = true
; then
1471 ac_must_keep_next
=false
# Got value, back to normal.
1474 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
1475 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
1476 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
1477 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
1478 case "$ac_configure_args0 " in
1479 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1482 -* ) ac_must_keep_next
=true
;;
1485 ac_configure_args
="$ac_configure_args '$ac_arg'"
1490 $as_unset ac_configure_args0 ||
test "${ac_configure_args0+set}" != set ||
{ ac_configure_args0
=; export ac_configure_args0
; }
1491 $as_unset ac_configure_args1 ||
test "${ac_configure_args1+set}" != set ||
{ ac_configure_args1
=; export ac_configure_args1
; }
1493 # When interrupted or exit'd, cleanup temporary files, and complete
1494 # config.log. We remove comments because anyway the quotes in there
1495 # would cause problems or look ugly.
1496 # WARNING: Use '\'' to represent an apostrophe within the trap.
1497 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1498 trap 'exit_status=$?
1499 # Save into config.log some information that might help in debugging.
1504 ## ---------------- ##
1505 ## Cache variables. ##
1506 ## ---------------- ##
1509 # The following way of writing the cache mishandles newlines in values,
1511 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1512 eval ac_val=\$$ac_var
1516 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1517 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1520 _ | IFS | as_nl) ;; #(
1521 *) $as_unset $ac_var ;;
1526 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1527 *${as_nl}ac_space=\ *)
1529 "s/'\''/'\''\\\\'\'''\''/g;
1530 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1533 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1541 ## ----------------- ##
1542 ## Output variables. ##
1543 ## ----------------- ##
1546 for ac_var in $ac_subst_vars
1548 eval ac_val=\$$ac_var
1550 *\'\''*) ac_val
=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1552 echo "$ac_var='\''$ac_val'\''"
1556 if test -n "$ac_subst_files"; then
1558 ## ------------------- ##
1559 ## File substitutions. ##
1560 ## ------------------- ##
1563 for ac_var
in $ac_subst_files
1565 eval ac_val
=\$
$ac_var
1567 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1569 echo "$ac_var='\''$ac_val'\''"
1574 if test -s confdefs.h; then
1584 test "$ac_signal" != 0 &&
1585 echo "$as_me: caught signal $ac_signal"
1586 echo "$as_me: exit $exit_status"
1588 rm -f core *.core core.conftest.* &&
1589 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1592 for ac_signal
in 1 2 13 15; do
1593 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1597 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1598 rm -f -r conftest
* confdefs.h
1600 # Predefined preprocessor variables.
1602 cat >>confdefs.h
<<_ACEOF
1603 #define PACKAGE_NAME "$PACKAGE_NAME"
1607 cat >>confdefs.h
<<_ACEOF
1608 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1612 cat >>confdefs.h
<<_ACEOF
1613 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1617 cat >>confdefs.h
<<_ACEOF
1618 #define PACKAGE_STRING "$PACKAGE_STRING"
1622 cat >>confdefs.h
<<_ACEOF
1623 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1627 # Let the site file select an alternate cache file if it wants to.
1628 # Prefer explicitly selected file to automatically selected ones.
1629 if test -n "$CONFIG_SITE"; then
1630 set x
"$CONFIG_SITE"
1631 elif test "x$prefix" != xNONE
; then
1632 set x
"$prefix/share/config.site" "$prefix/etc/config.site"
1634 set x
"$ac_default_prefix/share/config.site" \
1635 "$ac_default_prefix/etc/config.site"
1640 if test -r "$ac_site_file"; then
1641 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1642 echo "$as_me: loading site script $ac_site_file" >&6;}
1643 sed 's/^/| /' "$ac_site_file" >&5
1648 if test -r "$cache_file"; then
1649 # Some versions of bash will fail to source /dev/null (special
1650 # files actually), so we avoid doing that.
1651 if test -f "$cache_file"; then
1652 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1653 echo "$as_me: loading cache $cache_file" >&6;}
1655 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
1656 *) .
"./$cache_file";;
1660 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1661 echo "$as_me: creating cache $cache_file" >&6;}
1665 # Check that the precious variables saved in the cache have kept the same
1667 ac_cache_corrupted
=false
1668 for ac_var
in $ac_precious_vars; do
1669 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
1670 eval ac_new_set
=\
$ac_env_${ac_var}_set
1671 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
1672 eval ac_new_val
=\
$ac_env_${ac_var}_value
1673 case $ac_old_set,$ac_new_set in
1675 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1676 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1677 ac_cache_corrupted
=: ;;
1679 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1680 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1681 ac_cache_corrupted
=: ;;
1684 if test "x$ac_old_val" != "x$ac_new_val"; then
1685 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1686 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1687 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1688 echo "$as_me: former value: $ac_old_val" >&2;}
1689 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1690 echo "$as_me: current value: $ac_new_val" >&2;}
1691 ac_cache_corrupted
=:
1694 # Pass precious variables to config.status.
1695 if test "$ac_new_set" = set; then
1697 *\'*) ac_arg
=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1698 *) ac_arg
=$ac_var=$ac_new_val ;;
1700 case " $ac_configure_args " in
1701 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1702 *) ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
1706 if $ac_cache_corrupted; then
1707 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1708 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1709 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1710 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1711 { (exit 1); exit 1; }; }
1739 ac_cpp
='$CPP $CPPFLAGS'
1740 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1741 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1742 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1747 ac_config_headers
="$ac_config_headers config.h"
1750 # Checks for host and target systems.
1752 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1753 if test -f "$ac_dir/install-sh"; then
1755 ac_install_sh
="$ac_aux_dir/install-sh -c"
1757 elif test -f "$ac_dir/install.sh"; then
1759 ac_install_sh
="$ac_aux_dir/install.sh -c"
1761 elif test -f "$ac_dir/shtool"; then
1763 ac_install_sh
="$ac_aux_dir/shtool install -c"
1767 if test -z "$ac_aux_dir"; then
1768 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1769 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1770 { (exit 1); exit 1; }; }
1773 # These three variables are undocumented and unsupported,
1774 # and are intended to be withdrawn in a future Autoconf release.
1775 # They can cause serious problems if a builder's source tree is in a directory
1776 # whose full name contains unusual characters.
1777 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1778 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1779 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1782 # Make sure we can run config.sub.
1783 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
1784 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1785 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1786 { (exit 1); exit 1; }; }
1788 { echo "$as_me:$LINENO: checking build system type" >&5
1789 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1790 if test "${ac_cv_build+set}" = set; then
1791 echo $ECHO_N "(cached) $ECHO_C" >&6
1793 ac_build_alias
=$build_alias
1794 test "x$ac_build_alias" = x
&&
1795 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
1796 test "x$ac_build_alias" = x
&&
1797 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1798 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1799 { (exit 1); exit 1; }; }
1800 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1801 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1802 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1803 { (exit 1); exit 1; }; }
1806 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1807 echo "${ECHO_T}$ac_cv_build" >&6; }
1808 case $ac_cv_build in
1810 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1811 echo "$as_me: error: invalid value of canonical build" >&2;}
1812 { (exit 1); exit 1; }; };;
1815 ac_save_IFS
=$IFS; IFS
='-'
1821 # Remember, the first character of IFS is used to create $*,
1822 # except with old shells:
1825 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
1828 { echo "$as_me:$LINENO: checking host system type" >&5
1829 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1830 if test "${ac_cv_host+set}" = set; then
1831 echo $ECHO_N "(cached) $ECHO_C" >&6
1833 if test "x$host_alias" = x
; then
1834 ac_cv_host
=$ac_cv_build
1836 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1837 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1838 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1839 { (exit 1); exit 1; }; }
1843 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1844 echo "${ECHO_T}$ac_cv_host" >&6; }
1847 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1848 echo "$as_me: error: invalid value of canonical host" >&2;}
1849 { (exit 1); exit 1; }; };;
1852 ac_save_IFS
=$IFS; IFS
='-'
1858 # Remember, the first character of IFS is used to create $*,
1859 # except with old shells:
1862 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
1865 { echo "$as_me:$LINENO: checking target system type" >&5
1866 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
1867 if test "${ac_cv_target+set}" = set; then
1868 echo $ECHO_N "(cached) $ECHO_C" >&6
1870 if test "x$target_alias" = x
; then
1871 ac_cv_target
=$ac_cv_host
1873 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
1874 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
1875 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
1876 { (exit 1); exit 1; }; }
1880 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1881 echo "${ECHO_T}$ac_cv_target" >&6; }
1882 case $ac_cv_target in
1884 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
1885 echo "$as_me: error: invalid value of canonical target" >&2;}
1886 { (exit 1); exit 1; }; };;
1888 target
=$ac_cv_target
1889 ac_save_IFS
=$IFS; IFS
='-'
1895 # Remember, the first character of IFS is used to create $*,
1896 # except with old shells:
1899 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
1902 # The aliases save the names the user supplied, while $host etc.
1903 # will get canonicalized.
1904 test -n "$target_alias" &&
1905 test "$program_prefix$program_suffix$program_transform_name" = \
1907 program_prefix
=${target_alias}-
1909 # Program name transformations
1910 test "$program_prefix" != NONE
&&
1911 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
1912 # Use a double $ so make ignores it.
1913 test "$program_suffix" != NONE
&&
1914 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
1915 # Double any \ or $. echo might interpret backslashes.
1916 # By default was `s,x,x', remove it if useless.
1917 cat <<\_ACEOF
>conftest.
sed
1918 s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//
1920 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
1925 powerpc64
) host_m32
=1 ;;
1928 case "$target_cpu" in
1929 i
[3456]86) target_cpu
=i386
;;
1930 x86_64
) target_cpu
=i386 target_m32
=1 ;;
1932 powerpc64
) target_cpu
=powerpc target_m32
=1;;
1934 *) { { echo "$as_me:$LINENO: error: unsupported CPU type" >&5
1935 echo "$as_me: error: unsupported CPU type" >&2;}
1936 { (exit 1); exit 1; }; } ;;
1939 # Specify the platform (such as firmware).
1941 # Check whether --with-platform was given.
1942 if test "${with_platform+set}" = set; then
1943 withval
=$with_platform;
1947 # Guess the platform if not specified.
1948 if test "x$with_platform" = x
; then
1949 case "$target_cpu"-"$target_vendor" in
1950 i386-apple
) platform
=efi
;;
1951 i386-
*) platform
=pc
;;
1952 powerpc-
*) platform
=ieee1275
;;
1953 sparc64-
*) platform
=ieee1275
;;
1954 *) { { echo "$as_me:$LINENO: error: unsupported machine type" >&5
1955 echo "$as_me: error: unsupported machine type" >&2;}
1956 { (exit 1); exit 1; }; } ;;
1959 platform
="$with_platform"
1963 case "$target_cpu"-"$platform" in
1968 powerpc-ieee1275
) ;;
1969 sparc64-ieee1275
) ;;
1970 *) { { echo "$as_me:$LINENO: error: unsupported machine type" >&5
1971 echo "$as_me: error: unsupported machine type" >&2;}
1972 { (exit 1); exit 1; }; } ;;
1979 # Checks for build programs.
1982 # Although cmp is listed in the GNU Coding Standards as a command which
1983 # can used directly, OpenBSD lacks cmp in the default installation.
1986 # Extract the first word of "$ac_prog", so it can be a program name with args.
1987 set dummy
$ac_prog; ac_word
=$2
1988 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1989 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1990 if test "${ac_cv_prog_CMP+set}" = set; then
1991 echo $ECHO_N "(cached) $ECHO_C" >&6
1993 if test -n "$CMP"; then
1994 ac_cv_prog_CMP
="$CMP" # Let the user override the test.
1996 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2000 test -z "$as_dir" && as_dir
=.
2001 for ac_exec_ext
in '' $ac_executable_extensions; do
2002 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2003 ac_cv_prog_CMP
="$ac_prog"
2004 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2014 if test -n "$CMP"; then
2015 { echo "$as_me:$LINENO: result: $CMP" >&5
2016 echo "${ECHO_T}$CMP" >&6; }
2018 { echo "$as_me:$LINENO: result: no" >&5
2019 echo "${ECHO_T}no" >&6; }
2023 test -n "$CMP" && break
2026 if test "x$CMP" = x
; then
2027 { { echo "$as_me:$LINENO: error: cmp is not found" >&5
2028 echo "$as_me: error: cmp is not found" >&2;}
2029 { (exit 1); exit 1; }; }
2032 for ac_prog
in bison
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_YACC+set}" = set; then
2039 echo $ECHO_N "(cached) $ECHO_C" >&6
2041 if test -n "$YACC"; then
2042 ac_cv_prog_YACC
="$YACC" # 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_YACC
="$ac_prog"
2052 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2061 YACC
=$ac_cv_prog_YACC
2062 if test -n "$YACC"; then
2063 { echo "$as_me:$LINENO: result: $YACC" >&5
2064 echo "${ECHO_T}$YACC" >&6; }
2066 { echo "$as_me:$LINENO: result: no" >&5
2067 echo "${ECHO_T}no" >&6; }
2071 test -n "$YACC" && break
2074 if test "x$YACC" = x
; then
2075 { { echo "$as_me:$LINENO: error: bison is not found" >&5
2076 echo "$as_me: error: bison is not found" >&2;}
2077 { (exit 1); exit 1; }; }
2080 for file in /usr
/share
/unifont
/unifont.hex
; do
2081 if test -e $file ; then
2088 # Find a good install program. We prefer a C program (faster),
2089 # so one script is as good as another. But avoid the broken or
2090 # incompatible versions:
2091 # SysV /etc/install, /usr/sbin/install
2092 # SunOS /usr/etc/install
2093 # IRIX /sbin/install
2095 # AmigaOS /C/install, which installs bootblocks on floppy discs
2096 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2097 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2098 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2099 # OS/2's system install, which has a completely different semantic
2100 # ./install, which can be erroneously created by make from ./install.sh.
2101 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2102 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2103 if test -z "$INSTALL"; then
2104 if test "${ac_cv_path_install+set}" = set; then
2105 echo $ECHO_N "(cached) $ECHO_C" >&6
2107 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2111 test -z "$as_dir" && as_dir
=.
2112 # Account for people who put trailing slashes in PATH elements.
2114 .
/ | .
// |
/cC
/* | \
2115 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
2116 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
2119 # OSF1 and SCO ODT 3.0 have their own names for install.
2120 # Don't use installbsd from OSF since it installs stuff as root
2122 for ac_prog
in ginstall scoinst
install; do
2123 for ac_exec_ext
in '' $ac_executable_extensions; do
2124 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2125 if test $ac_prog = install &&
2126 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2127 # AIX install. It has an incompatible calling convention.
2129 elif test $ac_prog = install &&
2130 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2131 # program-specific install script used by HP pwplus--don't use.
2134 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
2147 if test "${ac_cv_path_install+set}" = set; then
2148 INSTALL
=$ac_cv_path_install
2150 # As a last resort, use the slow shell script. Don't cache a
2151 # value for INSTALL within a source directory, because that will
2152 # break other packages using the cache if that directory is
2153 # removed, or if the value is a relative name.
2154 INSTALL
=$ac_install_sh
2157 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2158 echo "${ECHO_T}$INSTALL" >&6; }
2160 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2161 # It thinks the first close brace ends the variable substitution.
2162 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2164 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
2166 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2168 for ac_prog
in gawk mawk nawk
awk
2170 # Extract the first word of "$ac_prog", so it can be a program name with args.
2171 set dummy
$ac_prog; ac_word
=$2
2172 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2173 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2174 if test "${ac_cv_prog_AWK+set}" = set; then
2175 echo $ECHO_N "(cached) $ECHO_C" >&6
2177 if test -n "$AWK"; then
2178 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
2180 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2184 test -z "$as_dir" && as_dir
=.
2185 for ac_exec_ext
in '' $ac_executable_extensions; do
2186 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2187 ac_cv_prog_AWK
="$ac_prog"
2188 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2198 if test -n "$AWK"; then
2199 { echo "$as_me:$LINENO: result: $AWK" >&5
2200 echo "${ECHO_T}$AWK" >&6; }
2202 { echo "$as_me:$LINENO: result: no" >&5
2203 echo "${ECHO_T}no" >&6; }
2207 test -n "$AWK" && break
2210 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2211 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2212 set x
${MAKE-make}; ac_make
=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2213 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2214 echo $ECHO_N "(cached) $ECHO_C" >&6
2216 cat >conftest.
make <<\_ACEOF
2219 @
echo '@@@%%%=$(MAKE)=@@@%%%'
2221 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2222 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2224 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
2226 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
2230 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
2231 { echo "$as_me:$LINENO: result: yes" >&5
2232 echo "${ECHO_T}yes" >&6; }
2235 { echo "$as_me:$LINENO: result: no" >&5
2236 echo "${ECHO_T}no" >&6; }
2237 SET_MAKE
="MAKE=${MAKE-make}"
2241 # These are not a "must".
2242 # Extract the first word of "ruby", so it can be a program name with args.
2243 set dummy ruby
; ac_word
=$2
2244 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2245 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2246 if test "${ac_cv_path_RUBY+set}" = set; then
2247 echo $ECHO_N "(cached) $ECHO_C" >&6
2251 ac_cv_path_RUBY
="$RUBY" # Let the user override the test with a path.
2254 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2258 test -z "$as_dir" && as_dir
=.
2259 for ac_exec_ext
in '' $ac_executable_extensions; do
2260 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2261 ac_cv_path_RUBY
="$as_dir/$ac_word$ac_exec_ext"
2262 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2272 RUBY
=$ac_cv_path_RUBY
2273 if test -n "$RUBY"; then
2274 { echo "$as_me:$LINENO: result: $RUBY" >&5
2275 echo "${ECHO_T}$RUBY" >&6; }
2277 { echo "$as_me:$LINENO: result: no" >&5
2278 echo "${ECHO_T}no" >&6; }
2282 # Extract the first word of "help2man", so it can be a program name with args.
2283 set dummy help2man
; ac_word
=$2
2284 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2285 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2286 if test "${ac_cv_path_HELP2MAN+set}" = set; then
2287 echo $ECHO_N "(cached) $ECHO_C" >&6
2291 ac_cv_path_HELP2MAN
="$HELP2MAN" # Let the user override the test with a path.
2294 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2298 test -z "$as_dir" && as_dir
=.
2299 for ac_exec_ext
in '' $ac_executable_extensions; do
2300 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2301 ac_cv_path_HELP2MAN
="$as_dir/$ac_word$ac_exec_ext"
2302 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2312 HELP2MAN
=$ac_cv_path_HELP2MAN
2313 if test -n "$HELP2MAN"; then
2314 { echo "$as_me:$LINENO: result: $HELP2MAN" >&5
2315 echo "${ECHO_T}$HELP2MAN" >&6; }
2317 { echo "$as_me:$LINENO: result: no" >&5
2318 echo "${ECHO_T}no" >&6; }
2324 # Checks for host programs.
2328 ac_cpp
='$CPP $CPPFLAGS'
2329 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2330 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2331 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2332 if test -n "$ac_tool_prefix"; then
2333 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2334 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2335 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2336 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2337 if test "${ac_cv_prog_CC+set}" = set; then
2338 echo $ECHO_N "(cached) $ECHO_C" >&6
2340 if test -n "$CC"; then
2341 ac_cv_prog_CC
="$CC" # Let the user override the test.
2343 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2347 test -z "$as_dir" && as_dir
=.
2348 for ac_exec_ext
in '' $ac_executable_extensions; do
2349 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2350 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2351 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2361 if test -n "$CC"; then
2362 { echo "$as_me:$LINENO: result: $CC" >&5
2363 echo "${ECHO_T}$CC" >&6; }
2365 { echo "$as_me:$LINENO: result: no" >&5
2366 echo "${ECHO_T}no" >&6; }
2371 if test -z "$ac_cv_prog_CC"; then
2373 # Extract the first word of "gcc", so it can be a program name with args.
2374 set dummy gcc
; ac_word
=$2
2375 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2376 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2377 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2378 echo $ECHO_N "(cached) $ECHO_C" >&6
2380 if test -n "$ac_ct_CC"; then
2381 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2383 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2387 test -z "$as_dir" && as_dir
=.
2388 for ac_exec_ext
in '' $ac_executable_extensions; do
2389 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2390 ac_cv_prog_ac_ct_CC
="gcc"
2391 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2400 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2401 if test -n "$ac_ct_CC"; then
2402 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2403 echo "${ECHO_T}$ac_ct_CC" >&6; }
2405 { echo "$as_me:$LINENO: result: no" >&5
2406 echo "${ECHO_T}no" >&6; }
2409 if test "x$ac_ct_CC" = x
; then
2412 case $cross_compiling:$ac_tool_warned in
2414 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2415 whose name does not start with the host triplet. If you think this
2416 configuration is useful to you, please write to autoconf@gnu.org." >&5
2417 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2418 whose name does not start with the host triplet. If you think this
2419 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2420 ac_tool_warned
=yes ;;
2428 if test -z "$CC"; then
2429 if test -n "$ac_tool_prefix"; then
2430 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2431 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2432 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2433 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2434 if test "${ac_cv_prog_CC+set}" = set; then
2435 echo $ECHO_N "(cached) $ECHO_C" >&6
2437 if test -n "$CC"; then
2438 ac_cv_prog_CC
="$CC" # Let the user override the test.
2440 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2444 test -z "$as_dir" && as_dir
=.
2445 for ac_exec_ext
in '' $ac_executable_extensions; do
2446 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2447 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2448 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2458 if test -n "$CC"; then
2459 { echo "$as_me:$LINENO: result: $CC" >&5
2460 echo "${ECHO_T}$CC" >&6; }
2462 { echo "$as_me:$LINENO: result: no" >&5
2463 echo "${ECHO_T}no" >&6; }
2469 if test -z "$CC"; then
2470 # Extract the first word of "cc", so it can be a program name with args.
2471 set dummy cc
; ac_word
=$2
2472 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2473 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2474 if test "${ac_cv_prog_CC+set}" = set; then
2475 echo $ECHO_N "(cached) $ECHO_C" >&6
2477 if test -n "$CC"; then
2478 ac_cv_prog_CC
="$CC" # Let the user override the test.
2481 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2485 test -z "$as_dir" && as_dir
=.
2486 for ac_exec_ext
in '' $ac_executable_extensions; do
2487 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2488 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2489 ac_prog_rejected
=yes
2493 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2500 if test $ac_prog_rejected = yes; then
2501 # We found a bogon in the path, so make sure we never use it.
2502 set dummy
$ac_cv_prog_CC
2504 if test $# != 0; then
2505 # We chose a different compiler from the bogus one.
2506 # However, it has the same basename, so the bogon will be chosen
2507 # first if we set CC to just the basename; use the full file name.
2509 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2515 if test -n "$CC"; then
2516 { echo "$as_me:$LINENO: result: $CC" >&5
2517 echo "${ECHO_T}$CC" >&6; }
2519 { echo "$as_me:$LINENO: result: no" >&5
2520 echo "${ECHO_T}no" >&6; }
2525 if test -z "$CC"; then
2526 if test -n "$ac_tool_prefix"; then
2527 for ac_prog
in cl.exe
2529 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2530 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2531 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2532 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2533 if test "${ac_cv_prog_CC+set}" = set; then
2534 echo $ECHO_N "(cached) $ECHO_C" >&6
2536 if test -n "$CC"; then
2537 ac_cv_prog_CC
="$CC" # Let the user override the test.
2539 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2543 test -z "$as_dir" && as_dir
=.
2544 for ac_exec_ext
in '' $ac_executable_extensions; do
2545 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2546 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2547 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2557 if test -n "$CC"; then
2558 { echo "$as_me:$LINENO: result: $CC" >&5
2559 echo "${ECHO_T}$CC" >&6; }
2561 { echo "$as_me:$LINENO: result: no" >&5
2562 echo "${ECHO_T}no" >&6; }
2566 test -n "$CC" && break
2569 if test -z "$CC"; then
2571 for ac_prog
in cl.exe
2573 # Extract the first word of "$ac_prog", so it can be a program name with args.
2574 set dummy
$ac_prog; ac_word
=$2
2575 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2576 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2577 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2578 echo $ECHO_N "(cached) $ECHO_C" >&6
2580 if test -n "$ac_ct_CC"; then
2581 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2583 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2587 test -z "$as_dir" && as_dir
=.
2588 for ac_exec_ext
in '' $ac_executable_extensions; do
2589 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2590 ac_cv_prog_ac_ct_CC
="$ac_prog"
2591 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2600 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2601 if test -n "$ac_ct_CC"; then
2602 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2603 echo "${ECHO_T}$ac_ct_CC" >&6; }
2605 { echo "$as_me:$LINENO: result: no" >&5
2606 echo "${ECHO_T}no" >&6; }
2610 test -n "$ac_ct_CC" && break
2613 if test "x$ac_ct_CC" = x
; then
2616 case $cross_compiling:$ac_tool_warned in
2618 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2619 whose name does not start with the host triplet. If you think this
2620 configuration is useful to you, please write to autoconf@gnu.org." >&5
2621 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2622 whose name does not start with the host triplet. If you think this
2623 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2624 ac_tool_warned
=yes ;;
2633 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2634 See \`config.log' for more details." >&5
2635 echo "$as_me: error: no acceptable C compiler found in \$PATH
2636 See \`config.log' for more details." >&2;}
2637 { (exit 1); exit 1; }; }
2639 # Provide some information about the compiler.
2640 echo "$as_me:$LINENO: checking for C compiler version" >&5
2641 ac_compiler
=`set X $ac_compile; echo $2`
2642 { (ac_try
="$ac_compiler --version >&5"
2644 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2645 *) ac_try_echo=$ac_try;;
2647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2648 (eval "$ac_compiler --version >&5") 2>&5
2650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2651 (exit $ac_status); }
2652 { (ac_try="$ac_compiler -v >&5"
2654 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2655 *) ac_try_echo
=$ac_try;;
2657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2658 (eval "$ac_compiler -v >&5") 2>&5
2660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2661 (exit $ac_status); }
2662 { (ac_try
="$ac_compiler -V >&5"
2664 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2665 *) ac_try_echo=$ac_try;;
2667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2668 (eval "$ac_compiler -V >&5") 2>&5
2670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2671 (exit $ac_status); }
2673 cat >conftest.$ac_ext <<_ACEOF
2676 cat confdefs.h >>conftest.$ac_ext
2677 cat >>conftest.$ac_ext <<_ACEOF
2678 /* end confdefs.h. */
2688 ac_clean_files_save=$ac_clean_files
2689 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2690 # Try to create an executable without -o first, disregard a.out.
2691 # It will help us diagnose broken compilers, and finding out an intuition
2693 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2694 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2695 ac_link_default=`echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
2697 # List of possible output files, starting from the most likely.
2698 # The algorithm is not robust to junk in `.
', hence go to wildcards (a.*)
2699 # only as a last resort. b.out is created by i960 compilers.
2700 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
'
2702 # The IRIX 6 linker writes into existing files which may not be
2703 # executable, retaining their permissions. Remove them first so a
2704 # subsequent execution test works.
2706 for ac_file in $ac_files
2709 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2710 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2715 if { (ac_try="$ac_link_default"
2717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2718 *) ac_try_echo=$ac_try;;
2720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2721 (eval "$ac_link_default") 2>&5
2723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2724 (exit $ac_status); }; then
2725 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2726 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2727 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2728 # so that the user can short-circuit this test for compilers unknown to
2730 for ac_file
in $ac_files ''
2732 test -f "$ac_file" ||
continue
2734 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
)
2737 # We found the default executable, but exeext='' is most
2741 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
2743 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2745 # We set ac_cv_exeext here because the later test for it is not
2746 # safe: cross compilers may not add the suffix if given an `-o'
2747 # argument, so we may need to know it at that point already.
2748 # Even if this section looks crufty: it has the advantage of
2755 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
2761 { echo "$as_me:$LINENO: result: $ac_file" >&5
2762 echo "${ECHO_T}$ac_file" >&6; }
2763 if test -z "$ac_file"; then
2764 echo "$as_me: failed program was:" >&5
2765 sed 's/^/| /' conftest.
$ac_ext >&5
2767 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2768 See \`config.log' for more details." >&5
2769 echo "$as_me: error: C compiler cannot create executables
2770 See \`config.log' for more details." >&2;}
2771 { (exit 77); exit 77; }; }
2774 ac_exeext
=$ac_cv_exeext
2776 # Check that the compiler produces executables we can run. If not, either
2777 # the compiler is broken, or we cross compile.
2778 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2779 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2780 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2781 # If not cross compiling, check that we can run a simple program.
2782 if test "$cross_compiling" != yes; then
2783 if { ac_try
='./$ac_file'
2784 { (case "(($ac_try" in
2785 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2786 *) ac_try_echo=$ac_try;;
2788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2789 (eval "$ac_try") 2>&5
2791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2792 (exit $ac_status); }; }; then
2795 if test "$cross_compiling" = maybe; then
2798 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2799 If you meant to cross compile, use \`--host'.
2800 See \`config.log' for more details.
" >&5
2801 echo "$as_me: error
: cannot run C compiled programs.
2802 If you meant to cross compile
, use \
`--host'.
2803 See \`config.log
' for more details." >&2;}
2804 { (exit 1); exit 1; }; }
2808 { echo "$as_me:$LINENO: result: yes" >&5
2809 echo "${ECHO_T}yes" >&6; }
2811 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2812 ac_clean_files=$ac_clean_files_save
2813 # Check that the compiler produces executables we can run. If not, either
2814 # the compiler is broken, or we cross compile.
2815 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2816 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2817 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2818 echo "${ECHO_T}$cross_compiling" >&6; }
2820 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2821 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2822 if { (ac_try="$ac_link"
2824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2825 *) ac_try_echo=$ac_try;;
2827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2828 (eval "$ac_link") 2>&5
2830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2831 (exit $ac_status); }; then
2832 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
2833 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
2834 # work properly (i.e., refer to `conftest.exe
'), while it won't with
2836 for ac_file
in conftest.exe conftest conftest.
*; do
2837 test -f "$ac_file" ||
continue
2839 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
) ;;
2840 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2846 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2847 See \`config.log' for more details." >&5
2848 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2849 See \`config.log' for more details." >&2;}
2850 { (exit 1); exit 1; }; }
2853 rm -f conftest
$ac_cv_exeext
2854 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2855 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2857 rm -f conftest.
$ac_ext
2858 EXEEXT
=$ac_cv_exeext
2860 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2861 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2862 if test "${ac_cv_objext+set}" = set; then
2863 echo $ECHO_N "(cached) $ECHO_C" >&6
2865 cat >conftest.
$ac_ext <<_ACEOF
2868 cat confdefs.h
>>conftest.
$ac_ext
2869 cat >>conftest.
$ac_ext <<_ACEOF
2870 /* end confdefs.h. */
2880 rm -f conftest.o conftest.obj
2881 if { (ac_try
="$ac_compile"
2883 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2884 *) ac_try_echo=$ac_try;;
2886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2887 (eval "$ac_compile") 2>&5
2889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2890 (exit $ac_status); }; then
2891 for ac_file in conftest.o conftest.obj conftest.*; do
2892 test -f "$ac_file" || continue;
2894 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2895 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2900 echo "$as_me: failed program was:" >&5
2901 sed 's/^/| /' conftest.$ac_ext >&5
2903 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2904 See \`config.log
' for more details." >&5
2905 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2906 See \`config.log' for more details.
" >&2;}
2907 { (exit 1); exit 1; }; }
2910 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2912 { echo "$as_me:$LINENO: result
: $ac_cv_objext" >&5
2913 echo "${ECHO_T}$ac_cv_objext" >&6; }
2914 OBJEXT=$ac_cv_objext
2916 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler
" >&5
2917 echo $ECHO_N "checking whether we are using the GNU C compiler...
$ECHO_C" >&6; }
2918 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2919 echo $ECHO_N "(cached
) $ECHO_C" >&6
2921 cat >conftest.$ac_ext <<_ACEOF
2924 cat confdefs.h >>conftest.$ac_ext
2925 cat >>conftest.$ac_ext <<_ACEOF
2926 /* end confdefs.h. */
2939 rm -f conftest.$ac_objext
2940 if { (ac_try="$ac_compile"
2942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2943 *) ac_try_echo=$ac_try;;
2945 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2946 (eval "$ac_compile") 2>conftest.er1
2948 grep -v '^ *+' conftest.er1 >conftest.err
2950 cat conftest.err >&5
2951 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2952 (exit $ac_status); } && {
2953 test -z "$ac_c_werror_flag" ||
2954 test ! -s conftest.err
2955 } && test -s conftest.$ac_objext; then
2958 echo "$as_me: failed program was
:" >&5
2959 sed 's/^/| /' conftest.$ac_ext >&5
2964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2965 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2968 { echo "$as_me:$LINENO: result
: $ac_cv_c_compiler_gnu" >&5
2969 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2970 GCC=`test $ac_compiler_gnu = yes && echo yes`
2971 ac_test_CFLAGS=${CFLAGS+set}
2972 ac_save_CFLAGS=$CFLAGS
2973 { echo "$as_me:$LINENO: checking whether
$CC accepts
-g" >&5
2974 echo $ECHO_N "checking whether
$CC accepts
-g...
$ECHO_C" >&6; }
2975 if test "${ac_cv_prog_cc_g+set}" = set; then
2976 echo $ECHO_N "(cached
) $ECHO_C" >&6
2978 ac_save_c_werror_flag=$ac_c_werror_flag
2979 ac_c_werror_flag=yes
2982 cat >conftest.$ac_ext <<_ACEOF
2985 cat confdefs.h >>conftest.$ac_ext
2986 cat >>conftest.$ac_ext <<_ACEOF
2987 /* end confdefs.h. */
2997 rm -f conftest.$ac_objext
2998 if { (ac_try="$ac_compile"
3000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3001 *) ac_try_echo=$ac_try;;
3003 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3004 (eval "$ac_compile") 2>conftest.er1
3006 grep -v '^ *+' conftest.er1 >conftest.err
3008 cat conftest.err >&5
3009 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3010 (exit $ac_status); } && {
3011 test -z "$ac_c_werror_flag" ||
3012 test ! -s conftest.err
3013 } && test -s conftest.$ac_objext; then
3016 echo "$as_me: failed program was
:" >&5
3017 sed 's/^/| /' conftest.$ac_ext >&5
3020 cat >conftest.$ac_ext <<_ACEOF
3023 cat confdefs.h >>conftest.$ac_ext
3024 cat >>conftest.$ac_ext <<_ACEOF
3025 /* end confdefs.h. */
3035 rm -f conftest.$ac_objext
3036 if { (ac_try="$ac_compile"
3038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3039 *) ac_try_echo=$ac_try;;
3041 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3042 (eval "$ac_compile") 2>conftest.er1
3044 grep -v '^ *+' conftest.er1 >conftest.err
3046 cat conftest.err >&5
3047 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3048 (exit $ac_status); } && {
3049 test -z "$ac_c_werror_flag" ||
3050 test ! -s conftest.err
3051 } && test -s conftest.$ac_objext; then
3054 echo "$as_me: failed program was
:" >&5
3055 sed 's/^/| /' conftest.$ac_ext >&5
3057 ac_c_werror_flag=$ac_save_c_werror_flag
3059 cat >conftest.$ac_ext <<_ACEOF
3062 cat confdefs.h >>conftest.$ac_ext
3063 cat >>conftest.$ac_ext <<_ACEOF
3064 /* end confdefs.h. */
3074 rm -f conftest.$ac_objext
3075 if { (ac_try="$ac_compile"
3077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3078 *) ac_try_echo=$ac_try;;
3080 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3081 (eval "$ac_compile") 2>conftest.er1
3083 grep -v '^ *+' conftest.er1 >conftest.err
3085 cat conftest.err >&5
3086 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3087 (exit $ac_status); } && {
3088 test -z "$ac_c_werror_flag" ||
3089 test ! -s conftest.err
3090 } && test -s conftest.$ac_objext; then
3093 echo "$as_me: failed program was
:" >&5
3094 sed 's/^/| /' conftest.$ac_ext >&5
3099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3106 ac_c_werror_flag=$ac_save_c_werror_flag
3108 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_g" >&5
3109 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3110 if test "$ac_test_CFLAGS" = set; then
3111 CFLAGS=$ac_save_CFLAGS
3112 elif test $ac_cv_prog_cc_g = yes; then
3113 if test "$GCC" = yes; then
3119 if test "$GCC" = yes; then
3125 { echo "$as_me:$LINENO: checking
for $CC option to accept ISO C89
" >&5
3126 echo $ECHO_N "checking
for $CC option to accept ISO C89...
$ECHO_C" >&6; }
3127 if test "${ac_cv_prog_cc_c89+set}" = set; then
3128 echo $ECHO_N "(cached
) $ECHO_C" >&6
3130 ac_cv_prog_cc_c89=no
3132 cat >conftest.$ac_ext <<_ACEOF
3135 cat confdefs.h >>conftest.$ac_ext
3136 cat >>conftest.$ac_ext <<_ACEOF
3137 /* end confdefs.h. */
3140 #include <sys/types.h>
3141 #include <sys/stat.h>
3142 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3143 struct buf { int x; };
3144 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3145 static char *e (p, i)
3151 static char *f (char * (*g) (char **, int), char **p, ...)
3156 s = g (p, va_arg (v,int));
3161 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3162 function prototypes and stuff, but not '\xHH' hex character constants.
3163 These don't provoke an error unfortunately, instead are silently treated
3164 as 'x'. The following induces an error, until -std is added to get
3165 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3166 array size at least. It's necessary to write '\x00'==0 to get something
3167 that's true only with -std. */
3168 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3170 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3171 inside strings and character constants. */
3173 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3175 int test (int i, double x);
3176 struct s1 {int (*f) (int a);};
3177 struct s2 {int (*f) (double a);};
3178 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3184 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3189 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3190 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3192 CC="$ac_save_CC $ac_arg"
3193 rm -f conftest.$ac_objext
3194 if { (ac_try="$ac_compile"
3196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3197 *) ac_try_echo=$ac_try;;
3199 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3200 (eval "$ac_compile") 2>conftest.er1
3202 grep -v '^ *+' conftest.er1 >conftest.err
3204 cat conftest.err >&5
3205 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3206 (exit $ac_status); } && {
3207 test -z "$ac_c_werror_flag" ||
3208 test ! -s conftest.err
3209 } && test -s conftest.$ac_objext; then
3210 ac_cv_prog_cc_c89=$ac_arg
3212 echo "$as_me: failed program was
:" >&5
3213 sed 's/^/| /' conftest.$ac_ext >&5
3218 rm -f core conftest.err conftest.$ac_objext
3219 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
3221 rm -f conftest.$ac_ext
3226 case "x
$ac_cv_prog_cc_c89" in
3228 { echo "$as_me:$LINENO: result
: none needed
" >&5
3229 echo "${ECHO_T}none needed
" >&6; } ;;
3231 { echo "$as_me:$LINENO: result
: unsupported
" >&5
3232 echo "${ECHO_T}unsupported
" >&6; } ;;
3234 CC="$CC $ac_cv_prog_cc_c89"
3235 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_c89" >&5
3236 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3241 ac_cpp='$CPP $CPPFLAGS'
3242 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3243 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3244 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3247 test "x
$GCC" = xyes || { { echo "$as_me:$LINENO: error
: GCC is required
" >&5
3248 echo "$as_me: error
: GCC is required
" >&2;}
3249 { (exit 1); exit 1; }; }
3252 cat >>confdefs.h <<\_ACEOF
3253 #define _GNU_SOURCE 1
3258 # Check whether --enable-largefile was given.
3259 if test "${enable_largefile+set}" = set; then
3260 enableval=$enable_largefile;
3263 if test "$enable_largefile" != no; then
3265 { echo "$as_me:$LINENO: checking
for special C compiler options needed
for large files
" >&5
3266 echo $ECHO_N "checking
for special C compiler options needed
for large files...
$ECHO_C" >&6; }
3267 if test "${ac_cv_sys_largefile_CC+set}" = set; then
3268 echo $ECHO_N "(cached
) $ECHO_C" >&6
3270 ac_cv_sys_largefile_CC=no
3271 if test "$GCC" != yes; then
3274 # IRIX 6.2 and later do not support large files by default,
3275 # so use the C compiler's -n32 option if that helps.
3276 cat >conftest.$ac_ext <<_ACEOF
3279 cat confdefs.h >>conftest.$ac_ext
3280 cat >>conftest.$ac_ext <<_ACEOF
3281 /* end confdefs.h. */
3282 #include <sys/types.h>
3283 /* Check that off_t can represent 2**63 - 1 correctly.
3284 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3285 since some C++ compilers masquerading as C compilers
3286 incorrectly reject 9223372036854775807. */
3287 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3288 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3289 && LARGE_OFF_T % 2147483647 == 1)
3299 rm -f conftest.$ac_objext
3300 if { (ac_try="$ac_compile"
3302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3303 *) ac_try_echo=$ac_try;;
3305 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3306 (eval "$ac_compile") 2>conftest.er1
3308 grep -v '^ *+' conftest.er1 >conftest.err
3310 cat conftest.err >&5
3311 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3312 (exit $ac_status); } && {
3313 test -z "$ac_c_werror_flag" ||
3314 test ! -s conftest.err
3315 } && test -s conftest.$ac_objext; then
3318 echo "$as_me: failed program was
:" >&5
3319 sed 's/^/| /' conftest.$ac_ext >&5
3324 rm -f core conftest.err conftest.$ac_objext
3326 rm -f conftest.$ac_objext
3327 if { (ac_try="$ac_compile"
3329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3330 *) ac_try_echo=$ac_try;;
3332 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3333 (eval "$ac_compile") 2>conftest.er1
3335 grep -v '^ *+' conftest.er1 >conftest.err
3337 cat conftest.err >&5
3338 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3339 (exit $ac_status); } && {
3340 test -z "$ac_c_werror_flag" ||
3341 test ! -s conftest.err
3342 } && test -s conftest.$ac_objext; then
3343 ac_cv_sys_largefile_CC=' -n32'; break
3345 echo "$as_me: failed program was
:" >&5
3346 sed 's/^/| /' conftest.$ac_ext >&5
3351 rm -f core conftest.err conftest.$ac_objext
3355 rm -f conftest.$ac_ext
3358 { echo "$as_me:$LINENO: result
: $ac_cv_sys_largefile_CC" >&5
3359 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
3360 if test "$ac_cv_sys_largefile_CC" != no; then
3361 CC=$CC$ac_cv_sys_largefile_CC
3364 { echo "$as_me:$LINENO: checking
for _FILE_OFFSET_BITS value needed
for large files
" >&5
3365 echo $ECHO_N "checking
for _FILE_OFFSET_BITS value needed
for large files...
$ECHO_C" >&6; }
3366 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
3367 echo $ECHO_N "(cached
) $ECHO_C" >&6
3370 cat >conftest.$ac_ext <<_ACEOF
3373 cat confdefs.h >>conftest.$ac_ext
3374 cat >>conftest.$ac_ext <<_ACEOF
3375 /* end confdefs.h. */
3376 #include <sys/types.h>
3377 /* Check that off_t can represent 2**63 - 1 correctly.
3378 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3379 since some C++ compilers masquerading as C compilers
3380 incorrectly reject 9223372036854775807. */
3381 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3382 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3383 && LARGE_OFF_T % 2147483647 == 1)
3393 rm -f conftest.$ac_objext
3394 if { (ac_try="$ac_compile"
3396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3397 *) ac_try_echo=$ac_try;;
3399 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3400 (eval "$ac_compile") 2>conftest.er1
3402 grep -v '^ *+' conftest.er1 >conftest.err
3404 cat conftest.err >&5
3405 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3406 (exit $ac_status); } && {
3407 test -z "$ac_c_werror_flag" ||
3408 test ! -s conftest.err
3409 } && test -s conftest.$ac_objext; then
3410 ac_cv_sys_file_offset_bits=no; break
3412 echo "$as_me: failed program was
:" >&5
3413 sed 's/^/| /' conftest.$ac_ext >&5
3418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3419 cat >conftest.$ac_ext <<_ACEOF
3422 cat confdefs.h >>conftest.$ac_ext
3423 cat >>conftest.$ac_ext <<_ACEOF
3424 /* end confdefs.h. */
3425 #define _FILE_OFFSET_BITS 64
3426 #include <sys/types.h>
3427 /* Check that off_t can represent 2**63 - 1 correctly.
3428 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3429 since some C++ compilers masquerading as C compilers
3430 incorrectly reject 9223372036854775807. */
3431 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3432 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3433 && LARGE_OFF_T % 2147483647 == 1)
3443 rm -f conftest.$ac_objext
3444 if { (ac_try="$ac_compile"
3446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3447 *) ac_try_echo=$ac_try;;
3449 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3450 (eval "$ac_compile") 2>conftest.er1
3452 grep -v '^ *+' conftest.er1 >conftest.err
3454 cat conftest.err >&5
3455 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3456 (exit $ac_status); } && {
3457 test -z "$ac_c_werror_flag" ||
3458 test ! -s conftest.err
3459 } && test -s conftest.$ac_objext; then
3460 ac_cv_sys_file_offset_bits=64; break
3462 echo "$as_me: failed program was
:" >&5
3463 sed 's/^/| /' conftest.$ac_ext >&5
3468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3469 ac_cv_sys_file_offset_bits=unknown
3473 { echo "$as_me:$LINENO: result
: $ac_cv_sys_file_offset_bits" >&5
3474 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
3475 case $ac_cv_sys_file_offset_bits in #(
3478 cat >>confdefs.h <<_ACEOF
3479 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
3484 if test $ac_cv_sys_file_offset_bits = unknown; then
3485 { echo "$as_me:$LINENO: checking
for _LARGE_FILES value needed
for large files
" >&5
3486 echo $ECHO_N "checking
for _LARGE_FILES value needed
for large files...
$ECHO_C" >&6; }
3487 if test "${ac_cv_sys_large_files+set}" = set; then
3488 echo $ECHO_N "(cached
) $ECHO_C" >&6
3491 cat >conftest.$ac_ext <<_ACEOF
3494 cat confdefs.h >>conftest.$ac_ext
3495 cat >>conftest.$ac_ext <<_ACEOF
3496 /* end confdefs.h. */
3497 #include <sys/types.h>
3498 /* Check that off_t can represent 2**63 - 1 correctly.
3499 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3500 since some C++ compilers masquerading as C compilers
3501 incorrectly reject 9223372036854775807. */
3502 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3503 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3504 && LARGE_OFF_T % 2147483647 == 1)
3514 rm -f conftest.$ac_objext
3515 if { (ac_try="$ac_compile"
3517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3518 *) ac_try_echo=$ac_try;;
3520 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3521 (eval "$ac_compile") 2>conftest.er1
3523 grep -v '^ *+' conftest.er1 >conftest.err
3525 cat conftest.err >&5
3526 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3527 (exit $ac_status); } && {
3528 test -z "$ac_c_werror_flag" ||
3529 test ! -s conftest.err
3530 } && test -s conftest.$ac_objext; then
3531 ac_cv_sys_large_files=no; break
3533 echo "$as_me: failed program was
:" >&5
3534 sed 's/^/| /' conftest.$ac_ext >&5
3539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3540 cat >conftest.$ac_ext <<_ACEOF
3543 cat confdefs.h >>conftest.$ac_ext
3544 cat >>conftest.$ac_ext <<_ACEOF
3545 /* end confdefs.h. */
3546 #define _LARGE_FILES 1
3547 #include <sys/types.h>
3548 /* Check that off_t can represent 2**63 - 1 correctly.
3549 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3550 since some C++ compilers masquerading as C compilers
3551 incorrectly reject 9223372036854775807. */
3552 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3553 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3554 && LARGE_OFF_T % 2147483647 == 1)
3564 rm -f conftest.$ac_objext
3565 if { (ac_try="$ac_compile"
3567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3568 *) ac_try_echo=$ac_try;;
3570 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3571 (eval "$ac_compile") 2>conftest.er1
3573 grep -v '^ *+' conftest.er1 >conftest.err
3575 cat conftest.err >&5
3576 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3577 (exit $ac_status); } && {
3578 test -z "$ac_c_werror_flag" ||
3579 test ! -s conftest.err
3580 } && test -s conftest.$ac_objext; then
3581 ac_cv_sys_large_files=1; break
3583 echo "$as_me: failed program was
:" >&5
3584 sed 's/^/| /' conftest.$ac_ext >&5
3589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3590 ac_cv_sys_large_files=unknown
3594 { echo "$as_me:$LINENO: result
: $ac_cv_sys_large_files" >&5
3595 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
3596 case $ac_cv_sys_large_files in #(
3599 cat >>confdefs.h <<_ACEOF
3600 #define _LARGE_FILES $ac_cv_sys_large_files
3609 # Identify characteristics of the host architecture.
3611 ac_cpp='$CPP $CPPFLAGS'
3612 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3613 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3614 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3615 { echo "$as_me:$LINENO: checking how to run the C preprocessor
" >&5
3616 echo $ECHO_N "checking how to run the C preprocessor...
$ECHO_C" >&6; }
3617 # On Suns, sometimes $CPP names a directory.
3618 if test -n "$CPP" && test -d "$CPP"; then
3621 if test -z "$CPP"; then
3622 if test "${ac_cv_prog_CPP+set}" = set; then
3623 echo $ECHO_N "(cached
) $ECHO_C" >&6
3625 # Double quotes because CPP needs to be expanded
3626 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
3629 for ac_c_preproc_warn_flag in '' yes
3631 # Use a header file that comes with gcc, so configuring glibc
3632 # with a fresh cross-compiler works.
3633 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3634 # <limits.h> exists even on freestanding compilers.
3635 # On the NeXT, cc -E runs the code through the compiler's parser,
3636 # not just through cpp. "Syntax error
" is here to catch this case.
3637 cat >conftest.$ac_ext <<_ACEOF
3640 cat confdefs.h >>conftest.$ac_ext
3641 cat >>conftest.$ac_ext <<_ACEOF
3642 /* end confdefs.h. */
3644 # include <limits.h>
3646 # include <assert.h>
3650 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3653 *) ac_try_echo=$ac_try;;
3655 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3656 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3658 grep -v '^ *+' conftest.er1 >conftest.err
3660 cat conftest.err >&5
3661 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3662 (exit $ac_status); } >/dev/null && {
3663 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3664 test ! -s conftest.err
3668 echo "$as_me: failed program was
:" >&5
3669 sed 's/^/| /' conftest.$ac_ext >&5
3671 # Broken: fails on valid input.
3675 rm -f conftest.err conftest.$ac_ext
3677 # OK, works on sane cases. Now check whether nonexistent headers
3678 # can be detected and how.
3679 cat >conftest.$ac_ext <<_ACEOF
3682 cat confdefs.h >>conftest.$ac_ext
3683 cat >>conftest.$ac_ext <<_ACEOF
3684 /* end confdefs.h. */
3685 #include <ac_nonexistent.h>
3687 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3690 *) ac_try_echo=$ac_try;;
3692 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3693 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3695 grep -v '^ *+' conftest.er1 >conftest.err
3697 cat conftest.err >&5
3698 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3699 (exit $ac_status); } >/dev/null && {
3700 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3701 test ! -s conftest.err
3703 # Broken: success on invalid input.
3706 echo "$as_me: failed program was
:" >&5
3707 sed 's/^/| /' conftest.$ac_ext >&5
3709 # Passes both tests.
3714 rm -f conftest.err conftest.$ac_ext
3717 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3718 rm -f conftest.err conftest.$ac_ext
3719 if $ac_preproc_ok; then
3731 { echo "$as_me:$LINENO: result
: $CPP" >&5
3732 echo "${ECHO_T}$CPP" >&6; }
3734 for ac_c_preproc_warn_flag in '' yes
3736 # Use a header file that comes with gcc, so configuring glibc
3737 # with a fresh cross-compiler works.
3738 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3739 # <limits.h> exists even on freestanding compilers.
3740 # On the NeXT, cc -E runs the code through the compiler's parser,
3741 # not just through cpp. "Syntax error
" is here to catch this case.
3742 cat >conftest.$ac_ext <<_ACEOF
3745 cat confdefs.h >>conftest.$ac_ext
3746 cat >>conftest.$ac_ext <<_ACEOF
3747 /* end confdefs.h. */
3749 # include <limits.h>
3751 # include <assert.h>
3755 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3758 *) ac_try_echo=$ac_try;;
3760 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3761 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3763 grep -v '^ *+' conftest.er1 >conftest.err
3765 cat conftest.err >&5
3766 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3767 (exit $ac_status); } >/dev/null && {
3768 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3769 test ! -s conftest.err
3773 echo "$as_me: failed program was
:" >&5
3774 sed 's/^/| /' conftest.$ac_ext >&5
3776 # Broken: fails on valid input.
3780 rm -f conftest.err conftest.$ac_ext
3782 # OK, works on sane cases. Now check whether nonexistent headers
3783 # can be detected and how.
3784 cat >conftest.$ac_ext <<_ACEOF
3787 cat confdefs.h >>conftest.$ac_ext
3788 cat >>conftest.$ac_ext <<_ACEOF
3789 /* end confdefs.h. */
3790 #include <ac_nonexistent.h>
3792 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3795 *) ac_try_echo=$ac_try;;
3797 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3798 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3800 grep -v '^ *+' conftest.er1 >conftest.err
3802 cat conftest.err >&5
3803 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3804 (exit $ac_status); } >/dev/null && {
3805 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3806 test ! -s conftest.err
3808 # Broken: success on invalid input.
3811 echo "$as_me: failed program was
:" >&5
3812 sed 's/^/| /' conftest.$ac_ext >&5
3814 # Passes both tests.
3819 rm -f conftest.err conftest.$ac_ext
3822 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3823 rm -f conftest.err conftest.$ac_ext
3824 if $ac_preproc_ok; then
3827 { { echo "$as_me:$LINENO: error
: C preprocessor
\"$CPP\" fails sanity check
3828 See \
`config.log' for more details." >&5
3829 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3830 See \`config.log
' for more details." >&2;}
3831 { (exit 1); exit 1; }; }
3835 ac_cpp='$CPP $CPPFLAGS'
3836 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
3837 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
3838 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3841 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3842 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3843 if test "${ac_cv_path_GREP+set}" = set; then
3844 echo $ECHO_N "(cached) $ECHO_C" >&6
3846 # Extract the first word of "grep ggrep" to use in msg output
3847 if test -z "$GREP"; then
3848 set dummy grep ggrep; ac_prog_name=$2
3849 if test "${ac_cv_path_GREP+set}" = set; then
3850 echo $ECHO_N "(cached) $ECHO_C" >&6
3852 ac_path_GREP_found=false
3853 # Loop through the user's path and
test for each of PROGNAME-LIST
3854 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3855 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3858 test -z "$as_dir" && as_dir
=.
3859 for ac_prog
in grep ggrep
; do
3860 for ac_exec_ext
in '' $ac_executable_extensions; do
3861 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3862 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
3863 # Check for GNU ac_path_GREP and select it if it is found.
3864 # Check for GNU $ac_path_GREP
3865 case `"$ac_path_GREP" --version 2>&1` in
3867 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3870 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3873 cat "conftest.in" "conftest.in" >"conftest.tmp"
3874 mv "conftest.tmp" "conftest.in"
3875 cp "conftest.in" "conftest.nl"
3876 echo 'GREP' >> "conftest.nl"
3877 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3878 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3879 ac_count
=`expr $ac_count + 1`
3880 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3881 # Best one so far, save it but keep looking for a better one
3882 ac_cv_path_GREP
="$ac_path_GREP"
3883 ac_path_GREP_max
=$ac_count
3885 # 10*(2^10) chars as input seems more than enough
3886 test $ac_count -gt 10 && break
3888 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3892 $ac_path_GREP_found && break 3
3902 GREP
="$ac_cv_path_GREP"
3903 if test -z "$GREP"; then
3904 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3905 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3906 { (exit 1); exit 1; }; }
3910 ac_cv_path_GREP
=$GREP
3915 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3916 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3917 GREP
="$ac_cv_path_GREP"
3920 { echo "$as_me:$LINENO: checking for egrep" >&5
3921 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3922 if test "${ac_cv_path_EGREP+set}" = set; then
3923 echo $ECHO_N "(cached) $ECHO_C" >&6
3925 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
3926 then ac_cv_path_EGREP
="$GREP -E"
3928 # Extract the first word of "egrep" to use in msg output
3929 if test -z "$EGREP"; then
3930 set dummy
egrep; ac_prog_name
=$2
3931 if test "${ac_cv_path_EGREP+set}" = set; then
3932 echo $ECHO_N "(cached) $ECHO_C" >&6
3934 ac_path_EGREP_found
=false
3935 # Loop through the user's path and test for each of PROGNAME-LIST
3936 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3937 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3940 test -z "$as_dir" && as_dir
=.
3941 for ac_prog
in egrep; do
3942 for ac_exec_ext
in '' $ac_executable_extensions; do
3943 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
3944 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
3945 # Check for GNU ac_path_EGREP and select it if it is found.
3946 # Check for GNU $ac_path_EGREP
3947 case `"$ac_path_EGREP" --version 2>&1` in
3949 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
3952 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3955 cat "conftest.in" "conftest.in" >"conftest.tmp"
3956 mv "conftest.tmp" "conftest.in"
3957 cp "conftest.in" "conftest.nl"
3958 echo 'EGREP' >> "conftest.nl"
3959 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3960 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3961 ac_count
=`expr $ac_count + 1`
3962 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3963 # Best one so far, save it but keep looking for a better one
3964 ac_cv_path_EGREP
="$ac_path_EGREP"
3965 ac_path_EGREP_max
=$ac_count
3967 # 10*(2^10) chars as input seems more than enough
3968 test $ac_count -gt 10 && break
3970 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3974 $ac_path_EGREP_found && break 3
3984 EGREP
="$ac_cv_path_EGREP"
3985 if test -z "$EGREP"; then
3986 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3987 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3988 { (exit 1); exit 1; }; }
3992 ac_cv_path_EGREP
=$EGREP
3998 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3999 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4000 EGREP
="$ac_cv_path_EGREP"
4003 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4004 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4005 if test "${ac_cv_header_stdc+set}" = set; then
4006 echo $ECHO_N "(cached) $ECHO_C" >&6
4008 cat >conftest.
$ac_ext <<_ACEOF
4011 cat confdefs.h
>>conftest.
$ac_ext
4012 cat >>conftest.
$ac_ext <<_ACEOF
4013 /* end confdefs.h. */
4027 rm -f conftest.
$ac_objext
4028 if { (ac_try
="$ac_compile"
4030 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4031 *) ac_try_echo=$ac_try;;
4033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4034 (eval "$ac_compile") 2>conftest.er1
4036 grep -v '^ *+' conftest.er1 >conftest.err
4038 cat conftest.err >&5
4039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4040 (exit $ac_status); } && {
4041 test -z "$ac_c_werror_flag" ||
4042 test ! -s conftest.err
4043 } && test -s conftest.$ac_objext; then
4044 ac_cv_header_stdc=yes
4046 echo "$as_me: failed program was:" >&5
4047 sed 's/^/| /' conftest.$ac_ext >&5
4049 ac_cv_header_stdc=no
4052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4054 if test $ac_cv_header_stdc = yes; then
4055 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4056 cat >conftest.$ac_ext <<_ACEOF
4059 cat confdefs.h >>conftest.$ac_ext
4060 cat >>conftest.$ac_ext <<_ACEOF
4061 /* end confdefs.h. */
4065 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4066 $EGREP "memchr" >/dev/null 2>&1; then
4069 ac_cv_header_stdc=no
4075 if test $ac_cv_header_stdc = yes; then
4076 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4077 cat >conftest.$ac_ext <<_ACEOF
4080 cat confdefs.h >>conftest.$ac_ext
4081 cat >>conftest.$ac_ext <<_ACEOF
4082 /* end confdefs.h. */
4086 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4087 $EGREP "free" >/dev/null 2>&1; then
4090 ac_cv_header_stdc=no
4096 if test $ac_cv_header_stdc = yes; then
4097 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4098 if test "$cross_compiling" = yes; then
4101 cat >conftest.$ac_ext <<_ACEOF
4104 cat confdefs.h >>conftest.$ac_ext
4105 cat >>conftest.$ac_ext <<_ACEOF
4106 /* end confdefs.h. */
4109 #if ((' ' & 0x0FF) == 0x020)
4110 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4111 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4113 # define ISLOWER(c) \
4114 (('a' <= (c) && (c) <= 'i') \
4115 || ('j' <= (c) && (c) <= 'r') \
4116 || ('s' <= (c) && (c) <= 'z'))
4117 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4120 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4125 for (i = 0; i < 256; i++)
4126 if (XOR (islower (i), ISLOWER (i))
4127 || toupper (i) != TOUPPER (i))
4132 rm -f conftest$ac_exeext
4133 if { (ac_try="$ac_link"
4135 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4136 *) ac_try_echo
=$ac_try;;
4138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4139 (eval "$ac_link") 2>&5
4141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4142 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4143 { (case "(($ac_try" in
4144 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4145 *) ac_try_echo=$ac_try;;
4147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4148 (eval "$ac_try") 2>&5
4150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4151 (exit $ac_status); }; }; then
4154 echo "$as_me: program exited with status $ac_status" >&5
4155 echo "$as_me: failed program was:" >&5
4156 sed 's/^/| /' conftest.$ac_ext >&5
4159 ac_cv_header_stdc=no
4161 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4167 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4168 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4169 if test $ac_cv_header_stdc = yes; then
4171 cat >>confdefs.h <<\_ACEOF
4172 #define STDC_HEADERS 1
4177 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4187 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4188 inttypes.h stdint.h unistd.h
4190 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
4191 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4192 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4193 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4194 echo $ECHO_N "(cached) $ECHO_C" >&6
4196 cat >conftest.$ac_ext <<_ACEOF
4199 cat confdefs.h >>conftest.$ac_ext
4200 cat >>conftest.$ac_ext <<_ACEOF
4201 /* end confdefs.h. */
4202 $ac_includes_default
4204 #include <$ac_header>
4206 rm -f conftest.$ac_objext
4207 if { (ac_try="$ac_compile"
4209 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4210 *) ac_try_echo
=$ac_try;;
4212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4213 (eval "$ac_compile") 2>conftest.er1
4215 grep -v '^ *+' conftest.er1
>conftest.err
4217 cat conftest.err
>&5
4218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4219 (exit $ac_status); } && {
4220 test -z "$ac_c_werror_flag" ||
4221 test ! -s conftest.err
4222 } && test -s conftest.
$ac_objext; then
4223 eval "$as_ac_Header=yes"
4225 echo "$as_me: failed program was:" >&5
4226 sed 's/^/| /' conftest.
$ac_ext >&5
4228 eval "$as_ac_Header=no"
4231 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4233 ac_res
=`eval echo '${'$as_ac_Header'}'`
4234 { echo "$as_me:$LINENO: result: $ac_res" >&5
4235 echo "${ECHO_T}$ac_res" >&6; }
4236 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4237 cat >>confdefs.h
<<_ACEOF
4238 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4246 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4247 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4248 if test "${ac_cv_c_bigendian+set}" = set; then
4249 echo $ECHO_N "(cached) $ECHO_C" >&6
4251 # See if sys/param.h defines the BYTE_ORDER macro.
4252 cat >conftest.
$ac_ext <<_ACEOF
4255 cat confdefs.h
>>conftest.
$ac_ext
4256 cat >>conftest.
$ac_ext <<_ACEOF
4257 /* end confdefs.h. */
4258 #include <sys/types.h>
4259 #include <sys/param.h>
4264 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
4265 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
4273 rm -f conftest.
$ac_objext
4274 if { (ac_try
="$ac_compile"
4276 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4277 *) ac_try_echo=$ac_try;;
4279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4280 (eval "$ac_compile") 2>conftest.er1
4282 grep -v '^ *+' conftest.er1 >conftest.err
4284 cat conftest.err >&5
4285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4286 (exit $ac_status); } && {
4287 test -z "$ac_c_werror_flag" ||
4288 test ! -s conftest.err
4289 } && test -s conftest.$ac_objext; then
4290 # It does; now see whether it defined to BIG_ENDIAN or not.
4291 cat >conftest.$ac_ext <<_ACEOF
4294 cat confdefs.h >>conftest.$ac_ext
4295 cat >>conftest.$ac_ext <<_ACEOF
4296 /* end confdefs.h. */
4297 #include <sys/types.h>
4298 #include <sys/param.h>
4303 #if BYTE_ORDER != BIG_ENDIAN
4311 rm -f conftest.$ac_objext
4312 if { (ac_try="$ac_compile"
4314 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4315 *) ac_try_echo
=$ac_try;;
4317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4318 (eval "$ac_compile") 2>conftest.er1
4320 grep -v '^ *+' conftest.er1
>conftest.err
4322 cat conftest.err
>&5
4323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4324 (exit $ac_status); } && {
4325 test -z "$ac_c_werror_flag" ||
4326 test ! -s conftest.err
4327 } && test -s conftest.
$ac_objext; then
4328 ac_cv_c_bigendian
=yes
4330 echo "$as_me: failed program was:" >&5
4331 sed 's/^/| /' conftest.
$ac_ext >&5
4333 ac_cv_c_bigendian
=no
4336 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4338 echo "$as_me: failed program was:" >&5
4339 sed 's/^/| /' conftest.
$ac_ext >&5
4341 # It does not; compile a test program.
4342 if test "$cross_compiling" = yes; then
4343 # try to guess the endianness by grepping values into an object file
4344 ac_cv_c_bigendian
=unknown
4345 cat >conftest.
$ac_ext <<_ACEOF
4348 cat confdefs.h
>>conftest.
$ac_ext
4349 cat >>conftest.
$ac_ext <<_ACEOF
4350 /* end confdefs.h. */
4351 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4352 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4353 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4354 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4355 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4356 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4360 _ascii (); _ebcdic ();
4365 rm -f conftest.
$ac_objext
4366 if { (ac_try
="$ac_compile"
4368 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4369 *) ac_try_echo=$ac_try;;
4371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4372 (eval "$ac_compile") 2>conftest.er1
4374 grep -v '^ *+' conftest.er1 >conftest.err
4376 cat conftest.err >&5
4377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4378 (exit $ac_status); } && {
4379 test -z "$ac_c_werror_flag" ||
4380 test ! -s conftest.err
4381 } && test -s conftest.$ac_objext; then
4382 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4383 ac_cv_c_bigendian=yes
4385 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4386 if test "$ac_cv_c_bigendian" = unknown; then
4387 ac_cv_c_bigendian=no
4389 # finding both strings is unlikely to happen, but who knows?
4390 ac_cv_c_bigendian=unknown
4394 echo "$as_me: failed program was:" >&5
4395 sed 's/^/| /' conftest.$ac_ext >&5
4400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4402 cat >conftest.$ac_ext <<_ACEOF
4405 cat confdefs.h >>conftest.$ac_ext
4406 cat >>conftest.$ac_ext <<_ACEOF
4407 /* end confdefs.h. */
4408 $ac_includes_default
4413 /* Are we little or big endian? From Harbison&Steele. */
4417 char c[sizeof (long int)];
4420 return u.c[sizeof (long int) - 1] == 1;
4426 rm -f conftest$ac_exeext
4427 if { (ac_try="$ac_link"
4429 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4430 *) ac_try_echo
=$ac_try;;
4432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4433 (eval "$ac_link") 2>&5
4435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4436 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4437 { (case "(($ac_try" in
4438 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4439 *) ac_try_echo=$ac_try;;
4441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4442 (eval "$ac_try") 2>&5
4444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4445 (exit $ac_status); }; }; then
4446 ac_cv_c_bigendian=no
4448 echo "$as_me: program exited with status $ac_status" >&5
4449 echo "$as_me: failed program was:" >&5
4450 sed 's/^/| /' conftest.$ac_ext >&5
4453 ac_cv_c_bigendian=yes
4455 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4463 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4464 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4465 case $ac_cv_c_bigendian in
4468 cat >>confdefs.h <<\_ACEOF
4469 #define WORDS_BIGENDIAN 1
4475 { { echo "$as_me:$LINENO: error: unknown endianness
4476 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4477 echo "$as_me: error: unknown endianness
4478 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4479 { (exit 1); exit 1; }; } ;;
4482 { echo "$as_me:$LINENO: checking for void *" >&5
4483 echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
4484 if test "${ac_cv_type_void_p+set}" = set; then
4485 echo $ECHO_N "(cached) $ECHO_C" >&6
4487 cat >conftest.$ac_ext <<_ACEOF
4490 cat confdefs.h >>conftest.$ac_ext
4491 cat >>conftest.$ac_ext <<_ACEOF
4492 /* end confdefs.h. */
4493 $ac_includes_default
4494 typedef void * ac__type_new_;
4498 if ((ac__type_new_ *) 0)
4500 if (sizeof (ac__type_new_))
4506 rm -f conftest.$ac_objext
4507 if { (ac_try="$ac_compile"
4509 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4510 *) ac_try_echo
=$ac_try;;
4512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4513 (eval "$ac_compile") 2>conftest.er1
4515 grep -v '^ *+' conftest.er1
>conftest.err
4517 cat conftest.err
>&5
4518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4519 (exit $ac_status); } && {
4520 test -z "$ac_c_werror_flag" ||
4521 test ! -s conftest.err
4522 } && test -s conftest.
$ac_objext; then
4523 ac_cv_type_void_p
=yes
4525 echo "$as_me: failed program was:" >&5
4526 sed 's/^/| /' conftest.
$ac_ext >&5
4528 ac_cv_type_void_p
=no
4531 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4533 { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
4534 echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
4536 # The cast to long int works around a bug in the HP C Compiler
4537 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4538 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4539 # This bug is HP SR number 8606223364.
4540 { echo "$as_me:$LINENO: checking size of void *" >&5
4541 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
4542 if test "${ac_cv_sizeof_void_p+set}" = set; then
4543 echo $ECHO_N "(cached) $ECHO_C" >&6
4545 if test "$cross_compiling" = yes; then
4546 # Depending upon the size, compute the lo and hi bounds.
4547 cat >conftest.
$ac_ext <<_ACEOF
4550 cat confdefs.h
>>conftest.
$ac_ext
4551 cat >>conftest.
$ac_ext <<_ACEOF
4552 /* end confdefs.h. */
4553 $ac_includes_default
4554 typedef void * ac__type_sizeof_;
4558 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
4565 rm -f conftest.
$ac_objext
4566 if { (ac_try
="$ac_compile"
4568 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4569 *) ac_try_echo=$ac_try;;
4571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4572 (eval "$ac_compile") 2>conftest.er1
4574 grep -v '^ *+' conftest.er1 >conftest.err
4576 cat conftest.err >&5
4577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4578 (exit $ac_status); } && {
4579 test -z "$ac_c_werror_flag" ||
4580 test ! -s conftest.err
4581 } && test -s conftest.$ac_objext; then
4584 cat >conftest.$ac_ext <<_ACEOF
4587 cat confdefs.h >>conftest.$ac_ext
4588 cat >>conftest.$ac_ext <<_ACEOF
4589 /* end confdefs.h. */
4590 $ac_includes_default
4591 typedef void * ac__type_sizeof_;
4595 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
4602 rm -f conftest.$ac_objext
4603 if { (ac_try="$ac_compile"
4605 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4606 *) ac_try_echo
=$ac_try;;
4608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4609 (eval "$ac_compile") 2>conftest.er1
4611 grep -v '^ *+' conftest.er1
>conftest.err
4613 cat conftest.err
>&5
4614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4615 (exit $ac_status); } && {
4616 test -z "$ac_c_werror_flag" ||
4617 test ! -s conftest.err
4618 } && test -s conftest.
$ac_objext; then
4619 ac_hi
=$ac_mid; break
4621 echo "$as_me: failed program was:" >&5
4622 sed 's/^/| /' conftest.
$ac_ext >&5
4624 ac_lo
=`expr $ac_mid + 1`
4625 if test $ac_lo -le $ac_mid; then
4629 ac_mid
=`expr 2 '*' $ac_mid + 1`
4632 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4635 echo "$as_me: failed program was:" >&5
4636 sed 's/^/| /' conftest.
$ac_ext >&5
4638 cat >conftest.
$ac_ext <<_ACEOF
4641 cat confdefs.h
>>conftest.
$ac_ext
4642 cat >>conftest.
$ac_ext <<_ACEOF
4643 /* end confdefs.h. */
4644 $ac_includes_default
4645 typedef void * ac__type_sizeof_;
4649 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
4656 rm -f conftest.
$ac_objext
4657 if { (ac_try
="$ac_compile"
4659 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4660 *) ac_try_echo=$ac_try;;
4662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4663 (eval "$ac_compile") 2>conftest.er1
4665 grep -v '^ *+' conftest.er1 >conftest.err
4667 cat conftest.err >&5
4668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4669 (exit $ac_status); } && {
4670 test -z "$ac_c_werror_flag" ||
4671 test ! -s conftest.err
4672 } && test -s conftest.$ac_objext; then
4675 cat >conftest.$ac_ext <<_ACEOF
4678 cat confdefs.h >>conftest.$ac_ext
4679 cat >>conftest.$ac_ext <<_ACEOF
4680 /* end confdefs.h. */
4681 $ac_includes_default
4682 typedef void * ac__type_sizeof_;
4686 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
4693 rm -f conftest.$ac_objext
4694 if { (ac_try="$ac_compile"
4696 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4697 *) ac_try_echo
=$ac_try;;
4699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4700 (eval "$ac_compile") 2>conftest.er1
4702 grep -v '^ *+' conftest.er1
>conftest.err
4704 cat conftest.err
>&5
4705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4706 (exit $ac_status); } && {
4707 test -z "$ac_c_werror_flag" ||
4708 test ! -s conftest.err
4709 } && test -s conftest.
$ac_objext; then
4710 ac_lo
=$ac_mid; break
4712 echo "$as_me: failed program was:" >&5
4713 sed 's/^/| /' conftest.
$ac_ext >&5
4715 ac_hi
=`expr '(' $ac_mid ')' - 1`
4716 if test $ac_mid -le $ac_hi; then
4720 ac_mid
=`expr 2 '*' $ac_mid`
4723 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4726 echo "$as_me: failed program was:" >&5
4727 sed 's/^/| /' conftest.
$ac_ext >&5
4732 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4735 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4736 # Binary search between lo and hi bounds.
4737 while test "x$ac_lo" != "x$ac_hi"; do
4738 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4739 cat >conftest.
$ac_ext <<_ACEOF
4742 cat confdefs.h
>>conftest.
$ac_ext
4743 cat >>conftest.
$ac_ext <<_ACEOF
4744 /* end confdefs.h. */
4745 $ac_includes_default
4746 typedef void * ac__type_sizeof_;
4750 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
4757 rm -f conftest.
$ac_objext
4758 if { (ac_try
="$ac_compile"
4760 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4761 *) ac_try_echo=$ac_try;;
4763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4764 (eval "$ac_compile") 2>conftest.er1
4766 grep -v '^ *+' conftest.er1 >conftest.err
4768 cat conftest.err >&5
4769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4770 (exit $ac_status); } && {
4771 test -z "$ac_c_werror_flag" ||
4772 test ! -s conftest.err
4773 } && test -s conftest.$ac_objext; then
4776 echo "$as_me: failed program was:" >&5
4777 sed 's/^/| /' conftest.$ac_ext >&5
4779 ac_lo=`expr '(' $ac_mid ')' + 1`
4782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4785 ?*) ac_cv_sizeof_void_p=$ac_lo;;
4786 '') if test "$ac_cv_type_void_p" = yes; then
4787 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
4788 See \`config.log
' for more details." >&5
4789 echo "$as_me: error: cannot compute sizeof (void *)
4790 See \`config.log' for more details.
" >&2;}
4791 { (exit 77); exit 77; }; }
4793 ac_cv_sizeof_void_p=0
4797 cat >conftest.$ac_ext <<_ACEOF
4800 cat confdefs.h >>conftest.$ac_ext
4801 cat >>conftest.$ac_ext <<_ACEOF
4802 /* end confdefs.h. */
4803 $ac_includes_default
4804 typedef void * ac__type_sizeof_;
4805 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
4806 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
4813 FILE *f = fopen ("conftest.val
", "w
");
4816 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
4818 long int i = longval ();
4819 if (i != ((long int) (sizeof (ac__type_sizeof_))))
4821 fprintf (f, "%ld
\n", i);
4825 unsigned long int i = ulongval ();
4826 if (i != ((long int) (sizeof (ac__type_sizeof_))))
4828 fprintf (f, "%lu
\n", i);
4830 return ferror (f) || fclose (f) != 0;
4836 rm -f conftest$ac_exeext
4837 if { (ac_try="$ac_link"
4839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4840 *) ac_try_echo=$ac_try;;
4842 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4843 (eval "$ac_link") 2>&5
4845 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4846 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4847 { (case "(($ac_try" in
4848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4849 *) ac_try_echo=$ac_try;;
4851 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4852 (eval "$ac_try") 2>&5
4854 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4855 (exit $ac_status); }; }; then
4856 ac_cv_sizeof_void_p=`cat conftest.val`
4858 echo "$as_me: program exited with status
$ac_status" >&5
4859 echo "$as_me: failed program was
:" >&5
4860 sed 's/^/| /' conftest.$ac_ext >&5
4863 if test "$ac_cv_type_void_p" = yes; then
4864 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(void
*)
4865 See \
`config.log' for more details." >&5
4866 echo "$as_me: error: cannot compute sizeof (void *)
4867 See \`config.log
' for more details." >&2;}
4868 { (exit 77); exit 77; }; }
4870 ac_cv_sizeof_void_p=0
4873 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4877 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
4878 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
4882 cat >>confdefs.h <<_ACEOF
4883 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
4887 { echo "$as_me:$LINENO: checking for long" >&5
4888 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
4889 if test "${ac_cv_type_long+set}" = set; then
4890 echo $ECHO_N "(cached) $ECHO_C" >&6
4892 cat >conftest.$ac_ext <<_ACEOF
4895 cat confdefs.h >>conftest.$ac_ext
4896 cat >>conftest.$ac_ext <<_ACEOF
4897 /* end confdefs.h. */
4898 $ac_includes_default
4899 typedef long ac__type_new_;
4903 if ((ac__type_new_ *) 0)
4905 if (sizeof (ac__type_new_))
4911 rm -f conftest.$ac_objext
4912 if { (ac_try="$ac_compile"
4914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4915 *) ac_try_echo=$ac_try;;
4917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4918 (eval "$ac_compile") 2>conftest.er1
4920 grep -v '^
*+' conftest.er1 >conftest.err
4922 cat conftest.err >&5
4923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4924 (exit $ac_status); } && {
4925 test -z "$ac_c_werror_flag" ||
4926 test ! -s conftest.err
4927 } && test -s conftest.$ac_objext; then
4930 echo "$as_me: failed program was:" >&5
4931 sed 's
/^
/|
/' conftest.$ac_ext >&5
4936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4938 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
4939 echo "${ECHO_T}$ac_cv_type_long" >&6; }
4941 # The cast to long int works around a bug in the HP C Compiler
4942 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4943 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4944 # This bug is HP SR number 8606223364.
4945 { echo "$as_me:$LINENO: checking size of long" >&5
4946 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
4947 if test "${ac_cv_sizeof_long+set}" = set; then
4948 echo $ECHO_N "(cached) $ECHO_C" >&6
4950 if test "$cross_compiling" = yes; then
4951 # Depending upon the size, compute the lo and hi bounds.
4952 cat >conftest.
$ac_ext <<_ACEOF
4955 cat confdefs.h
>>conftest.
$ac_ext
4956 cat >>conftest.
$ac_ext <<_ACEOF
4957 /* end confdefs.h. */
4958 $ac_includes_default
4959 typedef long ac__type_sizeof_;
4963 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
4970 rm -f conftest.
$ac_objext
4971 if { (ac_try
="$ac_compile"
4973 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4974 *) ac_try_echo=$ac_try;;
4976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4977 (eval "$ac_compile") 2>conftest.er1
4979 grep -v '^ *+' conftest.er1 >conftest.err
4981 cat conftest.err >&5
4982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4983 (exit $ac_status); } && {
4984 test -z "$ac_c_werror_flag" ||
4985 test ! -s conftest.err
4986 } && test -s conftest.$ac_objext; then
4989 cat >conftest.$ac_ext <<_ACEOF
4992 cat confdefs.h >>conftest.$ac_ext
4993 cat >>conftest.$ac_ext <<_ACEOF
4994 /* end confdefs.h. */
4995 $ac_includes_default
4996 typedef long ac__type_sizeof_;
5000 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5007 rm -f conftest.$ac_objext
5008 if { (ac_try="$ac_compile"
5010 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5011 *) ac_try_echo
=$ac_try;;
5013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5014 (eval "$ac_compile") 2>conftest.er1
5016 grep -v '^ *+' conftest.er1
>conftest.err
5018 cat conftest.err
>&5
5019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5020 (exit $ac_status); } && {
5021 test -z "$ac_c_werror_flag" ||
5022 test ! -s conftest.err
5023 } && test -s conftest.
$ac_objext; then
5024 ac_hi
=$ac_mid; break
5026 echo "$as_me: failed program was:" >&5
5027 sed 's/^/| /' conftest.
$ac_ext >&5
5029 ac_lo
=`expr $ac_mid + 1`
5030 if test $ac_lo -le $ac_mid; then
5034 ac_mid
=`expr 2 '*' $ac_mid + 1`
5037 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5040 echo "$as_me: failed program was:" >&5
5041 sed 's/^/| /' conftest.
$ac_ext >&5
5043 cat >conftest.
$ac_ext <<_ACEOF
5046 cat confdefs.h
>>conftest.
$ac_ext
5047 cat >>conftest.
$ac_ext <<_ACEOF
5048 /* end confdefs.h. */
5049 $ac_includes_default
5050 typedef long ac__type_sizeof_;
5054 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
5061 rm -f conftest.
$ac_objext
5062 if { (ac_try
="$ac_compile"
5064 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5065 *) ac_try_echo=$ac_try;;
5067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5068 (eval "$ac_compile") 2>conftest.er1
5070 grep -v '^ *+' conftest.er1 >conftest.err
5072 cat conftest.err >&5
5073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5074 (exit $ac_status); } && {
5075 test -z "$ac_c_werror_flag" ||
5076 test ! -s conftest.err
5077 } && test -s conftest.$ac_objext; then
5080 cat >conftest.$ac_ext <<_ACEOF
5083 cat confdefs.h >>conftest.$ac_ext
5084 cat >>conftest.$ac_ext <<_ACEOF
5085 /* end confdefs.h. */
5086 $ac_includes_default
5087 typedef long ac__type_sizeof_;
5091 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
5098 rm -f conftest.$ac_objext
5099 if { (ac_try="$ac_compile"
5101 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5102 *) ac_try_echo
=$ac_try;;
5104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5105 (eval "$ac_compile") 2>conftest.er1
5107 grep -v '^ *+' conftest.er1
>conftest.err
5109 cat conftest.err
>&5
5110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5111 (exit $ac_status); } && {
5112 test -z "$ac_c_werror_flag" ||
5113 test ! -s conftest.err
5114 } && test -s conftest.
$ac_objext; then
5115 ac_lo
=$ac_mid; break
5117 echo "$as_me: failed program was:" >&5
5118 sed 's/^/| /' conftest.
$ac_ext >&5
5120 ac_hi
=`expr '(' $ac_mid ')' - 1`
5121 if test $ac_mid -le $ac_hi; then
5125 ac_mid
=`expr 2 '*' $ac_mid`
5128 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5131 echo "$as_me: failed program was:" >&5
5132 sed 's/^/| /' conftest.
$ac_ext >&5
5137 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5140 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5141 # Binary search between lo and hi bounds.
5142 while test "x$ac_lo" != "x$ac_hi"; do
5143 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5144 cat >conftest.
$ac_ext <<_ACEOF
5147 cat confdefs.h
>>conftest.
$ac_ext
5148 cat >>conftest.
$ac_ext <<_ACEOF
5149 /* end confdefs.h. */
5150 $ac_includes_default
5151 typedef long ac__type_sizeof_;
5155 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5162 rm -f conftest.
$ac_objext
5163 if { (ac_try
="$ac_compile"
5165 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5166 *) ac_try_echo=$ac_try;;
5168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5169 (eval "$ac_compile") 2>conftest.er1
5171 grep -v '^ *+' conftest.er1 >conftest.err
5173 cat conftest.err >&5
5174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5175 (exit $ac_status); } && {
5176 test -z "$ac_c_werror_flag" ||
5177 test ! -s conftest.err
5178 } && test -s conftest.$ac_objext; then
5181 echo "$as_me: failed program was:" >&5
5182 sed 's/^/| /' conftest.$ac_ext >&5
5184 ac_lo=`expr '(' $ac_mid ')' + 1`
5187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5190 ?*) ac_cv_sizeof_long=$ac_lo;;
5191 '') if test "$ac_cv_type_long" = yes; then
5192 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
5193 See \`config.log
' for more details." >&5
5194 echo "$as_me: error: cannot compute sizeof (long)
5195 See \`config.log' for more details.
" >&2;}
5196 { (exit 77); exit 77; }; }
5202 cat >conftest.$ac_ext <<_ACEOF
5205 cat confdefs.h >>conftest.$ac_ext
5206 cat >>conftest.$ac_ext <<_ACEOF
5207 /* end confdefs.h. */
5208 $ac_includes_default
5209 typedef long ac__type_sizeof_;
5210 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
5211 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
5218 FILE *f = fopen ("conftest.val
", "w
");
5221 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
5223 long int i = longval ();
5224 if (i != ((long int) (sizeof (ac__type_sizeof_))))
5226 fprintf (f, "%ld
\n", i);
5230 unsigned long int i = ulongval ();
5231 if (i != ((long int) (sizeof (ac__type_sizeof_))))
5233 fprintf (f, "%lu
\n", i);
5235 return ferror (f) || fclose (f) != 0;
5241 rm -f conftest$ac_exeext
5242 if { (ac_try="$ac_link"
5244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5245 *) ac_try_echo=$ac_try;;
5247 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5248 (eval "$ac_link") 2>&5
5250 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5251 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5252 { (case "(($ac_try" in
5253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5254 *) ac_try_echo=$ac_try;;
5256 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5257 (eval "$ac_try") 2>&5
5259 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5260 (exit $ac_status); }; }; then
5261 ac_cv_sizeof_long=`cat conftest.val`
5263 echo "$as_me: program exited with status
$ac_status" >&5
5264 echo "$as_me: failed program was
:" >&5
5265 sed 's/^/| /' conftest.$ac_ext >&5
5268 if test "$ac_cv_type_long" = yes; then
5269 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(long
)
5270 See \
`config.log' for more details." >&5
5271 echo "$as_me: error: cannot compute sizeof (long)
5272 See \`config.log
' for more details." >&2;}
5273 { (exit 77); exit 77; }; }
5278 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5282 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5283 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
5287 cat >>confdefs.h <<_ACEOF
5288 #define SIZEOF_LONG $ac_cv_sizeof_long
5293 if test "x$host_m32" = x1; then
5294 # Force 32-bit mode.
5295 CFLAGS="$CFLAGS -m32"
5296 LDFLAGS="$LDFLAGS -m32"
5299 # Check LZO when compiling for the i386-pc.
5300 if test "$target_cpu"-"$platform" = i386-pc; then
5301 # There are three possibilities. LZO version 2 installed with the name
5302 # liblzo2, with the name liblzo, and LZO version 1.
5303 { echo "$as_me:$LINENO: checking for __lzo_init_v2 in -llzo2" >&5
5304 echo $ECHO_N "checking for __lzo_init_v2 in -llzo2... $ECHO_C" >&6; }
5305 if test "${ac_cv_lib_lzo2___lzo_init_v2+set}" = set; then
5306 echo $ECHO_N "(cached) $ECHO_C" >&6
5308 ac_check_lib_save_LIBS=$LIBS
5310 cat >conftest.$ac_ext <<_ACEOF
5313 cat confdefs.h >>conftest.$ac_ext
5314 cat >>conftest.$ac_ext <<_ACEOF
5315 /* end confdefs.h. */
5317 /* Override any GCC internal prototype to avoid an error.
5318 Use char because int might match the return type of a GCC
5319 builtin and then its argument prototype would still apply. */
5323 char __lzo_init_v2 ();
5327 return __lzo_init_v2 ();
5332 rm -f conftest.$ac_objext conftest$ac_exeext
5333 if { (ac_try="$ac_link"
5335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5336 *) ac_try_echo=$ac_try;;
5338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5339 (eval "$ac_link") 2>conftest.er1
5341 grep -v '^
*+' conftest.er1 >conftest.err
5343 cat conftest.err >&5
5344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5345 (exit $ac_status); } && {
5346 test -z "$ac_c_werror_flag" ||
5347 test ! -s conftest.err
5348 } && test -s conftest$ac_exeext &&
5349 $as_test_x conftest$ac_exeext; then
5350 ac_cv_lib_lzo2___lzo_init_v2=yes
5352 echo "$as_me: failed program was:" >&5
5353 sed 's
/^
/|
/' conftest.$ac_ext >&5
5355 ac_cv_lib_lzo2___lzo_init_v2=no
5358 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5359 conftest$ac_exeext conftest.$ac_ext
5360 LIBS=$ac_check_lib_save_LIBS
5362 { echo "$as_me:$LINENO: result: $ac_cv_lib_lzo2___lzo_init_v2" >&5
5363 echo "${ECHO_T}$ac_cv_lib_lzo2___lzo_init_v2" >&6; }
5364 if test $ac_cv_lib_lzo2___lzo_init_v2 = yes; then
5367 { echo "$as_me:$LINENO: checking for __lzo_init_v2 in -llzo" >&5
5368 echo $ECHO_N "checking for __lzo_init_v2 in -llzo... $ECHO_C" >&6; }
5369 if test "${ac_cv_lib_lzo___lzo_init_v2+set}" = set; then
5370 echo $ECHO_N "(cached) $ECHO_C" >&6
5372 ac_check_lib_save_LIBS=$LIBS
5374 cat >conftest.$ac_ext <<_ACEOF
5377 cat confdefs.h >>conftest.$ac_ext
5378 cat >>conftest.$ac_ext <<_ACEOF
5379 /* end confdefs.h. */
5381 /* Override any GCC internal prototype to avoid an error.
5382 Use char because int might match the return type of a GCC
5383 builtin and then its argument prototype would still apply. */
5387 char __lzo_init_v2 ();
5391 return __lzo_init_v2 ();
5396 rm -f conftest.$ac_objext conftest$ac_exeext
5397 if { (ac_try="$ac_link"
5399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5400 *) ac_try_echo=$ac_try;;
5402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5403 (eval "$ac_link") 2>conftest.er1
5405 grep -v '^
*+' conftest.er1 >conftest.err
5407 cat conftest.err >&5
5408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5409 (exit $ac_status); } && {
5410 test -z "$ac_c_werror_flag" ||
5411 test ! -s conftest.err
5412 } && test -s conftest$ac_exeext &&
5413 $as_test_x conftest$ac_exeext; then
5414 ac_cv_lib_lzo___lzo_init_v2=yes
5416 echo "$as_me: failed program was:" >&5
5417 sed 's
/^
/|
/' conftest.$ac_ext >&5
5419 ac_cv_lib_lzo___lzo_init_v2=no
5422 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5423 conftest$ac_exeext conftest.$ac_ext
5424 LIBS=$ac_check_lib_save_LIBS
5426 { echo "$as_me:$LINENO: result: $ac_cv_lib_lzo___lzo_init_v2" >&5
5427 echo "${ECHO_T}$ac_cv_lib_lzo___lzo_init_v2" >&6; }
5428 if test $ac_cv_lib_lzo___lzo_init_v2 = yes; then
5431 { echo "$as_me:$LINENO: checking for __lzo_init2 in -llzo" >&5
5432 echo $ECHO_N "checking for __lzo_init2 in -llzo... $ECHO_C" >&6; }
5433 if test "${ac_cv_lib_lzo___lzo_init2+set}" = set; then
5434 echo $ECHO_N "(cached) $ECHO_C" >&6
5436 ac_check_lib_save_LIBS=$LIBS
5438 cat >conftest.$ac_ext <<_ACEOF
5441 cat confdefs.h >>conftest.$ac_ext
5442 cat >>conftest.$ac_ext <<_ACEOF
5443 /* end confdefs.h. */
5445 /* Override any GCC internal prototype to avoid an error.
5446 Use char because int might match the return type of a GCC
5447 builtin and then its argument prototype would still apply. */
5451 char __lzo_init2 ();
5455 return __lzo_init2 ();
5460 rm -f conftest.$ac_objext conftest$ac_exeext
5461 if { (ac_try="$ac_link"
5463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5464 *) ac_try_echo=$ac_try;;
5466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5467 (eval "$ac_link") 2>conftest.er1
5469 grep -v '^
*+' conftest.er1 >conftest.err
5471 cat conftest.err >&5
5472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5473 (exit $ac_status); } && {
5474 test -z "$ac_c_werror_flag" ||
5475 test ! -s conftest.err
5476 } && test -s conftest$ac_exeext &&
5477 $as_test_x conftest$ac_exeext; then
5478 ac_cv_lib_lzo___lzo_init2=yes
5480 echo "$as_me: failed program was:" >&5
5481 sed 's
/^
/|
/' conftest.$ac_ext >&5
5483 ac_cv_lib_lzo___lzo_init2=no
5486 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5487 conftest$ac_exeext conftest.$ac_ext
5488 LIBS=$ac_check_lib_save_LIBS
5490 { echo "$as_me:$LINENO: result: $ac_cv_lib_lzo___lzo_init2" >&5
5491 echo "${ECHO_T}$ac_cv_lib_lzo___lzo_init2" >&6; }
5492 if test $ac_cv_lib_lzo___lzo_init2 = yes; then
5495 { { echo "$as_me:$LINENO: error: LZO library version 1.02 or later is required" >&5
5496 echo "$as_me: error: LZO library version 1.02 or later is required" >&2;}
5497 { (exit 1); exit 1; }; }
5505 LIBS="$LIBS $LIBLZO"
5506 { echo "$as_me:$LINENO: checking for lzo1x_999_compress" >&5
5507 echo $ECHO_N "checking for lzo1x_999_compress... $ECHO_C" >&6; }
5508 if test "${ac_cv_func_lzo1x_999_compress+set}" = set; then
5509 echo $ECHO_N "(cached) $ECHO_C" >&6
5511 cat >conftest.$ac_ext <<_ACEOF
5514 cat confdefs.h >>conftest.$ac_ext
5515 cat >>conftest.$ac_ext <<_ACEOF
5516 /* end confdefs.h. */
5517 /* Define lzo1x_999_compress to an innocuous variant, in case <limits.h> declares lzo1x_999_compress.
5518 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5519 #define lzo1x_999_compress innocuous_lzo1x_999_compress
5521 /* System header to define __stub macros and hopefully few prototypes,
5522 which can conflict with char lzo1x_999_compress (); below.
5523 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5524 <limits.h> exists even on freestanding compilers. */
5527 # include <limits.h>
5529 # include <assert.h>
5532 #undef lzo1x_999_compress
5534 /* Override any GCC internal prototype to avoid an error.
5535 Use char because int might match the return type of a GCC
5536 builtin and then its argument prototype would still apply. */
5540 char lzo1x_999_compress ();
5541 /* The GNU C library defines this for functions which it implements
5542 to always fail with ENOSYS. Some functions are actually named
5543 something starting with __ and the normal name is an alias. */
5544 #if defined __stub_lzo1x_999_compress || defined __stub___lzo1x_999_compress
5551 return lzo1x_999_compress ();
5556 rm -f conftest.$ac_objext conftest$ac_exeext
5557 if { (ac_try="$ac_link"
5559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5560 *) ac_try_echo=$ac_try;;
5562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5563 (eval "$ac_link") 2>conftest.er1
5565 grep -v '^
*+' conftest.er1 >conftest.err
5567 cat conftest.err >&5
5568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5569 (exit $ac_status); } && {
5570 test -z "$ac_c_werror_flag" ||
5571 test ! -s conftest.err
5572 } && test -s conftest$ac_exeext &&
5573 $as_test_x conftest$ac_exeext; then
5574 ac_cv_func_lzo1x_999_compress=yes
5576 echo "$as_me: failed program was:" >&5
5577 sed 's
/^
/|
/' conftest.$ac_ext >&5
5579 ac_cv_func_lzo1x_999_compress=no
5582 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5583 conftest$ac_exeext conftest.$ac_ext
5585 { echo "$as_me:$LINENO: result: $ac_cv_func_lzo1x_999_compress" >&5
5586 echo "${ECHO_T}$ac_cv_func_lzo1x_999_compress" >&6; }
5587 if test $ac_cv_func_lzo1x_999_compress = yes; then
5590 { { echo "$as_me:$LINENO: error: LZO1X-999 must be enabled" >&5
5591 echo "$as_me: error: LZO1X-999 must be enabled" >&2;}
5592 { (exit 1); exit 1; }; }
5596 # LZO version 2 uses lzo/lzo1x.h, while LZO version 1 uses lzo1x.h.
5599 for ac_header in lzo/lzo1x.h lzo1x.h
5601 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5602 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5603 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5604 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5605 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5606 echo $ECHO_N "(cached) $ECHO_C" >&6
5608 ac_res=`eval echo '${'$as_ac_Header'}'`
5609 { echo "$as_me:$LINENO: result: $ac_res" >&5
5610 echo "${ECHO_T}$ac_res" >&6; }
5612 # Is the header compilable?
5613 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5614 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5615 cat >conftest.$ac_ext <<_ACEOF
5618 cat confdefs.h >>conftest.$ac_ext
5619 cat >>conftest.$ac_ext <<_ACEOF
5620 /* end confdefs.h. */
5621 $ac_includes_default
5622 #include <$ac_header>
5624 rm -f conftest.$ac_objext
5625 if { (ac_try="$ac_compile"
5627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5628 *) ac_try_echo=$ac_try;;
5630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5631 (eval "$ac_compile") 2>conftest.er1
5633 grep -v '^
*+' conftest.er1 >conftest.err
5635 cat conftest.err >&5
5636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5637 (exit $ac_status); } && {
5638 test -z "$ac_c_werror_flag" ||
5639 test ! -s conftest.err
5640 } && test -s conftest.$ac_objext; then
5641 ac_header_compiler=yes
5643 echo "$as_me: failed program was:" >&5
5644 sed 's
/^
/|
/' conftest.$ac_ext >&5
5646 ac_header_compiler=no
5649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5650 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5651 echo "${ECHO_T}$ac_header_compiler" >&6; }
5653 # Is the header present?
5654 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5655 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5656 cat >conftest.$ac_ext <<_ACEOF
5659 cat confdefs.h >>conftest.$ac_ext
5660 cat >>conftest.$ac_ext <<_ACEOF
5661 /* end confdefs.h. */
5662 #include <$ac_header>
5664 if { (ac_try="$ac_cpp conftest.$ac_ext"
5666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5667 *) ac_try_echo=$ac_try;;
5669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5670 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5672 grep -v '^
*+' conftest.er1 >conftest.err
5674 cat conftest.err >&5
5675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5676 (exit $ac_status); } >/dev/null && {
5677 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5678 test ! -s conftest.err
5680 ac_header_preproc=yes
5682 echo "$as_me: failed program was:" >&5
5683 sed 's
/^
/|
/' conftest.$ac_ext >&5
5685 ac_header_preproc=no
5688 rm -f conftest.err conftest.$ac_ext
5689 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5690 echo "${ECHO_T}$ac_header_preproc" >&6; }
5692 # So? What about this header?
5693 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5695 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5696 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5697 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result
" >&5
5698 echo "$as_me: WARNING
: $ac_header: proceeding with the compiler
's result" >&2;}
5699 ac_header_preproc=yes
5702 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5703 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5704 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5705 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5706 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5707 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5708 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5709 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5710 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result
" >&5
5711 echo "$as_me: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&2;}
5712 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5713 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5715 ## ------------------------------- ##
5716 ## Report this to bug-grub@gnu.org ##
5717 ## ------------------------------- ##
5719 ) | sed "s/^/$as_me: WARNING: /" >&2
5722 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5723 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5724 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5725 echo $ECHO_N "(cached) $ECHO_C" >&6
5727 eval "$as_ac_Header=\$ac_header_preproc"
5729 ac_res=`eval echo '${'$as_ac_Header'}'`
5730 { echo "$as_me:$LINENO: result: $ac_res" >&5
5731 echo "${ECHO_T}$ac_res" >&6; }
5734 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5735 cat >>confdefs.h <<_ACEOF
5736 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5745 # Check for functions.
5748 for ac_func in posix_memalign memalign
5750 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5751 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5752 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5753 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5754 echo $ECHO_N "(cached) $ECHO_C" >&6
5756 cat >conftest.$ac_ext <<_ACEOF
5759 cat confdefs.h >>conftest.$ac_ext
5760 cat >>conftest.$ac_ext <<_ACEOF
5761 /* end confdefs.h. */
5762 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5763 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5764 #define $ac_func innocuous_$ac_func
5766 /* System header to define __stub macros and hopefully few prototypes,
5767 which can conflict with char $ac_func (); below.
5768 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5769 <limits.h> exists even on freestanding compilers. */
5772 # include <limits.h>
5774 # include <assert.h>
5779 /* Override any GCC internal prototype to avoid an error.
5780 Use char because int might match the return type of a GCC
5781 builtin and then its argument prototype would still apply. */
5786 /* The GNU C library defines this for functions which it implements
5787 to always fail with ENOSYS. Some functions are actually named
5788 something starting with __ and the normal name is an alias. */
5789 #if defined __stub_$ac_func || defined __stub___$ac_func
5801 rm -f conftest.$ac_objext conftest$ac_exeext
5802 if { (ac_try="$ac_link"
5804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5805 *) ac_try_echo=$ac_try;;
5807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5808 (eval "$ac_link") 2>conftest.er1
5810 grep -v '^
*+' conftest.er1 >conftest.err
5812 cat conftest.err >&5
5813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5814 (exit $ac_status); } && {
5815 test -z "$ac_c_werror_flag" ||
5816 test ! -s conftest.err
5817 } && test -s conftest$ac_exeext &&
5818 $as_test_x conftest$ac_exeext; then
5819 eval "$as_ac_var=yes"
5821 echo "$as_me: failed program was:" >&5
5822 sed 's
/^
/|
/' conftest.$ac_ext >&5
5824 eval "$as_ac_var=no"
5827 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5828 conftest$ac_exeext conftest.$ac_ext
5830 ac_res=`eval echo '${'$as_ac_var'}'`
5831 { echo "$as_me:$LINENO: result: $ac_res" >&5
5832 echo "${ECHO_T}$ac_res" >&6; }
5833 if test `eval echo '${'$as_ac_var'}'` = yes; then
5834 cat >>confdefs.h <<_ACEOF
5835 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5843 # Check for target programs.
5846 # For cross-compiling.
5847 if test "x$target" != "x$host"; then
5848 # XXX this depends on the implementation of autoconf!
5849 tmp_ac_tool_prefix="$ac_tool_prefix"
5850 ac_tool_prefix=$target_alias-
5852 if test -n "$ac_tool_prefix"; then
5853 for ac_prog in gcc egcs cc
5855 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5856 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5857 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5858 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5859 if test "${ac_cv_prog_TARGET_CC+set}" = set; then
5860 echo $ECHO_N "(cached) $ECHO_C" >&6
5862 if test -n "$TARGET_CC"; then
5863 ac_cv_prog_TARGET_CC="$TARGET_CC" # Let the user override the test.
5865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5869 test -z "$as_dir" && as_dir=.
5870 for ac_exec_ext in '' $ac_executable_extensions; do
5871 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5872 ac_cv_prog_TARGET_CC="$ac_tool_prefix$ac_prog"
5873 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5882 TARGET_CC=$ac_cv_prog_TARGET_CC
5883 if test -n "$TARGET_CC"; then
5884 { echo "$as_me:$LINENO: result: $TARGET_CC" >&5
5885 echo "${ECHO_T}$TARGET_CC" >&6; }
5887 { echo "$as_me:$LINENO: result: no" >&5
5888 echo "${ECHO_T}no" >&6; }
5892 test -n "$TARGET_CC" && break
5895 if test -z "$TARGET_CC"; then
5896 ac_ct_TARGET_CC=$TARGET_CC
5897 for ac_prog in gcc egcs cc
5899 # Extract the first word of "$ac_prog", so it can be a program name with args.
5900 set dummy $ac_prog; ac_word=$2
5901 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5902 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5903 if test "${ac_cv_prog_ac_ct_TARGET_CC+set}" = set; then
5904 echo $ECHO_N "(cached) $ECHO_C" >&6
5906 if test -n "$ac_ct_TARGET_CC"; then
5907 ac_cv_prog_ac_ct_TARGET_CC="$ac_ct_TARGET_CC" # Let the user override the test.
5909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5913 test -z "$as_dir" && as_dir=.
5914 for ac_exec_ext in '' $ac_executable_extensions; do
5915 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5916 ac_cv_prog_ac_ct_TARGET_CC="$ac_prog"
5917 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5926 ac_ct_TARGET_CC=$ac_cv_prog_ac_ct_TARGET_CC
5927 if test -n "$ac_ct_TARGET_CC"; then
5928 { echo "$as_me:$LINENO: result: $ac_ct_TARGET_CC" >&5
5929 echo "${ECHO_T}$ac_ct_TARGET_CC" >&6; }
5931 { echo "$as_me:$LINENO: result: no" >&5
5932 echo "${ECHO_T}no" >&6; }
5936 test -n "$ac_ct_TARGET_CC" && break
5939 if test "x$ac_ct_TARGET_CC" = x; then
5940 TARGET_CC="{ { echo "$as_me:$LINENO: error: none of gcc, egcs and cc is found. set TARGET_CC manually." >&5
5941 echo "$as_me: error: none of gcc, egcs and cc is found. set TARGET_CC manually." >&2;}
5942 { (exit 1); exit 1; }; }"
5944 case $cross_compiling:$ac_tool_warned in
5946 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5947 whose name does not start with the host triplet. If you think this
5948 configuration is useful to you, please write to autoconf@gnu.org." >&5
5949 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5950 whose name does not start with the host triplet. If you think this
5951 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5952 ac_tool_warned=yes ;;
5954 TARGET_CC=$ac_ct_TARGET_CC
5958 if test -n "$ac_tool_prefix"; then
5959 # Extract the first word of "${ac_tool_prefix}objcopy", so it can be a program name with args.
5960 set dummy ${ac_tool_prefix}objcopy; ac_word=$2
5961 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5962 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5963 if test "${ac_cv_prog_OBJCOPY+set}" = set; then
5964 echo $ECHO_N "(cached) $ECHO_C" >&6
5966 if test -n "$OBJCOPY"; then
5967 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
5969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5973 test -z "$as_dir" && as_dir=.
5974 for ac_exec_ext in '' $ac_executable_extensions; do
5975 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5976 ac_cv_prog_OBJCOPY="${ac_tool_prefix}objcopy"
5977 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5986 OBJCOPY=$ac_cv_prog_OBJCOPY
5987 if test -n "$OBJCOPY"; then
5988 { echo "$as_me:$LINENO: result: $OBJCOPY" >&5
5989 echo "${ECHO_T}$OBJCOPY" >&6; }
5991 { echo "$as_me:$LINENO: result: no" >&5
5992 echo "${ECHO_T}no" >&6; }
5997 if test -z "$ac_cv_prog_OBJCOPY"; then
5998 ac_ct_OBJCOPY=$OBJCOPY
5999 # Extract the first word of "objcopy", so it can be a program name with args.
6000 set dummy objcopy; ac_word=$2
6001 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6002 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6003 if test "${ac_cv_prog_ac_ct_OBJCOPY+set}" = set; then
6004 echo $ECHO_N "(cached) $ECHO_C" >&6
6006 if test -n "$ac_ct_OBJCOPY"; then
6007 ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test.
6009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6013 test -z "$as_dir" && as_dir=.
6014 for ac_exec_ext in '' $ac_executable_extensions; do
6015 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6016 ac_cv_prog_ac_ct_OBJCOPY="objcopy"
6017 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6026 ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY
6027 if test -n "$ac_ct_OBJCOPY"; then
6028 { echo "$as_me:$LINENO: result: $ac_ct_OBJCOPY" >&5
6029 echo "${ECHO_T}$ac_ct_OBJCOPY" >&6; }
6031 { echo "$as_me:$LINENO: result: no" >&5
6032 echo "${ECHO_T}no" >&6; }
6035 if test "x$ac_ct_OBJCOPY" = x; then
6038 case $cross_compiling:$ac_tool_warned in
6040 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6041 whose name does not start with the host triplet. If you think this
6042 configuration is useful to you, please write to autoconf@gnu.org." >&5
6043 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6044 whose name does not start with the host triplet. If you think this
6045 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6046 ac_tool_warned=yes ;;
6048 OBJCOPY=$ac_ct_OBJCOPY
6051 OBJCOPY="$ac_cv_prog_OBJCOPY"
6054 if test -n "$ac_tool_prefix"; then
6055 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6056 set dummy ${ac_tool_prefix}strip; ac_word=$2
6057 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6058 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6059 if test "${ac_cv_prog_STRIP+set}" = set; then
6060 echo $ECHO_N "(cached) $ECHO_C" >&6
6062 if test -n "$STRIP"; then
6063 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6069 test -z "$as_dir" && as_dir=.
6070 for ac_exec_ext in '' $ac_executable_extensions; do
6071 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6072 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6073 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6082 STRIP=$ac_cv_prog_STRIP
6083 if test -n "$STRIP"; then
6084 { echo "$as_me:$LINENO: result: $STRIP" >&5
6085 echo "${ECHO_T}$STRIP" >&6; }
6087 { echo "$as_me:$LINENO: result: no" >&5
6088 echo "${ECHO_T}no" >&6; }
6093 if test -z "$ac_cv_prog_STRIP"; then
6095 # Extract the first word of "strip", so it can be a program name with args.
6096 set dummy strip; ac_word=$2
6097 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6098 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6099 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6100 echo $ECHO_N "(cached) $ECHO_C" >&6
6102 if test -n "$ac_ct_STRIP"; then
6103 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6109 test -z "$as_dir" && as_dir=.
6110 for ac_exec_ext in '' $ac_executable_extensions; do
6111 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6112 ac_cv_prog_ac_ct_STRIP="strip"
6113 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6122 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6123 if test -n "$ac_ct_STRIP"; then
6124 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6125 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6127 { echo "$as_me:$LINENO: result: no" >&5
6128 echo "${ECHO_T}no" >&6; }
6131 if test "x$ac_ct_STRIP" = x; then
6134 case $cross_compiling:$ac_tool_warned in
6136 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6137 whose name does not start with the host triplet. If you think this
6138 configuration is useful to you, please write to autoconf@gnu.org." >&5
6139 echo "$as_me: 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." >&2;}
6142 ac_tool_warned=yes ;;
6147 STRIP="$ac_cv_prog_STRIP"
6150 if test -n "$ac_tool_prefix"; then
6151 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
6152 set dummy ${ac_tool_prefix}nm; ac_word=$2
6153 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6154 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6155 if test "${ac_cv_prog_NM+set}" = set; then
6156 echo $ECHO_N "(cached) $ECHO_C" >&6
6158 if test -n "$NM"; then
6159 ac_cv_prog_NM="$NM" # Let the user override the test.
6161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6165 test -z "$as_dir" && as_dir=.
6166 for ac_exec_ext in '' $ac_executable_extensions; do
6167 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6168 ac_cv_prog_NM="${ac_tool_prefix}nm"
6169 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6179 if test -n "$NM"; then
6180 { echo "$as_me:$LINENO: result: $NM" >&5
6181 echo "${ECHO_T}$NM" >&6; }
6183 { echo "$as_me:$LINENO: result: no" >&5
6184 echo "${ECHO_T}no" >&6; }
6189 if test -z "$ac_cv_prog_NM"; then
6191 # Extract the first word of "nm", so it can be a program name with args.
6192 set dummy nm; ac_word=$2
6193 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6194 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6195 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
6196 echo $ECHO_N "(cached) $ECHO_C" >&6
6198 if test -n "$ac_ct_NM"; then
6199 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
6201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6205 test -z "$as_dir" && as_dir=.
6206 for ac_exec_ext in '' $ac_executable_extensions; do
6207 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6208 ac_cv_prog_ac_ct_NM="nm"
6209 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6218 ac_ct_NM=$ac_cv_prog_ac_ct_NM
6219 if test -n "$ac_ct_NM"; then
6220 { echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
6221 echo "${ECHO_T}$ac_ct_NM" >&6; }
6223 { echo "$as_me:$LINENO: result: no" >&5
6224 echo "${ECHO_T}no" >&6; }
6227 if test "x$ac_ct_NM" = x; then
6230 case $cross_compiling:$ac_tool_warned in
6232 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6233 whose name does not start with the host triplet. If you think this
6234 configuration is useful to you, please write to autoconf@gnu.org." >&5
6235 echo "$as_me: 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." >&2;}
6238 ac_tool_warned=yes ;;
6247 ac_tool_prefix="$tmp_ac_tool_prefix"
6249 if test "x$TARGET_CC" = x; then
6252 if test -n "$ac_tool_prefix"; then
6253 # Extract the first word of "${ac_tool_prefix}objcopy", so it can be a program name with args.
6254 set dummy ${ac_tool_prefix}objcopy; ac_word=$2
6255 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6256 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6257 if test "${ac_cv_prog_OBJCOPY+set}" = set; then
6258 echo $ECHO_N "(cached) $ECHO_C" >&6
6260 if test -n "$OBJCOPY"; then
6261 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
6263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6267 test -z "$as_dir" && as_dir=.
6268 for ac_exec_ext in '' $ac_executable_extensions; do
6269 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6270 ac_cv_prog_OBJCOPY="${ac_tool_prefix}objcopy"
6271 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6280 OBJCOPY=$ac_cv_prog_OBJCOPY
6281 if test -n "$OBJCOPY"; then
6282 { echo "$as_me:$LINENO: result: $OBJCOPY" >&5
6283 echo "${ECHO_T}$OBJCOPY" >&6; }
6285 { echo "$as_me:$LINENO: result: no" >&5
6286 echo "${ECHO_T}no" >&6; }
6291 if test -z "$ac_cv_prog_OBJCOPY"; then
6292 ac_ct_OBJCOPY=$OBJCOPY
6293 # Extract the first word of "objcopy", so it can be a program name with args.
6294 set dummy objcopy; ac_word=$2
6295 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6296 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6297 if test "${ac_cv_prog_ac_ct_OBJCOPY+set}" = set; then
6298 echo $ECHO_N "(cached) $ECHO_C" >&6
6300 if test -n "$ac_ct_OBJCOPY"; then
6301 ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test.
6303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6307 test -z "$as_dir" && as_dir=.
6308 for ac_exec_ext in '' $ac_executable_extensions; do
6309 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6310 ac_cv_prog_ac_ct_OBJCOPY="objcopy"
6311 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6320 ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY
6321 if test -n "$ac_ct_OBJCOPY"; then
6322 { echo "$as_me:$LINENO: result: $ac_ct_OBJCOPY" >&5
6323 echo "${ECHO_T}$ac_ct_OBJCOPY" >&6; }
6325 { echo "$as_me:$LINENO: result: no" >&5
6326 echo "${ECHO_T}no" >&6; }
6329 if test "x$ac_ct_OBJCOPY" = x; then
6332 case $cross_compiling:$ac_tool_warned in
6334 { echo "$as_me:$LINENO: 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." >&5
6337 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6338 whose name does not start with the host triplet. If you think this
6339 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6340 ac_tool_warned=yes ;;
6342 OBJCOPY=$ac_ct_OBJCOPY
6345 OBJCOPY="$ac_cv_prog_OBJCOPY"
6348 if test -n "$ac_tool_prefix"; then
6349 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6350 set dummy ${ac_tool_prefix}strip; ac_word=$2
6351 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6352 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6353 if test "${ac_cv_prog_STRIP+set}" = set; then
6354 echo $ECHO_N "(cached) $ECHO_C" >&6
6356 if test -n "$STRIP"; then
6357 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6363 test -z "$as_dir" && as_dir=.
6364 for ac_exec_ext in '' $ac_executable_extensions; do
6365 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6366 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6367 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6376 STRIP=$ac_cv_prog_STRIP
6377 if test -n "$STRIP"; then
6378 { echo "$as_me:$LINENO: result: $STRIP" >&5
6379 echo "${ECHO_T}$STRIP" >&6; }
6381 { echo "$as_me:$LINENO: result: no" >&5
6382 echo "${ECHO_T}no" >&6; }
6387 if test -z "$ac_cv_prog_STRIP"; then
6389 # Extract the first word of "strip", so it can be a program name with args.
6390 set dummy strip; ac_word=$2
6391 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6392 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6393 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6394 echo $ECHO_N "(cached) $ECHO_C" >&6
6396 if test -n "$ac_ct_STRIP"; then
6397 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6403 test -z "$as_dir" && as_dir=.
6404 for ac_exec_ext in '' $ac_executable_extensions; do
6405 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6406 ac_cv_prog_ac_ct_STRIP="strip"
6407 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6416 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6417 if test -n "$ac_ct_STRIP"; then
6418 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6419 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6421 { echo "$as_me:$LINENO: result: no" >&5
6422 echo "${ECHO_T}no" >&6; }
6425 if test "x$ac_ct_STRIP" = x; then
6428 case $cross_compiling:$ac_tool_warned in
6430 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6431 whose name does not start with the host triplet. If you think this
6432 configuration is useful to you, please write to autoconf@gnu.org." >&5
6433 echo "$as_me: 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." >&2;}
6436 ac_tool_warned=yes ;;
6441 STRIP="$ac_cv_prog_STRIP"
6444 if test -n "$ac_tool_prefix"; then
6445 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
6446 set dummy ${ac_tool_prefix}nm; ac_word=$2
6447 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6448 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6449 if test "${ac_cv_prog_NM+set}" = set; then
6450 echo $ECHO_N "(cached) $ECHO_C" >&6
6452 if test -n "$NM"; then
6453 ac_cv_prog_NM="$NM" # Let the user override the test.
6455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6459 test -z "$as_dir" && as_dir=.
6460 for ac_exec_ext in '' $ac_executable_extensions; do
6461 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6462 ac_cv_prog_NM="${ac_tool_prefix}nm"
6463 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6473 if test -n "$NM"; then
6474 { echo "$as_me:$LINENO: result: $NM" >&5
6475 echo "${ECHO_T}$NM" >&6; }
6477 { echo "$as_me:$LINENO: result: no" >&5
6478 echo "${ECHO_T}no" >&6; }
6483 if test -z "$ac_cv_prog_NM"; then
6485 # Extract the first word of "nm", so it can be a program name with args.
6486 set dummy nm; ac_word=$2
6487 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6488 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6489 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
6490 echo $ECHO_N "(cached) $ECHO_C" >&6
6492 if test -n "$ac_ct_NM"; then
6493 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
6495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6499 test -z "$as_dir" && as_dir=.
6500 for ac_exec_ext in '' $ac_executable_extensions; do
6501 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6502 ac_cv_prog_ac_ct_NM="nm"
6503 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6512 ac_ct_NM=$ac_cv_prog_ac_ct_NM
6513 if test -n "$ac_ct_NM"; then
6514 { echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
6515 echo "${ECHO_T}$ac_ct_NM" >&6; }
6517 { echo "$as_me:$LINENO: result: no" >&5
6518 echo "${ECHO_T}no" >&6; }
6521 if test "x$ac_ct_NM" = x; then
6524 case $cross_compiling:$ac_tool_warned in
6526 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6527 whose name does not start with the host triplet. If you think this
6528 configuration is useful to you, please write to autoconf@gnu.org." >&5
6529 echo "$as_me: 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." >&2;}
6532 ac_tool_warned=yes ;;
6544 # Test the C compiler for the target environment.
6546 tmp_CFLAGS="$CFLAGS"
6547 tmp_LDFLAGS="$LDFLAGS"
6548 tmp_CPPFLAGS="$CPPFLAGS"
6551 CFLAGS="$TARGET_CFLAGS"
6552 CPPFLAGS="$TARGET_CPPFLAGS"
6553 LDFLAGS="$TARGET_LDFLAGS"
6556 if test "x$TARGET_CFLAGS" = x; then
6558 TARGET_CFLAGS="-Wall -W -Wshadow -Wpointer-arith -Wmissing-prototypes \
6559 -Wundef -Wstrict-prototypes -g"
6561 # optimization flags.
6562 { echo "$as_me:$LINENO: checking whether optimization for size works" >&5
6563 echo $ECHO_N "checking whether optimization for size works... $ECHO_C" >&6; }
6564 if test "${grub_cv_cc_Os+set}" = set; then
6565 echo $ECHO_N "(cached) $ECHO_C" >&6
6569 cat >conftest.$ac_ext <<_ACEOF
6572 cat confdefs.h >>conftest.$ac_ext
6573 cat >>conftest.$ac_ext <<_ACEOF
6574 /* end confdefs.h. */
6584 rm -f conftest.$ac_objext
6585 if { (ac_try="$ac_compile"
6587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6588 *) ac_try_echo=$ac_try;;
6590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6591 (eval "$ac_compile") 2>conftest.er1
6593 grep -v '^
*+' conftest.er1 >conftest.err
6595 cat conftest.err >&5
6596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6597 (exit $ac_status); } && {
6598 test -z "$ac_c_werror_flag" ||
6599 test ! -s conftest.err
6600 } && test -s conftest.$ac_objext; then
6603 echo "$as_me: failed program was:" >&5
6604 sed 's
/^
/|
/' conftest.$ac_ext >&5
6609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6612 { echo "$as_me:$LINENO: result: $grub_cv_cc_Os" >&5
6613 echo "${ECHO_T}$grub_cv_cc_Os" >&6; }
6614 if test "x$grub_cv_cc_Os" = xyes; then
6615 TARGET_CFLAGS="$TARGET_CFLAGS -Os"
6617 TARGET_CFLAGS="$TARGET_CFLAGS -O2 -fno-strength-reduce -fno-unroll-loops"
6620 # Force no alignment to save space on i386.
6621 if test "x$target_cpu" = xi386; then
6622 { echo "$as_me:$LINENO: checking whether -falign-loops works" >&5
6623 echo $ECHO_N "checking whether -falign-loops works... $ECHO_C" >&6; }
6624 if test "${grub_cv_cc_falign_loop+set}" = set; then
6625 echo $ECHO_N "(cached) $ECHO_C" >&6
6628 CFLAGS="-falign-loops=1"
6629 cat >conftest.$ac_ext <<_ACEOF
6632 cat confdefs.h >>conftest.$ac_ext
6633 cat >>conftest.$ac_ext <<_ACEOF
6634 /* end confdefs.h. */
6644 rm -f conftest.$ac_objext
6645 if { (ac_try="$ac_compile"
6647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6648 *) ac_try_echo=$ac_try;;
6650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6651 (eval "$ac_compile") 2>conftest.er1
6653 grep -v '^
*+' conftest.er1 >conftest.err
6655 cat conftest.err >&5
6656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6657 (exit $ac_status); } && {
6658 test -z "$ac_c_werror_flag" ||
6659 test ! -s conftest.err
6660 } && test -s conftest.$ac_objext; then
6661 grub_cv_cc_falign_loop=yes
6663 echo "$as_me: failed program was:" >&5
6664 sed 's
/^
/|
/' conftest.$ac_ext >&5
6666 grub_cv_cc_falign_loop=no
6669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6672 { echo "$as_me:$LINENO: result: $grub_cv_cc_falign_loop" >&5
6673 echo "${ECHO_T}$grub_cv_cc_falign_loop" >&6; }
6675 if test "x$grub_cv_cc_falign_loop" = xyes; then
6676 TARGET_CFLAGS="$TARGET_CFLAGS -falign-jumps=1 -falign-loops=1 -falign-functions=1"
6678 TARGET_CFLAGS="$TARGET_CFLAGS -malign-jumps=1 -malign-loops=1 -malign-functions=1"
6683 if test "x$target_m32" = x1; then
6684 # Force 32-bit mode.
6685 TARGET_CFLAGS="$TARGET_CFLAGS -m32"
6686 TARGET_LDFLAGS="$TARGET_LDFLAGS -m32"
6690 # Compiler features.
6693 # Smashing stack protector.
6695 # Smashing stack protector.
6697 { echo "$as_me:$LINENO: checking whether \`$CC' accepts \
`-fstack-protector'" >&5
6698 echo $ECHO_N "checking whether \`$CC' accepts \`-fstack-protector'...
$ECHO_C" >&6; }
6699 # Is this a reliable test case?
6700 cat >conftest.$ac_ext <<_ACEOF
6701 void foo (void) { volatile char a[8]; a[3]; }
6703 # `$CC -c -o ...' might not be portable. But, oh, well... Is calling
6704 # `ac_compile' like this correct, after all?
6705 if eval "$ac_compile -S -fstack-protector -o conftest.s
" 2> /dev/null; then
6706 { echo "$as_me:$LINENO: result
: yes" >&5
6707 echo "${ECHO_T}yes" >&6; }
6708 # Should we clear up other files as well, having called `AC_LANG_CONFTEST'?
6712 { echo "$as_me:$LINENO: result
: no
" >&5
6713 echo "${ECHO_T}no
" >&6; }
6716 # Need that, because some distributions ship compilers that include
6717 # `-fstack-protector' in the default specs.
6718 if test "x
$ssp_possible" = xyes; then
6719 TARGET_CFLAGS="$TARGET_CFLAGS -fno-stack-protector"
6726 # Set them to their new values for the tests below.
6728 CFLAGS="$TARGET_CFLAGS"
6729 CPPFLAGS="$TARGET_CPPFLAGS"
6730 LDFLAGS="$TARGET_LDFLAGS"
6732 # Defined in aclocal.m4.
6733 { echo "$as_me:$LINENO: checking whether
${OBJCOPY} works
for absolute addresses
" >&5
6734 echo $ECHO_N "checking whether
${OBJCOPY} works
for absolute addresses...
$ECHO_C" >&6; }
6735 if test "${grub_cv_prog_objcopy_absolute+set}" = set; then
6736 echo $ECHO_N "(cached
) $ECHO_C" >&6
6738 cat > conftest.c <<\EOF
6742 *((int *) 0x1000) = 2;
6746 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6747 (eval $ac_compile) 2>&5
6749 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6750 (exit $ac_status); } && test -s conftest.o; then :
6752 { { echo "$as_me:$LINENO: error
: ${CC-cc} cannot compile C
source code
" >&5
6753 echo "$as_me: error
: ${CC-cc} cannot compile C
source code
" >&2;}
6754 { (exit 1); exit 1; }; }
6756 grub_cv_prog_objcopy_absolute=yes
6757 for link_addr in 2000 8000 7C00; do
6758 if { ac_try='${CC-cc} ${CFLAGS} ${LDFLAGS} -nostdlib -Wl,-N -Wl,-Ttext -Wl,$link_addr conftest.o -o conftest.exec'
6759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6762 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6763 (exit $ac_status); }; }; then :
6765 { { echo "$as_me:$LINENO: error
: ${CC-cc} cannot link
at address
$link_addr" >&5
6766 echo "$as_me: error
: ${CC-cc} cannot link
at address
$link_addr" >&2;}
6767 { (exit 1); exit 1; }; }
6769 if { ac_try='${OBJCOPY-objcopy} --only-section=.text -O binary conftest.exec conftest'
6770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6773 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6774 (exit $ac_status); }; }; then :
6776 { { echo "$as_me:$LINENO: error
: ${OBJCOPY-objcopy} cannot create binary files
" >&5
6777 echo "$as_me: error
: ${OBJCOPY-objcopy} cannot create binary files
" >&2;}
6778 { (exit 1); exit 1; }; }
6780 if test ! -f conftest.old || { ac_try='cmp -s conftest.old conftest'
6781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6784 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6785 (exit $ac_status); }; }; then
6786 mv -f conftest conftest.old
6788 grub_cv_prog_objcopy_absolute=no
6795 { echo "$as_me:$LINENO: result
: $grub_cv_prog_objcopy_absolute" >&5
6796 echo "${ECHO_T}$grub_cv_prog_objcopy_absolute" >&6; }
6798 if test "x
$grub_cv_prog_objcopy_absolute" = xno; then
6799 { { echo "$as_me:$LINENO: error
: GRUB requires a working absolute objcopy
; upgrade your binutils
" >&5
6800 echo "$as_me: error
: GRUB requires a working absolute objcopy
; upgrade your binutils
" >&2;}
6801 { (exit 1); exit 1; }; }
6805 { echo "$as_me:$LINENO: checking
if C symbols get an underscore after compilation
" >&5
6806 echo $ECHO_N "checking
if C symbols get an underscore after compilation...
$ECHO_C" >&6; }
6807 if test "${grub_cv_asm_uscore+set}" = set; then
6808 echo $ECHO_N "(cached
) $ECHO_C" >&6
6810 cat > conftest.c <<\EOF
6819 if { ac_try='${CC-cc} ${CFLAGS} -S conftest.c'
6820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6823 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6824 (exit $ac_status); }; } && test -s conftest.s; then
6827 { { echo "$as_me:$LINENO: error
: ${CC-cc} failed to produce assembly code
" >&5
6828 echo "$as_me: error
: ${CC-cc} failed to produce assembly code
" >&2;}
6829 { (exit 1); exit 1; }; }
6832 if grep _func conftest.s >/dev/null 2>&1; then
6833 grub_cv_asm_uscore=yes
6835 grub_cv_asm_uscore=no
6842 if test "x
$grub_cv_asm_uscore" = xyes; then
6844 cat >>confdefs.h <<_ACEOF
6845 #define HAVE_ASM_USCORE $grub_cv_asm_uscore
6850 { echo "$as_me:$LINENO: result
: $grub_cv_asm_uscore" >&5
6851 echo "${ECHO_T}$grub_cv_asm_uscore" >&6; }
6853 if test "x
$target_cpu" = xi386; then
6855 { echo "$as_me:$LINENO: checking
if start is defined by the compiler
" >&5
6856 echo $ECHO_N "checking
if start is defined by the compiler...
$ECHO_C" >&6; }
6857 if test "${grub_cv_check_start_symbol+set}" = set; then
6858 echo $ECHO_N "(cached
) $ECHO_C" >&6
6860 cat >conftest.$ac_ext <<_ACEOF
6863 cat confdefs.h >>conftest.$ac_ext
6864 cat >>conftest.$ac_ext <<_ACEOF
6865 /* end confdefs.h. */
6875 rm -f conftest.$ac_objext conftest$ac_exeext
6876 if { (ac_try="$ac_link"
6878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6879 *) ac_try_echo=$ac_try;;
6881 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
6882 (eval "$ac_link") 2>conftest.er1
6884 grep -v '^ *+' conftest.er1 >conftest.err
6886 cat conftest.err >&5
6887 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6888 (exit $ac_status); } && {
6889 test -z "$ac_c_werror_flag" ||
6890 test ! -s conftest.err
6891 } && test -s conftest$ac_exeext &&
6892 $as_test_x conftest$ac_exeext; then
6893 grub_cv_check_start_symbol=yes
6895 echo "$as_me: failed program was
:" >&5
6896 sed 's/^/| /' conftest.$ac_ext >&5
6898 grub_cv_check_start_symbol=no
6901 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6902 conftest$ac_exeext conftest.$ac_ext
6906 { echo "$as_me:$LINENO: result
: $grub_cv_check_start_symbol" >&5
6907 echo "${ECHO_T}$grub_cv_check_start_symbol" >&6; }
6909 { echo "$as_me:$LINENO: checking
if _start is defined by the compiler
" >&5
6910 echo $ECHO_N "checking
if _start is defined by the compiler...
$ECHO_C" >&6; }
6911 if test "${grub_cv_check_uscore_start_symbol+set}" = set; then
6912 echo $ECHO_N "(cached
) $ECHO_C" >&6
6914 cat >conftest.$ac_ext <<_ACEOF
6917 cat confdefs.h >>conftest.$ac_ext
6918 cat >>conftest.$ac_ext <<_ACEOF
6919 /* end confdefs.h. */
6929 rm -f conftest.$ac_objext conftest$ac_exeext
6930 if { (ac_try="$ac_link"
6932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6933 *) ac_try_echo=$ac_try;;
6935 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
6936 (eval "$ac_link") 2>conftest.er1
6938 grep -v '^ *+' conftest.er1 >conftest.err
6940 cat conftest.err >&5
6941 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6942 (exit $ac_status); } && {
6943 test -z "$ac_c_werror_flag" ||
6944 test ! -s conftest.err
6945 } && test -s conftest$ac_exeext &&
6946 $as_test_x conftest$ac_exeext; then
6947 grub_cv_check_uscore_start_symbol=yes
6949 echo "$as_me: failed program was
:" >&5
6950 sed 's/^/| /' conftest.$ac_ext >&5
6952 grub_cv_check_uscore_start_symbol=no
6955 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6956 conftest$ac_exeext conftest.$ac_ext
6960 { echo "$as_me:$LINENO: result
: $grub_cv_check_uscore_start_symbol" >&5
6961 echo "${ECHO_T}$grub_cv_check_uscore_start_symbol" >&6; }
6966 if test "x
$grub_cv_check_start_symbol" = xyes; then
6967 cat >>confdefs.h <<\_ACEOF
6968 #define START_SYMBOL start
6971 elif test "x
$grub_cv_check_uscore_start_symbol" = xyes; then
6972 cat >>confdefs.h <<\_ACEOF
6973 #define START_SYMBOL _start
6977 { { echo "$as_me:$LINENO: error
: neither start nor _start is defined
" >&5
6978 echo "$as_me: error
: neither start nor _start is defined
" >&2;}
6979 { (exit 1); exit 1; }; }
6983 { echo "$as_me:$LINENO: checking
if __bss_start is defined by the compiler
" >&5
6984 echo $ECHO_N "checking
if __bss_start is defined by the compiler...
$ECHO_C" >&6; }
6985 if test "${grub_cv_check_uscore_uscore_bss_start_symbol+set}" = set; then
6986 echo $ECHO_N "(cached
) $ECHO_C" >&6
6988 cat >conftest.$ac_ext <<_ACEOF
6991 cat confdefs.h >>conftest.$ac_ext
6992 cat >>conftest.$ac_ext <<_ACEOF
6993 /* end confdefs.h. */
6998 asm ("incl __bss_start
")
7003 rm -f conftest.$ac_objext conftest$ac_exeext
7004 if { (ac_try="$ac_link"
7006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7007 *) ac_try_echo=$ac_try;;
7009 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7010 (eval "$ac_link") 2>conftest.er1
7012 grep -v '^ *+' conftest.er1 >conftest.err
7014 cat conftest.err >&5
7015 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7016 (exit $ac_status); } && {
7017 test -z "$ac_c_werror_flag" ||
7018 test ! -s conftest.err
7019 } && test -s conftest$ac_exeext &&
7020 $as_test_x conftest$ac_exeext; then
7021 grub_cv_check_uscore_uscore_bss_start_symbol=yes
7023 echo "$as_me: failed program was
:" >&5
7024 sed 's/^/| /' conftest.$ac_ext >&5
7026 grub_cv_check_uscore_uscore_bss_start_symbol=no
7029 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7030 conftest$ac_exeext conftest.$ac_ext
7034 { echo "$as_me:$LINENO: result
: $grub_cv_check_uscore_uscore_bss_start_symbol" >&5
7035 echo "${ECHO_T}$grub_cv_check_uscore_uscore_bss_start_symbol" >&6; }
7037 { echo "$as_me:$LINENO: checking
if edata is defined by the compiler
" >&5
7038 echo $ECHO_N "checking
if edata is defined by the compiler...
$ECHO_C" >&6; }
7039 if test "${grub_cv_check_edata_symbol+set}" = set; then
7040 echo $ECHO_N "(cached
) $ECHO_C" >&6
7042 cat >conftest.$ac_ext <<_ACEOF
7045 cat confdefs.h >>conftest.$ac_ext
7046 cat >>conftest.$ac_ext <<_ACEOF
7047 /* end confdefs.h. */
7057 rm -f conftest.$ac_objext conftest$ac_exeext
7058 if { (ac_try="$ac_link"
7060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7061 *) ac_try_echo=$ac_try;;
7063 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7064 (eval "$ac_link") 2>conftest.er1
7066 grep -v '^ *+' conftest.er1 >conftest.err
7068 cat conftest.err >&5
7069 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7070 (exit $ac_status); } && {
7071 test -z "$ac_c_werror_flag" ||
7072 test ! -s conftest.err
7073 } && test -s conftest$ac_exeext &&
7074 $as_test_x conftest$ac_exeext; then
7075 grub_cv_check_edata_symbol=yes
7077 echo "$as_me: failed program was
:" >&5
7078 sed 's/^/| /' conftest.$ac_ext >&5
7080 grub_cv_check_edata_symbol=no
7083 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7084 conftest$ac_exeext conftest.$ac_ext
7088 { echo "$as_me:$LINENO: result
: $grub_cv_check_edata_symbol" >&5
7089 echo "${ECHO_T}$grub_cv_check_edata_symbol" >&6; }
7091 { echo "$as_me:$LINENO: checking
if _edata is defined by the compiler
" >&5
7092 echo $ECHO_N "checking
if _edata is defined by the compiler...
$ECHO_C" >&6; }
7093 if test "${grub_cv_check_uscore_edata_symbol+set}" = set; then
7094 echo $ECHO_N "(cached
) $ECHO_C" >&6
7096 cat >conftest.$ac_ext <<_ACEOF
7099 cat confdefs.h >>conftest.$ac_ext
7100 cat >>conftest.$ac_ext <<_ACEOF
7101 /* end confdefs.h. */
7111 rm -f conftest.$ac_objext conftest$ac_exeext
7112 if { (ac_try="$ac_link"
7114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7115 *) ac_try_echo=$ac_try;;
7117 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7118 (eval "$ac_link") 2>conftest.er1
7120 grep -v '^ *+' conftest.er1 >conftest.err
7122 cat conftest.err >&5
7123 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7124 (exit $ac_status); } && {
7125 test -z "$ac_c_werror_flag" ||
7126 test ! -s conftest.err
7127 } && test -s conftest$ac_exeext &&
7128 $as_test_x conftest$ac_exeext; then
7129 grub_cv_check_uscore_edata_symbol=yes
7131 echo "$as_me: failed program was
:" >&5
7132 sed 's/^/| /' conftest.$ac_ext >&5
7134 grub_cv_check_uscore_edata_symbol=no
7137 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7138 conftest$ac_exeext conftest.$ac_ext
7142 { echo "$as_me:$LINENO: result
: $grub_cv_check_uscore_edata_symbol" >&5
7143 echo "${ECHO_T}$grub_cv_check_uscore_edata_symbol" >&6; }
7148 if test "x
$grub_cv_check_uscore_uscore_bss_start_symbol" = xyes; then
7149 cat >>confdefs.h <<\_ACEOF
7150 #define BSS_START_SYMBOL __bss_start
7153 elif test "x
$grub_cv_check_edata_symbol" = xyes; then
7154 cat >>confdefs.h <<\_ACEOF
7155 #define BSS_START_SYMBOL edata
7158 elif test "x
$grub_cv_check_uscore_edata_symbol" = xyes; then
7159 cat >>confdefs.h <<\_ACEOF
7160 #define BSS_START_SYMBOL _edata
7164 { { echo "$as_me:$LINENO: error
: none of __bss_start
, edata or _edata is defined
" >&5
7165 echo "$as_me: error
: none of __bss_start
, edata or _edata is defined
" >&2;}
7166 { (exit 1); exit 1; }; }
7170 { echo "$as_me:$LINENO: checking
if end is defined by the compiler
" >&5
7171 echo $ECHO_N "checking
if end is defined by the compiler...
$ECHO_C" >&6; }
7172 if test "${grub_cv_check_end_symbol+set}" = set; then
7173 echo $ECHO_N "(cached
) $ECHO_C" >&6
7175 cat >conftest.$ac_ext <<_ACEOF
7178 cat confdefs.h >>conftest.$ac_ext
7179 cat >>conftest.$ac_ext <<_ACEOF
7180 /* end confdefs.h. */
7190 rm -f conftest.$ac_objext conftest$ac_exeext
7191 if { (ac_try="$ac_link"
7193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7194 *) ac_try_echo=$ac_try;;
7196 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7197 (eval "$ac_link") 2>conftest.er1
7199 grep -v '^ *+' conftest.er1 >conftest.err
7201 cat conftest.err >&5
7202 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7203 (exit $ac_status); } && {
7204 test -z "$ac_c_werror_flag" ||
7205 test ! -s conftest.err
7206 } && test -s conftest$ac_exeext &&
7207 $as_test_x conftest$ac_exeext; then
7208 grub_cv_check_end_symbol=yes
7210 echo "$as_me: failed program was
:" >&5
7211 sed 's/^/| /' conftest.$ac_ext >&5
7213 grub_cv_check_end_symbol=no
7216 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7217 conftest$ac_exeext conftest.$ac_ext
7221 { echo "$as_me:$LINENO: result
: $grub_cv_check_end_symbol" >&5
7222 echo "${ECHO_T}$grub_cv_check_end_symbol" >&6; }
7224 { echo "$as_me:$LINENO: checking
if _end is defined by the compiler
" >&5
7225 echo $ECHO_N "checking
if _end is defined by the compiler...
$ECHO_C" >&6; }
7226 if test "${grub_cv_check_uscore_end_symbol+set}" = set; then
7227 echo $ECHO_N "(cached
) $ECHO_C" >&6
7229 cat >conftest.$ac_ext <<_ACEOF
7232 cat confdefs.h >>conftest.$ac_ext
7233 cat >>conftest.$ac_ext <<_ACEOF
7234 /* end confdefs.h. */
7244 rm -f conftest.$ac_objext conftest$ac_exeext
7245 if { (ac_try="$ac_link"
7247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7248 *) ac_try_echo=$ac_try;;
7250 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7251 (eval "$ac_link") 2>conftest.er1
7253 grep -v '^ *+' conftest.er1 >conftest.err
7255 cat conftest.err >&5
7256 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7257 (exit $ac_status); } && {
7258 test -z "$ac_c_werror_flag" ||
7259 test ! -s conftest.err
7260 } && test -s conftest$ac_exeext &&
7261 $as_test_x conftest$ac_exeext; then
7262 grub_cv_check_uscore_end_symbol=yes
7264 echo "$as_me: failed program was
:" >&5
7265 sed 's/^/| /' conftest.$ac_ext >&5
7267 grub_cv_check_uscore_end_symbol=no
7270 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7271 conftest$ac_exeext conftest.$ac_ext
7275 { echo "$as_me:$LINENO: result
: $grub_cv_check_uscore_end_symbol" >&5
7276 echo "${ECHO_T}$grub_cv_check_uscore_end_symbol" >&6; }
7281 if test "x
$grub_cv_check_end_symbol" = xyes; then
7282 cat >>confdefs.h <<\_ACEOF
7283 #define END_SYMBOL end
7286 elif test "x
$grub_cv_check_uscore_end_symbol" = xyes; then
7287 cat >>confdefs.h <<\_ACEOF
7288 #define END_SYMBOL _end
7292 { { echo "$as_me:$LINENO: error
: neither end nor _end is defined
" >&5
7293 echo "$as_me: error
: neither end nor _end is defined
" >&2;}
7294 { (exit 1); exit 1; }; }
7298 { echo "$as_me:$LINENO: checking whether addr32 must be
in the same line as the instruction
" >&5
7299 echo $ECHO_N "checking whether addr32 must be
in the same line as the instruction...
$ECHO_C" >&6; }
7300 if test "${grub_cv_i386_asm_prefix_requirement+set}" = set; then
7301 echo $ECHO_N "(cached
) $ECHO_C" >&6
7303 cat > conftest.s <<\EOF
7305 l1: addr32 movb %al, l1
7308 if { ac_try='${CC-cc} ${CFLAGS} -c conftest.s'
7309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7312 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7313 (exit $ac_status); }; } && test -s conftest.o; then
7314 grub_cv_i386_asm_prefix_requirement=yes
7316 grub_cv_i386_asm_prefix_requirement=no
7323 if test "x
$grub_cv_i386_asm_prefix_requirement" = xyes; then
7324 grub_tmp_addr32="addr32
"
7325 grub_tmp_data32="data32
"
7327 grub_tmp_addr32="addr32
;"
7328 grub_tmp_data32="data32
;"
7332 cat >>confdefs.h <<_ACEOF
7333 #define ADDR32 $grub_tmp_addr32
7337 cat >>confdefs.h <<_ACEOF
7338 #define DATA32 $grub_tmp_data32
7342 { echo "$as_me:$LINENO: result
: $grub_cv_i386_asm_prefix_requirement" >&5
7343 echo "${ECHO_T}$grub_cv_i386_asm_prefix_requirement" >&6; }
7346 { echo "$as_me:$LINENO: checking
for .code16 addr32 assembler support
" >&5
7347 echo $ECHO_N "checking
for .code16 addr32 assembler support...
$ECHO_C" >&6; }
7348 if test "${grub_cv_i386_asm_addr32+set}" = set; then
7349 echo $ECHO_N "(cached
) $ECHO_C" >&6
7351 cat > conftest.s.in <<\EOF
7353 l1: @ADDR32@ movb %al, l1
7356 if test "x
$grub_cv_i386_asm_prefix_requirement" = xyes; then
7357 sed -e s/@ADDR32@/addr32/ < conftest.s.in > conftest.s
7359 sed -e s/@ADDR32@/addr32\;/ < conftest.s.in > conftest.s
7362 if { ac_try='${CC-cc} ${CFLAGS} -c conftest.s'
7363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7366 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7367 (exit $ac_status); }; } && test -s conftest.o; then
7368 grub_cv_i386_asm_addr32=yes
7370 grub_cv_i386_asm_addr32=no
7377 { echo "$as_me:$LINENO: result
: $grub_cv_i386_asm_addr32" >&5
7378 echo "${ECHO_T}$grub_cv_i386_asm_addr32" >&6; }
7380 { echo "$as_me:$LINENO: checking whether an absolute indirect
call
/jump must not be prefixed with an asterisk
" >&5
7381 echo $ECHO_N "checking whether an absolute indirect
call
/jump must not be prefixed with an asterisk...
$ECHO_C" >&6; }
7382 if test "${grub_cv_i386_asm_absolute_without_asterisk+set}" = set; then
7383 echo $ECHO_N "(cached
) $ECHO_C" >&6
7385 cat > conftest.s <<\EOF
7392 if { ac_try='${CC-cc} ${CFLAGS} -c conftest.s'
7393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7396 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7397 (exit $ac_status); }; } && test -s conftest.o; then
7398 grub_cv_i386_asm_absolute_without_asterisk=no
7400 grub_cv_i386_asm_absolute_without_asterisk=yes
7407 if test "x
$grub_cv_i386_asm_absolute_without_asterisk" = xyes; then
7409 cat >>confdefs.h <<\_ACEOF
7410 #define ABSOLUTE_WITHOUT_ASTERISK 1
7415 { echo "$as_me:$LINENO: result
: $grub_cv_i386_asm_absolute_without_asterisk" >&5
7416 echo "${ECHO_T}$grub_cv_i386_asm_absolute_without_asterisk" >&6; }
7418 { echo "$as_me:$LINENO: checking
if GCC has the regparm
=3 bug
" >&5
7419 echo $ECHO_N "checking
if GCC has the regparm
=3 bug...
$ECHO_C" >&6; }
7420 if test "${grub_cv_i386_check_nested_functions+set}" = set; then
7421 echo $ECHO_N "(cached
) $ECHO_C" >&6
7423 if test "$cross_compiling" = yes; then
7424 { { echo "$as_me:$LINENO: error
: cannot run
test program
while cross compiling
7425 See \
`config.log' for more details." >&5
7426 echo "$as_me: error: cannot run test program while cross compiling
7427 See \`config.log
' for more details." >&2;}
7428 { (exit 1); exit 1; }; }
7430 cat >conftest.$ac_ext <<_ACEOF
7433 cat confdefs.h >>conftest.$ac_ext
7434 cat >>conftest.$ac_ext <<_ACEOF
7435 /* end confdefs.h. */
7444 testfunc (int __attribute__ ((__regparm__ (3))) (*hook) (int a, int b, int *c))
7449 return hook (a, b, &c);
7455 int __attribute__ ((__regparm__ (3))) nestedfunc (int a, int b, int *c)
7457 return a == b && test (c);
7459 return testfunc (nestedfunc) ? 0 : 1;
7463 rm -f conftest$ac_exeext
7464 if { (ac_try="$ac_link"
7466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7467 *) ac_try_echo=$ac_try;;
7469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7470 (eval "$ac_link") 2>&5
7472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7473 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
7474 { (case "(($ac_try" in
7475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7476 *) ac_try_echo=$ac_try;;
7478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7479 (eval "$ac_try") 2>&5
7481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7482 (exit $ac_status); }; }; then
7483 grub_cv_i386_check_nested_functions=no
7485 echo "$as_me: program exited with status $ac_status" >&5
7486 echo "$as_me: failed program was:" >&5
7487 sed 's
/^
/|
/' conftest.$ac_ext >&5
7490 grub_cv_i386_check_nested_functions=yes
7492 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7499 { echo "$as_me:$LINENO: result: $grub_cv_i386_check_nested_functions" >&5
7500 echo "${ECHO_T}$grub_cv_i386_check_nested_functions" >&6; }
7502 if test "x$grub_cv_i386_check_nested_functions" = xyes; then
7504 cat >>confdefs.h <<\_ACEOF
7505 #define NESTED_FUNC_ATTR __attribute__ ((__regparm__ (1)))
7510 cat >>confdefs.h <<\_ACEOF
7511 #define NESTED_FUNC_ATTR __attribute__ ((__regparm__ (1)))
7518 cat >>confdefs.h <<\_ACEOF
7519 #define NESTED_FUNC_ATTR
7524 # Restore the flags.
7526 CFLAGS="$tmp_CFLAGS"
7527 CPPFLAGS="$tmp_CPPFLAGS"
7528 LDFLAGS="$tmp_LDFLAGS"
7532 # Check for options.
7535 # Memory manager debugging.
7536 # Check whether --enable-mm-debug was given.
7537 if test "${enable_mm_debug+set}" = set; then
7538 enableval=$enable_mm_debug;
7539 cat >>confdefs.h <<\_ACEOF
7546 # Check whether --enable-grub-emu was given.
7547 if test "${enable_grub_emu+set}" = set; then
7548 enableval=$enable_grub_emu;
7551 if [ x"$enable_grub_emu" = xyes ]; then
7552 # Check for curses libraries.
7553 { echo "$as_me:$LINENO: checking for wgetch in -lncurses" >&5
7554 echo $ECHO_N "checking for wgetch in -lncurses... $ECHO_C" >&6; }
7555 if test "${ac_cv_lib_ncurses_wgetch+set}" = set; then
7556 echo $ECHO_N "(cached) $ECHO_C" >&6
7558 ac_check_lib_save_LIBS=$LIBS
7559 LIBS="-lncurses $LIBS"
7560 cat >conftest.$ac_ext <<_ACEOF
7563 cat confdefs.h >>conftest.$ac_ext
7564 cat >>conftest.$ac_ext <<_ACEOF
7565 /* end confdefs.h. */
7567 /* Override any GCC internal prototype to avoid an error.
7568 Use char because int might match the return type of a GCC
7569 builtin and then its argument prototype would still apply. */
7582 rm -f conftest.$ac_objext conftest$ac_exeext
7583 if { (ac_try="$ac_link"
7585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7586 *) ac_try_echo=$ac_try;;
7588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7589 (eval "$ac_link") 2>conftest.er1
7591 grep -v '^
*+' conftest.er1 >conftest.err
7593 cat conftest.err >&5
7594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7595 (exit $ac_status); } && {
7596 test -z "$ac_c_werror_flag" ||
7597 test ! -s conftest.err
7598 } && test -s conftest$ac_exeext &&
7599 $as_test_x conftest$ac_exeext; then
7600 ac_cv_lib_ncurses_wgetch=yes
7602 echo "$as_me: failed program was:" >&5
7603 sed 's
/^
/|
/' conftest.$ac_ext >&5
7605 ac_cv_lib_ncurses_wgetch=no
7608 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7609 conftest$ac_exeext conftest.$ac_ext
7610 LIBS=$ac_check_lib_save_LIBS
7612 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_wgetch" >&5
7613 echo "${ECHO_T}$ac_cv_lib_ncurses_wgetch" >&6; }
7614 if test $ac_cv_lib_ncurses_wgetch = yes; then
7615 LIBCURSES="-lncurses"
7617 { echo "$as_me:$LINENO: checking for wgetch in -lcurses" >&5
7618 echo $ECHO_N "checking for wgetch in -lcurses... $ECHO_C" >&6; }
7619 if test "${ac_cv_lib_curses_wgetch+set}" = set; then
7620 echo $ECHO_N "(cached) $ECHO_C" >&6
7622 ac_check_lib_save_LIBS=$LIBS
7623 LIBS="-lcurses $LIBS"
7624 cat >conftest.$ac_ext <<_ACEOF
7627 cat confdefs.h >>conftest.$ac_ext
7628 cat >>conftest.$ac_ext <<_ACEOF
7629 /* end confdefs.h. */
7631 /* Override any GCC internal prototype to avoid an error.
7632 Use char because int might match the return type of a GCC
7633 builtin and then its argument prototype would still apply. */
7646 rm -f conftest.$ac_objext conftest$ac_exeext
7647 if { (ac_try="$ac_link"
7649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7650 *) ac_try_echo=$ac_try;;
7652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7653 (eval "$ac_link") 2>conftest.er1
7655 grep -v '^
*+' conftest.er1 >conftest.err
7657 cat conftest.err >&5
7658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7659 (exit $ac_status); } && {
7660 test -z "$ac_c_werror_flag" ||
7661 test ! -s conftest.err
7662 } && test -s conftest$ac_exeext &&
7663 $as_test_x conftest$ac_exeext; then
7664 ac_cv_lib_curses_wgetch=yes
7666 echo "$as_me: failed program was:" >&5
7667 sed 's
/^
/|
/' conftest.$ac_ext >&5
7669 ac_cv_lib_curses_wgetch=no
7672 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7673 conftest$ac_exeext conftest.$ac_ext
7674 LIBS=$ac_check_lib_save_LIBS
7676 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_wgetch" >&5
7677 echo "${ECHO_T}$ac_cv_lib_curses_wgetch" >&6; }
7678 if test $ac_cv_lib_curses_wgetch = yes; then
7679 LIBCURSES="-lcurses"
7681 { { echo "$as_me:$LINENO: error: (n)curses libraries are required to build \`grub-emu'" >&5
7682 echo "$as_me: error
: (n
)curses libraries are required to build \
`grub-emu'" >&2;}
7683 { (exit 1); exit 1; }; }
7690 # Check for headers.
7692 for ac_header in ncurses/curses.h
7694 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
7695 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7696 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7697 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7698 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7699 echo $ECHO_N "(cached) $ECHO_C" >&6
7701 ac_res=`eval echo '${'$as_ac_Header'}'`
7702 { echo "$as_me:$LINENO: result: $ac_res" >&5
7703 echo "${ECHO_T}$ac_res" >&6; }
7705 # Is the header compilable?
7706 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7707 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7708 cat >conftest.$ac_ext <<_ACEOF
7711 cat confdefs.h >>conftest.$ac_ext
7712 cat >>conftest.$ac_ext <<_ACEOF
7713 /* end confdefs.h. */
7714 $ac_includes_default
7715 #include <$ac_header>
7717 rm -f conftest.$ac_objext
7718 if { (ac_try="$ac_compile"
7720 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7721 *) ac_try_echo
=$ac_try;;
7723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7724 (eval "$ac_compile") 2>conftest.er1
7726 grep -v '^ *+' conftest.er1
>conftest.err
7728 cat conftest.err
>&5
7729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7730 (exit $ac_status); } && {
7731 test -z "$ac_c_werror_flag" ||
7732 test ! -s conftest.err
7733 } && test -s conftest.
$ac_objext; then
7734 ac_header_compiler
=yes
7736 echo "$as_me: failed program was:" >&5
7737 sed 's/^/| /' conftest.
$ac_ext >&5
7739 ac_header_compiler
=no
7742 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7743 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7744 echo "${ECHO_T}$ac_header_compiler" >&6; }
7746 # Is the header present?
7747 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7748 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7749 cat >conftest.
$ac_ext <<_ACEOF
7752 cat confdefs.h
>>conftest.
$ac_ext
7753 cat >>conftest.
$ac_ext <<_ACEOF
7754 /* end confdefs.h. */
7755 #include <$ac_header>
7757 if { (ac_try
="$ac_cpp conftest.$ac_ext"
7759 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7760 *) ac_try_echo=$ac_try;;
7762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7763 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7765 grep -v '^ *+' conftest.er1 >conftest.err
7767 cat conftest.err >&5
7768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7769 (exit $ac_status); } >/dev/null && {
7770 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7771 test ! -s conftest.err
7773 ac_header_preproc=yes
7775 echo "$as_me: failed program was:" >&5
7776 sed 's/^/| /' conftest.$ac_ext >&5
7778 ac_header_preproc=no
7781 rm -f conftest.err conftest.$ac_ext
7782 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7783 echo "${ECHO_T}$ac_header_preproc" >&6; }
7785 # So? What about this header?
7786 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7788 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7789 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7790 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7791 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7792 ac_header_preproc=yes
7795 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7796 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7797 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7798 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7799 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7800 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7801 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7802 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7803 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7804 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7805 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7806 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7808 ## ------------------------------- ##
7809 ## Report this to bug-grub@gnu.org ##
7810 ## ------------------------------- ##
7812 ) | sed "s/^/$as_me: WARNING: /" >&2
7815 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7816 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7817 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7818 echo $ECHO_N "(cached) $ECHO_C" >&6
7820 eval "$as_ac_Header=\$ac_header_preproc"
7822 ac_res=`eval echo '${'$as_ac_Header'}'`
7823 { echo "$as_me:$LINENO: result: $ac_res" >&5
7824 echo "${ECHO_T}$ac_res" >&6; }
7827 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7828 cat >>confdefs.h <<_ACEOF
7829 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
7834 for ac_header in ncurses.h
7836 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
7837 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7838 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7839 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7840 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7841 echo $ECHO_N "(cached) $ECHO_C" >&6
7843 ac_res=`eval echo '${'$as_ac_Header'}'`
7844 { echo "$as_me:$LINENO: result: $ac_res" >&5
7845 echo "${ECHO_T}$ac_res" >&6; }
7847 # Is the header compilable?
7848 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7849 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7850 cat >conftest.$ac_ext <<_ACEOF
7853 cat confdefs.h >>conftest.$ac_ext
7854 cat >>conftest.$ac_ext <<_ACEOF
7855 /* end confdefs.h. */
7856 $ac_includes_default
7857 #include <$ac_header>
7859 rm -f conftest.$ac_objext
7860 if { (ac_try="$ac_compile"
7862 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7863 *) ac_try_echo
=$ac_try;;
7865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7866 (eval "$ac_compile") 2>conftest.er1
7868 grep -v '^ *+' conftest.er1
>conftest.err
7870 cat conftest.err
>&5
7871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7872 (exit $ac_status); } && {
7873 test -z "$ac_c_werror_flag" ||
7874 test ! -s conftest.err
7875 } && test -s conftest.
$ac_objext; then
7876 ac_header_compiler
=yes
7878 echo "$as_me: failed program was:" >&5
7879 sed 's/^/| /' conftest.
$ac_ext >&5
7881 ac_header_compiler
=no
7884 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7885 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7886 echo "${ECHO_T}$ac_header_compiler" >&6; }
7888 # Is the header present?
7889 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7890 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7891 cat >conftest.
$ac_ext <<_ACEOF
7894 cat confdefs.h
>>conftest.
$ac_ext
7895 cat >>conftest.
$ac_ext <<_ACEOF
7896 /* end confdefs.h. */
7897 #include <$ac_header>
7899 if { (ac_try
="$ac_cpp conftest.$ac_ext"
7901 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7902 *) ac_try_echo=$ac_try;;
7904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7905 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7907 grep -v '^ *+' conftest.er1 >conftest.err
7909 cat conftest.err >&5
7910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7911 (exit $ac_status); } >/dev/null && {
7912 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7913 test ! -s conftest.err
7915 ac_header_preproc=yes
7917 echo "$as_me: failed program was:" >&5
7918 sed 's/^/| /' conftest.$ac_ext >&5
7920 ac_header_preproc=no
7923 rm -f conftest.err conftest.$ac_ext
7924 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7925 echo "${ECHO_T}$ac_header_preproc" >&6; }
7927 # So? What about this header?
7928 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7930 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7931 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7932 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7933 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7934 ac_header_preproc=yes
7937 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7938 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7939 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7940 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7941 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7942 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7943 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7944 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7945 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7946 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7947 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7948 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7950 ## ------------------------------- ##
7951 ## Report this to bug-grub@gnu.org ##
7952 ## ------------------------------- ##
7954 ) | sed "s/^/$as_me: WARNING: /" >&2
7957 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7958 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7959 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7960 echo $ECHO_N "(cached) $ECHO_C" >&6
7962 eval "$as_ac_Header=\$ac_header_preproc"
7964 ac_res=`eval echo '${'$as_ac_Header'}'`
7965 { echo "$as_me:$LINENO: result: $ac_res" >&5
7966 echo "${ECHO_T}$ac_res" >&6; }
7969 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7970 cat >>confdefs.h <<_ACEOF
7971 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
7976 for ac_header in curses.h
7978 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
7979 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7980 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7981 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7982 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7983 echo $ECHO_N "(cached) $ECHO_C" >&6
7985 ac_res=`eval echo '${'$as_ac_Header'}'`
7986 { echo "$as_me:$LINENO: result: $ac_res" >&5
7987 echo "${ECHO_T}$ac_res" >&6; }
7989 # Is the header compilable?
7990 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7991 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7992 cat >conftest.$ac_ext <<_ACEOF
7995 cat confdefs.h >>conftest.$ac_ext
7996 cat >>conftest.$ac_ext <<_ACEOF
7997 /* end confdefs.h. */
7998 $ac_includes_default
7999 #include <$ac_header>
8001 rm -f conftest.$ac_objext
8002 if { (ac_try="$ac_compile"
8004 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8005 *) ac_try_echo
=$ac_try;;
8007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8008 (eval "$ac_compile") 2>conftest.er1
8010 grep -v '^ *+' conftest.er1
>conftest.err
8012 cat conftest.err
>&5
8013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8014 (exit $ac_status); } && {
8015 test -z "$ac_c_werror_flag" ||
8016 test ! -s conftest.err
8017 } && test -s conftest.
$ac_objext; then
8018 ac_header_compiler
=yes
8020 echo "$as_me: failed program was:" >&5
8021 sed 's/^/| /' conftest.
$ac_ext >&5
8023 ac_header_compiler
=no
8026 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8027 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8028 echo "${ECHO_T}$ac_header_compiler" >&6; }
8030 # Is the header present?
8031 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8032 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8033 cat >conftest.
$ac_ext <<_ACEOF
8036 cat confdefs.h
>>conftest.
$ac_ext
8037 cat >>conftest.
$ac_ext <<_ACEOF
8038 /* end confdefs.h. */
8039 #include <$ac_header>
8041 if { (ac_try
="$ac_cpp conftest.$ac_ext"
8043 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8044 *) ac_try_echo=$ac_try;;
8046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8047 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8049 grep -v '^ *+' conftest.er1 >conftest.err
8051 cat conftest.err >&5
8052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8053 (exit $ac_status); } >/dev/null && {
8054 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8055 test ! -s conftest.err
8057 ac_header_preproc=yes
8059 echo "$as_me: failed program was:" >&5
8060 sed 's/^/| /' conftest.$ac_ext >&5
8062 ac_header_preproc=no
8065 rm -f conftest.err conftest.$ac_ext
8066 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8067 echo "${ECHO_T}$ac_header_preproc" >&6; }
8069 # So? What about this header?
8070 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8072 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8073 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8074 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8075 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8076 ac_header_preproc=yes
8079 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8080 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8081 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8082 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8083 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8084 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8085 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8086 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8087 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8088 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8089 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8090 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8092 ## ------------------------------- ##
8093 ## Report this to bug-grub@gnu.org ##
8094 ## ------------------------------- ##
8096 ) | sed "s/^/$as_me: WARNING: /" >&2
8099 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8100 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8101 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8102 echo $ECHO_N "(cached) $ECHO_C" >&6
8104 eval "$as_ac_Header=\$ac_header_preproc"
8106 ac_res=`eval echo '${'$as_ac_Header'}'`
8107 { echo "$as_me:$LINENO: result: $ac_res" >&5
8108 echo "${ECHO_T}$ac_res" >&6; }
8111 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8112 cat >>confdefs.h <<_ACEOF
8113 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
8117 { { echo "$as_me:$LINENO: error: (n)curses header files are required to build \`grub-emu
'" >&5
8118 echo "$as_me: error: (n)curses header files are required to build \`grub-emu'" >&2;}
8119 { (exit 1); exit 1; }; }
8135 # Check whether --enable-grub-fstest was given.
8136 if test "${enable_grub_fstest+set}" = set; then
8137 enableval=$enable_grub_fstest;
8143 ac_config_links="$ac_config_links include
/grub
/cpu
:include
/grub
/$target_cpu include
/grub
/machine
:include
/grub
/$target_cpu/$platform"
8145 ac_config_files="$ac_config_files Makefile gensymlist.sh genkernsyms.sh
"
8147 ac_config_files="$ac_config_files stamp-h
"
8149 cat >confcache <<\_ACEOF
8150 # This file is a shell script that caches the results of configure
8151 # tests run on this system so they can be shared between configure
8152 # scripts and configure runs, see configure's option --config-cache.
8153 # It is not useful on other systems. If it contains results you don't
8154 # want to keep, you may remove or edit it.
8156 # config.status only pays attention to the cache file if you give it
8157 # the --recheck option to rerun configure.
8159 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8160 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8165 # The following way of writing the cache mishandles newlines in values,
8166 # but we know of no workaround that is simple, portable, and efficient.
8167 # So, we kill variables containing newlines.
8168 # Ultrix sh set writes to stderr and can't be redirected directly,
8169 # and sets the high bit in the cache file unless we assign to the vars.
8171 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
8172 eval ac_val=\$$ac_var
8176 *_cv_*) { echo "$as_me:$LINENO: WARNING
: Cache variable
$ac_var contains a newline.
" >&5
8177 echo "$as_me: WARNING
: Cache variable
$ac_var contains a newline.
" >&2;} ;;
8180 _ | IFS | as_nl) ;; #(
8181 *) $as_unset $ac_var ;;
8187 case $as_nl`(ac_space=' '; set) 2>&1` in #(
8188 *${as_nl}ac_space=\ *)
8189 # `set' does not quote correctly, so add quotes (double-quote
8190 # substitution turns \\\\ into \\, and sed turns \\ into \).
8193 s
/^
\\([_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*\\)=\\(.
*\\)/\\1='\\2'/p
"
8196 # `set' quotes correctly as required by POSIX, so do not add quotes.
8197 sed -n "/^
[_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*=/p
"
8206 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8208 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8210 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
8211 if test -w "$cache_file"; then
8212 test "x
$cache_file" != "x
/dev
/null
" &&
8213 { echo "$as_me:$LINENO: updating cache
$cache_file" >&5
8214 echo "$as_me: updating cache
$cache_file" >&6;}
8215 cat confcache >$cache_file
8217 { echo "$as_me:$LINENO: not updating unwritable cache
$cache_file" >&5
8218 echo "$as_me: not updating unwritable cache
$cache_file" >&6;}
8223 test "x
$prefix" = xNONE && prefix=$ac_default_prefix
8224 # Let make expand exec_prefix.
8225 test "x
$exec_prefix" = xNONE && exec_prefix='${prefix}'
8227 DEFS=-DHAVE_CONFIG_H
8231 for ac_i in : $LIBOBJS; do test "x
$ac_i" = x: && continue
8232 # 1. Remove the extension, and $U if already installed.
8233 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
8234 ac_i=`echo "$ac_i" | sed "$ac_script"`
8235 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
8236 # will be set to the directory where LIBOBJS objects are built.
8237 ac_libobjs="$ac_libobjs \
${LIBOBJDIR}$ac_i\
$U.
$ac_objext"
8238 ac_ltlibobjs="$ac_ltlibobjs \
${LIBOBJDIR}$ac_i"'$U.lo'
8242 LTLIBOBJS=$ac_ltlibobjs
8246 : ${CONFIG_STATUS=./config.status}
8247 ac_clean_files_save=$ac_clean_files
8248 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8249 { echo "$as_me:$LINENO: creating
$CONFIG_STATUS" >&5
8250 echo "$as_me: creating
$CONFIG_STATUS" >&6;}
8251 cat >$CONFIG_STATUS <<_ACEOF
8253 # Generated by $as_me.
8254 # Run this file to recreate the current configuration.
8255 # Compiler output produced by configure, useful for debugging
8256 # configure, is in config.log if it exists.
8261 SHELL=\${CONFIG_SHELL-$SHELL}
8264 cat >>$CONFIG_STATUS <<\_ACEOF
8265 ## --------------------- ##
8266 ## M4sh Initialization. ##
8267 ## --------------------- ##
8269 # Be more Bourne compatible
8270 DUALCASE=1; export DUALCASE # for MKS sh
8271 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
8274 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
8275 # is contrary to our usage. Disable this feature.
8276 alias -g '${1+"$@"}'='"$@
"'
8277 setopt NO_GLOB_SUBST
8279 case `(set -o) 2>/dev/null` in
8280 *posix*) set -o posix ;;
8289 # Avoid depending upon Character Ranges.
8290 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8291 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8292 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8293 as_cr_digits='0123456789'
8294 as_cr_alnum=$as_cr_Letters$as_cr_digits
8296 # The user is always right.
8297 if test "${PATH_SEPARATOR+set}" != set; then
8298 echo "#! /bin/sh" >conf$$.sh
8299 echo "exit 0" >>conf$$.sh
8301 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
8309 # Support unset when possible.
8310 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
8318 # We need space, tab and new line, in precisely that order. Quoting is
8319 # there to prevent editors from complaining about space-tab.
8320 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
8321 # splitting by setting IFS to empty value.)
8326 # Find who we are. Look in the path if we contain no directory separator.
8328 *[\\/]* ) as_myself
=$0 ;;
8329 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8333 test -z "$as_dir" && as_dir
=.
8334 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
8340 # We did not find ourselves, most probably we were run as `sh COMMAND'
8341 # in which case we are not to be found in the path.
8342 if test "x$as_myself" = x
; then
8345 if test ! -f "$as_myself"; then
8346 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
8347 { (exit 1); exit 1; }
8350 # Work around bugs in pre-3.0 UWIN ksh.
8351 for as_var
in ENV MAIL MAILPATH
8352 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
8360 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
8361 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
8362 LC_TELEPHONE LC_TIME
8364 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
8365 eval $as_var=C
; export $as_var
8367 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
8371 # Required to use basename.
8372 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
8373 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
8379 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
8380 as_basename
=basename
8386 # Name of the executable.
8387 as_me
=`$as_basename -- "$0" ||
8388 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8389 X"$0" : 'X\(//\)$' \| \
8390 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
8392 sed '/^.*\/\([^/][^/]*\)\/*$/{
8413 test "x$as_lineno_1" != "x$as_lineno_2" &&
8414 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
8416 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
8417 # uniformly replaced by the line number. The first 'sed' inserts a
8418 # line-number line after each line using $LINENO; the second 'sed'
8419 # does the real work. The second script uses 'N' to pair each
8420 # line-number line with the line containing $LINENO, and appends
8421 # trailing '-' during substitution so that $LINENO is not a special
8423 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
8424 # scripts with optimization help from Paolo Bonzini. Blame Lee
8425 # E. McMahon (1931-1989) for sed's syntax. :-)
8437 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
8441 chmod +x
"$as_me.lineno" ||
8442 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
8443 { (exit 1); exit 1; }; }
8445 # Don't try to exec as it changes $[0], causing all sort of problems
8446 # (the dirname of $[0] is not the place where we might find the
8447 # original and so on. Autoconf is especially sensitive to this).
8449 # Exit status is that of the last command.
8454 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
8460 ECHO_C
= ECHO_N
= ECHO_T
=
8463 case `echo 'x\c'` in
8464 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
8471 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
8472 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
8478 rm -f conf$$ conf$$.exe conf$$.
file
8479 if test -d conf$$.dir
; then
8480 rm -f conf$$.dir
/conf$$.
file
8486 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
8488 # ... but there are two gotchas:
8489 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
8490 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
8491 # In both cases, we have to default to `cp -p'.
8492 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
8494 elif ln conf$$.
file conf$$
2>/dev
/null
; then
8499 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
8500 rmdir conf$$.dir
2>/dev
/null
8502 if mkdir
-p .
2>/dev
/null
; then
8505 test -d .
/-p && rmdir .
/-p
8509 if test -x / >/dev
/null
2>&1; then
8512 if ls -dL / >/dev
/null
2>&1; then
8519 if test -d "$1"; then
8525 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
8526 ???[sx]*):;;*)false;;esac;fi
8530 as_executable_p
=$as_test_x
8532 # Sed expression to map a string onto a valid CPP name.
8533 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8535 # Sed expression to map a string onto a valid variable name.
8536 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8541 # Save the log message, to keep $[0] and so on meaningful, and to
8542 # report actual input values of CONFIG_FILES etc. instead of their
8543 # values after options handling.
8545 This file was extended by GRUB $as_me 1.96, which was
8546 generated by GNU Autoconf 2.61. Invocation command line was
8548 CONFIG_FILES = $CONFIG_FILES
8549 CONFIG_HEADERS = $CONFIG_HEADERS
8550 CONFIG_LINKS = $CONFIG_LINKS
8551 CONFIG_COMMANDS = $CONFIG_COMMANDS
8554 on `(hostname || uname -n) 2>/dev/null | sed 1q`
8559 cat >>$CONFIG_STATUS <<_ACEOF
8560 # Files that config.status was made for.
8561 config_files="$ac_config_files"
8562 config_headers="$ac_config_headers"
8563 config_links="$ac_config_links"
8567 cat >>$CONFIG_STATUS <<\_ACEOF
8569 \`$as_me' instantiates files from templates according to the
8570 current configuration.
8572 Usage: $0 [OPTIONS] [FILE]...
8574 -h, --help print this help, then exit
8575 -V, --version print version number and configuration settings, then exit
8576 -q, --quiet do not print progress messages
8577 -d, --debug don't remove temporary files
8578 --recheck update $as_me by reconfiguring in the same conditions
8579 --file=FILE[:TEMPLATE]
8580 instantiate the configuration file FILE
8581 --header=FILE[:TEMPLATE]
8582 instantiate the configuration header FILE
8584 Configuration files:
8587 Configuration headers:
8590 Configuration links:
8593 Report bugs to <bug-autoconf@gnu.org>."
8596 cat >>$CONFIG_STATUS <<_ACEOF
8598 GRUB config.status 1.96
8599 configured by $0, generated by GNU Autoconf 2.61,
8600 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
8602 Copyright (C) 2006 Free Software Foundation, Inc.
8603 This config.status script is free software; the Free Software Foundation
8604 gives unlimited permission to copy, distribute and modify it."
8611 cat >>$CONFIG_STATUS <<\_ACEOF
8612 # If no file are specified by the user, then we need to provide default
8613 # value. By we need to know if files were specified by the user.
8619 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
8620 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
8631 # Handling of the options.
8632 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
8634 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
8635 echo "$ac_cs_version"; exit ;;
8636 --debug |
--debu |
--deb |
--de |
--d |
-d )
8638 --file |
--fil |
--fi |
--f )
8640 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
8641 ac_need_defaults
=false
;;
8642 --header |
--heade |
--head |
--hea )
8644 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
8645 ac_need_defaults
=false
;;
8647 # Conflict between --help and --header
8648 { echo "$as_me: error: ambiguous option: $1
8649 Try \`$0 --help' for more information." >&2
8650 { (exit 1); exit 1; }; };;
8651 --help |
--hel |
-h )
8652 echo "$ac_cs_usage"; exit ;;
8653 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
8654 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
8658 -*) { echo "$as_me: error: unrecognized option: $1
8659 Try \`$0 --help' for more information." >&2
8660 { (exit 1); exit 1; }; } ;;
8662 *) ac_config_targets
="$ac_config_targets $1"
8663 ac_need_defaults
=false
;;
8669 ac_configure_extra_args
=
8671 if $ac_cs_silent; then
8673 ac_configure_extra_args
="$ac_configure_extra_args --silent"
8677 cat >>$CONFIG_STATUS <<_ACEOF
8678 if \$ac_cs_recheck; then
8679 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
8682 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8686 cat >>$CONFIG_STATUS <<\_ACEOF
8690 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8691 ## Running $as_me. ##
8697 cat >>$CONFIG_STATUS <<_ACEOF
8700 cat >>$CONFIG_STATUS <<\_ACEOF
8702 # Handling of arguments.
8703 for ac_config_target
in $ac_config_targets
8705 case $ac_config_target in
8706 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
8707 "include/grub/cpu") CONFIG_LINKS
="$CONFIG_LINKS include/grub/cpu:include/grub/$target_cpu" ;;
8708 "include/grub/machine") CONFIG_LINKS
="$CONFIG_LINKS include/grub/machine:include/grub/$target_cpu/$platform" ;;
8709 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
8710 "gensymlist.sh") CONFIG_FILES
="$CONFIG_FILES gensymlist.sh" ;;
8711 "genkernsyms.sh") CONFIG_FILES
="$CONFIG_FILES genkernsyms.sh" ;;
8712 "stamp-h") CONFIG_FILES
="$CONFIG_FILES stamp-h" ;;
8714 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
8715 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
8716 { (exit 1); exit 1; }; };;
8721 # If the user did not use the arguments to specify the items to instantiate,
8722 # then the envvar interface is used. Set only those that are not.
8723 # We use the long form for the default assignment because of an extremely
8724 # bizarre bug on SunOS 4.1.3.
8725 if $ac_need_defaults; then
8726 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
8727 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
8728 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS
=$config_links
8731 # Have a temporary directory for convenience. Make it in the build tree
8732 # simply because there is no reason against having it here, and in addition,
8733 # creating and moving files from /tmp can sometimes cause problems.
8734 # Hook for its removal unless debugging.
8735 # Note that there is a small window in which the directory will not be cleaned:
8736 # after its creation but before its name has been assigned to `$tmp'.
8740 trap 'exit_status=$?
8741 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
8743 trap '{ (exit 1); exit 1; }' 1 2 13 15
8745 # Create a (secure) tmp directory for tmp files.
8748 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
8749 test -n "$tmp" && test -d "$tmp"
8752 tmp
=.
/conf$$
-$RANDOM
8753 (umask 077 && mkdir
"$tmp")
8756 echo "$me: cannot create a temporary directory in ." >&2
8757 { (exit 1); exit 1; }
8761 # Set up the sed scripts for CONFIG_FILES section.
8764 # No need to generate the scripts if there are no CONFIG_FILES.
8765 # This happens for instance when ./config.status config.h
8766 if test -n "$CONFIG_FILES"; then
8773 for ac_last_try
in false false false false false
:; do
8774 cat >conf$
$subs.
sed <<_ACEOF
8775 SHELL!$SHELL$ac_delim
8776 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
8777 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
8778 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
8779 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
8780 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
8781 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
8782 exec_prefix!$exec_prefix$ac_delim
8783 prefix!$prefix$ac_delim
8784 program_transform_name!$program_transform_name$ac_delim
8785 bindir!$bindir$ac_delim
8786 sbindir!$sbindir$ac_delim
8787 libexecdir!$libexecdir$ac_delim
8788 datarootdir!$datarootdir$ac_delim
8789 datadir!$datadir$ac_delim
8790 sysconfdir!$sysconfdir$ac_delim
8791 sharedstatedir!$sharedstatedir$ac_delim
8792 localstatedir!$localstatedir$ac_delim
8793 includedir!$includedir$ac_delim
8794 oldincludedir!$oldincludedir$ac_delim
8795 docdir!$docdir$ac_delim
8796 infodir!$infodir$ac_delim
8797 htmldir!$htmldir$ac_delim
8798 dvidir!$dvidir$ac_delim
8799 pdfdir!$pdfdir$ac_delim
8800 psdir!$psdir$ac_delim
8801 libdir!$libdir$ac_delim
8802 localedir!$localedir$ac_delim
8803 mandir!$mandir$ac_delim
8805 ECHO_C!$ECHO_C$ac_delim
8806 ECHO_N!$ECHO_N$ac_delim
8807 ECHO_T!$ECHO_T$ac_delim
8809 build_alias!$build_alias$ac_delim
8810 host_alias!$host_alias$ac_delim
8811 target_alias!$target_alias$ac_delim
8812 build!$build$ac_delim
8813 build_cpu!$build_cpu$ac_delim
8814 build_vendor!$build_vendor$ac_delim
8815 build_os!$build_os$ac_delim
8817 host_cpu!$host_cpu$ac_delim
8818 host_vendor!$host_vendor$ac_delim
8819 host_os!$host_os$ac_delim
8820 target!$target$ac_delim
8821 target_cpu!$target_cpu$ac_delim
8822 target_vendor!$target_vendor$ac_delim
8823 target_os!$target_os$ac_delim
8824 platform!$platform$ac_delim
8827 UNIFONT_HEX!$UNIFONT_HEX$ac_delim
8828 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
8829 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
8830 INSTALL_DATA!$INSTALL_DATA$ac_delim
8832 SET_MAKE!$SET_MAKE$ac_delim
8834 HELP2MAN!$HELP2MAN$ac_delim
8836 CFLAGS!$CFLAGS$ac_delim
8837 LDFLAGS!$LDFLAGS$ac_delim
8838 CPPFLAGS!$CPPFLAGS$ac_delim
8839 ac_ct_CC!$ac_ct_CC$ac_delim
8840 EXEEXT!$EXEEXT$ac_delim
8841 OBJEXT!$OBJEXT$ac_delim
8844 EGREP!$EGREP$ac_delim
8845 LIBLZO!$LIBLZO$ac_delim
8846 TARGET_CC!$TARGET_CC$ac_delim
8847 ac_ct_TARGET_CC!$ac_ct_TARGET_CC$ac_delim
8848 OBJCOPY!$OBJCOPY$ac_delim
8849 STRIP!$STRIP$ac_delim
8851 TARGET_CFLAGS!$TARGET_CFLAGS$ac_delim
8852 TARGET_CPPFLAGS!$TARGET_CPPFLAGS$ac_delim
8853 TARGET_LDFLAGS!$TARGET_LDFLAGS$ac_delim
8854 LIBCURSES!$LIBCURSES$ac_delim
8855 enable_grub_emu!$enable_grub_emu$ac_delim
8856 enable_grub_fstest!$enable_grub_fstest$ac_delim
8857 LIBOBJS!$LIBOBJS$ac_delim
8858 LTLIBOBJS!$LTLIBOBJS$ac_delim
8861 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 84; then
8863 elif $ac_last_try; then
8864 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
8865 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
8866 { (exit 1); exit 1; }; }
8868 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
8872 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
8873 if test -n "$ac_eof"; then
8874 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
8875 ac_eof
=`expr $ac_eof + 1`
8878 cat >>$CONFIG_STATUS <<_ACEOF
8879 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
8880 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
8883 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
8884 s/^/s,@/; s/!/@,|#_!!_#|/
8887 s/'"$ac_delim"'$/,g/; t
8889 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
8890 ' >>$CONFIG_STATUS <conf$
$subs.
sed
8891 rm -f conf$
$subs.
sed
8892 cat >>$CONFIG_STATUS <<_ACEOF
8899 # VPATH may cause trouble with some makes, so we remove $(srcdir),
8900 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8901 # trailing colons and then remove the whole line if VPATH becomes empty
8902 # (actually we leave an empty line to preserve line numbers).
8903 if test "x$srcdir" = x.
; then
8904 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
8908 s/^\([^=]*=[ ]*\):*/\1/
8914 cat >>$CONFIG_STATUS <<\_ACEOF
8915 fi # test -n "$CONFIG_FILES"
8918 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS :L
$CONFIG_LINKS
8921 :[FHLC
]) ac_mode
=$ac_tag; continue;;
8923 case $ac_mode$ac_tag in
8925 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
8926 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
8927 { (exit 1); exit 1; }; };;
8928 :[FH
]-) ac_tag
=-:-;;
8929 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
8946 -) ac_f
="$tmp/stdin";;
8947 *) # Look for the file first in the build tree, then in the source tree
8948 # (if the path is not absolute). The absolute path cannot be DOS-style,
8949 # because $ac_f cannot contain `:'.
8953 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
8955 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
8956 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
8957 { (exit 1); exit 1; }; };;
8959 ac_file_inputs
="$ac_file_inputs $ac_f"
8962 # Let's still pretend it is `configure' which instantiates (i.e., don't
8963 # use $as_me), people would be surprised to read:
8964 # /* config.h. Generated by config.status. */
8965 configure_input
="Generated from "`IFS=:
8966 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
8967 if test x
"$ac_file" != x-
; then
8968 configure_input
="$ac_file. $configure_input"
8969 { echo "$as_me:$LINENO: creating $ac_file" >&5
8970 echo "$as_me: creating $ac_file" >&6;}
8974 *:-:* |
*:-) cat >"$tmp/stdin";;
8979 ac_dir
=`$as_dirname -- "$ac_file" ||
8980 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8981 X"$ac_file" : 'X\(//\)[^/]' \| \
8982 X"$ac_file" : 'X\(//\)$' \| \
8983 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
8985 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9004 -*) as_dir
=.
/$as_dir;;
9006 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
9010 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
9011 *) as_qdir
=$as_dir;;
9013 as_dirs
="'$as_qdir' $as_dirs"
9014 as_dir
=`$as_dirname -- "$as_dir" ||
9015 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9016 X"$as_dir" : 'X\(//\)[^/]' \| \
9017 X"$as_dir" : 'X\(//\)$' \| \
9018 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
9020 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9037 test -d "$as_dir" && break
9039 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
9040 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
9041 echo "$as_me: error: cannot create directory $as_dir" >&2;}
9042 { (exit 1); exit 1; }; }; }
9046 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
9048 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9049 # A ".." for each directory in $ac_dir_suffix.
9050 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
9051 case $ac_top_builddir_sub in
9052 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
9053 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
9056 ac_abs_top_builddir
=$ac_pwd
9057 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
9058 # for backward compatibility:
9059 ac_top_builddir
=$ac_top_build_prefix
9062 .
) # We are building in place.
9064 ac_top_srcdir
=$ac_top_builddir_sub
9065 ac_abs_top_srcdir
=$ac_pwd ;;
9066 [\\/]* | ?
:[\\/]* ) # Absolute name.
9067 ac_srcdir
=$srcdir$ac_dir_suffix;
9068 ac_top_srcdir
=$srcdir
9069 ac_abs_top_srcdir
=$srcdir ;;
9071 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
9072 ac_top_srcdir
=$ac_top_build_prefix$srcdir
9073 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
9075 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
9085 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
9086 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
9090 cat >>$CONFIG_STATUS <<\_ACEOF
9091 # If the template does not know about datarootdir, expand it.
9092 # FIXME: This hack should be removed a few years after 2.60.
9093 ac_datarootdir_hack
=; ac_datarootdir_seen
=
9095 case `sed -n '/datarootdir/ {
9104 ' $ac_file_inputs` in
9105 *datarootdir
*) ac_datarootdir_seen
=yes;;
9106 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
9107 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
9108 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
9110 cat >>$CONFIG_STATUS <<_ACEOF
9111 ac_datarootdir_hack='
9112 s&@datadir@&$datadir&g
9113 s&@docdir@&$docdir&g
9114 s&@infodir@&$infodir&g
9115 s&@localedir@&$localedir&g
9116 s&@mandir@&$mandir&g
9117 s&\\\${datarootdir}&$datarootdir&g' ;;
9121 # Neutralize VPATH when `$srcdir' = `.'.
9122 # Shell code in configure.ac might set extrasub.
9123 # FIXME: do we really want to maintain this feature?
9124 cat >>$CONFIG_STATUS <<_ACEOF
9128 cat >>$CONFIG_STATUS <<\_ACEOF
9130 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
9131 s
&@configure_input@
&$configure_input&;t t
9132 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
9133 s
&@srcdir@
&$ac_srcdir&;t t
9134 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
9135 s
&@top_srcdir@
&$ac_top_srcdir&;t t
9136 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
9137 s
&@builddir@
&$ac_builddir&;t t
9138 s
&@abs_builddir@
&$ac_abs_builddir&;t t
9139 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
9140 s
&@INSTALL@
&$ac_INSTALL&;t t
9141 $ac_datarootdir_hack
9142 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" >$tmp/out
9144 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
9145 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
9146 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
9147 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
9148 which seems to be undefined. Please make sure it is defined." >&5
9149 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
9150 which seems to be undefined. Please make sure it is defined." >&2;}
9154 -) cat "$tmp/out"; rm -f "$tmp/out";;
9155 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
9164 # Transform confdefs.h into a sed script `conftest.defines', that
9165 # substitutes the proper values into config.h.in to produce config.h.
9166 rm -f conftest.defines conftest.
tail
9167 # First, append a space to every undef/define line, to ease matching.
9168 echo 's/$/ /' >conftest.defines
9169 # Then, protect against being on the right side of a sed subst, or in
9170 # an unquoted here document, in config.status. If some macros were
9171 # called several times there might be several #defines for the same
9172 # symbol, which is useless. But do not sort them, since the last
9173 # AC_DEFINE must be honored.
9174 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
9175 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
9176 # NAME is the cpp macro being defined, VALUE is the value it is being given.
9177 # PARAMS is the parameter list in the macro definition--in most cases, it's
9178 # just an empty string.
9179 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
9180 ac_dB
='\\)[ (].*,\\1define\\2'
9188 s/^[ ]*#[ ]*define[ ][ ]*//
9193 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
9194 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
9195 ' >>conftest.defines
9197 # Remove the space that was appended to ease matching.
9198 # Then replace #undef with comments. This is necessary, for
9199 # example, in the case of _POSIX_SOURCE, which is predefined and required
9200 # on some systems where configure will not decide to define it.
9201 # (The regexp can be short, since the line contains either #define or #undef.)
9203 s,^[ #]*u.*,/* & */,' >>conftest.defines
9205 # Break up conftest.defines:
9208 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
9209 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
9210 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
9212 ac_in
='$ac_file_inputs'
9213 ac_out
='"$tmp/out1"'
9214 ac_nxt
='"$tmp/out2"'
9218 # Write a here document:
9219 cat >>$CONFIG_STATUS <<_ACEOF
9220 # First, check the format of the line:
9221 cat >"\$tmp/defines.sed" <<\\CEOF
9222 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
9223 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
9227 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
9229 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
9230 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
9231 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
9232 grep . conftest.
tail >/dev
/null ||
break
9233 rm -f conftest.defines
9234 mv conftest.
tail conftest.defines
9236 rm -f conftest.defines conftest.
tail
9238 echo "ac_result=$ac_in" >>$CONFIG_STATUS
9239 cat >>$CONFIG_STATUS <<\_ACEOF
9240 if test x
"$ac_file" != x-
; then
9241 echo "/* $configure_input */" >"$tmp/config.h"
9242 cat "$ac_result" >>"$tmp/config.h"
9243 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
9244 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
9245 echo "$as_me: $ac_file is unchanged" >&6;}
9248 mv "$tmp/config.h" $ac_file
9251 echo "/* $configure_input */"
9261 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_file" >&5
9262 echo "$as_me: linking $srcdir/$ac_source to $ac_file" >&6;}
9264 if test ! -r "$srcdir/$ac_source"; then
9265 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
9266 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
9267 { (exit 1); exit 1; }; }
9271 # Try a relative symlink, then a hard link, then a copy.
9273 [\\/$
]* | ?
:[\\/]* ) ac_rel_source
=$srcdir/$ac_source ;;
9274 *) ac_rel_source
=$ac_top_build_prefix$srcdir/$ac_source ;;
9276 ln -s "$ac_rel_source" "$ac_file" 2>/dev
/null ||
9277 ln "$srcdir/$ac_source" "$ac_file" 2>/dev
/null ||
9278 cp -p "$srcdir/$ac_source" "$ac_file" ||
9279 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_file" >&5
9280 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_file" >&2;}
9281 { (exit 1); exit 1; }; }
9287 case $ac_file$ac_mode in
9288 "stamp-h":F
) echo timestamp
> stamp-h
;;
9294 { (exit 0); exit 0; }
9296 chmod +x
$CONFIG_STATUS
9297 ac_clean_files
=$ac_clean_files_save
9300 # configure is writing to config.log, and then calls config.status.
9301 # config.status does its own redirection, appending to config.log.
9302 # Unfortunately, on DOS this fails, as config.log is still kept open
9303 # by configure, so config.status won't be able to write to it; its
9304 # output is simply discarded. So we exec the FD to /dev/null,
9305 # effectively closing config.log, so it can be properly (re)opened and
9306 # appended to by config.status. When coming back to configure, we
9307 # need to make the FD available again.
9308 if test "$no_create" != yes; then
9310 ac_config_status_args
=
9311 test "$silent" = yes &&
9312 ac_config_status_args
="$ac_config_status_args --quiet"
9314 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
9316 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9317 # would make configure fail if this is the last instruction.
9318 $ac_cs_success ||
{ (exit 1); exit 1; }