# Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.59 for GRUB 0.97.
#
# Report bugs to <bug-grub@gnu.org>.
#
# Copyright (C) 2003 Free Software Foundation, Inc.
# This configure script is free software; the Free Software Foundation
# gives unlimited permission to copy, distribute and modify it.
## --------------------- ##
## M4sh Initialization. ##
## --------------------- ##
# Be Bourne compatible
NULLCMD=:
# is contrary to our usage. Disable this feature.
alias -g '${1+"$@"}'='"$@"'
set -o posix
fi
# Support unset when possible.
as_unset=unset
else
as_unset=false
fi
# Work around bugs in pre-3.0 UWIN ksh.
PS1='$ '
PS2='> '
PS4='+ '
# NLS nuisances.
do
else
fi
done
# Required to use basename.
else
as_expr=false
fi
else
as_basename=false
fi
# Name of the executable.
X"$0" : 'X\(//\)$' \| \
X"$0" : 'X\(/\)$' \| \
echo X/"$0" |
sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
/^X\/\(\/\/\)$/{ s//\1/; q; }
/^X\/\(\/\).*/{ s//\1/; q; }
s/.*/./; q'`
# PATH needs CR, and LINENO needs CR and PATH.
# Avoid depending upon Character Ranges.
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
as_cr_digits='0123456789'
# The user is always right.
if test "${PATH_SEPARATOR+set}" != set; then
PATH_SEPARATOR=';'
else
fi
fi
test "x$as_lineno_1" != "x$as_lineno_2" &&
# Find who we are. Look in the path if we contain no path at all
# relative or not.
case $0 in
*[\\/]* ) as_myself=$0 ;;
do
done
;;
esac
# We did not find ourselves, most probably we were run as `sh COMMAND'
# in which case we are not to be found in the path.
as_myself=$0
fi
{ (exit 1); exit 1; }; }
fi
case $CONFIG_SHELL in
'')
do
/*)
as_lineno_1=$LINENO
as_lineno_2=$LINENO
test "x$as_lineno_1" != "x$as_lineno_2" &&
export CONFIG_SHELL
fi;;
esac
done
done
;;
esac
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
# uniformly replaced by the line number. The first 'sed' inserts a
# line-number line before each line; the second 'sed' does the real
# work. The second script uses 'N' to pair each line-number line
# with the numbered line, and appends trailing '-' during
# substitution so that $LINENO is not a special case at line end.
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
# second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
sed '
N
s,$,-,
: loop
t loop
s,-$,,
{ (exit 1); exit 1; }; }
# Don't try to exec as it changes $[0], causing all sort of problems
# (the dirname of $[0] is not the place where we might find the
# original and so on. Autoconf is especially sensible to this).
# Exit status is that of the last command.
exit
}
esac
else
as_expr=false
fi
# We could just check for DJGPP; but this test a) works b) is more generic
# and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
# Don't use ln at all; we don't have any links
as_ln_s='cp -p'
else
as_ln_s='ln -s'
fi
else
as_ln_s='cp -p'
fi
else
test -d ./-p && rmdir ./-p
as_mkdir_p=false
fi
as_executable_p="test -f"
# Sed expression to map a string onto a valid CPP name.
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
# Sed expression to map a string onto a valid variable name.
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
# IFS
# We need space, tab and new line, in precisely that order.
as_nl='
'
# CDPATH.
# Name of the host.
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
# so uname gets run too.
exec 6>&1
#
# Initializations.
#
# Maximum number of lines to put in a shell here document.
# This variable seems obsolete. It should probably be removed, and
# only ac_max_sed_lines should be used.
: ${ac_max_here_lines=38}
# Identity of this package.
PACKAGE_NAME='GRUB'
PACKAGE_TARNAME='grub'
PACKAGE_VERSION='0.97'
PACKAGE_STRING='GRUB 0.97'
PACKAGE_BUGREPORT='bug-grub@gnu.org'
# Factoring default headers for most tests.
#include <stdio.h>
#if HAVE_SYS_TYPES_H
#endif
#if HAVE_SYS_STAT_H
#endif
#if STDC_HEADERS
# include <stdlib.h>
# include <stddef.h>
#else
# if HAVE_STDLIB_H
# include <stdlib.h>
# endif
#endif
#if HAVE_STRING_H
# if !STDC_HEADERS && HAVE_MEMORY_H
# include <memory.h>
# endif
# include <string.h>
#endif
#if HAVE_STRINGS_H
# include <strings.h>
#endif
#if HAVE_INTTYPES_H
# include <inttypes.h>
#else
# if HAVE_STDINT_H
# include <stdint.h>
# endif
#endif
#if HAVE_UNISTD_H
# include <unistd.h>
#endif"
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar build build_cpu build_vendor build_os host host_cpu host_vendor host_os MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT PERL CC ac_ct_CC CFLAGS LDFLAGS CPPFLAGS EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CCAS RANLIB ac_ct_RANLIB STAGE1_CFLAGS STAGE2_CFLAGS GRUB_CFLAGS OBJCOPY ac_ct_OBJCOPY GRUB_LIBS CPP EGREP NETBOOT_SUPPORT_TRUE NETBOOT_SUPPORT_FALSE DISKLESS_SUPPORT_TRUE DISKLESS_SUPPORT_FALSE HERCULES_SUPPORT_TRUE HERCULES_SUPPORT_FALSE SERIAL_SUPPORT_TRUE SERIAL_SUPPORT_FALSE SERIAL_SPEED_SIMULATION_TRUE SERIAL_SPEED_SIMULATION_FALSE BUILD_EXAMPLE_KERNEL_TRUE BUILD_EXAMPLE_KERNEL_FALSE FSYS_CFLAGS NET_CFLAGS NET_EXTRAFLAGS NETBOOT_DRIVERS CCASFLAGS LIBOBJS LTLIBOBJS'
# Initialize some variables set by options.
ac_init_version=false
# The variables have the same names as the options, with
# dashes changed to underlines.
program_transform_name=s,x,x,
site=
# Installation directory options.
# These are left unexpanded so users can "make install exec_prefix=/foo"
# and all the variables that are supposed to be based on exec_prefix
# by default will actually change.
# Use braces instead of parens because sh, perl, etc. also accept them.
bindir='${exec_prefix}/bin'
sbindir='${exec_prefix}/sbin'
libexecdir='${exec_prefix}/libexec'
datadir='${prefix}/share'
sysconfdir='${prefix}/etc'
sharedstatedir='${prefix}/com'
localstatedir='${prefix}/var'
libdir='${exec_prefix}/lib'
includedir='${prefix}/include'
infodir='${prefix}/info'
mandir='${prefix}/man'
for ac_option
do
# If the previous option needs an argument, assign it.
if test -n "$ac_prev"; then
eval "$ac_prev=\$ac_option"
continue
fi
# Accept the important Cygnus configure options, so we can diagnose typos.
case $ac_option in
bindir=$ac_optarg ;;
| --da=*)
# Reject names that are not valid shell variable names.
{ (exit 1); exit 1; }; }
eval "enable_$ac_feature=no" ;;
# Reject names that are not valid shell variable names.
{ (exit 1); exit 1; }; }
case $ac_option in
esac
eval "enable_$ac_feature='$ac_optarg'" ;;
# Obsolete; use --with-gas.
ac_init_help=long ;;
libdir=$ac_optarg ;;
mandir=$ac_optarg ;;
# Obsolete; use --without-fp.
no_recursion=yes ;;
prefix=$ac_optarg ;;
site=$ac_optarg ;;
srcdir=$ac_optarg ;;
ac_init_version=: ;;
# Reject names that are not valid shell variable names.
{ (exit 1); exit 1; }; }
case $ac_option in
esac
eval "with_$ac_package='$ac_optarg'" ;;
# Reject names that are not valid shell variable names.
{ (exit 1); exit 1; }; }
eval "with_$ac_package=no" ;;
--x)
# Obsolete; use --with-x.
-*) { echo "$as_me: error: unrecognized option: $ac_option
Try \`$0 --help' for more information." >&2
{ (exit 1); exit 1; }; }
;;
*=*)
# Reject names that are not valid shell variable names.
{ (exit 1); exit 1; }; }
eval "$ac_envvar='$ac_optarg'"
export $ac_envvar ;;
*)
# FIXME: should be removed in autoconf 3.0.
echo "$as_me: WARNING: you should use --build, --host, --target" >&2
echo "$as_me: WARNING: invalid host type: $ac_option" >&2
;;
esac
done
if test -n "$ac_prev"; then
{ (exit 1); exit 1; }; }
fi
# Be sure to have absolute paths.
do
[\\/$]* | ?:[\\/]* | NONE | '' ) ;;
{ (exit 1); exit 1; }; };;
esac
done
# Be sure to have absolute paths.
do
[\\/$]* | ?:[\\/]* ) ;;
{ (exit 1); exit 1; }; };;
esac
done
# There might be people who depend on the old broken behavior: `$host'
# used to hold the argument of --host etc.
# FIXME: To remove some day.
# FIXME: To remove some day.
if test "x$host_alias" != x; then
if test "x$build_alias" = x; then
echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
If a cross compiler is detected then cross compile mode will be used." >&2
elif test "x$build_alias" != "x$host_alias"; then
fi
fi
# Find the source files, if location was not specified.
if test -z "$srcdir"; then
# Try the directory containing this script, then its parent.
X"$0" : 'X\(//\)[^/]' \| \
X"$0" : 'X\(//\)$' \| \
X"$0" : 'X\(/\)' \| \
echo X"$0" |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
/^X\(\/\/\)$/{ s//\1/; q; }
/^X\(\/\).*/{ s//\1/; q; }
s/.*/./; q'`
if test ! -r $srcdir/$ac_unique_file; then
srcdir=..
fi
else
fi
if test ! -r $srcdir/$ac_unique_file; then
if test "$ac_srcdir_defaulted" = yes; then
{ (exit 1); exit 1; }; }
else
{ (exit 1); exit 1; }; }
fi
fi
{ (exit 1); exit 1; }; }
ac_env_host_alias_set=${host_alias+set}
ac_env_CC_set=${CC+set}
ac_cv_env_CC_set=${CC+set}
ac_env_CFLAGS_set=${CFLAGS+set}
ac_cv_env_CFLAGS_set=${CFLAGS+set}
ac_env_LDFLAGS_set=${LDFLAGS+set}
ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
ac_env_CPPFLAGS_set=${CPPFLAGS+set}
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
ac_env_CPP_set=${CPP+set}
ac_cv_env_CPP_set=${CPP+set}
#
# Report the --help message.
#
if test "$ac_init_help" = "long"; then
# Omit some internal or obsolete options to make the list less imposing.
cat <<_ACEOF
\`configure' configures GRUB 0.97 to adapt to many kinds of systems.
Usage: $0 [OPTION]... [VAR=VALUE]...
To assign environment variables (e.g., CC, CFLAGS...), specify them as
VAR=VALUE. See below for descriptions of some of the useful variables.
Defaults for the options are specified in brackets.
Configuration:
-h, --help display this help and exit
--help=short display options specific to this package
--help=recursive display the short help of all the included packages
-V, --version display version information and exit
-q, --quiet, --silent do not print \`checking...' messages
--cache-file=FILE cache test results in FILE [disabled]
-C, --config-cache alias for \`--cache-file=config.cache'
-n, --no-create do not create output files
--srcdir=DIR find the sources in DIR [configure dir or \`..']
_ACEOF
cat <<_ACEOF
Installation directories:
--prefix=PREFIX install architecture-independent files in PREFIX
[$ac_default_prefix]
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
[PREFIX]
By default, \`make install' will install all the files in
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
for instance \`--prefix=\$HOME'.
For better control, use the options below.
Fine tuning of the installation directories:
--bindir=DIR user executables [EPREFIX/bin]
--sbindir=DIR system admin executables [EPREFIX/sbin]
--libexecdir=DIR program executables [EPREFIX/libexec]
--datadir=DIR read-only architecture-independent data [PREFIX/share]
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
--libdir=DIR object code libraries [EPREFIX/lib]
--includedir=DIR C header files [PREFIX/include]
--oldincludedir=DIR C header files for non-gcc [/usr/include]
--infodir=DIR info documentation [PREFIX/info]
--mandir=DIR man documentation [PREFIX/man]
_ACEOF
fi
if test -n "$ac_init_help"; then
case $ac_init_help in
esac
don't pass Linux mem= option automatically
Optional Packages:
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
--with-binutils=DIR search the directory DIR to find binutils
--without-curses do not use curses
Some influential environment variables:
CC C compiler command
CFLAGS C compiler flags
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
nonstandard directory <lib dir>
CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
headers in a nonstandard directory <include dir>
CPP C preprocessor
fi
if test "$ac_init_help" = "recursive"; then
# If there are subdirs, report their specific --help.
ac_popdir=`pwd`
test -d $ac_dir || continue
if test "$ac_dir" != .; then
# A "../" for each directory in $ac_dir_suffix.
else
fi
.) # No --srcdir option. We are building in place.
if test -z "$ac_top_builddir"; then
else
fi ;;
[\\/]* | ?:[\\/]* ) # Absolute path.
*) # Relative path.
esac
# Do not use `cd foo && pwd` to compute absolute paths, because
# the directories may not exist.
case `pwd` in
.) ac_abs_builddir="$ac_dir";;
*)
.) ac_abs_builddir=`pwd`;;
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
esac;;
esac
case $ac_abs_builddir in
.) ac_abs_top_builddir=${ac_top_builddir}.;;
*)
case ${ac_top_builddir}. in
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
esac;;
esac
case $ac_abs_builddir in
.) ac_abs_srcdir=$ac_srcdir;;
*)
case $ac_srcdir in
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
esac;;
esac
case $ac_abs_builddir in
*)
case $ac_top_srcdir in
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
esac;;
esac
cd $ac_dir
# Check for guested configure; otherwise get Cygnus style configure.
if test -f $ac_srcdir/configure.gnu; then
echo
elif test -f $ac_srcdir/configure; then
echo
elif test -f $ac_srcdir/configure.ac ||
test -f $ac_srcdir/configure.in; then
echo
else
fi
cd $ac_popdir
done
fi
test -n "$ac_init_help" && exit 0
if $ac_init_version; then
exit 0
fi
exec 5>config.log
cat >&5 <<_ACEOF
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by GRUB $as_me 0.97, which was
generated by GNU Autoconf 2.59. Invocation command line was
$ $0 $@
_ACEOF
{
cat <<_ASUNAME
## --------- ##
## Platform. ##
## --------- ##
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
uname -m = `(uname -m) 2>/dev/null || echo unknown`
uname -r = `(uname -r) 2>/dev/null || echo unknown`
uname -s = `(uname -s) 2>/dev/null || echo unknown`
uname -v = `(uname -v) 2>/dev/null || echo unknown`
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
_ASUNAME
do
echo "PATH: $as_dir"
done
} >&5
cat >&5 <<_ACEOF
## ----------- ##
## Core tests. ##
## ----------- ##
_ACEOF
# Keep a trace of the command line.
# Strip out --no-create and --no-recursion so they do not pile up.
# Strip out --silent because we don't want to record it for future runs.
# Also quote any args containing shell meta-characters.
# Make two passes to allow for proper duplicate-argument suppression.
ac_must_keep_next=false
do
for ac_arg
do
continue ;;
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
esac
2)
if test $ac_must_keep_next = true; then
ac_must_keep_next=false # Got value, back to normal.
else
case "$ac_configure_args0 " in
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
esac
;;
-* ) ac_must_keep_next=true ;;
esac
fi
# Get rid of the leading space.
ac_sep=" "
;;
esac
done
done
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
# When interrupted or exit'd, cleanup temporary files, and complete
# config.log. We remove comments because anyway the quotes in there
# would cause problems or look ugly.
# WARNING: Be sure not to use single quotes in there, as some shells,
# such as our DU 5.0 friend, will then `close' the trap.
trap 'exit_status=$?
# Save into config.log some information that might help in debugging.
{
echo
cat <<\_ASBOX
## ---------------- ##
## Cache variables. ##
## ---------------- ##
_ASBOX
echo
# The following way of writing the cache mishandles newlines in values,
{
(set) 2>&1 |
case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
*ac_space=\ *)
sed -n \
"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
;;
*)
sed -n \
;;
esac;
}
echo
cat <<\_ASBOX
## ----------------- ##
## Output variables. ##
## ----------------- ##
_ASBOX
echo
for ac_var in $ac_subst_vars
do
eval ac_val=$`echo $ac_var`
done | sort
echo
cat <<\_ASBOX
## ------------- ##
## Output files. ##
## ------------- ##
_ASBOX
echo
for ac_var in $ac_subst_files
do
eval ac_val=$`echo $ac_var`
done | sort
echo
fi
if test -s confdefs.h; then
cat <<\_ASBOX
## ----------- ##
## confdefs.h. ##
## ----------- ##
_ASBOX
echo
sed "/^$/d" confdefs.h | sort
echo
fi
} >&5
rm -f core *.core &&
rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
exit $exit_status
' 0
for ac_signal in 1 2 13 15; do
trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
done
ac_signal=0
# confdefs.h avoids OS command line length limits that DEFS can exceed.
rm -rf conftest* confdefs.h
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
echo >confdefs.h
# Predefined preprocessor variables.
cat >>confdefs.h <<_ACEOF
_ACEOF
cat >>confdefs.h <<_ACEOF
_ACEOF
cat >>confdefs.h <<_ACEOF
_ACEOF
cat >>confdefs.h <<_ACEOF
_ACEOF
cat >>confdefs.h <<_ACEOF
_ACEOF
# Let the site file select an alternate cache file if it wants to.
# Prefer explicitly selected file to automatically selected ones.
else
fi
fi
for ac_site_file in $CONFIG_SITE; do
fi
done
# files actually), so we avoid doing that.
case $cache_file in
[\\/]* | ?:[\\/]* ) . $cache_file;;
*) . ./$cache_file;;
esac
fi
else
fi
# Check that the precious variables saved in the cache have kept the same
# value.
ac_cache_corrupted=false
for ac_var in `(set) 2>&1 |
eval ac_old_set=\$ac_cv_env_${ac_var}_set
eval ac_new_set=\$ac_env_${ac_var}_set
case $ac_old_set,$ac_new_set in
set,)
ac_cache_corrupted=: ;;
,set)
ac_cache_corrupted=: ;;
,);;
*)
ac_cache_corrupted=:
fi;;
esac
# Pass precious variables to config.status.
case $ac_new_val in
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
*) ac_arg=$ac_var=$ac_new_val ;;
esac
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
esac
fi
done
if $ac_cache_corrupted; then
{ (exit 1); exit 1; }; }
fi
ac_ext=c
ac_compiler_gnu=$ac_cv_c_compiler_gnu
am__api_version="1.9"
ac_aux_dir=
if test -f $ac_dir/install-sh; then
ac_aux_dir=$ac_dir
break
elif test -f $ac_dir/install.sh; then
ac_aux_dir=$ac_dir
break
elif test -f $ac_dir/shtool; then
ac_aux_dir=$ac_dir
break
fi
done
{ { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
{ (exit 1); exit 1; }; }
fi
# Find a good install program. We prefer a C program (faster),
# so one script is as good as another. But avoid the broken or
# incompatible versions:
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
# OS/2's system install, which has a completely different semantic
# ./install, which can be erroneously created by make from ./install.sh.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
IFS=$as_save_IFS
# Account for people who put trailing slashes in PATH elements.
case $as_dir/ in
./ | .// | /cC/* | \
?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
*)
# OSF1 and SCO ODT 3.0 have their own names for install.
# Don't use installbsd from OSF since it installs stuff as root
# by default.
for ac_prog in ginstall scoinst install; do
for ac_exec_ext in '' $ac_executable_extensions; do
if test $ac_prog = install &&
# AIX install. It has an incompatible calling convention.
:
elif test $ac_prog = install &&
# program-specific install script used by HP pwplus--don't use.
:
else
break 3
fi
fi
done
done
;;
esac
done
fi
INSTALL=$ac_cv_path_install
else
# As a last resort, use the slow shell script. We don't cache a
# path for INSTALL within a source directory, because that will
# break other packages using the cache if that directory is
# removed, or if the path is relative.
INSTALL=$ac_install_sh
fi
fi
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
# It thinks the first close brace ends the variable substitution.
# Just in case
sleep 1
echo timestamp > conftest.file
# arguments. Must try -L first in case configure is actually a
# symlink; some systems play weird games with the mod time of symlinks
# (eg FreeBSD returns the mod time of the symlink's containing
# directory).
if (
if test "$*" = "X"; then
# -L didn't work.
set X `ls -t $srcdir/configure conftest.file`
fi
rm -f conftest.file
# If neither matched, then we have a broken ls. This can happen
# if, for instance, CONFIG_SHELL is bash and it inherits a
# broken ls alias from the environment. This has actually
# happened. Such a system could not be considered "sane".
alias in your environment" >&5
echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
alias in your environment" >&2;}
{ (exit 1); exit 1; }; }
fi
)
then
# Ok.
:
else
Check your system clock" >&5
echo "$as_me: error: newly created file is older than distributed files!
Check your system clock" >&2;}
{ (exit 1); exit 1; }; }
fi
echo "${ECHO_T}yes" >&6
# Use a double $ so make ignores it.
# Double any \ or $. echo might interpret backslashes.
# By default was `s,x,x', remove it if useless.
cat <<\_ACEOF >conftest.sed
s/[\\$]/&&/g;s/;s,x,x,$//
# expand $ac_aux_dir to an absolute path
# Use eval to expand $SHELL
am_missing_run="$MISSING --run "
else
fi
# We used to keeping the `.' as first argument, in order to
# allow $(mkdir_p) to be used without argument. As in
# $(mkdir_p) $(somedir)
# where $(somedir) is conditionally defined. However this is wrong
# for two reasons:
# 1. if the package is installed by a user who cannot write `.'
# make install will fail,
# 2. the above comment should most certainly read
# $(mkdir_p) $(DESTDIR)$(somedir)
# so it does not work when $(somedir) is undefined and
# $(DESTDIR) is not.
# To support the latter case, we have to write
# test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
# so the `.' trick is pointless.
mkdir_p='mkdir -p --'
else
# On NextStep and OpenStep, the `mkdir' command does not
# recognize any option. It will interpret all options as
# directories to create, and then abort because `.' already
# exists.
do
test -d $d && rmdir $d
done
# $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
mkdir_p='$(mkinstalldirs)'
else
mkdir_p='$(install_sh) -d'
fi
fi
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
if test "${ac_cv_prog_AWK+set}" = set; then
else
else
do
break 2
fi
done
done
fi
fi
else
echo "${ECHO_T}no" >&6
fi
done
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
else
cat >conftest.make <<\_ACEOF
all:
@echo 'ac_maketemp="$(MAKE)"'
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
eval ac_cv_prog_make_${ac_make}_set=yes
else
eval ac_cv_prog_make_${ac_make}_set=no
fi
rm -f conftest.make
fi
echo "${ECHO_T}yes" >&6
else
echo "${ECHO_T}no" >&6
SET_MAKE="MAKE=${MAKE-make}"
fi
if test -d .tst; then
else
fi
# test to see if srcdir already configured
test -f $srcdir/config.status; then
{ { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
{ (exit 1); exit 1; }; }
fi
# test whether we have cygpath
CYGPATH_W='cygpath -w'
else
CYGPATH_W=echo
fi
fi
# Define the identity of the package.
PACKAGE='grub'
VERSION='0.97'
cat >>confdefs.h <<_ACEOF
#define PACKAGE "$PACKAGE"
_ACEOF
cat >>confdefs.h <<_ACEOF
#define VERSION "$VERSION"
_ACEOF
# Some tools Automake needs.
# Installed binaries are usually stripped using `strip' when the user
# run `make install-strip'. However `strip' might not be the right
# tool to use in cross-compilation environments, therefore Automake
# will honor the `STRIP' environment variable to overrule this program.
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
set dummy ${ac_tool_prefix}strip; ac_word=$2
if test "${ac_cv_prog_STRIP+set}" = set; then
else
else
do
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
break 2
fi
done
done
fi
fi
else
echo "${ECHO_T}no" >&6
fi
fi
# Extract the first word of "strip", so it can be a program name with args.
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
else
else
do
ac_cv_prog_ac_ct_STRIP="strip"
break 2
fi
done
done
fi
fi
else
echo "${ECHO_T}no" >&6
fi
else
fi
fi
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
# We need awk for the "check" target. The system "awk" is bad on
# some platforms.
# Always define AMTAR for backward compatibility.
# Make sure we can run config.sub.
$ac_config_sub sun4 >/dev/null 2>&1 ||
{ (exit 1); exit 1; }; }
if test "${ac_cv_build+set}" = set; then
else
{ (exit 1); exit 1; }; }
{ (exit 1); exit 1; }; }
fi
if test "${ac_cv_host+set}" = set; then
else
{ (exit 1); exit 1; }; }
fi
{ (exit 1); exit 1; }; } ;;
esac
#
# Options
#
# Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
if test "${enable_maintainer_mode+set}" = set; then
else
fi;
if test $USE_MAINTAINER_MODE = yes; then
else
fi
# Extract the first word of "perl", so it can be a program name with args.
if test "${ac_cv_path_PERL+set}" = set; then
else
[\\/]* | ?:[\\/]*)
;;
*)
do
break 2
fi
done
done
;;
esac
fi
else
echo "${ECHO_T}no" >&6
fi
{ (exit 1); exit 1; }; }
fi
fi
# This should be checked before AC_PROG_CC
fi
fi
#
# Programs
#
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
set dummy ${ac_tool_prefix}gcc; ac_word=$2
if test "${ac_cv_prog_CC+set}" = set; then
else
else
do
ac_cv_prog_CC="${ac_tool_prefix}gcc"
break 2
fi
done
done
fi
fi
else
echo "${ECHO_T}no" >&6
fi
fi
# Extract the first word of "gcc", so it can be a program name with args.
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
else
else
do
ac_cv_prog_ac_ct_CC="gcc"
break 2
fi
done
done
fi
fi
else
echo "${ECHO_T}no" >&6
fi
else
fi
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
set dummy ${ac_tool_prefix}gcc; ac_word=$2
if test "${ac_cv_prog_CC+set}" = set; then
else
else
do
ac_cv_prog_CC="${ac_tool_prefix}gcc"
break 2
fi
done
done
fi
fi
else
echo "${ECHO_T}no" >&6
fi
fi
# Extract the first word of "gcc", so it can be a program name with args.
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
else
else
do
ac_cv_prog_ac_ct_CC="gcc"
break 2
fi
done
done
fi
fi
else
echo "${ECHO_T}no" >&6
fi
else
fi
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
set dummy ${ac_tool_prefix}cc; ac_word=$2
if test "${ac_cv_prog_CC+set}" = set; then
else
else
do
ac_cv_prog_CC="${ac_tool_prefix}cc"
break 2
fi
done
done
fi
fi
else
echo "${ECHO_T}no" >&6
fi
fi
# Extract the first word of "cc", so it can be a program name with args.
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
else
else
do
ac_cv_prog_ac_ct_CC="cc"
break 2
fi
done
done
fi
fi
else
echo "${ECHO_T}no" >&6
fi
else
fi
fi
# Extract the first word of "cc", so it can be a program name with args.
if test "${ac_cv_prog_CC+set}" = set; then
else
else
do
continue
fi
ac_cv_prog_CC="cc"
break 2
fi
done
done
if test $ac_prog_rejected = yes; then
# We found a bogon in the path, so make sure we never use it.
set dummy $ac_cv_prog_CC
shift
if test $# != 0; then
# We chose a different compiler from the bogus one.
# However, it has the same basename, so the bogon will be chosen
# first if we set CC to just the basename; use the full file name.
shift
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
fi
fi
fi
fi
else
echo "${ECHO_T}no" >&6
fi
fi
do
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
if test "${ac_cv_prog_CC+set}" = set; then
else
else
do
break 2
fi
done
done
fi
fi
else
echo "${ECHO_T}no" >&6
fi
done
fi
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
else
else
do
break 2
fi
done
done
fi
fi
else
echo "${ECHO_T}no" >&6
fi
done
fi
fi
See \`config.log' for more details." >&5
echo "$as_me: error: no acceptable C compiler found in \$PATH
See \`config.log' for more details." >&2;}
{ (exit 1); exit 1; }; }
# Provide some information about the compiler.
"checking for C compiler version" >&5
ac_status=$?
ac_status=$?
ac_status=$?
/* confdefs.h. */
_ACEOF
/* end confdefs.h. */
int
main ()
{
;
return 0;
}
_ACEOF
# Try to create an executable without -o first, disregard a.out.
# It will help us diagnose broken compilers, and finding out an intuition
# of exeext.
ac_status=$?
# Find the output, starting from the most likely. This scheme is
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
# resort.
# Be careful to initialize this variable, since it used to be cached.
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
# b.out is created by i960 compilers.
do
;;
# This is the source file.
;;
# We found the default executable, but exeext='' is most
# certainly right.
break;;
*.* )
# FIXME: I believe we export ac_cv_exeext for Libtool,
# but it would be cool to find out if it's true. Does anybody
# maintain Libtool? --akim.
export ac_cv_exeext
break;;
* )
break;;
esac
done
else
See \`config.log' for more details." >&5
echo "$as_me: error: C compiler cannot create executables
See \`config.log' for more details." >&2;}
{ (exit 77); exit 77; }; }
fi
# Check the compiler produces executables we can run. If not, either
# the compiler is broken, or we cross compile.
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
# If not cross compiling, check that we can run a simple program.
ac_status=$?
else
else
If you meant to cross compile, use \`--host'.
See \`config.log' for more details." >&5
echo "$as_me: error: cannot run C compiled programs.
If you meant to cross compile, use \`--host'.
See \`config.log' for more details." >&2;}
{ (exit 1); exit 1; }; }
fi
fi
fi
echo "${ECHO_T}yes" >&6
# Check the compiler produces executables we can run. If not, either
# the compiler is broken, or we cross compile.
ac_status=$?
# If both `conftest.exe' and `conftest' are `present' (well, observable)
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
# work properly (i.e., refer to `conftest.exe'), while it won't with
# `rm'.
for ac_file in conftest.exe conftest conftest.*; do
export ac_cv_exeext
break;;
* ) break;;
esac
done
else
See \`config.log' for more details." >&5
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
See \`config.log' for more details." >&2;}
{ (exit 1); exit 1; }; }
fi
if test "${ac_cv_objext+set}" = set; then
else
/* confdefs.h. */
_ACEOF
/* end confdefs.h. */
int
main ()
{
;
return 0;
}
_ACEOF
ac_status=$?
break;;
esac
done
else
See \`config.log' for more details." >&5
echo "$as_me: error: cannot compute suffix of object files: cannot compile
See \`config.log' for more details." >&2;}
{ (exit 1); exit 1; }; }
fi
fi
if test "${ac_cv_c_compiler_gnu+set}" = set; then
else
/* confdefs.h. */
_ACEOF
/* end confdefs.h. */
int
main ()
{
#ifndef __GNUC__
choke me
#endif
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
ac_status=$?
rm -f conftest.er1
cat conftest.err >&5
|| test ! -s conftest.err'
ac_status=$?
ac_status=$?
else
fi
fi
ac_test_CFLAGS=${CFLAGS+set}
CFLAGS="-g"
if test "${ac_cv_prog_cc_g+set}" = set; then
else
/* confdefs.h. */
_ACEOF
/* end confdefs.h. */
int
main ()
{
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
ac_status=$?
rm -f conftest.er1
cat conftest.err >&5
|| test ! -s conftest.err'
ac_status=$?
ac_status=$?
else
fi
fi
elif test $ac_cv_prog_cc_g = yes; then
CFLAGS="-g -O2"
else
CFLAGS="-g"
fi
else
CFLAGS="-O2"
else
fi
fi
if test "${ac_cv_prog_cc_stdc+set}" = set; then
else
/* confdefs.h. */
_ACEOF
/* end confdefs.h. */
#include <stdarg.h>
#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
struct buf { int x; };
FILE * (*rcsopen) (struct buf *, struct stat *, int);
static char *e (p, i)
char **p;
int i;
{
return p[i];
}
static char *f (char * (*g) (char **, int), char **p, ...)
{
char *s;
va_list v;
va_start (v,p);
s = g (p, va_arg (v,int));
va_end (v);
return s;
}
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
function prototypes and stuff, but not '\xHH' hex character constants.
These don't provoke an error unfortunately, instead are silently treated
as 'x'. The following induces an error, until -std1 is added to get
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
array size at least. It's necessary to write '\x00'==0 to get something
that's true only with -std1. */
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
int test (int i, double x);
struct s1 {int (*f) (int a);};
struct s2 {int (*f) (double a);};
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
int argc;
char **argv;
int
main ()
{
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
;
return 0;
}
_ACEOF
# Don't try gcc -ansi; that turns off useful extensions and
# breaks some systems' header files.
# AIX -qlanglvl=ansi
# Ultrix and OSF/1 -std1
# HP-UX 10.20 and later -Ae
# HP-UX older versions -Aa -D_HPUX_SOURCE
# SVR4 -Xc -D__EXTENSIONS__
do
rm -f conftest.$ac_objext
ac_status=$?
rm -f conftest.er1
cat conftest.err >&5
|| test ! -s conftest.err'
ac_status=$?
ac_status=$?
break
else
fi
done
fi
x|xno)
echo "${ECHO_T}none needed" >&6 ;;
*)
esac
# Some people use a C++ compiler to compile C. Since we use `exit',
# in C++ we need to declare it. In case someone uses the same compiler
# for both compiling C and C++ we need to have the C++ compiler decide
# the declaration of exit, since it's the most demanding environment.
#ifndef __cplusplus
choke me
#endif
_ACEOF
rm -f conftest.$ac_objext
ac_status=$?
rm -f conftest.er1
cat conftest.err >&5
|| test ! -s conftest.err'
ac_status=$?
ac_status=$?
for ac_declaration in \
'' \
'extern "C" void std::exit (int) throw (); using std::exit;' \
'extern "C" void std::exit (int); using std::exit;' \
'extern "C" void exit (int) throw ();' \
'extern "C" void exit (int);' \
'void exit (int);'
do
/* confdefs.h. */
_ACEOF
/* end confdefs.h. */
$ac_declaration
#include <stdlib.h>
int
main ()
{
exit (42);
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
ac_status=$?
rm -f conftest.er1
cat conftest.err >&5
|| test ! -s conftest.err'
ac_status=$?
ac_status=$?
:
else
continue
fi
/* confdefs.h. */
_ACEOF
/* end confdefs.h. */
$ac_declaration
int
main ()
{
exit (42);
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
ac_status=$?
rm -f conftest.er1
cat conftest.err >&5
|| test ! -s conftest.err'
ac_status=$?
ac_status=$?
break
else
fi
done
echo $ac_declaration >>confdefs.h
fi
else
fi
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
DEPDIR="${am__leading_dot}deps"
ac_config_commands="$ac_config_commands depfiles"
@echo done
# If we don't find an include directive, just comment out the code.
am__include="#"
# First try GNU make style include.
# We grep out `Entering directory' and `Leaving directory'
# messages which can occur if `w' ends up in MAKEFLAGS.
# In particular we don't look at `^make:' because GNU make might
# be invoked under some other name (usually "gmake"), in which
# case it prints its new name instead of `make'.
fi
# Now try BSD make style include.
am__quote="\""
fi
fi
# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
if test "${enable_dependency_tracking+set}" = set; then
fi;
am_depcomp="$ac_aux_dir/depcomp"
AMDEPBACKSLASH='\'
fi
if test "x$enable_dependency_tracking" != xno; then
AMDEP_TRUE=
AMDEP_FALSE='#'
else
AMDEP_TRUE='#'
fi
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
else
# We make a subdir and do the tests there. Otherwise we can end up
# making bogus files that we don't know about and never remove. For
# instance it was reported that on HP-UX the gcc test will end up
# making a dummy file named `D' -- because `-MD' means `put the output
# in D'.
# Copy depcomp to subdir because otherwise we won't find it if we're
# using a relative directory.
cd conftest.dir
# We will build objects and dependencies in a subdirectory because
# it helps to detect inapplicable dependency modes. For instance
# both Tru64's cc and ICC support -MD to output dependencies as a
# side effect of compilation, but ICC will put the dependencies in
# the current directory while Tru64 will put them in the object
# directory.
mkdir sub
fi
for depmode in $am_compiler_list; do
# Setup a source with many dependencies, because some compilers
# like to wrap large dependency lists on column 80 (with \), and
# we should not choose a depcomp mode which is confused by this.
#
# We need to recreate these files for each test, as the compiler may
# overwrite some of them when testing with obscure command lines.
# This happens at least with the AIX C compiler.
: > sub/conftest.c
for i in 1 2 3 4 5 6; do
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
done
# after this tag, mechanisms are not by side-effect, so they'll
# only be used when explicitly requested
continue
else
break
fi
;;
none) break ;;
esac
# We check with `-c' and `-o' for the sake of the "dashmstdout"
# mode. It turns out that the SunPro C++ compiler does not properly
# handle `-M -o', and we need to detect this.
>/dev/null 2>conftest.err &&
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
# icc doesn't choke on unknown options, it will just issue warnings
# or remarks (even with -Werror). So we grep stderr for any message
# that says an option was ignored or not supported.
# When given -MP, icc 7.0 and 7.1 complain thusly:
# icc: Command line warning: ignoring option '-M'; no argument required
# The diagnosis changed in icc 8.0:
# icc: Command line remark: option '-MP' not supported
break
fi
fi
done
cd ..
else
fi
fi
if
else
fi
# We need this for older versions of Autoconf.
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
else
# We make a subdir and do the tests there. Otherwise we can end up
# making bogus files that we don't know about and never remove. For
# instance it was reported that on HP-UX the gcc test will end up
# making a dummy file named `D' -- because `-MD' means `put the output
# in D'.
# Copy depcomp to subdir because otherwise we won't find it if we're
# using a relative directory.
cd conftest.dir
# We will build objects and dependencies in a subdirectory because
# it helps to detect inapplicable dependency modes. For instance
# both Tru64's cc and ICC support -MD to output dependencies as a
# side effect of compilation, but ICC will put the dependencies in
# the current directory while Tru64 will put them in the object
# directory.
mkdir sub
fi
for depmode in $am_compiler_list; do
# Setup a source with many dependencies, because some compilers
# like to wrap large dependency lists on column 80 (with \), and
# we should not choose a depcomp mode which is confused by this.
#
# We need to recreate these files for each test, as the compiler may
# overwrite some of them when testing with obscure command lines.
# This happens at least with the AIX C compiler.
: > sub/conftest.c
for i in 1 2 3 4 5 6; do
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
done
# after this tag, mechanisms are not by side-effect, so they'll
# only be used when explicitly requested
continue
else
break
fi
;;
none) break ;;
esac
# We check with `-c' and `-o' for the sake of the "dashmstdout"
# mode. It turns out that the SunPro C++ compiler does not properly
# handle `-M -o', and we need to detect this.
>/dev/null 2>conftest.err &&
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
# icc doesn't choke on unknown options, it will just issue warnings
# or remarks (even with -Werror). So we grep stderr for any message
# that says an option was ignored or not supported.
# When given -MP, icc 7.0 and 7.1 complain thusly:
# icc: Command line warning: ignoring option '-M'; no argument required
# The diagnosis changed in icc 8.0:
# icc: Command line remark: option '-MP' not supported
break
fi
fi
done
cd ..
else
fi
fi
if
else
fi
# Check whether --with-binutils or --without-binutils was given.
if test "${with_binutils+set}" = set; then
fi;
# Extract the first word of "ranlib", so it can be a program name with args.
if test "${ac_cv_path_RANLIB+set}" = set; then
else
[\\/]* | ?:[\\/]*)
;;
*)
do
break 2
fi
done
done
;;
esac
fi
else
echo "${ECHO_T}no" >&6
fi
else
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
if test "${ac_cv_prog_RANLIB+set}" = set; then
else
else
do
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
break 2
fi
done
done
fi
fi
else
echo "${ECHO_T}no" >&6
fi
fi
# Extract the first word of "ranlib", so it can be a program name with args.
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
else
else
do
ac_cv_prog_ac_ct_RANLIB="ranlib"
break 2
fi
done
done
fi
fi
else
echo "${ECHO_T}no" >&6
fi
else
fi
fi
# optimization flags
# If the user specify the directory for binutils, add the option `-B'.
CFLAGS="-B$with_binutils/ $CFLAGS"
fi
STAGE1_CFLAGS="-O2"
GRUB_CFLAGS="-O2"
if test "${size_flag+set}" = set; then
else
CFLAGS="-Os -g"
/* confdefs.h. */
_ACEOF
/* end confdefs.h. */
int
main ()
{
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
ac_status=$?
rm -f conftest.er1
cat conftest.err >&5
|| test ! -s conftest.err'
ac_status=$?
ac_status=$?
else
fi
fi
STAGE2_CFLAGS="-Os"
else
STAGE2_CFLAGS="-O2 -fno-strength-reduce -fno-unroll-loops"
fi
# OpenBSD has a GCC extension for protecting applications from
# stack smashing attacks, but GRUB doesn't want this feature.
if test "${no_stack_protector_flag+set}" = set; then
else
CFLAGS="-fno-stack-protector"
/* confdefs.h. */
_ACEOF
/* end confdefs.h. */
int
main ()
{
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
ac_status=$?
rm -f conftest.er1
cat conftest.err >&5
|| test ! -s conftest.err'
ac_status=$?
ac_status=$?
else
fi
fi
STAGE2_CFLAGS="$STAGE2_CFLAGS -fno-stack-protector"
fi
fi
fi
# Enforce coding standards.
if test "${undef_flag+set}" = set; then
else
CPPFLAGS="-Wundef"
/* confdefs.h. */
_ACEOF
/* end confdefs.h. */
int
main ()
{
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
ac_status=$?
rm -f conftest.er1
cat conftest.err >&5
|| test ! -s conftest.err'
ac_status=$?
ac_status=$?
else
fi
fi
# The options `-falign-*' are supported by gcc 3.0 or later.
# Probably it is sufficient to only check for -falign-loops.
if test "${falign_loop_flag+set}" = set; then
else
CPPFLAGS="-falign-loops=1"
/* confdefs.h. */
_ACEOF
/* end confdefs.h. */
int
main ()
{
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
ac_status=$?
rm -f conftest.er1
cat conftest.err >&5
|| test ! -s conftest.err'
ac_status=$?
ac_status=$?
else
fi
fi
# Force no alignment to save space.
else
fi
fi
# Extract the first word of "objcopy", so it can be a program name with args.
if test "${ac_cv_path_OBJCOPY+set}" = set; then
else
[\\/]* | ?:[\\/]*)
;;
*)
do
break 2
fi
done
done
;;
esac
fi
else
echo "${ECHO_T}no" >&6
fi
else
# Extract the first word of "${ac_tool_prefix}objcopy", so it can be a program name with args.
set dummy ${ac_tool_prefix}objcopy; ac_word=$2
if test "${ac_cv_prog_OBJCOPY+set}" = set; then
else
else
do
ac_cv_prog_OBJCOPY="${ac_tool_prefix}objcopy"
break 2
fi
done
done
fi
fi
else
echo "${ECHO_T}no" >&6
fi
fi
# Extract the first word of "objcopy", so it can be a program name with args.
if test "${ac_cv_prog_ac_ct_OBJCOPY+set}" = set; then
else
else
do
ac_cv_prog_ac_ct_OBJCOPY="objcopy"
break 2
fi
done
done
fi
fi
else
echo "${ECHO_T}no" >&6
fi
else
fi
fi
# Defined in acinclude.m4.
if test "${grub_cv_asm_uscore+set}" = set; then
else
cat > conftest.c <<\EOF
int
{
*list = 0;
return *list;
}
ac_status=$?
true
else
{ (exit 1); exit 1; }; }
fi
if grep _func conftest.s >/dev/null 2>&1; then
else
fi
fi
cat >>confdefs.h <<_ACEOF
#define HAVE_ASM_USCORE $grub_cv_asm_uscore
_ACEOF
fi
if test "${grub_cv_prog_objcopy_absolute+set}" = set; then
else
cat > conftest.c <<\EOF
void
cmain (void)
{
*((int *) 0x1000) = 2;
}
ac_status=$?
else
{ (exit 1); exit 1; }; }
fi
if { ac_try='${CC-cc} ${CFLAGS} -nostdlib -Wl,-N -Wl,-Ttext -Wl,$link_addr conftest.o -o conftest.exec'
ac_status=$?
else
{ (exit 1); exit 1; }; }
fi
ac_status=$?
else
{ (exit 1); exit 1; }; }
fi
ac_status=$?
else
break
fi
done
fi
{ { echo "$as_me:$LINENO: error: GRUB requires a working absolute objcopy; upgrade your binutils" >&5
{ (exit 1); exit 1; }; }
fi
if test "${grub_cv_asm_prefix_requirement+set}" = set; then
else
cat > conftest.s <<\EOF
ac_status=$?
else
fi
fi
grub_tmp_addr32="addr32"
grub_tmp_data32="data32"
else
grub_tmp_addr32="addr32;"
grub_tmp_data32="data32;"
fi
cat >>confdefs.h <<_ACEOF
#define ADDR32 $grub_tmp_addr32
_ACEOF
cat >>confdefs.h <<_ACEOF
#define DATA32 $grub_tmp_data32
_ACEOF
if test "${grub_cv_asm_addr32+set}" = set; then
else
cat > conftest.s.in <<\EOF
sed -e s/@ADDR32@/addr32/ < conftest.s.in > conftest.s
else
sed -e s/@ADDR32@/addr32\;/ < conftest.s.in > conftest.s
fi
ac_status=$?
else
fi
fi
{ { echo "$as_me:$LINENO: error: GRUB requires GAS .code16 addr32 support; upgrade your binutils" >&5
{ (exit 1); exit 1; }; }
fi
echo "$as_me:$LINENO: checking whether an absolute indirect call/jump must not be prefixed with an asterisk" >&5
echo $ECHO_N "checking whether an absolute indirect call/jump must not be prefixed with an asterisk... $ECHO_C" >&6
if test "${grub_cv_asm_absolute_without_asterisk+set}" = set; then
else
cat > conftest.s <<\EOF
.long 0
.word 0
ac_status=$?
else
fi
fi
cat >>confdefs.h <<\_ACEOF
#define ABSOLUTE_WITHOUT_ASTERISK 1
fi
if test "${grub_cv_check_start_symbol+set}" = set; then
else
/* confdefs.h. */
_ACEOF
/* end confdefs.h. */
int
main ()
{
asm ("incl start")
;
return 0;
}
_ACEOF
ac_status=$?
rm -f conftest.er1
cat conftest.err >&5
|| test ! -s conftest.err'
ac_status=$?
ac_status=$?
else
fi
rm -f conftest.err conftest.$ac_objext \
fi
cat >>confdefs.h <<\_ACEOF
#define HAVE_START_SYMBOL 1
fi
if test "${grub_cv_check_uscore_start_symbol+set}" = set; then
else
/* confdefs.h. */
_ACEOF
/* end confdefs.h. */
int
main ()
{
asm ("incl _start")
;
return 0;
}
_ACEOF
ac_status=$?
rm -f conftest.er1
cat conftest.err >&5
|| test ! -s conftest.err'
ac_status=$?
ac_status=$?
else
fi
rm -f conftest.err conftest.$ac_objext \
fi
cat >>confdefs.h <<\_ACEOF
#define HAVE_USCORE_START_SYMBOL 1
fi
{ (exit 1); exit 1; }; }
fi
if test "${grub_cv_check_uscore_uscore_bss_start_symbol+set}" = set; then
else
/* confdefs.h. */
_ACEOF
/* end confdefs.h. */
int
main ()
{
asm ("incl __bss_start")
;
return 0;
}
_ACEOF
ac_status=$?
rm -f conftest.er1
cat conftest.err >&5
|| test ! -s conftest.err'
ac_status=$?
ac_status=$?
else
fi
rm -f conftest.err conftest.$ac_objext \
fi
cat >>confdefs.h <<\_ACEOF
#define HAVE_USCORE_USCORE_BSS_START_SYMBOL 1
fi
if test "${grub_cv_check_uscore_edata_symbol+set}" = set; then
else
/* confdefs.h. */
_ACEOF
/* end confdefs.h. */
int
main ()
{
asm ("incl _edata")
;
return 0;
}
_ACEOF
ac_status=$?
rm -f conftest.er1
cat conftest.err >&5
|| test ! -s conftest.err'
ac_status=$?
ac_status=$?
else
fi
rm -f conftest.err conftest.$ac_objext \
fi
cat >>confdefs.h <<\_ACEOF
#define HAVE_USCORE_EDATA_SYMBOL 1
fi
if test "${grub_cv_check_edata_symbol+set}" = set; then
else
/* confdefs.h. */
_ACEOF
/* end confdefs.h. */
int
main ()
{
asm ("incl edata")
;
return 0;
}
_ACEOF
ac_status=$?
rm -f conftest.er1
cat conftest.err >&5
|| test ! -s conftest.err'
ac_status=$?
ac_status=$?
else
fi
rm -f conftest.err conftest.$ac_objext \
fi
cat >>confdefs.h <<\_ACEOF
#define HAVE_EDATA_SYMBOL 1
fi
{ (exit 1); exit 1; }; }
fi
if test "${grub_cv_check_end_symbol+set}" = set; then
else
/* confdefs.h. */
_ACEOF
/* end confdefs.h. */
int
main ()
{
asm ("incl end")
;
return 0;
}
_ACEOF
ac_status=$?
rm -f conftest.er1
cat conftest.err >&5
|| test ! -s conftest.err'
ac_status=$?
ac_status=$?
else
fi
rm -f conftest.err conftest.$ac_objext \
fi
cat >>confdefs.h <<\_ACEOF
#define HAVE_END_SYMBOL 1
fi
if test "${grub_cv_check_uscore_end_symbol+set}" = set; then
else
/* confdefs.h. */
_ACEOF
/* end confdefs.h. */
int
main ()
{
asm ("incl _end")
;
return 0;
}
_ACEOF
ac_status=$?
rm -f conftest.er1
cat conftest.err >&5
|| test ! -s conftest.err'
ac_status=$?
ac_status=$?
else
fi
rm -f conftest.err conftest.$ac_objext \
fi
cat >>confdefs.h <<\_ACEOF
#define HAVE_USCORE_END_SYMBOL 1
fi
{ (exit 1); exit 1; }; }
fi
# Check for curses libraries.
# Check whether --with-curses or --without-curses was given.
if test "${with_curses+set}" = set; then
fi;
# Get the filename or the whole disk and open it.
# Known to work on NetBSD.
if test "${ac_cv_lib_util_opendisk+set}" = set; then
else
/* confdefs.h. */
_ACEOF
/* end confdefs.h. */
/* Override any gcc2 internal prototype to avoid an error. */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char opendisk ();
int
main ()
{
opendisk ();
;
return 0;
}
_ACEOF
ac_status=$?
rm -f conftest.er1
cat conftest.err >&5
|| test ! -s conftest.err'
ac_status=$?
ac_status=$?
else
fi
rm -f conftest.err conftest.$ac_objext \
fi
if test $ac_cv_lib_util_opendisk = yes; then
GRUB_LIBS="$GRUB_LIBS -lutil"
cat >>confdefs.h <<\_ACEOF
#define HAVE_OPENDISK 1
fi
# Unless the user specify --without-curses, check for curses.
if test "${ac_cv_lib_ncurses_wgetch+set}" = set; then
else
/* confdefs.h. */
_ACEOF
/* end confdefs.h. */
/* Override any gcc2 internal prototype to avoid an error. */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char wgetch ();
int
main ()
{
wgetch ();
;
return 0;
}
_ACEOF
ac_status=$?
rm -f conftest.er1
cat conftest.err >&5
|| test ! -s conftest.err'
ac_status=$?
ac_status=$?
else
fi
rm -f conftest.err conftest.$ac_objext \
fi
if test $ac_cv_lib_ncurses_wgetch = yes; then
GRUB_LIBS="$GRUB_LIBS -lncurses"
cat >>confdefs.h <<\_ACEOF
#define HAVE_LIBCURSES 1
else
if test "${ac_cv_lib_curses_wgetch+set}" = set; then
else
/* confdefs.h. */
_ACEOF
/* end confdefs.h. */
/* Override any gcc2 internal prototype to avoid an error. */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char wgetch ();
int
main ()
{
wgetch ();
;
return 0;
}
_ACEOF
ac_status=$?
rm -f conftest.er1
cat conftest.err >&5
|| test ! -s conftest.err'
ac_status=$?
ac_status=$?
else
fi
rm -f conftest.err conftest.$ac_objext \
fi
if test $ac_cv_lib_curses_wgetch = yes; then
GRUB_LIBS="$GRUB_LIBS -lcurses"
cat >>confdefs.h <<\_ACEOF
#define HAVE_LIBCURSES 1
fi
fi
fi
# Check for headers.
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
# On Suns, sometimes $CPP names a directory.
CPP=
fi
if test "${ac_cv_prog_CPP+set}" = set; then
else
# Double quotes because CPP needs to be expanded
do
ac_preproc_ok=false
do
# Use a header file that comes with gcc, so configuring glibc
# with a fresh cross-compiler works.
# <limits.h> exists even on freestanding compilers.
# On the NeXT, cc -E runs the code through the compiler's parser,
# not just through cpp. "Syntax error" is here to catch this case.
/* confdefs.h. */
_ACEOF
/* end confdefs.h. */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
Syntax error
_ACEOF
ac_status=$?
rm -f conftest.er1
cat conftest.err >&5
if test -s conftest.err; then
else
fi
else
fi
:
else
# Broken: fails on valid input.
continue
fi
# OK, works on sane cases. Now check whether non-existent headers
# can be detected and how.
/* confdefs.h. */
_ACEOF
/* end confdefs.h. */
#include <ac_nonexistent.h>
_ACEOF
ac_status=$?
rm -f conftest.er1
cat conftest.err >&5
if test -s conftest.err; then
else
fi
else
fi
# Broken: success on invalid input.
continue
else
# Passes both tests.
break
fi
done
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
if $ac_preproc_ok; then
break
fi
done
fi
else
fi
ac_preproc_ok=false
do
# Use a header file that comes with gcc, so configuring glibc
# with a fresh cross-compiler works.
# <limits.h> exists even on freestanding compilers.
# On the NeXT, cc -E runs the code through the compiler's parser,
# not just through cpp. "Syntax error" is here to catch this case.
/* confdefs.h. */
_ACEOF
/* end confdefs.h. */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
Syntax error
_ACEOF
ac_status=$?
rm -f conftest.er1
cat conftest.err >&5
if test -s conftest.err; then
else
fi
else
fi
:
else
# Broken: fails on valid input.
continue
fi
# OK, works on sane cases. Now check whether non-existent headers
# can be detected and how.
/* confdefs.h. */
_ACEOF
/* end confdefs.h. */
#include <ac_nonexistent.h>
_ACEOF
ac_status=$?
rm -f conftest.er1
cat conftest.err >&5
if test -s conftest.err; then
else
fi
else
fi
# Broken: success on invalid input.
continue
else
# Passes both tests.
break
fi
done
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
if $ac_preproc_ok; then
:
else
See \`config.log' for more details." >&5
See \`config.log' for more details." >&2;}
{ (exit 1); exit 1; }; }
fi
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
if test "${ac_cv_prog_egrep+set}" = set; then
else
then ac_cv_prog_egrep='grep -E'
else ac_cv_prog_egrep='egrep'
fi
fi
if test "${ac_cv_header_stdc+set}" = set; then
else
/* confdefs.h. */
_ACEOF
/* end confdefs.h. */
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#include <float.h>
int
main ()
{
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
ac_status=$?
rm -f conftest.er1
cat conftest.err >&5
|| test ! -s conftest.err'
ac_status=$?
ac_status=$?
else
fi
if test $ac_cv_header_stdc = yes; then
/* confdefs.h. */
_ACEOF
/* end confdefs.h. */
#include <string.h>
_ACEOF
:
else
fi
fi
if test $ac_cv_header_stdc = yes; then
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
/* confdefs.h. */
_ACEOF
/* end confdefs.h. */
#include <stdlib.h>
_ACEOF
:
else
fi
fi
if test $ac_cv_header_stdc = yes; then
:
else
/* confdefs.h. */
_ACEOF
/* end confdefs.h. */
#include <ctype.h>
#if ((' ' & 0x0FF) == 0x020)
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
#else
# define ISLOWER(c) \
(('a' <= (c) && (c) <= 'i') \
|| ('j' <= (c) && (c) <= 'r') \
|| ('s' <= (c) && (c) <= 'z'))
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
#endif
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
int
main ()
{
int i;
for (i = 0; i < 256; i++)
if (XOR (islower (i), ISLOWER (i))
|| toupper (i) != TOUPPER (i))
exit(2);
exit (0);
}
_ACEOF
ac_status=$?
ac_status=$?
:
else
( exit $ac_status )
fi
fi
fi
fi
if test $ac_cv_header_stdc = yes; then
cat >>confdefs.h <<\_ACEOF
#define STDC_HEADERS 1
fi
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
do
else
/* confdefs.h. */
_ACEOF
/* end confdefs.h. */
$ac_includes_default
#include <$ac_header>
_ACEOF
rm -f conftest.$ac_objext
ac_status=$?
rm -f conftest.er1
cat conftest.err >&5
|| test ! -s conftest.err'
ac_status=$?
ac_status=$?
eval "$as_ac_Header=yes"
else
eval "$as_ac_Header=no"
fi
fi
cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
fi
done
do
fi
else
# Is the header compilable?
/* confdefs.h. */
_ACEOF
/* end confdefs.h. */
$ac_includes_default
#include <$ac_header>
_ACEOF
rm -f conftest.$ac_objext
ac_status=$?
rm -f conftest.er1
cat conftest.err >&5
|| test ! -s conftest.err'
ac_status=$?
ac_status=$?
else
fi
# Is the header present?
/* confdefs.h. */
_ACEOF
/* end confdefs.h. */
#include <$ac_header>
_ACEOF
ac_status=$?
rm -f conftest.er1
cat conftest.err >&5
if test -s conftest.err; then
else
fi
else
fi
else
fi
# So? What about this header?
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
;;
(
## ------------------------------- ##
## Report this to bug-grub@gnu.org ##
## ------------------------------- ##
) |
;;
esac
else
eval "$as_ac_Header=\$ac_header_preproc"
fi
fi
cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
fi
done
# Check for user options.
# filesystems support.
# Check whether --enable-ext2fs or --disable-ext2fs was given.
if test "${enable_ext2fs+set}" = set; then
fi;
FSYS_CFLAGS="$FSYS_CFLAGS -DFSYS_EXT2FS=1"
fi
# Check whether --enable-fat or --disable-fat was given.
if test "${enable_fat+set}" = set; then
fi;
FSYS_CFLAGS="$FSYS_CFLAGS -DFSYS_FAT=1"
fi
# Check whether --enable-ffs or --disable-ffs was given.
if test "${enable_ffs+set}" = set; then
fi;
FSYS_CFLAGS="$FSYS_CFLAGS -DFSYS_FFS=1"
fi
# Check whether --enable-ufs or --disable-ufs was given.
if test "${enable_ufs+set}" = set; then
fi;
FSYS_CFLAGS="$FSYS_CFLAGS -DFSYS_UFS=1"
fi
# Check whether --enable-ufs2 or --disable-ufs2 was given.
if test "${enable_ufs2+set}" = set; then
fi;
FSYS_CFLAGS="$FSYS_CFLAGS -DFSYS_UFS2=1"
fi
# Check whether --enable-minix or --disable-minix was given.
if test "${enable_minix+set}" = set; then
fi;
FSYS_CFLAGS="$FSYS_CFLAGS -DFSYS_MINIX=1"
fi
# Check whether --enable-reiserfs or --disable-reiserfs was given.
if test "${enable_reiserfs+set}" = set; then
fi;
FSYS_CFLAGS="$FSYS_CFLAGS -DFSYS_REISERFS=1"
fi
# Check whether --enable-vstafs or --disable-vstafs was given.
if test "${enable_vstafs+set}" = set; then
fi;
FSYS_CFLAGS="$FSYS_CFLAGS -DFSYS_VSTAFS=1"
fi
# Check whether --enable-jfs or --disable-jfs was given.
if test "${enable_jfs+set}" = set; then
fi;
FSYS_CFLAGS="$FSYS_CFLAGS -DFSYS_JFS=1"
fi
# Check whether --enable-xfs or --disable-xfs was given.
if test "${enable_xfs+set}" = set; then
fi;
FSYS_CFLAGS="$FSYS_CFLAGS -DFSYS_XFS=1"
fi
# Check whether --enable-zfs or --disable-zfs was given.
if test "${enable_zfs+set}" = set; then
fi;
FSYS_CFLAGS="$FSYS_CFLAGS -DFSYS_ZFS=1"
fi
# Check whether --enable-iso9660 or --disable-iso9660 was given.
if test "${enable_iso9660+set}" = set; then
fi;
FSYS_CFLAGS="$FSYS_CFLAGS -DFSYS_ISO9660=1"
fi
# Check whether --enable-gunzip or --disable-gunzip was given.
if test "${enable_gunzip+set}" = set; then
fi;
FSYS_CFLAGS="$FSYS_CFLAGS -DNO_DECOMPRESSION=1"
fi
# Check whether --enable-md5-password or --disable-md5-password was given.
if test "${enable_md5_password+set}" = set; then
fi;
FSYS_CFLAGS="$FSYS_CFLAGS -DUSE_MD5_PASSWORDS=1"
fi
# Check whether --enable-packet-retransmission or --disable-packet-retransmission was given.
if test "${enable_packet_retransmission+set}" = set; then
fi;
NET_EXTRAFLAGS="$NET_EXTRAFLAGS -DCONGESTED=1 -DCONFIG_PCI"
fi
# Check whether --enable-pci-direct or --disable-pci-direct was given.
if test "${enable_pci_direct+set}" = set; then
fi;
NET_EXTRAFLAGS="$NET_EXTRAFLAGS -DCONFIG_PCI_DIRECT=1"
fi
# Check whether --enable-3c595 or --disable-3c595 was given.
if test "${enable_3c595+set}" = set; then
fi;
NET_CFLAGS="$NET_CFLAGS -DINCLUDE_3C595=1"
fi
# Check whether --enable-3c90x or --disable-3c90x was given.
if test "${enable_3c90x+set}" = set; then
fi;
NET_CFLAGS="$NET_CFLAGS -DINCLUDE_3C90X=1"
fi
# Check whether --enable-davicom or --disable-davicom was given.
if test "${enable_davicom+set}" = set; then
fi;
NET_CFLAGS="$NET_CFLAGS -DINCLUDE_DAVICOM=1"
fi
# Check whether --enable-e1000 or --disable-e1000 was given.
if test "${enable_e1000+set}" = set; then
fi;
NET_CFLAGS="$NET_CFLAGS -DINCLUDE_E1000=1"
fi
# Check whether --enable-eepro100 or --disable-eepro100 was given.
if test "${enable_eepro100+set}" = set; then
fi;
NET_CFLAGS="$NET_CFLAGS -DINCLUDE_EEPRO100=1"
fi
# Check whether --enable-epic100 or --disable-epic100 was given.
if test "${enable_epic100+set}" = set; then
fi;
NET_CFLAGS="$NET_CFLAGS -DINCLUDE_EPIC100=1"
fi
# Check whether --enable-forcedeth or --disable-forcedeth was given.
if test "${enable_forcedeth+set}" = set; then
fi;
NET_CFLAGS="$NET_CFLAGS -DINCLUDE_FORCEDETH=1"
fi
# Check whether --enable-natsemi or --disable-natsemi was given.
if test "${enable_natsemi+set}" = set; then
fi;
NET_CFLAGS="$NET_CFLAGS -DINCLUDE_NATSEMI=1"
fi
# Check whether --enable-ns83820 or --disable-ns83820 was given.
if test "${enable_ns83820+set}" = set; then
fi;
NET_CFLAGS="$NET_CFLAGS -DINCLUDE_NS83820=1"
fi
# Check whether --enable-ns8390 or --disable-ns8390 was given.
if test "${enable_ns8390+set}" = set; then
fi;
NET_CFLAGS="$NET_CFLAGS -DINCLUDE_NS8390=1"
fi
# Check whether --enable-pcnet32 or --disable-pcnet32 was given.
if test "${enable_pcnet32+set}" = set; then
fi;
NET_CFLAGS="$NET_CFLAGS -DINCLUDE_PCNET32=1"
fi
# Check whether --enable-pnic or --disable-pnic was given.
if test "${enable_pnic+set}" = set; then
fi;
NET_CFLAGS="$NET_CFLAGS -DINCLUDE_PNIC=1"
fi
# Check whether --enable-rtl8139 or --disable-rtl8139 was given.
if test "${enable_rtl8139+set}" = set; then
fi;
NET_CFLAGS="$NET_CFLAGS -DINCLUDE_RTL8139=1"
fi
# Check whether --enable-r8169 or --disable-r8169 was given.
if test "${enable_r8169+set}" = set; then
fi;
NET_CFLAGS="$NET_CFLAGS -DINCLUDE_R8169=1"
fi
# Check whether --enable-sis900 or --disable-sis900 was given.
if test "${enable_sis900+set}" = set; then
fi;
NET_CFLAGS="$NET_CFLAGS -DINCLUDE_SIS900=1"
fi
# Check whether --enable-sundance or --disable-sundance was given.
if test "${enable_sundance+set}" = set; then
fi;
NET_CFLAGS="$NET_CFLAGS -DINCLUDE_SUNDANCE=1"
fi
# Check whether --enable-tg3 or --disable-tg3 was given.
if test "${enable_tg3+set}" = set; then
fi;
NET_CFLAGS="$NET_CFLAGS -DINCLUDE_TG3=1"
fi
# Check whether --enable-tulip or --disable-tulip was given.
if test "${enable_tulip+set}" = set; then
fi;
NET_CFLAGS="$NET_CFLAGS -DINCLUDE_TULIP=1"
fi
# Check whether --enable-tlan or --disable-tlan was given.
if test "${enable_tlan+set}" = set; then
fi;
NET_CFLAGS="$NET_CFLAGS -DINCLUDE_TLAN=1"
fi
# Check whether --enable-undi or --disable-undi was given.
if test "${enable_undi+set}" = set; then
fi;
NET_CFLAGS="$NET_CFLAGS -DINCLUDE_UNDI=1"
fi
# Check whether --enable-via-rhine or --disable-via-rhine was given.
if test "${enable_via_rhine+set}" = set; then
fi;
NET_CFLAGS="$NET_CFLAGS -DINCLUDE_VIA_RHINE=1"
fi
# Check whether --enable-w89c840 or --disable-w89c840 was given.
if test "${enable_w89c840+set}" = set; then
fi;
NET_CFLAGS="$NET_CFLAGS -DINCLUDE_W89C840=1"
fi
else
fi
FSYS_CFLAGS="$FSYS_CFLAGS -DFSYS_TFTP=1"
fi
# Check whether --enable-compex-rl2000-fix or --disable-compex-rl2000-fix was given.
if test "${enable_compex_rl2000_fix+set}" = set; then
fi;
NET_EXTRAFLAGS="$NET_EXTRAFLAGS -DCOMPEX_RL2000_FIX=1"
fi
# Check whether --enable-ne-scan or --disable-ne-scan was given.
if test "${enable_ne_scan+set}" = set; then
NET_EXTRAFLAGS="$NET_EXTRAFLAGS -DNE_SCAN=$enable_ne_scan"
else
NET_EXTRAFLAGS="$NET_EXTRAFLAGS -DNE_SCAN=0x280,0x300,0x320,0x340"
fi;
# Check whether --enable-wd-default-mem or --disable-wd-default-mem was given.
if test "${enable_wd_default_mem+set}" = set; then
NET_EXTRAFLAGS="$NET_EXTRAFLAGS -DWD_DEFAULT_MEM=$enable_wd_default_mem"
else
NET_EXTRAFLAGS="$NET_EXTRAFLAGS -DWD_DEFAULT_MEM=0xCC000"
fi;
# Check whether --enable-diskless or --disable-diskless was given.
if test "${enable_diskless+set}" = set; then
fi;
else
fi
# Check whether --enable-graphics or --disable-graphics was given.
if test "${enable_graphics+set}" = set; then
fi;
else
fi
# Check whether --enable-hercules or --disable-hercules was given.
if test "${enable_hercules+set}" = set; then
fi;
else
fi
# Check whether --enable-serial or --disable-serial was given.
if test "${enable_serial+set}" = set; then
fi;
else
fi
# Check whether --enable-serial-speed-simulation or --disable-serial-speed-simulation was given.
if test "${enable_serial_speed_simulation+set}" = set; then
fi;
else
fi
# Sanity check.
{ (exit 1); exit 1; }; }
fi
fi
# Check whether --enable-preset-menu or --disable-preset-menu was given.
if test "${enable_preset_menu+set}" = set; then
fi;
:
else
if test -r $enable_preset_menu; then
# Because early versions of GNU sed 3.x are too buggy, use a C program
# instead of shell commands. *sigh*
cat >conftest.c <<\EOF
#include <stdio.h>
int
main (void)
{
int c;
{
switch (c)
{
case '\n':
break;
case '\r':
break;
case '\\':
fputs ("\\\\", stdout);
break;
case '"':
fputs ("\\\"", stdout);
break;
default:
putchar (c);
}
}
return 0;
}
EOF
if { ac_try='${CC-cc} ${CFLAGS} conftest.c -o conftest'
(eval $ac_try) 2>&5
ac_status=$?
(exit $ac_status); }; } && test -s conftest; then
else
{ (exit 1); exit 1; }; }
fi
cat >>confdefs.h <<_ACEOF
_ACEOF
rm -f conftest*
else
{ (exit 1); exit 1; }; }
fi
fi
# Check whether --enable-example-kernel or --disable-example-kernel was given.
fi;
BUILD_EXAMPLE_KERNEL_TRUE=
BUILD_EXAMPLE_KERNEL_FALSE='#'
else
BUILD_EXAMPLE_KERNEL_TRUE='#'
BUILD_EXAMPLE_KERNEL_FALSE=
fi
# Check whether --enable-auto-linux-mem-opt or --disable-auto-linux-mem-opt was given.
fi;
:
else
cat >>confdefs.h <<\_ACEOF
#define AUTO_LINUX_MEM_OPT 1
_ACEOF
fi
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"
cat >confcache <<\_ACEOF
# This file is a shell script that caches the results of configure
# tests run on this system so they can be shared between configure
# scripts and configure runs, see configure's option --config-cache.
# It is not useful on other systems. If it contains results you don't
# want to keep, you may remove or edit it.
#
# config.status only pays attention to the cache file if you give it
# the --recheck option to rerun configure.
#
# following values.
# The following way of writing the cache mishandles newlines in values,
# but we know of no workaround that is simple, portable, and efficient.
# So, don't put newlines in cache variables' values.
# Ultrix sh set writes to stderr and can't be redirected directly,
# and sets the high bit in the cache file unless we assign to the vars.
{
(set) 2>&1 |
*ac_space=\ *)
# `set' does not quote correctly, so add quotes (double-quote
# substitution turns \\\\ into \\, and sed turns \\ into \).
sed -n \
"s/'/'\\\\''/g;
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
;;
*)
# `set' quotes correctly as required by POSIX, so do not add quotes.
sed -n \
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
;;
esac;
} |
sed '
t clear
: clear
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
t end
/^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
: end' >>confcache
if diff $cache_file confcache >/dev/null 2>&1; then :; else
if test -w $cache_file; then
else
echo "not updating unwritable cache $cache_file"
fi
fi
# Let make expand exec_prefix.
# VPATH may cause trouble with some makes, so we remove $(srcdir),
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
# trailing colons and then remove the whole line if VPATH becomes empty
# (actually we leave an empty line to preserve line numbers).
ac_vpsub='/^[ ]*VPATH[ ]*=/{
s/:*\$(srcdir):*/:/;
s/:*\${srcdir}:*/:/;
s/:*@srcdir@:*/:/;
s/^\([^=]*=[ ]*\):*/\1/;
s/:*$//;
s/^[^=]*=[ ]*$//;
}'
fi
# 1. Remove the extension, and $U if already installed.
sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
# 2. Add them.
done
if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
{ (exit 1); exit 1; }; }
fi
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"AMDEP\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
{ (exit 1); exit 1; }; }
fi
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
{ (exit 1); exit 1; }; }
fi
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
{ (exit 1); exit 1; }; }
fi
if test -z "${NETBOOT_SUPPORT_TRUE}" && test -z "${NETBOOT_SUPPORT_FALSE}"; then
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"NETBOOT_SUPPORT\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
{ (exit 1); exit 1; }; }
fi
if test -z "${DISKLESS_SUPPORT_TRUE}" && test -z "${DISKLESS_SUPPORT_FALSE}"; then
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"DISKLESS_SUPPORT\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
{ (exit 1); exit 1; }; }
fi
if test -z "${GRAPHICS_SUPPORT_TRUE}" && test -z "${GRAPHICS_SUPPORT_FALSE}"; then
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"GRAPHICS_SUPPORT\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
{ (exit 1); exit 1; }; }
fi
if test -z "${HERCULES_SUPPORT_TRUE}" && test -z "${HERCULES_SUPPORT_FALSE}"; then
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"HERCULES_SUPPORT\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
{ (exit 1); exit 1; }; }
fi
if test -z "${SERIAL_SUPPORT_TRUE}" && test -z "${SERIAL_SUPPORT_FALSE}"; then
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"SERIAL_SUPPORT\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
{ (exit 1); exit 1; }; }
fi
if test -z "${SERIAL_SPEED_SIMULATION_TRUE}" && test -z "${SERIAL_SPEED_SIMULATION_FALSE}"; then
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"SERIAL_SPEED_SIMULATION\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
{ (exit 1); exit 1; }; }
fi
if test -z "${BUILD_EXAMPLE_KERNEL_TRUE}" && test -z "${BUILD_EXAMPLE_KERNEL_FALSE}"; then
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"BUILD_EXAMPLE_KERNEL\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
{ (exit 1); exit 1; }; }
fi
: ${CONFIG_STATUS=./config.status}
cat >$CONFIG_STATUS <<_ACEOF
#! $SHELL
# Generated by $as_me.
# Run this file to recreate the current configuration.
# Compiler output produced by configure, useful for debugging
# configure, is in config.log if it exists.
debug=false
ac_cs_recheck=false
ac_cs_silent=false
SHELL=\${CONFIG_SHELL-$SHELL}
_ACEOF
cat >>$CONFIG_STATUS <<\_ACEOF
## --------------------- ##
## M4sh Initialization. ##
## --------------------- ##
# Be Bourne compatible
NULLCMD=:
# is contrary to our usage. Disable this feature.
alias -g '${1+"$@"}'='"$@"'
set -o posix
fi
# Support unset when possible.
as_unset=unset
else
as_unset=false
fi
# Work around bugs in pre-3.0 UWIN ksh.
PS1='$ '
PS2='> '
PS4='+ '
# NLS nuisances.
do
else
fi
done
# Required to use basename.
else
as_expr=false
fi
else
as_basename=false
fi
# Name of the executable.
X"$0" : 'X\(//\)$' \| \
X"$0" : 'X\(/\)$' \| \
echo X/"$0" |
sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
/^X\/\(\/\/\)$/{ s//\1/; q; }
/^X\/\(\/\).*/{ s//\1/; q; }
s/.*/./; q'`
# PATH needs CR, and LINENO needs CR and PATH.
# Avoid depending upon Character Ranges.
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
as_cr_digits='0123456789'
# The user is always right.
if test "${PATH_SEPARATOR+set}" != set; then
PATH_SEPARATOR=';'
else
fi
fi
# Find who we are. Look in the path if we contain no path at all
# relative or not.
case $0 in
*[\\/]* ) as_myself=$0 ;;
do
done
;;
esac
# We did not find ourselves, most probably we were run as `sh COMMAND'
# in which case we are not to be found in the path.
as_myself=$0
fi
{ (exit 1); exit 1; }; }
fi
case $CONFIG_SHELL in
'')
do
/*)
as_lineno_1=$LINENO
as_lineno_2=$LINENO
test "x$as_lineno_1" != "x$as_lineno_2" &&
export CONFIG_SHELL
fi;;
esac
done
done
;;
esac
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
# uniformly replaced by the line number. The first 'sed' inserts a
# line-number line before each line; the second 'sed' does the real
# work. The second script uses 'N' to pair each line-number line
# with the numbered line, and appends trailing '-' during
# substitution so that $LINENO is not a special case at line end.
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
# second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
sed '
N
s,$,-,
: loop
t loop
s,-$,,
{ (exit 1); exit 1; }; }
# Don't try to exec as it changes $[0], causing all sort of problems
# (the dirname of $[0] is not the place where we might find the
# original and so on. Autoconf is especially sensible to this).
# Exit status is that of the last command.
exit
}
esac
else
as_expr=false
fi
# We could just check for DJGPP; but this test a) works b) is more generic
# and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
# Don't use ln at all; we don't have any links
as_ln_s='cp -p'
else
as_ln_s='ln -s'
fi
else
as_ln_s='cp -p'
fi
else
test -d ./-p && rmdir ./-p
as_mkdir_p=false
fi
as_executable_p="test -f"
# Sed expression to map a string onto a valid CPP name.
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
# Sed expression to map a string onto a valid variable name.
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
# IFS
# We need space, tab and new line, in precisely that order.
as_nl='
'
# CDPATH.
exec 6>&1
# Open the log real soon, to keep \$[0] and so on meaningful, and to
# report actual input values of CONFIG_FILES etc. instead of their
# values after options handling. Logging --version etc. is OK.
exec 5>>config.log
{
echo
## Running $as_me. ##
_ASBOX
} >&5
cat >&5 <<_CSEOF
This file was extended by GRUB $as_me 0.97, which was
generated by GNU Autoconf 2.59. Invocation command line was
CONFIG_FILES = $CONFIG_FILES
CONFIG_HEADERS = $CONFIG_HEADERS
CONFIG_LINKS = $CONFIG_LINKS
CONFIG_COMMANDS = $CONFIG_COMMANDS
$ $0 $@
_CSEOF
echo >&5
# Files that config.status was made for.
fi
fi
fi
fi
cat >>$CONFIG_STATUS <<\_ACEOF
ac_cs_usage="\
\`$as_me' instantiates files from templates according to the
current configuration.
Usage: $0 [OPTIONS] [FILE]...
-h, --help print this help, then exit
-V, --version print version number, then exit
-q, --quiet do not print progress messages
-d, --debug don't remove temporary files
--recheck update $as_me by reconfiguring in the same conditions
--file=FILE[:TEMPLATE]
instantiate the configuration file FILE
--header=FILE[:TEMPLATE]
instantiate the configuration header FILE
Configuration files:
Configuration headers:
Configuration commands:
Report bugs to <bug-autoconf@gnu.org>."
cat >>$CONFIG_STATUS <<_ACEOF
ac_cs_version="\\
GRUB config.status 0.97
configured by $0, generated by GNU Autoconf 2.59,
with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
Copyright (C) 2003 Free Software Foundation, Inc.
This config.status script is free software; the Free Software Foundation
gives unlimited permission to copy, distribute and modify it."
srcdir=$srcdir
INSTALL="$INSTALL"
_ACEOF
cat >>$CONFIG_STATUS <<\_ACEOF
# If no file are specified by the user, then we need to provide default
# value. By we need to know if files were specified by the user.
while test $# != 0
do
case $1 in
--*=*)
ac_shift=:
;;
-*)
ac_option=$1
ac_optarg=$2
ac_shift=shift
;;
*) # This is not an option, so the user has probably given explicit
# arguments.
ac_option=$1
ac_need_defaults=false;;
esac
case $ac_option in
# Handling of the options.
cat >>$CONFIG_STATUS <<\_ACEOF
ac_cs_recheck=: ;;
--he | --h)
# Conflict between --help and --header
Try \`$0 --help' for more information." >&5
echo "$as_me: error: ambiguous option: $1
Try \`$0 --help' for more information." >&2;}
{ (exit 1); exit 1; }; };;
--debug | --d* | -d )
debug=: ;;
ac_need_defaults=false;;
ac_need_defaults=false;;
ac_cs_silent=: ;;
# This is an error.
Try \`$0 --help' for more information." >&5
echo "$as_me: error: unrecognized option: $1
Try \`$0 --help' for more information." >&2;}
{ (exit 1); exit 1; }; } ;;
esac
shift
done
if $ac_cs_silent; then
ac_configure_extra_args="$ac_configure_extra_args --silent"
fi
cat >>$CONFIG_STATUS <<_ACEOF
if \$ac_cs_recheck; then
echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
fi
_ACEOF
cat >>$CONFIG_STATUS <<_ACEOF
#
# INIT-COMMANDS section.
#
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
_ACEOF
cat >>$CONFIG_STATUS <<\_ACEOF
do
# Handling of arguments.
{ (exit 1); exit 1; }; };;
esac
done
# If the user did not use the arguments to specify the items to instantiate,
# then the envvar interface is used. Set only those that are not.
# We use the long form for the default assignment because of an extremely
# bizarre bug on SunOS 4.1.3.
if $ac_need_defaults; then
fi
# Have a temporary directory for convenience. Make it in the build tree
# simply because there is no reason to put it here, and in addition,
# creating and moving files from /tmp can sometimes cause problems.
# Create a temporary directory, and hook for its removal unless debugging.
$debug ||
{
trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
trap '{ (exit 1); exit 1; }' 1 2 13 15
}
# Create a (secure) tmp directory for tmp files.
{
} ||
{
} ||
{
{ (exit 1); exit 1; }
}
cat >>$CONFIG_STATUS <<_ACEOF
#
# CONFIG_FILES section.
#
# No need to generate the scripts if there are no CONFIG_FILES.
# This happens for instance when ./config.status config.h
if test -n "\$CONFIG_FILES"; then
# Protect against being on the right side of a sed subst in config.status.
sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
s,@SHELL@,$SHELL,;t t
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
s,@exec_prefix@,$exec_prefix,;t t
s,@prefix@,$prefix,;t t
s,@program_transform_name@,$program_transform_name,;t t
s,@bindir@,$bindir,;t t
s,@sbindir@,$sbindir,;t t
s,@libexecdir@,$libexecdir,;t t
s,@datadir@,$datadir,;t t
s,@sysconfdir@,$sysconfdir,;t t
s,@sharedstatedir@,$sharedstatedir,;t t
s,@localstatedir@,$localstatedir,;t t
s,@libdir@,$libdir,;t t
s,@includedir@,$includedir,;t t
s,@oldincludedir@,$oldincludedir,;t t
s,@infodir@,$infodir,;t t
s,@mandir@,$mandir,;t t
s,@build_alias@,$build_alias,;t t
s,@host_alias@,$host_alias,;t t
s,@target_alias@,$target_alias,;t t
s,@DEFS@,$DEFS,;t t
s,@ECHO_C@,$ECHO_C,;t t
s,@ECHO_N@,$ECHO_N,;t t
s,@ECHO_T@,$ECHO_T,;t t
s,@LIBS@,$LIBS,;t t
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
s,@CYGPATH_W@,$CYGPATH_W,;t t
s,@PACKAGE@,$PACKAGE,;t t
s,@VERSION@,$VERSION,;t t
s,@ACLOCAL@,$ACLOCAL,;t t
s,@AUTOCONF@,$AUTOCONF,;t t
s,@AUTOMAKE@,$AUTOMAKE,;t t
s,@AUTOHEADER@,$AUTOHEADER,;t t
s,@MAKEINFO@,$MAKEINFO,;t t
s,@install_sh@,$install_sh,;t t
s,@STRIP@,$STRIP,;t t
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
s,@mkdir_p@,$mkdir_p,;t t
s,@AWK@,$AWK,;t t
s,@SET_MAKE@,$SET_MAKE,;t t
s,@am__leading_dot@,$am__leading_dot,;t t
s,@AMTAR@,$AMTAR,;t t
s,@am__tar@,$am__tar,;t t
s,@am__untar@,$am__untar,;t t
s,@build@,$build,;t t
s,@build_cpu@,$build_cpu,;t t
s,@build_vendor@,$build_vendor,;t t
s,@build_os@,$build_os,;t t
s,@host@,$host,;t t
s,@host_cpu@,$host_cpu,;t t
s,@host_vendor@,$host_vendor,;t t
s,@host_os@,$host_os,;t t
s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
s,@MAINT@,$MAINT,;t t
s,@PERL@,$PERL,;t t
s,@CC@,$CC,;t t
s,@ac_ct_CC@,$ac_ct_CC,;t t
s,@CFLAGS@,$CFLAGS,;t t
s,@LDFLAGS@,$LDFLAGS,;t t
s,@CPPFLAGS@,$CPPFLAGS,;t t
s,@EXEEXT@,$EXEEXT,;t t
s,@OBJEXT@,$OBJEXT,;t t
s,@DEPDIR@,$DEPDIR,;t t
s,@am__include@,$am__include,;t t
s,@am__quote@,$am__quote,;t t
s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
s,@CCDEPMODE@,$CCDEPMODE,;t t
s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
s,@CCAS@,$CCAS,;t t
s,@RANLIB@,$RANLIB,;t t
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
s,@STAGE1_CFLAGS@,$STAGE1_CFLAGS,;t t
s,@STAGE2_CFLAGS@,$STAGE2_CFLAGS,;t t
s,@GRUB_CFLAGS@,$GRUB_CFLAGS,;t t
s,@OBJCOPY@,$OBJCOPY,;t t
s,@ac_ct_OBJCOPY@,$ac_ct_OBJCOPY,;t t
s,@GRUB_LIBS@,$GRUB_LIBS,;t t
s,@CPP@,$CPP,;t t
s,@EGREP@,$EGREP,;t t
s,@NETBOOT_SUPPORT_TRUE@,$NETBOOT_SUPPORT_TRUE,;t t
s,@NETBOOT_SUPPORT_FALSE@,$NETBOOT_SUPPORT_FALSE,;t t
s,@DISKLESS_SUPPORT_TRUE@,$DISKLESS_SUPPORT_TRUE,;t t
s,@DISKLESS_SUPPORT_FALSE@,$DISKLESS_SUPPORT_FALSE,;t t
s,@GRAPHICS_SUPPORT_TRUE@,$GRAPHICS_SUPPORT_TRUE,;t t
s,@GRAPHICS_SUPPORT_FALSE@,$GRAPHICS_SUPPORT_FALSE,;t t
s,@HERCULES_SUPPORT_TRUE@,$HERCULES_SUPPORT_TRUE,;t t
s,@HERCULES_SUPPORT_FALSE@,$HERCULES_SUPPORT_FALSE,;t t
s,@SERIAL_SUPPORT_TRUE@,$SERIAL_SUPPORT_TRUE,;t t
s,@SERIAL_SUPPORT_FALSE@,$SERIAL_SUPPORT_FALSE,;t t
s,@SERIAL_SPEED_SIMULATION_TRUE@,$SERIAL_SPEED_SIMULATION_TRUE,;t t
s,@SERIAL_SPEED_SIMULATION_FALSE@,$SERIAL_SPEED_SIMULATION_FALSE,;t t
s,@BUILD_EXAMPLE_KERNEL_TRUE@,$BUILD_EXAMPLE_KERNEL_TRUE,;t t
s,@BUILD_EXAMPLE_KERNEL_FALSE@,$BUILD_EXAMPLE_KERNEL_FALSE,;t t
s,@FSYS_CFLAGS@,$FSYS_CFLAGS,;t t
s,@NET_CFLAGS@,$NET_CFLAGS,;t t
s,@NET_EXTRAFLAGS@,$NET_EXTRAFLAGS,;t t
s,@NETBOOT_DRIVERS@,$NETBOOT_DRIVERS,;t t
s,@CCASFLAGS@,$CCASFLAGS,;t t
s,@LIBOBJS@,$LIBOBJS,;t t
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
CEOF
_ACEOF
cat >>$CONFIG_STATUS <<\_ACEOF
# Split the substitutions into bite-sized pieces for seds with
# small command number limits, like on Digital OSF/1 and HP-UX.
ac_sed_frag=1 # Number of current file.
ac_beg=1 # First line for current file.
ac_end=$ac_max_sed_lines # Line after last line for current file.
while $ac_more_lines; do
else
fi
ac_more_lines=false
else
# The purpose of the label and of the branching condition is to
# speed up the sed processing (if there are no `@' at all, there
# is no need to browse any of the substitutions).
# These are the two extra sed commands mentioned above.
(echo ':t
ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
else
ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
fi
fi
done
fi
fi # test -n "$CONFIG_FILES"
cat >>$CONFIG_STATUS <<\_ACEOF
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
- | *:- | *:-:* ) # input from stdin
* ) ac_file_in=$ac_file.in ;;
esac
# Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
/^X\(\/\/\)$/{ s//\1/; q; }
/^X\(\/\).*/{ s//\1/; q; }
s/.*/./; q'`
{ if $as_mkdir_p; then
else
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
/^X\(\/\/\)$/{ s//\1/; q; }
/^X\(\/\).*/{ s//\1/; q; }
s/.*/./; q'`
done
{ (exit 1); exit 1; }; }; }
# A "../" for each directory in $ac_dir_suffix.
else
fi
.) # No --srcdir option. We are building in place.
else
fi ;;
[\\/]* | ?:[\\/]* ) # Absolute path.
*) # Relative path.
esac
# Do not use `cd foo && pwd` to compute absolute paths, because
# the directories may not exist.
*)
esac;;
esac
case $ac_abs_builddir in
.) ac_abs_top_builddir=${ac_top_builddir}.;;
*)
case ${ac_top_builddir}. in
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
esac;;
esac
case $ac_abs_builddir in
.) ac_abs_srcdir=$ac_srcdir;;
*)
case $ac_srcdir in
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
esac;;
esac
case $ac_abs_builddir in
*)
case $ac_top_srcdir in
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
esac;;
esac
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
esac
fi
# Let's still pretend it is `configure' which instantiates (i.e., don't
# use $as_me), people would be surprised to read:
# /* config.h. Generated by config.status. */
else
fi
# First look for the input files in the build tree, otherwise in the
# src tree.
ac_file_inputs=`IFS=:
for f in $ac_file_in; do
case $f in
-) echo $tmp/stdin ;;
[\\/$]*)
# Absolute (can't be DOS-style, as IFS=:)
{ (exit 1); exit 1; }; }
echo "$f";;
*) # Relative
if test -f "$f"; then
# Build tree
echo "$f"
# Source tree
else
{ (exit 1); exit 1; }; }
fi;;
esac
done` || { (exit 1); exit 1; }
cat >>$CONFIG_STATUS <<_ACEOF
sed "$ac_vpsub
$extrasub
_ACEOF
cat >>$CONFIG_STATUS <<\_ACEOF
:t
s,@configure_input@,$configure_input,;t t
s,@srcdir@,$ac_srcdir,;t t
s,@abs_srcdir@,$ac_abs_srcdir,;t t
s,@top_srcdir@,$ac_top_srcdir,;t t
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
s,@builddir@,$ac_builddir,;t t
s,@abs_builddir@,$ac_abs_builddir,;t t
s,@top_builddir@,$ac_top_builddir,;t t
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
s,@INSTALL@,$ac_INSTALL,;t t
rm -f $tmp/stdin
else
cat $tmp/out
rm -f $tmp/out
fi
done
_ACEOF
cat >>$CONFIG_STATUS <<\_ACEOF
#
# CONFIG_HEADER section.
#
# NAME is the cpp macro being defined and VALUE is the value it is being given.
#
# ac_d sets the value in "#define NAME VALUE" lines.
ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
ac_dB='[ ].*$,\1#\2'
ac_dC=' '
ac_dD=',;t'
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
ac_uB='$,\1#\2define\3'
ac_uC=' '
ac_uD=',;t'
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
- | *:- | *:-:* ) # input from stdin
* ) ac_file_in=$ac_file.in ;;
esac
# First look for the input files in the build tree, otherwise in the
# src tree.
ac_file_inputs=`IFS=:
for f in $ac_file_in; do
case $f in
-) echo $tmp/stdin ;;
[\\/$]*)
# Absolute (can't be DOS-style, as IFS=:)
{ (exit 1); exit 1; }; }
# Do quote $f, to prevent DOS paths from being IFS'd.
echo "$f";;
*) # Relative
if test -f "$f"; then
# Build tree
echo "$f"
# Source tree
else
{ (exit 1); exit 1; }; }
fi;;
esac
done` || { (exit 1); exit 1; }
# Remove the trailing spaces.
# Transform confdefs.h into two sed scripts, `conftest.defines' and
# `conftest.undefs', that substitutes the proper values into
# config.h.in to produce config.h. The first handles `#define'
# templates, and the second `#undef' templates.
# And first: Protect against being on the right side of a sed subst in
# config.status. Protect against being in an unquoted here document
# in config.status.
# Using a here document instead of a string reduces the quoting nightmare.
# Putting comments in sed scripts is not portable.
#
# `end' is used to avoid that the second main sed command (meant for
# 0-ary CPP macros) applies to n-ary macro definitions.
# See the Autoconf documentation for `clear'.
cat >confdef2sed.sed <<\_ACEOF
s/[\\&,]/\\&/g
s,[\\$`],\\&,g
t clear
: clear
s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
t end
s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
: end
_ACEOF
# If some macros were called several times there might be several times
# the same #defines, which is useless. Nevertheless, we may not want to
# sort them, since we want the *last* AC-DEFINE to be honored.
uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
rm -f confdef2sed.sed
# This sed command replaces #undef with comments. This is necessary, for
# example, in the case of _POSIX_SOURCE, which is predefined and required
# on some systems where configure will not decide to define it.
cat >>conftest.undefs <<\_ACEOF
s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
_ACEOF
# Break up conftest.defines because some shells have a limit on the size
# of here documents, and old seds have small limits too (100 cmds).
echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
rm -f conftest.tail
while grep . conftest.defines >/dev/null
do
# Write a limited-size here document to $tmp/defines.sed.
# Speed up: don't consider the non `#define' lines.
# Work around the forget-to-reset-the-flag bug.
echo 'CEOF
' >>$CONFIG_STATUS
done
echo >>$CONFIG_STATUS
# Break up conftest.undefs because some shells have a limit on the size
# of here documents, and old seds have small limits too (100 cmds).
rm -f conftest.tail
while grep . conftest.undefs >/dev/null
do
# Write a limited-size here document to $tmp/undefs.sed.
# Speed up: don't consider the non `#undef'
# Work around the forget-to-reset-the-flag bug.
echo 'CEOF
' >>$CONFIG_STATUS
done
cat >>$CONFIG_STATUS <<\_ACEOF
# Let's still pretend it is `configure' which instantiates (i.e., don't
# use $as_me), people would be surprised to read:
# /* config.h. Generated by config.status. */
else
fi
else
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
/^X\(\/\/\)$/{ s//\1/; q; }
/^X\(\/\).*/{ s//\1/; q; }
s/.*/./; q'`
{ if $as_mkdir_p; then
else
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
/^X\(\/\/\)$/{ s//\1/; q; }
/^X\(\/\).*/{ s//\1/; q; }
s/.*/./; q'`
done
{ (exit 1); exit 1; }; }; }
fi
else
fi
# Compute $ac_file's index in $config_headers.
for _am_header in $config_headers :; do
case $_am_header in
break ;;
* )
esac
done
echo X$ac_file |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
/^X\(\/\/\)$/{ s//\1/; q; }
/^X\(\/\).*/{ s//\1/; q; }
done
cat >>$CONFIG_STATUS <<\_ACEOF
#
# CONFIG_COMMANDS section.
#
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
/^X\(\/\/\)$/{ s//\1/; q; }
/^X\(\/\).*/{ s//\1/; q; }
s/.*/./; q'`
{ if $as_mkdir_p; then
else
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
/^X\(\/\/\)$/{ s//\1/; q; }
/^X\(\/\).*/{ s//\1/; q; }
s/.*/./; q'`
done
{ (exit 1); exit 1; }; }; }
# A "../" for each directory in $ac_dir_suffix.
else
fi
.) # No --srcdir option. We are building in place.
else
fi ;;
[\\/]* | ?:[\\/]* ) # Absolute path.
*) # Relative path.
esac
# Do not use `cd foo && pwd` to compute absolute paths, because
# the directories may not exist.
*)
esac;;
esac
case $ac_abs_builddir in
.) ac_abs_top_builddir=${ac_top_builddir}.;;
*)
case ${ac_top_builddir}. in
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
esac;;
esac
case $ac_abs_builddir in
.) ac_abs_srcdir=$ac_srcdir;;
*)
case $ac_srcdir in
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
esac;;
esac
case $ac_abs_builddir in
*)
case $ac_top_srcdir in
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
esac;;
esac
# Strip MF so we end up with the name of the file.
# Check whether this is an Automake generated Makefile or not.
# We used to match only the files named `Makefile.in', but
# some people rename them; so instead we look at the file content.
# Grep'ing the first line is not enough: some people post-process
# each Makefile.in and add a new line on top of each file to say so.
# So let's grep whole file.
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
/^X\(\/\/\)$/{ s//\1/; q; }
/^X\(\/\).*/{ s//\1/; q; }
s/.*/./; q'`
else
continue
fi
# Extract the definition of DEPDIR, am__include, and am__quote
# from the Makefile without running `make'.
test -z "am__include" && continue
# When using ansi2knr, U may be empty or an underscore; expand it
# Find all dependency output files, they are included files with
# $(DEPDIR) in their names. We invoke sed twice because it is the
# simplest approach to changing $(DEPDIR) to its actual value in the
# expansion.
# Make sure the directory exists.
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
/^X\(\/\/\)$/{ s//\1/; q; }
/^X\(\/\).*/{ s//\1/; q; }
s/.*/./; q'`
{ if $as_mkdir_p; then
else
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
/^X\(\/\/\)$/{ s//\1/; q; }
/^X\(\/\).*/{ s//\1/; q; }
s/.*/./; q'`
done
{ (exit 1); exit 1; }; }; }
# echo "creating $dirpart/$file"
done
done
;;
esac
done
cat >>$CONFIG_STATUS <<\_ACEOF
{ (exit 0); exit 0; }
# configure is writing to config.log, and then calls config.status.
# config.status does its own redirection, appending to config.log.
# Unfortunately, on DOS this fails, as config.log is still kept open
# by configure, so config.status won't be able to write to it; its
# effectively closing config.log, so it can be properly (re)opened and
# appended to by config.status. When coming back to configure, we
# need to make the FD available again.
ac_config_status_args="$ac_config_status_args --quiet"
exec 5>>config.log
# Use ||, not &&, to avoid exiting from the if with $? = 1, which
# would make configure fail if this is the last instruction.
fi