/[grub]/grub/configure
ViewVC logotype

Diff of /grub/configure

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.93 by gord, Mon Oct 15 04:49:49 2001 UTC revision 1.94 by okuji, Sat Oct 27 16:04:24 2001 UTC
# Line 1  Line 1 
1  #! /bin/sh  #! /bin/sh
   
2  # Guess values for system-dependent variables and create Makefiles.  # Guess values for system-dependent variables and create Makefiles.
3  # Generated automatically using autoconf version 2.13  # Generated by Autoconf 2.52.
 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.  
4  #  #
5    # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
6    # Free Software Foundation, Inc.
7  # This configure script is free software; the Free Software Foundation  # This configure script is free software; the Free Software Foundation
8  # gives unlimited permission to copy, distribute and modify it.  # gives unlimited permission to copy, distribute and modify it.
9    
10  # Defaults:  # Avoid depending upon Character Ranges.
11  ac_help=  as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12    as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13    as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14    as_cr_digits='0123456789'
15    as_cr_alnum=$as_cr_Letters$as_cr_digits
16    
17    # Sed expression to map a string onto a valid variable name.
18    as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
19    
20    # Sed expression to map a string onto a valid CPP name.
21    as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
22    
23    # Be Bourne compatible
24    if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
25      emulate sh
26      NULLCMD=:
27    elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28      set -o posix
29    fi
30    
31    # Name of the executable.
32    as_me=`echo "$0" |sed 's,.*[\\/],,'`
33    
34    if expr a : '\(a\)' >/dev/null 2>&1; then
35      as_expr=expr
36    else
37      as_expr=false
38    fi
39    
40    rm -f conf$$ conf$$.exe conf$$.file
41    echo >conf$$.file
42    if ln -s conf$$.file conf$$ 2>/dev/null; then
43      # We could just check for DJGPP; but this test a) works b) is more generic
44      # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
45      if test -f conf$$.exe; then
46        # Don't use ln at all; we don't have any links
47        as_ln_s='cp -p'
48      else
49        as_ln_s='ln -s'
50      fi
51    elif ln conf$$.file conf$$ 2>/dev/null; then
52      as_ln_s=ln
53    else
54      as_ln_s='cp -p'
55    fi
56    rm -f conf$$ conf$$.exe conf$$.file
57    
58    as_executable_p="test -f"
59    
60    # Support unset when possible.
61    if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
62      as_unset=unset
63    else
64      as_unset=false
65    fi
66    
67    # NLS nuisances.
68    $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
69    $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
70    $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
71    $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
72    $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
73    $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
74    $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
75    $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
76    
77    # IFS
78    # We need space, tab and new line, in precisely that order.
79    as_nl='
80    '
81    IFS="   $as_nl"
82    
83    # CDPATH.
84    $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
85    
86    # Name of the host.
87    # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
88    # so uname gets run too.
89    ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
90    
91    exec 6>&1
92    
93    #
94    # Initializations.
95    #
96  ac_default_prefix=/usr/local  ac_default_prefix=/usr/local
97  # Any additions from configure.in:  cross_compiling=no
98  ac_help="$ac_help  subdirs=
99    --disable-dependency-tracking Speeds up one-time builds  MFLAGS= MAKEFLAGS=
100    --enable-dependency-tracking  Do not reject slow dependency extractors"  SHELL=${CONFIG_SHELL-/bin/sh}
101  ac_help="$ac_help  
102    --enable-maintainer-mode enable make rules and dependencies not useful  # Maximum number of lines to put in a shell here document.
103                            (and sometimes confusing) to the casual installer"  # This variable seems obsolete.  It should probably be removed, and
104  ac_help="$ac_help  # only ac_max_sed_lines should be used.
105    --with-binutils=DIR     search the directory DIR to find binutils"  : ${ac_max_here_lines=38}
106  ac_help="$ac_help  
107    --without-curses        do not use curses"  ac_unique_file="stage2/stage2.c"
 ac_help="$ac_help  
   --disable-ext2fs        disable ext2fs support in Stage 2"  
 ac_help="$ac_help  
   --disable-fat           disable FAT support in Stage 2"  
 ac_help="$ac_help  
   --disable-ffs           disable FFS support in Stage 2"  
 ac_help="$ac_help  
   --disable-minix         disable Minix fs support in Stage 2"  
 ac_help="$ac_help  
   --disable-reiserfs      disable ReiserFS support in Stage 2"  
 ac_help="$ac_help  
   --disable-vstafs        disable VSTa FS support in Stage 2"  
 ac_help="$ac_help  
   --disable-gunzip        disable decompression in Stage 2"  
 ac_help="$ac_help  
   --disable-md5-password  disable MD5 password support in Stage 2"  
 ac_help="$ac_help  
   --disable-packet-retransmission  
                           turn off packet retransmission"  
 ac_help="$ac_help  
   --enable-pci-direct     access PCI directly instead of using BIOS"  
 ac_help="$ac_help  
   --enable-3c509          enable 3Com509 driver"  
 ac_help="$ac_help  
   --enable-3c529          enable 3Com529 driver"  
 ac_help="$ac_help  
   --enable-3c590          enable 3Com590 driver"  
 ac_help="$ac_help  
   --enable-3c595          enable 3Com595 driver"  
 ac_help="$ac_help  
   --enable-3c90x          enable 3Com90x driver"  
 ac_help="$ac_help  
   --enable-cs89x0         enable CS89x0 driver"  
 ac_help="$ac_help  
   --enable-depca          enable DEPCA and EtherWORKS driver"  
 ac_help="$ac_help  
   --enable-eepro100       enable Etherexpress Pro/100 driver"  
 ac_help="$ac_help  
   --enable-epic100        enable SMC 83c170 EPIC/100 driver"  
 ac_help="$ac_help  
   --enable-3c507          enable 3Com507 driver"  
 ac_help="$ac_help  
   --enable-exos205        enable EXOS205 driver"  
 ac_help="$ac_help  
   --enable-ni5210         enable Racal-Interlan NI5210 driver"  
 ac_help="$ac_help  
   --enable-lance          enable Lance PCI PCNet/32 driver"  
 ac_help="$ac_help  
   --enable-ne2100         enable Novell NE2100 driver"  
 ac_help="$ac_help  
   --enable-ni6510         enable Racal-Interlan NI6510 driver"  
 ac_help="$ac_help  
   --enable-3c503          enable 3Com503 driver"  
 ac_help="$ac_help  
   --enable-ne             enable NE1000/2000 ISA driver"  
 ac_help="$ac_help  
   --enable-ns8390         enable NE2000 PCI driver"  
 ac_help="$ac_help  
   --enable-wd             enable WD8003/8013, SMC8216/8416 driver"  
 ac_help="$ac_help  
   --enable-otulip         enable old Tulip driver"  
 ac_help="$ac_help  
   --enable-rtl8139        enable Realtek 8139 driver"  
 ac_help="$ac_help  
   --enable-sk-g16         enable Schneider and Koch G16 driver"  
 ac_help="$ac_help  
   --enable-smc9000        enable SMC9000 driver"  
 ac_help="$ac_help  
   --enable-tiara          enable Tiara driver"  
 ac_help="$ac_help  
   --enable-tulip          enable Tulip driver"  
 ac_help="$ac_help  
   --enable-via-rhine      enable Rhine-I/II driver"  
 ac_help="$ac_help  
   --enable-3c503-shmem    use 3c503 shared memory mode"  
 ac_help="$ac_help  
   --enable-3c503-aui      use AUI by default on 3c503 cards"  
 ac_help="$ac_help  
   --enable-3c509-hack     make a 3c509 do bootp quicker"  
 ac_help="$ac_help  
   --enable-compex-rl2000-fix  
                           specify this if you have a Compex RL2000 PCI"  
 ac_help="$ac_help  
   --enable-ns8390-force-16bit  
                           specify this if falsely 8 bit is detected"  
 ac_help="$ac_help  
   --enable-smc9000-scan=LIST  
                           probe for SMC9000 I/O addresses using LIST"  
 ac_help="$ac_help  
   --enable-ne-scan=LIST   probe for NE base address using LIST"  
 ac_help="$ac_help  
   --enable-wd-default-mem=MEM  
                           set the default memory location for WD/SMC"  
 ac_help="$ac_help  
   --enable-cs-scan=LIST   probe for CS89x0 base address using LIST"  
 ac_help="$ac_help  
   --enable-diskless       enable diskless support"  
 ac_help="$ac_help  
   --disable-hercules      disable hercules terminal support"  
 ac_help="$ac_help  
   --disable-serial        diable serial terminal support"  
 ac_help="$ac_help  
   --enable-serial-speed-simulation  
                           simulate the slowness of a serial device"  
 ac_help="$ac_help  
   --enable-preset-menu=FILE  
                           preset a menu file FILE in Stage 2"  
 ac_help="$ac_help  
   --enable-example-kernel  
                           build the example Multiboot kernel"  
 ac_help="$ac_help  
   --disable-auto-linux-mem-opt  
                           don't pass Linux mem= option automatically"  
108    
109  # Initialize some variables set by options.  # Initialize some variables set by options.
110    ac_init_help=
111    ac_init_version=false
112  # The variables have the same names as the options, with  # The variables have the same names as the options, with
113  # dashes changed to underlines.  # dashes changed to underlines.
114  build=NONE  cache_file=/dev/null
 cache_file=./config.cache  
115  exec_prefix=NONE  exec_prefix=NONE
 host=NONE  
116  no_create=  no_create=
 nonopt=NONE  
117  no_recursion=  no_recursion=
118  prefix=NONE  prefix=NONE
119  program_prefix=NONE  program_prefix=NONE
# Line 152  program_transform_name=s,x,x, Line 122  program_transform_name=s,x,x,
122  silent=  silent=
123  site=  site=
124  srcdir=  srcdir=
 target=NONE  
125  verbose=  verbose=
126  x_includes=NONE  x_includes=NONE
127  x_libraries=NONE  x_libraries=NONE
128    
129    # Installation directory options.
130    # These are left unexpanded so users can "make install exec_prefix=/foo"
131    # and all the variables that are supposed to be based on exec_prefix
132    # by default will actually change.
133    # Use braces instead of parens because sh, perl, etc. also accept them.
134  bindir='${exec_prefix}/bin'  bindir='${exec_prefix}/bin'
135  sbindir='${exec_prefix}/sbin'  sbindir='${exec_prefix}/sbin'
136  libexecdir='${exec_prefix}/libexec'  libexecdir='${exec_prefix}/libexec'
# Line 169  oldincludedir='/usr/include' Line 144  oldincludedir='/usr/include'
144  infodir='${prefix}/info'  infodir='${prefix}/info'
145  mandir='${prefix}/man'  mandir='${prefix}/man'
146    
147  # Initialize some other variables.  # Identity of this package.
148  subdirs=  PACKAGE_NAME=
149  MFLAGS= MAKEFLAGS=  PACKAGE_TARNAME=
150  SHELL=${CONFIG_SHELL-/bin/sh}  PACKAGE_VERSION=
151  # Maximum number of lines to put in a shell here document.  PACKAGE_STRING=
152  ac_max_here_lines=12  PACKAGE_BUGREPORT=
153    
154  ac_prev=  ac_prev=
155  for ac_option  for ac_option
156  do  do
   
157    # If the previous option needs an argument, assign it.    # If the previous option needs an argument, assign it.
158    if test -n "$ac_prev"; then    if test -n "$ac_prev"; then
159      eval "$ac_prev=\$ac_option"      eval "$ac_prev=\$ac_option"
# Line 187  do Line 161  do
161      continue      continue
162    fi    fi
163    
164    case "$ac_option" in    ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;  
   *) ac_optarg= ;;  
   esac  
165    
166    # Accept the important Cygnus configure options, so we can diagnose typos.    # Accept the important Cygnus configure options, so we can diagnose typos.
167    
168    case "$ac_option" in    case $ac_option in
169    
170    -bindir | --bindir | --bindi | --bind | --bin | --bi)    -bindir | --bindir | --bindi | --bind | --bin | --bi)
171      ac_prev=bindir ;;      ac_prev=bindir ;;
172    -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)    -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
173      bindir="$ac_optarg" ;;      bindir=$ac_optarg ;;
174    
175    -build | --build | --buil | --bui | --bu)    -build | --build | --buil | --bui | --bu)
176      ac_prev=build ;;      ac_prev=build_alias ;;
177    -build=* | --build=* | --buil=* | --bui=* | --bu=*)    -build=* | --build=* | --buil=* | --bui=* | --bu=*)
178      build="$ac_optarg" ;;      build_alias=$ac_optarg ;;
179    
180    -cache-file | --cache-file | --cache-fil | --cache-fi \    -cache-file | --cache-file | --cache-fil | --cache-fi \
181    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
182      ac_prev=cache_file ;;      ac_prev=cache_file ;;
183    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
184    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
185      cache_file="$ac_optarg" ;;      cache_file=$ac_optarg ;;
186    
187      --config-cache | -C)
188        cache_file=config.cache ;;
189    
190    -datadir | --datadir | --datadi | --datad | --data | --dat | --da)    -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
191      ac_prev=datadir ;;      ac_prev=datadir ;;
192    -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \    -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
193    | --da=*)    | --da=*)
194      datadir="$ac_optarg" ;;      datadir=$ac_optarg ;;
195    
196    -disable-* | --disable-*)    -disable-* | --disable-*)
197      ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`      ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
198      # Reject names that are not valid shell variable names.      # Reject names that are not valid shell variable names.
199      if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then      expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
200        { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }        { echo "$as_me: error: invalid feature name: $ac_feature" >&2
201      fi     { (exit 1); exit 1; }; }
202      ac_feature=`echo $ac_feature| sed 's/-/_/g'`      ac_feature=`echo $ac_feature | sed 's/-/_/g'`
203      eval "enable_${ac_feature}=no" ;;      eval "enable_$ac_feature=no" ;;
204    
205    -enable-* | --enable-*)    -enable-* | --enable-*)
206      ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`      ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
207      # Reject names that are not valid shell variable names.      # Reject names that are not valid shell variable names.
208      if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then      expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
209        { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }        { echo "$as_me: error: invalid feature name: $ac_feature" >&2
210      fi     { (exit 1); exit 1; }; }
211      ac_feature=`echo $ac_feature| sed 's/-/_/g'`      ac_feature=`echo $ac_feature | sed 's/-/_/g'`
212      case "$ac_option" in      case $ac_option in
213        *=*) ;;        *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
214        *) ac_optarg=yes ;;        *) ac_optarg=yes ;;
215      esac      esac
216      eval "enable_${ac_feature}='$ac_optarg'" ;;      eval "enable_$ac_feature='$ac_optarg'" ;;
217    
218    -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \    -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
219    | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \    | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
# Line 248  do Line 222  do
222    -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \    -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
223    | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \    | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
224    | --exec=* | --exe=* | --ex=*)    | --exec=* | --exe=* | --ex=*)
225      exec_prefix="$ac_optarg" ;;      exec_prefix=$ac_optarg ;;
226    
227    -gas | --gas | --ga | --g)    -gas | --gas | --ga | --g)
228      # Obsolete; use --with-gas.      # Obsolete; use --with-gas.
229      with_gas=yes ;;      with_gas=yes ;;
230    
231    -help | --help | --hel | --he)    -help | --help | --hel | --he | -h)
232      # Omit some internal or obsolete options to make the list less imposing.      ac_init_help=long ;;
233      # This message is too long to be a string in the A/UX 3.1 sh.    -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
234      cat << EOF      ac_init_help=recursive ;;
235  Usage: configure [options] [host]    -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
236  Options: [defaults in brackets after descriptions]      ac_init_help=short ;;
 Configuration:  
   --cache-file=FILE       cache test results in FILE  
   --help                  print this message  
   --no-create             do not create output files  
   --quiet, --silent       do not print \`checking...' messages  
   --version               print the version of autoconf that created configure  
 Directory and file names:  
   --prefix=PREFIX         install architecture-independent files in PREFIX  
                           [$ac_default_prefix]  
   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX  
                           [same as prefix]  
   --bindir=DIR            user executables in DIR [EPREFIX/bin]  
   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]  
   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]  
   --datadir=DIR           read-only architecture-independent data in DIR  
                           [PREFIX/share]  
   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]  
   --sharedstatedir=DIR    modifiable architecture-independent data in DIR  
                           [PREFIX/com]  
   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]  
   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]  
   --includedir=DIR        C header files in DIR [PREFIX/include]  
   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]  
   --infodir=DIR           info documentation in DIR [PREFIX/info]  
   --mandir=DIR            man documentation in DIR [PREFIX/man]  
   --srcdir=DIR            find the sources in DIR [configure dir or ..]  
   --program-prefix=PREFIX prepend PREFIX to installed program names  
   --program-suffix=SUFFIX append SUFFIX to installed program names  
   --program-transform-name=PROGRAM  
                           run sed PROGRAM on installed program names  
 EOF  
     cat << EOF  
 Host type:  
   --build=BUILD           configure for building on BUILD [BUILD=HOST]  
   --host=HOST             configure for HOST [guessed]  
   --target=TARGET         configure for TARGET [TARGET=HOST]  
 Features and packages:  
   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)  
   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]  
   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]  
   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)  
   --x-includes=DIR        X include files are in DIR  
   --x-libraries=DIR       X library files are in DIR  
 EOF  
     if test -n "$ac_help"; then  
       echo "--enable and --with options recognized:$ac_help"  
     fi  
     exit 0 ;;  
237    
238    -host | --host | --hos | --ho)    -host | --host | --hos | --ho)
239      ac_prev=host ;;      ac_prev=host_alias ;;
240    -host=* | --host=* | --hos=* | --ho=*)    -host=* | --host=* | --hos=* | --ho=*)
241      host="$ac_optarg" ;;      host_alias=$ac_optarg ;;
242    
243    -includedir | --includedir | --includedi | --included | --include \    -includedir | --includedir | --includedi | --included | --include \
244    | --includ | --inclu | --incl | --inc)    | --includ | --inclu | --incl | --inc)
245      ac_prev=includedir ;;      ac_prev=includedir ;;
246    -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \    -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
247    | --includ=* | --inclu=* | --incl=* | --inc=*)    | --includ=* | --inclu=* | --incl=* | --inc=*)
248      includedir="$ac_optarg" ;;      includedir=$ac_optarg ;;
249    
250    -infodir | --infodir | --infodi | --infod | --info | --inf)    -infodir | --infodir | --infodi | --infod | --info | --inf)
251      ac_prev=infodir ;;      ac_prev=infodir ;;
252    -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)    -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
253      infodir="$ac_optarg" ;;      infodir=$ac_optarg ;;
254    
255    -libdir | --libdir | --libdi | --libd)    -libdir | --libdir | --libdi | --libd)
256      ac_prev=libdir ;;      ac_prev=libdir ;;
257    -libdir=* | --libdir=* | --libdi=* | --libd=*)    -libdir=* | --libdir=* | --libdi=* | --libd=*)
258      libdir="$ac_optarg" ;;      libdir=$ac_optarg ;;
259    
260    -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \    -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
261    | --libexe | --libex | --libe)    | --libexe | --libex | --libe)
262      ac_prev=libexecdir ;;      ac_prev=libexecdir ;;
263    -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \    -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
264    | --libexe=* | --libex=* | --libe=*)    | --libexe=* | --libex=* | --libe=*)
265      libexecdir="$ac_optarg" ;;      libexecdir=$ac_optarg ;;
266    
267    -localstatedir | --localstatedir | --localstatedi | --localstated \    -localstatedir | --localstatedir | --localstatedi | --localstated \
268    | --localstate | --localstat | --localsta | --localst \    | --localstate | --localstat | --localsta | --localst \
# Line 345  EOF Line 271  EOF
271    -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \    -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
272    | --localstate=* | --localstat=* | --localsta=* | --localst=* \    | --localstate=* | --localstat=* | --localsta=* | --localst=* \
273    | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)    | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
274      localstatedir="$ac_optarg" ;;      localstatedir=$ac_optarg ;;
275    
276    -mandir | --mandir | --mandi | --mand | --man | --ma | --m)    -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
277      ac_prev=mandir ;;      ac_prev=mandir ;;
278    -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)    -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
279      mandir="$ac_optarg" ;;      mandir=$ac_optarg ;;
280    
281    -nfp | --nfp | --nf)    -nfp | --nfp | --nf)
282      # Obsolete; use --without-fp.      # Obsolete; use --without-fp.
# Line 371  EOF Line 297  EOF
297    -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \    -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
298    | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \    | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
299    | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)    | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
300      oldincludedir="$ac_optarg" ;;      oldincludedir=$ac_optarg ;;
301    
302    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
303      ac_prev=prefix ;;      ac_prev=prefix ;;
304    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
305      prefix="$ac_optarg" ;;      prefix=$ac_optarg ;;
306    
307    -program-prefix | --program-prefix | --program-prefi | --program-pref \    -program-prefix | --program-prefix | --program-prefi | --program-pref \
308    | --program-pre | --program-pr | --program-p)    | --program-pre | --program-pr | --program-p)
309      ac_prev=program_prefix ;;      ac_prev=program_prefix ;;
310    -program-prefix=* | --program-prefix=* | --program-prefi=* \    -program-prefix=* | --program-prefix=* | --program-prefi=* \
311    | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)    | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
312      program_prefix="$ac_optarg" ;;      program_prefix=$ac_optarg ;;
313    
314    -program-suffix | --program-suffix | --program-suffi | --program-suff \    -program-suffix | --program-suffix | --program-suffi | --program-suff \
315    | --program-suf | --program-su | --program-s)    | --program-suf | --program-su | --program-s)
316      ac_prev=program_suffix ;;      ac_prev=program_suffix ;;
317    -program-suffix=* | --program-suffix=* | --program-suffi=* \    -program-suffix=* | --program-suffix=* | --program-suffi=* \
318    | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)    | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
319      program_suffix="$ac_optarg" ;;      program_suffix=$ac_optarg ;;
320    
321    -program-transform-name | --program-transform-name \    -program-transform-name | --program-transform-name \
322    | --program-transform-nam | --program-transform-na \    | --program-transform-nam | --program-transform-na \
# Line 407  EOF Line 333  EOF
333    | --program-transfo=* | --program-transf=* \    | --program-transfo=* | --program-transf=* \
334    | --program-trans=* | --program-tran=* \    | --program-trans=* | --program-tran=* \
335    | --progr-tra=* | --program-tr=* | --program-t=*)    | --progr-tra=* | --program-tr=* | --program-t=*)
336      program_transform_name="$ac_optarg" ;;      program_transform_name=$ac_optarg ;;
337    
338    -q | -quiet | --quiet | --quie | --qui | --qu | --q \    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
339    | -silent | --silent | --silen | --sile | --sil)    | -silent | --silent | --silen | --sile | --sil)
# Line 417  EOF Line 343  EOF
343      ac_prev=sbindir ;;      ac_prev=sbindir ;;
344    -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \    -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
345    | --sbi=* | --sb=*)    | --sbi=* | --sb=*)
346      sbindir="$ac_optarg" ;;      sbindir=$ac_optarg ;;
347    
348    -sharedstatedir | --sharedstatedir | --sharedstatedi \    -sharedstatedir | --sharedstatedir | --sharedstatedi \
349    | --sharedstated | --sharedstate | --sharedstat | --sharedsta \    | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
# Line 428  EOF Line 354  EOF
354    | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \    | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
355    | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \    | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
356    | --sha=* | --sh=*)    | --sha=* | --sh=*)
357      sharedstatedir="$ac_optarg" ;;      sharedstatedir=$ac_optarg ;;
358    
359    -site | --site | --sit)    -site | --site | --sit)
360      ac_prev=site ;;      ac_prev=site ;;
361    -site=* | --site=* | --sit=*)    -site=* | --site=* | --sit=*)
362      site="$ac_optarg" ;;      site=$ac_optarg ;;
363    
364    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
365      ac_prev=srcdir ;;      ac_prev=srcdir ;;
366    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
367      srcdir="$ac_optarg" ;;      srcdir=$ac_optarg ;;
368    
369    -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \    -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
370    | --syscon | --sysco | --sysc | --sys | --sy)    | --syscon | --sysco | --sysc | --sys | --sy)
371      ac_prev=sysconfdir ;;      ac_prev=sysconfdir ;;
372    -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \    -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
373    | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)    | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
374      sysconfdir="$ac_optarg" ;;      sysconfdir=$ac_optarg ;;
375    
376    -target | --target | --targe | --targ | --tar | --ta | --t)    -target | --target | --targe | --targ | --tar | --ta | --t)
377      ac_prev=target ;;      ac_prev=target_alias ;;
378    -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)    -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
379      target="$ac_optarg" ;;      target_alias=$ac_optarg ;;
380    
381    -v | -verbose | --verbose | --verbos | --verbo | --verb)    -v | -verbose | --verbose | --verbos | --verbo | --verb)
382      verbose=yes ;;      verbose=yes ;;
383    
384    -version | --version | --versio | --versi | --vers)    -version | --version | --versio | --versi | --vers | -V)
385      echo "configure generated by autoconf version 2.13"      ac_init_version=: ;;
     exit 0 ;;  
386    
387    -with-* | --with-*)    -with-* | --with-*)
388      ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`      ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
389      # Reject names that are not valid shell variable names.      # Reject names that are not valid shell variable names.
390      if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then      expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
391        { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }        { echo "$as_me: error: invalid package name: $ac_package" >&2
392      fi     { (exit 1); exit 1; }; }
393      ac_package=`echo $ac_package| sed 's/-/_/g'`      ac_package=`echo $ac_package| sed 's/-/_/g'`
394      case "$ac_option" in      case $ac_option in
395        *=*) ;;        *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
396        *) ac_optarg=yes ;;        *) ac_optarg=yes ;;
397      esac      esac
398      eval "with_${ac_package}='$ac_optarg'" ;;      eval "with_$ac_package='$ac_optarg'" ;;
399    
400    -without-* | --without-*)    -without-* | --without-*)
401      ac_package=`echo $ac_option|sed -e 's/-*without-//'`      ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
402      # Reject names that are not valid shell variable names.      # Reject names that are not valid shell variable names.
403      if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then      expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
404        { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }        { echo "$as_me: error: invalid package name: $ac_package" >&2
405      fi     { (exit 1); exit 1; }; }
406      ac_package=`echo $ac_package| sed 's/-/_/g'`      ac_package=`echo $ac_package | sed 's/-/_/g'`
407      eval "with_${ac_package}=no" ;;      eval "with_$ac_package=no" ;;
408    
409    --x)    --x)
410      # Obsolete; use --with-x.      # Obsolete; use --with-x.
# Line 490  EOF Line 415  EOF
415      ac_prev=x_includes ;;      ac_prev=x_includes ;;
416    -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \    -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
417    | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)    | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
418      x_includes="$ac_optarg" ;;      x_includes=$ac_optarg ;;
419    
420    -x-libraries | --x-libraries | --x-librarie | --x-librari \    -x-libraries | --x-libraries | --x-librarie | --x-librari \
421    | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)    | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
422      ac_prev=x_libraries ;;      ac_prev=x_libraries ;;
423    -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \    -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
424    | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)    | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
425      x_libraries="$ac_optarg" ;;      x_libraries=$ac_optarg ;;
426    
427    -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }    -*) { echo "$as_me: error: unrecognized option: $ac_option
428    Try \`$0 --help' for more information." >&2
429       { (exit 1); exit 1; }; }
430      ;;      ;;
431    
432      *=*)
433        ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
434        # Reject names that are not valid shell variable names.
435        expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
436          { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
437       { (exit 1); exit 1; }; }
438        ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
439        eval "$ac_envvar='$ac_optarg'"
440        export $ac_envvar ;;
441    
442    *)    *)
443      if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then      # FIXME: should be removed in autoconf 3.0.
444        echo "configure: warning: $ac_option: invalid host type" 1>&2      echo "$as_me: WARNING: you should use --build, --host, --target" >&2
445      fi      expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
446      if test "x$nonopt" != xNONE; then        echo "$as_me: WARNING: invalid host type: $ac_option" >&2
447        { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }      : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
     fi  
     nonopt="$ac_option"  
448      ;;      ;;
449    
450    esac    esac
451  done  done
452    
453  if test -n "$ac_prev"; then  if test -n "$ac_prev"; then
454    { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }    ac_option=--`echo $ac_prev | sed 's/_/-/g'`
455  fi    { echo "$as_me: error: missing argument to $ac_option" >&2
456       { (exit 1); exit 1; }; }
 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15  
   
 # File descriptor usage:  
 # 0 standard input  
 # 1 file creation  
 # 2 errors and warnings  
 # 3 some systems may open it to /dev/tty  
 # 4 used on the Kubota Titan  
 # 6 checking for... messages and results  
 # 5 compiler messages saved in config.log  
 if test "$silent" = yes; then  
   exec 6>/dev/null  
 else  
   exec 6>&1  
457  fi  fi
 exec 5>./config.log  
458    
459  echo "\  # Be sure to have absolute paths.
460  This file contains any messages produced by compilers while  for ac_var in exec_prefix prefix
461  running configure, to aid debugging if configure makes a mistake.  do
462  " 1>&5    eval ac_val=$`echo $ac_var`
463      case $ac_val in
464        [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
465        *)  { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
466       { (exit 1); exit 1; }; };;
467      esac
468    done
469    
470  # Strip out --no-create and --no-recursion so they do not pile up.  # Be sure to have absolute paths.
471  # Also quote any args containing shell metacharacters.  for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
472  ac_configure_args=                localstatedir libdir includedir oldincludedir infodir mandir
 for ac_arg  
473  do  do
474    case "$ac_arg" in    eval ac_val=$`echo $ac_var`
475    -no-create | --no-create | --no-creat | --no-crea | --no-cre \    case $ac_val in
476    | --no-cr | --no-c) ;;      [\\/$]* | ?:[\\/]* ) ;;
477    -no-recursion | --no-recursion | --no-recursio | --no-recursi \      *)  { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
478    | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;     { (exit 1); exit 1; }; };;
   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)  
   ac_configure_args="$ac_configure_args '$ac_arg'" ;;  
   *) ac_configure_args="$ac_configure_args $ac_arg" ;;  
479    esac    esac
480  done  done
481    
482  # NLS nuisances.  # There might be people who depend on the old broken behavior: `$host'
483  # Only set these to C if already set.  These must not be set unconditionally  # used to hold the argument of --host etc.
484  # because not all systems understand e.g. LANG=C (notably SCO).  build=$build_alias
485  # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!  host=$host_alias
486  # Non-C LC_CTYPE values break the ctype check.  target=$target_alias
487  if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi  
488  if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi  # FIXME: should be removed in autoconf 3.0.
489  if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi  if test "x$host_alias" != x; then
490  if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi    if test "x$build_alias" = x; then
491        cross_compiling=maybe
492        echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
493        If a cross compiler is detected then cross compile mode will be used." >&2
494      elif test "x$build_alias" != "x$host_alias"; then
495        cross_compiling=yes
496      fi
497    fi
498    
499  # confdefs.h avoids OS command line length limits that DEFS can exceed.  ac_tool_prefix=
500  rm -rf conftest* confdefs.h  test -n "$host_alias" && ac_tool_prefix=$host_alias-
 # AIX cpp loses on an empty file, so make sure it contains at least a newline.  
 echo > confdefs.h  
501    
502  # A filename unique to this package, relative to the directory that  test "$silent" = yes && exec 6>/dev/null
 # configure is in, which we can look for to find out if srcdir is correct.  
 ac_unique_file=stage2/stage2.c  
503    
504  # Find the source files, if location was not specified.  # Find the source files, if location was not specified.
505  if test -z "$srcdir"; then  if test -z "$srcdir"; then
506    ac_srcdir_defaulted=yes    ac_srcdir_defaulted=yes
507    # Try the directory containing this script, then its parent.    # Try the directory containing this script, then its parent.
508    ac_prog=$0    ac_prog=$0
509    ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`    ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
510    test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.    test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
511    srcdir=$ac_confdir    srcdir=$ac_confdir
512    if test ! -r $srcdir/$ac_unique_file; then    if test ! -r $srcdir/$ac_unique_file; then
# Line 592  else Line 517  else
517  fi  fi
518  if test ! -r $srcdir/$ac_unique_file; then  if test ! -r $srcdir/$ac_unique_file; then
519    if test "$ac_srcdir_defaulted" = yes; then    if test "$ac_srcdir_defaulted" = yes; then
520      { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }      { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
521       { (exit 1); exit 1; }; }
522    else    else
523      { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }      { echo "$as_me: error: cannot find sources in $srcdir" >&2
524       { (exit 1); exit 1; }; }
525    fi    fi
526  fi  fi
527  srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`  srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
528    ac_env_build_alias_set=${build_alias+set}
529    ac_env_build_alias_value=$build_alias
530    ac_cv_env_build_alias_set=${build_alias+set}
531    ac_cv_env_build_alias_value=$build_alias
532    ac_env_host_alias_set=${host_alias+set}
533    ac_env_host_alias_value=$host_alias
534    ac_cv_env_host_alias_set=${host_alias+set}
535    ac_cv_env_host_alias_value=$host_alias
536    ac_env_target_alias_set=${target_alias+set}
537    ac_env_target_alias_value=$target_alias
538    ac_cv_env_target_alias_set=${target_alias+set}
539    ac_cv_env_target_alias_value=$target_alias
540    ac_env_CC_set=${CC+set}
541    ac_env_CC_value=$CC
542    ac_cv_env_CC_set=${CC+set}
543    ac_cv_env_CC_value=$CC
544    ac_env_CFLAGS_set=${CFLAGS+set}
545    ac_env_CFLAGS_value=$CFLAGS
546    ac_cv_env_CFLAGS_set=${CFLAGS+set}
547    ac_cv_env_CFLAGS_value=$CFLAGS
548    ac_env_LDFLAGS_set=${LDFLAGS+set}
549    ac_env_LDFLAGS_value=$LDFLAGS
550    ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
551    ac_cv_env_LDFLAGS_value=$LDFLAGS
552    ac_env_CPPFLAGS_set=${CPPFLAGS+set}
553    ac_env_CPPFLAGS_value=$CPPFLAGS
554    ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
555    ac_cv_env_CPPFLAGS_value=$CPPFLAGS
556    ac_env_CPP_set=${CPP+set}
557    ac_env_CPP_value=$CPP
558    ac_cv_env_CPP_set=${CPP+set}
559    ac_cv_env_CPP_value=$CPP
560    
561    #
562    # Report the --help message.
563    #
564    if test "$ac_init_help" = "long"; then
565      # Omit some internal or obsolete options to make the list less imposing.
566      # This message is too long to be a string in the A/UX 3.1 sh.
567      cat <<EOF
568    \`configure' configures this package to adapt to many kinds of systems.
569    
570    Usage: $0 [OPTION]... [VAR=VALUE]...
571    
572    To assign environment variables (e.g., CC, CFLAGS...), specify them as
573    VAR=VALUE.  See below for descriptions of some of the useful variables.
574    
575    Defaults for the options are specified in brackets.
576    
577    Configuration:
578      -h, --help              display this help and exit
579          --help=short        display options specific to this package
580          --help=recursive    display the short help of all the included packages
581      -V, --version           display version information and exit
582      -q, --quiet, --silent   do not print \`checking...' messages
583          --cache-file=FILE   cache test results in FILE [disabled]
584      -C, --config-cache      alias for \`--cache-file=config.cache'
585      -n, --no-create         do not create output files
586          --srcdir=DIR        find the sources in DIR [configure dir or \`..']
587    
588    EOF
589    
590      cat <<EOF
591    Installation directories:
592      --prefix=PREFIX         install architecture-independent files in PREFIX
593                              [$ac_default_prefix]
594      --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
595                              [PREFIX]
596    
597    By default, \`make install' will install all the files in
598    \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
599    an installation prefix other than \`$ac_default_prefix' using \`--prefix',
600    for instance \`--prefix=\$HOME'.
601    
602    For better control, use the options below.
603    
604    Fine tuning of the installation directories:
605      --bindir=DIR           user executables [EPREFIX/bin]
606      --sbindir=DIR          system admin executables [EPREFIX/sbin]
607      --libexecdir=DIR       program executables [EPREFIX/libexec]
608      --datadir=DIR          read-only architecture-independent data [PREFIX/share]
609      --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
610      --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
611      --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
612      --libdir=DIR           object code libraries [EPREFIX/lib]
613      --includedir=DIR       C header files [PREFIX/include]
614      --oldincludedir=DIR    C header files for non-gcc [/usr/include]
615      --infodir=DIR          info documentation [PREFIX/info]
616      --mandir=DIR           man documentation [PREFIX/man]
617    EOF
618    
619      cat <<\EOF
620    
621    Program names:
622      --program-prefix=PREFIX            prepend PREFIX to installed program names
623      --program-suffix=SUFFIX            append SUFFIX to installed program names
624      --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
625    
626    System types:
627      --build=BUILD     configure for building on BUILD [guessed]
628      --host=HOST       build programs to run on HOST [BUILD]
629    EOF
630    fi
631    
632    if test -n "$ac_init_help"; then
633    
634      cat <<\EOF
635    
636    Optional Features:
637      --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
638      --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
639      --disable-dependency-tracking Speeds up one-time builds
640      --enable-dependency-tracking  Do not reject slow dependency extractors
641      --enable-maintainer-mode enable make rules and dependencies not useful
642                              (and sometimes confusing) to the casual installer
643      --disable-ext2fs        disable ext2fs support in Stage 2
644      --disable-fat           disable FAT support in Stage 2
645      --disable-ffs           disable FFS support in Stage 2
646      --disable-minix         disable Minix fs support in Stage 2
647      --disable-reiserfs      disable ReiserFS support in Stage 2
648      --disable-vstafs        disable VSTa FS support in Stage 2
649      --disable-jfs           disable IBM JFS support in Stage 2
650      --disable-xfs           disable SGI XFS support in Stage 2
651      --disable-gunzip        disable decompression in Stage 2
652      --disable-md5-password  disable MD5 password support in Stage 2
653      --disable-packet-retransmission
654                              turn off packet retransmission
655      --enable-pci-direct     access PCI directly instead of using BIOS
656      --enable-3c509          enable 3Com509 driver
657      --enable-3c529          enable 3Com529 driver
658      --enable-3c590          enable 3Com590 driver
659      --enable-3c595          enable 3Com595 driver
660      --enable-3c90x          enable 3Com90x driver
661      --enable-cs89x0         enable CS89x0 driver
662      --enable-depca          enable DEPCA and EtherWORKS driver
663      --enable-eepro100       enable Etherexpress Pro/100 driver
664      --enable-epic100        enable SMC 83c170 EPIC/100 driver
665      --enable-3c507          enable 3Com507 driver
666      --enable-exos205        enable EXOS205 driver
667      --enable-ni5210         enable Racal-Interlan NI5210 driver
668      --enable-lance          enable Lance PCI PCNet/32 driver
669      --enable-ne2100         enable Novell NE2100 driver
670      --enable-ni6510         enable Racal-Interlan NI6510 driver
671      --enable-3c503          enable 3Com503 driver
672      --enable-ne             enable NE1000/2000 ISA driver
673      --enable-ns8390         enable NE2000 PCI driver
674      --enable-wd             enable WD8003/8013, SMC8216/8416 driver
675      --enable-otulip         enable old Tulip driver
676      --enable-rtl8139        enable Realtek 8139 driver
677      --enable-sk-g16         enable Schneider and Koch G16 driver
678      --enable-smc9000        enable SMC9000 driver
679      --enable-tiara          enable Tiara driver
680      --enable-tulip          enable Tulip driver
681      --enable-via-rhine      enable Rhine-I/II driver
682      --enable-3c503-shmem    use 3c503 shared memory mode
683      --enable-3c503-aui      use AUI by default on 3c503 cards
684      --enable-3c509-hack     make a 3c509 do bootp quicker
685      --enable-compex-rl2000-fix
686                              specify this if you have a Compex RL2000 PCI
687      --enable-ns8390-force-16bit
688                              specify this if falsely 8 bit is detected
689      --enable-smc9000-scan=LIST
690                              probe for SMC9000 I/O addresses using LIST
691      --enable-ne-scan=LIST   probe for NE base address using LIST
692      --enable-wd-default-mem=MEM
693                              set the default memory location for WD/SMC
694      --enable-cs-scan=LIST   probe for CS89x0 base address using LIST
695      --enable-diskless       enable diskless support
696      --disable-hercules      disable hercules terminal support
697      --disable-serial        diable serial terminal support
698      --enable-serial-speed-simulation
699                              simulate the slowness of a serial device
700      --enable-preset-menu=FILE
701                              preset a menu file FILE in Stage 2
702      --enable-example-kernel
703                              build the example Multiboot kernel
704      --disable-auto-linux-mem-opt
705                              don't pass Linux mem= option automatically
706    
707    Optional Packages:
708      --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
709      --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
710      --with-binutils=DIR     search the directory DIR to find binutils
711      --without-curses        do not use curses
712    
713    Some influential environment variables:
714      CC          C compiler command
715      CFLAGS      C compiler flags
716      LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
717                  nonstandard directory <lib dir>
718      CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
719                  headers in a nonstandard directory <include dir>
720      CPP         C preprocessor
721    
722    Use these variables to override the choices made by `configure' or to help
723    it to find libraries and programs with nonstandard names/locations.
724    
725    EOF
726    fi
727    
728    if test "$ac_init_help" = "recursive"; then
729      # If there are subdirs, report their specific --help.
730      ac_popdir=`pwd`
731      for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
732        cd $ac_subdir
733        # A "../" for each directory in /$ac_subdir.
734        ac_dots=`echo $ac_subdir |
735                 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
736    
737        case $srcdir in
738        .) # No --srcdir option.  We are building in place.
739          ac_sub_srcdir=$srcdir ;;
740        [\\/]* | ?:[\\/]* ) # Absolute path.
741          ac_sub_srcdir=$srcdir/$ac_subdir ;;
742        *) # Relative path.
743          ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
744        esac
745    
746        # Check for guested configure; otherwise get Cygnus style configure.
747        if test -f $ac_sub_srcdir/configure.gnu; then
748          echo
749          $SHELL $ac_sub_srcdir/configure.gnu  --help=recursive
750        elif test -f $ac_sub_srcdir/configure; then
751          echo
752          $SHELL $ac_sub_srcdir/configure  --help=recursive
753        elif test -f $ac_sub_srcdir/configure.ac ||
754               test -f $ac_sub_srcdir/configure.in; then
755          echo
756          $ac_configure --help
757        else
758          echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
759        fi
760        cd $ac_popdir
761      done
762    fi
763    
764    test -n "$ac_init_help" && exit 0
765    if $ac_init_version; then
766      cat <<\EOF
767    
768    Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
769    Free Software Foundation, Inc.
770    This configure script is free software; the Free Software Foundation
771    gives unlimited permission to copy, distribute and modify it.
772    EOF
773      exit 0
774    fi
775    exec 5>config.log
776    cat >&5 <<EOF
777    This file contains any messages produced by compilers while
778    running configure, to aid debugging if configure makes a mistake.
779    
780    It was created by $as_me, which was
781    generated by GNU Autoconf 2.52.  Invocation command line was
782    
783      $ $0 $@
784    
785    EOF
786    {
787    cat <<_ASUNAME
788    ## ---------- ##
789    ## Platform.  ##
790    ## ---------- ##
791    
792    hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
793    uname -m = `(uname -m) 2>/dev/null || echo unknown`
794    uname -r = `(uname -r) 2>/dev/null || echo unknown`
795    uname -s = `(uname -s) 2>/dev/null || echo unknown`
796    uname -v = `(uname -v) 2>/dev/null || echo unknown`
797    
798    /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
799    /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
800    
801    /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
802    /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
803    /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
804    hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
805    /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
806    /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
807    /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
808    
809    PATH = $PATH
810    
811    _ASUNAME
812    } >&5
813    
814    cat >&5 <<EOF
815    ## ------------ ##
816    ## Core tests.  ##
817    ## ------------ ##
818    
819    EOF
820    
821    # Keep a trace of the command line.
822    # Strip out --no-create and --no-recursion so they do not pile up.
823    # Also quote any args containing shell meta-characters.
824    ac_configure_args=
825    ac_sep=
826    for ac_arg
827    do
828      case $ac_arg in
829      -no-create | --no-create | --no-creat | --no-crea | --no-cre \
830      | --no-cr | --no-c) ;;
831      -no-recursion | --no-recursion | --no-recursio | --no-recursi \
832      | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
833      *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
834        ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
835        ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
836        ac_sep=" " ;;
837      *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
838         ac_sep=" " ;;
839      esac
840      # Get rid of the leading space.
841    done
842    
843    # When interrupted or exit'd, cleanup temporary files, and complete
844    # config.log.  We remove comments because anyway the quotes in there
845    # would cause problems or look ugly.
846    trap 'exit_status=$?
847      # Save into config.log some information that might help in debugging.
848      echo >&5
849      echo "## ----------------- ##" >&5
850      echo "## Cache variables.  ##" >&5
851      echo "## ----------------- ##" >&5
852      echo >&5
853      # The following way of writing the cache mishandles newlines in values,
854    {
855      (set) 2>&1 |
856        case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
857        *ac_space=\ *)
858          sed -n \
859            "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
860              s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
861          ;;
862        *)
863          sed -n \
864            "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
865          ;;
866        esac;
867    } >&5
868      sed "/^$/d" confdefs.h >conftest.log
869      if test -s conftest.log; then
870        echo >&5
871        echo "## ------------ ##" >&5
872        echo "## confdefs.h.  ##" >&5
873        echo "## ------------ ##" >&5
874        echo >&5
875        cat conftest.log >&5
876      fi
877      (echo; echo) >&5
878      test "$ac_signal" != 0 &&
879        echo "$as_me: caught signal $ac_signal" >&5
880      echo "$as_me: exit $exit_status" >&5
881      rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
882        exit $exit_status
883         ' 0
884    for ac_signal in 1 2 13 15; do
885      trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
886    done
887    ac_signal=0
888    
889    # confdefs.h avoids OS command line length limits that DEFS can exceed.
890    rm -rf conftest* confdefs.h
891    # AIX cpp loses on an empty file, so make sure it contains at least a newline.
892    echo >confdefs.h
893    
894    # Let the site file select an alternate cache file if it wants to.
895  # Prefer explicitly selected file to automatically selected ones.  # Prefer explicitly selected file to automatically selected ones.
896  if test -z "$CONFIG_SITE"; then  if test -z "$CONFIG_SITE"; then
897    if test "x$prefix" != xNONE; then    if test "x$prefix" != xNONE; then
# Line 609  if test -z "$CONFIG_SITE"; then Line 902  if test -z "$CONFIG_SITE"; then
902  fi  fi
903  for ac_site_file in $CONFIG_SITE; do  for ac_site_file in $CONFIG_SITE; do
904    if test -r "$ac_site_file"; then    if test -r "$ac_site_file"; then
905      echo "loading site script $ac_site_file"      { echo "$as_me:905: loading site script $ac_site_file" >&5
906    echo "$as_me: loading site script $ac_site_file" >&6;}
907        cat "$ac_site_file" >&5
908      . "$ac_site_file"      . "$ac_site_file"
909    fi    fi
910  done  done
911    
912  if test -r "$cache_file"; then  if test -r "$cache_file"; then
913    echo "loading cache $cache_file"    # Some versions of bash will fail to source /dev/null (special
914    . $cache_file    # files actually), so we avoid doing that.
915      if test -f "$cache_file"; then
916        { echo "$as_me:916: loading cache $cache_file" >&5
917    echo "$as_me: loading cache $cache_file" >&6;}
918        case $cache_file in
919          [\\/]* | ?:[\\/]* ) . $cache_file;;
920          *)                      . ./$cache_file;;
921        esac
922      fi
923  else  else
924    echo "creating cache $cache_file"    { echo "$as_me:924: creating cache $cache_file" >&5
925    > $cache_file  echo "$as_me: creating cache $cache_file" >&6;}
926      >$cache_file
927    fi
928    
929    # Check that the precious variables saved in the cache have kept the same
930    # value.
931    ac_cache_corrupted=false
932    for ac_var in `(set) 2>&1 |
933                   sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
934      eval ac_old_set=\$ac_cv_env_${ac_var}_set
935      eval ac_new_set=\$ac_env_${ac_var}_set
936      eval ac_old_val="\$ac_cv_env_${ac_var}_value"
937      eval ac_new_val="\$ac_env_${ac_var}_value"
938      case $ac_old_set,$ac_new_set in
939        set,)
940          { echo "$as_me:940: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
941    echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
942          ac_cache_corrupted=: ;;
943        ,set)
944          { echo "$as_me:944: error: \`$ac_var' was not set in the previous run" >&5
945    echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
946          ac_cache_corrupted=: ;;
947        ,);;
948        *)
949          if test "x$ac_old_val" != "x$ac_new_val"; then
950            { echo "$as_me:950: error: \`$ac_var' has changed since the previous run:" >&5
951    echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
952            { echo "$as_me:952:   former value:  $ac_old_val" >&5
953    echo "$as_me:   former value:  $ac_old_val" >&2;}
954            { echo "$as_me:954:   current value: $ac_new_val" >&5
955    echo "$as_me:   current value: $ac_new_val" >&2;}
956            ac_cache_corrupted=:
957          fi;;
958      esac
959      # Pass precious variables to config.status.  It doesn't matter if
960      # we pass some twice (in addition to the command line arguments).
961      if test "$ac_new_set" = set; then
962        case $ac_new_val in
963        *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
964          ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
965          ac_configure_args="$ac_configure_args '$ac_arg'"
966          ;;
967        *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
968           ;;
969        esac
970      fi
971    done
972    if $ac_cache_corrupted; then
973      { echo "$as_me:973: error: changes in the environment can compromise the build" >&5
974    echo "$as_me: error: changes in the environment can compromise the build" >&2;}
975      { { echo "$as_me:975: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
976    echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
977       { (exit 1); exit 1; }; }
978  fi  fi
979    
980  ac_ext=c  ac_ext=c
 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.  
981  ac_cpp='$CPP $CPPFLAGS'  ac_cpp='$CPP $CPPFLAGS'
982  ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'  ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
983  ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'  ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
984  cross_compiling=$ac_cv_prog_cc_cross  ac_compiler_gnu=$ac_cv_c_compiler_gnu
985    
986  ac_exeext=  case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
987  ac_objext=o    *c*,-n*) ECHO_N= ECHO_C='
988  if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then  ' ECHO_T='      ' ;;
989    # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.    *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
990    if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then    *)      ECHO_N= ECHO_C='\c' ECHO_T= ;;
991      ac_n= ac_c='  esac
992  ' ac_t='        '  echo "#! $SHELL" >conftest.sh
993    else  echo  "exit 0"   >>conftest.sh
994      ac_n=-n ac_c= ac_t=  chmod +x conftest.sh
995    fi  if { (echo "$as_me:995: PATH=\".;.\"; conftest.sh") >&5
996      (PATH=".;."; conftest.sh) 2>&5
997      ac_status=$?
998      echo "$as_me:998: \$? = $ac_status" >&5
999      (exit $ac_status); }; then
1000      ac_path_separator=';'
1001  else  else
1002    ac_n= ac_c='\c' ac_t=    ac_path_separator=:
1003  fi  fi
1004    PATH_SEPARATOR="$ac_path_separator"
1005    rm -f conftest.sh
1006    
1007  ac_aux_dir=  ac_aux_dir=
1008  for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do  for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
# Line 654  for ac_dir in $srcdir $srcdir/.. $srcdir Line 1014  for ac_dir in $srcdir $srcdir/.. $srcdir
1014      ac_aux_dir=$ac_dir      ac_aux_dir=$ac_dir
1015      ac_install_sh="$ac_aux_dir/install.sh -c"      ac_install_sh="$ac_aux_dir/install.sh -c"
1016      break      break
1017      elif test -f $ac_dir/shtool; then
1018        ac_aux_dir=$ac_dir
1019        ac_install_sh="$ac_aux_dir/shtool install -c"
1020        break
1021    fi    fi
1022  done  done
1023  if test -z "$ac_aux_dir"; then  if test -z "$ac_aux_dir"; then
1024    { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }    { { echo "$as_me:1024: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1025  fi  echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1026  ac_config_guess=$ac_aux_dir/config.guess     { (exit 1); exit 1; }; }
1027  ac_config_sub=$ac_aux_dir/config.sub  fi
1028  ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.  ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1029    ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1030    ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
 # expand $ac_aux_dir to an absolute path  
 am_aux_dir=`CDPATH=:; cd $ac_aux_dir && pwd`  
1031    
1032  # Find a good install program.  We prefer a C program (faster),  # Find a good install program.  We prefer a C program (faster),
1033  # so one script is as good as another.  But avoid the broken or  # so one script is as good as another.  But avoid the broken or
# Line 674  am_aux_dir=`CDPATH=:; cd $ac_aux_dir && Line 1036  am_aux_dir=`CDPATH=:; cd $ac_aux_dir &&
1036  # SunOS /usr/etc/install  # SunOS /usr/etc/install
1037  # IRIX /sbin/install  # IRIX /sbin/install
1038  # AIX /bin/install  # AIX /bin/install
1039    # AmigaOS /C/install, which installs bootblocks on floppy discs
1040  # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag  # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1041  # AFS /usr/afsws/bin/install, which mishandles nonexistent args  # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1042  # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"  # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1043  # ./install, which can be erroneously created by make from ./install.sh.  # ./install, which can be erroneously created by make from ./install.sh.
1044  echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6  echo "$as_me:1044: checking for a BSD compatible install" >&5
1045  echo "configure:683: checking for a BSD compatible install" >&5  echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
1046  if test -z "$INSTALL"; then  if test -z "$INSTALL"; then
1047  if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then  if test "${ac_cv_path_install+set}" = set; then
1048    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
1049  else  else
1050      IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"      ac_save_IFS=$IFS; IFS=$ac_path_separator
1051    for ac_dir in $PATH; do    for ac_dir in $PATH; do
1052        IFS=$ac_save_IFS
1053      # Account for people who put trailing slashes in PATH elements.      # Account for people who put trailing slashes in PATH elements.
1054      case "$ac_dir/" in      case $ac_dir/ in
1055      /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;      / | ./ | .// | /cC/* \
1056        | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
1057        | /usr/ucb/* ) ;;
1058      *)      *)
1059        # OSF1 and SCO ODT 3.0 have their own names for install.        # OSF1 and SCO ODT 3.0 have their own names for install.
1060        # Don't use installbsd from OSF since it installs stuff as root        # Don't use installbsd from OSF since it installs stuff as root
1061        # by default.        # by default.
1062        for ac_prog in ginstall scoinst install; do        for ac_prog in ginstall scoinst install; do
1063          if test -f $ac_dir/$ac_prog; then          if $as_executable_p "$ac_dir/$ac_prog"; then
1064            if test $ac_prog = install &&            if test $ac_prog = install &&
1065              grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then              grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
1066              # AIX install.  It has an incompatible calling convention.              # AIX install.  It has an incompatible calling convention.
1067              :              :
1068              elif test $ac_prog = install &&
1069                grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
1070                # program-specific install script used by HP pwplus--don't use.
1071                :
1072            else            else
1073              ac_cv_path_install="$ac_dir/$ac_prog -c"              ac_cv_path_install="$ac_dir/$ac_prog -c"
1074              break 2              break 2
# Line 708  else Line 1078  else
1078        ;;        ;;
1079      esac      esac
1080    done    done
   IFS="$ac_save_IFS"  
1081    
1082  fi  fi
1083    if test "${ac_cv_path_install+set}" = set; then    if test "${ac_cv_path_install+set}" = set; then
1084      INSTALL="$ac_cv_path_install"      INSTALL=$ac_cv_path_install
1085    else    else
1086      # As a last resort, use the slow shell script.  We don't cache a      # As a last resort, use the slow shell script.  We don't cache a
1087      # path for INSTALL within a source directory, because that will      # path for INSTALL within a source directory, because that will
1088      # break other packages using the cache if that directory is      # break other packages using the cache if that directory is
1089      # removed, or if the path is relative.      # removed, or if the path is relative.
1090      INSTALL="$ac_install_sh"      INSTALL=$ac_install_sh
1091    fi    fi
1092  fi  fi
1093  echo "$ac_t""$INSTALL" 1>&6  echo "$as_me:1093: result: $INSTALL" >&5
1094    echo "${ECHO_T}$INSTALL" >&6
1095    
1096  # Use test -z because SunOS4 sh mishandles braces in ${var-val}.  # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1097  # It thinks the first close brace ends the variable substitution.  # It thinks the first close brace ends the variable substitution.
1098  test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'  test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1099    
1100  test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'  test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1101    
1102  test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'  test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1103    
1104  echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6  echo "$as_me:1104: checking whether build environment is sane" >&5
1105  echo "configure:736: checking whether build environment is sane" >&5  echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1106  # Just in case  # Just in case
1107  sleep 1  sleep 1
1108  echo timestamp > conftest.file  echo timestamp > conftest.file
# Line 755  if ( Line 1125  if (
1125        # if, for instance, CONFIG_SHELL is bash and it inherits a        # if, for instance, CONFIG_SHELL is bash and it inherits a
1126        # broken ls alias from the environment.  This has actually        # broken ls alias from the environment.  This has actually
1127        # happened.  Such a system could not be considered "sane".        # happened.  Such a system could not be considered "sane".
1128        { echo "configure: error: ls -t appears to fail.  Make sure there is not a broken        { { echo "$as_me:1128: error: ls -t appears to fail.  Make sure there is not a broken
1129  alias in your environment" 1>&2; exit 1; }  alias in your environment" >&5
1130    echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1131    alias in your environment" >&2;}
1132       { (exit 1); exit 1; }; }
1133     fi     fi
1134    
1135     test "$2" = conftest.file     test "$2" = conftest.file
# Line 765  then Line 1138  then
1138     # Ok.     # Ok.
1139     :     :
1140  else  else
1141     { echo "configure: error: newly created file is older than distributed files!     { { echo "$as_me:1141: error: newly created file is older than distributed files!
1142  Check your system clock" 1>&2; exit 1; }  Check your system clock" >&5
1143  fi  echo "$as_me: error: newly created file is older than distributed files!
1144  echo "$ac_t""yes" 1>&6  Check your system clock" >&2;}
1145  if test "$program_transform_name" = s,x,x,; then     { (exit 1); exit 1; }; }
   program_transform_name=  
 else  
   # Double any \ or $.  echo might interpret backslashes.  
   cat <<\EOF_SED > conftestsed  
 s,\\,\\\\,g; s,\$,$$,g  
 EOF_SED  
   program_transform_name="`echo $program_transform_name|sed -f conftestsed`"  
   rm -f conftestsed  
1146  fi  fi
1147    echo "$as_me:1147: result: yes" >&5
1148    echo "${ECHO_T}yes" >&6
1149  test "$program_prefix" != NONE &&  test "$program_prefix" != NONE &&
1150    program_transform_name="s,^,${program_prefix},; $program_transform_name"    program_transform_name="s,^,$program_prefix,;$program_transform_name"
1151  # Use a double $ so make ignores it.  # Use a double $ so make ignores it.
1152  test "$program_suffix" != NONE &&  test "$program_suffix" != NONE &&
1153    program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"    program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1154    # Double any \ or $.  echo might interpret backslashes.
1155    # By default was `s,x,x', remove it if useless.
1156    cat <<\_ACEOF >conftest.sed
1157    s/[\\$]/&&/g;s/;s,x,x,$//
1158    _ACEOF
1159    program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1160    rm conftest.sed
1161    
1162  # sed with no file args requires a program.  # expand $ac_aux_dir to an absolute path
1163  test "$program_transform_name" = "" && program_transform_name="s,x,x,"  am_aux_dir=`CDPATH=:; cd $ac_aux_dir && pwd`
1164    
1165  test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"  test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1166  # Use eval to expand $SHELL  # Use eval to expand $SHELL
# Line 795  if eval "$MISSING --run true"; then Line 1169  if eval "$MISSING --run true"; then
1169  else  else
1170    am_missing_run=    am_missing_run=
1171    am_backtick='`'    am_backtick='`'
1172    echo "configure: warning: ${am_backtick}missing' script is too old or missing" 1>&2    { echo "$as_me:1172: WARNING: ${am_backtick}missing' script is too old or missing" >&5
1173    echo "$as_me: WARNING: ${am_backtick}missing' script is too old or missing" >&2;}
1174  fi  fi
1175    
1176  for ac_prog in mawk gawk nawk awk  for ac_prog in mawk gawk nawk awk
1177  do  do
1178  # Extract the first word of "$ac_prog", so it can be a program name with args.    # Extract the first word of "$ac_prog", so it can be a program name with args.
1179  set dummy $ac_prog; ac_word=$2  set dummy $ac_prog; ac_word=$2
1180  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo "$as_me:1180: checking for $ac_word" >&5
1181  echo "configure:807: checking for $ac_word" >&5  echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1182  if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then  if test "${ac_cv_prog_AWK+set}" = set; then
1183    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
1184  else  else
1185    if test -n "$AWK"; then    if test -n "$AWK"; then
1186    ac_cv_prog_AWK="$AWK" # Let the user override the test.    ac_cv_prog_AWK="$AWK" # Let the user override the test.
1187  else  else
1188    IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"    ac_save_IFS=$IFS; IFS=$ac_path_separator
1189    ac_dummy="$PATH"  ac_dummy="$PATH"
1190    for ac_dir in $ac_dummy; do  for ac_dir in $ac_dummy; do
1191      test -z "$ac_dir" && ac_dir=.    IFS=$ac_save_IFS
1192      if test -f $ac_dir/$ac_word; then    test -z "$ac_dir" && ac_dir=.
1193        ac_cv_prog_AWK="$ac_prog"    $as_executable_p "$ac_dir/$ac_word" || continue
1194        break  ac_cv_prog_AWK="$ac_prog"
1195      fi  echo "$as_me:1195: found $ac_dir/$ac_word" >&5
1196    done  break
1197    IFS="$ac_save_ifs"  done
1198    
1199  fi  fi
1200  fi  fi
1201  AWK="$ac_cv_prog_AWK"  AWK=$ac_cv_prog_AWK
1202  if test -n "$AWK"; then  if test -n "$AWK"; then
1203    echo "$ac_t""$AWK" 1>&6    echo "$as_me:1203: result: $AWK" >&5
1204    echo "${ECHO_T}$AWK" >&6
1205  else  else
1206    echo "$ac_t""no" 1>&6    echo "$as_me:1206: result: no" >&5
1207    echo "${ECHO_T}no" >&6
1208  fi  fi
1209    
1210  test -n "$AWK" && break    test -n "$AWK" && break
1211  done  done
1212    
1213  echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6  echo "$as_me:1213: checking whether ${MAKE-make} sets \${MAKE}" >&5
1214  echo "configure:837: checking whether ${MAKE-make} sets \${MAKE}" >&5  echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1215  set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`  set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1216  if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then  if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1217    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
1218  else  else
1219    cat > conftestmake <<\EOF    cat >conftest.make <<\EOF
1220  all:  all:
1221          @echo 'ac_maketemp="${MAKE}"'          @echo 'ac_maketemp="${MAKE}"'
1222  EOF  EOF
1223  # GNU make sometimes prints "make[1]: Entering...", which would confuse us.  # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1224  eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`  eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1225  if test -n "$ac_maketemp"; then  if test -n "$ac_maketemp"; then
1226    eval ac_cv_prog_make_${ac_make}_set=yes    eval ac_cv_prog_make_${ac_make}_set=yes
1227  else  else
1228    eval ac_cv_prog_make_${ac_make}_set=no    eval ac_cv_prog_make_${ac_make}_set=no
1229  fi  fi
1230  rm -f conftestmake  rm -f conftest.make
1231  fi  fi
1232  if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then  if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1233    echo "$ac_t""yes" 1>&6    echo "$as_me:1233: result: yes" >&5
1234    echo "${ECHO_T}yes" >&6
1235    SET_MAKE=    SET_MAKE=
1236  else  else
1237    echo "$ac_t""no" 1>&6    echo "$as_me:1237: result: no" >&5
1238    echo "${ECHO_T}no" >&6
1239    SET_MAKE="MAKE=${MAKE-make}"    SET_MAKE="MAKE=${MAKE-make}"
1240  fi  fi
1241    
1242  # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.  # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
1243  if test "${enable_dependency_tracking+set}" = set; then  if test "${enable_dependency_tracking+set}" = set; then
1244    enableval="$enable_dependency_tracking"    enableval="$enable_dependency_tracking"
   :  
 fi  
1245    
1246    fi;
1247  if test "x$enable_dependency_tracking" != xno; then  if test "x$enable_dependency_tracking" != xno; then
1248    am_depcomp="$ac_aux_dir/depcomp"    am_depcomp="$ac_aux_dir/depcomp"
1249    AMDEPBACKSLASH='\'    AMDEPBACKSLASH='\'
1250  fi  fi
1251    
   
1252  if test "x$enable_dependency_tracking" != xno; then  if test "x$enable_dependency_tracking" != xno; then
1253    AMDEP_TRUE=    AMDEP_TRUE=
1254    AMDEP_FALSE='#'    AMDEP_FALSE='#'
# Line 879  else Line 1257  else
1257    AMDEP_FALSE=    AMDEP_FALSE=
1258  fi  fi
1259    
   
   
   
1260  rm -f .deps 2>/dev/null  rm -f .deps 2>/dev/null
1261  mkdir .deps 2>/dev/null  mkdir .deps 2>/dev/null
1262  if test -d .deps; then  if test -d .deps; then
# Line 892  else Line 1267  else
1267  fi  fi
1268  rmdir .deps 2>/dev/null  rmdir .deps 2>/dev/null
1269    
   
1270  # test to see if srcdir already configured  # test to see if srcdir already configured
1271  if test "`CDPATH=:; cd $srcdir && pwd`" != "`pwd`" &&  if test "`CDPATH=:; cd $srcdir && pwd`" != "`pwd`" &&
1272     test -f $srcdir/config.status; then     test -f $srcdir/config.status; then
1273    { echo "configure: error: source directory already configured; run \"make distclean\" there first" 1>&2; exit 1; }    { { echo "$as_me:1273: error: source directory already configured; run \"make distclean\" there first" >&5
1274    echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1275       { (exit 1); exit 1; }; }
1276  fi  fi
1277    
1278  # Define the identity of the package.  # Define the identity of the package.
1279  PACKAGE=grub  PACKAGE=grub
1280  VERSION=0.90  VERSION=0.90
1281  cat >> confdefs.h <<EOF  
1282    cat >>confdefs.h <<EOF
1283  #define PACKAGE "$PACKAGE"  #define PACKAGE "$PACKAGE"
1284  EOF  EOF
1285    
1286  cat >> confdefs.h <<EOF  cat >>confdefs.h <<EOF
1287  #define VERSION "$VERSION"  #define VERSION "$VERSION"
1288  EOF  EOF
1289    
   
1290  # Autoconf 2.50 wants to disallow AM_ names.  We explicitly allow  # Autoconf 2.50 wants to disallow AM_ names.  We explicitly allow
1291  # the ones we care about.  # the ones we care about.
1292    
# Line 922  EOF Line 1298  EOF
1298  # requests that it be used.  This is a bit dumb.  # requests that it be used.  This is a bit dumb.
1299  : ${OBJEXT=o}  : ${OBJEXT=o}
1300    
   
1301  # Some tools Automake needs.  # Some tools Automake needs.
1302    
1303  ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}  ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
1304    
   
1305  AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}  AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1306    
   
1307  AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}  AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
1308    
   
1309  AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}  AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1310    
   
1311  MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}  MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1312    
   
1313  AMTAR=${AMTAR-"${am_missing_run}tar"}  AMTAR=${AMTAR-"${am_missing_run}tar"}
1314    
1315  install_sh=${install_sh-"$am_aux_dir/install-sh"}  install_sh=${install_sh-"$am_aux_dir/install-sh"}
# Line 949  INSTALL_STRIP_PROGRAM="\${SHELL} \$(inst Line 1319  INSTALL_STRIP_PROGRAM="\${SHELL} \$(inst
1319  # We need awk for the "check" target.  The system "awk" is bad on  # We need awk for the "check" target.  The system "awk" is bad on
1320  # some platforms.  # some platforms.
1321    
1322                                                        ac_config_headers="$ac_config_headers config.h"
     
   
   
   
1323    
1324  # Make sure we can run config.sub.  # Make sure we can run config.sub.
1325  if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :  $ac_config_sub sun4 >/dev/null 2>&1 ||
1326  else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }    { { echo "$as_me:1326: error: cannot run $ac_config_sub" >&5
1327  fi  echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1328       { (exit 1); exit 1; }; }
1329  echo $ac_n "checking host system type""... $ac_c" 1>&6  
1330  echo "configure:965: checking host system type" >&5  echo "$as_me:1330: checking build system type" >&5
1331    echo $ECHO_N "checking build system type... $ECHO_C" >&6
1332  host_alias=$host  if test "${ac_cv_build+set}" = set; then
1333  case "$host_alias" in    echo $ECHO_N "(cached) $ECHO_C" >&6
1334  NONE)  else
1335    case $nonopt in    ac_cv_build_alias=$build_alias
1336    NONE)  test -z "$ac_cv_build_alias" &&
1337      if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :    ac_cv_build_alias=`$ac_config_guess`
1338      else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }  test -z "$ac_cv_build_alias" &&
1339      fi ;;    { { echo "$as_me:1339: error: cannot guess build type; you must specify one" >&5
1340    *) host_alias=$nonopt ;;  echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1341    esac ;;     { (exit 1); exit 1; }; }
1342  esac  ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1343      { { echo "$as_me:1343: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1344  host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`  echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1345  host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`     { (exit 1); exit 1; }; }
1346  host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`  
1347  host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`  fi
1348  echo "$ac_t""$host" 1>&6  echo "$as_me:1348: result: $ac_cv_build" >&5
1349    echo "${ECHO_T}$ac_cv_build" >&6
1350    build=$ac_cv_build
1351    build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1352    build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1353    build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1354    
1355    echo "$as_me:1355: checking host system type" >&5
1356    echo $ECHO_N "checking host system type... $ECHO_C" >&6
1357    if test "${ac_cv_host+set}" = set; then
1358      echo $ECHO_N "(cached) $ECHO_C" >&6
1359    else
1360      ac_cv_host_alias=$host_alias
1361    test -z "$ac_cv_host_alias" &&
1362      ac_cv_host_alias=$ac_cv_build_alias
1363    ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1364      { { echo "$as_me:1364: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1365    echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1366       { (exit 1); exit 1; }; }
1367    
1368    fi
1369    echo "$as_me:1369: result: $ac_cv_host" >&5
1370    echo "${ECHO_T}$ac_cv_host" >&6
1371    host=$ac_cv_host
1372    host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1373    host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1374    host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1375    
1376  case "$host_cpu" in  case "$host_cpu" in
1377  i[3456]86) host_cpu=i386 ;;  i[3456]86) host_cpu=i386 ;;
1378  *) { echo "configure: error: unsupported CPU type" 1>&2; exit 1; } ;;  *) { { echo "$as_me:1378: error: unsupported CPU type" >&5
1379    echo "$as_me: error: unsupported CPU type" >&2;}
1380       { (exit 1); exit 1; }; } ;;
1381  esac  esac
1382    
   
   
   
1383  #  #
1384  # Options  # Options
1385  #  #
1386    
1387  echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6  echo "$as_me:1387: checking whether to enable maintainer-specific portions of Makefiles" >&5
1388  echo "configure:999: checking whether to enable maintainer-specific portions of Makefiles" >&5  echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1389      # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.      # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1390  if test "${enable_maintainer_mode+set}" = set; then  if test "${enable_maintainer_mode+set}" = set; then
1391    enableval="$enable_maintainer_mode"    enableval="$enable_maintainer_mode"
1392    USE_MAINTAINER_MODE=$enableval    USE_MAINTAINER_MODE=$enableval
1393  else  else
1394    USE_MAINTAINER_MODE=no    USE_MAINTAINER_MODE=no
1395  fi  fi;
1396      echo "$as_me:1396: result: $USE_MAINTAINER_MODE" >&5
1397    echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6  echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
     
1398    
1399  if test $USE_MAINTAINER_MODE = yes; then  if test $USE_MAINTAINER_MODE = yes; then
1400    MAINTAINER_MODE_TRUE=    MAINTAINER_MODE_TRUE=
# Line 1015  else Line 1404  else
1404    MAINTAINER_MODE_FALSE=    MAINTAINER_MODE_FALSE=
1405  fi  fi
1406    MAINT=$MAINTAINER_MODE_TRUE    MAINT=$MAINTAINER_MODE_TRUE
     
1407    
1408  if test "x$enable_maintainer_mode" = xyes; then  if test "x$enable_maintainer_mode" = xyes; then
1409    # Extract the first word of "perl", so it can be a program name with args.    # Extract the first word of "perl", so it can be a program name with args.
1410  set dummy perl; ac_word=$2  set dummy perl; ac_word=$2
1411  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo "$as_me:1411: checking for $ac_word" >&5
1412  echo "configure:1025: checking for $ac_word" >&5  echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1413  if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then  if test "${ac_cv_path_PERL+set}" = set; then
1414    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
1415  else  else
1416    case "$PERL" in    case $PERL in
1417    /*)    [\\/]* | ?:[\\/]*)
1418    ac_cv_path_PERL="$PERL" # Let the user override the test with a path.    ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
1419    ;;    ;;
   ?:/*)                    
   ac_cv_path_PERL="$PERL" # Let the user override the test with a dos path.  
   ;;  
1420    *)    *)
1421    IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"    ac_save_IFS=$IFS; IFS=$ac_path_separator
1422    ac_dummy="$PATH"  ac_dummy="$PATH"
1423    for ac_dir in $ac_dummy; do  for ac_dir in $ac_dummy; do
1424      test -z "$ac_dir" && ac_dir=.    IFS=$ac_save_IFS
1425      if test -f $ac_dir/$ac_word; then    test -z "$ac_dir" && ac_dir=.
1426        ac_cv_path_PERL="$ac_dir/$ac_word"    if $as_executable_p "$ac_dir/$ac_word"; then
1427        break     ac_cv_path_PERL="$ac_dir/$ac_word"
1428      fi     echo "$as_me:1428: found $ac_dir/$ac_word" >&5
1429    done     break
1430    IFS="$ac_save_ifs"  fi
1431    done
1432    
1433    ;;    ;;
1434  esac  esac
1435  fi  fi
1436  PERL="$ac_cv_path_PERL"  PERL=$ac_cv_path_PERL
1437    
1438  if test -n "$PERL"; then  if test -n "$PERL"; then
1439    echo "$ac_t""$PERL" 1>&6    echo "$as_me:1439: result: $PERL" >&5
1440    echo "${ECHO_T}$PERL" >&6
1441  else  else
1442    echo "$ac_t""no" 1>&6    echo "$as_me:1442: result: no" >&5
1443    echo "${ECHO_T}no" >&6
1444  fi  fi
1445    
1446    if test -z "$PERL"; then    if test -z "$PERL"; then
1447      { echo "configure: error: perl not found" 1>&2; exit 1; }      { { echo "$as_me:1447: error: perl not found" >&5
1448    echo "$as_me: error: perl not found" >&2;}
1449       { (exit 1); exit 1; }; }
1450    fi    fi
1451  fi  fi
1452    
# Line 1067  fi Line 1459  fi
1459  # Programs  # Programs
1460  #  #
1461    
1462  echo $ac_n "checking build system type""... $ac_c" 1>&6  if test -n "$ac_tool_prefix"; then
1463  echo "configure:1072: checking build system type" >&5    # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1464    set dummy ${ac_tool_prefix}gcc; ac_word=$2
1465    echo "$as_me:1465: checking for $ac_word" >&5
1466    echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1467    if test "${ac_cv_prog_CC+set}" = set; then
1468      echo $ECHO_N "(cached) $ECHO_C" >&6
1469    else
1470      if test -n "$CC"; then
1471      ac_cv_prog_CC="$CC" # Let the user override the test.
1472    else
1473      ac_save_IFS=$IFS; IFS=$ac_path_separator
1474    ac_dummy="$PATH"
1475    for ac_dir in $ac_dummy; do
1476      IFS=$ac_save_IFS
1477      test -z "$ac_dir" && ac_dir=.
1478      $as_executable_p "$ac_dir/$ac_word" || continue
1479    ac_cv_prog_CC="${ac_tool_prefix}gcc"
1480    echo "$as_me:1480: found $ac_dir/$ac_word" >&5
1481    break
1482    done
1483    
1484    fi
1485    fi
1486    CC=$ac_cv_prog_CC
1487    if test -n "$CC"; then
1488      echo "$as_me:1488: result: $CC" >&5
1489    echo "${ECHO_T}$CC" >&6
1490    else
1491      echo "$as_me:1491: result: no" >&5
1492    echo "${ECHO_T}no" >&6
1493    fi
1494    
1495  build_alias=$build  fi
1496  case "$build_alias" in  if test -z "$ac_cv_prog_CC"; then
1497  NONE)    ac_ct_CC=$CC
1498    case $nonopt in    # Extract the first word of "gcc", so it can be a program name with args.
1499    NONE) build_alias=$host_alias ;;  set dummy gcc; ac_word=$2
1500    *) build_alias=$nonopt ;;  echo "$as_me:1500: checking for $ac_word" >&5
1501    esac ;;  echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1502  esac  if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1503      echo $ECHO_N "(cached) $ECHO_C" >&6
1504    else
1505      if test -n "$ac_ct_CC"; then
1506      ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1507    else
1508      ac_save_IFS=$IFS; IFS=$ac_path_separator
1509    ac_dummy="$PATH"
1510    for ac_dir in $ac_dummy; do
1511      IFS=$ac_save_IFS
1512      test -z "$ac_dir" && ac_dir=.
1513      $as_executable_p "$ac_dir/$ac_word" || continue
1514    ac_cv_prog_ac_ct_CC="gcc"
1515    echo "$as_me:1515: found $ac_dir/$ac_word" >&5
1516    break
1517    done
1518    
1519  build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`  fi
1520  build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`  fi
1521  build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`  ac_ct_CC=$ac_cv_prog_ac_ct_CC
1522  build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`  if test -n "$ac_ct_CC"; then
1523  echo "$ac_t""$build" 1>&6    echo "$as_me:1523: result: $ac_ct_CC" >&5
1524    echo "${ECHO_T}$ac_ct_CC" >&6
1525    else
1526      echo "$as_me:1526: result: no" >&5
1527    echo "${ECHO_T}no" >&6
1528    fi
1529    
1530  if test $host != $build; then    CC=$ac_ct_CC
   ac_tool_prefix=${host_alias}-  
1531  else  else
1532    ac_tool_prefix=    CC="$ac_cv_prog_CC"
1533  fi  fi
1534    
1535  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.  ac_ext=c
1536    ac_cpp='$CPP $CPPFLAGS'
1537    ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1538    ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1539    ac_compiler_gnu=$ac_cv_c_compiler_gnu
1540    if test -n "$ac_tool_prefix"; then
1541      # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1542  set dummy ${ac_tool_prefix}gcc; ac_word=$2  set dummy ${ac_tool_prefix}gcc; ac_word=$2
1543  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo "$as_me:1543: checking for $ac_word" >&5
1544  echo "configure:1098: checking for $ac_word" >&5  echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1545  if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then  if test "${ac_cv_prog_CC+set}" = set; then
1546    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
1547  else  else
1548    if test -n "$CC"; then    if test -n "$CC"; then
1549    ac_cv_prog_CC="$CC" # Let the user override the test.    ac_cv_prog_CC="$CC" # Let the user override the test.
1550  else  else
1551    IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"    ac_save_IFS=$IFS; IFS=$ac_path_separator
1552    ac_dummy="$PATH"  ac_dummy="$PATH"
1553    for ac_dir in $ac_dummy; do  for ac_dir in $ac_dummy; do
1554      test -z "$ac_dir" && ac_dir=.    IFS=$ac_save_IFS
1555      if test -f $ac_dir/$ac_word; then    test -z "$ac_dir" && ac_dir=.
1556        ac_cv_prog_CC="${ac_tool_prefix}gcc"    $as_executable_p "$ac_dir/$ac_word" || continue
1557        break  ac_cv_prog_CC="${ac_tool_prefix}gcc"
1558      fi  echo "$as_me:1558: found $ac_dir/$ac_word" >&5
1559    done  break
1560    IFS="$ac_save_ifs"  done
1561    test -z "$ac_cv_prog_CC" && ac_cv_prog_CC="gcc"  
1562  fi  fi
1563  fi  fi
1564  CC="$ac_cv_prog_CC"  CC=$ac_cv_prog_CC
1565  if test -n "$CC"; then  if test -n "$CC"; then
1566    echo "$ac_t""$CC" 1>&6    echo "$as_me:1566: result: $CC" >&5
1567    echo "${ECHO_T}$CC" >&6
1568  else  else
1569    echo "$ac_t""no" 1>&6    echo "$as_me:1569: result: no" >&5
1570    echo "${ECHO_T}no" >&6
1571  fi  fi
1572    
1573    fi
1574    if test -z "$ac_cv_prog_CC"; then
1575      ac_ct_CC=$CC
1576      # Extract the first word of "gcc", so it can be a program name with args.
1577    set dummy gcc; ac_word=$2
1578    echo "$as_me:1578: checking for $ac_word" >&5
1579    echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1580    if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1581      echo $ECHO_N "(cached) $ECHO_C" >&6
1582    else
1583      if test -n "$ac_ct_CC"; then
1584      ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1585    else
1586      ac_save_IFS=$IFS; IFS=$ac_path_separator
1587    ac_dummy="$PATH"
1588    for ac_dir in $ac_dummy; do
1589      IFS=$ac_save_IFS
1590      test -z "$ac_dir" && ac_dir=.
1591      $as_executable_p "$ac_dir/$ac_word" || continue
1592    ac_cv_prog_ac_ct_CC="gcc"
1593    echo "$as_me:1593: found $ac_dir/$ac_word" >&5
1594    break
1595    done
1596    
1597    fi
1598    fi
1599    ac_ct_CC=$ac_cv_prog_ac_ct_CC
1600    if test -n "$ac_ct_CC"; then
1601      echo "$as_me:1601: result: $ac_ct_CC" >&5
1602    echo "${ECHO_T}$ac_ct_CC" >&6
1603    else
1604      echo "$as_me:1604: result: no" >&5
1605    echo "${ECHO_T}no" >&6
1606    fi
1607    
1608  # Extract the first word of "gcc", so it can be a program name with args.    CC=$ac_ct_CC
1609  set dummy gcc; ac_word=$2  else
1610  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6    CC="$ac_cv_prog_CC"
1611  echo "configure:1130: checking for $ac_word" >&5  fi
1612  if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then  
1613    echo $ac_n "(cached) $ac_c" 1>&6  if test -z "$CC"; then
1614      if test -n "$ac_tool_prefix"; then
1615      # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1616    set dummy ${ac_tool_prefix}cc; ac_word=$2
1617    echo "$as_me:1617: checking for $ac_word" >&5
1618    echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1619    if test "${ac_cv_prog_CC+set}" = set; then
1620      echo $ECHO_N "(cached) $ECHO_C" >&6
1621  else  else
1622    if test -n "$CC"; then    if test -n "$CC"; then
1623    ac_cv_prog_CC="$CC" # Let the user override the test.    ac_cv_prog_CC="$CC" # Let the user override the test.
1624  else  else
1625    IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"    ac_save_IFS=$IFS; IFS=$ac_path_separator
1626    ac_dummy="$PATH"  ac_dummy="$PATH"
1627    for ac_dir in $ac_dummy; do  for ac_dir in $ac_dummy; do
1628      test -z "$ac_dir" && ac_dir=.    IFS=$ac_save_IFS
1629      if test -f $ac_dir/$ac_word; then    test -z "$ac_dir" && ac_dir=.
1630        ac_cv_prog_CC="gcc"    $as_executable_p "$ac_dir/$ac_word" || continue
1631        break  ac_cv_prog_CC="${ac_tool_prefix}cc"
1632      fi  echo "$as_me:1632: found $ac_dir/$ac_word" >&5
1633    done  break
1634    IFS="$ac_save_ifs"  done
1635    
1636  fi  fi
1637  fi  fi
1638  CC="$ac_cv_prog_CC"  CC=$ac_cv_prog_CC
1639  if test -n "$CC"; then  if test -n "$CC"; then
1640    echo "$ac_t""$CC" 1>&6    echo "$as_me:1640: result: $CC" >&5
1641    echo "${ECHO_T}$CC" >&6
1642    else
1643      echo "$as_me:1643: result: no" >&5
1644    echo "${ECHO_T}no" >&6
1645    fi
1646    
1647    fi
1648    if test -z "$ac_cv_prog_CC"; then
1649      ac_ct_CC=$CC
1650      # Extract the first word of "cc", so it can be a program name with args.
1651    set dummy cc; ac_word=$2
1652    echo "$as_me:1652: checking for $ac_word" >&5
1653    echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1654    if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1655      echo $ECHO_N "(cached) $ECHO_C" >&6
1656    else
1657      if test -n "$ac_ct_CC"; then
1658      ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1659    else
1660      ac_save_IFS=$IFS; IFS=$ac_path_separator
1661    ac_dummy="$PATH"
1662    for ac_dir in $ac_dummy; do
1663      IFS=$ac_save_IFS
1664      test -z "$ac_dir" && ac_dir=.
1665      $as_executable_p "$ac_dir/$ac_word" || continue
1666    ac_cv_prog_ac_ct_CC="cc"
1667    echo "$as_me:1667: found $ac_dir/$ac_word" >&5
1668    break
1669    done
1670    
1671    fi
1672    fi
1673    ac_ct_CC=$ac_cv_prog_ac_ct_CC
1674    if test -n "$ac_ct_CC"; then
1675      echo "$as_me:1675: result: $ac_ct_CC" >&5
1676    echo "${ECHO_T}$ac_ct_CC" >&6
1677    else
1678      echo "$as_me:1678: result: no" >&5
1679    echo "${ECHO_T}no" >&6
1680    fi
1681    
1682      CC=$ac_ct_CC
1683  else  else
1684    echo "$ac_t""no" 1>&6    CC="$ac_cv_prog_CC"
1685  fi  fi
1686    
1687    fi
1688  if test -z "$CC"; then  if test -z "$CC"; then
1689    # Extract the first word of "cc", so it can be a program name with args.    # Extract the first word of "cc", so it can be a program name with args.
1690  set dummy cc; ac_word=$2  set dummy cc; ac_word=$2
1691  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo "$as_me:1691: checking for $ac_word" >&5
1692  echo "configure:1160: checking for $ac_word" >&5  echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1693  if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then  if test "${ac_cv_prog_CC+set}" = set; then
1694    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
1695  else  else
1696    if test -n "$CC"; then    if test -n "$CC"; then
1697    ac_cv_prog_CC="$CC" # Let the user override the test.    ac_cv_prog_CC="$CC" # Let the user override the test.
1698  else  else
   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"  
1699    ac_prog_rejected=no    ac_prog_rejected=no
1700    ac_dummy="$PATH"    ac_save_IFS=$IFS; IFS=$ac_path_separator
1701    for ac_dir in $ac_dummy; do  ac_dummy="$PATH"
1702      test -z "$ac_dir" && ac_dir=.  for ac_dir in $ac_dummy; do
1703      if test -f $ac_dir/$ac_word; then    IFS=$ac_save_IFS
1704        if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then    test -z "$ac_dir" && ac_dir=.
1705          ac_prog_rejected=yes    $as_executable_p "$ac_dir/$ac_word" || continue
1706          continue  if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1707        fi    ac_prog_rejected=yes
1708        ac_cv_prog_CC="cc"    continue
1709        break  fi
1710      fi  ac_cv_prog_CC="cc"
1711    done  echo "$as_me:1711: found $ac_dir/$ac_word" >&5
1712    IFS="$ac_save_ifs"  break
1713    done
1714    
1715  if test $ac_prog_rejected = yes; then  if test $ac_prog_rejected = yes; then
1716    # We found a bogon in the path, so make sure we never use it.    # We found a bogon in the path, so make sure we never use it.
1717    set dummy $ac_cv_prog_CC    set dummy $ac_cv_prog_CC
1718    shift    shift
1719    if test $# -gt 0; then    if test $# != 0; then
1720      # We chose a different compiler from the bogus one.      # We chose a different compiler from the bogus one.
1721      # However, it has the same basename, so the bogon will be chosen      # However, it has the same basename, so the bogon will be chosen
1722      # first if we set CC to just the basename; use the full file name.      # first if we set CC to just the basename; use the full file name.
1723      shift      shift
1724      set dummy "$ac_dir/$ac_word" "$@"      set dummy "$ac_dir/$ac_word" ${1+"$@"}
1725      shift      shift
1726      ac_cv_prog_CC="$@"      ac_cv_prog_CC="$@"
1727    fi    fi
1728  fi  fi
1729  fi  fi
1730  fi  fi
1731  CC="$ac_cv_prog_CC"  CC=$ac_cv_prog_CC
1732  if test -n "$CC"; then  if test -n "$CC"; then
1733    echo "$ac_t""$CC" 1>&6    echo "$as_me:1733: result: $CC" >&5
1734    echo "${ECHO_T}$CC" >&6
1735  else  else
1736    echo "$ac_t""no" 1>&6    echo "$as_me:1736: result: no" >&5
1737    echo "${ECHO_T}no" >&6
1738  fi  fi
1739    
1740    if test -z "$CC"; then  fi
1741      case "`uname -s`" in  if test -z "$CC"; then
1742      *win32* | *WIN32*)    if test -n "$ac_tool_prefix"; then
1743        # Extract the first word of "cl", so it can be a program name with args.    for ac_prog in cl
1744  set dummy cl; ac_word=$2    do
1745  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6      # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1746  echo "configure:1211: checking for $ac_word" >&5  set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1747  if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then  echo "$as_me:1747: checking for $ac_word" >&5
1748    echo $ac_n "(cached) $ac_c" 1>&6  echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1749    if test "${ac_cv_prog_CC+set}" = set; then
1750      echo $ECHO_N "(cached) $ECHO_C" >&6
1751  else  else
1752    if test -n "$CC"; then    if test -n "$CC"; then
1753    ac_cv_prog_CC="$CC" # Let the user override the test.    ac_cv_prog_CC="$CC" # Let the user override the test.
1754  else  else
1755    IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"    ac_save_IFS=$IFS; IFS=$ac_path_separator
1756    ac_dummy="$PATH"  ac_dummy="$PATH"
1757    for ac_dir in $ac_dummy; do  for ac_dir in $ac_dummy; do
1758      test -z "$ac_dir" && ac_dir=.    IFS=$ac_save_IFS
1759      if test -f $ac_dir/$ac_word; then    test -z "$ac_dir" && ac_dir=.
1760        ac_cv_prog_CC="cl"    $as_executable_p "$ac_dir/$ac_word" || continue
1761        break  ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1762      fi  echo "$as_me:1762: found $ac_dir/$ac_word" >&5
1763    done  break
1764    IFS="$ac_save_ifs"  done
1765    
1766  fi  fi
1767  fi  fi
1768  CC="$ac_cv_prog_CC"  CC=$ac_cv_prog_CC
1769  if test -n "$CC"; then  if test -n "$CC"; then
1770    echo "$ac_t""$CC" 1>&6    echo "$as_me:1770: result: $CC" >&5
1771    echo "${ECHO_T}$CC" >&6
1772  else  else
1773    echo "$ac_t""no" 1>&6    echo "$as_me:1773: result: no" >&5
1774    echo "${ECHO_T}no" >&6
1775  fi  fi
1776   ;;  
1777      esac      test -n "$CC" && break
1778    fi    done
   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }  
1779  fi  fi
1780    if test -z "$CC"; then
1781      ac_ct_CC=$CC
1782      for ac_prog in cl
1783    do
1784      # Extract the first word of "$ac_prog", so it can be a program name with args.
1785    set dummy $ac_prog; ac_word=$2
1786    echo "$as_me:1786: checking for $ac_word" >&5
1787    echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1788    if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1789      echo $ECHO_N "(cached) $ECHO_C" >&6
1790    else
1791      if test -n "$ac_ct_CC"; then
1792      ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1793    else
1794      ac_save_IFS=$IFS; IFS=$ac_path_separator
1795    ac_dummy="$PATH"
1796    for ac_dir in $ac_dummy; do
1797      IFS=$ac_save_IFS
1798      test -z "$ac_dir" && ac_dir=.
1799      $as_executable_p "$ac_dir/$ac_word" || continue
1800    ac_cv_prog_ac_ct_CC="$ac_prog"
1801    echo "$as_me:1801: found $ac_dir/$ac_word" >&5
1802    break
1803    done
1804    
1805  echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6  fi
1806  echo "configure:1243: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5  fi
1807    ac_ct_CC=$ac_cv_prog_ac_ct_CC
1808    if test -n "$ac_ct_CC"; then
1809      echo "$as_me:1809: result: $ac_ct_CC" >&5
1810    echo "${ECHO_T}$ac_ct_CC" >&6
1811    else
1812      echo "$as_me:1812: result: no" >&5
1813    echo "${ECHO_T}no" >&6
1814    fi
1815    
1816  ac_ext=c    test -n "$ac_ct_CC" && break
1817  # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.  done
 ac_cpp='$CPP $CPPFLAGS'  
 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'  
 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'  
 cross_compiling=$ac_cv_prog_cc_cross  
1818    
1819  cat > conftest.$ac_ext << EOF    CC=$ac_ct_CC
1820    fi
1821    
1822    fi
1823    
1824    test -z "$CC" && { { echo "$as_me:1824: error: no acceptable cc found in \$PATH" >&5
1825    echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1826       { (exit 1); exit 1; }; }
1827    
1828    # Provide some information about the compiler.
1829    echo "$as_me:1829:" \
1830         "checking for C compiler version" >&5
1831    ac_compiler=`set X $ac_compile; echo $2`
1832    { (eval echo "$as_me:1832: \"$ac_compiler --version </dev/null >&5\"") >&5
1833      (eval $ac_compiler --version </dev/null >&5) 2>&5
1834      ac_status=$?
1835      echo "$as_me:1835: \$? = $ac_status" >&5
1836      (exit $ac_status); }
1837    { (eval echo "$as_me:1837: \"$ac_compiler -v </dev/null >&5\"") >&5
1838      (eval $ac_compiler -v </dev/null >&5) 2>&5
1839      ac_status=$?
1840      echo "$as_me:1840: \$? = $ac_status" >&5
1841      (exit $ac_status); }
1842    { (eval echo "$as_me:1842: \"$ac_compiler -V </dev/null >&5\"") >&5
1843      (eval $ac_compiler -V </dev/null >&5) 2>&5
1844      ac_status=$?
1845      echo "$as_me:1845: \$? = $ac_status" >&5
1846      (exit $ac_status); }
1847    
1848  #line 1254 "configure"  cat >conftest.$ac_ext <<_ACEOF
1849    #line 1849 "configure"
1850  #include "confdefs.h"  #include "confdefs.h"
1851    
1852  main(){return(0);}  int
1853  EOF  main ()
1854  if { (eval echo configure:1259: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  {
1855    ac_cv_prog_cc_works=yes  
1856    # If we can't run a trivial program, we are probably using a cross compiler.    ;
1857    if (./conftest; exit) 2>/dev/null; then    return 0;
1858      ac_cv_prog_cc_cross=no  }
1859    _ACEOF
1860    ac_clean_files_save=$ac_clean_files
1861    ac_clean_files="$ac_clean_files a.out a.exe"
1862    # Try to create an executable without -o first, disregard a.out.
1863    # It will help us diagnose broken compilers, and finding out an intuition
1864    # of exeext.
1865    echo "$as_me:1865: checking for C compiler default output" >&5
1866    echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1867    ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1868    if { (eval echo "$as_me:1868: \"$ac_link_default\"") >&5
1869      (eval $ac_link_default) 2>&5
1870      ac_status=$?
1871      echo "$as_me:1871: \$? = $ac_status" >&5
1872      (exit $ac_status); }; then
1873      # Find the output, starting from the most likely.  This scheme is
1874    # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1875    # resort.
1876    for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1877                    ls a.out conftest 2>/dev/null;
1878                    ls a.* conftest.* 2>/dev/null`; do
1879      case $ac_file in
1880        *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1881        a.out ) # We found the default executable, but exeext='' is most
1882                # certainly right.
1883                break;;
1884        *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1885              # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1886              export ac_cv_exeext
1887              break;;
1888        * ) break;;
1889      esac
1890    done
1891    else
1892      echo "$as_me: failed program was:" >&5
1893    cat conftest.$ac_ext >&5
1894    { { echo "$as_me:1894: error: C compiler cannot create executables" >&5
1895    echo "$as_me: error: C compiler cannot create executables" >&2;}
1896       { (exit 77); exit 77; }; }
1897    fi
1898    
1899    ac_exeext=$ac_cv_exeext
1900    echo "$as_me:1900: result: $ac_file" >&5
1901    echo "${ECHO_T}$ac_file" >&6
1902    
1903    # Check the compiler produces executables we can run.  If not, either
1904    # the compiler is broken, or we cross compile.
1905    echo "$as_me:1905: checking whether the C compiler works" >&5
1906    echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1907    # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1908    # If not cross compiling, check that we can run a simple program.
1909    if test "$cross_compiling" != yes; then
1910      if { ac_try='./$ac_file'
1911      { (eval echo "$as_me:1911: \"$ac_try\"") >&5
1912      (eval $ac_try) 2>&5
1913      ac_status=$?
1914      echo "$as_me:1914: \$? = $ac_status" >&5
1915      (exit $ac_status); }; }; then
1916        cross_compiling=no
1917    else    else
1918      ac_cv_prog_cc_cross=yes      if test "$cross_compiling" = maybe; then
1919            cross_compiling=yes
1920        else
1921            { { echo "$as_me:1921: error: cannot run C compiled programs.
1922    If you meant to cross compile, use \`--host'." >&5
1923    echo "$as_me: error: cannot run C compiled programs.
1924    If you meant to cross compile, use \`--host'." >&2;}
1925       { (exit 1); exit 1; }; }
1926        fi
1927    fi    fi
 else  
   echo "configure: failed program was:" >&5  
   cat conftest.$ac_ext >&5  
   ac_cv_prog_cc_works=no  
1928  fi  fi
1929  rm -fr conftest*  echo "$as_me:1929: result: yes" >&5
1930  ac_ext=c  echo "${ECHO_T}yes" >&6
1931  # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.  
1932  ac_cpp='$CPP $CPPFLAGS'  rm -f a.out a.exe conftest$ac_cv_exeext
1933  ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'  ac_clean_files=$ac_clean_files_save
1934  ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'  # Check the compiler produces executables we can run.  If not, either
1935  cross_compiling=$ac_cv_prog_cc_cross  # the compiler is broken, or we cross compile.
1936    echo "$as_me:1936: checking whether we are cross compiling" >&5
1937  echo "$ac_t""$ac_cv_prog_cc_works" 1>&6  echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1938  if test $ac_cv_prog_cc_works = no; then  echo "$as_me:1938: result: $cross_compiling" >&5
1939    { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }  echo "${ECHO_T}$cross_compiling" >&6
1940  fi  
1941  echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6  echo "$as_me:1941: checking for executable suffix" >&5
1942  echo "configure:1285: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5  echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1943  echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6  if { (eval echo "$as_me:1943: \"$ac_link\"") >&5
1944  cross_compiling=$ac_cv_prog_cc_cross    (eval $ac_link) 2>&5
1945      ac_status=$?
1946  echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6    echo "$as_me:1946: \$? = $ac_status" >&5
1947  echo "configure:1290: checking whether we are using GNU C" >&5    (exit $ac_status); }; then
1948  if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then    # If both `conftest.exe' and `conftest' are `present' (well, observable)
1949    echo $ac_n "(cached) $ac_c" 1>&6  # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1950  else  # work properly (i.e., refer to `conftest.exe'), while it won't with
1951    cat > conftest.c <<EOF  # `rm'.
1952  #ifdef __GNUC__  for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1953    yes;    case $ac_file in
1954  #endif      *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1955  EOF      *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1956  if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1299: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then            export ac_cv_exeext
1957    ac_cv_prog_gcc=yes            break;;
1958        * ) break;;
1959      esac
1960    done
1961  else  else
1962    ac_cv_prog_gcc=no    { { echo "$as_me:1962: error: cannot compute EXEEXT: cannot compile and link" >&5
1963  fi  echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1964  fi     { (exit 1); exit 1; }; }
1965    fi
1966    
1967    rm -f conftest$ac_cv_exeext
1968    echo "$as_me:1968: result: $ac_cv_exeext" >&5
1969    echo "${ECHO_T}$ac_cv_exeext" >&6
1970    
1971    rm -f conftest.$ac_ext
1972    EXEEXT=$ac_cv_exeext
1973    ac_exeext=$EXEEXT
1974    echo "$as_me:1974: checking for object suffix" >&5
1975    echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1976    if test "${ac_cv_objext+set}" = set; then
1977      echo $ECHO_N "(cached) $ECHO_C" >&6
1978    else
1979      cat >conftest.$ac_ext <<_ACEOF
1980    #line 1980 "configure"
1981    #include "confdefs.h"
1982    
1983  echo "$ac_t""$ac_cv_prog_gcc" 1>&6  int
1984    main ()
1985    {
1986    
1987  if test $ac_cv_prog_gcc = yes; then    ;
1988    GCC=yes    return 0;
1989    }
1990    _ACEOF
1991    rm -f conftest.o conftest.obj
1992    if { (eval echo "$as_me:1992: \"$ac_compile\"") >&5
1993      (eval $ac_compile) 2>&5
1994      ac_status=$?
1995      echo "$as_me:1995: \$? = $ac_status" >&5
1996      (exit $ac_status); }; then
1997      for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1998      case $ac_file in
1999        *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
2000        *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2001           break;;
2002      esac
2003    done
2004  else  else
2005    GCC=    echo "$as_me: failed program was:" >&5
2006  fi  cat conftest.$ac_ext >&5
2007    { { echo "$as_me:2007: error: cannot compute OBJEXT: cannot compile" >&5
2008    echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
2009       { (exit 1); exit 1; }; }
2010    fi
2011    
2012    rm -f conftest.$ac_cv_objext conftest.$ac_ext
2013    fi
2014    echo "$as_me:2014: result: $ac_cv_objext" >&5
2015    echo "${ECHO_T}$ac_cv_objext" >&6
2016    OBJEXT=$ac_cv_objext
2017    ac_objext=$OBJEXT
2018    echo "$as_me:2018: checking whether we are using the GNU C compiler" >&5
2019    echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2020    if test "${ac_cv_c_compiler_gnu+set}" = set; then
2021      echo $ECHO_N "(cached) $ECHO_C" >&6
2022    else
2023      cat >conftest.$ac_ext <<_ACEOF
2024    #line 2024 "configure"
2025    #include "confdefs.h"
2026    
2027  ac_test_CFLAGS="${CFLAGS+set}"  int
2028  ac_save_CFLAGS="$CFLAGS"  main ()
2029  CFLAGS=  {
2030  echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6  #ifndef __GNUC__
2031  echo "configure:1318: checking whether ${CC-cc} accepts -g" >&5         choke me
2032  if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then  #endif
2033    echo $ac_n "(cached) $ac_c" 1>&6  
2034      ;
2035      return 0;
2036    }
2037    _ACEOF
2038    rm -f conftest.$ac_objext
2039    if { (eval echo "$as_me:2039: \"$ac_compile\"") >&5
2040      (eval $ac_compile) 2>&5
2041      ac_status=$?
2042      echo "$as_me:2042: \$? = $ac_status" >&5
2043      (exit $ac_status); } &&
2044             { ac_try='test -s conftest.$ac_objext'
2045      { (eval echo "$as_me:2045: \"$ac_try\"") >&5
2046      (eval $ac_try) 2>&5
2047      ac_status=$?
2048      echo "$as_me:2048: \$? = $ac_status" >&5
2049      (exit $ac_status); }; }; then
2050      ac_compiler_gnu=yes
2051    else
2052      echo "$as_me: failed program was:" >&5
2053    cat conftest.$ac_ext >&5
2054    ac_compiler_gnu=no
2055    fi
2056    rm -f conftest.$ac_objext conftest.$ac_ext
2057    ac_cv_c_compiler_gnu=$ac_compiler_gnu
2058    
2059    fi
2060    echo "$as_me:2060: result: $ac_cv_c_compiler_gnu" >&5
2061    echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2062    GCC=`test $ac_compiler_gnu = yes && echo yes`
2063    ac_test_CFLAGS=${CFLAGS+set}
2064    ac_save_CFLAGS=$CFLAGS
2065    CFLAGS="-g"
2066    echo "$as_me:2066: checking whether $CC accepts -g" >&5
2067    echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2068    if test "${ac_cv_prog_cc_g+set}" = set; then
2069      echo $ECHO_N "(cached) $ECHO_C" >&6
2070  else  else
2071    echo 'void f(){}' > conftest.c    cat >conftest.$ac_ext <<_ACEOF
2072  if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then  #line 2072 "configure"
2073    #include "confdefs.h"
2074    
2075    int
2076    main ()
2077    {
2078    
2079      ;
2080      return 0;
2081    }
2082    _ACEOF
2083    rm -f conftest.$ac_objext
2084    if { (eval echo "$as_me:2084: \"$ac_compile\"") >&5
2085      (eval $ac_compile) 2>&5
2086      ac_status=$?
2087      echo "$as_me:2087: \$? = $ac_status" >&5
2088      (exit $ac_status); } &&
2089             { ac_try='test -s conftest.$ac_objext'
2090      { (eval echo "$as_me:2090: \"$ac_try\"") >&5
2091      (eval $ac_try) 2>&5
2092      ac_status=$?
2093      echo "$as_me:2093: \$? = $ac_status" >&5
2094      (exit $ac_status); }; }; then
2095    ac_cv_prog_cc_g=yes    ac_cv_prog_cc_g=yes
2096  else  else
2097    ac_cv_prog_cc_g=no    echo "$as_me: failed program was:" >&5
2098    cat conftest.$ac_ext >&5
2099    ac_cv_prog_cc_g=no
2100  fi  fi
2101  rm -f conftest*  rm -f conftest.$ac_objext conftest.$ac_ext
   
2102  fi  fi
2103    echo "$as_me:2103: result: $ac_cv_prog_cc_g" >&5
2104  echo "$ac_t""$ac_cv_prog_cc_g" 1>&6  echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2105  if test "$ac_test_CFLAGS" = set; then  if test "$ac_test_CFLAGS" = set; then
2106    CFLAGS="$ac_save_CFLAGS"    CFLAGS=$ac_save_CFLAGS
2107  elif test $ac_cv_prog_cc_g = yes; then  elif test $ac_cv_prog_cc_g = yes; then
2108    if test "$GCC" = yes; then    if test "$GCC" = yes; then
2109      CFLAGS="-g -O2"      CFLAGS="-g -O2"
# Line 1344  else Line 2117  else
2117      CFLAGS=      CFLAGS=
2118    fi    fi
2119  fi  fi
2120    # Some people use a C++ compiler to compile C.  Since we use `exit',
2121    # in C++ we need to declare it.  In case someone uses the same compiler
2122    # for both compiling C and C++ we need to have the C++ compiler decide
2123    # the declaration of exit, since it's the most demanding environment.
2124    cat >conftest.$ac_ext <<_ACEOF
2125    #ifndef __cplusplus
2126      choke me
2127    #endif
2128    _ACEOF
2129    rm -f conftest.$ac_objext
2130    if { (eval echo "$as_me:2130: \"$ac_compile\"") >&5
2131      (eval $ac_compile) 2>&5
2132      ac_status=$?
2133      echo "$as_me:2133: \$? = $ac_status" >&5
2134      (exit $ac_status); } &&
2135             { ac_try='test -s conftest.$ac_objext'
2136      { (eval echo "$as_me:2136: \"$ac_try\"") >&5
2137      (eval $ac_try) 2>&5
2138      ac_status=$?
2139      echo "$as_me:2139: \$? = $ac_status" >&5
2140      (exit $ac_status); }; }; then
2141      for ac_declaration in \
2142       ''\
2143       '#include <stdlib.h>' \
2144       'extern "C" void std::exit (int) throw (); using std::exit;' \
2145       'extern "C" void std::exit (int); using std::exit;' \
2146       'extern "C" void exit (int) throw ();' \
2147       'extern "C" void exit (int);' \
2148       'void exit (int);'
2149    do
2150      cat >conftest.$ac_ext <<_ACEOF
2151    #line 2151 "configure"
2152    #include "confdefs.h"
2153    #include <stdlib.h>
2154    $ac_declaration
2155    int
2156    main ()
2157    {
2158    exit (42);
2159      ;
2160      return 0;
2161    }
2162    _ACEOF
2163    rm -f conftest.$ac_objext
2164    if { (eval echo "$as_me:2164: \"$ac_compile\"") >&5
2165      (eval $ac_compile) 2>&5
2166      ac_status=$?
2167      echo "$as_me:2167: \$? = $ac_status" >&5
2168      (exit $ac_status); } &&
2169             { ac_try='test -s conftest.$ac_objext'
2170      { (eval echo "$as_me:2170: \"$ac_try\"") >&5
2171      (eval $ac_try) 2>&5
2172      ac_status=$?
2173      echo "$as_me:2173: \$? = $ac_status" >&5
2174      (exit $ac_status); }; }; then
2175      :
2176    else
2177      echo "$as_me: failed program was:" >&5
2178    cat conftest.$ac_ext >&5
2179    continue
2180    fi
2181    rm -f conftest.$ac_objext conftest.$ac_ext
2182      cat >conftest.$ac_ext <<_ACEOF
2183    #line 2183 "configure"
2184    #include "confdefs.h"
2185    $ac_declaration
2186    int
2187    main ()
2188    {
2189    exit (42);
2190      ;
2191      return 0;
2192    }
2193    _ACEOF
2194    rm -f conftest.$ac_objext
2195    if { (eval echo "$as_me:2195: \"$ac_compile\"") >&5
2196      (eval $ac_compile) 2>&5
2197      ac_status=$?
2198      echo "$as_me:2198: \$? = $ac_status" >&5
2199      (exit $ac_status); } &&
2200             { ac_try='test -s conftest.$ac_objext'
2201      { (eval echo "$as_me:2201: \"$ac_try\"") >&5
2202      (eval $ac_try) 2>&5
2203      ac_status=$?
2204      echo "$as_me:2204: \$? = $ac_status" >&5
2205      (exit $ac_status); }; }; then
2206      break
2207    else
2208      echo "$as_me: failed program was:" >&5
2209    cat conftest.$ac_ext >&5
2210    fi
2211    rm -f conftest.$ac_objext conftest.$ac_ext
2212    done
2213    rm -f conftest*
2214    if test -n "$ac_declaration"; then
2215      echo '#ifdef __cplusplus' >>confdefs.h
2216      echo $ac_declaration      >>confdefs.h
2217      echo '#endif'             >>confdefs.h
2218    fi
2219    
2220    else
2221      echo "$as_me: failed program was:" >&5
2222    cat conftest.$ac_ext >&5
2223    fi
2224    rm -f conftest.$ac_objext conftest.$ac_ext
2225    ac_ext=c
2226    ac_cpp='$CPP $CPPFLAGS'
2227    ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2228    ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2229    ac_compiler_gnu=$ac_cv_c_compiler_gnu
2230    
2231    ac_config_commands="$ac_config_commands default-1"
2232    
2233  am_make=${MAKE-make}  am_make=${MAKE-make}
2234  cat > confinc << 'END'  cat > confinc << 'END'
# Line 1352  doit: Line 2236  doit:
2236          @echo done          @echo done
2237  END  END
2238  # If we don't find an include directive, just comment out the code.  # If we don't find an include directive, just comment out the code.
2239  echo $ac_n "checking for style of include used by $am_make""... $ac_c" 1>&6  echo "$as_me:2239: checking for style of include used by $am_make" >&5
2240  echo "configure:1357: checking for style of include used by $am_make" >&5  echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2241  am__include='#'  am__include='#'
2242  am__quote=  am__quote=
2243  _am_result=none  _am_result=none
# Line 1379  if test "$am__include" = "#"; then Line 2263  if test "$am__include" = "#"; then
2263     fi     fi
2264  fi  fi
2265    
2266    echo "$as_me:2266: result: $_am_result" >&5
2267  echo "$ac_t""$_am_result" 1>&6  echo "${ECHO_T}$_am_result" >&6
2268  rm -f confinc confmf  rm -f confinc confmf
2269    
   
2270  depcc="$CC"   am_compiler_list=  depcc="$CC"   am_compiler_list=
2271    
2272  echo $ac_n "checking dependency style of $depcc""... $ac_c" 1>&6  echo "$as_me:2272: checking dependency style of $depcc" >&5
2273  echo "configure:1391: checking dependency style of $depcc" >&5  echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2274  if eval "test \"`echo '$''{'am_cv_CC_dependencies_compiler_type'+set}'`\" = set"; then  if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2275    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
2276  else  else
2277    if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then    if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2278    # We make a subdir and do the tests there.  Otherwise we can end up    # We make a subdir and do the tests there.  Otherwise we can end up
# Line 1448  else Line 2331  else
2331  fi  fi
2332    
2333  fi  fi
2334    echo "$as_me:2334: result: $am_cv_CC_dependencies_compiler_type" >&5
2335  echo "$ac_t""$am_cv_CC_dependencies_compiler_type" 1>&6  echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2336  CCDEPMODE="depmode=$am_cv_CC_dependencies_compiler_type"  CCDEPMODE="depmode=$am_cv_CC_dependencies_compiler_type"
2337    
   
2338  # We need this for older versions of Autoconf.  # We need this for older versions of Autoconf.
2339    
2340  depcc="$CC"   am_compiler_list=  depcc="$CC"   am_compiler_list=
2341    
2342  echo $ac_n "checking dependency style of $depcc""... $ac_c" 1>&6  echo "$as_me:2342: checking dependency style of $depcc" >&5
2343  echo "configure:1462: checking dependency style of $depcc" >&5  echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2344  if eval "test \"`echo '$''{'am_cv_CC_dependencies_compiler_type'+set}'`\" = set"; then  if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2345    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
2346  else  else
2347    if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then    if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2348    # We make a subdir and do the tests there.  Otherwise we can end up    # We make a subdir and do the tests there.  Otherwise we can end up
# Line 1519  else Line 2401  else
2401  fi  fi
2402    
2403  fi  fi
2404    echo "$as_me:2404: result: $am_cv_CC_dependencies_compiler_type" >&5
2405  echo "$ac_t""$am_cv_CC_dependencies_compiler_type" 1>&6  echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2406  CCDEPMODE="depmode=$am_cv_CC_dependencies_compiler_type"  CCDEPMODE="depmode=$am_cv_CC_dependencies_compiler_type"
2407    
   
   
2408  AS="$CC"  AS="$CC"
2409    
   
2410  # Check whether --with-binutils or --without-binutils was given.  # Check whether --with-binutils or --without-binutils was given.
2411  if test "${with_binutils+set}" = set; then  if test "${with_binutils+set}" = set; then
2412    withval="$with_binutils"    withval="$with_binutils"
   :  
 fi  
2413    
2414    fi;
2415    
2416  if test "x$with_binutils" != x; then  if test "x$with_binutils" != x; then
2417    # Extract the first word of "ranlib", so it can be a program name with args.    # Extract the first word of "ranlib", so it can be a program name with args.
2418  set dummy ranlib; ac_word=$2  set dummy ranlib; ac_word=$2
2419  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo "$as_me:2419: checking for $ac_word" >&5
2420  echo "configure:1543: checking for $ac_word" >&5  echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2421  if eval "test \"`echo '$''{'ac_cv_path_RANLIB'+set}'`\" = set"; then  if test "${ac_cv_path_RANLIB+set}" = set; then
2422    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
2423  else  else
2424    case "$RANLIB" in    case $RANLIB in
2425    /*)    [\\/]* | ?:[\\/]*)
2426    ac_cv_path_RANLIB="$RANLIB" # Let the user override the test with a path.    ac_cv_path_RANLIB="$RANLIB" # Let the user override the test with a path.
2427    ;;    ;;
   ?:/*)                    
   ac_cv_path_RANLIB="$RANLIB" # Let the user override the test with a dos path.  
   ;;  
2428    *)    *)
2429    IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"    ac_save_IFS=$IFS; IFS=$ac_path_separator
2430    ac_dummy=""$with_binutils:$PATH""  ac_dummy=""$with_binutils:$PATH""
2431    for ac_dir in $ac_dummy; do  for ac_dir in $ac_dummy; do
2432      test -z "$ac_dir" && ac_dir=.    IFS=$ac_save_IFS
2433      if test -f $ac_dir/$ac_word; then    test -z "$ac_dir" && ac_dir=.
2434        ac_cv_path_RANLIB="$ac_dir/$ac_word"    if $as_executable_p "$ac_dir/$ac_word"; then
2435        break     ac_cv_path_RANLIB="$ac_dir/$ac_word"
2436      fi     echo "$as_me:2436: found $ac_dir/$ac_word" >&5
2437    done     break
2438    IFS="$ac_save_ifs"  fi
2439    done
2440    
2441    test -z "$ac_cv_path_RANLIB" && ac_cv_path_RANLIB=":"    test -z "$ac_cv_path_RANLIB" && ac_cv_path_RANLIB=":"
2442    ;;    ;;
2443  esac  esac
2444  fi  fi
2445  RANLIB="$ac_cv_path_RANLIB"  RANLIB=$ac_cv_path_RANLIB
2446    
2447  if test -n "$RANLIB"; then  if test -n "$RANLIB"; then
2448    echo "$ac_t""$RANLIB" 1>&6    echo "$as_me:2448: result: $RANLIB" >&5
2449    echo "${ECHO_T}$RANLIB" >&6
2450  else  else
2451    echo "$ac_t""no" 1>&6    echo "$as_me:2451: result: no" >&5
2452    echo "${ECHO_T}no" >&6
2453  fi  fi
2454    
2455  else  else
2456    # Extract the first word of "ranlib", so it can be a program name with args.    if test -n "$ac_tool_prefix"; then
2457  set dummy ranlib; ac_word=$2    # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2458  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2459  echo "configure:1580: checking for $ac_word" >&5  echo "$as_me:2459: checking for $ac_word" >&5
2460  if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then  echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2461    echo $ac_n "(cached) $ac_c" 1>&6  if test "${ac_cv_prog_RANLIB+set}" = set; then
2462      echo $ECHO_N "(cached) $ECHO_C" >&6
2463  else  else
2464    if test -n "$RANLIB"; then    if test -n "$RANLIB"; then
2465    ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.    ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2466  else  else
2467    IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"    ac_save_IFS=$IFS; IFS=$ac_path_separator
2468    ac_dummy="$PATH"  ac_dummy="$PATH"
2469    for ac_dir in $ac_dummy; do  for ac_dir in $ac_dummy; do
2470      test -z "$ac_dir" && ac_dir=.    IFS=$ac_save_IFS
2471      if test -f $ac_dir/$ac_word; then    test -z "$ac_dir" && ac_dir=.
2472        ac_cv_prog_RANLIB="ranlib"    $as_executable_p "$ac_dir/$ac_word" || continue
2473        break  ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2474      fi  echo "$as_me:2474: found $ac_dir/$ac_word" >&5
2475    done  break
2476    IFS="$ac_save_ifs"  done
2477    test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"  
2478  fi  fi
2479  fi  fi
2480  RANLIB="$ac_cv_prog_RANLIB"  RANLIB=$ac_cv_prog_RANLIB
2481  if test -n "$RANLIB"; then  if test -n "$RANLIB"; then
2482    echo "$ac_t""$RANLIB" 1>&6    echo "$as_me:2482: result: $RANLIB" >&5
2483    echo "${ECHO_T}$RANLIB" >&6
2484    else
2485      echo "$as_me:2485: result: no" >&5
2486    echo "${ECHO_T}no" >&6
2487    fi
2488    
2489    fi
2490    if test -z "$ac_cv_prog_RANLIB"; then
2491      ac_ct_RANLIB=$RANLIB
2492      # Extract the first word of "ranlib", so it can be a program name with args.
2493    set dummy ranlib; ac_word=$2
2494    echo "$as_me:2494: checking for $ac_word" >&5
2495    echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2496    if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2497      echo $ECHO_N "(cached) $ECHO_C" >&6
2498    else
2499      if test -n "$ac_ct_RANLIB"; then
2500      ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2501    else
2502      ac_save_IFS=$IFS; IFS=$ac_path_separator
2503    ac_dummy="$PATH"
2504    for ac_dir in $ac_dummy; do
2505      IFS=$ac_save_IFS
2506      test -z "$ac_dir" && ac_dir=.
2507      $as_executable_p "$ac_dir/$ac_word" || continue
2508    ac_cv_prog_ac_ct_RANLIB="ranlib"
2509    echo "$as_me:2509: found $ac_dir/$ac_word" >&5
2510    break
2511    done
2512    
2513      test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2514    fi
2515    fi
2516    ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2517    if test -n "$ac_ct_RANLIB"; then
2518      echo "$as_me:2518: result: $ac_ct_RANLIB" >&5
2519    echo "${ECHO_T}$ac_ct_RANLIB" >&6
2520    else
2521      echo "$as_me:2521: result: no" >&5
2522    echo "${ECHO_T}no" >&6
2523    fi
2524    
2525      RANLIB=$ac_ct_RANLIB
2526  else  else
2527    echo "$ac_t""no" 1>&6    RANLIB="$ac_cv_prog_RANLIB"
2528  fi  fi
2529    
2530  fi  fi
2531    
2532  # optimization flags  # optimization flags
2533  if test "x$ac_cv_prog_gcc" = xyes; then  if test "x$ac_cv_c_compiler_gnu" = xyes; then
2534    if test "x$default_CFLAGS" = xyes; then    if test "x$default_CFLAGS" = xyes; then
2535      CFLAGS="-g"      CFLAGS="-g"
2536      # If the user specify the directory for binutils, add the option `-B'.      # If the user specify the directory for binutils, add the option `-B'.
# Line 1615  if test "x$ac_cv_prog_gcc" = xyes; then Line 2539  if test "x$ac_cv_prog_gcc" = xyes; then
2539      fi      fi
2540      STAGE1_CFLAGS="-O2"      STAGE1_CFLAGS="-O2"
2541      GRUB_CFLAGS="-O2"      GRUB_CFLAGS="-O2"
2542      echo $ac_n "checking whether optimization for size works""... $ac_c" 1>&6      echo "$as_me:2542: checking whether optimization for size works" >&5
2543  echo "configure:1620: checking whether optimization for size works" >&5  echo $ECHO_N "checking whether optimization for size works... $ECHO_C" >&6
2544  if eval "test \"`echo '$''{'size_flag'+set}'`\" = set"; then  if test "${size_flag+set}" = set; then
2545    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
2546  else  else
2547      
2548        saved_CFLAGS=$CFLAGS        saved_CFLAGS=$CFLAGS
2549        CFLAGS="-Os -g"        CFLAGS="-Os -g"
2550        cat > conftest.$ac_ext <<EOF  
2551  #line 1628 "configure"  cat >conftest.$ac_ext <<_ACEOF
2552    #line 2552 "configure"
2553  #include "confdefs.h"  #include "confdefs.h"
2554    
2555  int main() {  int
2556    main ()
2557    {
2558    
2559  ; return 0; }    ;
2560  EOF    return 0;
2561  if { (eval echo configure:1635: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  }
2562    rm -rf conftest*  _ACEOF
2563    rm -f conftest.$ac_objext
2564    if { (eval echo "$as_me:2564: \"$ac_compile\"") >&5
2565      (eval $ac_compile) 2>&5
2566      ac_status=$?
2567      echo "$as_me:2567: \$? = $ac_status" >&5
2568      (exit $ac_status); } &&
2569             { ac_try='test -s conftest.$ac_objext'
2570      { (eval echo "$as_me:2570: \"$ac_try\"") >&5
2571      (eval $ac_try) 2>&5
2572      ac_status=$?
2573      echo "$as_me:2573: \$? = $ac_status" >&5
2574      (exit $ac_status); }; }; then
2575    size_flag=yes    size_flag=yes
2576  else  else
2577    echo "configure: failed program was:" >&5    echo "$as_me: failed program was:" >&5
2578    cat conftest.$ac_ext >&5  cat conftest.$ac_ext >&5
2579    rm -rf conftest*  size_flag=no
   size_flag=no  
2580  fi  fi
2581  rm -f conftest*  rm -f conftest.$ac_objext conftest.$ac_ext
2582        CFLAGS=$saved_CFLAGS        CFLAGS=$saved_CFLAGS
       
 fi  
2583    
2584  echo "$ac_t""$size_flag" 1>&6  fi
2585    echo "$as_me:2585: result: $size_flag" >&5
2586    echo "${ECHO_T}$size_flag" >&6
2587      if test "x$size_flag" = xyes; then      if test "x$size_flag" = xyes; then
2588        STAGE2_CFLAGS="-Os"        STAGE2_CFLAGS="-Os"
2589      else      else
# Line 1654  echo "$ac_t""$size_flag" 1>&6 Line 2592  echo "$ac_t""$size_flag" 1>&6
2592    fi    fi
2593  fi  fi
2594    
   
   
   
   
2595  # Enforce coding standards.  # Enforce coding standards.
2596  CPPFLAGS="$CPPFLAGS -Wall -Wmissing-prototypes -Wunused -Wshadow"  CPPFLAGS="$CPPFLAGS -Wall -Wmissing-prototypes -Wunused -Wshadow"
2597  CPPFLAGS="$CPPFLAGS -Wpointer-arith"  CPPFLAGS="$CPPFLAGS -Wpointer-arith"
2598    
2599  echo $ac_n "checking whether -Wundef works""... $ac_c" 1>&6  echo "$as_me:2599: checking whether -Wundef works" >&5
2600  echo "configure:1667: checking whether -Wundef works" >&5  echo $ECHO_N "checking whether -Wundef works... $ECHO_C" >&6
2601  if eval "test \"`echo '$''{'undef_flag'+set}'`\" = set"; then  if test "${undef_flag+set}" = set; then
2602    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
2603  else  else
2604      
2605    saved_CPPFLAGS=$CPPFLAGS    saved_CPPFLAGS=$CPPFLAGS
2606    CPPFLAGS="-Wundef"    CPPFLAGS="-Wundef"
2607    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
2608  #line 1675 "configure"  #line 2608 "configure"
2609  #include "confdefs.h"  #include "confdefs.h"
2610    
2611  int main() {  int
2612    main ()
2613    {
2614    
2615  ; return 0; }    ;
2616  EOF    return 0;
2617  if { (eval echo configure:1682: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  }
2618    rm -rf conftest*  _ACEOF
2619    rm -f conftest.$ac_objext
2620    if { (eval echo "$as_me:2620: \"$ac_compile\"") >&5
2621      (eval $ac_compile) 2>&5
2622      ac_status=$?
2623      echo "$as_me:2623: \$? = $ac_status" >&5
2624      (exit $ac_status); } &&
2625             { ac_try='test -s conftest.$ac_objext'
2626      { (eval echo "$as_me:2626: \"$ac_try\"") >&5
2627      (eval $ac_try) 2>&5
2628      ac_status=$?
2629      echo "$as_me:2629: \$? = $ac_status" >&5
2630      (exit $ac_status); }; }; then
2631    undef_flag=yes    undef_flag=yes
2632  else  else
2633    echo "configure: failed program was:" >&5    echo "$as_me: failed program was:" >&5
2634    cat conftest.$ac_ext >&5  cat conftest.$ac_ext >&5
2635    rm -rf conftest*  undef_flag=no
   undef_flag=no  
2636  fi  fi
2637  rm -f conftest*  rm -f conftest.$ac_objext conftest.$ac_ext
2638    CPPFLAGS=$saved_CPPFLAGS    CPPFLAGS=$saved_CPPFLAGS
2639    
2640  fi  fi
2641    echo "$as_me:2641: result: $undef_flag" >&5
2642  echo "$ac_t""$undef_flag" 1>&6  echo "${ECHO_T}$undef_flag" >&6
2643    
2644  # Force no alignment to save space.  # Force no alignment to save space.
2645  CPPFLAGS="$CPPFLAGS -malign-jumps=1 -malign-loops=1 -malign-functions=1"  CPPFLAGS="$CPPFLAGS -malign-jumps=1 -malign-loops=1 -malign-functions=1"
# Line 1704  fi Line 2651  fi
2651  if test "x$with_binutils" != x; then  if test "x$with_binutils" != x; then
2652    # Extract the first word of "objcopy", so it can be a program name with args.    # Extract the first word of "objcopy", so it can be a program name with args.
2653  set dummy objcopy; ac_word=$2  set dummy objcopy; ac_word=$2
2654  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo "$as_me:2654: checking for $ac_word" >&5
2655  echo "configure:1709: checking for $ac_word" >&5  echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2656  if eval "test \"`echo '$''{'ac_cv_path_OBJCOPY'+set}'`\" = set"; then  if test "${ac_cv_path_OBJCOPY+set}" = set; then
2657    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
2658  else  else
2659    case "$OBJCOPY" in    case $OBJCOPY in
2660    /*)    [\\/]* | ?:[\\/]*)
2661    ac_cv_path_OBJCOPY="$OBJCOPY" # Let the user override the test with a path.    ac_cv_path_OBJCOPY="$OBJCOPY" # Let the user override the test with a path.
2662    ;;    ;;
   ?:/*)                    
   ac_cv_path_OBJCOPY="$OBJCOPY" # Let the user override the test with a dos path.  
   ;;  
2663    *)    *)
2664    IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"    ac_save_IFS=$IFS; IFS=$ac_path_separator
2665    ac_dummy=""$with_binutils:$PATH""  ac_dummy=""$with_binutils:$PATH""
2666    for ac_dir in $ac_dummy; do  for ac_dir in $ac_dummy; do
2667      test -z "$ac_dir" && ac_dir=.    IFS=$ac_save_IFS
2668      if test -f $ac_dir/$ac_word; then    test -z "$ac_dir" && ac_dir=.
2669        ac_cv_path_OBJCOPY="$ac_dir/$ac_word"    if $as_executable_p "$ac_dir/$ac_word"; then
2670        break     ac_cv_path_OBJCOPY="$ac_dir/$ac_word"
2671      fi     echo "$as_me:2671: found $ac_dir/$ac_word" >&5
2672    done     break
2673    IFS="$ac_save_ifs"  fi
2674    done
2675    
2676    ;;    ;;
2677  esac  esac
2678  fi  fi
2679  OBJCOPY="$ac_cv_path_OBJCOPY"  OBJCOPY=$ac_cv_path_OBJCOPY
2680    
2681  if test -n "$OBJCOPY"; then  if test -n "$OBJCOPY"; then
2682    echo "$ac_t""$OBJCOPY" 1>&6    echo "$as_me:2682: result: $OBJCOPY" >&5
2683    echo "${ECHO_T}$OBJCOPY" >&6
2684  else  else
2685    echo "$ac_t""no" 1>&6    echo "$as_me:2685: result: no" >&5
2686    echo "${ECHO_T}no" >&6
2687  fi  fi
2688    
2689  else  else
2690      if test -n "$ac_tool_prefix"; then
2691    # Extract the first word of "${ac_tool_prefix}objcopy", so it can be a program name with args.    # Extract the first word of "${ac_tool_prefix}objcopy", so it can be a program name with args.
2692  set dummy ${ac_tool_prefix}objcopy; ac_word=$2  set dummy ${ac_tool_prefix}objcopy; ac_word=$2
2693  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo "$as_me:2693: checking for $ac_word" >&5
2694  echo "configure:1745: checking for $ac_word" >&5  echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2695  if eval "test \"`echo '$''{'ac_cv_prog_OBJCOPY'+set}'`\" = set"; then  if test "${ac_cv_prog_OBJCOPY+set}" = set; then
2696    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
2697  else  else
2698    if test -n "$OBJCOPY"; then    if test -n "$OBJCOPY"; then
2699    ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.    ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
2700  else  else
2701    IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"    ac_save_IFS=$IFS; IFS=$ac_path_separator
2702    ac_dummy="$PATH"  ac_dummy="$PATH"
2703    for ac_dir in $ac_dummy; do  for ac_dir in $ac_dummy; do
2704      test -z "$ac_dir" && ac_dir=.    IFS=$ac_save_IFS
2705      if test -f $ac_dir/$ac_word; then    test -z "$ac_dir" && ac_dir=.
2706        ac_cv_prog_OBJCOPY="${ac_tool_prefix}objcopy"    $as_executable_p "$ac_dir/$ac_word" || continue
2707        break  ac_cv_prog_OBJCOPY="${ac_tool_prefix}objcopy"
2708      fi  echo "$as_me:2708: found $ac_dir/$ac_word" >&5
2709    done  break
2710    IFS="$ac_save_ifs"  done
2711    test -z "$ac_cv_prog_OBJCOPY" && ac_cv_prog_OBJCOPY="objcopy"  
2712  fi  fi
2713  fi  fi
2714  OBJCOPY="$ac_cv_prog_OBJCOPY"  OBJCOPY=$ac_cv_prog_OBJCOPY
2715  if test -n "$OBJCOPY"; then  if test -n "$OBJCOPY"; then
2716    echo "$ac_t""$OBJCOPY" 1>&6    echo "$as_me:2716: result: $OBJCOPY" >&5
2717    echo "${ECHO_T}$OBJCOPY" >&6
2718  else  else
2719    echo "$ac_t""no" 1>&6    echo "$as_me:2719: result: no" >&5
2720    echo "${ECHO_T}no" >&6
2721  fi  fi
2722    
2723    fi
2724    if test -z "$ac_cv_prog_OBJCOPY"; then
2725      ac_ct_OBJCOPY=$OBJCOPY
2726      # Extract the first word of "objcopy", so it can be a program name with args.
2727    set dummy objcopy; ac_word=$2
2728    echo "$as_me:2728: checking for $ac_word" >&5
2729    echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2730    if test "${ac_cv_prog_ac_ct_OBJCOPY+set}" = set; then
2731      echo $ECHO_N "(cached) $ECHO_C" >&6
2732    else
2733      if test -n "$ac_ct_OBJCOPY"; then
2734      ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test.
2735    else
2736      ac_save_IFS=$IFS; IFS=$ac_path_separator
2737    ac_dummy="$PATH"
2738    for ac_dir in $ac_dummy; do
2739      IFS=$ac_save_IFS
2740      test -z "$ac_dir" && ac_dir=.
2741      $as_executable_p "$ac_dir/$ac_word" || continue
2742    ac_cv_prog_ac_ct_OBJCOPY="objcopy"
2743    echo "$as_me:2743: found $ac_dir/$ac_word" >&5
2744    break
2745    done
2746    
2747    fi
2748    fi
2749    ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY
2750    if test -n "$ac_ct_OBJCOPY"; then
2751      echo "$as_me:2751: result: $ac_ct_OBJCOPY" >&5
2752    echo "${ECHO_T}$ac_ct_OBJCOPY" >&6
2753    else
2754      echo "$as_me:2754: result: no" >&5
2755    echo "${ECHO_T}no" >&6
2756    fi
2757    
2758      OBJCOPY=$ac_ct_OBJCOPY
2759    else
2760      OBJCOPY="$ac_cv_prog_OBJCOPY"
2761    fi
2762    
2763  fi  fi
2764    
2765  # Defined in acinclude.m4.  # Defined in acinclude.m4.
2766    
2767  echo $ac_n "checking if C symbols get an underscore after compilation""... $ac_c" 1>&6  echo "$as_me:2767: checking if C symbols get an underscore after compilation" >&5
2768  echo "configure:1779: checking if C symbols get an underscore after compilation" >&5  echo $ECHO_N "checking if C symbols get an underscore after compilation... $ECHO_C" >&6
2769  if eval "test \"`echo '$''{'grub_cv_asm_uscore'+set}'`\" = set"; then  if test "${grub_cv_asm_uscore+set}" = set; then
2770    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
2771  else  else
2772    cat > conftest.c <<\EOF    cat > conftest.c <<\EOF
2773  int  int
# Line 1788  func (int *list) Line 2778  func (int *list)
2778  }  }
2779  EOF  EOF
2780    
2781  if { ac_try='${CC-cc} ${CFLAGS} -S conftest.c'; { (eval echo configure:1792: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } && test -s conftest.s; then  if { ac_try='${CC-cc} ${CFLAGS} -S conftest.c'
2782      { (eval echo "$as_me:2782: \"$ac_try\"") >&5
2783      (eval $ac_try) 2>&5
2784      ac_status=$?
2785      echo "$as_me:2785: \$? = $ac_status" >&5
2786      (exit $ac_status); }; } && test -s conftest.s; then
2787    true    true
2788  else  else
2789    { echo "configure: error: ${CC-cc} failed to produce assembly code" 1>&2; exit 1; }    { { echo "$as_me:2789: error: ${CC-cc} failed to produce assembly code" >&5
2790    echo "$as_me: error: ${CC-cc} failed to produce assembly code" >&2;}
2791       { (exit 1); exit 1; }; }
2792  fi  fi
2793    
2794  if grep _func conftest.s >/dev/null 2>&1; then  if grep _func conftest.s >/dev/null 2>&1; then
# Line 1803  fi Line 2800  fi
2800  rm -f conftest*  rm -f conftest*
2801  fi  fi
2802    
   
2803  if test "x$grub_cv_asm_uscore" = xyes; then  if test "x$grub_cv_asm_uscore" = xyes; then
2804    cat >> confdefs.h <<EOF  
2805    cat >>confdefs.h <<EOF
2806  #define HAVE_ASM_USCORE $grub_cv_asm_uscore  #define HAVE_ASM_USCORE $grub_cv_asm_uscore
2807  EOF  EOF
2808    
2809  fi  fi
2810    
2811  echo "$ac_t""$grub_cv_asm_uscore" 1>&6  echo "$as_me:2811: result: $grub_cv_asm_uscore" >&5
2812    echo "${ECHO_T}$grub_cv_asm_uscore" >&6
2813    
2814  echo $ac_n "checking whether ${OBJCOPY} works for absolute addresses""... $ac_c" 1>&6  echo "$as_me:2814: checking whether ${OBJCOPY} works for absolute addresses" >&5
2815  echo "configure:1818: checking whether ${OBJCOPY} works for absolute addresses" >&5  echo $ECHO_N "checking whether ${OBJCOPY} works for absolute addresses... $ECHO_C" >&6
2816  if eval "test \"`echo '$''{'grub_cv_prog_objcopy_absolute'+set}'`\" = set"; then  if test "${grub_cv_prog_objcopy_absolute+set}" = set; then
2817    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
2818  else  else
2819    cat > conftest.c <<\EOF    cat > conftest.c <<\EOF
2820  void  void
# Line 1826  cmain (void) Line 2824  cmain (void)
2824  }  }
2825  EOF  EOF
2826    
2827  if { (eval echo configure:1830: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; } && test -s conftest.o; then :  if { (eval echo "$as_me:2827: \"$ac_compile\"") >&5
2828  else    (eval $ac_compile) 2>&5
2829    { echo "configure: error: ${CC-cc} cannot compile C source code" 1>&2; exit 1; }    ac_status=$?
2830      echo "$as_me:2830: \$? = $ac_status" >&5
2831      (exit $ac_status); } && test -s conftest.o; then :
2832    else
2833      { { echo "$as_me:2833: error: ${CC-cc} cannot compile C source code" >&5
2834    echo "$as_me: error: ${CC-cc} cannot compile C source code" >&2;}
2835       { (exit 1); exit 1; }; }
2836  fi  fi
2837  grub_cv_prog_objcopy_absolute=yes  grub_cv_prog_objcopy_absolute=yes
2838  for link_addr in 2000 8000 7C00; do  for link_addr in 2000 8000 7C00; do
2839    if { ac_try='${CC-cc} ${CFLAGS} -nostdlib -Wl,-N -Wl,-Ttext -Wl,$link_addr conftest.o -o conftest.exec'; { (eval echo configure:1836: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then :    if { ac_try='${CC-cc} ${CFLAGS} -nostdlib -Wl,-N -Wl,-Ttext -Wl,$link_addr conftest.o -o conftest.exec'
2840      { (eval echo "$as_me:2840: \"$ac_try\"") >&5
2841      (eval $ac_try) 2>&5
2842      ac_status=$?
2843      echo "$as_me:2843: \$? = $ac_status" >&5
2844      (exit $ac_status); }; }; then :
2845    else    else
2846      { echo "configure: error: ${CC-cc} cannot link at address $link_addr" 1>&2; exit 1; }      { { echo "$as_me:2846: error: ${CC-cc} cannot link at address $link_addr" >&5
2847    echo "$as_me: error: ${CC-cc} cannot link at address $link_addr" >&2;}
2848       { (exit 1); exit 1; }; }
2849    fi    fi
2850    if { ac_try='${OBJCOPY-objcopy} -O binary conftest.exec conftest'; { (eval echo configure:1840: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then :    if { ac_try='${OBJCOPY-objcopy} -O binary conftest.exec conftest'
2851      { (eval echo "$as_me:2851: \"$ac_try\"") >&5
2852      (eval $ac_try) 2>&5
2853      ac_status=$?
2854      echo "$as_me:2854: \$? = $ac_status" >&5
2855      (exit $ac_status); }; }; then :
2856    else    else
2857      { echo "configure: error: ${OBJCOPY-objcopy} cannot create binary files" 1>&2; exit 1; }      { { echo "$as_me:2857: error: ${OBJCOPY-objcopy} cannot create binary files" >&5
2858    echo "$as_me: error: ${OBJCOPY-objcopy} cannot create binary files" >&2;}
2859       { (exit 1); exit 1; }; }
2860    fi    fi
2861    if test ! -f conftest.old || { ac_try='cmp -s conftest.old conftest'; { (eval echo configure:1844: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then    if test ! -f conftest.old || { ac_try='cmp -s conftest.old conftest'
2862      { (eval echo "$as_me:2862: \"$ac_try\"") >&5
2863      (eval $ac_try) 2>&5
2864      ac_status=$?
2865      echo "$as_me:2865: \$? = $ac_status" >&5
2866      (exit $ac_status); }; }; then
2867      mv -f conftest conftest.old      mv -f conftest conftest.old
2868    else    else
2869      grub_cv_prog_objcopy_absolute=no      grub_cv_prog_objcopy_absolute=no
# Line 1850  done Line 2873  done
2873  rm -f conftest*  rm -f conftest*
2874  fi  fi
2875    
2876  echo "$ac_t""$grub_cv_prog_objcopy_absolute" 1>&6  echo "$as_me:2876: result: $grub_cv_prog_objcopy_absolute" >&5
2877    echo "${ECHO_T}$grub_cv_prog_objcopy_absolute" >&6
2878  if test "x$grub_cv_prog_objcopy_absolute" != xyes; then  if test "x$grub_cv_prog_objcopy_absolute" != xyes; then
2879    { echo "configure: error: GRUB requires a working absolute objcopy; upgrade your binutils" 1>&2; exit 1; }    { { echo "$as_me:2879: error: GRUB requires a working absolute objcopy; upgrade your binutils" >&5
2880    echo "$as_me: error: GRUB requires a working absolute objcopy; upgrade your binutils" >&2;}
2881       { (exit 1); exit 1; }; }
2882  fi  fi
2883    
2884    echo "$as_me:2884: checking whether addr32 must be in the same line as the instruction" >&5
2885  echo $ac_n "checking whether addr32 must be in the same line as the instruction""... $ac_c" 1>&6  echo $ECHO_N "checking whether addr32 must be in the same line as the instruction... $ECHO_C" >&6
2886  echo "configure:1861: checking whether addr32 must be in the same line as the instruction" >&5  if test "${grub_cv_asm_prefix_requirement+set}" = set; then
2887  if eval "test \"`echo '$''{'grub_cv_asm_prefix_requirement'+set}'`\" = set"; then    echo $ECHO_N "(cached) $ECHO_C" >&6
   echo $ac_n "(cached) $ac_c" 1>&6  
2888  else  else
2889    cat > conftest.s <<\EOF    cat > conftest.s <<\EOF
2890          .code16          .code16
2891  l1:     addr32  movb    %al, l1  l1:     addr32  movb    %al, l1
2892  EOF  EOF
2893    
2894  if { ac_try='${CC-cc} ${CFLAGS} -c conftest.s'; { (eval echo configure:1870: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } && test -s conftest.o; then  if { ac_try='${CC-cc} ${CFLAGS} -c conftest.s'
2895      { (eval echo "$as_me:2895: \"$ac_try\"") >&5
2896      (eval $ac_try) 2>&5
2897      ac_status=$?
2898      echo "$as_me:2898: \$? = $ac_status" >&5
2899      (exit $ac_status); }; } && test -s conftest.o; then
2900    grub_cv_asm_prefix_requirement=yes    grub_cv_asm_prefix_requirement=yes
2901  else  else
2902    grub_cv_asm_prefix_requirement=no    grub_cv_asm_prefix_requirement=no
# Line 1875  fi Line 2905  fi
2905  rm -f conftest*  rm -f conftest*
2906  fi  fi
2907    
   
2908  if test "x$grub_cv_asm_prefix_requirement" = xyes; then  if test "x$grub_cv_asm_prefix_requirement" = xyes; then
2909    grub_tmp_addr32="addr32"    grub_tmp_addr32="addr32"
2910    grub_tmp_data32="data32"    grub_tmp_data32="data32"
# Line 1884  else Line 2913  else
2913    grub_tmp_data32="data32;"    grub_tmp_data32="data32;"
2914  fi  fi
2915    
2916  cat >> confdefs.h <<EOF  cat >>confdefs.h <<EOF
2917  #define ADDR32 $grub_tmp_addr32  #define ADDR32 $grub_tmp_addr32
2918  EOF  EOF
2919    
2920  cat >> confdefs.h <<EOF  cat >>confdefs.h <<EOF
2921  #define DATA32 $grub_tmp_data32  #define DATA32 $grub_tmp_data32
2922  EOF  EOF
2923    
2924    echo "$as_me:2924: result: $grub_cv_asm_prefix_requirement" >&5
2925    echo "${ECHO_T}$grub_cv_asm_prefix_requirement" >&6
2926    
2927  echo "$ac_t""$grub_cv_asm_prefix_requirement" 1>&6  echo "$as_me:2927: checking for .code16 addr32 assembler support" >&5
2928    echo $ECHO_N "checking for .code16 addr32 assembler support... $ECHO_C" >&6
2929    if test "${grub_cv_asm_addr32+set}" = set; then
2930      echo $ECHO_N "(cached) $ECHO_C" >&6
 echo $ac_n "checking for .code16 addr32 assembler support""... $ac_c" 1>&6  
 echo "configure:1902: checking for .code16 addr32 assembler support" >&5  
 if eval "test \"`echo '$''{'grub_cv_asm_addr32'+set}'`\" = set"; then  
   echo $ac_n "(cached) $ac_c" 1>&6  
2931  else  else
2932    cat > conftest.s.in <<\EOF    cat > conftest.s.in <<\EOF
2933          .code16          .code16
# Line 1913  else Line 2940  else
2940    sed -e s/@ADDR32@/addr32\;/ < conftest.s.in > conftest.s    sed -e s/@ADDR32@/addr32\;/ < conftest.s.in > conftest.s
2941  fi  fi
2942    
2943  if { ac_try='${CC-cc} ${CFLAGS} -c conftest.s'; { (eval echo configure:1917: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } && test -s conftest.o; then  if { ac_try='${CC-cc} ${CFLAGS} -c conftest.s'
2944      { (eval echo "$as_me:2944: \"$ac_try\"") >&5
2945      (eval $ac_try) 2>&5
2946      ac_status=$?
2947      echo "$as_me:2947: \$? = $ac_status" >&5
2948      (exit $ac_status); }; } && test -s conftest.o; then
2949    grub_cv_asm_addr32=yes    grub_cv_asm_addr32=yes
2950  else  else
2951    grub_cv_asm_addr32=no    grub_cv_asm_addr32=no
# Line 1922  fi Line 2954  fi
2954  rm -f conftest*  rm -f conftest*
2955  fi  fi
2956    
2957    echo "$as_me:2957: result: $grub_cv_asm_addr32" >&5
2958  echo "$ac_t""$grub_cv_asm_addr32" 1>&6  echo "${ECHO_T}$grub_cv_asm_addr32" >&6
2959  if test "x$grub_cv_asm_addr32" != xyes; then  if test "x$grub_cv_asm_addr32" != xyes; then
2960    { echo "configure: error: GRUB requires GAS .code16 addr32 support; upgrade your binutils" 1>&2; exit 1; }    { { echo "$as_me:2960: error: GRUB requires GAS .code16 addr32 support; upgrade your binutils" >&5
2961    echo "$as_me: error: GRUB requires GAS .code16 addr32 support; upgrade your binutils" >&2;}
2962       { (exit 1); exit 1; }; }
2963  fi  fi
2964    
2965    echo "$as_me:2965: checking whether an absolute indirect call/jump must not be prefixed with an asterisk" >&5
2966  echo $ac_n "checking whether an absolute indirect call/jump must not be prefixed with an asterisk""... $ac_c" 1>&6  echo $ECHO_N "checking whether an absolute indirect call/jump must not be prefixed with an asterisk... $ECHO_C" >&6
2967  echo "configure:1934: checking whether an absolute indirect call/jump must not be prefixed with an asterisk" >&5  if test "${grub_cv_asm_absolute_without_asterisk+set}" = set; then
2968  if eval "test \"`echo '$''{'grub_cv_asm_absolute_without_asterisk'+set}'`\" = set"; then    echo $ECHO_N "(cached) $ECHO_C" >&6
   echo $ac_n "(cached) $ac_c" 1>&6  
2969  else  else
2970    cat > conftest.s <<\EOF    cat > conftest.s <<\EOF
2971          lcall   *(offset)                lcall   *(offset)
2972  offset:  offset:
2973          .long   0          .long   0
2974          .word   0          .word   0
2975  EOF  EOF
2976    
2977  if { ac_try='${CC-cc} ${CFLAGS} -c conftest.s'; { (eval echo configure:1945: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } && test -s conftest.o; then  if { ac_try='${CC-cc} ${CFLAGS} -c conftest.s'
2978      { (eval echo "$as_me:2978: \"$ac_try\"") >&5
2979      (eval $ac_try) 2>&5
2980      ac_status=$?
2981      echo "$as_me:2981: \$? = $ac_status" >&5
2982      (exit $ac_status); }; } && test -s conftest.o; then
2983    grub_cv_asm_absolute_without_asterisk=no    grub_cv_asm_absolute_without_asterisk=no
2984  else  else
2985    grub_cv_asm_absolute_without_asterisk=yes    grub_cv_asm_absolute_without_asterisk=yes
# Line 1950  fi Line 2988  fi
2988  rm -f conftest*  rm -f conftest*
2989  fi  fi
2990    
   
2991  if test "x$grub_cv_asm_absolute_without_asterisk" = xyes; then  if test "x$grub_cv_asm_absolute_without_asterisk" = xyes; then
2992    cat >> confdefs.h <<\EOF    cat >>confdefs.h <<\EOF
2993  #define ABSOLUTE_WITHOUT_ASTERISK 1  #define ABSOLUTE_WITHOUT_ASTERISK 1
2994  EOF  EOF
2995    
2996  fi  fi
2997    
2998  echo "$ac_t""$grub_cv_asm_absolute_without_asterisk" 1>&6  echo "$as_me:2998: result: $grub_cv_asm_absolute_without_asterisk" >&5
2999    echo "${ECHO_T}$grub_cv_asm_absolute_without_asterisk" >&6
3000    
3001    echo "$as_me:3001: checking if start is defined by the compiler" >&5
3002  echo $ac_n "checking if start is defined by the compiler""... $ac_c" 1>&6  echo $ECHO_N "checking if start is defined by the compiler... $ECHO_C" >&6
3003  echo "configure:1966: checking if start is defined by the compiler" >&5  if test "${grub_cv_check_start_symbol+set}" = set; then
3004  if eval "test \"`echo '$''{'grub_cv_check_start_symbol'+set}'`\" = set"; then    echo $ECHO_N "(cached) $ECHO_C" >&6
   echo $ac_n "(cached) $ac_c" 1>&6  
3005  else  else
3006    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
3007  #line 1971 "configure"  #line 3007 "configure"
3008  #include "confdefs.h"  #include "confdefs.h"
3009    
3010  int main() {  int
3011    main ()
3012    {
3013  asm ("incl start")  asm ("incl start")
3014  ; return 0; }    ;
3015  EOF    return 0;
3016  if { (eval echo configure:1978: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  }
3017    rm -rf conftest*  _ACEOF
3018    rm -f conftest.$ac_objext conftest$ac_exeext
3019    if { (eval echo "$as_me:3019: \"$ac_link\"") >&5
3020      (eval $ac_link) 2>&5
3021      ac_status=$?
3022      echo "$as_me:3022: \$? = $ac_status" >&5
3023      (exit $ac_status); } &&
3024             { ac_try='test -s conftest$ac_exeext'
3025      { (eval echo "$as_me:3025: \"$ac_try\"") >&5
3026      (eval $ac_try) 2>&5
3027      ac_status=$?
3028      echo "$as_me:3028: \$? = $ac_status" >&5
3029      (exit $ac_status); }; }; then
3030    grub_cv_check_start_symbol=yes    grub_cv_check_start_symbol=yes
3031  else  else
3032    echo "configure: failed program was:" >&5    echo "$as_me: failed program was:" >&5
3033    cat conftest.$ac_ext >&5  cat conftest.$ac_ext >&5
3034    rm -rf conftest*  grub_cv_check_start_symbol=no
   grub_cv_check_start_symbol=no  
3035  fi  fi
3036  rm -f conftest*  rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3037  fi  fi
3038    
   
3039  if test "x$grub_cv_check_start_symbol" = xyes; then  if test "x$grub_cv_check_start_symbol" = xyes; then
3040    cat >> confdefs.h <<\EOF    cat >>confdefs.h <<\EOF
3041  #define HAVE_START_SYMBOL 1  #define HAVE_START_SYMBOL 1
3042  EOF  EOF
3043    
3044  fi  fi
3045    
3046  echo "$ac_t""$grub_cv_check_start_symbol" 1>&6  echo "$as_me:3046: result: $grub_cv_check_start_symbol" >&5
3047    echo "${ECHO_T}$grub_cv_check_start_symbol" >&6
3048    
3049  echo $ac_n "checking if _start is defined by the compiler""... $ac_c" 1>&6  echo "$as_me:3049: checking if _start is defined by the compiler" >&5
3050  echo "configure:2002: checking if _start is defined by the compiler" >&5  echo $ECHO_N "checking if _start is defined by the compiler... $ECHO_C" >&6
3051  if eval "test \"`echo '$''{'grub_cv_check_uscore_start_symbol'+set}'`\" = set"; then  if test "${grub_cv_check_uscore_start_symbol+set}" = set; then
3052    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
3053  else  else
3054    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
3055  #line 2007 "configure"  #line 3055 "configure"
3056  #include "confdefs.h"  #include "confdefs.h"
3057    
3058  int main() {  int
3059    main ()
3060    {
3061  asm ("incl _start")  asm ("incl _start")
3062  ; return 0; }    ;
3063  EOF    return 0;
3064  if { (eval echo configure:2014: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  }
3065    rm -rf conftest*  _ACEOF
3066    rm -f conftest.$ac_objext conftest$ac_exeext
3067    if { (eval echo "$as_me:3067: \"$ac_link\"") >&5
3068      (eval $ac_link) 2>&5
3069      ac_status=$?
3070      echo "$as_me:3070: \$? = $ac_status" >&5
3071      (exit $ac_status); } &&
3072             { ac_try='test -s conftest$ac_exeext'
3073      { (eval echo "$as_me:3073: \"$ac_try\"") >&5
3074      (eval $ac_try) 2>&5
3075      ac_status=$?
3076      echo "$as_me:3076: \$? = $ac_status" >&5
3077      (exit $ac_status); }; }; then
3078    grub_cv_check_uscore_start_symbol=yes    grub_cv_check_uscore_start_symbol=yes
3079  else  else
3080    echo "configure: failed program was:" >&5    echo "$as_me: failed program was:" >&5
3081    cat conftest.$ac_ext >&5  cat conftest.$ac_ext >&5
3082    rm -rf conftest*  grub_cv_check_uscore_start_symbol=no
   grub_cv_check_uscore_start_symbol=no  
3083  fi  fi
3084  rm -f conftest*  rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3085  fi  fi
3086    
   
3087  if test "x$grub_cv_check_uscore_start_symbol" = xyes; then  if test "x$grub_cv_check_uscore_start_symbol" = xyes; then
3088    cat >> confdefs.h <<\EOF    cat >>confdefs.h <<\EOF
3089  #define HAVE_USCORE_START_SYMBOL 1  #define HAVE_USCORE_START_SYMBOL 1
3090  EOF  EOF
3091    
3092  fi  fi
3093    
3094  echo "$ac_t""$grub_cv_check_uscore_start_symbol" 1>&6  echo "$as_me:3094: result: $grub_cv_check_uscore_start_symbol" >&5
3095    echo "${ECHO_T}$grub_cv_check_uscore_start_symbol" >&6
3096    
3097  if test "x$grub_cv_check_start_symbol" != "xyes" \  if test "x$grub_cv_check_start_symbol" != "xyes" \
3098          -a "x$grub_cv_check_uscore_start_symbol" != "xyes"; then          -a "x$grub_cv_check_uscore_start_symbol" != "xyes"; then
3099    { echo "configure: error: Neither start nor _start is defined" 1>&2; exit 1; }    { { echo "$as_me:3099: error: Neither start nor _start is defined" >&5
3100    echo "$as_me: error: Neither start nor _start is defined" >&2;}
3101       { (exit 1); exit 1; }; }
3102  fi  fi
3103    
3104    echo "$as_me:3104: checking if __bss_start is defined by the compiler" >&5
3105  echo $ac_n "checking if __bss_start is defined by the compiler""... $ac_c" 1>&6  echo $ECHO_N "checking if __bss_start is defined by the compiler... $ECHO_C" >&6
3106  echo "configure:2043: checking if __bss_start is defined by the compiler" >&5  if test "${grub_cv_check_uscore_uscore_bss_start_symbol+set}" = set; then
3107  if eval "test \"`echo '$''{'grub_cv_check_uscore_uscore_bss_start_symbol'+set}'`\" = set"; then    echo $ECHO_N "(cached) $ECHO_C" >&6
   echo $ac_n "(cached) $ac_c" 1>&6  
3108  else  else
3109    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
3110  #line 2048 "configure"  #line 3110 "configure"
3111  #include "confdefs.h"  #include "confdefs.h"
3112    
3113  int main() {  int
3114    main ()
3115    {
3116  asm ("incl __bss_start")  asm ("incl __bss_start")
3117  ; return 0; }    ;
3118  EOF    return 0;
3119  if { (eval echo configure:2055: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  }
3120    rm -rf conftest*  _ACEOF
3121    rm -f conftest.$ac_objext conftest$ac_exeext
3122    if { (eval echo "$as_me:3122: \"$ac_link\"") >&5
3123      (eval $ac_link) 2>&5
3124      ac_status=$?
3125      echo "$as_me:3125: \$? = $ac_status" >&5
3126      (exit $ac_status); } &&
3127             { ac_try='test -s conftest$ac_exeext'
3128      { (eval echo "$as_me:3128: \"$ac_try\"") >&5
3129      (eval $ac_try) 2>&5
3130      ac_status=$?
3131      echo "$as_me:3131: \$? = $ac_status" >&5
3132      (exit $ac_status); }; }; then
3133    grub_cv_check_uscore_uscore_bss_start_symbol=yes    grub_cv_check_uscore_uscore_bss_start_symbol=yes
3134  else  else
3135    echo "configure: failed program was:" >&5    echo "$as_me: failed program was:" >&5
3136    cat conftest.$ac_ext >&5  cat conftest.$ac_ext >&5
3137    rm -rf conftest*  grub_cv_check_uscore_uscore_bss_start_symbol=no
   grub_cv_check_uscore_uscore_bss_start_symbol=no  
3138  fi  fi
3139  rm -f conftest*  rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3140  fi  fi
3141    
   
3142  if test "x$grub_cv_check_uscore_uscore_bss_start_symbol" = xyes; then  if test "x$grub_cv_check_uscore_uscore_bss_start_symbol" = xyes; then
3143    cat >> confdefs.h <<\EOF    cat >>confdefs.h <<\EOF
3144  #define HAVE_USCORE_USCORE_BSS_START_SYMBOL 1  #define HAVE_USCORE_USCORE_BSS_START_SYMBOL 1
3145  EOF  EOF
3146    
3147  fi  fi
3148    
3149  echo "$ac_t""$grub_cv_check_uscore_uscore_bss_start_symbol" 1>&6  echo "$as_me:3149: result: $grub_cv_check_uscore_uscore_bss_start_symbol" >&5
3150    echo "${ECHO_T}$grub_cv_check_uscore_uscore_bss_start_symbol" >&6
3151    
3152    echo "$as_me:3152: checking if _edata is defined by the compiler" >&5
3153  echo $ac_n "checking if _edata is defined by the compiler""... $ac_c" 1>&6  echo $ECHO_N "checking if _edata is defined by the compiler... $ECHO_C" >&6
3154  echo "configure:2079: checking if _edata is defined by the compiler" >&5  if test "${grub_cv_check_uscore_edata_symbol+set}" = set; then
3155  if eval "test \"`echo '$''{'grub_cv_check_uscore_edata_symbol'+set}'`\" = set"; then    echo $ECHO_N "(cached) $ECHO_C" >&6
   echo $ac_n "(cached) $ac_c" 1>&6  
3156  else  else
3157    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
3158  #line 2084 "configure"  #line 3158 "configure"
3159  #include "confdefs.h"  #include "confdefs.h"
3160    
3161  int main() {  int
3162    main ()
3163    {
3164  asm ("incl _edata")  asm ("incl _edata")
3165  ; return 0; }    ;
3166  EOF    return 0;
3167  if { (eval echo configure:2091: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  }
3168    rm -rf conftest*  _ACEOF
3169    rm -f conftest.$ac_objext conftest$ac_exeext
3170    if { (eval echo "$as_me:3170: \"$ac_link\"") >&5
3171      (eval $ac_link) 2>&5
3172      ac_status=$?
3173      echo "$as_me:3173: \$? = $ac_status" >&5
3174      (exit $ac_status); } &&
3175             { ac_try='test -s conftest$ac_exeext'
3176      { (eval echo "$as_me:3176: \"$ac_try\"") >&5
3177      (eval $ac_try) 2>&5
3178      ac_status=$?
3179      echo "$as_me:3179: \$? = $ac_status" >&5
3180      (exit $ac_status); }; }; then
3181    grub_cv_check_uscore_edata_symbol=yes    grub_cv_check_uscore_edata_symbol=yes
3182  else  else
3183    echo "configure: failed program was:" >&5    echo "$as_me: failed program was:" >&5
3184    cat conftest.$ac_ext >&5  cat conftest.$ac_ext >&5
3185    rm -rf conftest*  grub_cv_check_uscore_edata_symbol=no
   grub_cv_check_uscore_edata_symbol=no  
3186  fi  fi
3187  rm -f conftest*  rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3188  fi  fi
3189    
   
3190  if test "x$grub_cv_check_uscore_edata_symbol" = xyes; then  if test "x$grub_cv_check_uscore_edata_symbol" = xyes; then
3191    cat >> confdefs.h <<\EOF    cat >>confdefs.h <<\EOF
3192  #define HAVE_USCORE_EDATA_SYMBOL 1  #define HAVE_USCORE_EDATA_SYMBOL 1
3193  EOF  EOF
3194    
3195  fi  fi
3196    
3197  echo "$ac_t""$grub_cv_check_uscore_edata_symbol" 1>&6  echo "$as_me:3197: result: $grub_cv_check_uscore_edata_symbol" >&5
3198    echo "${ECHO_T}$grub_cv_check_uscore_edata_symbol" >&6
3199    
3200    echo "$as_me:3200: checking if edata is defined by the compiler" >&5
3201  echo $ac_n "checking if edata is defined by the compiler""... $ac_c" 1>&6  echo $ECHO_N "checking if edata is defined by the compiler... $ECHO_C" >&6
3202  echo "configure:2115: checking if edata is defined by the compiler" >&5  if test "${grub_cv_check_edata_symbol+set}" = set; then
3203  if eval "test \"`echo '$''{'grub_cv_check_edata_symbol'+set}'`\" = set"; then    echo $ECHO_N "(cached) $ECHO_C" >&6
   echo $ac_n "(cached) $ac_c" 1>&6  
3204  else  else
3205    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
3206  #line 2120 "configure"  #line 3206 "configure"
3207  #include "confdefs.h"  #include "confdefs.h"
3208    
3209  int main() {  int
3210    main ()
3211    {
3212  asm ("incl edata")  asm ("incl edata")
3213  ; return 0; }    ;
3214  EOF    return 0;
3215  if { (eval echo configure:2127: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  }
3216    rm -rf conftest*  _ACEOF
3217    rm -f conftest.$ac_objext conftest$ac_exeext
3218    if { (eval echo "$as_me:3218: \"$ac_link\"") >&5
3219      (eval $ac_link) 2>&5
3220      ac_status=$?
3221      echo "$as_me:3221: \$? = $ac_status" >&5
3222      (exit $ac_status); } &&
3223             { ac_try='test -s conftest$ac_exeext'
3224      { (eval echo "$as_me:3224: \"$ac_try\"") >&5
3225      (eval $ac_try) 2>&5
3226      ac_status=$?
3227      echo "$as_me:3227: \$? = $ac_status" >&5
3228      (exit $ac_status); }; }; then
3229    grub_cv_check_edata_symbol=yes    grub_cv_check_edata_symbol=yes
3230  else  else
3231    echo "configure: failed program was:" >&5    echo "$as_me: failed program was:" >&5
3232    cat conftest.$ac_ext >&5  cat conftest.$ac_ext >&5
3233    rm -rf conftest*  grub_cv_check_edata_symbol=no
   grub_cv_check_edata_symbol=no  
3234  fi  fi
3235  rm -f conftest*  rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3236  fi  fi
3237    
   
3238  if test "x$grub_cv_check_edata_symbol" = xyes; then  if test "x$grub_cv_check_edata_symbol" = xyes; then
3239    cat >> confdefs.h <<\EOF    cat >>confdefs.h <<\EOF
3240  #define HAVE_EDATA_SYMBOL 1  #define HAVE_EDATA_SYMBOL 1
3241  EOF  EOF
3242    
3243  fi  fi
3244    
3245  echo "$ac_t""$grub_cv_check_edata_symbol" 1>&6  echo "$as_me:3245: result: $grub_cv_check_edata_symbol" >&5
3246    echo "${ECHO_T}$grub_cv_check_edata_symbol" >&6
3247    
3248  if test "x$grub_cv_check_uscore_uscore_bss_start_symbol" != "xyes" \  if test "x$grub_cv_check_uscore_uscore_bss_start_symbol" != "xyes" \
3249          -a "x$grub_cv_check_uscore_edata_symbol" != "xyes" \          -a "x$grub_cv_check_uscore_edata_symbol" != "xyes" \
3250          -a "x$grub_cv_check_edata_symbol" != "xyes"; then          -a "x$grub_cv_check_edata_symbol" != "xyes"; then
3251    { echo "configure: error: None of __bss_start, _edata, edata defined" 1>&2; exit 1; }    { { echo "$as_me:3251: error: None of __bss_start, _edata, edata defined" >&5
3252    echo "$as_me: error: None of __bss_start, _edata, edata defined" >&2;}
3253       { (exit 1); exit 1; }; }
3254  fi  fi
3255    
3256    echo "$as_me:3256: checking if end is defined by the compiler" >&5
3257  echo $ac_n "checking if end is defined by the compiler""... $ac_c" 1>&6  echo $ECHO_N "checking if end is defined by the compiler... $ECHO_C" >&6
3258  echo "configure:2157: checking if end is defined by the compiler" >&5  if test "${grub_cv_check_end_symbol+set}" = set; then
3259  if eval "test \"`echo '$''{'grub_cv_check_end_symbol'+set}'`\" = set"; then    echo $ECHO_N "(cached) $ECHO_C" >&6
   echo $ac_n "(cached) $ac_c" 1>&6  
3260  else  else
3261    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
3262  #line 2162 "configure"  #line 3262 "configure"
3263  #include "confdefs.h"  #include "confdefs.h"
3264    
3265  int main() {  int
3266    main ()
3267    {
3268  asm ("incl end")  asm ("incl end")
3269  ; return 0; }    ;
3270  EOF    return 0;
3271  if { (eval echo configure:2169: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  }
3272    rm -rf conftest*  _ACEOF
3273    rm -f conftest.$ac_objext conftest$ac_exeext
3274    if { (eval echo "$as_me:3274: \"$ac_link\"") >&5
3275      (eval $ac_link) 2>&5
3276      ac_status=$?
3277      echo "$as_me:3277: \$? = $ac_status" >&5
3278      (exit $ac_status); } &&
3279             { ac_try='test -s conftest$ac_exeext'
3280      { (eval echo "$as_me:3280: \"$ac_try\"") >&5
3281      (eval $ac_try) 2>&5
3282      ac_status=$?
3283      echo "$as_me:3283: \$? = $ac_status" >&5
3284      (exit $ac_status); }; }; then
3285    grub_cv_check_end_symbol=yes    grub_cv_check_end_symbol=yes
3286  else  else
3287    echo "configure: failed program was:" >&5    echo "$as_me: failed program was:" >&5
3288    cat conftest.$ac_ext >&5  cat conftest.$ac_ext >&5
3289    rm -rf conftest*  grub_cv_check_end_symbol=no
   grub_cv_check_end_symbol=no  
3290  fi  fi
3291  rm -f conftest*  rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3292  fi  fi
3293    
   
3294  if test "x$grub_cv_check_end_symbol" = xyes; then  if test "x$grub_cv_check_end_symbol" = xyes; then
3295    cat >> confdefs.h <<\EOF    cat >>confdefs.h <<\EOF
3296  #define HAVE_END_SYMBOL 1  #define HAVE_END_SYMBOL 1
3297  EOF  EOF
3298    
3299  fi  fi
3300    
3301  echo "$ac_t""$grub_cv_check_end_symbol" 1>&6  echo "$as_me:3301: result: $grub_cv_check_end_symbol" >&5
3302    echo "${ECHO_T}$grub_cv_check_end_symbol" >&6
3303    
3304  echo $ac_n "checking if _end is defined by the compiler""... $ac_c" 1>&6  echo "$as_me:3304: checking if _end is defined by the compiler" >&5
3305  echo "configure:2193: checking if _end is defined by the compiler" >&5  echo $ECHO_N "checking if _end is defined by the compiler... $ECHO_C" >&6
3306  if eval "test \"`echo '$''{'grub_cv_check_uscore_end_symbol'+set}'`\" = set"; then  if test "${grub_cv_check_uscore_end_symbol+set}" = set; then
3307    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
3308  else  else
3309    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
3310  #line 2198 "configure"  #line 3310 "configure"
3311  #include "confdefs.h"  #include "confdefs.h"
3312    
3313  int main() {  int
3314    main ()
3315    {
3316  asm ("incl _end")  asm ("incl _end")
3317  ; return 0; }    ;
3318  EOF    return 0;
3319  if { (eval echo configure:2205: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  }
3320    rm -rf conftest*  _ACEOF
3321    rm -f conftest.$ac_objext conftest$ac_exeext
3322    if { (eval echo "$as_me:3322: \"$ac_link\"") >&5
3323      (eval $ac_link) 2>&5
3324      ac_status=$?
3325      echo "$as_me:3325: \$? = $ac_status" >&5
3326      (exit $ac_status); } &&
3327             { ac_try='test -s conftest$ac_exeext'
3328      { (eval echo "$as_me:3328: \"$ac_try\"") >&5
3329      (eval $ac_try) 2>&5
3330      ac_status=$?
3331      echo "$as_me:3331: \$? = $ac_status" >&5
3332      (exit $ac_status); }; }; then
3333    grub_cv_check_uscore_end_symbol=yes    grub_cv_check_uscore_end_symbol=yes
3334  else  else
3335    echo "configure: failed program was:" >&5    echo "$as_me: failed program was:" >&5
3336    cat conftest.$ac_ext >&5  cat conftest.$ac_ext >&5
3337    rm -rf conftest*  grub_cv_check_uscore_end_symbol=no
   grub_cv_check_uscore_end_symbol=no  
3338  fi  fi
3339  rm -f conftest*  rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3340  fi  fi
3341    
   
3342  if test "x$grub_cv_check_uscore_end_symbol" = xyes; then  if test "x$grub_cv_check_uscore_end_symbol" = xyes; then
3343    cat >> confdefs.h <<\EOF    cat >>confdefs.h <<\EOF
3344  #define HAVE_USCORE_END_SYMBOL 1  #define HAVE_USCORE_END_SYMBOL 1
3345  EOF  EOF
3346    
3347  fi  fi
3348    
3349  echo "$ac_t""$grub_cv_check_uscore_end_symbol" 1>&6  echo "$as_me:3349: result: $grub_cv_check_uscore_end_symbol" >&5
3350    echo "${ECHO_T}$grub_cv_check_uscore_end_symbol" >&6
3351    
3352  if test "x$grub_cv_check_end_symbol" != "xyes" \  if test "x$grub_cv_check_end_symbol" != "xyes" \
3353          -a "x$grub_cv_check_uscore_end_symbol" != "xyes"; then          -a "x$grub_cv_check_uscore_end_symbol" != "xyes"; then
3354    { echo "configure: error: Neither end nor _end is defined" 1>&2; exit 1; }    { { echo "$as_me:3354: error: Neither end nor _end is defined" >&5
3355    echo "$as_me: error: Neither end nor _end is defined" >&2;}
3356       { (exit 1); exit 1; }; }
3357  fi  fi
3358    
3359  # Check for curses libraries.  # Check for curses libraries.
3360    
3361  # Check whether --with-curses or --without-curses was given.  # Check whether --with-curses or --without-curses was given.
3362  if test "${with_curses+set}" = set; then  if test "${with_curses+set}" = set; then
3363    withval="$with_curses"    withval="$with_curses"
   :  
 fi  
3364    
3365    fi;
3366    
3367  # Get the filename or the whole disk and open it.  # Get the filename or the whole disk and open it.
3368  # Known to work on NetBSD.  # Known to work on NetBSD.
3369  echo $ac_n "checking for opendisk in -lutil""... $ac_c" 1>&6  echo "$as_me:3369: checking for opendisk in -lutil" >&5
3370  echo "configure:2243: checking for opendisk in -lutil" >&5  echo $ECHO_N "checking for opendisk in -lutil... $ECHO_C" >&6
3371  ac_lib_var=`echo util'_'opendisk | sed 'y%./+-%__p_%'`  if test "${ac_cv_lib_util_opendisk+set}" = set; then
3372  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then    echo $ECHO_N "(cached) $ECHO_C" >&6
   echo $ac_n "(cached) $ac_c" 1>&6  
3373  else  else
3374    ac_save_LIBS="$LIBS"    ac_check_lib_save_LIBS=$LIBS
3375  LIBS="-lutil  $LIBS"  LIBS="-lutil  $LIBS"
3376  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
3377  #line 2251 "configure"  #line 3377 "configure"
3378  #include "confdefs.h"  #include "confdefs.h"
3379    
3380  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
3381    #ifdef __cplusplus
3382    extern "C"
3383    #endif
3384  /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
3385      builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
3386  char opendisk();  char opendisk ();
3387    int
3388  int main() {  main ()
3389  opendisk()  {
3390  ; return 0; }  opendisk ();
3391  EOF    ;
3392  if { (eval echo configure:2262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then    return 0;
3393    rm -rf conftest*  }
3394    eval "ac_cv_lib_$ac_lib_var=yes"  _ACEOF
3395  else  rm -f conftest.$ac_objext conftest$ac_exeext
3396    echo "configure: failed program was:" >&5  if { (eval echo "$as_me:3396: \"$ac_link\"") >&5
3397    cat conftest.$ac_ext >&5    (eval $ac_link) 2>&5
3398    rm -rf conftest*    ac_status=$?
3399    eval "ac_cv_lib_$ac_lib_var=no"    echo "$as_me:3399: \$? = $ac_status" >&5
3400  fi    (exit $ac_status); } &&
3401  rm -f conftest*           { ac_try='test -s conftest$ac_exeext'
3402  LIBS="$ac_save_LIBS"    { (eval echo "$as_me:3402: \"$ac_try\"") >&5
3403      (eval $ac_try) 2>&5
3404  fi    ac_status=$?
3405  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then    echo "$as_me:3405: \$? = $ac_status" >&5
3406    echo "$ac_t""yes" 1>&6    (exit $ac_status); }; }; then
3407      ac_cv_lib_util_opendisk=yes
3408    else
3409      echo "$as_me: failed program was:" >&5
3410    cat conftest.$ac_ext >&5
3411    ac_cv_lib_util_opendisk=no
3412    fi
3413    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3414    LIBS=$ac_check_lib_save_LIBS
3415    fi
3416    echo "$as_me:3416: result: $ac_cv_lib_util_opendisk" >&5
3417    echo "${ECHO_T}$ac_cv_lib_util_opendisk" >&6
3418    if test $ac_cv_lib_util_opendisk = yes; then
3419    GRUB_LIBS="$GRUB_LIBS -lutil"    GRUB_LIBS="$GRUB_LIBS -lutil"
3420    cat >> confdefs.h <<\EOF  
3421    cat >>confdefs.h <<\EOF
3422  #define HAVE_OPENDISK 1  #define HAVE_OPENDISK 1
3423  EOF  EOF
3424    
 else  
   echo "$ac_t""no" 1>&6  
3425  fi  fi
3426    
   
3427  # Unless the user specify --without-curses, check for curses.  # Unless the user specify --without-curses, check for curses.
3428  if test "x$with_curses" != "xno"; then  if test "x$with_curses" != "xno"; then
3429    echo $ac_n "checking for wgetch in -lncurses""... $ac_c" 1>&6    echo "$as_me:3429: checking for wgetch in -lncurses" >&5
3430  echo "configure:2290: checking for wgetch in -lncurses" >&5  echo $ECHO_N "checking for wgetch in -lncurses... $ECHO_C" >&6
3431  ac_lib_var=`echo ncurses'_'wgetch | sed 'y%./+-%__p_%'`  if test "${ac_cv_lib_ncurses_wgetch+set}" = set; then
3432  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then    echo $ECHO_N "(cached) $ECHO_C" >&6
   echo $ac_n "(cached) $ac_c" 1>&6  
3433  else  else
3434    ac_save_LIBS="$LIBS"    ac_check_lib_save_LIBS=$LIBS
3435  LIBS="-lncurses  $LIBS"  LIBS="-lncurses  $LIBS"
3436  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
3437  #line 2298 "configure"  #line 3437 "configure"
3438  #include "confdefs.h"  #include "confdefs.h"
3439    
3440  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
3441    #ifdef __cplusplus
3442    extern "C"
3443    #endif
3444  /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
3445      builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
3446  char wgetch();  char wgetch ();
3447    int
3448  int main() {  main ()
3449  wgetch()  {
3450  ; return 0; }  wgetch ();
3451  EOF    ;
3452  if { (eval echo configure:2309: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then    return 0;
3453    rm -rf conftest*  }
3454    eval "ac_cv_lib_$ac_lib_var=yes"  _ACEOF
3455  else  rm -f conftest.$ac_objext conftest$ac_exeext
3456    echo "configure: failed program was:" >&5  if { (eval echo "$as_me:3456: \"$ac_link\"") >&5
3457    cat conftest.$ac_ext >&5    (eval $ac_link) 2>&5
3458    rm -rf conftest*    ac_status=$?
3459    eval "ac_cv_lib_$ac_lib_var=no"    echo "$as_me:3459: \$? = $ac_status" >&5
3460  fi    (exit $ac_status); } &&
3461  rm -f conftest*           { ac_try='test -s conftest$ac_exeext'
3462  LIBS="$ac_save_LIBS"    { (eval echo "$as_me:3462: \"$ac_try\"") >&5
3463      (eval $ac_try) 2>&5
3464  fi    ac_status=$?
3465  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then    echo "$as_me:3465: \$? = $ac_status" >&5
3466    echo "$ac_t""yes" 1>&6    (exit $ac_status); }; }; then
3467      ac_cv_lib_ncurses_wgetch=yes
3468    else
3469      echo "$as_me: failed program was:" >&5
3470    cat conftest.$ac_ext >&5
3471    ac_cv_lib_ncurses_wgetch=no
3472    fi
3473    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3474    LIBS=$ac_check_lib_save_LIBS
3475    fi
3476    echo "$as_me:3476: result: $ac_cv_lib_ncurses_wgetch" >&5
3477    echo "${ECHO_T}$ac_cv_lib_ncurses_wgetch" >&6
3478    if test $ac_cv_lib_ncurses_wgetch = yes; then
3479    GRUB_LIBS="$GRUB_LIBS -lncurses"    GRUB_LIBS="$GRUB_LIBS -lncurses"
3480    cat >> confdefs.h <<\EOF    cat >>confdefs.h <<\EOF
3481  #define HAVE_LIBCURSES 1  #define HAVE_LIBCURSES 1
3482  EOF  EOF
3483    
3484  else  else
3485    echo "$ac_t""no" 1>&6    echo "$as_me:3485: checking for wgetch in -lcurses" >&5
3486  echo $ac_n "checking for wgetch in -lcurses""... $ac_c" 1>&6  echo $ECHO_N "checking for wgetch in -lcurses... $ECHO_C" >&6
3487  echo "configure:2332: checking for wgetch in -lcurses" >&5  if test "${ac_cv_lib_curses_wgetch+set}" = set; then
3488  ac_lib_var=`echo curses'_'wgetch | sed 'y%./+-%__p_%'`    echo $ECHO_N "(cached) $ECHO_C" >&6
 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then  
   echo $ac_n "(cached) $ac_c" 1>&6  
3489  else  else
3490    ac_save_LIBS="$LIBS"    ac_check_lib_save_LIBS=$LIBS
3491  LIBS="-lcurses  $LIBS"  LIBS="-lcurses  $LIBS"
3492  cat > conftest.$ac_ext <<EOF  cat >conftest.$ac_ext <<_ACEOF
3493  #line 2340 "configure"  #line 3493 "configure"
3494  #include "confdefs.h"  #include "confdefs.h"
3495    
3496  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
3497    #ifdef __cplusplus
3498    extern "C"
3499    #endif
3500  /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
3501      builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
3502  char wgetch();  char wgetch ();
3503    int
3504  int main() {  main ()
3505  wgetch()  {
3506  ; return 0; }  wgetch ();
3507  EOF    ;
3508  if { (eval echo configure:2351: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then    return 0;
3509    rm -rf conftest*  }
3510    eval "ac_cv_lib_$ac_lib_var=yes"  _ACEOF
3511  else  rm -f conftest.$ac_objext conftest$ac_exeext
3512    echo "configure: failed program was:" >&5  if { (eval echo "$as_me:3512: \"$ac_link\"") >&5
3513    cat conftest.$ac_ext >&5    (eval $ac_link) 2>&5
3514    rm -rf conftest*    ac_status=$?
3515    eval "ac_cv_lib_$ac_lib_var=no"    echo "$as_me:3515: \$? = $ac_status" >&5
3516  fi    (exit $ac_status); } &&
3517  rm -f conftest*           { ac_try='test -s conftest$ac_exeext'
3518  LIBS="$ac_save_LIBS"    { (eval echo "$as_me:3518: \"$ac_try\"") >&5
3519      (eval $ac_try) 2>&5
3520  fi    ac_status=$?
3521  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then    echo "$as_me:3521: \$? = $ac_status" >&5
3522    echo "$ac_t""yes" 1>&6    (exit $ac_status); }; }; then
3523      ac_cv_lib_curses_wgetch=yes
3524    else
3525      echo "$as_me: failed program was:" >&5
3526    cat conftest.$ac_ext >&5
3527    ac_cv_lib_curses_wgetch=no
3528    fi
3529    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3530    LIBS=$ac_check_lib_save_LIBS
3531    fi
3532    echo "$as_me:3532: result: $ac_cv_lib_curses_wgetch" >&5
3533    echo "${ECHO_T}$ac_cv_lib_curses_wgetch" >&6
3534    if test $ac_cv_lib_curses_wgetch = yes; then
3535    GRUB_LIBS="$GRUB_LIBS -lcurses"    GRUB_LIBS="$GRUB_LIBS -lcurses"
3536         cat >> confdefs.h <<\EOF         cat >>confdefs.h <<\EOF
3537  #define HAVE_LIBCURSES 1  #define HAVE_LIBCURSES 1
3538  EOF  EOF
3539    
 else  
   echo "$ac_t""no" 1>&6  
3540  fi  fi
3541    
3542  fi  fi
3543    
3544  fi  fi
3545    
   
   
3546  # Check for headers.  # Check for headers.
3547  echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6  ac_ext=c
3548  echo "configure:2383: checking how to run the C preprocessor" >&5  ac_cpp='$CPP $CPPFLAGS'
3549    ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3550    ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3551    ac_compiler_gnu=$ac_cv_c_compiler_gnu
3552    echo "$as_me:3552: checking how to run the C preprocessor" >&5
3553    echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3554  # On Suns, sometimes $CPP names a directory.  # On Suns, sometimes $CPP names a directory.
3555  if test -n "$CPP" && test -d "$CPP"; then  if test -n "$CPP" && test -d "$CPP"; then
3556    CPP=    CPP=
3557  fi  fi
3558  if test -z "$CPP"; then  if test -z "$CPP"; then
3559  if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then    if test "${ac_cv_prog_CPP+set}" = set; then
3560    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
3561  else  else
3562      # This must be in double quotes, not single quotes, because CPP may get        # Double quotes because CPP needs to be expanded
3563    # substituted into the Makefile and "${CC-cc}" will confuse make.      for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3564    CPP="${CC-cc} -E"      do
3565          ac_preproc_ok=false
3566    for ac_c_preproc_warn_flag in '' yes
3567    do
3568      # Use a header file that comes with gcc, so configuring glibc
3569      # with a fresh cross-compiler works.
3570    # On the NeXT, cc -E runs the code through the compiler's parser,    # On the NeXT, cc -E runs the code through the compiler's parser,
3571    # not just through cpp.    # not just through cpp. "Syntax error" is here to catch this case.
3572    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
3573  #line 2398 "configure"  #line 3573 "configure"
3574  #include "confdefs.h"  #include "confdefs.h"
3575  #include <assert.h>  #include <assert.h>
3576  Syntax Error                       Syntax error
3577  EOF  _ACEOF
3578  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  if { (eval echo "$as_me:3578: \"$ac_cpp conftest.$ac_ext\"") >&5
3579  { (eval echo configure:2404: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }    (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3580  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`    ac_status=$?
3581  if test -z "$ac_err"; then    egrep -v '^ *\+' conftest.er1 >conftest.err
3582      rm -f conftest.er1
3583      cat conftest.err >&5
3584      echo "$as_me:3584: \$? = $ac_status" >&5
3585      (exit $ac_status); } >/dev/null; then
3586      if test -s conftest.err; then
3587        ac_cpp_err=$ac_c_preproc_warn_flag
3588      else
3589        ac_cpp_err=
3590      fi
3591    else
3592      ac_cpp_err=yes
3593    fi
3594    if test -z "$ac_cpp_err"; then
3595    :    :
3596  else  else
3597    echo "$ac_err" >&5    echo "$as_me: failed program was:" >&5
   echo "configure: failed program was:" >&5  
3598    cat conftest.$ac_ext >&5    cat conftest.$ac_ext >&5
3599    rm -rf conftest*    # Broken: fails on valid input.
3600    CPP="${CC-cc} -E -traditional-cpp"  continue
3601    cat > conftest.$ac_ext <<EOF  fi
3602  #line 2415 "configure"  rm -f conftest.err conftest.$ac_ext
3603    
3604      # OK, works on sane cases.  Now check whether non-existent headers
3605      # can be detected and how.
3606      cat >conftest.$ac_ext <<_ACEOF
3607    #line 3607 "configure"
3608  #include "confdefs.h"  #include "confdefs.h"
3609  #include <assert.h>  #include <ac_nonexistent.h>
3610  Syntax Error  _ACEOF
3611  EOF  if { (eval echo "$as_me:3611: \"$ac_cpp conftest.$ac_ext\"") >&5
3612  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"    (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3613  { (eval echo configure:2421: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }    ac_status=$?
3614  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`    egrep -v '^ *\+' conftest.er1 >conftest.err
3615  if test -z "$ac_err"; then    rm -f conftest.er1
3616    :    cat conftest.err >&5
3617      echo "$as_me:3617: \$? = $ac_status" >&5
3618      (exit $ac_status); } >/dev/null; then
3619      if test -s conftest.err; then
3620        ac_cpp_err=$ac_c_preproc_warn_flag
3621      else
3622        ac_cpp_err=
3623      fi
3624    else
3625      ac_cpp_err=yes
3626    fi
3627    if test -z "$ac_cpp_err"; then
3628      # Broken: success on invalid input.
3629    continue
3630  else  else
3631    echo "$ac_err" >&5    echo "$as_me: failed program was:" >&5
   echo "configure: failed program was:" >&5  
3632    cat conftest.$ac_ext >&5    cat conftest.$ac_ext >&5
3633    rm -rf conftest*    # Passes both tests.
3634    CPP="${CC-cc} -nologo -E"  ac_preproc_ok=:
3635    cat > conftest.$ac_ext <<EOF  break
3636  #line 2432 "configure"  fi
3637    rm -f conftest.err conftest.$ac_ext
3638    
3639    done
3640    # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3641    rm -f conftest.err conftest.$ac_ext
3642    if $ac_preproc_ok; then
3643      break
3644    fi
3645    
3646        done
3647        ac_cv_prog_CPP=$CPP
3648    
3649    fi
3650      CPP=$ac_cv_prog_CPP
3651    else
3652      ac_cv_prog_CPP=$CPP
3653    fi
3654    echo "$as_me:3654: result: $CPP" >&5
3655    echo "${ECHO_T}$CPP" >&6
3656    ac_preproc_ok=false
3657    for ac_c_preproc_warn_flag in '' yes
3658    do
3659      # Use a header file that comes with gcc, so configuring glibc
3660      # with a fresh cross-compiler works.
3661      # On the NeXT, cc -E runs the code through the compiler's parser,
3662      # not just through cpp. "Syntax error" is here to catch this case.
3663      cat >conftest.$ac_ext <<_ACEOF
3664    #line 3664 "configure"
3665  #include "confdefs.h"  #include "confdefs.h"
3666  #include <assert.h>  #include <assert.h>
3667  Syntax Error                       Syntax error
3668  EOF  _ACEOF
3669  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  if { (eval echo "$as_me:3669: \"$ac_cpp conftest.$ac_ext\"") >&5
3670  { (eval echo configure:2438: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }    (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3671  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`    ac_status=$?
3672  if test -z "$ac_err"; then    egrep -v '^ *\+' conftest.er1 >conftest.err
3673      rm -f conftest.er1
3674      cat conftest.err >&5
3675      echo "$as_me:3675: \$? = $ac_status" >&5
3676      (exit $ac_status); } >/dev/null; then
3677      if test -s conftest.err; then
3678        ac_cpp_err=$ac_c_preproc_warn_flag
3679      else
3680        ac_cpp_err=
3681      fi
3682    else
3683      ac_cpp_err=yes
3684    fi
3685    if test -z "$ac_cpp_err"; then
3686    :    :
3687  else  else
3688    echo "$ac_err" >&5    echo "$as_me: failed program was:" >&5
   echo "configure: failed program was:" >&5  
3689    cat conftest.$ac_ext >&5    cat conftest.$ac_ext >&5
3690    rm -rf conftest*    # Broken: fails on valid input.
3691    CPP=/lib/cpp  continue
 fi  
 rm -f conftest*  
3692  fi  fi
3693  rm -f conftest*  rm -f conftest.err conftest.$ac_ext
3694    
3695      # OK, works on sane cases.  Now check whether non-existent headers
3696      # can be detected and how.
3697      cat >conftest.$ac_ext <<_ACEOF
3698    #line 3698 "configure"
3699    #include "confdefs.h"
3700    #include <ac_nonexistent.h>
3701    _ACEOF
3702    if { (eval echo "$as_me:3702: \"$ac_cpp conftest.$ac_ext\"") >&5
3703      (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3704      ac_status=$?
3705      egrep -v '^ *\+' conftest.er1 >conftest.err
3706      rm -f conftest.er1
3707      cat conftest.err >&5
3708      echo "$as_me:3708: \$? = $ac_status" >&5
3709      (exit $ac_status); } >/dev/null; then
3710      if test -s conftest.err; then
3711        ac_cpp_err=$ac_c_preproc_warn_flag
3712      else
3713        ac_cpp_err=
3714      fi
3715    else
3716      ac_cpp_err=yes
3717  fi  fi
3718  rm -f conftest*  if test -z "$ac_cpp_err"; then
3719    ac_cv_prog_CPP="$CPP"    # Broken: success on invalid input.
3720    continue
3721    else
3722      echo "$as_me: failed program was:" >&5
3723      cat conftest.$ac_ext >&5
3724      # Passes both tests.
3725    ac_preproc_ok=:
3726    break
3727  fi  fi
3728    CPP="$ac_cv_prog_CPP"  rm -f conftest.err conftest.$ac_ext
3729    
3730    done
3731    # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3732    rm -f conftest.err conftest.$ac_ext
3733    if $ac_preproc_ok; then
3734      :
3735  else  else
3736    ac_cv_prog_CPP="$CPP"    { { echo "$as_me:3736: error: C preprocessor \"$CPP\" fails sanity check" >&5
3737    echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
3738       { (exit 1); exit 1; }; }
3739  fi  fi
 echo "$ac_t""$CPP" 1>&6  
3740    
3741  for ac_hdr in string.h strings.h ncurses/curses.h ncurses.h curses.h  ac_ext=c
3742    ac_cpp='$CPP $CPPFLAGS'
3743    ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3744    ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3745    ac_compiler_gnu=$ac_cv_c_compiler_gnu
3746    
3747    for ac_header in string.h strings.h ncurses/curses.h ncurses.h curses.h
3748  do  do
3749  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3750  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  echo "$as_me:3750: checking for $ac_header" >&5
3751  echo "configure:2466: checking for $ac_hdr" >&5  echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3752  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  if eval "test \"\${$as_ac_Header+set}\" = set"; then
3753    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
 else  
   cat > conftest.$ac_ext <<EOF  
 #line 2471 "configure"  
 #include "confdefs.h"  
 #include <$ac_hdr>  
 EOF  
 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  
 { (eval echo configure:2476: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  
 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  
 if test -z "$ac_err"; then  
   rm -rf conftest*  
   eval "ac_cv_header_$ac_safe=yes"  
3754  else  else
3755    echo "$ac_err" >&5    cat >conftest.$ac_ext <<_ACEOF
3756    echo "configure: failed program was:" >&5  #line 3756 "configure"
3757    #include "confdefs.h"
3758    #include <$ac_header>
3759    _ACEOF
3760    if { (eval echo "$as_me:3760: \"$ac_cpp conftest.$ac_ext\"") >&5
3761      (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3762      ac_status=$?
3763      egrep -v '^ *\+' conftest.er1 >conftest.err
3764      rm -f conftest.er1
3765      cat conftest.err >&5
3766      echo "$as_me:3766: \$? = $ac_status" >&5
3767      (exit $ac_status); } >/dev/null; then
3768      if test -s conftest.err; then
3769        ac_cpp_err=$ac_c_preproc_warn_flag
3770      else
3771        ac_cpp_err=
3772      fi
3773    else
3774      ac_cpp_err=yes
3775    fi
3776    if test -z "$ac_cpp_err"; then
3777      eval "$as_ac_Header=yes"
3778    else
3779      echo "$as_me: failed program was:" >&5
3780    cat conftest.$ac_ext >&5    cat conftest.$ac_ext >&5
3781    rm -rf conftest*    eval "$as_ac_Header=no"
   eval "ac_cv_header_$ac_safe=no"  
3782  fi  fi
3783  rm -f conftest*  rm -f conftest.err conftest.$ac_ext
3784  fi  fi
3785  if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then  echo "$as_me:3785: result: `eval echo '${'$as_ac_Header'}'`" >&5
3786    echo "$ac_t""yes" 1>&6  echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3787      ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`  if test `eval echo '${'$as_ac_Header'}'` = yes; then
3788    cat >> confdefs.h <<EOF    cat >>confdefs.h <<EOF
3789  #define $ac_tr_hdr 1  #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3790  EOF  EOF
3791    
 else  
   echo "$ac_t""no" 1>&6  
3792  fi  fi
3793  done  done
3794    
   
3795  # Check for user options.  # Check for user options.
3796    
3797  # filesystems support.  # filesystems support.
3798  # Check whether --enable-ext2fs or --disable-ext2fs was given.  # Check whether --enable-ext2fs or --disable-ext2fs was given.
3799  if test "${enable_ext2fs+set}" = set; then  if test "${enable_ext2fs+set}" = set; then
3800    enableval="$enable_ext2fs"    enableval="$enable_ext2fs"
   :  
 fi  
3801    
3802    fi;
3803    
3804  if test x"$enable_ext2fs" != xno; then  if test x"$enable_ext2fs" != xno; then
3805    FSYS_CFLAGS="$FSYS_CFLAGS -DFSYS_EXT2FS=1"    FSYS_CFLAGS="$FSYS_CFLAGS -DFSYS_EXT2FS=1"
# Line 2516  fi Line 3808  fi
3808  # Check whether --enable-fat or --disable-fat was given.  # Check whether --enable-fat or --disable-fat was given.
3809  if test "${enable_fat+set}" = set; then  if test "${enable_fat+set}" = set; then
3810    enableval="$enable_fat"    enableval="$enable_fat"
   :  
 fi  
3811    
3812    fi;
3813    
3814  if test x"$enable_fat" != xno; then  if test x"$enable_fat" != xno; then
3815    FSYS_CFLAGS="$FSYS_CFLAGS -DFSYS_FAT=1"    FSYS_CFLAGS="$FSYS_CFLAGS -DFSYS_FAT=1"
# Line 2527  fi Line 3818  fi
3818  # Check whether --enable-ffs or --disable-ffs was given.  # Check whether --enable-ffs or --disable-ffs was given.
3819  if test "${enable_ffs+set}" = set; then  if test "${enable_ffs+set}" = set; then
3820    enableval="$enable_ffs"    enableval="$enable_ffs"
   :  
 fi  
3821    
3822    fi;
3823    
3824  if test x"$enable_ffs" != xno; then  if test x"$enable_ffs" != xno; then
3825    FSYS_CFLAGS="$FSYS_CFLAGS -DFSYS_FFS=1"    FSYS_CFLAGS="$FSYS_CFLAGS -DFSYS_FFS=1"
# Line 2538  fi Line 3828  fi
3828  # Check whether --enable-minix or --disable-minix was given.  # Check whether --enable-minix or --disable-minix was given.
3829  if test "${enable_minix+set}" = set; then  if test "${enable_minix+set}" = set; then
3830    enableval="$enable_minix"    enableval="$enable_minix"
   :  
 fi  
3831    
3832    fi;
3833    
3834  if test x"$enable_minix" != xno; then  if test x"$enable_minix" != xno; then
3835    FSYS_CFLAGS="$FSYS_CFLAGS -DFSYS_MINIX=1"    FSYS_CFLAGS="$FSYS_CFLAGS -DFSYS_MINIX=1"
# Line 2549  fi Line 3838  fi
3838  # Check whether --enable-reiserfs or --disable-reiserfs was given.  # Check whether --enable-reiserfs or --disable-reiserfs was given.
3839  if test "${enable_reiserfs+set}" = set; then  if test "${enable_reiserfs+set}" = set; then
3840    enableval="$enable_reiserfs"    enableval="$enable_reiserfs"
   :  
 fi  
3841    
3842    fi;
3843    
3844  if test x"$enable_reiserfs" != xno; then  if test x"$enable_reiserfs" != xno; then
3845    FSYS_CFLAGS="$FSYS_CFLAGS -DFSYS_REISERFS=1"    FSYS_CFLAGS="$FSYS_CFLAGS -DFSYS_REISERFS=1"
# Line 2560  fi Line 3848  fi
3848  # Check whether --enable-vstafs or --disable-vstafs was given.  # Check whether --enable-vstafs or --disable-vstafs was given.
3849  if test "${enable_vstafs+set}" = set; then  if test "${enable_vstafs+set}" = set; then
3850    enableval="$enable_vstafs"    enableval="$enable_vstafs"
   :  
 fi  
3851    
3852    fi;
3853    
3854  if test x"$enable_vstafs" != xno; then  if test x"$enable_vstafs" != xno; then
3855    FSYS_CFLAGS="$FSYS_CFLAGS -DFSYS_VSTAFS=1"    FSYS_CFLAGS="$FSYS_CFLAGS -DFSYS_VSTAFS=1"
3856  fi  fi
3857    
3858    # Check whether --enable-jfs or --disable-jfs was given.
3859    if test "${enable_jfs+set}" = set; then
3860      enableval="$enable_jfs"
3861    
3862    fi;
3863    
3864    if test x"$enable_jfs" != xno; then
3865      FSYS_CFLAGS="$FSYS_CFLAGS -DFSYS_JFS=1"
3866    fi
3867    
3868    # Check whether --enable-xfs or --disable-xfs was given.
3869    if test "${enable_xfs+set}" = set; then
3870      enableval="$enable_xfs"
3871    
3872    fi;
3873    
3874    if test x"$enable_xfs" != xno; then
3875      FSYS_CFLAGS="$FSYS_CFLAGS -DFSYS_XFS=1"
3876    fi
3877    
3878  # Check whether --enable-gunzip or --disable-gunzip was given.  # Check whether --enable-gunzip or --disable-gunzip was given.
3879  if test "${enable_gunzip+set}" = set; then  if test "${enable_gunzip+set}" = set; then
3880    enableval="$enable_gunzip"    enableval="$enable_gunzip"
   :  
 fi  
3881    
3882    fi;
3883    
3884  if test x"$enable_gunzip" = xno; then  if test x"$enable_gunzip" = xno; then
3885    FSYS_CFLAGS="$FSYS_CFLAGS -DNO_DECOMPRESSION=1"    FSYS_CFLAGS="$FSYS_CFLAGS -DNO_DECOMPRESSION=1"
# Line 2583  fi Line 3888  fi
3888  # Check whether --enable-md5-password or --disable-md5-password was given.  # Check whether --enable-md5-password or --disable-md5-password was given.
3889  if test "${enable_md5_password+set}" = set; then  if test "${enable_md5_password+set}" = set; then
3890    enableval="$enable_md5_password"    enableval="$enable_md5_password"
   :  
 fi  
3891    
3892    fi;
3893  if test "x$enable_md5_password" != xno; then  if test "x$enable_md5_password" != xno; then
3894    FSYS_CFLAGS="$FSYS_CFLAGS -DUSE_MD5_PASSWORDS=1"    FSYS_CFLAGS="$FSYS_CFLAGS -DUSE_MD5_PASSWORDS=1"
3895  fi  fi
# Line 2593  fi Line 3897  fi
3897  # Check whether --enable-packet-retransmission or --disable-packet-retransmission was given.  # Check whether --enable-packet-retransmission or --disable-packet-retransmission was given.
3898  if test "${enable_packet_retransmission+set}" = set; then  if test "${enable_packet_retransmission+set}" = set; then
3899    enableval="$enable_packet_retransmission"    enableval="$enable_packet_retransmission"
   :  
 fi  
3900    
3901    fi;
3902  if test "x$enable_packet_retransmission" != xno; then  if test "x$enable_packet_retransmission" != xno; then
3903    NET_EXTRAFLAGS="$NET_EXTRAFLAGS -DCONGESTED=1"    NET_EXTRAFLAGS="$NET_EXTRAFLAGS -DCONGESTED=1"
3904  fi  fi
# Line 2603  fi Line 3906  fi
3906  # Check whether --enable-pci-direct or --disable-pci-direct was given.  # Check whether --enable-pci-direct or --disable-pci-direct was given.
3907  if test "${enable_pci_direct+set}" = set; then  if test "${enable_pci_direct+set}" = set; then
3908    enableval="$enable_pci_direct"    enableval="$enable_pci_direct"
   :  
 fi  
3909    
3910    fi;
3911  if test "x$enable_pci_direct" = xyes; then  if test "x$enable_pci_direct" = xyes; then
3912    NET_EXTRAFLAGS="$NET_EXTRAFLAGS -DCONFIG_PCI_DIRECT=1"    NET_EXTRAFLAGS="$NET_EXTRAFLAGS -DCONFIG_PCI_DIRECT=1"
3913  fi  fi
# Line 2613  fi Line 3915  fi
3915  # Check whether --enable-3c509 or --disable-3c509 was given.  # Check whether --enable-3c509 or --disable-3c509 was given.
3916  if test "${enable_3c509+set}" = set; then  if test "${enable_3c509+set}" = set; then
3917    enableval="$enable_3c509"    enableval="$enable_3c509"
   :  
 fi  
3918    
3919    fi;
3920  if test "x$enable_3c509" = xyes; then  if test "x$enable_3c509" = xyes; then
3921    NET_CFLAGS="$NET_CFLAGS -DINCLUDE_3C509"    NET_CFLAGS="$NET_CFLAGS -DINCLUDE_3C509"
3922    NETBOOT_DRIVERS="$NETBOOT_DRIVERS 3c509.o"    NETBOOT_DRIVERS="$NETBOOT_DRIVERS 3c509.o"
# Line 2624  fi Line 3925  fi
3925  # Check whether --enable-3c529 or --disable-3c529 was given.  # Check whether --enable-3c529 or --disable-3c529 was given.
3926  if test "${enable_3c529+set}" = set; then  if test "${enable_3c529+set}" = set; then
3927    enableval="$enable_3c529"    enableval="$enable_3c529"
   :  
 fi  
3928    
3929    fi;
3930  if test "x$enable_3c529" = xyes; then  if test "x$enable_3c529" = xyes; then
3931    NET_CFLAGS="$NET_CFLAGS -DINCLUDE_3C529=1"    NET_CFLAGS="$NET_CFLAGS -DINCLUDE_3C529=1"
3932    NETBOOT_DRIVERS="$NETBOOT_DRIVERS 3c529.o"    NETBOOT_DRIVERS="$NETBOOT_DRIVERS 3c529.o"
# Line 2635  fi Line 3935  fi
3935  # Check whether --enable-3c590 or --disable-3c590 was given.  # Check whether --enable-3c590 or --disable-3c590 was given.
3936  if test "${enable_3c590+set}" = set; then  if test "${enable_3c590+set}" = set; then
3937    enableval="$enable_3c590"    enableval="$enable_3c590"
   :  
 fi  
3938    
3939    fi;
3940  if test "x$enable_3c590" = xyes; then  if test "x$enable_3c590" = xyes; then
3941    NET_CFLAGS="$NET_CFLAGS -DINCLUDE_3C590=1"    NET_CFLAGS="$NET_CFLAGS -DINCLUDE_3C590=1"
3942    NETBOOT_DRIVERS="$NETBOOT_DRIVERS 3c590.o"    NETBOOT_DRIVERS="$NETBOOT_DRIVERS 3c590.o"
# Line 2646  fi Line 3945  fi
3945  # Check whether --enable-3c595 or --disable-3c595 was given.  # Check whether --enable-3c595 or --disable-3c595 was given.
3946  if test "${enable_3c595+set}" = set; then  if test "${enable_3c595+set}" = set; then
3947    enableval="$enable_3c595"    enableval="$enable_3c595"
   :  
 fi  
3948    
3949    fi;
3950  if test "x$enable_3c595" = xyes; then  if test "x$enable_3c595" = xyes; then
3951    NET_CFLAGS="$NET_CFLAGS -DINCLUDE_3C595=1"    NET_CFLAGS="$NET_CFLAGS -DINCLUDE_3C595=1"
3952    NETBOOT_DRIVERS="$NETBOOT_DRIVERS 3c595.o"    NETBOOT_DRIVERS="$NETBOOT_DRIVERS 3c595.o"
# Line 2657  fi Line 3955  fi
3955  # Check whether --enable-3c90x or --disable-3c90x was given.  # Check whether --enable-3c90x or --disable-3c90x was given.
3956  if test "${enable_3c90x+set}" = set; then  if test "${enable_3c90x+set}" = set; then
3957    enableval="$enable_3c90x"    enableval="$enable_3c90x"
   :  
 fi  
3958    
3959    fi;
3960  if test "x$enable_3c90x" = xyes; then  if test "x$enable_3c90x" = xyes; then
3961    NET_CFLAGS="$NET_CFLAGS -DINCLUDE_3C90X=1"    NET_CFLAGS="$NET_CFLAGS -DINCLUDE_3C90X=1"
3962    NETBOOT_DRIVERS="$NETBOOT_DRIVERS 3c90x.o"    NETBOOT_DRIVERS="$NETBOOT_DRIVERS 3c90x.o"
# Line 2668  fi Line 3965  fi
3965  # Check whether --enable-cs89x0 or --disable-cs89x0 was given.  # Check whether --enable-cs89x0 or --disable-cs89x0 was given.
3966  if test "${enable_cs89x0+set}" = set; then  if test "${enable_cs89x0+set}" = set; then
3967    enableval="$enable_cs89x0"    enableval="$enable_cs89x0"
   :  
 fi  
3968    
3969    fi;
3970  if test "x$enable_cs89x0" = xyes; then  if test "x$enable_cs89x0" = xyes; then
3971    NET_CFLAGS="$NET_CFLAGS -DINCLUDE_CS89X0=1"    NET_CFLAGS="$NET_CFLAGS -DINCLUDE_CS89X0=1"
3972    NETBOOT_DRIVERS="$NETBOOT_DRIVERS cs89x0.o"    NETBOOT_DRIVERS="$NETBOOT_DRIVERS cs89x0.o"
# Line 2679  fi Line 3975  fi
3975  # Check whether --enable-depca or --disable-depca was given.  # Check whether --enable-depca or --disable-depca was given.
3976  if test "${enable_depca+set}" = set; then  if test "${enable_depca+set}" = set; then
3977    enableval="$enable_depca"    enableval="$enable_depca"
   :  
 fi  
3978    
3979    fi;
3980  if test "x$enable_depca" = xyes; then  if test "x$enable_depca" = xyes; then
3981    NET_CFLAGS="$NET_CFLAGS -DINCLUDE_DEPCA=1"    NET_CFLAGS="$NET_CFLAGS -DINCLUDE_DEPCA=1"
3982    NETBOOT_DRIVERS="$NETBOOT_DRIVERS depca.o"    NETBOOT_DRIVERS="$NETBOOT_DRIVERS depca.o"
# Line 2690  fi Line 3985  fi
3985  # Check whether --enable-eepro100 or --disable-eepro100 was given.  # Check whether --enable-eepro100 or --disable-eepro100 was given.
3986  if test "${enable_eepro100+set}" = set; then  if test "${enable_eepro100+set}" = set; then
3987    enableval="$enable_eepro100"    enableval="$enable_eepro100"
   :  
 fi  
3988    
3989    fi;
3990  if test "x$enable_eepro100" = xyes; then  if test "x$enable_eepro100" = xyes; then
3991    NET_CFLAGS="$NET_CFLAGS -DINCLUDE_EEPRO100=1"    NET_CFLAGS="$NET_CFLAGS -DINCLUDE_EEPRO100=1"
3992    NETBOOT_DRIVERS="$NETBOOT_DRIVERS eepro100.o"    NETBOOT_DRIVERS="$NETBOOT_DRIVERS eepro100.o"
# Line 2701  fi Line 3995  fi
3995  # Check whether --enable-epic100 or --disable-epic100 was given.  # Check whether --enable-epic100 or --disable-epic100 was given.
3996  if test "${enable_epic100+set}" = set; then  if test "${enable_epic100+set}" = set; then
3997    enableval="$enable_epic100"    enableval="$enable_epic100"
   :  
 fi  
3998    
3999    fi;
4000  if test "x$enable_epic100" = xyes; then  if test "x$enable_epic100" = xyes; then
4001    NET_CFLAGS="$NET_CFLAGS -DINCLUDE_EPIC100=1"    NET_CFLAGS="$NET_CFLAGS -DINCLUDE_EPIC100=1"
4002    NETBOOT_DRIVERS="$NETBOOT_DRIVERS epic100.o"    NETBOOT_DRIVERS="$NETBOOT_DRIVERS epic100.o"
# Line 2712  fi Line 4005  fi
4005  # Check whether --enable-3c507 or --disable-3c507 was given.  # Check whether --enable-3c507 or --disable-3c507 was given.
4006  if test "${enable_3c507+set}" = set; then  if test "${enable_3c507+set}" = set; then
4007    enableval="$enable_3c507"    enableval="$enable_3c507"
   :  
 fi  
4008    
4009    fi;
4010  if test "x$enable_3c507" = xyes; then  if test "x$enable_3c507" = xyes; then
4011    NET_CFLAGS="$NET_CFLAGS -DINCLUDE_3C507=1"    NET_CFLAGS="$NET_CFLAGS -DINCLUDE_3C507=1"
4012    NETBOOT_DRIVERS="$NETBOOT_DRIVERS 3c507.o"    NETBOOT_DRIVERS="$NETBOOT_DRIVERS 3c507.o"
# Line 2723  fi Line 4015  fi
4015  # Check whether --enable-exos205 or --disable-exos205 was given.  # Check whether --enable-exos205 or --disable-exos205 was given.
4016  if test "${enable_exos205+set}" = set; then  if test "${enable_exos205+set}" = set; then
4017    enableval="$enable_exos205"    enableval="$enable_exos205"
   :  
 fi  
4018    
4019    fi;
4020  if test "x$enable_exos205" = xyes; then  if test "x$enable_exos205" = xyes; then
4021    NET_CFLAGS="$NET_CFLAGS -DINCLUDE_EXOS205=1"    NET_CFLAGS="$NET_CFLAGS -DINCLUDE_EXOS205=1"
4022    NETBOOT_DRIVERS="$NETBOOT_DRIVERS exos205.o"    NETBOOT_DRIVERS="$NETBOOT_DRIVERS exos205.o"
# Line 2734  fi Line 4025  fi
4025  # Check whether --enable-ni5210 or --disable-ni5210 was given.  # Check whether --enable-ni5210 or --disable-ni5210 was given.
4026  if test "${enable_ni5210+set}" = set; then  if test "${enable_ni5210+set}" = set; then
4027    enableval="$enable_ni5210"    enableval="$enable_ni5210"
   :  
 fi  
4028    
4029    fi;
4030  if test "x$enable_ni5210" = xyes; then  if test "x$enable_ni5210" = xyes; then
4031    NET_CFLAGS="$NET_CFLAGS -DINCLUDE_NI5210=1"    NET_CFLAGS="$NET_CFLAGS -DINCLUDE_NI5210=1"
4032    NETBOOT_DRIVERS="$NETBOOT_DRIVERS ni5210.o"    NETBOOT_DRIVERS="$NETBOOT_DRIVERS ni5210.o"
# Line 2745  fi Line 4035  fi
4035  # Check whether --enable-lance or --disable-lance was given.  # Check whether --enable-lance or --disable-lance was given.
4036  if test "${enable_lance+set}" = set; then  if test "${enable_lance+set}" = set; then
4037    enableval="$enable_lance"    enableval="$enable_lance"
   :  
 fi  
4038    
4039    fi;
4040  if test "x$enable_lance" = xyes; then  if test "x$enable_lance" = xyes; then
4041    NET_CFLAGS="$NET_CFLAGS -DINCLUDE_LANCE=1"    NET_CFLAGS="$NET_CFLAGS -DINCLUDE_LANCE=1"
4042    NETBOOT_DRIVERS="$NETBOOT_DRIVERS lance.o"    NETBOOT_DRIVERS="$NETBOOT_DRIVERS lance.o"
# Line 2756  fi Line 4045  fi
4045  # Check whether --enable-ne2100 or --disable-ne2100 was given.  # Check whether --enable-ne2100 or --disable-ne2100 was given.
4046  if test "${enable_ne2100+set}" = set; then  if test "${enable_ne2100+set}" = set; then
4047    enableval="$enable_ne2100"    enableval="$enable_ne2100"
   :  
 fi  
4048    
4049    fi;
4050  if test "x$enable_ne2100" = xyes; then  if test "x$enable_ne2100" = xyes; then
4051    NET_CFLAGS="$NET_CFLAGS -DINCLUDE_NE2100=1"    NET_CFLAGS="$NET_CFLAGS -DINCLUDE_NE2100=1"
4052    NETBOOT_DRIVERS="$NETBOOT_DRIVERS ne2100.o"    NETBOOT_DRIVERS="$NETBOOT_DRIVERS ne2100.o"
# Line 2767  fi Line 4055  fi
4055  # Check whether --enable-ni6510 or --disable-ni6510 was given.  # Check whether --enable-ni6510 or --disable-ni6510 was given.
4056  if test "${enable_ni6510+set}" = set; then  if test "${enable_ni6510+set}" = set; then
4057    enableval="$enable_ni6510"    enableval="$enable_ni6510"
   :  
 fi  
4058    
4059    fi;
4060  if test "x$enable_ni6510" = xyes; then  if test "x$enable_ni6510" = xyes; then
4061    NET_CFLAGS="$NET_CFLAGS -DINCLUDE_NI6510=1"    NET_CFLAGS="$NET_CFLAGS -DINCLUDE_NI6510=1"
4062    NETBOOT_DRIVERS="$NETBOOT_DRIVERS ni6510.o"    NETBOOT_DRIVERS="$NETBOOT_DRIVERS ni6510.o"
# Line 2778  fi Line 4065  fi
4065  # Check whether --enable-3c503 or --disable-3c503 was given.  # Check whether --enable-3c503 or --disable-3c503 was given.
4066  if test "${enable_3c503+set}" = set; then  if test "${enable_3c503+set}" = set; then
4067    enableval="$enable_3c503"    enableval="$enable_3c503"
   :  
 fi  
4068    
4069    fi;
4070  if test "x$enable_3c503" = xyes; then  if test "x$enable_3c503" = xyes; then
4071    NET_CFLAGS="$NET_CFLAGS -DINCLUDE_3C503=1"    NET_CFLAGS="$NET_CFLAGS -DINCLUDE_3C503=1"
4072    NETBOOT_DRIVERS="$NETBOOT_DRIVERS 3c503.o"    NETBOOT_DRIVERS="$NETBOOT_DRIVERS 3c503.o"
# Line 2789  fi Line 4075  fi
4075  # Check whether --enable-ne or --disable-ne was given.  # Check whether --enable-ne or --disable-ne was given.
4076  if test "${enable_ne+set}" = set; then  if test "${enable_ne+set}" = set; then
4077    enableval="$enable_ne"    enableval="$enable_ne"
   :  
 fi  
4078    
4079    fi;
4080  if test "x$enable_ne" = xyes; then  if test "x$enable_ne" = xyes; then
4081    NET_CFLAGS="$NET_CFLAGS -DINCLUDE_NE=1"    NET_CFLAGS="$NET_CFLAGS -DINCLUDE_NE=1"
4082    NETBOOT_DRIVERS="$NETBOOT_DRIVERS ne.o"    NETBOOT_DRIVERS="$NETBOOT_DRIVERS ne.o"
# Line 2800  fi Line 4085  fi
4085  # Check whether --enable-ns8390 or --disable-ns8390 was given.  # Check whether --enable-ns8390 or --disable-ns8390 was given.
4086  if test "${enable_ns8390+set}" = set; then  if test "${enable_ns8390+set}" = set; then
4087    enableval="$enable_ns8390"    enableval="$enable_ns8390"
   :  
 fi  
4088    
4089    fi;
4090  if test "x$enable_ns8390" = xyes; then  if test "x$enable_ns8390" = xyes; then
4091    NET_CFLAGS="$NET_CFLAGS -DINCLUDE_NS8390=1"    NET_CFLAGS="$NET_CFLAGS -DINCLUDE_NS8390=1"
4092    NETBOOT_DRIVERS="$NETBOOT_DRIVERS ns8390.o"    NETBOOT_DRIVERS="$NETBOOT_DRIVERS ns8390.o"
# Line 2811  fi Line 4095  fi
4095  # Check whether --enable-wd or --disable-wd was given.  # Check whether --enable-wd or --disable-wd was given.
4096  if test "${enable_wd+set}" = set; then  if test "${enable_wd+set}" = set; then
4097    enableval="$enable_wd"    enableval="$enable_wd"
   :  
 fi  
4098    
4099    fi;
4100  if test "x$enable_wd" = xyes; then  if test "x$enable_wd" = xyes; then
4101    NET_CFLAGS="$NET_CFLAGS -DINCLUDE_WD=1"    NET_CFLAGS="$NET_CFLAGS -DINCLUDE_WD=1"
4102    NETBOOT_DRIVERS="$NETBOOT_DRIVERS wd.o"    NETBOOT_DRIVERS="$NETBOOT_DRIVERS wd.o"
# Line 2822  fi Line 4105  fi
4105  # Check whether --enable-otulip or --disable-otulip was given.  # Check whether --enable-otulip or --disable-otulip was given.
4106  if test "${enable_otulip+set}" = set; then  if test "${enable_otulip+set}" = set; then
4107    enableval="$enable_otulip"    enableval="$enable_otulip"
   :  
 fi  
4108    
4109    fi;
4110  if test "x$enable_otulip" = xyes; then  if test "x$enable_otulip" = xyes; then
4111    NET_CFLAGS="$NET_CFLAGS -DINCLUDE_OTULIP=1"    NET_CFLAGS="$NET_CFLAGS -DINCLUDE_OTULIP=1"
4112    NETBOOT_DRIVERS="$NETBOOT_DRIVERS otulip.o"    NETBOOT_DRIVERS="$NETBOOT_DRIVERS otulip.o"
# Line 2833  fi Line 4115  fi
4115  # Check whether --enable-rtl8139 or --disable-rtl8139 was given.  # Check whether --enable-rtl8139 or --disable-rtl8139 was given.
4116  if test "${enable_rtl8139+set}" = set; then  if test "${enable_rtl8139+set}" = set; then
4117    enableval="$enable_rtl8139"    enableval="$enable_rtl8139"
   :  
 fi  
4118    
4119    fi;
4120  if test "x$enable_rtl8139" = xyes; then  if test "x$enable_rtl8139" = xyes; then
4121    NET_CFLAGS="$NET_CFLAGS -DINCLUDE_RTL8139=1"    NET_CFLAGS="$NET_CFLAGS -DINCLUDE_RTL8139=1"
4122    NETBOOT_DRIVERS="$NETBOOT_DRIVERS rtl8139.o"    NETBOOT_DRIVERS="$NETBOOT_DRIVERS rtl8139.o"
# Line 2844  fi Line 4125  fi
4125  # Check whether --enable-sk-g16 or --disable-sk-g16 was given.  # Check whether --enable-sk-g16 or --disable-sk-g16 was given.
4126  if test "${enable_sk_g16+set}" = set; then  if test "${enable_sk_g16+set}" = set; then
4127    enableval="$enable_sk_g16"    enableval="$enable_sk_g16"
   :  
 fi  
4128    
4129    fi;
4130  if test "x$enable_sk_g16" = xyes; then  if test "x$enable_sk_g16" = xyes; then
4131    NET_CFLAGS="$NET_CFLAGS -DINCLUDE_SK_G16=1"    NET_CFLAGS="$NET_CFLAGS -DINCLUDE_SK_G16=1"
4132    NETBOOT_DRIVERS="$NETBOOT_DRIVERS sk_g16.o"    NETBOOT_DRIVERS="$NETBOOT_DRIVERS sk_g16.o"
# Line 2855  fi Line 4135  fi
4135  # Check whether --enable-smc9000 or --disable-smc9000 was given.  # Check whether --enable-smc9000 or --disable-smc9000 was given.
4136  if test "${enable_smc9000+set}" = set; then  if test "${enable_smc9000+set}" = set; then
4137    enableval="$enable_smc9000"    enableval="$enable_smc9000"
   :  
 fi  
4138    
4139    fi;
4140  if test "x$enable_smc9000" = xyes; then  if test "x$enable_smc9000" = xyes; then
4141    NET_CFLAGS="$NET_CFLAGS -DINCLUDE_SMC9000=1"    NET_CFLAGS="$NET_CFLAGS -DINCLUDE_SMC9000=1"
4142    NETBOOT_DRIVERS="$NETBOOT_DRIVERS smc9000.o"    NETBOOT_DRIVERS="$NETBOOT_DRIVERS smc9000.o"
# Line 2866  fi Line 4145  fi
4145  # Check whether --enable-tiara or --disable-tiara was given.  # Check whether --enable-tiara or --disable-tiara was given.
4146  if test "${enable_tiara+set}" = set; then  if test "${enable_tiara+set}" = set; then
4147    enableval="$enable_tiara"    enableval="$enable_tiara"
   :  
 fi  
4148    
4149    fi;
4150  if test "x$enable_tiara" = xyes; then  if test "x$enable_tiara" = xyes; then
4151    NET_CFLAGS="$NET_CFLAGS -DINCLUDE_TIARA=1"    NET_CFLAGS="$NET_CFLAGS -DINCLUDE_TIARA=1"
4152    NETBOOT_DRIVERS="$NETBOOT_DRIVERS tiara.o"    NETBOOT_DRIVERS="$NETBOOT_DRIVERS tiara.o"
# Line 2877  fi Line 4155  fi
4155  # Check whether --enable-tulip or --disable-tulip was given.  # Check whether --enable-tulip or --disable-tulip was given.
4156  if test "${enable_tulip+set}" = set; then  if test "${enable_tulip+set}" = set; then
4157    enableval="$enable_tulip"    enableval="$enable_tulip"
   :  
 fi  
4158    
4159    fi;
4160  if test "x$enable_tulip" = xyes; then  if test "x$enable_tulip" = xyes; then
4161    NET_CFLAGS="$NET_CFLAGS -DINCLUDE_TULIP=1"    NET_CFLAGS="$NET_CFLAGS -DINCLUDE_TULIP=1"
4162    NETBOOT_DRIVERS="$NETBOOT_DRIVERS tulip.o"    NETBOOT_DRIVERS="$NETBOOT_DRIVERS tulip.o"
# Line 2888  fi Line 4165  fi
4165  # Check whether --enable-via-rhine or --disable-via-rhine was given.  # Check whether --enable-via-rhine or --disable-via-rhine was given.
4166  if test "${enable_via_rhine+set}" = set; then  if test "${enable_via_rhine+set}" = set; then
4167    enableval="$enable_via_rhine"    enableval="$enable_via_rhine"
   :  
 fi  
4168    
4169    fi;
4170  if test "x$enable_via_rhine" = xyes; then  if test "x$enable_via_rhine" = xyes; then
4171    NET_CFLAGS="$NET_CFLAGS -DINCLUDE_VIA_RHINE=1"    NET_CFLAGS="$NET_CFLAGS -DINCLUDE_VIA_RHINE=1"
4172    NETBOOT_DRIVERS="$NETBOOT_DRIVERS via_rhine.o"    NETBOOT_DRIVERS="$NETBOOT_DRIVERS via_rhine.o"
4173  fi  fi
4174    
   
   
4175  if test "x$NET_CFLAGS" != x; then  if test "x$NET_CFLAGS" != x; then
4176    NETBOOT_SUPPORT_TRUE=    NETBOOT_SUPPORT_TRUE=
4177    NETBOOT_SUPPORT_FALSE='#'    NETBOOT_SUPPORT_FALSE='#'
# Line 2912  fi Line 4186  fi
4186  # Check whether --enable-3c503-shmem or --disable-3c503-shmem was given.  # Check whether --enable-3c503-shmem or --disable-3c503-shmem was given.
4187  if test "${enable_3c503_shmem+set}" = set; then  if test "${enable_3c503_shmem+set}" = set; then
4188    enableval="$enable_3c503_shmem"    enableval="$enable_3c503_shmem"
   :  
 fi  
4189    
4190    fi;
4191  if test "x$enable_3c503_shmem" = xyes; then  if test "x$enable_3c503_shmem" = xyes; then
4192    NET_EXTRAFLAGS="$NET_EXTRAFLAGS -DT503_SHMEM=1"    NET_EXTRAFLAGS="$NET_EXTRAFLAGS -DT503_SHMEM=1"
4193  fi  fi
# Line 2922  fi Line 4195  fi
4195  # Check whether --enable-3c503-aui or --disable-3c503-aui was given.  # Check whether --enable-3c503-aui or --disable-3c503-aui was given.
4196  if test "${enable_3c503_aui+set}" = set; then  if test "${enable_3c503_aui+set}" = set; then
4197    enableval="$enable_3c503_aui"    enableval="$enable_3c503_aui"
   :  
 fi  
4198    
4199    fi;
4200  if test "x$enable_3c503_aui" = xyes; then  if test "x$enable_3c503_aui" = xyes; then
4201    NET_EXTRAFLAGS="$NET_EXTRAFLAGS -DT503_AUI=1"    NET_EXTRAFLAGS="$NET_EXTRAFLAGS -DT503_AUI=1"
4202  fi  fi
# Line 2932  fi Line 4204  fi
4204  # Check whether --enable-3c509-hack or --disable-3c509-hack was given.  # Check whether --enable-3c509-hack or --disable-3c509-hack was given.
4205  if test "${enable_3c509_hack+set}" = set; then  if test "${enable_3c509_hack+set}" = set; then
4206    enableval="$enable_3c509_hack"    enableval="$enable_3c509_hack"
   :  
 fi  
4207    
4208    fi;
4209  if test "x$enable_3c509_hack" = xyes; then  if test "x$enable_3c509_hack" = xyes; then
4210    NET_EXTRAFLAGS="$NET_EXTRAFLAGS -DT509HACK=1"    NET_EXTRAFLAGS="$NET_EXTRAFLAGS -DT509HACK=1"
4211  fi  fi
# Line 2942  fi Line 4213  fi
4213  # Check whether --enable-compex-rl2000-fix or --disable-compex-rl2000-fix was given.  # Check whether --enable-compex-rl2000-fix or --disable-compex-rl2000-fix was given.
4214  if test "${enable_compex_rl2000_fix+set}" = set; then  if test "${enable_compex_rl2000_fix+set}" = set; then
4215    enableval="$enable_compex_rl2000_fix"    enableval="$enable_compex_rl2000_fix"
   :  
 fi  
4216    
4217    fi;
4218  if test "x$enable_compex_rl2000_fix" = xyes; then  if test "x$enable_compex_rl2000_fix" = xyes; then
4219    NET_EXTRAFLAGS="$NET_EXTRAFLAGS -DCOMPEX_RL2000_FIX=1"    NET_EXTRAFLAGS="$NET_EXTRAFLAGS -DCOMPEX_RL2000_FIX=1"
4220  fi  fi
# Line 2952  fi Line 4222  fi
4222  # Check whether --enable-ns8390-force-16bit or --disable-ns8390-force-16bit was given.  # Check whether --enable-ns8390-force-16bit or --disable-ns8390-force-16bit was given.
4223  if test "${enable_ns8390_force_16bit+set}" = set; then  if test "${enable_ns8390_force_16bit+set}" = set; then
4224    enableval="$enable_ns8390_force_16bit"    enableval="$enable_ns8390_force_16bit"
   :  
 fi  
4225    
4226    fi;
4227  if test "x$enable_ns8390_force_16bit" = xyes; then  if test "x$enable_ns8390_force_16bit" = xyes; then
4228    NET_EXTRAFLAGS="$NET_EXTRAFLAGS -DNS8390_FORCE_16BIT=1"    NET_EXTRAFLAGS="$NET_EXTRAFLAGS -DNS8390_FORCE_16BIT=1"
4229  fi  fi
# Line 2963  fi Line 4232  fi
4232  if test "${enable_smc9000_scan+set}" = set; then  if test "${enable_smc9000_scan+set}" = set; then
4233    enableval="$enable_smc9000_scan"    enableval="$enable_smc9000_scan"
4234    NET_EXTRAFLAGS="$NET_EXTRAFLAGS -DSMC9000_SCAN=$enable_smc9000_scan"    NET_EXTRAFLAGS="$NET_EXTRAFLAGS -DSMC9000_SCAN=$enable_smc9000_scan"
4235  fi  fi;
   
4236    
4237  # Check whether --enable-ne-scan or --disable-ne-scan was given.  # Check whether --enable-ne-scan or --disable-ne-scan was given.
4238  if test "${enable_ne_scan+set}" = set; then  if test "${enable_ne_scan+set}" = set; then
# Line 2972  if test "${enable_ne_scan+set}" = set; t Line 4240  if test "${enable_ne_scan+set}" = set; t
4240    NET_EXTRAFLAGS="$NET_EXTRAFLAGS -DNE_SCAN=$enable_ne_scan"    NET_EXTRAFLAGS="$NET_EXTRAFLAGS -DNE_SCAN=$enable_ne_scan"
4241  else  else
4242    NET_EXTRAFLAGS="$NET_EXTRAFLAGS -DNE_SCAN=0x280,0x300,0x320,0x340"    NET_EXTRAFLAGS="$NET_EXTRAFLAGS -DNE_SCAN=0x280,0x300,0x320,0x340"
4243  fi  fi;
   
4244    
4245  # Check whether --enable-wd-default-mem or --disable-wd-default-mem was given.  # Check whether --enable-wd-default-mem or --disable-wd-default-mem was given.
4246  if test "${enable_wd_default_mem+set}" = set; then  if test "${enable_wd_default_mem+set}" = set; then
# Line 2981  if test "${enable_wd_default_mem+set}" = Line 4248  if test "${enable_wd_default_mem+set}" =
4248    NET_EXTRAFLAGS="$NET_EXTRAFLAGS -DWD_DEFAULT_MEM=$enable_wd_default_mem"    NET_EXTRAFLAGS="$NET_EXTRAFLAGS -DWD_DEFAULT_MEM=$enable_wd_default_mem"
4249  else  else
4250    NET_EXTRAFLAGS="$NET_EXTRAFLAGS -DWD_DEFAULT_MEM=0xCC000"    NET_EXTRAFLAGS="$NET_EXTRAFLAGS -DWD_DEFAULT_MEM=0xCC000"
4251  fi  fi;
   
4252    
4253  # Check whether --enable-cs-scan or --disable-cs-scan was given.  # Check whether --enable-cs-scan or --disable-cs-scan was given.
4254  if test "${enable_cs_scan+set}" = set; then  if test "${enable_cs_scan+set}" = set; then
4255    enableval="$enable_cs_scan"    enableval="$enable_cs_scan"
4256    NET_EXTRAFLAGS="$NET_EXTRAFLAGS -DCS_SCAN=$enable_cs_scan"    NET_EXTRAFLAGS="$NET_EXTRAFLAGS -DCS_SCAN=$enable_cs_scan"
4257  fi  fi;
   
4258    
4259  # Check whether --enable-diskless or --disable-diskless was given.  # Check whether --enable-diskless or --disable-diskless was given.
4260  if test "${enable_diskless+set}" = set; then  if test "${enable_diskless+set}" = set; then
4261    enableval="$enable_diskless"    enableval="$enable_diskless"
   :  
 fi  
   
4262    
4263    fi;
4264    
4265  if test "x$enable_diskless" = xyes; then  if test "x$enable_diskless" = xyes; then
4266    DISKLESS_SUPPORT_TRUE=    DISKLESS_SUPPORT_TRUE=
# Line 3010  fi Line 4273  fi
4273  # Check whether --enable-hercules or --disable-hercules was given.  # Check whether --enable-hercules or --disable-hercules was given.
4274  if test "${enable_hercules+set}" = set; then  if test "${enable_hercules+set}" = set; then
4275    enableval="$enable_hercules"    enableval="$enable_hercules"
   :  
 fi  
   
4276    
4277    fi;
4278    
4279  if test "x$enable_hercules" != xno; then  if test "x$enable_hercules" != xno; then
4280    HERCULES_SUPPORT_TRUE=    HERCULES_SUPPORT_TRUE=
# Line 3026  fi Line 4287  fi
4287  # Check whether --enable-serial or --disable-serial was given.  # Check whether --enable-serial or --disable-serial was given.
4288  if test "${enable_serial+set}" = set; then  if test "${enable_serial+set}" = set; then
4289    enableval="$enable_serial"    enableval="$enable_serial"
   :  
 fi  
   
4290    
4291    fi;
4292    
4293  if test "x$enable_serial" != xno; then  if test "x$enable_serial" != xno; then
4294    SERIAL_SUPPORT_TRUE=    SERIAL_SUPPORT_TRUE=
# Line 3042  fi Line 4301  fi
4301  # Check whether --enable-serial-speed-simulation or --disable-serial-speed-simulation was given.  # Check whether --enable-serial-speed-simulation or --disable-serial-speed-simulation was given.
4302  if test "${enable_serial_speed_simulation+set}" = set; then  if test "${enable_serial_speed_simulation+set}" = set; then
4303    enableval="$enable_serial_speed_simulation"    enableval="$enable_serial_speed_simulation"
   :  
 fi  
   
4304    
4305    fi;
4306    
4307  if test "x$enable_serial_speed_simulation" = xyes; then  if test "x$enable_serial_speed_simulation" = xyes; then
4308    SERIAL_SPEED_SIMULATION_TRUE=    SERIAL_SPEED_SIMULATION_TRUE=
# Line 3058  fi Line 4315  fi
4315  # Sanity check.  # Sanity check.
4316  if test "x$enable_diskless" = xyes; then  if test "x$enable_diskless" = xyes; then
4317    if test "x$NET_CFLAGS" = x; then    if test "x$NET_CFLAGS" = x; then
4318      { echo "configure: error: You must enable at least one network driver" 1>&2; exit 1; }      { { echo "$as_me:4318: error: You must enable at least one network driver" >&5
4319    echo "$as_me: error: You must enable at least one network driver" >&2;}
4320       { (exit 1); exit 1; }; }
4321    fi    fi
4322  fi  fi
4323    
4324  # Check whether --enable-preset-menu or --disable-preset-menu was given.  # Check whether --enable-preset-menu or --disable-preset-menu was given.
4325  if test "${enable_preset_menu+set}" = set; then  if test "${enable_preset_menu+set}" = set; then
4326    enableval="$enable_preset_menu"    enableval="$enable_preset_menu"
   :  
 fi  
4327    
4328    fi;
4329  if test "x$enable_preset_menu" = x; then  if test "x$enable_preset_menu" = x; then
4330    :    :
4331  else  else
4332    if test -r $enable_preset_menu; then    if test -r $enable_preset_menu; then
4333        
4334  # Because early versions of GNU sed 3.x are too buggy, use a C program  # Because early versions of GNU sed 3.x are too buggy, use a C program
4335  # instead of shell commands. *sigh*  # instead of shell commands. *sigh*
4336  cat >conftest.c <<\EOF  cat >conftest.c <<\EOF
# Line 3108  main (void) Line 4366  main (void)
4366  }  }
4367  EOF  EOF
4368    
4369  if { ac_try='${CC-cc} ${CFLAGS} conftest.c -o conftest'; { (eval echo configure:3112: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } && test -s conftest; then  if { ac_try='${CC-cc} ${CFLAGS} conftest.c -o conftest'
4370      { (eval echo "$as_me:4370: \"$ac_try\"") >&5
4371      (eval $ac_try) 2>&5
4372      ac_status=$?
4373      echo "$as_me:4373: \$? = $ac_status" >&5
4374      (exit $ac_status); }; } && test -s conftest; then
4375    grub_tmp_value=`./conftest < "$enable_preset_menu"`    grub_tmp_value=`./conftest < "$enable_preset_menu"`
4376  else  else
4377    { echo "configure: error: ${CC-cc} failed to produce an executable file" 1>&2; exit 1; }    { { echo "$as_me:4377: error: ${CC-cc} failed to produce an executable file" >&5
4378    echo "$as_me: error: ${CC-cc} failed to produce an executable file" >&2;}
4379       { (exit 1); exit 1; }; }
4380  fi  fi
4381    
4382  cat >> confdefs.h <<EOF  cat >>confdefs.h <<EOF
4383  #define PRESET_MENU_STRING "$grub_tmp_value"  #define PRESET_MENU_STRING "$grub_tmp_value"
4384  EOF  EOF
4385    
4386  rm -f conftest*  rm -f conftest*
4387    
4388    else    else
4389      { echo "configure: error: Cannot read the preset menu file $enable_preset_menu" 1>&2; exit 1; }      { { echo "$as_me:4389: error: Cannot read the preset menu file $enable_preset_menu" >&5
4390    echo "$as_me: error: Cannot read the preset menu file $enable_preset_menu" >&2;}
4391       { (exit 1); exit 1; }; }
4392    fi    fi
4393  fi  fi
4394    
4395  # Check whether --enable-example-kernel or --disable-example-kernel was given.  # Check whether --enable-example-kernel or --disable-example-kernel was given.
4396  if test "${enable_example_kernel+set}" = set; then  if test "${enable_example_kernel+set}" = set; then
4397    enableval="$enable_example_kernel"    enableval="$enable_example_kernel"
   :  
 fi  
   
4398    
4399    fi;
4400    
4401  if test "x$enable_example_kernel" = xyes; then  if test "x$enable_example_kernel" = xyes; then
4402    BUILD_EXAMPLE_KERNEL_TRUE=    BUILD_EXAMPLE_KERNEL_TRUE=
# Line 3144  fi Line 4409  fi
4409  # Check whether --enable-auto-linux-mem-opt or --disable-auto-linux-mem-opt was given.  # Check whether --enable-auto-linux-mem-opt or --disable-auto-linux-mem-opt was given.
4410  if test "${enable_auto_linux_mem_opt+set}" = set; then  if test "${enable_auto_linux_mem_opt+set}" = set; then
4411    enableval="$enable_auto_linux_mem_opt"    enableval="$enable_auto_linux_mem_opt"
   :  
 fi  
4412    
4413    fi;
4414  if test "x$enable_auto_linux_mem_opt" = xno; then  if test "x$enable_auto_linux_mem_opt" = xno; then
4415    :    :
4416  else  else
4417    cat >> confdefs.h <<\EOF    cat >>confdefs.h <<\EOF
4418  #define AUTO_LINUX_MEM_OPT 1  #define AUTO_LINUX_MEM_OPT 1
4419  EOF  EOF
4420    
4421  fi  fi
4422    
   
   
   
   
   
4423  ASFLAGS='$(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(CPPFLAGS) $(CFLAGS)'  ASFLAGS='$(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(CPPFLAGS) $(CFLAGS)'
4424    
4425    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"
4426    cat >confcache <<\_ACEOF
 trap '' 1 2 15  
 cat > confcache <<\EOF  
4427  # This file is a shell script that caches the results of configure  # This file is a shell script that caches the results of configure
4428  # tests run on this system so they can be shared between configure  # tests run on this system so they can be shared between configure
4429  # scripts and configure runs.  It is not useful on other systems.  # scripts and configure runs, see configure's option --config-cache.
4430  # If it contains results you don't want to keep, you may remove or edit it.  # It is not useful on other systems.  If it contains results you don't
4431    # want to keep, you may remove or edit it.
4432  #  #
4433  # By default, configure uses ./config.cache as the cache file,  # config.status only pays attention to the cache file if you give it
4434  # creating it if it does not exist already.  You can give configure  # the --recheck option to rerun configure.
 # the --cache-file=FILE option to use a different cache file; that is  
 # what configure does when it calls configure scripts in  
 # subdirectories, so they share the cache.  
 # Giving --cache-file=/dev/null disables caching, for debugging configure.  
 # config.status only pays attention to the cache file if you give it the  
 # --recheck option to rerun configure.  
4435  #  #
4436  EOF  # `ac_cv_env_foo' variables (set or unset) will be overriden when
4437    # loading this file, other *unset* `ac_cv_foo' will be assigned the
4438    # following values.
4439    
4440    _ACEOF
4441    
4442  # The following way of writing the cache mishandles newlines in values,  # The following way of writing the cache mishandles newlines in values,
4443  # but we know of no workaround that is simple, portable, and efficient.  # but we know of no workaround that is simple, portable, and efficient.
4444  # So, don't put newlines in cache variables' values.  # So, don't put newlines in cache variables' values.
4445  # Ultrix sh set writes to stderr and can't be redirected directly,  # Ultrix sh set writes to stderr and can't be redirected directly,
4446  # and sets the high bit in the cache file unless we assign to the vars.  # and sets the high bit in the cache file unless we assign to the vars.
4447  (set) 2>&1 |  {
4448    case `(ac_space=' '; set | grep ac_space) 2>&1` in    (set) 2>&1 |
4449    *ac_space=\ *)      case `(ac_space=' '; set | grep ac_space) 2>&1` in
4450      # `set' does not quote correctly, so add quotes (double-quote substitution      *ac_space=\ *)
4451      # turns \\\\ into \\, and sed turns \\ into \).        # `set' does not quote correctly, so add quotes (double-quote
4452      sed -n \        # substitution turns \\\\ into \\, and sed turns \\ into \).
4453        -e "s/'/'\\\\''/g" \        sed -n \
4454        -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"          "s/'/'\\\\''/g;
4455      ;;            s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4456    *)        ;;
4457      # `set' quotes correctly as required by POSIX, so do not add quotes.      *)
4458      sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'        # `set' quotes correctly as required by POSIX, so do not add quotes.
4459      ;;        sed -n \
4460    esac >> confcache          "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4461  if cmp -s $cache_file confcache; then        ;;
4462    :      esac;
4463  else  } |
4464      sed '
4465         t clear
4466         : clear
4467         s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4468         t end
4469         /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4470         : end' >>confcache
4471    if cmp -s $cache_file confcache; then :; else
4472    if test -w $cache_file; then    if test -w $cache_file; then
4473      echo "updating cache $cache_file"      test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4474      cat confcache > $cache_file      cat confcache >$cache_file
4475    else    else
4476      echo "not updating unwritable cache $cache_file"      echo "not updating unwritable cache $cache_file"
4477    fi    fi
4478  fi  fi
4479  rm -f confcache  rm -f confcache
4480    
 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15  
   
4481  test "x$prefix" = xNONE && prefix=$ac_default_prefix  test "x$prefix" = xNONE && prefix=$ac_default_prefix
4482  # Let make expand exec_prefix.  # Let make expand exec_prefix.
4483  test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'  test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4484    
4485  # Any assignment to VPATH causes Sun make to only execute  # VPATH may cause trouble with some makes, so we remove $(srcdir),
4486  # the first set of double-colon rules, so remove it if not needed.  # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
4487  # If there is a colon in the path, we need to keep it.  # trailing colons and then remove the whole line if VPATH becomes empty
4488    # (actually we leave an empty line to preserve line numbers).
4489  if test "x$srcdir" = x.; then  if test "x$srcdir" = x.; then
4490    ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'    ac_vpsub='/^[         ]*VPATH[        ]*=/{
4491    s/:*\$(srcdir):*/:/;
4492    s/:*\${srcdir}:*/:/;
4493    s/:*@srcdir@:*/:/;
4494    s/^\([^=]*=[    ]*\):*/\1/;
4495    s/:*$//;
4496    s/^[^=]*=[      ]*$//;
4497    }'
4498  fi  fi
4499    
 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15  
   
4500  DEFS=-DHAVE_CONFIG_H  DEFS=-DHAVE_CONFIG_H
4501    
 # Without the "./", some shells look in PATH for config.status.  
4502  : ${CONFIG_STATUS=./config.status}  : ${CONFIG_STATUS=./config.status}
4503    ac_clean_files_save=$ac_clean_files
4504  echo creating $CONFIG_STATUS  ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4505  rm -f $CONFIG_STATUS  { echo "$as_me:4505: creating $CONFIG_STATUS" >&5
4506  cat > $CONFIG_STATUS <<EOF  echo "$as_me: creating $CONFIG_STATUS" >&6;}
4507  #! /bin/sh  cat >$CONFIG_STATUS <<_ACEOF
4508    #! $SHELL
4509  # Generated automatically by configure.  # Generated automatically by configure.
4510  # Run this file to recreate the current configuration.  # Run this file to recreate the current configuration.
 # This directory was configured as follows,  
 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:  
 #  
 # $0 $ac_configure_args  
 #  
4511  # Compiler output produced by configure, useful for debugging  # Compiler output produced by configure, useful for debugging
4512  # configure, is in ./config.log if it exists.  # configure, is in config.log if it exists.
4513    
4514  ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"  debug=false
4515  for ac_option  SHELL=\${CONFIG_SHELL-$SHELL}
4516    ac_cs_invocation="\$0 \$@"
4517    
4518    _ACEOF
4519    
4520    cat >>$CONFIG_STATUS <<\_ACEOF
4521    # Be Bourne compatible
4522    if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
4523      emulate sh
4524      NULLCMD=:
4525    elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
4526      set -o posix
4527    fi
4528    
4529    # Name of the executable.
4530    as_me=`echo "$0" |sed 's,.*[\\/],,'`
4531    
4532    if expr a : '\(a\)' >/dev/null 2>&1; then
4533      as_expr=expr
4534    else
4535      as_expr=false
4536    fi
4537    
4538    rm -f conf$$ conf$$.exe conf$$.file
4539    echo >conf$$.file
4540    if ln -s conf$$.file conf$$ 2>/dev/null; then
4541      # We could just check for DJGPP; but this test a) works b) is more generic
4542      # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
4543      if test -f conf$$.exe; then
4544        # Don't use ln at all; we don't have any links
4545        as_ln_s='cp -p'
4546      else
4547        as_ln_s='ln -s'
4548      fi
4549    elif ln conf$$.file conf$$ 2>/dev/null; then
4550      as_ln_s=ln
4551    else
4552      as_ln_s='cp -p'
4553    fi
4554    rm -f conf$$ conf$$.exe conf$$.file
4555    
4556    as_executable_p="test -f"
4557    
4558    # Support unset when possible.
4559    if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
4560      as_unset=unset
4561    else
4562      as_unset=false
4563    fi
4564    
4565    # NLS nuisances.
4566    $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
4567    $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
4568    $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
4569    $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
4570    $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
4571    $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
4572    $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
4573    $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
4574    
4575    # IFS
4576    # We need space, tab and new line, in precisely that order.
4577    as_nl='
4578    '
4579    IFS="   $as_nl"
4580    
4581    # CDPATH.
4582    $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
4583    
4584    exec 6>&1
4585    
4586    _ACEOF
4587    
4588    # Files that config.status was made for.
4589    if test -n "$ac_config_files"; then
4590      echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
4591    fi
4592    
4593    if test -n "$ac_config_headers"; then
4594      echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
4595    fi
4596    
4597    if test -n "$ac_config_links"; then
4598      echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
4599    fi
4600    
4601    if test -n "$ac_config_commands"; then
4602      echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
4603    fi
4604    
4605    cat >>$CONFIG_STATUS <<\EOF
4606    
4607    ac_cs_usage="\
4608    \`$as_me' instantiates files from templates according to the
4609    current configuration.
4610    
4611    Usage: $0 [OPTIONS] [FILE]...
4612    
4613      -h, --help       print this help, then exit
4614      -V, --version    print version number, then exit
4615      -d, --debug      don't remove temporary files
4616          --recheck    update $as_me by reconfiguring in the same conditions
4617      --file=FILE[:TEMPLATE]
4618                       instantiate the configuration file FILE
4619      --header=FILE[:TEMPLATE]
4620                       instantiate the configuration header FILE
4621    
4622    Configuration files:
4623    $config_files
4624    
4625    Configuration headers:
4626    $config_headers
4627    
4628    Configuration commands:
4629    $config_commands
4630    
4631    Report bugs to <bug-autoconf@gnu.org>."
4632    EOF
4633    
4634    cat >>$CONFIG_STATUS <<EOF
4635    ac_cs_version="\\
4636    config.status
4637    configured by $0, generated by GNU Autoconf 2.52,
4638      with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
4639    
4640    Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
4641    Free Software Foundation, Inc.
4642    This config.status script is free software; the Free Software Foundation
4643    gives unlimited permission to copy, distribute and modify it."
4644    srcdir=$srcdir
4645    INSTALL="$INSTALL"
4646    EOF
4647    
4648    cat >>$CONFIG_STATUS <<\EOF
4649    # If no file are specified by the user, then we need to provide default
4650    # value.  By we need to know if files were specified by the user.
4651    ac_need_defaults=:
4652    while test $# != 0
4653  do  do
4654    case "\$ac_option" in    case $1 in
4655      --*=*)
4656        ac_option=`expr "x$1" : 'x\([^=]*\)='`
4657        ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
4658        shift
4659        set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
4660        shift
4661        ;;
4662      -*);;
4663      *) # This is not an option, so the user has probably given explicit
4664         # arguments.
4665         ac_need_defaults=false;;
4666      esac
4667    
4668      case $1 in
4669      # Handling of the options.
4670    EOF
4671    cat >>$CONFIG_STATUS <<EOF
4672    -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)    -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4673      echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"      echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
4674      exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;      exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
4675    -version | --version | --versio | --versi | --vers | --ver | --ve | --v)  EOF
4676      echo "$CONFIG_STATUS generated by autoconf version 2.13"  cat >>$CONFIG_STATUS <<\EOF
4677      exit 0 ;;    --version | --vers* | -V )
4678    -help | --help | --hel | --he | --h)      echo "$ac_cs_version"; exit 0 ;;
4679      echo "\$ac_cs_usage"; exit 0 ;;    --he | --h)
4680    *) echo "\$ac_cs_usage"; exit 1 ;;      # Conflict between --help and --header
4681        { { echo "$as_me:4681: error: ambiguous option: $1
4682    Try \`$0 --help' for more information." >&5
4683    echo "$as_me: error: ambiguous option: $1
4684    Try \`$0 --help' for more information." >&2;}
4685       { (exit 1); exit 1; }; };;
4686      --help | --hel | -h )
4687        echo "$ac_cs_usage"; exit 0 ;;
4688      --debug | --d* | -d )
4689        debug=: ;;
4690      --file | --fil | --fi | --f )
4691        shift
4692        CONFIG_FILES="$CONFIG_FILES $1"
4693        ac_need_defaults=false;;
4694      --header | --heade | --head | --hea )
4695        shift
4696        CONFIG_HEADERS="$CONFIG_HEADERS $1"
4697        ac_need_defaults=false;;
4698    
4699      # This is an error.
4700      -*) { { echo "$as_me:4700: error: unrecognized option: $1
4701    Try \`$0 --help' for more information." >&5
4702    echo "$as_me: error: unrecognized option: $1
4703    Try \`$0 --help' for more information." >&2;}
4704       { (exit 1); exit 1; }; } ;;
4705    
4706      *) ac_config_targets="$ac_config_targets $1" ;;
4707    
4708    esac    esac
4709      shift
4710  done  done
4711    
4712  ac_given_srcdir=$srcdir  exec 5>>config.log
4713  ac_given_INSTALL="$INSTALL"  cat >&5 << _ACEOF
4714    
4715  trap 'rm -fr `echo "Makefile stage1/Makefile stage2/Makefile docs/Makefile \  ## ----------------------- ##
4716          lib/Makefile util/Makefile grub/Makefile \  ## Running config.status.  ##
4717          netboot/Makefile util/grub-image util/grub-install \  ## ----------------------- ##
         util/grub-md5-crypt config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15  
 EOF  
 cat >> $CONFIG_STATUS <<EOF  
   
 # Protect against being on the right side of a sed subst in config.status.  
 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;  
  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF  
 $ac_vpsub  
 $extrasub  
 s%@SHELL@%$SHELL%g  
 s%@CFLAGS@%$CFLAGS%g  
 s%@CPPFLAGS@%$CPPFLAGS%g  
 s%@CXXFLAGS@%$CXXFLAGS%g  
 s%@FFLAGS@%$FFLAGS%g  
 s%@DEFS@%$DEFS%g  
 s%@LDFLAGS@%$LDFLAGS%g  
 s%@LIBS@%$LIBS%g  
 s%@exec_prefix@%$exec_prefix%g  
 s%@prefix@%$prefix%g  
 s%@program_transform_name@%$program_transform_name%g  
 s%@bindir@%$bindir%g  
 s%@sbindir@%$sbindir%g  
 s%@libexecdir@%$libexecdir%g  
 s%@datadir@%$datadir%g  
 s%@sysconfdir@%$sysconfdir%g  
 s%@sharedstatedir@%$sharedstatedir%g  
 s%@localstatedir@%$localstatedir%g  
 s%@libdir@%$libdir%g  
 s%@includedir@%$includedir%g  
 s%@oldincludedir@%$oldincludedir%g  
 s%@infodir@%$infodir%g  
 s%@mandir@%$mandir%g  
 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g  
 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g  
 s%@INSTALL_DATA@%$INSTALL_DATA%g  
 s%@PACKAGE@%$PACKAGE%g  
 s%@VERSION@%$VERSION%g  
 s%@EXEEXT@%$EXEEXT%g  
 s%@OBJEXT@%$OBJEXT%g  
 s%@ACLOCAL@%$ACLOCAL%g  
 s%@AUTOCONF@%$AUTOCONF%g  
 s%@AUTOMAKE@%$AUTOMAKE%g  
 s%@AUTOHEADER@%$AUTOHEADER%g  
 s%@MAKEINFO@%$MAKEINFO%g  
 s%@AMTAR@%$AMTAR%g  
 s%@install_sh@%$install_sh%g  
 s%@INSTALL_STRIP_PROGRAM@%$INSTALL_STRIP_PROGRAM%g  
 s%@AWK@%$AWK%g  
 s%@SET_MAKE@%$SET_MAKE%g  
 s%@AMDEP_TRUE@%$AMDEP_TRUE%g  
 s%@AMDEP_FALSE@%$AMDEP_FALSE%g  
 s%@AMDEPBACKSLASH@%$AMDEPBACKSLASH%g  
 s%@DEPDIR@%$DEPDIR%g  
 s%@host@%$host%g  
 s%@host_alias@%$host_alias%g  
 s%@host_cpu@%$host_cpu%g  
 s%@host_vendor@%$host_vendor%g  
 s%@host_os@%$host_os%g  
 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g  
 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g  
 s%@MAINT@%$MAINT%g  
 s%@PERL@%$PERL%g  
 s%@build@%$build%g  
 s%@build_alias@%$build_alias%g  
 s%@build_cpu@%$build_cpu%g  
 s%@build_vendor@%$build_vendor%g  
 s%@build_os@%$build_os%g  
 s%@CC@%$CC%g  
 s%@am__include@%$am__include%g  
 s%@am__quote@%$am__quote%g  
 s%@CCDEPMODE@%$CCDEPMODE%g  
 s%@AS@%$AS%g  
 s%@RANLIB@%$RANLIB%g  
 s%@STAGE1_CFLAGS@%$STAGE1_CFLAGS%g  
 s%@STAGE2_CFLAGS@%$STAGE2_CFLAGS%g  
 s%@GRUB_CFLAGS@%$GRUB_CFLAGS%g  
 s%@OBJCOPY@%$OBJCOPY%g  
 s%@GRUB_LIBS@%$GRUB_LIBS%g  
 s%@CPP@%$CPP%g  
 s%@NETBOOT_SUPPORT_TRUE@%$NETBOOT_SUPPORT_TRUE%g  
 s%@NETBOOT_SUPPORT_FALSE@%$NETBOOT_SUPPORT_FALSE%g  
 s%@DISKLESS_SUPPORT_TRUE@%$DISKLESS_SUPPORT_TRUE%g  
 s%@DISKLESS_SUPPORT_FALSE@%$DISKLESS_SUPPORT_FALSE%g  
 s%@HERCULES_SUPPORT_TRUE@%$HERCULES_SUPPORT_TRUE%g  
 s%@HERCULES_SUPPORT_FALSE@%$HERCULES_SUPPORT_FALSE%g  
 s%@SERIAL_SUPPORT_TRUE@%$SERIAL_SUPPORT_TRUE%g  
 s%@SERIAL_SUPPORT_FALSE@%$SERIAL_SUPPORT_FALSE%g  
 s%@SERIAL_SPEED_SIMULATION_TRUE@%$SERIAL_SPEED_SIMULATION_TRUE%g  
 s%@SERIAL_SPEED_SIMULATION_FALSE@%$SERIAL_SPEED_SIMULATION_FALSE%g  
 s%@BUILD_EXAMPLE_KERNEL_TRUE@%$BUILD_EXAMPLE_KERNEL_TRUE%g  
 s%@BUILD_EXAMPLE_KERNEL_FALSE@%$BUILD_EXAMPLE_KERNEL_FALSE%g  
 s%@FSYS_CFLAGS@%$FSYS_CFLAGS%g  
 s%@NET_CFLAGS@%$NET_CFLAGS%g  
 s%@NET_EXTRAFLAGS@%$NET_EXTRAFLAGS%g  
 s%@NETBOOT_DRIVERS@%$NETBOOT_DRIVERS%g  
 s%@ASFLAGS@%$ASFLAGS%g  
4718    
4719  CEOF  This file was extended by $as_me 2.52, executed with
4720      CONFIG_FILES    = $CONFIG_FILES
4721      CONFIG_HEADERS  = $CONFIG_HEADERS
4722      CONFIG_LINKS    = $CONFIG_LINKS
4723      CONFIG_COMMANDS = $CONFIG_COMMANDS
4724      > $ac_cs_invocation
4725    on `(hostname || uname -n) 2>/dev/null | sed 1q`
4726    
4727    _ACEOF
4728  EOF  EOF
4729    
4730  cat >> $CONFIG_STATUS <<\EOF  cat >>$CONFIG_STATUS <<EOF
4731    #
4732    # INIT-COMMANDS section.
4733    #
4734    
4735  # Split the substitutions into bite-sized pieces for seds with  AMDEP_TRUE="$AMDEP_TRUE"
4736  # small command number limits, like on Digital OSF/1 and HP-UX.  ac_aux_dir="$ac_aux_dir"
4737  ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.  
4738  ac_file=1 # Number of current file.  EOF
4739  ac_beg=1 # First line for current file.  
4740  ac_end=$ac_max_sed_cmds # Line after last line for current file.  cat >>$CONFIG_STATUS <<\EOF
4741  ac_more_lines=:  for ac_config_target in $ac_config_targets
4742  ac_sed_cmds=""  do
4743  while $ac_more_lines; do    case "$ac_config_target" in
4744    if test $ac_beg -gt 1; then    # Handling of arguments.
4745      sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file    "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
4746    else    "stage1/Makefile" ) CONFIG_FILES="$CONFIG_FILES stage1/Makefile" ;;
4747      sed "${ac_end}q" conftest.subs > conftest.s$ac_file    "stage2/Makefile" ) CONFIG_FILES="$CONFIG_FILES stage2/Makefile" ;;
4748    fi    "docs/Makefile" ) CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
4749    if test ! -s conftest.s$ac_file; then    "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
4750      ac_more_lines=false    "util/Makefile" ) CONFIG_FILES="$CONFIG_FILES util/Makefile" ;;
4751      rm -f conftest.s$ac_file    "grub/Makefile" ) CONFIG_FILES="$CONFIG_FILES grub/Makefile" ;;
4752    else    "netboot/Makefile" ) CONFIG_FILES="$CONFIG_FILES netboot/Makefile" ;;
4753      if test -z "$ac_sed_cmds"; then    "util/grub-image" ) CONFIG_FILES="$CONFIG_FILES util/grub-image" ;;
4754        ac_sed_cmds="sed -f conftest.s$ac_file"    "util/grub-install" ) CONFIG_FILES="$CONFIG_FILES util/grub-install" ;;
4755      else    "util/grub-md5-crypt" ) CONFIG_FILES="$CONFIG_FILES util/grub-md5-crypt" ;;
4756        ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"    "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
4757      fi    "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
4758      ac_file=`expr $ac_file + 1`    *) { { echo "$as_me:4758: error: invalid argument: $ac_config_target" >&5
4759      ac_beg=$ac_end  echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
4760      ac_end=`expr $ac_end + $ac_max_sed_cmds`     { (exit 1); exit 1; }; };;
4761    fi    esac
4762  done  done
4763  if test -z "$ac_sed_cmds"; then  
4764    ac_sed_cmds=cat  # If the user did not use the arguments to specify the items to instantiate,
4765    # then the envvar interface is used.  Set only those that are not.
4766    # We use the long form for the default assignment because of an extremely
4767    # bizarre bug on SunOS 4.1.3.
4768    if $ac_need_defaults; then
4769      test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
4770      test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
4771      test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
4772  fi  fi
4773    
4774    # Create a temporary directory, and hook for its removal unless debugging.
4775    $debug ||
4776    {
4777      trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
4778      trap '{ (exit 1); exit 1; }' 1 2 13 15
4779    }
4780    
4781    # Create a (secure) tmp directory for tmp files.
4782    : ${TMPDIR=/tmp}
4783    {
4784      tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
4785      test -n "$tmp" && test -d "$tmp"
4786    }  ||
4787    {
4788      tmp=$TMPDIR/cs$$-$RANDOM
4789      (umask 077 && mkdir $tmp)
4790    } ||
4791    {
4792       echo "$me: cannot create a temporary directory in $TMPDIR" >&2
4793       { (exit 1); exit 1; }
4794    }
4795    
4796  EOF  EOF
4797    
4798  cat >> $CONFIG_STATUS <<EOF  cat >>$CONFIG_STATUS <<EOF
4799    
4800    #
4801    # CONFIG_FILES section.
4802    #
4803    
4804    # No need to generate the scripts if there are no CONFIG_FILES.
4805    # This happens for instance when ./config.status config.h
4806    if test -n "\$CONFIG_FILES"; then
4807      # Protect against being on the right side of a sed subst in config.status.
4808      sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
4809       s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
4810    s,@SHELL@,$SHELL,;t t
4811    s,@exec_prefix@,$exec_prefix,;t t
4812    s,@prefix@,$prefix,;t t
4813    s,@program_transform_name@,$program_transform_name,;t t
4814    s,@bindir@,$bindir,;t t
4815    s,@sbindir@,$sbindir,;t t
4816    s,@libexecdir@,$libexecdir,;t t
4817    s,@datadir@,$datadir,;t t
4818    s,@sysconfdir@,$sysconfdir,;t t
4819    s,@sharedstatedir@,$sharedstatedir,;t t
4820    s,@localstatedir@,$localstatedir,;t t
4821    s,@libdir@,$libdir,;t t
4822    s,@includedir@,$includedir,;t t
4823    s,@oldincludedir@,$oldincludedir,;t t
4824    s,@infodir@,$infodir,;t t
4825    s,@mandir@,$mandir,;t t
4826    s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
4827    s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
4828    s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
4829    s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
4830    s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
4831    s,@build_alias@,$build_alias,;t t
4832    s,@host_alias@,$host_alias,;t t
4833    s,@target_alias@,$target_alias,;t t
4834    s,@ECHO_C@,$ECHO_C,;t t
4835    s,@ECHO_N@,$ECHO_N,;t t
4836    s,@ECHO_T@,$ECHO_T,;t t
4837    s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
4838    s,@DEFS@,$DEFS,;t t
4839    s,@LIBS@,$LIBS,;t t
4840    s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
4841    s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
4842    s,@INSTALL_DATA@,$INSTALL_DATA,;t t
4843    s,@PACKAGE@,$PACKAGE,;t t
4844    s,@VERSION@,$VERSION,;t t
4845    s,@EXEEXT@,$EXEEXT,;t t
4846    s,@OBJEXT@,$OBJEXT,;t t
4847    s,@ACLOCAL@,$ACLOCAL,;t t
4848    s,@AUTOCONF@,$AUTOCONF,;t t
4849    s,@AUTOMAKE@,$AUTOMAKE,;t t
4850    s,@AUTOHEADER@,$AUTOHEADER,;t t
4851    s,@MAKEINFO@,$MAKEINFO,;t t
4852    s,@AMTAR@,$AMTAR,;t t
4853    s,@install_sh@,$install_sh,;t t
4854    s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
4855    s,@AWK@,$AWK,;t t
4856    s,@SET_MAKE@,$SET_MAKE,;t t
4857    s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
4858    s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
4859    s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
4860    s,@DEPDIR@,$DEPDIR,;t t
4861    s,@build@,$build,;t t
4862    s,@build_cpu@,$build_cpu,;t t
4863    s,@build_vendor@,$build_vendor,;t t
4864    s,@build_os@,$build_os,;t t
4865    s,@host@,$host,;t t
4866    s,@host_cpu@,$host_cpu,;t t
4867    s,@host_vendor@,$host_vendor,;t t
4868    s,@host_os@,$host_os,;t t
4869    s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
4870    s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
4871    s,@MAINT@,$MAINT,;t t
4872    s,@PERL@,$PERL,;t t
4873    s,@CC@,$CC,;t t
4874    s,@ac_ct_CC@,$ac_ct_CC,;t t
4875    s,@CFLAGS@,$CFLAGS,;t t
4876    s,@LDFLAGS@,$LDFLAGS,;t t
4877    s,@CPPFLAGS@,$CPPFLAGS,;t t
4878    s,@am__include@,$am__include,;t t
4879    s,@am__quote@,$am__quote,;t t
4880    s,@CCDEPMODE@,$CCDEPMODE,;t t
4881    s,@AS@,$AS,;t t
4882    s,@RANLIB@,$RANLIB,;t t
4883    s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
4884    s,@STAGE1_CFLAGS@,$STAGE1_CFLAGS,;t t
4885    s,@STAGE2_CFLAGS@,$STAGE2_CFLAGS,;t t
4886    s,@GRUB_CFLAGS@,$GRUB_CFLAGS,;t t
4887    s,@OBJCOPY@,$OBJCOPY,;t t
4888    s,@ac_ct_OBJCOPY@,$ac_ct_OBJCOPY,;t t
4889    s,@GRUB_LIBS@,$GRUB_LIBS,;t t
4890    s,@CPP@,$CPP,;t t
4891    s,@NETBOOT_SUPPORT_TRUE@,$NETBOOT_SUPPORT_TRUE,;t t
4892    s,@NETBOOT_SUPPORT_FALSE@,$NETBOOT_SUPPORT_FALSE,;t t
4893    s,@DISKLESS_SUPPORT_TRUE@,$DISKLESS_SUPPORT_TRUE,;t t
4894    s,@DISKLESS_SUPPORT_FALSE@,$DISKLESS_SUPPORT_FALSE,;t t
4895    s,@HERCULES_SUPPORT_TRUE@,$HERCULES_SUPPORT_TRUE,;t t
4896    s,@HERCULES_SUPPORT_FALSE@,$HERCULES_SUPPORT_FALSE,;t t
4897    s,@SERIAL_SUPPORT_TRUE@,$SERIAL_SUPPORT_TRUE,;t t
4898    s,@SERIAL_SUPPORT_FALSE@,$SERIAL_SUPPORT_FALSE,;t t
4899    s,@SERIAL_SPEED_SIMULATION_TRUE@,$SERIAL_SPEED_SIMULATION_TRUE,;t t
4900    s,@SERIAL_SPEED_SIMULATION_FALSE@,$SERIAL_SPEED_SIMULATION_FALSE,;t t
4901    s,@BUILD_EXAMPLE_KERNEL_TRUE@,$BUILD_EXAMPLE_KERNEL_TRUE,;t t
4902    s,@BUILD_EXAMPLE_KERNEL_FALSE@,$BUILD_EXAMPLE_KERNEL_FALSE,;t t
4903    s,@FSYS_CFLAGS@,$FSYS_CFLAGS,;t t
4904    s,@NET_CFLAGS@,$NET_CFLAGS,;t t
4905    s,@NET_EXTRAFLAGS@,$NET_EXTRAFLAGS,;t t
4906    s,@NETBOOT_DRIVERS@,$NETBOOT_DRIVERS,;t t
4907    s,@ASFLAGS@,$ASFLAGS,;t t
4908    CEOF
4909    
 CONFIG_FILES=\${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"}  
4910  EOF  EOF
4911  cat >> $CONFIG_STATUS <<\EOF  
4912  for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then    cat >>$CONFIG_STATUS <<\EOF
4913      # Split the substitutions into bite-sized pieces for seds with
4914      # small command number limits, like on Digital OSF/1 and HP-UX.
4915      ac_max_sed_lines=48
4916      ac_sed_frag=1 # Number of current file.
4917      ac_beg=1 # First line for current file.
4918      ac_end=$ac_max_sed_lines # Line after last line for current file.
4919      ac_more_lines=:
4920      ac_sed_cmds=
4921      while $ac_more_lines; do
4922        if test $ac_beg -gt 1; then
4923          sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4924        else
4925          sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4926        fi
4927        if test ! -s $tmp/subs.frag; then
4928          ac_more_lines=false
4929        else
4930          # The purpose of the label and of the branching condition is to
4931          # speed up the sed processing (if there are no `@' at all, there
4932          # is no need to browse any of the substitutions).
4933          # These are the two extra sed commands mentioned above.
4934          (echo ':t
4935      /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
4936          if test -z "$ac_sed_cmds"; then
4937            ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
4938          else
4939            ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
4940          fi
4941          ac_sed_frag=`expr $ac_sed_frag + 1`
4942          ac_beg=$ac_end
4943          ac_end=`expr $ac_end + $ac_max_sed_lines`
4944        fi
4945      done
4946      if test -z "$ac_sed_cmds"; then
4947        ac_sed_cmds=cat
4948      fi
4949    fi # test -n "$CONFIG_FILES"
4950    
4951    EOF
4952    cat >>$CONFIG_STATUS <<\EOF
4953    for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
4954    # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".    # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4955    case "$ac_file" in    case $ac_file in
4956    *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`    - | *:- | *:-:* ) # input from stdin
4957         ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;          cat >$tmp/stdin
4958    *) ac_file_in="${ac_file}.in" ;;          ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4959            ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4960      *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4961            ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4962      * )   ac_file_in=$ac_file.in ;;
4963    esac    esac
4964    
4965    # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.    # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
4966      ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4967    # Remove last slash and all that follows it.  Not all systems have dirname.           X"$ac_file" : 'X\(//\)[^/]' \| \
4968    ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`           X"$ac_file" : 'X\(//\)$' \| \
4969             X"$ac_file" : 'X\(/\)' \| \
4970             .     : '\(.\)' 2>/dev/null ||
4971    echo X"$ac_file" |
4972        sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4973              /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4974              /^X\(\/\/\)$/{ s//\1/; q; }
4975              /^X\(\/\).*/{ s//\1/; q; }
4976              s/.*/./; q'`
4977    if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then    if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4978      # The file is in a subdirectory.      { case "$ac_dir" in
4979      test ! -d "$ac_dir" && mkdir "$ac_dir"    [\\/]* | ?:[\\/]* ) as_incr_dir=;;
4980      ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"    *)                      as_incr_dir=.;;
4981    esac
4982    as_dummy="$ac_dir"
4983    for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
4984      case $as_mkdir_dir in
4985        # Skip DOS drivespec
4986        ?:) as_incr_dir=$as_mkdir_dir ;;
4987        *)
4988          as_incr_dir=$as_incr_dir/$as_mkdir_dir
4989          test -d "$as_incr_dir" || mkdir "$as_incr_dir"
4990        ;;
4991      esac
4992    done; }
4993    
4994        ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
4995      # A "../" for each directory in $ac_dir_suffix.      # A "../" for each directory in $ac_dir_suffix.
4996      ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`      ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
4997    else    else
4998      ac_dir_suffix= ac_dots=      ac_dir_suffix= ac_dots=
4999    fi    fi
5000    
5001    case "$ac_given_srcdir" in    case $srcdir in
5002    .)  srcdir=.    .)  ac_srcdir=.
5003        if test -z "$ac_dots"; then top_srcdir=.        if test -z "$ac_dots"; then
5004        else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;           ac_top_srcdir=.
5005    /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;        else
5006             ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
5007          fi ;;
5008      [\\/]* | ?:[\\/]* )
5009          ac_srcdir=$srcdir$ac_dir_suffix;
5010          ac_top_srcdir=$srcdir ;;
5011    *) # Relative path.    *) # Relative path.
5012      srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"      ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
5013      top_srcdir="$ac_dots$ac_given_srcdir" ;;      ac_top_srcdir=$ac_dots$srcdir ;;
5014    esac    esac
5015    
5016    case "$ac_given_INSTALL" in    case $INSTALL in
5017    [/$]*) INSTALL="$ac_given_INSTALL" ;;    [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5018    *) INSTALL="$ac_dots$ac_given_INSTALL" ;;    *) ac_INSTALL=$ac_dots$INSTALL ;;
5019    esac    esac
5020    
5021    echo creating "$ac_file"    if test x"$ac_file" != x-; then
5022    rm -f "$ac_file"      { echo "$as_me:5022: creating $ac_file" >&5
5023    configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."  echo "$as_me: creating $ac_file" >&6;}
5024    case "$ac_file" in      rm -f "$ac_file"
5025    *Makefile*) ac_comsub="1i\\    fi
5026  # $configure_input" ;;    # Let's still pretend it is `configure' which instantiates (i.e., don't
5027    *) ac_comsub= ;;    # use $as_me), people would be surprised to read:
5028    esac    #    /* config.h.  Generated automatically by config.status.  */
5029      configure_input="Generated automatically from `echo $ac_file_in |
5030                                                     sed 's,.*/,,'` by configure."
5031    
5032      # First look for the input files in the build tree, otherwise in the
5033      # src tree.
5034      ac_file_inputs=`IFS=:
5035        for f in $ac_file_in; do
5036          case $f in
5037          -) echo $tmp/stdin ;;
5038          [\\/$]*)
5039             # Absolute (can't be DOS-style, as IFS=:)
5040             test -f "$f" || { { echo "$as_me:5040: error: cannot find input file: $f" >&5
5041    echo "$as_me: error: cannot find input file: $f" >&2;}
5042       { (exit 1); exit 1; }; }
5043             echo $f;;
5044          *) # Relative
5045             if test -f "$f"; then
5046               # Build tree
5047               echo $f
5048             elif test -f "$srcdir/$f"; then
5049               # Source tree
5050               echo $srcdir/$f
5051             else
5052               # /dev/null tree
5053               { { echo "$as_me:5053: error: cannot find input file: $f" >&5
5054    echo "$as_me: error: cannot find input file: $f" >&2;}
5055       { (exit 1); exit 1; }; }
5056             fi;;
5057          esac
5058        done` || { (exit 1); exit 1; }
5059    EOF
5060    cat >>$CONFIG_STATUS <<EOF
5061      sed "$ac_vpsub
5062    $extrasub
5063    EOF
5064    cat >>$CONFIG_STATUS <<\EOF
5065    :t
5066    /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5067    s,@configure_input@,$configure_input,;t t
5068    s,@srcdir@,$ac_srcdir,;t t
5069    s,@top_srcdir@,$ac_top_srcdir,;t t
5070    s,@INSTALL@,$ac_INSTALL,;t t
5071    " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
5072      rm -f $tmp/stdin
5073      if test x"$ac_file" != x-; then
5074        mv $tmp/out $ac_file
5075      else
5076        cat $tmp/out
5077        rm -f $tmp/out
5078      fi
5079    
5080    done
5081    EOF
5082    cat >>$CONFIG_STATUS <<\EOF
5083    
5084    ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`  #
5085    sed -e "$ac_comsub  # CONFIG_HEADER section.
5086  s%@configure_input@%$configure_input%g  #
 s%@srcdir@%$srcdir%g  
 s%@top_srcdir@%$top_srcdir%g  
 s%@INSTALL@%$INSTALL%g  
 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file  
 fi; done  
 rm -f conftest.s*  
5087    
5088  # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where  # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5089  # NAME is the cpp macro being defined and VALUE is the value it is being given.  # NAME is the cpp macro being defined and VALUE is the value it is being given.
5090  #  #
5091  # ac_d sets the value in "#define NAME VALUE" lines.  # ac_d sets the value in "#define NAME VALUE" lines.
5092  ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'  ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
5093  ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'  ac_dB='[        ].*$,\1#\2'
5094  ac_dC='\3'  ac_dC=' '
5095  ac_dD='%g'  ac_dD=',;t'
5096  # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".  # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5097  ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'  ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
5098  ac_uB='\([      ]\)%\1#\2define\3'  ac_uB='$,\1#\2define\3'
5099  ac_uC=' '  ac_uC=' '
5100  ac_uD='\4%g'  ac_uD=',;t'
 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".  
 ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'  
 ac_eB='$%\1#\2define\3'  
 ac_eC=' '  
 ac_eD='%g'  
5101    
5102  if test "${CONFIG_HEADERS+set}" != set; then  for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
 EOF  
 cat >> $CONFIG_STATUS <<EOF  
   CONFIG_HEADERS="config.h"  
 EOF  
 cat >> $CONFIG_STATUS <<\EOF  
 fi  
 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then  
5103    # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".    # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5104    case "$ac_file" in    case $ac_file in
5105    *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`    - | *:- | *:-:* ) # input from stdin
5106         ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;          cat >$tmp/stdin
5107    *) ac_file_in="${ac_file}.in" ;;          ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5108            ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5109      *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5110            ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5111      * )   ac_file_in=$ac_file.in ;;
5112    esac    esac
5113    
5114    echo creating $ac_file    test x"$ac_file" != x- && { echo "$as_me:5114: creating $ac_file" >&5
5115    echo "$as_me: creating $ac_file" >&6;}
5116    
5117    rm -f conftest.frag conftest.in conftest.out    # First look for the input files in the build tree, otherwise in the
5118    ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`    # src tree.
5119    cat $ac_file_inputs > conftest.in    ac_file_inputs=`IFS=:
5120        for f in $ac_file_in; do
5121          case $f in
5122          -) echo $tmp/stdin ;;
5123          [\\/$]*)
5124             # Absolute (can't be DOS-style, as IFS=:)
5125             test -f "$f" || { { echo "$as_me:5125: error: cannot find input file: $f" >&5
5126    echo "$as_me: error: cannot find input file: $f" >&2;}
5127       { (exit 1); exit 1; }; }
5128             echo $f;;
5129          *) # Relative
5130             if test -f "$f"; then
5131               # Build tree
5132               echo $f
5133             elif test -f "$srcdir/$f"; then
5134               # Source tree
5135               echo $srcdir/$f
5136             else
5137               # /dev/null tree
5138               { { echo "$as_me:5138: error: cannot find input file: $f" >&5
5139    echo "$as_me: error: cannot find input file: $f" >&2;}
5140       { (exit 1); exit 1; }; }
5141             fi;;
5142          esac
5143        done` || { (exit 1); exit 1; }
5144      # Remove the trailing spaces.
5145      sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
5146    
5147  EOF  EOF
5148    
5149  # Transform confdefs.h into a sed script conftest.vals that substitutes  # Transform confdefs.h into two sed scripts, `conftest.defines' and
5150  # the proper values into config.h.in to produce config.h.  And first:  # `conftest.undefs', that substitutes the proper values into
5151  # Protect against being on the right side of a sed subst in config.status.  # config.h.in to produce config.h.  The first handles `#define'
5152  # Protect against being in an unquoted here document in config.status.  # templates, and the second `#undef' templates.
5153  rm -f conftest.vals  # And first: Protect against being on the right side of a sed subst in
5154  cat > conftest.hdr <<\EOF  # config.status.  Protect against being in an unquoted here document
5155  s/[\\&%]/\\&/g  # in config.status.
5156  s%[\\$`]%\\&%g  rm -f conftest.defines conftest.undefs
5157  s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp  # Using a here document instead of a string reduces the quoting nightmare.
5158  s%ac_d%ac_u%gp  # Putting comments in sed scripts is not portable.
5159  s%ac_u%ac_e%gp  #
5160  EOF  # `end' is used to avoid that the second main sed command (meant for
5161  sed -n -f conftest.hdr confdefs.h > conftest.vals  # 0-ary CPP macros) applies to n-ary macro definitions.
5162  rm -f conftest.hdr  # See the Autoconf documentation for `clear'.
5163    cat >confdef2sed.sed <<\EOF
5164    s/[\\&,]/\\&/g
5165    s,[\\$`],\\&,g
5166    t clear
5167    : clear
5168    s,^[    ]*#[    ]*define[       ][      ]*\(\([^        (][^    (]*\)([^)]*)\)[         ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
5169    t end
5170    s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
5171    : end
5172    EOF
5173    # If some macros were called several times there might be several times
5174    # the same #defines, which is useless.  Nevertheless, we may not want to
5175    # sort them, since we want the *last* AC-DEFINE to be honored.
5176    uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
5177    sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
5178    rm -f confdef2sed.sed
5179    
5180  # This sed command replaces #undef with comments.  This is necessary, for  # This sed command replaces #undef with comments.  This is necessary, for
5181  # example, in the case of _POSIX_SOURCE, which is predefined and required  # example, in the case of _POSIX_SOURCE, which is predefined and required
5182  # on some systems where configure will not decide to define it.  # on some systems where configure will not decide to define it.
5183  cat >> conftest.vals <<\EOF  cat >>conftest.undefs <<\EOF
5184  s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%  s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
5185  EOF  EOF
5186    
5187  # Break up conftest.vals because some shells have a limit on  # Break up conftest.defines because some shells have a limit on the size
5188  # the size of here documents, and old seds have small limits too.  # of here documents, and old seds have small limits too (100 cmds).
5189    echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
5190    echo '  if egrep "^[    ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
5191    echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
5192    echo '  :' >>$CONFIG_STATUS
5193    rm -f conftest.tail
5194    while grep . conftest.defines >/dev/null
5195    do
5196      # Write a limited-size here document to $tmp/defines.sed.
5197      echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
5198      # Speed up: don't consider the non `#define' lines.
5199      echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
5200      # Work around the forget-to-reset-the-flag bug.
5201      echo 't clr' >>$CONFIG_STATUS
5202      echo ': clr' >>$CONFIG_STATUS
5203      sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
5204      echo 'CEOF
5205      sed -f $tmp/defines.sed $tmp/in >$tmp/out
5206      rm -f $tmp/in
5207      mv $tmp/out $tmp/in
5208    ' >>$CONFIG_STATUS
5209      sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
5210      rm -f conftest.defines
5211      mv conftest.tail conftest.defines
5212    done
5213    rm -f conftest.defines
5214    echo '  fi # egrep' >>$CONFIG_STATUS
5215    echo >>$CONFIG_STATUS
5216    
5217    # Break up conftest.undefs because some shells have a limit on the size
5218    # of here documents, and old seds have small limits too (100 cmds).
5219    echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
5220  rm -f conftest.tail  rm -f conftest.tail
5221  while :  while grep . conftest.undefs >/dev/null
5222  do  do
5223    ac_lines=`grep -c . conftest.vals`    # Write a limited-size here document to $tmp/undefs.sed.
5224    # grep -c gives empty output for an empty file on some AIX systems.    echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
5225    if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi    # Speed up: don't consider the non `#undef'
5226    # Write a limited-size here document to conftest.frag.    echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
5227    echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS    # Work around the forget-to-reset-the-flag bug.
5228    sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS    echo 't clr' >>$CONFIG_STATUS
5229      echo ': clr' >>$CONFIG_STATUS
5230      sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
5231    echo 'CEOF    echo 'CEOF
5232    sed -f conftest.frag conftest.in > conftest.out    sed -f $tmp/undefs.sed $tmp/in >$tmp/out
5233    rm -f conftest.in    rm -f $tmp/in
5234    mv conftest.out conftest.in    mv $tmp/out $tmp/in
5235  ' >> $CONFIG_STATUS  ' >>$CONFIG_STATUS
5236    sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail    sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
5237    rm -f conftest.vals    rm -f conftest.undefs
5238    mv conftest.tail conftest.vals    mv conftest.tail conftest.undefs
5239  done  done
5240  rm -f conftest.vals  rm -f conftest.undefs
5241    
5242  cat >> $CONFIG_STATUS <<\EOF  cat >>$CONFIG_STATUS <<\EOF
5243    rm -f conftest.frag conftest.h    # Let's still pretend it is `configure' which instantiates (i.e., don't
5244    echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h    # use $as_me), people would be surprised to read:
5245    cat conftest.in >> conftest.h    #    /* config.h.  Generated automatically by config.status.  */
5246    rm -f conftest.in    if test x"$ac_file" = x-; then
5247    if cmp -s $ac_file conftest.h 2>/dev/null; then      echo "/* Generated automatically by configure.  */" >$tmp/config.h
     echo "$ac_file is unchanged"  
     rm -f conftest.h  
5248    else    else
5249      # Remove last slash and all that follows it.  Not all systems have dirname.      echo "/* $ac_file.  Generated automatically by configure.  */" >$tmp/config.h
       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`  
       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then  
       # The file is in a subdirectory.  
       test ! -d "$ac_dir" && mkdir "$ac_dir"  
     fi  
     rm -f $ac_file  
     mv conftest.h $ac_file  
5250    fi    fi
5251  fi; done    cat $tmp/in >>$tmp/config.h
5252      rm -f $tmp/in
5253      if test x"$ac_file" != x-; then
5254        if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
5255          { echo "$as_me:5255: $ac_file is unchanged" >&5
5256    echo "$as_me: $ac_file is unchanged" >&6;}
5257        else
5258          ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5259             X"$ac_file" : 'X\(//\)[^/]' \| \
5260             X"$ac_file" : 'X\(//\)$' \| \
5261             X"$ac_file" : 'X\(/\)' \| \
5262             .     : '\(.\)' 2>/dev/null ||
5263    echo X"$ac_file" |
5264        sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5265              /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5266              /^X\(\/\/\)$/{ s//\1/; q; }
5267              /^X\(\/\).*/{ s//\1/; q; }
5268              s/.*/./; q'`
5269          if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5270            { case "$ac_dir" in
5271      [\\/]* | ?:[\\/]* ) as_incr_dir=;;
5272      *)                      as_incr_dir=.;;
5273    esac
5274    as_dummy="$ac_dir"
5275    for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
5276      case $as_mkdir_dir in
5277        # Skip DOS drivespec
5278        ?:) as_incr_dir=$as_mkdir_dir ;;
5279        *)
5280          as_incr_dir=$as_incr_dir/$as_mkdir_dir
5281          test -d "$as_incr_dir" || mkdir "$as_incr_dir"
5282        ;;
5283      esac
5284    done; }
5285    
5286  EOF        fi
5287  cat >> $CONFIG_STATUS <<EOF        rm -f $ac_file
5288  am_indx=1        mv $tmp/config.h $ac_file
 for am_file in config.h; do  
   case " \$CONFIG_HEADERS " in  
   *" \$am_file "*)  
     am_dir=\`echo \$am_file |sed 's%:.*%%;s%[^/]*\$%%'\`  
     if test -n "\$am_dir"; then  
       am_tmpdir=\`echo \$am_dir |sed 's%^\(/*\).*\$%\1%'\`  
       for am_subdir in \`echo \$am_dir |sed 's%/% %'\`; do  
         am_tmpdir=\$am_tmpdir\$am_subdir/  
         if test ! -d \$am_tmpdir; then  
           mkdir \$am_tmpdir  
         fi  
       done  
5289      fi      fi
5290      echo timestamp > "\$am_dir"stamp-h\$am_indx    else
5291      ;;      cat $tmp/config.h
5292        rm -f $tmp/config.h
5293      fi
5294      # Run the commands associated with the file.
5295      case $ac_file in
5296        config.h ) # update the timestamp
5297    echo timestamp >"./stamp-h1"
5298     ;;
5299    esac    esac
   am_indx=\`expr \$am_indx + 1\`  
5300  done  done
 AMDEP_TRUE="$AMDEP_TRUE"  
 ac_aux_dir="$ac_aux_dir"  
   
5301  EOF  EOF
5302  cat >> $CONFIG_STATUS <<\EOF  cat >>$CONFIG_STATUS <<\EOF
 test -z "$CONFIG_HEADERS" || echo timestamp >      stamp-h  
5303    
5304    #
5305    # CONFIG_COMMANDS section.
5306    #
5307    for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
5308      ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
5309      ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
5310    
5311      case $ac_dest in
5312        default-1 )
5313  test x"$AMDEP_TRUE" != x"" ||  test x"$AMDEP_TRUE" != x"" ||
5314  for mf in $CONFIG_FILES; do  for mf in $CONFIG_FILES; do
5315    case "$mf" in    case "$mf" in
# Line 3640  for mf in $CONFIG_FILES; do Line 5347  for mf in $CONFIG_FILES; do
5347      echo '# dummy' > "$dirpart/$file"      echo '# dummy' > "$dirpart/$file"
5348    done    done
5349  done  done
5350     ;;
5351      esac
5352    done
5353    EOF
5354    
5355    cat >>$CONFIG_STATUS <<\EOF
5356    
5357  exit 0  { (exit 0); exit 0; }
5358  EOF  EOF
5359  chmod +x $CONFIG_STATUS  chmod +x $CONFIG_STATUS
5360  rm -fr confdefs* $ac_clean_files  ac_clean_files=$ac_clean_files_save
5361  test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1  
5362    # configure is writing to config.log, and then calls config.status.
5363    # config.status does its own redirection, appending to config.log.
5364    # Unfortunately, on DOS this fails, as config.log is still kept open
5365    # by configure, so config.status won't be able to write to it; its
5366    # output is simply discarded.  So we exec the FD to /dev/null,
5367    # effectively closing config.log, so it can be properly (re)opened and
5368    # appended to by config.status.  When coming back to configure, we
5369    # need to make the FD available again.
5370    if test "$no_create" != yes; then
5371      ac_cs_success=:
5372      exec 5>/dev/null
5373      $SHELL $CONFIG_STATUS || ac_cs_success=false
5374      exec 5>>config.log
5375      # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5376      # would make configure fail if this is the last instruction.
5377      $ac_cs_success || { (exit 1); exit 1; }
5378    fi
5379    

Legend:
Removed from v.1.93  
changed lines
  Added in v.1.94

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26