# In the cases where this matters, `missing' is being run in the
# srcdir already.
@@ -44,7 +46,7 @@

msg="missing on your system"

-case "$1" in
+case $1 in
--run)
# Try to run requested program, and just exit if it succeeds.
run=
@@ -77,6 +79,7 @@
aclocal touch file \`aclocal.m4'
autoconf touch file \`configure'
autoheader touch file \`config.h.in'
+ autom4te touch the output file, or create a stub one
automake touch all \`Makefile.in' files
bison create \`y.tab.[ch]', if possible, from existing .[ch]
flex create \`lex.yy.c', if possible, from existing .c
@@ -106,7 +109,7 @@
# Now exit if we have it, but it failed. Also exit now if we
# don't have it and --version was passed (most likely to detect
# the program).
-case "$1" in
+case $1 in
lex|yacc)
# Not GNU programs, they don't have --version.
;;
@@ -135,7 +138,7 @@

# If it does not exist, or fails to run (possibly an outdated version),
# try to emulate it.
-case "$1" in
+case $1 in
aclocal*)
echo 1>&2 "\
WARNING: \`$1' is $msg. You should only need it if
@@ -164,7 +167,7 @@
test -z "$files" && files="config.h"
touch_files=
for f in $files; do
- case "$f" in
+ case $f in
*:*) touch_files="$touch_files "`echo "$f" |
sed -e 's/^[^:]*://' -e 's/:.*//'`;;
*) touch_files="$touch_files $f.in";;
@@ -192,8 +195,8 @@
You can get \`$1' as part of \`Autoconf' from any GNU
archive site."

+#
+# Examine an MBR and print what kind of bootloader stage1 code has been found.
+#
+# Exit codes:
+#
+# 0 : do not update the code in this MBR, it is either not maintained by us
+# (but belongs to some other OS) or some other unknown/unidentified
+# (bootloader?) code that we should not touch
+#
+# 254 : found known bootloader code that needs to be updated when the boot
+# setup is changing (because it contains a disk pointer to the next
+# bootloader stage, which may have changed)
+#
+# 1 -
+# xxx : some error occured while opening or reading from the (device) file
+# that contains the MBR
+# (254 is currently not produced as a system error code, and is not
+# expected to be produced; this script does not return error codes from
+# external commands; when no error code is set, this script exits with
+# code 255)
+#
+
use Compress::Zlib;

// FIXME:
- // This only works in the installed system (problem with GetFinalKernel))),
+ // This only works in the installed system (problem with GetFinalKernel()),
// in all other cases we use the symlinks.