2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for GRUB 0.97.
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
='0.97'
578 PACKAGE_STRING
='GRUB 0.97'
579 PACKAGE_BUGREPORT
='bug-grub@gnu.org'
581 ac_unique_file
="stage2/stage2.c"
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
668 INSTALL_STRIP_PROGRAM
685 MAINTAINER_MODE_FALSE
715 NETBOOT_SUPPORT_FALSE
716 DISKLESS_SUPPORT_TRUE
717 DISKLESS_SUPPORT_FALSE
718 HERCULES_SUPPORT_TRUE
719 HERCULES_SUPPORT_FALSE
722 SERIAL_SPEED_SIMULATION_TRUE
723 SERIAL_SPEED_SIMULATION_FALSE
724 BUILD_EXAMPLE_KERNEL_TRUE
725 BUILD_EXAMPLE_KERNEL_FALSE
734 ac_precious_vars
='build_alias
745 # Initialize some variables set by options.
747 ac_init_version
=false
748 # The variables have the same names as the options, with
749 # dashes changed to underlines.
757 program_transform_name
=s
,x
,x
,
765 # Installation directory options.
766 # These are left unexpanded so users can "make install exec_prefix=/foo"
767 # and all the variables that are supposed to be based on exec_prefix
768 # by default will actually change.
769 # Use braces instead of parens because sh, perl, etc. also accept them.
770 # (The list follows the same order as the GNU Coding Standards.)
771 bindir
='${exec_prefix}/bin'
772 sbindir
='${exec_prefix}/sbin'
773 libexecdir
='${exec_prefix}/libexec'
774 datarootdir
='${prefix}/share'
775 datadir
='${datarootdir}'
776 sysconfdir
='${prefix}/etc'
777 sharedstatedir
='${prefix}/com'
778 localstatedir
='${prefix}/var'
779 includedir
='${prefix}/include'
780 oldincludedir
='/usr/include'
781 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
782 infodir
='${datarootdir}/info'
787 libdir
='${exec_prefix}/lib'
788 localedir
='${datarootdir}/locale'
789 mandir
='${datarootdir}/man'
795 # If the previous option needs an argument, assign it.
796 if test -n "$ac_prev"; then
797 eval $ac_prev=\
$ac_option
803 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
807 # Accept the important Cygnus configure options, so we can diagnose typos.
809 case $ac_dashdash$ac_option in
813 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
815 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
818 -build |
--build |
--buil |
--bui |
--bu)
819 ac_prev
=build_alias
;;
820 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
821 build_alias
=$ac_optarg ;;
823 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
824 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
825 ac_prev
=cache_file
;;
826 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
827 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
828 cache_file
=$ac_optarg ;;
831 cache_file
=config.cache
;;
833 -datadir |
--datadir |
--datadi |
--datad)
835 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
836 datadir
=$ac_optarg ;;
838 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
839 |
--dataroo |
--dataro |
--datar)
840 ac_prev
=datarootdir
;;
841 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
842 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
843 datarootdir
=$ac_optarg ;;
845 -disable-* |
--disable-*)
846 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
847 # Reject names that are not valid shell variable names.
848 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
849 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
850 { (exit 1); exit 1; }; }
851 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
852 eval enable_
$ac_feature=no
;;
854 -docdir |
--docdir |
--docdi |
--doc |
--do)
856 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
859 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
861 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
864 -enable-* |
--enable-*)
865 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
866 # Reject names that are not valid shell variable names.
867 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
868 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
869 { (exit 1); exit 1; }; }
870 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
871 eval enable_
$ac_feature=\
$ac_optarg ;;
873 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
874 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
875 |
--exec |
--exe |
--ex)
876 ac_prev
=exec_prefix
;;
877 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
878 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
879 |
--exec=* |
--exe=* |
--ex=*)
880 exec_prefix
=$ac_optarg ;;
882 -gas |
--gas |
--ga |
--g)
883 # Obsolete; use --with-gas.
886 -help |
--help |
--hel |
--he |
-h)
888 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
889 ac_init_help
=recursive
;;
890 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
891 ac_init_help
=short
;;
893 -host |
--host |
--hos |
--ho)
894 ac_prev
=host_alias
;;
895 -host=* |
--host=* |
--hos=* |
--ho=*)
896 host_alias
=$ac_optarg ;;
898 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
900 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
902 htmldir
=$ac_optarg ;;
904 -includedir |
--includedir |
--includedi |
--included |
--include \
905 |
--includ |
--inclu |
--incl |
--inc)
906 ac_prev
=includedir
;;
907 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
908 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
909 includedir
=$ac_optarg ;;
911 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
913 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
914 infodir
=$ac_optarg ;;
916 -libdir |
--libdir |
--libdi |
--libd)
918 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
921 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
922 |
--libexe |
--libex |
--libe)
923 ac_prev
=libexecdir
;;
924 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
925 |
--libexe=* |
--libex=* |
--libe=*)
926 libexecdir
=$ac_optarg ;;
928 -localedir |
--localedir |
--localedi |
--localed |
--locale)
930 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
931 localedir
=$ac_optarg ;;
933 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
934 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
935 ac_prev
=localstatedir
;;
936 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
937 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
938 localstatedir
=$ac_optarg ;;
940 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
942 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
946 # Obsolete; use --without-fp.
949 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
950 |
--no-cr |
--no-c |
-n)
953 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
954 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
957 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
958 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
959 |
--oldin |
--oldi |
--old |
--ol |
--o)
960 ac_prev
=oldincludedir
;;
961 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
962 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
963 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
964 oldincludedir
=$ac_optarg ;;
966 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
968 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
971 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
972 |
--program-pre |
--program-pr |
--program-p)
973 ac_prev
=program_prefix
;;
974 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
975 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
976 program_prefix
=$ac_optarg ;;
978 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
979 |
--program-suf |
--program-su |
--program-s)
980 ac_prev
=program_suffix
;;
981 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
982 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
983 program_suffix
=$ac_optarg ;;
985 -program-transform-name |
--program-transform-name \
986 |
--program-transform-nam |
--program-transform-na \
987 |
--program-transform-n |
--program-transform- \
988 |
--program-transform |
--program-transfor \
989 |
--program-transfo |
--program-transf \
990 |
--program-trans |
--program-tran \
991 |
--progr-tra |
--program-tr |
--program-t)
992 ac_prev
=program_transform_name
;;
993 -program-transform-name=* |
--program-transform-name=* \
994 |
--program-transform-nam=* |
--program-transform-na=* \
995 |
--program-transform-n=* |
--program-transform-=* \
996 |
--program-transform=* |
--program-transfor=* \
997 |
--program-transfo=* |
--program-transf=* \
998 |
--program-trans=* |
--program-tran=* \
999 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1000 program_transform_name
=$ac_optarg ;;
1002 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1004 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1005 pdfdir
=$ac_optarg ;;
1007 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1009 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1012 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1013 |
-silent |
--silent |
--silen |
--sile |
--sil)
1016 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1018 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1020 sbindir
=$ac_optarg ;;
1022 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1023 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1024 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1026 ac_prev
=sharedstatedir
;;
1027 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1028 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1029 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1031 sharedstatedir
=$ac_optarg ;;
1033 -site |
--site |
--sit)
1035 -site=* |
--site=* |
--sit=*)
1038 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1040 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1041 srcdir
=$ac_optarg ;;
1043 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1044 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1045 ac_prev
=sysconfdir
;;
1046 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1047 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1048 sysconfdir
=$ac_optarg ;;
1050 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1051 ac_prev
=target_alias
;;
1052 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1053 target_alias
=$ac_optarg ;;
1055 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1058 -version |
--version |
--versio |
--versi |
--vers |
-V)
1059 ac_init_version
=: ;;
1062 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1063 # Reject names that are not valid shell variable names.
1064 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1065 { echo "$as_me: error: invalid package name: $ac_package" >&2
1066 { (exit 1); exit 1; }; }
1067 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1068 eval with_
$ac_package=\
$ac_optarg ;;
1070 -without-* |
--without-*)
1071 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1072 # Reject names that are not valid shell variable names.
1073 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1074 { echo "$as_me: error: invalid package name: $ac_package" >&2
1075 { (exit 1); exit 1; }; }
1076 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1077 eval with_
$ac_package=no
;;
1080 # Obsolete; use --with-x.
1083 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1084 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1085 ac_prev
=x_includes
;;
1086 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1087 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1088 x_includes
=$ac_optarg ;;
1090 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1091 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1092 ac_prev
=x_libraries
;;
1093 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1094 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1095 x_libraries
=$ac_optarg ;;
1097 -*) { echo "$as_me: error: unrecognized option: $ac_option
1098 Try \`$0 --help' for more information." >&2
1099 { (exit 1); exit 1; }; }
1103 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1104 # Reject names that are not valid shell variable names.
1105 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1106 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1107 { (exit 1); exit 1; }; }
1108 eval $ac_envvar=\
$ac_optarg
1109 export $ac_envvar ;;
1112 # FIXME: should be removed in autoconf 3.0.
1113 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1114 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1115 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1116 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1122 if test -n "$ac_prev"; then
1123 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1124 { echo "$as_me: error: missing argument to $ac_option" >&2
1125 { (exit 1); exit 1; }; }
1128 # Be sure to have absolute directory names.
1129 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1130 datadir sysconfdir sharedstatedir localstatedir includedir \
1131 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1132 libdir localedir mandir
1134 eval ac_val
=\$
$ac_var
1136 [\\/$
]* | ?
:[\\/]* ) continue;;
1137 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1139 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1140 { (exit 1); exit 1; }; }
1143 # There might be people who depend on the old broken behavior: `$host'
1144 # used to hold the argument of --host etc.
1145 # FIXME: To remove some day.
1148 target
=$target_alias
1150 # FIXME: To remove some day.
1151 if test "x$host_alias" != x
; then
1152 if test "x$build_alias" = x
; then
1153 cross_compiling
=maybe
1154 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1155 If a cross compiler is detected then cross compile mode will be used." >&2
1156 elif test "x$build_alias" != "x$host_alias"; then
1162 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1164 test "$silent" = yes && exec 6>/dev
/null
1167 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1168 ac_ls_di
=`ls -di .` &&
1169 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1170 { echo "$as_me: error: Working directory cannot be determined" >&2
1171 { (exit 1); exit 1; }; }
1172 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1173 { echo "$as_me: error: pwd does not report name of working directory" >&2
1174 { (exit 1); exit 1; }; }
1177 # Find the source files, if location was not specified.
1178 if test -z "$srcdir"; then
1179 ac_srcdir_defaulted
=yes
1180 # Try the directory containing this script, then the parent directory.
1181 ac_confdir
=`$as_dirname -- "$0" ||
1182 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1183 X"$0" : 'X\(//\)[^/]' \| \
1184 X"$0" : 'X\(//\)$' \| \
1185 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1187 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1205 if test ! -r "$srcdir/$ac_unique_file"; then
1209 ac_srcdir_defaulted
=no
1211 if test ! -r "$srcdir/$ac_unique_file"; then
1212 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1213 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1214 { (exit 1); exit 1; }; }
1216 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1218 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1219 { (exit 1); exit 1; }; }
1221 # When building in place, set srcdir=.
1222 if test "$ac_abs_confdir" = "$ac_pwd"; then
1225 # Remove unnecessary trailing slashes from srcdir.
1226 # Double slashes in file names in object file debugging info
1227 # mess up M-x gdb in Emacs.
1229 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1231 for ac_var
in $ac_precious_vars; do
1232 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1233 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1234 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1235 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1239 # Report the --help message.
1241 if test "$ac_init_help" = "long"; then
1242 # Omit some internal or obsolete options to make the list less imposing.
1243 # This message is too long to be a string in the A/UX 3.1 sh.
1245 \`configure' configures GRUB 0.97 to adapt to many kinds of systems.
1247 Usage: $0 [OPTION]... [VAR=VALUE]...
1249 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1250 VAR=VALUE. See below for descriptions of some of the useful variables.
1252 Defaults for the options are specified in brackets.
1255 -h, --help display this help and exit
1256 --help=short display options specific to this package
1257 --help=recursive display the short help of all the included packages
1258 -V, --version display version information and exit
1259 -q, --quiet, --silent do not print \`checking...' messages
1260 --cache-file=FILE cache test results in FILE [disabled]
1261 -C, --config-cache alias for \`--cache-file=config.cache'
1262 -n, --no-create do not create output files
1263 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1265 Installation directories:
1266 --prefix=PREFIX install architecture-independent files in PREFIX
1267 [$ac_default_prefix]
1268 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1271 By default, \`make install' will install all the files in
1272 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1273 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1274 for instance \`--prefix=\$HOME'.
1276 For better control, use the options below.
1278 Fine tuning of the installation directories:
1279 --bindir=DIR user executables [EPREFIX/bin]
1280 --sbindir=DIR system admin executables [EPREFIX/sbin]
1281 --libexecdir=DIR program executables [EPREFIX/libexec]
1282 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1283 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1284 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1285 --libdir=DIR object code libraries [EPREFIX/lib]
1286 --includedir=DIR C header files [PREFIX/include]
1287 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1288 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1289 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1290 --infodir=DIR info documentation [DATAROOTDIR/info]
1291 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1292 --mandir=DIR man documentation [DATAROOTDIR/man]
1293 --docdir=DIR documentation root [DATAROOTDIR/doc/grub]
1294 --htmldir=DIR html documentation [DOCDIR]
1295 --dvidir=DIR dvi documentation [DOCDIR]
1296 --pdfdir=DIR pdf documentation [DOCDIR]
1297 --psdir=DIR ps documentation [DOCDIR]
1303 --program-prefix=PREFIX prepend PREFIX to installed program names
1304 --program-suffix=SUFFIX append SUFFIX to installed program names
1305 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1308 --build=BUILD configure
for building on BUILD
[guessed
]
1309 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1313 if test -n "$ac_init_help"; then
1314 case $ac_init_help in
1315 short | recursive
) echo "Configuration of GRUB 0.97:";;
1320 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1321 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1322 --enable-maintainer-mode enable make rules and dependencies not useful
1323 (and sometimes confusing
) to the casual installer
1324 --disable-dependency-tracking speeds up one-time build
1325 --enable-dependency-tracking do not reject slow dependency extractors
1326 --disable-ext2fs disable ext2fs support
in Stage
2
1327 --disable-fat disable FAT support
in Stage
2
1328 --disable-ffs disable FFS support
in Stage
2
1329 --disable-ufs2 disable UFS2 support
in Stage
2
1330 --disable-minix disable Minix fs support
in Stage
2
1331 --disable-reiserfs disable ReiserFS support
in Stage
2
1332 --disable-vstafs disable VSTa FS support
in Stage
2
1333 --disable-jfs disable IBM JFS support
in Stage
2
1334 --disable-xfs disable SGI XFS support
in Stage
2
1335 --disable-iso9660 disable ISO9660 support
in Stage
2
1336 --disable-affs disable AFFS support
in Stage
2
1337 --disable-gunzip disable decompression
in Stage
2
1338 --disable-md5-password disable MD5 password support
in Stage
2
1339 --disable-packet-retransmission
1340 turn off packet retransmission
1341 --enable-pci-direct access PCI directly instead of using BIOS
1342 --enable-3c509 enable 3Com509 driver
1343 --enable-3c529 enable 3Com529 driver
1344 --enable-3c595 enable 3Com595 driver
1345 --enable-3c90x enable 3Com90x driver
1346 --enable-cs89x0 enable CS89x0 driver
1347 --enable-davicom enable Davicom driver
1348 --enable-depca enable DEPCA and EtherWORKS driver
1349 --enable-eepro enable Etherexpress Pro
/10 driver
1350 --enable-eepro100 enable Etherexpress Pro
/100 driver
1351 --enable-epic100 enable SMC
83c170 EPIC
/100 driver
1352 --enable-3c507 enable 3Com507 driver
1353 --enable-exos205 enable EXOS205 driver
1354 --enable-ni5210 enable Racal-Interlan NI5210 driver
1355 --enable-lance enable Lance PCI PCNet
/32 driver
1356 --enable-ne2100 enable Novell NE2100 driver
1357 --enable-ni6510 enable Racal-Interlan NI6510 driver
1358 --enable-natsemi enable NatSemi DP8381x driver
1359 --enable-ni5010 enable Racal-Interlan NI5010 driver
1360 --enable-3c503 enable 3Com503 driver
1361 --enable-ne enable NE1000
/2000 ISA driver
1362 --enable-ns8390 enable NE2000 PCI driver
1363 --enable-wd enable WD8003
/8013, SMC8216
/8416 driver
1364 --enable-otulip enable old Tulip driver
1365 --enable-rtl8139 enable Realtek
8139 driver
1366 --enable-sis900 enable SIS
900 and SIS
7016 driver
1367 --enable-sk-g16 enable Schneider and Koch G16 driver
1368 --enable-smc9000 enable SMC9000 driver
1369 --enable-tiara enable Tiara driver
1370 --enable-tulip enable Tulip driver
1371 --enable-via-rhine enable Rhine-I
/II driver
1372 --enable-w89c840 enable Winbond W89c840
, Compex RL100-ATX driver
1373 --enable-3c503-shmem use
3c503 shared memory mode
1374 --enable-3c503-aui use AUI by default on
3c503 cards
1375 --enable-compex-rl2000-fix
1376 specify this
if you have a Compex RL2000 PCI
1377 --enable-smc9000-scan=LIST
1378 probe
for SMC9000 I
/O addresses using LIST
1379 --enable-ne-scan=LIST probe
for NE base address using LIST
1380 --enable-wd-default-mem=MEM
1381 set the default memory location
for WD
/SMC
1382 --enable-cs-scan=LIST probe
for CS89x0 base address using LIST
1383 --enable-diskless enable diskless support
1384 --disable-hercules disable hercules terminal support
1385 --disable-serial disable serial terminal support
1386 --enable-serial-speed-simulation
1387 simulate the slowness of a serial device
1388 --enable-preset-menu=FILE
1389 preset a menu
file FILE
in Stage
2
1390 --enable-example-kernel
1391 build the example Multiboot kernel
1392 --disable-auto-linux-mem-opt
1393 don
't pass Linux mem= option automatically
1396 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1397 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1398 --with-binutils=DIR search the directory DIR to find binutils
1399 --without-curses do not use curses
1401 Some influential environment variables:
1402 CC C compiler command
1403 CFLAGS C compiler flags
1404 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1405 nonstandard directory <lib dir>
1406 LIBS libraries to pass to the linker, e.g. -l<library>
1407 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1408 you have headers in a nonstandard directory <include dir>
1411 Use these variables to override the choices made by `configure' or to
help
1412 it to
find libraries and programs with nonstandard names
/locations.
1414 Report bugs to
<bug-grub@gnu.org
>.
1419 if test "$ac_init_help" = "recursive"; then
1420 # If there are subdirs, report their specific --help.
1421 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1422 test -d "$ac_dir" ||
continue
1426 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1428 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1429 # A ".." for each directory in $ac_dir_suffix.
1430 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1431 case $ac_top_builddir_sub in
1432 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1433 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1436 ac_abs_top_builddir
=$ac_pwd
1437 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1438 # for backward compatibility:
1439 ac_top_builddir
=$ac_top_build_prefix
1442 .
) # We are building in place.
1444 ac_top_srcdir
=$ac_top_builddir_sub
1445 ac_abs_top_srcdir
=$ac_pwd ;;
1446 [\\/]* | ?
:[\\/]* ) # Absolute name.
1447 ac_srcdir
=$srcdir$ac_dir_suffix;
1448 ac_top_srcdir
=$srcdir
1449 ac_abs_top_srcdir
=$srcdir ;;
1451 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1452 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1453 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1455 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1457 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1458 # Check for guested configure.
1459 if test -f "$ac_srcdir/configure.gnu"; then
1461 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1462 elif test -f "$ac_srcdir/configure"; then
1464 $SHELL "$ac_srcdir/configure" --help=recursive
1466 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1468 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1472 test -n "$ac_init_help" && exit $ac_status
1473 if $ac_init_version; then
1476 generated by GNU Autoconf
2.61
1478 Copyright
(C
) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1479 2002, 2003, 2004, 2005, 2006 Free Software Foundation
, Inc.
1480 This configure
script is free software
; the Free Software Foundation
1481 gives unlimited permission to copy
, distribute and modify it.
1485 cat >config.log
<<_ACEOF
1486 This file contains any messages produced by compilers while
1487 running configure, to aid debugging if configure makes a mistake.
1489 It was created by GRUB $as_me 0.97, which was
1490 generated by GNU Autoconf 2.61. Invocation command line was
1502 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1503 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1504 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1505 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1506 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1508 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1509 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1511 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1512 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1513 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1514 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1515 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1516 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1517 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1521 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1525 test -z "$as_dir" && as_dir
=.
1526 echo "PATH: $as_dir"
1542 # Keep a trace of the command line.
1543 # Strip out --no-create and --no-recursion so they do not pile up.
1544 # Strip out --silent because we don't want to record it for future runs.
1545 # Also quote any args containing shell meta-characters.
1546 # Make two passes to allow for proper duplicate-argument suppression.
1550 ac_must_keep_next
=false
1556 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
1557 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1558 |
-silent |
--silent |
--silen |
--sile |
--sil)
1561 ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1564 1) ac_configure_args0
="$ac_configure_args0 '$ac_arg'" ;;
1566 ac_configure_args1
="$ac_configure_args1 '$ac_arg'"
1567 if test $ac_must_keep_next = true
; then
1568 ac_must_keep_next
=false
# Got value, back to normal.
1571 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
1572 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
1573 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
1574 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
1575 case "$ac_configure_args0 " in
1576 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1579 -* ) ac_must_keep_next
=true
;;
1582 ac_configure_args
="$ac_configure_args '$ac_arg'"
1587 $as_unset ac_configure_args0 ||
test "${ac_configure_args0+set}" != set ||
{ ac_configure_args0
=; export ac_configure_args0
; }
1588 $as_unset ac_configure_args1 ||
test "${ac_configure_args1+set}" != set ||
{ ac_configure_args1
=; export ac_configure_args1
; }
1590 # When interrupted or exit'd, cleanup temporary files, and complete
1591 # config.log. We remove comments because anyway the quotes in there
1592 # would cause problems or look ugly.
1593 # WARNING: Use '\'' to represent an apostrophe within the trap.
1594 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1595 trap 'exit_status=$?
1596 # Save into config.log some information that might help in debugging.
1601 ## ---------------- ##
1602 ## Cache variables. ##
1603 ## ---------------- ##
1606 # The following way of writing the cache mishandles newlines in values,
1608 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1609 eval ac_val=\$$ac_var
1613 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1614 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1617 _ | IFS | as_nl) ;; #(
1618 *) $as_unset $ac_var ;;
1623 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1624 *${as_nl}ac_space=\ *)
1626 "s/'\''/'\''\\\\'\'''\''/g;
1627 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1630 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1638 ## ----------------- ##
1639 ## Output variables. ##
1640 ## ----------------- ##
1643 for ac_var in $ac_subst_vars
1645 eval ac_val=\$$ac_var
1647 *\'\''*) ac_val
=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1649 echo "$ac_var='\''$ac_val'\''"
1653 if test -n "$ac_subst_files"; then
1655 ## ------------------- ##
1656 ## File substitutions. ##
1657 ## ------------------- ##
1660 for ac_var
in $ac_subst_files
1662 eval ac_val
=\$
$ac_var
1664 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1666 echo "$ac_var='\''$ac_val'\''"
1671 if test -s confdefs.h; then
1681 test "$ac_signal" != 0 &&
1682 echo "$as_me: caught signal $ac_signal"
1683 echo "$as_me: exit $exit_status"
1685 rm -f core *.core core.conftest.* &&
1686 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1689 for ac_signal
in 1 2 13 15; do
1690 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1694 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1695 rm -f -r conftest
* confdefs.h
1697 # Predefined preprocessor variables.
1699 cat >>confdefs.h
<<_ACEOF
1700 #define PACKAGE_NAME "$PACKAGE_NAME"
1704 cat >>confdefs.h
<<_ACEOF
1705 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1709 cat >>confdefs.h
<<_ACEOF
1710 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1714 cat >>confdefs.h
<<_ACEOF
1715 #define PACKAGE_STRING "$PACKAGE_STRING"
1719 cat >>confdefs.h
<<_ACEOF
1720 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1724 # Let the site file select an alternate cache file if it wants to.
1725 # Prefer explicitly selected file to automatically selected ones.
1726 if test -n "$CONFIG_SITE"; then
1727 set x
"$CONFIG_SITE"
1728 elif test "x$prefix" != xNONE
; then
1729 set x
"$prefix/share/config.site" "$prefix/etc/config.site"
1731 set x
"$ac_default_prefix/share/config.site" \
1732 "$ac_default_prefix/etc/config.site"
1737 if test -r "$ac_site_file"; then
1738 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1739 echo "$as_me: loading site script $ac_site_file" >&6;}
1740 sed 's/^/| /' "$ac_site_file" >&5
1745 if test -r "$cache_file"; then
1746 # Some versions of bash will fail to source /dev/null (special
1747 # files actually), so we avoid doing that.
1748 if test -f "$cache_file"; then
1749 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1750 echo "$as_me: loading cache $cache_file" >&6;}
1752 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
1753 *) .
"./$cache_file";;
1757 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1758 echo "$as_me: creating cache $cache_file" >&6;}
1762 # Check that the precious variables saved in the cache have kept the same
1764 ac_cache_corrupted
=false
1765 for ac_var
in $ac_precious_vars; do
1766 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
1767 eval ac_new_set
=\
$ac_env_${ac_var}_set
1768 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
1769 eval ac_new_val
=\
$ac_env_${ac_var}_value
1770 case $ac_old_set,$ac_new_set in
1772 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1773 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1774 ac_cache_corrupted
=: ;;
1776 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1777 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1778 ac_cache_corrupted
=: ;;
1781 if test "x$ac_old_val" != "x$ac_new_val"; then
1782 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1783 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1784 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1785 echo "$as_me: former value: $ac_old_val" >&2;}
1786 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1787 echo "$as_me: current value: $ac_new_val" >&2;}
1788 ac_cache_corrupted
=:
1791 # Pass precious variables to config.status.
1792 if test "$ac_new_set" = set; then
1794 *\'*) ac_arg
=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1795 *) ac_arg
=$ac_var=$ac_new_val ;;
1797 case " $ac_configure_args " in
1798 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1799 *) ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
1803 if $ac_cache_corrupted; then
1804 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1805 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1806 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1807 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1808 { (exit 1); exit 1; }; }
1836 ac_cpp
='$CPP $CPPFLAGS'
1837 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1838 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1839 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1843 ac_config_headers
="$ac_config_headers config.h"
1845 am__api_version
="1.9"
1847 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1848 if test -f "$ac_dir/install-sh"; then
1850 ac_install_sh
="$ac_aux_dir/install-sh -c"
1852 elif test -f "$ac_dir/install.sh"; then
1854 ac_install_sh
="$ac_aux_dir/install.sh -c"
1856 elif test -f "$ac_dir/shtool"; then
1858 ac_install_sh
="$ac_aux_dir/shtool install -c"
1862 if test -z "$ac_aux_dir"; then
1863 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1864 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1865 { (exit 1); exit 1; }; }
1868 # These three variables are undocumented and unsupported,
1869 # and are intended to be withdrawn in a future Autoconf release.
1870 # They can cause serious problems if a builder's source tree is in a directory
1871 # whose full name contains unusual characters.
1872 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1873 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1874 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1877 # Find a good install program. We prefer a C program (faster),
1878 # so one script is as good as another. But avoid the broken or
1879 # incompatible versions:
1880 # SysV /etc/install, /usr/sbin/install
1881 # SunOS /usr/etc/install
1882 # IRIX /sbin/install
1884 # AmigaOS /C/install, which installs bootblocks on floppy discs
1885 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1886 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1887 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1888 # OS/2's system install, which has a completely different semantic
1889 # ./install, which can be erroneously created by make from ./install.sh.
1890 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1891 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1892 if test -z "$INSTALL"; then
1893 if test "${ac_cv_path_install+set}" = set; then
1894 echo $ECHO_N "(cached) $ECHO_C" >&6
1896 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1900 test -z "$as_dir" && as_dir
=.
1901 # Account for people who put trailing slashes in PATH elements.
1903 .
/ | .
// |
/cC
/* | \
1904 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
1905 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
1908 # OSF1 and SCO ODT 3.0 have their own names for install.
1909 # Don't use installbsd from OSF since it installs stuff as root
1911 for ac_prog
in ginstall scoinst
install; do
1912 for ac_exec_ext
in '' $ac_executable_extensions; do
1913 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
1914 if test $ac_prog = install &&
1915 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
1916 # AIX install. It has an incompatible calling convention.
1918 elif test $ac_prog = install &&
1919 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
1920 # program-specific install script used by HP pwplus--don't use.
1923 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
1936 if test "${ac_cv_path_install+set}" = set; then
1937 INSTALL
=$ac_cv_path_install
1939 # As a last resort, use the slow shell script. Don't cache a
1940 # value for INSTALL within a source directory, because that will
1941 # break other packages using the cache if that directory is
1942 # removed, or if the value is a relative name.
1943 INSTALL
=$ac_install_sh
1946 { echo "$as_me:$LINENO: result: $INSTALL" >&5
1947 echo "${ECHO_T}$INSTALL" >&6; }
1949 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1950 # It thinks the first close brace ends the variable substitution.
1951 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1953 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
1955 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1957 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1958 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
1961 echo timestamp
> conftest.
file
1962 # Do `set' in a subshell so we don't clobber the current shell's
1963 # arguments. Must try -L first in case configure is actually a
1964 # symlink; some systems play weird games with the mod time of symlinks
1965 # (eg FreeBSD returns the mod time of the symlink's containing
1968 set X
`ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1969 if test "$*" = "X"; then
1971 set X
`ls -t $srcdir/configure conftest.file`
1974 if test "$*" != "X $srcdir/configure conftest.file" \
1975 && test "$*" != "X conftest.file $srcdir/configure"; then
1977 # If neither matched, then we have a broken ls. This can happen
1978 # if, for instance, CONFIG_SHELL is bash and it inherits a
1979 # broken ls alias from the environment. This has actually
1980 # happened. Such a system could not be considered "sane".
1981 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1982 alias in your environment" >&5
1983 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1984 alias in your environment" >&2;}
1985 { (exit 1); exit 1; }; }
1988 test "$2" = conftest.
file
1994 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1995 Check your system clock" >&5
1996 echo "$as_me: error: newly created file is older than distributed files!
1997 Check your system clock" >&2;}
1998 { (exit 1); exit 1; }; }
2000 { echo "$as_me:$LINENO: result: yes" >&5
2001 echo "${ECHO_T}yes" >&6; }
2002 test "$program_prefix" != NONE
&&
2003 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
2004 # Use a double $ so make ignores it.
2005 test "$program_suffix" != NONE
&&
2006 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
2007 # Double any \ or $. echo might interpret backslashes.
2008 # By default was `s,x,x', remove it if useless.
2009 cat <<\_ACEOF
>conftest.
sed
2010 s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//
2012 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
2015 # expand $ac_aux_dir to an absolute path
2016 am_aux_dir
=`cd $ac_aux_dir && pwd`
2018 test x
"${MISSING+set}" = xset || MISSING
="\${SHELL} $am_aux_dir/missing"
2019 # Use eval to expand $SHELL
2020 if eval "$MISSING --run true"; then
2021 am_missing_run
="$MISSING --run "
2024 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2025 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2028 if mkdir
-p --version .
>/dev
/null
2>&1 && test ! -d .
/--version; then
2029 # We used to keeping the `.' as first argument, in order to
2030 # allow $(mkdir_p) to be used without argument. As in
2031 # $(mkdir_p) $(somedir)
2032 # where $(somedir) is conditionally defined. However this is wrong
2034 # 1. if the package is installed by a user who cannot write `.'
2035 # make install will fail,
2036 # 2. the above comment should most certainly read
2037 # $(mkdir_p) $(DESTDIR)$(somedir)
2038 # so it does not work when $(somedir) is undefined and
2039 # $(DESTDIR) is not.
2040 # To support the latter case, we have to write
2041 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2042 # so the `.' trick is pointless.
2043 mkdir_p
='mkdir -p --'
2045 # On NextStep and OpenStep, the `mkdir' command does not
2046 # recognize any option. It will interpret all options as
2047 # directories to create, and then abort because `.' already
2049 for d
in .
/-p .
/--version;
2051 test -d $d && rmdir $d
2053 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2054 if test -f "$ac_aux_dir/mkinstalldirs"; then
2055 mkdir_p
='$(mkinstalldirs)'
2057 mkdir_p
='$(install_sh) -d'
2061 for ac_prog
in gawk mawk nawk
awk
2063 # Extract the first word of "$ac_prog", so it can be a program name with args.
2064 set dummy
$ac_prog; ac_word
=$2
2065 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2066 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2067 if test "${ac_cv_prog_AWK+set}" = set; then
2068 echo $ECHO_N "(cached) $ECHO_C" >&6
2070 if test -n "$AWK"; then
2071 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
2073 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2077 test -z "$as_dir" && as_dir
=.
2078 for ac_exec_ext
in '' $ac_executable_extensions; do
2079 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2080 ac_cv_prog_AWK
="$ac_prog"
2081 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2091 if test -n "$AWK"; then
2092 { echo "$as_me:$LINENO: result: $AWK" >&5
2093 echo "${ECHO_T}$AWK" >&6; }
2095 { echo "$as_me:$LINENO: result: no" >&5
2096 echo "${ECHO_T}no" >&6; }
2100 test -n "$AWK" && break
2103 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2104 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2105 set x
${MAKE-make}; ac_make
=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2106 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2107 echo $ECHO_N "(cached) $ECHO_C" >&6
2109 cat >conftest.
make <<\_ACEOF
2112 @
echo '@@@%%%=$(MAKE)=@@@%%%'
2114 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2115 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2117 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
2119 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
2123 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
2124 { echo "$as_me:$LINENO: result: yes" >&5
2125 echo "${ECHO_T}yes" >&6; }
2128 { echo "$as_me:$LINENO: result: no" >&5
2129 echo "${ECHO_T}no" >&6; }
2130 SET_MAKE
="MAKE=${MAKE-make}"
2133 rm -rf .tst
2>/dev
/null
2134 mkdir .tst
2>/dev
/null
2135 if test -d .tst
; then
2140 rmdir .tst
2>/dev
/null
2142 # test to see if srcdir already configured
2143 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2144 test -f $srcdir/config.status
; then
2145 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2146 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2147 { (exit 1); exit 1; }; }
2150 # test whether we have cygpath
2151 if test -z "$CYGPATH_W"; then
2152 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
2153 CYGPATH_W
='cygpath -w'
2160 # Define the identity of the package.
2165 cat >>confdefs.h
<<_ACEOF
2166 #define PACKAGE "$PACKAGE"
2170 cat >>confdefs.h
<<_ACEOF
2171 #define VERSION "$VERSION"
2174 # Some tools Automake needs.
2176 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2179 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
2182 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2185 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
2188 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
2190 install_sh
=${install_sh-"$am_aux_dir/install-sh"}
2192 # Installed binaries are usually stripped using `strip' when the user
2193 # run `make install-strip'. However `strip' might not be the right
2194 # tool to use in cross-compilation environments, therefore Automake
2195 # will honor the `STRIP' environment variable to overrule this program.
2196 if test "$cross_compiling" != no
; then
2197 if test -n "$ac_tool_prefix"; then
2198 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2199 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
2200 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2201 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2202 if test "${ac_cv_prog_STRIP+set}" = set; then
2203 echo $ECHO_N "(cached) $ECHO_C" >&6
2205 if test -n "$STRIP"; then
2206 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
2208 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2212 test -z "$as_dir" && as_dir
=.
2213 for ac_exec_ext
in '' $ac_executable_extensions; do
2214 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2215 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
2216 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2225 STRIP
=$ac_cv_prog_STRIP
2226 if test -n "$STRIP"; then
2227 { echo "$as_me:$LINENO: result: $STRIP" >&5
2228 echo "${ECHO_T}$STRIP" >&6; }
2230 { echo "$as_me:$LINENO: result: no" >&5
2231 echo "${ECHO_T}no" >&6; }
2236 if test -z "$ac_cv_prog_STRIP"; then
2238 # Extract the first word of "strip", so it can be a program name with args.
2239 set dummy strip
; ac_word
=$2
2240 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2241 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2242 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2243 echo $ECHO_N "(cached) $ECHO_C" >&6
2245 if test -n "$ac_ct_STRIP"; then
2246 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
2248 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2252 test -z "$as_dir" && as_dir
=.
2253 for ac_exec_ext
in '' $ac_executable_extensions; do
2254 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2255 ac_cv_prog_ac_ct_STRIP
="strip"
2256 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2265 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
2266 if test -n "$ac_ct_STRIP"; then
2267 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2268 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2270 { echo "$as_me:$LINENO: result: no" >&5
2271 echo "${ECHO_T}no" >&6; }
2274 if test "x$ac_ct_STRIP" = x
; then
2277 case $cross_compiling:$ac_tool_warned in
2279 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2280 whose name does not start with the host triplet. If you think this
2281 configuration is useful to you, please write to autoconf@gnu.org." >&5
2282 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2283 whose name does not start with the host triplet. If you think this
2284 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2285 ac_tool_warned
=yes ;;
2290 STRIP
="$ac_cv_prog_STRIP"
2294 INSTALL_STRIP_PROGRAM
="\${SHELL} \$(install_sh) -c -s"
2296 # We need awk for the "check" target. The system "awk" is bad on
2298 # Always define AMTAR for backward compatibility.
2300 AMTAR
=${AMTAR-"${am_missing_run}tar"}
2302 am__tar
='${AMTAR} chof - "$$tardir"'; am__untar
='${AMTAR} xf -'
2309 # Make sure we can run config.sub.
2310 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2311 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2312 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2313 { (exit 1); exit 1; }; }
2315 { echo "$as_me:$LINENO: checking build system type" >&5
2316 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2317 if test "${ac_cv_build+set}" = set; then
2318 echo $ECHO_N "(cached) $ECHO_C" >&6
2320 ac_build_alias
=$build_alias
2321 test "x$ac_build_alias" = x
&&
2322 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2323 test "x$ac_build_alias" = x
&&
2324 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2325 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2326 { (exit 1); exit 1; }; }
2327 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2328 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2329 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2330 { (exit 1); exit 1; }; }
2333 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2334 echo "${ECHO_T}$ac_cv_build" >&6; }
2335 case $ac_cv_build in
2337 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2338 echo "$as_me: error: invalid value of canonical build" >&2;}
2339 { (exit 1); exit 1; }; };;
2342 ac_save_IFS
=$IFS; IFS
='-'
2348 # Remember, the first character of IFS is used to create $*,
2349 # except with old shells:
2352 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2355 { echo "$as_me:$LINENO: checking host system type" >&5
2356 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2357 if test "${ac_cv_host+set}" = set; then
2358 echo $ECHO_N "(cached) $ECHO_C" >&6
2360 if test "x$host_alias" = x
; then
2361 ac_cv_host
=$ac_cv_build
2363 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2364 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2365 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2366 { (exit 1); exit 1; }; }
2370 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2371 echo "${ECHO_T}$ac_cv_host" >&6; }
2374 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2375 echo "$as_me: error: invalid value of canonical host" >&2;}
2376 { (exit 1); exit 1; }; };;
2379 ac_save_IFS
=$IFS; IFS
='-'
2385 # Remember, the first character of IFS is used to create $*,
2386 # except with old shells:
2389 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2394 i
[3456]86) host_cpu
=i386
;;
2395 x86_64
) host_cpu
=x86_64
;;
2396 *) { { echo "$as_me:$LINENO: error: unsupported CPU type" >&5
2397 echo "$as_me: error: unsupported CPU type" >&2;}
2398 { (exit 1); exit 1; }; } ;;
2408 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2409 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
2410 # Check whether --enable-maintainer-mode was given.
2411 if test "${enable_maintainer_mode+set}" = set; then
2412 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
2414 USE_MAINTAINER_MODE
=no
2417 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2418 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
2421 if test $USE_MAINTAINER_MODE = yes; then
2422 MAINTAINER_MODE_TRUE
=
2423 MAINTAINER_MODE_FALSE
='#'
2425 MAINTAINER_MODE_TRUE
='#'
2426 MAINTAINER_MODE_FALSE
=
2429 MAINT
=$MAINTAINER_MODE_TRUE
2432 if test "x$enable_maintainer_mode" = xyes
; then
2433 # Extract the first word of "perl", so it can be a program name with args.
2434 set dummy perl
; ac_word
=$2
2435 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2436 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2437 if test "${ac_cv_path_PERL+set}" = set; then
2438 echo $ECHO_N "(cached) $ECHO_C" >&6
2442 ac_cv_path_PERL
="$PERL" # Let the user override the test with a path.
2445 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2449 test -z "$as_dir" && as_dir
=.
2450 for ac_exec_ext
in '' $ac_executable_extensions; do
2451 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2452 ac_cv_path_PERL
="$as_dir/$ac_word$ac_exec_ext"
2453 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2463 PERL
=$ac_cv_path_PERL
2464 if test -n "$PERL"; then
2465 { echo "$as_me:$LINENO: result: $PERL" >&5
2466 echo "${ECHO_T}$PERL" >&6; }
2468 { echo "$as_me:$LINENO: result: no" >&5
2469 echo "${ECHO_T}no" >&6; }
2473 if test -z "$PERL"; then
2474 { { echo "$as_me:$LINENO: error: perl not found" >&5
2475 echo "$as_me: error: perl not found" >&2;}
2476 { (exit 1); exit 1; }; }
2480 # This should be checked before AC_PROG_CC
2481 if test "x$CFLAGS" = x
; then
2485 if test "x$host_cpu" = xx86_64
; then
2486 CFLAGS
="-m32 $CFLAGS"
2493 if test -n "$ac_tool_prefix"; then
2494 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2495 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2496 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2497 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2498 if test "${ac_cv_prog_CC+set}" = set; then
2499 echo $ECHO_N "(cached) $ECHO_C" >&6
2501 if test -n "$CC"; then
2502 ac_cv_prog_CC
="$CC" # Let the user override the test.
2504 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2508 test -z "$as_dir" && as_dir
=.
2509 for ac_exec_ext
in '' $ac_executable_extensions; do
2510 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2511 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2512 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2522 if test -n "$CC"; then
2523 { echo "$as_me:$LINENO: result: $CC" >&5
2524 echo "${ECHO_T}$CC" >&6; }
2526 { echo "$as_me:$LINENO: result: no" >&5
2527 echo "${ECHO_T}no" >&6; }
2532 if test -z "$ac_cv_prog_CC"; then
2534 # Extract the first word of "gcc", so it can be a program name with args.
2535 set dummy gcc
; ac_word
=$2
2536 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2537 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2538 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2539 echo $ECHO_N "(cached) $ECHO_C" >&6
2541 if test -n "$ac_ct_CC"; then
2542 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2544 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2548 test -z "$as_dir" && as_dir
=.
2549 for ac_exec_ext
in '' $ac_executable_extensions; do
2550 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2551 ac_cv_prog_ac_ct_CC
="gcc"
2552 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2561 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2562 if test -n "$ac_ct_CC"; then
2563 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2564 echo "${ECHO_T}$ac_ct_CC" >&6; }
2566 { echo "$as_me:$LINENO: result: no" >&5
2567 echo "${ECHO_T}no" >&6; }
2570 if test "x$ac_ct_CC" = x
; then
2573 case $cross_compiling:$ac_tool_warned in
2575 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2576 whose name does not start with the host triplet. If you think this
2577 configuration is useful to you, please write to autoconf@gnu.org." >&5
2578 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2579 whose name does not start with the host triplet. If you think this
2580 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2581 ac_tool_warned
=yes ;;
2590 ac_cpp
='$CPP $CPPFLAGS'
2591 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2592 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2593 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2594 if test -n "$ac_tool_prefix"; then
2595 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2596 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2597 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2598 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2599 if test "${ac_cv_prog_CC+set}" = set; then
2600 echo $ECHO_N "(cached) $ECHO_C" >&6
2602 if test -n "$CC"; then
2603 ac_cv_prog_CC
="$CC" # Let the user override the test.
2605 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2609 test -z "$as_dir" && as_dir
=.
2610 for ac_exec_ext
in '' $ac_executable_extensions; do
2611 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2612 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2613 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2623 if test -n "$CC"; then
2624 { echo "$as_me:$LINENO: result: $CC" >&5
2625 echo "${ECHO_T}$CC" >&6; }
2627 { echo "$as_me:$LINENO: result: no" >&5
2628 echo "${ECHO_T}no" >&6; }
2633 if test -z "$ac_cv_prog_CC"; then
2635 # Extract the first word of "gcc", so it can be a program name with args.
2636 set dummy gcc
; ac_word
=$2
2637 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2638 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2639 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2640 echo $ECHO_N "(cached) $ECHO_C" >&6
2642 if test -n "$ac_ct_CC"; then
2643 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2645 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2649 test -z "$as_dir" && as_dir
=.
2650 for ac_exec_ext
in '' $ac_executable_extensions; do
2651 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2652 ac_cv_prog_ac_ct_CC
="gcc"
2653 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2662 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2663 if test -n "$ac_ct_CC"; then
2664 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2665 echo "${ECHO_T}$ac_ct_CC" >&6; }
2667 { echo "$as_me:$LINENO: result: no" >&5
2668 echo "${ECHO_T}no" >&6; }
2671 if test "x$ac_ct_CC" = x
; then
2674 case $cross_compiling:$ac_tool_warned in
2676 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2677 whose name does not start with the host triplet. If you think this
2678 configuration is useful to you, please write to autoconf@gnu.org." >&5
2679 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2680 whose name does not start with the host triplet. If you think this
2681 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2682 ac_tool_warned
=yes ;;
2690 if test -z "$CC"; then
2691 if test -n "$ac_tool_prefix"; then
2692 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2693 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2694 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2695 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2696 if test "${ac_cv_prog_CC+set}" = set; then
2697 echo $ECHO_N "(cached) $ECHO_C" >&6
2699 if test -n "$CC"; then
2700 ac_cv_prog_CC
="$CC" # Let the user override the test.
2702 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2706 test -z "$as_dir" && as_dir
=.
2707 for ac_exec_ext
in '' $ac_executable_extensions; do
2708 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2709 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2710 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2720 if test -n "$CC"; then
2721 { echo "$as_me:$LINENO: result: $CC" >&5
2722 echo "${ECHO_T}$CC" >&6; }
2724 { echo "$as_me:$LINENO: result: no" >&5
2725 echo "${ECHO_T}no" >&6; }
2731 if test -z "$CC"; then
2732 # Extract the first word of "cc", so it can be a program name with args.
2733 set dummy cc
; ac_word
=$2
2734 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2735 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2736 if test "${ac_cv_prog_CC+set}" = set; then
2737 echo $ECHO_N "(cached) $ECHO_C" >&6
2739 if test -n "$CC"; then
2740 ac_cv_prog_CC
="$CC" # Let the user override the test.
2743 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2747 test -z "$as_dir" && as_dir
=.
2748 for ac_exec_ext
in '' $ac_executable_extensions; do
2749 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2750 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2751 ac_prog_rejected
=yes
2755 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2762 if test $ac_prog_rejected = yes; then
2763 # We found a bogon in the path, so make sure we never use it.
2764 set dummy
$ac_cv_prog_CC
2766 if test $# != 0; then
2767 # We chose a different compiler from the bogus one.
2768 # However, it has the same basename, so the bogon will be chosen
2769 # first if we set CC to just the basename; use the full file name.
2771 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2777 if test -n "$CC"; then
2778 { echo "$as_me:$LINENO: result: $CC" >&5
2779 echo "${ECHO_T}$CC" >&6; }
2781 { echo "$as_me:$LINENO: result: no" >&5
2782 echo "${ECHO_T}no" >&6; }
2787 if test -z "$CC"; then
2788 if test -n "$ac_tool_prefix"; then
2789 for ac_prog
in cl.exe
2791 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2792 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2793 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2794 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2795 if test "${ac_cv_prog_CC+set}" = set; then
2796 echo $ECHO_N "(cached) $ECHO_C" >&6
2798 if test -n "$CC"; then
2799 ac_cv_prog_CC
="$CC" # Let the user override the test.
2801 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2805 test -z "$as_dir" && as_dir
=.
2806 for ac_exec_ext
in '' $ac_executable_extensions; do
2807 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2808 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2809 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2819 if test -n "$CC"; then
2820 { echo "$as_me:$LINENO: result: $CC" >&5
2821 echo "${ECHO_T}$CC" >&6; }
2823 { echo "$as_me:$LINENO: result: no" >&5
2824 echo "${ECHO_T}no" >&6; }
2828 test -n "$CC" && break
2831 if test -z "$CC"; then
2833 for ac_prog
in cl.exe
2835 # Extract the first word of "$ac_prog", so it can be a program name with args.
2836 set dummy
$ac_prog; ac_word
=$2
2837 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2838 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2839 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2840 echo $ECHO_N "(cached) $ECHO_C" >&6
2842 if test -n "$ac_ct_CC"; then
2843 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2845 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2849 test -z "$as_dir" && as_dir
=.
2850 for ac_exec_ext
in '' $ac_executable_extensions; do
2851 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2852 ac_cv_prog_ac_ct_CC
="$ac_prog"
2853 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2862 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2863 if test -n "$ac_ct_CC"; then
2864 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2865 echo "${ECHO_T}$ac_ct_CC" >&6; }
2867 { echo "$as_me:$LINENO: result: no" >&5
2868 echo "${ECHO_T}no" >&6; }
2872 test -n "$ac_ct_CC" && break
2875 if test "x$ac_ct_CC" = x
; then
2878 case $cross_compiling:$ac_tool_warned in
2880 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2881 whose name does not start with the host triplet. If you think this
2882 configuration is useful to you, please write to autoconf@gnu.org." >&5
2883 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2884 whose name does not start with the host triplet. If you think this
2885 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2886 ac_tool_warned
=yes ;;
2895 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2896 See \`config.log' for more details." >&5
2897 echo "$as_me: error: no acceptable C compiler found in \$PATH
2898 See \`config.log' for more details." >&2;}
2899 { (exit 1); exit 1; }; }
2901 # Provide some information about the compiler.
2902 echo "$as_me:$LINENO: checking for C compiler version" >&5
2903 ac_compiler
=`set X $ac_compile; echo $2`
2904 { (ac_try
="$ac_compiler --version >&5"
2906 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2907 *) ac_try_echo=$ac_try;;
2909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2910 (eval "$ac_compiler --version >&5") 2>&5
2912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2913 (exit $ac_status); }
2914 { (ac_try="$ac_compiler -v >&5"
2916 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2917 *) ac_try_echo
=$ac_try;;
2919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2920 (eval "$ac_compiler -v >&5") 2>&5
2922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2923 (exit $ac_status); }
2924 { (ac_try
="$ac_compiler -V >&5"
2926 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2927 *) ac_try_echo=$ac_try;;
2929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2930 (eval "$ac_compiler -V >&5") 2>&5
2932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2933 (exit $ac_status); }
2935 cat >conftest.$ac_ext <<_ACEOF
2938 cat confdefs.h >>conftest.$ac_ext
2939 cat >>conftest.$ac_ext <<_ACEOF
2940 /* end confdefs.h. */
2950 ac_clean_files_save=$ac_clean_files
2951 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2952 # Try to create an executable without -o first, disregard a.out.
2953 # It will help us diagnose broken compilers, and finding out an intuition
2955 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2956 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2957 ac_link_default=`echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
2959 # List of possible output files, starting from the most likely.
2960 # The algorithm is not robust to junk in `.
', hence go to wildcards (a.*)
2961 # only as a last resort. b.out is created by i960 compilers.
2962 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
'
2964 # The IRIX 6 linker writes into existing files which may not be
2965 # executable, retaining their permissions. Remove them first so a
2966 # subsequent execution test works.
2968 for ac_file in $ac_files
2971 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2972 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2977 if { (ac_try="$ac_link_default"
2979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2980 *) ac_try_echo=$ac_try;;
2982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2983 (eval "$ac_link_default") 2>&5
2985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2986 (exit $ac_status); }; then
2987 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2988 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2989 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2990 # so that the user can short-circuit this test for compilers unknown to
2992 for ac_file
in $ac_files ''
2994 test -f "$ac_file" ||
continue
2996 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
)
2999 # We found the default executable, but exeext='' is most
3003 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3005 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3007 # We set ac_cv_exeext here because the later test for it is not
3008 # safe: cross compilers may not add the suffix if given an `-o'
3009 # argument, so we may need to know it at that point already.
3010 # Even if this section looks crufty: it has the advantage of
3017 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3023 { echo "$as_me:$LINENO: result: $ac_file" >&5
3024 echo "${ECHO_T}$ac_file" >&6; }
3025 if test -z "$ac_file"; then
3026 echo "$as_me: failed program was:" >&5
3027 sed 's/^/| /' conftest.
$ac_ext >&5
3029 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3030 See \`config.log' for more details." >&5
3031 echo "$as_me: error: C compiler cannot create executables
3032 See \`config.log' for more details." >&2;}
3033 { (exit 77); exit 77; }; }
3036 ac_exeext
=$ac_cv_exeext
3038 # Check that the compiler produces executables we can run. If not, either
3039 # the compiler is broken, or we cross compile.
3040 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3041 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3042 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3043 # If not cross compiling, check that we can run a simple program.
3044 if test "$cross_compiling" != yes; then
3045 if { ac_try
='./$ac_file'
3046 { (case "(($ac_try" in
3047 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3048 *) ac_try_echo=$ac_try;;
3050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3051 (eval "$ac_try") 2>&5
3053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3054 (exit $ac_status); }; }; then
3057 if test "$cross_compiling" = maybe; then
3060 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3061 If you meant to cross compile, use \`--host'.
3062 See \`config.log' for more details.
" >&5
3063 echo "$as_me: error
: cannot run C compiled programs.
3064 If you meant to cross compile
, use \
`--host'.
3065 See \`config.log
' for more details." >&2;}
3066 { (exit 1); exit 1; }; }
3070 { echo "$as_me:$LINENO: result: yes" >&5
3071 echo "${ECHO_T}yes" >&6; }
3073 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3074 ac_clean_files=$ac_clean_files_save
3075 # Check that the compiler produces executables we can run. If not, either
3076 # the compiler is broken, or we cross compile.
3077 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3078 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3079 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3080 echo "${ECHO_T}$cross_compiling" >&6; }
3082 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3083 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3084 if { (ac_try="$ac_link"
3086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3087 *) ac_try_echo=$ac_try;;
3089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3090 (eval "$ac_link") 2>&5
3092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3093 (exit $ac_status); }; then
3094 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3095 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3096 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3098 for ac_file
in conftest.exe conftest conftest.
*; do
3099 test -f "$ac_file" ||
continue
3101 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
) ;;
3102 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3108 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3109 See \`config.log' for more details." >&5
3110 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3111 See \`config.log' for more details." >&2;}
3112 { (exit 1); exit 1; }; }
3115 rm -f conftest
$ac_cv_exeext
3116 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3117 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3119 rm -f conftest.
$ac_ext
3120 EXEEXT
=$ac_cv_exeext
3122 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3123 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3124 if test "${ac_cv_objext+set}" = set; then
3125 echo $ECHO_N "(cached) $ECHO_C" >&6
3127 cat >conftest.
$ac_ext <<_ACEOF
3130 cat confdefs.h
>>conftest.
$ac_ext
3131 cat >>conftest.
$ac_ext <<_ACEOF
3132 /* end confdefs.h. */
3142 rm -f conftest.o conftest.obj
3143 if { (ac_try
="$ac_compile"
3145 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3146 *) ac_try_echo=$ac_try;;
3148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3149 (eval "$ac_compile") 2>&5
3151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3152 (exit $ac_status); }; then
3153 for ac_file in conftest.o conftest.obj conftest.*; do
3154 test -f "$ac_file" || continue;
3156 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3157 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3162 echo "$as_me: failed program was:" >&5
3163 sed 's/^/| /' conftest.$ac_ext >&5
3165 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3166 See \`config.log
' for more details." >&5
3167 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3168 See \`config.log' for more details.
" >&2;}
3169 { (exit 1); exit 1; }; }
3172 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3174 { echo "$as_me:$LINENO: result
: $ac_cv_objext" >&5
3175 echo "${ECHO_T}$ac_cv_objext" >&6; }
3176 OBJEXT=$ac_cv_objext
3178 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler
" >&5
3179 echo $ECHO_N "checking whether we are using the GNU C compiler...
$ECHO_C" >&6; }
3180 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3181 echo $ECHO_N "(cached
) $ECHO_C" >&6
3183 cat >conftest.$ac_ext <<_ACEOF
3186 cat confdefs.h >>conftest.$ac_ext
3187 cat >>conftest.$ac_ext <<_ACEOF
3188 /* end confdefs.h. */
3201 rm -f conftest.$ac_objext
3202 if { (ac_try="$ac_compile"
3204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3205 *) ac_try_echo=$ac_try;;
3207 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3208 (eval "$ac_compile") 2>conftest.er1
3210 grep -v '^ *+' conftest.er1 >conftest.err
3212 cat conftest.err >&5
3213 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3214 (exit $ac_status); } && {
3215 test -z "$ac_c_werror_flag" ||
3216 test ! -s conftest.err
3217 } && test -s conftest.$ac_objext; then
3220 echo "$as_me: failed program was
:" >&5
3221 sed 's/^/| /' conftest.$ac_ext >&5
3226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3227 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3230 { echo "$as_me:$LINENO: result
: $ac_cv_c_compiler_gnu" >&5
3231 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3232 GCC=`test $ac_compiler_gnu = yes && echo yes`
3233 ac_test_CFLAGS=${CFLAGS+set}
3234 ac_save_CFLAGS=$CFLAGS
3235 { echo "$as_me:$LINENO: checking whether
$CC accepts
-g" >&5
3236 echo $ECHO_N "checking whether
$CC accepts
-g...
$ECHO_C" >&6; }
3237 if test "${ac_cv_prog_cc_g+set}" = set; then
3238 echo $ECHO_N "(cached
) $ECHO_C" >&6
3240 ac_save_c_werror_flag=$ac_c_werror_flag
3241 ac_c_werror_flag=yes
3244 cat >conftest.$ac_ext <<_ACEOF
3247 cat confdefs.h >>conftest.$ac_ext
3248 cat >>conftest.$ac_ext <<_ACEOF
3249 /* end confdefs.h. */
3259 rm -f conftest.$ac_objext
3260 if { (ac_try="$ac_compile"
3262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3263 *) ac_try_echo=$ac_try;;
3265 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3266 (eval "$ac_compile") 2>conftest.er1
3268 grep -v '^ *+' conftest.er1 >conftest.err
3270 cat conftest.err >&5
3271 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3272 (exit $ac_status); } && {
3273 test -z "$ac_c_werror_flag" ||
3274 test ! -s conftest.err
3275 } && test -s conftest.$ac_objext; then
3278 echo "$as_me: failed program was
:" >&5
3279 sed 's/^/| /' conftest.$ac_ext >&5
3282 cat >conftest.$ac_ext <<_ACEOF
3285 cat confdefs.h >>conftest.$ac_ext
3286 cat >>conftest.$ac_ext <<_ACEOF
3287 /* end confdefs.h. */
3297 rm -f conftest.$ac_objext
3298 if { (ac_try="$ac_compile"
3300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3301 *) ac_try_echo=$ac_try;;
3303 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3304 (eval "$ac_compile") 2>conftest.er1
3306 grep -v '^ *+' conftest.er1 >conftest.err
3308 cat conftest.err >&5
3309 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3310 (exit $ac_status); } && {
3311 test -z "$ac_c_werror_flag" ||
3312 test ! -s conftest.err
3313 } && test -s conftest.$ac_objext; then
3316 echo "$as_me: failed program was
:" >&5
3317 sed 's/^/| /' conftest.$ac_ext >&5
3319 ac_c_werror_flag=$ac_save_c_werror_flag
3321 cat >conftest.$ac_ext <<_ACEOF
3324 cat confdefs.h >>conftest.$ac_ext
3325 cat >>conftest.$ac_ext <<_ACEOF
3326 /* end confdefs.h. */
3336 rm -f conftest.$ac_objext
3337 if { (ac_try="$ac_compile"
3339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3340 *) ac_try_echo=$ac_try;;
3342 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3343 (eval "$ac_compile") 2>conftest.er1
3345 grep -v '^ *+' conftest.er1 >conftest.err
3347 cat conftest.err >&5
3348 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3349 (exit $ac_status); } && {
3350 test -z "$ac_c_werror_flag" ||
3351 test ! -s conftest.err
3352 } && test -s conftest.$ac_objext; then
3355 echo "$as_me: failed program was
:" >&5
3356 sed 's/^/| /' conftest.$ac_ext >&5
3361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3368 ac_c_werror_flag=$ac_save_c_werror_flag
3370 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_g" >&5
3371 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3372 if test "$ac_test_CFLAGS" = set; then
3373 CFLAGS=$ac_save_CFLAGS
3374 elif test $ac_cv_prog_cc_g = yes; then
3375 if test "$GCC" = yes; then
3381 if test "$GCC" = yes; then
3387 { echo "$as_me:$LINENO: checking
for $CC option to accept ISO C89
" >&5
3388 echo $ECHO_N "checking
for $CC option to accept ISO C89...
$ECHO_C" >&6; }
3389 if test "${ac_cv_prog_cc_c89+set}" = set; then
3390 echo $ECHO_N "(cached
) $ECHO_C" >&6
3392 ac_cv_prog_cc_c89=no
3394 cat >conftest.$ac_ext <<_ACEOF
3397 cat confdefs.h >>conftest.$ac_ext
3398 cat >>conftest.$ac_ext <<_ACEOF
3399 /* end confdefs.h. */
3402 #include <sys/types.h>
3403 #include <sys/stat.h>
3404 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3405 struct buf { int x; };
3406 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3407 static char *e (p, i)
3413 static char *f (char * (*g) (char **, int), char **p, ...)
3418 s = g (p, va_arg (v,int));
3423 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3424 function prototypes and stuff, but not '\xHH' hex character constants.
3425 These don't provoke an error unfortunately, instead are silently treated
3426 as 'x'. The following induces an error, until -std is added to get
3427 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3428 array size at least. It's necessary to write '\x00'==0 to get something
3429 that's true only with -std. */
3430 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3432 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3433 inside strings and character constants. */
3435 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3437 int test (int i, double x);
3438 struct s1 {int (*f) (int a);};
3439 struct s2 {int (*f) (double a);};
3440 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3446 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3451 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3452 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3454 CC="$ac_save_CC $ac_arg"
3455 rm -f conftest.$ac_objext
3456 if { (ac_try="$ac_compile"
3458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3459 *) ac_try_echo=$ac_try;;
3461 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3462 (eval "$ac_compile") 2>conftest.er1
3464 grep -v '^ *+' conftest.er1 >conftest.err
3466 cat conftest.err >&5
3467 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3468 (exit $ac_status); } && {
3469 test -z "$ac_c_werror_flag" ||
3470 test ! -s conftest.err
3471 } && test -s conftest.$ac_objext; then
3472 ac_cv_prog_cc_c89=$ac_arg
3474 echo "$as_me: failed program was
:" >&5
3475 sed 's/^/| /' conftest.$ac_ext >&5
3480 rm -f core conftest.err conftest.$ac_objext
3481 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
3483 rm -f conftest.$ac_ext
3488 case "x
$ac_cv_prog_cc_c89" in
3490 { echo "$as_me:$LINENO: result
: none needed
" >&5
3491 echo "${ECHO_T}none needed
" >&6; } ;;
3493 { echo "$as_me:$LINENO: result
: unsupported
" >&5
3494 echo "${ECHO_T}unsupported
" >&6; } ;;
3496 CC="$CC $ac_cv_prog_cc_c89"
3497 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_c89" >&5
3498 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3503 ac_cpp='$CPP $CPPFLAGS'
3504 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3505 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3506 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3507 DEPDIR="${am__leading_dot}deps
"
3509 ac_config_commands="$ac_config_commands depfiles
"
3512 am_make=${MAKE-make}
3513 cat > confinc << 'END'
3518 # If we don't find an include directive, just comment out the code.
3519 { echo "$as_me:$LINENO: checking
for style of include used by
$am_make" >&5
3520 echo $ECHO_N "checking
for style of include used by
$am_make...
$ECHO_C" >&6; }
3524 # First try GNU make style include.
3525 echo "include confinc" > confmf
3526 # We grep out `Entering directory' and `Leaving directory'
3527 # messages which can occur if `w' ends up in MAKEFLAGS.
3528 # In particular we don't look at `^make:' because GNU make might
3529 # be invoked under some other name (usually "gmake"), in which
3530 # case it prints its new name instead of `make'.
3531 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3536 # Now try BSD make style include.
3537 if test "$am__include" = "#"; then
3538 echo '.include "confinc"' > confmf
3539 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3540 am__include
=.include
3547 { echo "$as_me:$LINENO: result: $_am_result" >&5
3548 echo "${ECHO_T}$_am_result" >&6; }
3549 rm -f confinc confmf
3551 # Check whether --enable-dependency-tracking was given.
3552 if test "${enable_dependency_tracking+set}" = set; then
3553 enableval
=$enable_dependency_tracking;
3556 if test "x$enable_dependency_tracking" != xno
; then
3557 am_depcomp
="$ac_aux_dir/depcomp"
3562 if test "x$enable_dependency_tracking" != xno; then
3573 depcc
="$CC" am_compiler_list
=
3575 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3576 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3577 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3578 echo $ECHO_N "(cached) $ECHO_C" >&6
3580 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3581 # We make a subdir and do the tests there. Otherwise we can end up
3582 # making bogus files that we don't know about and never remove. For
3583 # instance it was reported that on HP-UX the gcc test will end up
3584 # making a dummy file named `D' -- because `-MD' means `put the output
3587 # Copy depcomp to subdir because otherwise we won't find it if we're
3588 # using a relative directory.
3589 cp "$am_depcomp" conftest.dir
3591 # We will build objects and dependencies in a subdirectory because
3592 # it helps to detect inapplicable dependency modes. For instance
3593 # both Tru64's cc and ICC support -MD to output dependencies as a
3594 # side effect of compilation, but ICC will put the dependencies in
3595 # the current directory while Tru64 will put them in the object
3599 am_cv_CC_dependencies_compiler_type
=none
3600 if test "$am_compiler_list" = ""; then
3601 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3603 for depmode
in $am_compiler_list; do
3604 # Setup a source with many dependencies, because some compilers
3605 # like to wrap large dependency lists on column 80 (with \), and
3606 # we should not choose a depcomp mode which is confused by this.
3608 # We need to recreate these files for each test, as the compiler may
3609 # overwrite some of them when testing with obscure command lines.
3610 # This happens at least with the AIX C compiler.
3612 for i
in 1 2 3 4 5 6; do
3613 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
3614 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3615 # Solaris 8's {/usr,}/bin/sh.
3616 touch sub
/conftst
$i.h
3618 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3622 # after this tag, mechanisms are not by side-effect, so they'll
3623 # only be used when explicitly requested
3624 if test "x$enable_dependency_tracking" = xyes
; then
3632 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3633 # mode. It turns out that the SunPro C++ compiler does not properly
3634 # handle `-M -o', and we need to detect this.
3635 if depmode
=$depmode \
3636 source=sub
/conftest.c object
=sub
/conftest.
${OBJEXT-o} \
3637 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
3638 $SHELL .
/depcomp
$depcc -c -o sub
/conftest.
${OBJEXT-o} sub
/conftest.c \
3639 >/dev
/null
2>conftest.err
&&
3640 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
3641 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
> /dev
/null
2>&1 &&
3642 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
3643 # icc doesn't choke on unknown options, it will just issue warnings
3644 # or remarks (even with -Werror). So we grep stderr for any message
3645 # that says an option was ignored or not supported.
3646 # When given -MP, icc 7.0 and 7.1 complain thusly:
3647 # icc: Command line warning: ignoring option '-M'; no argument required
3648 # The diagnosis changed in icc 8.0:
3649 # icc: Command line remark: option '-MP' not supported
3650 if (grep 'ignoring option' conftest.err ||
3651 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
3652 am_cv_CC_dependencies_compiler_type
=$depmode
3661 am_cv_CC_dependencies_compiler_type
=none
3665 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3666 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3667 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
3672 test "x$enable_dependency_tracking" != xno \
3673 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
3675 am__fastdepCC_FALSE
='#'
3677 am__fastdepCC_TRUE
='#'
3678 am__fastdepCC_FALSE
=
3682 # We need this for older versions of Autoconf.
3684 depcc
="$CC" am_compiler_list
=
3686 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3687 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3688 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3689 echo $ECHO_N "(cached) $ECHO_C" >&6
3691 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3692 # We make a subdir and do the tests there. Otherwise we can end up
3693 # making bogus files that we don't know about and never remove. For
3694 # instance it was reported that on HP-UX the gcc test will end up
3695 # making a dummy file named `D' -- because `-MD' means `put the output
3698 # Copy depcomp to subdir because otherwise we won't find it if we're
3699 # using a relative directory.
3700 cp "$am_depcomp" conftest.dir
3702 # We will build objects and dependencies in a subdirectory because
3703 # it helps to detect inapplicable dependency modes. For instance
3704 # both Tru64's cc and ICC support -MD to output dependencies as a
3705 # side effect of compilation, but ICC will put the dependencies in
3706 # the current directory while Tru64 will put them in the object
3710 am_cv_CC_dependencies_compiler_type
=none
3711 if test "$am_compiler_list" = ""; then
3712 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3714 for depmode
in $am_compiler_list; do
3715 # Setup a source with many dependencies, because some compilers
3716 # like to wrap large dependency lists on column 80 (with \), and
3717 # we should not choose a depcomp mode which is confused by this.
3719 # We need to recreate these files for each test, as the compiler may
3720 # overwrite some of them when testing with obscure command lines.
3721 # This happens at least with the AIX C compiler.
3723 for i
in 1 2 3 4 5 6; do
3724 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
3725 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3726 # Solaris 8's {/usr,}/bin/sh.
3727 touch sub
/conftst
$i.h
3729 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3733 # after this tag, mechanisms are not by side-effect, so they'll
3734 # only be used when explicitly requested
3735 if test "x$enable_dependency_tracking" = xyes
; then
3743 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3744 # mode. It turns out that the SunPro C++ compiler does not properly
3745 # handle `-M -o', and we need to detect this.
3746 if depmode
=$depmode \
3747 source=sub
/conftest.c object
=sub
/conftest.
${OBJEXT-o} \
3748 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
3749 $SHELL .
/depcomp
$depcc -c -o sub
/conftest.
${OBJEXT-o} sub
/conftest.c \
3750 >/dev
/null
2>conftest.err
&&
3751 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
3752 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
> /dev
/null
2>&1 &&
3753 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
3754 # icc doesn't choke on unknown options, it will just issue warnings
3755 # or remarks (even with -Werror). So we grep stderr for any message
3756 # that says an option was ignored or not supported.
3757 # When given -MP, icc 7.0 and 7.1 complain thusly:
3758 # icc: Command line warning: ignoring option '-M'; no argument required
3759 # The diagnosis changed in icc 8.0:
3760 # icc: Command line remark: option '-MP' not supported
3761 if (grep 'ignoring option' conftest.err ||
3762 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
3763 am_cv_CC_dependencies_compiler_type
=$depmode
3772 am_cv_CC_dependencies_compiler_type
=none
3776 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3777 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3778 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
3783 test "x$enable_dependency_tracking" != xno \
3784 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
3786 am__fastdepCC_FALSE
='#'
3788 am__fastdepCC_TRUE
='#'
3789 am__fastdepCC_FALSE
=
3798 # Check whether --with-binutils was given.
3799 if test "${with_binutils+set}" = set; then
3800 withval
=$with_binutils;
3804 if test "x$with_binutils" != x
; then
3805 # Extract the first word of "ranlib", so it can be a program name with args.
3806 set dummy ranlib
; ac_word
=$2
3807 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3808 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3809 if test "${ac_cv_path_RANLIB+set}" = set; then
3810 echo $ECHO_N "(cached) $ECHO_C" >&6
3814 ac_cv_path_RANLIB
="$RANLIB" # Let the user override the test with a path.
3817 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3818 as_dummy
=""$with_binutils:$PATH""
3819 for as_dir
in $as_dummy
3822 test -z "$as_dir" && as_dir
=.
3823 for ac_exec_ext
in '' $ac_executable_extensions; do
3824 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3825 ac_cv_path_RANLIB
="$as_dir/$ac_word$ac_exec_ext"
3826 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3833 test -z "$ac_cv_path_RANLIB" && ac_cv_path_RANLIB
=":"
3837 RANLIB
=$ac_cv_path_RANLIB
3838 if test -n "$RANLIB"; then
3839 { echo "$as_me:$LINENO: result: $RANLIB" >&5
3840 echo "${ECHO_T}$RANLIB" >&6; }
3842 { echo "$as_me:$LINENO: result: no" >&5
3843 echo "${ECHO_T}no" >&6; }
3848 if test -n "$ac_tool_prefix"; then
3849 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3850 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
3851 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3852 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3853 if test "${ac_cv_prog_RANLIB+set}" = set; then
3854 echo $ECHO_N "(cached) $ECHO_C" >&6
3856 if test -n "$RANLIB"; then
3857 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
3859 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3863 test -z "$as_dir" && as_dir
=.
3864 for ac_exec_ext
in '' $ac_executable_extensions; do
3865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3866 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
3867 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3876 RANLIB
=$ac_cv_prog_RANLIB
3877 if test -n "$RANLIB"; then
3878 { echo "$as_me:$LINENO: result: $RANLIB" >&5
3879 echo "${ECHO_T}$RANLIB" >&6; }
3881 { echo "$as_me:$LINENO: result: no" >&5
3882 echo "${ECHO_T}no" >&6; }
3887 if test -z "$ac_cv_prog_RANLIB"; then
3888 ac_ct_RANLIB
=$RANLIB
3889 # Extract the first word of "ranlib", so it can be a program name with args.
3890 set dummy ranlib
; ac_word
=$2
3891 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3892 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3893 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3894 echo $ECHO_N "(cached) $ECHO_C" >&6
3896 if test -n "$ac_ct_RANLIB"; then
3897 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
3899 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3903 test -z "$as_dir" && as_dir
=.
3904 for ac_exec_ext
in '' $ac_executable_extensions; do
3905 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3906 ac_cv_prog_ac_ct_RANLIB
="ranlib"
3907 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3916 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
3917 if test -n "$ac_ct_RANLIB"; then
3918 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3919 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
3921 { echo "$as_me:$LINENO: result: no" >&5
3922 echo "${ECHO_T}no" >&6; }
3925 if test "x$ac_ct_RANLIB" = x
; then
3928 case $cross_compiling:$ac_tool_warned in
3930 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3931 whose name does not start with the host triplet. If you think this
3932 configuration is useful to you, please write to autoconf@gnu.org." >&5
3933 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3934 whose name does not start with the host triplet. If you think this
3935 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3936 ac_tool_warned
=yes ;;
3938 RANLIB
=$ac_ct_RANLIB
3941 RANLIB
="$ac_cv_prog_RANLIB"
3946 # optimization flags
3947 if test "x$ac_cv_c_compiler_gnu" = xyes
; then
3948 if test "x$default_CFLAGS" = xyes
; then
3949 # Autoconf may set CFLAGS to -O2 and/or -g. So eliminate them.
3950 CFLAGS
="`echo $CFLAGS | sed -e 's/-g//g' -e 's/-O[0-9]//g'` -g"
3951 # If the user specify the directory for binutils, add the option `-B'.
3952 if test "x$with_binutils" != x
; then
3953 CFLAGS
="-B$with_binutils/ $CFLAGS"
3958 { echo "$as_me:$LINENO: checking whether optimization for size works" >&5
3959 echo $ECHO_N "checking whether optimization for size works... $ECHO_C" >&6; }
3960 if test "${size_flag+set}" = set; then
3961 echo $ECHO_N "(cached) $ECHO_C" >&6
3964 saved_CFLAGS
=$CFLAGS
3966 cat >conftest.
$ac_ext <<_ACEOF
3969 cat confdefs.h
>>conftest.
$ac_ext
3970 cat >>conftest.
$ac_ext <<_ACEOF
3971 /* end confdefs.h. */
3981 rm -f conftest.
$ac_objext
3982 if { (ac_try
="$ac_compile"
3984 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3985 *) ac_try_echo=$ac_try;;
3987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3988 (eval "$ac_compile") 2>conftest.er1
3990 grep -v '^ *+' conftest.er1 >conftest.err
3992 cat conftest.err >&5
3993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3994 (exit $ac_status); } && {
3995 test -z "$ac_c_werror_flag" ||
3996 test ! -s conftest.err
3997 } && test -s conftest.$ac_objext; then
4000 echo "$as_me: failed program was:" >&5
4001 sed 's/^/| /' conftest.$ac_ext >&5
4006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4007 CFLAGS=$saved_CFLAGS
4010 { echo "$as_me:$LINENO: result: $size_flag" >&5
4011 echo "${ECHO_T}$size_flag" >&6; }
4012 if test "x$size_flag" = xyes; then
4015 STAGE2_CFLAGS="-O2 -fno-strength-reduce -fno-unroll-loops"
4017 # OpenBSD has a GCC extension for protecting applications from
4018 # stack smashing attacks, but GRUB doesn't want this feature.
4019 { echo "$as_me:$LINENO: checking whether gcc has -fno-stack-protector" >&5
4020 echo $ECHO_N "checking whether gcc has -fno-stack-protector... $ECHO_C" >&6; }
4021 if test "${no_stack_protector_flag+set}" = set; then
4022 echo $ECHO_N "(cached) $ECHO_C" >&6
4025 saved_CFLAGS=$CFLAGS
4026 CFLAGS="-fno-stack-protector"
4027 cat >conftest.$ac_ext <<_ACEOF
4030 cat confdefs.h >>conftest.$ac_ext
4031 cat >>conftest.$ac_ext <<_ACEOF
4032 /* end confdefs.h. */
4042 rm -f conftest.$ac_objext
4043 if { (ac_try="$ac_compile"
4045 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4046 *) ac_try_echo
=$ac_try;;
4048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4049 (eval "$ac_compile") 2>conftest.er1
4051 grep -v '^ *+' conftest.er1
>conftest.err
4053 cat conftest.err
>&5
4054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4055 (exit $ac_status); } && {
4056 test -z "$ac_c_werror_flag" ||
4057 test ! -s conftest.err
4058 } && test -s conftest.
$ac_objext; then
4059 no_stack_protector_flag
=yes
4061 echo "$as_me: failed program was:" >&5
4062 sed 's/^/| /' conftest.
$ac_ext >&5
4064 no_stack_protector_flag
=no
4067 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4068 CFLAGS
=$saved_CFLAGS
4071 { echo "$as_me:$LINENO: result: $no_stack_protector_flag" >&5
4072 echo "${ECHO_T}$no_stack_protector_flag" >&6; }
4073 if test "x$no_stack_protector_flag" = xyes
; then
4074 STAGE2_CFLAGS
="$STAGE2_CFLAGS -fno-stack-protector"
4076 STAGE2_CFLAGS
="$STAGE2_CFLAGS -fno-strict-aliasing -fno-reorder-functions"
4084 # Enforce coding standards.
4085 CPPFLAGS
="$CPPFLAGS -Wall -Wmissing-prototypes -Wunused -Wshadow"
4086 CPPFLAGS
="$CPPFLAGS -Wpointer-arith"
4088 { echo "$as_me:$LINENO: checking whether -Wundef works" >&5
4089 echo $ECHO_N "checking whether -Wundef works... $ECHO_C" >&6; }
4090 if test "${undef_flag+set}" = set; then
4091 echo $ECHO_N "(cached) $ECHO_C" >&6
4094 saved_CPPFLAGS
="$CPPFLAGS"
4096 cat >conftest.
$ac_ext <<_ACEOF
4099 cat confdefs.h
>>conftest.
$ac_ext
4100 cat >>conftest.
$ac_ext <<_ACEOF
4101 /* end confdefs.h. */
4111 rm -f conftest.
$ac_objext
4112 if { (ac_try
="$ac_compile"
4114 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4115 *) ac_try_echo=$ac_try;;
4117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4118 (eval "$ac_compile") 2>conftest.er1
4120 grep -v '^ *+' conftest.er1 >conftest.err
4122 cat conftest.err >&5
4123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4124 (exit $ac_status); } && {
4125 test -z "$ac_c_werror_flag" ||
4126 test ! -s conftest.err
4127 } && test -s conftest.$ac_objext; then
4130 echo "$as_me: failed program was:" >&5
4131 sed 's/^/| /' conftest.$ac_ext >&5
4136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4137 CPPFLAGS="$saved_CPPFLAGS"
4140 { echo "$as_me:$LINENO: result: $undef_flag" >&5
4141 echo "${ECHO_T}$undef_flag" >&6; }
4143 # The options `-falign-*' are supported by gcc 3.0 or later.
4144 # Probably it is sufficient to only check for -falign-loops.
4145 { echo "$as_me:$LINENO: checking whether -falign-loops works" >&5
4146 echo $ECHO_N "checking whether -falign-loops works... $ECHO_C" >&6; }
4147 if test "${falign_loop_flag+set}" = set; then
4148 echo $ECHO_N "(cached) $ECHO_C" >&6
4151 saved_CPPFLAGS="$CPPFLAGS"
4152 CPPFLAGS="-falign-loops=1"
4153 cat >conftest.$ac_ext <<_ACEOF
4156 cat confdefs.h >>conftest.$ac_ext
4157 cat >>conftest.$ac_ext <<_ACEOF
4158 /* end confdefs.h. */
4168 rm -f conftest.$ac_objext
4169 if { (ac_try="$ac_compile"
4171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4172 *) ac_try_echo=$ac_try;;
4174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4175 (eval "$ac_compile") 2>conftest.er1
4177 grep -v '^
*+' conftest.er1 >conftest.err
4179 cat conftest.err >&5
4180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4181 (exit $ac_status); } && {
4182 test -z "$ac_c_werror_flag" ||
4183 test ! -s conftest.err
4184 } && test -s conftest.$ac_objext; then
4185 falign_loop_flag=yes
4187 echo "$as_me: failed program was:" >&5
4188 sed 's
/^
/|
/' conftest.$ac_ext >&5
4193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4194 CPPFLAGS="$saved_CPPFLAGS"
4197 { echo "$as_me:$LINENO: result: $falign_loop_flag" >&5
4198 echo "${ECHO_T}$falign_loop_flag" >&6; }
4200 # Force no alignment to save space.
4201 if test "x$falign_loop_flag" = xyes; then
4202 CPPFLAGS="$CPPFLAGS -falign-jumps=1 -falign-loops=1 -falign-functions=1"
4204 CPPFLAGS="$CPPFLAGS -malign-jumps=1 -malign-loops=1 -malign-functions=1"
4207 if test "x$undef_flag" = xyes; then
4208 CPPFLAGS="$CPPFLAGS -Wundef"
4211 if test "x$with_binutils" != x; then
4212 # Extract the first word of "objcopy", so it can be a program name with args.
4213 set dummy objcopy; ac_word=$2
4214 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4215 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4216 if test "${ac_cv_path_OBJCOPY+set}" = set; then
4217 echo $ECHO_N "(cached) $ECHO_C" >&6
4221 ac_cv_path_OBJCOPY="$OBJCOPY" # Let the user override the test with a path.
4224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4225 as_dummy=""$with_binutils:$PATH""
4226 for as_dir in $as_dummy
4229 test -z "$as_dir" && as_dir=.
4230 for ac_exec_ext in '' $ac_executable_extensions; do
4231 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4232 ac_cv_path_OBJCOPY="$as_dir/$ac_word$ac_exec_ext"
4233 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4243 OBJCOPY=$ac_cv_path_OBJCOPY
4244 if test -n "$OBJCOPY"; then
4245 { echo "$as_me:$LINENO: result: $OBJCOPY" >&5
4246 echo "${ECHO_T}$OBJCOPY" >&6; }
4248 { echo "$as_me:$LINENO: result: no" >&5
4249 echo "${ECHO_T}no" >&6; }
4254 if test -n "$ac_tool_prefix"; then
4255 # Extract the first word of "${ac_tool_prefix}objcopy", so it can be a program name with args.
4256 set dummy ${ac_tool_prefix}objcopy; ac_word=$2
4257 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4258 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4259 if test "${ac_cv_prog_OBJCOPY+set}" = set; then
4260 echo $ECHO_N "(cached) $ECHO_C" >&6
4262 if test -n "$OBJCOPY"; then
4263 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
4265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4269 test -z "$as_dir" && as_dir=.
4270 for ac_exec_ext in '' $ac_executable_extensions; do
4271 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4272 ac_cv_prog_OBJCOPY="${ac_tool_prefix}objcopy"
4273 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4282 OBJCOPY=$ac_cv_prog_OBJCOPY
4283 if test -n "$OBJCOPY"; then
4284 { echo "$as_me:$LINENO: result: $OBJCOPY" >&5
4285 echo "${ECHO_T}$OBJCOPY" >&6; }
4287 { echo "$as_me:$LINENO: result: no" >&5
4288 echo "${ECHO_T}no" >&6; }
4293 if test -z "$ac_cv_prog_OBJCOPY"; then
4294 ac_ct_OBJCOPY=$OBJCOPY
4295 # Extract the first word of "objcopy", so it can be a program name with args.
4296 set dummy objcopy; ac_word=$2
4297 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4298 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4299 if test "${ac_cv_prog_ac_ct_OBJCOPY+set}" = set; then
4300 echo $ECHO_N "(cached) $ECHO_C" >&6
4302 if test -n "$ac_ct_OBJCOPY"; then
4303 ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test.
4305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4309 test -z "$as_dir" && as_dir=.
4310 for ac_exec_ext in '' $ac_executable_extensions; do
4311 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4312 ac_cv_prog_ac_ct_OBJCOPY="objcopy"
4313 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4322 ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY
4323 if test -n "$ac_ct_OBJCOPY"; then
4324 { echo "$as_me:$LINENO: result: $ac_ct_OBJCOPY" >&5
4325 echo "${ECHO_T}$ac_ct_OBJCOPY" >&6; }
4327 { echo "$as_me:$LINENO: result: no" >&5
4328 echo "${ECHO_T}no" >&6; }
4331 if test "x$ac_ct_OBJCOPY" = x; then
4334 case $cross_compiling:$ac_tool_warned in
4336 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4337 whose name does not start with the host triplet. If you think this
4338 configuration is useful to you, please write to autoconf@gnu.org." >&5
4339 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4340 whose name does not start with the host triplet. If you think this
4341 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4342 ac_tool_warned=yes ;;
4344 OBJCOPY=$ac_ct_OBJCOPY
4347 OBJCOPY="$ac_cv_prog_OBJCOPY"
4352 # Defined in acinclude.m4.
4354 { echo "$as_me:$LINENO: checking if C symbols get an underscore after compilation" >&5
4355 echo $ECHO_N "checking if C symbols get an underscore after compilation... $ECHO_C" >&6; }
4356 if test "${grub_cv_asm_uscore+set}" = set; then
4357 echo $ECHO_N "(cached) $ECHO_C" >&6
4359 cat > conftest.c <<\EOF
4368 if { ac_try='${CC-cc} ${CFLAGS} -S conftest.c
'
4369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4373 (exit $ac_status); }; } && test -s conftest.s; then
4376 { { echo "$as_me:$LINENO: error: ${CC-cc} failed to produce assembly code" >&5
4377 echo "$as_me: error: ${CC-cc} failed to produce assembly code" >&2;}
4378 { (exit 1); exit 1; }; }
4381 if grep _func conftest.s >/dev/null 2>&1; then
4382 grub_cv_asm_uscore=yes
4384 grub_cv_asm_uscore=no
4391 if test "x$grub_cv_asm_uscore" = xyes; then
4393 cat >>confdefs.h <<_ACEOF
4394 #define HAVE_ASM_USCORE $grub_cv_asm_uscore
4399 { echo "$as_me:$LINENO: result: $grub_cv_asm_uscore" >&5
4400 echo "${ECHO_T}$grub_cv_asm_uscore" >&6; }
4402 { echo "$as_me:$LINENO: checking whether ${OBJCOPY} works for absolute addresses" >&5
4403 echo $ECHO_N "checking whether ${OBJCOPY} works for absolute addresses... $ECHO_C" >&6; }
4404 if test "${grub_cv_prog_objcopy_absolute+set}" = set; then
4405 echo $ECHO_N "(cached) $ECHO_C" >&6
4407 cat > conftest.c <<\EOF
4411 *((int *) 0x1000) = 2;
4415 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4416 (eval $ac_compile) 2>&5
4418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4419 (exit $ac_status); } && test -s conftest.o; then :
4421 { { echo "$as_me:$LINENO: error: ${CC-cc} cannot compile C source code" >&5
4422 echo "$as_me: error: ${CC-cc} cannot compile C source code" >&2;}
4423 { (exit 1); exit 1; }; }
4425 grub_cv_prog_objcopy_absolute=yes
4426 for link_addr in 2000 8000 7C00; do
4427 if { ac_try='${CC-cc} ${CFLAGS} -nostdlib -Wl,-N -Wl,-Ttext -Wl,$link_addr conftest.o
-o conftest.
exec'
4428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4432 (exit $ac_status); }; }; then :
4434 { { echo "$as_me:$LINENO: error: ${CC-cc} cannot link at address $link_addr" >&5
4435 echo "$as_me: error: ${CC-cc} cannot link at address $link_addr" >&2;}
4436 { (exit 1); exit 1; }; }
4438 if { ac_try='${OBJCOPY-objcopy} -O binary conftest.
exec conftest
'
4439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4443 (exit $ac_status); }; }; then :
4445 { { echo "$as_me:$LINENO: error: ${OBJCOPY-objcopy} cannot create binary files" >&5
4446 echo "$as_me: error: ${OBJCOPY-objcopy} cannot create binary files" >&2;}
4447 { (exit 1); exit 1; }; }
4449 if test ! -f conftest.old || { ac_try='cmp -s conftest.old conftest
'
4450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4454 (exit $ac_status); }; }; then
4455 mv -f conftest conftest.old
4457 grub_cv_prog_objcopy_absolute=no
4464 { echo "$as_me:$LINENO: result: $grub_cv_prog_objcopy_absolute" >&5
4465 echo "${ECHO_T}$grub_cv_prog_objcopy_absolute" >&6; }
4466 if test "x$grub_cv_prog_objcopy_absolute" != xyes; then
4467 { { echo "$as_me:$LINENO: error: GRUB requires a working absolute objcopy; upgrade your binutils" >&5
4468 echo "$as_me: error: GRUB requires a working absolute objcopy; upgrade your binutils" >&2;}
4469 { (exit 1); exit 1; }; }
4473 { echo "$as_me:$LINENO: checking whether addr32 must be in the same line as the instruction" >&5
4474 echo $ECHO_N "checking whether addr32 must be in the same line as the instruction... $ECHO_C" >&6; }
4475 if test "${grub_cv_asm_prefix_requirement+set}" = set; then
4476 echo $ECHO_N "(cached) $ECHO_C" >&6
4478 cat > conftest.s <<\EOF
4480 l1: addr32 movb %al, l1
4483 if { ac_try='${CC-cc} ${CFLAGS} -c conftest.s
'
4484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4488 (exit $ac_status); }; } && test -s conftest.o; then
4489 grub_cv_asm_prefix_requirement=yes
4491 grub_cv_asm_prefix_requirement=no
4498 if test "x$grub_cv_asm_prefix_requirement" = xyes; then
4499 grub_tmp_addr32="addr32"
4500 grub_tmp_data32="data32"
4502 grub_tmp_addr32="addr32;"
4503 grub_tmp_data32="data32;"
4507 cat >>confdefs.h <<_ACEOF
4508 #define ADDR32 $grub_tmp_addr32
4512 cat >>confdefs.h <<_ACEOF
4513 #define DATA32 $grub_tmp_data32
4517 { echo "$as_me:$LINENO: result: $grub_cv_asm_prefix_requirement" >&5
4518 echo "${ECHO_T}$grub_cv_asm_prefix_requirement" >&6; }
4522 { echo "$as_me:$LINENO: checking for .code16 addr32 assembler support" >&5
4523 echo $ECHO_N "checking for .code16 addr32 assembler support... $ECHO_C" >&6; }
4524 if test "${grub_cv_asm_addr32+set}" = set; then
4525 echo $ECHO_N "(cached) $ECHO_C" >&6
4527 cat > conftest.s.in <<\EOF
4529 l1: @ADDR32@ movb %al, l1
4532 if test "x$grub_cv_asm_prefix_requirement" = xyes; then
4533 sed -e s/@ADDR32@/addr32/ < conftest.s.in > conftest.s
4535 sed -e s/@ADDR32@/addr32\;/ < conftest.s.in > conftest.s
4538 if { ac_try='${CC-cc} ${CFLAGS} -c conftest.s
'
4539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4543 (exit $ac_status); }; } && test -s conftest.o; then
4544 grub_cv_asm_addr32=yes
4546 grub_cv_asm_addr32=no
4553 { echo "$as_me:$LINENO: result: $grub_cv_asm_addr32" >&5
4554 echo "${ECHO_T}$grub_cv_asm_addr32" >&6; }
4555 if test "x$grub_cv_asm_addr32" != xyes; then
4556 { { echo "$as_me:$LINENO: error: GRUB requires GAS .code16 addr32 support; upgrade your binutils" >&5
4557 echo "$as_me: error: GRUB requires GAS .code16 addr32 support; upgrade your binutils" >&2;}
4558 { (exit 1); exit 1; }; }
4562 { echo "$as_me:$LINENO: checking whether an absolute indirect call/jump must not be prefixed with an asterisk" >&5
4563 echo $ECHO_N "checking whether an absolute indirect call/jump must not be prefixed with an asterisk... $ECHO_C" >&6; }
4564 if test "${grub_cv_asm_absolute_without_asterisk+set}" = set; then
4565 echo $ECHO_N "(cached) $ECHO_C" >&6
4567 cat > conftest.s <<\EOF
4574 if { ac_try='${CC-cc} ${CFLAGS} -c conftest.s
'
4575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4579 (exit $ac_status); }; } && test -s conftest.o; then
4580 grub_cv_asm_absolute_without_asterisk=no
4582 grub_cv_asm_absolute_without_asterisk=yes
4589 if test "x$grub_cv_asm_absolute_without_asterisk" = xyes; then
4591 cat >>confdefs.h <<\_ACEOF
4592 #define ABSOLUTE_WITHOUT_ASTERISK 1
4597 { echo "$as_me:$LINENO: result: $grub_cv_asm_absolute_without_asterisk" >&5
4598 echo "${ECHO_T}$grub_cv_asm_absolute_without_asterisk" >&6; }
4601 { echo "$as_me:$LINENO: checking if start is defined by the compiler" >&5
4602 echo $ECHO_N "checking if start is defined by the compiler... $ECHO_C" >&6; }
4603 if test "${grub_cv_check_start_symbol+set}" = set; then
4604 echo $ECHO_N "(cached) $ECHO_C" >&6
4606 cat >conftest.$ac_ext <<_ACEOF
4609 cat confdefs.h >>conftest.$ac_ext
4610 cat >>conftest.$ac_ext <<_ACEOF
4611 /* end confdefs.h. */
4621 rm -f conftest.$ac_objext conftest$ac_exeext
4622 if { (ac_try="$ac_link"
4624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4625 *) ac_try_echo=$ac_try;;
4627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4628 (eval "$ac_link") 2>conftest.er1
4630 grep -v '^
*+' conftest.er1 >conftest.err
4632 cat conftest.err >&5
4633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4634 (exit $ac_status); } && {
4635 test -z "$ac_c_werror_flag" ||
4636 test ! -s conftest.err
4637 } && test -s conftest$ac_exeext &&
4638 $as_test_x conftest$ac_exeext; then
4639 grub_cv_check_start_symbol=yes
4641 echo "$as_me: failed program was:" >&5
4642 sed 's
/^
/|
/' conftest.$ac_ext >&5
4644 grub_cv_check_start_symbol=no
4647 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4648 conftest$ac_exeext conftest.$ac_ext
4652 if test "x$grub_cv_check_start_symbol" = xyes; then
4654 cat >>confdefs.h <<\_ACEOF
4655 #define HAVE_START_SYMBOL 1
4660 { echo "$as_me:$LINENO: result: $grub_cv_check_start_symbol" >&5
4661 echo "${ECHO_T}$grub_cv_check_start_symbol" >&6; }
4664 { echo "$as_me:$LINENO: checking if _start is defined by the compiler" >&5
4665 echo $ECHO_N "checking if _start is defined by the compiler... $ECHO_C" >&6; }
4666 if test "${grub_cv_check_uscore_start_symbol+set}" = set; then
4667 echo $ECHO_N "(cached) $ECHO_C" >&6
4669 cat >conftest.$ac_ext <<_ACEOF
4672 cat confdefs.h >>conftest.$ac_ext
4673 cat >>conftest.$ac_ext <<_ACEOF
4674 /* end confdefs.h. */
4684 rm -f conftest.$ac_objext conftest$ac_exeext
4685 if { (ac_try="$ac_link"
4687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4688 *) ac_try_echo=$ac_try;;
4690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4691 (eval "$ac_link") 2>conftest.er1
4693 grep -v '^
*+' conftest.er1 >conftest.err
4695 cat conftest.err >&5
4696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4697 (exit $ac_status); } && {
4698 test -z "$ac_c_werror_flag" ||
4699 test ! -s conftest.err
4700 } && test -s conftest$ac_exeext &&
4701 $as_test_x conftest$ac_exeext; then
4702 grub_cv_check_uscore_start_symbol=yes
4704 echo "$as_me: failed program was:" >&5
4705 sed 's
/^
/|
/' conftest.$ac_ext >&5
4707 grub_cv_check_uscore_start_symbol=no
4710 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4711 conftest$ac_exeext conftest.$ac_ext
4715 if test "x$grub_cv_check_uscore_start_symbol" = xyes; then
4717 cat >>confdefs.h <<\_ACEOF
4718 #define HAVE_USCORE_START_SYMBOL 1
4723 { echo "$as_me:$LINENO: result: $grub_cv_check_uscore_start_symbol" >&5
4724 echo "${ECHO_T}$grub_cv_check_uscore_start_symbol" >&6; }
4726 if test "x$grub_cv_check_start_symbol" != "xyes" \
4727 -a "x$grub_cv_check_uscore_start_symbol" != "xyes"; then
4728 { { echo "$as_me:$LINENO: error: Neither start nor _start is defined" >&5
4729 echo "$as_me: error: Neither start nor _start is defined" >&2;}
4730 { (exit 1); exit 1; }; }
4734 { echo "$as_me:$LINENO: checking if __bss_start is defined by the compiler" >&5
4735 echo $ECHO_N "checking if __bss_start is defined by the compiler... $ECHO_C" >&6; }
4736 if test "${grub_cv_check_uscore_uscore_bss_start_symbol+set}" = set; then
4737 echo $ECHO_N "(cached) $ECHO_C" >&6
4739 cat >conftest.$ac_ext <<_ACEOF
4742 cat confdefs.h >>conftest.$ac_ext
4743 cat >>conftest.$ac_ext <<_ACEOF
4744 /* end confdefs.h. */
4749 asm ("incl __bss_start")
4754 rm -f conftest.$ac_objext conftest$ac_exeext
4755 if { (ac_try="$ac_link"
4757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4758 *) ac_try_echo=$ac_try;;
4760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4761 (eval "$ac_link") 2>conftest.er1
4763 grep -v '^
*+' conftest.er1 >conftest.err
4765 cat conftest.err >&5
4766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4767 (exit $ac_status); } && {
4768 test -z "$ac_c_werror_flag" ||
4769 test ! -s conftest.err
4770 } && test -s conftest$ac_exeext &&
4771 $as_test_x conftest$ac_exeext; then
4772 grub_cv_check_uscore_uscore_bss_start_symbol=yes
4774 echo "$as_me: failed program was:" >&5
4775 sed 's
/^
/|
/' conftest.$ac_ext >&5
4777 grub_cv_check_uscore_uscore_bss_start_symbol=no
4780 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4781 conftest$ac_exeext conftest.$ac_ext
4785 if test "x$grub_cv_check_uscore_uscore_bss_start_symbol" = xyes; then
4787 cat >>confdefs.h <<\_ACEOF
4788 #define HAVE_USCORE_USCORE_BSS_START_SYMBOL 1
4793 { echo "$as_me:$LINENO: result: $grub_cv_check_uscore_uscore_bss_start_symbol" >&5
4794 echo "${ECHO_T}$grub_cv_check_uscore_uscore_bss_start_symbol" >&6; }
4797 { echo "$as_me:$LINENO: checking if _edata is defined by the compiler" >&5
4798 echo $ECHO_N "checking if _edata is defined by the compiler... $ECHO_C" >&6; }
4799 if test "${grub_cv_check_uscore_edata_symbol+set}" = set; then
4800 echo $ECHO_N "(cached) $ECHO_C" >&6
4802 cat >conftest.$ac_ext <<_ACEOF
4805 cat confdefs.h >>conftest.$ac_ext
4806 cat >>conftest.$ac_ext <<_ACEOF
4807 /* end confdefs.h. */
4817 rm -f conftest.$ac_objext conftest$ac_exeext
4818 if { (ac_try="$ac_link"
4820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4821 *) ac_try_echo=$ac_try;;
4823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4824 (eval "$ac_link") 2>conftest.er1
4826 grep -v '^
*+' conftest.er1 >conftest.err
4828 cat conftest.err >&5
4829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4830 (exit $ac_status); } && {
4831 test -z "$ac_c_werror_flag" ||
4832 test ! -s conftest.err
4833 } && test -s conftest$ac_exeext &&
4834 $as_test_x conftest$ac_exeext; then
4835 grub_cv_check_uscore_edata_symbol=yes
4837 echo "$as_me: failed program was:" >&5
4838 sed 's
/^
/|
/' conftest.$ac_ext >&5
4840 grub_cv_check_uscore_edata_symbol=no
4843 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4844 conftest$ac_exeext conftest.$ac_ext
4848 if test "x$grub_cv_check_uscore_edata_symbol" = xyes; then
4850 cat >>confdefs.h <<\_ACEOF
4851 #define HAVE_USCORE_EDATA_SYMBOL 1
4856 { echo "$as_me:$LINENO: result: $grub_cv_check_uscore_edata_symbol" >&5
4857 echo "${ECHO_T}$grub_cv_check_uscore_edata_symbol" >&6; }
4860 { echo "$as_me:$LINENO: checking if edata is defined by the compiler" >&5
4861 echo $ECHO_N "checking if edata is defined by the compiler... $ECHO_C" >&6; }
4862 if test "${grub_cv_check_edata_symbol+set}" = set; then
4863 echo $ECHO_N "(cached) $ECHO_C" >&6
4865 cat >conftest.$ac_ext <<_ACEOF
4868 cat confdefs.h >>conftest.$ac_ext
4869 cat >>conftest.$ac_ext <<_ACEOF
4870 /* end confdefs.h. */
4880 rm -f conftest.$ac_objext conftest$ac_exeext
4881 if { (ac_try="$ac_link"
4883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4884 *) ac_try_echo=$ac_try;;
4886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4887 (eval "$ac_link") 2>conftest.er1
4889 grep -v '^
*+' conftest.er1 >conftest.err
4891 cat conftest.err >&5
4892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4893 (exit $ac_status); } && {
4894 test -z "$ac_c_werror_flag" ||
4895 test ! -s conftest.err
4896 } && test -s conftest$ac_exeext &&
4897 $as_test_x conftest$ac_exeext; then
4898 grub_cv_check_edata_symbol=yes
4900 echo "$as_me: failed program was:" >&5
4901 sed 's
/^
/|
/' conftest.$ac_ext >&5
4903 grub_cv_check_edata_symbol=no
4906 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4907 conftest$ac_exeext conftest.$ac_ext
4911 if test "x$grub_cv_check_edata_symbol" = xyes; then
4913 cat >>confdefs.h <<\_ACEOF
4914 #define HAVE_EDATA_SYMBOL 1
4919 { echo "$as_me:$LINENO: result: $grub_cv_check_edata_symbol" >&5
4920 echo "${ECHO_T}$grub_cv_check_edata_symbol" >&6; }
4922 if test "x$grub_cv_check_uscore_uscore_bss_start_symbol" != "xyes" \
4923 -a "x$grub_cv_check_uscore_edata_symbol" != "xyes" \
4924 -a "x$grub_cv_check_edata_symbol" != "xyes"; then
4925 { { echo "$as_me:$LINENO: error: None of __bss_start, _edata, edata defined" >&5
4926 echo "$as_me: error: None of __bss_start, _edata, edata defined" >&2;}
4927 { (exit 1); exit 1; }; }
4931 { echo "$as_me:$LINENO: checking if end is defined by the compiler" >&5
4932 echo $ECHO_N "checking if end is defined by the compiler... $ECHO_C" >&6; }
4933 if test "${grub_cv_check_end_symbol+set}" = set; then
4934 echo $ECHO_N "(cached) $ECHO_C" >&6
4936 cat >conftest.$ac_ext <<_ACEOF
4939 cat confdefs.h >>conftest.$ac_ext
4940 cat >>conftest.$ac_ext <<_ACEOF
4941 /* end confdefs.h. */
4951 rm -f conftest.$ac_objext conftest$ac_exeext
4952 if { (ac_try="$ac_link"
4954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4955 *) ac_try_echo=$ac_try;;
4957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4958 (eval "$ac_link") 2>conftest.er1
4960 grep -v '^
*+' conftest.er1 >conftest.err
4962 cat conftest.err >&5
4963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4964 (exit $ac_status); } && {
4965 test -z "$ac_c_werror_flag" ||
4966 test ! -s conftest.err
4967 } && test -s conftest$ac_exeext &&
4968 $as_test_x conftest$ac_exeext; then
4969 grub_cv_check_end_symbol=yes
4971 echo "$as_me: failed program was:" >&5
4972 sed 's
/^
/|
/' conftest.$ac_ext >&5
4974 grub_cv_check_end_symbol=no
4977 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4978 conftest$ac_exeext conftest.$ac_ext
4982 if test "x$grub_cv_check_end_symbol" = xyes; then
4984 cat >>confdefs.h <<\_ACEOF
4985 #define HAVE_END_SYMBOL 1
4990 { echo "$as_me:$LINENO: result: $grub_cv_check_end_symbol" >&5
4991 echo "${ECHO_T}$grub_cv_check_end_symbol" >&6; }
4994 { echo "$as_me:$LINENO: checking if _end is defined by the compiler" >&5
4995 echo $ECHO_N "checking if _end is defined by the compiler... $ECHO_C" >&6; }
4996 if test "${grub_cv_check_uscore_end_symbol+set}" = set; then
4997 echo $ECHO_N "(cached) $ECHO_C" >&6
4999 cat >conftest.$ac_ext <<_ACEOF
5002 cat confdefs.h >>conftest.$ac_ext
5003 cat >>conftest.$ac_ext <<_ACEOF
5004 /* end confdefs.h. */
5014 rm -f conftest.$ac_objext conftest$ac_exeext
5015 if { (ac_try="$ac_link"
5017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5018 *) ac_try_echo=$ac_try;;
5020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5021 (eval "$ac_link") 2>conftest.er1
5023 grep -v '^
*+' conftest.er1 >conftest.err
5025 cat conftest.err >&5
5026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5027 (exit $ac_status); } && {
5028 test -z "$ac_c_werror_flag" ||
5029 test ! -s conftest.err
5030 } && test -s conftest$ac_exeext &&
5031 $as_test_x conftest$ac_exeext; then
5032 grub_cv_check_uscore_end_symbol=yes
5034 echo "$as_me: failed program was:" >&5
5035 sed 's
/^
/|
/' conftest.$ac_ext >&5
5037 grub_cv_check_uscore_end_symbol=no
5040 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5041 conftest$ac_exeext conftest.$ac_ext
5045 if test "x$grub_cv_check_uscore_end_symbol" = xyes; then
5047 cat >>confdefs.h <<\_ACEOF
5048 #define HAVE_USCORE_END_SYMBOL 1
5053 { echo "$as_me:$LINENO: result: $grub_cv_check_uscore_end_symbol" >&5
5054 echo "${ECHO_T}$grub_cv_check_uscore_end_symbol" >&6; }
5056 if test "x$grub_cv_check_end_symbol" != "xyes" \
5057 -a "x$grub_cv_check_uscore_end_symbol" != "xyes"; then
5058 { { echo "$as_me:$LINENO: error: Neither end nor _end is defined" >&5
5059 echo "$as_me: error: Neither end nor _end is defined" >&2;}
5060 { (exit 1); exit 1; }; }
5063 # Check for curses libraries.
5065 # Check whether --with-curses was given.
5066 if test "${with_curses+set}" = set; then
5067 withval=$with_curses;
5071 # Get the filename or the whole disk and open it.
5072 # Known to work on NetBSD.
5073 { echo "$as_me:$LINENO: checking for opendisk in -lutil" >&5
5074 echo $ECHO_N "checking for opendisk in -lutil... $ECHO_C" >&6; }
5075 if test "${ac_cv_lib_util_opendisk+set}" = set; then
5076 echo $ECHO_N "(cached) $ECHO_C" >&6
5078 ac_check_lib_save_LIBS=$LIBS
5080 cat >conftest.$ac_ext <<_ACEOF
5083 cat confdefs.h >>conftest.$ac_ext
5084 cat >>conftest.$ac_ext <<_ACEOF
5085 /* end confdefs.h. */
5087 /* Override any GCC internal prototype to avoid an error.
5088 Use char because int might match the return type of a GCC
5089 builtin and then its argument prototype would still apply. */
5102 rm -f conftest.$ac_objext conftest$ac_exeext
5103 if { (ac_try="$ac_link"
5105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5106 *) ac_try_echo=$ac_try;;
5108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5109 (eval "$ac_link") 2>conftest.er1
5111 grep -v '^
*+' conftest.er1 >conftest.err
5113 cat conftest.err >&5
5114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5115 (exit $ac_status); } && {
5116 test -z "$ac_c_werror_flag" ||
5117 test ! -s conftest.err
5118 } && test -s conftest$ac_exeext &&
5119 $as_test_x conftest$ac_exeext; then
5120 ac_cv_lib_util_opendisk=yes
5122 echo "$as_me: failed program was:" >&5
5123 sed 's
/^
/|
/' conftest.$ac_ext >&5
5125 ac_cv_lib_util_opendisk=no
5128 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5129 conftest$ac_exeext conftest.$ac_ext
5130 LIBS=$ac_check_lib_save_LIBS
5132 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_opendisk" >&5
5133 echo "${ECHO_T}$ac_cv_lib_util_opendisk" >&6; }
5134 if test $ac_cv_lib_util_opendisk = yes; then
5135 GRUB_LIBS="$GRUB_LIBS -lutil"
5137 cat >>confdefs.h <<\_ACEOF
5138 #define HAVE_OPENDISK 1
5144 # Unless the user specify --without-curses, check for curses.
5145 if test "x$with_curses" != "xno"; then
5146 { echo "$as_me:$LINENO: checking for wgetch in -lncurses" >&5
5147 echo $ECHO_N "checking for wgetch in -lncurses... $ECHO_C" >&6; }
5148 if test "${ac_cv_lib_ncurses_wgetch+set}" = set; then
5149 echo $ECHO_N "(cached) $ECHO_C" >&6
5151 ac_check_lib_save_LIBS=$LIBS
5152 LIBS="-lncurses $LIBS"
5153 cat >conftest.$ac_ext <<_ACEOF
5156 cat confdefs.h >>conftest.$ac_ext
5157 cat >>conftest.$ac_ext <<_ACEOF
5158 /* end confdefs.h. */
5160 /* Override any GCC internal prototype to avoid an error.
5161 Use char because int might match the return type of a GCC
5162 builtin and then its argument prototype would still apply. */
5175 rm -f conftest.$ac_objext conftest$ac_exeext
5176 if { (ac_try="$ac_link"
5178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5179 *) ac_try_echo=$ac_try;;
5181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5182 (eval "$ac_link") 2>conftest.er1
5184 grep -v '^
*+' conftest.er1 >conftest.err
5186 cat conftest.err >&5
5187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5188 (exit $ac_status); } && {
5189 test -z "$ac_c_werror_flag" ||
5190 test ! -s conftest.err
5191 } && test -s conftest$ac_exeext &&
5192 $as_test_x conftest$ac_exeext; then
5193 ac_cv_lib_ncurses_wgetch=yes
5195 echo "$as_me: failed program was:" >&5
5196 sed 's
/^
/|
/' conftest.$ac_ext >&5
5198 ac_cv_lib_ncurses_wgetch=no
5201 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5202 conftest$ac_exeext conftest.$ac_ext
5203 LIBS=$ac_check_lib_save_LIBS
5205 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_wgetch" >&5
5206 echo "${ECHO_T}$ac_cv_lib_ncurses_wgetch" >&6; }
5207 if test $ac_cv_lib_ncurses_wgetch = yes; then
5208 GRUB_LIBS="$GRUB_LIBS -lncurses"
5210 cat >>confdefs.h <<\_ACEOF
5211 #define HAVE_LIBCURSES 1
5215 { echo "$as_me:$LINENO: checking for wgetch in -lcurses" >&5
5216 echo $ECHO_N "checking for wgetch in -lcurses... $ECHO_C" >&6; }
5217 if test "${ac_cv_lib_curses_wgetch+set}" = set; then
5218 echo $ECHO_N "(cached) $ECHO_C" >&6
5220 ac_check_lib_save_LIBS=$LIBS
5221 LIBS="-lcurses $LIBS"
5222 cat >conftest.$ac_ext <<_ACEOF
5225 cat confdefs.h >>conftest.$ac_ext
5226 cat >>conftest.$ac_ext <<_ACEOF
5227 /* end confdefs.h. */
5229 /* Override any GCC internal prototype to avoid an error.
5230 Use char because int might match the return type of a GCC
5231 builtin and then its argument prototype would still apply. */
5244 rm -f conftest.$ac_objext conftest$ac_exeext
5245 if { (ac_try="$ac_link"
5247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5248 *) ac_try_echo=$ac_try;;
5250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5251 (eval "$ac_link") 2>conftest.er1
5253 grep -v '^
*+' conftest.er1 >conftest.err
5255 cat conftest.err >&5
5256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5257 (exit $ac_status); } && {
5258 test -z "$ac_c_werror_flag" ||
5259 test ! -s conftest.err
5260 } && test -s conftest$ac_exeext &&
5261 $as_test_x conftest$ac_exeext; then
5262 ac_cv_lib_curses_wgetch=yes
5264 echo "$as_me: failed program was:" >&5
5265 sed 's
/^
/|
/' conftest.$ac_ext >&5
5267 ac_cv_lib_curses_wgetch=no
5270 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5271 conftest$ac_exeext conftest.$ac_ext
5272 LIBS=$ac_check_lib_save_LIBS
5274 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_wgetch" >&5
5275 echo "${ECHO_T}$ac_cv_lib_curses_wgetch" >&6; }
5276 if test $ac_cv_lib_curses_wgetch = yes; then
5277 GRUB_LIBS="$GRUB_LIBS -lcurses"
5279 cat >>confdefs.h <<\_ACEOF
5280 #define HAVE_LIBCURSES 1
5291 # Check for headers.
5293 ac_cpp='$CPP $CPPFLAGS'
5294 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
5295 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
5296 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5297 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5298 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5299 # On Suns, sometimes $CPP names a directory.
5300 if test -n "$CPP" && test -d "$CPP"; then
5303 if test -z "$CPP"; then
5304 if test "${ac_cv_prog_CPP+set}" = set; then
5305 echo $ECHO_N "(cached) $ECHO_C" >&6
5307 # Double quotes because CPP needs to be expanded
5308 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5311 for ac_c_preproc_warn_flag in '' yes
5313 # Use a header file that comes with gcc, so configuring glibc
5314 # with a fresh cross-compiler works.
5315 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5316 # <limits.h> exists even on freestanding compilers.
5317 # On the NeXT, cc -E runs the code through the compiler's parser
,
5318 # not just through cpp. "Syntax error" is here to catch this case.
5319 cat >conftest.
$ac_ext <<_ACEOF
5322 cat confdefs.h
>>conftest.
$ac_ext
5323 cat >>conftest.
$ac_ext <<_ACEOF
5324 /* end confdefs.h. */
5326 # include <limits.h>
5328 # include <assert.h>
5332 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5334 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5335 *) ac_try_echo=$ac_try;;
5337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5338 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5340 grep -v '^ *+' conftest.er1 >conftest.err
5342 cat conftest.err >&5
5343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5344 (exit $ac_status); } >/dev/null && {
5345 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5346 test ! -s conftest.err
5350 echo "$as_me: failed program was:" >&5
5351 sed 's/^/| /' conftest.$ac_ext >&5
5353 # Broken: fails on valid input.
5357 rm -f conftest.err conftest.$ac_ext
5359 # OK, works on sane cases. Now check whether nonexistent headers
5360 # can be detected and how.
5361 cat >conftest.$ac_ext <<_ACEOF
5364 cat confdefs.h >>conftest.$ac_ext
5365 cat >>conftest.$ac_ext <<_ACEOF
5366 /* end confdefs.h. */
5367 #include <ac_nonexistent.h>
5369 if { (ac_try="$ac_cpp conftest.$ac_ext"
5371 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5372 *) ac_try_echo
=$ac_try;;
5374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5375 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5377 grep -v '^ *+' conftest.er1
>conftest.err
5379 cat conftest.err
>&5
5380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5381 (exit $ac_status); } >/dev
/null
&& {
5382 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5383 test ! -s conftest.err
5385 # Broken: success on invalid input.
5388 echo "$as_me: failed program was:" >&5
5389 sed 's/^/| /' conftest.
$ac_ext >&5
5391 # Passes both tests.
5396 rm -f conftest.err conftest.
$ac_ext
5399 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5400 rm -f conftest.err conftest.
$ac_ext
5401 if $ac_preproc_ok; then
5413 { echo "$as_me:$LINENO: result: $CPP" >&5
5414 echo "${ECHO_T}$CPP" >&6; }
5416 for ac_c_preproc_warn_flag
in '' yes
5418 # Use a header file that comes with gcc, so configuring glibc
5419 # with a fresh cross-compiler works.
5420 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5421 # <limits.h> exists even on freestanding compilers.
5422 # On the NeXT, cc -E runs the code through the compiler's parser,
5423 # not just through cpp. "Syntax error" is here to catch this case.
5424 cat >conftest.
$ac_ext <<_ACEOF
5427 cat confdefs.h
>>conftest.
$ac_ext
5428 cat >>conftest.
$ac_ext <<_ACEOF
5429 /* end confdefs.h. */
5431 # include <limits.h>
5433 # include <assert.h>
5437 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5439 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5440 *) ac_try_echo=$ac_try;;
5442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5443 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5445 grep -v '^ *+' conftest.er1 >conftest.err
5447 cat conftest.err >&5
5448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5449 (exit $ac_status); } >/dev/null && {
5450 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5451 test ! -s conftest.err
5455 echo "$as_me: failed program was:" >&5
5456 sed 's/^/| /' conftest.$ac_ext >&5
5458 # Broken: fails on valid input.
5462 rm -f conftest.err conftest.$ac_ext
5464 # OK, works on sane cases. Now check whether nonexistent headers
5465 # can be detected and how.
5466 cat >conftest.$ac_ext <<_ACEOF
5469 cat confdefs.h >>conftest.$ac_ext
5470 cat >>conftest.$ac_ext <<_ACEOF
5471 /* end confdefs.h. */
5472 #include <ac_nonexistent.h>
5474 if { (ac_try="$ac_cpp conftest.$ac_ext"
5476 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5477 *) ac_try_echo
=$ac_try;;
5479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5480 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5482 grep -v '^ *+' conftest.er1
>conftest.err
5484 cat conftest.err
>&5
5485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5486 (exit $ac_status); } >/dev
/null
&& {
5487 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5488 test ! -s conftest.err
5490 # Broken: success on invalid input.
5493 echo "$as_me: failed program was:" >&5
5494 sed 's/^/| /' conftest.
$ac_ext >&5
5496 # Passes both tests.
5501 rm -f conftest.err conftest.
$ac_ext
5504 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5505 rm -f conftest.err conftest.
$ac_ext
5506 if $ac_preproc_ok; then
5509 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5510 See \`config.log' for more details." >&5
5511 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5512 See \`config.log' for more details." >&2;}
5513 { (exit 1); exit 1; }; }
5517 ac_cpp
='$CPP $CPPFLAGS'
5518 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5519 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5520 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5523 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5524 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
5525 if test "${ac_cv_path_GREP+set}" = set; then
5526 echo $ECHO_N "(cached) $ECHO_C" >&6
5528 # Extract the first word of "grep ggrep" to use in msg output
5529 if test -z "$GREP"; then
5530 set dummy
grep ggrep
; ac_prog_name
=$2
5531 if test "${ac_cv_path_GREP+set}" = set; then
5532 echo $ECHO_N "(cached) $ECHO_C" >&6
5534 ac_path_GREP_found
=false
5535 # Loop through the user's path and test for each of PROGNAME-LIST
5536 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5537 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5540 test -z "$as_dir" && as_dir
=.
5541 for ac_prog
in grep ggrep
; do
5542 for ac_exec_ext
in '' $ac_executable_extensions; do
5543 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
5544 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
5545 # Check for GNU ac_path_GREP and select it if it is found.
5546 # Check for GNU $ac_path_GREP
5547 case `"$ac_path_GREP" --version 2>&1` in
5549 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
5552 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5555 cat "conftest.in" "conftest.in" >"conftest.tmp"
5556 mv "conftest.tmp" "conftest.in"
5557 cp "conftest.in" "conftest.nl"
5558 echo 'GREP' >> "conftest.nl"
5559 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5560 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5561 ac_count
=`expr $ac_count + 1`
5562 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5563 # Best one so far, save it but keep looking for a better one
5564 ac_cv_path_GREP
="$ac_path_GREP"
5565 ac_path_GREP_max
=$ac_count
5567 # 10*(2^10) chars as input seems more than enough
5568 test $ac_count -gt 10 && break
5570 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5574 $ac_path_GREP_found && break 3
5584 GREP
="$ac_cv_path_GREP"
5585 if test -z "$GREP"; then
5586 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5587 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5588 { (exit 1); exit 1; }; }
5592 ac_cv_path_GREP
=$GREP
5597 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5598 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
5599 GREP
="$ac_cv_path_GREP"
5602 { echo "$as_me:$LINENO: checking for egrep" >&5
5603 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
5604 if test "${ac_cv_path_EGREP+set}" = set; then
5605 echo $ECHO_N "(cached) $ECHO_C" >&6
5607 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
5608 then ac_cv_path_EGREP
="$GREP -E"
5610 # Extract the first word of "egrep" to use in msg output
5611 if test -z "$EGREP"; then
5612 set dummy
egrep; ac_prog_name
=$2
5613 if test "${ac_cv_path_EGREP+set}" = set; then
5614 echo $ECHO_N "(cached) $ECHO_C" >&6
5616 ac_path_EGREP_found
=false
5617 # Loop through the user's path and test for each of PROGNAME-LIST
5618 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5619 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5622 test -z "$as_dir" && as_dir
=.
5623 for ac_prog
in egrep; do
5624 for ac_exec_ext
in '' $ac_executable_extensions; do
5625 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
5626 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
5627 # Check for GNU ac_path_EGREP and select it if it is found.
5628 # Check for GNU $ac_path_EGREP
5629 case `"$ac_path_EGREP" --version 2>&1` in
5631 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
5634 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5637 cat "conftest.in" "conftest.in" >"conftest.tmp"
5638 mv "conftest.tmp" "conftest.in"
5639 cp "conftest.in" "conftest.nl"
5640 echo 'EGREP' >> "conftest.nl"
5641 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5642 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5643 ac_count
=`expr $ac_count + 1`
5644 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5645 # Best one so far, save it but keep looking for a better one
5646 ac_cv_path_EGREP
="$ac_path_EGREP"
5647 ac_path_EGREP_max
=$ac_count
5649 # 10*(2^10) chars as input seems more than enough
5650 test $ac_count -gt 10 && break
5652 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5656 $ac_path_EGREP_found && break 3
5666 EGREP
="$ac_cv_path_EGREP"
5667 if test -z "$EGREP"; then
5668 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5669 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5670 { (exit 1); exit 1; }; }
5674 ac_cv_path_EGREP
=$EGREP
5680 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5681 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
5682 EGREP
="$ac_cv_path_EGREP"
5685 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5686 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5687 if test "${ac_cv_header_stdc+set}" = set; then
5688 echo $ECHO_N "(cached) $ECHO_C" >&6
5690 cat >conftest.
$ac_ext <<_ACEOF
5693 cat confdefs.h
>>conftest.
$ac_ext
5694 cat >>conftest.
$ac_ext <<_ACEOF
5695 /* end confdefs.h. */
5709 rm -f conftest.
$ac_objext
5710 if { (ac_try
="$ac_compile"
5712 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5713 *) ac_try_echo=$ac_try;;
5715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5716 (eval "$ac_compile") 2>conftest.er1
5718 grep -v '^ *+' conftest.er1 >conftest.err
5720 cat conftest.err >&5
5721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5722 (exit $ac_status); } && {
5723 test -z "$ac_c_werror_flag" ||
5724 test ! -s conftest.err
5725 } && test -s conftest.$ac_objext; then
5726 ac_cv_header_stdc=yes
5728 echo "$as_me: failed program was:" >&5
5729 sed 's/^/| /' conftest.$ac_ext >&5
5731 ac_cv_header_stdc=no
5734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5736 if test $ac_cv_header_stdc = yes; then
5737 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5738 cat >conftest.$ac_ext <<_ACEOF
5741 cat confdefs.h >>conftest.$ac_ext
5742 cat >>conftest.$ac_ext <<_ACEOF
5743 /* end confdefs.h. */
5747 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5748 $EGREP "memchr" >/dev/null 2>&1; then
5751 ac_cv_header_stdc=no
5757 if test $ac_cv_header_stdc = yes; then
5758 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5759 cat >conftest.$ac_ext <<_ACEOF
5762 cat confdefs.h >>conftest.$ac_ext
5763 cat >>conftest.$ac_ext <<_ACEOF
5764 /* end confdefs.h. */
5768 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5769 $EGREP "free" >/dev/null 2>&1; then
5772 ac_cv_header_stdc=no
5778 if test $ac_cv_header_stdc = yes; then
5779 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5780 if test "$cross_compiling" = yes; then
5783 cat >conftest.$ac_ext <<_ACEOF
5786 cat confdefs.h >>conftest.$ac_ext
5787 cat >>conftest.$ac_ext <<_ACEOF
5788 /* end confdefs.h. */
5791 #if ((' ' & 0x0FF) == 0x020)
5792 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5793 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5795 # define ISLOWER(c) \
5796 (('a' <= (c) && (c) <= 'i') \
5797 || ('j' <= (c) && (c) <= 'r') \
5798 || ('s' <= (c) && (c) <= 'z'))
5799 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5802 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5807 for (i = 0; i < 256; i++)
5808 if (XOR (islower (i), ISLOWER (i))
5809 || toupper (i) != TOUPPER (i))
5814 rm -f conftest$ac_exeext
5815 if { (ac_try="$ac_link"
5817 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5818 *) ac_try_echo
=$ac_try;;
5820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5821 (eval "$ac_link") 2>&5
5823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5824 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5825 { (case "(($ac_try" in
5826 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5827 *) ac_try_echo=$ac_try;;
5829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5830 (eval "$ac_try") 2>&5
5832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5833 (exit $ac_status); }; }; then
5836 echo "$as_me: program exited with status $ac_status" >&5
5837 echo "$as_me: failed program was:" >&5
5838 sed 's/^/| /' conftest.$ac_ext >&5
5841 ac_cv_header_stdc=no
5843 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5849 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5850 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5851 if test $ac_cv_header_stdc = yes; then
5853 cat >>confdefs.h <<\_ACEOF
5854 #define STDC_HEADERS 1
5859 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5869 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5870 inttypes.h stdint.h unistd.h
5872 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
5873 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5874 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5875 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5876 echo $ECHO_N "(cached) $ECHO_C" >&6
5878 cat >conftest.$ac_ext <<_ACEOF
5881 cat confdefs.h >>conftest.$ac_ext
5882 cat >>conftest.$ac_ext <<_ACEOF
5883 /* end confdefs.h. */
5884 $ac_includes_default
5886 #include <$ac_header>
5888 rm -f conftest.$ac_objext
5889 if { (ac_try="$ac_compile"
5891 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5892 *) ac_try_echo
=$ac_try;;
5894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5895 (eval "$ac_compile") 2>conftest.er1
5897 grep -v '^ *+' conftest.er1
>conftest.err
5899 cat conftest.err
>&5
5900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5901 (exit $ac_status); } && {
5902 test -z "$ac_c_werror_flag" ||
5903 test ! -s conftest.err
5904 } && test -s conftest.
$ac_objext; then
5905 eval "$as_ac_Header=yes"
5907 echo "$as_me: failed program was:" >&5
5908 sed 's/^/| /' conftest.
$ac_ext >&5
5910 eval "$as_ac_Header=no"
5913 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5915 ac_res
=`eval echo '${'$as_ac_Header'}'`
5916 { echo "$as_me:$LINENO: result: $ac_res" >&5
5917 echo "${ECHO_T}$ac_res" >&6; }
5918 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5919 cat >>confdefs.h
<<_ACEOF
5920 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5933 for ac_header
in string.h
strings.h ncurses
/curses.h ncurses.h curses.h
5935 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5936 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5937 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5938 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5939 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5940 echo $ECHO_N "(cached) $ECHO_C" >&6
5942 ac_res
=`eval echo '${'$as_ac_Header'}'`
5943 { echo "$as_me:$LINENO: result: $ac_res" >&5
5944 echo "${ECHO_T}$ac_res" >&6; }
5946 # Is the header compilable?
5947 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5948 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5949 cat >conftest.
$ac_ext <<_ACEOF
5952 cat confdefs.h
>>conftest.
$ac_ext
5953 cat >>conftest.
$ac_ext <<_ACEOF
5954 /* end confdefs.h. */
5955 $ac_includes_default
5956 #include <$ac_header>
5958 rm -f conftest.
$ac_objext
5959 if { (ac_try
="$ac_compile"
5961 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5962 *) ac_try_echo=$ac_try;;
5964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5965 (eval "$ac_compile") 2>conftest.er1
5967 grep -v '^ *+' conftest.er1 >conftest.err
5969 cat conftest.err >&5
5970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5971 (exit $ac_status); } && {
5972 test -z "$ac_c_werror_flag" ||
5973 test ! -s conftest.err
5974 } && test -s conftest.$ac_objext; then
5975 ac_header_compiler=yes
5977 echo "$as_me: failed program was:" >&5
5978 sed 's/^/| /' conftest.$ac_ext >&5
5980 ac_header_compiler=no
5983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5984 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5985 echo "${ECHO_T}$ac_header_compiler" >&6; }
5987 # Is the header present?
5988 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5989 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5990 cat >conftest.$ac_ext <<_ACEOF
5993 cat confdefs.h >>conftest.$ac_ext
5994 cat >>conftest.$ac_ext <<_ACEOF
5995 /* end confdefs.h. */
5996 #include <$ac_header>
5998 if { (ac_try="$ac_cpp conftest.$ac_ext"
6000 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6001 *) ac_try_echo
=$ac_try;;
6003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6004 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6006 grep -v '^ *+' conftest.er1
>conftest.err
6008 cat conftest.err
>&5
6009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6010 (exit $ac_status); } >/dev
/null
&& {
6011 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6012 test ! -s conftest.err
6014 ac_header_preproc
=yes
6016 echo "$as_me: failed program was:" >&5
6017 sed 's/^/| /' conftest.
$ac_ext >&5
6019 ac_header_preproc
=no
6022 rm -f conftest.err conftest.
$ac_ext
6023 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6024 echo "${ECHO_T}$ac_header_preproc" >&6; }
6026 # So? What about this header?
6027 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6029 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6030 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6031 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6032 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6033 ac_header_preproc
=yes
6036 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6037 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6038 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6039 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6040 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6041 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6042 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6043 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6044 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6045 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6046 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6047 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6049 ## ------------------------------- ##
6050 ## Report this to bug-grub@gnu.org ##
6051 ## ------------------------------- ##
6053 ) |
sed "s/^/$as_me: WARNING: /" >&2
6056 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6057 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6058 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6059 echo $ECHO_N "(cached) $ECHO_C" >&6
6061 eval "$as_ac_Header=\$ac_header_preproc"
6063 ac_res
=`eval echo '${'$as_ac_Header'}'`
6064 { echo "$as_me:$LINENO: result: $ac_res" >&5
6065 echo "${ECHO_T}$ac_res" >&6; }
6068 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6069 cat >>confdefs.h
<<_ACEOF
6070 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6078 # Check for user options.
6080 # filesystems support.
6081 # Check whether --enable-ext2fs was given.
6082 if test "${enable_ext2fs+set}" = set; then
6083 enableval
=$enable_ext2fs;
6087 if test x
"$enable_ext2fs" != xno
; then
6088 FSYS_CFLAGS
="$FSYS_CFLAGS -DFSYS_EXT2FS=1"
6091 # Check whether --enable-fat was given.
6092 if test "${enable_fat+set}" = set; then
6093 enableval
=$enable_fat;
6097 if test x
"$enable_fat" != xno
; then
6098 FSYS_CFLAGS
="$FSYS_CFLAGS -DFSYS_FAT=1"
6101 # Check whether --enable-ffs was given.
6102 if test "${enable_ffs+set}" = set; then
6103 enableval
=$enable_ffs;
6107 if test x
"$enable_ffs" != xno
; then
6108 FSYS_CFLAGS
="$FSYS_CFLAGS -DFSYS_FFS=1"
6111 # Check whether --enable-ufs2 was given.
6112 if test "${enable_ufs2+set}" = set; then
6113 enableval
=$enable_ufs2;
6117 if test x
"$enable_ufs2" != xno
; then
6118 FSYS_CFLAGS
="$FSYS_CFLAGS -DFSYS_UFS2=1"
6121 # Check whether --enable-minix was given.
6122 if test "${enable_minix+set}" = set; then
6123 enableval
=$enable_minix;
6127 if test x
"$enable_minix" != xno
; then
6128 FSYS_CFLAGS
="$FSYS_CFLAGS -DFSYS_MINIX=1"
6131 # Check whether --enable-reiserfs was given.
6132 if test "${enable_reiserfs+set}" = set; then
6133 enableval
=$enable_reiserfs;
6137 if test x
"$enable_reiserfs" != xno
; then
6138 FSYS_CFLAGS
="$FSYS_CFLAGS -DFSYS_REISERFS=1"
6141 # Check whether --enable-vstafs was given.
6142 if test "${enable_vstafs+set}" = set; then
6143 enableval
=$enable_vstafs;
6147 if test x
"$enable_vstafs" != xno
; then
6148 FSYS_CFLAGS
="$FSYS_CFLAGS -DFSYS_VSTAFS=1"
6151 # Check whether --enable-jfs was given.
6152 if test "${enable_jfs+set}" = set; then
6153 enableval
=$enable_jfs;
6157 if test x
"$enable_jfs" != xno
; then
6158 FSYS_CFLAGS
="$FSYS_CFLAGS -DFSYS_JFS=1"
6161 # Check whether --enable-xfs was given.
6162 if test "${enable_xfs+set}" = set; then
6163 enableval
=$enable_xfs;
6167 if test x
"$enable_xfs" != xno
; then
6168 FSYS_CFLAGS
="$FSYS_CFLAGS -DFSYS_XFS=1"
6171 # Check whether --enable-iso9660 was given.
6172 if test "${enable_iso9660+set}" = set; then
6173 enableval
=$enable_iso9660;
6177 if test x
"$enable_iso9660" != xno
; then
6178 FSYS_CFLAGS
="$FSYS_CFLAGS -DFSYS_ISO9660=1"
6181 # Check whether --enable-affs was given.
6182 if test "${enable_affs+set}" = set; then
6183 enableval
=$enable_affs;
6187 if test x
"$enable_affs" != xno
; then
6188 FSYS_CFLAGS
="$FSYS_CFLAGS -DFSYS_AFFS=1"
6192 # Check whether --enable-gunzip was given.
6193 if test "${enable_gunzip+set}" = set; then
6194 enableval
=$enable_gunzip;
6198 if test x
"$enable_gunzip" = xno
; then
6199 FSYS_CFLAGS
="$FSYS_CFLAGS -DNO_DECOMPRESSION=1"
6202 # Check whether --enable-md5-password was given.
6203 if test "${enable_md5_password+set}" = set; then
6204 enableval
=$enable_md5_password;
6207 if test "x$enable_md5_password" != xno
; then
6208 FSYS_CFLAGS
="$FSYS_CFLAGS -DUSE_MD5_PASSWORDS=1"
6211 # Check whether --enable-packet-retransmission was given.
6212 if test "${enable_packet_retransmission+set}" = set; then
6213 enableval
=$enable_packet_retransmission;
6216 if test "x$enable_packet_retransmission" != xno
; then
6217 NET_EXTRAFLAGS
="$NET_EXTRAFLAGS -DCONGESTED=1"
6220 # Check whether --enable-pci-direct was given.
6221 if test "${enable_pci_direct+set}" = set; then
6222 enableval
=$enable_pci_direct;
6225 if test "x$enable_pci_direct" = xyes
; then
6226 NET_EXTRAFLAGS
="$NET_EXTRAFLAGS -DCONFIG_PCI_DIRECT=1"
6229 # Check whether --enable-3c509 was given.
6230 if test "${enable_3c509+set}" = set; then
6231 enableval
=$enable_3c509;
6234 if test "x$enable_3c509" = xyes
; then
6235 NET_CFLAGS
="$NET_CFLAGS -DINCLUDE_3C509"
6236 NETBOOT_DRIVERS
="$NETBOOT_DRIVERS 3c509.o"
6239 # Check whether --enable-3c529 was given.
6240 if test "${enable_3c529+set}" = set; then
6241 enableval
=$enable_3c529;
6244 if test "x$enable_3c529" = xyes
; then
6245 NET_CFLAGS
="$NET_CFLAGS -DINCLUDE_3C529=1"
6246 NETBOOT_DRIVERS
="$NETBOOT_DRIVERS 3c529.o"
6249 # Check whether --enable-3c595 was given.
6250 if test "${enable_3c595+set}" = set; then
6251 enableval
=$enable_3c595;
6254 if test "x$enable_3c595" = xyes
; then
6255 NET_CFLAGS
="$NET_CFLAGS -DINCLUDE_3C595=1"
6256 NETBOOT_DRIVERS
="$NETBOOT_DRIVERS 3c595.o"
6259 # Check whether --enable-3c90x was given.
6260 if test "${enable_3c90x+set}" = set; then
6261 enableval
=$enable_3c90x;
6264 if test "x$enable_3c90x" = xyes
; then
6265 NET_CFLAGS
="$NET_CFLAGS -DINCLUDE_3C90X=1"
6266 NETBOOT_DRIVERS
="$NETBOOT_DRIVERS 3c90x.o"
6269 # Check whether --enable-cs89x0 was given.
6270 if test "${enable_cs89x0+set}" = set; then
6271 enableval
=$enable_cs89x0;
6274 if test "x$enable_cs89x0" = xyes
; then
6275 NET_CFLAGS
="$NET_CFLAGS -DINCLUDE_CS89X0=1"
6276 NETBOOT_DRIVERS
="$NETBOOT_DRIVERS cs89x0.o"
6279 # Check whether --enable-davicom was given.
6280 if test "${enable_davicom+set}" = set; then
6281 enableval
=$enable_davicom;
6284 if test "x$enable_davicom" = xyes
; then
6285 NET_CFLAGS
="$NET_CFLAGS -DINCLUDE_DAVICOM=1"
6286 NETBOOT_DRIVERS
="$NETBOOT_DRIVERS davicom.o"
6289 # Check whether --enable-depca was given.
6290 if test "${enable_depca+set}" = set; then
6291 enableval
=$enable_depca;
6294 if test "x$enable_depca" = xyes
; then
6295 NET_CFLAGS
="$NET_CFLAGS -DINCLUDE_DEPCA=1"
6296 NETBOOT_DRIVERS
="$NETBOOT_DRIVERS depca.o"
6299 # Check whether --enable-eepro was given.
6300 if test "${enable_eepro+set}" = set; then
6301 enableval
=$enable_eepro;
6304 if test "x$enable_eepro" = xyes
; then
6305 NET_CFLAGS
="$NET_CFLAGS -DINCLUDE_EEPRO=1"
6306 NETBOOT_DRIVERS
="$NETBOOT_DRIVERS eepro.o"
6309 # Check whether --enable-eepro100 was given.
6310 if test "${enable_eepro100+set}" = set; then
6311 enableval
=$enable_eepro100;
6314 if test "x$enable_eepro100" = xyes
; then
6315 NET_CFLAGS
="$NET_CFLAGS -DINCLUDE_EEPRO100=1"
6316 NETBOOT_DRIVERS
="$NETBOOT_DRIVERS eepro100.o"
6319 # Check whether --enable-epic100 was given.
6320 if test "${enable_epic100+set}" = set; then
6321 enableval
=$enable_epic100;
6324 if test "x$enable_epic100" = xyes
; then
6325 NET_CFLAGS
="$NET_CFLAGS -DINCLUDE_EPIC100=1"
6326 NETBOOT_DRIVERS
="$NETBOOT_DRIVERS epic100.o"
6329 # Check whether --enable-3c507 was given.
6330 if test "${enable_3c507+set}" = set; then
6331 enableval
=$enable_3c507;
6334 if test "x$enable_3c507" = xyes
; then
6335 NET_CFLAGS
="$NET_CFLAGS -DINCLUDE_3C507=1"
6336 NETBOOT_DRIVERS
="$NETBOOT_DRIVERS 3c507.o"
6339 # Check whether --enable-exos205 was given.
6340 if test "${enable_exos205+set}" = set; then
6341 enableval
=$enable_exos205;
6344 if test "x$enable_exos205" = xyes
; then
6345 NET_CFLAGS
="$NET_CFLAGS -DINCLUDE_EXOS205=1"
6346 NETBOOT_DRIVERS
="$NETBOOT_DRIVERS exos205.o"
6349 # Check whether --enable-ni5210 was given.
6350 if test "${enable_ni5210+set}" = set; then
6351 enableval
=$enable_ni5210;
6354 if test "x$enable_ni5210" = xyes
; then
6355 NET_CFLAGS
="$NET_CFLAGS -DINCLUDE_NI5210=1"
6356 NETBOOT_DRIVERS
="$NETBOOT_DRIVERS ni5210.o"
6359 # Check whether --enable-lance was given.
6360 if test "${enable_lance+set}" = set; then
6361 enableval
=$enable_lance;
6364 if test "x$enable_lance" = xyes
; then
6365 NET_CFLAGS
="$NET_CFLAGS -DINCLUDE_LANCE=1"
6366 NETBOOT_DRIVERS
="$NETBOOT_DRIVERS lance.o"
6369 # Check whether --enable-ne2100 was given.
6370 if test "${enable_ne2100+set}" = set; then
6371 enableval
=$enable_ne2100;
6374 if test "x$enable_ne2100" = xyes
; then
6375 NET_CFLAGS
="$NET_CFLAGS -DINCLUDE_NE2100=1"
6376 NETBOOT_DRIVERS
="$NETBOOT_DRIVERS ne2100.o"
6379 # Check whether --enable-ni6510 was given.
6380 if test "${enable_ni6510+set}" = set; then
6381 enableval
=$enable_ni6510;
6384 if test "x$enable_ni6510" = xyes
; then
6385 NET_CFLAGS
="$NET_CFLAGS -DINCLUDE_NI6510=1"
6386 NETBOOT_DRIVERS
="$NETBOOT_DRIVERS ni6510.o"
6389 # Check whether --enable-natsemi was given.
6390 if test "${enable_natsemi+set}" = set; then
6391 enableval
=$enable_natsemi;
6394 if test "x$enable_natsemi" = xyes
; then
6395 NET_CFLAGS
="$NET_CFLAGS -DINCLUDE_NATSEMI=1"
6396 NETBOOT_DRIVERS
="$NETBOOT_DRIVERS natsemi.o"
6399 # Check whether --enable-ni5010 was given.
6400 if test "${enable_ni5010+set}" = set; then
6401 enableval
=$enable_ni5010;
6404 if test "x$enable_ni5010" = xyes
; then
6405 NET_CFLAGS
="$NET_CFLAGS -DINCLUDE_NI5010=1"
6406 NETBOOT_DRIVERS
="$NETBOOT_DRIVERS ni5010.o"
6409 # Check whether --enable-3c503 was given.
6410 if test "${enable_3c503+set}" = set; then
6411 enableval
=$enable_3c503;
6414 if test "x$enable_3c503" = xyes
; then
6415 NET_CFLAGS
="$NET_CFLAGS -DINCLUDE_3C503=1"
6416 NETBOOT_DRIVERS
="$NETBOOT_DRIVERS 3c503.o"
6419 # Check whether --enable-ne was given.
6420 if test "${enable_ne+set}" = set; then
6421 enableval
=$enable_ne;
6424 if test "x$enable_ne" = xyes
; then
6425 NET_CFLAGS
="$NET_CFLAGS -DINCLUDE_NE=1"
6426 NETBOOT_DRIVERS
="$NETBOOT_DRIVERS ne.o"
6429 # Check whether --enable-ns8390 was given.
6430 if test "${enable_ns8390+set}" = set; then
6431 enableval
=$enable_ns8390;
6434 if test "x$enable_ns8390" = xyes
; then
6435 NET_CFLAGS
="$NET_CFLAGS -DINCLUDE_NS8390=1"
6436 NETBOOT_DRIVERS
="$NETBOOT_DRIVERS ns8390.o"
6439 # Check whether --enable-wd was given.
6440 if test "${enable_wd+set}" = set; then
6441 enableval
=$enable_wd;
6444 if test "x$enable_wd" = xyes
; then
6445 NET_CFLAGS
="$NET_CFLAGS -DINCLUDE_WD=1"
6446 NETBOOT_DRIVERS
="$NETBOOT_DRIVERS wd.o"
6449 # Check whether --enable-otulip was given.
6450 if test "${enable_otulip+set}" = set; then
6451 enableval
=$enable_otulip;
6454 if test "x$enable_otulip" = xyes
; then
6455 NET_CFLAGS
="$NET_CFLAGS -DINCLUDE_OTULIP=1"
6456 NETBOOT_DRIVERS
="$NETBOOT_DRIVERS otulip.o"
6459 # Check whether --enable-rtl8139 was given.
6460 if test "${enable_rtl8139+set}" = set; then
6461 enableval
=$enable_rtl8139;
6464 if test "x$enable_rtl8139" = xyes
; then
6465 NET_CFLAGS
="$NET_CFLAGS -DINCLUDE_RTL8139=1"
6466 NETBOOT_DRIVERS
="$NETBOOT_DRIVERS rtl8139.o"
6469 # Check whether --enable-sis900 was given.
6470 if test "${enable_sis900+set}" = set; then
6471 enableval
=$enable_sis900;
6474 if test "x$enable_sis900" = xyes
; then
6475 NET_CFLAGS
="$NET_CFLAGS -DINCLUDE_SIS900=1"
6476 NETBOOT_DRIVERS
="$NETBOOT_DRIVERS sis900.o"
6479 # Check whether --enable-sk-g16 was given.
6480 if test "${enable_sk_g16+set}" = set; then
6481 enableval
=$enable_sk_g16;
6484 if test "x$enable_sk_g16" = xyes
; then
6485 NET_CFLAGS
="$NET_CFLAGS -DINCLUDE_SK_G16=1"
6486 NETBOOT_DRIVERS
="$NETBOOT_DRIVERS sk_g16.o"
6489 # Check whether --enable-smc9000 was given.
6490 if test "${enable_smc9000+set}" = set; then
6491 enableval
=$enable_smc9000;
6494 if test "x$enable_smc9000" = xyes
; then
6495 NET_CFLAGS
="$NET_CFLAGS -DINCLUDE_SMC9000=1"
6496 NETBOOT_DRIVERS
="$NETBOOT_DRIVERS smc9000.o"
6499 # Check whether --enable-tiara was given.
6500 if test "${enable_tiara+set}" = set; then
6501 enableval
=$enable_tiara;
6504 if test "x$enable_tiara" = xyes
; then
6505 NET_CFLAGS
="$NET_CFLAGS -DINCLUDE_TIARA=1"
6506 NETBOOT_DRIVERS
="$NETBOOT_DRIVERS tiara.o"
6509 # Check whether --enable-tulip was given.
6510 if test "${enable_tulip+set}" = set; then
6511 enableval
=$enable_tulip;
6514 if test "x$enable_tulip" = xyes
; then
6515 NET_CFLAGS
="$NET_CFLAGS -DINCLUDE_TULIP=1"
6516 NETBOOT_DRIVERS
="$NETBOOT_DRIVERS tulip.o"
6519 # Check whether --enable-via-rhine was given.
6520 if test "${enable_via_rhine+set}" = set; then
6521 enableval
=$enable_via_rhine;
6524 if test "x$enable_via_rhine" = xyes
; then
6525 NET_CFLAGS
="$NET_CFLAGS -DINCLUDE_VIA_RHINE=1"
6526 NETBOOT_DRIVERS
="$NETBOOT_DRIVERS via_rhine.o"
6529 # Check whether --enable-w89c840 was given.
6530 if test "${enable_w89c840+set}" = set; then
6531 enableval
=$enable_w89c840;
6534 if test "x$enable_w89c840" = xyes
; then
6535 NET_CFLAGS
="$NET_CFLAGS -DINCLUDE_W89C840=1"
6536 NETBOOT_DRIVERS
="$NETBOOT_DRIVERS w89c840.o"
6541 if test "x$NET_CFLAGS" != x
; then
6542 NETBOOT_SUPPORT_TRUE
=
6543 NETBOOT_SUPPORT_FALSE
='#'
6545 NETBOOT_SUPPORT_TRUE
='#'
6546 NETBOOT_SUPPORT_FALSE
=
6549 if test "x$NET_CFLAGS" != x
; then
6550 FSYS_CFLAGS
="$FSYS_CFLAGS -DFSYS_TFTP=1"
6553 # Check whether --enable-3c503-shmem was given.
6554 if test "${enable_3c503_shmem+set}" = set; then
6555 enableval
=$enable_3c503_shmem;
6558 if test "x$enable_3c503_shmem" = xyes
; then
6559 NET_EXTRAFLAGS
="$NET_EXTRAFLAGS -DT503_SHMEM=1"
6562 # Check whether --enable-3c503-aui was given.
6563 if test "${enable_3c503_aui+set}" = set; then
6564 enableval
=$enable_3c503_aui;
6567 if test "x$enable_3c503_aui" = xyes
; then
6568 NET_EXTRAFLAGS
="$NET_EXTRAFLAGS -DT503_AUI=1"
6571 # Check whether --enable-compex-rl2000-fix was given.
6572 if test "${enable_compex_rl2000_fix+set}" = set; then
6573 enableval
=$enable_compex_rl2000_fix;
6576 if test "x$enable_compex_rl2000_fix" = xyes
; then
6577 NET_EXTRAFLAGS
="$NET_EXTRAFLAGS -DCOMPEX_RL2000_FIX=1"
6580 # Check whether --enable-smc9000-scan was given.
6581 if test "${enable_smc9000_scan+set}" = set; then
6582 enableval
=$enable_smc9000_scan; NET_EXTRAFLAGS
="$NET_EXTRAFLAGS -DSMC9000_SCAN=$enable_smc9000_scan"
6586 # Check whether --enable-ne-scan was given.
6587 if test "${enable_ne_scan+set}" = set; then
6588 enableval
=$enable_ne_scan; NET_EXTRAFLAGS
="$NET_EXTRAFLAGS -DNE_SCAN=$enable_ne_scan"
6590 NET_EXTRAFLAGS
="$NET_EXTRAFLAGS -DNE_SCAN=0x280,0x300,0x320,0x340"
6594 # Check whether --enable-wd-default-mem was given.
6595 if test "${enable_wd_default_mem+set}" = set; then
6596 enableval
=$enable_wd_default_mem; NET_EXTRAFLAGS
="$NET_EXTRAFLAGS -DWD_DEFAULT_MEM=$enable_wd_default_mem"
6598 NET_EXTRAFLAGS
="$NET_EXTRAFLAGS -DWD_DEFAULT_MEM=0xCC000"
6602 # Check whether --enable-cs-scan was given.
6603 if test "${enable_cs_scan+set}" = set; then
6604 enableval
=$enable_cs_scan; NET_EXTRAFLAGS
="$NET_EXTRAFLAGS -DCS_SCAN=$enable_cs_scan"
6608 # Check whether --enable-diskless was given.
6609 if test "${enable_diskless+set}" = set; then
6610 enableval
=$enable_diskless;
6615 if test "x$enable_diskless" = xyes
; then
6616 DISKLESS_SUPPORT_TRUE
=
6617 DISKLESS_SUPPORT_FALSE
='#'
6619 DISKLESS_SUPPORT_TRUE
='#'
6620 DISKLESS_SUPPORT_FALSE
=
6624 # Check whether --enable-hercules was given.
6625 if test "${enable_hercules+set}" = set; then
6626 enableval
=$enable_hercules;
6631 if test "x$enable_hercules" != xno
; then
6632 HERCULES_SUPPORT_TRUE
=
6633 HERCULES_SUPPORT_FALSE
='#'
6635 HERCULES_SUPPORT_TRUE
='#'
6636 HERCULES_SUPPORT_FALSE
=
6640 # Check whether --enable-serial was given.
6641 if test "${enable_serial+set}" = set; then
6642 enableval
=$enable_serial;
6647 if test "x$enable_serial" != xno
; then
6648 SERIAL_SUPPORT_TRUE
=
6649 SERIAL_SUPPORT_FALSE
='#'
6651 SERIAL_SUPPORT_TRUE
='#'
6652 SERIAL_SUPPORT_FALSE
=
6656 # Check whether --enable-serial-speed-simulation was given.
6657 if test "${enable_serial_speed_simulation+set}" = set; then
6658 enableval
=$enable_serial_speed_simulation;
6663 if test "x$enable_serial_speed_simulation" = xyes
; then
6664 SERIAL_SPEED_SIMULATION_TRUE
=
6665 SERIAL_SPEED_SIMULATION_FALSE
='#'
6667 SERIAL_SPEED_SIMULATION_TRUE
='#'
6668 SERIAL_SPEED_SIMULATION_FALSE
=
6673 if test "x$enable_diskless" = xyes
; then
6674 if test "x$NET_CFLAGS" = x
; then
6675 { { echo "$as_me:$LINENO: error: You must enable at least one network driver" >&5
6676 echo "$as_me: error: You must enable at least one network driver" >&2;}
6677 { (exit 1); exit 1; }; }
6681 # Check whether --enable-preset-menu was given.
6682 if test "${enable_preset_menu+set}" = set; then
6683 enableval
=$enable_preset_menu;
6686 if test "x$enable_preset_menu" = x
; then
6689 if test -r $enable_preset_menu; then
6691 # Because early versions of GNU sed 3.x are too buggy, use a C program
6692 # instead of shell commands. *sigh*
6693 cat >conftest.c
<<\EOF
6701 while ((c
= getchar
()) != EOF
)
6706 fputs
("\\n", stdout
);
6709 fputs
("\\r", stdout
);
6712 fputs
("\\\\", stdout
);
6715 fputs
("\\\"", stdout
);
6726 if { ac_try
='${CC_FOR_BUILD-cc} ${CFLAGS} conftest.c -o conftest'
6727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6731 (exit $ac_status); }; } && test -s conftest
; then
6732 grub_tmp_value
=`./conftest < "$enable_preset_menu"`
6734 { { echo "$as_me:$LINENO: error: ${CC-cc} failed to produce an executable file" >&5
6735 echo "$as_me: error: ${CC-cc} failed to produce an executable file" >&2;}
6736 { (exit 1); exit 1; }; }
6740 cat >>confdefs.h
<<_ACEOF
6741 #define PRESET_MENU_STRING "$grub_tmp_value"
6747 { { echo "$as_me:$LINENO: error: Cannot read the preset menu file $enable_preset_menu" >&5
6748 echo "$as_me: error: Cannot read the preset menu file $enable_preset_menu" >&2;}
6749 { (exit 1); exit 1; }; }
6753 # Check whether --enable-example-kernel was given.
6754 if test "${enable_example_kernel+set}" = set; then
6755 enableval
=$enable_example_kernel;
6760 if test "x$enable_example_kernel" = xyes
; then
6761 BUILD_EXAMPLE_KERNEL_TRUE
=
6762 BUILD_EXAMPLE_KERNEL_FALSE
='#'
6764 BUILD_EXAMPLE_KERNEL_TRUE
='#'
6765 BUILD_EXAMPLE_KERNEL_FALSE
=
6769 # Check whether --enable-auto-linux-mem-opt was given.
6770 if test "${enable_auto_linux_mem_opt+set}" = set; then
6771 enableval
=$enable_auto_linux_mem_opt;
6774 if test "x$enable_auto_linux_mem_opt" = xno
; then
6778 cat >>confdefs.h
<<\_ACEOF
6779 #define AUTO_LINUX_MEM_OPT 1
6789 CCASFLAGS
='$(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(CPPFLAGS) $(CFLAGS)'
6793 ac_config_files
="$ac_config_files Makefile stage1/Makefile stage2/Makefile docs/Makefile lib/Makefile util/Makefile grub/Makefile netboot/Makefile util/grub-image util/grub-install util/grub-md5-crypt util/grub-terminfo util/grub-set-default"
6795 cat >confcache
<<\_ACEOF
6796 # This file is a shell script that caches the results of configure
6797 # tests run on this system so they can be shared between configure
6798 # scripts and configure runs, see configure's option --config-cache.
6799 # It is not useful on other systems. If it contains results you don't
6800 # want to keep, you may remove or edit it.
6802 # config.status only pays attention to the cache file if you give it
6803 # the --recheck option to rerun configure.
6805 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6806 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6811 # The following way of writing the cache mishandles newlines in values,
6812 # but we know of no workaround that is simple, portable, and efficient.
6813 # So, we kill variables containing newlines.
6814 # Ultrix sh set writes to stderr and can't be redirected directly,
6815 # and sets the high bit in the cache file unless we assign to the vars.
6817 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
6818 eval ac_val
=\$
$ac_var
6822 *_cv_
*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
6823 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
6826 _ | IFS | as_nl
) ;; #(
6827 *) $as_unset $ac_var ;;
6833 case $as_nl`(ac_space=' '; set) 2>&1` in #(
6834 *${as_nl}ac_space
=\
*)
6835 # `set' does not quote correctly, so add quotes (double-quote
6836 # substitution turns \\\\ into \\, and sed turns \\ into \).
6839 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6842 # `set' quotes correctly as required by POSIX, so do not add quotes.
6843 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
6852 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6854 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6856 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
6857 if test -w "$cache_file"; then
6858 test "x$cache_file" != "x/dev/null" &&
6859 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
6860 echo "$as_me: updating cache $cache_file" >&6;}
6861 cat confcache
>$cache_file
6863 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
6864 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
6869 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
6870 # Let make expand exec_prefix.
6871 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6873 DEFS
=-DHAVE_CONFIG_H
6877 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
6878 # 1. Remove the extension, and $U if already installed.
6879 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
6880 ac_i
=`echo "$ac_i" | sed "$ac_script"`
6881 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
6882 # will be set to the directory where LIBOBJS objects are built.
6883 ac_libobjs
="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
6884 ac_ltlibobjs
="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
6888 LTLIBOBJS
=$ac_ltlibobjs
6891 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
6892 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
6893 Usually this means the macro was only invoked conditionally." >&5
6894 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
6895 Usually this means the macro was only invoked conditionally." >&2;}
6896 { (exit 1); exit 1; }; }
6898 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
6899 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
6900 Usually this means the macro was only invoked conditionally." >&5
6901 echo "$as_me: error: conditional \"AMDEP\" was never defined.
6902 Usually this means the macro was only invoked conditionally." >&2;}
6903 { (exit 1); exit 1; }; }
6905 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
6906 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
6907 Usually this means the macro was only invoked conditionally." >&5
6908 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
6909 Usually this means the macro was only invoked conditionally." >&2;}
6910 { (exit 1); exit 1; }; }
6912 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
6913 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
6914 Usually this means the macro was only invoked conditionally." >&5
6915 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
6916 Usually this means the macro was only invoked conditionally." >&2;}
6917 { (exit 1); exit 1; }; }
6919 if test -z "${NETBOOT_SUPPORT_TRUE}" && test -z "${NETBOOT_SUPPORT_FALSE}"; then
6920 { { echo "$as_me:$LINENO: error: conditional \"NETBOOT_SUPPORT\" was never defined.
6921 Usually this means the macro was only invoked conditionally." >&5
6922 echo "$as_me: error: conditional \"NETBOOT_SUPPORT\" was never defined.
6923 Usually this means the macro was only invoked conditionally." >&2;}
6924 { (exit 1); exit 1; }; }
6926 if test -z "${DISKLESS_SUPPORT_TRUE}" && test -z "${DISKLESS_SUPPORT_FALSE}"; then
6927 { { echo "$as_me:$LINENO: error: conditional \"DISKLESS_SUPPORT\" was never defined.
6928 Usually this means the macro was only invoked conditionally." >&5
6929 echo "$as_me: error: conditional \"DISKLESS_SUPPORT\" was never defined.
6930 Usually this means the macro was only invoked conditionally." >&2;}
6931 { (exit 1); exit 1; }; }
6933 if test -z "${HERCULES_SUPPORT_TRUE}" && test -z "${HERCULES_SUPPORT_FALSE}"; then
6934 { { echo "$as_me:$LINENO: error: conditional \"HERCULES_SUPPORT\" was never defined.
6935 Usually this means the macro was only invoked conditionally." >&5
6936 echo "$as_me: error: conditional \"HERCULES_SUPPORT\" was never defined.
6937 Usually this means the macro was only invoked conditionally." >&2;}
6938 { (exit 1); exit 1; }; }
6940 if test -z "${SERIAL_SUPPORT_TRUE}" && test -z "${SERIAL_SUPPORT_FALSE}"; then
6941 { { echo "$as_me:$LINENO: error: conditional \"SERIAL_SUPPORT\" was never defined.
6942 Usually this means the macro was only invoked conditionally." >&5
6943 echo "$as_me: error: conditional \"SERIAL_SUPPORT\" was never defined.
6944 Usually this means the macro was only invoked conditionally." >&2;}
6945 { (exit 1); exit 1; }; }
6947 if test -z "${SERIAL_SPEED_SIMULATION_TRUE}" && test -z "${SERIAL_SPEED_SIMULATION_FALSE}"; then
6948 { { echo "$as_me:$LINENO: error: conditional \"SERIAL_SPEED_SIMULATION\" was never defined.
6949 Usually this means the macro was only invoked conditionally." >&5
6950 echo "$as_me: error: conditional \"SERIAL_SPEED_SIMULATION\" was never defined.
6951 Usually this means the macro was only invoked conditionally." >&2;}
6952 { (exit 1); exit 1; }; }
6954 if test -z "${BUILD_EXAMPLE_KERNEL_TRUE}" && test -z "${BUILD_EXAMPLE_KERNEL_FALSE}"; then
6955 { { echo "$as_me:$LINENO: error: conditional \"BUILD_EXAMPLE_KERNEL\" was never defined.
6956 Usually this means the macro was only invoked conditionally." >&5
6957 echo "$as_me: error: conditional \"BUILD_EXAMPLE_KERNEL\" was never defined.
6958 Usually this means the macro was only invoked conditionally." >&2;}
6959 { (exit 1); exit 1; }; }
6962 : ${CONFIG_STATUS=./config.status}
6963 ac_clean_files_save
=$ac_clean_files
6964 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
6965 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
6966 echo "$as_me: creating $CONFIG_STATUS" >&6;}
6967 cat >$CONFIG_STATUS <<_ACEOF
6969 # Generated by $as_me.
6970 # Run this file to recreate the current configuration.
6971 # Compiler output produced by configure, useful for debugging
6972 # configure, is in config.log if it exists.
6977 SHELL=\${CONFIG_SHELL-$SHELL}
6980 cat >>$CONFIG_STATUS <<\_ACEOF
6981 ## --------------------- ##
6982 ## M4sh Initialization. ##
6983 ## --------------------- ##
6985 # Be more Bourne compatible
6986 DUALCASE
=1; export DUALCASE
# for MKS sh
6987 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
6990 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
6991 # is contrary to our usage. Disable this feature.
6992 alias -g '${1+"$@"}'='"$@"'
6993 setopt NO_GLOB_SUBST
6995 case `(set -o) 2>/dev/null` in
6996 *posix
*) set -o posix
;;
7005 # Avoid depending upon Character Ranges.
7006 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
7007 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7008 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
7009 as_cr_digits
='0123456789'
7010 as_cr_alnum
=$as_cr_Letters$as_cr_digits
7012 # The user is always right.
7013 if test "${PATH_SEPARATOR+set}" != set; then
7014 echo "#! /bin/sh" >conf$$.sh
7015 echo "exit 0" >>conf$$.sh
7017 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
7025 # Support unset when possible.
7026 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
7034 # We need space, tab and new line, in precisely that order. Quoting is
7035 # there to prevent editors from complaining about space-tab.
7036 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
7037 # splitting by setting IFS to empty value.)
7042 # Find who we are. Look in the path if we contain no directory separator.
7044 *[\\/]* ) as_myself
=$0 ;;
7045 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7049 test -z "$as_dir" && as_dir
=.
7050 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
7056 # We did not find ourselves, most probably we were run as `sh COMMAND'
7057 # in which case we are not to be found in the path.
7058 if test "x$as_myself" = x
; then
7061 if test ! -f "$as_myself"; then
7062 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7063 { (exit 1); exit 1; }
7066 # Work around bugs in pre-3.0 UWIN ksh.
7067 for as_var
in ENV MAIL MAILPATH
7068 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
7076 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
7077 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
7078 LC_TELEPHONE LC_TIME
7080 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
7081 eval $as_var=C
; export $as_var
7083 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
7087 # Required to use basename.
7088 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
7089 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
7095 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7096 as_basename
=basename
7102 # Name of the executable.
7103 as_me
=`$as_basename -- "$0" ||
7104 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7105 X"$0" : 'X\(//\)$' \| \
7106 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7108 sed '/^.*\/\([^/][^/]*\)\/*$/{
7129 test "x$as_lineno_1" != "x$as_lineno_2" &&
7130 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
7132 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
7133 # uniformly replaced by the line number. The first 'sed' inserts a
7134 # line-number line after each line using $LINENO; the second 'sed'
7135 # does the real work. The second script uses 'N' to pair each
7136 # line-number line with the line containing $LINENO, and appends
7137 # trailing '-' during substitution so that $LINENO is not a special
7139 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7140 # scripts with optimization help from Paolo Bonzini. Blame Lee
7141 # E. McMahon (1931-1989) for sed's syntax. :-)
7153 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
7157 chmod +x
"$as_me.lineno" ||
7158 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
7159 { (exit 1); exit 1; }; }
7161 # Don't try to exec as it changes $[0], causing all sort of problems
7162 # (the dirname of $[0] is not the place where we might find the
7163 # original and so on. Autoconf is especially sensitive to this).
7165 # Exit status is that of the last command.
7170 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
7176 ECHO_C
= ECHO_N
= ECHO_T
=
7179 case `echo 'x\c'` in
7180 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
7187 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
7188 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
7194 rm -f conf$$ conf$$.exe conf$$.
file
7195 if test -d conf$$.dir
; then
7196 rm -f conf$$.dir
/conf$$.
file
7202 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
7204 # ... but there are two gotchas:
7205 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
7206 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
7207 # In both cases, we have to default to `cp -p'.
7208 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
7210 elif ln conf$$.
file conf$$
2>/dev
/null
; then
7215 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
7216 rmdir conf$$.dir
2>/dev
/null
7218 if mkdir
-p .
2>/dev
/null
; then
7221 test -d .
/-p && rmdir .
/-p
7225 if test -x / >/dev
/null
2>&1; then
7228 if ls -dL / >/dev
/null
2>&1; then
7235 if test -d "$1"; then
7241 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
7242 ???[sx]*):;;*)false;;esac;fi
7246 as_executable_p
=$as_test_x
7248 # Sed expression to map a string onto a valid CPP name.
7249 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7251 # Sed expression to map a string onto a valid variable name.
7252 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7257 # Save the log message, to keep $[0] and so on meaningful, and to
7258 # report actual input values of CONFIG_FILES etc. instead of their
7259 # values after options handling.
7261 This file was extended by GRUB $as_me 0.97, which was
7262 generated by GNU Autoconf 2.61. Invocation command line was
7264 CONFIG_FILES = $CONFIG_FILES
7265 CONFIG_HEADERS = $CONFIG_HEADERS
7266 CONFIG_LINKS = $CONFIG_LINKS
7267 CONFIG_COMMANDS = $CONFIG_COMMANDS
7270 on `(hostname || uname -n) 2>/dev/null | sed 1q`
7275 cat >>$CONFIG_STATUS <<_ACEOF
7276 # Files that config.status was made for.
7277 config_files="$ac_config_files"
7278 config_headers="$ac_config_headers"
7279 config_commands="$ac_config_commands"
7283 cat >>$CONFIG_STATUS <<\_ACEOF
7285 \`$as_me' instantiates files from templates according to the
7286 current configuration.
7288 Usage: $0 [OPTIONS] [FILE]...
7290 -h, --help print this help, then exit
7291 -V, --version print version number and configuration settings, then exit
7292 -q, --quiet do not print progress messages
7293 -d, --debug don't remove temporary files
7294 --recheck update $as_me by reconfiguring in the same conditions
7295 --file=FILE[:TEMPLATE]
7296 instantiate the configuration file FILE
7297 --header=FILE[:TEMPLATE]
7298 instantiate the configuration header FILE
7300 Configuration files:
7303 Configuration headers:
7306 Configuration commands:
7309 Report bugs to <bug-autoconf@gnu.org>."
7312 cat >>$CONFIG_STATUS <<_ACEOF
7314 GRUB config.status 0.97
7315 configured by $0, generated by GNU Autoconf 2.61,
7316 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
7318 Copyright (C) 2006 Free Software Foundation, Inc.
7319 This config.status script is free software; the Free Software Foundation
7320 gives unlimited permission to copy, distribute and modify it."
7327 cat >>$CONFIG_STATUS <<\_ACEOF
7328 # If no file are specified by the user, then we need to provide default
7329 # value. By we need to know if files were specified by the user.
7335 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
7336 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
7347 # Handling of the options.
7348 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
7350 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
7351 echo "$ac_cs_version"; exit ;;
7352 --debug |
--debu |
--deb |
--de |
--d |
-d )
7354 --file |
--fil |
--fi |
--f )
7356 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
7357 ac_need_defaults
=false
;;
7358 --header |
--heade |
--head |
--hea )
7360 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
7361 ac_need_defaults
=false
;;
7363 # Conflict between --help and --header
7364 { echo "$as_me: error: ambiguous option: $1
7365 Try \`$0 --help' for more information." >&2
7366 { (exit 1); exit 1; }; };;
7367 --help |
--hel |
-h )
7368 echo "$ac_cs_usage"; exit ;;
7369 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
7370 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
7374 -*) { echo "$as_me: error: unrecognized option: $1
7375 Try \`$0 --help' for more information." >&2
7376 { (exit 1); exit 1; }; } ;;
7378 *) ac_config_targets
="$ac_config_targets $1"
7379 ac_need_defaults
=false
;;
7385 ac_configure_extra_args
=
7387 if $ac_cs_silent; then
7389 ac_configure_extra_args
="$ac_configure_extra_args --silent"
7393 cat >>$CONFIG_STATUS <<_ACEOF
7394 if \$ac_cs_recheck; then
7395 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
7398 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7402 cat >>$CONFIG_STATUS <<\_ACEOF
7406 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7407 ## Running $as_me. ##
7413 cat >>$CONFIG_STATUS <<_ACEOF
7417 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
7421 cat >>$CONFIG_STATUS <<\_ACEOF
7423 # Handling of arguments.
7424 for ac_config_target
in $ac_config_targets
7426 case $ac_config_target in
7427 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
7428 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
7429 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
7430 "stage1/Makefile") CONFIG_FILES
="$CONFIG_FILES stage1/Makefile" ;;
7431 "stage2/Makefile") CONFIG_FILES
="$CONFIG_FILES stage2/Makefile" ;;
7432 "docs/Makefile") CONFIG_FILES
="$CONFIG_FILES docs/Makefile" ;;
7433 "lib/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/Makefile" ;;
7434 "util/Makefile") CONFIG_FILES
="$CONFIG_FILES util/Makefile" ;;
7435 "grub/Makefile") CONFIG_FILES
="$CONFIG_FILES grub/Makefile" ;;
7436 "netboot/Makefile") CONFIG_FILES
="$CONFIG_FILES netboot/Makefile" ;;
7437 "util/grub-image") CONFIG_FILES
="$CONFIG_FILES util/grub-image" ;;
7438 "util/grub-install") CONFIG_FILES
="$CONFIG_FILES util/grub-install" ;;
7439 "util/grub-md5-crypt") CONFIG_FILES
="$CONFIG_FILES util/grub-md5-crypt" ;;
7440 "util/grub-terminfo") CONFIG_FILES
="$CONFIG_FILES util/grub-terminfo" ;;
7441 "util/grub-set-default") CONFIG_FILES
="$CONFIG_FILES util/grub-set-default" ;;
7443 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
7444 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
7445 { (exit 1); exit 1; }; };;
7450 # If the user did not use the arguments to specify the items to instantiate,
7451 # then the envvar interface is used. Set only those that are not.
7452 # We use the long form for the default assignment because of an extremely
7453 # bizarre bug on SunOS 4.1.3.
7454 if $ac_need_defaults; then
7455 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
7456 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
7457 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
7460 # Have a temporary directory for convenience. Make it in the build tree
7461 # simply because there is no reason against having it here, and in addition,
7462 # creating and moving files from /tmp can sometimes cause problems.
7463 # Hook for its removal unless debugging.
7464 # Note that there is a small window in which the directory will not be cleaned:
7465 # after its creation but before its name has been assigned to `$tmp'.
7469 trap 'exit_status=$?
7470 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
7472 trap '{ (exit 1); exit 1; }' 1 2 13 15
7474 # Create a (secure) tmp directory for tmp files.
7477 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
7478 test -n "$tmp" && test -d "$tmp"
7481 tmp
=.
/conf$$
-$RANDOM
7482 (umask 077 && mkdir
"$tmp")
7485 echo "$me: cannot create a temporary directory in ." >&2
7486 { (exit 1); exit 1; }
7490 # Set up the sed scripts for CONFIG_FILES section.
7493 # No need to generate the scripts if there are no CONFIG_FILES.
7494 # This happens for instance when ./config.status config.h
7495 if test -n "$CONFIG_FILES"; then
7502 for ac_last_try
in false false false false false
:; do
7503 cat >conf$
$subs.
sed <<_ACEOF
7504 SHELL!$SHELL$ac_delim
7505 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
7506 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
7507 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
7508 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
7509 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
7510 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
7511 exec_prefix!$exec_prefix$ac_delim
7512 prefix!$prefix$ac_delim
7513 program_transform_name!$program_transform_name$ac_delim
7514 bindir!$bindir$ac_delim
7515 sbindir!$sbindir$ac_delim
7516 libexecdir!$libexecdir$ac_delim
7517 datarootdir!$datarootdir$ac_delim
7518 datadir!$datadir$ac_delim
7519 sysconfdir!$sysconfdir$ac_delim
7520 sharedstatedir!$sharedstatedir$ac_delim
7521 localstatedir!$localstatedir$ac_delim
7522 includedir!$includedir$ac_delim
7523 oldincludedir!$oldincludedir$ac_delim
7524 docdir!$docdir$ac_delim
7525 infodir!$infodir$ac_delim
7526 htmldir!$htmldir$ac_delim
7527 dvidir!$dvidir$ac_delim
7528 pdfdir!$pdfdir$ac_delim
7529 psdir!$psdir$ac_delim
7530 libdir!$libdir$ac_delim
7531 localedir!$localedir$ac_delim
7532 mandir!$mandir$ac_delim
7534 ECHO_C!$ECHO_C$ac_delim
7535 ECHO_N!$ECHO_N$ac_delim
7536 ECHO_T!$ECHO_T$ac_delim
7538 build_alias!$build_alias$ac_delim
7539 host_alias!$host_alias$ac_delim
7540 target_alias!$target_alias$ac_delim
7541 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
7542 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
7543 INSTALL_DATA!$INSTALL_DATA$ac_delim
7544 CYGPATH_W!$CYGPATH_W$ac_delim
7545 PACKAGE!$PACKAGE$ac_delim
7546 VERSION!$VERSION$ac_delim
7547 ACLOCAL!$ACLOCAL$ac_delim
7548 AUTOCONF!$AUTOCONF$ac_delim
7549 AUTOMAKE!$AUTOMAKE$ac_delim
7550 AUTOHEADER!$AUTOHEADER$ac_delim
7551 MAKEINFO!$MAKEINFO$ac_delim
7552 install_sh!$install_sh$ac_delim
7553 STRIP!$STRIP$ac_delim
7554 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
7555 mkdir_p!$mkdir_p$ac_delim
7557 SET_MAKE!$SET_MAKE$ac_delim
7558 am__leading_dot!$am__leading_dot$ac_delim
7559 AMTAR!$AMTAR$ac_delim
7560 am__tar!$am__tar$ac_delim
7561 am__untar!$am__untar$ac_delim
7562 build!$build$ac_delim
7563 build_cpu!$build_cpu$ac_delim
7564 build_vendor!$build_vendor$ac_delim
7565 build_os!$build_os$ac_delim
7567 host_cpu!$host_cpu$ac_delim
7568 host_vendor!$host_vendor$ac_delim
7569 host_os!$host_os$ac_delim
7570 MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
7571 MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
7572 MAINT!$MAINT$ac_delim
7575 CFLAGS!$CFLAGS$ac_delim
7576 LDFLAGS!$LDFLAGS$ac_delim
7577 CPPFLAGS!$CPPFLAGS$ac_delim
7578 ac_ct_CC!$ac_ct_CC$ac_delim
7579 EXEEXT!$EXEEXT$ac_delim
7580 OBJEXT!$OBJEXT$ac_delim
7581 DEPDIR!$DEPDIR$ac_delim
7582 am__include!$am__include$ac_delim
7583 am__quote!$am__quote$ac_delim
7584 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
7585 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
7586 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
7587 CCDEPMODE!$CCDEPMODE$ac_delim
7588 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
7589 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
7591 RANLIB!$RANLIB$ac_delim
7592 STAGE1_CFLAGS!$STAGE1_CFLAGS$ac_delim
7593 STAGE2_CFLAGS!$STAGE2_CFLAGS$ac_delim
7594 GRUB_CFLAGS!$GRUB_CFLAGS$ac_delim
7595 OBJCOPY!$OBJCOPY$ac_delim
7596 GRUB_LIBS!$GRUB_LIBS$ac_delim
7599 EGREP!$EGREP$ac_delim
7600 NETBOOT_SUPPORT_TRUE!$NETBOOT_SUPPORT_TRUE$ac_delim
7603 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
7605 elif $ac_last_try; then
7606 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
7607 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
7608 { (exit 1); exit 1; }; }
7610 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
7614 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
7615 if test -n "$ac_eof"; then
7616 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
7617 ac_eof
=`expr $ac_eof + 1`
7620 cat >>$CONFIG_STATUS <<_ACEOF
7621 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
7622 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7625 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
7626 s/^/s,@/; s/!/@,|#_!!_#|/
7629 s/'"$ac_delim"'$/,g/; t
7631 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
7632 ' >>$CONFIG_STATUS <conf$
$subs.
sed
7633 rm -f conf$
$subs.
sed
7634 cat >>$CONFIG_STATUS <<_ACEOF
7640 for ac_last_try
in false false false false false
:; do
7641 cat >conf$
$subs.
sed <<_ACEOF
7642 NETBOOT_SUPPORT_FALSE!$NETBOOT_SUPPORT_FALSE$ac_delim
7643 DISKLESS_SUPPORT_TRUE!$DISKLESS_SUPPORT_TRUE$ac_delim
7644 DISKLESS_SUPPORT_FALSE!$DISKLESS_SUPPORT_FALSE$ac_delim
7645 HERCULES_SUPPORT_TRUE!$HERCULES_SUPPORT_TRUE$ac_delim
7646 HERCULES_SUPPORT_FALSE!$HERCULES_SUPPORT_FALSE$ac_delim
7647 SERIAL_SUPPORT_TRUE!$SERIAL_SUPPORT_TRUE$ac_delim
7648 SERIAL_SUPPORT_FALSE!$SERIAL_SUPPORT_FALSE$ac_delim
7649 SERIAL_SPEED_SIMULATION_TRUE!$SERIAL_SPEED_SIMULATION_TRUE$ac_delim
7650 SERIAL_SPEED_SIMULATION_FALSE!$SERIAL_SPEED_SIMULATION_FALSE$ac_delim
7651 BUILD_EXAMPLE_KERNEL_TRUE!$BUILD_EXAMPLE_KERNEL_TRUE$ac_delim
7652 BUILD_EXAMPLE_KERNEL_FALSE!$BUILD_EXAMPLE_KERNEL_FALSE$ac_delim
7653 FSYS_CFLAGS!$FSYS_CFLAGS$ac_delim
7654 NET_CFLAGS!$NET_CFLAGS$ac_delim
7655 NET_EXTRAFLAGS!$NET_EXTRAFLAGS$ac_delim
7656 NETBOOT_DRIVERS!$NETBOOT_DRIVERS$ac_delim
7657 CCASFLAGS!$CCASFLAGS$ac_delim
7658 LIBOBJS!$LIBOBJS$ac_delim
7659 LTLIBOBJS!$LTLIBOBJS$ac_delim
7662 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 18; then
7664 elif $ac_last_try; then
7665 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
7666 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
7667 { (exit 1); exit 1; }; }
7669 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
7673 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
7674 if test -n "$ac_eof"; then
7675 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
7676 ac_eof
=`expr $ac_eof + 1`
7679 cat >>$CONFIG_STATUS <<_ACEOF
7680 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
7681 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
7684 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
7685 s/^/s,@/; s/!/@,|#_!!_#|/
7688 s/'"$ac_delim"'$/,g/; t
7690 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
7691 ' >>$CONFIG_STATUS <conf$
$subs.
sed
7692 rm -f conf$
$subs.
sed
7693 cat >>$CONFIG_STATUS <<_ACEOF
7700 # VPATH may cause trouble with some makes, so we remove $(srcdir),
7701 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
7702 # trailing colons and then remove the whole line if VPATH becomes empty
7703 # (actually we leave an empty line to preserve line numbers).
7704 if test "x$srcdir" = x.
; then
7705 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
7709 s/^\([^=]*=[ ]*\):*/\1/
7715 cat >>$CONFIG_STATUS <<\_ACEOF
7716 fi # test -n "$CONFIG_FILES"
7719 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS :C
$CONFIG_COMMANDS
7722 :[FHLC
]) ac_mode
=$ac_tag; continue;;
7724 case $ac_mode$ac_tag in
7726 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
7727 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
7728 { (exit 1); exit 1; }; };;
7729 :[FH
]-) ac_tag
=-:-;;
7730 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
7747 -) ac_f
="$tmp/stdin";;
7748 *) # Look for the file first in the build tree, then in the source tree
7749 # (if the path is not absolute). The absolute path cannot be DOS-style,
7750 # because $ac_f cannot contain `:'.
7754 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
7756 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
7757 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
7758 { (exit 1); exit 1; }; };;
7760 ac_file_inputs
="$ac_file_inputs $ac_f"
7763 # Let's still pretend it is `configure' which instantiates (i.e., don't
7764 # use $as_me), people would be surprised to read:
7765 # /* config.h. Generated by config.status. */
7766 configure_input
="Generated from "`IFS=:
7767 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
7768 if test x
"$ac_file" != x-
; then
7769 configure_input
="$ac_file. $configure_input"
7770 { echo "$as_me:$LINENO: creating $ac_file" >&5
7771 echo "$as_me: creating $ac_file" >&6;}
7775 *:-:* |
*:-) cat >"$tmp/stdin";;
7780 ac_dir
=`$as_dirname -- "$ac_file" ||
7781 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7782 X"$ac_file" : 'X\(//\)[^/]' \| \
7783 X"$ac_file" : 'X\(//\)$' \| \
7784 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
7786 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7805 -*) as_dir
=.
/$as_dir;;
7807 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
7811 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
7812 *) as_qdir
=$as_dir;;
7814 as_dirs
="'$as_qdir' $as_dirs"
7815 as_dir
=`$as_dirname -- "$as_dir" ||
7816 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7817 X"$as_dir" : 'X\(//\)[^/]' \| \
7818 X"$as_dir" : 'X\(//\)$' \| \
7819 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7821 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7838 test -d "$as_dir" && break
7840 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
7841 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
7842 echo "$as_me: error: cannot create directory $as_dir" >&2;}
7843 { (exit 1); exit 1; }; }; }
7847 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
7849 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7850 # A ".." for each directory in $ac_dir_suffix.
7851 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
7852 case $ac_top_builddir_sub in
7853 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
7854 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
7857 ac_abs_top_builddir
=$ac_pwd
7858 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
7859 # for backward compatibility:
7860 ac_top_builddir
=$ac_top_build_prefix
7863 .
) # We are building in place.
7865 ac_top_srcdir
=$ac_top_builddir_sub
7866 ac_abs_top_srcdir
=$ac_pwd ;;
7867 [\\/]* | ?
:[\\/]* ) # Absolute name.
7868 ac_srcdir
=$srcdir$ac_dir_suffix;
7869 ac_top_srcdir
=$srcdir
7870 ac_abs_top_srcdir
=$srcdir ;;
7872 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
7873 ac_top_srcdir
=$ac_top_build_prefix$srcdir
7874 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
7876 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
7886 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
7887 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
7891 cat >>$CONFIG_STATUS <<\_ACEOF
7892 # If the template does not know about datarootdir, expand it.
7893 # FIXME: This hack should be removed a few years after 2.60.
7894 ac_datarootdir_hack
=; ac_datarootdir_seen
=
7896 case `sed -n '/datarootdir/ {
7905 ' $ac_file_inputs` in
7906 *datarootdir
*) ac_datarootdir_seen
=yes;;
7907 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
7908 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
7909 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
7911 cat >>$CONFIG_STATUS <<_ACEOF
7912 ac_datarootdir_hack='
7913 s&@datadir@&$datadir&g
7914 s&@docdir@&$docdir&g
7915 s&@infodir@&$infodir&g
7916 s&@localedir@&$localedir&g
7917 s&@mandir@&$mandir&g
7918 s&\\\${datarootdir}&$datarootdir&g' ;;
7922 # Neutralize VPATH when `$srcdir' = `.'.
7923 # Shell code in configure.ac might set extrasub.
7924 # FIXME: do we really want to maintain this feature?
7925 cat >>$CONFIG_STATUS <<_ACEOF
7929 cat >>$CONFIG_STATUS <<\_ACEOF
7931 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
7932 s
&@configure_input@
&$configure_input&;t t
7933 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
7934 s
&@srcdir@
&$ac_srcdir&;t t
7935 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
7936 s
&@top_srcdir@
&$ac_top_srcdir&;t t
7937 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
7938 s
&@builddir@
&$ac_builddir&;t t
7939 s
&@abs_builddir@
&$ac_abs_builddir&;t t
7940 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
7941 s
&@INSTALL@
&$ac_INSTALL&;t t
7942 $ac_datarootdir_hack
7943 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" | sed -f "$tmp/subs-2.
sed" >$tmp/out
7945 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
7946 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
7947 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
7948 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
7949 which seems to be undefined. Please make sure it is defined." >&5
7950 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
7951 which seems to be undefined. Please make sure it is defined." >&2;}
7955 -) cat "$tmp/out"; rm -f "$tmp/out";;
7956 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
7965 # Transform confdefs.h into a sed script `conftest.defines', that
7966 # substitutes the proper values into config.h.in to produce config.h.
7967 rm -f conftest.defines conftest.
tail
7968 # First, append a space to every undef/define line, to ease matching.
7969 echo 's/$/ /' >conftest.defines
7970 # Then, protect against being on the right side of a sed subst, or in
7971 # an unquoted here document, in config.status. If some macros were
7972 # called several times there might be several #defines for the same
7973 # symbol, which is useless. But do not sort them, since the last
7974 # AC_DEFINE must be honored.
7975 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
7976 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
7977 # NAME is the cpp macro being defined, VALUE is the value it is being given.
7978 # PARAMS is the parameter list in the macro definition--in most cases, it's
7979 # just an empty string.
7980 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
7981 ac_dB
='\\)[ (].*,\\1define\\2'
7989 s/^[ ]*#[ ]*define[ ][ ]*//
7994 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
7995 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
7996 ' >>conftest.defines
7998 # Remove the space that was appended to ease matching.
7999 # Then replace #undef with comments. This is necessary, for
8000 # example, in the case of _POSIX_SOURCE, which is predefined and required
8001 # on some systems where configure will not decide to define it.
8002 # (The regexp can be short, since the line contains either #define or #undef.)
8004 s,^[ #]*u.*,/* & */,' >>conftest.defines
8006 # Break up conftest.defines:
8009 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
8010 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
8011 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
8013 ac_in
='$ac_file_inputs'
8014 ac_out
='"$tmp/out1"'
8015 ac_nxt
='"$tmp/out2"'
8019 # Write a here document:
8020 cat >>$CONFIG_STATUS <<_ACEOF
8021 # First, check the format of the line:
8022 cat >"\$tmp/defines.sed" <<\\CEOF
8023 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
8024 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
8028 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
8030 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
8031 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
8032 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
8033 grep . conftest.
tail >/dev
/null ||
break
8034 rm -f conftest.defines
8035 mv conftest.
tail conftest.defines
8037 rm -f conftest.defines conftest.
tail
8039 echo "ac_result=$ac_in" >>$CONFIG_STATUS
8040 cat >>$CONFIG_STATUS <<\_ACEOF
8041 if test x
"$ac_file" != x-
; then
8042 echo "/* $configure_input */" >"$tmp/config.h"
8043 cat "$ac_result" >>"$tmp/config.h"
8044 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
8045 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
8046 echo "$as_me: $ac_file is unchanged" >&6;}
8049 mv "$tmp/config.h" $ac_file
8052 echo "/* $configure_input */"
8056 # Compute $ac_file's index in $config_headers.
8058 for _am_header
in $config_headers :; do
8060 $ac_file |
$ac_file:* )
8063 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
8066 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
8067 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8068 X$ac_file : 'X\(//\)[^/]' \| \
8069 X$ac_file : 'X\(//\)$' \| \
8070 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
8072 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8088 s/.*/./; q'`/stamp-h
$_am_stamp_count
8091 :C
) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
8092 echo "$as_me: executing $ac_file commands" >&6;}
8097 case $ac_file$ac_mode in
8098 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
for mf
in $CONFIG_FILES; do
8099 # Strip MF so we end up with the name of the file.
8100 mf
=`echo "$mf" | sed -e 's/:.*$//'`
8101 # Check whether this is an Automake generated Makefile or not.
8102 # We used to match only the files named `Makefile.in', but
8103 # some people rename them; so instead we look at the file content.
8104 # Grep'ing the first line is not enough: some people post-process
8105 # each Makefile.in and add a new line on top of each file to say so.
8106 # So let's grep whole file.
8107 if grep '^#.*generated by automake' $mf > /dev
/null
2>&1; then
8108 dirpart
=`$as_dirname -- "$mf" ||
8109 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8110 X"$mf" : 'X\(//\)[^/]' \| \
8111 X"$mf" : 'X\(//\)$' \| \
8112 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
8114 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8134 # Extract the definition of DEPDIR, am__include, and am__quote
8135 # from the Makefile without running `make'.
8136 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
8137 test -z "$DEPDIR" && continue
8138 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
8139 test -z "am__include" && continue
8140 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
8141 # When using ansi2knr, U may be empty or an underscore; expand it
8142 U
=`sed -n 's/^U = //p' < "$mf"`
8143 # Find all dependency output files, they are included files with
8144 # $(DEPDIR) in their names. We invoke sed twice because it is the
8145 # simplest approach to changing $(DEPDIR) to its actual value in the
8147 for file in `sed -n "
8148 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
8149 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
8150 # Make sure the directory exists.
8151 test -f "$dirpart/$file" && continue
8152 fdir
=`$as_dirname -- "$file" ||
8153 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8154 X"$file" : 'X\(//\)[^/]' \| \
8155 X"$file" : 'X\(//\)$' \| \
8156 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
8158 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8175 { as_dir
=$dirpart/$fdir
8177 -*) as_dir
=.
/$as_dir;;
8179 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
8183 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
8184 *) as_qdir
=$as_dir;;
8186 as_dirs
="'$as_qdir' $as_dirs"
8187 as_dir
=`$as_dirname -- "$as_dir" ||
8188 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8189 X"$as_dir" : 'X\(//\)[^/]' \| \
8190 X"$as_dir" : 'X\(//\)$' \| \
8191 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8193 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8210 test -d "$as_dir" && break
8212 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
8213 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
8214 echo "$as_me: error: cannot create directory $as_dir" >&2;}
8215 { (exit 1); exit 1; }; }; }
8216 # echo "creating $dirpart/$file"
8217 echo '# dummy' > "$dirpart/$file"
8226 { (exit 0); exit 0; }
8228 chmod +x
$CONFIG_STATUS
8229 ac_clean_files
=$ac_clean_files_save
8232 # configure is writing to config.log, and then calls config.status.
8233 # config.status does its own redirection, appending to config.log.
8234 # Unfortunately, on DOS this fails, as config.log is still kept open
8235 # by configure, so config.status won't be able to write to it; its
8236 # output is simply discarded. So we exec the FD to /dev/null,
8237 # effectively closing config.log, so it can be properly (re)opened and
8238 # appended to by config.status. When coming back to configure, we
8239 # need to make the FD available again.
8240 if test "$no_create" != yes; then
8242 ac_config_status_args
=
8243 test "$silent" = yes &&
8244 ac_config_status_args
="$ac_config_status_args --quiet"
8246 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
8248 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8249 # would make configure fail if this is the last instruction.
8250 $ac_cs_success ||
{ (exit 1); exit 1; }